public function getErrorsForUpgrade($limit)
    {
        $query = 'SELECT * FROM build_meta
                    WHERE meta_key IN (\'phpmd-data\', \'phpcs-data\', \'phpdoccheck-data\')
                    ORDER BY id ASC LIMIT :limit';

        $stmt = Database::getConnection('read')->prepare($query);

        $stmt->bindValue(':limit', $limit, \PDO::PARAM_INT);

        if ($stmt->execute()) {
            $res = $stmt->fetchAll(\PDO::FETCH_ASSOC);

            $map = function ($item) {
                return new BuildMeta($item);
            };
            $rtn = array_map($map, $res);

            return $rtn;
        } else {
            return array();
        }
    }
public function getErrorsForUpgrade($limit)
    {
        $query = 'SELECT * FROM build_meta
                    WHERE meta_key IN (\'phpmd-data\', \'phpcs-data\', \'phpdoccheck-data\')
                    ORDER BY id ASC LIMIT :limit';

        $stmt = Database::getConnection('read')->prepare($query);

        $stmt->bindValue(':limit', $limit, \PDO::PARAM_INT);

        if ($stmt->execute()) {
            $res = $stmt->fetchAll(\PDO::FETCH_ASSOC);

            $map = function ($item) {
                return new BuildMeta($item);
            };
            $rtn = array_map($map, $res);

            return $rtn;
        } else {
            return array();
        }
    }
public function getErrorsForUpgrade ( $ limit ) { $ query = 'SELECT * FROM build_meta
                    WHERE meta_key IN (\'phpmd-data\', \'phpcs-data\', \'phpdoccheck-data\')
                    ORDER BY id ASC LIMIT :limit' ; $ stmt = Database :: getConnection ( 'read' ) -> prepare ( $ query ) ; $ stmt -> bindValue ( ':limit' , $ limit , \ PDO :: PARAM_INT ) ; if ( $ stmt -> execute ( ) ) { $ res = $ stmt -> fetchAll ( \ PDO :: FETCH_ASSOC ) ; $ map = function ( $ item ) { return new BuildMeta ( $ item ) ; } ; $ rtn = array_map ( $ map , $ res ) ; return $ rtn ; } else { return array ( ) ; } }
Only used by an upgrade migration to move errors from build_meta to build_error
@param $start
@param $limit
@return array
Only used by an upgrade migration to move errors from build_meta to build_error