Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfzdotnet committed Jan 29, 2014
1 parent 54ddb38 commit 609b5c4
Show file tree
Hide file tree
Showing 17 changed files with 23 additions and 16 deletions.
2 changes: 1 addition & 1 deletion lib/Tmdb/Api/Genres.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function getMovies($genre_id, array $options = array(), array $headers =
}

/**
* @param $id
* @param integer $id
* @param array $data
* @return mixed
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/Tmdb/Api/Tv.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Tv
/**
* Get the primary information about a TV series by id.
*
* @param $tvshow_id
* @param integer $tvshow_id
* @param array $options
* @param array $headers
* @return mixed
Expand Down
4 changes: 4 additions & 0 deletions lib/Tmdb/Factory/FactoryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,9 @@
namespace Tmdb\Factory;

interface FactoryInterface {

/**
* @return \Tmdb\Model\AbstractModel|null
*/
function create();
}
1 change: 0 additions & 1 deletion lib/Tmdb/Factory/People/CastFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
namespace Tmdb\Factory\People;

use Tmdb\Factory\PeopleFactory;

use Tmdb\Model\Collection\People\Cast;

class CastFactory extends PeopleFactory
Expand Down
1 change: 0 additions & 1 deletion lib/Tmdb/Factory/People/CrewFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
namespace Tmdb\Factory\People;

use Tmdb\Factory\PeopleFactory;

use Tmdb\Model\Collection\People\Crew;

class CrewFactory extends PeopleFactory
Expand Down
4 changes: 4 additions & 0 deletions lib/Tmdb/Model/Collection/People/PersonInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,9 @@

interface PersonInterface {
function getName();

/**
* @return integer
*/
function getId();
}
2 changes: 1 addition & 1 deletion lib/Tmdb/Model/Company.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public function setId($id)
}

/**
* @return mixed
* @return integer
*/
public function getId()
{
Expand Down
4 changes: 4 additions & 0 deletions lib/Tmdb/Model/Filter/CountryFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,9 @@
namespace Tmdb\Model\Filter;

interface CountryFilter {

/**
* @return string
*/
public function getIso31661();
}
2 changes: 1 addition & 1 deletion lib/Tmdb/Model/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public function setHeight($height)
}

/**
* @return mixed
* @return integer
*/
public function getHeight()
{
Expand Down
2 changes: 1 addition & 1 deletion lib/Tmdb/Model/Movie/Keyword.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function setId($id)
}

/**
* @return mixed
* @return integer
*/
public function getId()
{
Expand Down
4 changes: 2 additions & 2 deletions lib/Tmdb/Model/Person.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public function setId($id)
}

/**
* @return mixed
* @return integer
*/
public function getId()
{
Expand All @@ -236,7 +236,7 @@ public function setImages($images)
}

/**
* @return mixed
* @return Images
*/
public function getImages()
{
Expand Down
2 changes: 1 addition & 1 deletion lib/Tmdb/Model/Person/AbstractMember.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function setId($id)
}

/**
* @return mixed
* @return integer
*/
public function getId()
{
Expand Down
2 changes: 1 addition & 1 deletion lib/Tmdb/Model/Tv/ExternalIds.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function setId($id)
}

/**
* @return mixed
* @return integer
*/
public function getId()
{
Expand Down
1 change: 0 additions & 1 deletion lib/Tmdb/Repository/CompanyRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
use Tmdb\Factory\MovieFactory;
use Tmdb\Model\Common\GenericCollection;
use Tmdb\Model\Company;
use Tmdb\Model\Movie;

class CompanyRepository extends AbstractRepository {

Expand Down
2 changes: 1 addition & 1 deletion lib/Tmdb/Repository/DiscoverRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
use Tmdb\Model\Movie;
use Tmdb\Model\Query\Discover\DiscoverMoviesQuery;
use Tmdb\Model\Query\Discover\DiscoverTvQuery;

use Tmdb\Model\Tv;

class DiscoverRepository extends AbstractRepository {
Expand Down Expand Up @@ -49,6 +48,7 @@ public function discoverMovies(DiscoverMoviesQuery $query, array $headers = arra
* @param DiscoverTvQuery $query
* @param array $headers
* @return Tv[]
* @return \Tmdb\Model\Common\GenericCollection
*/
public function discoverTv(DiscoverTvQuery $query, array $headers = array()) {
$data = $this->getApi()->discoverTv($query->toArray(), $this->parseHeaders($headers));
Expand Down
3 changes: 1 addition & 2 deletions lib/Tmdb/Repository/GenreRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

use Tmdb\Factory\GenreFactory;
use Tmdb\Model\Common\GenericCollection;
use Tmdb\Model\Genre;

class GenreRepository extends AbstractRepository {
/**
Expand All @@ -34,7 +33,7 @@ public function load($id, array $parameters = array(), array $headers = array())
*
* @param array $parameters
* @param array $headers
* @return GenericCollection|Genre[]
* @return GenericCollection
*/
public function loadCollection(array $parameters = array(), array $headers = array())
{
Expand Down
1 change: 0 additions & 1 deletion lib/Tmdb/Repository/TvSeasonRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
namespace Tmdb\Repository;

use Tmdb\Exception\RuntimeException;

use Tmdb\Factory\TvSeasonFactory;

use \Tmdb\Model\Tv\Season\QueryParameter\AppendToResponse;
Expand Down

0 comments on commit 609b5c4

Please sign in to comment.