Completed
Pull Request — master (#15)
by
unknown
02:46
created
app/classes/classy.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -259,7 +259,7 @@
 block discarded – undo
259 259
 	 *
260 260
 	 * @param array $prefs Args for paginate_links.
261 261
 	 *
262
-	 * @return array mixed
262
+	 * @return \stdClass mixed
263 263
 	 */
264 264
 	public static function get_pagination( $prefs = array() ) {
265 265
 
Please login to merge, or discard this patch.
app/classes/models/post.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -186,7 +186,7 @@
 block discarded – undo
186 186
 	/**
187 187
 	 * Returns first attached image id
188 188
 	 *
189
-	 * @return int|boolean
189
+	 * @return integer|null
190 190
 	 */
191 191
 	public function get_first_attached_image_id() {
192 192
 
Please login to merge, or discard this patch.
app/classes/helper.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -209,7 +209,7 @@
 block discarded – undo
209 209
 	 *
210 210
 	 * @param array $array Array to be converted.
211 211
 	 *
212
-	 * @return object
212
+	 * @return \stdClass
213 213
 	 */
214 214
 	public static function array_to_object( $array ) {
215 215
 		$obj = new \stdClass;
Please login to merge, or discard this patch.
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -234,35 +234,35 @@
 block discarded – undo
234 234
 	 */
235 235
 	public static function get_archives_title() {
236 236
 		$textdomain = Classy::textdomain();
237
-	    $archives_title = '';
237
+		$archives_title = '';
238 238
 
239
-	    if ( is_category() ) {
240
-	        $archives_title = single_cat_title( '', false );
241
-	    } else if ( is_tag() ) {
242
-	        $archives_title = 'Tag: ' . single_tag_title( '', false );
243
-	    } else if ( is_author() ) {
244
-	        if ( have_posts() ) {
245
-	            the_post();
246
-	            $archives_title = 'Author: ' . get_the_author();
247
-	        }
239
+		if ( is_category() ) {
240
+			$archives_title = single_cat_title( '', false );
241
+		} else if ( is_tag() ) {
242
+			$archives_title = 'Tag: ' . single_tag_title( '', false );
243
+		} else if ( is_author() ) {
244
+			if ( have_posts() ) {
245
+				the_post();
246
+				$archives_title = 'Author: ' . get_the_author();
247
+			}
248 248
 
249
-	        rewind_posts();
250
-	    } else if ( is_search() ) {
251
-	        $archives_title = sprintf( __( 'Search Results for: %s', $textdomain ), '<span>' . get_search_query() . '</span>' );
252
-	    } else if ( is_archive() ) {
253
-	        if ( is_day() ) {
254
-	            $archives_title = get_the_date();
255
-	        } elseif ( is_month() ) {
256
-	            $archives_title = get_the_date( _x( 'F Y', 'monthly archives date format', $textdomain ) );
257
-	        } elseif ( is_year() ) {
258
-	            $archives_title = get_the_date( _x( 'Y', 'yearly archives date format', $textdomain ) );
259
-	        } else {
260
-	            $archives_title = 'Archives';
261
-	        }
249
+			rewind_posts();
250
+		} else if ( is_search() ) {
251
+			$archives_title = sprintf( __( 'Search Results for: %s', $textdomain ), '<span>' . get_search_query() . '</span>' );
252
+		} else if ( is_archive() ) {
253
+			if ( is_day() ) {
254
+				$archives_title = get_the_date();
255
+			} elseif ( is_month() ) {
256
+				$archives_title = get_the_date( _x( 'F Y', 'monthly archives date format', $textdomain ) );
257
+			} elseif ( is_year() ) {
258
+				$archives_title = get_the_date( _x( 'Y', 'yearly archives date format', $textdomain ) );
259
+			} else {
260
+				$archives_title = 'Archives';
261
+			}
262 262
 		} else {
263
-	        $archives_title = 'Archives';
264
-	    }
263
+			$archives_title = 'Archives';
264
+		}
265 265
 
266
-	    return $archives_title;
266
+		return $archives_title;
267 267
 	}
268 268
 }
Please login to merge, or discard this patch.
app/classes/hierarchy.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
 	 * @param string $type View|scope.
122 122
 	 * @param string $page Request type like: home, single etc.
123 123
 	 *
124
-	 * @return array|bool
124
+	 * @return string|false
125 125
 	 */
126 126
 	public static function get_available_file( $type = 'view', $page ) {
127 127
 		$views = self::get_request_hierarchy_list( $page );
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
 	/**
307 307
 	 * Returns classy template name or boolean if this is not classy template.
308 308
 	 *
309
-	 * @return mixed
309
+	 * @return string|false
310 310
 	 */
311 311
 	public static function get_classy_template() {
312 312
 		preg_match( '/classy\-(.*)/', get_page_template_slug(), $matches );
Please login to merge, or discard this patch.