@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | $loader = new YamlFileLoader(new FileLocator(array(dirname($path)))); |
83 | 83 | $loader->setDefaults(array('_module' => $this->getName())); |
84 | 84 | |
85 | - $routesCollection = $loader->load(pathinfo($path, PATHINFO_FILENAME) . '.' . pathinfo($path, PATHINFO_EXTENSION)); |
|
85 | + $routesCollection = $loader->load(pathinfo($path, PATHINFO_FILENAME).'.'.pathinfo($path, PATHINFO_EXTENSION)); |
|
86 | 86 | $this->routes = $routesCollection; |
87 | 87 | } |
88 | 88 | |
@@ -132,11 +132,11 @@ discard block |
||
132 | 132 | $routeCollector = new \FastRoute\RouteCollector($routeParser, $dataGenerator); |
133 | 133 | |
134 | 134 | if (!is_readable($path)) { |
135 | - throw new \InvalidArgumentException('Invalid fast route routes path found: ' . $path); |
|
135 | + throw new \InvalidArgumentException('Invalid fast route routes path found: '.$path); |
|
136 | 136 | } |
137 | 137 | |
138 | 138 | // The included file must return the laravel router |
139 | - $getRouteCollector = function () use ($routeCollector, $path) { |
|
139 | + $getRouteCollector = function() use ($routeCollector, $path) { |
|
140 | 140 | $r = $routeCollector; |
141 | 141 | include $path; |
142 | 142 | |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | protected function loadAuraRoutes($path) |
174 | 174 | { |
175 | 175 | if (!is_readable($path)) { |
176 | - throw new \InvalidArgumentException('Invalid aura routes path found: ' . $path); |
|
176 | + throw new \InvalidArgumentException('Invalid aura routes path found: '.$path); |
|
177 | 177 | } |
178 | 178 | |
179 | 179 | $router = (new AuraRouterFactory())->newInstance(); |
@@ -377,13 +377,13 @@ discard block |
||
377 | 377 | $finder = new Finder(); |
378 | 378 | $finder->files()->name('*Command.php')->in($dir); |
379 | 379 | |
380 | - $prefix = $this->getNamespace() . '\\Command'; |
|
380 | + $prefix = $this->getNamespace().'\\Command'; |
|
381 | 381 | foreach ($finder as $file) { |
382 | 382 | $ns = $prefix; |
383 | 383 | if ($relativePath = $file->getRelativePath()) { |
384 | - $ns .= '\\' . strtr($relativePath, '/', '\\'); |
|
384 | + $ns .= '\\'.strtr($relativePath, '/', '\\'); |
|
385 | 385 | } |
386 | - $r = new \ReflectionClass($ns . '\\' . $file->getBasename('.php')); |
|
386 | + $r = new \ReflectionClass($ns.'\\'.$file->getBasename('.php')); |
|
387 | 387 | if ($r->isSubclassOf('PPI\Framework\\Console\\Command\\AbstractCommand') && !$r->isAbstract()) { |
388 | 388 | $application->add($r->newInstance()); |
389 | 389 | } |
@@ -398,7 +398,7 @@ discard block |
||
398 | 398 | protected function getConfigLoader() |
399 | 399 | { |
400 | 400 | if (null === $this->configLoader) { |
401 | - $this->configLoader = new ConfigLoader($this->getPath() . '/resources/config'); |
|
401 | + $this->configLoader = new ConfigLoader($this->getPath().'/resources/config'); |
|
402 | 402 | } |
403 | 403 | |
404 | 404 | return $this->configLoader; |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | $key = strtolower($key); |
60 | 60 | |
61 | 61 | if (!isset($this->services[$key])) { |
62 | - throw new \InvalidArgumentException('Service not found: ' . $key); |
|
62 | + throw new \InvalidArgumentException('Service not found: '.$key); |
|
63 | 63 | } |
64 | 64 | |
65 | 65 | // Have we been here before? |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | |
76 | 76 | // It's a Service instance, lets do some extra stuff. |
77 | 77 | if (!$this->services[$key]->hasClassName()) { |
78 | - throw new \Exception('Unable to find class name from definition: ' . $key); |
|
78 | + throw new \Exception('Unable to find class name from definition: '.$key); |
|
79 | 79 | } |
80 | 80 | |
81 | 81 | $className = $this->services[$key]->getClassName(); |
@@ -17,7 +17,7 @@ |
||
17 | 17 | |
18 | 18 | protected function getRoutingFilePath() |
19 | 19 | { |
20 | - return $this->getPath() . '/resources/routes/symfony.yml'; |
|
20 | + return $this->getPath().'/resources/routes/symfony.yml'; |
|
21 | 21 | } |
22 | 22 | |
23 | 23 | } |
24 | 24 | \ No newline at end of file |
@@ -53,7 +53,7 @@ |
||
53 | 53 | public function getParam($param) |
54 | 54 | { |
55 | 55 | if (!isset($this->params[$param])) { |
56 | - throw new \InvalidArgumentException('Unable to find routing param: ' . $param); |
|
56 | + throw new \InvalidArgumentException('Unable to find routing param: '.$param); |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | return $this->params[$param]; |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | { |
88 | 88 | $ret = $this->router->generate($name, $parameters); |
89 | 89 | if ($ret === false) { |
90 | - throw new RouteNotFoundException('Unable to generate route for: ' . $name); |
|
90 | + throw new RouteNotFoundException('Unable to generate route for: '.$name); |
|
91 | 91 | } |
92 | 92 | |
93 | 93 | return $ret; |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | |
137 | 137 | // The 'action' key always exists and defaults to the Route Name, so we check accordingly |
138 | 138 | if (!isset($routeParams['controller']) && $routeParams['action'] === $matchedRoute->name) { |
139 | - throw new \Exception('Matched the route: ' . $matchedRoute->name . ' but unable to locate |
|
139 | + throw new \Exception('Matched the route: '.$matchedRoute->name.' but unable to locate |
|
140 | 140 | any controller/action params to dispatch'); |
141 | 141 | } |
142 | 142 | |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | } elseif (isset($routeParams['action'])) { |
148 | 148 | $routeParams['_controller'] = $routeParams['action']; |
149 | 149 | } else { |
150 | - throw new \Exception('Unable to determine the controller from route: ' . $matchedRoute->name); |
|
150 | + throw new \Exception('Unable to determine the controller from route: '.$matchedRoute->name); |
|
151 | 151 | } |
152 | 152 | } |
153 | 153 |
@@ -60,9 +60,9 @@ discard block |
||
60 | 60 | public function isMatcherCached() |
61 | 61 | { |
62 | 62 | return file_exists( |
63 | - $this->options['cache_dir'] . |
|
64 | - DIRECTORY_SEPARATOR . |
|
65 | - $this->options['matcher_cache_class'] . |
|
63 | + $this->options['cache_dir']. |
|
64 | + DIRECTORY_SEPARATOR. |
|
65 | + $this->options['matcher_cache_class']. |
|
66 | 66 | '.php' |
67 | 67 | ); |
68 | 68 | } |
@@ -75,9 +75,9 @@ discard block |
||
75 | 75 | public function isGeneratorCached() |
76 | 76 | { |
77 | 77 | return file_exists( |
78 | - $this->options['cache_dir'] . |
|
79 | - DIRECTORY_SEPARATOR . |
|
80 | - $this->options['generator_cache_class'] . |
|
78 | + $this->options['cache_dir']. |
|
79 | + DIRECTORY_SEPARATOR. |
|
80 | + $this->options['generator_cache_class']. |
|
81 | 81 | '.php' |
82 | 82 | ); |
83 | 83 | } |
@@ -98,17 +98,17 @@ |
||
98 | 98 | '%s: failed retrieving "%s%s" via invokable class "%s"; class does not exist', |
99 | 99 | __METHOD__, |
100 | 100 | $canonicalName, |
101 | - ($requestedName ? '(alias: ' . $requestedName . ')' : ''), |
|
101 | + ($requestedName ? '(alias: '.$requestedName.')' : ''), |
|
102 | 102 | $invokable |
103 | 103 | )); |
104 | 104 | } |
105 | 105 | |
106 | - if (!static::isSubclassOf($invokable, __NAMESPACE__ . '\RouteInterface')) { |
|
106 | + if (!static::isSubclassOf($invokable, __NAMESPACE__.'\RouteInterface')) { |
|
107 | 107 | throw new RuntimeException(sprintf( |
108 | 108 | '%s: failed retrieving "%s%s" via invokable class "%s"; class does not implement %s\RouteInterface', |
109 | 109 | __METHOD__, |
110 | 110 | $canonicalName, |
111 | - ($requestedName ? '(alias: ' . $requestedName . ')' : ''), |
|
111 | + ($requestedName ? '(alias: '.$requestedName.')' : ''), |
|
112 | 112 | $invokable, |
113 | 113 | __NAMESPACE__ |
114 | 114 | )); |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | */ |
27 | 27 | public function getAppPath() |
28 | 28 | { |
29 | - return $this->locator->getAppPath() . DIRECTORY_SEPARATOR . TemplateReference::APP_VIEWS_DIRECTORY; |
|
29 | + return $this->locator->getAppPath().DIRECTORY_SEPARATOR.TemplateReference::APP_VIEWS_DIRECTORY; |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | /** |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | { |
39 | 39 | $paths = $this->locator->getModulesPath(); |
40 | 40 | foreach (array_keys($paths) as $module) { |
41 | - $paths[$module] .= DIRECTORY_SEPARATOR . TemplateReference::MODULE_VIEWS_DIRECTORY; |
|
41 | + $paths[$module] .= DIRECTORY_SEPARATOR.TemplateReference::MODULE_VIEWS_DIRECTORY; |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | return $paths; |
@@ -59,7 +59,7 @@ |
||
59 | 59 | if (isset($this->funRemap[$method])) { |
60 | 60 | return call_user_func_array(array($this, $this->funRemap[$method]), $params); |
61 | 61 | } |
62 | - throw new \BadMethodCallException('Method ' . $method . ' does not exist'); |
|
62 | + throw new \BadMethodCallException('Method '.$method.' does not exist'); |
|
63 | 63 | } |
64 | 64 | |
65 | 65 | /** |