Test Failed
Branch main (b5089d)
by Nils
02:24 queued 38s
created
view/nihl/weatherreport/history.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,6 +31,9 @@
 block discarded – undo
31 31
         <?php endforeach; ?>
32 32
     </tbody>
33 33
 </table>
34
-<?php else : ?>
34
+<?php else {
35
+    : ?>
35 36
 <p>Ingen väderinformation kunde hittas för den platsen.</p>
36
-<?php endif; ?>
37
+<?php endif;
38
+}
39
+?>
Please login to merge, or discard this patch.
view/nihl/weatherreport/result.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,4 +13,4 @@
 block discarded – undo
13 13
 <?php if ($message) : ?>
14 14
 <h4>Error:</h4>
15 15
 <p> <?= $message ?></p>
16
-<?php endif;?>
16
+<?php endif; ?>
Please login to merge, or discard this patch.
view/nihl/weatherreport/current.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,8 +33,11 @@
 block discarded – undo
33 33
         </tr>
34 34
     </tbody>
35 35
 </table>
36
-<?php else : ?>
36
+<?php else {
37
+    : ?>
37 38
 <h3>Inget resultat</h3>
38 39
 <p>Ingen väderinformation kunde hittas för den platsen.</p>
39 40
 <p><?= $current["message"]?></p>
40
-<?php endif; ?>
41
+<?php endif;
42
+}
43
+?>
Please login to merge, or discard this patch.
config/di/ipvalidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
             // Callback executed when service is activated
18 18
             // Create the service, load its configuration (if any)
19 19
             // and set it up.
20
-            "callback" => function () {
20
+            "callback" => function() {
21 21
                 $ipvalidator = new \Nihl\IPValidator\IPValidator();
22 22
 
23 23
                 return $ipvalidator;
Please login to merge, or discard this patch.
config/di/weatherreport.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
             // Callback executed when service is activated
18 18
             // Create the service, load its configuration (if any)
19 19
             // and set it up.
20
-            "callback" => function () {
20
+            "callback" => function() {
21 21
                 $weatherreport = new \Nihl\WeatherReport\WeatherReport();
22 22
                 $weatherreport->setDi($this);
23 23
 
Please login to merge, or discard this patch.
config/di/curl.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
             // Callback executed when service is activated
18 18
             // Create the service, load its configuration (if any)
19 19
             // and set it up.
20
-            "callback" => function () {
20
+            "callback" => function() {
21 21
                 $curl = new \Nihl\RemoteService\Curl();
22 22
 
23 23
                 return $curl;
Please login to merge, or discard this patch.
config/di/geotag.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
             // Callback executed when service is activated
18 18
             // Create the service, load its configuration (if any)
19 19
             // and set it up.
20
-            "callback" => function () {
20
+            "callback" => function() {
21 21
                 $geotag = new \Nihl\RemoteService\Geotag();
22 22
                 $geotag->setDi($this);
23 23
 
Please login to merge, or discard this patch.
src/WeatherReport/WeatherReportController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
             ]);
101 101
             $this->page->add("nihl/weatherreport/ipform", ["ip" => $ip]);
102 102
 
103
-            return $this->page->render([ "title" => $title ]);
103
+            return $this->page->render(["title" => $title]);
104 104
         }
105 105
 
106 106
         $this->page->add("nihl/weatherreport/current", $data);
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
             ]);
149 149
             $this->page->add("nihl/weatherreport/geoform", []);
150 150
 
151
-            return $this->page->render([ "title" => $title ]);
151
+            return $this->page->render(["title" => $title]);
152 152
         }
153 153
 
154 154
         $this->page->add("nihl/weatherreport/current", $data);
Please login to merge, or discard this patch.
view/nihl/weatherreport/forecast.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,6 +31,9 @@
 block discarded – undo
31 31
         <?php endforeach; ?>
32 32
     </tbody>
33 33
 </table>
34
-<?php else : ?>
34
+<?php else {
35
+    : ?>
35 36
 <p>Ingen väderinformation kunde hittas för den platsen.</p>
36
-<?php endif; ?>
37
+<?php endif;
38
+}
39
+?>
Please login to merge, or discard this patch.