Completed
Push — master ( e6463a...a91b31 )
by Ryan
02:20
created
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.