@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -Route::group(['middleware' => ['web', 'admin']], function () { |
|
3 | +Route::group(['middleware' => ['web', 'admin']], function() { |
|
4 | 4 | Route::get('/manager/add', 'Larafolio\Http\Controllers\ProjectController@create')->name('add-project'); |
5 | 5 | |
6 | 6 | Route::get('/manager', 'Larafolio\Http\Controllers\DashboardController@index')->name('dashboard'); |
@@ -119,7 +119,7 @@ |
||
119 | 119 | protected function setOrder(array $data) |
120 | 120 | { |
121 | 121 | return collect($data)->sortBy('order') |
122 | - ->map(function ($item, $key) { |
|
122 | + ->map(function($item, $key) { |
|
123 | 123 | $item['order'] = $key; |
124 | 124 | |
125 | 125 | return $item; |
@@ -57,7 +57,7 @@ |
||
57 | 57 | * |
58 | 58 | * @param HasContent $model Model to delete. |
59 | 59 | * |
60 | - * @return boolean |
|
60 | + * @return boolean|null |
|
61 | 61 | */ |
62 | 62 | protected function purgeModel(HasContent $model) |
63 | 63 | { |
@@ -24,7 +24,7 @@ |
||
24 | 24 | */ |
25 | 25 | public function __construct() |
26 | 26 | { |
27 | - $this->middleware(function ($request, $next) { |
|
27 | + $this->middleware(function($request, $next) { |
|
28 | 28 | $this->user = Auth::user(); |
29 | 29 | |
30 | 30 | return $next($request); |
@@ -21,7 +21,7 @@ |
||
21 | 21 | |
22 | 22 | factory(Project::class) |
23 | 23 | ->create(['name' => $name]) |
24 | - ->each(function (Project $project) { |
|
24 | + ->each(function(Project $project) { |
|
25 | 25 | $project->blocks()->save(factory(TextBlock::class)->make()); |
26 | 26 | |
27 | 27 | $project->links()->save(factory(Link::class)->make()); |
@@ -15,11 +15,11 @@ |
||
15 | 15 | { |
16 | 16 | $projects = Project::all()->sortBy('order')->values(); |
17 | 17 | |
18 | - $images = $projects->mapWithKeys(function (Project $project) { |
|
18 | + $images = $projects->mapWithKeys(function(Project $project) { |
|
19 | 19 | return [$project->name() => $project->getProjectImageUrl()]; |
20 | 20 | }); |
21 | 21 | |
22 | - $blocks = $projects->mapWithKeys(function (Project $project) { |
|
22 | + $blocks = $projects->mapWithKeys(function(Project $project) { |
|
23 | 23 | return [$project->name() => $project->getProjectBlockText()]; |
24 | 24 | }); |
25 | 25 |
@@ -37,7 +37,7 @@ |
||
37 | 37 | $deletedProjects = Project::onlyTrashed() |
38 | 38 | ->orderBy('deleted_at', 'DESC') |
39 | 39 | ->get() |
40 | - ->map(function (Project $project) { |
|
40 | + ->map(function(Project $project) { |
|
41 | 41 | return $project->generateProps(); |
42 | 42 | }); |
43 | 43 |
@@ -17,7 +17,7 @@ |
||
17 | 17 | */ |
18 | 18 | public function applyFilter(Image $image) |
19 | 19 | { |
20 | - return $image->resize(null, 300, function (Constraint $constraint) { |
|
20 | + return $image->resize(null, 300, function(Constraint $constraint) { |
|
21 | 21 | $constraint->aspectRatio(); |
22 | 22 | }); |
23 | 23 | } |
@@ -17,7 +17,7 @@ |
||
17 | 17 | */ |
18 | 18 | public function applyFilter(Image $image) |
19 | 19 | { |
20 | - return $image->resize(null, 80, function (Constraint $constraint) { |
|
20 | + return $image->resize(null, 80, function(Constraint $constraint) { |
|
21 | 21 | $constraint->aspectRatio(); |
22 | 22 | }); |
23 | 23 | } |
@@ -17,7 +17,7 @@ |
||
17 | 17 | */ |
18 | 18 | public function applyFilter(Image $image) |
19 | 19 | { |
20 | - return $image->resize(null, 150, function (Constraint $constraint) { |
|
20 | + return $image->resize(null, 150, function(Constraint $constraint) { |
|
21 | 21 | $constraint->aspectRatio(); |
22 | 22 | }); |
23 | 23 | } |