Skip to content

Commit a8e3e66

Browse files
Cleanup more @return annotations
1 parent d248dfe commit a8e3e66

File tree

6 files changed

+25
-25
lines changed

6 files changed

+25
-25
lines changed

AbstractBrowser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ public function restart()
639639
/**
640640
* Takes a URI and converts it to absolute if it is not already absolute.
641641
*
642-
* @return string An absolute URI
642+
* @return string
643643
*/
644644
protected function getAbsoluteUri(string $uri)
645645
{

Cookie.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ private static function parseDate(string $dateValue): ?string
222222
/**
223223
* Gets the name of the cookie.
224224
*
225-
* @return string The cookie name
225+
* @return string
226226
*/
227227
public function getName()
228228
{
@@ -232,7 +232,7 @@ public function getName()
232232
/**
233233
* Gets the value of the cookie.
234234
*
235-
* @return string The cookie value
235+
* @return string
236236
*/
237237
public function getValue()
238238
{
@@ -242,7 +242,7 @@ public function getValue()
242242
/**
243243
* Gets the raw value of the cookie.
244244
*
245-
* @return string The cookie value
245+
* @return string
246246
*/
247247
public function getRawValue()
248248
{
@@ -252,7 +252,7 @@ public function getRawValue()
252252
/**
253253
* Gets the expires time of the cookie.
254254
*
255-
* @return string|null The cookie expires time
255+
* @return string|null
256256
*/
257257
public function getExpiresTime()
258258
{
@@ -262,7 +262,7 @@ public function getExpiresTime()
262262
/**
263263
* Gets the path of the cookie.
264264
*
265-
* @return string The cookie path
265+
* @return string
266266
*/
267267
public function getPath()
268268
{
@@ -272,7 +272,7 @@ public function getPath()
272272
/**
273273
* Gets the domain of the cookie.
274274
*
275-
* @return string The cookie domain
275+
* @return string
276276
*/
277277
public function getDomain()
278278
{
@@ -282,7 +282,7 @@ public function getDomain()
282282
/**
283283
* Returns the secure flag of the cookie.
284284
*
285-
* @return bool The cookie secure flag
285+
* @return bool
286286
*/
287287
public function isSecure()
288288
{
@@ -292,7 +292,7 @@ public function isSecure()
292292
/**
293293
* Returns the httponly flag of the cookie.
294294
*
295-
* @return bool The cookie httponly flag
295+
* @return bool
296296
*/
297297
public function isHttpOnly()
298298
{
@@ -302,7 +302,7 @@ public function isHttpOnly()
302302
/**
303303
* Returns true if the cookie has expired.
304304
*
305-
* @return bool true if the cookie has expired, false otherwise
305+
* @return bool
306306
*/
307307
public function isExpired()
308308
{
@@ -312,7 +312,7 @@ public function isExpired()
312312
/**
313313
* Gets the samesite attribute of the cookie.
314314
*
315-
* @return string|null The cookie samesite attribute
315+
* @return string|null
316316
*/
317317
public function getSameSite(): ?string
318318
{

CookieJar.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public function updateFromResponse(Response $response, string $uri = null)
141141
/**
142142
* Returns not yet expired cookies.
143143
*
144-
* @return Cookie[] An array of cookies
144+
* @return Cookie[]
145145
*/
146146
public function all()
147147
{
@@ -162,7 +162,7 @@ public function all()
162162
/**
163163
* Returns not yet expired cookie values for the given URI.
164164
*
165-
* @return array An array of cookie values
165+
* @return array
166166
*/
167167
public function allValues(string $uri, bool $returnsRawValue = false)
168168
{
@@ -199,7 +199,7 @@ public function allValues(string $uri, bool $returnsRawValue = false)
199199
/**
200200
* Returns not yet expired raw cookie values for the given URI.
201201
*
202-
* @return array An array of cookie values
202+
* @return array
203203
*/
204204
public function allRawValues(string $uri)
205205
{

History.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function add(Request $request)
4343
/**
4444
* Returns true if the history is empty.
4545
*
46-
* @return bool true if the history is empty, false otherwise
46+
* @return bool
4747
*/
4848
public function isEmpty()
4949
{

Request.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function __construct(string $uri, string $method, array $parameters = [],
5252
/**
5353
* Gets the request URI.
5454
*
55-
* @return string The request URI
55+
* @return string
5656
*/
5757
public function getUri()
5858
{
@@ -62,7 +62,7 @@ public function getUri()
6262
/**
6363
* Gets the request HTTP method.
6464
*
65-
* @return string The request HTTP method
65+
* @return string
6666
*/
6767
public function getMethod()
6868
{
@@ -72,7 +72,7 @@ public function getMethod()
7272
/**
7373
* Gets the request parameters.
7474
*
75-
* @return array The request parameters
75+
* @return array
7676
*/
7777
public function getParameters()
7878
{
@@ -82,7 +82,7 @@ public function getParameters()
8282
/**
8383
* Gets the request server files.
8484
*
85-
* @return array The request files
85+
* @return array
8686
*/
8787
public function getFiles()
8888
{
@@ -92,7 +92,7 @@ public function getFiles()
9292
/**
9393
* Gets the request cookies.
9494
*
95-
* @return array The request cookies
95+
* @return array
9696
*/
9797
public function getCookies()
9898
{
@@ -102,7 +102,7 @@ public function getCookies()
102102
/**
103103
* Gets the request server parameters.
104104
*
105-
* @return array The request server parameters
105+
* @return array
106106
*/
107107
public function getServer()
108108
{
@@ -112,7 +112,7 @@ public function getServer()
112112
/**
113113
* Gets the request raw body data.
114114
*
115-
* @return string|null The request raw body data
115+
* @return string|null
116116
*/
117117
public function getContent()
118118
{

Response.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function __construct(string $content = '', int $status = 200, array $head
3838
/**
3939
* Converts the response object to string containing all headers and the response content.
4040
*
41-
* @return string The response with headers and content
41+
* @return string
4242
*/
4343
public function __toString(): string
4444
{
@@ -59,7 +59,7 @@ public function __toString(): string
5959
/**
6060
* Gets the response content.
6161
*
62-
* @return string The response content
62+
* @return string
6363
*/
6464
public function getContent(): string
6565
{
@@ -74,7 +74,7 @@ public function getStatusCode(): int
7474
/**
7575
* Gets the response headers.
7676
*
77-
* @return array The response headers
77+
* @return array
7878
*/
7979
public function getHeaders(): array
8080
{

0 commit comments

Comments
 (0)