@@ -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 @@ 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\Service; |
5 | 5 |
@@ -60,7 +60,7 @@ |
||
60 | 60 | $this->responseFactory = $responseFactory; |
61 | 61 | } |
62 | 62 | |
63 | - /** |
|
63 | + /** |
|
64 | 64 | * Adds a renderer and maps it to an output type |
65 | 65 | * |
66 | 66 | * @return $this |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Phauthentic\Presentation\Service; |
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\View; |
5 | 5 | |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | * @param null|string $pageSize Page size to set |
206 | 206 | * @return \Phauthentic\Presentation\View\PdfViewInterface |
207 | 207 | */ |
208 | - public function setPageSize(?string $pageSize ): PdfViewInterface |
|
208 | + public function setPageSize(?string $pageSize): PdfViewInterface |
|
209 | 209 | { |
210 | 210 | $this->pageSize = $pageSize; |
211 | 211 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Phauthentic\Presentation\View; |
5 | 5 |
@@ -75,7 +75,7 @@ |
||
75 | 75 | } |
76 | 76 | |
77 | 77 | if (!is_object($helper)) { |
78 | - throw new RuntimeException(sprintf('%s is not an object, %s given', $name, gettype($helper))); |
|
78 | + throw new RuntimeException(sprintf('%s is not an object, %s given', $name, gettype($helper))); |
|
79 | 79 | } |
80 | 80 | return $helper; |
81 | 81 | } |
@@ -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\View; |
5 | 5 | |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | return; |
69 | 69 | } |
70 | 70 | |
71 | - $helper = $this->helpers()->get($this->containerNamespacePrefix . $name); |
|
71 | + $helper = $this->helpers()->get($this->containerNamespacePrefix.$name); |
|
72 | 72 | |
73 | 73 | if ($helper instanceof ViewAwareInterface) { |
74 | 74 | $helper->setView($this); |