From 16b1316f6eb288f4f662c5be705584bb8d11270f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Kr=C3=A4mer?= Date: Mon, 8 Aug 2016 15:45:06 +0200 Subject: [PATCH] phpcs fixes --- src/ORM/SaveOptionsBuilder.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ORM/SaveOptionsBuilder.php b/src/ORM/SaveOptionsBuilder.php index b34e1f638fc..f6a689ac606 100644 --- a/src/ORM/SaveOptionsBuilder.php +++ b/src/ORM/SaveOptionsBuilder.php @@ -70,6 +70,7 @@ public function parseArrayOptions($array) foreach ($array as $key => $value) { $this->{$key}($value); } + return $this; } @@ -134,6 +135,7 @@ protected function _checkAssociation(Table $table, $association) public function guard($guard) { $this->_options['guard'] = (bool)$guard; + return $this; } @@ -147,6 +149,7 @@ public function validate($validate) { $this->_table->validator($validate); $this->_options['validate'] = $validate; + return $this; } @@ -159,6 +162,7 @@ public function validate($validate) public function checkExisting($checkExisting) { $this->_options['checkExisting'] = (bool)$checkExisting; + return $this; } @@ -171,6 +175,7 @@ public function checkExisting($checkExisting) public function checkRules($checkRules) { $this->_options['checkRules'] = (bool)$checkRules; + return $this; } @@ -183,6 +188,7 @@ public function checkRules($checkRules) public function atomic($atomic) { $this->_options['atomic'] = (bool)$atomic; + return $this; } @@ -207,6 +213,7 @@ public function set($option, $value) return $this->{$option}($value); } $this->_options[$option] = $value; + return $this; } }