yiisoft/yii2 — pull request #6710 by creocoder (2014-12-31 15:45:46+00:00)
Title: ActiveRecord::delete() and ActiveRecord::deleteInternal() light refactoring

In first case var `$db` used once, so its meaningless declare it. In second case this http://refactoring.com/catalog/replaceNestedConditionalWithGuardClauses.html technique of refactoring used.