@@ -41,7 +41,7 @@ |
||
| 41 | 41 | * @static array |
| 42 | 42 | */ |
| 43 | 43 | public static $editableAttributes = [ |
| 44 | - 'barcode', 'university_id','lastname', 'firstname', 'phone', 'email', 'lang', 'note' |
|
| 44 | + 'barcode', 'university_id', 'lastname', 'firstname', 'phone', 'email', 'lang', 'note' |
|
| 45 | 45 | ]; |
| 46 | 46 | |
| 47 | 47 | public function loans() |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | |
| 42 | 42 | parent::boot(); |
| 43 | 43 | |
| 44 | - Route::bind('thing', function ($value) { |
|
| 44 | + Route::bind('thing', function($value) { |
|
| 45 | 45 | return $value == '_new' |
| 46 | 46 | ? new Thing(['properties' => []]) |
| 47 | 47 | : Thing::withTrashed() |
@@ -50,19 +50,19 @@ discard block |
||
| 50 | 50 | ->find($value) ?? abort(404); |
| 51 | 51 | }); |
| 52 | 52 | |
| 53 | - Route::bind('item', function ($value) { |
|
| 53 | + Route::bind('item', function($value) { |
|
| 54 | 54 | return $value == '_new' |
| 55 | - ? new Item([ 'library_id' => \Auth::user()->id ]) |
|
| 55 | + ? new Item(['library_id' => \Auth::user()->id]) |
|
| 56 | 56 | : Item::withTrashed()->find($value) ?? abort(404); |
| 57 | 57 | }); |
| 58 | 58 | |
| 59 | - Route::bind('user', function ($value) { |
|
| 59 | + Route::bind('user', function($value) { |
|
| 60 | 60 | return $value == '_new' |
| 61 | 61 | ? new User() |
| 62 | 62 | : User::find($value) ?? abort(404); |
| 63 | 63 | }); |
| 64 | 64 | |
| 65 | - Route::bind('loan', function ($value) { |
|
| 65 | + Route::bind('loan', function($value) { |
|
| 66 | 66 | return Loan::withTrashed()->find($value) ?? abort(404); |
| 67 | 67 | }); |
| 68 | 68 | } |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | |
| 34 | 34 | $schedule->command(Anonymize::class) |
| 35 | 35 | ->dailyAt('04:00') |
| 36 | - ->then(function () { |
|
| 36 | + ->then(function() { |
|
| 37 | 37 | $this->call(PurgeLogs::class); |
| 38 | 38 | }); |
| 39 | 39 | } |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | */ |
| 46 | 46 | protected function commands() |
| 47 | 47 | { |
| 48 | - $this->load(__DIR__.'/Commands'); |
|
| 48 | + $this->load(__DIR__ . '/Commands'); |
|
| 49 | 49 | |
| 50 | 50 | require base_path('routes/console.php'); |
| 51 | 51 | } |
@@ -253,7 +253,7 @@ |
||
| 253 | 253 | // Check-in by barcode |
| 254 | 254 | |
| 255 | 255 | $loan = Loan::with(['item', 'item.thing', 'user']) |
| 256 | - ->whereHas('item', function ($query) use ($request) { |
|
| 256 | + ->whereHas('item', function($query) use ($request) { |
|
| 257 | 257 | $query->where('barcode', '=', $request->input('barcode')); |
| 258 | 258 | }) |
| 259 | 259 | ->first(); |