Passed
Push — master ( 1bb139...d77149 )
by Paul
03:10
created
views/panels/console.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,10 +6,13 @@
 block discarded – undo
6 6
 		<tr>
7 7
 			<td><?= __('No entries found.', 'blackbar'); ?></td>
8 8
 		</tr>
9
-		<?php else : ?>
9
+		<?php else {
10
+	: ?>
10 11
 		<?php foreach ($entries as $entry) : ?>
11 12
 		<tr>
12
-			<td class="glbb-small"><?= $entry['name']; ?></td>
13
+			<td class="glbb-small"><?= $entry['name'];
14
+}
15
+?></td>
13 16
 			<td><pre><?= $entry['message']; ?></pre></td>
14 17
 		</tr>
15 18
 		<?php endforeach; ?>
Please login to merge, or discard this patch.
views/panels/actions.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,14 +6,17 @@
 block discarded – undo
6 6
 		<tr>
7 7
 			<td><?= __('No entries found.', 'blackbar'); ?></td>
8 8
 		</tr>
9
-		<?php else : ?>
9
+		<?php else {
10
+	: ?>
10 11
 		<?php foreach ($actions->getMeasure() as $hook => $flow) : ?>
11 12
 		<tr>
12 13
 			<td class="glbb-smalls"><?php 
13 14
 			// glsr_log($flow); 
14 15
 			?></td>
15 16
 		</tr>
16
-		<?php endforeach; ?>
17
+		<?php endforeach;
18
+}
19
+?>
17 20
 		<?php endif; ?>
18 21
 	</tbody>
19 22
 </table>
Please login to merge, or discard this patch.
views/panels/queries.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,9 +8,12 @@
 block discarded – undo
8 8
 		</tr>
9 9
 	</tbody>
10 10
 </table>
11
-<?php else : ?>
11
+<?php else {
12
+	: ?>
12 13
 <form method="get" class="glbb-queries-filter">
13
-	<input type="text" name="glbb_query_filter" id="glbb_query_filter" placeholder="<?= __('Find queries containing', 'blackbar'); ?>">
14
+	<input type="text" name="glbb_query_filter" id="glbb_query_filter" placeholder="<?= __('Find queries containing', 'blackbar');
15
+}
16
+?>">
14 17
 	<input type="text" name="glbb_query_min_time" id="glbb_query_min_time" placeholder="<?= __('Minimum Execution Time', 'blackbar'); ?>">
15 18
 </form>
16 19
 <table class="glbb-queries-table">
Please login to merge, or discard this patch.
views/panels/profiler.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,10 +6,13 @@
 block discarded – undo
6 6
 		<tr>
7 7
 			<td><?= __('No entries found.', 'blackbar'); ?></td>
8 8
 		</tr>
9
-		<?php else : ?>
9
+		<?php else {
10
+	: ?>
10 11
 		<?php foreach ($profiler->getMeasure() as $timer) : ?>
11 12
 		<tr>
12
-			<td><?= $profiler->getNameString($timer); ?></td>
13
+			<td><?= $profiler->getNameString($timer);
14
+}
15
+?></td>
13 16
 			<td class="glbb-medium"><?= $profiler->getTimeString($timer); ?></td>
14 17
 			<td class="glbb-medium"><?= $profiler->getMemoryString($timer); ?></td>
15 18
 		</tr>
Please login to merge, or discard this patch.
compatibility.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,7 +6,8 @@  discard block
 block discarded – undo
6 6
  * @return array
7 7
  * @see https://docs.gravityforms.com/gform_noconflict_scripts/
8 8
  */
9
-add_filter('gform_noconflict_scripts', function (array $scripts) {
9
+add_filter('gform_noconflict_scripts', function (array $scripts)
10
+{
10 11
     $scripts[] = 'blackbar';
11 12
     return $scripts;
12 13
 });
@@ -15,7 +16,8 @@  discard block
 block discarded – undo
15 16
  * @return array
16 17
  * @see https://docs.gravityforms.com/gform_noconflict_styles/
17 18
  */
18
-add_filter('gform_noconflict_styles', function (array $styles) {
19
+add_filter('gform_noconflict_styles', function (array $styles)
20
+{
19 21
     $styles[] = 'blackbar';
20 22
     $styles[] = 'blackbar-syntax';
21 23
     return $styles;
Please login to merge, or discard this patch.
autoload.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,8 @@
 block discarded – undo
2 2
 
3 3
 defined('WPINC') || die;
4 4
 
5
-spl_autoload_register(function ($className) {
5
+spl_autoload_register(function ($className)
6
+{
6 7
     $namespaces = [
7 8
         'GeminiLabs\\BlackBar\\' => __DIR__.'/plugin/',
8 9
         'GeminiLabs\\BlackBar\\Tests\\' => __DIR__.'/tests/',
Please login to merge, or discard this patch.
plugin/SlowActions.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,9 +74,11 @@
 block discarded – undo
74 74
                         $object = get_class($object);
75 75
                     }
76 76
                     $this->flow[$action]['callbacks'][$priority][] = sprintf('%s::%s', $object, $method);
77
-                } elseif (is_object($callback['function'])) {
77
+                }
78
+                elseif (is_object($callback['function'])) {
78 79
                     $this->flow[$action]['callbacks'][$priority][] = get_class($callback['function']);
79
-                } else {
80
+                }
81
+                else {
80 82
                     $this->flow[$action]['callbacks'][$priority][] = $callback['function'];
81 83
                 }
82 84
                 ++$this->flow[$action]['callbacks_count'];
Please login to merge, or discard this patch.
activate.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,8 @@
 block discarded – undo
124 124
                 sprintf($messages['wrong_version'], $messages['php_version'].' '.$this->versions['php']),
125 125
                 sprintf($messages['update_php'], PHP_VERSION).'</p><p>'.$rollbackMessage
126 126
             );
127
-        } elseif (!$this->isWpValid()) {
127
+        }
128
+        elseif (!$this->isWpValid()) {
128 129
             printf($noticeTemplate,
129 130
                 sprintf($messages['notice'], $pluginName),
130 131
                 sprintf($messages['wrong_version'], $messages['wp_version'].' '.$this->versions['wordpress']),
Please login to merge, or discard this patch.
plugin/Application.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,8 @@  discard block
 block discarded – undo
33 33
         $hash = md5($errno.$message.$file.$line);
34 34
         if (array_key_exists($hash, $this->errors)) {
35 35
             ++$this->errors[$hash]['count'];
36
-        } else {
36
+        }
37
+        else {
37 38
             $this->errors[$hash] = [
38 39
                 'count' => 0,
39 40
                 'errno' => $errno,
@@ -52,7 +53,8 @@  discard block
 block discarded – undo
52 53
         add_filter('all', [$controller, 'initProfiler']);
53 54
         add_filter('all', [$controller, 'measureSlowActions']);
54 55
         add_action('plugins_loaded', [$controller, 'registerLanguages']);
55
-        add_action('init', function () use ($controller) {
56
+        add_action('init', function () use ($controller)
57
+        {
56 58
             if (!apply_filters('blackbar/enabled', current_user_can('administrator'))) {
57 59
                 return;
58 60
             }
Please login to merge, or discard this patch.