@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | |
| 28 | 28 | protected $attributes = array(); |
| 29 | 29 | |
| 30 | - public function __construct( $configuration = array() ) { |
|
| 30 | + public function __construct($configuration = array()) { |
|
| 31 | 31 | |
| 32 | 32 | $this->attributes = array_merge($this->attributes, $configuration); |
| 33 | 33 | |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | |
| 36 | 36 | final public function get($property = null) { |
| 37 | 37 | |
| 38 | - if ( is_null($property) ) { |
|
| 38 | + if (is_null($property)) { |
|
| 39 | 39 | |
| 40 | 40 | return $this->attributes; |
| 41 | 41 | |
@@ -43,15 +43,15 @@ discard block |
||
| 43 | 43 | |
| 44 | 44 | $value = $this->attributes[$property]; |
| 45 | 45 | |
| 46 | - if ( is_scalar($value) && preg_match_all('/%(.+?)%/', $value, $matches, PREG_SET_ORDER) ) { |
|
| 46 | + if (is_scalar($value) && preg_match_all('/%(.+?)%/', $value, $matches, PREG_SET_ORDER)) { |
|
| 47 | 47 | |
| 48 | 48 | $substitutions = array(); |
| 49 | 49 | |
| 50 | - foreach ( $matches as $match ) { |
|
| 50 | + foreach ($matches as $match) { |
|
| 51 | 51 | |
| 52 | 52 | $backreference = $match[1]; |
| 53 | 53 | |
| 54 | - if ( $backreference != $property && !isset($substitutions['/%'.$backreference.'%/']) ) { |
|
| 54 | + if ($backreference != $property && !isset($substitutions['/%'.$backreference.'%/'])) { |
|
| 55 | 55 | |
| 56 | 56 | $substitutions['/%'.$backreference.'%/'] = $this->get($backreference); |
| 57 | 57 | |
@@ -89,13 +89,13 @@ discard block |
||
| 89 | 89 | |
| 90 | 90 | final public function delete($property = null) { |
| 91 | 91 | |
| 92 | - if ( is_null($property) ) { |
|
| 92 | + if (is_null($property)) { |
|
| 93 | 93 | |
| 94 | 94 | $this->attributes = array(); |
| 95 | 95 | |
| 96 | 96 | return true; |
| 97 | 97 | |
| 98 | - } else if ( $this->isDefined($property) ) { |
|
| 98 | + } else if ($this->isDefined($property)) { |
|
| 99 | 99 | |
| 100 | 100 | unset($this->attributes[$property]); |
| 101 | 101 | |