Skip to content
Permalink
Browse files

Fix CS errors.

  • Loading branch information...
ADmad committed Jul 3, 2014
1 parent 2bcd817 commit e4105017919f4d5d4219a3115841e04fe0c42285
@@ -564,7 +564,7 @@ public function alterSchema($compare, $table = null) {
if (isset($col['after'])) {
$alter .= ' AFTER ' . $this->name($col['after']);
}
$colList[] = $alter;
$colList[] = $alter;
}
break;
}
@@ -1688,6 +1688,7 @@ public function saveField($name, $value, $validate = false) {
*
* @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()) {
@@ -1702,7 +1703,7 @@ public function save($data = null, $validate = true, $fieldList = array()) {
} else {
$options = $validate + $defaults;
}
if (!$options['atomic']) {
return $this->_doSave($data, $options);
}
@@ -826,7 +826,7 @@ public function callbackForTestSaveTransaction($event) {
$TestModel->create();
$result = $TestModel->save($data);
$this->assertTrue((bool)$result);
// force transaction to be rolled back in Post model
$event->stopPropagation();
return false;
@@ -275,8 +275,8 @@ public function implementedEvents() {
/**
* beforeRender method
*
* @param CakeEvent $event the event being sent
*
* @param CakeEvent $event the event being sent
* @return void
*/
public function beforeRender($event) {
@@ -286,7 +286,7 @@ public function beforeRender($event) {
/**
* afterRender method
*
* @param CakeEvent $event the event being sent
* @param CakeEvent $event the event being sent
* @return void
*/
public function afterRender($event) {
@@ -863,7 +863,7 @@ public function testElementCache() {
Cache::clear(true, 'test_view');
Cache::drop('test_view');
}
}
/**
* Test element events
@@ -50,12 +50,15 @@ public static function get(array $data, $path, $default = null) {
$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));
}
$parts = $path;
throw new InvalidArgumentException(__d('cake_dev',
'Invalid Parameter %s, should be dot separated path or array.',
$path
));
}
$parts = $path;
}
foreach ($parts as $key) {
if (is_array($data) && isset($data[$key])) {
$data =& $data[$key];
@@ -110,12 +110,12 @@ public static function lengthBetween($check, $min, $max) {
/**
* 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);

0 comments on commit e410501

Please sign in to comment.
You can’t perform that action at this time.