@@ -37,13 +37,13 @@ |
||
| 37 | 37 | |
| 38 | 38 | switch ($type) { |
| 39 | 39 | |
| 40 | - case 'js': |
|
| 41 | - $pattern = '<script src="%s"></script>'; |
|
| 42 | - break; |
|
| 40 | + case 'js': |
|
| 41 | + $pattern = '<script src="%s"></script>'; |
|
| 42 | + break; |
|
| 43 | 43 | |
| 44 | - case 'css': |
|
| 45 | - $pattern = '<link rel="stylesheet" type="text/css" href="%s">'; |
|
| 46 | - break; |
|
| 44 | + case 'css': |
|
| 45 | + $pattern = '<link rel="stylesheet" type="text/css" href="%s">'; |
|
| 46 | + break; |
|
| 47 | 47 | |
| 48 | 48 | } |
| 49 | 49 | |
@@ -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'])) { |
@@ -2,7 +2,6 @@ discard block |
||
| 2 | 2 | |
| 3 | 3 | namespace Faulancer\Form\Type; |
| 4 | 4 | |
| 5 | -use Faulancer\Exception\ConfigInvalidException; |
|
| 6 | 5 | use Faulancer\Exception\ServiceNotFoundException; |
| 7 | 6 | use Faulancer\Form\Validator\AbstractValidator; |
| 8 | 7 | use Faulancer\Service\Config; |
@@ -10,7 +9,6 @@ discard block |
||
| 10 | 9 | use Faulancer\Service\SessionManagerService; |
| 11 | 10 | use Faulancer\ServiceLocator\ServiceLocator; |
| 12 | 11 | use Faulancer\Form\Validator\ValidatorChain; |
| 13 | -use Faulancer\ServiceLocator\ServiceLocatorAwareInterface; |
|
| 14 | 12 | use Faulancer\ServiceLocator\ServiceLocatorInterface; |
| 15 | 13 | use Faulancer\Session\SessionManager; |
| 16 | 14 | |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | */ |
| 167 | 167 | public function getVariable(string $key) |
| 168 | 168 | { |
| 169 | - if(isset($this->variable[$key])) { |
|
| 169 | + if (isset($this->variable[$key])) { |
|
| 170 | 170 | return $this->variable[$key]; |
| 171 | 171 | } |
| 172 | 172 | |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | */ |
| 182 | 182 | public function hasVariable(string $key) :bool |
| 183 | 183 | { |
| 184 | - if(isset($this->variable[$key])) { |
|
| 184 | + if (isset($this->variable[$key])) { |
|
| 185 | 185 | return true; |
| 186 | 186 | } |
| 187 | 187 | |
@@ -196,7 +196,7 @@ discard block |
||
| 196 | 196 | */ |
| 197 | 197 | public function setVariables(array $variables = []) |
| 198 | 198 | { |
| 199 | - foreach($variables AS $key=>$value) { |
|
| 199 | + foreach ($variables AS $key=>$value) { |
|
| 200 | 200 | $this->setVariable($key, $value); |
| 201 | 201 | } |
| 202 | 202 | |
@@ -290,7 +290,7 @@ discard block |
||
| 290 | 290 | */ |
| 291 | 291 | public function __call($name, $arguments) |
| 292 | 292 | { |
| 293 | - $coreViewHelper = __NAMESPACE__ . '\Helper\\' . ucfirst($name); |
|
| 293 | + $coreViewHelper = __NAMESPACE__ . '\Helper\\' . ucfirst($name); |
|
| 294 | 294 | |
| 295 | 295 | // if (!empty($this->viewHelpers[$coreViewHelper])) { |
| 296 | 296 | // return $this->_callUserFuncArray($this->viewHelpers[$coreViewHelper], $arguments); |
@@ -351,8 +351,8 @@ discard block |
||
| 351 | 351 | */ |
| 352 | 352 | public function __destruct() |
| 353 | 353 | { |
| 354 | - unset( $this->variable ); |
|
| 355 | - unset( $this->template ); |
|
| 354 | + unset($this->variable); |
|
| 355 | + unset($this->template); |
|
| 356 | 356 | } |
| 357 | 357 | |
| 358 | 358 | } |
| 359 | 359 | \ No newline at end of file |
@@ -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 |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Faulancer\Event; |
| 4 | 4 | |
| 5 | -use Faulancer\Exception\Exception; |
|
| 6 | 5 | use Faulancer\Exception\ServiceNotFoundException; |
| 7 | 6 | use Faulancer\Service\Config; |
| 8 | 7 | use Faulancer\ServiceLocator\ServiceLocator; |
@@ -7,7 +7,6 @@ |
||
| 7 | 7 | namespace Faulancer\View\Helper; |
| 8 | 8 | |
| 9 | 9 | use Faulancer\View\AbstractViewHelper; |
| 10 | -use Faulancer\View\ViewController; |
|
| 11 | 10 | |
| 12 | 11 | /** |
| 13 | 12 | * Class CodeBlock |