src/CodeFile.php
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);
        }

        return '';
    }
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);
        }

        return '';
    }
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 ) ; } return '' ; }
Returns diff or false if it cannot be calculated

@return bool|string
Returns diff or false if it cannot be calculated