@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | * @param DataEntityInterface $entity |
55 | 55 | * @param array $data |
56 | 56 | */ |
57 | - protected function populateEntity(DataEntityInterface &$entity, array $data) |
|
57 | + protected function populateEntity(DataEntityInterface&$entity, array $data) |
|
58 | 58 | { |
59 | 59 | /* @var PolicyEntity $entity */ |
60 | 60 | $entity->setPolicyId($data[$this->idKey]) |
@@ -88,8 +88,8 @@ discard block |
||
88 | 88 | $this->name => $entity->getName(), |
89 | 89 | $this->title => $entity->getTitle(), |
90 | 90 | $this->description => $entity->getDescription(), |
91 | - $this->isReadOnly => (int)$entity->getReadOnly(), |
|
92 | - $this->isAllowed => (int)$entity->getAllowed(), |
|
91 | + $this->isReadOnly => (int) $entity->getReadOnly(), |
|
92 | + $this->isAllowed => (int) $entity->getAllowed(), |
|
93 | 93 | $this->dateCreated => $dateCreated instanceof DateTime ? $dateCreated->format('Y-m-d H:i:s') : null, |
94 | 94 | $this->dateModified => $dateModified instanceof DateTime ? $dateModified->format('Y-m-d H:i:s') : null |
95 | 95 | ]; |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | * @param DataEntityInterface &$entity |
102 | 102 | * @return mixed The ID of the saved entity in the storage |
103 | 103 | */ |
104 | - public function saveEntity(DataEntityInterface &$entity) |
|
104 | + public function saveEntity(DataEntityInterface&$entity) |
|
105 | 105 | { |
106 | 106 | $entityClass = get_class($entity); |
107 | 107 | $storageEntityClass = get_class($this->entityPrototype); |
@@ -141,5 +141,5 @@ discard block |
||
141 | 141 | * @param DataEntityInterface $entity |
142 | 142 | * @param array $data |
143 | 143 | */ |
144 | - abstract protected function populateEntity(DataEntityInterface &$entity, array $data); |
|
144 | + abstract protected function populateEntity(DataEntityInterface&$entity, array $data); |
|
145 | 145 | } |
@@ -19,11 +19,11 @@ |
||
19 | 19 | */ |
20 | 20 | class Result |
21 | 21 | { |
22 | - const FAILURE = 0; |
|
22 | + const FAILURE = 0; |
|
23 | 23 | const FAILURE_IDENTITY_NOT_FOUND = -1; |
24 | 24 | const FAILURE_CREDENTIAL_INVALID = -2; |
25 | 25 | const FAILURE_OTHER = -3; |
26 | - const SUCCESS = 1; |
|
26 | + const SUCCESS = 1; |
|
27 | 27 | |
28 | 28 | /** @var int */ |
29 | 29 | private $code; |