Browse Source

Auto-fix CS - CS master branch

Mark 4 years ago
parent
commit
7409c7386e
2 changed files with 6 additions and 6 deletions
  1. 2 2
      src/Mailer/Message.php
  2. 4 4
      src/Utility/Text.php

+ 2 - 2
src/Mailer/Message.php

@@ -373,8 +373,8 @@ class Message extends CakeMessage {
 	 */
 	protected function _readFile($path) {
 		$context = stream_context_create(
-            ['http' => ['header' => 'Connection: close']],
-        );
+			['http' => ['header' => 'Connection: close']],
+		);
 		$content = file_get_contents($path, false, $context);
 		if (!$content) {
 			trigger_error('No content found for ' . $path);

+ 4 - 4
src/Utility/Text.php

@@ -403,10 +403,10 @@ class Text extends CakeText {
 
 		if ($all) {
 			$str = str_replace(
-                ['&', '<', '>', '"', ''', '-'],
-                ['&', '<', '>', '"', "'", '-'],
-                $str,
-            );
+				['&amp;', '&lt;', '&gt;', '&quot;', '&apos;', '&#45;'],
+				['&', '<', '>', '"', "'", '-'],
+				$str,
+			);
 		}
 
 		return $str;