@@ -9,11 +9,17 @@ |
||
9 | 9 | */ |
10 | 10 | class BatchBuilderTest extends \Guzzle\Tests\GuzzleTestCase |
11 | 11 | { |
12 | + /** |
|
13 | + * @return \Guzzle\Batch\BatchTransferInterface |
|
14 | + */ |
|
12 | 15 | private function getMockTransfer() |
13 | 16 | { |
14 | 17 | return $this->getMock('Guzzle\Batch\BatchTransferInterface'); |
15 | 18 | } |
16 | 19 | |
20 | + /** |
|
21 | + * @return \Guzzle\Batch\BatchDivisorInterface |
|
22 | + */ |
|
17 | 23 | private function getMockDivisor() |
18 | 24 | { |
19 | 25 | return $this->getMock('Guzzle\Batch\BatchDivisorInterface'); |
@@ -11,7 +11,6 @@ |
||
11 | 11 | use Guzzle\Http\Message\Request; |
12 | 12 | use Guzzle\Http\QueryString; |
13 | 13 | use Guzzle\Parser\Message\MessageParser; |
14 | -use Guzzle\Plugin\Log\LogPlugin; |
|
15 | 14 | use Guzzle\Plugin\Mock\MockPlugin; |
16 | 15 | |
17 | 16 | /** |
@@ -474,6 +474,7 @@ |
||
474 | 474 | } |
475 | 475 | |
476 | 476 | /** |
477 | + * @param integer $code |
|
477 | 478 | * @return Response |
478 | 479 | */ |
479 | 480 | private function getResponse($code, array $headers = null, EntityBody $body = null) |
@@ -22,6 +22,9 @@ |
||
22 | 22 | */ |
23 | 23 | class DefaultRevalidationTest extends \Guzzle\Tests\GuzzleTestCase |
24 | 24 | { |
25 | + /** |
|
26 | + * @param string $time |
|
27 | + */ |
|
25 | 28 | protected function getHttpDate($time) |
26 | 29 | { |
27 | 30 | return gmdate(ClientInterface::HTTP_DATE, strtotime($time)); |
@@ -14,7 +14,6 @@ |
||
14 | 14 | use Doctrine\Common\Cache\ArrayCache; |
15 | 15 | use Guzzle\Plugin\Cache\DefaultCacheStorage; |
16 | 16 | use Guzzle\Plugin\Mock\MockPlugin; |
17 | -use Guzzle\Tests\Http\Server; |
|
18 | 17 | |
19 | 18 | /** |
20 | 19 | * @covers Guzzle\Plugin\Cache\DefaultRevalidation |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Guzzle\Tests\Plugin\ErrorResponse; |
4 | 4 | |
5 | 5 | use Guzzle\Service\Client; |
6 | -use Guzzle\Http\Message\Response; |
|
7 | 6 | use Guzzle\Plugin\ErrorResponse\ErrorResponsePlugin; |
8 | 7 | use Guzzle\Service\Description\ServiceDescription; |
9 | 8 | use Guzzle\Tests\Mock\ErrorResponseMock; |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Guzzle\Tests\Plugin\History; |
4 | 4 | |
5 | 5 | use Guzzle\Http\Client; |
6 | -use Guzzle\Http\Message\Request; |
|
7 | 6 | use Guzzle\Http\Message\Response; |
8 | 7 | use Guzzle\Plugin\History\HistoryPlugin; |
9 | 8 | use Guzzle\Plugin\Mock\MockPlugin; |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Guzzle\Http\Message\RequestFactory; |
6 | 6 | use Guzzle\Service\Command\ClosureCommand; |
7 | -use Guzzle\Service\Client; |
|
8 | 7 | |
9 | 8 | /** |
10 | 9 | * @covers Guzzle\Service\Command\ClosureCommand |
@@ -7,6 +7,9 @@ discard block |
||
7 | 7 | |
8 | 8 | private $are256ColorsSupportedForce = true; |
9 | 9 | |
10 | + /** |
|
11 | + * @param boolean $isSupported |
|
12 | + */ |
|
10 | 13 | public function setIsSupported($isSupported) |
11 | 14 | { |
12 | 15 | $this->isSupportedForce = $isSupported; |
@@ -17,6 +20,9 @@ discard block |
||
17 | 20 | return $this->isSupportedForce; |
18 | 21 | } |
19 | 22 | |
23 | + /** |
|
24 | + * @param boolean $are256ColorsSupported |
|
25 | + */ |
|
20 | 26 | public function setAre256ColorsSupported($are256ColorsSupported) |
21 | 27 | { |
22 | 28 | $this->are256ColorsSupportedForce = $are256ColorsSupported; |
@@ -1996,7 +1996,7 @@ discard block |
||
1996 | 1996 | * |
1997 | 1997 | * @param int $dayOfWeek |
1998 | 1998 | * |
1999 | - * @return mixed |
|
1999 | + * @return Carbon |
|
2000 | 2000 | */ |
2001 | 2001 | public function next($dayOfWeek = null) |
2002 | 2002 | { |
@@ -2015,7 +2015,7 @@ discard block |
||
2015 | 2015 | * |
2016 | 2016 | * @param int $dayOfWeek |
2017 | 2017 | * |
2018 | - * @return mixed |
|
2018 | + * @return Carbon |
|
2019 | 2019 | */ |
2020 | 2020 | public function previous($dayOfWeek = null) |
2021 | 2021 | { |
@@ -2034,7 +2034,7 @@ discard block |
||
2034 | 2034 | * |
2035 | 2035 | * @param int $dayOfWeek |
2036 | 2036 | * |
2037 | - * @return mixed |
|
2037 | + * @return Carbon |
|
2038 | 2038 | */ |
2039 | 2039 | public function firstOfMonth($dayOfWeek = null) |
2040 | 2040 | { |
@@ -2055,7 +2055,7 @@ discard block |
||
2055 | 2055 | * |
2056 | 2056 | * @param int $dayOfWeek |
2057 | 2057 | * |
2058 | - * @return mixed |
|
2058 | + * @return Carbon |
|
2059 | 2059 | */ |
2060 | 2060 | public function lastOfMonth($dayOfWeek = null) |
2061 | 2061 | { |
@@ -2096,7 +2096,7 @@ discard block |
||
2096 | 2096 | * |
2097 | 2097 | * @param int $dayOfWeek |
2098 | 2098 | * |
2099 | - * @return mixed |
|
2099 | + * @return Carbon |
|
2100 | 2100 | */ |
2101 | 2101 | public function firstOfQuarter($dayOfWeek = null) |
2102 | 2102 | { |
@@ -2111,7 +2111,7 @@ discard block |
||
2111 | 2111 | * |
2112 | 2112 | * @param int $dayOfWeek |
2113 | 2113 | * |
2114 | - * @return mixed |
|
2114 | + * @return Carbon |
|
2115 | 2115 | */ |
2116 | 2116 | public function lastOfQuarter($dayOfWeek = null) |
2117 | 2117 | { |
@@ -2147,7 +2147,7 @@ discard block |
||
2147 | 2147 | * |
2148 | 2148 | * @param int $dayOfWeek |
2149 | 2149 | * |
2150 | - * @return mixed |
|
2150 | + * @return Carbon |
|
2151 | 2151 | */ |
2152 | 2152 | public function firstOfYear($dayOfWeek = null) |
2153 | 2153 | { |
@@ -2162,7 +2162,7 @@ discard block |
||
2162 | 2162 | * |
2163 | 2163 | * @param int $dayOfWeek |
2164 | 2164 | * |
2165 | - * @return mixed |
|
2165 | + * @return Carbon |
|
2166 | 2166 | */ |
2167 | 2167 | public function lastOfYear($dayOfWeek = null) |
2168 | 2168 | { |