@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | return $activityInstance->id; |
| 54 | 54 | }); |
| 55 | 55 | return $query->whereIn('activity_instance_id', $activityInstanceIds->toArray()) |
| 56 | - ->where('tags', 'LIKE', '%"' . $tag . '"%'); |
|
| 56 | + ->where('tags', 'LIKE', '%"'.$tag.'"%'); |
|
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | /** |
@@ -79,12 +79,12 @@ discard block |
||
| 79 | 79 | |
| 80 | 80 | public function getStatusAttribute() |
| 81 | 81 | { |
| 82 | - if($this->statuses()->count() > 0) { |
|
| 82 | + if ($this->statuses()->count() > 0) { |
|
| 83 | 83 | return $this->statuses()->latest('created_at')->first()->status; |
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | $statuses = Config::get('uploadfile.statuses'); |
| 87 | - if(!is_array($statuses) || count($statuses) === 0) { |
|
| 87 | + if (!is_array($statuses) || count($statuses) === 0) { |
|
| 88 | 88 | $default = 'Awaiting Approval'; |
| 89 | 89 | } else { |
| 90 | 90 | $default = $statuses[0]; |
@@ -10,8 +10,8 @@ |
||
| 10 | 10 | public function index() |
| 11 | 11 | { |
| 12 | 12 | $files = collect(); |
| 13 | - foreach(settings('tags_to_merge', []) as $tag) { |
|
| 14 | - foreach(File::withTag($tag)->get() as $file) { |
|
| 13 | + foreach (settings('tags_to_merge', []) as $tag) { |
|
| 14 | + foreach (File::withTag($tag)->get() as $file) { |
|
| 15 | 15 | $files->push($file); |
| 16 | 16 | } |
| 17 | 17 | } |