| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | public function getMetaBoxBySlugModel( |
||
| 23 | string $model, |
||
| 24 | string $slug, |
||
| 25 | string $lang = AppConstant::DEFAULT_LOCALE |
||
| 26 | ): ?Model { |
||
| 27 | $slugModel = $this->slugService->getSlugModel($slug, $model); |
||
| 28 | |||
| 29 | if ($slugModel) { |
||
| 30 | return $this->metaBoxService->getMetaBoxByModel($model, $slugModel->reference_id, $lang); |
||
| 31 | } |
||
| 32 | |||
| 33 | return null; |
||
| 34 | } |
||
| 36 |