Completed
Push — master ( dbf959...e6cdca )
by Ryan
8s
created
src/Widget/WidgetCollection.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
         }
29 29
 
30 30
         return $this->filter(
31
-            function ($widget) use ($user) {
31
+            function($widget) use ($user) {
32 32
 
33 33
                 /* @var WidgetInterface $widget */
34 34
                 return $user->hasAnyRole($widget->getAllowedRoles());
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     public function pinned()
46 46
     {
47 47
         return $this->filter(
48
-            function ($widget) {
48
+            function($widget) {
49 49
 
50 50
                 /* @var WidgetInterface $widget */
51 51
                 return $widget->isPinned();
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     public function column($column, $over = false)
64 64
     {
65 65
         return $this->filter(
66
-            function ($widget) use ($column, $over) {
66
+            function($widget) use ($column, $over) {
67 67
 
68 68
                 /* @var WidgetInterface $widget */
69 69
                 if ($widget->isPinned()) {
Please login to merge, or discard this patch.
src/Dashboard/DashboardCollection.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
     /**
42 42
      * Find a model in the collection by key.
43 43
      *
44
-     * @param  mixed $key
44
+     * @param  DashboardInterface $key
45 45
      * @param  mixed $default
46 46
      * @return \Illuminate\Database\Eloquent\Model
47 47
      */
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
         }
30 30
 
31 31
         return $this->filter(
32
-            function (DashboardInterface $dashboard) use ($user) {
32
+            function(DashboardInterface $dashboard) use ($user) {
33 33
 
34 34
                 $roles = $dashboard->getAllowedRoles();
35 35
 
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
         }
53 53
 
54 54
         return $this->first(
55
-            function ($index, DashboardInterface $model) use ($key) {
55
+            function($index, DashboardInterface $model) use ($key) {
56 56
                 return $model->getId() == $key || $model->getSlug() == $key;
57 57
             },
58 58
             $default
Please login to merge, or discard this patch.
src/Widget/Extension/Form/WidgetExtensionFormSections.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -24,20 +24,20 @@
 block discarded – undo
24 24
         $builder->setSections(
25 25
             [
26 26
                 [
27
-                    'fields' => function () use ($widget) {
27
+                    'fields' => function() use ($widget) {
28 28
                         return array_map(
29
-                            function ($field) {
30
-                                return 'widget_' . $field;
29
+                            function($field) {
30
+                                return 'widget_'.$field;
31 31
                             },
32 32
                             $widget->getFormFieldSlugs()
33 33
                         );
34 34
                     }
35 35
                 ],
36 36
                 [
37
-                    'fields' => function () use ($configuration) {
37
+                    'fields' => function() use ($configuration) {
38 38
                         return array_map(
39
-                            function ($field) {
40
-                                return 'configuration_' . $field;
39
+                            function($field) {
40
+                                return 'configuration_'.$field;
41 41
                             },
42 42
                             $configuration->getFormFieldSlugs()
43 43
                         );
Please login to merge, or discard this patch.
src/Http/Controller/Admin/DashboardsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
             return $this->redirect->to('admin/dashboard/manage');
35 35
         }
36 36
 
37
-        return $this->redirect->to('admin/dashboard/view/' . $dashboard->getSlug());
37
+        return $this->redirect->to('admin/dashboard/view/'.$dashboard->getSlug());
38 38
     }
39 39
 
40 40
     /**
Please login to merge, or discard this patch.