src/MalScraper/Model/User/UserListModel.php
private function getAllInfo()
    {
        $data = [];
        $offset = 0;
        while (true) {
            $url = $this->_myAnimeListUrl.'/'.$this->_type.'list/'.$this->_user.'/load.json?offset='.$offset.'&status='.$this->_status;

            $content = json_decode(file_get_contents($url), true);

            if ($content) {
                $count = count($content);
                for ($i = 0; $i < $count; $i++) {
                    if (!empty($content[$i]['anime_image_path'])) {
                        $content[$i]['anime_image_path'] = Helper::imageUrlCleaner($content[$i]['anime_image_path']);
                    } else {
                        $content[$i]['manga_image_path'] = Helper::imageUrlCleaner($content[$i]['manga_image_path']);
                    }
                }

                $data = array_merge($data, $content);

                $offset += 300;
            } else {
                break;
            }
        }

        return $data;
    }
private function getAllInfo()
    {
        $data = [];
        $offset = 0;
        while (true) {
            $url = $this->_myAnimeListUrl.'/'.$this->_type.'list/'.$this->_user.'/load.json?offset='.$offset.'&status='.$this->_status;

            $content = json_decode(file_get_contents($url), true);

            if ($content) {
                $count = count($content);
                for ($i = 0; $i < $count; $i++) {
                    if (!empty($content[$i]['anime_image_path'])) {
                        $content[$i]['anime_image_path'] = Helper::imageUrlCleaner($content[$i]['anime_image_path']);
                    } else {
                        $content[$i]['manga_image_path'] = Helper::imageUrlCleaner($content[$i]['manga_image_path']);
                    }
                }

                $data = array_merge($data, $content);

                $offset += 300;
            } else {
                break;
            }
        }

        return $data;
    }
private function getAllInfo ( ) { $ data = [ ] ; $ offset = 0 ; while ( true ) { $ url = $ this -> _myAnimeListUrl . '/' . $ this -> _type . 'list/' . $ this -> _user . '/load.json?offset=' . $ offset . '&status=' . $ this -> _status ; $ content = json_decode ( file_get_contents ( $ url ) , true ) ; if ( $ content ) { $ count = count ( $ content ) ; for ( $ i = 0 ; $ i < $ count ; $ i ++ ) { if ( ! empty ( $ content [ $ i ] [ 'anime_image_path' ] ) ) { $ content [ $ i ] [ 'anime_image_path' ] = Helper :: imageUrlCleaner ( $ content [ $ i ] [ 'anime_image_path' ] ) ; } else { $ content [ $ i ] [ 'manga_image_path' ] = Helper :: imageUrlCleaner ( $ content [ $ i ] [ 'manga_image_path' ] ) ; } } $ data = array_merge ( $ data , $ content ) ; $ offset += 300 ; } else { break ; } } return $ data ; }
Get user list.

@return array
Get user list .