/** * @return string[] */ private function getNamespacesRequiredToUse() { if ($this->namespacesRequiredToUse !== null && $this->normalizedNamespacesRequiredToUse === null) { $this->normalizedNamespacesRequiredToUse = SniffSettingsHelper::normalizeArray($this->namespacesRequiredToUse); } return $this->normalizedNamespacesRequiredToUse; }
/** * @return string[] */ private function getKeywordsToCheck() { if ($this->normalizedKeywordsToCheck === null) { $this->normalizedKeywordsToCheck = SniffSettingsHelper::normalizeArray($this->keywordsToCheck); } return $this->normalizedKeywordsToCheck; }
/** * @return string[] */ private function getIgnoredNames() { if ($this->normalizedIgnoredNames === null) { $this->normalizedIgnoredNames = SniffSettingsHelper::normalizeArray($this->ignoredNames); } return $this->normalizedIgnoredNames; }
/** * @return string[] */ private function getSpecialExceptionNames() { if ($this->normalizedSpecialExceptionNames === null) { $this->normalizedSpecialExceptionNames = SniffSettingsHelper::normalizeArray($this->specialExceptionNames); } return $this->normalizedSpecialExceptionNames; }
/** * @return string[] */ private function getAlwaysUsedPropertiesSuffixes() { if ($this->normalizedAlwaysUsedPropertiesSuffixes === null) { $this->normalizedAlwaysUsedPropertiesSuffixes = SniffSettingsHelper::normalizeArray($this->alwaysUsedPropertiesSuffixes); } return $this->normalizedAlwaysUsedPropertiesSuffixes; }
/** * @return string[] */ private function getFullyQualifiedKeywords() { if ($this->normalizedFullyQualifiedKeywords === null) { $this->normalizedFullyQualifiedKeywords = array_map(function ($keyword) { if (!defined($keyword)) { throw new \SlevomatCodingStandard\Sniffs\Namespaces\UndefinedKeywordTokenException($keyword); } return constant($keyword); }, SniffSettingsHelper::normalizeArray($this->fullyQualifiedKeywords)); } return $this->normalizedFullyQualifiedKeywords; }