Adhere PHP-CS..
This commit is contained in:
parent
f609e38600
commit
293c121c48
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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' => [],
|
||||
];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue