Skip to content

Commit bd09689

Browse files
committed
Apply fixes from StyleCI
1 parent 918354a commit bd09689

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

src/Whisperer.php

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
use Illuminate\Contracts\Support\Arrayable;
1010
use Illuminate\Database\Eloquent\Concerns\HasEvents;
1111
use Illuminate\Database\Eloquent\Concerns\HasAttributes;
12-
use Illuminate\Database\Eloquent\MassAssignmentException;
13-
use Illuminate\Database\Eloquent\Concerns\GuardsAttributes;
1412
use Illuminate\Database\Eloquent\Concerns\HasTimestamps;
15-
use Illuminate\Database\Eloquent\Concerns\HasRelationships;
1613
use Illuminate\Database\Eloquent\ModelNotFoundException;
14+
use Illuminate\Database\Eloquent\MassAssignmentException;
1715
use Illuminate\Database\Eloquent\Concerns\HidesAttributes;
16+
use Illuminate\Database\Eloquent\Concerns\GuardsAttributes;
17+
use Illuminate\Database\Eloquent\Concerns\HasRelationships;
1818

1919
class Whisperer implements ArrayAccess, Arrayable, Jsonable, JsonSerializable
2020
{
@@ -184,7 +184,6 @@ public function setKeyName($key)
184184
return $this;
185185
}
186186

187-
188187
/**
189188
* Get the value indicating whether the IDs are incrementing.
190189
*
@@ -239,7 +238,7 @@ public function delete()
239238
// If the model doesn't exist, there is nothing to delete so we'll just return
240239
// immediately and not do anything else. Otherwise, we will continue with a
241240
// deletion process on the model, firing the proper events, and so forth.
242-
if (!$this->exists) {
241+
if (! $this->exists) {
243242
return;
244243
}
245244

@@ -273,7 +272,7 @@ public function delete()
273272
*/
274273
public function update(array $attributes = [], array $options = [])
275274
{
276-
if (!$this->exists) {
275+
if (! $this->exists) {
277276
return false;
278277
}
279278

@@ -551,7 +550,6 @@ public function replicate(array $except = null)
551550
});
552551
}
553552

554-
555553
/**
556554
* Determine if two models have the same identifier.
557555
*
@@ -576,7 +574,6 @@ public function isNot($model)
576574
return ! $this->is($model);
577575
}
578576

579-
580577
/**
581578
* Get the current client for the model.
582579
*
@@ -622,7 +619,6 @@ protected function removeTableFromKey($key)
622619
return Str::contains($key, '.') ? last(explode('.', $key)) : $key;
623620
}
624621

625-
626622
/**
627623
* Get the queueable identity for the entity.
628624
*
@@ -663,7 +659,6 @@ public function getQueueableRelations()
663659
return array_unique($relations);
664660
}
665661

666-
667662
/**
668663
* Get the value of the model's route key.
669664
*
@@ -684,7 +679,6 @@ public function getRouteKeyName()
684679
return $this->getKeyName();
685680
}
686681

687-
688682
/**
689683
* Retrieve the model for a bound value.
690684
*
@@ -696,7 +690,6 @@ public function resolveRouteBinding($value)
696690
return $this->find($value);
697691
}
698692

699-
700693
/**
701694
* Convert the model instance to an array.
702695
*

0 commit comments

Comments
 (0)