Completed
Push — master ( 534932...26bda2 )
by Jan-Petter
02:41
created

none::getArray()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 9
rs 9.6666
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
namespace vipnytt\XRobotsTagParser\directives;
4
5
6
final class none implements directiveInterface
7
{
8
    const DIRECTIVE = 'none';
9
10
    public function __construct($value = null)
11
    {
12
    }
13
14
    public function getArray()
15
    {
16
        $result = [self::DIRECTIVE => true];
17
        /*$test = new noindex();
0 ignored issues
show
Unused Code Comprehensibility introduced by
55% 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...
18
        $result = array_merge($result, $test->getArray());
19
        $test = new nofollow();
20
        $result = array_merge($result, $test->getArray());*/
21
        return $result;
22
    }
23
}