From 513965dac73149102f0aa8437b5b7c785f6b37f2 Mon Sep 17 00:00:00 2001 From: Lance Pioch Date: Mon, 23 Sep 2019 15:30:51 -0400 Subject: [PATCH] Update syntax for styleci (#1700) --- app/Models/Validable.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/Validable.php b/app/Models/Validable.php index 0f6d5cdbb..e7c5c5665 100644 --- a/app/Models/Validable.php +++ b/app/Models/Validable.php @@ -104,7 +104,7 @@ abstract class Validable extends Model public static function getRulesForUpdate($id, string $primaryKey = 'id') { if ($id instanceof Model) { - list($primaryKey, $id) = [$id->getKeyName(), $id->getKey()]; + [$primaryKey, $id] = [$id->getKeyName(), $id->getKey()]; } $rules = static::getRules(); @@ -118,7 +118,7 @@ abstract class Validable extends Model continue; } - list(, $args) = explode(':', $datum); + [, $args] = explode(':', $datum); $args = explode(',', $args); $datum = Rule::unique($args[0], $args[1] ?? $key)->ignore($id, $primaryKey)->__toString();