Adhere PHP-CS..

This commit is contained in:
Philipp Holzer 2023-01-16 22:25:26 +01:00
parent f609e38600
commit 293c121c48
Signed by: nupplaPhil
GPG key ID: 24A7501396EB5432
3 changed files with 14 additions and 14 deletions

View file

@ -92,8 +92,8 @@ class InstanceManager implements ICanManageInstances
'instanceOf' => $decorator['class'], 'instanceOf' => $decorator['class'],
'constructParams' => empty($decorator['arguments']) ? null : $decorator['arguments'], 'constructParams' => empty($decorator['arguments']) ? null : $decorator['arguments'],
/// @todo maybe support call structures for hooks as well in a later stage - could make factory calls easier /// @todo maybe support call structures for hooks as well in a later stage - could make factory calls easier
'call' => null, 'call' => null,
'substitutions' => [$class => $instance], 'substitutions' => [$class => $instance],
]); ]);
$instance = $this->dice->create($class); $instance = $this->dice->create($class);

View file

@ -31,16 +31,16 @@ class FakeInstance implements IAmADecoratedInterface, IAmAStrategy
public function __construct(string $aText = null, bool $cBool = null, string $bText = null) public function __construct(string $aText = null, bool $cBool = null, string $bText = null)
{ {
$this->aText = $aText; $this->aText = $aText;
$this->cBool = $cBool; $this->cBool = $cBool;
$this->bText = $bText; $this->bText = $bText;
} }
public function createSomething(string $aText, bool $cBool, string $bText): string public function createSomething(string $aText, bool $cBool, string $bText): string
{ {
$this->aText = $aText; $this->aText = $aText;
$this->cBool = $cBool; $this->cBool = $cBool;
$this->bText = $bText; $this->bText = $bText;
} }
public function getAText(): ?string public function getAText(): ?string

View file

@ -53,26 +53,26 @@ class InstanceManagerTest extends MockedTest
public function dataTests(): array public function dataTests(): array
{ {
return [ return [
'only_a' => [ 'only_a' => [
'aString' => 'test', 'aString' => 'test',
], ],
'a_b' => [ 'a_b' => [
'aString' => 'test', 'aString' => 'test',
'cBool' => false, 'cBool' => false,
'bString' => 'test23', 'bString' => 'test23',
], ],
'a_c' => [ 'a_c' => [
'aString' => 'test', 'aString' => 'test',
'cBool' => false, 'cBool' => false,
'bString' => null, 'bString' => null,
], ],
'a_b_c' => [ 'a_b_c' => [
'aString' => 'test', 'aString' => 'test',
'cBool' => false, 'cBool' => false,
'bString' => 'test23', 'bString' => 'test23',
], ],
'null' => [], 'null' => [],
]; ];
} }