Code Duplication    Length = 9-9 lines in 2 locations

src/Parser/CommandInfo.php 1 location

@@ 124-132 (lines=9) @@
121
        return new self($classNameOrInstance, $methodName);
122
    }
123
124
    public static function deserialize($cache)
125
    {
126
        $cache = (array)$cache;
127
128
        $className = $cache['class'];
129
        $methodName = $cache['method_name'];
130
131
        return new self($className, $methodName, $cache);
132
    }
133
134
    public function cachedFileIsModified($cache)
135
    {

src/Parser/CommandInfoDeserializer.php 1 location

@@ 20-28 (lines=9) @@
17
        return CommandInfo::deserialize((array)$data);
18
    }
19
20
    protected static function cachedMethodExists($cache)
21
    {
22
        $cache = (array)$cache;
23
24
        $className = $cache['class'];
25
        $methodName = $cache['method_name'];
26
27
        return method_exists($className, $methodName);
28
    }
29
30
    public static function isValidSerializedData($cache)
31
    {