Completed
Push — master ( d1f988...f71ca9 )
by Markus
06:41 queued 01:25
created
src/Controller/FlatFileContentController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
         $content = file_get_contents($file);
50 50
         $content = $this->di->get("textfilter")->parse(
51 51
             $content,
52
-            ["frontmatter", "variable", "shortcode", "markdown", "titlefromheader"]
52
+            [ "frontmatter", "variable", "shortcode", "markdown", "titlefromheader" ]
53 53
         );
54 54
 
55 55
         // Add content as a view and then render the page
Please login to merge, or discard this patch.
src/Controller/DevelopmentController.php 2 patches
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,6 @@
 block discarded – undo
21 21
      * @param array $args as a variadic to catch all arguments.
22 22
      *
23 23
      * @throws Anax\Route\Exception\NotFoundException when route is not found.
24
-
25 24
      * @return object as the response.
26 25
      *
27 26
      * @SuppressWarnings(PHPMD.UnusedFormalParameter)
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,14 +47,14 @@
 block discarded – undo
47 47
 
48 48
         $page = $this->di->get("page");
49 49
         $page->add(
50
-            "anax/v2/dev/{$pages[$path]}",
50
+            "anax/v2/dev/{$pages[ $path ]}",
51 51
             [
52 52
                 "mount" => "dev/"
53 53
             ]
54 54
         );
55 55
 
56 56
         return $page->render([
57
-            "title" => ucfirst($pages[$path]),
57
+            "title" => ucfirst($pages[ $path ]),
58 58
             "baseTitle" => " | Anax development utilities"
59 59
         ]);
60 60
     }
Please login to merge, or discard this patch.
src/Forum/HTMLForm/AnswerForm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
                 "submit" => [
51 51
                     "type" => "submit",
52 52
                     "value" => "Answer",
53
-                    "callback" => [$this, "callbackSubmit"]
53
+                    "callback" => [ $this, "callbackSubmit" ]
54 54
                 ],
55 55
             ]
56 56
         );
Please login to merge, or discard this patch.
src/Forum/HTMLForm/CreatePostForm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
                 "submit" => [
50 50
                     "type" => "submit",
51 51
                     "value" => "Skapa inlägg",
52
-                    "callback" => [$this, "callbackSubmit"]
52
+                    "callback" => [ $this, "callbackSubmit" ]
53 53
                 ],
54 54
             ]
55 55
         );
Please login to merge, or discard this patch.
src/Forum/Forum.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -6,15 +6,15 @@
 block discarded – undo
6 6
 class Forum extends ActiveRecordModel
7 7
 {
8 8
     /**
9
-    * @var string $tableName name of the database table.
10
-    */
9
+     * @var string $tableName name of the database table.
10
+     */
11 11
     protected $tableName = "Forum";
12 12
 
13 13
     /**
14
-    * Columns in the table.
15
-    *
16
-    * @var integer $id primary key auto incremented.
17
-    */
14
+     * Columns in the table.
15
+     *
16
+     * @var integer $id primary key auto incremented.
17
+     */
18 18
     public $id;
19 19
     public $title;
20 20
     public $content;
Please login to merge, or discard this patch.
config/database_sample.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
  *  "dsn" => "sqlite:memory::",
15 15
  *
16 16
  */
17
-if ($_SERVER["SERVER_NAME"] === "www.student.bth.se") {
17
+if ($_SERVER[ "SERVER_NAME" ] === "www.student.bth.se") {
18 18
     return [
19 19
         "dsn"             => "mysql:host=blu-ray.student.bth.se;dbname=mos;",
20 20
         "username"        => "mos",
Please login to merge, or discard this patch.
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.