From 33ab880dce2948ada3ff6494efccb5f147e1877c Mon Sep 17 00:00:00 2001 From: Alexander Schranz Date: Sun, 24 Jul 2022 01:06:28 +0200 Subject: [PATCH 1/3] Add recipe for php-cs-fixer/shim --- php-cs-fixer/shim/3.0/.php-cs-fixer.dist.php | 1 + php-cs-fixer/shim/3.0/manifest.json | 1 + 2 files changed, 2 insertions(+) create mode 120000 php-cs-fixer/shim/3.0/.php-cs-fixer.dist.php create mode 120000 php-cs-fixer/shim/3.0/manifest.json diff --git a/php-cs-fixer/shim/3.0/.php-cs-fixer.dist.php b/php-cs-fixer/shim/3.0/.php-cs-fixer.dist.php new file mode 120000 index 00000000..d3bc4607 --- /dev/null +++ b/php-cs-fixer/shim/3.0/.php-cs-fixer.dist.php @@ -0,0 +1 @@ +../../../friendsofphp/php-cs-fixer/3.0/.php-cs-fixer.dist.php \ No newline at end of file diff --git a/php-cs-fixer/shim/3.0/manifest.json b/php-cs-fixer/shim/3.0/manifest.json new file mode 120000 index 00000000..6dfbdab3 --- /dev/null +++ b/php-cs-fixer/shim/3.0/manifest.json @@ -0,0 +1 @@ +../../../friendsofphp/php-cs-fixer/3.0/manifest.json \ No newline at end of file From 77ccabf37dc4bc9e3ae2badcbefebf0cfdf54d33 Mon Sep 17 00:00:00 2001 From: Alexander Schranz Date: Sun, 24 Jul 2022 01:09:10 +0200 Subject: [PATCH 2/3] Use own manifest file --- php-cs-fixer/shim/3.0/manifest.json | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) mode change 120000 => 100644 php-cs-fixer/shim/3.0/manifest.json diff --git a/php-cs-fixer/shim/3.0/manifest.json b/php-cs-fixer/shim/3.0/manifest.json deleted file mode 120000 index 6dfbdab3..00000000 --- a/php-cs-fixer/shim/3.0/manifest.json +++ /dev/null @@ -1 +0,0 @@ -../../../friendsofphp/php-cs-fixer/3.0/manifest.json \ No newline at end of file diff --git a/php-cs-fixer/shim/3.0/manifest.json b/php-cs-fixer/shim/3.0/manifest.json new file mode 100644 index 00000000..2d1e9ef2 --- /dev/null +++ b/php-cs-fixer/shim/3.0/manifest.json @@ -0,0 +1,10 @@ +{ + "aliases": ["cs-fixer-shim", "php-cs-fixer-shim"], + "copy-from-recipe": { + ".php-cs-fixer.dist.php": ".php-cs-fixer.dist.php" + }, + "gitignore": [ + "/.php-cs-fixer.php", + "/.php-cs-fixer.cache" + ] +} From 8a868a8ae6c506eb4cccd62e5eb886166b581de4 Mon Sep 17 00:00:00 2001 From: Alexander Schranz Date: Sat, 17 Dec 2022 22:27:18 +0100 Subject: [PATCH 3/3] CI not allow symlink so we make a copy --- php-cs-fixer/shim/3.0/.php-cs-fixer.dist.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) mode change 120000 => 100644 php-cs-fixer/shim/3.0/.php-cs-fixer.dist.php diff --git a/php-cs-fixer/shim/3.0/.php-cs-fixer.dist.php b/php-cs-fixer/shim/3.0/.php-cs-fixer.dist.php deleted file mode 120000 index d3bc4607..00000000 --- a/php-cs-fixer/shim/3.0/.php-cs-fixer.dist.php +++ /dev/null @@ -1 +0,0 @@ -../../../friendsofphp/php-cs-fixer/3.0/.php-cs-fixer.dist.php \ No newline at end of file diff --git a/php-cs-fixer/shim/3.0/.php-cs-fixer.dist.php b/php-cs-fixer/shim/3.0/.php-cs-fixer.dist.php new file mode 100644 index 00000000..3788194c --- /dev/null +++ b/php-cs-fixer/shim/3.0/.php-cs-fixer.dist.php @@ -0,0 +1,13 @@ +in(__DIR__) + ->exclude('var') +; + +return (new PhpCsFixer\Config()) + ->setRules([ + '@Symfony' => true, + ]) + ->setFinder($finder) +;