DevGroup-ru/yii2-arangodb

[Insight] Boolean should be compared strictly - in Query.php, line 544

bethrezen opened this issue · 0 comments

in Query.php, line 544

With booleans, only strict comparison (with === operator) should be used to lower bug risks and to improve performances.

     * @param $params
     * @return string
     */
    protected function buildSelect($columns, &$params)
    {
        if ($columns == null || empty($columns)) {
            return 'RETURN ' . $this->from;
        }

        if (!is_array($columns)) {
            return 'RETURN ' . $columns;

Posted from SensioLabsInsight