@@ -320,7 +320,7 @@ discard block |
||
320 | 320 | |
321 | 321 | $schema = $jsonSchemas->getSchema($model); |
322 | 322 | $selfLink = $schema->getSelfLink($model); |
323 | - $urlPrefix = (string)$requestUri->withPath('')->withQuery('')->withFragment(''); |
|
323 | + $urlPrefix = (string) $requestUri->withPath('')->withQuery('')->withFragment(''); |
|
324 | 324 | $fullUrl = $selfLink->getStringRepresentation($urlPrefix); |
325 | 325 | |
326 | 326 | $responses = static::defaultCreateResponses($requestUri, $encoder); |
@@ -650,7 +650,7 @@ discard block |
||
650 | 650 | $modelClass = $schemaClass::MODEL; |
651 | 651 | assert($schemaInfo->hasRelationship($modelClass, $modelRelName)); |
652 | 652 | assert( |
653 | - ($type =$schemaInfo->getRelationshipType($modelClass, $modelRelName)) === RelationshipTypes::BELONGS_TO || |
|
653 | + ($type = $schemaInfo->getRelationshipType($modelClass, $modelRelName)) === RelationshipTypes::BELONGS_TO || |
|
654 | 654 | $type === RelationshipTypes::BELONGS_TO_MANY |
655 | 655 | ); |
656 | 656 | |
@@ -899,7 +899,7 @@ discard block |
||
899 | 899 | */ |
900 | 900 | private static function assertClassValueDefined(?string $value): void |
901 | 901 | { |
902 | - assert(empty($value) === false, 'Value should be defined in `' . static::class . '`.'); |
|
902 | + assert(empty($value) === false, 'Value should be defined in `'.static::class.'`.'); |
|
903 | 903 | } |
904 | 904 | |
905 | 905 | /** |
@@ -912,7 +912,7 @@ discard block |
||
912 | 912 | { |
913 | 913 | assert( |
914 | 914 | array_key_exists($interface, class_implements($class)) === true, |
915 | - "Class `$class` should implement `" . $interface . '` interface.' |
|
915 | + "Class `$class` should implement `".$interface.'` interface.' |
|
916 | 916 | ); |
917 | 917 | } |
918 | 918 | } |