From 6de700cae93abdfb705c2ff4db28b59c574076bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81ngel=20Guzm=C3=A1n=20Maeso?= Date: Wed, 28 May 2025 12:09:30 +0200 Subject: [PATCH] feat: long array to short array --- src/PhpFileCleaner.php | 4 ++-- src/PhpFileParser.php | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/PhpFileCleaner.php b/src/PhpFileCleaner.php index b6222aa..4803157 100644 --- a/src/PhpFileCleaner.php +++ b/src/PhpFileCleaner.php @@ -53,11 +53,11 @@ class PhpFileCleaner public static function setTypeConfig(array $types): void { foreach ($types as $type) { - self::$typeConfig[$type[0]] = array( + self::$typeConfig[$type[0]] = [ 'name' => $type, 'length' => \strlen($type), 'pattern' => '{.\b(?])'.$type.'\s++[a-zA-Z_\x7f-\xff:][a-zA-Z0-9_\x7f-\xff:\-]*+}Ais', - ); + ]; } self::$restPattern = '{[^?"\'