Completed
Push — master ( ab2517...f19db8 )
by Derek
02:26
created
app/config/app_constants.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2,29 +2,29 @@
 block discarded – undo
2 2
 /**
3 3
  * @const DILMUN_BASE_DIR The base directory at which Dilmun resides
4 4
  */
5
-define('DILMUN_BASE_DIR', dirname(dirname(dirname(__FILE__))) . "/");
5
+define('DILMUN_BASE_DIR', dirname(dirname(dirname(__FILE__)))."/");
6 6
 
7 7
 /**
8 8
  * @const DILMUN_SOURCE_DIR The source directory
9 9
  */
10
-define('DILMUN_SOURCE_DIR', DILMUN_BASE_DIR . "src/");
10
+define('DILMUN_SOURCE_DIR', DILMUN_BASE_DIR."src/");
11 11
 
12 12
 /**
13 13
  * @const DILMUN_VENDOR_DIR The vendor directory
14 14
  */
15
-define('DILMUN_VENDOR_DIR', DILMUN_BASE_DIR . "vendor/");
15
+define('DILMUN_VENDOR_DIR', DILMUN_BASE_DIR."vendor/");
16 16
 
17 17
 /**
18 18
  * @const DILMUN_LOGS_DIR The log directory
19 19
  */
20
-define('DILMUN_LOGS_DIR', DILMUN_BASE_DIR . "app/logs/");
20
+define('DILMUN_LOGS_DIR', DILMUN_BASE_DIR."app/logs/");
21 21
 
22 22
 /**
23 23
  * @const DILMUN_CONFIG_DIR The configurations directory
24 24
  */
25
-define('DILMUN_CONFIG_DIR', DILMUN_BASE_DIR . "app/config/");
25
+define('DILMUN_CONFIG_DIR', DILMUN_BASE_DIR."app/config/");
26 26
 
27 27
 /**
28 28
  * @const DILMUN_TEST_DIR The tests directory
29 29
  */
30
-define('DILMUN_TEST_DIR', DILMUN_BASE_DIR . "tests/");
30
+define('DILMUN_TEST_DIR', DILMUN_BASE_DIR."tests/");
Please login to merge, or discard this patch.
src/Nabu/LoggerHandler/File.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
         $full_file = "";
177 177
 
178 178
         if (isset($this->file_path)) {
179
-            $full_file = $this->file_path . DIRECTORY_SEPARATOR;
179
+            $full_file = $this->file_path.DIRECTORY_SEPARATOR;
180 180
         }
181 181
 
182 182
         $full_file .= $this->file_name;
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
 
