@@ -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__; |
@@ -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__; |
@@ -37,6 +37,9 @@ discard block |
||
| 37 | 37 | private static $CNT = 0; |
| 38 | 38 | private static $_HOOKED_FOOTER = false; |
| 39 | 39 | |
| 40 | + /** |
|
| 41 | + * @param string $id |
|
| 42 | + */ |
|
| 40 | 43 | private function __construct( $id, $on = false, $echo = false ) { |
| 41 | 44 | $this->_id = $id; |
| 42 | 45 | |
@@ -142,6 +145,9 @@ discard block |
||
| 142 | 145 | return $this->_file_start; |
| 143 | 146 | } |
| 144 | 147 | |
| 148 | + /** |
|
| 149 | + * @param boolean $wrapper |
|
| 150 | + */ |
|
| 145 | 151 | private function _log( &$message, $type = 'log', $wrapper ) { |
| 146 | 152 | if ( ! $this->is_on() ) { |
| 147 | 153 | return; |
@@ -193,6 +199,9 @@ discard block |
||
| 193 | 199 | } |
| 194 | 200 | } |
| 195 | 201 | |
| 202 | + /** |
|
| 203 | + * @param string $message |
|
| 204 | + */ |
|
| 196 | 205 | function log( $message, $wrapper = false ) { |
| 197 | 206 | $this->_log( $message, 'log', $wrapper ); |
| 198 | 207 | } |
@@ -201,10 +210,16 @@ discard block |
||
| 201 | 210 | $this->_log( $message, 'info', $wrapper ); |
| 202 | 211 | } |
| 203 | 212 | |
| 213 | + /** |
|
| 214 | + * @param string $message |
|
| 215 | + */ |
|
| 204 | 216 | function warn( $message, $wrapper = false ) { |
| 205 | 217 | $this->_log( $message, 'warn', $wrapper ); |
| 206 | 218 | } |
| 207 | 219 | |
| 220 | + /** |
|
| 221 | + * @param string $message |
|
| 222 | + */ |
|
| 208 | 223 | function error( $message, $wrapper = false ) { |
| 209 | 224 | $this->_log( $message, 'error', $wrapper ); |
| 210 | 225 | } |
@@ -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 ); |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | * @author Vova Feldman (@svovaf) |
| 45 | 45 | * @since 1.1.6 |
| 46 | 46 | * |
| 47 | - * @param $id |
|
| 47 | + * @param string $id |
|
| 48 | 48 | * |
| 49 | 49 | * @return FS_Cache_Manager |
| 50 | 50 | */ |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | * @author Vova Feldman (@svovaf) |
| 66 | 66 | * @since 1.0.3 |
| 67 | 67 | * |
| 68 | - * @param $id |
|
| 68 | + * @param string $id |
|
| 69 | 69 | * @param $load |
| 70 | 70 | * |
| 71 | 71 | * @return FS_Option_Manager |
@@ -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 | */ |