public function findAllKeywords($limit = 10) : array
    {
        $lastSearchesResultSet = $this->getLastSearchesResultSet($limit);
        if (empty($lastSearchesResultSet)) {
            return [];
        }

        $lastSearches = [];
        foreach ($lastSearchesResultSet as $row) {
            $lastSearches[] = html_entity_decode($row['keywords'], ENT_QUOTES, 'UTF-8');
        }

        return $lastSearches;
    }
public function findAllKeywords($limit = 10) : array
    {
        $lastSearchesResultSet = $this->getLastSearchesResultSet($limit);
        if (empty($lastSearchesResultSet)) {
            return [];
        }

        $lastSearches = [];
        foreach ($lastSearchesResultSet as $row) {
            $lastSearches[] = html_entity_decode($row['keywords'], ENT_QUOTES, 'UTF-8');
        }

        return $lastSearches;
    }
public function findAllKeywords ( $ limit = 10 ) : array { $ lastSearchesResultSet = $ this -> getLastSearchesResultSet ( $ limit ) ; if ( empty ( $ lastSearchesResultSet ) ) { return [ ] ; } $ lastSearches = [ ] ; foreach ( $ lastSearchesResultSet as $ row ) { $ lastSearches [ ] = html_entity_decode ( $ row [ 'keywords' ] , ENT_QUOTES , 'UTF-8' ) ; } return $ lastSearches ; }
Finds the last searched keywords from the database

@param int $limit
@return array An array containing the last searches of the current user
Finds the last searched keywords from the database