Completed
Branch develop (a455fd)
by Greg
16:10
created
app/Http/Controllers/ProxyListItemController.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,8 +3,6 @@
 block discarded – undo
3 3
 namespace App\Http\Controllers;
4 4
 
5 5
 use Illuminate\Http\Request;
6
-
7
-use App\Http\Requests;
8 6
 use App\ProxyListItem;
9 7
 
10 8
 class ProxyListItemController extends Controller
Please login to merge, or discard this patch.
app/Http/Controllers/UserController.php 1 patch
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -2,10 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace App\Http\Controllers;
4 4
 
5
-use Illuminate\Http\Request;
6
-
7
-use App\Http\Requests;
8
-use App\User;
9 5
 use Auth;
10 6
 
11 7
 class UserController extends Controller
Please login to merge, or discard this patch.
app/Http/Helpers/Installer/EnvironmentManager.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,6 +29,7 @@  discard block
 block discarded – undo
29 29
     /**
30 30
      * Get the content of the .env file.
31 31
      *
32
+     * @param Request $request
32 33
      * @return string
33 34
      */
34 35
     public function getEnvContent($request)
@@ -48,7 +49,6 @@  discard block
 block discarded – undo
48 49
     /**
49 50
      * Save the edited content to the file.
50 51
      *
51
-     * @param Request $input
52 52
      * @return boolean
53 53
      */
54 54
     public function saveFile(Request $request)
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -36,9 +36,9 @@  discard block
 block discarded – undo
36 36
         $data = $request->session()->all();
37 37
 
38 38
         $env = '';
39
-        foreach($data as $key => $value) {
40
-            if(preg_match('/^[A-Z]+_[A-Z]+$/', $key)) {
41
-                $env .= "${key}=${value}" . PHP_EOL;
39
+        foreach ($data as $key => $value) {
40
+            if (preg_match('/^[A-Z]+_[A-Z]+$/', $key)) {
41
+                $env .= "${key}=${value}".PHP_EOL;
42 42
             }
43 43
         }
44 44
 
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 
59 59
         try {
60 60
             file_put_contents($this->envPath, $request->get('envConfig'));
61
-        } catch(Exception $e) {
61
+        } catch (Exception $e) {
62 62
             $status = false;
63 63
         }
64 64
 
Please login to merge, or discard this patch.
app/Http/Helpers/Installer/PermissionsChecker.php 3 patches
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.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,9 +29,9 @@
 block discarded – undo
29 29
      */
30 30
     public function check(array $folders)
31 31
     {
32
-        foreach($folders as $folder => $permission)
32
+        foreach ($folders as $folder => $permission)
33 33
         {
34
-            if(!($this->getPermission($folder) >= $permission))
34
+            if (!($this->getPermission($folder) >= $permission))
35 35
             {
36 36
                 $this->addFileAndSetErrors($folder, $permission, false);
37 37
             }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,8 +34,7 @@
 block discarded – undo
34 34
             if(!($this->getPermission($folder) >= $permission))
35 35
             {
36 36
                 $this->addFileAndSetErrors($folder, $permission, false);
37
-            }
38
-            else {
37
+            } else {
39 38
                 $this->addFile($folder, $permission, true);
40 39
             }
41 40
         }
Please login to merge, or discard this patch.
app/Http/Middleware/RedirectIfNotInstalled.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace App\Http\Middleware;
4 4
 
5 5
 use Closure;
6
-use Illuminate\Support\Facades\Auth;
7 6
 use App\Http\Middleware\RedirectIfInstalled;
8 7
 
9 8
 class RedirectIfNotInstalled extends RedirectIfInstalled
Please login to merge, or discard this patch.
app/Policies/AccountPolicy.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -2,9 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace App\Policies;
4 4
 
5
-use App\User;
6
-use App\Account;
7
-
8 5
 class AccountPolicy
9 6
 {
10 7
     public function manage($user, $account)
Please login to merge, or discard this patch.
app/Policies/CategoryPolicy.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -2,9 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace App\Policies;
4 4
 
5
-use App\User;
6
-use App\Category;
7
-
8 5
 class CategoryPolicy
9 6
 {
10 7
     public function manage($user, $category)
Please login to merge, or discard this patch.
app/Policies/GroupPolicy.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -2,9 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace App\Policies;
4 4
 
5
-use App\User;
6
-use App\Group;
7
-
8 5
 class GroupPolicy
9 6
 {
10 7
     public function manage($user, $group)
Please login to merge, or discard this patch.
app/Policies/ProxyListItemPolicy.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -2,9 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace App\Policies;
4 4
 
5
-use App\User;
6
-use App\ProxyListItem;
7
-
8 5
 class ProxyListItemPolicy
9 6
 {
10 7
     public function manage($user, $item)
Please login to merge, or discard this patch.