Passed
Push — master ( acf75d...995929 )
by Paul
03:41
created
src/Application.php 1 patch
Braces   +7 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@  discard block
 block discarded – undo
53 53
 		$hash = md5( $errno.$errstr.$errfile.$errline );
54 54
 		if( array_key_exists( $hash, $this->errors )) {
55 55
 			$this->errors[$hash]['count']++;
56
-		}
57
-		else {
56
+		} else {
58 57
 			$this->errors[$hash] = array(
59 58
 				"errno" => $errno,
60 59
 				"message" => $errstr,
@@ -119,7 +118,9 @@  discard block
 block discarded – undo
119 118
 	 */
120 119
 	public function initProfiler()
121 120
 	{
122
-		if( func_get_arg(0) != static::DEBUG )return;
121
+		if( func_get_arg(0) != static::DEBUG ) {
122
+			return;
123
+		}
123 124
 		$this->profiler->trace( func_get_arg(1) );
124 125
 	}
125 126
 
@@ -140,7 +141,9 @@  discard block
 block discarded – undo
140 141
 	public function render( $view, array $data = array() )
141 142
 	{
142 143
 		$file = $this->path( sprintf( 'views/%s.php', str_replace( '.php', '', $view )));
143
-		if( !file_exists( $file ))return;
144
+		if( !file_exists( $file )) {
145
+			return;
146
+		}
144 147
 		extract( $data );
145 148
 		include $file;
146 149
 	}
Please login to merge, or discard this patch.
autoload.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,9 +13,13 @@
 block discarded – undo
13 13
 	];
14 14
 	foreach( $namespaces as $prefix => $base_dir ) {
15 15
 		$len = strlen( $prefix );
16
-		if( strncmp( $prefix, $class, $len ) !== 0 )continue;
16
+		if( strncmp( $prefix, $class, $len ) !== 0 ) {
17
+			continue;
18
+		}
17 19
 		$file = $base_dir . str_replace( '\\', '/', substr( $class, $len )).'.php';
18
-		if( !file_exists( $file ))continue;
20
+		if( !file_exists( $file )) {
21
+			continue;
22
+		}
19 23
 		require $file;
20 24
 		break;
21 25
 	}
Please login to merge, or discard this patch.
activate.php 1 patch
Braces   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -79,7 +79,9 @@  discard block
 block discarded – undo
79 79
 	 */
80 80
 	public function deactivate( $plugin )
81 81
 	{
82
-		if( static::isValid() )return;
82
+		if( static::isValid() ) {
83
+			return;
84
+		}
83 85
 		$pluginSlug = plugin_basename( static::$file );
84 86
 		if( $plugin == $pluginSlug ) {
85 87
 			$this->redirect(); //exit
@@ -134,8 +136,7 @@  discard block
 block discarded – undo
134 136
 				sprintf( $messages[1], $messages[3].' '.static::$versions->php ),
135 137
 				sprintf( $messages[2], PHP_VERSION )
136 138
 			);
137
-		}
138
-		else if( !static::isWpValid() ) {
139
+		} else if( !static::isWpValid() ) {
139 140
 			printf( $noticeTemplate,
140 141
 				sprintf( $messages[0], $pluginName ),
141 142
 				sprintf( $messages[1], $messages[4].' '.static::$versions->wordpress ),
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/errors.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 errors found.', 'blackbar' ); ?></td>
8 8
 		</tr>
9
-		<?php else : ?>
9
+		<?php else {
10
+	: ?>
10 11
 		<?php foreach( $errors as $error ) : ?>
11 12
 		<tr>
12
-			<td class="glbb-small"><?= $error['name']; ?></td>
13
+			<td class="glbb-small"><?= $error['name'];
14
+}
15
+?></td>
13 16
 			<td><?= $error['message']; ?></td>
14 17
 		</tr>
15 18
 		<?php endforeach; ?>
Please login to merge, or discard this patch.