Code Duplication    Length = 11-11 lines in 2 locations

src/CouchDB/DesignDocument/Result.php 2 locations

@@ 60-70 (lines=11) @@
57
     *
58
     * @return bool|array
59
     */
60
    public function getFirstRow()
61
    {
62
        $rows = $this->data['rows'];
63
        if (empty($rows)) {
64
            return false;
65
        }
66
67
        $row = array_slice($rows, 0, 1);
68
69
        return current($row);
70
    }
71
72
    /**
73
     * Return the last row.
@@ 77-87 (lines=11) @@
74
     *
75
     * @return bool|array
76
     */
77
    public function getLastRow()
78
    {
79
        $rows = $this->data['rows'];
80
        if (empty($rows)) {
81
            return false;
82
        }
83
84
        $row = array_slice($rows, count($rows) - 1);
85
86
        return current($row);
87
    }
88
89
    /**
90
     * Return the array.