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

codeigniter4 / settings / 13399286100

18 Feb 2025 08:14PM UTC coverage: 85.526%. Remained the same
13399286100

push

github

web-flow
chore: update dependencies to support PHP 8.1 - 8.4 (#145)

* move to PHP 8.1 and PHPUnit 10

* update tests

* cs fix

* update workflows

* update php version in the docs

* update rector config

* update psalm config

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

195 of 228 relevant lines covered (85.53%)

55.95 hits per line

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

0.0
/src/Commands/ClearSettings.php
1
<?php
2

3
namespace CodeIgniter\Settings\Commands;
4

5
use CodeIgniter\CLI\BaseCommand;
6
use CodeIgniter\CLI\CLI;
7

8
class ClearSettings extends BaseCommand
9
{
10
    protected $group       = 'Housekeeping';
11
    protected $name        = 'settings:clear';
12
    protected $description = 'Clears all settings from the database.';
13

14
    public function run(array $params)
15
    {
16
        if (CLI::prompt('This will delete all settings from the database. Are you sure you want to continue?', ['y', 'n'], 'required') !== 'y') {
×
17
            return;
×
18
        }
19

20
        service('settings')->flush();
×
21

22
        CLI::write('Settings cleared from the database.', 'green');
×
23
    }
24
}
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