for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of Symplify
* Copyright (c) 2016 Tomas Votruba (http://tomasvotruba.cz).
*/
namespace Symplify\PHP7_CodeSniffer\Legacy;
final class LegacyConfiguration
{
public static function setup()
self::ensureLineEndingsAreDetected();
self::setupVerbosityToMakeLegacyCodeRun();
}
/**
* Ensure this option is enabled or else line endings will not always
* be detected properly for files created on a Mac with the /r line ending.
private static function ensureLineEndingsAreDetected()
ini_set('auto_detect_line_endings', true);
private static function setupVerbosityToMakeLegacyCodeRun()
if (!defined('PHP_CODESNIFFER_VERBOSITY')) {
define('PHP_CODESNIFFER_VERBOSITY', 0);