@@ -18,21 +18,21 @@ discard block |
||
18 | 18 | */ |
19 | 19 | abstract public function bucket(?string $name = null): BucketInterface; |
20 | 20 | |
21 | - public function getContents(string|\Stringable $id): string |
|
21 | + public function getContents(string | \Stringable $id): string |
|
22 | 22 | { |
23 | 23 | [$name, $pathname] = $this->parseUri($id); |
24 | 24 | |
25 | 25 | return $this->bucket($name)->getContents($pathname); |
26 | 26 | } |
27 | 27 | |
28 | - public function getStream(string|\Stringable $id) |
|
28 | + public function getStream(string | \Stringable $id) |
|
29 | 29 | { |
30 | 30 | [$name, $pathname] = $this->parseUri($id); |
31 | 31 | |
32 | 32 | return $this->bucket($name)->getStream($pathname); |
33 | 33 | } |
34 | 34 | |
35 | - public function exists(string|\Stringable $id): bool |
|
35 | + public function exists(string | \Stringable $id): bool |
|
36 | 36 | { |
37 | 37 | [$name, $pathname] = $this->parseUri($id); |
38 | 38 | |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | /** |
43 | 43 | * @return int<0, max> |
44 | 44 | */ |
45 | - public function getLastModified(string|\Stringable $id): int |
|
45 | + public function getLastModified(string | \Stringable $id): int |
|
46 | 46 | { |
47 | 47 | [$name, $pathname] = $this->parseUri($id); |
48 | 48 | |
@@ -52,14 +52,14 @@ discard block |
||
52 | 52 | /** |
53 | 53 | * @return int<0, max> |
54 | 54 | */ |
55 | - public function getSize(string|\Stringable $id): int |
|
55 | + public function getSize(string | \Stringable $id): int |
|
56 | 56 | { |
57 | 57 | [$name, $pathname] = $this->parseUri($id); |
58 | 58 | |
59 | 59 | return $this->bucket($name)->getSize($pathname); |
60 | 60 | } |
61 | 61 | |
62 | - public function getMimeType(string|\Stringable $id): string |
|
62 | + public function getMimeType(string | \Stringable $id): string |
|
63 | 63 | { |
64 | 64 | [$name, $pathname] = $this->parseUri($id); |
65 | 65 | |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | * @return Visibility::VISIBILITY_* |
71 | 71 | */ |
72 | 72 | #[ExpectedValues(valuesFromClass: Visibility::class)] |
73 | - public function getVisibility(string|\Stringable $id): string |
|
73 | + public function getVisibility(string | \Stringable $id): string |
|
74 | 74 | { |
75 | 75 | [$name, $pathname] = $this->parseUri($id); |
76 | 76 | |
@@ -80,5 +80,5 @@ discard block |
||
80 | 80 | /** |
81 | 81 | * {@see Storage::parseUri()} |
82 | 82 | */ |
83 | - abstract protected function parseUri(string|\Stringable $uri, bool $withScheme = true): array; |
|
83 | + abstract protected function parseUri(string | \Stringable $uri, bool $withScheme = true): array; |
|
84 | 84 | } |
@@ -23,59 +23,59 @@ discard block |
||
23 | 23 | |
24 | 24 | return RectorConfig::configure() |
25 | 25 | ->withPaths([ |
26 | - __DIR__ . '/src/*/src', |
|
27 | - __DIR__ . '/src/*/tests', |
|
28 | - __DIR__ . '/tests', |
|
26 | + __DIR__.'/src/*/src', |
|
27 | + __DIR__.'/src/*/tests', |
|
28 | + __DIR__.'/tests', |
|
29 | 29 | ]) |
30 | 30 | ->withParallel() |
31 | 31 | ->withSkip([ |
32 | 32 | IfIssetToCoalescingRector::class, |
33 | 33 | RemoveUnusedPrivatePropertyRector::class => [ |
34 | - __DIR__ . '/src/Scaffolder/src/Command/BootloaderCommand.php', |
|
35 | - __DIR__ . '/src/Scaffolder/src/Command/CommandCommand.php', |
|
36 | - __DIR__ . '/src/Scaffolder/src/Command/ConfigCommand.php', |
|
37 | - __DIR__ . '/src/Scaffolder/src/Command/ControllerCommand.php', |
|
38 | - __DIR__ . '/src/Scaffolder/src/Command/FilterCommand.php', |
|
39 | - __DIR__ . '/src/Scaffolder/src/Command/JobHandlerCommand.php', |
|
40 | - __DIR__ . '/src/Scaffolder/src/Command/MiddlewareCommand.php', |
|
41 | - __DIR__ . '/src/Console/tests/PromptArgumentsTest.php', |
|
34 | + __DIR__.'/src/Scaffolder/src/Command/BootloaderCommand.php', |
|
35 | + __DIR__.'/src/Scaffolder/src/Command/CommandCommand.php', |
|
36 | + __DIR__.'/src/Scaffolder/src/Command/ConfigCommand.php', |
|
37 | + __DIR__.'/src/Scaffolder/src/Command/ControllerCommand.php', |
|
38 | + __DIR__.'/src/Scaffolder/src/Command/FilterCommand.php', |
|
39 | + __DIR__.'/src/Scaffolder/src/Command/JobHandlerCommand.php', |
|
40 | + __DIR__.'/src/Scaffolder/src/Command/MiddlewareCommand.php', |
|
41 | + __DIR__.'/src/Console/tests/PromptArgumentsTest.php', |
|
42 | 42 | ], |
43 | 43 | RemoveUnusedPrivateMethodRector::class => [ |
44 | - __DIR__ . '/src/Boot/src/Bootloader/ConfigurationBootloader.php', |
|
45 | - __DIR__ . '/src/Broadcasting/src/Bootloader/BroadcastingBootloader.php', |
|
46 | - __DIR__ . '/src/Cache/src/Bootloader/CacheBootloader.php', |
|
47 | - __DIR__ . '/src/Serializer/src/Bootloader/SerializerBootloader.php', |
|
48 | - __DIR__ . '/src/Validation/src/Bootloader/ValidationBootloader.php', |
|
49 | - __DIR__ . '/src/Translator/tests/IndexerTest.php', |
|
50 | - __DIR__ . '/src/Tokenizer/tests/ReflectionFileTest.php', |
|
51 | - __DIR__ . '/src/Core/tests/SingletonsTest.php', |
|
44 | + __DIR__.'/src/Boot/src/Bootloader/ConfigurationBootloader.php', |
|
45 | + __DIR__.'/src/Broadcasting/src/Bootloader/BroadcastingBootloader.php', |
|
46 | + __DIR__.'/src/Cache/src/Bootloader/CacheBootloader.php', |
|
47 | + __DIR__.'/src/Serializer/src/Bootloader/SerializerBootloader.php', |
|
48 | + __DIR__.'/src/Validation/src/Bootloader/ValidationBootloader.php', |
|
49 | + __DIR__.'/src/Translator/tests/IndexerTest.php', |
|
50 | + __DIR__.'/src/Tokenizer/tests/ReflectionFileTest.php', |
|
51 | + __DIR__.'/src/Core/tests/SingletonsTest.php', |
|
52 | 52 | ], |
53 | 53 | RemoveUselessVarTagRector::class => [ |
54 | - __DIR__ . '/src/Console/src/Traits/HelpersTrait.php', |
|
54 | + __DIR__.'/src/Console/src/Traits/HelpersTrait.php', |
|
55 | 55 | ], |
56 | 56 | RemoveAlwaysTrueIfConditionRector::class => [ |
57 | - __DIR__ . '/src/Boot/src/BootloadManager/Initializer.php', |
|
58 | - __DIR__ . '/src/Stempler/src/Traverser.php', |
|
59 | - __DIR__ . '/src/Prototype/src/NodeVisitors/LocateProperties.php', |
|
60 | - __DIR__ . '/src/Prototype/src/NodeVisitors/RemoveTrait.php', |
|
61 | - __DIR__ . '/src/Logger/src/ListenerRegistry.php', |
|
62 | - __DIR__ . '/src/Stempler/src/Transform/Merge/ExtendsParent.php', |
|
57 | + __DIR__.'/src/Boot/src/BootloadManager/Initializer.php', |
|
58 | + __DIR__.'/src/Stempler/src/Traverser.php', |
|
59 | + __DIR__.'/src/Prototype/src/NodeVisitors/LocateProperties.php', |
|
60 | + __DIR__.'/src/Prototype/src/NodeVisitors/RemoveTrait.php', |
|
61 | + __DIR__.'/src/Logger/src/ListenerRegistry.php', |
|
62 | + __DIR__.'/src/Stempler/src/Transform/Merge/ExtendsParent.php', |
|
63 | 63 | ], |
64 | 64 | RemoveExtraParametersRector::class => [ |
65 | - __DIR__ . '/src/Boot/src/BootloadManager/AbstractBootloadManager.php', |
|
65 | + __DIR__.'/src/Boot/src/BootloadManager/AbstractBootloadManager.php', |
|
66 | 66 | ], |
67 | 67 | RemoveUnusedPrivateMethodParameterRector::class => [ |
68 | - __DIR__ . '/src/Core/src/Internal/Factory.php', |
|
69 | - __DIR__ . '/src/Core/tests/InjectableTest.php', |
|
68 | + __DIR__.'/src/Core/src/Internal/Factory.php', |
|
69 | + __DIR__.'/src/Core/tests/InjectableTest.php', |
|
70 | 70 | ], |
71 | 71 | RemoveDoubleAssignRector::class => [ |
72 | - __DIR__ . '/src/Core/tests/Scope/FinalizeAttributeTest.php', |
|
72 | + __DIR__.'/src/Core/tests/Scope/FinalizeAttributeTest.php', |
|
73 | 73 | ], |
74 | 74 | RemoveUnusedVariableAssignRector::class => [ |
75 | - __DIR__ . '/src/Core/tests/ExceptionsTest.php', |
|
75 | + __DIR__.'/src/Core/tests/ExceptionsTest.php', |
|
76 | 76 | ], |
77 | 77 | RemoveDeadStmtRector::class => [ |
78 | - __DIR__ . '/src/Core/tests/ExceptionsTest.php', |
|
78 | + __DIR__.'/src/Core/tests/ExceptionsTest.php', |
|
79 | 79 | ], |
80 | 80 | |
81 | 81 | // to be enabled later for bc break 4.x |
@@ -85,8 +85,8 @@ discard block |
||
85 | 85 | NewInInitializerRector::class, |
86 | 86 | |
87 | 87 | // start with short open tag |
88 | - __DIR__ . '/src/Views/tests/fixtures/other/var.php', |
|
89 | - __DIR__ . '/tests/app/views/native.php', |
|
88 | + __DIR__.'/src/Views/tests/fixtures/other/var.php', |
|
89 | + __DIR__.'/tests/app/views/native.php', |
|
90 | 90 | |
91 | 91 | // example code for test |
92 | 92 | '*/Fixture/*', |
@@ -96,18 +96,18 @@ discard block |
||
96 | 96 | '*/Stubs/*', |
97 | 97 | '*/tests/Classes/*', |
98 | 98 | '*/tests/Internal/*', |
99 | - __DIR__ . '/src/Console/tests/Configurator', |
|
99 | + __DIR__.'/src/Console/tests/Configurator', |
|
100 | 100 | |
101 | 101 | // cache |
102 | 102 | '*/runtime/cache/*', |
103 | 103 | |
104 | 104 | ReadOnlyPropertyRector::class => [ |
105 | 105 | // used by Configurator |
106 | - __DIR__ . '/src/Scaffolder/src/Command', |
|
106 | + __DIR__.'/src/Scaffolder/src/Command', |
|
107 | 107 | ], |
108 | 108 | |
109 | 109 | FirstClassCallableRector::class => [ |
110 | - __DIR__ . '/src/Core/tests/Scope/UseCaseTest.php', |
|
110 | + __DIR__.'/src/Core/tests/Scope/UseCaseTest.php', |
|
111 | 111 | ], |
112 | 112 | ]) |
113 | 113 | ->withPhpSets(php81: true) |