@@ -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 | { |
@@ -20,10 +20,16 @@ |
||
| 20 | 20 | 'case_separator', 'optional_comma' |
| 21 | 21 | )); |
| 22 | 22 | |
| 23 | +/** |
|
| 24 | + * @param string $regex |
|
| 25 | + */ |
|
| 23 | 26 | function regex($regex) { |
| 24 | 27 | return '~' . LIB . '(?:' . str_replace('~', '\~', $regex) . ')~'; |
| 25 | 28 | } |
| 26 | 29 | |
| 30 | +/** |
|
| 31 | + * @param string $regex |
|
| 32 | + */ |
|
| 27 | 33 | function magicSplit($regex, $string) { |
| 28 | 34 | $pieces = preg_split(regex('(?:(?&string)|(?&comment)|(?&code))(*SKIP)(*FAIL)|' . $regex), $string); |
| 29 | 35 | |
@@ -44,8 +44,6 @@ |
||
| 44 | 44 | /** |
| 45 | 45 | * Implements one or more interfaces. |
| 46 | 46 | * |
| 47 | - * @param Name|string $interface Name of interface to implement |
|
| 48 | - * @param Name|string $... More interfaces to implement |
|
| 49 | 47 | * |
| 50 | 48 | * @return $this The builder instance (for fluid interface) |
| 51 | 49 | */ |
@@ -25,8 +25,6 @@ |
||
| 25 | 25 | /** |
| 26 | 26 | * Extends one or more interfaces. |
| 27 | 27 | * |
| 28 | - * @param Name|string $interface Name of interface to extend |
|
| 29 | - * @param Name|string $... More interfaces to extend |
|
| 30 | 28 | * |
| 31 | 29 | * @return $this The builder instance (for fluid interface) |
| 32 | 30 | */ |