RuleWide   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 14
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A isRuleMatched() 0 4 1
1
<?php
2
3
namespace SimpleAcl;
4
5
/**
6
 * Class RuleWide
7
 *
8
 * @package SimpleAcl
9
 */
10
class RuleWide extends Rule
11
{
12
  /**
13
   * Wide rule always works.
14
   *
15
   * @param string|null $neeRuleName
16
   *
17
   * @return bool
18 1
   */
19
  protected function isRuleMatched($neeRuleName): bool
20 1
  {
21
    return true;
22
  }
23
}
24