@@ -27,10 +27,10 @@ |
||
27 | 27 | use RequestTestTrait; |
28 | 28 | |
29 | 29 | /** |
30 | - * @param MockObject|StepResolverInterface $resolver |
|
31 | - * @param MockObject|TranslatorInterface $translator |
|
32 | - * @param MockObject|RouterInterface $router |
|
33 | - * @param MockObject|ActionsRegistryInterface $actionsRegistry |
|
30 | + * @param StepResolverInterface $resolver |
|
31 | + * @param TranslatorInterface $translator |
|
32 | + * @param RouterInterface $router |
|
33 | + * @param ActionsRegistryInterface $actionsRegistry |
|
34 | 34 | * |
35 | 35 | * @return GeneratorController |
36 | 36 | */ |
@@ -53,9 +53,9 @@ discard block |
||
53 | 53 | |
54 | 54 | public function provideNonWorkingConfigurations() |
55 | 55 | { |
56 | - $dir = __DIR__ . '/../Fixtures/App/compiler_pass_test_non_working/'; |
|
56 | + $dir = __DIR__.'/../Fixtures/App/compiler_pass_test_non_working/'; |
|
57 | 57 | |
58 | - $configFiles = glob($dir . 'compiler_config_*.yaml'); |
|
58 | + $configFiles = glob($dir.'compiler_config_*.yaml'); |
|
59 | 59 | |
60 | 60 | sort($configFiles); |
61 | 61 | |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | |
169 | 169 | $inlineStub1 = new class extends ConcreteAbstractActionStub |
170 | 170 | {}; |
171 | - $inlineStub2 = new class extends ConcreteAbstractActionStub{}; |
|
171 | + $inlineStub2 = new class extends ConcreteAbstractActionStub {}; |
|
172 | 172 | |
173 | 173 | $container->setParameter('pierstoval_character_manager.managers', [ |
174 | 174 | 'main' => [ |
@@ -33,8 +33,7 @@ discard block |
||
33 | 33 | string $expectedException, |
34 | 34 | string $expectedExceptionMessage, |
35 | 35 | string $stepClass |
36 | - ) |
|
37 | - { |
|
36 | + ) { |
|
38 | 37 | $this->expectException($expectedException); |
39 | 38 | $this->expectExceptionMessage($expectedExceptionMessage); |
40 | 39 | |
@@ -167,8 +166,11 @@ discard block |
||
167 | 166 | $container->register(ActionsRegistry::class); |
168 | 167 | |
169 | 168 | $inlineStub1 = new class extends ConcreteAbstractActionStub |
170 | - {}; |
|
171 | - $inlineStub2 = new class extends ConcreteAbstractActionStub{}; |
|
169 | + { |
|
170 | +}; |
|
171 | + $inlineStub2 = new class extends ConcreteAbstractActionStub |
|
172 | + { |
|
173 | +}; |
|
172 | 174 | |
173 | 175 | $container->setParameter('pierstoval_character_manager.managers', [ |
174 | 176 | 'main' => [ |
@@ -102,14 +102,14 @@ |
||
102 | 102 | $this->translator = $translator; |
103 | 103 | } |
104 | 104 | |
105 | - public function getStep(): StepInterface |
|
106 | - { |
|
107 | - if (!$this->step) { |
|
108 | - throw new \RuntimeException('Step is not defined in current step action. Did you run the "configure()" method?'); |
|
109 | - } |
|
110 | - |
|
111 | - return $this->step; |
|
112 | - } |
|
105 | + public function getStep(): StepInterface |
|
106 | + { |
|
107 | + if (!$this->step) { |
|
108 | + throw new \RuntimeException('Step is not defined in current step action. Did you run the "configure()" method?'); |
|
109 | + } |
|
110 | + |
|
111 | + return $this->step; |
|
112 | + } |
|
113 | 113 | |
114 | 114 | /** |
115 | 115 | * {@inheritdoc} |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | $managerName = $this->resolveManagerName($managerName); |
40 | 40 | |
41 | 41 | if (!isset($this->steps[$managerName][$stepName])) { |
42 | - throw new StepNotFoundException("Step $stepName does not exist in manager $managerName."); |
|
42 | + throw new StepNotFoundException("step $stepName does not exist in manager $managerName."); |
|
43 | 43 | } |
44 | 44 | |
45 | 45 | return $this->steps[$managerName][$stepName]; |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | } |
107 | 107 | |
108 | 108 | if (!isset($this->managersConfiguration[$managerName])) { |
109 | - throw new \InvalidArgumentException("Manager $managerName does not exist, or is not initialized yet."); |
|
109 | + throw new \InvalidArgumentException("manager $managerName does not exist, or is not initialized yet."); |
|
110 | 110 | } |
111 | 111 | |
112 | 112 | return $managerName; |