diff -r 000000000000 -r 7f95f8617b0b vendor/symfony/check_cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vendor/symfony/check_cs Sat Sep 24 15:40:41 2011 +0200 @@ -0,0 +1,106 @@ +#!/usr/bin/env php +files() + ->name('*.md') + ->name('*.php') + ->name('*.php.dist') + ->name('*.twig') + ->name('*.xml') + ->name('*.xml.dist') + ->name('*.yml') + ->in(array(__DIR__.'/src', __DIR__.'/tests')) + ->notName(basename(__FILE__)) + ->exclude('.git') + ->exclude('vendor') +; + +$count = 0; + +foreach ($finder as $file) { + + /* @var $file Symfony\Component\Finder\SplFileInfo */ + + // These files are skipped because tests would break + foreach(array( + 'tests/Symfony/Tests/Component/ClassLoader/ClassCollectionLoaderTest.php', + 'tests/Symfony/Tests/Component/DependencyInjection/Fixtures/containers/container9.php', + 'tests/Symfony/Tests/Component/DependencyInjection/Fixtures/includes/foo.php', + 'tests/Symfony/Tests/Component/DependencyInjection/Fixtures/php/services9.php', + 'tests/Symfony/Tests/Component/DependencyInjection/Fixtures/yaml/services9.yml', + 'tests/Symfony/Tests/Component/Routing/Fixtures/dumper/url_matcher1.php', + 'tests/Symfony/Tests/Component/Routing/Fixtures/dumper/url_matcher2.php', + 'tests/Symfony/Tests/Component/Yaml/Fixtures/sfTests.yml', + ) as $skippedFile) { + + if ($skippedFile === substr($file->getRealPath(), strlen($skippedFile) * -1)) { + continue(2); + } + } + + $old = file_get_contents($file->getRealpath()); + + $new = $old; + + // [Structure] Never use short tags (getRealpath(), $new); + } + printf('%4d) %s'.PHP_EOL, $count, $file->getRelativePathname()); + } +} + +exit($count ? 1 : 0);