@@ -226,12 +226,12 @@ |
||
226 | 226 | if (count($paths) > 1) { |
227 | 227 | $queryBuilder |
228 | 228 | ->join($this->getPropertyName($paths[0]), '_p1') |
229 | - ->where('_p1.' . $paths[1] . ' = :value') |
|
229 | + ->where('_p1.'.$paths[1].' = :value') |
|
230 | 230 | ->setParameter('value', $value) |
231 | 231 | ; |
232 | 232 | } else { |
233 | 233 | $queryBuilder |
234 | - ->where($this->getPropertyName($propertyPath) . ' = :value') |
|
234 | + ->where($this->getPropertyName($propertyPath).' = :value') |
|
235 | 235 | ->setParameter('value', $value) |
236 | 236 | ; |
237 | 237 | } |
@@ -71,7 +71,7 @@ |
||
71 | 71 | { |
72 | 72 | $gender = CustomerInterface::UNKNOWN_GENDER; |
73 | 73 | |
74 | - switch($this->getPathValue('gender')) { |
|
74 | + switch ($this->getPathValue('gender')) { |
|
75 | 75 | case 'male': |
76 | 76 | $gender = CustomerInterface::MALE_GENDER; |
77 | 77 | break; |
@@ -98,8 +98,7 @@ discard block |
||
98 | 98 | { |
99 | 99 | $customer = $this->getCustomer(); |
100 | 100 | |
101 | - return $this->displayname ?: |
|
102 | - ( |
|
101 | + return $this->displayname ?: ( |
|
103 | 102 | $customer && trim($customer->getFullName()) |
104 | 103 | ? $customer->getFullName() |
105 | 104 | : $this->username |
@@ -150,7 +149,7 @@ discard block |
||
150 | 149 | */ |
151 | 150 | public function getMediaPath() |
152 | 151 | { |
153 | - return '/user/' . $this->usernameCanonical; |
|
152 | + return '/user/'.$this->usernameCanonical; |
|
154 | 153 | } |
155 | 154 | |
156 | 155 | /** |
@@ -227,7 +226,7 @@ discard block |
||
227 | 226 | */ |
228 | 227 | public function setEnabled($boolean) |
229 | 228 | { |
230 | - $this->enabled = (Boolean)$boolean; |
|
229 | + $this->enabled = (Boolean) $boolean; |
|
231 | 230 | |
232 | 231 | if (!$this->isConfirmed()) { |
233 | 232 | $this->enabled = false; |
@@ -38,7 +38,7 @@ |
||
38 | 38 | } |
39 | 39 | |
40 | 40 | if (!$owner = $entity->getAclOwner()) { |
41 | - throw new \RuntimeException("Not found AclOwner for: " . get_class($entity)); |
|
41 | + throw new \RuntimeException("Not found AclOwner for: ".get_class($entity)); |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | $this->container->get('oneup_acl.manager') |