Completed
Push — master ( d1f988...f71ca9 )
by Markus
06:41 queued 01:25
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/session.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
         "session" => [
9 9
             "active" => defined("ANAX_WITH_SESSION") && ANAX_WITH_SESSION, // true|false
10 10
             "shared" => true,
11
-            "callback" => function () {
11
+            "callback" => function() {
12 12
                 $session = new \Anax\Session\Session();
13 13
 
14 14
                 // Load the configuration files
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
                 $config = $cfg->load("session");
17 17
 
18 18
                 // Set session name
19
-                $name = $config["config"]["name"] ?? null;
19
+                $name = $config[ "config" ][ "name" ] ?? null;
20 20
                 if (is_string($name)) {
21 21
                     $session->name($name);
22 22
                 }
Please login to merge, or discard this patch.
config/di/url.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
     "services" => [
7 7
         "url" => [
8 8
             "shared" => true,
9
-            "callback" => function () {
9
+            "callback" => function() {
10 10
                 $url = new \Anax\Url\Url();
11 11
                 $request = $this->get("request");
12 12
                 $url->setSiteUrl($request->getSiteUrl());
Please login to merge, or discard this patch.
config/di/content.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,15 +8,15 @@
 block discarded – undo
8 8
     "services" => [
9 9
         "content" => [
10 10
             "shared" => true,
11
-            "callback" => function () {
11
+            "callback" => function() {
12 12
                 $content = new \Anax\Content\FileBasedContent();
13 13
                 $content->setDI($this);
14 14
 
15 15
                 // Load the configuration files
16 16
                 $cfg = $this->get("configuration");
17 17
                 $config = $cfg->load("content.php");
18
-                $config = $config["config"] ?? null;
19
-                $file = $config["file"] ?? null;
18
+                $config = $config[ "config" ] ?? null;
19
+                $file = $config[ "file" ] ?? null;
20 20
 
21 21
                 $content->configure($config);
22 22
 
Please login to merge, or discard this patch.
config/di/view.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,22 +7,22 @@
 block discarded – undo
7 7
         "view" => [
8 8
             "active" => false,
9 9
             "shared" => true,
10
-            "callback" => function () {
10
+            "callback" => function() {
11 11
                 $view = new \Anax\View\ViewCollection();
12 12
                 $view->setDI($this);
13 13
 
14 14
                 // Load the configuration files
15 15
                 $cfg = $this->get("configuration");
16 16
                 $config = $cfg->load("view.php");
17
-                $file = $config["file"] ?? null;
17
+                $file = $config[ "file" ] ?? null;
18 18
 
19
-                $paths = $config["config"]["paths"] ?? null;
19
+                $paths = $config[ "config" ][ "paths" ] ?? null;
20 20
                 if (!$paths) {
21 21
                     throw new Exception("Configuration file '$file' has no key 'paths', its needed.");
22 22
                 }
23 23
                 $view->setPaths($paths);
24 24
 
25
-                $suffix = $config["config"]["suffix"] ?? null;
25
+                $suffix = $config[ "config" ][ "suffix" ] ?? null;
26 26
                 if ($suffix) {
27 27
                     $view->setSuffix($suffix);
28 28
                 }
Please login to merge, or discard this patch.
config/di/db.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
     "services" => [
8 8
         "db" => [
9 9
             "shared" => true,
10
-            "callback" => function () {
10
+            "callback" => function() {
11 11
                 $db = new \Anax\Database\Database();
12 12
 
13 13
                 // Load the configuration files
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
                 $config = $cfg->load("database");
16 16
 
17 17
                 // Set the database configuration
18
-                $connection = $config["config"] ?? [];
18
+                $connection = $config[ "config" ] ?? [ ];
19 19
                 $db->setOptions($connection);
20 20
 
21 21
                 return $db;
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/cache.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -8,22 +8,22 @@
 block discarded – undo
8 8
     "services" => [
9 9
         "cache" => [
10 10
             "shared" => true,
11
-            "callback" => function () {
11
+            "callback" => function() {
12 12
                 $cache = new \Anax\Cache\FileCache();
13 13
 
14 14
                 // Load the configuration files
15 15
                 $cfg = $this->get("configuration");
16 16
                 $config = $cfg->load("cache.php");
17
-                $file = $config["file"] ?? null;
18
-                $config = $config["config"] ?? null;
17
+                $file = $config[ "file" ] ?? null;
18
+                $config = $config[ "config" ] ?? null;
19 19
 
20
-                $path = $config["basePath"] ?? null;
20
+                $path = $config[ "basePath" ] ?? null;
21 21
                 if (!$path || !is_dir($path) || !is_writable($path)) {
22 22
                     throw new Exception("Configuration file '$file': Cachedir '$path' is not a writable directory.");
23 23
                 }
24 24
                 $cache->setPath($path);
25 25
 
26
-                $timeToLive = $config["timeToLive"] ?? null;
26
+                $timeToLive = $config[ "timeToLive" ] ?? null;
27 27
                 if ($timeToLive) {
28 28
                     $cache->setTimeToLive($timeToLive);
29 29
                 }
Please login to merge, or discard this patch.
config/di/dbqb.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
     "services" => [
8 8
         "dbqb" => [
9 9
             "shared" => true,
10
-            "callback" => function () {
10
+            "callback" => function() {
11 11
                 $db = new \Anax\DatabaseQueryBuilder\DatabaseQueryBuilder();
12 12
 
13 13
                 // Load the configuration files
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
                 $config = $cfg->load("database");
16 16
 
17 17
                 // Set the database configuration
18
-                $connection = $config["config"] ?? [];
18
+                $connection = $config[ "config" ] ?? [ ];
19 19
                 $db->setOptions($connection);
20 20
                 $db->setDefaultsFromConfiguration();
21 21
 
Please login to merge, or discard this patch.