/** * @param TranslationServiceProvider $translationService * @param string $mode * @param array $languagePackPath one or few dirs * * @return array */ protected function upload(TranslationServiceProvider $translationService, $mode, $languagePackPath) { if ('update' == $mode) { $translationService->update($languagePackPath); } else { $translationService->upload($languagePackPath); } }