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

none   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 18
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getArray() 0 9 1
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
}