@@ -43,8 +43,8 @@ |
||
43 | 43 | 'get' |
44 | 44 | ))->disableOriginalConstructor()->getMock(); |
45 | 45 | |
46 | - $container->method('get')->willReturnCallback(function ($serviceId) use ($that) { |
|
47 | - switch($serviceId) { |
|
46 | + $container->method('get')->willReturnCallback(function($serviceId) use ($that) { |
|
47 | + switch ($serviceId) { |
|
48 | 48 | case 'kernel': |
49 | 49 | return $that; |
50 | 50 | case 'doctrine.orm.entity_manager': |
@@ -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(); |
@@ -108,10 +108,10 @@ discard block |
||
108 | 108 | * The value of the property |
109 | 109 | */ |
110 | 110 | public function __set($name, $value) { |
111 | - if(strrpos($name, 'facet_', -strlen($name)) !== false) { |
|
111 | + if (strrpos($name, 'facet_', -strlen($name)) !== false) { |
|
112 | 112 | $facetname = substr($name, 6); |
113 | 113 | |
114 | - if(!isset($this->facets[$facetname])) { |
|
114 | + if (!isset($this->facets[$facetname])) { |
|
115 | 115 | $this->facets[$facetname] = array(); |
116 | 116 | } |
117 | 117 | $this->facets[$facetname] = $value; |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | * @return boolean |
126 | 126 | */ |
127 | 127 | public function __isset($name) { |
128 | - if(strrpos($name, 'facet_', -strlen($name)) !== false) { |
|
128 | + if (strrpos($name, 'facet_', -strlen($name)) !== false) { |
|
129 | 129 | return true; |
130 | 130 | } |
131 | 131 |