Test Failed
Push — master ( b43d38...503dcc )
by Zbigniew
06:16
created

NotRecognizedUserMessage   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 7
c 0
b 0
f 0
dl 0
loc 17
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the zibios/sharep.
7
 *
8
 * (c) Zbigniew Ślązak
9
 */
10
11
namespace App\Slack\SlashCommand\Sharep;
12
13
use App\Slack\MessageBuilder\Layout;
14
use App\Slack\MessageBuilder\MessageFactory;
15
16
class NotRecognizedUserMessage
17
{
18
    /** @var MessageFactory */
19
    private $messageFactory;
20
21 3
    public function __construct(MessageFactory $messageFactory)
22
    {
23 3
        $this->messageFactory = $messageFactory;
24 3
    }
25
26
    public function generate(): Layout
27
    {
28
        $mf = $this->messageFactory;
29
30
        return $mf->layout(
31
            $mf->blockSection(
32
                $mf->elementPlainText('I do not know you!'),
33
            )
0 ignored issues
show
Bug introduced by
This code did not parse for me. Apparently, there is an error somewhere around this line:

Syntax error, unexpected ')'
Loading history...
34
        );
35
    }
36
}
37