Passed
Branch 0.8.x (fca16e)
by Alexander
13:00
created
src/components/Debug/Exceptions/Resources/views/details_content.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,10 +21,13 @@
 block discarded – undo
21 21
 				<?php endforeach; ?>	
22 22
 				</tbody>
23 23
 			</table>
24
-			<?php else : ?>
24
+			<?php else {
25
+    : ?>
25 26
 			<label class="empty"><?= e($label) ?></label>
26 27
 			<span class="empty"><?= e(__('exception.empty')) ?></span>
27
-			<?php endif; ?>
28
+			<?php endif;
29
+}
30
+?>
28 31
 		</div>
29 32
 	<?php endforeach; ?>
30 33
 	</div>
Please login to merge, or discard this patch.
src/components/Debug/Exceptions/Resources/views/frame_list.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,8 @@  discard block
 block discarded – undo
12 12
 			<div class="frame-info-class">
13 13
 			<?php if ($frame->getClass() == '') : ?>
14 14
 				<span class="frame-function"><?= e($frame->getFunction()) ?></span>
15
-			<?php else: ?>
15
+			<?php else {
16
+    : ?>
16 17
 				<span class="frame-class"><?= e($frame->getClass()) ?></span>
17 18
 				<?php if ($frame->getFunction() != '') : ?>
18 19
 				<span class="frame-function"><?= e($frame->getFunction()) ?></span>
@@ -26,5 +27,7 @@  discard block
 block discarded – undo
26 27
 		</div>		
27 28
 		
28 29
 	</div>		
29
-<?php endforeach; ?>	
30
+<?php endforeach;
31
+}
32
+?>	
30 33
 </div>
31 34
\ No newline at end of file
Please login to merge, or discard this patch.
src/components/Debug/GDebug.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -142,8 +142,7 @@
 block discarded – undo
142 142
 			}
143 143
 	
144 144
 			$Quit = $handlerResponse == MainHandler::QUIT && $this->allowQuit();
145
-		}
146
-		finally {
145
+		} finally {
147 146
 			// Returns the contents of the output buffer
148 147
 			$output = $this->system->CleanOutputBuffer();	
149 148
 		}
Please login to merge, or discard this patch.
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/Debug/Exceptions/Resources/views/header.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,9 +4,12 @@
 block discarded – undo
4 4
 		<?php foreach ($class as $i => $name) : ?>
5 5
 			<?php if ($i == count($class) - 1): ?>
6 6
 		<h1><?= $template->escape($name) ?></h1> 
7
-			<?php else: ?>
7
+			<?php else {
8
+    : ?>
8 9
 		<?= $template->escape($name).'\\' ?>
9
-			<?php endif; ?>
10
+			<?php endif;
11
+}
12
+?>
10 13
 		<?php endforeach; ?>
11 14
 		<?php if ($code): ?>
12 15
 		<span class="subtitle" title="Exception Code">(<?= $template->escape($code) ?>)</span>
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.