@@ -54,6 +54,7 @@ discard block |
||
| 54 | 54 | * |
| 55 | 55 | * @param string |
| 56 | 56 | * @param string |
| 57 | + * @param string $name |
|
| 57 | 58 | */ |
| 58 | 59 | private function define( $name, $value ) { |
| 59 | 60 | if ( !defined($name) ) { |
@@ -241,7 +242,7 @@ discard block |
||
| 241 | 242 | |
| 242 | 243 | /** |
| 243 | 244 | * @param array $prefs |
| 244 | - * @return array mixed |
|
| 245 | + * @return stdClass mixed |
|
| 245 | 246 | */ |
| 246 | 247 | public static function get_pagination( $prefs = array() ) { |
| 247 | 248 | global $wp_query; |
@@ -61,6 +61,9 @@ |
||
| 61 | 61 | $this->init(); |
| 62 | 62 | } |
| 63 | 63 | |
| 64 | + /** |
|
| 65 | + * @param integer|null $uid |
|
| 66 | + */ |
|
| 64 | 67 | private function verify_id($uid) { |
| 65 | 68 | return $uid; |
| 66 | 69 | } |
@@ -62,7 +62,7 @@ |
||
| 62 | 62 | /** |
| 63 | 63 | * Returns ClassyUser object of comment author |
| 64 | 64 | * |
| 65 | - * @return object ClassyUser |
|
| 65 | + * @return ClassyUser ClassyUser |
|
| 66 | 66 | */ |
| 67 | 67 | public function author() { |
| 68 | 68 | |
@@ -43,6 +43,7 @@ |
||
| 43 | 43 | /** |
| 44 | 44 | * Extends Scope with scope that is defined in theme_name/scope folder |
| 45 | 45 | * |
| 46 | + * @param string|false $view_name |
|
| 46 | 47 | * @return array |
| 47 | 48 | */ |
| 48 | 49 | public static function extend_scope($scope, $view_name) { |
@@ -247,57 +247,57 @@ |
||
| 247 | 247 | |
| 248 | 248 | $textdomain = Classy::textdomain(); |
| 249 | 249 | |
| 250 | - $archives_title = ''; |
|
| 250 | + $archives_title = ''; |
|
| 251 | 251 | |
| 252 | - if ( is_category() ) { |
|
| 252 | + if ( is_category() ) { |
|
| 253 | 253 | |
| 254 | - $archives_title = single_cat_title( '', false ); |
|
| 254 | + $archives_title = single_cat_title( '', false ); |
|
| 255 | 255 | |
| 256 | - } else if ( is_tag() ) { |
|
| 256 | + } else if ( is_tag() ) { |
|
| 257 | 257 | |
| 258 | - $archives_title = 'Tag: ' . single_tag_title( '', false ); |
|
| 258 | + $archives_title = 'Tag: ' . single_tag_title( '', false ); |
|
| 259 | 259 | |
| 260 | - } else if ( is_author() ) { |
|
| 260 | + } else if ( is_author() ) { |
|
| 261 | 261 | |
| 262 | - if ( have_posts() ) { |
|
| 262 | + if ( have_posts() ) { |
|
| 263 | 263 | |
| 264 | - the_post(); |
|
| 265 | - $archives_title = 'Author: ' . get_the_author(); |
|
| 264 | + the_post(); |
|
| 265 | + $archives_title = 'Author: ' . get_the_author(); |
|
| 266 | 266 | |
| 267 | - } |
|
| 267 | + } |
|
| 268 | 268 | |
| 269 | - rewind_posts(); |
|
| 269 | + rewind_posts(); |
|
| 270 | 270 | |
| 271 | - } else if ( is_search() ) { |
|
| 271 | + } else if ( is_search() ) { |
|
| 272 | 272 | |
| 273 | - $archives_title = sprintf( __( 'Search Results for: %s', $textdomain ), '<span>' . get_search_query() . '</span>' ); |
|
| 273 | + $archives_title = sprintf( __( 'Search Results for: %s', $textdomain ), '<span>' . get_search_query() . '</span>' ); |
|
| 274 | 274 | |
| 275 | - } else if ( is_archive() ) { |
|
| 275 | + } else if ( is_archive() ) { |
|
| 276 | 276 | |
| 277 | - if ( is_day() ) { |
|
| 277 | + if ( is_day() ) { |
|
| 278 | 278 | |
| 279 | - $archives_title = get_the_date(); |
|
| 279 | + $archives_title = get_the_date(); |
|
| 280 | 280 | |
| 281 | - } elseif ( is_month() ) { |
|
| 281 | + } elseif ( is_month() ) { |
|
| 282 | 282 | |
| 283 | - $archives_title = get_the_date( _x( 'F Y', 'monthly archives date format', $textdomain ) ); |
|
| 283 | + $archives_title = get_the_date( _x( 'F Y', 'monthly archives date format', $textdomain ) ); |
|
| 284 | 284 | |
| 285 | - } elseif ( is_year() ) { |
|
| 285 | + } elseif ( is_year() ) { |
|
| 286 | 286 | |
| 287 | - $archives_title = get_the_date( _x( 'Y', 'yearly archives date format', $textdomain ) ); |
|
| 287 | + $archives_title = get_the_date( _x( 'Y', 'yearly archives date format', $textdomain ) ); |
|
| 288 | 288 | |
| 289 | - } else { |
|
| 289 | + } else { |
|
| 290 | 290 | |
| 291 | - $archives_title = 'Archives'; |
|
| 291 | + $archives_title = 'Archives'; |
|
| 292 | 292 | |
| 293 | - } |
|
| 293 | + } |
|
| 294 | 294 | } else { |
| 295 | 295 | |
| 296 | - $archives_title = 'Archives'; |
|
| 296 | + $archives_title = 'Archives'; |
|
| 297 | 297 | |
| 298 | - } |
|
| 298 | + } |
|
| 299 | 299 | |
| 300 | - return $archives_title; |
|
| 300 | + return $archives_title; |
|
| 301 | 301 | |
| 302 | 302 | } |
| 303 | 303 | } |
@@ -131,7 +131,8 @@ discard block |
||
| 131 | 131 | * |
| 132 | 132 | * @param string $type view|scope |
| 133 | 133 | * @param string $type |
| 134 | - * @return array |
|
| 134 | + * @param string $page |
|
| 135 | + * @return string|false |
|
| 135 | 136 | */ |
| 136 | 137 | public static function get_available_file( $type = 'view', $page ) { |
| 137 | 138 | |
@@ -374,7 +375,7 @@ discard block |
||
| 374 | 375 | /** |
| 375 | 376 | * Returns classy template name or boolean if this is not classy template |
| 376 | 377 | * |
| 377 | - * @return mixed |
|
| 378 | + * @return string|false |
|
| 378 | 379 | */ |
| 379 | 380 | public static function get_classy_template() { |
| 380 | 381 | |
@@ -186,7 +186,7 @@ |
||
| 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 | |