Home::__invoke()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace WelcomeModule\Action;
4
5
use Webino\Markdown\View\Markdown;
6
use Webino\View\Text;
7
use Zend\EventManager\Event;
8
9
/**
10
 * Class Home
11
 */
12
class Home
13
{
14
    /**
15
     * @param Event $event
16
     * @return string
17
     */
18
    public function __invoke(Event $event)
19
    {
20
//        return new Text(json_encode(['content' => '# Welcome To the Webino Platform!']));
0 ignored issues
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...
21
//        return new Text('# Welcome To the Webino Platform!');
22
        return new Markdown('# Welcome To the Webino Platform!');
23
    }
24
}