Skip to content

Commit b8b159b

Browse files
committed
CS all the shared kernel package
1 parent f224c97 commit b8b159b

27 files changed

+58
-4
lines changed

etc/phpcs/.php_cs

+6-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,13 @@ declare(strict_types=1);
1515
use Kreta\PhpCsFixerConfig\KretaConfig;
1616

1717
$config = new KretaConfig();
18-
$config->getFinder()->in(__DIR__ . '/src');
18+
$config->getFinder()->in([
19+
__DIR__ . '/../../src',
20+
__DIR__ . '/../../tests/Double',
21+
__DIR__ . '/../../tests/Matchers',
22+
]);
1923

20-
$cacheDir = getenv('TRAVIS') ? getenv('HOME') . '/.php-cs-fixer' : __DIR__;
24+
$cacheDir = getenv('TRAVIS') ? getenv('HOME') . '/.php-cs-fixer' : __DIR__ . '/../..';
2125

2226
$config->setCacheFile($cacheDir . '/.php_cs.cache');
2327

etc/phpcs/.phpspec_cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ use Kreta\PhpCsFixerConfig\KretaConfig;
1616

1717
$config = new KretaConfig(true);
1818
$config->getFinder()
19-
->in(__DIR__ . '/tests/Spec')
19+
->in(__DIR__ . '/../../tests/Spec')
2020
->name('*Spec.php');
2121

22-
$cacheDir = getenv('TRAVIS') ? getenv('HOME') . '/.php-cs-fixer' : __DIR__;
22+
$cacheDir = getenv('TRAVIS') ? getenv('HOME') . '/.php-cs-fixer' : __DIR__ . '/../..';
2323

2424
$config->setCacheFile($cacheDir . '/.php_cs.cache');
2525

tests/Matchers/CollectionMatcher.php

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* file that was distributed with this source code.
1111
*/
1212

13+
declare(strict_types=1);
14+
1315
namespace Kreta\SharedKernel\Tests\Matchers;
1416

1517
use Kreta\SharedKernel\Domain\Model\Collection;

tests/Matchers/DomainPublishedMatcher.php

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* file that was distributed with this source code.
1111
*/
1212

13+
declare(strict_types=1);
14+
1315
namespace Kreta\SharedKernel\Tests\Matchers;
1416

1517
use Kreta\SharedKernel\Domain\Model\AggregateRoot;

tests/Spec/Kreta/SharedKernel/Domain/Model/AggregateDoesNotExistExceptionSpec.php

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* file that was distributed with this source code.
1111
*/
1212

13+
declare(strict_types=1);
14+
1315
namespace Spec\Kreta\SharedKernel\Domain\Model;
1416

1517
use Kreta\SharedKernel\Domain\Model\AggregateDoesNotExistException;

tests/Spec/Kreta/SharedKernel/Domain/Model/AggregateRootSpec.php

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* file that was distributed with this source code.
1111
*/
1212

13+
declare(strict_types=1);
14+
1315
namespace Spec\Kreta\SharedKernel\Domain\Model;
1416

1517
use Kreta\SharedKernel\Domain\Model\AggregateRoot;

tests/Spec/Kreta/SharedKernel/Domain/Model/AsyncDomainEventValueDoesNotExistExceptionSpec.php

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* file that was distributed with this source code.
1111
*/
1212

13+
declare(strict_types=1);
14+
1315
namespace Spec\Kreta\SharedKernel\Domain\Model;
1416

1517
use Kreta\SharedKernel\Domain\Model\AsyncDomainEventValueDoesNotExistException;

tests/Spec/Kreta/SharedKernel/Domain/Model/CollectionElementAlreadyAddedExceptionSpec.php

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* file that was distributed with this source code.
1111
*/
1212

13+
declare(strict_types=1);
14+
1315
namespace Spec\Kreta\SharedKernel\Domain\Model;
1416

1517
use Kreta\SharedKernel\Domain\Model\CollectionElementAlreadyAddedException;

tests/Spec/Kreta/SharedKernel/Domain/Model/CollectionElementAlreadyRemovedExceptionSpec.php

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* file that was distributed with this source code.
1111
*/
1212

13+
declare(strict_types=1);
14+
1315
namespace Spec\Kreta\SharedKernel\Domain\Model;
1416

1517
use Kreta\SharedKernel\Domain\Model\CollectionElementAlreadyRemovedException;

tests/Spec/Kreta/SharedKernel/Domain/Model/DateTimeSpec.php

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* file that was distributed with this source code.
1111
*/
1212

13+
declare(strict_types=1);
14+
1315
namespace Spec\Kreta\SharedKernel\Domain\Model;
1416

1517
use Kreta\SharedKernel\Domain\Model\DateTime;

tests/Spec/Kreta/SharedKernel/Domain/Model/DomainEventCollectionSpec.php

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* file that was distributed with this source code.
1111
*/
1212

13+
declare(strict_types=1);
14+
1315
namespace Spec\Kreta\SharedKernel\Domain\Model;
1416

1517
use Doctrine\Common\Collections\ArrayCollection;

tests/Spec/Kreta/SharedKernel/Domain/Model/ExceptionSpec.php

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* file that was distributed with this source code.
1111
*/
1212

13+
declare(strict_types=1);
14+
1315
namespace Spec\Kreta\SharedKernel\Domain\Model;
1416

1517
use Kreta\SharedKernel\Domain\Model\Exception;

tests/Spec/Kreta/SharedKernel/Domain/Model/Identity/IdSpec.php

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* file that was distributed with this source code.
1111
*/
1212

