@@ -33,10 +33,10 @@ discard block |
||
| 33 | 33 | * @param \Aimeos\MShop\Common\Item\Iface[] $refItems List of referenced items |
| 34 | 34 | * @param \Aimeos\MShop\Common\Item\Helper\Password\Iface|null $helper Password encryption helper object |
| 35 | 35 | */ |
| 36 | - public function __construct( \Aimeos\MShop\Common\Item\Address\Iface $address, array $values = [], array $listItems = [], |
|
| 37 | - array $refItems = [], $salt = '', \Aimeos\MShop\Common\Item\Helper\Password\Iface $helper = null, array $addresses = [] ) |
|
| 36 | + public function __construct(\Aimeos\MShop\Common\Item\Address\Iface $address, array $values = [], array $listItems = [], |
|
| 37 | + array $refItems = [], $salt = '', \Aimeos\MShop\Common\Item\Helper\Password\Iface $helper = null, array $addresses = []) |
|
| 38 | 38 | { |
| 39 | - parent::__construct( $address, $values, $listItems, $refItems, $salt, $helper, $addresses ); |
|
| 39 | + parent::__construct($address, $values, $listItems, $refItems, $salt, $helper, $addresses); |
|
| 40 | 40 | |
| 41 | 41 | $this->values = $values; |
| 42 | 42 | $this->helper = $helper; |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | */ |
| 52 | 52 | public function getPassword() |
| 53 | 53 | { |
| 54 | - if( isset( $this->values['customer.password'] ) ) { |
|
| 54 | + if (isset($this->values['customer.password'])) { |
|
| 55 | 55 | return (string) $this->values['customer.password']; |
| 56 | 56 | } |
| 57 | 57 | |
@@ -65,12 +65,12 @@ discard block |
||
| 65 | 65 | * @param string $value Password of the customer item |
| 66 | 66 | * @return \Aimeos\MShop\Customer\Item\Iface Customer item for chaining method calls |
| 67 | 67 | */ |
| 68 | - public function setPassword( $value ) |
|
| 68 | + public function setPassword($value) |
|
| 69 | 69 | { |
| 70 | - if( (string) $value !== $this->getPassword() ) |
|
| 70 | + if ((string) $value !== $this->getPassword()) |
|
| 71 | 71 | { |
| 72 | - if( $this->helper !== null ) { |
|
| 73 | - $value = $this->helper->encode( $value, $this->getSalt() ); |
|
| 72 | + if ($this->helper !== null) { |
|
| 73 | + $value = $this->helper->encode($value, $this->getSalt()); |
|
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | $this->values['customer.password'] = (string) $value; |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | */ |
| 89 | 89 | public function getRoles() |
| 90 | 90 | { |
| 91 | - if( isset( $this->values['roles'] ) ) { |
|
| 91 | + if (isset($this->values['roles'])) { |
|
| 92 | 92 | return (array) $this->values['roles']; |
| 93 | 93 | } |
| 94 | 94 | |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | * |
| 102 | 102 | * @param array $roles List of Symfony roles |
| 103 | 103 | */ |
| 104 | - public function setRoles( array $roles ) |
|
| 104 | + public function setRoles(array $roles) |
|
| 105 | 105 | { |
| 106 | 106 | $this->values['roles'] = $roles; |
| 107 | 107 | $this->setModified(); |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | */ |
| 118 | 118 | public function getSalt() |
| 119 | 119 | { |
| 120 | - if( isset( $this->values['salt'] ) ) { |
|
| 120 | + if (isset($this->values['salt'])) { |
|
| 121 | 121 | return $this->values['salt']; |
| 122 | 122 | } |
| 123 | 123 | |
@@ -130,9 +130,9 @@ discard block |
||
| 130 | 130 | * |
| 131 | 131 | * @param string $value Password salt |
| 132 | 132 | */ |
| 133 | - public function setSalt( $value ) |
|
| 133 | + public function setSalt($value) |
|
| 134 | 134 | { |
| 135 | - if( (string) $value !== $this->getSalt() ) |
|
| 135 | + if ((string) $value !== $this->getSalt()) |
|
| 136 | 136 | { |
| 137 | 137 | $this->values['salt'] = (string) $value; |
| 138 | 138 | $this->setModified(); |