@@ -44,10 +44,10 @@ |
||
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 |
@@ -62,7 +62,7 @@ discard block |
||
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 |
||
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 |