@@ -4,6 +4,10 @@ |
||
4 | 4 | |
5 | 5 | class InvalidRequest extends Base |
6 | 6 | { |
7 | + /** |
|
8 | + * @param integer $httpStatus |
|
9 | + * @param string $httpBody |
|
10 | + */ |
|
7 | 11 | public function __construct( |
8 | 12 | $message, |
9 | 13 | $stripeParam, |
@@ -106,7 +106,7 @@ |
||
106 | 106 | } |
107 | 107 | |
108 | 108 | /** |
109 | - * @param number $errno |
|
109 | + * @param integer $errno |
|
110 | 110 | * @param string $message |
111 | 111 | * @throws Error\ApiConnection |
112 | 112 | */ |
@@ -54,6 +54,9 @@ |
||
54 | 54 | protected $_retrieveOptions; |
55 | 55 | protected $_lastResponse; |
56 | 56 | |
57 | + /** |
|
58 | + * @param Util\RequestOptions $opts |
|
59 | + */ |
|
57 | 60 | public function __construct($id = null, $opts = null) |
58 | 61 | { |
59 | 62 | $this->_opts = $opts ? $opts : new Util\RequestOptions(); |
@@ -38,7 +38,7 @@ |
||
38 | 38 | } |
39 | 39 | |
40 | 40 | /** |
41 | - * @return TransferReversal The created transfer reversal. |
|
41 | + * @return Transfer The created transfer reversal. |
|
42 | 42 | */ |
43 | 43 | public function reverse($params = null, $opts = null) |
44 | 44 | { |
@@ -4,6 +4,9 @@ discard block |
||
4 | 4 | |
5 | 5 | class AccountTest extends TestCase |
6 | 6 | { |
7 | + /** |
|
8 | + * @param string $id |
|
9 | + */ |
|
7 | 10 | private function managedAccountResponse($id) |
8 | 11 | { |
9 | 12 | return array( |
@@ -58,6 +61,9 @@ discard block |
||
58 | 61 | ); |
59 | 62 | } |
60 | 63 | |
64 | + /** |
|
65 | + * @param string $id |
|
66 | + */ |
|
61 | 67 | private function deletedAccountResponse($id) |
62 | 68 | { |
63 | 69 | return array( |
@@ -29,6 +29,10 @@ discard block |
||
29 | 29 | $this->call = 0; |
30 | 30 | } |
31 | 31 | |
32 | + /** |
|
33 | + * @param string $method |
|
34 | + * @param string $path |
|
35 | + */ |
|
32 | 36 | protected function mockRequest($method, $path, $params = array(), $return = array('id' => 'myId'), $rcode = 200) |
33 | 37 | { |
34 | 38 | $mock = $this->setUpMockRequest(); |
@@ -146,6 +150,7 @@ discard block |
||
146 | 150 | /** |
147 | 151 | * Verify that a plan with a given ID exists, or create a new one if it does |
148 | 152 | * not. |
153 | + * @param string $id |
|
149 | 154 | */ |
150 | 155 | protected static function retrieveOrCreatePlan($id) |
151 | 156 | { |
@@ -169,6 +174,7 @@ discard block |
||
169 | 174 | /** |
170 | 175 | * Verify that a coupon with a given ID exists, or create a new one if it |
171 | 176 | * does not. |
177 | + * @param string $id |
|
172 | 178 | */ |
173 | 179 | protected static function retrieveOrCreateCoupon($id) |
174 | 180 | { |
@@ -209,6 +215,9 @@ discard block |
||
209 | 215 | return self::generateRandomString().'@'.$domain; |
210 | 216 | } |
211 | 217 | |
218 | + /** |
|
219 | + * @param string $email |
|
220 | + */ |
|
212 | 221 | protected static function createTestBitcoinReceiver($email) |
213 | 222 | { |
214 | 223 | $receiver = BitcoinReceiver::create( |
@@ -46,7 +46,7 @@ |
||
46 | 46 | * @param string $filename |
47 | 47 | * @param string $contentType |
48 | 48 | * |
49 | - * @return Swift_Mime_Attachment |
|
49 | + * @return Swift_Mime_MimeEntity |
|
50 | 50 | */ |
51 | 51 | public static function newInstance($data = null, $filename = null, $contentType = null) |
52 | 52 | { |
@@ -266,6 +266,10 @@ |
||
266 | 266 | $this->_array_size = 0; |
267 | 267 | } |
268 | 268 | |
269 | + /** |
|
270 | + * @param resource $fp |
|
271 | + * @param integer $len |
|
272 | + */ |
|
269 | 273 | private function _reloadBuffer($fp, $len) |
270 | 274 | { |
271 | 275 | if (!feof($fp) && ($bytes = fread($fp, $len)) !== false) { |
@@ -26,6 +26,7 @@ |
||
26 | 26 | * Prevent this Event from bubbling any further up the stack. |
27 | 27 | * |
28 | 28 | * @param bool $cancel, optional |
29 | + * @return void |
|
29 | 30 | */ |
30 | 31 | public function cancelBubble($cancel = true); |
31 | 32 |