@@ -71,12 +71,12 @@ |
||
| 71 | 71 | public function getEntityFromDatabaseArray(array $data): CachesEntity |
| 72 | 72 | { |
| 73 | 73 | $entity = new CachesEntity(); |
| 74 | - $entity->id = (int) $data['cache_id']; |
|
| 74 | + $entity->id = (int)$data['cache_id']; |
|
| 75 | 75 | $entity->name = $data['name']; |
| 76 | 76 | $entity->wp_gc = $data['wp_gc']; |
| 77 | 77 | $entity->wp_oc = $data['wp_oc']; |
| 78 | - $entity->latitude = (double) $data['latitude']; |
|
| 79 | - $entity->longitude = (double) $data['longitude']; |
|
| 78 | + $entity->latitude = (double)$data['latitude']; |
|
| 79 | + $entity->longitude = (double)$data['longitude']; |
|
| 80 | 80 | |
| 81 | 81 | return $entity; |
| 82 | 82 | } |
@@ -84,10 +84,11 @@ |
||
| 84 | 84 | */ |
| 85 | 85 | public function isActiveAndFindableAndSoOn(): bool |
| 86 | 86 | { |
| 87 | - if ($this->status == 1) |
|
| 88 | - return $this->true; |
|
| 89 | - else |
|
| 90 | - return $this->false; |
|
| 87 | + if ($this->status == 1) { |
|
| 88 | + return $this->true; |
|
| 89 | + } else { |
|
| 90 | + return $this->false; |
|
| 91 | + } |
|
| 91 | 92 | } |
| 92 | 93 | |
| 93 | 94 | public function getName(): string |