@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | /** |
| 129 | 129 | * Determines and returns the service launch status. |
| 130 | 130 | * |
| 131 | - * @return bool |
|
| 131 | + * @return null|boolean |
|
| 132 | 132 | */ |
| 133 | 133 | public function launch_ok() |
| 134 | 134 | { |
@@ -400,6 +400,9 @@ discard block |
||
| 400 | 400 | } |
| 401 | 401 | } |
| 402 | 402 | |
| 403 | + /** |
|
| 404 | + * @return string |
|
| 405 | + */ |
|
| 403 | 406 | private function get_imgopt_base_url() |
| 404 | 407 | { |
| 405 | 408 | static $imgopt_base_url = null; |
@@ -8,6 +8,9 @@ |
||
| 8 | 8 | protected $updateChecker; |
| 9 | 9 | protected $panelClass = 'Puc_v4p4_DebugBar_Panel'; |
| 10 | 10 | |
| 11 | + /** |
|
| 12 | + * @param string $panelClass |
|
| 13 | + */ |
|
| 11 | 14 | public function __construct($updateChecker, $panelClass = null) { |
| 12 | 15 | $this->updateChecker = $updateChecker; |
| 13 | 16 | if ( isset($panelClass) ) { |
@@ -84,7 +84,7 @@ |
||
| 84 | 84 | /** |
| 85 | 85 | * Transform plugin info into the format used by the native WordPress.org API |
| 86 | 86 | * |
| 87 | - * @return object |
|
| 87 | + * @return stdClass |
|
| 88 | 88 | */ |
| 89 | 89 | public function toWpFormat(){ |
| 90 | 90 | $info = new stdClass; |
@@ -628,7 +628,7 @@ |
||
| 628 | 628 | /** |
| 629 | 629 | * Check if the plugin file is inside the mu-plugins directory. |
| 630 | 630 | * |
| 631 | - * @return bool |
|
| 631 | + * @return boolean|null |
|
| 632 | 632 | */ |
| 633 | 633 | protected function isMuPlugin() { |
| 634 | 634 | static $cachedResult = null; |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | * |
| 51 | 51 | * @param string $type |
| 52 | 52 | * @param string $id |
| 53 | - * @param Plugin_Upgrader|WP_Upgrader|null $upgrader |
|
| 53 | + * @param WP_Upgrader|null $upgrader |
|
| 54 | 54 | * @return bool |
| 55 | 55 | */ |
| 56 | 56 | protected function isBeingUpgraded($type, $id, $upgrader = null) { |
@@ -204,6 +204,9 @@ discard block |
||
| 204 | 204 | return $r; |
| 205 | 205 | } |
| 206 | 206 | |
| 207 | + /** |
|
| 208 | + * @param string $string |
|
| 209 | + */ |
|
| 207 | 210 | function chop_string( $string, $chop ) { // chop a "prefix" from a string: Agressive! uses strstr not 0 === strpos |
| 208 | 211 | if ( $_string = strstr($string, $chop) ) { |
| 209 | 212 | $_string = substr($_string, strlen($chop)); |
@@ -213,6 +216,9 @@ discard block |
||
| 213 | 216 | } |
| 214 | 217 | } |
| 215 | 218 | |
| 219 | + /** |
|
| 220 | + * @return string |
|
| 221 | + */ |
|
| 216 | 222 | function user_sanitize( $text, $strict = false ) { // whitelisted chars |
| 217 | 223 | if ( function_exists('user_sanitize') ) // bbPress native |
| 218 | 224 | return user_sanitize( $text, $strict ); |