Conditions | 5 |
Paths | 4 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
37 | public function run() |
||
38 | { |
||
39 | $type = $this->type && in_array($this->type, self::TYPES) ? $this->type : $this->typeDefault; |
||
40 | $title = $this->title ?: $this->titleDefault; |
||
41 | $message = $this->message ?: $this->messageDefault; |
||
42 | $options = Json::encode($this->options); |
||
43 | |||
44 | $this->view->registerJs("toastr.{$type}(\"{$message}\", \"{$title}\", {$options});"); |
||
45 | } |
||
47 |