mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-11-04 14:46:19 +08:00 
			
		
		
		
	fix code style
This commit is contained in:
		@ -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;
 | 
				
			||||||
 | 
				
			|||||||
@ -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);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
@ -82,4 +82,3 @@ class Fixture extends Component
 | 
				
			|||||||
	{
 | 
						{
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user