@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | * @throws UnknownEndpointException |
23 | 23 | */ |
24 | 24 | public function getEndpoint(string $name, string $version): Endpoint { |
25 | - $className = $this->buildVersionedEndpointNamespace($version) . $name; |
|
25 | + $className = $this->buildVersionedEndpointNamespace($version).$name; |
|
26 | 26 | return new $className(); |
27 | 27 | } |
28 | 28 | |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | $classesInNamespace = []; |
36 | 36 | |
37 | 37 | $namespace = $this->buildVersionedEndpointNamespace($version); |
38 | - foreach(get_declared_classes() as $name) { |
|
38 | + foreach (get_declared_classes() as $name) { |
|
39 | 39 | if (strpos($name, $namespace) === 0) { |
40 | 40 | $classesInNamespace[] = $name; |
41 | 41 | } |
@@ -45,6 +45,6 @@ discard block |
||
45 | 45 | } |
46 | 46 | |
47 | 47 | protected function buildVersionedEndpointNamespace(string $version): string { |
48 | - return $this->endpointNamespace . '\v' . str_replace('.', '_', $version) . '\\'; |
|
48 | + return $this->endpointNamespace.'\v'.str_replace('.', '_', $version).'\\'; |
|
49 | 49 | } |
50 | 50 | } |