Test Failed
Branch master (51582e)
by Alexander
02:50
created
src/bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
     if (Environment::get('debug')) {
60 60
         header("Content-type: text/html");
61 61
         echo '<h1 style="color:red;">' . $message . '</h1>';
62
-        echo '<h3>' . $file. ' :: ' . $line . '</h3>';
62
+        echo '<h3>' . $file . ' :: ' . $line . '</h3>';
63 63
         d($meta);
64 64
         die();
65 65
     } else {
Please login to merge, or discard this patch.
src/Connections.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
      * @param Closure|null $close an optional anonymous function that takes the connection as arguments and closes it
30 30
      * @throws InvalidArgumentException if connection $name already exists
31 31
      */
32
-    public static function add(string $name, Closure $open, ?Closure $close = null): void
32
+    public static function add(string $name, Closure $open, ? Closure $close = null) : void
33 33
     {
34 34
         if (isset(self::$open[$name])) {
35 35
             throw new InvalidArgumentException("Connection $name already exists");
Please login to merge, or discard this patch.
src/Response.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -10,10 +10,10 @@  discard block
 block discarded – undo
10 10
 abstract class Response
11 11
 {
12 12
     public static $code_to_message = [
13
-         // Informational 1xx
13
+            // Informational 1xx
14 14
         100 => 'Continue',
15 15
         101 => 'Switching Protocols',
16
-         // Successful 2xx
16
+            // Successful 2xx
17 17
         200 => 'OK',
18 18
         201 => 'Created',
19 19
         202 => 'Accepted',
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
         204 => 'No Content',
22 22
         205 => 'Reset Content',
23 23
         206 => 'Partial Content',
24
-         // Redirection 3xx
24
+            // Redirection 3xx
25 25
         300 => 'Multiple Choices',
26 26
         301 => 'Moved Permanently',
27 27
         302 => 'Found',
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
         304 => 'Not Modified',
30 30
         305 => 'Use Proxy',
31 31
         307 => 'Temporary Redirect',
32
-         // Client Error 4xx
32
+            // Client Error 4xx
33 33
         400 => 'Bad Request',
34 34
         401 => 'Unauthorized',
35 35
         402 => 'Payment Required',
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
         415 => 'Unsupported Media Type',
49 49
         416 => 'Requested Range Not Satisfiable',
50 50
         417 => 'Expectation Failed',
51
-         // Server Error 5xx
51
+            // Server Error 5xx
52 52
         500 => 'Internal Server Error',
53 53
         501 => 'Not Implemented',
54 54
         502 => 'Bad Gateway',
Please login to merge, or discard this patch.
src/Model.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         unset($options['with']);
79 79
         $result = static::db()->find(static::table(), $conditions, $options);
80 80
         $pk = static::pk();
81
-        $gen = function () use ($result, $pk, $with) {
81
+        $gen = function() use ($result, $pk, $with) {
82 82
             foreach ($result as $row) {
83 83
                 $model = new static($row);
84 84
                 if ($with) {
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
         return iterator_to_array($generator);
103 103
     }
104 104
 
105
-    private static function fields(): ?array
105
+    private static function fields(): ? array
106 106
     {
107 107
         return isset(static::$fields) ? static::$fields : null;
108 108
     }
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
         if ($fields) {
114 114
             $data = array_filter(
115 115
                 $data,
116
-                function ($key) use ($fields) {
116
+                function($key) use ($fields) {
117 117
                     return in_array($key, $fields);
118 118
                 },
119 119
                 ARRAY_FILTER_USE_KEY
Please login to merge, or discard this patch.
src/Request.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         $this->route = Router::match($this->url, $this->method);
63 63
     }
64 64
 
65
-    public function getHeader(string $name): ?string
65
+    public function getHeader(string $name): ? string
66 66
     {
67 67
         return $this->headers[$name] ?? null;
68 68
     }
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
      * @param string $key Dot notation for deeper values, i.e. `user.email`
173 173
      * @return mixed/null
174 174
      */
175
-    public function session(?string $key = null)
175
+    public function session(? string $key = null)
176 176
     {
177 177
         if (session_status() != PHP_SESSION_ACTIVE) {
178 178
             session_start();
Please login to merge, or discard this patch.
src/Environment.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
         return self::$settings[$environment][$config_name];
57 57
     }
58 58
 
59
-    public static function grab(?string $environment = null): array
59
+    public static function grab(? string $environment = null) : array
60 60
     {
61 61
         if (is_null($environment)) {
62 62
             $environment = static::current();
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      * @param mixed $value
75 75
      * @param null|string $environment if not specified, configures CURRENT environment only. E::ALL, sets for all envs.
76 76
      */
77
-    public static function put(string $config_name, $value, ?string $environment = null): void
77
+    public static function put(string $config_name, $value, ? string $environment = null) : void
78 78
     {
79 79
         if (is_null($environment)) {
80 80
             $environment = static::current();
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      * @param array $configs
99 99
      * @param null|string $environment
100 100
      */
101
-    public static function add(array $configs, ?string $environment = null): void
101
+    public static function add(array $configs, ? string $environment = null) : void
102 102
     {
103 103
         if (is_null($environment)) {
104 104
             $environment = static::current();
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      * @param array $configs
123 123
      * @param null|string $environment
124 124
      */
125
-    public static function set(array $configs, ?string $environment = null): void
125
+    public static function set(array $configs, ? string $environment = null) : void
126 126
     {
127 127
         if (is_null($environment)) {
128 128
             $environment = static::current();
Please login to merge, or discard this patch.