Skip to content

Commit

Permalink
Adding Donation button and small cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfzdotnet committed Jan 12, 2014
1 parent f21b2e8 commit 57ebfdd
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 19 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 ;) )!

<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SMLZ362KQ8K8W"><img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif"></a>

Update 12-jan
--------------

Expand Down
4 changes: 2 additions & 2 deletions lib/Tmdb/Model/Tv.php
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ public function getImages()
}

/**
* @param \Tmdb\Model\ExternalIds $externalIds
* @param \Tmdb\Model\Tv\ExternalIds $externalIds
* @return $this
*/
public function setExternalIds($externalIds)
Expand All @@ -684,7 +684,7 @@ public function setExternalIds($externalIds)
}

/**
* @return \Tmdb\Model\ExternalIds
* @return \Tmdb\Model\Tv\ExternalIds
*/
public function getExternalIds()
{
Expand Down
16 changes: 0 additions & 16 deletions lib/Tmdb/Repository/CompanyRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
2 changes: 1 addition & 1 deletion lib/Tmdb/Repository/GenreRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 57ebfdd

Please sign in to comment.