Completed
Pull Request — master (#1)
by Victor DA COSTA
01:47
created
demo.php 1 patch
Braces   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,12 +17,13 @@
 block discarded – undo
17 17
 
18 18
 if (PHP_SAPI === 'cli') {
19 19
     $idspot = $argv[1];
20
-}
21
-else {
20
+} else {
22 21
     $idspot = $_GET['idspot'];
23 22
 }
24 23
 
25
-if(empty($idspot)) return;
24
+if(empty($idspot)) {
25
+    return;
26
+}
26 27
 
27 28
 $windguruAPI = new WindguruAPI();
28 29
 $windguruAPI->setSpot($idspot);
Please login to merge, or discard this patch.