Completed
Push — master ( 6d0c10...fc190e )
by kna
06:34
created
src/Controller/ErrorHandlerController.php 2 patches
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,6 @@
 block discarded – undo
22 22
      * @param string $message with details.
23 23
      *
24 24
      * @throws Anax\Route\Exception\NotFoundException
25
-
26 25
      * @return object as the response.
27 26
      */
28 27
     public function catchAll(...$args) : object
Please login to merge, or discard this patch.
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,6 @@
 block discarded – undo
19 19
      * Add internal routes for 403, 404 and 500 that provides a page with
20 20
      * error information, using the default page layout.
21 21
      *
22
-     * @param string $message with details.
23 22
      *
24 23
      * @throws Anax\Route\Exception\NotFoundException
25 24
 
Please login to merge, or discard this patch.
src/Navigation/Navbar.php 3 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 
85 85
         // Create the ul li menu from the array, use an anonomous recursive
86 86
         // function that returns an array of values.
87
-        $createMenu = function (
87
+        $createMenu = function(
88 88
             $items,
89 89
             $ulId = null,
90 90
             $ulClass = null
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
                 }
129 129
 
130 130
                 // Is there a class set for this item, then use it
131
-                $class = isset($item["class"]) && ! is_null($item["class"])
131
+                $class = isset($item["class"]) && !is_null($item["class"])
132 132
                     ? $item["class"]
133 133
                     : null;
134 134
 
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      *
36 36
      * @param: string $url to check for.
37 37
      *
38
-     * @return boolean true if item is selected, else false.
38
+     * @return boolean|null true if item is selected, else false.
39 39
      */
40 40
     public function check($url)
41 41
     {
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      *
52 52
      * @param: string $url where to create the url.
53 53
      *
54
-     * @return string as the url create.
54
+     * @return boolean as the url create.
55 55
      */
56 56
     public function isParent($parent)
57 57
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Anax\Navigation;
4 4
 
5
-use Anax\Commons\ContainerInjectableInterface;
6 5
 use Anax\Commons\ContainerInjectableTrait;
7 6
 
8 7
 /**
Please login to merge, or discard this patch.
htdocs/cimage/img.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 /**
12 12
  * Custom exception handler.
13 13
  */
14
-set_exception_handler(function ($exception) {
14
+set_exception_handler(function($exception) {
15 15
     errorPage(
16 16
         "<p><b>img.php: Uncaught exception:</b> <p>"
17 17
         . $exception->getMessage()
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
  * Get configuration options from file, if the file exists, else use $config
29 29
  * if its defined or create an empty $config.
30 30
  */
31
-$configFile = __DIR__.'/'.basename(__FILE__, '.php').'_config.php';
31
+$configFile = __DIR__ . '/' . basename(__FILE__, '.php') . '_config.php';
32 32
 
33 33
 if (is_file($configFile)) {
34 34
     $config = require $configFile;
@@ -404,7 +404,7 @@  discard block
 block discarded – undo
404 404
  * Manage size constants from config file, use constants to replace values
405 405
  * for width and height.
406 406
  */
407
-$sizeConstant = getConfig('size_constant', function () {
407
+$sizeConstant = getConfig('size_constant', function() {
408 408
 
409 409
     // Set sizes to map constant to value, easier to use with width or height
410 410
     $sizes = array(
@@ -440,7 +440,7 @@  discard block
 block discarded – undo
440 440
 }
441 441
 
442 442
 // Support width as % of original width
443
-if ($newWidth[strlen($newWidth)-1] == '%') {
443
+if ($newWidth[strlen($newWidth) - 1] == '%') {
444 444
     is_numeric(substr($newWidth, 0, -1))
445 445
         or errorPage('Width % not numeric.', 404);
446 446
 } else {
@@ -465,7 +465,7 @@  discard block
 block discarded – undo
465 465
 }
466 466
 
467 467
 // height
468
-if ($newHeight[strlen($newHeight)-1] == '%') {
468
+if ($newHeight[strlen($newHeight) - 1] == '%') {
469 469
     is_numeric(substr($newHeight, 0, -1))
470 470
         or errorPage('Height % out of range.', 404);
471 471
 } else {
@@ -482,14 +482,14 @@  discard block
 block discarded – undo
482 482
  * aspect-ratio, ar - affecting the resulting image width, height and resize options
483 483
  */
484 484
 $aspectRatio         = get(array('aspect-ratio', 'ar'));
485
-$aspectRatioConstant = getConfig('aspect_ratio_constant', function () {
485
+$aspectRatioConstant = getConfig('aspect_ratio_constant', function() {
486 486
     return array(
487
-        '3:1'    => 3/1,
488
-        '3:2'    => 3/2,
489
-        '4:3'    => 4/3,
490
-        '8:5'    => 8/5,
491
-        '16:10'  => 16/10,
492
-        '16:9'   => 16/9,
487
+        '3:1'    => 3 / 1,
488
+        '3:2'    => 3 / 2,
489
+        '4:3'    => 4 / 3,
490
+        '8:5'    => 8 / 5,
491
+        '16:10'  => 16 / 10,
492
+        '16:9'   => 16 / 9,
493 493
         'golden' => 1.618,
494 494
     );
495 495
 });
@@ -568,7 +568,7 @@  discard block
 block discarded – undo
568 568
 if ($fillToFit !== null) {
569 569
 
570 570
     if (!empty($fillToFit)) {
571
-        $bgColor   = $fillToFit;
571
+        $bgColor = $fillToFit;
572 572
         verbose("fillToFit changed bgColor to = $bgColor");
573 573
     }
574 574
 
Please login to merge, or discard this patch.
config/router/700_example.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
             "info" => "Just say hi with a string.",
14 14
             "method" => null,
15 15
             "path" => "hi",
16
-            "handler" => function () {
16
+            "handler" => function() {
17 17
                 //echo "Ho";
18 18
                 return "Hi.";
19 19
             },
Please login to merge, or discard this patch.
config/router/800_test.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -16,21 +16,21 @@  discard block
 block discarded – undo
16 16
         [
17 17
             "info" => "Just say hi with a string.",
18 18
             "path" => "hi",
19
-            "handler" => function () {
19
+            "handler" => function() {
20 20
                 return "Hi.";
21 21
             },
22 22
         ],
23 23
         [
24 24
             "info" => "Say No! with status code 500.",
25 25
             "path" => "no",
26
-            "handler" => function () {
26
+            "handler" => function() {
27 27
                 return ["No!", 500];
28 28
             },
29 29
         ],
30 30
         [
31 31
             "info" => "Say Hi through JSON.",
32 32
             "path" => "json",
33
-            "handler" => function () {
33
+            "handler" => function() {
34 34
                 return [["message" => "Hi JSON"]];
35 35
             },
36 36
         ],
@@ -47,28 +47,28 @@  discard block
 block discarded – undo
47 47
         [
48 48
             "info" => "Throw standard exception.",
49 49
             "path" => "exception",
50
-            "handler" => function () {
50
+            "handler" => function() {
51 51
                 throw new \Exception("Standard \Exception");
52 52
             },
53 53
         ],
54 54
         [
55 55
             "info" => "Try internal 403.",
56 56
             "path" => "403",
57
-            "handler" => function () {
57
+            "handler" => function() {
58 58
                 throw new ForbiddenException("Detailed error message.");
59 59
             },
60 60
         ],
61 61
         [
62 62
             "info" => "Try internal 404.",
63 63
             "path" => "404",
64
-            "handler" => function () {
64
+            "handler" => function() {
65 65
                 throw new NotFoundException("Detailed error message.");
66 66
             },
67 67
         ],
68 68
         [
69 69
             "info" => "Try internal 500.",
70 70
             "path" => "500",
71
-            "handler" => function () {
71
+            "handler" => function() {
72 72
                 throw new InternalErrorException("Detailed error message.");
73 73
             },
74 74
         ],
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/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/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/cache.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
         "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
Please login to merge, or discard this patch.