Skip to content

Commit

Permalink
[+++][FIX][HipChat]
Browse files Browse the repository at this point in the history
HipChat is a bitch...
  • Loading branch information
Quentin Schuler authored Aug 18, 2017
1 parent 4a44f9b commit 33790a4
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/Test/SwaggerValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,16 +132,16 @@ private function getOperation($method, $path)
;
}

    /**
     * Checks whether the status code is not 204 or 304 or is not in the informational range. Such responses does not
     * have any content nor Content-Type headers.
     *
     * @param int $code
     *
     * @return bool
     */
    private function statusCodeMeetRequirements($code)
    {
        return !in_array($code, [204, 304]) && substr((string) $code, 0, 1) !== '1';
    }
/**
* Checks whether the status code is not 204 or 304 or is not in the informational range. Such responses does not
* have any content nor Content-Type headers.
*
* @param int $code
*
* @return bool
*/
private function statusCodeMeetRequirements($code)
{
return !in_array($code, [204, 304]) && substr((string) $code, 0, 1) !== '1';
}
}

0 comments on commit 33790a4

Please sign in to comment.