@@ -41,9 +41,9 @@ |
||
| 41 | 41 | public function options($actionID) |
| 42 | 42 | { |
| 43 | 43 | $options = [ |
| 44 | - 'flush' => ['timeLimit'], |
|
| 44 | + 'flush' => [ 'timeLimit' ], |
|
| 45 | 45 | ]; |
| 46 | - return array_merge(parent::options($actionID), ArrayHelper::getValue($options, $actionID, [])); |
|
| 46 | + return array_merge(parent::options($actionID), ArrayHelper::getValue($options, $actionID, [ ])); |
|
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | /** |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | * @inheritdoc |
| 60 | 60 | * @return Message|MessageInterface |
| 61 | 61 | */ |
| 62 | - public function compose($view = null, array $params = []) |
|
| 62 | + public function compose($view = null, array $params = [ ]) |
|
| 63 | 63 | { |
| 64 | 64 | return parent::compose($view, $params); |
| 65 | 65 | } |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | 'constructArgs' => [ |
| 76 | 76 | [ |
| 77 | 77 | 'class' => 'Swift_FileSpool', |
| 78 | - 'constructArgs' => [$this->spoolPath], |
|
| 78 | + 'constructArgs' => [ $this->spoolPath ], |
|
| 79 | 79 | ], |
| 80 | 80 | ], |
| 81 | 81 | ]; |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | */ |
| 137 | 137 | public function beforeQueue($message) |
| 138 | 138 | { |
| 139 | - $event = new MailEvent(['message' => $message]); |
|
| 139 | + $event = new MailEvent([ 'message' => $message ]); |
|
| 140 | 140 | $this->trigger(self::EVENT_BEFORE_QUEUE, $event); |
| 141 | 141 | |
| 142 | 142 | return $event->isValid; |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | */ |
| 152 | 152 | public function afterQueue($message, $isSuccessful) |
| 153 | 153 | { |
| 154 | - $event = new MailEvent(['message' => $message, 'isSuccessful' => $isSuccessful]); |
|
| 154 | + $event = new MailEvent([ 'message' => $message, 'isSuccessful' => $isSuccessful ]); |
|
| 155 | 155 | $this->trigger(self::EVENT_AFTER_QUEUE, $event); |
| 156 | 156 | } |
| 157 | 157 | } |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | * @inheritdoc |
| 20 | 20 | * @param \Swift_Message $message |
| 21 | 21 | */ |
| 22 | - public function __construct(\Swift_Message $message, array $config = []) |
|
| 22 | + public function __construct(\Swift_Message $message, array $config = [ ]) |
|
| 23 | 23 | { |
| 24 | 24 | $this->_swiftMessage = $message; |
| 25 | 25 | parent::__construct($config); |