yiisoft/yii2 — pull request #1327 by kamilsk (2013-11-26 17:18:55+00:00)
Title: fix issue #1315

fix wrong condition, and little code reorganize: static methods, instance methods