Skip to content

Commit

Permalink
Apply fixes from StyleCI (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
hotmeteor authored Jul 28, 2023
1 parent 885602f commit ea4ac27
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions src/Middleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ public function handle(Request $request, Closure $next)
}

/**
* @param $exception
* @param $code
* @param $exception
* @param $code
* @return JsonResponse
*/
protected function formatResponse($exception, $code): JsonResponse
Expand Down Expand Up @@ -143,8 +143,8 @@ protected function validate(Request $request, Closure $next)
}

/**
* @param $request_path
* @param $request_method
* @param $request_path
* @param $request_method
* @return PathItem
*
* @throws InvalidPathException
Expand Down
16 changes: 8 additions & 8 deletions src/RequestFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class RequestFactory
/**
* Set the file name of the spec.
*
* @param $name
* @param $name
*/
public function using($name)
{
Expand All @@ -64,8 +64,8 @@ public function getSpec(): ?string
/**
* Set the prefix for the API paths.
*
* @param $pathPrefix
* return RequestFactory
* @param $pathPrefix
* return RequestFactory
*/
public function setPathPrefix($pathPrefix): self
{
Expand Down Expand Up @@ -182,7 +182,7 @@ protected function getFile()
* Retrieve a local spec file.
*
* @param array $source
* @param $file
* @param $file
* @return string
*
* @throws MissingSpecException
Expand All @@ -204,7 +204,7 @@ protected function getLocalPath(array $source, $file): string
* Retrieve a remote spec file.
*
* @param array $source
* @param $file
* @param $file
* @return string
*/
protected function getRemotePath(array $source, $file): string
Expand All @@ -222,7 +222,7 @@ protected function getRemotePath(array $source, $file): string
* Build a Github path.
*
* @param array $source
* @param $file
* @param $file
* @return string
*/
protected function getGithubPath(array $source, $file): string
Expand All @@ -235,7 +235,7 @@ protected function getGithubPath(array $source, $file): string
/**
* Standardize a file name.
*
* @param $file
* @param $file
* @return string
*/
protected function standardizeFileName($file): string
Expand All @@ -250,7 +250,7 @@ protected function standardizeFileName($file): string
/**
* Standardize a path.
*
* @param $path
* @param $path
* @return string
*/
protected function standardizePath($path): string
Expand Down
2 changes: 1 addition & 1 deletion src/Validation/AbstractValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ protected function prepareData(Schema $schema)
* ...
* ]
*
* @param $properties
* @param $properties
* @return mixed
*/
protected function wrapAttributesToArray($properties)
Expand Down
6 changes: 3 additions & 3 deletions src/Validation/ResponseValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ protected function parseResponse(Response $response)

/**
* @param Schema $schema
* @param $body
* @param $body
*
* @throws ResponseValidationException
* @throws SchemaValidationException
Expand Down Expand Up @@ -151,8 +151,8 @@ protected function schemaType(Schema $schema)
}

/**
* @param $contentType
* @param $schemaType
* @param $contentType
* @param $schemaType
* @return mixed
*
* @throws ResponseValidationException
Expand Down

0 comments on commit ea4ac27

Please sign in to comment.