231 231
             if ($locked) {
232 232
                 $now = date('Y-m-d H:i:s');
233
-                $this->file_pointer->fwrite("$now : $message" . "\r\n");
233
+                $this->file_pointer->fwrite("$now : $message"."\r\n");
234 234
                 $this->file_pointer->flock(LOCK_UN);
235 235
 
236 236
                 return true;
Please login to merge, or discard this patch.
src/Nabu/StaticLogger.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -218,7 +218,7 @@
 block discarded – undo
218 218
         $replace = array();
219 219
 
220 220
         foreach ($context as $key => $value) {
221
-            $templated           = "{" . $key . "}";
221
+            $templated           = "{".$key."}";
222 222
             $replace[$templated] = $value;
223 223
         }
224 224
 
Please login to merge, or discard this patch.
app/bootstrap.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@
 block discarded – undo
4 4
  */
5 5
 
6 6
 require "config/app_constants.php";
7
-require DILMUN_VENDOR_DIR . "autoload.php";
8
-require DILMUN_SOURCE_DIR . "Nabu/Autoloader.php";
7
+require DILMUN_VENDOR_DIR."autoload.php";
8
+require DILMUN_SOURCE_DIR."Nabu/Autoloader.php";
9 9
 
10 10
 /**
11 11
  * @todo Pull this out somehow so that logging on bootstrap is more abstract
Please login to merge, or discard this patch.
src/Nabu/Autoloader.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
      */
24 24
     public function register()
25 25
     {
26
-        spl_autoload_register(array($this,"includeClass"));
26
+        spl_autoload_register(array($this, "includeClass"));
27 27
     }
28 28
 
29 29
     /**
@@ -41,10 +41,10 @@  discard block
 block discarded – undo
41 41
         $this->updateLog("info", "Preparing package {$package} for registration with path {$path}.");
42 42
 
43 43
         $package = trim($package, "\\");
44
-        $package = $package . "\\";
44
+        $package = $package."\\";
45 45
 
46 46
         $path = rtrim($path, DIRECTORY_SEPARATOR);
47
-        $path = $path . "/";
47
+        $path = $path."/";
48 48
 
49 49
         $path_registered = $this->registrationExists($package, $path);
50 50
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
         $package_stack = array();
83 83
 
84 84
         foreach ($class_bits as $bit) {
85
-            $package = $package . $bit . "\\";
85
+            $package = $package.$bit."\\";
86 86
 
87 87
             $package_registered = $this->packageRegistered($package);
88 88
 
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
 
141 141
         foreach ($this->packages[$package_name] as $path) {
142 142
             $converted_class = str_replace('\\', DIRECTORY_SEPARATOR, $class_name);
143
-            $class_path      = $path . $converted_class . ".php";
143
+            $class_path      = $path.$converted_class.".php";
144 144
 
145 145
             $this->updateLog("debug", "Class file path is {$class_path}");
146 146
 
Please login to merge, or discard this patch.
src/Anshar/Http/Uri.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -74,11 +74,11 @@  discard block
 block discarded – undo
74 74
         $this->uri_parts["authority"] = $this->uri_parts["host"];
75 75
 
76 76
         if (!empty($this->uri_parts["user_info"])) {
77
-            $this->uri_parts["authority"] = $this->uri_parts["user_info"] . "@" . $this->uri_parts["authority"];
77
+            $this->uri_parts["authority"] = $this->uri_parts["user_info"]."@".$this->uri_parts["authority"];
78 78
         }
79 79
 
80 80
         if (!is_null($this->uri_parts["port"])) {
81
-            $this->uri_parts["authority"] = $this->uri_parts["authority"] . ":" . $this->uri_parts["port"];
81
+            $this->uri_parts["authority"] = $this->uri_parts["authority"].":".$this->uri_parts["port"];
82 82
         }
83 83
 
84 84
         return $this->uri_parts["authority"];
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
         $fragment_part    = '(?:#(?P<fragment>.+))?';
407 407
         $reg_end          = '/';
408 408
 
409
-        $uri_syntax = $reg_start . $scheme_part . $scheme_separator . $hier_part . $query_part . $fragment_part .
409
+        $uri_syntax = $reg_start.$scheme_part.$scheme_separator.$hier_part.$query_part.$fragment_part.
410 410
             $reg_end;
411 411
 
412 412
         $uri_valid = preg_match($uri_syntax, $uri, $parts);
@@ -436,7 +436,7 @@  discard block
 block discarded – undo
436 436
         $path_part      = '(?P<path>.+)';
437 437
         $reg_end        = '/';
438 438
 
439
-        $hier_part_syntax = $reg_start . $authority_part . $path_part . $reg_end;
439
+        $hier_part_syntax = $reg_start.$authority_part.$path_part.$reg_end;
440 440
 
441 441
         preg_match($hier_part_syntax, $hier_part, $hier_parts);
442 442
 
@@ -464,7 +464,7 @@  discard block
 block discarded – undo
464 464
         $port_part      = '(?::(?P<port>[0-9]+))?';
465 465
         $reg_end        = '/';
466 466
 
467
-        $authority_syntax = $reg_start . $user_info_part . $host_part . $port_part . $reg_end;
467
+        $authority_syntax = $reg_start.$user_info_part.$host_part.$port_part.$reg_end;
468 468
 
469 469
         preg_match($authority_syntax, $authority, $authority_parts);
470 470
 
Please login to merge, or discard this patch.