Completed
Push — master ( ac7bf8...0757cb )
by Ryan
13s
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/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.
src/Dashboard/DashboardCollection.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     /**
40 40
      * Find a model in the collection by key.
41 41
      *
42
-     * @param  mixed                               $key
42
+     * @param  DashboardInterface                               $key
43 43
      * @param  mixed                               $default
44 44
      * @return \Illuminate\Database\Eloquent\Model
45 45
      */
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 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 (DashboardInterface $dashboard) use ($user) {
31
+            function(DashboardInterface $dashboard) use ($user) {
32 32
                 $roles = $dashboard->getAllowedRoles();
33 33
 
34 34
                 return $roles->isEmpty() ?: $user->hasAnyRole($roles);
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
         }
51 51
 
52 52
         return $this->first(
53
-            function (DashboardInterface $model) use ($key) {
53
+            function(DashboardInterface $model) use ($key) {
54 54
                 return $model->getId() == $key || $model->getSlug() == $key;
55 55
             },
56 56
             $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
@@ -23,20 +23,20 @@
 block discarded – undo
23 23
         $builder->setSections(
24 24
             [
25 25
                 [
26
-                    'fields' => function () use ($widget) {
26
+                    'fields' => function() use ($widget) {
27 27
                         return array_map(
28
-                            function ($field) {
29
-                                return 'widget_' . $field;
28
+                            function($field) {
29
+                                return 'widget_'.$field;
30 30
                             },
31 31
                             $widget->getFormFieldSlugs()
32 32
                         );
33 33
                     },
34 34
                 ],
35 35
                 [
36
-                    'fields' => function () use ($configuration) {
36
+                    'fields' => function() use ($configuration) {
37 37
                         return array_map(
38
-                            function ($field) {
39
-                                return 'configuration_' . $field;
38
+                            function($field) {
39
+                                return 'configuration_'.$field;
40 40
                             },
41 41
                             $configuration->getFormFieldSlugs()
42 42
                         );
Please login to merge, or discard this patch.