src/Console/Command/FixCommandExitStatusCalculator.php
public function calculate($isDryRun, $hasChangedFiles, $hasInvalidErrors, $hasExceptionErrors)
    {
        $exitStatus = 0;

        if ($isDryRun) {
            if ($hasChangedFiles) {
                $exitStatus |= self::EXIT_STATUS_FLAG_HAS_CHANGED_FILES;
            }

            if ($hasInvalidErrors) {
                $exitStatus |= self::EXIT_STATUS_FLAG_HAS_INVALID_FILES;
            }
        }

        if ($hasExceptionErrors) {
            $exitStatus |= self::EXIT_STATUS_FLAG_EXCEPTION_IN_APP;
        }

        return $exitStatus;
    }
public function calculate($isDryRun, $hasChangedFiles, $hasInvalidErrors, $hasExceptionErrors)
    {
        $exitStatus = 0;

        if ($isDryRun) {
            if ($hasChangedFiles) {
                $exitStatus |= self::EXIT_STATUS_FLAG_HAS_CHANGED_FILES;
            }

            if ($hasInvalidErrors) {
                $exitStatus |= self::EXIT_STATUS_FLAG_HAS_INVALID_FILES;
            }
        }

        if ($hasExceptionErrors) {
            $exitStatus |= self::EXIT_STATUS_FLAG_EXCEPTION_IN_APP;
        }

        return $exitStatus;
    }
public function calculate ( $ isDryRun , $ hasChangedFiles , $ hasInvalidErrors , $ hasExceptionErrors ) { $ exitStatus = 0 ; if ( $ isDryRun ) { if ( $ hasChangedFiles ) { $ exitStatus |= self :: EXIT_STATUS_FLAG_HAS_CHANGED_FILES ; } if ( $ hasInvalidErrors ) { $ exitStatus |= self :: EXIT_STATUS_FLAG_HAS_INVALID_FILES ; } } if ( $ hasExceptionErrors ) { $ exitStatus |= self :: EXIT_STATUS_FLAG_EXCEPTION_IN_APP ; } return $ exitStatus ; }
@param bool $isDryRun
@param bool $hasChangedFiles
@param bool $hasInvalidErrors
@param bool $hasExceptionErrors

@return int
@param bool $isDryRun @param bool $hasChangedFiles @param bool $hasInvalidErrors @param bool $hasExceptionErrors