Skip to content

Commit 82f18d9

Browse files
committed
Fix issues found by Scrutinizer
1 parent 47e4623 commit 82f18d9

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/ResponseBuilder.php

+3-5
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class ResponseBuilder implements ResponseBuilderInterface
3636
private $domainAliases;
3737

3838
/**
39-
* @var \Http\Message\MessageFactory
39+
* @var \Http\Message\ResponseFactory
4040
*/
4141
private $responseFactory;
4242

@@ -109,9 +109,8 @@ protected function getMockStatusForRequest(RequestInterface $request): int
109109

110110
return (int)file_get_contents($file);
111111
} catch (MockNotFoundException $e) {
112+
return 200;
112113
}
113-
114-
return 200;
115114
}
116115

117116
/**
@@ -128,9 +127,8 @@ protected function getMockHeadersForRequest(RequestInterface $request): array
128127

129128
return json_decode(file_get_contents($file), true);
130129
} catch (MockNotFoundException $e) {
130+
return [];
131131
}
132-
133-
return [];
134132
}
135133

136134
/**

0 commit comments

Comments
 (0)