Skip to content

Commit

Permalink
Improve PHPDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
webeweb committed Jul 24, 2023
1 parent 077c911 commit e8b1597
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions src/Request/SearchImagesRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function addColor(string $color): SearchImagesRequest {
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function deserializeResponse(string $rawResponse): AbstractResponse {
return ResponseDeserializer::deserializeSearchImagesResponse($rawResponse);
Expand Down Expand Up @@ -199,7 +199,7 @@ public function getOrientation(): ?string {
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function getResourcePath(): string {
return self::SEARCH_IMAGES_RESOURCE_PATH;
Expand All @@ -220,7 +220,7 @@ public function removeColor(string $color): SearchImagesRequest {
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function serializeRequest(): array {
return RequestSerializer::serializeSearchImagesRequest($this);
Expand Down
6 changes: 3 additions & 3 deletions src/Request/SearchVideosRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function __construct() {
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function deserializeResponse(string $rawResponse): AbstractResponse {
return ResponseDeserializer::deserializeSearchVideosResponse($rawResponse);
Expand All @@ -70,7 +70,7 @@ public static function enumVideoType(): array {
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function getResourcePath(): string {
return self::SEARCH_VIDEOS_RESOURCE_PATH;
Expand All @@ -86,7 +86,7 @@ public function getVideoType(): ?string {
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function serializeRequest(): array {
return RequestSerializer::serializeSearchVideosRequest($this);
Expand Down
2 changes: 1 addition & 1 deletion tests/Fixtures/Provider/TestApiProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
class TestApiProvider extends ApiProvider {

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function populateResponse(AbstractResponse $response): AbstractResponse {
return parent::populateResponse($response);
Expand Down
6 changes: 3 additions & 3 deletions tests/Fixtures/Request/TestRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,21 @@
class TestRequest extends AbstractRequest {

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function deserializeResponse(string $rawResponse): AbstractResponse {
throw new RuntimeException();
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function getResourcePath(): string {
return "";
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function serializeRequest(): array {
return [];
Expand Down
4 changes: 2 additions & 2 deletions tests/Fixtures/Response/TestResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
class TestResponse extends AbstractResponse {

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function addHit(AbstractHit $hit): AbstractResponse {
return parent::addHit($hit);
}

/**
* {@inheritdoc}
* {@inheritDoc}
*/
public function getHits(): array {
return parent::getHits();
Expand Down

0 comments on commit e8b1597

Please sign in to comment.