Skip to content

Commit a54a466

Browse files
committed
formatting
1 parent bef6d2a commit a54a466

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Illuminate/Foundation/Console/ShowModelCommand.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,18 +227,19 @@ protected function getRelations($model)
227227
/**
228228
* Get the Observers watching this model.
229229
*
230+
* @param \Illuminate\Database\Eloquent\Model $model
230231
* @return Illuminate\Support\Collection
231232
*/
232233
protected function getObservers($model)
233234
{
234235
$listeners = $this->getLaravel()->make('events')->getRawListeners();
235236

236-
// Distill down to Eloquent observers relevant to this model.
237+
// Get the Eloquent observers for this model...
237238
$listeners = array_filter($listeners, function ($v, $key) use ($model) {
238239
return Str::startsWith($key, 'eloquent.') && Str::endsWith($key, $model::class);
239240
}, ARRAY_FILTER_USE_BOTH);
240241

241-
// Format as Eloquent verb => Observer methods
242+
// Format listeners Eloquent verb => Observer methods...
242243
$extractVerb = function ($key) {
243244
preg_match('/eloquent.([a-zA-Z]+)\: /', $key, $matches);
244245
return $matches[1] ?? '?';

0 commit comments

Comments
 (0)