Completed
Push — develop ( 0e7c73...015b98 )
by Paul
02:31
created
src/Container.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -185,8 +185,7 @@
 block discarded – undo
185 185
 	{
186 186
 		try {
187 187
 			return $this->make( $parameter->getClass()->name );
188
-		}
189
-		catch( BindingResolutionException $e ) {
188
+		} catch( BindingResolutionException $e ) {
190 189
 			if( $parameter->isOptional() ) {
191 190
 				return $parameter->getDefaultValue();
192 191
 			}
Please login to merge, or discard this patch.
src/Helpers/Development.php 1 patch
Braces   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,8 +43,7 @@  discard block
 block discarded – undo
43 43
 			printf( '<div class="print__r"><pre>%s</pre></div>',
44 44
 				htmlspecialchars( print_r( $value, true ), ENT_QUOTES, 'UTF-8' )
45 45
 			);
46
-		}
47
-		else if( $args > 1 ) {
46
+		} else if( $args > 1 ) {
48 47
 			echo '<div class="print__r_group">';
49 48
 			foreach( func_get_args() as $param ) {
50 49
 				$this->print( $param );
@@ -56,7 +55,9 @@  discard block
 block discarded – undo
56 55
 	public function printFiltersFor( $hook = '' )
57 56
 	{
58 57
 		global $wp_filter;
59
-		if( empty( $hook ) || !isset( $wp_filter[$hook] ))return;
58
+		if( empty( $hook ) || !isset( $wp_filter[$hook] )) {
59
+			return;
60
+		}
60 61
 		$this->print( $wp_filter[ $hook ] );
61 62
 	}
62 63
 
Please login to merge, or discard this patch.
src/Helpers/Theme.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,9 @@
 block discarded – undo
72 72
 	public function pageTitle()
73 73
 	{
74 74
 		foreach( ['is_404', 'is_archive', 'is_home', 'is_page', 'is_search'] as $bool ) {
75
-			if( !$bool() )continue;
75
+			if( !$bool() ) {
76
+				continue;
77
+			}
76 78
 			$method = sprintf( 'get%sTitle', ucfirst( str_replace( 'is_', '', $bool )));
77 79
 			return $this->$method();
78 80
 		}
Please login to merge, or discard this patch.
src/Helpers/Media.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,7 +64,9 @@  discard block
 block discarded – undo
64 64
 	public function renderGalleryImage( WP_Post $attachment )
65 65
 	{
66 66
 		$image = $this->getImageSrc( $attachment->ID );
67
-		if( !$image )return;
67
+		if( !$image ) {
68
+			return;
69
+		}
68 70
 		return sprintf(
69 71
 			'<figure data-w="%s" data-h="%s" data-ps="%s" itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject">' .
70 72
 				'<a href="%s" itemprop="contentUrl"><img src="%s" data-src="%s" itemprop="thumbnail" alt="%s"/></a>' .
@@ -118,7 +120,9 @@  discard block
 block discarded – undo
118 120
 	{
119 121
 		$thumbnail = wp_get_attachment_image_src( $id, 'thumbnail' );
120 122
 
121
-		if( !$thumbnail )return;
123
+		if( !$thumbnail ) {
124
+			return;
125
+		}
122 126
 
123 127
 		$medium = $this->normalizeImageSrc( wp_get_attachment_image_src( $id, 'medium' ), $thumbnail );
124 128
 		$large = $this->normalizeImageSrc( wp_get_attachment_image_src( $id, 'large' ), $medium );
Please login to merge, or discard this patch.