| Conditions | 1 |
| Paths | 1 |
| Total Lines | 21 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 44 | protected function showBindings(Collection $bindings) |
||
| 45 | { |
||
| 46 | $table = []; |
||
| 47 | |||
| 48 | $bindings->map(function ($item, $key) { |
||
| 49 | return [ |
||
| 50 | 'shortName' => shorten($key), |
||
| 51 | 'abstract' => $key, |
||
| 52 | 'concrete' => $item |
||
| 53 | ]; |
||
| 54 | })->sort(function ($a, $b) { |
||
| 55 | return $a['shortName'] <=> $b['shortName']; |
||
| 56 | })->each(function ($binding) use (&$table) { |
||
| 57 | $table[] = [ |
||
| 58 | $binding['shortName'], |
||
| 59 | $binding['abstract'], |
||
| 60 | $binding['concrete'], |
||
| 61 | ]; |
||
| 62 | }); |
||
| 63 | |||
| 64 | $this->table($this->headers, $table); |
||
| 65 | } |
||
| 67 |