1
0
Fork 0

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'],
'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
'call' => null,
'substitutions' => [$class => $instance],
'call' => null,
'substitutions' => [$class => $instance],
]);
$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)
{
$this->aText = $aText;
$this->cBool = $cBool;
$this->bText = $bText;
$this->aText = $aText;
$this->cBool = $cBool;
$this->bText = $bText;
}
public function createSomething(string $aText, bool $cBool, string $bText): string
{
$this->aText = $aText;
$this->cBool = $cBool;
$this->bText = $bText;
$this->aText = $aText;
$this->cBool = $cBool;
$this->bText = $bText;
}
public function getAText(): ?string

View file

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