Completed
Push — master ( 5b8a36...a237b0 )
by Brandon
02:49
created
src/DownloadCommand.php 3 patches
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,6 +77,7 @@  discard block
 block discarded – undo
77 77
      * Clean-up the Zip file.
78 78
      *
79 79
      * @param the zip file to remove
80
+     * @param string $zipFile
80 81
      *
81 82
      * @return $this
82 83
      */
@@ -92,8 +93,8 @@  discard block
 block discarded – undo
92 93
     /**
93 94
      * Download the nukacode build files and display progress bar.
94 95
      *
95
-     * @param $buildUrl
96
-     * @param $zipFile
96
+     * @param string $buildUrl
97
+     * @param string $zipFile
97 98
      */
98 99
     protected function downloadFileWithProgressBar($buildUrl, $zipFile)
99 100
     {
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
     protected function configure()
22 22
     {
23 23
         $this->setName('download')
24
-             ->setDescription('Download laravel builds.');
24
+                ->setDescription('Download laravel builds.');
25 25
     }
26 26
 
27 27
     /**
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -104,12 +104,12 @@
 block discarded – undo
104 104
 
105 105
         $client  = new Client();
106 106
         $request = $client->createRequest('GET', $buildUrl);
107
-        $request->getEmitter()->on('progress', function (ProgressEvent $e) use ($progressBar) {
107
+        $request->getEmitter()->on('progress', function(ProgressEvent $e) use ($progressBar) {
108 108
             if ($e->downloaded > 0) {
109 109
                 $localProgress = floor(($e->downloaded / $e->downloadSize * 100));
110 110
 
111 111
                 if ($localProgress != $this->progress) {
112
-                    $this->progress = (integer)$localProgress;
112
+                    $this->progress = (integer) $localProgress;
113 113
                     $progressBar->advance();
114 114
                 }
115 115
             }
Please login to merge, or discard this patch.
src/NewCommand.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -247,7 +247,7 @@
 block discarded – undo
247 247
     /**
248 248
      * Download the nukacode build files and display progress bar.
249 249
      *
250
-     * @param $buildUrl
250
+     * @param string $buildUrl
251 251
      */
252 252
     protected function downloadFileWithProgressBar($buildUrl)
253 253
     {
Please login to merge, or discard this patch.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -33,13 +33,13 @@
 block discarded – undo
33 33
     protected function configure()
34 34
     {
35 35
         $this->setName('new')
36
-             ->setDescription('Create a new Laravel application.')
37
-             ->addArgument('name', InputArgument::REQUIRED)
38
-             ->addOption('slim', null, InputOption::VALUE_NONE)
39
-             ->addOption('force', null, InputOption::VALUE_NONE)
40
-             ->addOption('laravelOnly', null, InputOption::VALUE_NONE)
41
-             ->addOption('lumen', null, InputOption::VALUE_NONE)
42
-             ->addOption('lumenOnly', null, InputOption::VALUE_NONE);
36
+                ->setDescription('Create a new Laravel application.')
37
+                ->addArgument('name', InputArgument::REQUIRED)
38
+                ->addOption('slim', null, InputOption::VALUE_NONE)
39
+                ->addOption('force', null, InputOption::VALUE_NONE)
40
+                ->addOption('laravelOnly', null, InputOption::VALUE_NONE)
41
+                ->addOption('lumen', null, InputOption::VALUE_NONE)
42
+                ->addOption('lumenOnly', null, InputOption::VALUE_NONE);
43 43
     }
44 44
 
45 45
     /**
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
 
159 159
         $process = new Process(implode(' && ', $commands), $this->directory, null, null, null);
160 160
 
161
-        $process->run(function ($type, $line) {
161
+        $process->run(function($type, $line) {
162 162
             $this->output->write($line);
163 163
         });
164 164
 
@@ -258,12 +258,12 @@  discard block
 block discarded – undo
258 258
 
259 259
         $client  = new Client();
260 260
         $request = $client->createRequest('GET', $buildUrl);
261
-        $request->getEmitter()->on('progress', function (ProgressEvent $e) use ($progressBar) {
261
+        $request->getEmitter()->on('progress', function(ProgressEvent $e) use ($progressBar) {
262 262
             if ($e->downloaded > 0) {
263 263
                 $localProgress = floor(($e->downloaded / $e->downloadSize * 100));
264 264
 
265 265
                 if ($localProgress != $this->progress) {
266
-                    $this->progress = (integer)$localProgress;
266
+                    $this->progress = (integer) $localProgress;
267 267
                     $progressBar->advance();
268 268
                 }
269 269
             }
Please login to merge, or discard this patch.