Passed
Push — develop ( 9b69ea...c76e05 )
by Paul
03:46
created
src/Helpers/Theme.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 	 */
41 41
 	public function copyright()
42 42
 	{
43
-		return __( 'Copyright', 'castor' ) . ' © ' . date( 'Y' ) . ', ' . get_bloginfo( 'name' );
43
+		return __( 'Copyright', 'castor' ).' © '.date( 'Y' ).', '.get_bloginfo( 'name' );
44 44
 	}
45 45
 
46 46
 	/**
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 	{
84 84
 		foreach( ['is_404', 'is_archive', 'is_home', 'is_page', 'is_search'] as $bool ) {
85 85
 			if( !$bool() )continue;
86
-			$method = sprintf( 'get%sTitle', ucfirst( str_replace( 'is_', '', $bool )));
86
+			$method = sprintf( 'get%sTitle', ucfirst( str_replace( 'is_', '', $bool ) ) );
87 87
 			return $this->$method();
88 88
 		}
89 89
 
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 			'uri.template'   => get_template_directory_uri(),
106 106
 		];
107 107
 
108
-		if( is_null( $path )) {
108
+		if( is_null( $path ) ) {
109 109
 			return $paths;
110 110
 		}
111 111
 
@@ -121,8 +121,8 @@  discard block
 block discarded – undo
121 121
 	 */
122 122
 	public function svg( $path = null )
123 123
 	{
124
-		if( file_exists( $this->imagePath( $path ))) {
125
-			return file_get_contents( $this->imagePath( $path ));
124
+		if( file_exists( $this->imagePath( $path ) ) ) {
125
+			return file_get_contents( $this->imagePath( $path ) );
126 126
 		}
127 127
 	}
128 128
 
@@ -133,12 +133,12 @@  discard block
 block discarded – undo
133 133
 
134 134
 	protected function getArchiveTitle()
135 135
 	{
136
-		return $this->archiveMeta->get( 'title', get_the_archive_title(), get_query_var( 'post_type' ));
136
+		return $this->archiveMeta->get( 'title', get_the_archive_title(), get_query_var( 'post_type' ) );
137 137
 	}
138 138
 
139 139
 	protected function getHomeTitle()
140 140
 	{
141
-		return ( $home = (string) get_option( 'page_for_posts' ))
141
+		return ( $home = (string) get_option( 'page_for_posts' ) )
142 142
 			? get_the_title( $home )
143 143
 			: get_the_archive_title();
144 144
 	}
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 	{
148 148
 		return $this->postMeta->get( 'title', [
149 149
 			'fallback' => get_the_title(),
150
-		]);
150
+		] );
151 151
 	}
152 152
 
153 153
 	protected function getSearchTitle()
Please login to merge, or discard this patch.