Passed
Push — master ( 4109cd...3773bc )
by Dev
13:23
created
src/Entity/PageTrait.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,9 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Service/ShortCodeConverter.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,11 +4,13 @@
 block discarded – undo
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',
Please login to merge, or discard this patch.
src/StaticGenerator/StaticCommand.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,8 +30,9 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/PageScanner/PageScannerService.php 1 patch
Braces   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -91,8 +91,7 @@  discard block
 block discarded – undo
91 91
         if ($response->isRedirect()) {
92 92
             $linkedDocs[] = $response->headers->get('location');
93 93
             return;
94
-        }
95
-        elseif (200 != $response->getStatusCode()) {
94
+        } elseif (200 != $response->getStatusCode()) {
96 95
             $this->addError('error on generating the page ('.$response->getStatusCode().')');
97 96
             exit;
98 97
             return;
@@ -162,8 +161,9 @@  discard block
 block discarded – undo
162 161
     {
163 162
         foreach ($linkedDocs as $uri) {
164 163
             $this->linksCheckedCounter++;
165
-            if (!is_string($uri))
166
-                continue;
164
+            if (!is_string($uri)) {
165
+                            continue;
166
+            }
167 167
             if (($uri[0] == '/' && !$this->uriExist($uri) )
168 168
                 || (strpos($uri, 'http') === 0 && !$this->urlExist($uri))) {
169 169
                 $this->addError('<code>'.$uri.'</code> introuvable');
Please login to merge, or discard this patch.
src/StaticGenerator/StaticAppGenerator.php 1 patch
Braces   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -390,11 +390,11 @@
 block discarded – undo
390 390
             // todo
391 391
             //$this->addRedirection($liveUri, getRedirectUri)
392 392
             return;
393
-        }
394
-        elseif (200 != $response->getStatusCode()) {
393
+        } elseif (200 != $response->getStatusCode()) {
395 394
             //$this->kernel = static::$appKernel;
396
-            if ($response->getStatusCode() === 500 && $this->kernel->getEnvironment() == 'dev')
397
-                exit($this->kernel->handle($request));
395
+            if ($response->getStatusCode() === 500 && $this->kernel->getEnvironment() == 'dev') {
396
+                            exit($this->kernel->handle($request));
397
+            }
398 398
 
399 399
             return;
400 400
         }
Please login to merge, or discard this patch.