yii\gii\CodeFile::diff PHP Method

diff() public method

Returns diff or false if it cannot be calculated
public diff ( ) : boolean | string
return boolean | string
    public function diff()
    {
        $type = strtolower($this->getType());
        if (in_array($type, ['jpg', 'gif', 'png', 'exe'])) {
            return false;
        } elseif ($this->operation === self::OP_OVERWRITE) {
            return $this->renderDiff(file($this->path), $this->content);
        } else {
            return '';
        }
    }