Completed
Push — develop ( 2daf7c...13acd4 )
by Greg
01:37
created
app/Console/Commands/ExportCategories.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
              return;
46 46
          }
47 47
 
48
-         foreach ($categories as $category){
48
+         foreach ($categories as $category) {
49 49
              $accounts = $this->fecthAccounts(['category_id' => $category->id]);
50 50
 
51 51
              $name = normalise($category->name);
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
              try {
57 57
                  $url = $this->exportToLocation($filename);
58
-             } catch(\Exception $e) {
58
+             } catch (\Exception $e) {
59 59
                  $this->error('Export cancelled by user!');
60 60
                  return;
61 61
              }
Please login to merge, or discard this patch.
app/Console/Commands/ExportWhitelists.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     public function handle()
40 40
     {
41 41
         $whitelist = empty($this->option('blacklist'));
42
-        if ( false === empty($this->option('list'))) {
42
+        if (false === empty($this->option('list'))) {
43 43
             $this->exportProxyList($this->option('list'), $whitelist);
44 44
         } else {
45 45
             $this->exportProxyList('domain', $whitelist);
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 
84 84
         try {
85 85
             $url = $this->exportToLocation($filename);
86
-        } catch(\Exception $e) {
86
+        } catch (\Exception $e) {
87 87
             $this->error('Export cancelled by user!');
88 88
             return;
89 89
         }
Please login to merge, or discard this patch.
app/Console/Commands/ExportGroups.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
              return;
46 46
          }
47 47
 
48
-         foreach ($groups as $group){
48
+         foreach ($groups as $group) {
49 49
             $accounts = $this->fecthAccounts(['group_id' => $group->id]);
50 50
 
51 51
              $name = normalise($group->name);
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
              try {
57 57
                  $url = $this->exportToLocation($filename);
58
-             } catch(\Exception $e) {
58
+             } catch (\Exception $e) {
59 59
                  $this->error('Export cancelled by user!');
60 60
                  return;
61 61
              }
Please login to merge, or discard this patch.
app/Console/Commands/AbstractExportCommand.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -124,11 +124,11 @@  discard block
 block discarded – undo
124 124
      *
125 125
      * @return App\Account
126 126
      */
127
-    final protected function fecthAccounts($filter=null)
127
+    final protected function fecthAccounts($filter = null)
128 128
     {
129 129
         $query = Account::where('status', Account::ACCOUNT_ENABLE);
130 130
 
131
-        if(is_null($filter) === false && is_array($filter)) {
131
+        if (is_null($filter) === false && is_array($filter)) {
132 132
           $query = $query->where($filter);
133 133
         }
134 134
 
@@ -139,12 +139,12 @@  discard block
 block discarded – undo
139 139
     {
140 140
         $source = $this->storage->path($filename);
141 141
 
142
-        if($this->argument('output')) {
143
-            $target = $this->argument('output') . '/' . $filename;
142
+        if ($this->argument('output')) {
143
+            $target = $this->argument('output').'/'.$filename;
144 144
 
145 145
             $fs = new Filesystem(new Local('/'));
146 146
 
147
-            if ($fs->has($target) ) {
147
+            if ($fs->has($target)) {
148 148
                 if ($this->option('ci')) {
149 149
                     $fs->delete($target);
150 150
                 } else {
Please login to merge, or discard this patch.
app/Console/Commands/ExportAccounts.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
 
56 56
         try {
57 57
             $url = $this->exportToLocation($filename);
58
-        } catch(\Exception $e) {
58
+        } catch (\Exception $e) {
59 59
             $this->error('Export cancelled by user!');
60 60
             return;
61 61
         }
Please login to merge, or discard this patch.