Passed
Branch dev (6688ef)
by John
08:01
created
app/Console/Commands/Babel/BabelRequire.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -14,14 +14,14 @@  discard block
 block discarded – undo
14 14
      *
15 15
      * @var string
16 16
      */
17
-    protected $signature = 'babel:require {extension : The package name of the extension} {--exception}';
17
+    protected $signature='babel:require {extension : The package name of the extension} {--exception}';
18 18
 
19 19
     /**
20 20
      * The console command description.
21 21
      *
22 22
      * @var string
23 23
      */
24
-    protected $description = 'Download a given Babel Extension to NOJ';
24
+    protected $description='Download a given Babel Extension to NOJ';
25 25
 
26 26
     /**
27 27
      * Create a new command instance.
@@ -40,9 +40,9 @@  discard block
 block discarded – undo
40 40
      */
41 41
     public function handle()
42 42
     {
43
-        $extension = $this->argument('extension');
44
-        $exception = $this->option('exception');
45
-        $output = new BufferedOutput();
43
+        $extension=$this->argument('extension');
44
+        $exception=$this->option('exception');
45
+        $output=new BufferedOutput();
46 46
         if (is_dir(babel_path("Extension/$extension/"))) {
47 47
             if (!$exception) {
48 48
                 $this->line("\n  <bg=red;fg=white> Exception </> : <fg=yellow>An extension named <fg=green>$extension</> already took place, did you mean <fg=green>php artisan bable:update $extension</>?</>\n");
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
             mkdir(babel_path("Tmp/$extension/"));
75 75
         }
76 76
         try {
77
-            $zipFile = new ZipFile();
77
+            $zipFile=new ZipFile();
78 78
             $zipFile->openFile(babel_path("Tmp/$filename"))->extractTo(babel_path("Tmp/$extension/"))->close();
79 79
             $babelPath=glob_recursive(babel_path("Tmp/$extension/babel.json"));
80 80
             if (empty($babelPath)) {
@@ -123,8 +123,8 @@  discard block
 block discarded – undo
123 123
         if (!is_dir($dir)) {
124 124
             return;
125 125
         }
126
-        $it = new \RecursiveDirectoryIterator($dir, \RecursiveDirectoryIterator::SKIP_DOTS);
127
-        $files = new \RecursiveIteratorIterator($it, \RecursiveIteratorIterator::CHILD_FIRST);
126
+        $it=new \RecursiveDirectoryIterator($dir, \RecursiveDirectoryIterator::SKIP_DOTS);
127
+        $files=new \RecursiveIteratorIterator($it, \RecursiveIteratorIterator::CHILD_FIRST);
128 128
         foreach ($files as $file) {
129 129
             if ($file->isDir()) {
130 130
                 rmdir($file->getRealPath());
Please login to merge, or discard this patch.
app/Console/Commands/Babel/Uninstall.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,14 +12,14 @@  discard block
 block discarded – undo
12 12
      *
13 13
      * @var string
14 14
      */
15
-    protected $signature = 'babel:uninstall {extension : The package name of the extension}';
15
+    protected $signature='babel:uninstall {extension : The package name of the extension}';
16 16
 
17 17
     /**
18 18
      * The console command description.
19 19
      *
20 20
      * @var string
21 21
      */
22
-    protected $description = 'Uninstall a given Babel Extension to NOJ';
22
+    protected $description='Uninstall a given Babel Extension to NOJ';
23 23
 
24 24
     /**
25 25
      * Create a new command instance.
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      */
39 39
     public function handle()
40 40
     {
41
-        $extension = $this->argument('extension');
41
+        $extension=$this->argument('extension');
42 42
         $submitter=self::create($extension, $this);
43 43
         if (!is_null($submitter)) {
44 44
             $submitter->uninstall();
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
         } catch (ErrorException $e) {
57 57
         } catch (Exception $e) {
58 58
         }
59
-        $className = "App\\Babel\\Extension\\$oj\\$installerProvider";
59
+        $className="App\\Babel\\Extension\\$oj\\$installerProvider";
60 60
         if (class_exists($className)) {
61 61
             return new $className($class);
62 62
         } else {
Please login to merge, or discard this patch.