Test2Command   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 7
c 1
b 0
f 0
dl 0
loc 10
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A execute() 0 7 2
1
<?php
2
declare(strict_types=1);
3
4
namespace HeroesofAbenez\Chat;
5
6
final class Test2Command extends BaseChatCommand {
7
  public const NAME = "test2";
8
  
9
  public function execute() : string {
10
    $args = func_get_args();
11
    $text = "test";
12
    foreach($args as $arg) {
13
      $text .= $arg;
14
    }
15
    return $text;
16
  }
17
}
18
?>