Completed
Push — master ( 65b094...b25e0f )
by Terzi
04:45
created
src/Middleware/Badges.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@
 block discarded – undo
24 24
     {
25 25
         $badges = Collection::make([]);
26 26
 
27
-        $this->collectBadges(function ($fileInfo) use ($badges) {
28
-            $this->resolveClass($fileInfo, function ($badge) use ($badges) {
27
+        $this->collectBadges(function($fileInfo) use ($badges) {
28
+            $this->resolveClass($fileInfo, function($badge) use ($badges) {
29 29
                 $badges->push($badge);
30 30
             });
31 31
         });
Please login to merge, or discard this patch.
src/Actions/RemoveSelected.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     public function handle(Model $eloquent, Request $request)
23 23
     {
24 24
         return $this->fetchForDelete($eloquent, $request)
25
-                    ->each(function ($item) {
25
+                    ->each(function($item) {
26 26
                         return $this->canDelete($item) ? $item->delete() : $item;
27 27
                     });
28 28
     }
Please login to merge, or discard this patch.
src/Actions/Collection.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
     {
13 13
         // initialize action classes only at first execution.
14 14
         if (is_array($items)) {
15
-            $items = array_map(function ($handler) {
15
+            $items = array_map(function($handler) {
16 16
                 return new $handler();
17 17
             }, $items);
18 18
         }
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      */
30 30
     public function find($name)
31 31
     {
32
-        return $this->first(function ($action) use ($name) {
32
+        return $this->first(function($action) use ($name) {
33 33
             return class_basename($action) === studly_case($name);
34 34
         });
35 35
     }
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      */
45 45
     public function authorized(User $user, Model $model = null)
46 46
     {
47
-        return $this->filter(function ($action) use ($user, $model) {
47
+        return $this->filter(function($action) use ($user, $model) {
48 48
             // authorize action only if action allows it.
49 49
             if (method_exists($action, 'authorize')) {
50 50
                 return $action->authorize($user, $model);
Please login to merge, or discard this patch.
src/Traits/Module/ValidatesOptions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
      */
20 20
     protected function scaffoldRules()
21 21
     {
22
-        return array_build(options_fetch(), function ($key, $option) {
22
+        return array_build(options_fetch(), function($key, $option) {
23 23
             return [$option->key, 'required'];
24 24
         });
25 25
     }
Please login to merge, or discard this patch.
src/Traits/Module/HasColumns.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
                 $elements = $elements->merge($dates);
85 85
             } else {
86 86
                 // add timestamps group
87
-                $elements->group('dates', function (Group $group) use ($dates) {
87
+                $elements->group('dates', function(Group $group) use ($dates) {
88 88
                     $group->merge($dates);
89 89
 
90 90
                     return $group;
Please login to merge, or discard this patch.
src/Traits/Module/DetectsCommentFlag.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 
25 25
         foreach ($lines as $line) {
26 26
             if (false !== stripos($line, $flag)) {
27
-                $props = array_filter(explode(' ', $line), function ($prop) {
27
+                $props = array_filter(explode(' ', $line), function($prop) {
28 28
                     return '' !== trim($prop) && '*' !== $prop;
29 29
                 });
30 30
 
Please login to merge, or discard this patch.
src/Traits/Module/ValidatesForm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
             $rules[] = 'foreign';
92 92
         }
93 93
 
94
-        return array_map(function ($rule) use ($column, $eloquent) {
94
+        return array_map(function($rule) use ($column, $eloquent) {
95 95
             $method = 'make'.ucfirst($rule).'Rule';
96 96
 
97 97
             return call_user_func_array([$this, $method], [$column, $eloquent]);
Please login to merge, or discard this patch.
src/Traits/Collection/ElementContainer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@
 block discarded – undo
158 158
     protected function buildId($id)
159 159
     {
160 160
         $parts = explode('.', $id);
161
-        $parts = array_map(function ($part) {
161
+        $parts = array_map(function($part) {
162 162
             return str_slug($part, '_');
163 163
         }, $parts);
164 164
         $id = implode('.', $parts);
Please login to merge, or discard this patch.
src/Traits/LoopsOverRelations.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,9 +38,9 @@
 block discarded – undo
38 38
                 return array_map(
39 39
                     'intval',
40 40
                     \DB::table($object->getTable())
41
-                       ->where($this->getQualifiedForeignKeyName($object), $orig->getKey())
42
-                       ->pluck($this->getQualifiedRelatedKeyName($object))
43
-                       ->toArray()
41
+                        ->where($this->getQualifiedForeignKeyName($object), $orig->getKey())
42
+                        ->pluck($this->getQualifiedRelatedKeyName($object))
43
+                        ->toArray()
44 44
                 );
45 45
             }
46 46
 
Please login to merge, or discard this patch.