Code Duplication    Length = 16-17 lines in 6 locations

src/helpers.php 6 locations

@@ 205-220 (lines=16) @@
202
    }
203
}
204
205
if (! function_exists('info')) {
206
    /**
207
     * Write a string as information output.
208
     *
209
     * @param  string $string
210
     * @param  null|int|string $verbosity
211
     *
212
     * @return void
213
     */
214
    function info($string, $verbosity = null)
215
    {
216
        app(ApplicationContract::class)
217
            ->getRunningCommand()
218
            ->info($string, $verbosity);
219
    }
220
}
221
222
if (! function_exists('line')) {
223
    /**
@@ 222-238 (lines=17) @@
219
    }
220
}
221
222
if (! function_exists('line')) {
223
    /**
224
     * Write a string as standard output.
225
     *
226
     * @param  string $string
227
     * @param  string $style
228
     * @param  null|int|string $verbosity
229
     *
230
     * @return void
231
     */
232
    function line($string, $style = null, $verbosity = null)
233
    {
234
        app(ApplicationContract::class)
235
            ->getRunningCommand()
236
            ->line($string, $style, $verbosity);
237
    }
238
}
239
240
if (! function_exists('comment')) {
241
    /**
@@ 240-255 (lines=16) @@
237
    }
238
}
239
240
if (! function_exists('comment')) {
241
    /**
242
     * Write a string as comment output.
243
     *
244
     * @param  string $string
245
     * @param  null|int|string $verbosity
246
     *
247
     * @return void
248
     */
249
    function comment($string, $verbosity = null)
250
    {
251
        app(ApplicationContract::class)
252
            ->getRunningCommand()
253
            ->comment($string, $verbosity);
254
    }
255
}
256
257
if (! function_exists('question')) {
258
    /**
@@ 257-272 (lines=16) @@
254
    }
255
}
256
257
if (! function_exists('question')) {
258
    /**
259
     * Write a string as question output.
260
     *
261
     * @param  string $string
262
     * @param  null|int|string $verbosity
263
     *
264
     * @return void
265
     */
266
    function question($string, $verbosity = null)
267
    {
268
        app(ApplicationContract::class)
269
            ->getRunningCommand()
270
            ->question($string, $verbosity);
271
    }
272
}
273
274
if (! function_exists('error')) {
275
    /**
@@ 274-289 (lines=16) @@
271
    }
272
}
273
274
if (! function_exists('error')) {
275
    /**
276
     * Write a string as error output.
277
     *
278
     * @param  string $string
279
     * @param  null|int|string $verbosity
280
     *
281
     * @return void
282
     */
283
    function error($string, $verbosity = null)
284
    {
285
        app(ApplicationContract::class)
286
            ->getRunningCommand()
287
            ->error($string, $verbosity);
288
    }
289
}
290
291
if (! function_exists('warn')) {
292
    /**
@@ 291-306 (lines=16) @@
288
    }
289
}
290
291
if (! function_exists('warn')) {
292
    /**
293
     * Write a string as warning output.
294
     *
295
     * @param  string $string
296
     * @param  null|int|string $verbosity
297
     *
298
     * @return void
299
     */
300
    function warn($string, $verbosity = null)
301
    {
302
        app(ApplicationContract::class)
303
            ->getRunningCommand()
304
            ->warn($string, $verbosity);
305
    }
306
}
307
308
if (! function_exists('alert')) {
309
    /**