Passed
Push — master ( d8158c...fdfcd6 )
by Flo
04:19 queued 02:20
created
src/Controller/ErrorController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/View/Helper/Route.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
 
68 68
         }
69 69
 
70
-        $path = str_replace('//' , '/', $path);
70
+        $path = str_replace('//', '/', $path);
71 71
 
72 72
         if ($absolute) {
73 73
 
Please login to merge, or discard this patch.
src/Http/XmlResponse.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Log/Writer/DefaultWriter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Form/Type/AbstractType.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -295,7 +295,7 @@
 block discarded – undo
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'])) {
Please login to merge, or discard this patch.
src/View/ViewController.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -339,7 +339,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
src/View/Helper/RenderView.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,8 +33,8 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/View/Helper/RenderBlock.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
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));
Please login to merge, or discard this patch.
src/Service/AuthenticatorService.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,8 +3,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.