From 6b5ba253542c64edb6d659e9678cdad63727764e Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sun, 24 Dec 2023 15:15:09 +0100 Subject: [PATCH] Move around files --- .gitattributes | 1 + composer.json | 3 ++- psalm.xml | 3 --- schemas | 2 +- {src => tools}/AnnotationsBuilder.php | 8 ++++---- {src => tools}/DocsBuilder.php | 0 {src => tools}/DocsBuilder/Constructors.php | 0 {src => tools}/DocsBuilder/Methods.php | 0 8 files changed, 8 insertions(+), 9 deletions(-) rename {src => tools}/AnnotationsBuilder.php (99%) rename {src => tools}/DocsBuilder.php (100%) rename {src => tools}/DocsBuilder/Constructors.php (100%) rename {src => tools}/DocsBuilder/Methods.php (100%) diff --git a/.gitattributes b/.gitattributes index df67963ab..700a7ff8f 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,4 +1,5 @@ tests/ export-ignore +tools/ export-ignore extracted.json export-ignore README.md export-ignore CHANGELOG.md export-ignore diff --git a/composer.json b/composer.json index cf2966ad2..7d3b44d8f 100644 --- a/composer.json +++ b/composer.json @@ -99,7 +99,8 @@ }, "autoload-dev": { "psr-4": { - "danog\\MadelineProto\\Test\\": "tests/danog/MadelineProto" + "danog\\MadelineProto\\Test\\": "tests/danog/MadelineProto", + "danog\\MadelineProto\\": "tools/" }, "files": [ "tools/build_docs/schemas.php", diff --git a/psalm.xml b/psalm.xml index f23ff629e..ee9a55fd8 100644 --- a/psalm.xml +++ b/psalm.xml @@ -15,9 +15,6 @@ - - - diff --git a/schemas b/schemas index 5bf936239..c23c18b72 160000 --- a/schemas +++ b/schemas @@ -1 +1 @@ -Subproject commit 5bf936239e21cb2e2c028a828bff7c3b75be9995 +Subproject commit c23c18b720a3b705069bb0ce947d65898bd9f397 diff --git a/src/AnnotationsBuilder.php b/tools/AnnotationsBuilder.php similarity index 99% rename from src/AnnotationsBuilder.php rename to tools/AnnotationsBuilder.php index b674a9bf4..9368d18a6 100644 --- a/src/AnnotationsBuilder.php +++ b/tools/AnnotationsBuilder.php @@ -63,7 +63,7 @@ final class AnnotationsBuilder $this->blacklistHard = $this->blacklist; unset($this->blacklistHard['messages.getHistory'], $this->blacklistHard['channels.getMessages'], $this->blacklistHard['messages.getMessages'], $this->blacklistHard['updates.getDifference'], $this->blacklistHard['updates.getChannelDifference'], $this->blacklistHard['updates.getState']); - file_put_contents(__DIR__.'/Namespace/Blacklist.php', ' $methods) { if ($namespace === 'InternalDoc') { - $handle = fopen(__DIR__.'/InternalDoc.php', 'w'); + $handle = fopen(__DIR__.'/../src/InternalDoc.php', 'w'); fwrite($handle, "