Completed
Push — master ( e52205...6d1075 )
by Armando
04:05 queued 02:25
created

NewchatmembersCommand   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 31
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A execute() 0 7 1
1
<?php
2
/**
3
 * This file is part of the TelegramBot package.
4
 *
5
 * (c) Avtandil Kikabidze aka LONGMAN <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Longman\TelegramBot\Commands\SystemCommands;
12
13
use Longman\TelegramBot\Commands\SystemCommand;
14
15
/**
16
 * New chat members command
17
 */
18
class NewchatmembersCommand extends SystemCommand
19
{
20
    /**
21
     * @var string
22
     */
23
    protected $name = 'Newchatmembers';
24
25
    /**
26
     * @var string
27
     */
28
    protected $description = 'New Chat Member(s)';
29
30
    /**
31
     * @var string
32
     */
33
    protected $version = '1.0.0';
34
35
    /**
36
     * Command execute method
37
     *
38
     * @return mixed
39
     * @throws \Longman\TelegramBot\Exception\TelegramException
40
     */
41
    public function execute()
42
    {
43
        //$message = $this->getMessage();
1 ignored issue
show
Unused Code Comprehensibility introduced by
60% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
44
        //$members = $message->getNewChatMembers();
1 ignored issue
show
Unused Code Comprehensibility introduced by
60% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
45
46
        return parent::execute();
47
    }
48
}
49