Skip to content

Commit

Permalink
Fix CS again
Browse files Browse the repository at this point in the history
  • Loading branch information
mzur committed Dec 19, 2024
1 parent 8eb5637 commit e9ecd73
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
3 changes: 1 addition & 2 deletions app/Console/Commands/SyncUuids.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,7 @@ protected function generateOutput()
'lastname' => Hash::make($user->lastname),
'email' => Hash::make($user->email),
];
})
->toJson(JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
})->toJson(JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
$bar->finish();

echo $users;
Expand Down
11 changes: 5 additions & 6 deletions app/Services/Export/LabelTreeExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ class LabelTreeExport extends Export
*/
public function getContent()
{
$trees =
LabelTree::where(function ($query) {
$trees = LabelTree::with('labels', 'version')
->with(['members' => function ($query) {
$query->select('users.id', 'label_tree_user.role_id');
}])
->where(function ($query) {
$query->whereIn('id', $this->ids)
// Also add master trees of all included versioned trees.
->orWhereIn('id', function ($query) {
Expand All @@ -23,10 +26,6 @@ public function getContent()
->whereIn('label_trees.id', $this->ids);
});
})
->with('labels', 'version')
->with(['members' => function ($query) {
$query->select('users.id', 'label_tree_user.role_id');
}])
->get();

$trees->each(function ($tree) {
Expand Down

0 comments on commit e9ecd73

Please sign in to comment.