13+
declare(strict_types=1);
14+
1315
namespace Spec\Kreta\SharedKernel\Domain\Model\Identity;
1416

1517
use Kreta\SharedKernel\Domain\Model\Identity\BaseId;

tests/Spec/Kreta/SharedKernel/Domain/Model/Identity/InvalidIdExceptionSpec.php

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* file that was distributed with this source code.
1111
*/
1212

13+
declare(strict_types=1);
14+
1315
namespace Spec\Kreta\SharedKernel\Domain\Model\Identity;
1416

1517
use Kreta\SharedKernel\Domain\Model\Identity\InvalidIdException;

tests/Spec/Kreta/SharedKernel/Domain/Model/Identity/SlugSpec.php

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* file that was distributed with this source code.
1111
*/
1212

13+
declare(strict_types=1);
14+
1315
namespace Spec\Kreta\SharedKernel\Domain\Model\Identity;
1416

1517
use Kreta\SharedKernel\Domain\Model\Identity\Slug;

tests/Spec/Kreta/SharedKernel/Domain/Model/InvalidArgumentExceptionSpec.php

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* file that was distributed with this source code.
1111
*/
1212

13+
declare(strict_types=1);
14+
1315
namespace Spec\Kreta\SharedKernel\Domain\Model;
1416

1517
use Kreta\SharedKernel\Domain\Model\Exception;

tests/Spec/Kreta/SharedKernel/Domain/Model/InvalidCollectionElementExceptionSpec.php

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* file that was distributed with this source code.
1111
*/
1212

13+
declare(strict_types=1);
14+
1315
namespace Spec\Kreta\SharedKernel\Domain\Model;
1416

1517
use Kreta\SharedKernel\Domain\Model\InvalidArgumentException;

tests/Spec/Kreta/SharedKernel/Event/AsyncEventSpec.php

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* file that was distributed with this source code.
1111
*/
1212

13+
declare(strict_types=1);
14+
1315
namespace Spec\Kreta\SharedKernel\Event;
1416

1517
use Kreta\SharedKernel\Domain\Model\AsyncDomainEvent;

tests/Spec/Kreta/SharedKernel/Event/EventStreamSpec.php

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* file that was distributed with this source code.
1111
*/
1212

13+
declare(strict_types=1);
14+
1315
namespace Spec\Kreta\SharedKernel\Event;
1416

1517
use Kreta\SharedKernel\Domain\Model\DomainEventCollection;

tests/Spec/Kreta/SharedKernel/Infrastructure/Application/SimpleBus/SimpleBusCommandBusSpec.php

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* file that was distributed with this source code.
1111
*/
1212

13+
declare(strict_types=1);
14+
1315
namespace Spec\Kreta\SharedKernel\Infrastructure\Application\SimpleBus;
1416

1517
use Kreta\SharedKernel\Application\CommandBus;

tests/Spec/Kreta/SharedKernel/Infrastructure/Application/SimpleBus/SimpleBusQueryBusSpec.php

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* file that was distributed with this source code.
1111
*/
1212

13+
declare(strict_types=1);
14+
1315
namespace Spec\Kreta\SharedKernel\Infrastructure\Application\SimpleBus;
1416

1517
use Ajgl\SimpleBus\Message\Bus\CatchReturnMessageBus;

tests/Spec/Kreta/SharedKernel/Infrastructure/Event/SimpleBus/EventRecorder/Doctrine/ORM/AggregateRootEventRecorderSpec.php

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* file that was distributed with this source code.
1111
*/
1212

13+
declare(strict_types=1);
14+
1315
namespace Spec\Kreta\SharedKernel\Infrastructure\Event\SimpleBus\EventRecorder\Doctrine\ORM;
1416

1517
use Doctrine\Common\EventSubscriber;

tests/Spec/Kreta/SharedKernel/Infrastructure/Persistence/InMemory/EventStore/InMemoryEventStoreSpec.php

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* file that was distributed with this source code.
1111
*/
1212

13+
declare(strict_types=1);
14+
1315
namespace Spec\Kreta\SharedKernel\Infrastructure\Persistence\InMemory\EventStore;
1416

1517
use Kreta\SharedKernel\Domain\Model\AggregateDoesNotExistException;

tests/Spec/Kreta/SharedKernel/Serialization/AsyncEventSerializerSpec.php

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* file that was distributed with this source code.
1111
*/
1212

13+
declare(strict_types=1);
14+
1315
namespace Spec\Kreta\SharedKernel\Serialization;
1416

1517
use Kreta\SharedKernel\Domain\Model\Exception;

tests/Spec/Kreta/SharedKernel/Serialization/ClassNameDoesNotExistExceptionSpec.php

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* file that was distributed with this source code.
1111
*/
1212

13+
declare(strict_types=1);
14+
1315
namespace Spec\Kreta\SharedKernel\Serialization;
1416

1517
use Kreta\SharedKernel\Domain\Model\Exception;

tests/Spec/Kreta/SharedKernel/Serialization/InvalidSerializationObjectExceptionSpec.php

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* file that was distributed with this source code.
1111
*/
1212

13+
declare(strict_types=1);
14+
1315
namespace Spec\Kreta\SharedKernel\Serialization;
1416

1517
use Kreta\SharedKernel\Domain\Model\Exception;

tests/Spec/Kreta/SharedKernel/Serialization/NameResolverSpec.php

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* file that was distributed with this source code.
1111
*/
1212

13+
declare(strict_types=1);
14+
1315
namespace Spec\Kreta\SharedKernel\Serialization;
1416

1517
use Kreta\SharedKernel\Serialization\ClassNameDoesNotExistException;

0 commit comments

Comments
 (0)