Code Duplication    Length = 5-5 lines in 2 locations

src/Request/Plugin/CallableClass.php 2 locations

@@ 154-158 (lines=5) @@
151
    public function canProcessRequest()
152
    {
153
        // Check the validity of the class name
154
        if($this->sRequestedClass !== null && !$this->validateClass($this->sRequestedClass))
155
        {
156
            $this->sRequestedClass = null;
157
            $this->sRequestedMethod = null;
158
        }
159
        // Check the validity of the method name
160
        if($this->sRequestedMethod !== null && !$this->validateMethod($this->sRequestedMethod))
161
        {
@@ 160-164 (lines=5) @@
157
            $this->sRequestedMethod = null;
158
        }
159
        // Check the validity of the method name
160
        if($this->sRequestedMethod !== null && !$this->validateMethod($this->sRequestedMethod))
161
        {
162
            $this->sRequestedClass = null;
163
            $this->sRequestedMethod = null;
164
        }
165
        return ($this->sRequestedClass !== null && $this->sRequestedMethod !== null);
166
    }
167