Skip to content

Commit

Permalink
Apply phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
SerafimArts committed Nov 20, 2024
1 parent cfc92dd commit 5024533
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/DenormalizerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

use JetBrains\PhpStorm\Language;
use TypeLang\Mapper\Exception\Definition\DefinitionException;
use TypeLang\Mapper\Exception\Definition\TypeNotFoundException;
use TypeLang\Mapper\Exception\Mapping\RuntimeException;

interface DenormalizerInterface
Expand All @@ -25,6 +24,7 @@ interface DenormalizerInterface
* ```
*
* @param non-empty-string $type
*
* @throws RuntimeException in case of runtime mapping exception occurs
* @throws DefinitionException in case of type building exception occurs
* @throws \Throwable in case of any internal error occurs
Expand All @@ -35,6 +35,7 @@ public function denormalize(mixed $value, #[Language('PHP')] string $type): mixe
* Returns {@see true} if the value can be denormalized for the given type.
*
* @param non-empty-string $type
*
* @throws DefinitionException in case of type building exception occurs
* @throws \Throwable in case of any internal error occurs
*/
Expand Down
3 changes: 3 additions & 0 deletions src/Mapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,9 @@ public function isDenormalizable(mixed $value, #[Language('PHP')] string $type):
* Returns type for mapping by signature.
*
* @api
*
* @param non-empty-string $type
*
* @throws TypeNotFoundException in case of type not found
* @throws \Throwable in case of internal error occurs
*/
Expand All @@ -177,6 +179,7 @@ public function getType(#[Language('PHP')] string $type): TypeInterface
* Returns type for mapping by value.
*
* @api
*
* @throws TypeNotFoundException in case of type not found
* @throws \Throwable in case of internal error occurs
*/
Expand Down
3 changes: 2 additions & 1 deletion src/NormalizerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

use JetBrains\PhpStorm\Language;
use TypeLang\Mapper\Exception\Definition\DefinitionException;
use TypeLang\Mapper\Exception\Definition\TypeNotFoundException;
use TypeLang\Mapper\Exception\Mapping\RuntimeException;

interface NormalizerInterface
Expand All @@ -28,6 +27,7 @@ interface NormalizerInterface
* ```
*
* @param non-empty-string|null $type
*
* @throws RuntimeException in case of runtime mapping exception occurs
* @throws DefinitionException in case of type building exception occurs
* @throws \Throwable in case of any internal error occurs
Expand All @@ -41,6 +41,7 @@ public function normalize(mixed $value, #[Language('PHP')] ?string $type = null)
* inferred from the passed value.
*
* @param non-empty-string|null $type
*
* @throws DefinitionException in case of type building exception occurs
* @throws \Throwable in case of any internal error occurs
*/
Expand Down

0 comments on commit 5024533

Please sign in to comment.