mirror of
https://github.com/Respect/Validation.git
synced 2024-06-09 01:02:16 +02:00
Apply "SlevomatCodingStandard.Namespaces.UnusedUses"
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
This commit is contained in:
parent
880103c55f
commit
751e08c9f0
|
@ -14,7 +14,6 @@ declare(strict_types=1);
|
|||
namespace Respect\Validation\Rules;
|
||||
|
||||
use Respect\Validation\Exceptions\AllOfException;
|
||||
use Respect\Validation\Exceptions\GroupedValidationException;
|
||||
|
||||
/**
|
||||
* @author Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
|
||||
|
|
|
@ -14,7 +14,6 @@ declare(strict_types=1);
|
|||
namespace Respect\Validation\Rules;
|
||||
|
||||
use Respect\Validation\Exceptions\AnyOfException;
|
||||
use Respect\Validation\Exceptions\GroupedValidationException;
|
||||
use Respect\Validation\Exceptions\ValidationException;
|
||||
|
||||
/**
|
||||
|
|
|
@ -26,7 +26,6 @@ use function sprintf;
|
|||
use function str_repeat;
|
||||
use function str_replace;
|
||||
use function strtr;
|
||||
use function var_dump;
|
||||
|
||||
/**
|
||||
* Validates whether the input is a valid IP address.
|
||||
|
|
|
@ -58,6 +58,11 @@
|
|||
<rule ref="SlevomatCodingStandard.Namespaces.NamespaceDeclaration" />
|
||||
<rule ref="SlevomatCodingStandard.Namespaces.NamespaceSpacing" />
|
||||
<rule ref="SlevomatCodingStandard.Namespaces.RequireOneNamespaceInFile" />
|
||||
<rule ref="SlevomatCodingStandard.Namespaces.UnusedUses">
|
||||
<properties>
|
||||
<property name="searchAnnotations" value="true" />
|
||||
</properties>
|
||||
</rule>
|
||||
<rule ref="SlevomatCodingStandard.Namespaces.UseDoesNotStartWithBackslash" />
|
||||
<rule ref="SlevomatCodingStandard.Namespaces.UseFromSameNamespace" />
|
||||
<rule ref="SlevomatCodingStandard.Namespaces.UselessAlias" />
|
||||
|
|
|
@ -18,7 +18,7 @@ try {
|
|||
}
|
||||
|
||||
try {
|
||||
V::not(v::unique())->check([1, 2, 3, 4]);
|
||||
v::not(v::unique())->check([1, 2, 3, 4]);
|
||||
} catch (UniqueException $exception) {
|
||||
echo $exception->getMessage().PHP_EOL;
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ try {
|
|||
}
|
||||
|
||||
try {
|
||||
V::not(v::version())->check('1.0.0-alpha');
|
||||
v::not(v::version())->check('1.0.0-alpha');
|
||||
} catch (VersionException $exception) {
|
||||
echo $exception->getMessage().PHP_EOL;
|
||||
}
|
||||
|
|
|
@ -10,7 +10,6 @@ declare(strict_types=1);
|
|||
require 'vendor/autoload.php';
|
||||
|
||||
use Respect\Validation\Exceptions\NestedValidationException;
|
||||
use Respect\Validation\Rules\Callback;
|
||||
use Respect\Validation\Validator;
|
||||
|
||||
$rule = Validator::callback('is_int')->setTemplate('{{name}} is not tasty');
|
||||
|
|
|
@ -13,7 +13,6 @@ declare(strict_types=1);
|
|||
|
||||
namespace Respect\Validation\Rules;
|
||||
|
||||
use PHPUnit\Framework\MockObject\MockObject;
|
||||
use Respect\Validation\Test\TestCase;
|
||||
use Respect\Validation\Validatable;
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@ declare(strict_types=1);
|
|||
|
||||
namespace Respect\Validation\Rules;
|
||||
|
||||
use a;
|
||||
use Respect\Validation\Test\TestCase;
|
||||
|
||||
/**
|
||||
|
|
|
@ -13,7 +13,6 @@ declare(strict_types=1);
|
|||
|
||||
namespace Respect\Validation\Rules;
|
||||
|
||||
use a;
|
||||
use Respect\Validation\Test\TestCase;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue