Test Setup Failed
Push — master ( d2b078...be9550 )
by Edward
02:10
created
config/di/request.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
         "request" => [
9 9
             "shared" => true,
10
-            "callback" => function () {
10
+            "callback" => function() {
11 11
                 $obj = new \Anax\Request\Request();
12 12
                 $obj->init();
13 13
                 return $obj;
Please login to merge, or discard this patch.
config/di/page.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
         "page" => [
10 10
             "shared" => true,
11
-            "callback" => function () {
11
+            "callback" => function() {
12 12
                 $page = new \Anax\Page\Page();
13 13
                 $page->setDI($this);
14 14
 
Please login to merge, or discard this patch.
config/di/response.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
         "response" => [
10 10
             "shared" => true,
11 11
             //"callback" => "\Anax\Response\Response",
12
-            "callback" => function () {
12
+            "callback" => function() {
13 13
                 $obj = new \Anax\Response\ResponseUtility();
14 14
                 $obj->setDI($this);
15 15
                 return $obj;
Please login to merge, or discard this patch.
config/di/configuration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,9 +8,9 @@
 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
-                $dirs = require ANAX_INSTALL_PATH . "/config/configuration.php";
13
+                $dirs = require ANAX_INSTALL_PATH."/config/configuration.php";
14 14
                 $config->setBaseDirectories($dirs);
15 15
                 return $config;
16 16
             }
Please login to merge, or discard this patch.
config/content.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
 return [
6 6
     // Use for styling the menu
7 7
     //"basePath" => ANAX_APP_PATH . "/content",
8
-    "basePath" => ANAX_INSTALL_PATH . "/content",
8
+    "basePath" => ANAX_INSTALL_PATH."/content",
9 9
 
10 10
     // Use or ignore using the cache, default is false.
11 11
     // During development it might be good to ignore the cache, but not
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 
40 40
     // Wrapper for section of revision history
41 41
     "revision-history" => [
42
-        "start" => "\n\n\n" . t("Revision history") . " {#revision}\n-------------\n\n<span class=\"revision-history\">\n",
42
+        "start" => "\n\n\n".t("Revision history")." {#revision}\n-------------\n\n<span class=\"revision-history\">\n",
43 43
         "end"   => "</span>\n",
44 44
         "class" => "revision-history",
45 45
     ],
Please login to merge, or discard this patch.
config/view.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,8 +6,8 @@
 block discarded – undo
6 6
     // Paths to look for views, without ending slash.
7 7
     "paths" => [
8 8
         //ANAX_APP_PATH . "/view",
9
-        ANAX_INSTALL_PATH . "/view",
10
-        ANAX_INSTALL_PATH . "/vendor/anax/view/view",
9
+        ANAX_INSTALL_PATH."/view",
10
+        ANAX_INSTALL_PATH."/vendor/anax/view/view",
11 11
     ],
12 12
 
13 13
     // File suffix for template files
Please login to merge, or discard this patch.
config/page.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
             "region" => "navbar",
38 38
             "sort" => -1,
39 39
             "data" => [
40
-                "navbar" => require __DIR__ . "/navbar.php",
40
+                "navbar" => require __DIR__."/navbar.php",
41 41
             ],
42 42
         ],
43 43
         [
Please login to merge, or discard this patch.
config/configuration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,5 +9,5 @@
 block discarded – undo
9 9
 
10 10
 return [
11 11
     //ANAX_APP_PATH . "/config",
12
-    ANAX_INSTALL_PATH . "/config",
12
+    ANAX_INSTALL_PATH."/config",
13 13
 ];
Please login to merge, or discard this patch.
src/Weather/WeatherIpController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
         $currentIp = $this->object->validateIp($this->ipAddress);
56 56
 
57
-        $accessKey  = '49a95e2b98f16776978bbf2d3097c542';
57
+        $accessKey = '49a95e2b98f16776978bbf2d3097c542';
58 58
         $details = $this->requester->curlJson('http://api.ipstack.com/'.$currentIp.'?access_key='.$accessKey);
59 59
         $weather = $this->multiCurlJson($details);
60 60
 
@@ -72,22 +72,22 @@  discard block
 block discarded – undo
72 72
 
73 73
     public function multiCurlJson($details)
74 74
     {
75
-        $accessKey  = '29b7a65dbbc991295815b55e7a37f93b';
75
+        $accessKey = '29b7a65dbbc991295815b55e7a37f93b';
76 76
 
77 77
         $multiRequests = [];
78 78
         #future weather
79 79
         if ($this->time === "future") {
80
-            for ($i=0; $i < 7; $i++) {
80
+            for ($i = 0; $i < 7; $i++) {
81 81
                 $unixTime = time() + ($i * 24 * 60 * 60);
82
-                $multiRequests[] = 'https://api.darksky.net/forecast/'.$accessKey .'/'.$details['latitude'].','.$details['longitude'].','.$unixTime.'?exclude=minutely,hourly,daily,flags';
82
+                $multiRequests[] = 'https://api.darksky.net/forecast/'.$accessKey.'/'.$details['latitude'].','.$details['longitude'].','.$unixTime.'?exclude=minutely,hourly,daily,flags';
83 83
             }
84 84
         }
85 85
 
86 86
         #previous weather
87 87
         if ($this->time === "past") {
88
-            for ($i=0; $i < 30; $i++) {
88
+            for ($i = 0; $i < 30; $i++) {
89 89
                 $unixTime = time() - ($i * 24 * 60 * 60);
90
-                $multiRequests[] = 'https://api.darksky.net/forecast/'.$accessKey .'/'.$details['latitude'].','.$details['longitude'].','.$unixTime.'?exclude=minutely,hourly,daily,flags';
90
+                $multiRequests[] = 'https://api.darksky.net/forecast/'.$accessKey.'/'.$details['latitude'].','.$details['longitude'].','.$unixTime.'?exclude=minutely,hourly,daily,flags';
91 91
             }
92 92
         }
93 93
 
Please login to merge, or discard this patch.