change author directory name according to current fork, add authors to *composer.json*, add FIXME comments about type usage, move tests folder to its proper location

This commit is contained in:
Little Fluffy Clouds 2025-07-11 16:56:28 +03:00
parent a45eaca11f
commit c545a98f91
160 changed files with 178 additions and 123 deletions

View File

@ -1,7 +1,7 @@
{
"name": "mirzaev/deeproots",
"name": "deeproots/deeproots",
"description": "",
"homepage": "https://git.svoboda.works/mirzaev/deeproots",
"homepage": "https://git.svoboda.works/deeproots/deeproots",
"type": "site",
"keywords": [
"minimal",
@ -15,11 +15,20 @@
"email": "mirzaev@gmail.com",
"homepage": "https://mirzaev.page",
"role": "Programmer"
},
{
"name": "lfclouds",
"role": "Programmer"
},
{
"name": "veganarchist89",
"email": "kgoel89@gmail.com",
"role": "Programmer"
}
],
"support": {
"wiki": "https://git.svoboda.works/mirzaev/deeproots/wiki",
"issues": "https://git.svoboda.works/mirzaev/deeproots/issues"
"wiki": "https://git.svoboda.works/deeproots/deeproots/wiki",
"issues": "https://git.svoboda.works/deeproots/deeproots/issues"
},
"require": {
"php": "^8.4",
@ -36,12 +45,12 @@
},
"autoload": {
"psr-4": {
"mirzaev\\deeproots\\": "mirzaev/deeproots/system"
"deeproots\\deeproots\\": "deeproots/deeproots/system"
}
},
"autoload-dev": {
"psr-4": {
"mirzaev\\deeproots\\tests\\": "mirzaev/deeproots/tests"
"deeproots\\deeproots\\tests\\": "deeproots/deeproots/tests"
}
},
"scripts": {

View File

@ -2,10 +2,10 @@
declare(strict_types=1);
namespace mirzaev\deeproots\controllers;
namespace deeproots\deeproots\controllers;
// Files of the project
use mirzaev\deeproots\models\core as models;
use deeproots\deeproots\models\core as models;
// Framework for PHP
use mirzaev\minimal\core as minimal,
@ -16,7 +16,7 @@ use mirzaev\minimal\core as minimal,
/**
* Controllers core
*
* @package mirzaev\deeproots\controllers
* @package deeproots\deeproots\controllers
*
* @param language $language Language
* @param response $response Response

View File

@ -2,10 +2,10 @@
declare(strict_types=1);
namespace mirzaev\deeproots\controllers;
namespace deeproots\deeproots\controllers;
// Files of the project
use mirzaev\deeproots\controllers\core;
use deeproots\deeproots\controllers\core;
// Framework for PHP
use mirzaev\minimal\http\enumerations\content,
@ -14,7 +14,7 @@ use mirzaev\minimal\http\enumerations\content,
/**
* Index
*
* @package mirzaev\deeproots\controllers
* @package deeproots\deeproots\controllers
*
* @param array $errors Registry of errors
*

View File

@ -2,14 +2,14 @@
declare(strict_types=1);
namespace mirzaev\deeproots\models;
namespace deeproots\deeproots\models;
// Files of the project
use mirzaev\deeproots\models\core,
mirzaev\deeproots\models\connection,
mirzaev\deeproots\models\telegram,
mirzaev\deeproots\models\enumerations\language,
mirzaev\deeproots\models\account\localization;
use deeproots\deeproots\models\core,
deeproots\deeproots\models\connection,
deeproots\deeproots\models\telegram,
deeproots\deeproots\models\enumerations\language,
deeproots\deeproots\models\account\localization;
// Svoboda time
use svoboda\time\statement as svoboda;
@ -28,7 +28,7 @@ use Exception as exception,
/**
* Account
*
* @package mirzaev\deeproots\models
* @package deeproots\deeproots\models
*
* @license http://www.wtfpl.net/ Do What The Fuck You Want To Public License
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>
@ -60,6 +60,11 @@ final class account extends core
$this->database = new database()
->encoding(encoding::utf8)
->columns(
/**
* FIXME: waiting on https://git.svoboda.works/mirzaev/baza/issues/25
* baza is writing only the first half of 64bit integer/integer_unsigned
* to the database file. type::integer_unsigned should be used here.
*/
new column('identifier', type::long_long_unsigned),
new column('name', type::string, ['length' => 64]),
new column('language', type::string, ['length' => 2]),

View File

@ -2,12 +2,12 @@
declare(strict_types=1);
namespace mirzaev\deeproots\models;
namespace deeproots\deeproots\models;
// Files of the project
use mirzaev\deeproots\models\core,
mirzaev\deeproots\models\question,
mirzaev\deeproots\models\enumerations\language;
use deeproots\deeproots\models\core,
deeproots\deeproots\models\question,
deeproots\deeproots\models\enumerations\language;
// Svoboda time
use svoboda\time\statement as svoboda;
@ -27,7 +27,7 @@ use Exception as exception,
* Answer
*
* @uses question
* @package mirzaev\deeproots\models
* @package deeproots\deeproots\models
*
* @license http://www.wtfpl.net/ Do What The Fuck You Want To Public License
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>
@ -61,6 +61,11 @@ final class answer extends core
$this->database = new database()
->encoding(encoding::ascii)
->columns(
/**
* FIXME: waiting on https://git.svoboda.works/mirzaev/baza/issues/25
* baza is writing only the first half of 64bit integer/integer_unsigned
* to the database file. type::integer_unsigned should be used here.
*/
new column('identifier', type::long_long_unsigned),
new column('A', type::char),
new column('B', type::char),

View File

@ -2,10 +2,10 @@
declare(strict_types=1);
namespace mirzaev\deeproots\models;
namespace deeproots\deeproots\models;
// Files of the project
use mirzaev\deeproots\models\core;
use deeproots\deeproots\models\core;
// Svoboda time
use svoboda\time\statement as svoboda;
@ -27,7 +27,7 @@ use Exception as exception,
/**
* Connection between account::class and telegram::class
*
* @package mirzaev\deeproots\models
* @package deeproots\deeproots\models
*
* @license http://www.wtfpl.net/ Do What The Fuck You Want To Public License
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>
@ -67,6 +67,11 @@ final class connection extends core
->columns(
new column('identifier', type::integer_unsigned),
new column('account', type::integer_unsigned),
/**
* FIXME: waiting on https://git.svoboda.works/mirzaev/baza/issues/25
* baza is writing only the first half of 64bit integer/integer_unsigned
* to the database file. type::integer_unsigned should be used here.
*/
new column('telegram', type::long_long_unsigned),
new column('active', type::char),
new column('updated', type::integer_unsigned),

View File

@ -2,7 +2,7 @@
declare(strict_types=1);
namespace mirzaev\deeproots\models;
namespace deeproots\deeproots\models;
// Framework for PHP
use mirzaev\minimal\model,
@ -14,7 +14,7 @@ use exception;
/**
* Models core
*
* @package mirzaev\deeproots\models
* @package deeproots\deeproots\models
*
* @method void __construct() Constructor
*

View File

@ -2,14 +2,14 @@
declare(strict_types=1);
namespace mirzaev\deeproots\models\enumerations;
namespace deeproots\deeproots\models\enumerations;
/**
* Language
*
* Types of languages by ISO 639-1 standart @deprecated
*
* @package mirzaev\deeproots\models\enumerations
* @package deeproots\deeproots\models\enumerations
*
* @license http://www.wtfpl.net/ Do What The Fuck You Want To Public License
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>

View File

@ -2,12 +2,12 @@
declare(strict_types=1);
namespace mirzaev\deeproots\models;
namespace deeproots\deeproots\models;
// Files of the project
use mirzaev\deeproots\models\core,
mirzaev\deeproots\models\question\localization,
mirzaev\deeproots\models\enumerations\language;
use deeproots\deeproots\models\core,
deeproots\deeproots\models\question\localization,
deeproots\deeproots\models\enumerations\language;
// Svoboda time
use svoboda\time\statement as svoboda;
@ -27,7 +27,7 @@ use Exception as exception,
* Question
*
* @uses localization
* @package mirzaev\deeproots\models
* @package deeproots\deeproots\models
*
* @license http://www.wtfpl.net/ Do What The Fuck You Want To Public License
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>

View File

@ -2,12 +2,12 @@
declare(strict_types=1);
namespace mirzaev\deeproots\models\question;
namespace deeproots\deeproots\models\question;
// Files of the project
use mirzaev\deeproots\models\core,
mirzaev\deeproots\models\question,
mirzaev\deeproots\models\enumerations\language;
use deeproots\deeproots\models\core,
deeproots\deeproots\models\question,
deeproots\deeproots\models\enumerations\language;
// Svoboda time
use svoboda\time\statement as svoboda;
@ -27,7 +27,7 @@ use Exception as exception,
* Question localization
*
* @uses question
* @package mirzaev\deeproots\models\question
* @package deeproots\deeproots\models\question
*
* @license http://www.wtfpl.net/ Do What The Fuck You Want To Public License
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>
@ -61,6 +61,11 @@ final class localization extends core
$this->database = new database()
->encoding(encoding::ascii)
->columns(
/**
* FIXME: waiting on https://git.svoboda.works/mirzaev/baza/issues/25
* baza is writing only the first half of 64bit integer/integer_unsigned
* to the database file. type::integer_unsigned should be used here.
*/
new column('identifier', type::long_long_unsigned),
new column('text', type::string, ['length' => 256]),
new column('A', type::string, ['length' => 128]),

View File

@ -2,11 +2,11 @@
declare(strict_types=1);
namespace mirzaev\deeproots\models;
namespace deeproots\deeproots\models;
// Files of the project
use mirzaev\deeproots\models\core,
mirzaev\deeproots\models\account\localization;
use deeproots\deeproots\models\core,
deeproots\deeproots\models\account\localization;
// Svoboda time
use svoboda\time\statement as svoboda;
@ -28,7 +28,7 @@ use Exception as exception,
/**
* Telegram account
*
* @package mirzaev\deeproots\models
* @package deeproots\deeproots\models
*
* @license http://www.wtfpl.net/ Do What The Fuck You Want To Public License
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>
@ -60,6 +60,11 @@ final class telegram extends core
$this->database = new database()
->encoding(encoding::utf8)
->columns(
/**
* FIXME: waiting on https://git.svoboda.works/mirzaev/baza/issues/25
* baza is writing only the first half of 64bit integer/integer_unsigned
* to the database file. type::integer_unsigned should be used here.
*/
new column('identifier', type::long_long_unsigned),
new column('domain', type::string, ['length' => 32]),
new column('name_first', type::string, ['length' => 64]),
@ -95,7 +100,7 @@ final class telegram extends core
if (
$account->name_first !== $telegram->getFirstName() ||
$account->name_second !== $telegram->getLastName() ||
$account->name_second !== (string) $telegram->getLastName() ||
$account->domain !== $telegram->getUsername()
) {
// The telegram account was updated

View File

@ -2,13 +2,13 @@
declare(strict_types=1);
namespace mirzaev\deeproots\models\telegram\buttons\question;
namespace deeproots\deeproots\models\telegram\buttons\question;
// Files of the project
use mirzaev\deeproots\models\core,
mirzaev\deeproots\models\question,
mirzaev\deeproots\models\telegram\processes\question\search as process_question_search,
mirzaev\deeproots\models\enumerations\membership\status;
use deeproots\deeproots\models\core,
deeproots\deeproots\models\question,
deeproots\deeproots\models\telegram\processes\question\search as process_question_search,
deeproots\deeproots\models\enumerations\membership\status;
// Framework for Telegram
use Zanzara\Context as context,
@ -23,7 +23,7 @@ use mirzaev\baza\record;
/**
* Telegram system question search buttons
*
* @package mirzaev\deeproots\models\telegram\buttons\question
* @package deeproots\deeproots\models\telegram\buttons\question
*
* @license http://www.wtfpl.net/ Do What The Fuck You Want To Public License
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>

View File

@ -2,16 +2,16 @@
declare(strict_types=1);
namespace mirzaev\deeproots\models\telegram;
namespace deeproots\deeproots\models\telegram;
// Files of the project
use mirzaev\deeproots\models\core,
mirzaev\deeproots\models\account,
mirzaev\deeproots\models\question,
mirzaev\deeproots\models\question\localization as question_localization,
mirzaev\deeproots\models\answer,
mirzaev\deeproots\models\telegram\processes\language\select as process_language_select,
mirzaev\deeproots\models\enumerations\language;
use deeproots\deeproots\models\core,
deeproots\deeproots\models\account,
deeproots\deeproots\models\question,
deeproots\deeproots\models\question\localization as question_localization,
deeproots\deeproots\models\answer,
deeproots\deeproots\models\telegram\processes\language\select as process_language_select,
deeproots\deeproots\models\enumerations\language;
// Framework for Telegram
use Zanzara\Context as context,
@ -24,7 +24,7 @@ use mirzaev\baza\record;
/**
* Telegram commands
*
* @package mirzaev\deeproots\models\telegram
* @package deeproots\deeproots\models\telegram
*
* @license http://www.wtfpl.net/ Do What The Fuck You Want To Public License
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>

View File

@ -2,13 +2,13 @@
declare(strict_types=1);
namespace mirzaev\deeproots\models\telegram;
namespace deeproots\deeproots\models\telegram;
// Files of the project
use mirzaev\deeproots\models\core,
mirzaev\deeproots\models\account,
mirzaev\deeproots\models\telegram,
mirzaev\deeproots\models\enumerations\language;
use deeproots\deeproots\models\core,
deeproots\deeproots\models\account,
deeproots\deeproots\models\telegram,
deeproots\deeproots\models\enumerations\language;
// Framework for Telegram
use Zanzara\Context as context,
@ -24,7 +24,7 @@ use Error as error;
/**
* Telegram middlewares
*
* @package mirzaev\deeproots\models\telegram
* @package deeproots\deeproots\models\telegram
*
* @license http://www.wtfpl.net/ Do What The Fuck You Want To Public License
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>

View File

@ -2,11 +2,11 @@
declare(strict_types=1);
namespace mirzaev\deeproots\models\telegram\processes\language;
namespace deeproots\deeproots\models\telegram\processes\language;
// Files of the project
use mirzaev\deeproots\models\core,
mirzaev\deeproots\models\enumerations\language;
use deeproots\deeproots\models\core,
deeproots\deeproots\models\enumerations\language;
// Framework for Telegram
use Zanzara\Context as context,
@ -18,7 +18,7 @@ use mirzaev\baza\record;
/**
* Telegram language select
*
* @package mirzaev\deeproots\models\telegram\processes\language
* @package deeproots\deeproots\models\telegram\processes\language
*
* @license http://www.wtfpl.net/ Do What The Fuck You Want To Public License
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>

View File

@ -2,16 +2,16 @@
declare(strict_types=1);
namespace mirzaev\deeproots\models\telegram\processes\question;
namespace deeproots\deeproots\models\telegram\processes\question;
// Files of the project
use mirzaev\deeproots\models\core,
mirzaev\deeproots\models\question,
mirzaev\deeproots\models\question\localization,
mirzaev\deeproots\models\answer,
mirzaev\deeproots\models\enumerations\language,
mirzaev\deeproots\models\telegram\commands,
mirzaev\deeproots\models\telegram\processes\question\search as process_question_search;
use deeproots\deeproots\models\core,
deeproots\deeproots\models\question,
deeproots\deeproots\models\question\localization,
deeproots\deeproots\models\answer,
deeproots\deeproots\models\enumerations\language,
deeproots\deeproots\models\telegram\commands,
deeproots\deeproots\models\telegram\processes\question\search as process_question_search;
// Framework for Telegram
use Zanzara\Context as context,
@ -23,7 +23,7 @@ use mirzaev\baza\record;
/**
* Question create (system)
*
* @package mirzaev\deeproots\models\telegram\processes\question
* @package deeproots\deeproots\models\telegram\processes\question
*
* @license http://www.wtfpl.net/ Do What The Fuck You Want To Public License
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>

View File

@ -2,15 +2,15 @@
declare(strict_types=1);
namespace mirzaev\deeproots\models\telegram\processes\question\localization;
namespace deeproots\deeproots\models\telegram\processes\question\localization;
// Files of the project
use mirzaev\deeproots\models\core,
mirzaev\deeproots\models\question,
mirzaev\deeproots\models\question\localization,
mirzaev\deeproots\models\answer,
mirzaev\deeproots\models\enumerations\language,
mirzaev\deeproots\models\telegram\commands;
use deeproots\deeproots\models\core,
deeproots\deeproots\models\question,
deeproots\deeproots\models\question\localization,
deeproots\deeproots\models\answer,
deeproots\deeproots\models\enumerations\language,
deeproots\deeproots\models\telegram\commands;
// Framework for Telegram
use Zanzara\Context as context,
@ -22,7 +22,7 @@ use mirzaev\baza\record;
/**
* Question localization create (system)
*
* @package mirzaev\deeproots\models\telegram\processes\question\localization
* @package deeproots\deeproots\models\telegram\processes\question\localization
*
* @license http://www.wtfpl.net/ Do What The Fuck You Want To Public License
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>

View File

@ -2,17 +2,17 @@
declare(strict_types=1);
namespace mirzaev\deeproots\models\telegram\processes\question;
namespace deeproots\deeproots\models\telegram\processes\question;
// Files of the project
use mirzaev\deeproots\models\core,
mirzaev\deeproots\models\question,
mirzaev\deeproots\models\question\localization as question_localization,
mirzaev\deeproots\models\answer,
mirzaev\deeproots\models\enumerations\language,
mirzaev\deeproots\models\telegram\commands,
mirzaev\deeproots\models\telegram\buttons\question\search as buttons_question_search,
mirzaev\deeproots\models\telegram\traits\escape;
use deeproots\deeproots\models\core,
deeproots\deeproots\models\question,
deeproots\deeproots\models\question\localization as question_localization,
deeproots\deeproots\models\answer,
deeproots\deeproots\models\enumerations\language,
deeproots\deeproots\models\telegram\commands,
deeproots\deeproots\models\telegram\buttons\question\search as buttons_question_search,
deeproots\deeproots\models\telegram\traits\escape;
// Baza database
use mirzaev\baza\record;
@ -27,7 +27,7 @@ use function React\Async\await;
/**
* Question create (system)
*
* @package mirzaev\deeproots\models\telegram\processes\question
* @package deeproots\deeproots\models\telegram\processes\question
*
* @license http://www.wtfpl.net/ Do What The Fuck You Want To Public License
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>

View File

@ -2,13 +2,13 @@
declare(strict_types=1);
namespace mirzaev\deeproots\models\telegram;
namespace deeproots\deeproots\models\telegram;
// Files of the project
use mirzaev\deeproots\models\core,
mirzaev\deeproots\models\account,
mirzaev\deeproots\models\enumerations\language,
mirzaev\deeproots\models\telegram\middlewares;
use deeproots\deeproots\models\core,
deeproots\deeproots\models\account,
deeproots\deeproots\models\enumerations\language,
deeproots\deeproots\models\telegram\middlewares;
// Framework for Telegram
use Zanzara\Zanzara,
@ -25,7 +25,7 @@ use Error as error;
/**
* Telegram settings
*
* @package mirzaev\deeproots\models\telegram
* @package deeproots\deeproots\models\telegram
*
* @license http://www.wtfpl.net/ Do What The Fuck You Want To Public License
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>

View File

@ -2,12 +2,12 @@
declare(strict_types=1);
namespace mirzaev\deeproots\models\telegram\traits;
namespace deeproots\deeproots\models\telegram\traits;
/**
* Escape
*
* @package mirzaev\deeproots\models\telegram\traits
* @package deeproots\deeproots\models\telegram\traits
*
* @license http://www.wtfpl.net/ Do What The Fuck You Want To Public License
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>

Some files were not shown because too many files have changed in this diff Show More