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

miaoxing / plugin / 3766633246

pending completion
3766633246

push

github

twinh
feat(plugin): `BasePage` 增加 `pageInit` 事件

0 of 1 new or added line in 1 file covered. (0.0%)

84 existing lines in 24 files now uncovered.

902 of 2275 relevant lines covered (39.65%)

19.29 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
namespace Miaoxing\Plugin\Command;
4

5
use Symfony\Component\Console\Helper\Table;
6
use Symfony\Component\Console\Input\InputArgument;
7

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

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

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

39
    protected function configure()
40
    {
41
        $this->setDescription('List the available events');
×
42
        $this->addArgument('app', InputArgument::OPTIONAL, 'The id of the app');
×
43
    }
44
}
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

© 2026 Coveralls, Inc