@@ -117,6 +117,9 @@ discard block |
||
117 | 117 | ( ( false === strpos( $pPath, '.' ) ) ? '.' . self::FORMAT : '' ) . $query; |
118 | 118 | } |
119 | 119 | |
120 | + /** |
|
121 | + * @param string $pCanonizedPath |
|
122 | + */ |
|
120 | 123 | abstract function MakeRequest( $pCanonizedPath, $pMethod = 'GET', $pParams = array() ); |
121 | 124 | |
122 | 125 | /** |
@@ -149,6 +152,9 @@ discard block |
||
149 | 152 | return $result; |
150 | 153 | } |
151 | 154 | |
155 | + /** |
|
156 | + * @param string $pPath |
|
157 | + */ |
|
152 | 158 | public function Api( $pPath, $pMethod = 'GET', $pParams = array() ) { |
153 | 159 | return $this->_Api( $this->CanonizePath( $pPath ), $pMethod, $pParams ); |
154 | 160 | } |
@@ -869,7 +869,7 @@ |
||
869 | 869 | /** |
870 | 870 | * Returns an attachment field friendly name, based on a field name that is passed in |
871 | 871 | * |
872 | - * @param $field |
|
872 | + * @param string $field |
|
873 | 873 | * |
874 | 874 | * @return string |
875 | 875 | */ |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | /** |
86 | 86 | * private function to load a gallery by the slug. |
87 | 87 | * Will be used when loading gallery shortcodes |
88 | - * @param $slug |
|
88 | + * @param string $slug |
|
89 | 89 | */ |
90 | 90 | private function load_by_slug( $slug ) { |
91 | 91 | if ( ! empty( $slug ) ) { |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | |
106 | 106 | /** |
107 | 107 | * Static function to build a dynamic gallery that does not exist in the database |
108 | - * @param $template |
|
108 | + * @param string $template |
|
109 | 109 | * @param $attachment_ids |
110 | 110 | * |
111 | 111 | * @return FooGallery |
@@ -294,7 +294,7 @@ discard block |
||
294 | 294 | /** |
295 | 295 | * @deprecated 1.3.0 This is now moved into the datasource implementation |
296 | 296 | * |
297 | - * @return int|mixed|string |
|
297 | + * @return integer |
|
298 | 298 | */ |
299 | 299 | public function find_featured_attachment_id() { |
300 | 300 | _deprecated_function( __FUNCTION__, '1.3.0' ); |
@@ -19,6 +19,9 @@ |
||
19 | 19 | } |
20 | 20 | } |
21 | 21 | |
22 | + /** |
|
23 | + * @param FooGallery $foogallery |
|
24 | + */ |
|
22 | 25 | function perform_gallery_settings_upgrade( $foogallery ) { |
23 | 26 | |
24 | 27 | $mappings = array( |
@@ -278,6 +278,11 @@ |
||
278 | 278 | return $options; |
279 | 279 | } |
280 | 280 | |
281 | + /** |
|
282 | + * @param string $setting_id |
|
283 | + * @param string $argument_name |
|
284 | + * @param string $default_value |
|
285 | + */ |
|
281 | 286 | private function get_foogallery_argument( $gallery, $setting_id, $argument_name, $default_value ) { |
282 | 287 | global $current_foogallery_arguments; |
283 | 288 |
@@ -20,7 +20,7 @@ |
||
20 | 20 | * Register myself so that all associated JS and CSS files can be found and automatically included |
21 | 21 | * @param $extensions |
22 | 22 | * |
23 | - * @return array |
|
23 | + * @return string[] |
|
24 | 24 | */ |
25 | 25 | function register_myself( $extensions ) { |
26 | 26 | $extensions[] = __FILE__; |
@@ -79,8 +79,6 @@ discard block |
||
79 | 79 | * |
80 | 80 | * @param FooGalleryAttachment $foogallery_attachment |
81 | 81 | * @param array $args |
82 | - * @param bool $output_image |
|
83 | - * @param bool $output_closing_tag |
|
84 | 82 | * |
85 | 83 | * @return string |
86 | 84 | */ |
@@ -227,6 +225,9 @@ discard block |
||
227 | 225 | return apply_filters( 'foogallery_attachment_html_caption', $html, $foogallery_attachment, $args ); |
228 | 226 | } |
229 | 227 | |
228 | +/** |
|
229 | + * @param FooGalleryAttachment $foogallery_attachment |
|
230 | + */ |
|
230 | 231 | function foogallery_attachment_html_item_opening($foogallery_attachment, $args = array() ) { |
231 | 232 | |
232 | 233 | $classes[] = 'fg-item'; |