Passed
Push — master ( 40b14e...13e5ab )
by MOHAMED
03:58 queued 42s
created
src/Parser/ViewParser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
      */
100 100
     public function resolveChildrenHierarchy(array $children): void
101 101
     {
102
-        collect($children)->each(function ($value, $key) {
102
+        collect($children)->each(function($value, $key) {
103 103
             if (is_string($key)) {
104 104
                 $this->childrenViews[] = $key;
105 105
             }
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
     {
272 272
         return collect(array_merge($this->childrenViews, $this->parent))
273 273
             ->unique()
274
-            ->flatMap(function ($view) {
274
+            ->flatMap(function($view) {
275 275
                 return [
276 276
                     $view => 0,
277 277
                 ];
Please login to merge, or discard this patch.
src/Analyzer/ViewAnalyzer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 
54 54
     protected function fetchUnusedViews()
55 55
     {
56
-        $flattenUsedViews = collect($this->usedViews)->map(function ($viewTransformer) {
56
+        $flattenUsedViews = collect($this->usedViews)->map(function($viewTransformer) {
57 57
             return array_keys($viewTransformer->getViews());
58 58
         })
59 59
         ->flatten();
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 
69 69
     protected function fetchUsedViews(): array
70 70
     {
71
-        return array_map(function ($route) {
71
+        return array_map(function($route) {
72 72
             return $this->generateViewTransformer($route);
73 73
         }, $this->router->getRoutes()->getRoutes());
74 74
     }
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
      */
175 175
     public function getUsedViews(): array
176 176
     {
177
-        return array_map(function ($usedView) {
177
+        return array_map(function($usedView) {
178 178
             return $usedView->transform();
179 179
         }, $this->usedViews);
180 180
     }
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
     {
187 187
         $usedViewCountValues = array_count_values($usedViews->toArray());
188 188
 
189
-        collect($this->usedViews)->map(function ($viewTransformer) use ($usedViewCountValues) {
189
+        collect($this->usedViews)->map(function($viewTransformer) use ($usedViewCountValues) {
190 190
             $views = array_keys($viewTransformer->getViews());
191 191
 
192 192
             if (!$views) {
Please login to merge, or discard this patch.
src/ServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
             'middleware' => $this->app['config']->get('laravelunused.middleware'),
34 34
         ];
35 35
 
36
-        $this->app['router']->group($routeConfig, function ($router) {
36
+        $this->app['router']->group($routeConfig, function($router) {
37 37
             $router->get('/{view?}', [
38 38
                 'uses' => 'LaravelUnusedController',
39 39
                 'as'   => 'laravelunused.dashboard',
Please login to merge, or discard this patch.