@@ -20,7 +20,7 @@ |
||
| 20 | 20 | /** |
| 21 | 21 | * @param array $keys |
| 22 | 22 | */ |
| 23 | - public function __construct(Array $keys) |
|
| 23 | + public function __construct(array $keys) |
|
| 24 | 24 | { |
| 25 | 25 | $this->keys = $keys; |
| 26 | 26 | } |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | */ |
| 28 | 28 | public function getEndpoint(string $name, string $version): Endpoint |
| 29 | 29 | { |
| 30 | - $className = $this->buildVersionedEndpointNamespace($version) . $name; |
|
| 30 | + $className = $this->buildVersionedEndpointNamespace($version).$name; |
|
| 31 | 31 | if (!class_exists($className)) { |
| 32 | 32 | throw new UnknownEndpointException("Could not find $className"); |
| 33 | 33 | } |
@@ -56,6 +56,6 @@ discard block |
||
| 56 | 56 | |
| 57 | 57 | protected function buildVersionedEndpointNamespace(string $version): string |
| 58 | 58 | { |
| 59 | - return $this->endpointNamespace . '\v' . str_replace('.', '_', $version) . '\\'; |
|
| 59 | + return $this->endpointNamespace.'\v'.str_replace('.', '_', $version).'\\'; |
|
| 60 | 60 | } |
| 61 | 61 | } |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | */ |
| 32 | 32 | public function getEndpoint(string $name, string $version): Endpoint |
| 33 | 33 | { |
| 34 | - $className = $this->buildVersionedEndpointNamespace($version) . $name; |
|
| 34 | + $className = $this->buildVersionedEndpointNamespace($version).$name; |
|
| 35 | 35 | return new $className($this->entityManager); |
| 36 | 36 | } |
| 37 | 37 | } |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | $this->config = parse_ini_file($filename, true); |
| 26 | 26 | |
| 27 | 27 | if ($this->config === false) { |
| 28 | - throw new INIParseException('Could not parse: ' . $filename, true); |
|
| 28 | + throw new INIParseException('Could not parse: '.$filename, true); |
|
| 29 | 29 | } |
| 30 | 30 | } |
| 31 | 31 | |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | |
| 13 | 13 | /** |
| 14 | 14 | * JSONRequestData constructor. |
| 15 | - * @param $body |
|
| 15 | + * @param string $body |
|
| 16 | 16 | * @throws InvalidRequestDataException |
| 17 | 17 | */ |
| 18 | 18 | public function __construct($body) |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | /** |
| 49 | 49 | * Attempts to find a specific key in the parsed data. Returns true if found else false |
| 50 | 50 | * @param string $key |
| 51 | - * @return mixed |
|
| 51 | + * @return boolean |
|
| 52 | 52 | */ |
| 53 | 53 | public function has(string $key): bool |
| 54 | 54 | { |