Completed
Push — master ( 7d0174...e916be )
by Brian
02:18
created

HelloWorld   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 12
ccs 2
cts 2
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A greet() 0 3 1
1
<?php
2
3
namespace Bmatovu\HelloWorld;
4
5
class HelloWorld
6
{
7
    /**
8
     * Greet a person.
9
     *
10
     * @param string $person Name
11
     *
12
     * @return string Greeting
13
     */
14 2
    public function greet(string $person = 'World'): string
15
    {
16 2
        return "Hello {$person}.";
17
    }
18
}
19