Passed
Push — master ( cd7871...bd6ecf )
by Jakub
02:12
created

ChatCommand::getName()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 6
ccs 4
cts 4
cp 1
rs 10
cc 2
nc 2
nop 0
crap 2
1
<?php
0 ignored issues
show
introduced by
A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 8 and the first side effect is on line 11.
Loading history...
2
declare(strict_types=1);
3
4
namespace HeroesofAbenez\Chat;
5
6
if(false) {
0 ignored issues
show
introduced by
Avoid IF statements that are always true or false
Loading history...
7
  /** @deprecated use BaseChatCommand */
8
  abstract class ChatCommand extends BaseChatCommand {
9
  }
10
} else {
11
  class_alias(BaseChatCommand::class, ChatCommand::class);
12
}
13
?>