From d2247221bbf23a8fe19f66ea4ad7d0a59ffaa5b4 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Thu, 1 Aug 2024 20:31:40 +0200 Subject: Minor update whitespace PHPCS rules (#6666) * Minor update whitespace PHPCS rules To simplify our configuration, apply more rules, and be clearer about what is added or removed compared with PSR12. Does not change our current conventions, but just a bit more consistent. * Forgotten *.phtml * Sort exclusion patterns + add a few for Extensions repo * Relaxed some rules --- lib/Minz/Exception.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/Minz/Exception.php') diff --git a/lib/Minz/Exception.php b/lib/Minz/Exception.php index 283b28f4e..c8c85912d 100644 --- a/lib/Minz/Exception.php +++ b/lib/Minz/Exception.php @@ -2,9 +2,9 @@ declare(strict_types=1); class Minz_Exception extends Exception { - const ERROR = 0; - const WARNING = 10; - const NOTICE = 20; + public const ERROR = 0; + public const WARNING = 10; + public const NOTICE = 20; public function __construct(string $message = '', int $code = self::ERROR, ?Throwable $previous = null) { if ($code !== Minz_Exception::ERROR -- cgit v1.2.3