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

miaoxing / services / 7322930216

25 Dec 2023 04:02PM UTC coverage: 10.534% (-0.8%) from 11.327%
7322930216

push

github

twinh
ci: add PHP 8, remove PHP 7.2, 7.3

69 of 655 relevant lines covered (10.53%)

10.46 hits per line

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

0.0
/src/Laravel/ConsoleKernel.php
1
<?php
2

3
namespace Miaoxing\Services\Laravel;
4

5
use Illuminate\Console\Application as Artisan;
6
use Illuminate\Console\Scheduling\Schedule;
7
use Illuminate\Foundation\Console\Kernel;
8
use Miaoxing\Plugin\Service\Config;
9
use Symfony\Component\Console\Command\Command;
10

11
class ConsoleKernel extends Kernel
12
{
13
    /**
14
     * The Artisan commands provided by your application.
15
     *
16
     * @var array
17
     */
18
    protected $commands = [
19
    ];
20

21
    /**
22
     * Define the application's command schedule.
23
     *
24
     * @param \Illuminate\Console\Scheduling\Schedule $schedule
25
     * @return void
26
     */
27
    protected function schedule(Schedule $schedule)
28
    {
29
        Config::preloadGlobal();
×
30
        wei()->event->trigger('schedule', [$schedule]);
×
31
    }
32

33
    /**
34
     * Register the commands for the application.
35
     *
36
     * @return void
37
     * @throws \ReflectionException
38
     * @throws \Exception
39
     */
40
    protected function commands()
41
    {
42
        $paths = [
×
43
            'plugins/*/src',
×
44
        ];
×
45

46
        $classes = wei()->classMap->generate($paths, '/Command/*.php', 'Command');
×
47

48
        foreach ($classes as $name => $command) {
×
49
            if (
50
                is_subclass_of($command, Command::class)
×
51
                && !(new \ReflectionClass($command))->isAbstract()
×
52
            ) {
53
                Artisan::starting(static function (Artisan $artisan) use ($command) {
×
54
                    $artisan->resolve($command);
×
55
                });
×
56
            }
57
        }
58
    }
59
}
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