@@ -73,7 +73,7 @@ |
||
| 73 | 73 | |
| 74 | 74 | // If a property of this name exists |
| 75 | 75 | if (isset($this->_properties->$method)) { |
| 76 | - $property =& $this->_properties->$method; |
|
| 76 | + $property = & $this->_properties->$method; |
|
| 77 | 77 | $itemIndex = count($arguments) ? intval($arguments[0]) : null; |
| 78 | 78 | |
| 79 | 79 | // If the whole property value list should be returned |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | if (is_array($values)) { |
| 117 | 117 | $property = lcfirst(implode('', array_map('ucfirst', explode('-', $property)))); |
| 118 | 118 | $this->_properties->$property = array(); |
| 119 | - $propertyValues =& $this->_properties->$property; |
|
| 119 | + $propertyValues = & $this->_properties->$property; |
|
| 120 | 120 | $hasSubItems = false; |
| 121 | 121 | foreach ($values as $value) { |
| 122 | 122 | if ($this->_isItem($value)) { |
@@ -126,8 +126,7 @@ discard block |
||
| 126 | 126 | } |
| 127 | 127 | foreach ($values as $value) { |
| 128 | 128 | $propertyValues[] = $hasSubItems ? |
| 129 | - (($value instanceof ItemInterface) ? $value : new $classname((array)$value, $this->_url)) : |
|
| 130 | - $this->_resolveUrlValue($property, $value); |
|
| 129 | + (($value instanceof ItemInterface) ? $value : new $classname((array)$value, $this->_url)) : $this->_resolveUrlValue($property, $value); |
|
| 131 | 130 | } |
| 132 | 131 | } |
| 133 | 132 | } |
@@ -196,7 +195,7 @@ discard block |
||
| 196 | 195 | |
| 197 | 196 | // If a single property value was requested |
| 198 | 197 | if (isset($this->_properties->$key)) { |
| 199 | - $property =& $this->_properties->$key; |
|
| 198 | + $property = & $this->_properties->$key; |
|
| 200 | 199 | return $property[0]; |
| 201 | 200 | |
| 202 | 201 | // Else: If a property value list was requested |
@@ -191,8 +191,7 @@ |
||
| 191 | 191 | */ |
| 192 | 192 | public function isRelative() |
| 193 | 193 | { |
| 194 | - return empty($this->_parts['path']) ? false : |
|
| 195 | - (empty($this->_parts['host']) && (boolean)strncmp($this->_parts['path'], '/', 1)); |
|
| 194 | + return empty($this->_parts['path']) ? false : (empty($this->_parts['host']) && (boolean)strncmp($this->_parts['path'], '/', 1)); |
|
| 196 | 195 | } |
| 197 | 196 | |
| 198 | 197 | /** |