Skip to content

Commit

Permalink
CS
Browse files Browse the repository at this point in the history
  • Loading branch information
evert committed May 19, 2016
1 parent ebce7ce commit f48d98c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/Deserializer/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ function valueObject(Reader $reader, $className, $namespace) {
*/
function repeatingElements(Reader $reader, $childElementName) {

if ($childElementName[0]!=='{') {
if ($childElementName[0] !== '{') {
$childElementName = '{}' . $childElementName;
}
$result = [];
Expand Down
4 changes: 2 additions & 2 deletions lib/Reader.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,8 @@ function getDeserializerForElementName($name) {


if (!array_key_exists($name, $this->elementMap)) {
if (substr($name,0,2)=='{}' && array_key_exists(substr($name,2), $this->elementMap)) {
$name = substr($name,2);
if (substr($name, 0, 2) == '{}' && array_key_exists(substr($name, 2), $this->elementMap)) {
$name = substr($name, 2);
} else {
return ['Sabre\\Xml\\Element\\Base', 'xmlDeserialize'];
}
Expand Down
4 changes: 2 additions & 2 deletions lib/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ function expect($rootElementName, $input, $contextUri = null) {

$rootElementName = (array)$rootElementName;

foreach($rootElementName as &$rEl) {
if ($rEl[0]!=='{') $rEl = '{}' . $rEl;
foreach ($rootElementName as &$rEl) {
if ($rEl[0] !== '{') $rEl = '{}' . $rEl;
}

$result = $r->parse();
Expand Down

0 comments on commit f48d98c

Please sign in to comment.