Skip to content

Commit

Permalink
Fixed CI (2.x)
Browse files Browse the repository at this point in the history
  • Loading branch information
DamienHarper committed Dec 19, 2023
1 parent 2fd4f3e commit 7d127eb
Show file tree
Hide file tree
Showing 35 changed files with 45 additions and 155 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"test": "php -d pcov.enabled=1 ./vendor/bin/phpunit --colors=always",
"csfixer": "tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php --using-cache=no --verbose --ansi",
"cs-check": "tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php --using-cache=no --verbose --ansi --dry-run",
"phpstan": "tools/phpstan/vendor/bin/phpstan --ansi analyse src",
"phpstan": "tools/phpstan/vendor/bin/phpstan --ansi analyse src --memory-limit=1G",
"rector": "tools/rector/vendor/bin/rector process src",
"update-tools": "composer update --working-dir=tools/php-cs-fixer ; composer update --working-dir=tools/phpstan ; composer update --working-dir=tools/rector"
},
Expand Down
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;

class AccessDeniedException extends Exception
{
}
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;

class InvalidArgumentException extends Exception
{
}
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;

class MappingException extends Exception
{
}
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;

class ProviderException extends Exception
{
}
class ProviderException extends Exception {}
4 changes: 0 additions & 4 deletions src/Model/Entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,6 @@ public function getUserFirewall(): ?string

/**
* Get the value of ip.
*
* @return string
*/
public function getIp(): ?string
{
Expand All @@ -124,8 +122,6 @@ public function getCreatedAt(): string

/**
* Get diff values.
*
* @return array
*/
public function getDiffs(bool $includeMedadata = false): ?array
{
Expand Down
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 {}
2 changes: 0 additions & 2 deletions src/Provider/Doctrine/Auditing/Annotation/Auditable.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@

/**
* @Annotation
*
* @NamedArgumentConstructor
*
* @Target("CLASS")
*
* @Attributes({
Expand Down
5 changes: 1 addition & 4 deletions src/Provider/Doctrine/Auditing/Annotation/Ignore.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@

/**
* @Annotation
*
* @Target("PROPERTY")
*/
#[Attribute(Attribute::TARGET_PROPERTY)]
final class Ignore
{
}
final class Ignore {}
2 changes: 0 additions & 2 deletions src/Provider/Doctrine/Auditing/Annotation/Security.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@

/**
* @Annotation
*
* @NamedArgumentConstructor
*
* @Target("CLASS")
*
* @Attributes({
Expand Down
4 changes: 1 addition & 3 deletions src/Provider/Doctrine/Auditing/Logger/Logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,5 @@ public function startQuery($sql, ?array $params = null, ?array $types = null): v
}
}

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

use Exception;

class UpdateException extends Exception
{
}
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;

class AuditingService extends DoctrineService implements AuditingServiceInterface
{
}
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;

class StorageService extends DoctrineService implements StorageServiceInterface
{
}
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 @@

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 @@

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 @@

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 @@

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 @@ -14,13 +14,9 @@
*/
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 @@ -12,6 +12,4 @@
* @ORM\Table(name="cat", schema="auditor")
*/
#[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 @@ -12,6 +12,4 @@
* @ORM\Table(name="dog", schema="auditor")
*/
#[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 @@ -10,6 +10,4 @@
* @ORM\Entity
*/
#[ORM\Entity]
class Bike extends Vehicle
{
}
class Bike extends Vehicle {}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,4 @@
* @ORM\Entity
*/
#[ORM\Entity]
class Car extends Vehicle
{
}
class Car extends Vehicle {}
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ public function setId(int $id): self

/**
* Get the value of id.
*
* @return int
*/
public function getId(): ?int
{
Expand All @@ -98,8 +96,6 @@ public function setFullname(string $fullname): self

/**
* Get the value of fullname.
*
* @return string
*/
public function getFullname(): ?string
{
Expand All @@ -118,8 +114,6 @@ public function setEmail(string $email): self

/**
* Get the value of email.
*
* @return string
*/
public function getEmail(): ?string
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ class Comment
#[ORM\JoinColumn(name: 'post_id', referencedColumnName: 'id', nullable: true)]
protected $post;

public function __construct()
{
}
public function __construct() {}

public function __sleep()
{
Expand All @@ -88,8 +86,6 @@ public function setId(int $id): self

/**
* Get the value of id.
*
* @return int
*/
public function getId(): ?int
{
Expand All @@ -108,8 +104,6 @@ public function setBody(string $body): self

/**
* Get the value of body.
*
* @return string
*/
public function getBody(): ?string
{
Expand All @@ -128,8 +122,6 @@ public function setAuthor(string $author): self

/**
* Get the value of author.
*
* @return string
*/
public function getAuthor(): ?string
{
Expand Down Expand Up @@ -166,8 +158,6 @@ public function setPostId(int $post_id): self

/**
* Get the value of post_id.
*
* @return int
*/
public function getPostId(): ?int
{
Expand Down
Loading

0 comments on commit 7d127eb

Please sign in to comment.