Skip to content

Commit

Permalink
Improve code quality
Browse files Browse the repository at this point in the history
  • Loading branch information
webeweb committed Mar 1, 2021
1 parent 3fab6ac commit 5be0333
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Model/Request/BreachRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class BreachRequest extends AbstractRequest implements SubstituteRequestInterfac
* {@inheritdoc}
*/
public function getResourcePath(): string {
return static::BREACH_RESOURCE_PATH;
return self::BREACH_RESOURCE_PATH;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Request/BreachedAccountRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function getIncludeUnverified(): ?bool {
* {@inheritdoc}
*/
public function getResourcePath(): string {
return static::BREACHED_ACCOUNT_RESOURCE_PATH;
return self::BREACHED_ACCOUNT_RESOURCE_PATH;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Request/BreachesRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ class BreachesRequest extends AbstractRequest {
* {@inheritdoc}
*/
public function getResourcePath(): string {
return static::BREACHES_RESOURCE_PATH;
return self::BREACHES_RESOURCE_PATH;
}
}
2 changes: 1 addition & 1 deletion src/Model/Request/DataClassesRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ class DataClassesRequest extends AbstractRequest {
* {@inheritdoc}
*/
public function getResourcePath(): string {
return static::DATA_CLASSES_RESOURCE_PATH;
return self::DATA_CLASSES_RESOURCE_PATH;
}
}
2 changes: 1 addition & 1 deletion src/Model/Request/PasteAccountRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class PasteAccountRequest extends AbstractRequest implements SubstituteRequestIn
* {@inheritdoc}
*/
public function getResourcePath(): string {
return static::PASTE_ACCOUNT_RESOURCE_PATH;
return self::PASTE_ACCOUNT_RESOURCE_PATH;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Request/RangeRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class RangeRequest extends AbstractRequest implements SubstituteRequestInterface
* {@inheritdoc}
*/
public function getResourcePath(): string {
return static::RANGE_RESOURCE_PATH;
return self::RANGE_RESOURCE_PATH;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Provider/AbstractProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ protected function callApi(AbstractRequest $request, array $queryData, string $e

try {

$host = null === $endpointPath ? static::ENDPOINT_PATH . $this->getEndpointVersion() : $endpointPath;
$host = null === $endpointPath ? self::ENDPOINT_PATH . $this->getEndpointVersion() : $endpointPath;

$config = $this->buildConfiguration($host, $apiKey);

Expand Down

0 comments on commit 5be0333

Please sign in to comment.