@@ -13,187 +13,187 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | |
| 15 | 15 | return [ |
| 16 | - /* |
|
| 16 | + /* |
|
| 17 | 17 | * Root location that contains the view files to be rendered. These are |
| 18 | 18 | * referenced by the individual sections & templates when choosing a |
| 19 | 19 | * specific view to be rendered. |
| 20 | 20 | */ |
| 21 | - 'view_root_locations' => [ |
|
| 22 | - 'default' => __DIR__ . '/../views', |
|
| 23 | - ], |
|
| 21 | + 'view_root_locations' => [ |
|
| 22 | + 'default' => __DIR__ . '/../views', |
|
| 23 | + ], |
|
| 24 | 24 | |
| 25 | - /* |
|
| 25 | + /* |
|
| 26 | 26 | * Type of view rendering system to use. |
| 27 | 27 | */ |
| 28 | - 'view_type' => 'PHPView', |
|
| 28 | + 'view_type' => 'PHPView', |
|
| 29 | 29 | |
| 30 | - /* |
|
| 30 | + /* |
|
| 31 | 31 | * The default template to when none is specified. |
| 32 | 32 | */ |
| 33 | - 'default_template' => 'BasicTemplate', |
|
| 33 | + 'default_template' => 'BasicTemplate', |
|
| 34 | 34 | |
| 35 | - /* |
|
| 35 | + /* |
|
| 36 | 36 | * The formats in which an email can be rendered. |
| 37 | 37 | * Each format needs a `MailInterface` implementation, a |
| 38 | 38 | * `ValidatorInterface` implementation, as well as a `SanitizerInterface` |
| 39 | 39 | * implementation. |
| 40 | 40 | */ |
| 41 | - 'formats' => [ |
|
| 41 | + 'formats' => [ |
|
| 42 | 42 | |
| 43 | - /* |
|
| 43 | + /* |
|
| 44 | 44 | * The `html` format should be the default format when using responsive |
| 45 | 45 | * emails. |
| 46 | 46 | */ |
| 47 | - 'html' => [ |
|
| 48 | - 'mail' => 'HTMLMail', |
|
| 49 | - 'validator' => 'HTMLValidator', |
|
| 50 | - 'sanitizer' => 'HTMLSanitizer', |
|
| 51 | - ], |
|
| 47 | + 'html' => [ |
|
| 48 | + 'mail' => 'HTMLMail', |
|
| 49 | + 'validator' => 'HTMLValidator', |
|
| 50 | + 'sanitizer' => 'HTMLSanitizer', |
|
| 51 | + ], |
|
| 52 | 52 | |
| 53 | - /* |
|
| 53 | + /* |
|
| 54 | 54 | * The `text` format is meant to be used a as a fallback, and can also |
| 55 | 55 | * be sent as backup content embedded within HTML emails. |
| 56 | 56 | */ |
| 57 | - 'text' => [ |
|
| 58 | - 'mail' => 'TextMail', |
|
| 59 | - 'validator' => 'TextValidator', |
|
| 60 | - 'sanitizer' => 'TextSanitizer', |
|
| 61 | - ], |
|
| 62 | - ], |
|
| 57 | + 'text' => [ |
|
| 58 | + 'mail' => 'TextMail', |
|
| 59 | + 'validator' => 'TextValidator', |
|
| 60 | + 'sanitizer' => 'TextSanitizer', |
|
| 61 | + ], |
|
| 62 | + ], |
|
| 63 | 63 | |
| 64 | - /* |
|
| 64 | + /* |
|
| 65 | 65 | * The `MailInterface` implementations that are provided. |
| 66 | 66 | */ |
| 67 | - 'mails' => [ |
|
| 68 | - 'HTMLMail' => [ |
|
| 69 | - 'class_name' => '\BrightNucleus\ChainMail\Mail\HTMLMail', |
|
| 70 | - ], |
|
| 71 | - 'TextMail' => [ |
|
| 72 | - 'class_name' => '\BrightNucleus\ChainMail\Mail\TextMail', |
|
| 73 | - ], |
|
| 74 | - ], |
|
| 67 | + 'mails' => [ |
|
| 68 | + 'HTMLMail' => [ |
|
| 69 | + 'class_name' => '\BrightNucleus\ChainMail\Mail\HTMLMail', |
|
| 70 | + ], |
|
| 71 | + 'TextMail' => [ |
|
| 72 | + 'class_name' => '\BrightNucleus\ChainMail\Mail\TextMail', |
|
| 73 | + ], |
|
| 74 | + ], |
|
| 75 | 75 | |
| 76 | - /* |
|
| 76 | + /* |
|
| 77 | 77 | * The `ValidatorInterface` implementations that are provided. |
| 78 | 78 | */ |
| 79 | - 'validators' => [ |
|
| 80 | - 'HTMLValidator' => [ |
|
| 81 | - 'class_name' => '\BrightNucleus\ChainMail\Validator\HTMLValidator', |
|
| 82 | - ], |
|
| 83 | - 'TextValidator' => [ |
|
| 84 | - 'class_name' => '\BrightNucleus\ChainMail\Validator\TextValidator', |
|
| 85 | - ], |
|
| 86 | - ], |
|
| 79 | + 'validators' => [ |
|
| 80 | + 'HTMLValidator' => [ |
|
| 81 | + 'class_name' => '\BrightNucleus\ChainMail\Validator\HTMLValidator', |
|
| 82 | + ], |
|
| 83 | + 'TextValidator' => [ |
|
| 84 | + 'class_name' => '\BrightNucleus\ChainMail\Validator\TextValidator', |
|
| 85 | + ], |
|
| 86 | + ], |
|
| 87 | 87 | |
| 88 | - /* |
|
| 88 | + /* |
|
| 89 | 89 | * The `SanitizerInterface` implementations that are provided. |
| 90 | 90 | */ |
| 91 | - 'sanitizers' => [ |
|
| 92 | - 'HTMLSanitizer' => [ |
|
| 93 | - 'class_name' => '\BrightNucleus\ChainMail\Sanitizer\HTMLSanitizer', |
|
| 94 | - ], |
|
| 95 | - 'TextSanitizer' => [ |
|
| 96 | - 'class_name' => '\BrightNucleus\ChainMail\Sanitizer\TextSanitizer', |
|
| 97 | - ], |
|
| 98 | - ], |
|
| 91 | + 'sanitizers' => [ |
|
| 92 | + 'HTMLSanitizer' => [ |
|
| 93 | + 'class_name' => '\BrightNucleus\ChainMail\Sanitizer\HTMLSanitizer', |
|
| 94 | + ], |
|
| 95 | + 'TextSanitizer' => [ |
|
| 96 | + 'class_name' => '\BrightNucleus\ChainMail\Sanitizer\TextSanitizer', |
|
| 97 | + ], |
|
| 98 | + ], |
|
| 99 | 99 | |
| 100 | - /* |
|
| 100 | + /* |
|
| 101 | 101 | * The `ViewInterface` implementations that are provided. |
| 102 | 102 | */ |
| 103 | - 'view_types' => [ |
|
| 104 | - 'PHPView' => [ |
|
| 105 | - 'class_name' => '\BrightNucleus\ChainMail\View\PHPView', |
|
| 106 | - ], |
|
| 107 | - ], |
|
| 103 | + 'view_types' => [ |
|
| 104 | + 'PHPView' => [ |
|
| 105 | + 'class_name' => '\BrightNucleus\ChainMail\View\PHPView', |
|
| 106 | + ], |
|
| 107 | + ], |
|
| 108 | 108 | |
| 109 | - /* |
|
| 109 | + /* |
|
| 110 | 110 | * The `TemplateInterface` implementations that are provided. |
| 111 | 111 | * |
| 112 | 112 | * Each template also defines what sections it intends to use, and what |
| 113 | 113 | * view it intends to use for rendering. |
| 114 | 114 | */ |
| 115 | - 'templates' => [ |
|
| 116 | - 'BasicTemplate' => [ |
|
| 117 | - 'class_name' => '\BrightNucleus\ChainMail\Template\GenericTemplate', |
|
| 118 | - 'sections' => [ |
|
| 119 | - 'HeaderSection', |
|
| 120 | - 'BodySection', |
|
| 121 | - 'FooterSection', |
|
| 122 | - ], |
|
| 123 | - 'view_name' => 'GenericTemplate', |
|
| 124 | - 'view_location' => 'default', |
|
| 125 | - ], |
|
| 126 | - 'HeroTemplate' => [ |
|
| 127 | - 'class_name' => '\BrightNucleus\ChainMail\Template\GenericTemplate', |
|
| 128 | - 'sections' => [ |
|
| 129 | - 'HeaderSection', |
|
| 130 | - 'HeroSection', |
|
| 131 | - 'BodySection', |
|
| 132 | - 'FooterSection', |
|
| 133 | - ], |
|
| 134 | - 'view_name' => 'GenericTemplate', |
|
| 135 | - 'view_location' => 'default', |
|
| 136 | - ], |
|
| 137 | - 'SidebarTemplate' => [ |
|
| 138 | - 'class_name' => '\BrightNucleus\ChainMail\Template\GenericTemplate', |
|
| 139 | - 'sections' => [ |
|
| 140 | - 'HeaderSection', |
|
| 141 | - 'BodySection', |
|
| 142 | - 'SidebarSection', |
|
| 143 | - 'FooterSection', |
|
| 144 | - ], |
|
| 145 | - 'view_name' => 'GenericTemplate', |
|
| 146 | - 'view_location' => 'default', |
|
| 147 | - ], |
|
| 148 | - 'HeroSidebarTemplate' => [ |
|
| 149 | - 'class_name' => '\BrightNucleus\ChainMail\Template\GenericTemplate', |
|
| 150 | - 'sections' => [ |
|
| 151 | - 'HeaderSection', |
|
| 152 | - 'HeroSection', |
|
| 153 | - 'BodySection', |
|
| 154 | - 'SidebarSection', |
|
| 155 | - 'FooterSection', |
|
| 156 | - ], |
|
| 157 | - 'view_name' => 'GenericTemplate', |
|
| 158 | - 'view_location' => 'default', |
|
| 159 | - ], |
|
| 160 | - ], |
|
| 115 | + 'templates' => [ |
|
| 116 | + 'BasicTemplate' => [ |
|
| 117 | + 'class_name' => '\BrightNucleus\ChainMail\Template\GenericTemplate', |
|
| 118 | + 'sections' => [ |
|
| 119 | + 'HeaderSection', |
|
| 120 | + 'BodySection', |
|
| 121 | + 'FooterSection', |
|
| 122 | + ], |
|
| 123 | + 'view_name' => 'GenericTemplate', |
|
| 124 | + 'view_location' => 'default', |
|
| 125 | + ], |
|
| 126 | + 'HeroTemplate' => [ |
|
| 127 | + 'class_name' => '\BrightNucleus\ChainMail\Template\GenericTemplate', |
|
| 128 | + 'sections' => [ |
|
| 129 | + 'HeaderSection', |
|
| 130 | + 'HeroSection', |
|
| 131 | + 'BodySection', |
|
| 132 | + 'FooterSection', |
|
| 133 | + ], |
|
| 134 | + 'view_name' => 'GenericTemplate', |
|
| 135 | + 'view_location' => 'default', |
|
| 136 | + ], |
|
| 137 | + 'SidebarTemplate' => [ |
|
| 138 | + 'class_name' => '\BrightNucleus\ChainMail\Template\GenericTemplate', |
|
| 139 | + 'sections' => [ |
|
| 140 | + 'HeaderSection', |
|
| 141 | + 'BodySection', |
|
| 142 | + 'SidebarSection', |
|
| 143 | + 'FooterSection', |
|
| 144 | + ], |
|
| 145 | + 'view_name' => 'GenericTemplate', |
|
| 146 | + 'view_location' => 'default', |
|
| 147 | + ], |
|
| 148 | + 'HeroSidebarTemplate' => [ |
|
| 149 | + 'class_name' => '\BrightNucleus\ChainMail\Template\GenericTemplate', |
|
| 150 | + 'sections' => [ |
|
| 151 | + 'HeaderSection', |
|
| 152 | + 'HeroSection', |
|
| 153 | + 'BodySection', |
|
| 154 | + 'SidebarSection', |
|
| 155 | + 'FooterSection', |
|
| 156 | + ], |
|
| 157 | + 'view_name' => 'GenericTemplate', |
|
| 158 | + 'view_location' => 'default', |
|
| 159 | + ], |
|
| 160 | + ], |
|
| 161 | 161 | |
| 162 | - /* |
|
| 162 | + /* |
|
| 163 | 163 | * The `SectionInterface` implementations that are provided. |
| 164 | 164 | * |
| 165 | 165 | * Each section also defines what view it intends to use for rendering. |
| 166 | 166 | */ |
| 167 | - 'sections' => [ |
|
| 168 | - 'HeaderSection' => [ |
|
| 169 | - 'css_class' => 'header', |
|
| 170 | - 'class_name' => '\BrightNucleus\ChainMail\Section\GenericSection', |
|
| 171 | - 'view_name' => 'GenericSection', |
|
| 172 | - 'view_location' => 'default', |
|
| 173 | - ], |
|
| 174 | - 'BodySection' => [ |
|
| 175 | - 'css_class' => 'body', |
|
| 176 | - 'class_name' => '\BrightNucleus\ChainMail\Section\GenericSection', |
|
| 177 | - 'view_name' => 'GenericSection', |
|
| 178 | - 'view_location' => 'default', |
|
| 179 | - ], |
|
| 180 | - 'FooterSection' => [ |
|
| 181 | - 'css_class' => 'footer', |
|
| 182 | - 'class_name' => '\BrightNucleus\ChainMail\Section\GenericSection', |
|
| 183 | - 'view_name' => 'GenericSection', |
|
| 184 | - 'view_location' => 'default', |
|
| 185 | - ], |
|
| 186 | - 'HeroSection' => [ |
|
| 187 | - 'css_class' => 'hero', |
|
| 188 | - 'class_name' => '\BrightNucleus\ChainMail\Section\GenericSection', |
|
| 189 | - 'view_name' => 'GenericSection', |
|
| 190 | - 'view_location' => 'default', |
|
| 191 | - ], |
|
| 192 | - 'SidebarSection' => [ |
|
| 193 | - 'css_class' => 'sidebar', |
|
| 194 | - 'class_name' => '\BrightNucleus\ChainMail\Section\GenericSection', |
|
| 195 | - 'view_name' => 'GenericSection', |
|
| 196 | - 'view_location' => 'default', |
|
| 197 | - ], |
|
| 198 | - ], |
|
| 167 | + 'sections' => [ |
|
| 168 | + 'HeaderSection' => [ |
|
| 169 | + 'css_class' => 'header', |
|
| 170 | + 'class_name' => '\BrightNucleus\ChainMail\Section\GenericSection', |
|
| 171 | + 'view_name' => 'GenericSection', |
|
| 172 | + 'view_location' => 'default', |
|
| 173 | + ], |
|
| 174 | + 'BodySection' => [ |
|
| 175 | + 'css_class' => 'body', |
|
| 176 | + 'class_name' => '\BrightNucleus\ChainMail\Section\GenericSection', |
|
| 177 | + 'view_name' => 'GenericSection', |
|
| 178 | + 'view_location' => 'default', |
|
| 179 | + ], |
|
| 180 | + 'FooterSection' => [ |
|
| 181 | + 'css_class' => 'footer', |
|
| 182 | + 'class_name' => '\BrightNucleus\ChainMail\Section\GenericSection', |
|
| 183 | + 'view_name' => 'GenericSection', |
|
| 184 | + 'view_location' => 'default', |
|
| 185 | + ], |
|
| 186 | + 'HeroSection' => [ |
|
| 187 | + 'css_class' => 'hero', |
|
| 188 | + 'class_name' => '\BrightNucleus\ChainMail\Section\GenericSection', |
|
| 189 | + 'view_name' => 'GenericSection', |
|
| 190 | + 'view_location' => 'default', |
|
| 191 | + ], |
|
| 192 | + 'SidebarSection' => [ |
|
| 193 | + 'css_class' => 'sidebar', |
|
| 194 | + 'class_name' => '\BrightNucleus\ChainMail\Section\GenericSection', |
|
| 195 | + 'view_name' => 'GenericSection', |
|
| 196 | + 'view_location' => 'default', |
|
| 197 | + ], |
|
| 198 | + ], |
|
| 199 | 199 | ]; |
| 200 | 200 | \ No newline at end of file |
@@ -1,13 +1,13 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * HTMLMail |
|
| 4 | - * |
|
| 5 | - * @package brightnucleus/chainmail |
|
| 6 | - * @author Alain Schlesser <[email protected]> |
|
| 7 | - * @license GPL-2.0+ |
|
| 8 | - * @link http://www.brightnucleus.com/ |
|
| 9 | - * @copyright 2016 Alain Schlesser, Bright Nucleus |
|
| 10 | - */ |
|
| 3 | + * HTMLMail |
|
| 4 | + * |
|
| 5 | + * @package brightnucleus/chainmail |
|
| 6 | + * @author Alain Schlesser <[email protected]> |
|
| 7 | + * @license GPL-2.0+ |
|
| 8 | + * @link http://www.brightnucleus.com/ |
|
| 9 | + * @copyright 2016 Alain Schlesser, Bright Nucleus |
|
| 10 | + */ |
|
| 11 | 11 | |
| 12 | 12 | namespace BrightNucleus\ChainMail\Mail; |
| 13 | 13 | |
@@ -22,26 +22,26 @@ discard block |
||
| 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 | - * @return array Updated context. |
|
| 42 | - */ |
|
| 43 | - protected function setContext(array $context) |
|
| 44 | - { |
|
| 45 | - return $context; |
|
| 46 | - } |
|
| 35 | + /** |
|
| 36 | + * Set the context of the renderer. |
|
| 37 | + * |
|
| 38 | + * @since 1.0.0 |
|
| 39 | + * |
|
| 40 | + * @param array $context Context to set/modify. |
|
| 41 | + * @return array Updated context. |
|
| 42 | + */ |
|
| 43 | + protected function setContext(array $context) |
|
| 44 | + { |
|
| 45 | + return $context; |
|
| 46 | + } |
|
| 47 | 47 | } |
| 48 | 48 | \ No newline at end of file |
@@ -1,13 +1,13 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * TextMail |
|
| 4 | - * |
|
| 5 | - * @package brightnucleus/chainmail |
|
| 6 | - * @author Alain Schlesser <[email protected]> |
|
| 7 | - * @license GPL-2.0+ |
|
| 8 | - * @link http://www.brightnucleus.com/ |
|
| 9 | - * @copyright 2016 Alain Schlesser, Bright Nucleus |
|
| 10 | - */ |
|
| 3 | + * TextMail |
|
| 4 | + * |
|
| 5 | + * @package brightnucleus/chainmail |
|
| 6 | + * @author Alain Schlesser <[email protected]> |
|
| 7 | + * @license GPL-2.0+ |
|
| 8 | + * @link http://www.brightnucleus.com/ |
|
| 9 | + * @copyright 2016 Alain Schlesser, Bright Nucleus |
|
| 10 | + */ |
|
| 11 | 11 | |
| 12 | 12 | namespace BrightNucleus\ChainMail\Mail; |
| 13 | 13 | |
@@ -22,26 +22,26 @@ discard block |
||
| 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 | - * @return array Updated context. |
|
| 42 | - */ |
|
| 43 | - protected function setContext(array $context) |
|
| 44 | - { |
|
| 45 | - return $context; |
|
| 46 | - } |
|
| 35 | + /** |
|
| 36 | + * Set the context of the renderer. |
|
| 37 | + * |
|
| 38 | + * @since 1.0.0 |
|
| 39 | + * |
|
| 40 | + * @param array $context Context to set/modify. |
|
| 41 | + * @return array Updated context. |
|
| 42 | + */ |
|
| 43 | + protected function setContext(array $context) |
|
| 44 | + { |
|
| 45 | + return $context; |
|
| 46 | + } |
|
| 47 | 47 | } |
| 48 | 48 | \ No newline at end of file |
@@ -1,13 +1,13 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Renderable |
|
| 4 | - * |
|
| 5 | - * @package brightnucleus/chainmail |
|
| 6 | - * @author Alain Schlesser <[email protected]> |
|
| 7 | - * @license GPL-2.0+ |
|
| 8 | - * @link http://www.brightnucleus.com/ |
|
| 9 | - * @copyright 2016 Alain Schlesser, Bright Nucleus |
|
| 10 | - */ |
|
| 3 | + * Renderable |
|
| 4 | + * |
|
| 5 | + * @package brightnucleus/chainmail |
|
| 6 | + * @author Alain Schlesser <[email protected]> |
|
| 7 | + * @license GPL-2.0+ |
|
| 8 | + * @link http://www.brightnucleus.com/ |
|
| 9 | + * @copyright 2016 Alain Schlesser, Bright Nucleus |
|
| 10 | + */ |
|
| 11 | 11 | |
| 12 | 12 | namespace BrightNucleus\ChainMail; |
| 13 | 13 | |
@@ -22,13 +22,13 @@ discard block |
||
| 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 | - * @return string Rendered output of the Renderable. |
|
| 32 | - */ |
|
| 33 | - 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 | + * @return string Rendered output of the Renderable. |
|
| 32 | + */ |
|
| 33 | + public function render(array $context); |
|
| 34 | 34 | } |
| 35 | 35 | \ No newline at end of file |
@@ -1,13 +1,13 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * AbstractSanitizer |
|
| 4 | - * |
|
| 5 | - * @package brightnucleus/chainmail |
|
| 6 | - * @author Alain Schlesser <[email protected]> |
|
| 7 | - * @license GPL-2.0+ |
|
| 8 | - * @link http://www.brightnucleus.com/ |
|
| 9 | - * @copyright 2016 Alain Schlesser, Bright Nucleus |
|
| 10 | - */ |
|
| 3 | + * AbstractSanitizer |
|
| 4 | + * |
|
| 5 | + * @package brightnucleus/chainmail |
|
| 6 | + * @author Alain Schlesser <[email protected]> |
|
| 7 | + * @license GPL-2.0+ |
|
| 8 | + * @link http://www.brightnucleus.com/ |
|
| 9 | + * @copyright 2016 Alain Schlesser, Bright Nucleus |
|
| 10 | + */ |
|
| 11 | 11 | |
| 12 | 12 | namespace BrightNucleus\ChainMail\Sanitizer; |
| 13 | 13 | |
@@ -22,17 +22,17 @@ |
||
| 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 | - * @return string Sanitized content. |
|
| 33 | - */ |
|
| 34 | - public function sanitize($content, array $context) |
|
| 35 | - { |
|
| 36 | - return $content; |
|
| 37 | - } |
|
| 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 | + * @return string Sanitized content. |
|
| 33 | + */ |
|
| 34 | + public function sanitize($content, array $context) |
|
| 35 | + { |
|
| 36 | + return $content; |
|
| 37 | + } |
|
| 38 | 38 | } |
| 39 | 39 | \ No newline at end of file |
@@ -1,13 +1,13 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * TextSanitizer |
|
| 4 | - * |
|
| 5 | - * @package brightnucleus/chainmail |
|
| 6 | - * @author Alain Schlesser <[email protected]> |
|
| 7 | - * @license GPL-2.0+ |
|
| 8 | - * @link http://www.brightnucleus.com/ |
|
| 9 | - * @copyright 2016 Alain Schlesser, Bright Nucleus |
|
| 10 | - */ |
|
| 3 | + * TextSanitizer |
|
| 4 | + * |
|
| 5 | + * @package brightnucleus/chainmail |
|
| 6 | + * @author Alain Schlesser <[email protected]> |
|
| 7 | + * @license GPL-2.0+ |
|
| 8 | + * @link http://www.brightnucleus.com/ |
|
| 9 | + * @copyright 2016 Alain Schlesser, Bright Nucleus |
|
| 10 | + */ |
|
| 11 | 11 | |
| 12 | 12 | namespace BrightNucleus\ChainMail\Sanitizer; |
| 13 | 13 | |
@@ -22,17 +22,17 @@ discard block |
||
| 22 | 22 | class TextSanitizer 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 | - * @return string Sanitized content. |
|
| 33 | - */ |
|
| 34 | - public function sanitize($content, array $context) |
|
| 35 | - { |
|
| 36 | - return $content; |
|
| 37 | - } |
|
| 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 | + * @return string Sanitized content. |
|
| 33 | + */ |
|
| 34 | + public function sanitize($content, array $context) |
|
| 35 | + { |
|
| 36 | + return $content; |
|
| 37 | + } |
|
| 38 | 38 | } |
| 39 | 39 | \ No newline at end of file |
@@ -1,13 +1,13 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * SanitizerInterface |
|
| 4 | - * |
|
| 5 | - * @package brightnucleus/chainmail |
|
| 6 | - * @author Alain Schlesser <[email protected]> |
|
| 7 | - * @license GPL-2.0+ |
|
| 8 | - * @link http://www.brightnucleus.com/ |
|
| 9 | - * @copyright 2016 Alain Schlesser, Bright Nucleus |
|
| 10 | - */ |
|
| 3 | + * SanitizerInterface |
|
| 4 | + * |
|
| 5 | + * @package brightnucleus/chainmail |
|
| 6 | + * @author Alain Schlesser <[email protected]> |
|
| 7 | + * @license GPL-2.0+ |
|
| 8 | + * @link http://www.brightnucleus.com/ |
|
| 9 | + * @copyright 2016 Alain Schlesser, Bright Nucleus |
|
| 10 | + */ |
|
| 11 | 11 | |
| 12 | 12 | namespace BrightNucleus\ChainMail; |
| 13 | 13 | |
@@ -22,14 +22,14 @@ discard block |
||
| 22 | 22 | interface SanitizerInterface |
| 23 | 23 | { |
| 24 | 24 | |
| 25 | - /** |
|
| 26 | - * Sanitize 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 | - * @return string Sanitized content. |
|
| 33 | - */ |
|
| 34 | - public function sanitize($content, array $context); |
|
| 25 | + /** |
|
| 26 | + * Sanitize 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 | + * @return string Sanitized content. |
|
| 33 | + */ |
|
| 34 | + public function sanitize($content, array $context); |
|
| 35 | 35 | } |
| 36 | 36 | \ No newline at end of file |
@@ -1,13 +1,13 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * GenericSection |
|
| 4 | - * |
|
| 5 | - * @package brightnucleus/chainmail |
|
| 6 | - * @author Alain Schlesser <[email protected]> |
|
| 7 | - * @license GPL-2.0+ |
|
| 8 | - * @link http://www.brightnucleus.com/ |
|
| 9 | - * @copyright 2016 Alain Schlesser, Bright Nucleus |
|
| 10 | - */ |
|
| 3 | + * GenericSection |
|
| 4 | + * |
|
| 5 | + * @package brightnucleus/chainmail |
|
| 6 | + * @author Alain Schlesser <[email protected]> |
|
| 7 | + * @license GPL-2.0+ |
|
| 8 | + * @link http://www.brightnucleus.com/ |
|
| 9 | + * @copyright 2016 Alain Schlesser, Bright Nucleus |
|
| 10 | + */ |
|
| 11 | 11 | |
| 12 | 12 | namespace BrightNucleus\ChainMail\Section; |
| 13 | 13 | |