Passed
Push — master ( 39eaa9...f7168a )
by Paul
02:04
created
src/Application.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,9 @@
 block discarded – undo
91 91
 	public function render( $view, array $data = array() )
92 92
 	{
93 93
 		$file = $this->path( sprintf( 'views/%s.php', str_replace( '.php', '', $view )));
94
-		if( !file_exists( $file ))return;
94
+		if( !file_exists( $file )) {
95
+			return;
96
+		}
95 97
 		extract( $data );
96 98
 		include $file;
97 99
 	}
Please login to merge, or discard this patch.
src/Controller.php 1 patch
Braces   +12 added lines, -5 removed lines patch added patch discarded remove patch
@@ -65,7 +65,9 @@  discard block
 block discarded – undo
65 65
 	 */
66 66
 	public function initProfiler()
67 67
 	{
68
-		if( func_get_arg(0) != Application::DEBUG )return;
68
+		if( func_get_arg(0) != Application::DEBUG ) {
69
+			return;
70
+		}
69 71
 		$this->app->profiler->trace( func_get_arg(1) );
70 72
 	}
71 73
 
@@ -154,12 +156,14 @@  discard block
 block discarded – undo
154 156
 	 */
155 157
 	protected function getIncludedFiles()
156 158
 	{
157
-		$files = array_values( array_filter( get_included_files(), function( $file ) {
159
+		$files = array_values( array_filter( get_included_files(), function( $file )
160
+		{
158 161
 			$bool = strpos( $file, '/themes/' ) !== false
159 162
 				&& strpos( $file, '/functions.php' ) === false;
160 163
 			return (bool)apply_filters( 'blackbar/templates/file', $bool, $file );
161 164
 		}));
162
-		return array_map( function( $key, $value ) {
165
+		return array_map( function( $key, $value )
166
+		{
163 167
 			$value = str_replace( trailingslashit( WP_CONTENT_DIR ), '', $value );
164 168
 			return sprintf( '[%s] => %s', $key, $value );
165 169
 		}, array_keys( $files ), $files );
@@ -185,7 +189,8 @@  discard block
 block discarded – undo
185 189
 			'AND', 'FROM', 'GROUP BY', 'INNER JOIN', 'LIMIT', 'ON DUPLICATE KEY UPDATE',
186 190
 			'ORDER BY', 'SET', 'WHERE',
187 191
 		);
188
-		$replace = array_map( function( $value ) {
192
+		$replace = array_map( function( $value )
193
+		{
189 194
 			return PHP_EOL.$value;
190 195
 		}, $search );
191 196
 		foreach( $wpdb->queries as $query ) {
@@ -224,7 +229,9 @@  discard block
 block discarded – undo
224 229
 	 */
225 230
 	protected function getTemplates()
226 231
 	{
227
-		if( is_admin() )return;
232
+		if( is_admin() ) {
233
+			return;
234
+		}
228 235
 		if( class_exists( '\GeminiLabs\Castor\Facades\Development' )) {
229 236
 			ob_start();
230 237
 			\GeminiLabs\Castor\Facades\Development::printTemplatePaths();
Please login to merge, or discard this patch.