@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | * |
162 | 162 | * @param string $key Identifier for the data |
163 | 163 | * @param int $offset How much to increment |
164 | - * @return bool|int New incremented value, false otherwise |
|
164 | + * @return integer New incremented value, false otherwise |
|
165 | 165 | */ |
166 | 166 | public function increment($key, $offset = 1) |
167 | 167 | { |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | * |
176 | 176 | * @param string $key Identifier for the data |
177 | 177 | * @param int $offset How much to subtract |
178 | - * @return bool|int New decremented value, false otherwise |
|
178 | + * @return integer New decremented value, false otherwise |
|
179 | 179 | */ |
180 | 180 | public function decrement($key, $offset = 1) |
181 | 181 | { |
@@ -105,7 +105,7 @@ |
||
105 | 105 | * @param Process $process The Process |
106 | 106 | * @param callable|null $callback A PHP callable |
107 | 107 | * |
108 | - * @return callable |
|
108 | + * @return \Closure |
|
109 | 109 | */ |
110 | 110 | public function wrapCallback(OutputInterface $output, Process $process, $callback = null) |
111 | 111 | { |
@@ -47,7 +47,7 @@ |
||
47 | 47 | * Creates the iterator that will generate child iterators from each of the |
48 | 48 | * elements it was constructed with. |
49 | 49 | * |
50 | - * @param array|\Traversable $items The list of values to iterate |
|
50 | + * @param \Cake\Collection\CollectionTrait $items The list of values to iterate |
|
51 | 51 | * @param callable $unfolder A callable function that will receive the |
52 | 52 | * current item and key. It must return an array or Traversable object |
53 | 53 | * out of which the nested iterators will be yielded. |
@@ -105,7 +105,7 @@ |
||
105 | 105 | * @param Process $process The Process |
106 | 106 | * @param callable|null $callback A PHP callable |
107 | 107 | * |
108 | - * @return callable |
|
108 | + * @return \Closure |
|
109 | 109 | */ |
110 | 110 | public function wrapCallback(OutputInterface $output, Process $process, $callback = null) |
111 | 111 | { |
@@ -105,7 +105,7 @@ |
||
105 | 105 | * @param Process $process The Process |
106 | 106 | * @param callable|null $callback A PHP callable |
107 | 107 | * |
108 | - * @return callable |
|
108 | + * @return \Closure |
|
109 | 109 | */ |
110 | 110 | public function wrapCallback(OutputInterface $output, Process $process, $callback = null) |
111 | 111 | { |
@@ -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; |
@@ -326,6 +326,9 @@ |
||
326 | 326 | $this->assertEquals(array(true), $this->exporter->toArray(true)); |
327 | 327 | } |
328 | 328 | |
329 | + /** |
|
330 | + * @param string $string |
|
331 | + */ |
|
329 | 332 | private function trimNewline($string) |
330 | 333 | { |
331 | 334 | return preg_replace('/[ ]*\n/', "\n", $string); |
@@ -10,6 +10,9 @@ |
||
10 | 10 | |
11 | 11 | class MethodTest extends \PHPUnit_Framework_TestCase |
12 | 12 | { |
13 | + /** |
|
14 | + * @param string $name |
|
15 | + */ |
|
13 | 16 | public function createMethodBuilder($name) { |
14 | 17 | return new Method($name); |
15 | 18 | } |
@@ -326,6 +326,9 @@ |
||
326 | 326 | $this->assertEquals(array(true), $this->exporter->toArray(true)); |
327 | 327 | } |
328 | 328 | |
329 | + /** |
|
330 | + * @param string $string |
|
331 | + */ |
|
329 | 332 | private function trimNewline($string) |
330 | 333 | { |
331 | 334 | return preg_replace('/[ ]*\n/', "\n", $string); |