Skip to content

Commit

Permalink
chore: Use strict types
Browse files Browse the repository at this point in the history
Signed-off-by: Rubén D <[email protected]>
  • Loading branch information
nuxsmin committed May 1, 2024
1 parent 3ad267c commit 40c6cb1
Show file tree
Hide file tree
Showing 597 changed files with 821 additions and 210 deletions.
1 change: 1 addition & 0 deletions lib/SP/Core/Acl/Acl.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);

/*
* sysPass
Expand Down
1 change: 1 addition & 0 deletions lib/SP/Core/Acl/Actions.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* sysPass
*
Expand Down
1 change: 1 addition & 0 deletions lib/SP/Core/Application.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* sysPass
*
Expand Down
1 change: 1 addition & 0 deletions lib/SP/Core/Bootstrap/BootstrapBase.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* sysPass
*
Expand Down
1 change: 1 addition & 0 deletions lib/SP/Core/Bootstrap/RouteContext.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* sysPass
*
Expand Down
1 change: 1 addition & 0 deletions lib/SP/Core/Bootstrap/UpgradeConfigChecker.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* sysPass
*
Expand Down
1 change: 1 addition & 0 deletions lib/SP/Core/Bootstrap/UriContext.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* sysPass
*
Expand Down
1 change: 1 addition & 0 deletions lib/SP/Core/Context/ContextBase.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* sysPass
*
Expand Down
3 changes: 2 additions & 1 deletion lib/SP/Core/Context/ContextCollection.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* sysPass
*
Expand Down Expand Up @@ -34,4 +35,4 @@
final class ContextCollection extends DataCollection
{

}
}
1 change: 1 addition & 0 deletions lib/SP/Core/Context/ContextException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* sysPass
*
Expand Down
1 change: 1 addition & 0 deletions lib/SP/Core/Context/ContextFactory.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* sysPass
*
Expand Down
1 change: 1 addition & 0 deletions lib/SP/Core/Context/Session.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* sysPass
*
Expand Down
1 change: 1 addition & 0 deletions lib/SP/Core/Context/SessionUtil.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* sysPass
*
Expand Down
1 change: 1 addition & 0 deletions lib/SP/Core/Context/StatelessContext.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* sysPass
*
Expand Down
1 change: 1 addition & 0 deletions lib/SP/Core/Crypt/Cookie.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* sysPass
*
Expand Down
1 change: 1 addition & 0 deletions lib/SP/Core/Crypt/Crypt.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* sysPass
*
Expand Down
1 change: 1 addition & 0 deletions lib/SP/Core/Crypt/CryptPKI.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* sysPass
*
Expand Down
1 change: 1 addition & 0 deletions lib/SP/Core/Crypt/CryptSessionHandler.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* sysPass
*
Expand Down
1 change: 1 addition & 0 deletions lib/SP/Core/Crypt/Csrf.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* sysPass
*
Expand Down
1 change: 1 addition & 0 deletions lib/SP/Core/Crypt/Hash.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* sysPass
*
Expand Down
1 change: 1 addition & 0 deletions lib/SP/Core/Crypt/RequestBasedPassword.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* sysPass
*
Expand Down
1 change: 1 addition & 0 deletions lib/SP/Core/Crypt/Session.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* sysPass
*
Expand Down
1 change: 1 addition & 0 deletions lib/SP/Core/Crypt/UuidCookie.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* sysPass
*
Expand Down
1 change: 1 addition & 0 deletions lib/SP/Core/Crypt/Vault.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* sysPass
*
Expand Down
1 change: 1 addition & 0 deletions lib/SP/Core/DataCollection.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* sysPass
*
Expand Down
1 change: 1 addition & 0 deletions lib/SP/Core/Definitions/CoreDefinitions.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* sysPass
*
Expand Down
1 change: 1 addition & 0 deletions lib/SP/Core/Definitions/DomainDefinitions.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* sysPass
*
Expand Down
1 change: 1 addition & 0 deletions lib/SP/Core/Events/Event.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* sysPass
*
Expand Down
3 changes: 2 additions & 1 deletion lib/SP/Core/Events/EventDispatcher.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* sysPass
*
Expand Down Expand Up @@ -32,4 +33,4 @@
final class EventDispatcher extends EventDispatcherBase
{

}
}
1 change: 1 addition & 0 deletions lib/SP/Core/Events/EventDispatcherBase.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* sysPass
*
Expand Down
6 changes: 4 additions & 2 deletions lib/SP/Core/Events/EventMessage.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php

declare(strict_types=1);
/*
* sysPass
*
Expand Down Expand Up @@ -56,13 +58,13 @@ public static function factory(): EventMessage
/**
* Establece los detalles de la acción realizada
*/
public function addDetail(string $key, ?string $value): EventMessage
public function addDetail(string $key, string|int|null $value): EventMessage
{
if (empty($value) || empty($key)) {
return $this;
}

$this->details[] = [$this->formatString($key), $this->formatString($value)];
$this->details[] = [$this->formatString($key), $this->formatString((string)$value)];

$this->detailsCounter++;

Expand Down
1 change: 1 addition & 0 deletions lib/SP/Core/HttpModuleBase.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* sysPass
*
Expand Down
1 change: 1 addition & 0 deletions lib/SP/Core/Language.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* sysPass
*
Expand Down
1 change: 1 addition & 0 deletions lib/SP/Core/Messages/HtmlFormatter.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* sysPass
*
Expand Down
1 change: 1 addition & 0 deletions lib/SP/Core/Messages/MailMessage.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* sysPass
*
Expand Down
1 change: 1 addition & 0 deletions lib/SP/Core/Messages/MessageBase.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* sysPass
*
Expand Down
1 change: 1 addition & 0 deletions lib/SP/Core/Messages/NotificationMessage.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* sysPass
*
Expand Down
1 change: 1 addition & 0 deletions lib/SP/Core/Messages/TaskMessage.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* sysPass
*
Expand Down
1 change: 1 addition & 0 deletions lib/SP/Core/Messages/TextFormatter.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* sysPass
*
Expand Down
1 change: 1 addition & 0 deletions lib/SP/Core/MimeTypes.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* sysPass
*
Expand Down
1 change: 1 addition & 0 deletions lib/SP/Core/ModuleBase.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* sysPass
*
Expand Down
1 change: 1 addition & 0 deletions lib/SP/Core/PhpExtensionChecker.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* sysPass
*
Expand Down
1 change: 1 addition & 0 deletions lib/SP/Core/ProvidersHelper.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* sysPass
*
Expand Down
1 change: 1 addition & 0 deletions lib/SP/Core/UI/Theme.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* sysPass
*
Expand Down
1 change: 1 addition & 0 deletions lib/SP/Core/UI/ThemeContext.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* sysPass
*
Expand Down
1 change: 1 addition & 0 deletions lib/SP/Core/UI/ThemeIcons.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* sysPass
*
Expand Down
1 change: 1 addition & 0 deletions lib/SP/Domain/Account/Adapters/Account.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* sysPass
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* sysPass
*
Expand Down
1 change: 1 addition & 0 deletions lib/SP/Domain/Account/Adapters/AccountPermission.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* sysPass
*
Expand Down
Loading

0 comments on commit 40c6cb1

Please sign in to comment.