Completed
Push — develop ( 2471d3...076d45 )
by Greg
01:52
created
app/Console/Commands/ExportWhitelists.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -50,6 +50,9 @@
 block discarded – undo
50 50
         }
51 51
     }
52 52
 
53
+    /**
54
+     * @param boolean $isWhiteList
55
+     */
53 56
     private function exportProxyList($type, $isWhiteList)
54 57
     {
55 58
         $items = ProxyListItem::where('type', $type)
Please login to merge, or discard this patch.
app/Http/Controllers/AccountController.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
     /**
109 109
      * Add a new account.
110 110
      *
111
-     * @return Response
111
+     * @return \Illuminate\Http\RedirectResponse
112 112
      */
113 113
     public function addAccount(Request $request)
114 114
     {
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
      *
150 150
      * @param  Request  $request
151 151
      * @param  int  $id
152
-     * @return Response
152
+     * @return \Illuminate\Http\RedirectResponse
153 153
      */
154 154
     public function updateAccount(Request $request, $id)
155 155
     {
Please login to merge, or discard this patch.
app/Http/Controllers/AdminController.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     /**
77 77
      * Add a new user.
78 78
      *
79
-     * @return Response
79
+     * @return \Illuminate\Http\RedirectResponse
80 80
      */
81 81
     public function addUser(Request $request)
82 82
     {
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
      *
115 115
      * @param  Request  $request
116 116
      * @param  int  $id
117
-     * @return Response
117
+     * @return \Illuminate\Http\RedirectResponse
118 118
      */
119 119
     public function updateUser(Request $request, $id = 0)
120 120
     {
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
      * Enable an user.
170 170
      *
171 171
      * @param  int  $id
172
-     * @return Response
172
+     * @return \Illuminate\Http\RedirectResponse
173 173
      */
174 174
     public function enableUser($id)
175 175
     {
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
      * Disable an user.
187 187
      *
188 188
      * @param  int  $id
189
-     * @return Response
189
+     * @return \Illuminate\Http\RedirectResponse
190 190
      */
191 191
     public function disableUser($id)
192 192
     {
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
      * Remove an user.
204 204
      *
205 205
      * @param  int  $id
206
-     * @return Response
206
+     * @return \Illuminate\Http\RedirectResponse
207 207
      */
208 208
     public function removeUser($id)
209 209
     {
Please login to merge, or discard this patch.
app/Http/Controllers/InstallerController.php 2 patches
Doc Comments   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     /**
49 49
      * XXXXXXXXXX
50 50
      *
51
-     * @return \Illuminate\View\View
51
+     * @return \Illuminate\Http\RedirectResponse
52 52
      */
53 53
     public function stepStoreApp(Request $request, Redirector $redirect)
54 54
     {
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     /**
76 76
      * XXXXXXXXXX
77 77
      *
78
-     * @return \Illuminate\View\View
78
+     * @return \Illuminate\Http\RedirectResponse
79 79
      */
80 80
     public function stepStoreDb(Request $request, Redirector $redirect)
81 81
     {
@@ -161,7 +161,6 @@  discard block
 block discarded – undo
161 161
     /**
162 162
      * Processes the newly saved environment configuration and continue.
163 163
      *
164
-     * @param Request $input
165 164
      * @param Redirector $redirect
166 165
      * @return \Illuminate\Http\RedirectResponse
167 166
      */
@@ -205,7 +204,7 @@  discard block
 block discarded – undo
205 204
     /**
206 205
      * XXXXXXXXXX
207 206
      *
208
-     * @return \Illuminate\View\View
207
+     * @return \Illuminate\Http\RedirectResponse
209 208
      */
210 209
     public function stepMigrate(DatabaseManager $databaseManager)
211 210
     {
Please login to merge, or discard this 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/Helpers/Installer/PermissionsChecker.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
      *
76 76
      * @param $folder
77 77
      * @param $permission
78
-     * @param $isSet
78
+     * @param boolean $isSet
79 79
      */
80 80
     private function addFileAndSetErrors($folder, $permission, $isSet)
81 81
     {
Please login to merge, or discard this patch.
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/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/Console/Commands/ExportAccounts.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
     public function handle()
63 63
     {
64 64
         $accounts = Account::where('status', Account::ACCOUNT_ENABLE)
65
-                      ->orderBy('netlogin', 'desc')->get();
65
+                        ->orderBy('netlogin', 'desc')->get();
66 66
 
67 67
         if ($accounts->isEmpty()) {
68 68
             $this->info("No accounts to export");
Please login to merge, or discard this patch.
app/Console/Commands/ExportCategories.php 1 patch
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -55,32 +55,32 @@
 block discarded – undo
55 55
      *
56 56
      * @return mixed
57 57
      */
58
-     public function handle()
59
-     {
60
-         $categories = Category::get();
58
+        public function handle()
59
+        {
60
+            $categories = Category::get();
61 61
 
62
-         if ($categories->isEmpty()) {
63
-             $this->info("No categories to export");
64
-             return;
65
-         }
62
+            if ($categories->isEmpty()) {
63
+                $this->info("No categories to export");
64
+                return;
65
+            }
66 66
 
67
-         foreach ($categories as $category){
68
-             $name = static::stringNormalise($category->name);
69
-             $filename = "{$this->exportFolder}/{$name}{$this->exportFileExt}";
70
-             $accounts = Account::where('status', Account::ACCOUNT_ENABLE)
67
+            foreach ($categories as $category){
68
+                $name = static::stringNormalise($category->name);
69
+                $filename = "{$this->exportFolder}/{$name}{$this->exportFileExt}";
70
+                $accounts = Account::where('status', Account::ACCOUNT_ENABLE)
71 71
                             ->where('category_id', $category->id)
72 72
                             ->orderBy('netlogin', 'desc')
73 73
                             ->get();
74
-             Storage::disk('export')->put($filename, '');
75
-             $count = count($accounts);
76
-             $bar = $this->output->createProgressBar($count);
77
-             foreach ($accounts as $account) {
78
-                 Storage::disk('export')->prepend($filename, "{$account->netlogin}:{$account->netpass}");
79
-                 $bar->advance();
80
-             }
81
-             $bar->finish();
82
-             $url = Storage::disk('export')->path($filename);
83
-             $this->info("\n{$count} accounts '{$category->name}' exported into file '{$url}'");
84
-         }
85
-     }
74
+                Storage::disk('export')->put($filename, '');
75
+                $count = count($accounts);
76
+                $bar = $this->output->createProgressBar($count);
77
+                foreach ($accounts as $account) {
78
+                    Storage::disk('export')->prepend($filename, "{$account->netlogin}:{$account->netpass}");
79
+                    $bar->advance();
80
+                }
81
+                $bar->finish();
82
+                $url = Storage::disk('export')->path($filename);
83
+                $this->info("\n{$count} accounts '{$category->name}' exported into file '{$url}'");
84
+            }
85
+        }
86 86
 }
Please login to merge, or discard this patch.