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

luttje / filament-user-attributes / 6909724102

17 Nov 2023 10:28PM UTC coverage: 59.278% (+7.6%) from 51.704%
6909724102

push

github

luttje
fix basename not working for linux

1 of 2 new or added lines in 2 files covered. (50.0%)

103 existing lines in 8 files now uncovered.

837 of 1412 relevant lines covered (59.28%)

16.41 hits per line

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

20.0
/src/Commands/WizardCommand.php
1
<?php
2

3
namespace Luttje\FilamentUserAttributes\Commands;
4

5
use Illuminate\Console\Command;
6
use Luttje\FilamentUserAttributes\CodeGeneration\CodeEditor;
7

8
class WizardCommand extends Command
9
{
10
    public function __construct()
188✔
11
    {
12
        $this->signature = 'filament-user-attributes:wizard';
188✔
13
        $this->description = 'Wizard to help setup your project with Filament User Attributes';
188✔
14

15
        parent::__construct();
188✔
16
    }
17

UNCOV
18
    public function handle()
×
19
    {
UNCOV
20
        $this->info('This wizard will help you setup your project with Filament User Attributes.');
×
21

22
        $commands = [
×
23
            WizardStepModels::class,
×
24
            WizardStepConfig::class,
×
25
            WizardStepResources::class,
×
UNCOV
26
        ];
×
27

28
        foreach ($commands as $command) {
×
UNCOV
29
            $this->call($command);
×
30
        }
31

UNCOV
32
        $recentBackups = CodeEditor::getRecentBackupPaths();
×
33

UNCOV
34
        if (count($recentBackups) > 0) {
×
UNCOV
35
            $this->info('<fg=gray>The following files were modified by Filament User Attributes. We have created a back-up of each file.</>');
×
36

UNCOV
37
            foreach ($recentBackups as $file => $backup) {
×
UNCOV
38
                $this->info("<fg=gray>$file (back-up $backup)</>");
×
39
            }
40
        } else {
UNCOV
41
            $this->info('<fg=gray>None of your files were modified by Filament User Attributes.</>');
×
42
        }
43

UNCOV
44
        $this->info("\nFilament User Attributes has finished setting up your project!");
×
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

© 2026 Coveralls, Inc