Skip to content

Commit ec24500

Browse files
colinhall17actions-user
authored andcommitted
Fix styling
1 parent e636a1c commit ec24500

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Support/PersistResource.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,11 @@ public function getValidationAttributes()
147147
foreach ($resource as $field => $rules) {
148148
if ($this->hasRelation($key)) {
149149
$relation = $this->getRelation($key)->type;
150-
} elseif (!is_null($this->object) && method_exists($this->object, $key)) {
150+
} elseif (! is_null($this->object) && method_exists($this->object, $key)) {
151151
$relation = $this->object->$key()->type;
152-
} elseif (!is_null($this->object) && method_exists($this->object, Str::studly($key))) {
152+
} elseif (! is_null($this->object) && method_exists($this->object, Str::studly($key))) {
153153
$relation = $this->object->{Str::studly($key)}()->type;
154-
} elseif (!is_null($this->object) && method_exists($this->object, lcfirst($key))) {
154+
} elseif (! is_null($this->object) && method_exists($this->object, lcfirst($key))) {
155155
$relation = $this->object->{lcfirst($key)}()->type;
156156
} else {
157157
$relation = 'HasOne';

0 commit comments

Comments
 (0)