Conditions | 2 |
Paths | 2 |
Total Lines | 27 |
Code Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
35 | public function handle(ConsoleEvent $event) |
||
36 | { |
||
37 | $cli = $event->getCli(); |
||
38 | $cli->flank('Credits')->br(); |
||
39 | |||
40 | /** @var Credits $credits */ |
||
41 | $credits = $event->getApp()->get(Credits::class); |
||
42 | |||
43 | // third-party |
||
44 | foreach ($credits->getCredits(__DIR__ . '/../../../vendor') as $item) { |
||
45 | $cli->bold($item[0])->whisper($item[1]); |
||
46 | } |
||
47 | |||
48 | $note = 'Webino™ is brought to you thanks to authors and contributors ' |
||
49 | . 'of above third-party libraries also.'; |
||
50 | |||
51 | $cli |
||
52 | ->border() |
||
53 | ->comment($note) |
||
54 | ->border()->br() |
||
55 | ->bold()->inline(Credits::VENDOR_COPYRIGHT) |
||
56 | ->out(' (' . Credits::VENDOR_URL . ')') |
||
57 | ->bold()->inline('Author: ') |
||
58 | ->whisper()->inline(Credits::AUTHOR_NAME) |
||
59 | ->out(' (' . Credits::AUTHOR_URL . ')') |
||
60 | ->br(); |
||
61 | } |
||
62 | } |
||
63 |