@@ -137,8 +137,8 @@ discard block |
||
137 | 137 | /** |
138 | 138 | * Plugin options getter |
139 | 139 | * |
140 | - * @param string|array $option Option name |
|
141 | - * @param mixed $default Default value |
|
140 | + * @param string $option Option name |
|
141 | + * @param string $default Default value |
|
142 | 142 | * |
143 | 143 | * @return mixed Option value |
144 | 144 | */ |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | * |
165 | 165 | * @param string $url |
166 | 166 | * |
167 | - * @return boolean |
|
167 | + * @return integer |
|
168 | 168 | */ |
169 | 169 | function soundcloud_url_has_tracklist( $url ) { |
170 | 170 | return preg_match( '/^(.+?)\/(sets|groups|playlists)\/(.+?)$/', $url ); |
@@ -27,6 +27,9 @@ |
||
27 | 27 | } |
28 | 28 | |
29 | 29 | |
30 | + /** |
|
31 | + * @param string $key |
|
32 | + */ |
|
30 | 33 | protected function get_locale( $key ) { |
31 | 34 | if ( 'locale' == $key ) { |
32 | 35 | if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) { |
@@ -59,9 +59,7 @@ |
||
59 | 59 | * Get individual setting |
60 | 60 | * |
61 | 61 | * @param sting $name |
62 | - * @param string $type |
|
63 | 62 | * @param string or array $callback |
64 | - * @param boolean $is_constant |
|
65 | 63 | * @return value of the setting |
66 | 64 | */ |
67 | 65 | static function get( $name ) { |
@@ -398,6 +398,11 @@ discard block |
||
398 | 398 | /* Options Sync */ |
399 | 399 | |
400 | 400 | /* Ah... so much simpler than Posts and Comments :) */ |
401 | + |
|
402 | + /** |
|
403 | + * @param string $file |
|
404 | + * @param string $option |
|
405 | + */ |
|
401 | 406 | function options( $file, $option /*, $option, ... */ ) { |
402 | 407 | $options = func_get_args(); |
403 | 408 | $file = array_shift( $options ); |
@@ -506,6 +511,7 @@ discard block |
||
506 | 511 | |
507 | 512 | /** |
508 | 513 | * Returns default values of Constants |
514 | + * @param string $constant |
|
509 | 515 | */ |
510 | 516 | function default_constant( $constant ) { |
511 | 517 | switch ( $constant ) { |