Completed
Push — master ( 2820f4...076502 )
by Vítor
16:50
created
src/Util/Routing/CsvExporter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,10 +44,10 @@
 block discarded – undo
44 44
         $fileName = sprintf('%s/%s_routes_%s.csv', $this->outputDir, Package::NAME, $datetime->format('Ymd-His.u'));
45 45
 
46 46
         $fp = fopen($fileName, 'w');
47
-        fputcsv($fp, ['Route name', 'URL', 'Controller', 'Action']);
47
+        fputcsv($fp, [ 'Route name', 'URL', 'Controller', 'Action' ]);
48 48
         foreach ($this->routeCollection->getRoutes() as $route) {
49 49
             /* @var Route $route */
50
-            fputcsv($fp, [$route->getName(), $route->getUrl(), $route->getController(), $route->getAction()]);
50
+            fputcsv($fp, [ $route->getName(), $route->getUrl(), $route->getController(), $route->getAction() ]);
51 51
         }
52 52
         fclose($fp);
53 53
 
Please login to merge, or discard this patch.
src/Module.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         }
63 63
 
64 64
         $currentRouteName = $this->getCurrentRouteName($e->getApplication()->getServiceManager());
65
-        $e->getViewModel()->setVariables(['__currentRouteName' => $currentRouteName]);
65
+        $e->getViewModel()->setVariables([ '__currentRouteName' => $currentRouteName ]);
66 66
     }
67 67
 
68 68
     /**
@@ -90,11 +90,11 @@  discard block
 block discarded – undo
90 90
             'zfdebug routes export' => 'Exports all routes in CSV format',
91 91
             'zfdebug routes list' => 'Lists all routes',
92 92
             'zfdebug routes match [METHOD] [URL]' => 'Matches a URL to a Route',
93
-            ['Examples:'],
94
-            ['$ zfdebug routes export', ''],
95
-            ['$ zfdebug routes list', ''],
96
-            ['$ zfdebug routes match GET /users/123', ''],
97
-            ['$ zfdebug routes match POST /login', ''],
93
+            [ 'Examples:' ],
94
+            [ '$ zfdebug routes export', '' ],
95
+            [ '$ zfdebug routes list', '' ],
96
+            [ '$ zfdebug routes match GET /users/123', '' ],
97
+            [ '$ zfdebug routes match POST /login', '' ],
98 98
         ];
99 99
     }
100 100
 
Please login to merge, or discard this patch.