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

orchestral / canvas / 30921614659

04 Aug 2026 02:57PM UTC coverage: 91.944% (-2.5%) from 94.459%
30921614659

Pull #53

github

crynobone
wip

Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
Pull Request #53: Supports `laravel/doctor`

2 of 17 new or added lines in 2 files covered. (11.76%)

31 existing lines in 11 files now uncovered.

662 of 720 relevant lines covered (91.94%)

35.57 hits per line

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

0.0
/src/Console/InterfaceMakeCommand.php
1
<?php
2

3
namespace Orchestra\Canvas\Console;
4

5
use Orchestra\Canvas\Core\Concerns\CodeGenerator;
6
use Orchestra\Canvas\Core\Concerns\UsesGeneratorOverrides;
7
use Symfony\Component\Console\Attribute\AsCommand;
8

9
/**
10
 * @see https://github.com/laravel/framework/blob/11.x/src/Illuminate/Foundation/Console/InterfaceMakeCommand.php
11
 */
12
#[AsCommand(name: 'make:interface', description: 'Create a new interface')]
13
class InterfaceMakeCommand extends \Illuminate\Foundation\Console\InterfaceMakeCommand
14
{
15
    use CodeGenerator;
16
    use UsesGeneratorOverrides;
17

18
    /**
19
     * Configures the current command.
20
     *
21
     * @return void
22
     */
23
    #[\Override]
24
    protected function configure()
25
    {
26
        parent::configure();
×
27

UNCOV
28
        $this->addGeneratorPresetOptions();
×
29
    }
30

31
    /**
32
     * Execute the console command.
33
     *
34
     * @return bool|null
35
     *
36
     * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
37
     */
38
    #[\Override]
39
    public function handle()
40
    {
41
        /** @phpstan-ignore return.type */
UNCOV
42
        return $this->generateCode() ? self::SUCCESS : self::FAILURE;
×
43
    }
44

45
    /**
46
     * Get the destination class path.
47
     *
48
     * @param  string  $name
49
     * @return string
50
     */
51
    #[\Override]
52
    protected function getPath($name)
53
    {
UNCOV
54
        return $this->getPathUsingCanvas($name);
×
55
    }
56

57
    /**
58
     * Get the root namespace for the class.
59
     *
60
     * @return string
61
     */
62
    #[\Override]
63
    protected function rootNamespace()
64
    {
UNCOV
65
        return $this->rootNamespaceUsingCanvas();
×
66
    }
67
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc