Skip to content

Commit

Permalink
fix phpcs issues
Browse files Browse the repository at this point in the history
  • Loading branch information
goranalkovic-infinum committed Aug 21, 2024
1 parent bd266e3 commit 38af875
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/Helpers/TailwindTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand All @@ -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 = [];
Expand Down Expand Up @@ -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];
Expand All @@ -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) {
Expand Down Expand Up @@ -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 = [];
Expand Down Expand Up @@ -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];
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 38af875

Please sign in to comment.