@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare (strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Limoncello\Flute\Validation\JsonApi\Rules; |
4 | 4 | |
@@ -75,12 +75,11 @@ discard block |
||
75 | 75 | /** @var CrudInterface $api */ |
76 | 76 | $api = $apiFactory->createApi($apiClass); |
77 | 77 | |
78 | - $data = $api->withIndexFilter((string)$value)->indexIdentities(); |
|
78 | + $data = $api->withIndexFilter((string) $value)->indexIdentities(); |
|
79 | 79 | $result = !empty($data); |
80 | 80 | |
81 | 81 | return $result === true ? |
82 | - static::createSuccessReply($value) : |
|
83 | - static::createErrorReply( |
|
82 | + static::createSuccessReply($value) : static::createErrorReply( |
|
84 | 83 | $context, |
85 | 84 | $value, |
86 | 85 | ErrorCodes::EXIST_IN_DATABASE_SINGLE, |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare (strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Limoncello\Flute\Validation\JsonApi\Rules; |
4 | 4 | |
@@ -74,8 +74,7 @@ discard block |
||
74 | 74 | } |
75 | 75 | |
76 | 76 | $reply = $foundInvalidType === null ? |
77 | - static::createSuccessReply($indexes) : |
|
78 | - static::createErrorReply( |
|
77 | + static::createSuccessReply($indexes) : static::createErrorReply( |
|
79 | 78 | $context, |
80 | 79 | $foundInvalidType, |
81 | 80 | ErrorCodes::INVALID_RELATIONSHIP_TYPE, |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare (strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Limoncello\Flute\Validation\JsonApi\Rules; |
4 | 4 | |
@@ -85,8 +85,7 @@ discard block |
||
85 | 85 | } |
86 | 86 | |
87 | 87 | return $result === true ? |
88 | - static::createSuccessReply($values) : |
|
89 | - static::createErrorReply( |
|
88 | + static::createSuccessReply($values) : static::createErrorReply( |
|
90 | 89 | $context, |
91 | 90 | $values, |
92 | 91 | ErrorCodes::EXIST_IN_DATABASE_MULTIPLE, |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare (strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Limoncello\Flute\Validation\Rules; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare (strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Limoncello\Flute\Validation\Rules; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare (strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Limoncello\Flute\L10n; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare (strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Limoncello\Flute\Exceptions; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare (strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Limoncello\Flute\Exceptions; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare (strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Limoncello\Flute\Exceptions; |
4 | 4 |