@@ -44,7 +44,7 @@ |
||
| 44 | 44 | * |
| 45 | 45 | * @param $metabox_ids |
| 46 | 46 | * |
| 47 | - * @return array |
|
| 47 | + * @return string[] |
|
| 48 | 48 | */ |
| 49 | 49 | function add_pll_metaboxes ($metabox_ids) { |
| 50 | 50 | $metabox_ids[] = 'ml_box'; |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | * |
| 45 | 45 | * @param $metabox_ids |
| 46 | 46 | * |
| 47 | - * @return array |
|
| 47 | + * @return string[] |
|
| 48 | 48 | */ |
| 49 | 49 | function add_pll_metaboxes ($metabox_ids) { |
| 50 | 50 | $metabox_ids[] = 'ml_box'; |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | * |
| 45 | 45 | * @param $metabox_ids |
| 46 | 46 | * |
| 47 | - * @return array |
|
| 47 | + * @return string[] |
|
| 48 | 48 | */ |
| 49 | 49 | function add_pll_metaboxes ($metabox_ids) { |
| 50 | 50 | $metabox_ids[] = 'ml_box'; |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | * |
| 45 | 45 | * @param $metabox_ids |
| 46 | 46 | * |
| 47 | - * @return array |
|
| 47 | + * @return string[] |
|
| 48 | 48 | */ |
| 49 | 49 | function add_pll_metaboxes ($metabox_ids) { |
| 50 | 50 | $metabox_ids[] = 'ml_box'; |
@@ -523,7 +523,7 @@ |
||
| 523 | 523 | |
| 524 | 524 | /** |
| 525 | 525 | * Get the fields that we want to edit for a gallery from the album management page |
| 526 | - * @param $gallery FooGallery |
|
| 526 | + * @param FooGallery $gallery FooGallery |
|
| 527 | 527 | * |
| 528 | 528 | * @return mixed|void |
| 529 | 529 | */ |
@@ -193,7 +193,7 @@ |
||
| 193 | 193 | * Helper to get an argument value from an array arguments |
| 194 | 194 | * |
| 195 | 195 | * @param $args Array the array of arguments to search |
| 196 | - * @param $key string the key of the argument you are looking for |
|
| 196 | + * @param string $key string the key of the argument you are looking for |
|
| 197 | 197 | * @param $default string a default value if the argument is not found |
| 198 | 198 | * |
| 199 | 199 | * @return string |
@@ -20,6 +20,10 @@ |
||
| 20 | 20 | const UPDATE = 'UPDATE %s SET hash = %%s, title = %%s, description = %%s WHERE id = %%d'; |
| 21 | 21 | |
| 22 | 22 | public $plugin; |
| 23 | + |
|
| 24 | + /** |
|
| 25 | + * @param FooShare_Plugin $plugin |
|
| 26 | + */ |
|
| 23 | 27 | function __construct($plugin) { |
| 24 | 28 | $this->plugin = $plugin; |
| 25 | 29 | |
@@ -8,6 +8,9 @@ |
||
| 8 | 8 | public $crawler; |
| 9 | 9 | public $enabled; |
| 10 | 10 | |
| 11 | + /** |
|
| 12 | + * @param FooShare_Plugin $plugin |
|
| 13 | + */ |
|
| 11 | 14 | public static function create($plugin, $name, $options){ |
| 12 | 15 | $class = 'FooShare_Networks_' . FooShare_Plugin::slug_to_class($name); |
| 13 | 16 | return class_exists($class) ? new $class($plugin, $options) : new FooShare_Network($plugin, $name, $options); |
@@ -305,6 +305,9 @@ |
||
| 305 | 305 | |
| 306 | 306 | const STATUS_HEADER = '%s %d %s'; |
| 307 | 307 | |
| 308 | + /** |
|
| 309 | + * @param integer $code |
|
| 310 | + */ |
|
| 308 | 311 | private function send_status( $code, $text = '', $nocache = true ) { |
| 309 | 312 | header( sprintf( self::STATUS_HEADER, $_SERVER["SERVER_PROTOCOL"], $code, $text ) ); |
| 310 | 313 | if ( $nocache ) { |