Passed
Push — master ( d29a9b...25ab8d )
by Curtis
08:54 queued 03:38
created
app/Service/enso/localisation/Updater.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 
26 26
     public function run()
27 27
     {
28
-        DB::transaction(function () {
28
+        DB::transaction(function() {
29 29
             $oldName = $this->language->name;
30 30
             $this->language->updateWithFlagSufix($this->request, $this->flagSufix);
31 31
             $this->updateLangFiles($oldName, $this->request['name']);
Please login to merge, or discard this patch.
app/Service/enso/localisation/Storer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 
21 21
     public function create()
22 22
     {
23
-        return DB::transaction(function () {
23
+        return DB::transaction(function() {
24 24
             $language = (new Language())
25 25
                 ->storeWithFlagSufix($this->request, $this->flagSuffix);
26 26
 
Please login to merge, or discard this patch.
app/Service/enso/menus/TreeBuilder.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@  discard block
 block discarded – undo
24 24
     private function build(?int $parentId = null): Collection
25 25
     {
26 26
         return $this->menus
27
-            ->filter(fn ($menu) => $menu->parent_id === $parentId)
28
-            ->reduce(fn ($tree, $menu) => $tree
27
+            ->filter(fn($menu) => $menu->parent_id === $parentId)
28
+            ->reduce(fn($tree, $menu) => $tree
29 29
                 ->push($this->withChildren($menu)), new Collection());
30 30
     }
31 31
 
@@ -63,14 +63,14 @@  discard block
 block discarded – undo
63 63
 
64 64
     private function filter(): self
65 65
     {
66
-        $this->menus = $this->menus->filter(fn ($menu) => $this->allowed($menu));
66
+        $this->menus = $this->menus->filter(fn($menu) => $this->allowed($menu));
67 67
 
68 68
         return $this;
69 69
     }
70 70
 
71 71
     private function map(): self
72 72
     {
73
-        $this->menus = $this->menus->map(fn ($menu) => $this->computeIcon($menu));
73
+        $this->menus = $this->menus->map(fn($menu) => $this->computeIcon($menu));
74 74
 
75 75
         return $this;
76 76
     }
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
     private function someChildrenAllowed($parent): bool
94 94
     {
95 95
         return $this->menus->some(
96
-            fn ($child) => $child->parent_id === $parent->id && $this->allowed($child)
96
+            fn($child) => $child->parent_id === $parent->id && $this->allowed($child)
97 97
         );
98 98
     }
99 99
 }
Please login to merge, or discard this patch.
app/Service/enso/menus/Organizer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 
22 22
     private function organize(Obj $menus): void
23 23
     {
24
-        $menus->each(fn ($menu, $index) => $this->reorder($menu, $index));
24
+        $menus->each(fn($menu, $index) => $this->reorder($menu, $index));
25 25
     }
26 26
 
27 27
     private function reorder(Obj $menu, int $index): void
Please login to merge, or discard this patch.
app/Service/enso/files/UploadManager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 
24 24
     public function handle(): Collection
25 25
     {
26
-        DB::transaction(function () {
26
+        DB::transaction(function() {
27 27
             $this->checkExisting()
28 28
                 ->uploadFiles();
29 29
         });
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     private function checkExisting(): self
35 35
     {
36 36
         $existing = $this->files
37
-            ->map(fn ($file) => $file->getClientOriginalName())
37
+            ->map(fn($file) => $file->getClientOriginalName())
38 38
             ->intersect($this->existingFiles());
39 39
 
40 40
         if ($existing->isNotEmpty()) {
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 
47 47
     private function uploadFiles(): void
48 48
     {
49
-        $this->files->each(fn ($file) => $this->uploadFile($file));
49
+        $this->files->each(fn($file) => $this->uploadFile($file));
50 50
     }
51 51
 
52 52
     private function uploadFile($file): void
Please login to merge, or discard this patch.
app/Http/Controllers/enso/localisation/Json/AddKey.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
     public function __invoke(ValidateKeyRequest $request, Language $language)
13 13
     {
14 14
         $keys = (new Collection($request->get('keys')))
15
-            ->mapWithKeys(fn ($key) => [$key => null])
15
+            ->mapWithKeys(fn($key) => [$key => null])
16 16
             ->toArray();
17 17
 
18 18
         (new Updater($language, $keys))->addKey();
Please login to merge, or discard this patch.
app/Http/Controllers/enso/localisation/Json/Index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 {
9 9
     public function __invoke()
10 10
     {
11
-        return Language::extra()->get()->map(fn ($locale) => [
11
+        return Language::extra()->get()->map(fn($locale) => [
12 12
             'id' => $locale->id,
13 13
             'name' => $locale->display_name,
14 14
         ]);
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/LoginController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     {
55 55
         $user = $this->loggableUser($request);
56 56
 
57
-        if (! $user) {
57
+        if (!$user) {
58 58
             return false;
59 59
         }
60 60
 
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 
103 103
         // \Session::put('db', $value);
104 104
 
105
-        if (! optional($user)->currentPasswordIs($request->input('password'))) {
105
+        if (!optional($user)->currentPasswordIs($request->input('password'))) {
106 106
             return;
107 107
         }
108 108
 
Please login to merge, or discard this patch.