Passed
Branch master (239ab9)
by Ross
03:08
created
Category
src/console/InstallTailwindCss.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -28,13 +28,13 @@  discard block
 block discarded – undo
28 28
 
29 29
     }
30 30
 
31
-    private function getPackageManager(){
31
+    private function getPackageManager() {
32 32
 
33 33
         $this->packageManager = $this->choice('How would you like to install?', ['yarn', 'npm'], 0);
34 34
 
35 35
         $this->info("Installing with " . $this->packageManager . ". Please wait...");
36 36
 
37
-        if($this->packageManager == 'yarn'){
37
+        if ($this->packageManager == 'yarn') {
38 38
             return $this->installUsingYarn();
39 39
         }
40 40
 
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 
43 43
     }
44 44
 
45
-    private function installUsingYarn(){
45
+    private function installUsingYarn() {
46 46
 
47 47
         $process = new Process('yarn add tailwindcss --dev');
48 48
         $process->run();
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
     }
52 52
 
53
-    private function installUsingNpm(){
53
+    private function installUsingNpm() {
54 54
 
55 55
         $process = new Process('npm install tailwindcss --save-dev');
56 56
         $process->run();
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 
59 59
     }
60 60
 
61
-    private function createTailwindJsFile(){
61
+    private function createTailwindJsFile() {
62 62
 
63 63
         $this->info("Creating tailwind.js in your root directory.");
64 64
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 
69 69
     }
70 70
 
71
-    private function updateSassFile(){
71
+    private function updateSassFile() {
72 72
 
73 73
         $appCssFile = base_path('resources/sass/app.scss');
74 74
 
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 
103 103
     }
104 104
 
105
-    private function installComplete(){
105
+    private function installComplete() {
106 106
 
107 107
         $command = ($this->packageManager == 'yarn' ? 'yarn run dev' : 'npm run dev');
108 108
 
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 
113 113
     }
114 114
 
115
-    private function updateWebpackFile(){
115
+    private function updateWebpackFile() {
116 116
 
117 117
         $webpackFile = base_path('webpack.mix.js');
118 118
 
Please login to merge, or discard this patch.