@@ -21,7 +21,9 @@ |
||
21 | 21 | public function getH1($elseTitle = false): ?string |
22 | 22 | { |
23 | 23 | if ($elseTitle) { |
24 | - return ShortCodeConverter::do($this->h1 ?? $this->title ?? '', $this->getLocale()); |
|
24 | + return ShortCodeConverter::do { |
|
25 | + ($this->h1 ?? $this->title ?? '', $this->getLocale()); |
|
26 | + } |
|
25 | 27 | } |
26 | 28 | |
27 | 29 | return $this->h1; |
@@ -4,11 +4,13 @@ |
||
4 | 4 | |
5 | 5 | class ShortCodeConverter |
6 | 6 | { |
7 | - public static function do($string, $locale = null) |
|
7 | + public static function do { |
|
8 | + ($string, $locale = null) |
|
8 | 9 | { |
9 | 10 | //var_dump($string); exit; |
10 | 11 | if ($locale) { |
11 | 12 | setlocale(LC_TIME, self::convertLocale($locale)); |
13 | + } |
|
12 | 14 | } |
13 | 15 | |
14 | 16 | //$string = preg_replace('/date\([\'"]?([a-z% ]+)[\'"]?\)/i', |
@@ -30,8 +30,9 @@ |
||
30 | 30 | { |
31 | 31 | if ($input->getArgument('host')) { |
32 | 32 | $this->staticAppGenerator->generateFromHost($input->getArgument('host')); |
33 | - } else |
|
34 | - $this->staticAppGenerator->generateAll(); |
|
33 | + } else { |
|
34 | + $this->staticAppGenerator->generateAll(); |
|
35 | + } |
|
35 | 36 | |
36 | 37 | $output->writeln('Static version generation succeeded.'); |
37 | 38 | } |
@@ -409,8 +409,7 @@ |
||
409 | 409 | // todo |
410 | 410 | //$this->addRedirection($liveUri, getRedirectUri) |
411 | 411 | return; |
412 | - } |
|
413 | - elseif (200 != $response->getStatusCode()) { |
|
412 | + } elseif (200 != $response->getStatusCode()) { |
|
414 | 413 | // todo log context |
415 | 414 | return; |
416 | 415 | } |