@@ -8,7 +8,7 @@ |
||
| 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 | |
@@ -7,7 +7,7 @@ |
||
| 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; |
@@ -7,7 +7,7 @@ |
||
| 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 | |
@@ -8,7 +8,7 @@ |
||
| 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 | |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | "services" => [ |
| 7 | 7 | "router" => [ |
| 8 | 8 | "shared" => true, |
| 9 | - "callback" => function () { |
|
| 9 | + "callback" => function() { |
|
| 10 | 10 | $router = new \Anax\Route\Router(); |
| 11 | 11 | $router->setDI($this); |
| 12 | 12 | |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | "WeatherRequest" => [ |
| 9 | 9 | "shared" => true, |
| 10 | 10 | //"callback" => "\Anax\Response\Response", |
| 11 | - "callback" => function () { |
|
| 11 | + "callback" => function() { |
|
| 12 | 12 | $obj = new \Aisa\WeatherRequest\WeatherRequest(); |
| 13 | 13 | $obj->setDI($this); |
| 14 | 14 | return $obj; |
@@ -5,7 +5,7 @@ discard block |
||
| 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 |
||
| 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 | ], |
@@ -24,11 +24,11 @@ discard block |
||
| 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 |
|
| 31 | - ini_set("error_log", ANAX_INSTALL_PATH . "/log/error_log"); |
|
| 29 | + ini_set("display_errors", 0); // Display no errors |
|
| 30 | + ini_set("log_errors", 1); // Log errors to file error_log |
|
| 31 | + ini_set("error_log", ANAX_INSTALL_PATH."/log/error_log"); |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | |
@@ -36,7 +36,7 @@ discard block |
||
| 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 " |
@@ -6,8 +6,8 @@ |
||
| 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 |