Completed
Push — master ( de65a0...44f440 )
by jesper
02:56
created
config/di/configuration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
     "services" => [
9 9
         "configuration" => [
10 10
             "shared" => true,
11
-            "callback" => function () {
11
+            "callback" => function() {
12 12
                 $config = new \Anax\Configure\Configuration();
13 13
                 $dirs = require ANAX_INSTALL_PATH . "/config/configuration.php";
14 14
                 $config->setBaseDirectories($dirs);
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
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
     "services" => [
9 9
         "weather" => [
10 10
             "shared" => true,
11
-            "callback" => function () {
11
+            "callback" => function() {
12 12
                 $weather = new \Anax\Weather\WeatherModel();
13 13
 
14 14
                 // Load the configuration files
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
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
     "services" => [
9 9
         "curl" => [
10 10
             "shared" => true,
11
-            "callback" => function () {
11
+            "callback" => function() {
12 12
                 $curl = new \Anax\Curl\CurlModel();
13 13
 
14 14
                 return $curl;
Please login to merge, or discard this patch.
src/function.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@
 block discarded – undo
164 164
 function slugify($str)
165 165
 {
166 166
     $str = mb_strtolower(trim($str));
167
-    $str = str_replace(['å','ä'], 'a', $str);
167
+    $str = str_replace(['å', 'ä'], 'a', $str);
168 168
     $str = str_replace('ö', 'o', $str);
169 169
     $str = preg_replace('/[^a-z0-9-]/', '-', $str);
170 170
     $str = trim(preg_replace('/-+/', '-', $str), '-');
Please login to merge, or discard this patch.
src/Weather/WeatherModel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
                 "message" => "Unvalid amount of days."
109 109
             ];
110 110
         }
111
-        for ($i=1; $i < $days + 1; $i++) {
111
+        for ($i = 1; $i < $days + 1; $i++) {
112 112
             $time = time() - ($i * 60 * 60 * 24);
113 113
             $allRequests[] = $url . "," . $time . $this->options;
114 114
         }
Please login to merge, or discard this patch.