@@ -646,7 +646,7 @@ discard block |
||
| 646 | 646 | $modelClass = $schemaClass::MODEL; |
| 647 | 647 | assert($schemaInfo->hasRelationship($modelClass, $modelRelName)); |
| 648 | 648 | assert( |
| 649 | - ($type =$schemaInfo->getRelationshipType($modelClass, $modelRelName)) === RelationshipTypes::BELONGS_TO || |
|
| 649 | + ($type = $schemaInfo->getRelationshipType($modelClass, $modelRelName)) === RelationshipTypes::BELONGS_TO || |
|
| 650 | 650 | $type === RelationshipTypes::BELONGS_TO_MANY |
| 651 | 651 | ); |
| 652 | 652 | |
@@ -902,7 +902,7 @@ discard block |
||
| 902 | 902 | ): string { |
| 903 | 903 | $schema = $jsonSchemas->getSchema($model); |
| 904 | 904 | $selfLink = $schema->getSelfLink($model); |
| 905 | - $urlPrefix = (string)$requestUri->withPath('')->withQuery('')->withFragment(''); |
|
| 905 | + $urlPrefix = (string) $requestUri->withPath('')->withQuery('')->withFragment(''); |
|
| 906 | 906 | $fullUrl = $selfLink->getStringRepresentation($urlPrefix); |
| 907 | 907 | |
| 908 | 908 | return $fullUrl; |
@@ -915,7 +915,7 @@ discard block |
||
| 915 | 915 | */ |
| 916 | 916 | private static function assertClassValueDefined(?string $value): void |
| 917 | 917 | { |
| 918 | - assert(empty($value) === false, 'Value should be defined in `' . static::class . '`.'); |
|
| 918 | + assert(empty($value) === false, 'Value should be defined in `'.static::class.'`.'); |
|
| 919 | 919 | } |
| 920 | 920 | |
| 921 | 921 | /** |
@@ -928,7 +928,7 @@ discard block |
||
| 928 | 928 | { |
| 929 | 929 | assert( |
| 930 | 930 | array_key_exists($interface, class_implements($class)) === true, |
| 931 | - "Class `$class` should implement `" . $interface . '` interface.' |
|
| 931 | + "Class `$class` should implement `".$interface.'` interface.' |
|
| 932 | 932 | ); |
| 933 | 933 | } |
| 934 | 934 | } |