style: Adopt PSR12

Dev dependency flyeralarm/php-code-validator has been removed.

Closes #444
This commit is contained in:
Mario Simão
2021-10-01 10:26:04 -03:00
parent 7c0b7ece07
commit 56970cc221
167 changed files with 511 additions and 226 deletions

View File

@@ -1,4 +1,6 @@
<?php declare(strict_types=1);
<?php
declare(strict_types=1);
namespace DesignPatterns\Behavioral\NullObject;

View File

@@ -1,4 +1,6 @@
<?php declare(strict_types=1);
<?php
declare(strict_types=1);
namespace DesignPatterns\Behavioral\NullObject;

View File

@@ -1,4 +1,6 @@
<?php declare(strict_types=1);
<?php
declare(strict_types=1);
namespace DesignPatterns\Behavioral\NullObject;

View File

@@ -1,4 +1,6 @@
<?php declare(strict_types=1);
<?php
declare(strict_types=1);
namespace DesignPatterns\Behavioral\NullObject;
@@ -14,6 +16,6 @@ class Service
public function doSomething()
{
// notice here that you don't have to check if the logger is set with eg. is_null(), instead just use it
$this->logger->log('We are in '.__METHOD__);
$this->logger->log('We are in ' . __METHOD__);
}
}

View File

@@ -1,4 +1,6 @@
<?php declare(strict_types=1);
<?php
declare(strict_types=1);
namespace DesignPatterns\Behavioral\NullObject\Tests;