Skip to content

Commit 513965d

Browse files
lancepiochDaneEveritt
authored andcommitted
Update syntax for styleci (pterodactyl#1700)
1 parent 67ff67a commit 513965d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Models/Validable.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public static function getRules()
104104
public static function getRulesForUpdate($id, string $primaryKey = 'id')
105105
{
106106
if ($id instanceof Model) {
107-
list($primaryKey, $id) = [$id->getKeyName(), $id->getKey()];
107+
[$primaryKey, $id] = [$id->getKeyName(), $id->getKey()];
108108
}
109109

110110
$rules = static::getRules();
@@ -118,7 +118,7 @@ public static function getRulesForUpdate($id, string $primaryKey = 'id')
118118
continue;
119119
}
120120

121-
list(, $args) = explode(':', $datum);
121+
[, $args] = explode(':', $datum);
122122
$args = explode(',', $args);
123123

124124
$datum = Rule::unique($args[0], $args[1] ?? $key)->ignore($id, $primaryKey)->__toString();

0 commit comments

Comments
 (0)