Passed
Push — master ( cd8f66...42ee59 )
by Paul
02:44
created
src/Controller.php 1 patch
Braces   +15 added lines, -6 removed lines patch added patch discarded remove patch
@@ -44,7 +44,9 @@  discard block
 block discarded – undo
44 44
 	 */
45 45
 	public function initConsole()
46 46
 	{
47
-		if( func_get_arg(0) != Application::CONSOLE_HOOK )return;
47
+		if( func_get_arg(0) != Application::CONSOLE_HOOK ) {
48
+			return;
49
+		}
48 50
 		$args = array_pad( func_get_args(), 4, '' );
49 51
 		$backtrace = debug_backtrace( DEBUG_BACKTRACE_IGNORE_ARGS, 4 );
50 52
 		$entry = array_pop( $backtrace );
@@ -62,7 +64,9 @@  discard block
 block discarded – undo
62 64
 	 */
63 65
 	public function initProfiler()
64 66
 	{
65
-		if( func_get_arg(0) != Application::PROFILER_HOOK )return;
67
+		if( func_get_arg(0) != Application::PROFILER_HOOK ) {
68
+			return;
69
+		}
66 70
 		$this->app->profiler->trace( func_get_arg(1) );
67 71
 	}
68 72
 
@@ -175,12 +179,14 @@  discard block
 block discarded – undo
175 179
 	 */
176 180
 	protected function getIncludedFiles()
177 181
 	{
178
-		$files = array_values( array_filter( get_included_files(), function( $file ) {
182
+		$files = array_values( array_filter( get_included_files(), function( $file )
183
+		{
179 184
 			$bool = strpos( $file, '/themes/' ) !== false
180 185
 				&& strpos( $file, '/functions.php' ) === false;
181 186
 			return (bool)apply_filters( 'blackbar/templates/file', $bool, $file );
182 187
 		}));
183
-		return array_map( function( $key, $value ) {
188
+		return array_map( function( $key, $value )
189
+		{
184 190
 			$value = str_replace( trailingslashit( WP_CONTENT_DIR ), '', $value );
185 191
 			return sprintf( '[%s] => %s', $key, $value );
186 192
 		}, array_keys( $files ), $files );
@@ -206,7 +212,8 @@  discard block
 block discarded – undo
206 212
 			'AND', 'FROM', 'GROUP BY', 'INNER JOIN', 'LIMIT', 'ON DUPLICATE KEY UPDATE',
207 213
 			'ORDER BY', 'SET', 'WHERE',
208 214
 		);
209
-		$replace = array_map( function( $value ) {
215
+		$replace = array_map( function( $value )
216
+		{
210 217
 			return PHP_EOL.$value;
211 218
 		}, $search );
212 219
 		foreach( $wpdb->queries as $query ) {
@@ -245,7 +252,9 @@  discard block
 block discarded – undo
245 252
 	 */
246 253
 	protected function getTemplates()
247 254
 	{
248
-		if( is_admin() )return;
255
+		if( is_admin() ) {
256
+			return;
257
+		}
249 258
 		if( class_exists( '\GeminiLabs\Castor\Facades\Development' )) {
250 259
 			ob_start();
251 260
 			\GeminiLabs\Castor\Facades\Development::printTemplatePaths();
Please login to merge, or discard this patch.