Skip to content

Commit

Permalink
chore: Rebrand
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Wurst <[email protected]>
  • Loading branch information
ChristophWurst committed Sep 18, 2024
1 parent bf8fb3f commit 8939ae4
Show file tree
Hide file tree
Showing 32 changed files with 51 additions and 68 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# christophwurst/nextcloud-rector Changelog
# nextcloud/rector Changelog

All notable changes to this project will be documented in this file.

Expand Down
12 changes: 6 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ code.

You can find help and discussion in the following places:

* GitHub Issues: <https://github.com/christophwurst/nextcloud-rector/issues>
* GitHub Issues: <https://github.com/nextcloud/rector/issues>

## Reporting Bugs

Expand Down Expand Up @@ -72,11 +72,11 @@ When you do begin working on your feature, here are some guidelines to consider:
We will use this description to update the CHANGELOG. If there is no
description, or it does not adequately describe your feature, we may ask you
to update the description.
* christophwurst/nextcloud-rector follows a superset of **[PSR-12 coding standard][psr-12]**.
* nextcloud/rector follows a superset of **[PSR-12 coding standard][psr-12]**.
Please ensure your code does, too. _Hint: run `composer dev:lint` to check._
* Please **write tests** for any new features you add.
* Please **ensure that tests pass** before submitting your pull request.
christophwurst/nextcloud-rector automatically runs tests for pull requests. However,
nextcloud/rector automatically runs tests for pull requests. However,
running the tests locally will help save time. _Hint: run `composer test`._
* **Use topic/feature branches.** Please do not ask to pull from your main branch.
* For more information, see "[Understanding the GitHub flow][gh-flow]."
Expand Down Expand Up @@ -169,9 +169,9 @@ composer test
CaptainHook will automatically run all tests before pushing to the remote
repository.

[github]: https://github.com/christophwurst/nextcloud-rector
[issues]: https://github.com/christophwurst/nextcloud-rector/issues
[pull requests]: https://github.com/christophwurst/nextcloud-rector/pulls
[github]: https://github.com/nextcloud/rector
[issues]: https://github.com/nextcloud/rector/issues
[pull requests]: https://github.com/nextcloud/rector/pulls
[psr-12]: https://www.php-fig.org/psr/psr-12/
[gh-flow]: https://guides.github.com/introduction/flow/
[conventional commits]: https://www.conventionalcommits.org/
25 changes: 4 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,9 @@
<h1 align="center">christophwurst/nextcloud-rector</h1>
<h1 align="center">nextcloud/rector</h1>

<p align="center">
<strong>Rector upgrade rules for Nextcloud</strong>
</p>

<!--
TODO: Make sure the following URLs are correct and working for your project.
Then, remove these comments to display the badges, giving users a quick
overview of your package.
<p align="center">
<a href="https://github.com/@ChristophWurst/nextcloud-rector"><img src="https://img.shields.io/badge/source-christophwurst/nextcloud--rector-blue.svg?style=flat-square" alt="Source Code"></a>
<a href="https://packagist.org/packages/christophwurst/nextcloud-rector"><img src="https://img.shields.io/packagist/v/christophwurst/nextcloud-rector.svg?style=flat-square&label=release" alt="Download Package"></a>
<a href="https://php.net"><img src="https://img.shields.io/packagist/php-v/christophwurst/nextcloud-rector.svg?style=flat-square&colorB=%238892BF" alt="PHP Programming Language"></a>
<a href="https://github.com/@ChristophWurst/nextcloud-rector/blob/main/LICENSE"><img src="https://img.shields.io/packagist/l/christophwurst/nextcloud-rector.svg?style=flat-square&colorB=darkcyan" alt="Read License"></a>
<a href="https://github.com/@ChristophWurst/nextcloud-rector/actions/workflows/continuous-integration.yml"><img src="https://img.shields.io/github/actions/workflow/status/@ChristophWurst/nextcloud-rector/continuous-integration.yml?branch=main&style=flat-square&logo=github" alt="Build Status"></a>
<a href="https://codecov.io/gh/@ChristophWurst/nextcloud-rector"><img src="https://img.shields.io/codecov/c/gh/@ChristophWurst/nextcloud-rector?label=codecov&logo=codecov&style=flat-square" alt="Codecov Code Coverage"></a>
<a href="https://shepherd.dev/github/@ChristophWurst/nextcloud-rector"><img src="https://img.shields.io/endpoint?style=flat-square&url=https%3A%2F%2Fshepherd.dev%2Fgithub%2F%40ChristophWurst%2Fnextcloud-rector%2Fcoverage" alt="Psalm Type Coverage"></a>
</p>
-->


