Skip to content

Commit 4478b32

Browse files
committed
lint
1 parent 5f57128 commit 4478b32

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

src/Ushahidi/Modules/V5/Actions/Post/Handlers/AbstractPostCommandHandler.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,8 @@ protected function savePostValues(Post $post, array $post_content, int $post_id)
171171
return $errors;
172172
}
173173

174-
protected function savePostMedia($post, $attr_id, $media) {
174+
protected function savePostMedia($post, $attr_id, $media)
175+
{
175176
if (!is_array($media)) {
176177
throw new \Exception("$attr_id: media format is invalid.");
177178
}

src/Ushahidi/Modules/V5/Http/Resources/MediaResource.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,4 @@ public function toArray($request)
2323
'media_id' => $this->value,
2424
];
2525
}
26-
2726
}

src/Ushahidi/Modules/V5/Models/Post/Post.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,8 +431,7 @@ function ($attribute, $value, $fail) {
431431
$get_value = RequestFacade::input(str_replace('.type', '.value.value', $attribute));
432432
if ($value === 'tags' && !is_array($get_value)) {
433433
return $fail(trans('validation.tag_field_must_be_array'));
434-
}
435-
elseif ($value === 'media' && !is_array($get_value)) {
434+
} elseif ($value === 'media' && !is_array($get_value)) {
436435
return $fail(trans('validation.media_field_must_be_array'));
437436
}
438437
}

src/Ushahidi/Modules/V5/Requests/PostRequest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,7 @@ function ($attribute, $value, $fail) {
9595
$get_value = RequestFacade::input(str_replace('.type', '.value.value', $attribute));
9696
if ($value === 'tags' && !is_array($get_value)) {
9797
return $fail(trans('validation.tag_field_must_be_array'));
98-
}
99-
elseif ($value === 'media' && !is_array($get_value)) {
98+
} elseif ($value === 'media' && !is_array($get_value)) {
10099
return $fail(trans('validation.media_field_must_be_array'));
101100
}
102101
}

0 commit comments

Comments
 (0)