Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 175d726f

Přidáno uživatelem Filip Jani před téměř 6 roky(ů)

Formátování kódu

Zobrazit rozdíly:

app/AdminModule/presenters/TransportPresenter.php
31 31
    /** @var TransportModel */
32 32
    private $transportModel;
33 33

  
34
    public function __construct(
35
        IImportFormFactory $importFormFactory,
36
        IExportFormFactory $exportFormFactory,
37
        SurfaceTypeRepository $surfaceTypeRepository,
38
        ObjectTypeRepository $objectTypeRepository,
39
        TransportFacade $transportFacade,
40
        TransportModel $transportModel
34
    public function __construct(IImportFormFactory $importFormFactory,
35
                                IExportFormFactory $exportFormFactory,
36
                                SurfaceTypeRepository $surfaceTypeRepository,
37
                                ObjectTypeRepository $objectTypeRepository,
38
                                TransportFacade $transportFacade,
39
                                TransportModel $transportModel
41 40
    )
42 41
    {
43 42
        parent::__construct();
......
74 73
    {
75 74
        $result = $this->transportFacade->saveImportedData($this->transportModel->getParsedText());
76 75

  
77
        if ($result) {
76
        if ($result)
77
        {
78 78
            $this->presenter->flashMessage('All data were imported successfully.', EFlashMessage::SUCCESS);
79
        } else {
79
        } else
80
        {
80 81
            $this->presenter->flashMessage('There was an error when importing data.', EFlashMessage::ERROR);
81 82
        }
82 83

  
......
87 88
    public function countTransliterations()
88 89
    {
89 90
        $num = 0;
90
        foreach ($this->template->parsedFile as $book) {
91
        foreach ($this->template->parsedFile as $book)
92
        {
91 93
            $num += count($book);
92 94
        }
93 95
        return $num;

Také k dispozici: Unified diff