Skip to content

Commit fa3641c

Browse files
authored
chore: fix docblock namespaced references (#1980)
1 parent 80fa4c9 commit fa3641c

File tree

12 files changed

+33
-33
lines changed

12 files changed

+33
-33
lines changed

src/AccessToken/Revoke.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
class Revoke
3232
{
3333
/**
34-
* @var GuzzleHttp\ClientInterface The http client
34+
* @var ClientInterface The http client
3535
*/
3636
private $http;
3737

src/AccessToken/Verify.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ class Verify
4444
const OAUTH2_ISSUER_HTTPS = 'https://accounts.google.com';
4545

4646
/**
47-
* @var GuzzleHttp\ClientInterface The http client
47+
* @var ClientInterface The http client
4848
*/
4949
private $http;
5050

5151
/**
52-
* @var Psr\Cache\CacheItemPoolInterface cache class
52+
* @var CacheItemPoolInterface cache class
5353
*/
5454
private $cache;
5555

@@ -149,7 +149,7 @@ private function getCache()
149149
* Retrieve and cache a certificates file.
150150
*
151151
* @param $url string location
152-
* @throws GoogleException
152+
* @throws \Google\Exception
153153
* @return array certificates
154154
*/
155155
private function retrieveCertsFromLocation($url)

src/Client.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ public function getConfig($name, $default = null)
937937
* alias for setAuthConfig
938938
*
939939
* @param string $file the configuration file
940-
* @throws Google\Exception
940+
* @throws \Google\Exception
941941
* @deprecated
942942
*/
943943
public function setAuthConfigFile($file)
@@ -951,7 +951,7 @@ public function setAuthConfigFile($file)
951951
* the "Download JSON" button on in the Google Developer
952952
* Console.
953953
* @param string|array $config the configuration json
954-
* @throws Google\Exception
954+
* @throws \Google\Exception
955955
*/
956956
public function setAuthConfig($config)
957957
{
@@ -1067,7 +1067,7 @@ public function setCache(CacheItemPoolInterface $cache)
10671067
}
10681068

10691069
/**
1070-
* @return CacheItemPoolInterface Cache implementation
1070+
* @return CacheItemPoolInterface
10711071
*/
10721072
public function getCache()
10731073
{
@@ -1096,7 +1096,7 @@ public function setLogger(LoggerInterface $logger)
10961096
}
10971097

10981098
/**
1099-
* @return LoggerInterface implementation
1099+
* @return LoggerInterface
11001100
*/
11011101
public function getLogger()
11021102
{
@@ -1135,7 +1135,7 @@ public function setHttpClient(ClientInterface $http)
11351135
}
11361136

11371137
/**
1138-
* @return ClientInterface implementation
1138+
* @return ClientInterface
11391139
*/
11401140
public function getHttpClient()
11411141
{

src/Http/Batch.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function execute()
9393
9494
EOF;
9595

96-
/** @var Google\Http\Request $req */
96+
/** @var RequestInterface $req */
9797
foreach ($this->requests as $key => $request) {
9898
$firstLine = sprintf(
9999
'%s %s HTTP/%s',

src/Http/MediaFileUpload.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ class MediaFileUpload
5656
/** @var int $progress */
5757
private $progress;
5858

59-
/** @var Google\Client */
59+
/** @var Client */
6060
private $client;
6161

62-
/** @var Psr\Http\Message\RequestInterface */
62+
/** @var RequestInterface */
6363
private $request;
6464

6565
/** @var string */
@@ -160,7 +160,7 @@ public function getHttpResultCode()
160160
* Sends a PUT-Request to google drive and parses the response,
161161
* setting the appropiate variables from the response()
162162
*
163-
* @param Google\Http\Request $httpRequest the Reuqest which will be send
163+
* @param RequestInterface $request the Request which will be send
164164
*
165165
* @return false|mixed false when the upload is unfinished or the decoded http response
166166
*
@@ -212,7 +212,7 @@ public function resume($resumeUri)
212212
}
213213

214214
/**
215-
* @return Psr\Http\Message\RequestInterface $request
215+
* @return RequestInterface
216216
* @visible for testing
217217
*/
218218
private function process()

src/Http/REST.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ class REST
3636
* Executes a Psr\Http\Message\RequestInterface and (if applicable) automatically retries
3737
* when errors occur.
3838
*
39-
* @param Google\Client $client
40-
* @param Psr\Http\Message\RequestInterface $req
39+
* @param Client $client
40+
* @param RequestInterface $req
4141
* @param string $expectedClass
4242
* @param array $config
4343
* @param array $retryMap
4444
* @return array decoded result
45-
* @throws Google\Service\Exception on server side error (ie: not authenticated,
45+
* @throws \Google\Service\Exception on server side error (ie: not authenticated,
4646
* invalid or malformed post body, invalid url)
4747
*/
4848
public static function execute(
@@ -69,11 +69,11 @@ public static function execute(
6969
/**
7070
* Executes a Psr\Http\Message\RequestInterface
7171
*
72-
* @param Google\Client $client
73-
* @param Psr\Http\Message\RequestInterface $request
72+
* @param Client $client
73+
* @param RequestInterface $request
7474
* @param string $expectedClass
7575
* @return array decoded result
76-
* @throws Google\Service\Exception on server side error (ie: not authenticated,
76+
* @throws \Google\Service\Exception on server side error (ie: not authenticated,
7777
* invalid or malformed post body, invalid url)
7878
*/
7979
public static function doExecute(ClientInterface $client, RequestInterface $request, $expectedClass = null)
@@ -106,9 +106,9 @@ public static function doExecute(ClientInterface $client, RequestInterface $requ
106106
/**
107107
* Decode an HTTP Response.
108108
* @static
109-
* @throws Google\Service\Exception
110-
* @param Psr\Http\Message\RequestInterface $response The http response to be decoded.
111-
* @param Psr\Http\Message\ResponseInterface $response
109+
* @throws \Google\Service\Exception
110+
* @param RequestInterface $response The http response to be decoded.
111+
* @param ResponseInterface $response
112112
* @param string $expectedClass
113113
* @return mixed|null
114114
*/

src/Model.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ protected function isAssociativeArray($array)
240240

241241
/**
242242
* Verify if $obj is an array.
243-
* @throws Google\Exception Thrown if $obj isn't an array.
243+
* @throws \Google\Exception Thrown if $obj isn't an array.
244244
* @param array $obj Items that should be validated.
245245
* @param string $method Method expecting an array as an argument.
246246
*/

src/Service.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function __construct($clientOrConfig = [])
4747

4848
/**
4949
* Return the associated Google\Client class.
50-
* @return Google\Client
50+
* @return \Google\Client
5151
*/
5252
public function getClient()
5353
{
@@ -57,7 +57,7 @@ public function getClient()
5757
/**
5858
* Create a new HTTP Batch handler for this service
5959
*
60-
* @return Google\Http\Batch
60+
* @return Batch
6161
*/
6262
public function createBatch()
6363
{

src/Service/Exception.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Exception extends GoogleException
3232
*
3333
* @param string $message
3434
* @param int $code
35-
* @param Exception|null $previous
35+
* @param \Exception|null $previous
3636
* @param [{string, string}] errors List of errors returned in an HTTP
3737
* response. Defaults to [].
3838
*/

src/Service/Resource.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class Resource
4848
/** @var string $rootUrl */
4949
private $rootUrl;
5050

51-
/** @var Google\Client $client */
51+
/** @var \Google\Client $client */
5252
private $client;
5353

5454
/** @var string $serviceName */
@@ -80,8 +80,8 @@ public function __construct($service, $serviceName, $resourceName, $resource)
8080
* @param $name
8181
* @param $arguments
8282
* @param $expectedClass - optional, the expected class name
83-
* @return Google\Http\Request|expectedClass
84-
* @throws Google\Exception
83+
* @return Request|$expectedClass
84+
* @throws \Google\Exception
8585
*/
8686
public function call($name, $arguments, $expectedClass = null)
8787
{

0 commit comments

Comments
 (0)