@@ -90,10 +90,10 @@ discard block |
||
| 90 | 90 | * @return \Pec\Bundle\MtuDvpBundle\Entity\TestRiskValue |
| 91 | 91 | */ |
| 92 | 92 | public function __get($name) { |
| 93 | - if(strrpos($name, 'facet_', -strlen($name)) !== false) { |
|
| 93 | + if (strrpos($name, 'facet_', -strlen($name)) !== false) { |
|
| 94 | 94 | $facetname = substr($name, 6); |
| 95 | 95 | |
| 96 | - if(isset($this->facets[$facetname])) { |
|
| 96 | + if (isset($this->facets[$facetname])) { |
|
| 97 | 97 | return $this->facets[$facetname]; |
| 98 | 98 | } |
| 99 | 99 | return array(); |
@@ -109,10 +109,10 @@ discard block |
||
| 109 | 109 | */ |
| 110 | 110 | public function __set($name, $value) { |
| 111 | 111 | debug_print_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 10); |
| 112 | - if(strrpos($name, 'facet_', -strlen($name)) !== false) { |
|
| 112 | + if (strrpos($name, 'facet_', -strlen($name)) !== false) { |
|
| 113 | 113 | $facetname = substr($name, 6); |
| 114 | 114 | |
| 115 | - if(!isset($this->facets[$facetname])) { |
|
| 115 | + if (!isset($this->facets[$facetname])) { |
|
| 116 | 116 | $this->facets[$facetname] = array(); |
| 117 | 117 | } |
| 118 | 118 | $this->facets[$facetname] = $value; |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | * @return boolean |
| 127 | 127 | */ |
| 128 | 128 | public function __isset($name) { |
| 129 | - if(strrpos($name, 'facet_', -strlen($name)) !== false) { |
|
| 129 | + if (strrpos($name, 'facet_', -strlen($name)) !== false) { |
|
| 130 | 130 | return true; |
| 131 | 131 | } |
| 132 | 132 | |