From aa0df0b007da8f6908a23378e176b9991b8265a8 Mon Sep 17 00:00:00 2001 From: Jephte Clain Date: Wed, 5 Jun 2024 16:26:51 +0400 Subject: [PATCH] modifs.mineures sans commentaires --- src/db/CapacitorChannel.php | 5 ++--- src/db/CapacitorStorage.php | 1 - src/db/_private/_generic.php | 3 --- src/db/_private/_insert.php | 3 --- src/db/_private/_select.php | 3 --- src/db/mysql/MysqlStorage.php | 1 - src/db/pdo/_query_base.php | 1 - src/wip/schema/_scalar/ScalarResult.php | 2 +- src/wip/schema/_scalar/ScalarValue.php | 2 +- src/wip/schema/types/tbool.php | 2 +- src/wip/schema/types/tcallable.php | 2 +- 11 files changed, 6 insertions(+), 19 deletions(-) diff --git a/src/db/CapacitorChannel.php b/src/db/CapacitorChannel.php index f434cfa..37341b5 100644 --- a/src/db/CapacitorChannel.php +++ b/src/db/CapacitorChannel.php @@ -2,7 +2,6 @@ namespace nur\sery\db; use nur\sery\cl; -use nur\sery\str; /** * Class CapacitorChannel: un canal d'une instance de {@link ICapacitor} @@ -142,7 +141,7 @@ class CapacitorChannel { * Si $item est modifié dans cette méthode, il est possible de le retourner * avec la clé "item" pour mettre à jour la ligne correspondante. */ - function onCreate($item, array $updates, ?array $row): ?array { + function onCreate($item, array $updates): ?array { return null; } @@ -164,7 +163,7 @@ class CapacitorChannel { * La clé primaire (il s'agit généralement de "id_") ne peut pas être * modifiée. si elle est retournée, elle est ignorée */ - function onUpdate($item, array $updates, ?array $row): ?array { + function onUpdate($item, array $updates, array $row): ?array { return null; } diff --git a/src/db/CapacitorStorage.php b/src/db/CapacitorStorage.php index f1fb951..999f1b3 100644 --- a/src/db/CapacitorStorage.php +++ b/src/db/CapacitorStorage.php @@ -2,7 +2,6 @@ namespace nur\sery\db; use nur\sery\cl; -use nur\sery\php\func; use nur\sery\str; /** diff --git a/src/db/_private/_generic.php b/src/db/_private/_generic.php index 1c6882e..98cf8b2 100644 --- a/src/db/_private/_generic.php +++ b/src/db/_private/_generic.php @@ -1,9 +1,6 @@ "?string", diff --git a/src/db/_private/_select.php b/src/db/_private/_select.php index 696da6e..b712ef3 100644 --- a/src/db/_private/_select.php +++ b/src/db/_private/_select.php @@ -1,9 +1,6 @@ "?string", diff --git a/src/db/mysql/MysqlStorage.php b/src/db/mysql/MysqlStorage.php index 4e658a0..2a3fc9b 100644 --- a/src/db/mysql/MysqlStorage.php +++ b/src/db/mysql/MysqlStorage.php @@ -5,7 +5,6 @@ use nur\sery\cl; use nur\sery\db\CapacitorChannel; use nur\sery\db\CapacitorStorage; use nur\sery\php\func; -use nur\sery\str; use nur\sery\ValueException; /** diff --git a/src/db/pdo/_query_base.php b/src/db/pdo/_query_base.php index a33800d..7ea2eb1 100644 --- a/src/db/pdo/_query_base.php +++ b/src/db/pdo/_query_base.php @@ -3,7 +3,6 @@ namespace nur\sery\db\pdo; use DateTimeInterface; use nur\sery\db\_private\_base; -use nur\sery\db\sqlite\SqliteException; use nur\sery\php\time\Date; use nur\sery\php\time\DateTime; use nur\sery\str; diff --git a/src/wip/schema/_scalar/ScalarResult.php b/src/wip/schema/_scalar/ScalarResult.php index ddda8d7..82f7f24 100644 --- a/src/wip/schema/_scalar/ScalarResult.php +++ b/src/wip/schema/_scalar/ScalarResult.php @@ -4,8 +4,8 @@ namespace nur\sery\wip\schema\_scalar; use nur\sery\cl; use nur\sery\ref\schema\ref_analyze; use nur\sery\ref\schema\ref_schema; -use nur\sery\wip\schema\Result; use nur\sery\ValueException; +use nur\sery\wip\schema\Result; /** * Class ScalarResult: résultat de l'analyse ou de la normalisation d'une valeur diff --git a/src/wip/schema/_scalar/ScalarValue.php b/src/wip/schema/_scalar/ScalarValue.php index ad532e0..381dd8c 100644 --- a/src/wip/schema/_scalar/ScalarValue.php +++ b/src/wip/schema/_scalar/ScalarValue.php @@ -2,11 +2,11 @@ namespace nur\sery\wip\schema\_scalar; use nur\sery\ref\schema\ref_analyze; +use nur\sery\ValueException; use nur\sery\wip\schema\input\Input; use nur\sery\wip\schema\types; use nur\sery\wip\schema\types\IType; use nur\sery\wip\schema\Value; -use nur\sery\ValueException; class ScalarValue extends Value { function __construct(ScalarSchema $schema, &$dest=null, $destKey=null, bool $defaultVerifix=true, ?bool $defaultThrow=null) { diff --git a/src/wip/schema/types/tbool.php b/src/wip/schema/types/tbool.php index 95ca234..4b47586 100644 --- a/src/wip/schema/types/tbool.php +++ b/src/wip/schema/types/tbool.php @@ -2,12 +2,12 @@ namespace nur\sery\wip\schema\types; use nur\sery\cl; +use nur\sery\ValueException; use nur\sery\wip\schema\_scalar\ScalarResult; use nur\sery\wip\schema\_scalar\ScalarSchema; use nur\sery\wip\schema\input\Input; use nur\sery\wip\schema\Result; use nur\sery\wip\schema\Schema; -use nur\sery\ValueException; class tbool extends _tsimple { /** liste de valeurs chaines à considérer comme 'OUI' */ diff --git a/src/wip/schema/types/tcallable.php b/src/wip/schema/types/tcallable.php index 118dc13..13e405b 100644 --- a/src/wip/schema/types/tcallable.php +++ b/src/wip/schema/types/tcallable.php @@ -2,9 +2,9 @@ namespace nur\sery\wip\schema\types; use nur\sery\php\func; +use nur\sery\ValueException; use nur\sery\wip\schema\Result; use nur\sery\wip\schema\Schema; -use nur\sery\ValueException; use stdClass; class tcallable extends _tsimple {