| Conditions | 5 |
| Paths | 4 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php namespace Anomaly\Streams\Platform\Entry; |
||
| 63 | public function make($route, array $parameters = []) |
||
| 64 | { |
||
| 65 | if (!str_contains($route, '.') && $namespace = $this->model->getStreamNamespace()) { |
||
| 66 | $route = "{$namespace}.{$route}"; |
||
|
|
|||
| 67 | } |
||
| 68 | |||
| 69 | if (!str_contains($route, '::') && $namespace = $this->locator->locate($this->model)) { |
||
| 70 | $route = "{$namespace}::{$route}"; |
||
| 71 | } |
||
| 72 | |||
| 73 | return $this->url->make($route, $this->model, $parameters); |
||
| 74 | } |
||
| 75 | } |
||
| 76 |