Passed
Push — master ( 052fbc...8e4462 )
by Gaetano
05:06
created
demo/vardemo.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -3,16 +3,16 @@  discard block
 block discarded – undo
3 3
 <body>
4 4
 <?php
5 5
 
6
-include_once __DIR__ . '/../vendor/autoload.php';
6
+include_once __DIR__.'/../vendor/autoload.php';
7 7
 
8 8
 $req = new PhpXmlRpc\Request('examples.getStateName');
9 9
 
10 10
 print "<h3>Testing value serialization</h3>\n";
11 11
 
12 12
 $v = new PhpXmlRpc\Value(23, "int");
13
-print "<PRE>" . htmlentities($v->serialize()) . "</PRE>";
13
+print "<PRE>".htmlentities($v->serialize())."</PRE>";
14 14
 $v = new PhpXmlRpc\Value("What are you saying? >> << &&");
15
-print "<PRE>" . htmlentities($v->serialize()) . "</PRE>";
15
+print "<PRE>".htmlentities($v->serialize())."</PRE>";
16 16
 
17 17
 $v = new PhpXmlRpc\Value(
18 18
     array(
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     "array"
24 24
 );
25 25
 
26
-print "<PRE>" . htmlentities($v->serialize()) . "</PRE>";
26
+print "<PRE>".htmlentities($v->serialize())."</PRE>";
27 27
 
28 28
 $v = new PhpXmlRpc\Value(
29 29
     array(
@@ -51,11 +51,11 @@  discard block
 block discarded – undo
51 51
     "struct"
52 52
 );
53 53
 
54
-print "<PRE>" . htmlentities($v->serialize()) . "</PRE>";
54
+print "<PRE>".htmlentities($v->serialize())."</PRE>";
55 55
 
56 56
 $w = new PhpXmlRpc\Value(array($v, new PhpXmlRpc\Value("That was the struct!")), "array");
57 57
 
58
-print "<PRE>" . htmlentities($w->serialize()) . "</PRE>";
58
+print "<PRE>".htmlentities($w->serialize())."</PRE>";
59 59
 
60 60
 $w = new PhpXmlRpc\Value("Mary had a little lamb,
61 61
 Whose fleece was white as snow,
@@ -67,26 +67,26 @@  discard block
 block discarded – undo
67 67
 Ten thousand volts went down its back
68 68
 And turned it into nylon", "base64"
69 69
 );
70
-print "<PRE>" . htmlentities($w->serialize()) . "</PRE>";
71
-print "<PRE>Value of base64 string is: '" . $w->scalarval() . "'</PRE>";
70
+print "<PRE>".htmlentities($w->serialize())."</PRE>";
71
+print "<PRE>Value of base64 string is: '".$w->scalarval()."'</PRE>";
72 72
 
73 73
 $req->method('');
74 74
 $req->addParam(new PhpXmlRpc\Value("41", "int"));
75 75
 
76 76
 print "<h3>Testing request serialization</h3>\n";
77 77
 $op = $req->serialize();
78
-print "<PRE>" . htmlentities($op) . "</PRE>";
78
+print "<PRE>".htmlentities($op)."</PRE>";
79 79
 
80 80
 print "<h3>Testing ISO date format</h3><pre>\n";
81 81
 
82 82
 $t = time();
83 83
 $date = PhpXmlRpc\Helper\Date::iso8601Encode($t);
84 84
 print "Now is $t --> $date\n";
85
-print "Or in UTC, that is " . PhpXmlRpc\Helper\Date::iso8601Encode($t, 1) . "\n";
85
+print "Or in UTC, that is ".PhpXmlRpc\Helper\Date::iso8601Encode($t, 1)."\n";
86 86
 $tb = PhpXmlRpc\Helper\Date::iso8601Decode($date);
87 87
 print "That is to say $date --> $tb\n";
88
-print "Which comes out at " . PhpXmlRpc\Helper\Date::iso8601Encode($tb) . "\n";
89
-print "Which was the time in UTC at " . PhpXmlRpc\Helper\Date::iso8601Encode($date, 1) . "\n";
88
+print "Which comes out at ".PhpXmlRpc\Helper\Date::iso8601Encode($tb)."\n";
89
+print "Which was the time in UTC at ".PhpXmlRpc\Helper\Date::iso8601Encode($date, 1)."\n";
90 90
 
91 91
 print "</pre>\n";
92 92
 
Please login to merge, or discard this patch.