Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix actual cs-fixer errors #176

Merged
merged 1 commit into from
Sep 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/Event/LifecycleEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,4 @@
/**
* @see \DH\Auditor\Tests\Event\LifecycleEventTest
*/
final class LifecycleEvent extends AuditEvent
{
}
final class LifecycleEvent extends AuditEvent {}
4 changes: 1 addition & 3 deletions src/Exception/AccessDeniedException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,4 @@

use Exception;

final class AccessDeniedException extends Exception
{
}
final class AccessDeniedException extends Exception {}
4 changes: 1 addition & 3 deletions src/Exception/InvalidArgumentException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,4 @@

use Exception;

final class InvalidArgumentException extends Exception
{
}
final class InvalidArgumentException extends Exception {}
4 changes: 1 addition & 3 deletions src/Exception/MappingException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,4 @@

use Exception;

final class MappingException extends Exception
{
}
final class MappingException extends Exception {}
4 changes: 1 addition & 3 deletions src/Exception/ProviderException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,4 @@

use Exception;

final class ProviderException extends Exception
{
}
final class ProviderException extends Exception {}
4 changes: 1 addition & 3 deletions src/Provider/ConfigurationInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

namespace DH\Auditor\Provider;

interface ConfigurationInterface
{
}
interface ConfigurationInterface {}
4 changes: 1 addition & 3 deletions src/Provider/Doctrine/Auditing/Annotation/Ignore.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,4 @@
use Attribute;

#[Attribute(Attribute::TARGET_PROPERTY)]
final class Ignore
{
}
final class Ignore {}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,4 @@

use Exception;

final class UpdateException extends Exception
{
}
final class UpdateException extends Exception {}
4 changes: 1 addition & 3 deletions src/Provider/Doctrine/Service/AuditingService.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,4 @@

use DH\Auditor\Provider\Service\AuditingServiceInterface;

final class AuditingService extends DoctrineService implements AuditingServiceInterface
{
}
final class AuditingService extends DoctrineService implements AuditingServiceInterface {}
4 changes: 1 addition & 3 deletions src/Provider/Doctrine/Service/StorageService.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,4 @@

use DH\Auditor\Provider\Service\StorageServiceInterface;

final class StorageService extends DoctrineService implements StorageServiceInterface
{
}
final class StorageService extends DoctrineService implements StorageServiceInterface {}
4 changes: 1 addition & 3 deletions src/Provider/Service/AuditingServiceInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

namespace DH\Auditor\Provider\Service;

interface AuditingServiceInterface extends ServiceInterface
{
}
interface AuditingServiceInterface extends ServiceInterface {}
4 changes: 1 addition & 3 deletions src/Provider/Service/StorageServiceInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

namespace DH\Auditor\Provider\Service;

interface StorageServiceInterface extends ServiceInterface
{
}
interface StorageServiceInterface extends ServiceInterface {}
16 changes: 4 additions & 12 deletions tests/Fixtures/Provider/AuditNoStorageProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,9 @@

final class AuditNoStorageProvider extends AbstractProvider
{
public function getConfiguration(): ConfigurationInterface
{
}
public function getConfiguration(): ConfigurationInterface {}

public function persist(LifecycleEvent $event): void
{
}
public function persist(LifecycleEvent $event): void {}

public function supportsStorage(): bool
{
Expand All @@ -28,11 +24,7 @@ public function supportsAuditing(): bool
return true;
}

public function getStorageServices(): array
{
}
public function getStorageServices(): array {}

public function getAuditingServices(): array
{
}
public function getAuditingServices(): array {}
}
16 changes: 4 additions & 12 deletions tests/Fixtures/Provider/NoStorageNoAuditProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,9 @@

