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

joindin / callingallpapers-cli / 19017699028

02 Nov 2025 08:25PM UTC coverage: 26.857% (-12.5%) from 39.394%
19017699028

push

github

heiglandreas
Move to coveralls action

405 of 1508 relevant lines covered (26.86%)

0.52 hits per line

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

0.0
/src/Writer/NullOutput.php
1
<?php
2
/**
3
 * Copyright (c) 2016-2016} Andreas Heigl<andreas@heigl.org>
4
 * Permission is hereby granted, free of charge, to any person obtaining a copy
5
 * of this software and associated documentation files (the "Software"), to deal
6
 * in the Software without restriction, including without limitation the rights
7
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
 * copies of the Software, and to permit persons to whom the Software is
9
 * furnished to do so, subject to the following conditions:
10
 * The above copyright notice and this permission notice shall be included in
11
 * all copies or substantial portions of the Software.
12
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
18
 * THE SOFTWARE.
19
 *
20
 * @author    Andreas Heigl<andreas@heigl.org>
21
 * @copyright 2016-2016 Andreas Heigl
22
 * @license   http://www.opensource.org/licenses/mit-license.php MIT-License
23
 * @version   0.0
24
 * @since     27.03.2016
25
 * @link      http://github.com/heiglandreas/callingallpapers
26
 */
27

28
namespace Callingallpapers\Writer;
29

30
use Symfony\Component\Console\Formatter\OutputFormatterInterface;
31
use Symfony\Component\Console\Formatter\OutputFormatterStyleInterface;
32
use Symfony\Component\Console\Output\OutputInterface;
33

34
class NullOutput implements OutputInterface
35
{
36

37
    /**
38
     * Returns whether verbosity is debug (-vvv).
39
     *
40
     * @return bool true if verbosity is set to VERBOSITY_DEBUG, false otherwise
41
     */
42
    public function isDebug(): bool
×
43
    {
44
        return false;
×
45
    }
46

47
    /**
48
     * Sets output formatter.
49
     *
50
     * @param OutputFormatterInterface $formatter
51
     *
52
     * @api
53
     */
54
    public function setFormatter(OutputFormatterInterface $formatter): void
×
55
    {
56
        // TODO: Implement setFormatter() method.
57
    }
×
58

59
    /**
60
     * Returns whether verbosity is verbose (-v).
61
     *
62
     * @return bool true if verbosity is set to VERBOSITY_VERBOSE, false otherwise
63
     */
64
    public function isVerbose(): bool
×
65
    {
66
        return false;
×
67
    }
68

69
    /**
70
     * Returns whether verbosity is very verbose (-vv).
71
     *
72
     * @return bool true if verbosity is set to VERBOSITY_VERY_VERBOSE, false otherwise
73
     */
74
    public function isVeryVerbose(): bool
×
75
    {
76
        return false;
×
77
    }
78

79
    /**
80
     * Writes a message to the output.
81
     *
82
     * @param string|array $messages The message as an array of lines or a single string
83
     * @param bool         $newline  Whether to add a newline
84
     * @param int          $type     The type of output (one of the OUTPUT constants)
85
     *
86
     * @throws \InvalidArgumentException When unknown output type is given
87
     * @api
88
     */
89
    public function write(
×
90
        $messages,
91
        $newline = false,
92
        $options = self::OUTPUT_NORMAL
93
    ): void {
94
        // TODO: Implement write() method.
95
    }
×
96

97
    /**
98
     * Writes a message to the output and adds a newline at the end.
99
     *
100
     * @param string|array $messages The message as an array of lines or a single string
101
     * @param int          $options  The type of output (one of the OUTPUT constants)
102
     *
103
     * @throws \InvalidArgumentException When unknown output type is given
104
     * @api
105
     */
106
    public function writeln($messages, $options = self::OUTPUT_NORMAL): void
×
107
    {
108
        // TODO: Implement writeln() method.
109
    }
×
110

111
    /**
112
     * Sets the verbosity of the output.
113
     *
114
     * @param int $level The level of verbosity (one of the VERBOSITY constants)
115
     *
116
     * @api
117
     */
118
    public function setVerbosity($level): void
×
119
    {
120
        // TODO: Implement setVerbosity() method.
121
    }
×
122

123
    /**
124
     * Gets the current verbosity of the output.
125
     *
126
     * @return int The current level of verbosity (one of the VERBOSITY constants)
127
     * @api
128
     */
129
    public function getVerbosity(): int
×
130
    {
131
        return 0;
×
132
    }
133

134
    /**
135
     * Sets the decorated flag.
136
     *
137
     * @param bool $decorated Whether to decorate the messages
138
     *
139
     * @api
140
     */
141
    public function setDecorated($decorated): void
×
142
    {
143
        // TODO: Implement setDecorated() method.
144
    }
×
145

146
    /**
147
     * Gets the decorated flag.
148
     *
149
     * @return bool true if the output will decorate messages, false otherwise
150
     * @api
151
     */
152
    public function isDecorated(): bool
×
153
    {
154
        return 0;
×
155
    }
156

157
    /**
158
     * Returns current output formatter instance.
159
     *
160
     * @api
161
     */
162
    public function getFormatter(): OutputFormatterInterface
×
163
    {
164
        return new class() implements OutputFormatterInterface {
×
165

166
            public function setDecorated(bool $decorated): void
167
            {
168
                // TODO: Implement setDecorated() method.
169
            }
×
170

171
            public function isDecorated(): bool
172
            {
173
                return true;
×
174
            }
175

176
            public function setStyle(string $name, OutputFormatterStyleInterface $style): void
177
            {
178
                // TODO: Implement setStyle() method.
179
            }
×
180

181
            public function hasStyle(string $name): bool
182
            {
183
                return true;
×
184
            }
185

186
            public function getStyle(string $name): OutputFormatterStyleInterface
187
            {
188
                return new class() implements OutputFormatterStyleInterface {
×
189

190
                    public function setForeground(?string $color): void
191
                    {
192
                        // TODO: Implement setForeground() method.
193
                    }
×
194

195
                    public function setBackground(?string $color): void
196
                    {
197
                        // TODO: Implement setBackground() method.
198
                    }
×
199

200
                    public function setOption(string $option): void
201
                    {
202
                        // TODO: Implement setOption() method.
203
                    }
×
204

205
                    public function unsetOption(string $option): void
206
                    {
207
                        // TODO: Implement unsetOption() method.
208
                    }
×
209

210
                    public function setOptions(array $options): void
211
                    {
212
                        // TODO: Implement setOptions() method.
213
                    }
×
214

215
                    public function apply(string $text): string
216
                    {
217
                        return $text;
×
218
                    }
219
                };
×
220
            }
221

222
            public function format(?string $message): ?string
223
            {
224
                return $message;
×
225
            }
226
        };
×
227
    }
228

229
    /**
230
     * Returns whether verbosity is quiet (-q).
231
     *
232
     * @return bool true if verbosity is set to VERBOSITY_QUIET, false otherwise
233
     */
234
    public function isQuiet(): bool
×
235
    {
236
        return true;
×
237
    }
238
}
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

© 2025 Coveralls, Inc