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

NIT-Administrative-Systems / SysDev-laravel-soa / 7805057844

06 Feb 2024 07:28PM UTC coverage: 45.675% (-0.2%) from 45.913%
7805057844

push

github

web-flow
Housekeeping (#162)

11 of 35 new or added lines in 14 files covered. (31.43%)

9 existing lines in 7 files now uncovered.

264 of 578 relevant lines covered (45.67%)

14.07 hits per line

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

0.0
/src/Console/Commands/MakeWebSSO.php
1
<?php
2

3
namespace Northwestern\SysDev\SOA\Console\Commands;
4

5
use Illuminate\Console\GeneratorCommand;
6

7
class MakeWebSSO extends GeneratorCommand
8
{
9
    protected $signature = 'make:websso';
10

11
    protected $description = 'Create a new Northwestern WebSSO controller';
12

13
    protected $type = 'Controller';
14

15
    public function handle()
16
    {
17
        parent::handle();
×
18

19
        $this->ejectRoutes();
×
20
    }
21

22
    protected function getNameInput()
23
    {
24
        return 'WebSSOController';
×
25
    }
26

27
    protected function getStub()
28
    {
NEW
29
        return __DIR__.'/../../../stubs/WebSSOController.stub';
×
30
    }
31

32
    protected function getDefaultNamespace($rootNamespace)
33
    {
NEW
34
        return $rootNamespace.'\Http\Controllers\Auth';
×
35
    }
36

37
    protected function ejectRoutes()
38
    {
39
        file_put_contents(
×
40
            base_path('routes/web.php'),
×
41
            file_get_contents(__DIR__.'/../../../stubs/routes.stub'),
×
42
            FILE_APPEND
×
43
        );
×
44
    }
45
}
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