@@ -22,27 +22,27 @@ |
||
22 | 22 | class HTMLMail extends AbstractMail |
23 | 23 | { |
24 | 24 | |
25 | - /** |
|
26 | - * Set the format of the mail. |
|
27 | - * |
|
28 | - * @since 1.0.0 |
|
29 | - */ |
|
30 | - protected function setFormat() |
|
31 | - { |
|
32 | - $this->format = 'html'; |
|
33 | - } |
|
25 | + /** |
|
26 | + * Set the format of the mail. |
|
27 | + * |
|
28 | + * @since 1.0.0 |
|
29 | + */ |
|
30 | + protected function setFormat() |
|
31 | + { |
|
32 | + $this->format = 'html'; |
|
33 | + } |
|
34 | 34 | |
35 | - /** |
|
36 | - * Set the context of the renderer. |
|
37 | - * |
|
38 | - * @since 1.0.0 |
|
39 | - * |
|
40 | - * @param array $context Context to set/modify. |
|
41 | - * |
|
42 | - * @return array Updated context. |
|
43 | - */ |
|
44 | - protected function setContext(array $context) |
|
45 | - { |
|
46 | - return $context; |
|
47 | - } |
|
35 | + /** |
|
36 | + * Set the context of the renderer. |
|
37 | + * |
|
38 | + * @since 1.0.0 |
|
39 | + * |
|
40 | + * @param array $context Context to set/modify. |
|
41 | + * |
|
42 | + * @return array Updated context. |
|
43 | + */ |
|
44 | + protected function setContext(array $context) |
|
45 | + { |
|
46 | + return $context; |
|
47 | + } |
|
48 | 48 | } |
@@ -22,27 +22,27 @@ |
||
22 | 22 | class TextMail extends AbstractMail |
23 | 23 | { |
24 | 24 | |
25 | - /** |
|
26 | - * Set the format of the mail. |
|
27 | - * |
|
28 | - * @since 1.0.0 |
|
29 | - */ |
|
30 | - protected function setFormat() |
|
31 | - { |
|
32 | - $this->format = 'text'; |
|
33 | - } |
|
25 | + /** |
|
26 | + * Set the format of the mail. |
|
27 | + * |
|
28 | + * @since 1.0.0 |
|
29 | + */ |
|
30 | + protected function setFormat() |
|
31 | + { |
|
32 | + $this->format = 'text'; |
|
33 | + } |
|
34 | 34 | |
35 | - /** |
|
36 | - * Set the context of the renderer. |
|
37 | - * |
|
38 | - * @since 1.0.0 |
|
39 | - * |
|
40 | - * @param array $context Context to set/modify. |
|
41 | - * |
|
42 | - * @return array Updated context. |
|
43 | - */ |
|
44 | - protected function setContext(array $context) |
|
45 | - { |
|
46 | - return $context; |
|
47 | - } |
|
35 | + /** |
|
36 | + * Set the context of the renderer. |
|
37 | + * |
|
38 | + * @since 1.0.0 |
|
39 | + * |
|
40 | + * @param array $context Context to set/modify. |
|
41 | + * |
|
42 | + * @return array Updated context. |
|
43 | + */ |
|
44 | + protected function setContext(array $context) |
|
45 | + { |
|
46 | + return $context; |
|
47 | + } |
|
48 | 48 | } |
@@ -22,18 +22,18 @@ |
||
22 | 22 | class HTMLSanitizer extends AbstractSanitizer |
23 | 23 | { |
24 | 24 | |
25 | - /** |
|
26 | - * Sanitize the content for a given context. |
|
27 | - * |
|
28 | - * @since 1.0.0 |
|
29 | - * |
|
30 | - * @param string $content Content to sanitize. |
|
31 | - * @param array $context Context in which to sanitize. |
|
32 | - * |
|
33 | - * @return string Sanitized content. |
|
34 | - */ |
|
35 | - public function sanitize($content, array $context) |
|
36 | - { |
|
37 | - return $content; |
|
38 | - } |
|
25 | + /** |
|
26 | + * Sanitize the content for a given context. |
|
27 | + * |
|
28 | + * @since 1.0.0 |
|
29 | + * |
|
30 | + * @param string $content Content to sanitize. |
|
31 | + * @param array $context Context in which to sanitize. |
|
32 | + * |
|
33 | + * @return string Sanitized content. |
|
34 | + */ |
|
35 | + public function sanitize($content, array $context) |
|
36 | + { |
|
37 | + return $content; |
|
38 | + } |
|
39 | 39 | } |
@@ -22,14 +22,14 @@ |
||
22 | 22 | interface Renderable |
23 | 23 | { |
24 | 24 | |
25 | - /** |
|
26 | - * Render the current Renderable for a given context. |
|
27 | - * |
|
28 | - * @since 1.0.0 |
|
29 | - * |
|
30 | - * @param array $context The context in which to render the Renderable. |
|
31 | - * |
|
32 | - * @return string Rendered output of the Renderable. |
|
33 | - */ |
|
34 | - public function render(array $context); |
|
25 | + /** |
|
26 | + * Render the current Renderable for a given context. |
|
27 | + * |
|
28 | + * @since 1.0.0 |
|
29 | + * |
|
30 | + * @param array $context The context in which to render the Renderable. |
|
31 | + * |
|
32 | + * @return string Rendered output of the Renderable. |
|
33 | + */ |
|
34 | + public function render(array $context); |
|
35 | 35 | } |
@@ -22,18 +22,18 @@ |
||
22 | 22 | class TextValidator extends AbstractValidator |
23 | 23 | { |
24 | 24 | |
25 | - /** |
|
26 | - * Validate the content for a given context. |
|
27 | - * |
|
28 | - * @since 1.0.0 |
|
29 | - * |
|
30 | - * @param string $content Content to validate. |
|
31 | - * @param array $context Context in which to validate. |
|
32 | - * |
|
33 | - * @return string Validated content. |
|
34 | - */ |
|
35 | - public function validate($content, array $context) |
|
36 | - { |
|
37 | - return $content; |
|
38 | - } |
|
25 | + /** |
|
26 | + * Validate the content for a given context. |
|
27 | + * |
|
28 | + * @since 1.0.0 |
|
29 | + * |
|
30 | + * @param string $content Content to validate. |
|
31 | + * @param array $context Context in which to validate. |
|
32 | + * |
|
33 | + * @return string Validated content. |
|
34 | + */ |
|
35 | + public function validate($content, array $context) |
|
36 | + { |
|
37 | + return $content; |
|
38 | + } |
|
39 | 39 | } |
@@ -12,7 +12,7 @@ |
||
12 | 12 | namespace BrightNucleus\ChainMail; |
13 | 13 | |
14 | 14 | if ( ! $content) { |
15 | - return; |
|
15 | + return; |
|
16 | 16 | } |
17 | 17 | ?> |
18 | 18 | <div class="<?php echo $context['css_class']; ?>"><?php echo $content; ?></div> |
@@ -22,18 +22,18 @@ |
||
22 | 22 | class TextValidator extends AbstractValidator |
23 | 23 | { |
24 | 24 | |
25 | - /** |
|
26 | - * Validate the content for a given context. |
|
27 | - * |
|
28 | - * @since 1.0.0 |
|
29 | - * |
|
30 | - * @param string $content Content to validate. |
|
31 | - * @param array $context Context in which to validate. |
|
32 | - * |
|
33 | - * @return string Validated content. |
|
34 | - */ |
|
35 | - public function validate($content, array $context) |
|
36 | - { |
|
37 | - return $content; |
|
38 | - } |
|
25 | + /** |
|
26 | + * Validate the content for a given context. |
|
27 | + * |
|
28 | + * @since 1.0.0 |
|
29 | + * |
|
30 | + * @param string $content Content to validate. |
|
31 | + * @param array $context Context in which to validate. |
|
32 | + * |
|
33 | + * @return string Validated content. |
|
34 | + */ |
|
35 | + public function validate($content, array $context) |
|
36 | + { |
|
37 | + return $content; |
|
38 | + } |
|
39 | 39 | } |
@@ -24,17 +24,17 @@ |
||
24 | 24 | class MailView extends AbstractView |
25 | 25 | { |
26 | 26 | |
27 | - /** |
|
28 | - * Check whether the Findable can handle an individual criterion. |
|
29 | - * |
|
30 | - * @since 0.1.0 |
|
31 | - * |
|
32 | - * @param mixed $criterion Criterion to check. |
|
33 | - * |
|
34 | - * @return bool Whether the Findable can handle the criterion. |
|
35 | - */ |
|
36 | - public function canHandle($criterion) |
|
37 | - { |
|
38 | - return $criterion === $this->uri; |
|
39 | - } |
|
27 | + /** |
|
28 | + * Check whether the Findable can handle an individual criterion. |
|
29 | + * |
|
30 | + * @since 0.1.0 |
|
31 | + * |
|
32 | + * @param mixed $criterion Criterion to check. |
|
33 | + * |
|
34 | + * @return bool Whether the Findable can handle the criterion. |
|
35 | + */ |
|
36 | + public function canHandle($criterion) |
|
37 | + { |
|
38 | + return $criterion === $this->uri; |
|
39 | + } |
|
40 | 40 | } |
@@ -22,18 +22,18 @@ |
||
22 | 22 | class HTMLSanitizer extends AbstractSanitizer |
23 | 23 | { |
24 | 24 | |
25 | - /** |
|
26 | - * Sanitize the content for a given context. |
|
27 | - * |
|
28 | - * @since 1.0.0 |
|
29 | - * |
|
30 | - * @param string $content Content to sanitize. |
|
31 | - * @param array $context Context in which to sanitize. |
|
32 | - * |
|
33 | - * @return string Sanitized content. |
|
34 | - */ |
|
35 | - public function sanitize($content, array $context) |
|
36 | - { |
|
37 | - return $content; |
|
38 | - } |
|
25 | + /** |
|
26 | + * Sanitize the content for a given context. |
|
27 | + * |
|
28 | + * @since 1.0.0 |
|
29 | + * |
|
30 | + * @param string $content Content to sanitize. |
|
31 | + * @param array $context Context in which to sanitize. |
|
32 | + * |
|
33 | + * @return string Sanitized content. |
|
34 | + */ |
|
35 | + public function sanitize($content, array $context) |
|
36 | + { |
|
37 | + return $content; |
|
38 | + } |
|
39 | 39 | } |