@@ -357,7 +357,7 @@ |
||
| 357 | 357 | * @param int $delta |
| 358 | 358 | * @param int $numpoints |
| 359 | 359 | * @param bool $firsttime |
| 360 | - * @return int New bias |
|
| 360 | + * @return double New bias |
|
| 361 | 361 | */ |
| 362 | 362 | protected static function adapt($delta, $numpoints, $firsttime) { |
| 363 | 363 | # function adapt(delta,numpoints,firsttime): |
@@ -249,7 +249,7 @@ discard block |
||
| 249 | 249 | * |
| 250 | 250 | * Returns false if $base is not absolute, otherwise an IRI. |
| 251 | 251 | * |
| 252 | - * @param IRI|string $base (Absolute) Base IRI |
|
| 252 | + * @param string $base (Absolute) Base IRI |
|
| 253 | 253 | * @param IRI|string $relative Relative IRI |
| 254 | 254 | * @return IRI|false |
| 255 | 255 | */ |
@@ -984,6 +984,7 @@ discard block |
||
| 984 | 984 | * Convert an IRI to a URI (or parts thereof) |
| 985 | 985 | * |
| 986 | 986 | * @param string|bool IRI to convert (or false from {@see get_iri}) |
| 987 | + * @param false|string $string |
|
| 987 | 988 | * @return string|false URI if IRI is valid, false otherwise. |
| 988 | 989 | */ |
| 989 | 990 | protected function to_uri($string) { |
@@ -232,7 +232,7 @@ |
||
| 232 | 232 | * |
| 233 | 233 | * @param array $request Request data (same form as {@see request_multiple}) |
| 234 | 234 | * @param boolean $merge_options Should we merge options as well? |
| 235 | - * @return array Request data |
|
| 235 | + * @return string Request data |
|
| 236 | 236 | */ |
| 237 | 237 | protected function merge_request($request, $merge_options = true) { |
| 238 | 238 | if ($this->url !== null) { |
@@ -40,6 +40,6 @@ |
||
| 40 | 40 | ) DEFAULT CHARSET=utf8"; |
| 41 | 41 | if(!$db->query($query)) |
| 42 | 42 | { |
| 43 | - throw new Exception($db->error($mysqli)); |
|
| 43 | + throw new Exception($db->error($mysqli)); |
|
| 44 | 44 | } |
| 45 | 45 | |
@@ -3,18 +3,18 @@ |
||
| 3 | 3 | |
| 4 | 4 | class GetKarma extends AbstractRequest { |
| 5 | 5 | |
| 6 | - function getApiEndPoint() |
|
| 7 | - { |
|
| 8 | - return '/v2/users/karma'; |
|
| 9 | - } |
|
| 10 | - function getPayload() |
|
| 11 | - { |
|
| 12 | - return array( |
|
| 13 | - ); |
|
| 14 | - } |
|
| 15 | - function getMethod() |
|
| 16 | - { |
|
| 17 | - return 'GET'; |
|
| 18 | - } |
|
| 6 | + function getApiEndPoint() |
|
| 7 | + { |
|
| 8 | + return '/v2/users/karma'; |
|
| 9 | + } |
|
| 10 | + function getPayload() |
|
| 11 | + { |
|
| 12 | + return array( |
|
| 13 | + ); |
|
| 14 | + } |
|
| 15 | + function getMethod() |
|
| 16 | + { |
|
| 17 | + return 'GET'; |
|
| 18 | + } |
|
| 19 | 19 | } |
| 20 | 20 | |
@@ -3,18 +3,18 @@ |
||
| 3 | 3 | |
| 4 | 4 | class GetPostDetails extends AbstractRequest { |
| 5 | 5 | |
| 6 | - function getApiEndPoint() |
|
| 7 | - { |
|
| 8 | - return '/v2/posts/' . $_GET['postID']; |
|
| 9 | - } |
|
| 10 | - function getPayload() |
|
| 11 | - { |
|
| 12 | - return array( |
|
| 13 | - ); |
|
| 14 | - } |
|
| 15 | - function getMethod() |
|
| 16 | - { |
|
| 17 | - return 'GET'; |
|
| 18 | - } |
|
| 6 | + function getApiEndPoint() |
|
| 7 | + { |
|
| 8 | + return '/v2/posts/' . $_GET['postID']; |
|
| 9 | + } |
|
| 10 | + function getPayload() |
|
| 11 | + { |
|
| 12 | + return array( |
|
| 13 | + ); |
|
| 14 | + } |
|
| 15 | + function getMethod() |
|
| 16 | + { |
|
| 17 | + return 'GET'; |
|
| 18 | + } |
|
| 19 | 19 | } |
| 20 | 20 | |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | * |
| 63 | 63 | * @param string $name |
| 64 | 64 | * @param string $value |
| 65 | - * @param array|Requests_Utility_CaseInsensitiveDictionary $attributes Associative array of attribute data |
|
| 65 | + * @param Requests_Utility_CaseInsensitiveDictionary $attributes Associative array of attribute data |
|
| 66 | 66 | */ |
| 67 | 67 | public function __construct($name, $value, $attributes = array(), $flags = array(), $reference_time = null) { |
| 68 | 68 | $this->name = $name; |
@@ -377,6 +377,7 @@ discard block |
||
| 377 | 377 | * specifies some of this handling, but not in a thorough manner. |
| 378 | 378 | * |
| 379 | 379 | * @param string Cookie header value (from a Set-Cookie header) |
| 380 | + * @param integer $reference_time |
|
| 380 | 381 | * @return Requests_Cookie Parsed cookie object |
| 381 | 382 | */ |
| 382 | 383 | public static function parse($string, $name = '', $reference_time = null) { |
@@ -29,6 +29,9 @@ |
||
| 29 | 29 | */ |
| 30 | 30 | protected $reason = 'Unknown'; |
| 31 | 31 | |
| 32 | + /** |
|
| 33 | + * @param string $message |
|
| 34 | + */ |
|
| 32 | 35 | public function __construct($message, $type, $data = null, $code = 0) { |
| 33 | 36 | if ($type !== null) { |
| 34 | 37 | $this->type = $type; |
@@ -19,6 +19,7 @@ |
||
| 19 | 19 | * @param string $hook Hook name |
| 20 | 20 | * @param callback $callback Function/method to call on event |
| 21 | 21 | * @param int $priority Priority number. <0 is executed earlier, >0 is executed later |
| 22 | + * @return void |
|
| 22 | 23 | */ |
| 23 | 24 | public function register($hook, $callback, $priority = 0); |
| 24 | 25 | |