Completed
Branch master (1edd82)
by Markus
07:29 queued 03:58
created
config/commons.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,10 +24,10 @@  discard block
 block discarded – undo
24 24
 error_reporting(-1); // Report all type of errors
25 25
 //error_reporting(E_ALL ^ E_DEPRECATED);  // Report no deprecated errors
26 26
 if (constant("ANAX_DEVELOPMENT")) {
27
-    ini_set("display_errors", 1);  // Display all errors
27
+    ini_set("display_errors", 1); // Display all errors
28 28
 } elseif (constant("ANAX_PRODUCTION")) {
29
-    ini_set("display_errors", 0);  // Display no errors
30
-    ini_set("log_errors", 1);      // Log errors to file error_log
29
+    ini_set("display_errors", 0); // Display no errors
30
+    ini_set("log_errors", 1); // Log errors to file error_log
31 31
     ini_set("error_log", ANAX_INSTALL_PATH . "/log/error_log");
32 32
 }
33 33
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 /**
37 37
  * Default exception handler.
38 38
  */
39
-set_exception_handler(function ($e) {
39
+set_exception_handler(function($e) {
40 40
     echo "<p>Anax: Uncaught exception:</p><p>Line "
41 41
         . $e->getLine()
42 42
         . " in file "
Please login to merge, or discard this patch.
config/di/textfilter.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
         "textfilter" => [
8 8
             "shared" => true,
9
-            "callback" => function () {
9
+            "callback" => function() {
10 10
                 $filter = new \Anax\TextFilter\TextFilter();
11 11
                 if (is_dir(ANAX_INSTALL_PATH . "/content")) {
12 12
                     $filter->setFilterConfig("frontmatter", [
Please login to merge, or discard this patch.
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/curl.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
     "services" => [
5 5
         "curl" => [
6 6
             "shared" => true,
7
-            "callback" => function () {
7
+            "callback" => function() {
8 8
                 $curlWrap = new \Anax\Models\CurlWrapModel();
9 9
                 return $curlWrap;
10 10
             }
Please login to merge, or discard this patch.
config/di/page.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -8,22 +8,22 @@
 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
 
15 15
                 // Load the configuration files
16 16
                 $cfg = $this->get("configuration");
17 17
                 $config = $cfg->load("page.php");
18
-                $file = $config["file"] ?? null;
18
+                $file = $config[ "file" ] ?? null;
19 19
 
20 20
                 // Add all views from configuration
21
-                $views = $config["config"]["views"] ?? [];
21
+                $views = $config[ "config" ][ "views" ] ?? [ ];
22 22
                 foreach ($views as $view) {
23 23
                     $page->add($view);
24 24
                 }
25 25
 
26
-                $layout = $config["config"]["layout"] ?? null;
26
+                $layout = $config[ "config" ][ "layout" ] ?? null;
27 27
                 if (!$layout) {
28 28
                     throw new Exception("Missing configuration for layout in file '$file', its needed.");
29 29
                 }
Please login to merge, or discard this patch.
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.