Passed
Pull Request — master (#74)
by Arman
03:42 queued 50s
created
src/Http/Response/HttpResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -252,7 +252,7 @@
 block discarded – undo
252 252
      * @param array $arr
253 253
      * @param \SimpleXMLElement $simpleXML
254 254
      */
255
-    private static function composeXML(array $arr, SimpleXMLElement &$simpleXML)
255
+    private static function composeXML(array $arr, SimpleXMLElement & $simpleXML)
256 256
     {
257 257
         foreach ($arr as $key => $value) {
258 258
             if (is_numeric($key)) {
Please login to merge, or discard this patch.
src/Migration/MigrationManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
 
86 86
         $this->migrationFolder = base_dir() . DS . 'migrations';
87 87
         
88
-        if(!$this->fs->isDirectory($this->migrationFolder)) {
88
+        if (!$this->fs->isDirectory($this->migrationFolder)) {
89 89
             throw FileSystemException::directoryNotExists($this->migrationFolder);
90 90
         }
91 91
     }
Please login to merge, or discard this patch.
src/App.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,9 @@
 block discarded – undo
21 21
 use Quantum\Loader\Setup;
22 22
 use Quantum\Di\Di;
23 23
 
24
-if (!defined('DS')) define('DS', DIRECTORY_SEPARATOR);
24
+if (!defined('DS')) {
25
+    define('DS', DIRECTORY_SEPARATOR);
26
+}
25 27
 
26 28
 /**
27 29
  * Class App
Please login to merge, or discard this patch.
src/Routes/Router.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
         }
93 93
 
94 94
         if (!count($this->matchedRoutes)) {
95
-            stop(function () {
95
+            stop(function() {
96 96
                 $this->response->html(partial('errors/404'), 404);
97 97
             });
98 98
         }
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
         if (filter_var(config()->get('debug'), FILTER_VALIDATE_BOOLEAN)) {
115 115
             $routeInfo = [];
116 116
 
117
-            array_walk($matchedRoute, function ($value, $key) use (&$routeInfo) {
117
+            array_walk($matchedRoute, function($value, $key) use (&$routeInfo) {
118 118
                 $routeInfo[ucfirst($key)] = is_array($value) ? implode(', ', $value) : $value;
119 119
             });
120 120
 
Please login to merge, or discard this patch.
src/Helpers/misc.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
 function _message(string $subject, $params): string
45 45
 {
46 46
     if (is_array($params)) {
47
-        return preg_replace_callback('/{%\d+}/', function () use (&$params) {
47
+        return preg_replace_callback('/{%\d+}/', function() use (&$params) {
48 48
             return array_shift($params);
49 49
         }, $subject);
50 50
     } else {
Please login to merge, or discard this patch.
src/Environment/Environment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
 
128 128
         if ($row) {
129 129
             $this->fs->put($envFilePath, preg_replace(
130
-                '/^'. $key . "=" . $row . '/m',
130
+                '/^' . $key . "=" . $row . '/m',
131 131
                 $key . "=" . $value,
132 132
                 $this->fs->get($envFilePath)
133 133
             ));
Please login to merge, or discard this patch.