Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
30 | public function addNewModel() |
||
31 | { |
||
32 | /** @var PdfLetterTrait $item */ |
||
33 | $item = $this->getModelManager()->getNew(); |
||
|
|||
34 | if ($this->pdfLetter) { |
||
35 | $item->populateFromLetter($this->pdfLetter); |
||
36 | $this->getView()->Breadcrumbs()->addItem( |
||
37 | $this->getModelManager()->getLetterManager()->getLabel('add'), |
||
38 | '#' |
||
39 | ); |
||
40 | return $item; |
||
41 | } |
||
42 | |||
43 | return $this->forward('index', 'error'); |
||
44 | } |
||
77 |