src/Pharaoh/PharDiff.php
public function printGitDiff(): int
    {
        // Lazy way; requires git. Will replace with custom implementaiton later.
        
        $argA = \escapeshellarg($this->phars[0]->tmp);
        $argB = \escapeshellarg($this->phars[1]->tmp);
        /** @var string $diff */
        $diff = `git diff --no-index $argA $argB`;
        echo $diff;
        if (empty($diff) && $this->verbose) {
            echo 'No differences encountered.', PHP_EOL;
            return 0;
        }
        return 1;
    }
    
    /**
     * Prints a GNU diff of the two phars.
     *
     * @psalm-suppress ForbiddenCode
     * @return int
     */
    public function printGnuDiff(): int
    {
        // Lazy way. Will replace with custom implementaiton later.
        $argA = \escapeshellarg($this->phars[0]->tmp);
        $argB = \escapeshellarg($this->phars[1]->tmp);
        /** @var string $diff */
        $diff = `diff $argA $argB`;
        echo $diff;
        if (empty($diff) && $this->verbose) {
            echo 'No differences encountered.', PHP_EOL;
            return 0;
        }
        return 1;
    }
public function printGitDiff(): int
    {
        // Lazy way; requires git. Will replace with custom implementaiton later.
        
        $argA = \escapeshellarg($this->phars[0]->tmp);
        $argB = \escapeshellarg($this->phars[1]->tmp);
        /** @var string $diff */
        $diff = `git diff --no-index $argA $argB`;
        echo $diff;
        if (empty($diff) && $this->verbose) {
            echo 'No differences encountered.', PHP_EOL;
            return 0;
        }
        return 1;
    }
    
    /**
     * Prints a GNU diff of the two phars.
     *
     * @psalm-suppress ForbiddenCode
     * @return int
     */
    public function printGnuDiff(): int
    {
        // Lazy way. Will replace with custom implementaiton later.
        $argA = \escapeshellarg($this->phars[0]->tmp);
        $argB = \escapeshellarg($this->phars[1]->tmp);
        /** @var string $diff */
        $diff = `diff $argA $argB`;
        echo $diff;
        if (empty($diff) && $this->verbose) {
            echo 'No differences encountered.', PHP_EOL;
            return 0;
        }
        return 1;
    }
public function printGitDiff ( ) : int { // Lazy way; requires git. Will replace with custom implementaiton later. $ argA = \ escapeshellarg ( $ this -> phars [ 0 ] -> tmp ) ; $ argB = \ escapeshellarg ( $ this -> phars [ 1 ] -> tmp ) ; /** @var string $diff */ $ diff = `git diff --no-index $argA $argB`;
        echo $diff;
        if (empty($diff) && $this->verbose) {
            echo 'No differences encountered.', PHP_EOL;
            return 0;
        }
        return 1;
    }
    
    /**
     * Prints a GNU diff of the two phars.
     *
     * @psalm-suppress ForbiddenCode
     * @return int
     */
    public function printGnuDiff(): int
    {
        // Lazy way. Will replace with custom implementaiton later.
        $argA = \escapeshellarg($this->phars[0]->tmp);
        $argB = \escapeshellarg($this->phars[1]->tmp);
        /** @var string $diff */
        $diff = `diff $argA $argB` ; echo $ diff ; if ( empty ( $ diff ) && $ this -> verbose ) { echo 'No differences encountered.' , PHP_EOL ; return 0 ; } return 1 ; }
Prints a git-formatted diff of the two phars.

@psalm-suppress ForbiddenCode
@return int
Prints a git - formatted diff of the two phars .