Code Duplication    Length = 5-5 lines in 2 locations

src/ConditionsSuit.php 1 location

@@ 103-107 (lines=5) @@
100
    {
101
        if (strpos($condition, '`') !== false) {
102
            $condition = str_replace('\\`', '`', substr($condition, 1, strlen($condition) - 2));
103
            if (is_null($this->object)) {
104
                return call_user_func("{$this->class}::__axessorsExecute", $condition, $value, true);
105
            } else {
106
                return $this->object->__axessorsExecute($condition, $value, true);
107
            }
108
        } else {
109
            $value = $this->count($value);
110
            if (strpos($condition, '..') !== false) {

src/HandlersSuit.php 1 location

@@ 45-49 (lines=5) @@
42
    private function runInjectedHandler(string $handler, $value)
43
    {
44
        $handler = str_replace('\\`', '`', substr($handler, 1, strlen($handler) - 2));
45
        if (is_null($this->object)) {
46
            return call_user_func("{$this->class}::__axessorsExecute", $handler, $value, false);
47
        } else {
48
            return $this->object->__axessorsExecute($handler, $value, false);
49
        }        
50
    }
51
    
52
    private function runStandardHandler(string $handler, $value)