mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-05-04 01:09:58 -05:00
Apply fixes from StyleCI
[ci skip] [skip ci]
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user