fre5h / CentrifugoBundle

@@ -32,6 +32,9 @@
Loading
32 32
33 33
    protected static $defaultName = 'centrifugo:broadcast';
34 34
35 +
    /** @var string */
36 +
    protected static $defaultDescription = 'Publish same data into many channels';
37 +
35 38
    private CentrifugoChecker $centrifugoChecker;
36 39
37 40
    /** @var string[] */
@@ -54,7 +57,7 @@
Loading
54 57
    protected function configure(): void
55 58
    {
56 59
        $this
57 -
            ->setDescription('Publish same data into many channels')
60 +
            ->setDescription(self::$defaultDescription)
58 61
            ->setDefinition(
59 62
                new InputDefinition([
60 63
                    new InputArgument('data', InputArgument::REQUIRED, 'Data in JSON format'),

@@ -29,13 +29,16 @@
Loading
29 29
30 30
    protected static $defaultName = 'centrifugo:disconnect';
31 31
32 +
    /** @var string */
33 +
    protected static $defaultDescription = 'Disconnect user by ID';
34 +
32 35
    /**
33 36
     * {@inheritdoc}
34 37
     */
35 38
    protected function configure(): void
36 39
    {
37 40
        $this
38 -
            ->setDescription('Disconnect user by ID')
41 +
            ->setDescription(self::$defaultDescription)
39 42
            ->setDefinition(
40 43
                new InputDefinition([
41 44
                    new InputArgument('user', InputArgument::REQUIRED, 'User ID'),

@@ -32,6 +32,9 @@
Loading
32 32
33 33
    protected static $defaultName = 'centrifugo:unsubscribe';
34 34
35 +
    /** @var string */
36 +
    protected static $defaultDescription = 'Unsubscribe user from channel';
37 +
35 38
    /**
36 39
     * @param CentrifugoInterface $centrifugo
37 40
     * @param CentrifugoChecker   $centrifugoChecker
@@ -49,7 +52,7 @@
Loading
49 52
    protected function configure(): void
50 53
    {
51 54
        $this
52 -
            ->setDescription('Unsubscribe user from channel')
55 +
            ->setDescription(self::$defaultDescription)
53 56
            ->setDefinition(
54 57
                new InputDefinition([
55 58
                    new InputArgument('user', InputArgument::REQUIRED, 'User ID'),

@@ -31,6 +31,9 @@
Loading
31 31
32 32
    protected static $defaultName = 'centrifugo:history';
33 33
34 +
    /** @var string */
35 +
    protected static $defaultDescription = 'Get channel history information (list of last messages published into channel)';
36 +
34 37
    /**
35 38
     * @param CentrifugoInterface $centrifugo
36 39
     * @param CentrifugoChecker   $centrifugoChecker
@@ -48,7 +51,7 @@
Loading
48 51
    protected function configure(): void
49 52
    {
50 53
        $this
51 -
            ->setDescription('Get channel history information (list of last messages published into channel)')
54 +
            ->setDescription(self::$defaultDescription)
52 55
            ->setDefinition(
53 56
                new InputDefinition([
54 57
                    new InputArgument('channel', InputArgument::REQUIRED, 'Channel name'),

@@ -31,6 +31,9 @@
Loading
31 31
32 32
    protected static $defaultName = 'centrifugo:presence';
33 33
34 +
    /** @var string */
35 +
    protected static $defaultDescription = 'Get channel presence information';
36 +
34 37
    /**
35 38
     * @param CentrifugoInterface $centrifugo
36 39
     * @param CentrifugoChecker   $centrifugoChecker
@@ -48,7 +51,7 @@
Loading
48 51
    protected function configure(): void
49 52
    {
50 53
        $this
51 -
            ->setDescription('Get channel presence information')
54 +
            ->setDescription(self::$defaultDescription)
52 55
            ->setDefinition(
53 56
                new InputDefinition([
54 57
                    new InputArgument('channel', InputArgument::REQUIRED, 'Channel name'),

@@ -25,13 +25,16 @@
Loading
25 25
{
26 26
    protected static $defaultName = 'centrifugo:info';
27 27
28 +
    /** @var string */
29 +
    protected static $defaultDescription = 'Get information about running Centrifugo nodes';
30 +
28 31
    /**
29 32
     * {@inheritdoc}
30 33
     */
31 34
    protected function configure(): void
32 35
    {
33 36
        $this
34 -
            ->setDescription('Get information about running Centrifugo nodes')
37 +
            ->setDescription(self::$defaultDescription)
35 38
            ->setHelp(
36 39
                <<<'HELP'
37 40
The <info>%command.name%</info> command allows to get information about running Centrifugo nodes:

@@ -32,6 +32,9 @@
Loading
32 32
33 33
    protected static $defaultName = 'centrifugo:publish';
34 34
35 +
    /** @var string */
36 +
    protected static $defaultDescription = 'Publish data into channel';
37 +
35 38
    /**
36 39
     * @param CentrifugoInterface $centrifugo
37 40
     * @param CentrifugoChecker   $centrifugoChecker
@@ -49,7 +52,7 @@
Loading
49 52
    protected function configure(): void
50 53
    {
51 54
        $this
52 -
            ->setDescription('Publish data into channel')
55 +
            ->setDescription(self::$defaultDescription)
53 56
            ->setDefinition(
54 57
                new InputDefinition([
55 58
                    new InputArgument('data', InputArgument::REQUIRED, 'Data in JSON format'),

@@ -31,6 +31,9 @@
Loading
31 31
32 32
    protected static $defaultName = 'centrifugo:history-remove';
33 33
34 +
    /** @var string */
35 +
    protected static $defaultDescription = 'Remove history for channel';
36 +
34 37
    /**
35 38
     * @param CentrifugoInterface $centrifugo
36 39
     * @param CentrifugoChecker   $centrifugoChecker
@@ -48,7 +51,7 @@
Loading
48 51
    protected function configure(): void
49 52
    {
50 53
        $this
51 -
            ->setDescription('Remove history for channel')
54 +
            ->setDescription(self::$defaultDescription)
52 55
            ->setDefinition(
53 56
                new InputDefinition([
54 57
                    new InputArgument('channel', InputArgument::REQUIRED, 'Channel name'),

@@ -25,13 +25,16 @@
Loading
25 25
{
26 26
    protected static $defaultName = 'centrifugo:channels';
27 27
28 +
    /** @var string */
29 +
    protected static $defaultDescription = 'Get list of active (with one or more subscribers) channels';
30 +
28 31
    /**
29 32
     * {@inheritdoc}
30 33
     */
31 34
    protected function configure(): void
32 35
    {
33 36
        $this
34 -
            ->setDescription('Get list of active (with one or more subscribers) channels')
37 +
            ->setDescription(self::$defaultDescription)
35 38
            ->setHelp(
36 39
                <<<'HELP'
37 40
The <info>%command.name%</info> command allows to get list of active (with one or more subscribers) channels:

@@ -31,6 +31,9 @@
Loading
31 31
32 32
    protected static $defaultName = 'centrifugo:presence-stats';
33 33
34 +
    /** @var string */
35 +
    protected static $defaultDescription = 'Get short channel presence information';
36 +
34 37
    /**
35 38
     * @param CentrifugoInterface $centrifugo
36 39
     * @param CentrifugoChecker   $centrifugoChecker
@@ -48,7 +51,7 @@
Loading
48 51
    protected function configure(): void
49 52
    {
50 53
        $this
51 -
            ->setDescription('Get short channel presence information')
54 +
            ->setDescription(self::$defaultDescription)
52 55
            ->setDefinition(
53 56
                new InputDefinition([
54 57
                    new InputArgument('channel', InputArgument::REQUIRED, 'Channel name'),
Files Complexity Coverage
Command 71 100.00%
DependencyInjection 5 100.00%
Model 29 100.00%
Service 82 100.00%
Token 21 100.00%
DataCollector/CentrifugoCollector.php 9 100.00%
FreshCentrifugoBundle.php 1 100.00%
Logger/CommandHistoryLogger.php 9 100.00%
Project Totals (43 files) 227 100.00%

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading