Apply fixes from StyleCI

[ci skip] [skip ci]
This commit is contained in:
HDVinnie
2020-12-03 05:16:37 +00:00
committed by StyleCI Bot
parent 601e4c1f90
commit 519a25bb19
4 changed files with 9 additions and 4 deletions
@@ -45,8 +45,9 @@ class EmailBlacklistUpdate extends Command
/**
* Execute the console command.
*
* @return mixed
* @throws \JsonException
*
* @return mixed
*/
public function handle()
{
@@ -146,7 +146,7 @@ class PollController extends Controller
}
// Update existing options
$existingOldOptionContents = \collect($storePoll->input('option-content'))->map(fn ($content) => (string)$content)->all();
$existingOldOptionContents = \collect($storePoll->input('option-content'))->map(fn ($content) => (string) $content)->all();
if (\count($existingOldOptionContents) === \count($existingOldOptionIds)) {
$len = \count($existingOldOptionContents);
+2 -1
View File
@@ -66,8 +66,9 @@ class WishController extends Controller
*
* @param \Illuminate\Http\Request $request
*
* @return \Illuminate\Http\RedirectResponse
* @throws \JsonException
*
* @return \Illuminate\Http\RedirectResponse
*/
public function store(Request $request)
{
+4 -1
View File
@@ -71,8 +71,9 @@ trait Auditable
* @param array $old
* @param array $new
*
* @return false|string
* @throws \JsonException
*
* @return false|string
*/
protected static function generate($action, $old = [], $new = [])
{
@@ -174,6 +175,7 @@ trait Auditable
* Logs a record update.
*
* @param $model
*
* @throws \JsonException
*/
protected static function registerUpdate($model)
@@ -203,6 +205,7 @@ trait Auditable
* Logs a record deletion.
*
* @param $model
*
* @throws \JsonException
*/
protected static function registerDelete($model)