Passed
Push — master ( 83fadc...39eaa9 )
by Paul
02:31
created
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.
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.
activate.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,9 @@
 block discarded – undo
85 85
 	 */
86 86
 	public function deactivate( $plugin )
87 87
 	{
88
-		if( static::isValid() )return;
88
+		if( static::isValid() ) {
89
+			return;
90
+		}
89 91
 		$pluginSlug = plugin_basename( static::$file );
90 92
 		if( $plugin == $pluginSlug ) {
91 93
 			$this->redirect(); //exit
Please login to merge, or discard this patch.
src/Application.php 1 patch
Braces   +15 added lines, -6 removed lines patch added patch discarded remove patch
@@ -119,7 +119,9 @@  discard block
 block discarded – undo
119 119
 	 */
120 120
 	public function initProfiler()
121 121
 	{
122
-		if( func_get_arg(0) != static::DEBUG )return;
122
+		if( func_get_arg(0) != static::DEBUG ) {
123
+			return;
124
+		}
123 125
 		$this->profiler->trace( func_get_arg(1) );
124 126
 	}
125 127
 
@@ -140,7 +142,9 @@  discard block
 block discarded – undo
140 142
 	public function render( $view, array $data = array() )
141 143
 	{
142 144
 		$file = $this->path( sprintf( 'views/%s.php', str_replace( '.php', '', $view )));
143
-		if( !file_exists( $file ))return;
145
+		if( !file_exists( $file )) {
146
+			return;
147
+		}
144 148
 		extract( $data );
145 149
 		include $file;
146 150
 	}
@@ -219,12 +223,14 @@  discard block
 block discarded – undo
219 223
 	 */
220 224
 	protected function getIncludedFiles()
221 225
 	{
222
-		$includes = array_values( array_filter( get_included_files(), function( $include ) {
226
+		$includes = array_values( array_filter( get_included_files(), function( $include )
227
+		{
223 228
 			$bool = strpos( $include, '/themes/' ) !== false
224 229
 				&& strpos( $include, '/functions.php' ) === false;
225 230
 			return (bool)apply_filters( 'blackbar/templates/include', $bool, $include );
226 231
 		}));
227
-		return array_map( function( $key, $value ) {
232
+		return array_map( function( $key, $value )
233
+		{
228 234
 			$value = str_replace( trailingslashit( WP_CONTENT_DIR ), '', $value );
229 235
 			return sprintf( '[%s] => %s', $key, $value );
230 236
 		}, array_keys( $includes ), $includes );
@@ -250,7 +256,8 @@  discard block
 block discarded – undo
250 256
 			'AND', 'FROM', 'GROUP BY', 'INNER JOIN', 'LIMIT', 'ON DUPLICATE KEY UPDATE',
251 257
 			'ORDER BY', 'SET', 'WHERE',
252 258
 		);
253
-		$replace = array_map( function( $value ) {
259
+		$replace = array_map( function( $value )
260
+		{
254 261
 			return PHP_EOL.$value;
255 262
 		}, $search );
256 263
 		foreach( $wpdb->queries as $query ) {
@@ -289,7 +296,9 @@  discard block
 block discarded – undo
289 296
 	 */
290 297
 	protected function getTemplates()
291 298
 	{
292
-		if( is_admin() )return;
299
+		if( is_admin() ) {
300
+			return;
301
+		}
293 302
 		if( class_exists( '\GeminiLabs\Castor\Facades\Development' )) {
294 303
 			ob_start();
295 304
 			\GeminiLabs\Castor\Facades\Development::printTemplatePaths();
Please login to merge, or discard this patch.