Skip to content

Commit 2fbce8f

Browse files
committed
Code style fixes
1 parent 6baf6c0 commit 2fbce8f

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/Illuminate/Foundation/Console/ShowModelCommand.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ protected function getRelations($model)
251251
/**
252252
* Get the Observers watching this model.
253253
* @return Illuminate\Support\Collection
254+
*
254255
*/
255256
protected function getObservers($model)
256257
{
@@ -269,7 +270,7 @@ protected function getObservers($model)
269270

270271
$formatted = [];
271272

272-
foreach($listeners as $key => $observerMethods) {
273+
foreach ($listeners as $key => $observerMethods) {
273274
$formatted[] = [
274275
'event' => $extractVerb($key),
275276
'observer' => array_map(fn ($obs) => is_string($obs) ? $obs : 'Closure', $observerMethods),
@@ -377,9 +378,11 @@ protected function displayCli($class, $database, $table, $attributes, $relations
377378

378379
$this->components->twoColumnDetail('<fg=green;options=bold>Eloquent Observers</>');
379380

380-
if ($observers->count()) foreach ($observers as $observer) {
381-
$this->components->twoColumnDetail(
382-
sprintf('%s', $observer['event']), implode(', ', $observer['observer']));
381+
if ($observers->count()) {
382+
foreach ($observers as $observer) {
383+
$this->components->twoColumnDetail(
384+
sprintf('%s', $observer['event']), implode(', ', $observer['observer']));
385+
}
383386
}
384387

385388
$this->newLine();

0 commit comments

Comments
 (0)