8000 [Validator] Fix coding standards · symfony/symfony@9bd9d25 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9bd9d25

Browse files
committed
[Validator] Fix coding standards
1 parent afacc2b commit 9bd9d25

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

src/Symfony/Component/Validator/Constraints/Email.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function __construct($options = null)
101101
}
102102

103103
if (null !== $this->normalizer && !\is_callable($options['normalizer'])) {
104-
throw new \InvalidArgumentException(sprintf('The "normalizer" option must be a valid callable ("%s" given).', is_object($this->normalizer) ? get_class($this->normalizer) : gettype($this->normalizer)));
104+
throw new \InvalidArgumentException(sprintf('The "normalizer" option must be a valid callable ("%s" given).', \is_object($this->normalizer) ? \get_class($this->normalizer) : \gettype($this->normalizer)));
105105
}
106106
}
107107
}

src/Symfony/Component/Validator/Constraints/Ip.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function __construct($options = null)
8686
}
8787

8888
if (null !== $this->normalizer && !\is_callable($options['normalizer'])) {
89-
throw new \InvalidArgumentException(sprintf('The "normalizer" option must be a valid callable ("%s" given).', is_object($this->normalizer) ? get_class($this->normalizer) : gettype($this->normalizer)));
89+
throw new \InvalidArgumentException(sprintf('The "normalizer" option must be a valid callable ("%s" given).', \is_object($this->normalizer) ? \get_class($this->normalizer) : \gettype($this->normalizer)));
9090
}
9191
}
9292
}

src/Symfony/Component/Validator/Constraints/Length.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function __construct($options = null)
5757
}
5858

5959
if (null !== $this->normalizer && !\is_callable($options['normalizer'])) {
60-
throw new \InvalidArgumentException(sprintf('The "normalizer" option must be a valid callable ("%s" given).', is_object($this->normalizer) ? get_class($this->normalizer) : gettype($this->normalizer)));
60+
throw new \InvalidArgumentException(sprintf('The "normalizer" option must be a valid callable ("%s" given).', \is_object($this->normalizer) ? \get_class($this->normalizer) : \gettype($this->normalizer)));
6161
}
6262
}
6363
}

src/Symfony/Component/Validator/Constraints/NotBlank.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __construct($options = null)
3737
parent::__construct($options);
3838

3939
if (null !== $this->normalizer && !\is_callable($options['normalizer'])) {
40-
throw new \InvalidArgumentException(sprintf('The "normalizer" option must be a valid callable ("%s" given).', is_object($this->normalizer) ? get_class($this->normalizer) : gettype($this->normalizer)));
40+
throw new \InvalidArgumentException(sprintf('The "normalizer" option must be a valid callable ("%s" given).', \is_object($this->normalizer) ? \get_class($this->normalizer) : \gettype($this->normalizer)));
4141
}
4242
}
4343
}

src/Symfony/Component/Validator/Constraints/Regex.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function __construct($options = null)
3838
parent::__construct($options);
3939

4040
if (null !== $this->normalizer && !\is_callable($options['normalizer'])) {
41-
throw new \InvalidArgumentException(sprintf('The "normalizer" option must be a valid callable ("%s" given).', is_object($this->normalizer) ? get_class($this->normalizer) : gettype($this->normalizer)));
41+
throw new \InvalidArgumentException(sprintf('The "normalizer" option must be a valid callable ("%s" given).', \is_object($this->normalizer) ? \get_class($this->normalizer) : \gettype($this->normalizer)));
4242
}
4343
}
4444

src/Symfony/Component/Validator/Constraints/Url.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public function __construct($options = null)
121121
parent::__construct($options);
122122

123123
if (null !== $this->normalizer && !\is_callable($options['normalizer'])) {
124-
throw new \InvalidArgumentException(sprintf('The "normalizer" option must be a valid callable ("%s" given).', is_object($this->normalizer) ? get_class($this->normalizer) : gettype($this->normalizer)));
124+
throw new \InvalidArgumentException(sprintf('The "normalizer" option must be a valid callable ("%s" given).', \is_object($this->normalizer) ? \get_class($this->normalizer) : \gettype($this->normalizer)));
125125
}
126126
}
127127
}

src/Symfony/Component/Validator/Constraints/Uuid.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function __construct($options = null)
8282
parent::__construct($options);
8383

8484
if (null !== $this->normalizer && !\is_callable($options['normalizer'])) {
85-
throw new \InvalidArgumentException(sprintf('The "normalizer" option must be a valid callable ("%s" given).', is_object($this->normalizer) ? get_class($this->normalizer) : gettype($this->normalizer)));
85+
throw new \InvalidArgumentException(sprintf('The "normalizer" option must be a valid callable ("%s" given).', \is_object($this->normalizer) ? \get_class($this->normalizer) : \gettype($this->normalizer)));
8686
}
8787
}
8888
}

0 commit comments

Comments
 (0)
0