@@ 55-60 (lines=6) @@ | ||
52 | $events = $this->laravel['events']; |
|
53 | ||
54 | if (version_compare($this->laravel->version(), 5.4, '>=') === true) { |
|
55 | $events->listen('*', function ($key, $payload) use ($id) { |
|
56 | $execTime = Debugger::timer($id); |
|
57 | $editorLink = static::editorLink(static::findSource()); |
|
58 | $this->totalTime += $execTime; |
|
59 | $this->events[] = compact('execTime', 'key', 'payload', 'editorLink'); |
|
60 | }); |
|
61 | } else { |
|
62 | $events->listen('*', function ($payload) use ($id, $events) { |
|
63 | $execTime = Debugger::timer($id); |
|
@@ 62-68 (lines=7) @@ | ||
59 | $this->events[] = compact('execTime', 'key', 'payload', 'editorLink'); |
|
60 | }); |
|
61 | } else { |
|
62 | $events->listen('*', function ($payload) use ($id, $events) { |
|
63 | $execTime = Debugger::timer($id); |
|
64 | $key = $events->firing(); |
|
65 | $editorLink = static::editorLink(static::findSource()); |
|
66 | $this->totalTime += $execTime; |
|
67 | $this->events[] = compact('execTime', 'key', 'payload', 'editorLink'); |
|
68 | }); |
|
69 | } |
|
70 | } |
|
71 | } |