From 4973838b69df20e97f9b9f990e5d90937ac34553 Mon Sep 17 00:00:00 2001 From: resurtm Date: Mon, 13 May 2013 22:33:32 +0600 Subject: [PATCH] Better argument name in the ActiveRecord::isOperationAtomic() method. --- yii/db/ActiveRecord.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yii/db/ActiveRecord.php b/yii/db/ActiveRecord.php index 8da2c90..2b7d2b8 100644 --- a/yii/db/ActiveRecord.php +++ b/yii/db/ActiveRecord.php @@ -1428,15 +1428,15 @@ class ActiveRecord extends Model } /** - * @param string $op possible values are ActiveRecord::INSERT, ActiveRecord::UPDATE and ActiveRecord::DELETE. + * @param string $operation possible values are ActiveRecord::INSERT, ActiveRecord::UPDATE and ActiveRecord::DELETE. * @return boolean whether given operation is atomic. Currently active scenario is taken into account. */ - private function isOperationAtomic($op) + private function isOperationAtomic($operation) { $scenario = $this->getScenario(); $scenarios = $this->scenarios(); if (isset($scenarios[$scenario], $scenario[$scenario]['atomic']) && is_array($scenarios[$scenario]['atomic'])) { - return in_array($op, $scenarios[$scenario]['atomic']); + return in_array($operation, $scenarios[$scenario]['atomic']); } else { return false; }