Completed
Pull Request — master (#384)
by Cristian
01:46
created
src/app/Http/Controllers/Auth/RegisterController.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      *
62 62
      * @param array $data
63 63
      *
64
-     * @return User
64
+     * @return \Illuminate\Contracts\Auth\Authenticatable
65 65
      */
66 66
     protected function create(array $data)
67 67
     {
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
      *
98 98
      * @param \Illuminate\Http\Request $request
99 99
      *
100
-     * @return \Illuminate\Http\Response
100
+     * @return \Illuminate\Http\RedirectResponse
101 101
      */
102 102
     public function register(Request $request)
103 103
     {
Please login to merge, or discard this patch.
src/app/Http/Controllers/Auth/LoginController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
      *
72 72
      * @param \Illuminate\Http\Request $request
73 73
      *
74
-     * @return \Illuminate\Http\Response
74
+     * @return \Illuminate\Http\RedirectResponse
75 75
      */
76 76
     public function logout(Request $request)
77 77
     {
Please login to merge, or discard this patch.
src/BaseServiceProvider.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
     public function register()
76 76
     {
77 77
         // register the current package
78
-        $this->app->bind('base', function ($app) {
78
+        $this->app->bind('base', function($app) {
79 79
             return new Base($app);
80 80
         });
81 81
 
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Illuminate\Routing\Router;
6 6
 use Illuminate\Support\ServiceProvider;
7
-use Route;
8 7
 
9 8
 class BaseServiceProvider extends ServiceProvider
10 9
 {
Please login to merge, or discard this patch.
src/routes/backpack/base.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
     'middleware' => 'web',
17 17
     'prefix'     => config('backpack.base.route_prefix'),
18 18
 ],
19
-function () {
19
+function() {
20 20
     // if not otherwise configured, setup the auth routes
21 21
     if (config('backpack.base.setup_auth_routes')) {
22 22
         // Authentication Routes...
Please login to merge, or discard this patch.
src/app/Console/Commands/Install.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
     /**
107 107
      * Write text to the screen for the user to see.
108 108
      *
109
-     * @param [string] $type    line, info, comment, question, error
109
+     * @param string $type    line, info, comment, question, error
110 110
      * @param [string] $content
111 111
      */
112 112
     public function echo($type, $content)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
         $this->echo('info', $beforeNotice ? ' '.$beforeNotice : $command);
82 82
 
83 83
         $process = new Process($command, null, null, null, $this->option('timeout'), null);
84
-        $process->run(function ($type, $buffer) {
84
+        $process->run(function($type, $buffer) {
85 85
             if (Process::ERR === $type) {
86 86
                 $this->echo('comment', $buffer);
87 87
             } else {
Please login to merge, or discard this patch.
src/app/Http/Requests/ChangePasswordRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
      */
43 43
     public function withValidator($validator)
44 44
     {
45
-        $validator->after(function ($validator) {
45
+        $validator->after(function($validator) {
46 46
             // check old password matches
47 47
             if (!Hash::check($this->input('old_password'), backpack_auth()->user()->password)) {
48 48
                 $validator->errors()->add('old_password', trans('backpack::base.old_password_incorrect'));
Please login to merge, or discard this patch.
src/routes/backpack/custom.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,5 +10,5 @@
 block discarded – undo
10 10
     'prefix'     => config('backpack.base.route_prefix', 'admin'),
11 11
     'middleware' => ['web', config('backpack.base.middleware_key', 'admin')],
12 12
     'namespace'  => 'App\Http\Controllers\Admin',
13
-], function () { // custom admin routes
13
+], function() { // custom admin routes
14 14
 }); // this should be the absolute last line of this file
Please login to merge, or discard this patch.
src/app/Console/Commands/Version.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
     private function runCommand($command)
60 60
     {
61 61
         $process = new Process($command, null, null, null, 60, null);
62
-        $process->run(function ($type, $buffer) {
62
+        $process->run(function($type, $buffer) {
63 63
             if (Process::ERR === $type) {
64 64
                 $this->line($buffer);
65 65
             } else {
Please login to merge, or discard this patch.
src/app/Console/Commands/AddCustomRouteContent.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 
67 67
             $process = new Process($command, null, null, null, 300, null);
68 68
 
69
-            $process->run(function ($type, $buffer) {
69
+            $process->run(function($type, $buffer) {
70 70
                 if (Process::ERR === $type) {
71 71
                     $this->line($buffer);
72 72
                 } else {
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 
95 95
         // otherwise, in case the last line HAS been modified
96 96
         // return the last line that has an ending in it
97
-        $possible_end_lines = array_filter($file_lines, function ($k) {
97
+        $possible_end_lines = array_filter($file_lines, function($k) {
98 98
             return strpos($k, '});') === 0;
99 99
         });
100 100
 
Please login to merge, or discard this patch.