@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Phauthentic\Presentation\Renderer\Exception; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Phauthentic\Presentation\Renderer\Exception; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Phauthentic\Presentation\Renderer\Exception; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Phauthentic\Presentation\Renderer; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Phauthentic\Presentation\Renderer; |
5 | 5 |
@@ -1,5 +1,5 @@ discard block |
||
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 |
||
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 | } |
@@ -80,12 +80,10 @@ |
||
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 | } |
@@ -46,8 +46,8 @@ |
||
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 |
@@ -1,5 +1,5 @@ discard block |
||
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 |
||
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 | } |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Phauthentic\Presentation\Renderer; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Phauthentic\Presentation\Renderer; |
5 | 5 |