@@ -12,13 +12,11 @@ |
||
12 | 12 | use Pimple\ServiceProviderInterface; |
13 | 13 | |
14 | 14 | // Local dependencies |
15 | -use Charcoal\Cms\Config; |
|
16 | 15 | |
17 | 16 | // Cms Loaders |
18 | 17 | use Charcoal\Cms\Service\Loader\SectionLoader; |
19 | 18 | |
20 | 19 | // dependencies from `charcoal-core` |
21 | -use Charcoal\Model\AbstractModel; |
|
22 | 20 | |
23 | 21 | // dependencies from `charcoal-cms` |
24 | 22 | use Charcoal\Cms\SectionInterface; |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | * @param Container $container |
52 | 52 | * @return CmsConfig Website configurations (from cms.json). |
53 | 53 | */ |
54 | - $container['cms/config'] = function (Container $container) { |
|
54 | + $container['cms/config'] = function(Container $container) { |
|
55 | 55 | $appConfig = $container['config']; |
56 | 56 | $cms = $appConfig->get('cms'); |
57 | 57 | |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | * @param Container $container Pimple DI Container. |
85 | 85 | * @return DateHelper |
86 | 86 | */ |
87 | - $container['cms/date/helper'] = function (Container $container) { |
|
87 | + $container['cms/date/helper'] = function(Container $container) { |
|
88 | 88 | return new DateHelper([ |
89 | 89 | 'date_formats' => $container['cms/config']->get('date_formats'), |
90 | 90 | 'time_formats' => $container['cms/config']->get('time_formats'), |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | * @param Container $container Pimple DI Container. |
97 | 97 | * @return DateHelper |
98 | 98 | */ |
99 | - $container['date/helper'] = function (Container $container) { |
|
99 | + $container['date/helper'] = function(Container $container) { |
|
100 | 100 | trigger_error(sprintf( |
101 | 101 | '%s is deprecated, use %s instead', |
102 | 102 | '$container[\'date/helper\']', |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | * @param Container $container Pimple DI Container. |
122 | 122 | * @return GenericFactory |
123 | 123 | */ |
124 | - $container['cms/section/factory'] = function (Container $container) { |
|
124 | + $container['cms/section/factory'] = function(Container $container) { |
|
125 | 125 | return new GenericFactory([ |
126 | 126 | 'base_class' => SectionInterface::class, |
127 | 127 | 'arguments' => $container['model/factory']->arguments(), |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | * @param Container $container Pimple DI Container. |
136 | 136 | * @return SectionLoader |
137 | 137 | */ |
138 | - $container['cms/section/loader'] = function (Container $container) { |
|
138 | + $container['cms/section/loader'] = function(Container $container) { |
|
139 | 139 | $sectionLoader = new SectionLoader([ |
140 | 140 | 'loader' => $container['model/collection/loader'], |
141 | 141 | 'factory' => $container['model/factory'], |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | * @param Container $container Pimple DI Container. |
165 | 165 | * @return NewsLoader |
166 | 166 | */ |
167 | - $container['cms/news/loader'] = function (Container $container) { |
|
167 | + $container['cms/news/loader'] = function(Container $container) { |
|
168 | 168 | $newsLoader = new NewsLoader([ |
169 | 169 | 'loader' => $container['model/collection/loader'], |
170 | 170 | 'factory' => $container['model/factory'], |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | * @param Container $container |
186 | 186 | * @return NewsManager |
187 | 187 | */ |
188 | - $container['cms/news/manager'] = function (Container $container) { |
|
188 | + $container['cms/news/manager'] = function(Container $container) { |
|
189 | 189 | |
190 | 190 | $newsManager = new NewsManager([ |
191 | 191 | 'loader' => $container['model/collection/loader'], |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | * @param Container $container Pimple DI Container. |
211 | 211 | * @return EventLoader |
212 | 212 | */ |
213 | - $container['cms/event/loader'] = function (Container $container) { |
|
213 | + $container['cms/event/loader'] = function(Container $container) { |
|
214 | 214 | $eventLoader = new EventLoader([ |
215 | 215 | 'loader' => $container['model/collection/loader'], |
216 | 216 | 'factory' => $container['model/factory'], |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | * @param Container $container |
235 | 235 | * @return EventManager |
236 | 236 | */ |
237 | - $container['cms/event/manager'] = function (Container $container) { |
|
237 | + $container['cms/event/manager'] = function(Container $container) { |
|
238 | 238 | |
239 | 239 | $eventManager = new EventManager([ |
240 | 240 | 'loader' => $container['model/collection/loader'], |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | /** |
28 | 28 | * Formatted event list |
29 | 29 | * Return the entries for the current page |
30 | - * @return \Generator|void |
|
30 | + * @return \Generator |
|
31 | 31 | */ |
32 | 32 | public function eventsList() |
33 | 33 | { |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | /** |
42 | 42 | * Formatted event archive list |
43 | 43 | * Returns the entries for the current page. |
44 | - * @return \Generator|void |
|
44 | + * @return \Generator |
|
45 | 45 | */ |
46 | 46 | public function eventArchiveList() |
47 | 47 | { |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | } |
74 | 74 | |
75 | 75 | /** |
76 | - * @return mixed |
|
76 | + * @return \Generator |
|
77 | 77 | */ |
78 | 78 | public function featEvents() |
79 | 79 | { |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | |
123 | 123 | /** |
124 | 124 | * Amount of events (total) |
125 | - * @return integer How many events? |
|
125 | + * @return boolean How many events? |
|
126 | 126 | */ |
127 | 127 | public function numEvent() |
128 | 128 | { |
@@ -228,8 +228,8 @@ discard block |
||
228 | 228 | protected function eventFormatShort(EventInterface $event) |
229 | 229 | { |
230 | 230 | return [ |
231 | - 'title' => (string)$event->title(), |
|
232 | - 'url' => (string)$event->url(), |
|
231 | + 'title' => (string) $event->title(), |
|
232 | + 'url' => (string) $event->url(), |
|
233 | 233 | 'startDate' => $this->getEventStartDateFormat($event), |
234 | 234 | 'startDateTime' => $event->startDate()->format('Y-m-d h:i'), |
235 | 235 | 'endDate' => $this->getEventEndDateFormat($event), |
@@ -254,7 +254,7 @@ discard block |
||
254 | 254 | 'endDateTime' => $event->endDate()->format('Y-m-d h:i'), |
255 | 255 | 'date' => $this->getEventDateFormat($event), |
256 | 256 | 'time' => $this->getEventTimeFormat($event), |
257 | - 'title' => (string)$event->title(), |
|
257 | + 'title' => (string) $event->title(), |
|
258 | 258 | 'url' => $event->url() |
259 | 259 | ]; |
260 | 260 | } |
@@ -271,9 +271,9 @@ discard block |
||
271 | 271 | |
272 | 272 | return [ |
273 | 273 | 'id' => $event->id(), |
274 | - 'title' => (string)$event->title(), |
|
275 | - 'summary' => (string)$event->summary(), |
|
276 | - 'content' => (string)$event->content(), |
|
274 | + 'title' => (string) $event->title(), |
|
275 | + 'summary' => (string) $event->summary(), |
|
276 | + 'content' => (string) $event->content(), |
|
277 | 277 | 'image' => $event->image(), |
278 | 278 | 'startDate' => $this->getEventStartDateFormat($event), |
279 | 279 | 'startDateTime' => $event->startDate()->format('Y-m-d h:i'), |
@@ -288,9 +288,9 @@ discard block |
||
288 | 288 | 'gallery' => $gallery, |
289 | 289 | 'hasGallery' => !!(count($gallery)), |
290 | 290 | 'url' => $event->url(), |
291 | - 'metaTitle' => (string)$event->metaTitle(), |
|
292 | - 'locationName' => (string)$event->locationName(), |
|
293 | - 'dateNotes' => (string)$event->dateNotes(), |
|
291 | + 'metaTitle' => (string) $event->metaTitle(), |
|
292 | + 'locationName' => (string) $event->locationName(), |
|
293 | + 'dateNotes' => (string) $event->dateNotes(), |
|
294 | 294 | 'category' => $event->category() |
295 | 295 | ]; |
296 | 296 | } |
@@ -303,7 +303,7 @@ discard block |
||
303 | 303 | { |
304 | 304 | return [ |
305 | 305 | 'id' => $category->id(), |
306 | - 'name' => (string)$category->name(), |
|
306 | + 'name' => (string) $category->name(), |
|
307 | 307 | ]; |
308 | 308 | } |
309 | 309 |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | /** |
33 | 33 | * Formatted news list |
34 | 34 | * Returns the entries for the current page. |
35 | - * @return \Generator|void |
|
35 | + * @return \Generator |
|
36 | 36 | */ |
37 | 37 | public function newsList() |
38 | 38 | { |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | /** |
46 | 46 | * Formatted news archive list |
47 | 47 | * Returns the entries for the current page. |
48 | - * @return \Generator|void |
|
48 | + * @return \Generator |
|
49 | 49 | */ |
50 | 50 | public function newsArchiveList() |
51 | 51 | { |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | |
125 | 125 | /** |
126 | 126 | * Amount of news (total) |
127 | - * @return integer How many news? |
|
127 | + * @return boolean How many news? |
|
128 | 128 | */ |
129 | 129 | public function numNews() |
130 | 130 | { |
@@ -192,8 +192,8 @@ discard block |
||
192 | 192 | protected function newsFormatShort(NewsInterface $news) |
193 | 193 | { |
194 | 194 | return [ |
195 | - 'title' => (string)$news->title(), |
|
196 | - 'url' => (string)$news->url(), |
|
195 | + 'title' => (string) $news->title(), |
|
196 | + 'url' => (string) $news->url(), |
|
197 | 197 | 'date' => $this->getNewsDateFormat($news), |
198 | 198 | 'dateTime' => $news->newsDate()->format('Y-m-d h:i'), |
199 | 199 | 'active' => ($this->currentNews() && ($this->currentNews()['id'] == $news->id())), |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | return [ |
213 | 213 | 'date' => $this->getNewsDateFormat($news), |
214 | 214 | 'dateTime' => $news->newsDate()->format('Y-m-d h:i'), |
215 | - 'title' => (string)$news->title(), |
|
215 | + 'title' => (string) $news->title(), |
|
216 | 216 | 'url' => $news->url(), |
217 | 217 | 'category' => $news->category(), |
218 | 218 | 'categoryName' => $this->newsCategory($news)->name() |
@@ -231,9 +231,9 @@ discard block |
||
231 | 231 | |
232 | 232 | return [ |
233 | 233 | 'id' => $news->id(), |
234 | - 'title' => (string)$news->title(), |
|
235 | - 'summary' => (string)$news->summary(), |
|
236 | - 'content' => (string)$news->content(), |
|
234 | + 'title' => (string) $news->title(), |
|
235 | + 'summary' => (string) $news->summary(), |
|
236 | + 'content' => (string) $news->content(), |
|
237 | 237 | 'image' => $news->image(), |
238 | 238 | 'date' => $this->getNewsDateFormat($news), |
239 | 239 | 'dateTime' => $news->newsDate()->format('Y-m-d h:i'), |
@@ -244,7 +244,7 @@ discard block |
||
244 | 244 | 'gallery' => $gallery, |
245 | 245 | 'hasGallery' => !!(count($gallery)), |
246 | 246 | 'url' => $news->url(), |
247 | - 'metaTitle' => (string)$news->metaTitle(), |
|
247 | + 'metaTitle' => (string) $news->metaTitle(), |
|
248 | 248 | 'category' => $news->category(), |
249 | 249 | 'categoryName' => $this->newsCategory($news)->name() |
250 | 250 | ]; |
@@ -258,7 +258,7 @@ discard block |
||
258 | 258 | { |
259 | 259 | return [ |
260 | 260 | 'id' => $category->id(), |
261 | - 'name' => (string)$category->name(), |
|
261 | + 'name' => (string) $category->name(), |
|
262 | 262 | ]; |
263 | 263 | } |
264 | 264 |
@@ -71,7 +71,7 @@ |
||
71 | 71 | |
72 | 72 | /** |
73 | 73 | * Gets latest route for the given slug. |
74 | - * @return string The latest url. |
|
74 | + * @return \Closure The latest url. |
|
75 | 75 | */ |
76 | 76 | public function routes() |
77 | 77 | { |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | */ |
76 | 76 | public function routes() |
77 | 77 | { |
78 | - return function ($arg) { |
|
78 | + return function($arg) { |
|
79 | 79 | return $this->sectionLoader()->resolveRoute($arg); |
80 | 80 | }; |
81 | 81 | } |
@@ -177,10 +177,10 @@ discard block |
||
177 | 177 | $documents = $section->attachments('document'); |
178 | 178 | |
179 | 179 | return [ |
180 | - 'title' => (string)$section->title(), |
|
181 | - 'summary' => (string)$section->summary(), |
|
182 | - 'image' => (string)$section->image(), |
|
183 | - 'content' => (string)$section->content(), |
|
180 | + 'title' => (string) $section->title(), |
|
181 | + 'summary' => (string) $section->summary(), |
|
182 | + 'image' => (string) $section->image(), |
|
183 | + 'content' => (string) $section->content(), |
|
184 | 184 | 'contentBlocks' => $contentBlocks, |
185 | 185 | 'gallery' => $gallery, |
186 | 186 | 'documents' => $documents |
@@ -47,8 +47,8 @@ discard block |
||
47 | 47 | { |
48 | 48 | $now = new DateTime(); |
49 | 49 | $loader = $this->all(); |
50 | - $loader->addFilter('publish_date', $now->format('Y-m-d H:i:s'), [ 'operator' => '<=' ]) |
|
51 | - ->addFilter('expiry_date', $now->format('Y-m-d H:i:s'), [ 'operator' => '>=' ]); |
|
50 | + $loader->addFilter('publish_date', $now->format('Y-m-d H:i:s'), ['operator' => '<=']) |
|
51 | + ->addFilter('expiry_date', $now->format('Y-m-d H:i:s'), ['operator' => '>=']); |
|
52 | 52 | |
53 | 53 | return $loader; |
54 | 54 | } |
@@ -60,8 +60,8 @@ discard block |
||
60 | 60 | { |
61 | 61 | $now = new DateTime(); |
62 | 62 | $loader = $this->all(); |
63 | - $loader->addFilter('publish_date', $now->format('Y-m-d H:i:s'), [ 'operator' => '<=' ]) |
|
64 | - ->addFilter('expiry_date', $now->format('Y-m-d H:i:s'), [ 'operator' => '<=' ]); |
|
63 | + $loader->addFilter('publish_date', $now->format('Y-m-d H:i:s'), ['operator' => '<=']) |
|
64 | + ->addFilter('expiry_date', $now->format('Y-m-d H:i:s'), ['operator' => '<=']); |
|
65 | 65 | |
66 | 66 | return $loader; |
67 | 67 | } |
@@ -98,7 +98,7 @@ |
||
98 | 98 | // ========================================================================== |
99 | 99 | |
100 | 100 | /** |
101 | - * @return mixed |
|
101 | + * @return string |
|
102 | 102 | */ |
103 | 103 | public function median() |
104 | 104 | { |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | } |
217 | 217 | |
218 | 218 | if ($this->category()) { |
219 | - $loader->addFilter('category', $this->category(), [ 'operator' => 'in' ]); |
|
219 | + $loader->addFilter('category', $this->category(), ['operator' => 'in']); |
|
220 | 220 | } |
221 | 221 | |
222 | 222 | if ($this->numPerPage()) { |
@@ -321,8 +321,8 @@ discard block |
||
321 | 321 | |
322 | 322 | $ids = explode(',', $ids); |
323 | 323 | |
324 | - $loader->addFilter('id', $ids, [ 'operator' => 'in' ]) |
|
325 | - ->addOrder('id', 'values', [ 'values' => $ids ]); |
|
324 | + $loader->addFilter('id', $ids, ['operator' => 'in']) |
|
325 | + ->addOrder('id', 'values', ['values' => $ids]); |
|
326 | 326 | |
327 | 327 | if (count($options) > 0) { |
328 | 328 | foreach ($options as $key => $option) { |
@@ -369,7 +369,7 @@ discard block |
||
369 | 369 | $loader = $this->loader()->archive(); |
370 | 370 | |
371 | 371 | if ($this->category()) { |
372 | - $loader->addFilter('category', $this->category(), [ 'operator' => 'in' ]); |
|
372 | + $loader->addFilter('category', $this->category(), ['operator' => 'in']); |
|
373 | 373 | } |
374 | 374 | if ($this->numPerPage()) { |
375 | 375 | $loader->setPage($this->page()); |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | |
231 | 231 | /** |
232 | 232 | * @param integer|null $id The event id. |
233 | - * @return mixed |
|
233 | + * @return EventInterface |
|
234 | 234 | */ |
235 | 235 | public function entry($id = null) |
236 | 236 | { |
@@ -398,7 +398,7 @@ discard block |
||
398 | 398 | } |
399 | 399 | |
400 | 400 | /** |
401 | - * @return mixed The previous event |
|
401 | + * @return EventInterface The previous event |
|
402 | 402 | */ |
403 | 403 | public function prev() |
404 | 404 | { |
@@ -410,7 +410,7 @@ discard block |
||
410 | 410 | } |
411 | 411 | |
412 | 412 | /** |
413 | - * @return mixed The next event |
|
413 | + * @return EventInterface The next event |
|
414 | 414 | */ |
415 | 415 | public function next() |
416 | 416 | { |
@@ -504,7 +504,7 @@ discard block |
||
504 | 504 | |
505 | 505 | /** |
506 | 506 | * Amount of event (total) |
507 | - * @return integer How many event? |
|
507 | + * @return boolean How many event? |
|
508 | 508 | */ |
509 | 509 | public function numEvent() |
510 | 510 | { |
@@ -567,7 +567,7 @@ discard block |
||
567 | 567 | } |
568 | 568 | |
569 | 569 | /** |
570 | - * @return mixed |
|
570 | + * @return string |
|
571 | 571 | */ |
572 | 572 | public function featIdent() |
573 | 573 | { |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | $loader->addOrder('news_date', 'desc'); |
123 | 123 | |
124 | 124 | if ($this->category()) { |
125 | - $loader->addFilter('category', $this->category(), [ 'operator' => 'in' ]); |
|
125 | + $loader->addFilter('category', $this->category(), ['operator' => 'in']); |
|
126 | 126 | } |
127 | 127 | if ($this->numPerPage()) { |
128 | 128 | $loader->setPage($this->page()); |
@@ -223,8 +223,8 @@ discard block |
||
223 | 223 | |
224 | 224 | $ids = explode(',', $ids); |
225 | 225 | |
226 | - $loader->addFilter('id', $ids, [ 'operator' => 'in' ]) |
|
227 | - ->addOrder('id', 'values', [ 'values' => $ids ]); |
|
226 | + $loader->addFilter('id', $ids, ['operator' => 'in']) |
|
227 | + ->addOrder('id', 'values', ['values' => $ids]); |
|
228 | 228 | |
229 | 229 | if (count($options) > 0) { |
230 | 230 | foreach ($options as $key => $option) { |
@@ -272,7 +272,7 @@ discard block |
||
272 | 272 | $loader->addOrder('news_date', 'desc'); |
273 | 273 | |
274 | 274 | if ($this->category()) { |
275 | - $loader->addFilter('category', $this->category(), [ 'operator' => 'in' ]); |
|
275 | + $loader->addFilter('category', $this->category(), ['operator' => 'in']); |
|
276 | 276 | } |
277 | 277 | if ($this->numPerPage()) { |
278 | 278 | $loader->setPage($this->page()); |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | |
150 | 150 | /** |
151 | 151 | * @param integer|null $id The news id. |
152 | - * @return mixed |
|
152 | + * @return NewsInterface |
|
153 | 153 | */ |
154 | 154 | public function entry($id = null) |
155 | 155 | { |
@@ -316,7 +316,7 @@ discard block |
||
316 | 316 | } |
317 | 317 | |
318 | 318 | /** |
319 | - * @return mixed The previous news |
|
319 | + * @return NewsInterface The previous news |
|
320 | 320 | */ |
321 | 321 | public function prev() |
322 | 322 | { |
@@ -328,7 +328,7 @@ discard block |
||
328 | 328 | } |
329 | 329 | |
330 | 330 | /** |
331 | - * @return mixed The next news |
|
331 | + * @return NewsInterface The next news |
|
332 | 332 | */ |
333 | 333 | public function next() |
334 | 334 | { |
@@ -400,7 +400,7 @@ discard block |
||
400 | 400 | |
401 | 401 | /** |
402 | 402 | * Amount of news (total) |
403 | - * @return integer How many news? |
|
403 | + * @return boolean How many news? |
|
404 | 404 | */ |
405 | 405 | public function numNews() |
406 | 406 | { |
@@ -442,7 +442,7 @@ discard block |
||
442 | 442 | } |
443 | 443 | |
444 | 444 | /** |
445 | - * @return mixed |
|
445 | + * @return string |
|
446 | 446 | */ |
447 | 447 | public function objType() |
448 | 448 | { |
@@ -450,7 +450,7 @@ discard block |
||
450 | 450 | } |
451 | 451 | |
452 | 452 | /** |
453 | - * @return mixed |
|
453 | + * @return string |
|
454 | 454 | */ |
455 | 455 | public function featIdent() |
456 | 456 | { |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | } |
231 | 231 | |
232 | 232 | /** |
233 | - * @param string|DateTimeInterface $startDate Event starting date. |
|
233 | + * @param string $startDate Event starting date. |
|
234 | 234 | * @throws InvalidArgumentException If the timestamp is invalid. |
235 | 235 | * @return self |
236 | 236 | */ |
@@ -263,7 +263,7 @@ discard block |
||
263 | 263 | } |
264 | 264 | |
265 | 265 | /** |
266 | - * @param string|DateTimeInterface $endDate Event end date. |
|
266 | + * @param null|DateTimeInterface $endDate Event end date. |
|
267 | 267 | * @throws InvalidArgumentException If the timestamp is invalid. |
268 | 268 | * @return self |
269 | 269 | */ |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | } |
320 | 320 | |
321 | 321 | /** |
322 | - * @return Translation|string|null |
|
322 | + * @return null|Translation |
|
323 | 323 | */ |
324 | 324 | public function defaultMetaDescription() |
325 | 325 | { |
@@ -7,8 +7,6 @@ discard block |
||
7 | 7 | use InvalidArgumentException; |
8 | 8 | |
9 | 9 | // From PSR-7 |
10 | -use Psr\Http\Message\RequestInterface; |
|
11 | -use Psr\Http\Message\ResponseInterface; |
|
12 | 10 | |
13 | 11 | // From 'charcoal-object' |
14 | 12 | use Charcoal\Object\Content; |
@@ -26,7 +24,6 @@ discard block |
||
26 | 24 | use Charcoal\Cms\MetatagInterface; |
27 | 25 | use Charcoal\Cms\SearchableInterface; |
28 | 26 | use Charcoal\Cms\TemplateableInterface; |
29 | - |
|
30 | 27 | use Charcoal\Cms\MetatagTrait; |
31 | 28 | use Charcoal\Cms\SearchableTrait; |
32 | 29 | use Charcoal\Cms\TemplateableTrait; |
@@ -31,7 +31,7 @@ |
||
31 | 31 | { |
32 | 32 | parent::__construct($data); |
33 | 33 | |
34 | - if (is_callable([ $this, 'defaultData' ])) { |
|
34 | + if (is_callable([$this, 'defaultData'])) { |
|
35 | 35 | $this->setData($this->defaultData()); |
36 | 36 | } |
37 | 37 | } |
@@ -59,7 +59,7 @@ |
||
59 | 59 | } |
60 | 60 | |
61 | 61 | /** |
62 | - * @return boolean Entry cycle. |
|
62 | + * @return string Entry cycle. |
|
63 | 63 | */ |
64 | 64 | public function entryCycle() |
65 | 65 | { |