Skip to content

Commit 64315e6

Browse files
pint : fix style issue
1 parent 998594b commit 64315e6

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/Console/Commands/InstallTallcraftuiCommand.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ private function setupTailwindConfig()
4646
return $this->warn('TallCraftUI is already installed.');
4747
}
4848

49-
$this->info("\n" . 'Installing TallCraftUI...');
49+
$this->info("\n".'Installing TallCraftUI...');
5050

5151
// Locate the content array
5252
$contentArrayStart = $configContent->after('content:')->after('[');
@@ -57,12 +57,12 @@ private function setupTailwindConfig()
5757
->trim()
5858
->explode(',')
5959
->filter()
60-
->map(fn($item) => trim($item))
60+
->map(fn ($item) => trim($item))
6161
->push('"./vendor/developermithu/tallcraftui/src/View/Components/**/*.php",') // Add the new path as the last item
6262
->implode(",\n\t\t");
6363

6464
// Format the content array with correct syntax and indentation
65-
$formattedContentArray = str("\n\t\t" . $newContentArray . "\n\t");
65+
$formattedContentArray = str("\n\t\t".$newContentArray."\n\t");
6666

6767
// Replace the original content array with the updated one
6868
$updatedConfigContent = $configContent->replace($contentArrayEnd, $formattedContentArray);
@@ -103,15 +103,15 @@ protected function publishAndImportTallcraftuiCSS()
103103
Artisan::call('vendor:publish --tag=tallcraftui-css --force');
104104

105105
$appCssPath = resource_path('css/app.css');
106-
$importStatement = '@import "./tallcraftui.css";' . PHP_EOL . PHP_EOL;
106+
$importStatement = '@import "./tallcraftui.css";'.PHP_EOL.PHP_EOL;
107107

108108
if (File::exists($appCssPath)) {
109109
// Read the current content of the app.css file
110110
$appCssContent = File::get($appCssPath);
111111

112112
// Check if the tallcraftui.css is already present
113113
if (strpos($appCssContent, 'tallcraftui.css') === false) {
114-
$updatedContent = $importStatement . $appCssContent;
114+
$updatedContent = $importStatement.$appCssContent;
115115

116116
File::put($appCssPath, $updatedContent);
117117

src/Traits/WithTcTable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function updated(string $propertyName)
4141
public function sortBy(string $column)
4242
{
4343
if ($this->sortCol === $column) {
44-
$this->sortAsc = !$this->sortAsc;
44+
$this->sortAsc = ! $this->sortAsc;
4545
} else {
4646
$this->sortCol = $column;
4747
$this->sortAsc = false;

src/View/Components/Table/Index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function perPageValues()
2424
if ($this->perPage) {
2525
if (is_bool($this->perPage)) {
2626
return [10, 20, 30, 50, 100];
27-
} else if (is_array($this->perPage)) {
27+
} elseif (is_array($this->perPage)) {
2828
return $this->perPage;
2929
}
3030
}

0 commit comments

Comments
 (0)