diff --git a/README.md b/README.md
index e3876e2..17fd157 100644
--- a/README.md
+++ b/README.md
@@ -1,11 +1,11 @@
# PHP Code Generator
-[](https://packagist.org/packages/gossi/php-code-generator)
-[](https://packagist.org/packages/gossi/php-code-generator)
-[](https://packagist.org/packages/gossi/php-code-generator)
-[](https://travis-ci.org/gossi/php-code-generator)
-[](https://scrutinizer-ci.com/g/gossi/php-code-generator)
-[](https://scrutinizer-ci.com/g/gossi/php-code-generator)
+[](https://packagist.org/packages/phpowermove/php-code-generator)
+[](https://packagist.org/packages/phpowermove/php-code-generator)
+[](https://packagist.org/packages/phpowermove/php-code-generator)
+[](https://travis-ci.org/phpowermove/php-code-generator)
+[](https://scrutinizer-ci.com/g/phpowermove/php-code-generator)
+[](https://scrutinizer-ci.com/g/phpowermove/php-code-generator)
This library provides some tools that you commonly need for generating PHP code.
@@ -14,7 +14,7 @@ This library provides some tools that you commonly need for generating PHP code.
Install via Composer:
```
-composer require gossi/php-code-generator
+composer require phpowermove/php-code-generator
```
## Documentation
diff --git a/bin/deploy.sh b/bin/deploy.sh
index f1433b9..5b0a398 100644
--- a/bin/deploy.sh
+++ b/bin/deploy.sh
@@ -10,10 +10,10 @@ cp -R api _site/
cd _site
git init
-git config user.name "gossi"
-git config user.email "gossi@users.noreply.github.com"
+git config user.name "phpowermove"
+git config user.email "phpowermove@users.noreply.github.com"
-git remote add upstream "https://$GH_TOKEN@github.com/gossi/php-code-generator.git"
+git remote add upstream "https://$GH_TOKEN@github.com/phpowermove/php-code-generator.git"
git fetch upstream
git reset upstream/gh-pages
diff --git a/composer.json b/composer.json
index 902b389..d92abfc 100644
--- a/composer.json
+++ b/composer.json
@@ -1,5 +1,5 @@
{
- "name" : "gossi/php-code-generator",
+ "name" : "phpowermove/php-code-generator",
"type" : "library",
"description" : "Toolset for generating PHP code",
"license" : "Apache-2.0",
@@ -12,23 +12,23 @@
"code generation"
],
"support" : {
- "issues" : "https://github.com/gossi/php-code-generator/issues"
+ "issues" : "https://github.com/phpowermove/php-code-generator/issues"
},
"autoload" : {
"psr-4" : {
- "gossi\\codegen\\" : "src/"
+ "phpowermove\\codegen\\" : "src/"
}
},
"autoload-dev" : {
"psr-4" : {
- "gossi\\codegen\\tests\\" : "tests/"
+ "phpowermove\\codegen\\tests\\" : "tests/"
}
},
"require" : {
"php" : ">=7.2",
- "gossi/docblock" : "~1",
- "gossi/php-code-profiles" : "dev-master",
- "gossi/php-code-formatter" : "dev-master",
+ "phpowermove/docblock" : "~1",
+ "phpowermove/php-code-profiles" : "dev-master",
+ "phpowermove/php-code-formatter" : "dev-master",
"symfony/options-resolver" : "^4.1.7",
"phootwork/file" : "~0",
"phootwork/tokenizer" : "~0",
diff --git a/docs/api.rst b/docs/api.rst
index 3f8ac2d..5e649b8 100644
--- a/docs/api.rst
+++ b/docs/api.rst
@@ -1,6 +1,6 @@
API
===
-API is available at `https://gossi.github.io/php-code-generator/api/master`_
+API is available at `https://phpowermove.github.io/php-code-generator/api/master`_
-.. _https://gossi.github.io/php-code-generator/api/master: https://gossi.github.io/php-code-generator/api/master
+.. _https://phpowermove.github.io/php-code-generator/api/master: https://phpowermove.github.io/php-code-generator/api/master
diff --git a/docs/best-practices.rst b/docs/best-practices.rst
index cb6a07f..5b941b0 100644
--- a/docs/best-practices.rst
+++ b/docs/best-practices.rst
@@ -36,6 +36,6 @@ That way, the host class will be user-land code and the developer can write his
Format in Post-Processing
-------------------------
-After generating code is finished, it can happen that (especially) bodies are formatted ugly. Thus just run the suggested code formatter after generating the code. Can be found on github `gossi/php-code-formatter`_.
+After generating code is finished, it can happen that (especially) bodies are formatted ugly. Thus just run the suggested code formatter after generating the code. Can be found on github `phpowermove/php-code-formatter`_.
-.. _gossi/php-code-formatter: https://github.com/gossi/php-code-formatter
+.. _phpowermove/php-code-formatter: https://github.com/phpowermove/php-code-formatter
diff --git a/docs/generator.rst b/docs/generator.rst
index f4ac099..df44107 100644
--- a/docs/generator.rst
+++ b/docs/generator.rst
@@ -6,7 +6,7 @@ The package ships with two generators, which are configurable through an associa
::
'This will be placed at the top, woo',
diff --git a/docs/getting-started.rst b/docs/getting-started.rst
index afbb424..48f7add 100644
--- a/docs/getting-started.rst
+++ b/docs/getting-started.rst
@@ -22,10 +22,10 @@ a) Simple:
::
getFileName());
diff --git a/docs/index.rst b/docs/index.rst
index a1e6732..0d7354e 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -1,33 +1,33 @@
Welcome to PHP Code Generator's documentation!
==============================================
-.. |license| image:: https://poser.pugx.org/gossi/php-code-generator/license
- :target: https://packagist.org/packages/gossi/php-code-generator
+.. |license| image:: https://poser.pugx.org/phpowermove/php-code-generator/license
+ :target: https://packagist.org/packages/phpowermove/php-code-generator
:alt: License
-.. |version| image:: https://poser.pugx.org/gossi/php-code-generator/v/stable
- :target: https://packagist.org/packages/gossi/php-code-generator
+.. |version| image:: https://poser.pugx.org/phpowermove/php-code-generator/v/stable
+ :target: https://packagist.org/packages/phpowermove/php-code-generator
:alt: Latest Stable Version
-.. |downloads| image:: https://poser.pugx.org/gossi/php-code-generator/downloads
- :target: https://packagist.org/packages/gossi/php-code-generator
+.. |downloads| image:: https://poser.pugx.org/phpowermove/php-code-generator/downloads
+ :target: https://packagist.org/packages/phpowermove/php-code-generator
:alt: Total Downloads
-.. |hhvm| image:: http://hhvm.h4cc.de/badge/gossi/php-code-generator.svg?style=flat
- :target: http://hhvm.h4cc.de/package/gossi/php-code-generator
+.. |hhvm| image:: http://hhvm.h4cc.de/badge/phpowermove/php-code-generator.svg?style=flat
+ :target: http://hhvm.h4cc.de/package/phpowermove/php-code-generator
:alt: HHVM Status
-.. |build| image:: https://travis-ci.org/gossi/php-code-generator.svg?branch=master
- :target: https://travis-ci.org/gossi/php-code-generator
+.. |build| image:: https://travis-ci.org/phpowermove/php-code-generator.svg?branch=master
+ :target: https://travis-ci.org/phpowermove/php-code-generator
:alt: Build Status
-.. |quality| image:: https://scrutinizer-ci.com/g/gossi/php-code-generator/badges/quality-score.png?b=master
- :target: https://scrutinizer-ci.com/g/gossi/php-code-generator/?branch=master
+.. |quality| image:: https://scrutinizer-ci.com/g/phpowermove/php-code-generator/badges/quality-score.png?b=master
+ :target: https://scrutinizer-ci.com/g/phpowermove/php-code-generator/?branch=master
:alt: Scrutinizer Code Quality
-.. |coverage| image:: https://scrutinizer-ci.com/g/gossi/php-code-generator/badges/coverage.png?b=master
- :target: https://scrutinizer-ci.com/g/gossi/php-code-generator/?branch=master
+.. |coverage| image:: https://scrutinizer-ci.com/g/phpowermove/php-code-generator/badges/coverage.png?b=master
+ :target: https://scrutinizer-ci.com/g/phpowermove/php-code-generator/?branch=master
:alt: Code Coverage
.. |br| raw:: html
@@ -42,7 +42,7 @@ This is a code generator for php code.
Quickstart
----------
-1. Install: ``composer require gossi/php-code-generator``
+1. Install: ``composer require phpowermove/php-code-generator``
2. You need a :doc:`model`
3. You need a :doc:`generator`
4. Generate the code contained in the model
diff --git a/docs/installation.rst b/docs/installation.rst
index 4a977d0..05507b0 100644
--- a/docs/installation.rst
+++ b/docs/installation.rst
@@ -7,7 +7,7 @@ Install via Composer:
{
"require": {
- "gossi/php-code-generator": "~0"
+ "phpowermove/php-code-generator": "~0"
}
}
@@ -15,4 +15,4 @@ or via CLI:
::
- composer require 'gossi/php-code-generator'
+ composer require 'phpowermove/php-code-generator'
diff --git a/docs/model.rst b/docs/model.rst
index 37f8177..596d0a4 100644
--- a/docs/model.rst
+++ b/docs/model.rst
@@ -56,7 +56,7 @@ Create your first Class
Let's start with a simple example::
setQualifiedName('my\\cool\\Tool');
@@ -77,9 +77,9 @@ Adding a Constructor
It's better to have a constructor, so we add one::
setMethod(PhpMethod::create('setDriver')
@@ -165,8 +165,8 @@ Declare use statements
When you put code inside a method there can be a reference to a class or interface, where you normally put the qualified name into a use statement. So here is how you do it::
getFileName());
diff --git a/src/config/CodeFileGeneratorConfig.php b/src/config/CodeFileGeneratorConfig.php
index 24109ec..3efb4b7 100644
--- a/src/config/CodeFileGeneratorConfig.php
+++ b/src/config/CodeFileGeneratorConfig.php
@@ -1,9 +1,9 @@
setAllowedTypes('headerComment', ['null', 'string', 'gossi\\docblock\\Docblock']);
- $resolver->setAllowedTypes('headerDocblock', ['null', 'string', 'gossi\\docblock\\Docblock']);
+ $resolver->setAllowedTypes('headerComment', ['null', 'string', 'phpowermove\\docblock\\Docblock']);
+ $resolver->setAllowedTypes('headerDocblock', ['null', 'string', 'phpowermove\\docblock\\Docblock']);
$resolver->setAllowedTypes('blankLineAtEnd', 'bool');
$resolver->setAllowedTypes('declareStrictTypes', 'bool');
diff --git a/src/config/CodeGeneratorConfig.php b/src/config/CodeGeneratorConfig.php
index d459dd5..1d53a65 100644
--- a/src/config/CodeGeneratorConfig.php
+++ b/src/config/CodeGeneratorConfig.php
@@ -1,10 +1,10 @@
CodeGenerator::SORT_METHODS_DEFAULT
]);
- $resolver->setAllowedTypes('profile', ['string', 'gossi\code\profiles\Profile']);
+ $resolver->setAllowedTypes('profile', ['string', 'phpowermove\code\profiles\Profile']);
$resolver->setAllowedTypes('generateDocblock', 'bool');
$resolver->setAllowedTypes('generateEmptyDocblock', 'bool');
$resolver->setAllowedTypes('generateScalarTypeHints', 'bool');
diff --git a/src/generator/BuilderFactory.php b/src/generator/BuilderFactory.php
index 1685974..2c55f2f 100644
--- a/src/generator/BuilderFactory.php
+++ b/src/generator/BuilderFactory.php
@@ -1,26 +1,26 @@
* @author Thomas Gossmann
- * @deprecated Not a structural model. Please refer to https://github.com/gossi/php-code-generator/issues/35 and join the discussion if you really need this
+ * @deprecated Not a structural model. Please refer to https://github.com/phpowermove/php-code-generator/issues/35 and join the discussion if you really need this
*/
class PhpFunction extends AbstractModel implements GenerateableInterface, NamespaceInterface, DocblockInterface, RoutineInterface {
diff --git a/src/model/PhpInterface.php b/src/model/PhpInterface.php
index f63b96f..07192c2 100644
--- a/src/model/PhpInterface.php
+++ b/src/model/PhpInterface.php
@@ -1,14 +1,14 @@
setQualifiedName('gossi\codegen\tests\fixtures\Entity')
+ $class->setQualifiedName('phpowermove\codegen\tests\fixtures\Entity')
->setAbstract(true)
->setDocblock($classDoc)
->setDescription($classDoc->getShortDescription())
@@ -87,7 +87,7 @@ public static function createEntity() {
* @return PhpClass
*/
public static function createClassWithConstants() {
- return PhpClass::create('gossi\\codegen\\tests\\fixtures\\ClassWithConstants')
+ return PhpClass::create('phpowermove\\codegen\\tests\\fixtures\\ClassWithConstants')
->setConstant(PhpConstant::create('BAR')->setExpression('self::FOO'))
->setConstant(PhpConstant::create('FOO', 'bar'))
->setConstant(PhpConstant::create('NMBR', 300));
@@ -99,8 +99,8 @@ public static function createClassWithConstants() {
* @return PhpClass
*/
public static function createClassWithTraits() {
- return PhpClass::create('gossi\\codegen\\tests\\fixtures\\ClassWithTraits')
- ->addUseStatement('gossi\\codegen\\tests\\fixtures\\DummyTrait', 'DT')
+ return PhpClass::create('phpowermove\\codegen\\tests\\fixtures\\ClassWithTraits')
+ ->addUseStatement('phpowermove\\codegen\\tests\\fixtures\\DummyTrait', 'DT')
->addTrait('DT');
}
@@ -125,11 +125,11 @@ public static function createABClass() {
* @return PhpClass
*/
public static function createClassWithComments() {
- $class = PhpClass::create('gossi\\codegen\\tests\\fixtures\\ClassWithComments');
+ $class = PhpClass::create('phpowermove\\codegen\\tests\\fixtures\\ClassWithComments');
$class->setDescription('A class with comments');
$class->setLongDescription('Here is a super dooper long-description');
$docblock = $class->getDocblock();
- $docblock->appendTag(AuthorTag::create('gossi'));
+ $docblock->appendTag(AuthorTag::create('phpowermove'));
$docblock->appendTag(SinceTag::create('0.2'));
$class->setConstant(PhpConstant::create('FOO', 'bar')
@@ -167,7 +167,7 @@ public static function createClassWithComments() {
*/
public static function createDummyInterface() {
$interface = PhpInterface::create('DummyInterface')
- ->setNamespace('gossi\codegen\tests\fixtures')
+ ->setNamespace('phpowermove\codegen\tests\fixtures')
->setDescription('Dummy docblock')
->setMethod(PhpMethod::create('foo'));
$interface->generateDocblock();
@@ -182,7 +182,7 @@ public static function createDummyInterface() {
*/
public static function createDummyTrait() {
$trait = PhpTrait::create('DummyTrait')
- ->setNamespace('gossi\\codegen\\tests\\fixtures')
+ ->setNamespace('phpowermove\\codegen\\tests\\fixtures')
->setDescription('Dummy docblock')
->setMethod(PhpMethod::create('foo')->setVisibility('public'))
->setProperty(PhpProperty::create('iAmHidden')->setVisibility('private'))
diff --git a/tests/config/ConfigTest.php b/tests/config/ConfigTest.php
index 201ea89..7e15a8e 100644
--- a/tests/config/ConfigTest.php
+++ b/tests/config/ConfigTest.php
@@ -1,11 +1,11 @@
add('phootwork\collection\ArrayList');
$list->add('Symfony\Component\Finder\Finder');
$list->add('phootwork\file\Path');
- $list->add('gossi\docblock\Docblock');
+ $list->add('phpowermove\docblock\Docblock');
$list->add('phootwork\lang\Text');
$list->add('phootwork\tokenizer\PhpTokenizer');
$list->add('phootwork\collection\Map');
$list->sort(new DefaultUseStatementComparator());
$this->assertEquals([
- 'gossi\docblock\Docblock',
+ 'phpowermove\docblock\Docblock',
'phootwork\collection\ArrayList',
'phootwork\collection\Map',
'phootwork\file\Path',
diff --git a/tests/generator/TraitGeneratorTest.php b/tests/generator/TraitGeneratorTest.php
index 3ff33c0..cb6d3ff 100644
--- a/tests/generator/TraitGeneratorTest.php
+++ b/tests/generator/TraitGeneratorTest.php
@@ -1,8 +1,8 @@
getMockForAbstractClass('gossi\codegen\model\AbstractPhpMember', [
+ return $this->getMockForAbstractClass('phpowermove\codegen\model\AbstractPhpMember', [
'__not_null__'
]);
}
diff --git a/tests/model/AbstractPhpStructTest.php b/tests/model/AbstractPhpStructTest.php
index 159664e..c2f2063 100644
--- a/tests/model/AbstractPhpStructTest.php
+++ b/tests/model/AbstractPhpStructTest.php
@@ -1,10 +1,10 @@
assertNotNull($class->getConstant(self::CONSTANT)->getDocblock());
$docblock = $class->getDocblock();
- $author = AuthorTag::create()->setName('gossi')->setEmail('iiih@mail.me');
+ $author = AuthorTag::create()->setName('phpowermove')->setEmail('iiih@mail.me');
$docblock->appendTag($author);
$this->assertTrue($docblock->hasTag('author'));
@@ -83,7 +83,7 @@ public function testClass() {
*
* this is my very long class
*
- * @author gossi
+ * @author phpowermove
*/';
$this->assertEquals($expected, $docblock->toString());
}
diff --git a/tests/model/MethodTest.php b/tests/model/MethodTest.php
index 6754d43..670882e 100644
--- a/tests/model/MethodTest.php
+++ b/tests/model/MethodTest.php
@@ -1,8 +1,8 @@
assertEquals(4, count($methods));