protected function prepareListLibrary(array &$list)
    {
        foreach ($list as &$item) {
            $item['status'] = empty($item['errors']);
            $item['has_dependencies'] = !empty($item['requires']) || !empty($item['required_by']);
        }
    }
protected function prepareListLibrary(array &$list)
    {
        foreach ($list as &$item) {
            $item['status'] = empty($item['errors']);
            $item['has_dependencies'] = !empty($item['requires']) || !empty($item['required_by']);
        }
    }
protected function prepareListLibrary ( array & $ list ) { foreach ( $ list as & $ item ) { $ item [ 'status' ] = empty ( $ item [ 'errors' ] ) ; $ item [ 'has_dependencies' ] = ! empty ( $ item [ 'requires' ] ) || ! empty ( $ item [ 'required_by' ] ) ; } }
Prepare an array of libraries
@param array $list
Prepare an array of libraries