Skip to content

Commit

Permalink
Fixing docblocks / use statements.
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfzdotnet committed Jan 26, 2014
1 parent 60961bc commit 5f3dc67
Show file tree
Hide file tree
Showing 16 changed files with 21 additions and 30 deletions.
2 changes: 1 addition & 1 deletion lib/Tmdb/Api/AbstractApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function __construct(Client $client)
/**
* Send a GET request
*
* @param $path
* @param string $path
* @param array $parameters
* @param array $headers
* @return mixed
Expand Down
2 changes: 1 addition & 1 deletion lib/Tmdb/Api/Companies.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function getCompany($company_id, array $options = array(), array $headers
/**
* Get the list of movies associated with a particular company.
*
* @param $company_id
* @param integer $company_id
* @param array $options
* @param array $headers
* @return mixed
Expand Down
5 changes: 1 addition & 4 deletions lib/Tmdb/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,8 @@

use Guzzle\Http\Client as GuzzleClient;
use Guzzle\Http\ClientInterface;

use Tmdb\Exception\InvalidArgumentException;
use Tmdb\HttpClient\HttpClient;
use Tmdb\HttpClient\HttpClientInterface;

use Tmdb\ApiToken as Token;
use Tmdb\HttpClient\Plugin\AcceptJsonHeaderPlugin;
use Tmdb\HttpClient\Plugin\ApiTokenPlugin;
Expand Down Expand Up @@ -69,7 +66,7 @@ class Client {
* Construct our client
*
* @param ClientInterface|null $httpClient
* @param Token|null $token
* @param ApiToken $token
* @param boolean $secure
*/
public function __construct(Token $token, ClientInterface $httpClient = null, $secure = false)
Expand Down
2 changes: 1 addition & 1 deletion lib/Tmdb/Common/ObjectHydrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public static function hydrate(AbstractModel $object, $data = array())
*
* @see https://gist.github.com/troelskn/751517
*
* @param $candidate
* @param string $candidate
* @return string
*/
private function camelize($candidate)
Expand Down
4 changes: 2 additions & 2 deletions lib/Tmdb/Factory/ImageFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public static function create(array $data = array(), $key = null)
* '/xkQ5yWnMjpC2bGmu7GsD66AAoKO.jpg', 'backdrop_path'
*
* @param $path
* @param $key
* @param string $key
* @return \Tmdb\Model\Image
*/
public static function createFromPath($path, $key)
Expand All @@ -53,7 +53,7 @@ public static function createFromPath($path, $key)
/**
* Return possible image type keys
*
* @return array
* @return string[]
*/
public static function getPossibleKeys()
{
Expand Down
1 change: 0 additions & 1 deletion lib/Tmdb/Factory/People/PeopleFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

use Tmdb\Factory\AbstractFactory;
use Tmdb\Factory\ImageFactory;

use Tmdb\Model\Common\GenericCollection;
use Tmdb\Model\Person\CastMember;
use Tmdb\Model\Person\CrewMember;
Expand Down
2 changes: 0 additions & 2 deletions lib/Tmdb/Factory/TvEpisodeFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@
*/
namespace Tmdb\Factory;

use Tmdb\Factory\Common\GenericCollectionFactory;
use Tmdb\Factory\People\CastFactory;
use Tmdb\Factory\People\CrewFactory;
use Tmdb\Model\Common\GenericCollection;

use Tmdb\Model\Tv\ExternalIds;
use Tmdb\Model\Tv\Person\CastMember;
use Tmdb\Model\Tv\Person\CrewMember;
Expand Down
2 changes: 0 additions & 2 deletions lib/Tmdb/Factory/TvFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
use Tmdb\Factory\Common\GenericCollectionFactory;
use Tmdb\Factory\People\CastFactory;
use Tmdb\Factory\People\CrewFactory;

use Tmdb\Model\Common\GenericCollection;

use Tmdb\Model\Common\Translation;
use Tmdb\Model\Tv\ExternalIds;
use Tmdb\Model\Tv;
Expand Down
3 changes: 0 additions & 3 deletions lib/Tmdb/Factory/TvSeasonFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,9 @@
*/
namespace Tmdb\Factory;

use Tmdb\Factory\Common\GenericCollectionFactory;
use Tmdb\Factory\People\CastFactory;
use Tmdb\Factory\People\CrewFactory;
use Tmdb\Model\Common\GenericCollection;

use Tmdb\Model\Tv\Episode;
use Tmdb\Model\Tv\ExternalIds;
use Tmdb\Model\Tv\Person\CastMember;
use Tmdb\Model\Tv\Person\CrewMember;
Expand Down
2 changes: 1 addition & 1 deletion lib/Tmdb/HttpClient/HttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class HttpClient
/**
* Constructor
*
* @param $baseUrl
* @param string $baseUrl
* @param array $options
* @param ClientInterface $client
*/
Expand Down
13 changes: 8 additions & 5 deletions lib/Tmdb/HttpClient/HttpClientInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
*/
namespace Tmdb\HttpClient;

use Guzzle\Common\Exception\InvalidArgumentException;
use Guzzle\Http\Message\RequestInterface;
use Guzzle\Http\Message\Response;

Expand All @@ -24,7 +25,7 @@ interface HttpClientInterface
* @param array $parameters GET Parameters
* @param array $headers Reconfigure the request headers for this call only
*
* @return array Data
* @return Response Data
*/
public function get($path, array $parameters = array(), array $headers = array());

Expand All @@ -36,7 +37,7 @@ public function get($path, array $parameters = array(), array $headers = array()
* @param array $parameters POST Parameters
* @param array $headers Reconfigure the request headers for this call only
*
* @return array Data
* @return Response Data
*/
public function post($path, $postBody, array $parameters = array(), array $headers = array());

Expand All @@ -48,7 +49,7 @@ public function post($path, $postBody, array $parameters = array(), array $heade
* @param array $parameters PATCH Parameters
* @param array $headers Reconfigure the request headers for this call only
*
* @return array Data
* @return Response Data
*/
public function patch($path, $body = null, array $parameters = array(), array $headers = array());

Expand All @@ -60,7 +61,7 @@ public function patch($path, $body = null, array $parameters = array(), array $h
* @param array $parameters PUT Parameters
* @param array $headers Reconfigure the request headers for this call only
*
* @return array Data
* @return Response Data
*/
public function put($path, $body = null, array $parameters = array(), array $headers = array());

Expand All @@ -72,7 +73,7 @@ public function put($path, $body = null, array $parameters = array(), array $hea
* @param array $parameters DELETE Parameters
* @param array $headers Reconfigure the request headers for this call only
*
* @return array Data
* @return Response Data
*/
public function delete($path, $body = null, array $parameters = array(), array $headers = array());

Expand All @@ -91,13 +92,15 @@ public function request(RequestInterface $request);
* @param mixed $value The value
*
* @throws InvalidArgumentException
* @return void
*/
public function setOption($name, $value);

/**
* Set HTTP headers
*
* @param array $headers
* @return void
*/
public function setHeaders(array $headers);
}
4 changes: 2 additions & 2 deletions lib/Tmdb/Repository/MovieRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class MovieRepository extends AbstractRepository {
* @param $id
* @param $parameters
* @param $headers
* @return Movie
* @return null|\Tmdb\Model\AbstractModel
*/
public function load($id, array $parameters = array(), array $headers = array())
{
Expand Down Expand Up @@ -70,7 +70,7 @@ public function getApi()
* Get the latest movie.
*
* @param array $options
* @return Movie
* @return null|\Tmdb\Model\AbstractModel
*/
public function getLatest(array $options = array())
{
Expand Down
1 change: 0 additions & 1 deletion lib/Tmdb/Repository/PeopleRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

use Tmdb\Factory\People\PeopleFactory;
use Tmdb\Model\Person;

use Tmdb\Model\Person\QueryParameter\AppendToResponse;

class PeopleRepository extends AbstractRepository {
Expand Down
2 changes: 1 addition & 1 deletion lib/Tmdb/Repository/TvEpisodeRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class TvEpisodeRepository extends AbstractRepository {
* @param $parameters
* @param $headers
* @throws RuntimeException
* @return Episode
* @return null|\Tmdb\Model\AbstractModel
*/
public function load($tvShow, $season, $episode, array $parameters = array(), array $headers = array())
{
Expand Down
4 changes: 2 additions & 2 deletions lib/Tmdb/Repository/TvRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class TvRepository extends AbstractRepository {
* @param $id
* @param $parameters
* @param $headers
* @return Tv
* @return null|\Tmdb\Model\AbstractModel
*/
public function load($id, array $parameters = array(), array $headers = array())
{
Expand Down Expand Up @@ -57,7 +57,7 @@ public function load($id, array $parameters = array(), array $headers = array())
* @param Tv $tv
* @param array $parameters
* @param array $headers
* @return Tv
* @return null|\Tmdb\Model\AbstractModel
*/
public function refresh(Tv $tv, array $parameters = array(), array $headers = array())
{
Expand Down
2 changes: 1 addition & 1 deletion lib/Tmdb/Repository/TvSeasonRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class TvSeasonRepository extends AbstractRepository {
* @param $parameters
* @param $headers
* @throws RuntimeException
* @return Season
* @return null|\Tmdb\Model\AbstractModel
*/
public function load($tvShow, $season, array $parameters = array(), array $headers = array())
{
Expand Down

0 comments on commit 5f3dc67

Please sign in to comment.