@@ -31,6 +31,9 @@ |
||
| 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 | +?> |
|
@@ -13,4 +13,4 @@ |
||
| 13 | 13 | <?php if ($message) : ?> |
| 14 | 14 | <h4>Error:</h4> |
| 15 | 15 | <p> <?= $message ?></p> |
| 16 | -<?php endif;?> |
|
| 16 | +<?php endif; ?> |
|
@@ -33,8 +33,11 @@ |
||
| 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 | +?> |
|
@@ -17,7 +17,7 @@ |
||
| 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; |
@@ -17,7 +17,7 @@ |
||
| 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 | |
@@ -17,7 +17,7 @@ |
||
| 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; |
@@ -17,7 +17,7 @@ |
||
| 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 | |
@@ -100,7 +100,7 @@ discard block |
||
| 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 |
||
| 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); |
@@ -31,6 +31,9 @@ |
||
| 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 | +?> |
|