@@ -80,7 +80,7 @@ |
||
80 | 80 | 'line' => $this->_exception->getLine() |
81 | 81 | ]; |
82 | 82 | |
83 | - $trace = $this->_exception->getTrace(); |
|
83 | + $trace = $this->_exception->getTrace(); |
|
84 | 84 | |
85 | 85 | if (isset($trace[0]['line']) && $trace[0]['line'] !== $raiser['line']) { |
86 | 86 | array_unshift($trace, $raiser); |
@@ -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 |
@@ -29,7 +29,7 @@ |
||
29 | 29 | /** |
30 | 30 | * @param $dom |
31 | 31 | * @param $data |
32 | - * @return bool|\DOMElement |
|
32 | + * @return \DOMNode |
|
33 | 33 | */ |
34 | 34 | private function generateXmlElement(\DOMDocument $dom, $data ) |
35 | 35 | { |
@@ -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 |
@@ -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 | } |
@@ -295,7 +295,7 @@ |
||
295 | 295 | } |
296 | 296 | |
297 | 297 | if (empty($this->getType()) && !empty($this->definition['type'])) { |
298 | - $this->setType($this->definition['type']); |
|
298 | + $this->setType($this->definition['type']); |
|
299 | 299 | } |
300 | 300 | |
301 | 301 | if (empty($this->getValue()) && !empty($this->definition['value'])) { |
@@ -339,7 +339,7 @@ |
||
339 | 339 | /** |
340 | 340 | * Abstraction of call_user_func_array |
341 | 341 | * |
342 | - * @param $class |
|
342 | + * @param AbstractViewHelper $class |
|
343 | 343 | * @param $arguments |
344 | 344 | * |
345 | 345 | * @return mixed |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | */ |
165 | 165 | public function getVariable(string $key) |
166 | 166 | { |
167 | - if(isset($this->variable[$key])) { |
|
167 | + if (isset($this->variable[$key])) { |
|
168 | 168 | return $this->variable[$key]; |
169 | 169 | } |
170 | 170 | |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | */ |
180 | 180 | public function hasVariable(string $key) :bool |
181 | 181 | { |
182 | - if(isset($this->variable[$key])) { |
|
182 | + if (isset($this->variable[$key])) { |
|
183 | 183 | return true; |
184 | 184 | } |
185 | 185 | |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | */ |
195 | 195 | public function setVariables(array $variables = []) |
196 | 196 | { |
197 | - foreach($variables AS $key=>$value) { |
|
197 | + foreach ($variables AS $key=>$value) { |
|
198 | 198 | $this->setVariable($key, $value); |
199 | 199 | } |
200 | 200 | |
@@ -269,7 +269,7 @@ discard block |
||
269 | 269 | |
270 | 270 | } catch (\Exception $e) { |
271 | 271 | |
272 | - while(ob_get_level() > 1) { |
|
272 | + while (ob_get_level() > 1) { |
|
273 | 273 | ob_end_clean(); |
274 | 274 | } |
275 | 275 | |
@@ -353,8 +353,8 @@ discard block |
||
353 | 353 | */ |
354 | 354 | public function __destruct() |
355 | 355 | { |
356 | - unset( $this->variable ); |
|
357 | - unset( $this->template ); |
|
356 | + unset($this->variable); |
|
357 | + unset($this->template); |
|
358 | 358 | } |
359 | 359 | |
360 | 360 | } |
361 | 361 | \ No newline at end of file |
@@ -33,8 +33,8 @@ |
||
33 | 33 | $subview->setTemplatePath($this->view->getTemplatePath()); |
34 | 34 | } |
35 | 35 | |
36 | - $subview->setTemplate( $template ); |
|
37 | - $subview->setVariables( $variables ); |
|
36 | + $subview->setTemplate($template); |
|
37 | + $subview->setVariables($variables); |
|
38 | 38 | return $subview->render(); |
39 | 39 | } |
40 | 40 |
@@ -22,7 +22,7 @@ |
||
22 | 22 | */ |
23 | 23 | public function __invoke(string $block, string $defaultValue = '') |
24 | 24 | { |
25 | - if($this->view->getVariable($block) === '') { |
|
25 | + if ($this->view->getVariable($block) === '') { |
|
26 | 26 | return $defaultValue; |
27 | 27 | } |
28 | 28 | return trim($this->view->getVariable($block)); |
@@ -3,8 +3,6 @@ |
||
3 | 3 | namespace Faulancer\Service; |
4 | 4 | |
5 | 5 | use Faulancer\Controller\Controller; |
6 | -use Faulancer\Exception\DbException; |
|
7 | -use Faulancer\Exception\InvalidArgumentException; |
|
8 | 6 | use Faulancer\ORM\User\Entity; |
9 | 7 | use Faulancer\Security\Crypt; |
10 | 8 | use Faulancer\ServiceLocator\ServiceInterface; |