@@ -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
0 commit comments