diff --git a/src/Meritoo/Common/Exception/IncorrectColorHexLengthException.php b/src/Meritoo/Common/Exception/Regex/IncorrectColorHexLengthException.php similarity index 95% rename from src/Meritoo/Common/Exception/IncorrectColorHexLengthException.php rename to src/Meritoo/Common/Exception/Regex/IncorrectColorHexLengthException.php index bcd5bc3..89ee485 100644 --- a/src/Meritoo/Common/Exception/IncorrectColorHexLengthException.php +++ b/src/Meritoo/Common/Exception/Regex/IncorrectColorHexLengthException.php @@ -6,7 +6,7 @@ * file that was distributed with this source code. */ -namespace Meritoo\Common\Exception; +namespace Meritoo\Common\Exception\Regex; /** * An exception used while length of given hexadecimal value of color is incorrect diff --git a/src/Meritoo/Common/Exception/InvalidColorHexValueException.php b/src/Meritoo/Common/Exception/Regex/InvalidColorHexValueException.php similarity index 79% rename from src/Meritoo/Common/Exception/InvalidColorHexValueException.php rename to src/Meritoo/Common/Exception/Regex/InvalidColorHexValueException.php index 2249447..f17771a 100644 --- a/src/Meritoo/Common/Exception/InvalidColorHexValueException.php +++ b/src/Meritoo/Common/Exception/Regex/InvalidColorHexValueException.php @@ -6,10 +6,10 @@ * file that was distributed with this source code. */ -namespace Meritoo\Common\Exception; +namespace Meritoo\Common\Exception\Regex; /** - * An exception used while given hexadecimal value of color is incorrect + * An exception used while given hexadecimal value of color is invalid * * @author Krzysztof Niziol * @copyright Meritoo.pl @@ -19,11 +19,11 @@ class InvalidColorHexValueException extends \Exception /** * Class constructor * - * @param string $color Incorrect hexadecimal value of color + * @param string $color Invalid hexadecimal value of color */ public function __construct($color) { - $message = sprintf('Hexadecimal value of color \'%s\' is incorrect. Is there everything ok?', $color); + $message = sprintf('Hexadecimal value of color \'%s\' is invalid. Is there everything ok?', $color); parent::__construct($message); } } diff --git a/src/Meritoo/Common/Utilities/Regex.php b/src/Meritoo/Common/Utilities/Regex.php index e6ac473..123cba2 100644 --- a/src/Meritoo/Common/Utilities/Regex.php +++ b/src/Meritoo/Common/Utilities/Regex.php @@ -8,8 +8,8 @@ namespace Meritoo\Common\Utilities; -use Meritoo\Common\Exception\IncorrectColorHexLengthException; -use Meritoo\Common\Exception\InvalidColorHexValueException; +use Meritoo\Common\Exception\Regex\IncorrectColorHexLengthException; +use Meritoo\Common\Exception\Regex\InvalidColorHexValueException; /** * Useful regular expressions methods diff --git a/tests/Meritoo/Common/Tests/Utilities/MiscellaneousTest.php b/tests/Meritoo/Common/Tests/Utilities/MiscellaneousTest.php index b722f4a..dbe7ff8 100644 --- a/tests/Meritoo/Common/Tests/Utilities/MiscellaneousTest.php +++ b/tests/Meritoo/Common/Tests/Utilities/MiscellaneousTest.php @@ -9,8 +9,8 @@ namespace Meritoo\Common\Tests\Utilities; use Generator; -use Meritoo\Common\Exception\IncorrectColorHexLengthException; -use Meritoo\Common\Exception\InvalidColorHexValueException; +use Meritoo\Common\Exception\Regex\IncorrectColorHexLengthException; +use Meritoo\Common\Exception\Regex\InvalidColorHexValueException; use Meritoo\Common\Utilities\Locale; use Meritoo\Common\Utilities\Miscellaneous; use Meritoo\Common\Utilities\TestCase;