Code Duplication    Length = 9-9 lines in 2 locations

src/lib/Zikula/Bundle/CoreInstallerBundle/Helper/MigrationHelper.php 2 locations

@@ 130-138 (lines=9) @@
127
        return $query->execute()->fetchAll();
128
    }
129
130
    public function getMaxUnMigratedUid()
131
    {
132
        $query = $this->conn->createQueryBuilder()
133
            ->select('MAX(u.uid) as max')
134
            ->from('users', 'u')
135
            ->where("u.pass != ''");
136
137
        return $query->execute()->fetchColumn();
138
    }
139
140
    public function countUnMigratedUsers()
141
    {
@@ 140-148 (lines=9) @@
137
        return $query->execute()->fetchColumn();
138
    }
139
140
    public function countUnMigratedUsers()
141
    {
142
        $query = $this->conn->createQueryBuilder()
143
            ->select('COUNT(u.uid) as count')
144
            ->from('users', 'u')
145
            ->where("u.pass != ''");
146
147
        return $query->execute()->fetchColumn();
148
    }
149
150
    public function migrateUsers($lastUid)
151
    {