Skip to content

Commit

Permalink
Clean up all files and style.
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfzdotnet committed Jan 27, 2014
1 parent 2f6da48 commit 3316b59
Show file tree
Hide file tree
Showing 88 changed files with 105 additions and 143 deletions.
2 changes: 1 addition & 1 deletion lib/Tmdb/Api/AbstractApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,4 @@ public function patch($path, $body = null, array $parameters = array(), $headers
$response = $this->client->getHttpClient()->patch($path, $body, $parameters, $headers);
return $response->json();
}
}
}
2 changes: 1 addition & 1 deletion lib/Tmdb/Api/Account.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,4 @@ public function watchlist()
{
throw new NotImplementedException(__METHOD__ . ' has not been implemented yet.');
}
}
}
2 changes: 1 addition & 1 deletion lib/Tmdb/Api/ApiInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
namespace Tmdb\Api;

interface ApiInterface {
}
}
2 changes: 1 addition & 1 deletion lib/Tmdb/Api/Authentication.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ public function getNewGuestSession()
{
throw new NotImplementedException(__METHOD__ . ' has not been implemented yet.');
}
}
}
2 changes: 1 addition & 1 deletion lib/Tmdb/Api/Changes.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ public function getPersonChanges(array $options = array(), array $headers = arra
{
return $this->get('person/changes', $options, $headers);
}
}
}
2 changes: 1 addition & 1 deletion lib/Tmdb/Api/Collections.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ public function getImages($collection_id, array $options = array(), array $heade
{
return $this->get('collection/' . $collection_id . '/images', $options, $headers);
}
}
}
2 changes: 1 addition & 1 deletion lib/Tmdb/Api/Companies.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ public function getMovies($company_id, array $options = array(), array $headers
{
return $this->get('company/' . $company_id . '/movies', $options, $headers);
}
}
}
2 changes: 1 addition & 1 deletion lib/Tmdb/Api/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ public function getConfiguration(array $headers = array())
{
return $this->get('configuration', array(), $headers);
}
}
}
2 changes: 1 addition & 1 deletion lib/Tmdb/Api/Discover.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ public function discoverTv(array $options = array(), array $headers = array())
{
return $this->get('discover/tv', $options, $headers);
}
}
}
2 changes: 1 addition & 1 deletion lib/Tmdb/Api/Genres.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ public function getMovies($genre_id, array $options = array(), array $headers =
{
return $this->get('genre/' . $genre_id . '/movies', $options, $headers);
}
}
}
2 changes: 1 addition & 1 deletion lib/Tmdb/Api/Jobs.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ public function getJobs(array $options = array(), array $headers = array())
{
return $this->get('job/list', $options, $headers);
}
}
}
2 changes: 1 addition & 1 deletion lib/Tmdb/Api/Keywords.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ public function getMovies($keyword_id, array $options = array(), array $headers
{
return $this->get('keyword/' . $keyword_id . '/movies', $options, $headers);
}
}
}
2 changes: 1 addition & 1 deletion lib/Tmdb/Api/Lists.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,4 @@ public function deleteList()
{
throw new NotImplementedException(__METHOD__ . ' has not been implemented yet.');
}
}
}
2 changes: 1 addition & 1 deletion lib/Tmdb/Api/Movies.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,4 +252,4 @@ public function rateMovie()
{
throw new NotImplementedException('TMDB account sessions have not been implemented yet!');
}
}
}
2 changes: 1 addition & 1 deletion lib/Tmdb/Api/People.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,4 @@ public function getLatest(array $options = array(), array $headers = array())
{
return $this->get('person/latest', $options, $headers);
}
}
}
2 changes: 1 addition & 1 deletion lib/Tmdb/Api/Reviews.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ public function getReview($review_id, array $options = array(), array $headers =
{
return $this->get('review/' . $review_id, $options, $headers);
}
}
}
2 changes: 1 addition & 1 deletion lib/Tmdb/Api/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,4 @@ public function searchKeyword($query, array $options = array(), array $headers =
'query' => urlencode($query)
), $headers));
}
}
}
2 changes: 1 addition & 1 deletion lib/Tmdb/Api/Tv.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,4 @@ public function getTopRated(array $options = array(), array $headers = array())
return $this->get('tv/top_rated', $options, $headers);
}

}
}
2 changes: 1 addition & 1 deletion lib/Tmdb/Api/TvEpisode.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@ public function getEpisodeImages($tvshow_id, $season_number, $episode_number, ar
{
return $this->get(sprintf('tv/%s/season/%s/episode/%s/images', $tvshow_id, $season_number,$episode_number), $options, $headers);
}
}
}
2 changes: 1 addition & 1 deletion lib/Tmdb/Api/TvSeason.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ public function getSeasonImages($tvshow_id, $season_number, array $options = arr
{
return $this->get(sprintf('tv/%s/season/%s/images', $tvshow_id, $season_number), $options, $headers);
}
}
}
3 changes: 1 addition & 2 deletions lib/Tmdb/ApiToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,4 @@ public function getApiToken()
{
return $this->apiToken;
}

}
}
3 changes: 1 addition & 2 deletions lib/Tmdb/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -306,5 +306,4 @@ public function getSecure()
{
return $this->secure;
}

}
}
6 changes: 6 additions & 0 deletions lib/Tmdb/Common/ObjectHydrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
use Tmdb\Exception\RuntimeException;
use Tmdb\Model\AbstractModel;

