mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fix CS errors.
This commit is contained in:
parent
2bcd817367
commit
e410501791
6 changed files with 18 additions and 14 deletions
|
@ -1688,6 +1688,7 @@ class Model extends Object implements CakeEventListener {
|
|||
*
|
||||
* @param array $fieldList List of fields to allow to be saved
|
||||
* @return mixed On success Model::$data if its not empty or true, false on failure
|
||||
* @throws Exception
|
||||
* @link http://book.cakephp.org/2.0/en/models/saving-your-data.html
|
||||
*/
|
||||
public function save($data = null, $validate = true, $fieldList = array()) {
|
||||
|
|
|
@ -50,7 +50,10 @@ class Hash {
|
|||
$parts = explode('.', $path);
|
||||
} else {
|
||||
if (!is_array($path)) {
|
||||
throw new InvalidArgumentException(__d('cake_dev', 'Invalid Parameter %s, should be dot separated path or array.', $path));
|
||||
throw new InvalidArgumentException(__d('cake_dev',
|
||||
'Invalid Parameter %s, should be dot separated path or array.',
|
||||
$path
|
||||
));
|
||||
}
|
||||
|
||||
$parts = $path;
|
||||
|
|
|
@ -110,12 +110,12 @@ class Validation {
|
|||
/**
|
||||
* Alias of Validator::lengthBetween() for backwards compatibility.
|
||||
*
|
||||
* @see Validator::lengthBetween()
|
||||
* @deprecated Deprecated since 2.6, use Validator::lengthBetween() instead.
|
||||
* @param string $check Value to check for length
|
||||
* @param integer $min Minimum value in range (inclusive)
|
||||
* @param integer $max Maximum value in range (inclusive)
|
||||
* @return boolean Success
|
||||
* @see Validator::lengthBetween()
|
||||
* @deprecated Deprecated since 2.6, use Validator::lengthBetween() instead.
|
||||
*/
|
||||
public static function between($check, $min, $max) {
|
||||
return self::lengthBetween($check, $min, $max);
|
||||
|
|
Loading…
Reference in a new issue