Passed
Push — master ( 8b6794...b54c42 )
by Paul
07:34
created
blackbar.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,11 +16,11 @@
 block discarded – undo
16 16
  * Domain Path: languages
17 17
  */
18 18
 
19
-defined( 'WPINC' ) || die;
19
+defined('WPINC') || die;
20 20
 
21 21
 require_once __DIR__.'/activate.php';
22 22
 require_once __DIR__.'/autoload.php';
23 23
 
24
-if( !GL_BlackBar_Activate::shouldDeactivate() ) {
24
+if (!GL_BlackBar_Activate::shouldDeactivate()) {
25 25
 	(new GeminiLabs\BlackBar\Application)->init();
26 26
 }
Please login to merge, or discard this patch.
autoload.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,21 +1,21 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-defined( 'WPINC' ) || die;
3
+defined('WPINC') || die;
4 4
 
5 5
 /**
6 6
  * PSR-4 autoloader
7 7
  */
8
-spl_autoload_register( function( $class )
8
+spl_autoload_register(function($class)
9 9
 {
10 10
 	$namespaces = [
11 11
 		'GeminiLabs\\BlackBar\\' => __DIR__.'/src/',
12 12
 		'GeminiLabs\\BlackBar\\Tests\\' => __DIR__.'/tests/',
13 13
 	];
14
-	foreach( $namespaces as $prefix => $base_dir ) {
15
-		$len = strlen( $prefix );
16
-		if( strncmp( $prefix, $class, $len ) !== 0 )continue;
17
-		$file = $base_dir . str_replace( '\\', '/', substr( $class, $len )).'.php';
18
-		if( !file_exists( $file ))continue;
14
+	foreach ($namespaces as $prefix => $base_dir) {
15
+		$len = strlen($prefix);
16
+		if (strncmp($prefix, $class, $len) !== 0)continue;
17
+		$file = $base_dir.str_replace('\\', '/', substr($class, $len)).'.php';
18
+		if (!file_exists($file))continue;
19 19
 		require $file;
20 20
 		break;
21 21
 	}
Please login to merge, or discard this patch.