@@ -67,7 +67,7 @@ |
||
67 | 67 | |
68 | 68 | } |
69 | 69 | |
70 | - $path = str_replace('//' , '/', $path); |
|
70 | + $path = str_replace('//', '/', $path); |
|
71 | 71 | |
72 | 72 | if ($absolute) { |
73 | 73 |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | * |
18 | 18 | * @param array $content |
19 | 19 | */ |
20 | - public function __construct ($content = []) |
|
20 | + public function __construct($content = []) |
|
21 | 21 | { |
22 | 22 | parent::__construct($content); |
23 | 23 | $this->setContent($content); |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | * @param $data |
32 | 32 | * @return bool|\DOMElement |
33 | 33 | */ |
34 | - private function generateXmlElement(\DOMDocument $dom, $data ) |
|
34 | + private function generateXmlElement(\DOMDocument $dom, $data) |
|
35 | 35 | { |
36 | 36 | if (empty($data['name'])) { |
37 | 37 | return false; |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | $doc->encoding = 'UTF-8'; |
83 | 83 | $child = $this->generateXmlElement($doc, $content); |
84 | 84 | |
85 | - if ( $child ) { |
|
85 | + if ($child) { |
|
86 | 86 | $doc->appendChild($child); |
87 | 87 | } |
88 | 88 |
@@ -268,7 +268,7 @@ |
||
268 | 268 | * @return boolean |
269 | 269 | * @codeCoverageIgnore |
270 | 270 | */ |
271 | - private function _addValidators(AbstractType &$typeClass, array $definition) |
|
271 | + private function _addValidators(AbstractType & $typeClass, array $definition) |
|
272 | 272 | { |
273 | 273 | if (!empty($definition['validator'])) { |
274 | 274 |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | list($class, $action, $permission, $payload) = $this->_getRoute($this->request->getPath()); |
88 | 88 | |
89 | 89 | /** @var AbstractController $class */ |
90 | - $class = new $class($this->request); |
|
90 | + $class = new $class($this->request); |
|
91 | 91 | |
92 | 92 | if (!empty($permission)) { |
93 | 93 | |
@@ -292,7 +292,7 @@ discard block |
||
292 | 292 | |
293 | 293 | array_splice($var, 0, 1); |
294 | 294 | |
295 | - if ($this->requestType === 'default' && in_array($this->request->getMethod(), $data['method'])) { |
|
295 | + if ($this->requestType === 'default' && in_array($this->request->getMethod(), $data['method'])) { |
|
296 | 296 | |
297 | 297 | return [ |
298 | 298 | $data['controller'], |
@@ -25,7 +25,7 @@ |
||
25 | 25 | $message |
26 | 26 | ]; |
27 | 27 | |
28 | - $messageString = implode(' | ', $columns) . "\r\n"; |
|
28 | + $messageString = implode(' | ', $columns) . "\r\n"; |
|
29 | 29 | |
30 | 30 | return file_put_contents($logfile, $messageString, FILE_APPEND); |
31 | 31 | } |