From b9133e9a390b4c4e2c1ccf36b801b5b0beae2f02 Mon Sep 17 00:00:00 2001 From: gossi Date: Sat, 17 Aug 2019 15:56:22 +0200 Subject: [PATCH] Change name from gossi -> phootwork --- .settings/org.eclipse.php.composer.core.prefs | 2 + .settings/org.eclipse.php.core.prefs | 4 +- .settings/org.eclipse.php.ui.prefs | 2 + ....eclipse.wst.common.project.facet.core.xml | 2 +- README.md | 8 +- composer.json | 4 +- editors/eclipse/phootwork.xml | 214 ++++++++++++++++++ src/Config.php | 2 +- 8 files changed, 230 insertions(+), 8 deletions(-) create mode 100644 .settings/org.eclipse.php.composer.core.prefs create mode 100644 .settings/org.eclipse.php.ui.prefs create mode 100644 editors/eclipse/phootwork.xml diff --git a/.settings/org.eclipse.php.composer.core.prefs b/.settings/org.eclipse.php.composer.core.prefs new file mode 100644 index 0000000..68b1886 --- /dev/null +++ b/.settings/org.eclipse.php.composer.core.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +org.eclipse.php.composer.corebuildpath.includes.excludes=\n diff --git a/.settings/org.eclipse.php.core.prefs b/.settings/org.eclipse.php.core.prefs index 2942e1c..7ab7311 100644 --- a/.settings/org.eclipse.php.core.prefs +++ b/.settings/org.eclipse.php.core.prefs @@ -1,5 +1,5 @@ eclipse.preferences.version=1 include_path=0;/php-cs-fixer-config/src -phpVersion=php7.3 -useShortTags=true +phpVersion=php7.2 +useShortTags=false use_asp_tags_as_php=false diff --git a/.settings/org.eclipse.php.ui.prefs b/.settings/org.eclipse.php.ui.prefs new file mode 100644 index 0000000..9a3362f --- /dev/null +++ b/.settings/org.eclipse.php.ui.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +org.eclipse.php.ui.text.custom_code_templates= diff --git a/.settings/org.eclipse.wst.common.project.facet.core.xml b/.settings/org.eclipse.wst.common.project.facet.core.xml index 894067c..60f79cb 100644 --- a/.settings/org.eclipse.wst.common.project.facet.core.xml +++ b/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -3,6 +3,6 @@ - + diff --git a/README.md b/README.md index 1b537d5..b5b56f6 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ It's based on the ideas of [`prooph/php-cs-fixer-config`](https://github.com/pro Run ``` -$ composer require --dev gossi/php-cs-fixer-config +$ composer require --dev phootwork/php-cs-fixer-config ``` Add to composer.json; @@ -33,7 +33,7 @@ Create a configuration file `.php_cs` in the root of your project: ```php getFinder() ->exclude(['fixture']) ->in(__DIR__ . '/src') @@ -131,3 +131,7 @@ echo "pre commit hook finish" ## License This package is licensed using the MIT License. + +## Editor/IDE Support + +This repo contains a `editors/` folder, which has contains files to apply formatting based on these rules into your editor or IDE. You can have a look, if your editor/IDE is supported. A pull request to support yours is welcome diff --git a/composer.json b/composer.json index 973c800..964e6f5 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name" : "gossi/php-cs-fixer-config", + "name" : "phootwork/php-cs-fixer-config", "type" : "library", "description" : "shared config for php-cs-fixer", "license" : "MIT", @@ -13,7 +13,7 @@ ], "autoload" : { "psr-4" : { - "gossi\\fixer\\" : "src/" + "phootwork\\fixer\\" : "src/" } }, "require" : { diff --git a/editors/eclipse/phootwork.xml b/editors/eclipse/phootwork.xml new file mode 100644 index 0000000..c690880 --- /dev/null +++ b/editors/eclipse/phootwork.xml @@ -0,0 +1,214 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Config.php b/src/Config.php index 8055fb3..40bd632 100644 --- a/src/Config.php +++ b/src/Config.php @@ -6,7 +6,7 @@ class Config extends BaseConfig { public function __construct() { - parent::__construct('gossi'); + parent::__construct('phootwork'); $this->setRiskyAllowed(true); }