Code Duplication    Length = 10-10 lines in 2 locations

src/GitWrapper/GitWrapper.php 1 location

@@ 545-554 (lines=10) @@
542
     * $throws \BadMethodCallException
543
     * @throws \GitWrapper\GitException
544
     */
545
    public function __call($method, $args)
546
    {
547
        if ('clone' == $method) {
548
            return call_user_func_array(array($this, 'cloneRepository'), $args);
549
        } else {
550
            $class = get_called_class();
551
            $message = "Call to undefined method $class::$method()";
552
            throw new \BadMethodCallException($message);
553
        }
554
    }
555
}
556

src/GitWrapper/GitWorkingCopy.php 1 location

@@ 1258-1267 (lines=10) @@
1255
     * $throws \BadMethodCallException
1256
     * @throws \GitWrapper\GitException
1257
     */
1258
    public function __call($method, $args)
1259
    {
1260
        if ('clone' == $method) {
1261
            return call_user_func_array(array($this, 'cloneRepository'), $args);
1262
        } else {
1263
            $class = get_called_class();
1264
            $message = "Call to undefined method $class::$method()";
1265
            throw new \BadMethodCallException($message);
1266
        }
1267
    }
1268
1269
    /**
1270
     * Gets the output captured by the last run Git commnd(s).