Aesthetic changes
authorgggeek <giunta.gaetano@gmail.com>
Thu, 26 Mar 2015 10:47:02 +0000 (10:47 +0000)
committergggeek <giunta.gaetano@gmail.com>
Thu, 26 Mar 2015 10:47:02 +0000 (10:47 +0000)
doc/highlight.php
src/Client.php

index 9f44b2c..750261b 100644 (file)
@@ -19,11 +19,11 @@ function highlight($file)
         if ($code[strlen($code) - 1] == "\n") {
             $code = substr($code, 0, -1);
         }
-//var_dump($code);
+
         $code = str_replace(array('&gt;', '&lt;'), array('>', '<'), $code);
         $code = highlight_string('<?php ' . $code, true);
         $code = str_replace('<span style="color: #0000BB">&lt;?php&nbsp;<br />', '<span style="color: #0000BB">', $code);
-//echo($code);
+
         $out = $out . substr($content, $last, $start + strlen($starttag) - $last) . $code . $endtag;
         $last = $end + strlen($endtag);
     }
index ce1d6a5..4331c4c 100644 (file)
@@ -5,16 +5,19 @@ namespace PhpXmlRpc;
 class Client
 {
     /// @todo: do these need to be public?
-    public $path;
+    public $method = 'http';
     public $server;
     public $port = 0;
-    public $method = 'http';
+    public $path;
+
     public $errno;
     public $errstr;
     public $debug = 0;
+
     public $username = '';
     public $password = '';
     public $authtype = 1;
+
     public $cert = '';
     public $certpass = '';
     public $cacert = '';
@@ -24,15 +27,18 @@ class Client
     public $verifypeer = true;
     public $verifyhost = 2;
     public $sslversion = 0; // corresponds to CURL_SSLVERSION_DEFAULT
-    public $no_multicall = false;
+
     public $proxy = '';
     public $proxyport = 0;
     public $proxy_user = '';
     public $proxy_pass = '';
     public $proxy_authtype = 1;
+
     public $cookies = array();
     public $extracurlopts = array();
 
+    public $no_multicall = false;
+
     /**
      * List of http compression methods accepted by the client for responses.
      * NB: PHP supports deflate, gzip compressions out of the box if compiled w. zlib.