@@ -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__; |
@@ -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__; |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | * @author Vova Feldman (@svovaf) |
| 17 | 17 | * @since 1.0.0 |
| 18 | 18 | * |
| 19 | - * @param object $object |
|
| 19 | + * @param FS_Entity $object |
|
| 20 | 20 | * |
| 21 | 21 | * @return array |
| 22 | 22 | */ |
@@ -120,7 +120,7 @@ |
||
| 120 | 120 | * @author Vova Feldman (@svovaf) |
| 121 | 121 | * @since 1.1.8 |
| 122 | 122 | * |
| 123 | - * @return int |
|
| 123 | + * @return double |
|
| 124 | 124 | */ |
| 125 | 125 | function annual_discount_percentage() { |
| 126 | 126 | return floor( $this->annual_savings() / ( $this->monthly_price * 12 * ( $this->is_unlimited() ? 1 : $this->licenses ) ) * 100 ); |
@@ -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' ); |
@@ -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 | |
@@ -121,6 +121,10 @@ discard block |
||
| 121 | 121 | return self::$_instances[ $key ]; |
| 122 | 122 | } |
| 123 | 123 | |
| 124 | + /** |
|
| 125 | + * @param string $module_type |
|
| 126 | + * @param string $module_unique_affix |
|
| 127 | + */ |
|
| 124 | 128 | protected function __construct( $module_id, $module_type, $module_unique_affix ) { |
| 125 | 129 | $this->_logger = FS_Logger::get_logger( WP_FS__SLUG . '_' . $module_id . '_admin_menu', WP_FS__DEBUG_SDK, WP_FS__ECHO_DEBUG_SDK ); |
| 126 | 130 | |
@@ -133,10 +137,16 @@ discard block |
||
| 133 | 137 | |
| 134 | 138 | #region Helpers |
| 135 | 139 | |
| 140 | + /** |
|
| 141 | + * @param string $key |
|
| 142 | + */ |
|
| 136 | 143 | private function get_option( &$options, $key, $default = false ) { |
| 137 | 144 | return ! empty( $options[ $key ] ) ? $options[ $key ] : $default; |
| 138 | 145 | } |
| 139 | 146 | |
| 147 | + /** |
|
| 148 | + * @param string $key |
|
| 149 | + */ |
|
| 140 | 150 | private function get_bool_option( &$options, $key, $default = false ) { |
| 141 | 151 | return isset( $options[ $key ] ) && is_bool( $options[ $key ] ) ? $options[ $key ] : $default; |
| 142 | 152 | } |
@@ -143,7 +143,7 @@ |
||
| 143 | 143 | * @author Vova Feldman (@svovaf) |
| 144 | 144 | * @since 1.0.6 |
| 145 | 145 | * |
| 146 | - * @param bool|FS_Plugin $module |
|
| 146 | + * @param FS_Plugin $module |
|
| 147 | 147 | * @param bool $flush |
| 148 | 148 | * |
| 149 | 149 | * @return bool|\FS_Plugin |