Test Failed
Branch master (db7808)
by Florian
04:01
created
src/Renderer/Exception/MissingTemplateFolderException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 
4 4
 namespace Phauthentic\Presentation\Renderer\Exception;
5 5
 
Please login to merge, or discard this patch.
src/Renderer/Exception/RendererException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 
4 4
 namespace Phauthentic\Presentation\Renderer\Exception;
5 5
 
Please login to merge, or discard this patch.
src/Renderer/Exception/MissingTemplateException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 
4 4
 namespace Phauthentic\Presentation\Renderer\Exception;
5 5
 
Please login to merge, or discard this patch.
src/Renderer/RendererInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 
4 4
 namespace Phauthentic\Presentation\Renderer;
5 5
 
Please login to merge, or discard this patch.
src/Renderer/CakePHPRenderer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 
4 4
 namespace Phauthentic\Presentation\Renderer;
5 5
 
Please login to merge, or discard this patch.
src/Renderer/SimpleXMLRenderer.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 
4 4
 namespace Phauthentic\Presentation\Renderer;
5 5
 
@@ -75,18 +75,18 @@  discard block
 block discarded – undo
75 75
      */
76 76
     protected function arrayToXml(array $data, SimpleXMLElement &$xmlData): void
77 77
     {
78
-        foreach($data as $key => $value) {
79
-            if(is_array($value)) {
80
-                if(!is_numeric($key)){
78
+        foreach ($data as $key => $value) {
79
+            if (is_array($value)) {
80
+                if (!is_numeric($key)) {
81 81
                     $subnode = $xmlData->addChild("$key");
82 82
                     $this->arrayToXml($value, $subnode);
83 83
                 }
84
-                else{
84
+                else {
85 85
                     $this->arrayToXml($value, $xmlData);
86 86
                 }
87 87
             }
88 88
             else {
89
-                $xmlData->addChild("$key","$value");
89
+                $xmlData->addChild("$key", "$value");
90 90
             }
91 91
         }
92 92
     }
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -80,12 +80,10 @@
 block discarded – undo
80 80
                 if(!is_numeric($key)){
81 81
                     $subnode = $xmlData->addChild("$key");
82 82
                     $this->arrayToXml($value, $subnode);
83
-                }
84
-                else{
83
+                } else{
85 84
                     $this->arrayToXml($value, $xmlData);
86 85
                 }
87
-            }
88
-            else {
86
+            } else {
89 87
                 $xmlData->addChild("$key","$value");
90 88
             }
91 89
         }
Please login to merge, or discard this patch.
src/Renderer/TemplateFolderCollection.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,8 +46,8 @@
 block discarded – undo
46 46
 
47 47
         if (!is_dir($folder)) {
48 48
             throw new MissingTemplateFolderException(sprintf(
49
-               'The folder %s does not exist or is not a folder',
50
-               $folder
49
+                'The folder %s does not exist or is not a folder',
50
+                $folder
51 51
             ));
52 52
         }
53 53
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 
4 4
 namespace Phauthentic\Presentation\Renderer;
5 5
 
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      */
30 30
     public function __construct(array $folders)
31 31
     {
32
-        foreach($folders as $folder) {
32
+        foreach ($folders as $folder) {
33 33
             $this->add($folder);
34 34
         }
35 35
     }
Please login to merge, or discard this patch.
src/Renderer/AbstractBaseRenderer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 
4 4
 namespace Phauthentic\Presentation\Renderer;
5 5
 
Please login to merge, or discard this patch.
src/Renderer/Utility.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 
4 4
 namespace Phauthentic\Presentation\Renderer;
5 5
 
Please login to merge, or discard this patch.