Code Duplication    Length = 9-9 lines in 2 locations

src/Parser/CommandInfo.php 2 locations

@@ 121-129 (lines=9) @@
118
        return new self($classNameOrInstance, $methodName);
119
    }
120
121
    public static function deserialize($cache)
122
    {
123
        $cache = (array)$cache;
124
125
        $className = $cache['class'];
126
        $methodName = $cache['method_name'];
127
128
        return new self($className, $methodName, $cache);
129
    }
130
131
    protected static function cachedMethodExists($cache)
132
    {
@@ 131-139 (lines=9) @@
128
        return new self($className, $methodName, $cache);
129
    }
130
131
    protected static function cachedMethodExists($cache)
132
    {
133
        $cache = (array)$cache;
134
135
        $className = $cache['class'];
136
        $methodName = $cache['method_name'];
137
138
        return method_exists($className, $methodName);
139
    }
140
141
    public static function isValidSerializedData($cache)
142
    {