| Conditions | 2 |
| Paths | 2 |
| Total Lines | 24 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | public function display() |
||
| 19 | { |
||
| 20 | $sitesWithSslProblems = SiteRepository::withSslProblems(); |
||
| 21 | |||
| 22 | if (! $sitesWithSslProblems->count()) { |
||
| 23 | return; |
||
| 24 | } |
||
| 25 | |||
| 26 | $this->output->warn('Sites with ssl problems'); |
||
| 27 | $this->output->warn('======================='); |
||
| 28 | |||
| 29 | $rows = $sitesWithSslProblems->map(function (Site $site) { |
||
| 30 | $url = $site->url; |
||
| 31 | |||
| 32 | $reason = $site->chunkedLastSslFailureReason; |
||
| 33 | |||
| 34 | return compact('url', 'reason'); |
||
| 35 | }); |
||
| 36 | |||
| 37 | $titles = ['URL', 'Problem description']; |
||
| 38 | |||
| 39 | $this->output->table($titles, $rows); |
||
| 40 | $this->output->line(''); |
||
| 41 | } |
||
| 42 | } |
||
| 43 |