final class NoStorageNoAuditProvider extends AbstractProvider
{
public function getConfiguration(): ConfigurationInterface
{
}
public function getConfiguration(): ConfigurationInterface {}

public function persist(LifecycleEvent $event): void
{
}
public function persist(LifecycleEvent $event): void {}

public function supportsStorage(): bool
{
Expand All @@ -28,11 +24,7 @@ public function supportsAuditing(): bool
return false;
}

public function getStorageServices(): array
{
}
public function getStorageServices(): array {}

public function getAuditingServices(): array
{
}
public function getAuditingServices(): array {}
}
16 changes: 4 additions & 12 deletions tests/Fixtures/Provider/StorageAndAuditProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,9 @@

final class StorageAndAuditProvider extends AbstractProvider
{
public function getConfiguration(): ConfigurationInterface
{
}
public function getConfiguration(): ConfigurationInterface {}

public function persist(LifecycleEvent $event): void
{
}
public function persist(LifecycleEvent $event): void {}

public function supportsStorage(): bool
{
Expand All @@ -28,11 +24,7 @@ public function supportsAuditing(): bool
return true;
}

public function getStorageServices(): array
{
}
public function getStorageServices(): array {}

public function getAuditingServices(): array
{
}
public function getAuditingServices(): array {}
}
16 changes: 4 additions & 12 deletions tests/Fixtures/Provider/StorageNoAuditProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,9 @@

final class StorageNoAuditProvider extends AbstractProvider
{
public function getConfiguration(): ConfigurationInterface
{
}
public function getConfiguration(): ConfigurationInterface {}

public function persist(LifecycleEvent $event): void
{
}
public function persist(LifecycleEvent $event): void {}

public function supportsStorage(): bool
{
Expand All @@ -28,11 +24,7 @@ public function supportsAuditing(): bool
return false;
}

public function getStorageServices(): array
{
}
public function getStorageServices(): array {}

public function getAuditingServices(): array
{
}
public function getAuditingServices(): array {}
}
8 changes: 2 additions & 6 deletions tests/Model/TransactionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,9 @@
#[\PHPUnit\Framework\Attributes\Small]
final class TransactionTest extends TestCase
{
protected function setUp(): void
{
}
protected function setUp(): void {}

protected function tearDown(): void
{
}
protected function tearDown(): void {}

public function testGetTransactionHash(): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,4 @@

#[ORM\Entity]
#[ORM\Table(name: 'cat', schema: 'auditor')]
class Cat extends Animal
{
}
class Cat extends Animal {}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,4 @@

#[ORM\Entity]
#[ORM\Table(name: 'dog', schema: 'auditor')]
class Dog extends Animal
{
}
class Dog extends Animal {}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,4 @@
use Doctrine\ORM\Mapping as ORM;

#[ORM\Entity]
class Bike extends Vehicle
{
}
class Bike extends Vehicle {}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,4 @@
use Doctrine\ORM\Mapping as ORM;

#[ORM\Entity]
class Car extends Vehicle
{
}
class Car extends Vehicle {}
4 changes: 1 addition & 3 deletions tests/Provider/Doctrine/Fixtures/Issue101/ChildEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,4 @@

#[ORM\Entity]
#[Audit\Auditable]
class ChildEntity extends ParentEntity
{
}
class ChildEntity extends ParentEntity {}
4 changes: 1 addition & 3 deletions tests/Provider/Doctrine/Fixtures/Issue132/DummyEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,4 @@
use Doctrine\ORM\Mapping as ORM;

#[ORM\Entity]
class DummyEntity extends AbstractParentEntity
{
}
class DummyEntity extends AbstractParentEntity {}
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ final class SchemaManagerTest extends TestCase
{
use DefaultSchemaSetupTrait;
use ReflectionTrait;

// new/alternate structure
/**
* @var array<string, array<string, array<string, int|true>|array<string, null|bool>|array<string, null|false|int>|array<string, null|true>|array<string, true>|string>>
Expand Down
4 changes: 1 addition & 3 deletions tests/Provider/Doctrine/Traits/Schema/SchemaSetupTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,7 @@ private function configureEntities(): void
// No audited entities configured
}

private function setupEntities(): void
{
}
private function setupEntities(): void {}

/**
* @param array<StorageServiceInterface> $storageServices
Expand Down