| Conditions | 3 |
| Paths | 2 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function create(View $view) |
||
| 19 | { |
||
| 20 | if ($this->googleTagManager->isEnabled() && empty($this->googleTagManager->id())) { |
||
| 21 | throw new ApiKeyNotSetException(); |
||
| 22 | } |
||
| 23 | |||
| 24 | $view |
||
| 25 | ->with('enabled', $this->googleTagManager->isEnabled()) |
||
| 26 | ->with('id', $this->googleTagManager->id()) |
||
| 27 | ->with('dataLayer', $this->googleTagManager->getDataLayer()) |
||
| 28 | ->with('pushData', $this->googleTagManager->getPushData()); |
||
| 29 | } |
||
| 30 | } |
||
| 31 |