Skip to content

Commit

Permalink
Update code style
Browse files Browse the repository at this point in the history
Update code style
  • Loading branch information
e-spin committed Oct 4, 2021
1 parent 1d49630 commit d35b172
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/EventListener/FormNewsletter.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
use Contao\Email;
use Contao\Environment;
use Contao\FormFieldModel;
use Contao\FrontendTemplate;
use Contao\Idna;
use Contao\Input;
use Contao\NewsletterBlacklistModel;
Expand Down Expand Up @@ -146,8 +145,10 @@ public function activateRecipient()
/**
* Process the form data
*
* @param array
* @param array
* @param $arrData
* @param $arrForm
*
* @throws \Exception
*/
public function processFormData($arrData, $arrForm)
{
Expand Down Expand Up @@ -327,7 +328,6 @@ public function processFormData($arrData, $arrForm)
*/
public function sendFormNotification($arrData, $arrForm, $arrFiles, $arrLabels)
{

$objHelper = System::importStatic('\NotificationCenter\tl_form');

// Use the original method to send notification
Expand Down Expand Up @@ -358,9 +358,11 @@ public function sendFormNotification($arrData, $arrForm, $arrFiles, $arrLabels)
/**
* Get the email form fields
*
* @param DataContainer
* @param DataContainer $dc
*
* @return array
*/
public function getEmailFields(DataContainer $dc)
public function getEmailFields(DataContainer $dc): array
{
$arrFields = [];
$objFields = Database::getInstance()->prepare(
Expand Down

0 comments on commit d35b172

Please sign in to comment.