From 835d6842212853c2127b700ea6b251312b85f570 Mon Sep 17 00:00:00 2001 From: Andrii Riabchenko Date: Thu, 14 Mar 2024 14:32:57 +0200 Subject: [PATCH] new file: projects/symfony.com/cs/package.yml --- projects/symfony.com/cs/package.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 projects/symfony.com/cs/package.yml diff --git a/projects/symfony.com/cs/package.yml b/projects/symfony.com/cs/package.yml new file mode 100644 index 00000000..27688455 --- /dev/null +++ b/projects/symfony.com/cs/package.yml @@ -0,0 +1,29 @@ +distributable: https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/releases/download/{{version.tag}}/php-cs-fixer.phar + +versions: + github: PHP-CS-Fixer/PHP-CS-Fixer + +warnings: + - vendored + +dependencies: + php.net: '>=7.4' + +build: + - install -D symfony.com∕cs-{{version}}.phar {{prefix}}/libexec/lib/php-cs-fixer.phar + - run: | + cat > php-cs-fixer <foo( 'Hello World!' );" > test.php + - php-cs-fixer fix test.php + - cat test.php | grep "\$this->foo('Hello World!');"