Test Failed
Push — master ( 48b312...4a9e1d )
by Marcus
02:26
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/apikey_sample.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -4,18 +4,18 @@
 block discarded – undo
4 4
  *
5 5
  */
6 6
 
7
- return [
8
-     // API KEY for https://ipstack.com/documentation
9
-     'ipstack' => [
10
-         "apiKey"        => "novalid26f994350ae2943e96aa8a",
11
-         "apiUrl"        => "http://api.ipstack.com/",
12
-         "apiExample"    => "http://api.ipstack.com/134.201.250.155?access_key=novalid26f994350ae2943e96aa8a"
13
-     ],
14
-     // API KEY for https://darksky.net/dev
15
-     'darksky' => [
16
-         "apiKey"        => "novalid26f994350ae2943e96aa8a",
17
-         "apiUrl"        => "https://api.darksky.net/forecast/",
18
-         "apiExtension"  => "?lang=sv&units=si&exclude=minutely,hourly,alerts,flags",
19
-         "apiExample"    => "https://api.darksky.net/forecast/novalid26f994350ae2943e96aa8a/37.8267,-122.4233"
20
-     ]
21
- ];
7
+    return [
8
+        // API KEY for https://ipstack.com/documentation
9
+        'ipstack' => [
10
+            "apiKey"        => "novalid26f994350ae2943e96aa8a",
11
+            "apiUrl"        => "http://api.ipstack.com/",
12
+            "apiExample"    => "http://api.ipstack.com/134.201.250.155?access_key=novalid26f994350ae2943e96aa8a"
13
+        ],
14
+        // API KEY for https://darksky.net/dev
15
+        'darksky' => [
16
+            "apiKey"        => "novalid26f994350ae2943e96aa8a",
17
+            "apiUrl"        => "https://api.darksky.net/forecast/",
18
+            "apiExtension"  => "?lang=sv&units=si&exclude=minutely,hourly,alerts,flags",
19
+            "apiExample"    => "https://api.darksky.net/forecast/novalid26f994350ae2943e96aa8a/37.8267,-122.4233"
20
+        ]
21
+    ];
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.