@@ -53,11 +53,11 @@ discard block |
||
| 53 | 53 | { |
| 54 | 54 | parent::boot(); |
| 55 | 55 | |
| 56 | - static::creating(function (Model $model) { |
|
| 56 | + static::creating(function(Model $model) { |
|
| 57 | 57 | $model->setSlug('name'); |
| 58 | 58 | }); |
| 59 | 59 | |
| 60 | - static::updating(function (Model $model) { |
|
| 60 | + static::updating(function(Model $model) { |
|
| 61 | 61 | $model->setSlug('name'); |
| 62 | 62 | }); |
| 63 | 63 | } |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | |
| 84 | 84 | if ($group) { |
| 85 | 85 | return $query->get() |
| 86 | - ->each(function (Model $model, $key) { |
|
| 86 | + ->each(function(Model $model, $key) { |
|
| 87 | 87 | $model->index = $key; |
| 88 | 88 | }) |
| 89 | 89 | ->groupBy('type'); |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | */ |
| 151 | 151 | public function scopeOrderRelationship($query, $relationship) |
| 152 | 152 | { |
| 153 | - return $query->with([$relationship => function ($query) { |
|
| 153 | + return $query->with([$relationship => function($query) { |
|
| 154 | 154 | $query->orderBy('order'); |
| 155 | 155 | }]); |
| 156 | 156 | } |
@@ -105,7 +105,7 @@ |
||
| 105 | 105 | public function imagesWithProps() |
| 106 | 106 | { |
| 107 | 107 | return $this->images |
| 108 | - ->map(function (Image $image) { |
|
| 108 | + ->map(function(Image $image) { |
|
| 109 | 109 | return $image->generateProps(); |
| 110 | 110 | })->reverse()->values(); |
| 111 | 111 | } |
@@ -65,11 +65,11 @@ |
||
| 65 | 65 | { |
| 66 | 66 | parent::boot(); |
| 67 | 67 | |
| 68 | - static::creating(function (Project $project) { |
|
| 68 | + static::creating(function(Project $project) { |
|
| 69 | 69 | $project->setSlug('name'); |
| 70 | 70 | }); |
| 71 | 71 | |
| 72 | - static::updating(function (Project $project) { |
|
| 72 | + static::updating(function(Project $project) { |
|
| 73 | 73 | $project->setSlug('name'); |
| 74 | 74 | }); |
| 75 | 75 | } |