Skip to content

Commit ac8bfdb

Browse files
committed
Fix code styling according to PSR12
1 parent be52db2 commit ac8bfdb

File tree

16 files changed

+20
-18
lines changed

16 files changed

+20
-18
lines changed

src/Helper/AccessKey.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public static function create($key): AccessKey
4444

4545
$key_string = strval($key);
4646

47-
$key = new self;
47+
$key = new self();
4848
$key->raw = $key_string;
4949

5050
$keys = explode('.', $key_string);

src/Manager/ErrorAbortManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function parse(Input $input): Accessable
7070

7171
$document = $this->getFactory()->make(
7272
'Document',
73-
[$object, $this, new RootAccessable]
73+
[$object, $this, new RootAccessable()]
7474
);
7575

7676
// Clear config

tests/BC/AccessableTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class AccessableTest extends TestCase
3131
*/
3232
public function testBcForAccessableInterface()
3333
{
34-
$class = new class() implements Accessable {
34+
$class = new class () implements Accessable {
3535
/**
3636
* Get a value by a key
3737
*

tests/BC/ElementTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function testBcForElementInterface()
3737
$manager = $this->createMock(Manager::class);
3838
$parent = $this->createMock(Accessable::class);
3939

40-
$class = new class($data, $manager, $parent) implements Element {
40+
$class = new class ($data, $manager, $parent) implements Element {
4141
/**
4242
* Sets the manager and parent
4343
*

tests/BC/Exception/ExceptionTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ class ExceptionTest extends TestCase
3131
*/
3232
public function testBcForExceptionInterface()
3333
{
34-
$class = new class() implements Exception {};
34+
$class = new class () implements Exception {
35+
};
3536

3637
$this->assertInstanceOf(Exception::class, $class);
3738
}

tests/BC/FactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class FactoryTest extends TestCase
3131
*/
3232
public function testBcForFactoryInterface()
3333
{
34-
$class = new class() implements Factory {
34+
$class = new class () implements Factory {
3535
/**
3636
* Create a new instance of a class
3737
*

tests/BC/Input/InputTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class InputTest extends TestCase
3131
*/
3232
public function testBcForInputInterface()
3333
{
34-
$class = new class() implements Input {
34+
$class = new class () implements Input {
3535
/**
3636
* Get the input as simple object
3737
*

tests/BC/Input/RequestInputTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ class RequestInputTest extends TestCase
3131
*/
3232
public function testBcForRequestInputInterface()
3333
{
34-
$class = new class() implements RequestInput {};
34+
$class = new class () implements RequestInput {
35+
};
3536

3637
$this->assertInstanceOf(RequestInput::class, $class);
3738
}

tests/BC/ManagerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class ManagerTest extends TestCase
3232
*/
3333
public function testBcForManagerInterface()
3434
{
35-
$class = new class() implements Manager {
35+
$class = new class () implements Manager {
3636
/**
3737
* Parse the input
3838
*

tests/BC/Serializer/SerializerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class SerializerTest extends TestCase
3232
*/
3333
public function testBcForSerializerInterface()
3434
{
35-
$class = new class() implements Serializer {
35+
$class = new class () implements Serializer {
3636
/**
3737
* Serialize data
3838
*

0 commit comments

Comments
 (0)