Completed
Push — master ( 15f0d4...d2cbab )
by Sergi Tur
03:41
created
tests/InstallCommandTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,6 +90,6 @@
 block discarded – undo
90 90
      */
91 91
     private function fileHasContent($file, $content)
92 92
     {
93
-        return strpos(file_get_contents(getcwd().$file), $content) != false;
93
+        return strpos(file_get_contents(getcwd() . $file), $content) != false;
94 94
     }
95 95
 }
Please login to merge, or discard this patch.
src/Console/InstallCommand.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -97,8 +97,8 @@  discard block
 block discarded – undo
97 97
         } else {
98 98
             $llum = $this->findLlum();
99 99
             $package = $this->getPackageName();
100
-            $output->writeln('<info>'.$llum.' package '.$this->getDevOption()." $package".'</info>');
101
-            passthru($llum.' package '.$this->getDevOption(). ' ' . $package);
100
+            $output->writeln('<info>' . $llum . ' package ' . $this->getDevOption() . " $package" . '</info>');
101
+            passthru($llum . ' package ' . $this->getDevOption() . ' ' . $package);
102 102
         }
103 103
     }
104 104
 
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
      * Get llum package name
107 107
      */
108 108
     private function getPackageName() {
109
-        if (! $this->askBeforeOverwrite) {
109
+        if (!$this->askBeforeOverwrite) {
110 110
             return $this->useVendorPublish ? $package = 'AdminLTEVendorPublish' : $package = 'AdminLTE';
111 111
         }
112 112
         return $this->useVendorPublish ? $package = 'AdminLTEVendorPublishDontForce' : $package = 'AdminLTEDontForce';
@@ -121,17 +121,17 @@  discard block
 block discarded – undo
121 121
     {
122 122
         $composer = $this->findComposer();
123 123
 
124
-        $process = new Process($composer.' require acacha/admin-lte-template-laravel'.$this->getDevSuffix(),
124
+        $process = new Process($composer . ' require acacha/admin-lte-template-laravel' . $this->getDevSuffix(),
125 125
             null, null, null, null);
126 126
 
127 127
         $output->writeln(
128
-            '<info>Running composer require acacha/admin-lte-template-laravel'.$this->getDevSuffix().'</info>');
129
-        $process->run(function ($type, $line) use ($output) {
128
+            '<info>Running composer require acacha/admin-lte-template-laravel' . $this->getDevSuffix() . '</info>');
129
+        $process->run(function($type, $line) use ($output) {
130 130
             $output->write($line);
131 131
         });
132 132
 
133
-        $output->writeln('<info>Copying file '.__DIR__.'/stubs/app.php'.' into '.getcwd().'/config/app.php</info>');
134
-        copy(__DIR__.'/stubs/app.php', getcwd().'/config/app.php');
133
+        $output->writeln('<info>Copying file ' . __DIR__ . '/stubs/app.php' . ' into ' . getcwd() . '/config/app.php</info>');
134
+        copy(__DIR__ . '/stubs/app.php', getcwd() . '/config/app.php');
135 135
 
136 136
         $this->useVendorPublish ? $this->publishWithVendor($output) : $this->publish($output);
137 137
     }
@@ -143,8 +143,8 @@  discard block
 block discarded – undo
143 143
      */
144 144
     private function findComposer()
145 145
     {
146
-        if (file_exists(getcwd().'/composer.phar')) {
147
-            return '"'.PHP_BINARY.'" composer.phar"';
146
+        if (file_exists(getcwd() . '/composer.phar')) {
147
+            return '"' . PHP_BINARY . '" composer.phar"';
148 148
         }
149 149
 
150 150
         return 'composer';
Please login to merge, or discard this patch.