@@ -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; |
@@ -15,11 +15,11 @@ |
||
| 15 | 15 | { |
| 16 | 16 | $projects = Project::all()->sortBy('order')->values(); |
| 17 | 17 | |
| 18 | - $images = $projects->mapWithKeys(function ($project) { |
|
| 18 | + $images = $projects->mapWithKeys(function($project) { |
|
| 19 | 19 | return [$project->name() => $project->getProjectImageUrl()]; |
| 20 | 20 | }); |
| 21 | 21 | |
| 22 | - $blocks = $projects->mapWithKeys(function ($project) { |
|
| 22 | + $blocks = $projects->mapWithKeys(function($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) { |
|
| 40 | + ->map(function($project) { |
|
| 41 | 41 | return $project->generateProps(); |
| 42 | 42 | }); |
| 43 | 43 | |
@@ -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); |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | */ |
| 17 | 17 | public function applyFilter(Image $image) |
| 18 | 18 | { |
| 19 | - return $image->resize(null, 300, function ($constraint) { |
|
| 19 | + return $image->resize(null, 300, function($constraint) { |
|
| 20 | 20 | $constraint->aspectRatio(); |
| 21 | 21 | }); |
| 22 | 22 | } |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | */ |
| 17 | 17 | public function applyFilter(Image $image) |
| 18 | 18 | { |
| 19 | - return $image->resize(null, 80, function ($constraint) { |
|
| 19 | + return $image->resize(null, 80, function($constraint) { |
|
| 20 | 20 | $constraint->aspectRatio(); |
| 21 | 21 | }); |
| 22 | 22 | } |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | */ |
| 17 | 17 | public function applyFilter(Image $image) |
| 18 | 18 | { |
| 19 | - return $image->resize(null, 150, function ($constraint) { |
|
| 19 | + return $image->resize(null, 150, function($constraint) { |
|
| 20 | 20 | $constraint->aspectRatio(); |
| 21 | 21 | }); |
| 22 | 22 | } |