/**
* Utilisation class to hydrate objects.
*
* Class ObjectHydrator
* @package Tmdb\Common
*/
class ObjectHydrator {
/**
* Hydrate the object with data
Expand Down
2 changes: 1 addition & 1 deletion lib/Tmdb/Exception/InvalidArgumentException.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@

class InvalidArgumentException extends \InvalidArgumentException {

}
}
2 changes: 1 addition & 1 deletion lib/Tmdb/Exception/MissingArgumentException.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@

class MissingArgumentException extends \InvalidArgumentException {

}
}
2 changes: 1 addition & 1 deletion lib/Tmdb/Exception/NotImplementedException.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@

class NotImplementedException extends \Exception {

}
}
2 changes: 1 addition & 1 deletion lib/Tmdb/Exception/RuntimeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@

class RuntimeException extends \RuntimeException {

}
}
6 changes: 4 additions & 2 deletions lib/Tmdb/Helper/ImageHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function __construct(Configuration $config)
/**
* Load the image configuration collection
*
* @return \Tmdb\Model\Common\Collection
* @return \Tmdb\Model\Common\GenericCollection
*/
public function getImageConfiguration()
{
Expand All @@ -52,6 +52,8 @@ public function getUrl(Image $image, $size = 'original') {
*
* @param Image $image
* @param string $size
* @param int|null $width
* @param int|null $height
* @return string
*/
public function getHtml(Image $image, $size = 'original', $width = null, $height = null) {
Expand Down Expand Up @@ -83,4 +85,4 @@ public function getHtml(Image $image, $size = 'original', $width = null, $height
$height
);
}
}
}
2 changes: 1 addition & 1 deletion lib/Tmdb/HttpClient/HttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,4 +227,4 @@ public function getClient()
{
return $this->client;
}
}
}
2 changes: 1 addition & 1 deletion lib/Tmdb/HttpClient/HttpClientInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,4 @@ public function setOption($name, $value);
* @return void
*/
public function setHeaders(array $headers);
}
}
2 changes: 1 addition & 1 deletion lib/Tmdb/HttpClient/Plugin/AcceptJsonHeaderPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ public function onBeforeSend(Event $event)
{
$event['request']->setHeader('accept', 'application/json');
}
}
}
2 changes: 1 addition & 1 deletion lib/Tmdb/HttpClient/Plugin/ApiTokenPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ public function onBeforeSend(Event $event)

$event['request']->setUrl($url->setQuery($newQuery));
}
}
}
2 changes: 1 addition & 1 deletion lib/Tmdb/Model/AbstractModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ class AbstractModel {
* @var array
*/
public static $_properties = array();
}
}
4 changes: 1 addition & 3 deletions lib/Tmdb/Model/Change.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,4 @@ public function getId()
{
return $this->id;
}


}
}
4 changes: 1 addition & 3 deletions lib/Tmdb/Model/Changes/Change.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,4 @@ public function getId()
{
return $this->id;
}


}
}
4 changes: 1 addition & 3 deletions lib/Tmdb/Model/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,4 @@ public function getPosterPath()
{
return $this->posterPath;
}


}
}
4 changes: 1 addition & 3 deletions lib/Tmdb/Model/Collection/Changes.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,4 @@

use Tmdb\Model\Common\GenericCollection;

class Images extends GenericCollection {

}
class Images extends GenericCollection {}
4 changes: 1 addition & 3 deletions lib/Tmdb/Model/Collection/Credits.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,4 @@ public function getCrew()
{
return $this->crew;
}


}
}
2 changes: 1 addition & 1 deletion lib/Tmdb/Model/Collection/Genres.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ public function addGenre(Genre $genre)
{
$this->data[] = $genre;
}
}
}
2 changes: 1 addition & 1 deletion lib/Tmdb/Model/Collection/Images.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,4 +192,4 @@ public function filterBestVotedImage()

return $currentImage;
}
}
}
2 changes: 1 addition & 1 deletion lib/Tmdb/Model/Collection/Keywords.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ public function addKeyword(Keyword $keyword)
{
$this->data[] = $keyword;
}
}
}
2 changes: 1 addition & 1 deletion lib/Tmdb/Model/Collection/People.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ public function addPerson(PersonInterface $person)
{
$this->data[] = $person;
}
}
}
2 changes: 1 addition & 1 deletion lib/Tmdb/Model/Collection/People/Cast.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ public function getCast()
public function getCastMember($id) {
return parent::getPerson($id);
}
}
}
2 changes: 1 addition & 1 deletion lib/Tmdb/Model/Collection/People/Crew.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ public function getCrew()
public function getCrewMember($id) {
return parent::getPerson($id);
}
}
}
2 changes: 1 addition & 1 deletion lib/Tmdb/Model/Collection/People/PersonInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
interface PersonInterface {
function getName();
function getId();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@

final class AppendToResponse extends BaseAppendToResponse {
const IMAGES = 'images';
}
}
2 changes: 1 addition & 1 deletion lib/Tmdb/Model/Collection/ResultCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,4 @@ public function getTotalResults()
{
return $this->totalResults;
}
}
}
2 changes: 1 addition & 1 deletion lib/Tmdb/Model/Common/AbstractTrailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ abstract class AbstractTrailer extends AbstractModel {
* @return string
*/
abstract public function getUrl();
}
}
4 changes: 1 addition & 3 deletions lib/Tmdb/Model/Common/Country.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,4 @@ public function getName()
{
return $this->name;
}


}
}
2 changes: 1 addition & 1 deletion lib/Tmdb/Model/Common/GenericCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -361,4 +361,4 @@ function($key, $value) use ($adult) {
}
);
}
}
}
2 changes: 1 addition & 1 deletion lib/Tmdb/Model/Common/QueryParameter/AppendToResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ public function getKey()
{
return 'append_to_response';
}
}
}
Loading

0 comments on commit 3316b59

Please sign in to comment.