@@ -197,7 +197,7 @@ |
||
197 | 197 | { |
198 | 198 | $exception = new ResourceNotReadableException("Failed reading '$uri'"); |
199 | 199 | |
200 | - set_error_handler(function () use ($exception) { |
|
200 | + set_error_handler(function() use ($exception) { |
|
201 | 201 | throw $exception; |
202 | 202 | }); |
203 | 203 | $response = file_get_contents($uri); |
@@ -37,7 +37,7 @@ |
||
37 | 37 | private $yamlParser; |
38 | 38 | |
39 | 39 | /** |
40 | - * @param object $definition |
|
40 | + * @param \stdClass|null $definition |
|
41 | 41 | * @param string $uri |
42 | 42 | * @param YamlParser $yamlParser |
43 | 43 | */ |
@@ -90,7 +90,7 @@ |
||
90 | 90 | |
91 | 91 | $operationDefinition = [ |
92 | 92 | 'parameters' => (object)[ |
93 | - (object) [ |
|
93 | + (object)[ |
|
94 | 94 | 'name' => 'myContent', |
95 | 95 | 'in' => 'body' |
96 | 96 | ] |
@@ -34,7 +34,7 @@ |
||
34 | 34 | /** |
35 | 35 | * @param string $string |
36 | 36 | * |
37 | - * @return object |
|
37 | + * @return \stdClass|null |
|
38 | 38 | */ |
39 | 39 | public function parse($string) |
40 | 40 | { |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | /** |
41 | 41 | * @SuppressWarnings(PHPMD.UnusedFormalParameter) |
42 | 42 | * |
43 | - * @param mixed $resource |
|
43 | + * @param string $resource |
|
44 | 44 | * @param null $type |
45 | 45 | * |
46 | 46 | * @return RouteCollection |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | /** |
126 | 126 | * @SuppressWarnings(PHPMD.UnusedFormalParameter) |
127 | 127 | * |
128 | - * @param mixed $resource |
|
128 | + * @param string $resource |
|
129 | 129 | * @param string $type |
130 | 130 | * |
131 | 131 | * @return bool |
@@ -17,7 +17,7 @@ |
||
17 | 17 | * @param string $username |
18 | 18 | * @param string $password |
19 | 19 | * |
20 | - * @return array |
|
20 | + * @return string |
|
21 | 21 | */ |
22 | 22 | public function loginUser($username, $password) |
23 | 23 | { |
@@ -203,7 +203,7 @@ |
||
203 | 203 | $logger |
204 | 204 | ->expects($this->once()) |
205 | 205 | ->method('log') |
206 | - ->with($this->anything(), $this->callback(function ($message) use (&$logref) { |
|
206 | + ->with($this->anything(), $this->callback(function($message) use (&$logref) { |
|
207 | 207 | $matches = []; |
208 | 208 | if (preg_match('/logref ([a-z0-9]*)/', $message, $matches)) { |
209 | 209 | $logref = $matches[1]; |