]> git.mxchange.org Git - friendica.git/commitdiff
Adhere PHP-CS..
authorPhilipp <admin@philipp.info>
Mon, 16 Jan 2023 21:25:26 +0000 (22:25 +0100)
committerPhilipp <admin@philipp.info>
Mon, 16 Jan 2023 21:25:26 +0000 (22:25 +0100)
src/Core/Hooks/Model/InstanceManager.php
tests/Util/Hooks/InstanceMocks/FakeInstance.php
tests/src/Core/Hooks/Model/InstanceManagerTest.php

index 4b8a0e6de86848bfdf580374aeaf06d786b438fb..7a3697062d6276c19d500dbf3cc595600ccb10b7 100644 (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);
index 70fdbcd4fe778ea73c264e8afd048ba540430216..ff99002f7c77514ee2aeacf7c39ad6dcddb7ff38 100644 (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
index 94340b012fcbf417ac82955b1c2a1e37ee5c39de..4e4c0135cbf3f26071f7c46568dca30ffc0ee109 100644 (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' => [],
                ];
        }