Skip to content

Commit

Permalink
CS fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
emodric committed Sep 15, 2023
1 parent 9b1d065 commit 20314c3
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 23 deletions.
4 changes: 1 addition & 3 deletions lib/Exceptions/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,4 @@

use Throwable;

interface Exception extends Throwable
{
}
interface Exception extends Throwable {}
4 changes: 1 addition & 3 deletions lib/Exceptions/InvalidArgumentException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,4 @@

use InvalidArgumentException as BaseInvalidArgumentException;

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

use Exception as BaseException;

final class NotFoundException extends BaseException implements Exception
{
}
final class NotFoundException extends BaseException implements Exception {}
4 changes: 1 addition & 3 deletions lib/Exceptions/OutOfBoundsException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,4 @@

use OutOfBoundsException as BaseOutOfBoundsException;

final class OutOfBoundsException extends BaseOutOfBoundsException implements Exception
{
}
final class OutOfBoundsException extends BaseOutOfBoundsException implements Exception {}
4 changes: 1 addition & 3 deletions lib/Exceptions/RuntimeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,4 @@

use RuntimeException as BaseRuntimeException;

final class RuntimeException extends BaseRuntimeException implements Exception
{
}
final class RuntimeException extends BaseRuntimeException implements Exception {}
8 changes: 2 additions & 6 deletions lib/Utils/BackwardsCompatibility/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@
// Remove when support for Symfony 3.4 and lower ends.

if (Kernel::VERSION_ID >= 40400) {
abstract class Event extends ContractsEvent
{
}
abstract class Event extends ContractsEvent {}
} elseif (class_exists(LegacyEvent::class)) {
abstract class Event extends LegacyEvent
{
}
abstract class Event extends LegacyEvent {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public function testOnExceptionInNonAPIRequest(): void
/**
* @return array<int, mixed[]>
*/
public static function onExceptionDataProvider(): array
public static function onExceptionDataProvider(): iterable
{
return [
[
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/Pager/PagerFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function testBuildPager(int $page, int $limit, int $currentPage, int $max
/**
* @return int[][]
*/
public static function buildPagerDataProvider(): array
public static function buildPagerDataProvider(): iterable
{
return [
[5, 20, 5, 20],
Expand Down

0 comments on commit 20314c3

Please sign in to comment.