@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace ApiClients\Tools\ResourceTestUtilities; |
4 | 4 | |
@@ -28,17 +28,17 @@ discard block |
||
28 | 28 | return; |
29 | 29 | } |
30 | 30 | |
31 | - $path = __DIR__ . DIRECTORY_SEPARATOR . 'Type' . DIRECTORY_SEPARATOR; |
|
31 | + $path = __DIR__.DIRECTORY_SEPARATOR.'Type'.DIRECTORY_SEPARATOR; |
|
32 | 32 | $directory = new RecursiveDirectoryIterator($path); |
33 | 33 | $directory = new RecursiveIteratorIterator($directory); |
34 | 34 | foreach ($directory as $node) { |
35 | - $nodePath = $node->getPath() . DIRECTORY_SEPARATOR . $node->getFilename(); |
|
35 | + $nodePath = $node->getPath().DIRECTORY_SEPARATOR.$node->getFilename(); |
|
36 | 36 | if (!is_file($nodePath)) { |
37 | 37 | continue; |
38 | 38 | } |
39 | 39 | |
40 | 40 | $fileName = str_replace('/', '\\', $nodePath); |
41 | - $class = __NAMESPACE__ . '\\Type\\' . substr(substr($fileName, strlen($path)), 0, -4); |
|
41 | + $class = __NAMESPACE__.'\\Type\\'.substr(substr($fileName, strlen($path)), 0, -4); |
|
42 | 42 | if (class_exists($class) && (new ReflectionClass($class))->implementsInterface(Type::class)) { |
43 | 43 | $type = new $class(); |
44 | 44 | self::$types[$type->scalar()] = $type; |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | return self::$types[$type]; |
74 | 74 | } |
75 | 75 | |
76 | - throw new Exception('Type "' . $type . '" not found, use has to check"'); |
|
76 | + throw new Exception('Type "'.$type.'" not found, use has to check"'); |
|
77 | 77 | } |
78 | 78 | |
79 | 79 | /** |