Test Setup Failed
Push — develop ( 8a7afb...8538ee )
by Paul
06:10 queued 03:55
created
src/Application.php 1 patch
Braces   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -55,7 +55,8 @@  discard block
 block discarded – undo
55 55
 		$basename = plugin_basename( $this->file );
56 56
 		$controller = $this->make( 'Controller' );
57 57
 
58
-		add_action( 'plugins_loaded', function() {
58
+		add_action( 'plugins_loaded', function()
59
+		{
59 60
 			$this->bootstrap();
60 61
 		});
61 62
 		add_action( 'admin_enqueue_scripts',           array( $controller, 'registerAssets' ));
@@ -100,7 +101,9 @@  discard block
 block discarded – undo
100 101
 			trailingslashit( dirname( dirname( ABSPATH ))),
101 102
 		]);
102 103
 		foreach( (array) $locations as $location ) {
103
-			if( !file_exists( $location . $filename ))continue;
104
+			if( !file_exists( $location . $filename )) {
105
+				continue;
106
+			}
104 107
 			return $location . $filename;
105 108
 		}
106 109
 		return null;
@@ -140,7 +143,9 @@  discard block
 block discarded – undo
140 143
 			$view,
141 144
 			$data
142 145
 		);
143
-		if( !file_exists( $file ))return;
146
+		if( !file_exists( $file )) {
147
+			return;
148
+		}
144 149
 		extract( $data );
145 150
 		include $file;
146 151
 	}
Please login to merge, or discard this patch.