@@ -137,7 +137,7 @@ |
||
137 | 137 | * |
138 | 138 | * @param $args array Arguments passed in from the shortcode |
139 | 139 | * |
140 | - * @return bool|FooGallery The gallery object we want to render |
|
140 | + * @return FooGalleryAlbum The gallery object we want to render |
|
141 | 141 | */ |
142 | 142 | function find_album( $args ) { |
143 | 143 |
@@ -485,6 +485,9 @@ |
||
485 | 485 | return new FooGallery_NextGen_Import_Progress_Album(); |
486 | 486 | } |
487 | 487 | |
488 | + /** |
|
489 | + * @param string $foogallery_album_name |
|
490 | + */ |
|
488 | 491 | function import_album( $nextgen_gallery_album_id, $foogallery_album_name ) { |
489 | 492 | $progress = new FooGallery_NextGen_Import_Progress_Album(); |
490 | 493 | $progress->nextgen_album_id = $nextgen_gallery_album_id; |
@@ -23,6 +23,10 @@ |
||
23 | 23 | $this->is_part_of_current_import = false; |
24 | 24 | } |
25 | 25 | |
26 | + /** |
|
27 | + * @param integer $nextgen_gallery_id |
|
28 | + * @param string $foogallery_title |
|
29 | + */ |
|
26 | 30 | function init( $nextgen_gallery_id, $foogallery_title ) { |
27 | 31 | $this->nextgen_gallery_id = $nextgen_gallery_id; |
28 | 32 | $this->foogallery_title = $foogallery_title; |
@@ -46,6 +46,9 @@ |
||
46 | 46 | |
47 | 47 | private static $instance; |
48 | 48 | |
49 | + /** |
|
50 | + * @return boolean |
|
51 | + */ |
|
49 | 52 | public static function get_instance() { |
50 | 53 | if ( ! isset(self::$instance) && ! (self::$instance instanceof FooGallery_Plugin) ) { |
51 | 54 | self::$instance = new FooGallery_Plugin(); |
@@ -56,7 +56,7 @@ |
||
56 | 56 | /** |
57 | 57 | * @param $links |
58 | 58 | * |
59 | - * @return string |
|
59 | + * @return string[] |
|
60 | 60 | */ |
61 | 61 | function plugin_listing_links( $links ) { |
62 | 62 | // Add a 'Settings' link to the plugin listing |
@@ -64,7 +64,7 @@ |
||
64 | 64 | /** |
65 | 65 | * private function to load a gallery by the slug. |
66 | 66 | * Will be used when loading gallery shortcodes |
67 | - * @param $slug |
|
67 | + * @param string $slug |
|
68 | 68 | */ |
69 | 69 | private function load_by_slug( $slug ) { |
70 | 70 | if ( ! empty( $slug ) ) { |
@@ -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'; |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | * |
156 | 156 | * @param $args array Arguments passed in from the shortcode |
157 | 157 | * |
158 | - * @return bool|FooGallery The gallery object we want to render |
|
158 | + * @return FooGallery The gallery object we want to render |
|
159 | 159 | */ |
160 | 160 | function find_gallery( $args ) { |
161 | 161 | |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | * Helper to get an argument value from an array arguments |
186 | 186 | * |
187 | 187 | * @param $args Array the array of arguments to search |
188 | - * @param $key string the key of the argument you are looking for |
|
188 | + * @param string $key string the key of the argument you are looking for |
|
189 | 189 | * @param $default string a default value if the argument is not found |
190 | 190 | * |
191 | 191 | * @return string |
@@ -64,7 +64,7 @@ |
||
64 | 64 | /** |
65 | 65 | * private function to load a gallery by the slug. |
66 | 66 | * Will be used when loading gallery shortcodes |
67 | - * @param $slug |
|
67 | + * @param string $slug |
|
68 | 68 | */ |
69 | 69 | private function load_by_slug( $slug ) { |
70 | 70 | if ( ! empty( $slug ) ) { |