@@ -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 | |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | |
86 | 86 | if (!empty($content['stderr'])) { |
87 | 87 | throw new RuntimeException(sprintf( |
88 | - 'System error "%s" when executing command "%s". ' . |
|
88 | + 'System error "%s" when executing command "%s". '. |
|
89 | 89 | 'Try using the binary provided on http://wkhtmltopdf.org/downloads.html', |
90 | 90 | $content['stderr'], |
91 | 91 | $command |
@@ -143,13 +143,13 @@ discard block |
||
143 | 143 | $margin = $pdfView->getMargin(); |
144 | 144 | foreach ($margin as $key => $value) { |
145 | 145 | if ($value !== null) { |
146 | - $options['margin-' . $key] = $value . 'mm'; |
|
146 | + $options['margin-'.$key] = $value.'mm'; |
|
147 | 147 | } |
148 | 148 | } |
149 | - $options = array_merge($options, (array)$this->options); |
|
149 | + $options = array_merge($options, (array) $this->options); |
|
150 | 150 | |
151 | 151 | if ($this->isWindowsEnvironment) { |
152 | - $command = '"' . $this->binary . '"'; |
|
152 | + $command = '"'.$this->binary.'"'; |
|
153 | 153 | } else { |
154 | 154 | $command = $this->binary; |
155 | 155 | } |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | $command .= sprintf(' --%s %s %s', $key, escapeshellarg($k), escapeshellarg($v)); |
163 | 163 | } |
164 | 164 | } elseif ($value === true) { |
165 | - $command .= ' --' . $key; |
|
165 | + $command .= ' --'.$key; |
|
166 | 166 | } else { |
167 | 167 | $command .= sprintf(' --%s %s', $key, escapeshellarg($value)); |
168 | 168 | } |
@@ -170,20 +170,20 @@ discard block |
||
170 | 170 | $footer = $pdfView->footer(); |
171 | 171 | foreach ($footer as $location => $text) { |
172 | 172 | if ($text !== null) { |
173 | - $command .= " --footer-$location \"" . addslashes($text) . "\""; |
|
173 | + $command .= " --footer-$location \"".addslashes($text)."\""; |
|
174 | 174 | } |
175 | 175 | } |
176 | 176 | |
177 | 177 | $header = $pdfView->header(); |
178 | 178 | foreach ($header as $location => $text) { |
179 | 179 | if ($text !== null) { |
180 | - $command .= " --header-$location \"" . addslashes($text) . "\""; |
|
180 | + $command .= " --header-$location \"".addslashes($text)."\""; |
|
181 | 181 | } |
182 | 182 | } |
183 | 183 | $command .= " - -"; |
184 | 184 | |
185 | 185 | if ($this->isWindowsEnvironment) { |
186 | - $command = '"' . $command . '"'; |
|
186 | + $command = '"'.$command.'"'; |
|
187 | 187 | } |
188 | 188 | |
189 | 189 | return $command; |
@@ -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 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Phauthentic\Presentation\Service; |
5 | 5 |
@@ -90,8 +90,8 @@ discard block |
||
90 | 90 | */ |
91 | 91 | public function getTemplatePathFromRequest(ServerRequestInterface $request): string |
92 | 92 | { |
93 | - $module = (string)$request->getAttribute('module'); |
|
94 | - $component = (string)$request->getAttribute('component'); |
|
93 | + $module = (string) $request->getAttribute('module'); |
|
94 | + $component = (string) $request->getAttribute('component'); |
|
95 | 95 | |
96 | 96 | $module = empty($module) ? '' : $module; |
97 | 97 | $component = empty($component) ? 'default' : $component; |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | } |
105 | 105 | |
106 | 106 | if (!empty($module)) { |
107 | - return $module . DIRECTORY_SEPARATOR . $component; |
|
107 | + return $module.DIRECTORY_SEPARATOR.$component; |
|
108 | 108 | } |
109 | 109 | |
110 | 110 | return $component; |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | */ |
118 | 118 | public function getTemplateFromRequest(ServerRequestInterface $request): string |
119 | 119 | { |
120 | - $action = (string)$request->getAttribute('action'); |
|
120 | + $action = (string) $request->getAttribute('action'); |
|
121 | 121 | |
122 | 122 | if (empty($action)) { |
123 | 123 | return 'default'; |
@@ -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 @@ |
||
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 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Phauthentic\Presentation\View; |
5 | 5 |