@@ -9,6 +9,9 @@ |
||
| 9 | 9 | |
| 10 | 10 | class Differences extends PersistentList { |
| 11 | 11 | |
| 12 | + /** |
|
| 13 | + * @param string $path |
|
| 14 | + */ |
|
| 12 | 15 | private function slashit( $path ) { |
| 13 | 16 | $path .= ( substr( $path, -1 ) == '/' ? '' : '/' ); |
| 14 | 17 | return $path; |
@@ -37,6 +37,9 @@ |
||
| 37 | 37 | } |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | + /** |
|
| 41 | + * @param string $root |
|
| 42 | + */ |
|
| 40 | 43 | public function scan_dir( $root, $exclude = array() ) { |
| 41 | 44 | $filter = function ( $file, $key, $iterator ) use ( $exclude ) { |
| 42 | 45 | if ( $iterator->hasChildren() && ! in_array( $file->getFilename(), $exclude ) ) { |
@@ -31,6 +31,7 @@ |
||
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | 33 | * Saves the items to a file and returns the file contents |
| 34 | + * @param string $file_path |
|
| 34 | 35 | */ |
| 35 | 36 | public function save( $file_path, $allow_empty = true ) { |
| 36 | 37 | |
@@ -11,6 +11,9 @@ |
||
| 11 | 11 | private $declarations; |
| 12 | 12 | private $current_relative_path; |
| 13 | 13 | |
| 14 | + /** |
|
| 15 | + * @param $declarations |
|
| 16 | + */ |
|
| 14 | 17 | public function __construct( $current_relative_path, $declarations ) { |
| 15 | 18 | $this->current_relative_path = $current_relative_path; |
| 16 | 19 | $this->declarations = $declarations; |
@@ -9,6 +9,9 @@ |
||
| 9 | 9 | public $declaration; |
| 10 | 10 | public $invocation_root; |
| 11 | 11 | |
| 12 | + /** |
|
| 13 | + * @param string $invocation_root |
|
| 14 | + */ |
|
| 12 | 15 | function __construct( $invocation, $declaration, $invocation_root = null ) { |
| 13 | 16 | $this->invocation = $invocation; |
| 14 | 17 | $this->declaration = $declaration; |
@@ -9,6 +9,9 @@ |
||
| 9 | 9 | private $invocations; |
| 10 | 10 | private $file_path; |
| 11 | 11 | |
| 12 | + /** |
|
| 13 | + * @param $invocations |
|
| 14 | + */ |
|
| 12 | 15 | public function __construct( $file_path, $invocations ) { |
| 13 | 16 | $this->file_path = $file_path; |
| 14 | 17 | $this->invocations = $invocations; |
@@ -165,7 +165,7 @@ |
||
| 165 | 165 | * @param string $url Request URL. |
| 166 | 166 | * @param mixed $body Request body. |
| 167 | 167 | * @param bool $verify_body_hash Whether to verify the body hash against the body. |
| 168 | - * @return string|WP_Error Request signature, or a WP_Error on failure. |
|
| 168 | + * @return string Request signature, or a WP_Error on failure. |
|
| 169 | 169 | */ |
| 170 | 170 | public function sign_request( $token = '', $timestamp = 0, $nonce = '', $body_hash = '', $method = '', $url = '', $body = null, $verify_body_hash = true ) { |
| 171 | 171 | if ( ! $this->secret ) { |
@@ -308,7 +308,7 @@ |
||
| 308 | 308 | * @since 8.7.0 |
| 309 | 309 | * |
| 310 | 310 | * @param array|string $data the data to be encoded. |
| 311 | - * @return boolean|string The encoded string on success, false on failure |
|
| 311 | + * @return false|string The encoded string on success, false on failure |
|
| 312 | 312 | */ |
| 313 | 313 | public function encrypt_data_to_wpcom( $data ) { |
| 314 | 314 | |
@@ -100,7 +100,7 @@ |
||
| 100 | 100 | * |
| 101 | 101 | * @param string $class_name The name of the class to autoload. |
| 102 | 102 | * |
| 103 | - * @return bool Indicates whether or not a class file was loaded. |
|
| 103 | + * @return null|boolean Indicates whether or not a class file was loaded. |
|
| 104 | 104 | */ |
| 105 | 105 | public static function load_class( $class_name ) { |
| 106 | 106 | global $jetpack_autoloader_loader; |