fix code style

This commit is contained in:
AlexGx
2014-03-04 06:12:30 +02:00
parent c6183fc205
commit eaaa5b1bb5
14 changed files with 27 additions and 29 deletions

View File

@ -107,10 +107,10 @@ class BaseSecurity
*/ */
protected static function stripPadding($data) protected static function stripPadding($data)
{ {
$end = StringHelper::byteSubstr($data, -1, NULL); $end = StringHelper::byteSubstr($data, -1, null);
$last = ord($end); $last = ord($end);
$n = StringHelper::byteLength($data) - $last; $n = StringHelper::byteLength($data) - $last;
if (StringHelper::byteSubstr($data, $n, NULL) == str_repeat($end, $last)) { if (StringHelper::byteSubstr($data, $n, null) == str_repeat($end, $last)) {
return StringHelper::byteSubstr($data, 0, $n); return StringHelper::byteSubstr($data, 0, $n);
} }
return false; return false;

View File

@ -348,5 +348,4 @@ abstract class BaseMailer extends Component implements MailerInterface, ViewCont
$event = new MailEvent(['message' => $message, 'isSuccessful' => $isSuccessful]); $event = new MailEvent(['message' => $message, 'isSuccessful' => $isSuccessful]);
$this->trigger(self::EVENT_AFTER_SEND, $event); $this->trigger(self::EVENT_AFTER_SEND, $event);
} }
} }

View File

@ -82,4 +82,3 @@ class Fixture extends Component
{ {
} }
} }