@@ -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 | */ |
@@ -95,7 +95,7 @@ |
||
95 | 95 | /** |
96 | 96 | * Adds a statement. |
97 | 97 | * |
98 | - * @param Node|PhpParser\Builder $stmt The statement to add |
|
98 | + * @param Node\Expr\Print_ $stmt The statement to add |
|
99 | 99 | * |
100 | 100 | * @return $this The builder instance (for fluid interface) |
101 | 101 | */ |
@@ -105,6 +105,9 @@ |
||
105 | 105 | ); |
106 | 106 | } |
107 | 107 | |
108 | + /** |
|
109 | + * @param Name $type |
|
110 | + */ |
|
108 | 111 | protected function addAlias(Stmt\UseUse $use, $type) { |
109 | 112 | // Constant names are case sensitive, everything else case insensitive |
110 | 113 | if ($type === Stmt\Use_::TYPE_CONSTANT) { |
@@ -175,6 +175,10 @@ discard block |
||
175 | 175 | return $this->{'p' . $node->getType()}($node); |
176 | 176 | } |
177 | 177 | |
178 | + /** |
|
179 | + * @param string $type |
|
180 | + * @param string $operatorString |
|
181 | + */ |
|
178 | 182 | protected function pInfixOp($type, Node $leftNode, $operatorString, Node $rightNode) { |
179 | 183 | list($precedence, $associativity) = $this->precedenceMap[$type]; |
180 | 184 | |
@@ -183,11 +187,19 @@ discard block |
||
183 | 187 | . $this->pPrec($rightNode, $precedence, $associativity, 1); |
184 | 188 | } |
185 | 189 | |
190 | + /** |
|
191 | + * @param string $type |
|
192 | + * @param string $operatorString |
|
193 | + */ |
|
186 | 194 | protected function pPrefixOp($type, $operatorString, Node $node) { |
187 | 195 | list($precedence, $associativity) = $this->precedenceMap[$type]; |
188 | 196 | return $operatorString . $this->pPrec($node, $precedence, $associativity, 1); |
189 | 197 | } |
190 | 198 | |
199 | + /** |
|
200 | + * @param string $type |
|
201 | + * @param string $operatorString |
|
202 | + */ |
|
191 | 203 | protected function pPostfixOp($type, Node $node, $operatorString) { |
192 | 204 | list($precedence, $associativity) = $this->precedenceMap[$type]; |
193 | 205 | return $this->pPrec($node, $precedence, $associativity, -1) . $operatorString; |
@@ -252,7 +264,7 @@ discard block |
||
252 | 264 | * |
253 | 265 | * @param string $string Not to be indented string |
254 | 266 | * |
255 | - * @return mixed String marked with $this->noIndentToken's. |
|
267 | + * @return string String marked with $this->noIndentToken's. |
|
256 | 268 | */ |
257 | 269 | protected function pNoIndent($string) { |
258 | 270 | return str_replace("\n", "\n" . $this->noIndentToken, $string); |
@@ -9,6 +9,9 @@ |
||
9 | 9 | |
10 | 10 | class ClassTest extends \PHPUnit_Framework_TestCase |
11 | 11 | { |
12 | + /** |
|
13 | + * @param string $class |
|
14 | + */ |
|
12 | 15 | protected function createClassBuilder($class) { |
13 | 16 | return new Class_($class); |
14 | 17 | } |
@@ -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 | } |
@@ -6,6 +6,10 @@ |
||
6 | 6 | public $subNode1; |
7 | 7 | public $subNode2; |
8 | 8 | |
9 | + /** |
|
10 | + * @param string $subNode1 |
|
11 | + * @param string $subNode2 |
|
12 | + */ |
|
9 | 13 | public function __construct($subNode1, $subNode2, $attributes) { |
10 | 14 | parent::__construct(null, $attributes); |
11 | 15 | $this->subNode1 = $subNode1; |
@@ -13,6 +13,9 @@ discard block |
||
13 | 13 | public $key; |
14 | 14 | public $secret; |
15 | 15 | |
16 | + /** |
|
17 | + * @param string $secret |
|
18 | + */ |
|
16 | 19 | function __construct($key, $secret, $callback_url=NULL) { |
17 | 20 | $this->key = $key; |
18 | 21 | $this->secret = $secret; |
@@ -193,6 +196,12 @@ discard block |
||
193 | 196 | // (1) do a lookup in a table of trusted certs keyed off of consumer |
194 | 197 | // |
195 | 198 | // Either way should return a string representation of the certificate |
199 | + |
|
200 | + /** |
|
201 | + * @param OAuthRequest $request |
|
202 | + * |
|
203 | + * @return string |
|
204 | + */ |
|
196 | 205 | protected abstract function fetch_private_cert(&$request); |
197 | 206 | |
198 | 207 | public function build_signature($request, $consumer, $token) { |
@@ -307,6 +316,7 @@ discard block |
||
307 | 316 | |
308 | 317 | /** |
309 | 318 | * pretty much a helper function to set up the request |
319 | + * @param OAuthConsumer $consumer |
|
310 | 320 | */ |
311 | 321 | public static function from_consumer_and_token($consumer, $token, $http_method, $http_url, $parameters=NULL) { |
312 | 322 | $parameters = ($parameters) ? $parameters : array(); |
@@ -322,6 +332,9 @@ discard block |
||
322 | 332 | return new OAuthRequest($http_method, $http_url, $parameters); |
323 | 333 | } |
324 | 334 | |
335 | + /** |
|
336 | + * @param string $name |
|
337 | + */ |
|
325 | 338 | public function set_parameter($name, $value, $allow_duplicates = true) { |
326 | 339 | if ($allow_duplicates && isset($this->parameters[$name])) { |
327 | 340 | // We have already added parameter(s) with this name, so add to the list |
@@ -337,6 +350,9 @@ discard block |
||
337 | 350 | } |
338 | 351 | } |
339 | 352 | |
353 | + /** |
|
354 | + * @param string $name |
|
355 | + */ |
|
340 | 356 | public function get_parameter($name) { |
341 | 357 | return isset($this->parameters[$name]) ? $this->parameters[$name] : null; |
342 | 358 | } |
@@ -462,6 +478,10 @@ discard block |
||
462 | 478 | } |
463 | 479 | |
464 | 480 | |
481 | + /** |
|
482 | + * @param OAuthSignatureMethod_HMAC_SHA1 $signature_method |
|
483 | + * @param OAuthConsumer $consumer |
|
484 | + */ |
|
465 | 485 | public function sign_request($signature_method, $consumer, $token) { |
466 | 486 | $this->set_parameter( |
467 | 487 | "oauth_signature_method", |