Skip to content

Commit 9f255fd

Browse files
committed
lowercase instances changed as well
1 parent e449cf1 commit 9f255fd

7 files changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/phpcs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
tools: cs2pr
3131
- name: Install dependencies
3232
run:
33-
composer init --name=matomo/openapidocs --quiet;
33+
composer init --name=matomo/apireference --quiet;
3434
composer --no-plugins config allow-plugins.dealerdirect/phpcodesniffer-composer-installer true -n;
3535
composer config repositories.matomo-coding-standards vcs https://github.com/matomo-org/matomo-coding-standards -n;
3636
composer require matomo-org/matomo-coding-standards:dev-master;

API.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function getOpenApiSpec(string $pluginName, string $format = 'json'): arr
7474

7575
$filePath = $this->getSpecFilePath($pluginName);
7676
if (!$this->isSpecFileReadable($filePath)) {
77-
throw new \Exception('OpenAPI spec file was not found. Generate it first via openapidocs:generate-spec-file.');
77+
throw new \Exception('OpenAPI spec file was not found. Generate it first via apireference:generate-spec-file.');
7878
}
7979

8080
$specContents = $this->readSpecFile($filePath);

Commands/ExtractReportingApiMethodInfo.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class ExtractReportingApiMethodInfo extends ConsoleCommand
3131
*/
3232
protected function configure()
3333
{
34-
$this->setName('openapidocs:extract-api-method-info');
34+
$this->setName('apireference:extract-api-method-info');
3535
$this->setDescription('Extract the comment block and basic information about methods for the Matomo Reporting API.');
3636
$this->addRequiredValueOption('plugin', 'p', 'Name of the plugin to inspect');
3737
$this->addNoValueOption('not-dry-run', null, 'Flag to allow writing to file instead of outputting a dry run.');
@@ -68,7 +68,7 @@ protected function doInitialize(): void
6868
* Ideally, the actual command is quite short as it acts like a controller. It should only receive the input values,
6969
* execute the task by calling a method of another class and output any useful information.
7070
*
71-
* Execute the command like: ./console openapidocs:extract-api-method-info --plugin=TagManager --not-dry-run
71+
* Execute the command like: ./console apireference:extract-api-method-info --plugin=TagManager --not-dry-run
7272
*/
7373
protected function doExecute(): int
7474
{

Commands/GenerateAnnotations.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class GenerateAnnotations extends ConsoleCommand
2929
*/
3030
protected function configure()
3131
{
32-
$this->setName('openapidocs:generate-annotations');
32+
$this->setName('apireference:generate-annotations');
3333
$this->setDescription('Generate the annotations swagger-php uses to generate OpenAPI specs.');
3434
$this->addRequiredValueOption('plugin', null, 'Name of the plugin to annotate');
3535
$this->addNoValueOption('not-dry-run', null, 'Flag to allow writing to file instead of outputting a dry run.');
@@ -66,7 +66,7 @@ protected function doInitialize(): void
6666
* Ideally, the actual command is quite short as it acts like a controller. It should only receive the input values,
6767
* execute the task by calling a method of another class and output any useful information.
6868
*
69-
* Execute the command like: ./console openapidocs:generate-annotations --plugin=TagManager --not-dry-run
69+
* Execute the command like: ./console apireference:generate-annotations --plugin=TagManager --not-dry-run
7070
*/
7171
protected function doExecute(): int
7272
{

Commands/GenerateSpecFile.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function __construct(?SpecGenerationService $specGenerationService = null
4848
*/
4949
protected function configure()
5050
{
51-
$this->setName('openapidocs:generate-spec-file');
51+
$this->setName('apireference:generate-spec-file');
5252
$this->setDescription('Generate the OpenAPI documentation file for the Matomo APIs.');
5353
$this->addRequiredValueOption('plugin', 'p', 'Name of the plugin to document. Multiple plugins can be comma-separated');
5454
$this->addRequiredValueOption('format', 'f', 'Format of the spec file (JSON or YAML). Default is JSON');
@@ -88,7 +88,7 @@ protected function doInitialize(): void
8888
* Ideally, the actual command is quite short as it acts like a controller. It should only receive the input values,
8989
* execute the task by calling a method of another class and output any useful information.
9090
*
91-
* Execute the command like: ./console openapidocs:generate-spec-file --plugin=TagManager --not-dry-run
91+
* Execute the command like: ./console apireference:generate-spec-file --plugin=TagManager --not-dry-run
9292
*/
9393
protected function doExecute(): int
9494
{

phpcs.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0"?>
2-
<ruleset name="openapidocs" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">
2+
<ruleset name="apireference" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">
33

44
<description>Matomo Coding Standard for ApiReference plugin</description>
55

tests/Unit/Artifact/ArtifactWriterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ protected function setUp(): void
2929
{
3030
parent::setUp();
3131

32-
$this->temporaryDirectory = sys_get_temp_dir() . '/openapidocs_artifact_writer_' . uniqid('', true);
32+
$this->temporaryDirectory = sys_get_temp_dir() . '/apireference_artifact_writer_' . uniqid('', true);
3333
}
3434

3535
protected function tearDown(): void

0 commit comments

Comments
 (0)