@@ -12,7 +12,7 @@ final class UselessDocBlockCleaner
1212 /**
1313 * @var string[]
1414 */
15- private const CLEANING_REGEXES = [
15+ private const array CLEANING_REGEXES = [
1616 self ::TODO_COMMENT_BY_PHPSTORM_REGEX ,
1717 self ::TODO_IMPLEMENT_METHOD_COMMENT_BY_PHPSTORM_REGEX ,
1818 self ::COMMENT_CONSTRUCTOR_CLASS_REGEX ,
@@ -28,49 +28,37 @@ final class UselessDocBlockCleaner
2828
2929 /**
3030 * @see https://regex101.com/r/5fQJkz/2
31- * @var string
3231 */
33- private const TODO_IMPLEMENT_METHOD_COMMENT_BY_PHPSTORM_REGEX = '#\/\/ TODO: Implement .*\(\) method.$# ' ;
32+ private const string TODO_IMPLEMENT_METHOD_COMMENT_BY_PHPSTORM_REGEX = '#\/\/ TODO: Implement .*\(\) method.$# ' ;
3433
3534 /**
3635 * @see https://regex101.com/r/zayQpv/1
37- * @var string
3836 */
39- private const TODO_COMMENT_BY_PHPSTORM_REGEX = '#\/\/ TODO: Change the autogenerated stub$# ' ;
37+ private const string TODO_COMMENT_BY_PHPSTORM_REGEX = '#\/\/ TODO: Change the autogenerated stub$# ' ;
4038
4139 /**
4240 * @see https://regex101.com/r/RzTdFH/4
43- * @var string
4441 */
45- private const STANDALONE_DOCBLOCK_CLASS_REGEX = '#(\/\*\*\s+)\*\s+[cC]lass\s+[^\s]*(\s+\*\/)$# ' ;
42+ private const string STANDALONE_DOCBLOCK_CLASS_REGEX = '#(\/\*\*\s+)\*\s+[cC]lass\s+[^\s]*(\s+\*\/)$# ' ;
4643
4744 /**
4845 * @see https://regex101.com/r/RzTdFH/4
49- * @var string
5046 */
51- private const STANDALONE_COMMENT_CLASS_REGEX = '#\/\/\s+(class|trait|interface)\s+\w+$#i ' ;
47+ private const string STANDALONE_COMMENT_CLASS_REGEX = '#\/\/\s+(class|trait|interface)\s+\w+$#i ' ;
5248
5349 /**
5450 * @see https://regex101.com/r/RzTdFH/4
55- * @var string
5651 */
57- private const INLINE_COMMENT_CLASS_REGEX = '#\s\*\s(class|trait|interface)\s+(\w)+$#i ' ;
52+ private const string INLINE_COMMENT_CLASS_REGEX = '#\s\*\s(class|trait|interface)\s+(\w)+$#i ' ;
5853
59- /**
60- * @var string
61- */
62- private const COMMENT_CONSTRUCTOR_CLASS_REGEX = '#^(\/\/|(\s|\*)+)(\s\w+\s)?constructor(\.)?$#i ' ;
54+ private const string COMMENT_CONSTRUCTOR_CLASS_REGEX = '#^(\/\/|(\s|\*)+)(\s\w+\s)?constructor(\.)?$#i ' ;
6355
6456 /**
6557 * @see https://regex101.com/r/1kcgR5/1
66- * @var string
6758 */
68- private const DOCTRINE_GENERATED_COMMENT_REGEX = '#^(\/\*{2}\s+?)?(\*|\/\/)\s+This class was generated by the Doctrine ORM\. Add your own custom\r?\n\s+\*\s+repository methods below\.(\s+\*\/)$# ' ;
59+ private const string DOCTRINE_GENERATED_COMMENT_REGEX = '#^(\/\*{2}\s+?)?(\*|\/\/)\s+This class was generated by the Doctrine ORM\. Add your own custom\r?\n\s+\*\s+repository methods below\.(\s+\*\/)$# ' ;
6960
70- /**
71- * @var string
72- */
73- private const CLASS_REPRESENTING_REGEX = '#\s\*\sClass\s+representing\s+([\w]+)$#i ' ;
61+ private const string CLASS_REPRESENTING_REGEX = '#\s\*\sClass\s+representing\s+([\w]+)$#i ' ;
7462
7563 public function clearDocTokenContent (Token $ currentToken , ?string $ classLikeName ): string
7664 {
0 commit comments