Skip to content

Commit

Permalink
Updated ECS config
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Wright <[email protected]>
  • Loading branch information
betterthanclay committed Apr 29, 2024
1 parent 68c3a92 commit 61c4b31
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
13 changes: 8 additions & 5 deletions ecs.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@
declare(strict_types=1);

use Symplify\EasyCodingStandard\Config\ECSConfig;
use Symplify\EasyCodingStandard\ValueObject\Set\SetList;

return static function (ECSConfig $ecsConfig): void {
$ecsConfig->paths([__DIR__.'/src', __DIR__.'/stubs']);
$ecsConfig->sets([SetList::CLEAN_CODE, SetList::PSR_12]);
};
return ECSConfig::configure()
->withPaths([
__DIR__.'/src'
])
->withPreparedSets(
cleanCode: true,
psr12: true
);
5 changes: 2 additions & 3 deletions src/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
use DecodeLabs\Archetype\Resolver\Archetype as ArchetypeResolver;
use DecodeLabs\Archetype\Resolver\DefaultName as DefaultNameResolver;
use DecodeLabs\Archetype\Resolver\FileFinder as FileFinder;
use DecodeLabs\Archetype\Resolver\Generic as GenericResolver;
use DecodeLabs\Archetype\Resolver\Scanner as ScannerResolver;
use DecodeLabs\Exceptional;
use DecodeLabs\Veneer;
Expand All @@ -40,7 +39,7 @@ class Handler
*/
public function getNamespaceMap(): NamespaceMap
{
if(!isset($this->namespaces)) {
if (!isset($this->namespaces)) {
$this->namespaces = new NamespaceMap();
}

Expand Down Expand Up @@ -93,7 +92,7 @@ public function register(

$key = $this->getListKey($item);

if($item instanceof Resolver) {
if ($item instanceof Resolver) {
$item->setNamespaceMap($this->getNamespaceMap());
}

Expand Down
1 change: 0 additions & 1 deletion src/Resolver/Generic.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

namespace DecodeLabs\Archetype\Resolver;

use DecodeLabs\Archetype\NamespaceList;
use DecodeLabs\Archetype\ResolverTrait;
use Generator;

Expand Down

0 comments on commit 61c4b31

Please sign in to comment.