Completed
Pull Request — master (#259)
by Cristian
03:52
created
src/helpers.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
      * Appends the configured backpack prefix and returns
6 6
      * the URL using the standard Laravel helpers.
7 7
      *
8
-     * @param $path
8
+     * @param string $path
9 9
      *
10 10
      * @return string
11 11
      */
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/BaseServiceProvider.php 2 patches
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.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
     public function register()
120 120
     {
121 121
         // register the current package
122
-        $this->app->bind('base', function ($app) {
122
+        $this->app->bind('base', function($app) {
123 123
             return new Base($app);
124 124
         });
125 125
 
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
      */
218 218
     private function checkLicenseCodeExists()
219 219
     {
220
-        if (! env('BACKPACK_LICENSE')) {
220
+        if (!env('BACKPACK_LICENSE')) {
221 221
             \Alert::add('warning', "<strong>You're using unlicensed software.</strong> Please ask your web developer to <a target='_blank' href='http://backpackforlaravel.com'>purchase a license code</a> to hide this message.");
222 222
         }
223 223
     }
Please login to merge, or discard this patch.
src/app/Console/Commands/AddCustomRouteContent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
 
66 66
             $process = new Process($command, null, null, null, 300, null);
67 67
 
68
-            $process->run(function ($type, $buffer) {
68
+            $process->run(function($type, $buffer) {
69 69
                 if (Process::ERR === $type) {
70 70
                     $this->line($buffer);
71 71
                 } else {
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' => [backpack_middleware()],
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.