• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

miaoxing / plugin / 7048390524

30 Nov 2023 03:02PM UTC coverage: 39.661% (+0.5%) from 39.147%
7048390524

push

github

twinh
ci: update package version

936 of 2360 relevant lines covered (39.66%)

18.18 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Command/EventList.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Miaoxing\Plugin\Command;
6

7
use Symfony\Component\Console\Helper\Table;
8
use Symfony\Component\Console\Input\InputArgument;
9

10
/**
11
 * @mixin \AppMixin
12
 * @mixin \PluginMixin
13
 */
14
class EventList extends BaseCommand
15
{
16
    /**
17
     * Execute the console command.
18
     *
19
     * @return void
20
     */
21
    public function handle()
22
    {
23
        $this->app->setId($this->getArgument('app'));
×
24
        $events = $this->plugin->getEvents();
×
25

26
        $table = new Table($this->output);
×
27
        $table->setHeaders(['Name', 'Priority', 'Plugins']);
×
28

29
        foreach ($events as $name => $priorityToPlugins) {
×
30
            foreach ($priorityToPlugins as $priority => $plugins) {
×
31
                $table->addRow([
×
32
                    $name,
×
33
                    $priority,
×
34
                    implode(',', $plugins),
×
35
                ]);
×
36
            }
37
        }
38
        $table->render();
×
39
    }
40

41
    protected function configure()
42
    {
43
        $this->setDescription('List the available events');
×
44
        $this->addArgument('app', InputArgument::OPTIONAL, 'The id of the app');
×
45
    }
46
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc