| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | public function __invoke($channel, $filename) |
||
| 19 | { |
||
| 20 | $this->authorize('viewAny', AppSettings::class); |
||
| 21 | |||
| 22 | $channel = $this->getChannelDetails($channel); |
||
| 23 | $fileArr = $this->getFileToArray($filename, $channel); |
||
| 24 | |||
| 25 | return Inertia::render('Logs/Show', [ |
||
| 26 | 'levels' => $this->logLevels, |
||
| 27 | 'channel' => $channel, |
||
| 28 | 'filename' => $filename, |
||
| 29 | 'stats' => [$this->getFileStats($fileArr, $filename)], |
||
| 30 | 'log_file' => $this->parseFile($fileArr), |
||
| 31 | ]); |
||
| 34 |