Completed
Pull Request — master (#129)
by Abdul Malik
06:09
created
src/Controller/Plugin/SendMailPlugin.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -45,11 +45,11 @@
 block discarded – undo
45 45
      *
46 46
      * @param null|string|ViewModel|array $bodyOrConfig
47 47
      * @param null|string $subject
48
-     * @param null|array $to
48
+     * @param string[] $to
49 49
      * @param null|string|array $from
50
-     * @param null|array $cc
51
-     * @param null|array $bcc
52
-     * @param null|array $attachments
50
+     * @param string[] $cc
51
+     * @param string[] $bcc
52
+     * @param string[] $attachments
53 53
      * @return MailServiceInterface|ResultInterface
54 54
      */
55 55
     public function __invoke(
Please login to merge, or discard this patch.
src/Options/Factory/MailOptionsAbstractFactory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      * @param  ContainerInterface $container
25 25
      * @param  string $requestedName
26 26
      * @param  null|array $options
27
-     * @return object
27
+     * @return MailOptions
28 28
      * @throws ServiceNotFoundException if unable to resolve the service.
29 29
      * @throws ServiceNotCreatedException if an exception is raised when
30 30
      *     creating a service.
Please login to merge, or discard this patch.
src/Service/Factory/MailServiceAbstractFactory.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      * @param  ContainerInterface $container
42 42
      * @param  string $requestedName
43 43
      * @param  null|array $options
44
-     * @return object
44
+     * @return MailService
45 45
      * @throws ServiceNotFoundException if unable to resolve the service.
46 46
      * @throws ServiceNotCreatedException if an exception is raised when
47 47
      *     creating a service.
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
     /**
252 252
      * Returns a specific configuration defined by provided key
253 253
      * @param ContainerInterface $container
254
-     * @param $configKey
254
+     * @param string $configKey
255 255
      * @return array
256 256
      */
257 257
     protected function getSpecificConfig(ContainerInterface $container, $configKey)
Please login to merge, or discard this patch.
src/Options/MailOptions.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 
93 93
     /**
94 94
      * Alias for method setMailAdapter
95
-     * @param string|TransportInterface $transport
95
+     * @param string $transport
96 96
      * @return $this
97 97
      */
98 98
     public function setTransport($transport)
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
     }
207 207
 
208 208
     /**
209
-     * @param array $mailListeners
209
+     * @param integer[] $mailListeners
210 210
      * @return $this
211 211
      */
212 212
     public function setMailListeners($mailListeners)
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use Zend\Mail\Transport\SmtpOptions;
7 7
 use Zend\Mail\Transport\TransportInterface;
8 8
 use Zend\Stdlib\AbstractOptions;
9
-use Zend\View\Renderer\RendererInterface;
10 9
 
11 10
 /**
12 11
  * Module options
Please login to merge, or discard this patch.
src/Service/MailService.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -385,7 +385,7 @@  discard block
 block discarded – undo
385 385
      * Attaches a new MailListenerInterface
386 386
      * @param MailListenerInterface $mailListener
387 387
      * @param int $priority
388
-     * @return mixed|void
388
+     * @return MailService
389 389
      */
390 390
     public function attachMailListener(MailListenerInterface $mailListener, $priority = 1)
391 391
     {
@@ -405,7 +405,7 @@  discard block
 block discarded – undo
405 405
     }
406 406
 
407 407
     /**
408
-     * @param TransportInterface $transport
408
+     * @param \AcMailerTest\Mail\Transport\MockTransport $transport
409 409
      * @return $this
410 410
      */
411 411
     public function setTransport(TransportInterface $transport)
Please login to merge, or discard this patch.
src/Service/MailServiceMock.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
 
190 190
     /**
191 191
      * @param RendererInterface $renderer
192
-     * @return mixed
192
+     * @return MailServiceMock
193 193
      */
194 194
     public function setRenderer(RendererInterface $renderer)
195 195
     {
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
 
200 200
     /**
201 201
      * @param TransportInterface $transport
202
-     * @return mixed
202
+     * @return MailServiceMock
203 203
      */
204 204
     public function setTransport(TransportInterface $transport)
205 205
     {
Please login to merge, or discard this patch.