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

@@ 1226-1235 (lines=10) @@
1223
     * $throws \BadMethodCallException
1224
     * @throws \GitWrapper\GitException
1225
     */
1226
    public function __call($method, $args)
1227
    {
1228
        if ('clone' == $method) {
1229
            return call_user_func_array(array($this, 'cloneRepository'), $args);
1230
        } else {
1231
            $class = get_called_class();
1232
            $message = "Call to undefined method $class::$method()";
1233
            throw new \BadMethodCallException($message);
1234
        }
1235
    }
1236
1237
    /**
1238
     * Gets the output captured by the last run Git commnd(s).