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

codeigniter4 / shield / 6566804458

18 Oct 2023 09:29PM UTC coverage: 92.53% (+0.01%) from 92.519%
6566804458

push

github

web-flow
Merge pull request #790 from datamweb/feat-add-denied-for-filter

feat: add redirect denied for filter

5 of 5 new or added lines in 3 files covered. (100.0%)

2663 of 2878 relevant lines covered (92.53%)

48.78 hits per line

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

0.0
/src/Commands/Utils/InputOutput.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace CodeIgniter\Shield\Commands\Utils;
6

7
use CodeIgniter\CLI\CLI;
8

9
class InputOutput
10
{
11
    /**
12
     * Asks the user for input.
13
     *
14
     * @param string       $field      Output "field" question
15
     * @param array|string $options    String to a default value, array to a list of options (the first option will be the default value)
16
     * @param array|string $validation Validation rules
17
     *
18
     * @return string The user input
19
     */
20
    public function prompt(string $field, $options = null, $validation = null): string
21
    {
22
        return CLI::prompt($field, $options, $validation);
×
23
    }
24

25
    /**
26
     * Outputs a string to the cli on its own line.
27
     */
28
    public function write(
29
        string $text = '',
30
        ?string $foreground = null,
31
        ?string $background = null
32
    ): void {
33
        CLI::write($text, $foreground, $background);
×
34
    }
35

36
    /**
37
     * Outputs an error to the CLI using STDERR instead of STDOUT
38
     */
39
    public function error(string $text, string $foreground = 'light_red', ?string $background = null): void
40
    {
41
        CLI::error($text, $foreground, $background);
×
42
    }
43
}
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