@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | /** |
| 15 | 15 | * @param array $data |
| 16 | 16 | */ |
| 17 | - public function __construct(array $data = []) |
|
| 17 | + public function __construct(array $data = [ ]) |
|
| 18 | 18 | { |
| 19 | 19 | $this->populate($data); |
| 20 | 20 | } |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | * @param array $properties |
| 32 | 32 | * @return array |
| 33 | 33 | */ |
| 34 | - public function extract(array $properties = []) |
|
| 34 | + public function extract(array $properties = [ ]) |
|
| 35 | 35 | { |
| 36 | 36 | $state = get_object_vars($this); |
| 37 | 37 | |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | * @param array $array |
| 49 | 49 | * @return $this |
| 50 | 50 | */ |
| 51 | - public function populate(array $array = []) |
|
| 51 | + public function populate(array $array = [ ]) |
|
| 52 | 52 | { |
| 53 | 53 | $state = get_object_vars($this); |
| 54 | 54 | |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | /** |
| 8 | 8 | * @var array |
| 9 | 9 | */ |
| 10 | - private $errors = []; |
|
| 10 | + private $errors = [ ]; |
|
| 11 | 11 | |
| 12 | 12 | /** |
| 13 | 13 | * @param array $errors |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | if ($this->eventManager) { |
| 54 | - $data = ['id' => $id]; |
|
| 54 | + $data = [ 'id' => $id ]; |
|
| 55 | 55 | $event = $this->eventManager->createEvent('delete.validation', null, $data); |
| 56 | 56 | $this->eventManager->trigger($event); |
| 57 | 57 | |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | * @param array $filter |
| 82 | 82 | * @return EntityInterface[]|null |
| 83 | 83 | */ |
| 84 | - public function deleteAll(array $filter = []) |
|
| 84 | + public function deleteAll(array $filter = [ ]) |
|
| 85 | 85 | { |
| 86 | 86 | $criteria = $this->repository->createCriteria($filter); |
| 87 | 87 | $entities = $this->repository->findMany($criteria); |