Completed
Push — master ( 1a1ba8...67a062 )
by John
01:53
created
src/Endpoint/NamespaceEndpointFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.