mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-11 19:20:01 +08:00
fix code style
This commit is contained in:
@@ -107,10 +107,10 @@ class BaseSecurity
|
||||
*/
|
||||
protected static function stripPadding($data)
|
||||
{
|
||||
$end = StringHelper::byteSubstr($data, -1, NULL);
|
||||
$end = StringHelper::byteSubstr($data, -1, null);
|
||||
$last = ord($end);
|
||||
$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 false;
|
||||
|
||||
@@ -348,5 +348,4 @@ abstract class BaseMailer extends Component implements MailerInterface, ViewCont
|
||||
$event = new MailEvent(['message' => $message, 'isSuccessful' => $isSuccessful]);
|
||||
$this->trigger(self::EVENT_AFTER_SEND, $event);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -82,4 +82,3 @@ class Fixture extends Component
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user