Skip to content

Commit

Permalink
Fixing overall cosistency
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfzdotnet committed Jan 31, 2014
1 parent c6e4bfb commit d3d7331
Show file tree
Hide file tree
Showing 17 changed files with 249 additions and 180 deletions.
12 changes: 6 additions & 6 deletions lib/Tmdb/Api/Changes.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ class Changes
* Please note that the change log system to support this was changed
* on October 5, 2012 and will only show movies that have been edited since.
*
* @param array $options
* @param array $parameters
* @param array $headers
* @return mixed
*/
public function getMovieChanges(array $options = array(), array $headers = array())
public function getMovieChanges(array $parameters = array(), array $headers = array())
{
return $this->get('movie/changes', $options, $headers);
return $this->get('movie/changes', $parameters, $headers);
}

/**
Expand All @@ -46,12 +46,12 @@ public function getMovieChanges(array $options = array(), array $headers = array
* Please note that the change log system to support this was changed
* on October 5, 2012 and will only show movies that have been edited since.
*
* @param array $options
* @param array $parameters
* @param array $headers
* @return mixed
*/
public function getPersonChanges(array $options = array(), array $headers = array())
public function getPersonChanges(array $parameters = array(), array $headers = array())
{
return $this->get('person/changes', $options, $headers);
return $this->get('person/changes', $parameters, $headers);
}
}
12 changes: 6 additions & 6 deletions lib/Tmdb/Api/Collections.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,25 +25,25 @@ class Collections
* If you would like to sort them yourself you can use the provided release_date.
*
* @param $collection_id
* @param array $options
* @param array $parameters
* @param array $headers
* @return mixed
*/
public function getCollection($collection_id, array $options = array(), array $headers = array())
public function getCollection($collection_id, array $parameters = array(), array $headers = array())
{
return $this->get('collection/' . $collection_id, $options, $headers);
return $this->get('collection/' . $collection_id, $parameters, $headers);
}

/**
* Get all of the images for a particular collection by collection id.
*
* @param $collection_id
* @param array $options
* @param array $parameters
* @param array $headers
* @return mixed
*/
public function getImages($collection_id, array $options = array(), array $headers = array())
public function getImages($collection_id, array $parameters = array(), array $headers = array())
{
return $this->get('collection/' . $collection_id . '/images', $options, $headers);
return $this->get('collection/' . $collection_id . '/images', $parameters, $headers);
}
}
12 changes: 6 additions & 6 deletions lib/Tmdb/Api/Companies.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,25 @@ class Companies
* This method is used to retrieve all of the basic information about a company.
*
* @param $company_id
* @param array $options
* @param array $parameters
* @param array $headers
* @return mixed
*/
public function getCompany($company_id, array $options = array(), array $headers = array())
public function getCompany($company_id, array $parameters = array(), array $headers = array())
{
return $this->get('company/' . $company_id, $options, $headers);
return $this->get('company/' . $company_id, $parameters, $headers);
}

/**
* Get the list of movies associated with a particular company.
*
* @param integer $company_id
* @param array $options
* @param array $parameters
* @param array $headers
* @return mixed
*/
public function getMovies($company_id, array $options = array(), array $headers = array())
public function getMovies($company_id, array $parameters = array(), array $headers = array())
{
return $this->get('company/' . $company_id . '/movies', $options, $headers);
return $this->get('company/' . $company_id . '/movies', $parameters, $headers);
}
}
12 changes: 6 additions & 6 deletions lib/Tmdb/Api/Discover.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,24 @@ class Discover
/**
* Discover movies by different types of data like average rating, number of votes, genres and certifications.
*
* @param array $options
* @param array $parameters
* @param array $headers
* @return mixed
*/
public function discoverMovies(array $options = array(), array $headers = array())
public function discoverMovies(array $parameters = array(), array $headers = array())
{
return $this->get('discover/movie', $options, $headers);
return $this->get('discover/movie', $parameters, $headers);
}

/**
* Discover TV shows by different types of data like average rating, number of votes, genres, the network they aired on and air dates.
*
* @param array $options
* @param array $parameters
* @param array $headers
* @return mixed
*/
public function discoverTv(array $options = array(), array $headers = array())
public function discoverTv(array $parameters = array(), array $headers = array())
{
return $this->get('discover/tv', $options, $headers);
return $this->get('discover/tv', $parameters, $headers);
}
}
29 changes: 29 additions & 0 deletions lib/Tmdb/Api/Find.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php
/**
* This file is part of the Tmdb PHP API created by Michael Roterman.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @package Tmdb
* @author Michael Roterman <[email protected]>
* @copyright (c) 2013, Michael Roterman
* @version 0.0.1
*/
namespace Tmdb\Api;

