Completed
Push — master ( 56286a...58a0bb )
by Juliette
01:46 queued 11s
created
library/Requests/IDNAEncoder.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -357,7 +357,7 @@
 block discarded – undo
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):
Please login to merge, or discard this patch.
library/Requests/IRI.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
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
 	 */
@@ -987,6 +987,7 @@  discard block
 block discarded – undo
987 987
 	 * Convert an IRI to a URI (or parts thereof)
988 988
 	 *
989 989
 	 * @param string|bool IRI to convert (or false from {@see get_iri})
990
+	 * @param false|string $string
990 991
 	 * @return string|false URI if IRI is valid, false otherwise.
991 992
 	 */
992 993
 	protected function to_uri($string) {
Please login to merge, or discard this patch.
library/Requests/Session.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -232,7 +232,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
bin/create_pear_package.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -33,9 +33,9 @@  discard block
 block discarded – undo
33 33
 );
34 34
 
35 35
 $context['files'] = '';
36
-$path = realpath(dirname(__FILE__).'/../library/Requests');
36
+$path = realpath(dirname(__FILE__) . '/../library/Requests');
37 37
 foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path), RecursiveIteratorIterator::LEAVES_ONLY) as $file) {
38
-	if (preg_match('/\.php$/', $file)) 	{
38
+	if (preg_match('/\.php$/', $file)) {
39 39
 		$name = str_replace($path . DIRECTORY_SEPARATOR, '', $file);
40 40
 		$name = str_replace(DIRECTORY_SEPARATOR, '/', $name);
41 41
 		$context['files'][] = "\t\t\t\t\t" . '<file install-as="Requests/' . $name . '" name="' . $name . '" role="php" />';
@@ -44,9 +44,9 @@  discard block
 block discarded – undo
44 44
 
45 45
 $context['files'] = implode("\n", $context['files']);
46 46
 
47
-$template = file_get_contents(dirname(__FILE__).'/../package.xml.tpl');
47
+$template = file_get_contents(dirname(__FILE__) . '/../package.xml.tpl');
48 48
 $content = preg_replace_callback('/\{\{\s*([a-zA-Z0-9_]+)\s*\}\}/', 'replace_parameters', $template);
49
-file_put_contents(dirname(__FILE__).'/../package.xml', $content);
49
+file_put_contents(dirname(__FILE__) . '/../package.xml', $content);
50 50
 
51 51
 function replace_parameters($matches) {
52 52
 	global $context;
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
 $context['files'] = '';
36 36
 $path = realpath(dirname(__FILE__).'/../library/Requests');
37 37
 foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path), RecursiveIteratorIterator::LEAVES_ONLY) as $file) {
38
-	if (preg_match('/\.php$/', $file)) 	{
38
+	if (preg_match('/\.php$/', $file)) {
39 39
 		$name = str_replace($path . DIRECTORY_SEPARATOR, '', $file);
40 40
 		$name = str_replace(DIRECTORY_SEPARATOR, '/', $name);
41 41
 		$context['files'][] = "\t\t\t\t\t" . '<file install-as="Requests/' . $name . '" name="' . $name . '" role="php" />';
Please login to merge, or discard this patch.
library/Requests.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -531,7 +531,7 @@  discard block
 block discarded – undo
531 531
 	 * @return string Default certificate path.
532 532
 	 */
533 533
 	public static function get_certificate_path() {
534
-		if ( ! empty( Requests::$certificate_path ) ) {
534
+		if (!empty(Requests::$certificate_path)) {
535 535
 			return Requests::$certificate_path;
536 536
 		}
537 537
 
@@ -543,7 +543,7 @@  discard block
 block discarded – undo
543 543
 	 *
544 544
 	 * @param string $path Certificate path, pointing to a PEM file.
545 545
 	 */
546
-	public static function set_certificate_path( $path ) {
546
+	public static function set_certificate_path($path) {
547 547
 		Requests::$certificate_path = $path;
548 548
 	}
549 549
 
Please login to merge, or discard this patch.
library/Requests/Transport/cURL.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -310,7 +310,7 @@
 block discarded – undo
310 310
 		$options['hooks']->dispatch('curl.before_request', array(&$this->handle));
311 311
 
312 312
 		// Force closing the connection for old versions of cURL (<7.22).
313
-		if ( ! isset( $headers['Connection'] ) ) {
313
+		if (!isset($headers['Connection'])) {
314 314
 			$headers['Connection'] = 'close';
315 315
 		}
316 316
 
Please login to merge, or discard this patch.
library/Requests/Transport/fsockopen.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@
 block discarded – undo
171 171
 		if (!isset($case_insensitive_headers['Host'])) {
172 172
 			$out .= sprintf('Host: %s', $url_parts['host']);
173 173
 
174
-			if (( 'http' === strtolower($url_parts['scheme']) && $url_parts['port'] !== 80 ) || ( 'https' === strtolower($url_parts['scheme']) && $url_parts['port'] !== 443 )) {
174
+			if (('http' === strtolower($url_parts['scheme']) && $url_parts['port'] !== 80) || ('https' === strtolower($url_parts['scheme']) && $url_parts['port'] !== 443)) {
175 175
 				$out .= ':' . $url_parts['port'];
176 176
 			}
177 177
 			$out .= "\r\n";
Please login to merge, or discard this patch.