@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare( strict_types = 1 ); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | // @phan-file-suppress PhanPluginNeverReturnMethod |
| 6 | 6 | |
@@ -29,8 +29,8 @@ discard block |
||
| 29 | 29 | // no parent::__construct() call |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | - public function hasType( EntityId $id, array $classes ): CachedBool { |
|
| 33 | - throw new LogicException( 'methods of this class should never be called' ); |
|
| 32 | + public function hasType(EntityId $id, array $classes): CachedBool { |
|
| 33 | + throw new LogicException('methods of this class should never be called'); |
|
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | public function findEntitiesWithSameStatement( |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | Statement $statement, |
| 39 | 39 | array $separators |
| 40 | 40 | ): CachedEntityIds { |
| 41 | - throw new LogicException( 'methods of this class should never be called' ); |
|
| 41 | + throw new LogicException('methods of this class should never be called'); |
|
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | public function findEntitiesWithSameQualifierOrReference( |
@@ -47,15 +47,15 @@ discard block |
||
| 47 | 47 | string $type, |
| 48 | 48 | bool $ignoreDeprecatedStatements |
| 49 | 49 | ): CachedEntityIds { |
| 50 | - throw new LogicException( 'methods of this class should never be called' ); |
|
| 50 | + throw new LogicException('methods of this class should never be called'); |
|
| 51 | 51 | } |
| 52 | 52 | |
| 53 | - public function matchesRegularExpression( string $text, string $regex ): bool { |
|
| 54 | - throw new LogicException( 'methods of this class should never be called' ); |
|
| 53 | + public function matchesRegularExpression(string $text, string $regex): bool { |
|
| 54 | + throw new LogicException('methods of this class should never be called'); |
|
| 55 | 55 | } |
| 56 | 56 | |
| 57 | - public function runQuery( string $query, string $endpoint, bool $needsPrefixes = true ): CachedQueryResults { |
|
| 58 | - throw new LogicException( 'methods of this class should never be called' ); |
|
| 57 | + public function runQuery(string $query, string $endpoint, bool $needsPrefixes = true): CachedQueryResults { |
|
| 58 | + throw new LogicException('methods of this class should never be called'); |
|
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | } |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare( strict_types = 1 ); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | // @phan-file-suppress PhanPluginNeverReturnMethod |
| 6 | 6 | |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | * @codeCoverageIgnore This method is not supported. |
| 34 | 34 | */ |
| 35 | 35 | public function getType(): string { |
| 36 | - throw new LogicException( 'EntityContextCursor has no full associated context' ); |
|
| 36 | + throw new LogicException('EntityContextCursor has no full associated context'); |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | public function getEntityId(): string { |
@@ -44,35 +44,35 @@ discard block |
||
| 44 | 44 | * @codeCoverageIgnore This method is not supported. |
| 45 | 45 | */ |
| 46 | 46 | public function getStatementPropertyId(): string { |
| 47 | - throw new LogicException( 'EntityContextCursor has no full associated context' ); |
|
| 47 | + throw new LogicException('EntityContextCursor has no full associated context'); |
|
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | /** |
| 51 | 51 | * @codeCoverageIgnore This method is not supported. |
| 52 | 52 | */ |
| 53 | 53 | public function getStatementGuid(): string { |
| 54 | - throw new LogicException( 'EntityContextCursor has no full associated context' ); |
|
| 54 | + throw new LogicException('EntityContextCursor has no full associated context'); |
|
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | /** |
| 58 | 58 | * @codeCoverageIgnore This method is not supported. |
| 59 | 59 | */ |
| 60 | 60 | public function getSnakPropertyId(): string { |
| 61 | - throw new LogicException( 'EntityContextCursor has no full associated context' ); |
|
| 61 | + throw new LogicException('EntityContextCursor has no full associated context'); |
|
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | /** |
| 65 | 65 | * @codeCoverageIgnore This method is not supported. |
| 66 | 66 | */ |
| 67 | 67 | public function getSnakHash(): string { |
| 68 | - throw new LogicException( 'EntityContextCursor has no full associated context' ); |
|
| 68 | + throw new LogicException('EntityContextCursor has no full associated context'); |
|
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | /** |
| 72 | 72 | * @codeCoverageIgnore This method is not supported. |
| 73 | 73 | */ |
| 74 | - public function &getMainArray( array &$container ): array { |
|
| 75 | - throw new LogicException( 'EntityContextCursor cannot store check results' ); |
|
| 74 | + public function &getMainArray(array &$container): array { |
|
| 75 | + throw new LogicException('EntityContextCursor cannot store check results'); |
|
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | /** |
@@ -81,14 +81,14 @@ discard block |
||
| 81 | 81 | * @param ?array $result must be null |
| 82 | 82 | * @param array[] &$container |
| 83 | 83 | */ |
| 84 | - public function storeCheckResultInArray( ?array $result, array &$container ): void { |
|
| 85 | - if ( $result !== null ) { |
|
| 86 | - throw new LogicException( 'EntityContextCursor cannot store check results' ); |
|
| 84 | + public function storeCheckResultInArray(?array $result, array &$container): void { |
|
| 85 | + if ($result !== null) { |
|
| 86 | + throw new LogicException('EntityContextCursor cannot store check results'); |
|
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | // this ensures that the claims array is present in the $container, |
| 90 | 90 | // populating it if necessary, even though we ignore the return value |
| 91 | - $this->getClaimsArray( $container ); |
|
| 91 | + $this->getClaimsArray($container); |
|
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | } |