Code Duplication    Length = 7-7 lines in 2 locations

lib/TestCase/Store/Memcache/ServerGroup.php 1 location

@@ 50-56 (lines=7) @@
47
48
        $testResult->setState($state);
49
50
        if ($state === State::OK) {
51
            $testResult->setMessage('Group is healthy');
52
        } elseif ($state === State::WARNING) {
53
            $testResult->setMessage('Group is crippled');
54
        } else {
55
            $testResult->setMessage('Group is down');
56
        }
57
58
        $this->setTestResult($testResult);
59
    }

lib/TestSuite/Modules/ModuleSet.php 1 location

@@ 137-143 (lines=7) @@
134
        }
135
136
        $state = $this->getState();
137
        if ($state === State::OK) {
138
            $testResult->setMessage('All required modules are loaded');
139
        } elseif ($state === State::SKIPPED) {
140
            $testResult->setMessage('Unable to verify installed modules');
141
        } else {
142
            $testResult->setMessage('Not all required modules are loaded');
143
        }
144
        $this->setTestResult($testResult);
145
    }
146
}