class Find
extends AbstractApi
{
/**
* Get a list of valid jobs.
*
* @param array $parameters
* @param array $headers
* @return mixed
*/
public function getJobs(array $parameters = array(), array $headers = array())
{
return $this->get('job/list', $parameters, $headers);
}
}
18 changes: 9 additions & 9 deletions lib/Tmdb/Api/Genres.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ class Genres
* Get the list of genres, and return one by id
*
* @param integer $id
* @param array $options
* @param array $parameters
* @param array $headers
* @return mixed
*/
public function getGenre($id, array $options = array(), array $headers = array())
public function getGenre($id, array $parameters = array(), array $headers = array())
{
$response = $this->getGenres($options, $headers);
$response = $this->getGenres($parameters, $headers);

if (array_key_exists('genres', $response)) {
return $this->extractGenreByIdFromResponse($id, $response['genres']);
Expand All @@ -37,26 +37,26 @@ public function getGenre($id, array $options = array(), array $headers = array()
/**
* Get the list of genres.
*
* @param array $options
* @param array $parameters
* @param array $headers
* @return mixed
*/
public function getGenres(array $options = array(), array $headers = array())
public function getGenres(array $parameters = array(), array $headers = array())
{
return $this->get('genre/list', $options, $headers);
return $this->get('genre/list', $parameters, $headers);
}

/**
* Get the list of movies for a particular genre by id. By default, only movies with 10 or more votes are included.
*
* @param $genre_id
* @param array $options
* @param array $parameters
* @param array $headers
* @return mixed
*/
public function getMovies($genre_id, array $options = array(), array $headers = array())
public function getMovies($genre_id, array $parameters = array(), array $headers = array())
{
return $this->get('genre/' . $genre_id . '/movies', $options, $headers);
return $this->get('genre/' . $genre_id . '/movies', $parameters, $headers);
}

/**
Expand Down
6 changes: 3 additions & 3 deletions lib/Tmdb/Api/Jobs.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ class Jobs
/**
* Get a list of valid jobs.
*
* @param array $options
* @param array $parameters
* @param array $headers
* @return mixed
*/
public function getJobs(array $options = array(), array $headers = array())
public function getJobs(array $parameters = array(), array $headers = array())
{
return $this->get('job/list', $options, $headers);
return $this->get('job/list', $parameters, $headers);
}
}
12 changes: 6 additions & 6 deletions lib/Tmdb/Api/Keywords.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,25 @@ class Keywords
* Get the basic information for a specific keyword id.
*
* @param int $keyword_id
* @param array $options
* @param array $parameters
* @param array $headers
* @return mixed
*/
public function getKeyword($keyword_id, array $options = array(), array $headers = array())
public function getKeyword($keyword_id, array $parameters = array(), array $headers = array())
{
return $this->get('keyword/' . $keyword_id, $options, $headers);
return $this->get('keyword/' . $keyword_id, $parameters, $headers);
}

/**
* Get the list of movies for a particular keyword by id.
*
* @param int $keyword_id
* @param array $options
* @param array $parameters
* @param array $headers
* @return mixed
*/
public function getMovies($keyword_id, array $options = array(), array $headers = array())
public function getMovies($keyword_id, array $parameters = array(), array $headers = array())
{
return $this->get('keyword/' . $keyword_id . '/movies', $options, $headers);
return $this->get('keyword/' . $keyword_id . '/movies', $parameters, $headers);
}
}
6 changes: 3 additions & 3 deletions lib/Tmdb/Api/Lists.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ class Lists
* Get a list by id.
*
* @param $list_id
* @param array $options
* @param array $parameters
* @param array $headers
* @return mixed
*/
public function getList($list_id, array $options = array(), array $headers = array())
public function getList($list_id, array $parameters = array(), array $headers = array())
{
return $this->get('list/' . $list_id, $options, $headers);
return $this->get('list/' . $list_id, $parameters, $headers);
}

/**
Expand Down
Loading

0 comments on commit d3d7331

Please sign in to comment.