@@ -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,23 +50,23 @@ 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 | |
| 69 | - Route::bind('notification', function ($value) { |
|
| 69 | + Route::bind('notification', function($value) { |
|
| 70 | 70 | return ExtendedDatabaseNotification::with('loan') |
| 71 | 71 | ->find($value) ?? abort(404); |
| 72 | 72 | }); |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | ->where('lastname', '!=', '(anonymisert)') |
| 37 | 37 | ->orderBy('lastname') |
| 38 | 38 | ->get() |
| 39 | - ->map(function ($user) { |
|
| 39 | + ->map(function($user) { |
|
| 40 | 40 | return [ |
| 41 | 41 | 'id' => $user->id, |
| 42 | 42 | 'primaryId' => $user->alma_primary_id, |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | return response()->json([]); |
| 94 | 94 | } |
| 95 | 95 | $query = 'ALL~' . $request->input('query'); |
| 96 | - $users = collect($alma->users->search($query, ['limit' => 5]))->map(function ($u) { |
|
| 96 | + $users = collect($alma->users->search($query, ['limit' => 5]))->map(function($u) { |
|
| 97 | 97 | return new AlmaUser($u); |
| 98 | 98 | }); |
| 99 | 99 | |