@@ -2,7 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace SLLH\IsoCodesValidator\Constraints; |
4 | 4 | |
5 | -@trigger_error('The '.__NAMESPACE__.'\SirenValidator class is deprecated since 1.2 and will be removed in 2.0. Use '.__NAMESPACE__.'\IsoCodesGenericValidator instead', E_USER_DEPRECATED); |
|
5 | +@trigger_error('The ' . __NAMESPACE__ . '\SirenValidator class is deprecated since 1.2 and will be removed in 2.0. Use ' . __NAMESPACE__ . '\IsoCodesGenericValidator instead', E_USER_DEPRECATED); |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * @author Sullivan Senechal <[email protected]> |
@@ -2,7 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace SLLH\IsoCodesValidator\Constraints; |
4 | 4 | |
5 | -@trigger_error('The '.__NAMESPACE__.'\SiretValidator class is deprecated since 1.2 and will be removed in 2.0. Use '.__NAMESPACE__.'\IsoCodesGenericValidator instead', E_USER_DEPRECATED); |
|
5 | +@trigger_error('The ' . __NAMESPACE__ . '\SiretValidator class is deprecated since 1.2 and will be removed in 2.0. Use ' . __NAMESPACE__ . '\IsoCodesGenericValidator instead', E_USER_DEPRECATED); |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * @author Sullivan Senechal <[email protected]> |
@@ -2,7 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace SLLH\IsoCodesValidator\Constraints; |
4 | 4 | |
5 | -@trigger_error('The '.__NAMESPACE__.'\StructuredCommunicationValidator class is deprecated since 1.2 and will be removed in 2.0. Use '.__NAMESPACE__.'\IsoCodesGenericValidator instead', E_USER_DEPRECATED); |
|
5 | +@trigger_error('The ' . __NAMESPACE__ . '\StructuredCommunicationValidator class is deprecated since 1.2 and will be removed in 2.0. Use ' . __NAMESPACE__ . '\IsoCodesGenericValidator instead', E_USER_DEPRECATED); |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * @author Sullivan Senechal <[email protected]> |
@@ -2,7 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace SLLH\IsoCodesValidator\Constraints; |
4 | 4 | |
5 | -@trigger_error('The '.__NAMESPACE__.'\SwiftBicValidator class is deprecated since 1.2 and will be removed in 2.0. Use '.__NAMESPACE__.'\IsoCodesGenericValidator instead', E_USER_DEPRECATED); |
|
5 | +@trigger_error('The ' . __NAMESPACE__ . '\SwiftBicValidator class is deprecated since 1.2 and will be removed in 2.0. Use ' . __NAMESPACE__ . '\IsoCodesGenericValidator instead', E_USER_DEPRECATED); |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * @author Sullivan Senechal <[email protected]> |
@@ -2,7 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace SLLH\IsoCodesValidator\Constraints; |
4 | 4 | |
5 | -@trigger_error('The '.__NAMESPACE__.'\UkninValidator class is deprecated since 1.2 and will be removed in 2.0. Use '.__NAMESPACE__.'\IsoCodesGenericValidator instead', E_USER_DEPRECATED); |
|
5 | +@trigger_error('The ' . __NAMESPACE__ . '\UkninValidator class is deprecated since 1.2 and will be removed in 2.0. Use ' . __NAMESPACE__ . '\IsoCodesGenericValidator instead', E_USER_DEPRECATED); |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * @author Sullivan Senechal <[email protected]> |
@@ -2,7 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace SLLH\IsoCodesValidator\Constraints; |
4 | 4 | |
5 | -@trigger_error('The '.__NAMESPACE__.'\VatValidator class is deprecated since 1.2 and will be removed in 2.0. Use '.__NAMESPACE__.'\IsoCodesGenericValidator instead', E_USER_DEPRECATED); |
|
5 | +@trigger_error('The ' . __NAMESPACE__ . '\VatValidator class is deprecated since 1.2 and will be removed in 2.0. Use ' . __NAMESPACE__ . '\IsoCodesGenericValidator instead', E_USER_DEPRECATED); |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * @author Sullivan Senechal <[email protected]> |
@@ -17,15 +17,15 @@ discard block |
||
17 | 17 | /** |
18 | 18 | * @deprecated since 1.1, to be removed in 2.0. |
19 | 19 | */ |
20 | - const US = 'US'; |
|
20 | + const US = 'US'; |
|
21 | 21 | /** |
22 | 22 | * @deprecated since 1.1, to be removed in 2.0. |
23 | 23 | */ |
24 | - const CANADA = 'Canada'; |
|
24 | + const CANADA = 'Canada'; |
|
25 | 25 | /** |
26 | 26 | * @deprecated since 1.1, to be removed in 2.0. |
27 | 27 | */ |
28 | - const FRANCE = 'France'; |
|
28 | + const FRANCE = 'France'; |
|
29 | 29 | /** |
30 | 30 | * @deprecated since 1.1, to be removed in 2.0. |
31 | 31 | */ |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | 'Netherlands' => 'NL', |
63 | 63 | ]; |
64 | 64 | |
65 | - @trigger_error('The value "'.$this->country.'" for '.__CLASS__.'::country options is deprecated since version 1.1 and will be removed in 2.0. Use '.$deprecatedOptionsBridge[$this->country].' instead.', E_USER_DEPRECATED); |
|
65 | + @trigger_error('The value "' . $this->country . '" for ' . __CLASS__ . '::country options is deprecated since version 1.1 and will be removed in 2.0. Use ' . $deprecatedOptionsBridge[$this->country] . ' instead.', E_USER_DEPRECATED); |
|
66 | 66 | |
67 | 67 | $this->country = $deprecatedOptionsBridge[$this->country]; |
68 | 68 | } |
@@ -16,7 +16,7 @@ |
||
16 | 16 | public function register(Application $app) |
17 | 17 | { |
18 | 18 | if (isset($app['translator'])) { |
19 | - $file = __DIR__.'/../Resources/translations/validators.'.$app['locale'].'.xlf'; |
|
19 | + $file = __DIR__ . '/../Resources/translations/validators.' . $app['locale'] . '.xlf'; |
|
20 | 20 | if (file_exists($file)) { |
21 | 21 | $app['translator']->addResource('xliff', $file, $app['locale'], 'validators'); |
22 | 22 | } |