diff options
Diffstat (limited to 'lua/mason-registry/index/php-cs-fixer/init.lua')
| -rw-r--r-- | lua/mason-registry/index/php-cs-fixer/init.lua | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/lua/mason-registry/index/php-cs-fixer/init.lua b/lua/mason-registry/index/php-cs-fixer/init.lua deleted file mode 100644 index b70741f7..00000000 --- a/lua/mason-registry/index/php-cs-fixer/init.lua +++ /dev/null @@ -1,37 +0,0 @@ -local Pkg = require "mason-core.package" -local _ = require "mason-core.functional" -local github = require "mason-core.managers.github" -local platform = require "mason-core.platform" -local std = require "mason-core.managers.std" - -return Pkg.new { - name = "php-cs-fixer", - desc = _.dedent [[ - The PHP Coding Standards Fixer (PHP CS Fixer) tool fixes your code to follow standards; whether you want to - follow PHP coding standards as defined in the PSR-1, PSR-2, etc., or other community driven ones like the - Symfony one. You can also define your (team's) style through configuration.') - ]], - homepage = "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer", - languages = { Pkg.Lang.PHP }, - categories = { Pkg.Cat.Formatter }, - ---@async - ---@param ctx InstallContext - install = function(ctx) - github - .download_release_file({ - repo = "PHP-CS-Fixer/PHP-CS-Fixer", - asset_file = "php-cs-fixer.phar", - out_file = platform.is.win and "php-cs-fixer.phar" or "php-cs-fixer", - }) - .with_receipt() - platform.when { - unix = function() - std.chmod("+x", { "php-cs-fixer" }) - ctx:link_bin("php-cs-fixer", "php-cs-fixer") - end, - win = function() - ctx:link_bin("php-cs-fixer", ctx:write_php_exec_wrapper("php-cs-fixer", "php-cs-fixer.phar")) - end, - } - end, -} |
