@@ -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", |
@@ -108,6 +108,9 @@ discard block |
||
108 | 108 | return new OAuthConsumer($this->consumerKey, $this->consumerSecret); |
109 | 109 | } |
110 | 110 | |
111 | + /** |
|
112 | + * @param string $httpMethod |
|
113 | + */ |
|
111 | 114 | private function createRequest($httpMethod, $url, $token, array $parameters) { |
112 | 115 | $consumer = $this->createConsumer(); |
113 | 116 | $request = OAuthRequest::from_consumer_and_token($consumer, $token, $httpMethod, $url, $parameters); |
@@ -140,6 +143,9 @@ discard block |
||
140 | 143 | return $result; |
141 | 144 | } |
142 | 145 | |
146 | + /** |
|
147 | + * @param string $authorization |
|
148 | + */ |
|
143 | 149 | private function doPostMultipartFormData($url, $authorization, $paths, $data) { |
144 | 150 | $boundary = Text::uuid(); |
145 | 151 | |
@@ -171,6 +177,9 @@ discard block |
||
171 | 177 | return $result; |
172 | 178 | } |
173 | 179 | |
180 | + /** |
|
181 | + * @param OAuthRequest $request |
|
182 | + */ |
|
174 | 183 | private function doRequest($request) { |
175 | 184 | if ($request->get_normalized_http_method() == 'POST') { |
176 | 185 | $data = $this->doPost($this->url, $request->to_postdata()); |
@@ -12,7 +12,6 @@ |
||
12 | 12 | */ |
13 | 13 | namespace vendor\OAuth; |
14 | 14 | |
15 | -use App\Network\Http\HttpSocket; |
|
16 | 15 | use Cake\Utility\Text; |
17 | 16 | use Cake\Network\Http\Client; |
18 | 17 |
@@ -271,7 +271,6 @@ |
||
271 | 271 | * Sets the text portion (short and long description combined) of the doc |
272 | 272 | * block. |
273 | 273 | * |
274 | - * @param string $docblock The new text portion of the doc block. |
|
275 | 274 | * |
276 | 275 | * @return $this This doc block. |
277 | 276 | */ |
@@ -44,7 +44,7 @@ |
||
44 | 44 | |
45 | 45 | /** |
46 | 46 | * |
47 | - * @param type $lineNumber |
|
47 | + * @param integer $lineNumber |
|
48 | 48 | * @return $this |
49 | 49 | */ |
50 | 50 | public function setLineNumber($lineNumber) |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | /** |
62 | 62 | * Sets the string to indent comments with. |
63 | 63 | * |
64 | - * @param string $indentationString The string to indent comments with. |
|
64 | + * @param string $indentString The string to indent comments with. |
|
65 | 65 | * |
66 | 66 | * @return $this This serializer object. |
67 | 67 | */ |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | /** |
162 | 162 | * Generate a DocBlock comment. |
163 | 163 | * |
164 | - * @param DocBlock The DocBlock to serialize. |
|
164 | + * @param DocBlock DocBlock to serialize. |
|
165 | 165 | * |
166 | 166 | * @return string The serialized doc block. |
167 | 167 | */ |
@@ -56,7 +56,6 @@ |
||
56 | 56 | * |
57 | 57 | * @param string[] $types Array containing a list of types to add to this |
58 | 58 | * container. |
59 | - * @param Context $location The current invoking location. |
|
60 | 59 | */ |
61 | 60 | public function __construct( |
62 | 61 | array $types = array(), |
@@ -31,7 +31,7 @@ |
||
31 | 31 | * @param string $exContent |
32 | 32 | * @param string $exStartingLine |
33 | 33 | * @param string $exLineCount |
34 | - * @param string $exFilepath |
|
34 | + * @param string $exFilePath |
|
35 | 35 | * |
36 | 36 | * @covers \phpDocumentor\Reflection\DocBlock\Tag\ExampleTag |
37 | 37 | * @dataProvider provideDataForConstuctor |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace spec\Prophecy\Doubler; |
4 | 4 | |
5 | 5 | use PhpSpec\ObjectBehavior; |
6 | -use Prophecy\Argument; |
|
7 | 6 | |
8 | 7 | class DoublerSpec extends ObjectBehavior |
9 | 8 | { |