Completed
Push — develop ( 28a3f0...33ab9e )
by Greg
01:54
created
app/Http/Helpers/Installer/DatabaseManager.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,8 +72,8 @@
 block discarded – undo
72 72
     }
73 73
 
74 74
         /**
75
-     * check database type. If SQLite, then create the database file.
76
-     */
75
+         * check database type. If SQLite, then create the database file.
76
+         */
77 77
     private function sqlite()
78 78
     {
79 79
         if(DB::connection() instanceof SQLiteConnection) {
Please login to merge, or discard this patch.
app/Http/Controllers/InstallerController.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -212,7 +212,7 @@
 block discarded – undo
212 212
         $response = $databaseManager->migrateAndSeed();
213 213
 
214 214
         return redirect()->route('KleisInstaller::stepFinal')
215
-                         ->with(['message' => $response]);
215
+                            ->with(['message' => $response]);
216 216
     }
217 217
 
218 218
     /**
Please login to merge, or discard this patch.
app/Http/ViewComposers/LegalNoticeComposer.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
             }
28 28
         }
29 29
         $view->with('enable', $enable)
30
-             ->with('title', $title)
31
-             ->with('contents', $contents);
30
+                ->with('title', $title)
31
+                ->with('contents', $contents);
32 32
     }
33 33
 }
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/LoginController.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -68,10 +68,10 @@
 block discarded – undo
68 68
         $credentials = $request->only('email', 'password');
69 69
 
70 70
         if (Auth::attempt([
71
-          'email' => $credentials['email'],
72
-          'password' => $credentials['password'],
73
-          'status' => App\User::USER_ENABLED
74
-          ])) {
71
+            'email' => $credentials['email'],
72
+            'password' => $credentials['password'],
73
+            'status' => App\User::USER_ENABLED
74
+            ])) {
75 75
             // Authentication passed...
76 76
             return redirect()->intended('home');
77 77
         }
Please login to merge, or discard this patch.
app/Console/Commands/Export.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -23,9 +23,9 @@  discard block
 block discarded – undo
23 23
     protected $description = 'Export accounts, groups and categories at once';
24 24
 
25 25
     protected $commands = [
26
-      'export:accounts',
27
-      'export:groups',
28
-      'export:categories'
26
+        'export:accounts',
27
+        'export:groups',
28
+        'export:categories'
29 29
     ];
30 30
 
31 31
     /**
@@ -46,9 +46,9 @@  discard block
 block discarded – undo
46 46
     public function handle()
47 47
     {
48 48
         foreach ($this->commands as $cmd) {
49
-          $this->call($cmd, [
49
+            $this->call($cmd, [
50 50
             '--ci' => $this->option('ci')
51
-          ]);
51
+            ]);
52 52
         }
53 53
     }
54 54
 }
Please login to merge, or discard this patch.
app/Console/Commands/ExportWhitelists.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -100,19 +100,19 @@
 block discarded – undo
100 100
 
101 101
         $flagCI = $this->option('ci');
102 102
         if ($flagCI === false) {
103
-          $bar = $this->output->createProgressBar($count);
103
+            $bar = $this->output->createProgressBar($count);
104 104
         }
105 105
 
106 106
         foreach ($items as $item) {
107 107
             $this->storage->prepend($filename, "{$item->value}");
108 108
             if (isset($bar)) {
109
-              $bar->advance();
109
+                $bar->advance();
110 110
             }
111 111
         }
112 112
 
113 113
         if (isset($bar)) {
114
-          $bar->finish();
115
-          $this->info("\n");
114
+            $bar->finish();
115
+            $this->info("\n");
116 116
         }
117 117
 
118 118
         $url = $this->storage->path($filename);
Please login to merge, or discard this patch.
app/Console/Commands/UpdateAccounts.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -47,19 +47,19 @@
 block discarded – undo
47 47
 
48 48
         $flagCI = $this->option('ci');
49 49
         if ($flagCI === false) {
50
-          $bar = $this->output->createProgressBar($count);
50
+            $bar = $this->output->createProgressBar($count);
51 51
         }
52 52
 
53 53
         foreach ($accounts as $account) {
54 54
             $account->disable();
55 55
             if (isset($bar)) {
56
-              $bar->advance();
56
+                $bar->advance();
57 57
             }
58 58
         }
59 59
 
60 60
         if (isset($bar)) {
61
-          $bar->finish();
62
-          $this->info("\n");
61
+            $bar->finish();
62
+            $this->info("\n");
63 63
         }
64 64
 
65 65
         $this->info("{$count} accounts disabled");
Please login to merge, or discard this patch.
app/Console/Commands/ExportCategories.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -72,28 +72,28 @@
 block discarded – undo
72 72
      *
73 73
      * @return mixed
74 74
      */
75
-     public function handle()
76
-     {
77
-         $categories = Category::get();
75
+        public function handle()
76
+        {
77
+            $categories = Category::get();
78 78
 
79
-         if ($categories->isEmpty()) {
80
-             $this->info("No categories to export");
81
-             return;
82
-         }
79
+            if ($categories->isEmpty()) {
80
+                $this->info("No categories to export");
81
+                return;
82
+            }
83 83
 
84
-         foreach ($categories as $category){
85
-             $accounts = Account::where('status', Account::ACCOUNT_ENABLE)
84
+            foreach ($categories as $category){
85
+                $accounts = Account::where('status', Account::ACCOUNT_ENABLE)
86 86
                             ->where('category_id', $category->id)
87 87
                             ->orderBy('netlogin', 'desc')
88 88
                             ->get();
89 89
 
90
-             $name = static::stringNormalise($category->name);
91
-             $filename = "{$this->exportFolder}/{$name}{$this->exportFileExt}";
90
+                $name = static::stringNormalise($category->name);
91
+                $filename = "{$this->exportFolder}/{$name}{$this->exportFileExt}";
92 92
 
93
-             $count = $this->exportAccount($accounts, $filename, false, $this->option('ci'));
93
+                $count = $this->exportAccount($accounts, $filename, false, $this->option('ci'));
94 94
 
95
-             $url = $this->storage->path($filename);
96
-             $this->info("{$count} accounts '{$category->name}' exported into file '{$url}'");
97
-         }
98
-     }
95
+                $url = $this->storage->path($filename);
96
+                $this->info("{$count} accounts '{$category->name}' exported into file '{$url}'");
97
+            }
98
+        }
99 99
 }
Please login to merge, or discard this patch.
app/Console/Commands/Traits/ExportAccountsTrait.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
         $count = count($accounts);
12 12
 
13 13
         if ($flagCI === false) {
14
-          $bar = $this->output->createProgressBar($count);
14
+            $bar = $this->output->createProgressBar($count);
15 15
         }
16 16
 
17 17
         foreach ($accounts as $account) {
@@ -19,13 +19,13 @@  discard block
 block discarded – undo
19 19
             $record .= $password ? ":{$account->netpass}" : '';
20 20
             $this->storage->prepend($filename, $record);
21 21
             if (isset($bar)) {
22
-              $bar->advance();
22
+                $bar->advance();
23 23
             }
24 24
         }
25 25
 
26 26
         if (isset($bar)) {
27
-          $bar->finish();
28
-          $this->info("\n");
27
+            $bar->finish();
28
+            $this->info("\n");
29 29
         }
30 30
 
31 31
         return $count;
Please login to merge, or discard this patch.