mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-11 09:24:01 +02:00
style: Adopt PSR12
Dev dependency flyeralarm/php-code-validator has been removed. Closes #444
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
<?php declare(strict_types=1);
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace DesignPatterns\More\EAV;
|
||||
|
||||
|
@@ -1,4 +1,6 @@
|
||||
<?php declare(strict_types=1);
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace DesignPatterns\More\EAV;
|
||||
|
||||
|
@@ -1,4 +1,6 @@
|
||||
<?php declare(strict_types=1);
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace DesignPatterns\More\EAV\Tests;
|
||||
|
||||
|
@@ -1,4 +1,6 @@
|
||||
<?php declare(strict_types=1);
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace DesignPatterns\More\EAV;
|
||||
|
||||
|
@@ -1,4 +1,6 @@
|
||||
<?php declare(strict_types=1);
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace DesignPatterns\More\Repository\Domain;
|
||||
|
||||
|
@@ -1,4 +1,6 @@
|
||||
<?php declare(strict_types=1);
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace DesignPatterns\More\Repository\Domain;
|
||||
|
||||
|
@@ -1,4 +1,6 @@
|
||||
<?php declare(strict_types=1);
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace DesignPatterns\More\Repository\Domain;
|
||||
|
||||
@@ -10,11 +12,11 @@ use InvalidArgumentException;
|
||||
*/
|
||||
class PostStatus
|
||||
{
|
||||
const STATE_DRAFT_ID = 1;
|
||||
const STATE_PUBLISHED_ID = 2;
|
||||
public const STATE_DRAFT_ID = 1;
|
||||
public const STATE_PUBLISHED_ID = 2;
|
||||
|
||||
const STATE_DRAFT = 'draft';
|
||||
const STATE_PUBLISHED = 'published';
|
||||
public const STATE_DRAFT = 'draft';
|
||||
public const STATE_PUBLISHED = 'published';
|
||||
|
||||
private static array $validStates = [
|
||||
self::STATE_DRAFT_ID => self::STATE_DRAFT,
|
||||
|
@@ -1,4 +1,6 @@
|
||||
<?php declare(strict_types=1);
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace DesignPatterns\More\Repository;
|
||||
|
||||
|
@@ -1,4 +1,6 @@
|
||||
<?php declare(strict_types=1);
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace DesignPatterns\More\Repository;
|
||||
|
||||
|
@@ -1,4 +1,6 @@
|
||||
<?php declare(strict_types=1);
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace DesignPatterns\More\Repository;
|
||||
|
||||
|
@@ -1,4 +1,6 @@
|
||||
<?php declare(strict_types=1);
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace DesignPatterns\More\Repository\Tests;
|
||||
|
||||
|
@@ -1,4 +1,6 @@
|
||||
<?php declare(strict_types=1);
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace DesignPatterns\More\ServiceLocator;
|
||||
|
||||
|
@@ -1,4 +1,6 @@
|
||||
<?php declare(strict_types=1);
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace DesignPatterns\More\ServiceLocator;
|
||||
|
||||
|
@@ -1,4 +1,6 @@
|
||||
<?php declare(strict_types=1);
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace DesignPatterns\More\ServiceLocator\Tests;
|
||||
|
||||
|
Reference in New Issue
Block a user