Completed
Push — master ( 4a9e1d...28af2a )
by Marcus
02:23
created
src/Weather/Weather.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     public function weatherForecast($coordinates = ["lat" => 57, "lon" => 18])
61 61
     {
62 62
         // Default value on return attributes
63
-        $url    = $this->apiUrl . $this->apiKey . '/' . $coordinates["lat"] . "," . $coordinates["lon"] . $this->apiExtension;
63
+        $url = $this->apiUrl . $this->apiKey . '/' . $coordinates["lat"] . "," . $coordinates["lon"] . $this->apiExtension;
64 64
 
65 65
 
66 66
         // Initiate new curl object
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
     {
86 86
         // Create $urlArray
87 87
         $urlArray = array();
88
-        for ($i=0; $i < 30; $i++) {
88
+        for ($i = 0; $i < 30; $i++) {
89 89
             // Day to collect weather data for
90 90
             $day = $day - 24 * 60 * 60;
91 91
 
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
                 "lat" => $coord[0],
124 124
                 "lon" => $coord[1]
125 125
             ];
126
-            $coordValid =  $coordinates["lat"] >= -90 &&
126
+            $coordValid = $coordinates["lat"] >= -90 &&
127 127
                             $coordinates["lat"] <= 90 &&
128 128
                             $coordinates["lon"] >= -180 &&
129 129
                             $coordinates["lon"] <= 180
Please login to merge, or discard this patch.
src/Weather/Ip.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     {
41 41
         // Default value on return attributes
42 42
         $valid      = false;
43
-        $ipType    = false;
43
+        $ipType = false;
44 44
         $hostname   = false;
45 45
 
46 46
         // Check if IP is valid either as a IPV4 or an IPV6
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
     public function ipInfo($ipAddress)
110 110
     {
111 111
         // Default value on return attributes
112
-        $url    = $this->apiUrl . $ipAddress . '?access_key=' . $this->apiKey;
112
+        $url = $this->apiUrl . $ipAddress . '?access_key=' . $this->apiKey;
113 113
 
114 114
         // Initiate new curl object
115 115
         $curl = new \Mahw17\Weather\Curl();
Please login to merge, or discard this patch.
config/di/weather.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
     "services" => [
8 8
         "weather" => [
9 9
             "shared" => true,
10
-            "callback" => function () {
10
+            "callback" => function() {
11 11
 
12 12
                 // Load the configuration files
13 13
                 $cfg = $this->get("configuration");
Please login to merge, or discard this patch.