| @@ -201,7 +201,7 @@ | ||
| 201 | 201 | /** | 
| 202 | 202 | * Parse file path and see if its remote or local. | 
| 203 | 203 | * @param string $file_path | 
| 204 | - * @return array | |
| 204 | + * @return string | |
| 205 | 205 | */ | 
| 206 | 206 |  	public static function parse_file_path( $file_path ) { | 
| 207 | 207 | $wp_uploads = wp_upload_dir(); | 
| @@ -80,7 +80,7 @@ | ||
| 80 | 80 | |
| 81 | 81 | /** | 
| 82 | 82 | * Get the product object. | 
| 83 | - * @param mixed $the_product | |
| 83 | + * @param boolean $the_product | |
| 84 | 84 | * @uses WP_Post | 
| 85 | 85 | * @return WP_Post|bool false on failure | 
| 86 | 86 | */ | 
| @@ -160,7 +160,7 @@ | ||
| 160 | 160 | * Set the current, active gateway. | 
| 161 | 161 | * | 
| 162 | 162 | * @access public | 
| 163 | - * @param array $gateway Available payment gateways. | |
| 163 | + * @param array $gateways Available payment gateways. | |
| 164 | 164 | */ | 
| 165 | 165 |  	public function set_current_gateway( $gateways ) { | 
| 166 | 166 | |
| @@ -122,7 +122,7 @@ | ||
| 122 | 122 | * | 
| 123 | 123 | * Methods should override this to declare support (or lack of support) for a feature. | 
| 124 | 124 | * | 
| 125 | - * @param $feature string The name of a feature to test support for. | |
| 125 | + * @param string $feature string The name of a feature to test support for. | |
| 126 | 126 | * @return bool True if the shipping method supports the feature, false otherwise. | 
| 127 | 127 | */ | 
| 128 | 128 |  	public function supports( $feature ) { | 
| @@ -96,7 +96,7 @@ discard block | ||
| 96 | 96 | * should be used. It is possible, but the aforementioned are preferred and are the only. | 
| 97 | 97 | * methods that will be maintained going forward. | 
| 98 | 98 | * | 
| 99 | - * @param int|object|WC_Order $order Order to init. | |
| 99 | + * @param integer $order Order to init. | |
| 100 | 100 | */ | 
| 101 | 101 |  	public function __construct( $order = 0 ) { | 
| 102 | 102 |  		$this->prices_include_tax    = get_option('woocommerce_prices_include_tax') == 'yes' ? true : false; | 
| @@ -109,7 +109,7 @@ discard block | ||
| 109 | 109 | /** | 
| 110 | 110 | * Init/load the order object. Called from the constructor. | 
| 111 | 111 | * | 
| 112 | - * @param int|object|WC_Order $order Order to init. | |
| 112 | + * @param integer $order Order to init. | |
| 113 | 113 | */ | 
| 114 | 114 |  	protected function init( $order ) { | 
| 115 | 115 |  		if ( is_numeric( $order ) ) { | 
| @@ -201,7 +201,7 @@ | ||
| 201 | 201 | /** | 
| 202 | 202 | * Parse file path and see if its remote or local. | 
| 203 | 203 | * @param string $file_path | 
| 204 | - * @return array | |
| 204 | + * @return string | |
| 205 | 205 | */ | 
| 206 | 206 |  	public static function parse_file_path( $file_path ) { | 
| 207 | 207 | $wp_uploads = wp_upload_dir(); | 
| @@ -34,7 +34,7 @@ | ||
| 34 | 34 | |
| 35 | 35 | /** | 
| 36 | 36 | * Constructor for zones | 
| 37 | - * @param int|object $zone Zone ID to load from the DB (optional) or already queried data. | |
| 37 | + * @param integer $zone Zone ID to load from the DB (optional) or already queried data. | |
| 38 | 38 | */ | 
| 39 | 39 |      public function __construct( $zone = 0 ) { | 
| 40 | 40 |  		if ( is_numeric( $zone ) && ! empty( $zone ) ) { | 
| @@ -201,7 +201,7 @@ | ||
| 201 | 201 | /** | 
| 202 | 202 | * Parse file path and see if its remote or local. | 
| 203 | 203 | * @param string $file_path | 
| 204 | - * @return array | |
| 204 | + * @return string | |
| 205 | 205 | */ | 
| 206 | 206 |  	public static function parse_file_path( $file_path ) { | 
| 207 | 207 | $wp_uploads = wp_upload_dir(); | 
| @@ -184,7 +184,7 @@ | ||
| 184 | 184 | * | 
| 185 | 185 | * @param stdClass $user | 
| 186 | 186 | * @param array $params The request parameters. | 
| 187 | - * @return null|WP_Error | |
| 187 | + * @return stdClass | |
| 188 | 188 | */ | 
| 189 | 189 |  	private function check_oauth_signature( $user, $params ) { | 
| 190 | 190 | $http_method = strtoupper( $_SERVER['REQUEST_METHOD'] ); |