Passed
Push — master ( 998c14...dbd8e8 )
by Alexander
03:10
created
src/components/Debug/Exceptions/Handlers/PleasingPageHandler.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -333,7 +333,9 @@
 block discarded – undo
333 333
 
334 334
 		$vars = $this->collectionVars();
335 335
 		
336
-		if (empty($vars['message'])) $vars['message'] = __('exception.noMessage');
336
+		if (empty($vars['message'])) {
337
+		    $vars['message'] = __('exception.noMessage');
338
+		}
337 339
 		
338 340
 		$this->template->setVariables($vars);
339 341
 		$this->template->render($templatePath);
Please login to merge, or discard this patch.
src/components/Cache/Store/ArrayStore.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,9 @@
 block discarded – undo
69 69
      */
70 70
     public function get(string $key)
71 71
     {
72
-        if ( ! isset($this->storage[$key])) return;
72
+        if ( ! isset($this->storage[$key])) {
73
+            return;
74
+        }
73 75
 
74 76
         $item = $this->storage[$key];
75 77
 
Please login to merge, or discard this patch.
src/components/Cache/Store/DatabaseStore.php 1 patch
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -90,7 +90,9 @@  discard block
 block discarded – undo
90 90
 
91 91
         $cache = $this->table()->where('key', '=', $prefixed)->first();
92 92
         
93
-        if (is_null($cache)) return;
93
+        if (is_null($cache)) {
94
+            return;
95
+        }
94 96
         
95 97
         $cache = is_array($cache) ? (object) $cache : $cache;
96 98
         
@@ -200,7 +202,9 @@  discard block
 block discarded – undo
200 202
             $prefixed = $this->prefix.$key;
201 203
             $cache    = $this->table()->where('key', $prefixed)->first();
202 204
             
203
-            if (is_null($cache)) return false;
205
+            if (is_null($cache)) {
206
+                return false;
207
+            }
204 208
             
205 209
             $cache = is_array($cache) ? (object) $cache : $cache;
206 210
             
@@ -208,7 +212,9 @@  discard block
 block discarded – undo
208 212
             
209 213
             $result = $callback((int) $current, $value);
210 214
 
211
-            if ( ! is_numeric($current)) return false;
215
+            if ( ! is_numeric($current)) {
216
+                return false;
217
+            }
212 218
             
213 219
             $this->table()->where('key', $prefixed)->update([
214 220
                 'value' => $this->serialize($result),
Please login to merge, or discard this patch.
src/components/Collections/Arr.php 1 patch
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -241,7 +241,9 @@  discard block
 block discarded – undo
241 241
 		}
242 242
 		
243 243
 		foreach ($array as $key => $value) { 
244
-			if ($callback($value, $key)) return $value;
244
+			if ($callback($value, $key)) {
245
+			    return $value;
246
+			}
245 247
 		}
246 248
 
247 249
 		return value($default);
@@ -315,9 +317,13 @@  discard block
 block discarded – undo
315 317
 	 */
316 318
 	public static function has(array $array, string $key): bool
317 319
 	{
318
-		if (empty($array) || is_null($key)) return false;
320
+		if (empty($array) || is_null($key)) {
321
+		    return false;
322
+		}
319 323
 		
320
-		if (static::exists($array, $key)) return true;
324
+		if (static::exists($array, $key)) {
325
+		    return true;
326
+		}
321 327
 
322 328
 		$segments = explode('.', $key);
323 329
 		
Please login to merge, or discard this patch.
src/components/Collections/helpers.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,9 @@
 block discarded – undo
50 50
      */
51 51
     function data_get($target, string|array $key, mixed $default = null)
52 52
     {
53
-        if (is_null($key)) return $target;
53
+        if (is_null($key)) {
54
+            return $target;
55
+        }
54 56
         
55 57
         $key = is_array($key) ? $key : explode('.', $key);
56 58
         
Please login to merge, or discard this patch.
src/components/Collections/Traits/Enumerates.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,9 @@
 block discarded – undo
55 55
      */
56 56
     public function operatorCallback($key, $operator = null, $value = null)
57 57
     {
58
-        if ($this->useAsCallable($key)) return $key;
58
+        if ($this->useAsCallable($key)) {
59
+            return $key;
60
+        }
59 61
         
60 62
         if (func_num_args() === 1) {
61 63
             $value = true;
Please login to merge, or discard this patch.
src/components/Database/Schema/Grammars/MySqlGrammar.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -885,7 +885,9 @@
 block discarded – undo
885 885
      */
886 886
     protected function modifyUnsigned(Dataprint $dataprint, Flowing $column): string
887 887
     {
888
-        if ($column->unsigned) return ' unsigned';
888
+        if ($column->unsigned) {
889
+            return ' unsigned';
890
+        }
889 891
     }
890 892
 
891 893
     /**
Please login to merge, or discard this patch.
src/components/Database/Schema/Dataprint.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,9 @@
 block discarded – undo
116 116
         $this->table = $table;
117 117
         $this->prefix = $prefix;
118 118
 
119
-        if ( ! is_null($callback)) $callback($this);
119
+        if ( ! is_null($callback)) {
120
+            $callback($this);
121
+        }
120 122
     }
121 123
 
122 124
     /**
Please login to merge, or discard this patch.
src/components/Database/Query/Grammars/PostgresGrammar.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,9 @@
 block discarded – undo
58 58
      */
59 59
     public function compileInsertGetId(Builder $builder, $values, $sequence): string
60 60
     {
61
-        if (is_null($sequence)) $sequence = 'id' ;
61
+        if (is_null($sequence)) {
62
+            $sequence = 'id' ;
63
+        }
62 64
 
63 65
         return $this->compileInsert($builder, $values).' returning '.$this->wrap($sequence);
64 66
     }
Please login to merge, or discard this patch.