aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-09-08 14:43:57 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-09-08 14:43:57 +0000
commitc2d738e09e15f10d8a4264ffaacd8940ac9a3a94 (patch)
tree49ffc44c7b648bb86d3b09260a6013916ea65446 /engine
parent1f389416f86c87478e53843186b2384cd6e71bfb (diff)
downloadelgg-c2d738e09e15f10d8a4264ffaacd8940ac9a3a94.tar.gz
elgg-c2d738e09e15f10d8a4264ffaacd8940ac9a3a94.tar.bz2
Refs #172: Removed line endings on spec.
git-svn-id: https://code.elgg.org/elgg/trunk@2062 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/xml-rpc.php44
1 files changed, 10 insertions, 34 deletions
diff --git a/engine/lib/xml-rpc.php b/engine/lib/xml-rpc.php
index 9a6fdf268..4e00bdd4a 100644
--- a/engine/lib/xml-rpc.php
+++ b/engine/lib/xml-rpc.php
@@ -102,7 +102,7 @@
function __toString()
{
- return "<value><i4>{$this->value}</i4></value>\n";
+ return "<value><i4>{$this->value}</i4></value>";
}
}
@@ -122,7 +122,7 @@
function __toString()
{
$code = ($this->value) ? "1" : "0";
- return "<value><boolean>{$code}</boolean></value>\n";
+ return "<value><boolean>{$code}</boolean></value>";
}
}
@@ -142,7 +142,7 @@
function __toString()
{
$value = htmlentities($this->value);
- return "<value><string>{$value}</string></value>\n";
+ return "<value><string>{$value}</string></value>";
}
}
@@ -161,7 +161,7 @@
function __toString()
{
- return "<value><double>{$this->value}</double></value>\n";
+ return "<value><double>{$this->value}</double></value>";
}
}
@@ -188,7 +188,7 @@
function __toString()
{
$value = date('c', $this->value);
- return "<value><dateTime.iso8601>{$value}</dateTime.iso8601></value>\n";
+ return "<value><dateTime.iso8601>{$value}</dateTime.iso8601></value>";
}
}
@@ -212,7 +212,7 @@
function __toString()
{
- return "<value><base64>{$value}</base64></value>\n";
+ return "<value><base64>{$value}</base64></value>";
}
}
@@ -260,11 +260,7 @@
$params .= "<member><name>$k</name>$v</member>";
}
- return <<< END
-<struct>
- $params
-</struct>
-END;
+ return "<struct>$params</struct>";
}
}
@@ -311,13 +307,7 @@ END;
$params .= "$value";
}
- return <<< END
-<array>
- <data>
- $params
- </data>
-</array>
-END;
+ return "<array><data>$params</data></array>";
}
}
@@ -364,13 +354,7 @@ END;
foreach ($this->parameters as $param)
$params .= "<param>$param</param>\n";
- return <<< END
-<methodResponse>
- <params>
- $params
- </params>
-</methodResponse>
-END;
+ return "<methodResponse><params>$params</params></methodResponse>";
}
}
@@ -403,15 +387,7 @@ END;
*/
public function __toString()
{
- return <<< END
-<methodResponse>
- <fault>
- <value>
- {$this->parameters[0]}
- </value>
- </fault>
-</methodResponse>
-END;
+ return "<methodResponse><fault><value>{$this->parameters[0]}</value></fault></methodResponse>";
}
}