@@ -124,7 +124,7 @@ |
||
124 | 124 | $paths = array(); |
125 | 125 | |
126 | 126 | foreach ($this->modules as $module) { |
127 | - $paths[$module] = $this->baseModulePath.DIRECTORY_SEPARATOR.$module; |
|
127 | + $paths[$module] = $this->baseModulePath . DIRECTORY_SEPARATOR . $module; |
|
128 | 128 | } |
129 | 129 | |
130 | 130 | return $paths; |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | */ |
89 | 89 | public function offsetExists($property) |
90 | 90 | { |
91 | - return method_exists($this, 'get'.ucfirst($property)); |
|
91 | + return method_exists($this, 'get' . ucfirst($property)); |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | /** |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | */ |
97 | 97 | public function offsetGet($property) |
98 | 98 | { |
99 | - return call_user_func(array($this, 'get'.ucfirst($property))); |
|
99 | + return call_user_func(array($this, 'get' . ucfirst($property))); |
|
100 | 100 | } |
101 | 101 | |
102 | 102 | /** |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | */ |
105 | 105 | public function offsetSet($property, $value) |
106 | 106 | { |
107 | - throw new \RuntimeException('Usage of '.__METHOD__.' is not allowed'); |
|
107 | + throw new \RuntimeException('Usage of ' . __METHOD__ . ' is not allowed'); |
|
108 | 108 | } |
109 | 109 | |
110 | 110 | /** |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | */ |
113 | 113 | public function offsetUnset($property) |
114 | 114 | { |
115 | - throw new \RuntimeException('Usage of '.__METHOD__.' is not allowed'); |
|
115 | + throw new \RuntimeException('Usage of ' . __METHOD__ . ' is not allowed'); |
|
116 | 116 | } |
117 | 117 | |
118 | 118 | } |
@@ -68,9 +68,9 @@ |
||
68 | 68 | { |
69 | 69 | $controller = str_replace('\\', '/', $this->get('controller')); |
70 | 70 | |
71 | - $path = (empty($controller) ? '' : $controller.'/').$this->get('name').'.'.$this->get('format').'.'.$this->get('engine'); |
|
71 | + $path = (empty($controller) ? '' : $controller . '/') . $this->get('name') . '.' . $this->get('format') . '.' . $this->get('engine'); |
|
72 | 72 | |
73 | - return empty($this->parameters['module']) ? self::APP_VIEWS_DIRECTORY.'/'.$path : '@'.$this->get('module').'/'.self::MODULE_VIEWS_DIRECTORY.'/'.$path; |
|
73 | + return empty($this->parameters['module']) ? self::APP_VIEWS_DIRECTORY . '/' . $path : '@' . $this->get('module') . '/' . self::MODULE_VIEWS_DIRECTORY . '/' . $path; |
|
74 | 74 | } |
75 | 75 | |
76 | 76 | /** |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | */ |
47 | 47 | public function __construct(FileLocatorInterface $locator, $cacheDir = null) |
48 | 48 | { |
49 | - if (null !== $cacheDir && is_file($cache = $cacheDir.'/templates.php')) { |
|
49 | + if (null !== $cacheDir && is_file($cache = $cacheDir . '/templates.php')) { |
|
50 | 50 | $this->cache = require $cache; |
51 | 51 | } |
52 | 52 | |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | */ |
104 | 104 | public function getAppPath() |
105 | 105 | { |
106 | - return $this->locator->appPath.DIRECTORY_SEPARATOR.TemplateReference::APP_VIEWS_DIRECTORY; |
|
106 | + return $this->locator->appPath . DIRECTORY_SEPARATOR . TemplateReference::APP_VIEWS_DIRECTORY; |
|
107 | 107 | } |
108 | 108 | |
109 | 109 | /** |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | $paths = $this->locator->getModulesPath(); |
117 | 117 | |
118 | 118 | foreach (array_keys($paths) as $module) { |
119 | - $paths[$module] .= DIRECTORY_SEPARATOR.TemplateReference::MODULE_VIEWS_DIRECTORY; |
|
119 | + $paths[$module] .= DIRECTORY_SEPARATOR . TemplateReference::MODULE_VIEWS_DIRECTORY; |
|
120 | 120 | } |
121 | 121 | |
122 | 122 | return $paths; |
@@ -64,7 +64,7 @@ |
||
64 | 64 | * @return mixed |
65 | 65 | */ |
66 | 66 | public function __call($method, array $params = array()) { |
67 | - if(isset($this->funRemap[$method])) { |
|
67 | + if (isset($this->funRemap[$method])) { |
|
68 | 68 | return call_user_func_array(array($this, $this->funRemap[$method]), $params); |
69 | 69 | } |
70 | 70 | throw new \BadMethodCallException('Method ' . $method . ' does not exist'); |
@@ -58,9 +58,9 @@ discard block |
||
58 | 58 | public function isMatcherCached() |
59 | 59 | { |
60 | 60 | return file_exists( |
61 | - $this->options['cache_dir']. |
|
62 | - DIRECTORY_SEPARATOR. |
|
63 | - $this->options['matcher_cache_class']. |
|
61 | + $this->options['cache_dir'] . |
|
62 | + DIRECTORY_SEPARATOR . |
|
63 | + $this->options['matcher_cache_class'] . |
|
64 | 64 | '.php' |
65 | 65 | ); |
66 | 66 | } |
@@ -73,9 +73,9 @@ discard block |
||
73 | 73 | public function isGeneratorCached() |
74 | 74 | { |
75 | 75 | return file_exists( |
76 | - $this->options['cache_dir']. |
|
77 | - DIRECTORY_SEPARATOR. |
|
78 | - $this->options['generator_cache_class']. |
|
76 | + $this->options['cache_dir'] . |
|
77 | + DIRECTORY_SEPARATOR . |
|
78 | + $this->options['generator_cache_class'] . |
|
79 | 79 | '.php' |
80 | 80 | ); |
81 | 81 | } |
@@ -224,7 +224,7 @@ |
||
224 | 224 | { |
225 | 225 | if (!method_exists($this->_controller, $this->_actionName)) { |
226 | 226 | throw new \Exception(sprintf( |
227 | - 'Unable to dispatch action: "%s" does not exist in controller '. |
|
227 | + 'Unable to dispatch action: "%s" does not exist in controller ' . |
|
228 | 228 | '"%s" within module "%s"', |
229 | 229 | $this->_actionName, |
230 | 230 | $this->_controllerName, |
@@ -70,7 +70,7 @@ |
||
70 | 70 | $parameters = parent::matchRequest($request); |
71 | 71 | $this->matchedRouteRequest = $request; |
72 | 72 | return $parameters; |
73 | - } catch(\Exception $e) { |
|
73 | + } catch (\Exception $e) { |
|
74 | 74 | throw $e; |
75 | 75 | } |
76 | 76 | } |
@@ -65,7 +65,7 @@ |
||
65 | 65 | 'useDataSource' => false |
66 | 66 | ); |
67 | 67 | |
68 | - $defaults['app.root_dir'] = getcwd().'/app'; |
|
68 | + $defaults['app.root_dir'] = getcwd() . '/app'; |
|
69 | 69 | |
70 | 70 | return $defaults; |
71 | 71 | } |