From 57ebfdd27d6af431726fa98c2d6e5e1294a65f14 Mon Sep 17 00:00:00 2001 From: Michael Roterman Date: Sun, 12 Jan 2014 03:54:21 +0100 Subject: [PATCH] Adding Donation button and small cleanups --- README.md | 7 +++++++ lib/Tmdb/Model/Tv.php | 4 ++-- lib/Tmdb/Repository/CompanyRepository.php | 16 ---------------- lib/Tmdb/Repository/GenreRepository.php | 2 +- 4 files changed, 10 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 5c94bcdc..d82ad62f 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,13 @@ I've started working on this since the week of October-November 2013. I hoped to The API namespace has most things already covered, however this is RAW output from the API. I'm working extensively on finishing the models, which should provide a more natural feeling of working with TMDB. +Help & Donate +-------------- + +If this project saved you a bunch of work, or you just simply appreciate my efforts, please consider donating a beer ( or two ;) )! + + + Update 12-jan -------------- diff --git a/lib/Tmdb/Model/Tv.php b/lib/Tmdb/Model/Tv.php index e51922af..dd402e85 100644 --- a/lib/Tmdb/Model/Tv.php +++ b/lib/Tmdb/Model/Tv.php @@ -674,7 +674,7 @@ public function getImages() } /** - * @param \Tmdb\Model\ExternalIds $externalIds + * @param \Tmdb\Model\Tv\ExternalIds $externalIds * @return $this */ public function setExternalIds($externalIds) @@ -684,7 +684,7 @@ public function setExternalIds($externalIds) } /** - * @return \Tmdb\Model\ExternalIds + * @return \Tmdb\Model\Tv\ExternalIds */ public function getExternalIds() { diff --git a/lib/Tmdb/Repository/CompanyRepository.php b/lib/Tmdb/Repository/CompanyRepository.php index 274519e5..7011744a 100644 --- a/lib/Tmdb/Repository/CompanyRepository.php +++ b/lib/Tmdb/Repository/CompanyRepository.php @@ -43,22 +43,6 @@ public function refresh(Company $company, array $parameters = array(), array $he return $this->load($company->getId(), $parameters, $headers); } - /** - * Create an collection of an array - * - * @param $data - * @return Collection - */ - private function createCollection($data){ - $collection = new Collection(); - - foreach($data as $item) { - $collection->add(null, CompanyFactory::create($item)); - } - - return $collection; - } - /** * Return the related API class * diff --git a/lib/Tmdb/Repository/GenreRepository.php b/lib/Tmdb/Repository/GenreRepository.php index e69c0419..32b5fc19 100644 --- a/lib/Tmdb/Repository/GenreRepository.php +++ b/lib/Tmdb/Repository/GenreRepository.php @@ -32,7 +32,7 @@ public function load($id, array $parameters = array(), array $headers = array()) } /** - * If you obtained an person model which is not completely hydrated, you can use this function. + * If you obtained an genre model which is not completely hydrated, you can use this function. * * @param Genre $genre * @param array $parameters