@@ -566,7 +566,7 @@ discard block |
||
| 566 | 566 | */ |
| 567 | 567 | protected function getPathToData(): string |
| 568 | 568 | { |
| 569 | - return '/' . DocumentInterface::KEYWORD_DATA; |
|
| 569 | + return '/'.DocumentInterface::KEYWORD_DATA; |
|
| 570 | 570 | } |
| 571 | 571 | |
| 572 | 572 | /** |
@@ -574,7 +574,7 @@ discard block |
||
| 574 | 574 | */ |
| 575 | 575 | protected function getPathToType(): string |
| 576 | 576 | { |
| 577 | - return $this->getPathToData() . '/' . DocumentInterface::KEYWORD_TYPE; |
|
| 577 | + return $this->getPathToData().'/'.DocumentInterface::KEYWORD_TYPE; |
|
| 578 | 578 | } |
| 579 | 579 | |
| 580 | 580 | /** |
@@ -582,7 +582,7 @@ discard block |
||
| 582 | 582 | */ |
| 583 | 583 | protected function getPathToId(): string |
| 584 | 584 | { |
| 585 | - return $this->getPathToData() . '/' . DocumentInterface::KEYWORD_ID; |
|
| 585 | + return $this->getPathToData().'/'.DocumentInterface::KEYWORD_ID; |
|
| 586 | 586 | } |
| 587 | 587 | |
| 588 | 588 | /** |
@@ -590,7 +590,7 @@ discard block |
||
| 590 | 590 | */ |
| 591 | 591 | protected function getPathToAttributes(): string |
| 592 | 592 | { |
| 593 | - return $this->getPathToData() . '/' . DocumentInterface::KEYWORD_ATTRIBUTES; |
|
| 593 | + return $this->getPathToData().'/'.DocumentInterface::KEYWORD_ATTRIBUTES; |
|
| 594 | 594 | } |
| 595 | 595 | |
| 596 | 596 | /** |
@@ -600,7 +600,7 @@ discard block |
||
| 600 | 600 | */ |
| 601 | 601 | protected function getPathToAttribute(string $name): string |
| 602 | 602 | { |
| 603 | - return $this->getPathToData() . '/' . DocumentInterface::KEYWORD_ATTRIBUTES . '/' . $name; |
|
| 603 | + return $this->getPathToData().'/'.DocumentInterface::KEYWORD_ATTRIBUTES.'/'.$name; |
|
| 604 | 604 | } |
| 605 | 605 | |
| 606 | 606 | /** |
@@ -608,7 +608,7 @@ discard block |
||
| 608 | 608 | */ |
| 609 | 609 | protected function getPathToRelationships(): string |
| 610 | 610 | { |
| 611 | - return $this->getPathToData() . '/' . DocumentInterface::KEYWORD_RELATIONSHIPS; |
|
| 611 | + return $this->getPathToData().'/'.DocumentInterface::KEYWORD_RELATIONSHIPS; |
|
| 612 | 612 | } |
| 613 | 613 | |
| 614 | 614 | /** |
@@ -618,7 +618,7 @@ discard block |
||
| 618 | 618 | */ |
| 619 | 619 | protected function getPathToRelationship(string $name): string |
| 620 | 620 | { |
| 621 | - return $this->getPathToRelationships() . '/' . $name; |
|
| 621 | + return $this->getPathToRelationships().'/'.$name; |
|
| 622 | 622 | } |
| 623 | 623 | |
| 624 | 624 | /** |
@@ -628,8 +628,8 @@ discard block |
||
| 628 | 628 | */ |
| 629 | 629 | protected function getPathToRelationshipType(string $name): string |
| 630 | 630 | { |
| 631 | - return $this->getPathToRelationship($name) . '/' . |
|
| 632 | - DocumentInterface::KEYWORD_DATA . '/' . DocumentInterface::KEYWORD_TYPE; |
|
| 631 | + return $this->getPathToRelationship($name).'/'. |
|
| 632 | + DocumentInterface::KEYWORD_DATA.'/'.DocumentInterface::KEYWORD_TYPE; |
|
| 633 | 633 | } |
| 634 | 634 | |
| 635 | 635 | /** |
@@ -639,7 +639,7 @@ discard block |
||
| 639 | 639 | */ |
| 640 | 640 | protected function getPathToRelationshipId(string $name): string |
| 641 | 641 | { |
| 642 | - return $this->getPathToRelationship($name) . '/' . |
|
| 643 | - DocumentInterface::KEYWORD_DATA . '/' . DocumentInterface::KEYWORD_ID; |
|
| 642 | + return $this->getPathToRelationship($name).'/'. |
|
| 643 | + DocumentInterface::KEYWORD_DATA.'/'.DocumentInterface::KEYWORD_ID; |
|
| 644 | 644 | } |
| 645 | 645 | } |
@@ -79,7 +79,7 @@ |
||
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | /** |
| 82 | - * @param mixed $identifier |
|
| 82 | + * @param SchemaIdentifierInterface $identifier |
|
| 83 | 83 | * |
| 84 | 84 | * @return ResourceInterface |
| 85 | 85 | */ |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | { |
| 69 | 69 | assert( |
| 70 | 70 | $this->schemaContainer->hasSchema($resource), |
| 71 | - 'No Schema found for resource `' . get_class($resource) . '`.' |
|
| 71 | + 'No Schema found for resource `'.get_class($resource).'`.' |
|
| 72 | 72 | ); |
| 73 | 73 | |
| 74 | 74 | return $this->factory->createParsedResource( |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | DocumentInterface::KEYWORD_ERRORS_TITLE => $error->getTitle(), |
| 52 | 52 | DocumentInterface::KEYWORD_ERRORS_DETAIL => $error->getDetail(), |
| 53 | 53 | DocumentInterface::KEYWORD_ERRORS_SOURCE => $error->getSource(), |
| 54 | - ]); |
|
| 54 | + ]); |
|
| 55 | 55 | |
| 56 | 56 | if ($error->hasMeta() === true) { |
| 57 | 57 | $representation[DocumentInterface::KEYWORD_ERRORS_META] = $error->getMeta(); |