diff --git a/README.md b/README.md index 170574b..32bf471 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,14 @@ -# Boatrace Sakura Trimmer +# Trimmer in the Boatrace Venture Project -[![Build Status](https://github.com/boatrace-sakura/trimmer/workflows/tests/badge.svg)](https://github.com/boatrace-sakura/trimmer/actions?query=workflow%3Atests) -[![Coverage Status](https://coveralls.io/repos/github/boatrace-sakura/trimmer/badge.svg?branch=main)](https://coveralls.io/github/boatrace-sakura/trimmer?branch=main) -[![Latest Stable Version](https://poser.pugx.org/boatrace-sakura/trimmer/v/stable)](https://packagist.org/packages/boatrace-sakura/trimmer) -[![Latest Unstable Version](https://poser.pugx.org/boatrace-sakura/trimmer/v/unstable)](https://packagist.org/packages/boatrace-sakura/trimmer) -[![License](https://poser.pugx.org/boatrace-sakura/trimmer/license)](https://packagist.org/packages/boatrace-sakura/trimmer) +[![Build Status](https://github.com/BoatraceVentureProject/Trimmer/workflows/tests/badge.svg)](https://github.com/BoatraceVentureProject/Trimmer/actions?query=workflow%3Atests) +[![Coverage Status](https://coveralls.io/repos/github/BoatraceVentureProject/Trimmer/badge.svg?branch=main)](https://coveralls.io/github/BoatraceVentureProject/Trimmer?branch=main) +[![Latest Stable Version](https://poser.pugx.org/bvp/trimmer/v/stable)](https://packagist.org/packages/bvp/trimmer) +[![Latest Unstable Version](https://poser.pugx.org/bvp/trimmer/v/unstable)](https://packagist.org/packages/bvp/trimmer) +[![License](https://poser.pugx.org/bvp/trimmer/license)](https://packagist.org/packages/bvp/trimmer) ## Installation ```bash -composer require boatrace-sakura/trimmer +composer require bvp/trimmer ``` ## Usage @@ -17,7 +17,7 @@ composer require boatrace-sakura/trimmer require __DIR__ . '/vendor/autoload.php'; -use Boatrace\Sakura\Trimmer; +use Boatrace\Venture\Project\Trimmer; var_dump(Trimmer::trim(null)); // NULL var_dump(Trimmer::trim(' 競艇 ')); // string(6) "競艇" @@ -30,4 +30,4 @@ var_dump(Trimmer::rtrim(' 競艇 ')); // string(7) " 競艇" ``` ## License -The Boatrace Sakura Trimmer is open source software licensed under the [MIT license](LICENSE). +Trimmer in the Boatrace Venture Project is open source software licensed under the [MIT license](LICENSE). diff --git a/composer.json b/composer.json index 2e66cd5..727f9aa 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { - "name": "boatrace-sakura/trimmer", - "description": "The Boatrace Sakura Trimmer.", + "name": "bvp/trimmer", + "description": "Trimmer in the Boatrace Venture Project.", "license": "MIT", "type": "library", "authors": [ @@ -18,12 +18,12 @@ }, "autoload": { "psr-4": { - "Boatrace\\Sakura\\": "src/" + "Boatrace\\Venture\\Project\\": "src/" } }, "autoload-dev": { "psr-4": { - "Boatrace\\Sakura\\Tests\\": "tests/" + "Boatrace\\Venture\\Project\\Tests\\": "tests/" } } } diff --git a/config/definitions.php b/config/definitions.php index 718c353..0b92824 100644 --- a/config/definitions.php +++ b/config/definitions.php @@ -3,10 +3,10 @@ declare(strict_types=1); return [ - 'Trimmer' => \DI\create('\Boatrace\Sakura\Trimmer')->constructor( + 'Trimmer' => \DI\create('\Boatrace\Venture\Project\Trimmer')->constructor( \DI\get('MainTrimmer') ), 'MainTrimmer' => function ($container) { - return $container->get('\Boatrace\Sakura\MainTrimmer'); + return $container->get('\Boatrace\Venture\Project\MainTrimmer'); }, ]; diff --git a/phpunit.xml b/phpunit.xml index 9a8dd00..9390832 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -5,7 +5,7 @@ stopOnFailure="false"> - + ./tests/ diff --git a/src/MainTrimmer.php b/src/MainTrimmer.php index c65a531..e2af19b 100644 --- a/src/MainTrimmer.php +++ b/src/MainTrimmer.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Boatrace\Sakura; +namespace Boatrace\Venture\Project; /** * @author shimomo diff --git a/src/Trimmer.php b/src/Trimmer.php index 8f698bc..b16ec1a 100644 --- a/src/Trimmer.php +++ b/src/Trimmer.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Boatrace\Sakura; +namespace Boatrace\Venture\Project; use DI\Container; use DI\ContainerBuilder; @@ -13,7 +13,7 @@ class Trimmer { /** - * @var \Boatrace\Sakura\Trimmer + * @var \Boatrace\Venture\Project\Trimmer */ protected static Trimmer $instance; @@ -23,7 +23,7 @@ class Trimmer protected static Container $container; /** - * @param \Boatrace\Sakura\MainTrimmer $trimmer + * @param \Boatrace\Venture\Project\MainTrimmer $trimmer * @return void */ public function __construct(protected MainTrimmer $trimmer){} @@ -49,7 +49,7 @@ public static function __callStatic(string $name, array $arguments): ?string } /** - * @return \Boatrace\Sakura\Trimmer + * @return \Boatrace\Venture\Project\Trimmer */ public static function getInstance(): Trimmer { diff --git a/tests/MainTrimmerTest.php b/tests/MainTrimmerTest.php index 85c98f2..9b1f9a3 100644 --- a/tests/MainTrimmerTest.php +++ b/tests/MainTrimmerTest.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace Boatrace\Sakura\Tests; +namespace Boatrace\Venture\Project\Tests; -use Boatrace\Sakura\MainTrimmer; +use Boatrace\Venture\Project\MainTrimmer; use PHPUnit\Framework\TestCase as PHPUnitTestCase; /** @@ -13,7 +13,7 @@ class MainTrimmerTest extends PHPUnitTestCase { /** - * @var \Boatrace\Sakura\MainTrimmer + * @var \Boatrace\Venture\Project\MainTrimmer */ protected MainTrimmer $trimmer; diff --git a/tests/TrimmerTest.php b/tests/TrimmerTest.php index 6aee139..9a5ed18 100644 --- a/tests/TrimmerTest.php +++ b/tests/TrimmerTest.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace Boatrace\Sakura\Tests; +namespace Boatrace\Venture\Project\Tests; -use Boatrace\Sakura\Trimmer; +use Boatrace\Venture\Project\Trimmer; use PHPUnit\Framework\TestCase as PHPUnitTestCase; /**