diff --git a/src/Helpers/TailwindTrait.php b/src/Helpers/TailwindTrait.php index 0bbf6d71..eb83473c 100644 --- a/src/Helpers/TailwindTrait.php +++ b/src/Helpers/TailwindTrait.php @@ -58,8 +58,8 @@ public static function getTwPart($part, $manifest, ...$custom) $partClasses = $manifest['tailwind']['parts'][$part]['twClasses'] ?? ''; - if (is_array($partClasses)) { - $partClasses = implode(' ', $partClasses); + if (\is_array($partClasses)) { + $partClasses = \implode(' ', $partClasses); } return Helpers::classnames([$partClasses, ...$custom]); @@ -85,8 +85,8 @@ public static function getTwDynamicPart($part, $attributes, $manifest, ...$custo $baseClasses = $manifest['tailwind']['parts'][$part]['twClasses'] ?? ''; - if (is_array($baseClasses)) { - $baseClasses = implode(' ', $baseClasses); + if (\is_array($baseClasses)) { + $baseClasses = \implode(' ', $baseClasses); } $mainClasses = []; @@ -121,8 +121,8 @@ public static function getTwDynamicPart($part, $attributes, $manifest, ...$custo if (!$responsive) { $output = $twClasses[$value] ?? ''; - if (is_array($output)) { - $output = implode(' ', $output); + if (\is_array($output)) { + $output = \implode(' ', $output); } $mainClasses = [...$mainClasses, $output]; @@ -138,8 +138,8 @@ public static function getTwDynamicPart($part, $attributes, $manifest, ...$custo $currentClasses = $twClasses[$value[$breakpoint]] ?? ''; - if (is_array($currentClasses)) { - $currentClasses = implode(' ', $currentClasses); + if (\is_array($currentClasses)) { + $currentClasses = \implode(' ', $currentClasses); } if (!$currentClasses) { @@ -180,8 +180,8 @@ public static function getTwClasses($attributes, $manifest, ...$custom) $baseClasses = $manifest['tailwind']['base']['twClasses'] ?? ''; - if (is_array($baseClasses)) { - $baseClasses = implode(' ', $baseClasses); + if (\is_array($baseClasses)) { + $baseClasses = \implode(' ', $baseClasses); } $mainClasses = []; @@ -216,8 +216,8 @@ public static function getTwClasses($attributes, $manifest, ...$custom) if (!$responsive) { $output = $twClasses[$value] ?? ''; - if (is_array($output)) { - $output = implode(' ', $output); + if (\is_array($output)) { + $output = \implode(' ', $output); } $mainClasses = [...$mainClasses, $output]; @@ -258,8 +258,8 @@ public static function getTwClasses($attributes, $manifest, ...$custom) $conditions = $value['attributes']; $twClasses = $value['twClasses']; - if (is_array($twClasses)) { - $twClasses = implode(' ', $twClasses); + if (\is_array($twClasses)) { + $twClasses = \implode(' ', $twClasses); } $matches = true;