@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | return false; |
| 207 | 207 | } |
| 208 | 208 | |
| 209 | - if ( !$this->can_do('midgard:update') |
|
| 209 | + if (!$this->can_do('midgard:update') |
|
| 210 | 210 | || !$this->can_do('midgard:parameters')) { |
| 211 | 211 | debug_add("Failed to set parameters, midgard:update or midgard:parameters on the " . get_class($this) . " {$this->guid} not granted for the current user.", |
| 212 | 212 | MIDCOM_LOG_ERROR); |
@@ -249,7 +249,7 @@ discard block |
||
| 249 | 249 | debug_add('Cannot delete parameters on a non-persistent object.', MIDCOM_LOG_WARN); |
| 250 | 250 | return false; |
| 251 | 251 | } |
| 252 | - if ( empty($domain) |
|
| 252 | + if (empty($domain) |
|
| 253 | 253 | || empty($name) |
| 254 | 254 | || !is_string($domain) |
| 255 | 255 | || !is_string($name)) { |
@@ -259,7 +259,7 @@ discard block |
||
| 259 | 259 | return false; |
| 260 | 260 | } |
| 261 | 261 | |
| 262 | - if ( !$this->can_do('midgard:update') |
|
| 262 | + if (!$this->can_do('midgard:update') |
|
| 263 | 263 | || !$this->can_do('midgard:parameters')) { |
| 264 | 264 | debug_add("Failed to delete parameters, midgard:update or midgard:parameters on the " . get_class($this) . " {$this->guid} not granted for the current user.", |
| 265 | 265 | MIDCOM_LOG_ERROR); |