@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | 'page_id' => $this->pageId, |
70 | 70 | 'title' => $this->title, |
71 | 71 | 'html' => $this->html, |
72 | - 'position' => (int) $this->position, |
|
72 | + 'position' => (int)$this->position, |
|
73 | 73 | 'updated_at' => $this->updatedAt->format(DateTime::ATOM), |
74 | 74 | 'active' => $this->active |
75 | 75 | ]; |
@@ -84,13 +84,13 @@ discard block |
||
84 | 84 | */ |
85 | 85 | public function fromDatabaseArray(array $data) |
86 | 86 | { |
87 | - $this->id = (int) $data['id']; |
|
88 | - $this->pageId = (int) $data['page_id']; |
|
89 | - $this->title = (string) $data['title']; |
|
90 | - $this->html = (string) $data['html']; |
|
91 | - $this->position = (int) $data['position']; |
|
87 | + $this->id = (int)$data['id']; |
|
88 | + $this->pageId = (int)$data['page_id']; |
|
89 | + $this->title = (string)$data['title']; |
|
90 | + $this->html = (string)$data['html']; |
|
91 | + $this->position = (int)$data['position']; |
|
92 | 92 | $this->updatedAt = new DateTime($data['updated_at']); |
93 | - $this->active = (bool) $data['active']; |
|
93 | + $this->active = (bool)$data['active']; |
|
94 | 94 | |
95 | 95 | return $this; |
96 | 96 | } |