Skip to content

Commit

Permalink
Apply php-cs-fixer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ksassnowski authored and github-actions[bot] committed Jan 25, 2024
1 parent 2aec066 commit ab35e0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Downloader/Middleware/RobotsTxtMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ private function createRobotsUrl(string $url): string
$robotsUrl = \parse_url($url, PHP_URL_SCHEME) . '://' . \parse_url($url, PHP_URL_HOST);

$port = \parse_url($url, PHP_URL_PORT);
if ($port !== null && $port !== false) {

if (null !== $port && false !== $port) {
$robotsUrl .= ":{$port}";
}

Expand Down
2 changes: 1 addition & 1 deletion src/Http/FakeClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function pool(array $requests, ?callable $onFulfilled = null, ?callable $
foreach ($requests as $request) {
$this->sentRequestUrls[] = $request->getUri();

if ($onFulfilled !== null) {
if (null !== $onFulfilled) {
$response = new Response(new GuzzleResponse(), $request);

$onFulfilled($response);
Expand Down

0 comments on commit ab35e0f

Please sign in to comment.