## About

<!--
Expand All @@ -40,7 +23,7 @@ uphold this code.
Install this package as a dependency using [Composer](https://getcomposer.org).

``` bash
composer require christophwurst/nextcloud-rector
composer require nextcloud/rector
```

<!--
Expand All @@ -51,7 +34,7 @@ If you need to provide more detailed examples, use the `docs/` directory
and provide a link here to the documentation.
``` php
use ChristophWurst\Nextcloud\Rector\Example;
use Nextcloud\Rector\Example;
$example = new Example();
echo $example->greet('fellow human');
Expand All @@ -72,7 +55,7 @@ Contributions are welcome! To contribute, please familiarize yourself with

## Copyright and License

christophwurst/nextcloud-rector is copyright © [Christoph Wurst](https://wuc.me)
nextcloud/rector is copyright © [Christoph Wurst](https://wuc.me)
and licensed for use under the terms of the
GNU Affero General Public License (AGPL-3.0-or-later) as published by the Free
Software Foundation. Please see [COPYING](COPYING) and [NOTICE](NOTICE) for more
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "christophwurst/nextcloud-rector",
"name": "nextcloud/rector",
"description": "Rector upgrade rules for Nextcloud",
"license": "AGPL-3.0-or-later",
"type": "library",
Expand All @@ -26,12 +26,12 @@
"prefer-stable": true,
"autoload": {
"psr-4": {
"ChristophWurst\\Nextcloud\\Rector\\": "src/"
"Nextcloud\\Rector\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"ChristophWurst\\Nextcloud\\Rector\\Test\\": "tests/"
"Nextcloud\\Rector\\Test\\": "tests/"
}
},
"config": {
Expand Down
2 changes: 1 addition & 1 deletion config/nextcloud-25/nextcloud-25-deprecations.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

use ChristophWurst\Nextcloud\Rector\Rector\OcServerToOcpServerRector;
use Nextcloud\Rector\Rector\OcServerToOcpServerRector;
use Rector\Config\RectorConfig;

return static function (RectorConfig $rectorConfig): void {
Expand Down
2 changes: 1 addition & 1 deletion config/nextcloud-26/nextcloud-26-deprecations.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

use ChristophWurst\Nextcloud\Rector\Rector\RenameUserIdRector;
use Nextcloud\Rector\Rector\RenameUserIdRector;
use Rector\Config\RectorConfig;
use Rector\Php80\Rector\Class_\AnnotationToAttributeRector;
use Rector\Php80\ValueObject\AnnotationToAttribute;
Expand Down
2 changes: 1 addition & 1 deletion config/nextcloud-all/nextcloud-all-deprecations.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

use ChristophWurst\Nextcloud\Rector\Rector\OcpUtilAddScriptRector;
use Nextcloud\Rector\Rector\OcpUtilAddScriptRector;
use Rector\Config\RectorConfig;

return static function (RectorConfig $rectorConfig): void {
Expand Down
2 changes: 1 addition & 1 deletion src/Rector/OcServerToOcpServerRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* SPDX-License-Identifier: AGPL-3.0-only
*/

namespace ChristophWurst\Nextcloud\Rector\Rector;
namespace Nextcloud\Rector\Rector;

use PhpParser\Node;
use PhpParser\Node\Expr\MethodCall;
Expand Down
2 changes: 1 addition & 1 deletion src/Rector/OcpUtilAddScriptRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace ChristophWurst\Nextcloud\Rector\Rector;
namespace Nextcloud\Rector\Rector;

use PhpParser\Node;
use PhpParser\Node\Arg;
Expand Down
2 changes: 1 addition & 1 deletion src/Rector/RenameUserIdRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

namespace ChristophWurst\Nextcloud\Rector\Rector;
namespace Nextcloud\Rector\Rector;

use PhpParser\Node;
use PhpParser\Node\Expr\Variable;
Expand Down
2 changes: 1 addition & 1 deletion src/Set/NextcloudSets.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace ChristophWurst\Nextcloud\Rector\Set;
namespace Nextcloud\Rector\Set;

use Rector\Set\Contract\SetListInterface;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace ChristophWurst\Nextcloud\Rector\Test\Rector\OcServerToOcpServerRector\Fixture;
namespace Nextcloud\Rector\Test\Rector\OcServerToOcpServerRector\Fixture;

use OC;
use OCP\IRequest;
Expand All @@ -19,7 +19,7 @@ class SomeClass
-----
<?php

namespace ChristophWurst\Nextcloud\Rector\Test\Rector\OcServerToOcpServerRector\Fixture;
namespace Nextcloud\Rector\Test\Rector\OcServerToOcpServerRector\Fixture;

use OC;
use OCP\IRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace ChristophWurst\Nextcloud\Rector\Test\Rector\OcServerToOcpServerRector;
namespace Nextcloud\Rector\Test\Rector\OcServerToOcpServerRector;

use Iterator;
use PHPUnit\Framework\Attributes\DataProvider;
Expand Down
2 changes: 1 addition & 1 deletion tests/Rector/OcServerToOcpServerRector/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

use ChristophWurst\Nextcloud\Rector\Rector\OcServerToOcpServerRector;
use Nextcloud\Rector\Rector\OcServerToOcpServerRector;
use Rector\Config\RectorConfig;

return RectorConfig::configure()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace ChristophWurst\Nextcloud\Rector\Test\Rector\OcpUtilAddScriptRector;
namespace Nextcloud\Rector\Test\Rector\OcpUtilAddScriptRector;

use Iterator;
use PHPUnit\Framework\Attributes\DataProvider;
Expand Down
2 changes: 1 addition & 1 deletion tests/Rector/OcpUtilAddScriptRector/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

use ChristophWurst\Nextcloud\Rector\Rector\OcpUtilAddScriptRector;
use Nextcloud\Rector\Rector\OcpUtilAddScriptRector;
use Rector\Config\RectorConfig;

return RectorConfig::configure()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ abstract class Controller

}

namespace ChristophWurst\Nextcloud\Rector\Test\Rector\RenameUserIdRector\Fixture;
namespace Nextcloud\Rector\Test\Rector\RenameUserIdRector\Fixture;

class SomeClass extends \OCP\AppFramework\Controller
{
Expand All @@ -26,7 +26,7 @@ abstract class Controller

}

namespace ChristophWurst\Nextcloud\Rector\Test\Rector\RenameUserIdRector\Fixture;
namespace Nextcloud\Rector\Test\Rector\RenameUserIdRector\Fixture;

class SomeClass extends \OCP\AppFramework\Controller
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ abstract class Controller

}

namespace ChristophWurst\Nextcloud\Rector\Test\Rector\RenameUserIdRector\Fixture;
namespace Nextcloud\Rector\Test\Rector\RenameUserIdRector\Fixture;

class SomeClass extends \OCP\AppFramework\Controller
{
Expand All @@ -26,7 +26,7 @@ abstract class Controller

}

namespace ChristophWurst\Nextcloud\Rector\Test\Rector\RenameUserIdRector\Fixture;
namespace Nextcloud\Rector\Test\Rector\RenameUserIdRector\Fixture;

class SomeClass extends \OCP\AppFramework\Controller
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ abstract class Controller

}

namespace ChristophWurst\Nextcloud\Rector\Test\Rector\RenameUserIdRector\Fixture;
namespace Nextcloud\Rector\Test\Rector\RenameUserIdRector\Fixture;

class SomeClass extends \OCP\AppFramework\Controller
{
Expand All @@ -26,7 +26,7 @@ abstract class Controller

}

namespace ChristophWurst\Nextcloud\Rector\Test\Rector\RenameUserIdRector\Fixture;
namespace Nextcloud\Rector\Test\Rector\RenameUserIdRector\Fixture;

class SomeClass extends \OCP\AppFramework\Controller
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace OCP\Settings;
interface ISettings {
}

namespace ChristophWurst\Nextcloud\Rector\Test\Rector\RenameUserIdRector\Fixture;
namespace Nextcloud\Rector\Test\Rector\RenameUserIdRector\Fixture;

class SomeClass implements \OCP\Settings\ISettings
{
Expand All @@ -22,7 +22,7 @@ namespace OCP\Settings;
interface ISettings {
}

namespace ChristophWurst\Nextcloud\Rector\Test\Rector\RenameUserIdRector\Fixture;
namespace Nextcloud\Rector\Test\Rector\RenameUserIdRector\Fixture;

class SomeClass implements \OCP\Settings\ISettings
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace ChristophWurst\Nextcloud\Rector\Test\Rector\RenameUserIdRector\Fixture;
namespace Nextcloud\Rector\Test\Rector\RenameUserIdRector\Fixture;

class SomeClass
{
Expand All @@ -12,7 +12,7 @@ class SomeClass
-----
<?php

namespace ChristophWurst\Nextcloud\Rector\Test\Rector\RenameUserIdRector\Fixture;
namespace Nextcloud\Rector\Test\Rector\RenameUserIdRector\Fixture;

class SomeClass
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Rector/RenameUserIdRector/RenameUserIdRectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

namespace ChristophWurst\Nextcloud\Rector\Test\Rector\RenameUserIdRector;
namespace Nextcloud\Rector\Test\Rector\RenameUserIdRector;

use Iterator;
use PHPUnit\Framework\Attributes\DataProvider;
Expand Down
2 changes: 1 addition & 1 deletion tests/Rector/RenameUserIdRector/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

use ChristophWurst\Nextcloud\Rector\Rector\RenameUserIdRector;
use Nextcloud\Rector\Rector\RenameUserIdRector;
use Rector\Config\RectorConfig;

return RectorConfig::configure()
Expand Down
4 changes: 2 additions & 2 deletions tests/Set/Fixture/test_fixture.php.inc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace ChristophWurst\Nextcloud\Rector\Test\Set\Fixture;
namespace Nextcloud\Rector\Test\Set\Fixture;

use OC;
use OCP\IRequest;
Expand All @@ -20,7 +20,7 @@ class SomeClass
-----
<?php

namespace ChristophWurst\Nextcloud\Rector\Test\Set\Fixture;
namespace Nextcloud\Rector\Test\Set\Fixture;

use OC;
use OCP\IRequest;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace ChristophWurst\Nextcloud\Rector\Test\Set\Nextcloud26\Fixture;
namespace Nextcloud\Rector\Test\Set\Nextcloud26\Fixture;

class SomeController
{
Expand All @@ -15,7 +15,7 @@ class SomeController
-----
<?php

namespace ChristophWurst\Nextcloud\Rector\Test\Set\Nextcloud26\Fixture;
namespace Nextcloud\Rector\Test\Set\Nextcloud26\Fixture;

class SomeController
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Set/Nextcloud26/Nextcloud26SetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace ChristophWurst\Nextcloud\Rector\Test\Set\Nextcloud26;
namespace Nextcloud\Rector\Test\Set\Nextcloud26;

use Iterator;
use PHPUnit\Framework\Attributes\DataProvider;
Expand Down
2 changes: 1 addition & 1 deletion tests/Set/Nextcloud26/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

use ChristophWurst\Nextcloud\Rector\Set\NextcloudSets;
use Nextcloud\Rector\Set\NextcloudSets;
use Rector\Config\RectorConfig;

return RectorConfig::configure()
Expand Down
Loading

0 comments on commit 8939ae4

Please sign in to comment.