From 4080b2d09dd43fe23e14c16abbfef062755ee4de Mon Sep 17 00:00:00 2001 From: "J. King" Date: Wed, 14 Apr 2021 11:17:01 -0400 Subject: [PATCH] Apply new rules --- arsse.php | 1 + lib/AbstractException.php | 1 + lib/Arsse.php | 1 + lib/CLI.php | 1 + lib/Conf.php | 1 + lib/Conf/Exception.php | 1 + lib/Context/Context.php | 1 + lib/Context/ExclusionContext.php | 1 + lib/Database.php | 1 + lib/Db/AbstractDriver.php | 1 + lib/Db/AbstractResult.php | 1 + lib/Db/AbstractStatement.php | 1 + lib/Db/Driver.php | 1 + lib/Db/Exception.php | 1 + lib/Db/ExceptionInput.php | 1 + lib/Db/ExceptionRetry.php | 1 + lib/Db/ExceptionTimeout.php | 1 + lib/Db/MySQL/Driver.php | 1 + lib/Db/MySQL/ExceptionBuilder.php | 1 + lib/Db/MySQL/PDODriver.php | 1 + lib/Db/MySQL/PDOStatement.php | 1 + lib/Db/MySQL/Result.php | 1 + lib/Db/MySQL/Statement.php | 1 + lib/Db/PDODriver.php | 1 + lib/Db/PDOError.php | 1 + lib/Db/PDOResult.php | 1 + lib/Db/PDOStatement.php | 1 + lib/Db/PostgreSQL/Dispatch.php | 1 + lib/Db/PostgreSQL/Driver.php | 1 + lib/Db/PostgreSQL/PDODriver.php | 1 + lib/Db/PostgreSQL/PDOResult.php | 2 +- lib/Db/PostgreSQL/PDOStatement.php | 1 + lib/Db/PostgreSQL/Result.php | 1 + lib/Db/PostgreSQL/Statement.php | 1 + lib/Db/Result.php | 1 + lib/Db/ResultAggregate.php | 1 + lib/Db/ResultEmpty.php | 1 + lib/Db/SQLState.php | 1 + lib/Db/SQLite3/AbstractPDODriver.php | 1 + lib/Db/SQLite3/Driver.php | 1 + lib/Db/SQLite3/ExceptionBuilder.php | 1 + lib/Db/SQLite3/PDODriver.php | 1 + lib/Db/SQLite3/PDOStatement.php | 1 + lib/Db/SQLite3/Result.php | 1 + lib/Db/SQLite3/Statement.php | 1 + lib/Db/Statement.php | 1 + lib/Db/Transaction.php | 1 + lib/Exception.php | 1 + lib/ExceptionFatal.php | 1 + lib/ExceptionType.php | 1 + lib/Factory.php | 1 + lib/Feed.php | 1 + lib/Feed/Exception.php | 1 + lib/ImportExport/AbstractImportExport.php | 1 + lib/ImportExport/Exception.php | 1 + lib/ImportExport/OPML.php | 1 + lib/Lang.php | 1 + lib/Lang/Exception.php | 1 + lib/Misc/Date.php | 1 + lib/Misc/HTTP.php | 1 + lib/Misc/Query.php | 1 + lib/Misc/URL.php | 2 +- lib/Misc/ValueInfo.php | 17 +- lib/REST.php | 1 + lib/REST/AbstractHandler.php | 1 + lib/REST/Exception.php | 1 + lib/REST/Exception501.php | 1 + lib/REST/Fever/API.php | 1 + lib/REST/Fever/User.php | 1 + lib/REST/Handler.php | 1 + lib/REST/Miniflux/ErrorResponse.php | 1 + lib/REST/Miniflux/Status.php | 1 + lib/REST/Miniflux/Token.php | 3 +- lib/REST/Miniflux/V1.php | 1 + lib/REST/NextcloudNews/V1_2.php | 1 + lib/REST/NextcloudNews/Versions.php | 1 + lib/REST/TinyTinyRSS/API.php | 1 + lib/REST/TinyTinyRSS/Exception.php | 1 + lib/REST/TinyTinyRSS/Icon.php | 1 + lib/REST/TinyTinyRSS/Search.php | 1 + lib/Rule/Exception.php | 1 + lib/Rule/Rule.php | 1 + lib/Service.php | 1 + lib/Service/Driver.php | 1 + lib/Service/Serial/Driver.php | 1 + lib/Service/Subprocess/Driver.php | 1 + lib/User.php | 1 + lib/User/Driver.php | 1 + lib/User/Exception.php | 1 + lib/User/ExceptionConflict.php | 1 + lib/User/ExceptionInput.php | 1 + lib/User/ExceptionSession.php | 1 + lib/User/Internal/Driver.php | 1 + tests/bootstrap.php | 1 + tests/cases/CLI/TestCLI.php | 1 + tests/cases/Conf/TestConf.php | 1 + tests/cases/Database/AbstractTest.php | 1 + tests/cases/Database/SeriesArticle.php | 1 + tests/cases/Database/SeriesCleanup.php | 1 + tests/cases/Database/SeriesFeed.php | 1 + tests/cases/Database/SeriesFolder.php | 1 + tests/cases/Database/SeriesIcon.php | 1 + tests/cases/Database/SeriesLabel.php | 1 + tests/cases/Database/SeriesMeta.php | 1 + tests/cases/Database/SeriesMiscellany.php | 1 + tests/cases/Database/SeriesSession.php | 1 + tests/cases/Database/SeriesSubscription.php | 5 +- tests/cases/Database/SeriesTag.php | 1 + tests/cases/Database/SeriesToken.php | 1 + tests/cases/Database/SeriesUser.php | 1 + tests/cases/Database/TestDatabase.php | 1 + tests/cases/Db/BaseDriver.php | 1 + tests/cases/Db/BaseResult.php | 1 + tests/cases/Db/BaseStatement.php | 1 + tests/cases/Db/BaseUpdate.php | 1 + tests/cases/Db/MySQL/TestCreation.php | 1 + tests/cases/Db/MySQL/TestDatabase.php | 1 + tests/cases/Db/MySQL/TestDriver.php | 1 + tests/cases/Db/MySQL/TestResult.php | 1 + tests/cases/Db/MySQL/TestStatement.php | 1 + tests/cases/Db/MySQL/TestUpdate.php | 1 + tests/cases/Db/MySQLPDO/TestCreation.php | 1 + tests/cases/Db/MySQLPDO/TestDatabase.php | 1 + tests/cases/Db/MySQLPDO/TestDriver.php | 1 + tests/cases/Db/MySQLPDO/TestResult.php | 1 + tests/cases/Db/MySQLPDO/TestStatement.php | 1 + tests/cases/Db/MySQLPDO/TestUpdate.php | 1 + tests/cases/Db/PostgreSQL/TestCreation.php | 1 + tests/cases/Db/PostgreSQL/TestDatabase.php | 1 + tests/cases/Db/PostgreSQL/TestDriver.php | 1 + tests/cases/Db/PostgreSQL/TestResult.php | 1 + tests/cases/Db/PostgreSQL/TestStatement.php | 1 + tests/cases/Db/PostgreSQL/TestUpdate.php | 1 + tests/cases/Db/PostgreSQLPDO/TestCreation.php | 1 + tests/cases/Db/PostgreSQLPDO/TestDatabase.php | 1 + tests/cases/Db/PostgreSQLPDO/TestDriver.php | 1 + tests/cases/Db/PostgreSQLPDO/TestResult.php | 1 + .../cases/Db/PostgreSQLPDO/TestStatement.php | 1 + tests/cases/Db/PostgreSQLPDO/TestUpdate.php | 1 + tests/cases/Db/SQLite3/TestCreation.php | 1 + tests/cases/Db/SQLite3/TestDatabase.php | 1 + tests/cases/Db/SQLite3/TestDriver.php | 1 + tests/cases/Db/SQLite3/TestResult.php | 1 + tests/cases/Db/SQLite3/TestStatement.php | 1 + tests/cases/Db/SQLite3/TestUpdate.php | 1 + tests/cases/Db/SQLite3PDO/TestCreation.php | 1 + tests/cases/Db/SQLite3PDO/TestDatabase.php | 1 + tests/cases/Db/SQLite3PDO/TestDriver.php | 1 + tests/cases/Db/SQLite3PDO/TestResult.php | 1 + tests/cases/Db/SQLite3PDO/TestStatement.php | 1 + tests/cases/Db/SQLite3PDO/TestUpdate.php | 1 + tests/cases/Db/TestResultAggregate.php | 5 + tests/cases/Db/TestResultEmpty.php | 5 + tests/cases/Db/TestTransaction.php | 1 + tests/cases/Exception/TestException.php | 1 + tests/cases/Feed/TestException.php | 1 + tests/cases/Feed/TestFeed.php | 1 + tests/cases/Feed/TestFetching.php | 1 + tests/cases/ImportExport/TestFile.php | 1 + tests/cases/ImportExport/TestImportExport.php | 1 + tests/cases/ImportExport/TestOPML.php | 2 +- tests/cases/Lang/TestBasic.php | 1 + tests/cases/Lang/TestComplex.php | 1 + tests/cases/Lang/TestErrors.php | 1 + tests/cases/Misc/TestContext.php | 1 + tests/cases/Misc/TestDate.php | 1 + tests/cases/Misc/TestFactory.php | 1 + tests/cases/Misc/TestHTTP.php | 1 + tests/cases/Misc/TestQuery.php | 1 + tests/cases/Misc/TestRule.php | 1 + tests/cases/Misc/TestURL.php | 2 +- tests/cases/Misc/TestValueInfo.php | 2 +- tests/cases/REST/Fever/PDO/TestAPI.php | 1 + tests/cases/REST/Fever/TestAPI.php | 2 +- tests/cases/REST/Fever/TestUser.php | 3 +- tests/cases/REST/Miniflux/PDO/TestToken.php | 1 + tests/cases/REST/Miniflux/PDO/TestV1.php | 1 + .../cases/REST/Miniflux/TestErrorResponse.php | 1 + tests/cases/REST/Miniflux/TestStatus.php | 1 + tests/cases/REST/Miniflux/TestToken.php | 1 + tests/cases/REST/Miniflux/TestV1.php | 1 + .../cases/REST/NextcloudNews/PDO/TestV1_2.php | 1 + tests/cases/REST/NextcloudNews/TestV1_2.php | 1 + .../cases/REST/NextcloudNews/TestVersions.php | 1 + tests/cases/REST/TestREST.php | 4 +- tests/cases/REST/TinyTinyRSS/PDO/TestAPI.php | 1 + tests/cases/REST/TinyTinyRSS/TestAPI.php | 4 +- tests/cases/REST/TinyTinyRSS/TestIcon.php | 1 + tests/cases/REST/TinyTinyRSS/TestSearch.php | 1 + tests/cases/Service/TestSerial.php | 1 + tests/cases/Service/TestService.php | 2 +- tests/cases/Service/TestSubprocess.php | 1 + tests/cases/TestArsse.php | 1 + tests/cases/User/TestInternal.php | 1 + tests/cases/User/TestUser.php | 13 +- tests/lib/AbstractTest.php | 22 +-- tests/lib/Database.php | 1 + tests/lib/DatabaseDrivers/MySQL.php | 1 + tests/lib/DatabaseDrivers/MySQLPDO.php | 1 + tests/lib/DatabaseDrivers/PostgreSQL.php | 1 + tests/lib/DatabaseDrivers/PostgreSQLPDO.php | 1 + tests/lib/DatabaseDrivers/SQLite3.php | 1 + tests/lib/DatabaseDrivers/SQLite3PDO.php | 1 + tests/lib/Lang/Setup.php | 1 + tests/lib/Misc/StrClass.php | 1 + tests/lib/PDOTest.php | 1 + tests/lib/Result.php | 1 + tests/lib/Service.php | 1 + tests/server.php | 1 + vendor-bin/csfixer/composer.json | 2 +- vendor-bin/csfixer/composer.lock | 163 +++++------------- 211 files changed, 287 insertions(+), 165 deletions(-) diff --git a/arsse.php b/arsse.php index 8b6d1fd..efd7193 100644 --- a/arsse.php +++ b/arsse.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse; const BASE = __DIR__.DIRECTORY_SEPARATOR; diff --git a/lib/AbstractException.php b/lib/AbstractException.php index d2cb0d5..4a2aaeb 100644 --- a/lib/AbstractException.php +++ b/lib/AbstractException.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse; abstract class AbstractException extends \Exception { diff --git a/lib/Arsse.php b/lib/Arsse.php index 84223cb..b8c33f8 100644 --- a/lib/Arsse.php +++ b/lib/Arsse.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse; class Arsse { diff --git a/lib/CLI.php b/lib/CLI.php index f892bdd..ddb4117 100644 --- a/lib/CLI.php +++ b/lib/CLI.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse; use JKingWeb\Arsse\REST\Fever\User as Fever; diff --git a/lib/Conf.php b/lib/Conf.php index dfe35e2..04cd582 100644 --- a/lib/Conf.php +++ b/lib/Conf.php @@ -5,6 +5,7 @@ /** Conf class */ declare(strict_types=1); + namespace JKingWeb\Arsse; use JKingWeb\Arsse\Misc\ValueInfo as Value; diff --git a/lib/Conf/Exception.php b/lib/Conf/Exception.php index 3b3247e..cdc3a81 100644 --- a/lib/Conf/Exception.php +++ b/lib/Conf/Exception.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Conf; class Exception extends \JKingWeb\Arsse\AbstractException { diff --git a/lib/Context/Context.php b/lib/Context/Context.php index 8e1b699..d49b19d 100644 --- a/lib/Context/Context.php +++ b/lib/Context/Context.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Context; class Context extends ExclusionContext { diff --git a/lib/Context/ExclusionContext.php b/lib/Context/ExclusionContext.php index e7323ea..fa3adbc 100644 --- a/lib/Context/ExclusionContext.php +++ b/lib/Context/ExclusionContext.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Context; use JKingWeb\Arsse\Misc\ValueInfo; diff --git a/lib/Database.php b/lib/Database.php index 776b46d..435906b 100644 --- a/lib/Database.php +++ b/lib/Database.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse; use JKingWeb\DrUUID\UUID; diff --git a/lib/Db/AbstractDriver.php b/lib/Db/AbstractDriver.php index 2a6a973..055fe94 100644 --- a/lib/Db/AbstractDriver.php +++ b/lib/Db/AbstractDriver.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Db; use JKingWeb\Arsse\Arsse; diff --git a/lib/Db/AbstractResult.php b/lib/Db/AbstractResult.php index 4ae62bb..dfdd5d3 100644 --- a/lib/Db/AbstractResult.php +++ b/lib/Db/AbstractResult.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Db; abstract class AbstractResult implements Result { diff --git a/lib/Db/AbstractStatement.php b/lib/Db/AbstractStatement.php index dab1e03..8bcb329 100644 --- a/lib/Db/AbstractStatement.php +++ b/lib/Db/AbstractStatement.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Db; use JKingWeb\Arsse\Misc\Date; diff --git a/lib/Db/Driver.php b/lib/Db/Driver.php index 09f16e7..9ca1b7f 100644 --- a/lib/Db/Driver.php +++ b/lib/Db/Driver.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Db; interface Driver { diff --git a/lib/Db/Exception.php b/lib/Db/Exception.php index d72b83f..89b4ab0 100644 --- a/lib/Db/Exception.php +++ b/lib/Db/Exception.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Db; class Exception extends \JKingWeb\Arsse\AbstractException { diff --git a/lib/Db/ExceptionInput.php b/lib/Db/ExceptionInput.php index 9cafb56..0a6cdb1 100644 --- a/lib/Db/ExceptionInput.php +++ b/lib/Db/ExceptionInput.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Db; class ExceptionInput extends \JKingWeb\Arsse\AbstractException { diff --git a/lib/Db/ExceptionRetry.php b/lib/Db/ExceptionRetry.php index be4769a..86b4f7c 100644 --- a/lib/Db/ExceptionRetry.php +++ b/lib/Db/ExceptionRetry.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Db; class ExceptionRetry extends \JKingWeb\Arsse\AbstractException { diff --git a/lib/Db/ExceptionTimeout.php b/lib/Db/ExceptionTimeout.php index 205f162..9edc5d1 100644 --- a/lib/Db/ExceptionTimeout.php +++ b/lib/Db/ExceptionTimeout.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Db; class ExceptionTimeout extends \JKingWeb\Arsse\AbstractException { diff --git a/lib/Db/MySQL/Driver.php b/lib/Db/MySQL/Driver.php index d2c538b..ca6df17 100644 --- a/lib/Db/MySQL/Driver.php +++ b/lib/Db/MySQL/Driver.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Db\MySQL; use JKingWeb\Arsse\Arsse; diff --git a/lib/Db/MySQL/ExceptionBuilder.php b/lib/Db/MySQL/ExceptionBuilder.php index 8f5be9c..31de853 100644 --- a/lib/Db/MySQL/ExceptionBuilder.php +++ b/lib/Db/MySQL/ExceptionBuilder.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Db\MySQL; use JKingWeb\Arsse\Db\Exception; diff --git a/lib/Db/MySQL/PDODriver.php b/lib/Db/MySQL/PDODriver.php index e669fca..be42c5b 100644 --- a/lib/Db/MySQL/PDODriver.php +++ b/lib/Db/MySQL/PDODriver.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Db\MySQL; use JKingWeb\Arsse\Arsse; diff --git a/lib/Db/MySQL/PDOStatement.php b/lib/Db/MySQL/PDOStatement.php index dd405a2..a4e5d2b 100644 --- a/lib/Db/MySQL/PDOStatement.php +++ b/lib/Db/MySQL/PDOStatement.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Db\MySQL; class PDOStatement extends \JKingWeb\Arsse\Db\PDOStatement { diff --git a/lib/Db/MySQL/Result.php b/lib/Db/MySQL/Result.php index 45e8225..b51a802 100644 --- a/lib/Db/MySQL/Result.php +++ b/lib/Db/MySQL/Result.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Db\MySQL; class Result extends \JKingWeb\Arsse\Db\AbstractResult { diff --git a/lib/Db/MySQL/Statement.php b/lib/Db/MySQL/Statement.php index 057225a..9f511f1 100644 --- a/lib/Db/MySQL/Statement.php +++ b/lib/Db/MySQL/Statement.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Db\MySQL; class Statement extends \JKingWeb\Arsse\Db\AbstractStatement { diff --git a/lib/Db/PDODriver.php b/lib/Db/PDODriver.php index df01bac..bb93741 100644 --- a/lib/Db/PDODriver.php +++ b/lib/Db/PDODriver.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Db; trait PDODriver { diff --git a/lib/Db/PDOError.php b/lib/Db/PDOError.php index 0303551..2b37aab 100644 --- a/lib/Db/PDOError.php +++ b/lib/Db/PDOError.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Db; trait PDOError { diff --git a/lib/Db/PDOResult.php b/lib/Db/PDOResult.php index 6702301..e5759fa 100644 --- a/lib/Db/PDOResult.php +++ b/lib/Db/PDOResult.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Db; class PDOResult extends AbstractResult { diff --git a/lib/Db/PDOStatement.php b/lib/Db/PDOStatement.php index 4425093..e4590f2 100644 --- a/lib/Db/PDOStatement.php +++ b/lib/Db/PDOStatement.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Db; abstract class PDOStatement extends AbstractStatement { diff --git a/lib/Db/PostgreSQL/Dispatch.php b/lib/Db/PostgreSQL/Dispatch.php index 220dda2..9d43400 100644 --- a/lib/Db/PostgreSQL/Dispatch.php +++ b/lib/Db/PostgreSQL/Dispatch.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Db\PostgreSQL; trait Dispatch { diff --git a/lib/Db/PostgreSQL/Driver.php b/lib/Db/PostgreSQL/Driver.php index c22f096..1f176ed 100644 --- a/lib/Db/PostgreSQL/Driver.php +++ b/lib/Db/PostgreSQL/Driver.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Db\PostgreSQL; use JKingWeb\Arsse\Arsse; diff --git a/lib/Db/PostgreSQL/PDODriver.php b/lib/Db/PostgreSQL/PDODriver.php index 93daf66..29490e3 100644 --- a/lib/Db/PostgreSQL/PDODriver.php +++ b/lib/Db/PostgreSQL/PDODriver.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Db\PostgreSQL; use JKingWeb\Arsse\Arsse; diff --git a/lib/Db/PostgreSQL/PDOResult.php b/lib/Db/PostgreSQL/PDOResult.php index 4920776..81631d4 100644 --- a/lib/Db/PostgreSQL/PDOResult.php +++ b/lib/Db/PostgreSQL/PDOResult.php @@ -4,10 +4,10 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Db\PostgreSQL; class PDOResult extends \JKingWeb\Arsse\Db\PDOResult { - // This method exists to transparent handle byte-array results public function valid() { diff --git a/lib/Db/PostgreSQL/PDOStatement.php b/lib/Db/PostgreSQL/PDOStatement.php index 9929579..a3a9f12 100644 --- a/lib/Db/PostgreSQL/PDOStatement.php +++ b/lib/Db/PostgreSQL/PDOStatement.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Db\PostgreSQL; use JKingWeb\Arsse\Db\Result; diff --git a/lib/Db/PostgreSQL/Result.php b/lib/Db/PostgreSQL/Result.php index 7200ac3..7682902 100644 --- a/lib/Db/PostgreSQL/Result.php +++ b/lib/Db/PostgreSQL/Result.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Db\PostgreSQL; class Result extends \JKingWeb\Arsse\Db\AbstractResult { diff --git a/lib/Db/PostgreSQL/Statement.php b/lib/Db/PostgreSQL/Statement.php index 4472e8e..1a0b00c 100644 --- a/lib/Db/PostgreSQL/Statement.php +++ b/lib/Db/PostgreSQL/Statement.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Db\PostgreSQL; class Statement extends \JKingWeb\Arsse\Db\AbstractStatement { diff --git a/lib/Db/Result.php b/lib/Db/Result.php index 88c908b..c464a8f 100644 --- a/lib/Db/Result.php +++ b/lib/Db/Result.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Db; interface Result extends \Iterator { diff --git a/lib/Db/ResultAggregate.php b/lib/Db/ResultAggregate.php index 06dd764..f728239 100644 --- a/lib/Db/ResultAggregate.php +++ b/lib/Db/ResultAggregate.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Db; class ResultAggregate extends AbstractResult { diff --git a/lib/Db/ResultEmpty.php b/lib/Db/ResultEmpty.php index f0f23de..a10d228 100644 --- a/lib/Db/ResultEmpty.php +++ b/lib/Db/ResultEmpty.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Db; class ResultEmpty extends AbstractResult { diff --git a/lib/Db/SQLState.php b/lib/Db/SQLState.php index 30d9f2c..c82696b 100644 --- a/lib/Db/SQLState.php +++ b/lib/Db/SQLState.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Db; trait SQLState { diff --git a/lib/Db/SQLite3/AbstractPDODriver.php b/lib/Db/SQLite3/AbstractPDODriver.php index bc7ea61..e8fa5e8 100644 --- a/lib/Db/SQLite3/AbstractPDODriver.php +++ b/lib/Db/SQLite3/AbstractPDODriver.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Db\SQLite3; abstract class AbstractPDODriver extends Driver { diff --git a/lib/Db/SQLite3/Driver.php b/lib/Db/SQLite3/Driver.php index 3445b89..1a99af1 100644 --- a/lib/Db/SQLite3/Driver.php +++ b/lib/Db/SQLite3/Driver.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Db\SQLite3; use JKingWeb\Arsse\Arsse; diff --git a/lib/Db/SQLite3/ExceptionBuilder.php b/lib/Db/SQLite3/ExceptionBuilder.php index 22d1723..3f14375 100644 --- a/lib/Db/SQLite3/ExceptionBuilder.php +++ b/lib/Db/SQLite3/ExceptionBuilder.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Db\SQLite3; use JKingWeb\Arsse\Db\Exception; diff --git a/lib/Db/SQLite3/PDODriver.php b/lib/Db/SQLite3/PDODriver.php index 506c46a..ee753a7 100644 --- a/lib/Db/SQLite3/PDODriver.php +++ b/lib/Db/SQLite3/PDODriver.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Db\SQLite3; use JKingWeb\Arsse\Arsse; diff --git a/lib/Db/SQLite3/PDOStatement.php b/lib/Db/SQLite3/PDOStatement.php index eb4fdfe..169980c 100644 --- a/lib/Db/SQLite3/PDOStatement.php +++ b/lib/Db/SQLite3/PDOStatement.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Db\SQLite3; class PDOStatement extends \JKingWeb\Arsse\Db\PDOStatement { diff --git a/lib/Db/SQLite3/Result.php b/lib/Db/SQLite3/Result.php index ad8aa05..73716f8 100644 --- a/lib/Db/SQLite3/Result.php +++ b/lib/Db/SQLite3/Result.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Db\SQLite3; class Result extends \JKingWeb\Arsse\Db\AbstractResult { diff --git a/lib/Db/SQLite3/Statement.php b/lib/Db/SQLite3/Statement.php index c97b1d8..8e97e05 100644 --- a/lib/Db/SQLite3/Statement.php +++ b/lib/Db/SQLite3/Statement.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Db\SQLite3; class Statement extends \JKingWeb\Arsse\Db\AbstractStatement { diff --git a/lib/Db/Statement.php b/lib/Db/Statement.php index 44e9cd2..e4a27bb 100644 --- a/lib/Db/Statement.php +++ b/lib/Db/Statement.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Db; interface Statement { diff --git a/lib/Db/Transaction.php b/lib/Db/Transaction.php index 39cc7a9..7ab8cd3 100644 --- a/lib/Db/Transaction.php +++ b/lib/Db/Transaction.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Db; class Transaction { diff --git a/lib/Exception.php b/lib/Exception.php index afd0b97..90610e4 100644 --- a/lib/Exception.php +++ b/lib/Exception.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse; class Exception extends AbstractException { diff --git a/lib/ExceptionFatal.php b/lib/ExceptionFatal.php index 78895cd..04516b4 100644 --- a/lib/ExceptionFatal.php +++ b/lib/ExceptionFatal.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse; class ExceptionFatal extends AbstractException { diff --git a/lib/ExceptionType.php b/lib/ExceptionType.php index a9a97cf..633380e 100644 --- a/lib/ExceptionType.php +++ b/lib/ExceptionType.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse; class ExceptionType extends AbstractException { diff --git a/lib/Factory.php b/lib/Factory.php index 0dfcea8..2e6ffeb 100644 --- a/lib/Factory.php +++ b/lib/Factory.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse; class Factory { diff --git a/lib/Feed.php b/lib/Feed.php index ce4ab4c..e27e19e 100644 --- a/lib/Feed.php +++ b/lib/Feed.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse; use JKingWeb\Arsse\Misc\Date; diff --git a/lib/Feed/Exception.php b/lib/Feed/Exception.php index 113d405..069bed9 100644 --- a/lib/Feed/Exception.php +++ b/lib/Feed/Exception.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Feed; use GuzzleHttp\Exception\BadResponseException; diff --git a/lib/ImportExport/AbstractImportExport.php b/lib/ImportExport/AbstractImportExport.php index 6f0496f..098d449 100644 --- a/lib/ImportExport/AbstractImportExport.php +++ b/lib/ImportExport/AbstractImportExport.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\ImportExport; use JKingWeb\Arsse\Arsse; diff --git a/lib/ImportExport/Exception.php b/lib/ImportExport/Exception.php index 888cfca..050b1b5 100644 --- a/lib/ImportExport/Exception.php +++ b/lib/ImportExport/Exception.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\ImportExport; class Exception extends \JKingWeb\Arsse\AbstractException { diff --git a/lib/ImportExport/OPML.php b/lib/ImportExport/OPML.php index 85d136c..fe9dfa7 100644 --- a/lib/ImportExport/OPML.php +++ b/lib/ImportExport/OPML.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\ImportExport; use JKingWeb\Arsse\Arsse; diff --git a/lib/Lang.php b/lib/Lang.php index fa8232b..37ffb6f 100644 --- a/lib/Lang.php +++ b/lib/Lang.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse; class Lang { diff --git a/lib/Lang/Exception.php b/lib/Lang/Exception.php index 4b6d775..3210a4c 100644 --- a/lib/Lang/Exception.php +++ b/lib/Lang/Exception.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Lang; class Exception extends \JKingWeb\Arsse\AbstractException { diff --git a/lib/Misc/Date.php b/lib/Misc/Date.php index 6384f4f..f6232c4 100644 --- a/lib/Misc/Date.php +++ b/lib/Misc/Date.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Misc; abstract class Date { diff --git a/lib/Misc/HTTP.php b/lib/Misc/HTTP.php index 15bfce9..5f5c305 100644 --- a/lib/Misc/HTTP.php +++ b/lib/Misc/HTTP.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Misc; use Psr\Http\Message\MessageInterface; diff --git a/lib/Misc/Query.php b/lib/Misc/Query.php index a2965dc..ab08ff9 100644 --- a/lib/Misc/Query.php +++ b/lib/Misc/Query.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Misc; class Query { diff --git a/lib/Misc/URL.php b/lib/Misc/URL.php index df16e6f..8c3d131 100644 --- a/lib/Misc/URL.php +++ b/lib/Misc/URL.php @@ -4,13 +4,13 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Misc; /** * A collection of functions for manipulating URLs */ class URL { - /** Returns whether a URL is absolute i.e. has a scheme */ public static function absolute(string $url): bool { return (bool) strlen((string) parse_url($url, \PHP_URL_SCHEME)); diff --git a/lib/Misc/ValueInfo.php b/lib/Misc/ValueInfo.php index 688a394..0488617 100644 --- a/lib/Misc/ValueInfo.php +++ b/lib/Misc/ValueInfo.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Misc; use JKingWeb\Arsse\ExceptionType; @@ -107,7 +108,7 @@ class ValueInfo { if ($strict && !$drop) { throw new ExceptionType("strictFailure", $type); } - return (!$drop) ? (int) $value->getTimestamp(): null; + return (!$drop) ? (int) $value->getTimestamp() : null; } elseif ($value instanceof \DateInterval) { if ($strict && !$drop) { throw new ExceptionType("strictFailure", $type); @@ -159,7 +160,7 @@ class ValueInfo { if ($strict && !$drop) { throw new ExceptionType("strictFailure", $type); } - return (!$drop) ? (float) $value->getTimestamp(): null; + return (!$drop) ? (float) $value->getTimestamp() : null; } elseif ($value instanceof \DateInterval) { if ($drop) { return null; @@ -203,13 +204,13 @@ class ValueInfo { if ($value->days) { $dateSpec = $value->days."D"; } else { - $dateSpec .= $value->y ? $value->y."Y": ""; - $dateSpec .= $value->m ? $value->m."M": ""; - $dateSpec .= $value->d ? $value->d."D": ""; + $dateSpec .= $value->y ? $value->y."Y" : ""; + $dateSpec .= $value->m ? $value->m."M" : ""; + $dateSpec .= $value->d ? $value->d."D" : ""; } - $timeSpec .= $value->h ? $value->h."H": ""; - $timeSpec .= $value->i ? $value->i."M": ""; - $timeSpec .= $value->s ? $value->s."S": ""; + $timeSpec .= $value->h ? $value->h."H" : ""; + $timeSpec .= $value->i ? $value->i."M" : ""; + $timeSpec .= $value->s ? $value->s."S" : ""; $timeSpec = $timeSpec ? "T".$timeSpec : ""; if (!$dateSpec && !$timeSpec) { return "PT0S"; diff --git a/lib/REST.php b/lib/REST.php index 1552277..c02256c 100644 --- a/lib/REST.php +++ b/lib/REST.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse; use JKingWeb\Arsse\Misc\URL; diff --git a/lib/REST/AbstractHandler.php b/lib/REST/AbstractHandler.php index 2dadfa9..107a886 100644 --- a/lib/REST/AbstractHandler.php +++ b/lib/REST/AbstractHandler.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\REST; use JKingWeb\Arsse\Arsse; diff --git a/lib/REST/Exception.php b/lib/REST/Exception.php index 245dc25..feb46c7 100644 --- a/lib/REST/Exception.php +++ b/lib/REST/Exception.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\REST; class Exception extends \JKingWeb\Arsse\AbstractException { diff --git a/lib/REST/Exception501.php b/lib/REST/Exception501.php index 77d1e30..b19e6b4 100644 --- a/lib/REST/Exception501.php +++ b/lib/REST/Exception501.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\REST; class Exception501 extends \Exception { diff --git a/lib/REST/Fever/API.php b/lib/REST/Fever/API.php index 20e6c35..06f28a6 100644 --- a/lib/REST/Fever/API.php +++ b/lib/REST/Fever/API.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\REST\Fever; use JKingWeb\Arsse\Arsse; diff --git a/lib/REST/Fever/User.php b/lib/REST/Fever/User.php index b702ae4..a8354ea 100644 --- a/lib/REST/Fever/User.php +++ b/lib/REST/Fever/User.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\REST\Fever; use JKingWeb\Arsse\Arsse; diff --git a/lib/REST/Handler.php b/lib/REST/Handler.php index 3b2c88e..664c0d7 100644 --- a/lib/REST/Handler.php +++ b/lib/REST/Handler.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\REST; use Psr\Http\Message\ServerRequestInterface; diff --git a/lib/REST/Miniflux/ErrorResponse.php b/lib/REST/Miniflux/ErrorResponse.php index 1cf467e..9afdcc6 100644 --- a/lib/REST/Miniflux/ErrorResponse.php +++ b/lib/REST/Miniflux/ErrorResponse.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\REST\Miniflux; use JKingWeb\Arsse\Arsse; diff --git a/lib/REST/Miniflux/Status.php b/lib/REST/Miniflux/Status.php index 367a7a6..e220019 100644 --- a/lib/REST/Miniflux/Status.php +++ b/lib/REST/Miniflux/Status.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\REST\Miniflux; use Psr\Http\Message\ServerRequestInterface; diff --git a/lib/REST/Miniflux/Token.php b/lib/REST/Miniflux/Token.php index 8052c50..5bb491e 100644 --- a/lib/REST/Miniflux/Token.php +++ b/lib/REST/Miniflux/Token.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\REST\Miniflux; use JKingWeb\Arsse\Arsse; @@ -28,4 +29,4 @@ class Token { } return $out; } -} \ No newline at end of file +} diff --git a/lib/REST/Miniflux/V1.php b/lib/REST/Miniflux/V1.php index 4c55fbc..6078faf 100644 --- a/lib/REST/Miniflux/V1.php +++ b/lib/REST/Miniflux/V1.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\REST\Miniflux; use JKingWeb\Arsse\Arsse; diff --git a/lib/REST/NextcloudNews/V1_2.php b/lib/REST/NextcloudNews/V1_2.php index 111cf2f..833c5da 100644 --- a/lib/REST/NextcloudNews/V1_2.php +++ b/lib/REST/NextcloudNews/V1_2.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\REST\NextcloudNews; use JKingWeb\Arsse\Arsse; diff --git a/lib/REST/NextcloudNews/Versions.php b/lib/REST/NextcloudNews/Versions.php index 8337736..cf9c340 100644 --- a/lib/REST/NextcloudNews/Versions.php +++ b/lib/REST/NextcloudNews/Versions.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\REST\NextcloudNews; use Psr\Http\Message\ServerRequestInterface; diff --git a/lib/REST/TinyTinyRSS/API.php b/lib/REST/TinyTinyRSS/API.php index 60c4e3b..f148a7a 100644 --- a/lib/REST/TinyTinyRSS/API.php +++ b/lib/REST/TinyTinyRSS/API.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\REST\TinyTinyRSS; use JKingWeb\Arsse\Feed; diff --git a/lib/REST/TinyTinyRSS/Exception.php b/lib/REST/TinyTinyRSS/Exception.php index da5a3c8..9af6c7e 100644 --- a/lib/REST/TinyTinyRSS/Exception.php +++ b/lib/REST/TinyTinyRSS/Exception.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\REST\TinyTinyRSS; class Exception extends \Exception { diff --git a/lib/REST/TinyTinyRSS/Icon.php b/lib/REST/TinyTinyRSS/Icon.php index 9e7c7ec..038d901 100644 --- a/lib/REST/TinyTinyRSS/Icon.php +++ b/lib/REST/TinyTinyRSS/Icon.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\REST\TinyTinyRSS; use JKingWeb\Arsse\Arsse; diff --git a/lib/REST/TinyTinyRSS/Search.php b/lib/REST/TinyTinyRSS/Search.php index ea3dbe6..ac7b13d 100644 --- a/lib/REST/TinyTinyRSS/Search.php +++ b/lib/REST/TinyTinyRSS/Search.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\REST\TinyTinyRSS; use JKingWeb\Arsse\Context\Context; diff --git a/lib/Rule/Exception.php b/lib/Rule/Exception.php index 1239e37..825a29d 100644 --- a/lib/Rule/Exception.php +++ b/lib/Rule/Exception.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Rule; class Exception extends \JKingWeb\Arsse\AbstractException { diff --git a/lib/Rule/Rule.php b/lib/Rule/Rule.php index c8d4189..409c371 100644 --- a/lib/Rule/Rule.php +++ b/lib/Rule/Rule.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Rule; abstract class Rule { diff --git a/lib/Service.php b/lib/Service.php index a69b12c..f5e65bf 100644 --- a/lib/Service.php +++ b/lib/Service.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse; use JKingWeb\Arsse\Misc\Date; diff --git a/lib/Service/Driver.php b/lib/Service/Driver.php index e2dcf92..578ba7b 100644 --- a/lib/Service/Driver.php +++ b/lib/Service/Driver.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Service; interface Driver { diff --git a/lib/Service/Serial/Driver.php b/lib/Service/Serial/Driver.php index dc2c74f..fd7adce 100644 --- a/lib/Service/Serial/Driver.php +++ b/lib/Service/Serial/Driver.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Service\Serial; use JKingWeb\Arsse\Arsse; diff --git a/lib/Service/Subprocess/Driver.php b/lib/Service/Subprocess/Driver.php index 0986f2c..b92280b 100644 --- a/lib/Service/Subprocess/Driver.php +++ b/lib/Service/Subprocess/Driver.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Service\Subprocess; use JKingWeb\Arsse\Arsse; diff --git a/lib/User.php b/lib/User.php index 4bf8e36..da8718c 100644 --- a/lib/User.php +++ b/lib/User.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse; use JKingWeb\Arsse\Misc\ValueInfo as V; diff --git a/lib/User/Driver.php b/lib/User/Driver.php index fcf2010..eb5e8e5 100644 --- a/lib/User/Driver.php +++ b/lib/User/Driver.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\User; interface Driver { diff --git a/lib/User/Exception.php b/lib/User/Exception.php index 33e3757..0123a8e 100644 --- a/lib/User/Exception.php +++ b/lib/User/Exception.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\User; class Exception extends \JKingWeb\Arsse\AbstractException { diff --git a/lib/User/ExceptionConflict.php b/lib/User/ExceptionConflict.php index 4fa1bbf..2d899cf 100644 --- a/lib/User/ExceptionConflict.php +++ b/lib/User/ExceptionConflict.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\User; class ExceptionConflict extends Exception { diff --git a/lib/User/ExceptionInput.php b/lib/User/ExceptionInput.php index aea8c13..5662b4d 100644 --- a/lib/User/ExceptionInput.php +++ b/lib/User/ExceptionInput.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\User; class ExceptionInput extends Exception { diff --git a/lib/User/ExceptionSession.php b/lib/User/ExceptionSession.php index a7fdbee..8996c18 100644 --- a/lib/User/ExceptionSession.php +++ b/lib/User/ExceptionSession.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\User; class ExceptionSession extends Exception { diff --git a/lib/User/Internal/Driver.php b/lib/User/Internal/Driver.php index 80f16bb..5674d00 100644 --- a/lib/User/Internal/Driver.php +++ b/lib/User/Internal/Driver.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\User\Internal; use JKingWeb\Arsse\Arsse; diff --git a/tests/bootstrap.php b/tests/bootstrap.php index e066b24..27ad8f5 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse; const NS_BASE = __NAMESPACE__."\\"; diff --git a/tests/cases/CLI/TestCLI.php b/tests/cases/CLI/TestCLI.php index ff62c75..29ee42b 100644 --- a/tests/cases/CLI/TestCLI.php +++ b/tests/cases/CLI/TestCLI.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\CLI; use GuzzleHttp\Exception\ClientException; diff --git a/tests/cases/Conf/TestConf.php b/tests/cases/Conf/TestConf.php index 088746b..3a138b7 100644 --- a/tests/cases/Conf/TestConf.php +++ b/tests/cases/Conf/TestConf.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Conf; use JKingWeb\Arsse\Conf; diff --git a/tests/cases/Database/AbstractTest.php b/tests/cases/Database/AbstractTest.php index ef1f0d7..76fbb05 100644 --- a/tests/cases/Database/AbstractTest.php +++ b/tests/cases/Database/AbstractTest.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Database; use JKingWeb\Arsse\Test\Database; diff --git a/tests/cases/Database/SeriesArticle.php b/tests/cases/Database/SeriesArticle.php index eace73a..18ca1a2 100644 --- a/tests/cases/Database/SeriesArticle.php +++ b/tests/cases/Database/SeriesArticle.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Database; use JKingWeb\Arsse\Database; diff --git a/tests/cases/Database/SeriesCleanup.php b/tests/cases/Database/SeriesCleanup.php index d863a64..3ec32ac 100644 --- a/tests/cases/Database/SeriesCleanup.php +++ b/tests/cases/Database/SeriesCleanup.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Database; use JKingWeb\Arsse\Arsse; diff --git a/tests/cases/Database/SeriesFeed.php b/tests/cases/Database/SeriesFeed.php index 5cc0d84..783e432 100644 --- a/tests/cases/Database/SeriesFeed.php +++ b/tests/cases/Database/SeriesFeed.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Database; use JKingWeb\Arsse\Arsse; diff --git a/tests/cases/Database/SeriesFolder.php b/tests/cases/Database/SeriesFolder.php index 4c488ce..6b0a0f5 100644 --- a/tests/cases/Database/SeriesFolder.php +++ b/tests/cases/Database/SeriesFolder.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Database; use JKingWeb\Arsse\Arsse; diff --git a/tests/cases/Database/SeriesIcon.php b/tests/cases/Database/SeriesIcon.php index 667651f..31faf17 100644 --- a/tests/cases/Database/SeriesIcon.php +++ b/tests/cases/Database/SeriesIcon.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Database; use JKingWeb\Arsse\Arsse; diff --git a/tests/cases/Database/SeriesLabel.php b/tests/cases/Database/SeriesLabel.php index 4a4fac6..dc5193a 100644 --- a/tests/cases/Database/SeriesLabel.php +++ b/tests/cases/Database/SeriesLabel.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Database; use JKingWeb\Arsse\Arsse; diff --git a/tests/cases/Database/SeriesMeta.php b/tests/cases/Database/SeriesMeta.php index b1d1974..8037dcb 100644 --- a/tests/cases/Database/SeriesMeta.php +++ b/tests/cases/Database/SeriesMeta.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Database; use JKingWeb\Arsse\Test\Database; diff --git a/tests/cases/Database/SeriesMiscellany.php b/tests/cases/Database/SeriesMiscellany.php index 5bc1092..102f56a 100644 --- a/tests/cases/Database/SeriesMiscellany.php +++ b/tests/cases/Database/SeriesMiscellany.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Database; use JKingWeb\Arsse\Arsse; diff --git a/tests/cases/Database/SeriesSession.php b/tests/cases/Database/SeriesSession.php index 1db319f..a22c1d3 100644 --- a/tests/cases/Database/SeriesSession.php +++ b/tests/cases/Database/SeriesSession.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Database; use JKingWeb\Arsse\Arsse; diff --git a/tests/cases/Database/SeriesSubscription.php b/tests/cases/Database/SeriesSubscription.php index 625ac39..f32102d 100644 --- a/tests/cases/Database/SeriesSubscription.php +++ b/tests/cases/Database/SeriesSubscription.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Database; use GuzzleHttp\Exception\ClientException; @@ -45,8 +46,8 @@ trait SeriesSubscription { ], 'arsse_icons' => [ 'columns' => [ - 'id' => "int", - 'url' => "str", + 'id' => "int", + 'url' => "str", 'data' => "blob", ], 'rows' => [ diff --git a/tests/cases/Database/SeriesTag.php b/tests/cases/Database/SeriesTag.php index 1f2ea9c..707bede 100644 --- a/tests/cases/Database/SeriesTag.php +++ b/tests/cases/Database/SeriesTag.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Database; use JKingWeb\Arsse\Arsse; diff --git a/tests/cases/Database/SeriesToken.php b/tests/cases/Database/SeriesToken.php index 7a14ed0..249d245 100644 --- a/tests/cases/Database/SeriesToken.php +++ b/tests/cases/Database/SeriesToken.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Database; use JKingWeb\Arsse\Arsse; diff --git a/tests/cases/Database/SeriesUser.php b/tests/cases/Database/SeriesUser.php index b56a64d..3a64437 100644 --- a/tests/cases/Database/SeriesUser.php +++ b/tests/cases/Database/SeriesUser.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Database; use JKingWeb\Arsse\Arsse; diff --git a/tests/cases/Database/TestDatabase.php b/tests/cases/Database/TestDatabase.php index 00838b3..5c915ef 100644 --- a/tests/cases/Database/TestDatabase.php +++ b/tests/cases/Database/TestDatabase.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Database; use JKingWeb\Arsse\Database; diff --git a/tests/cases/Db/BaseDriver.php b/tests/cases/Db/BaseDriver.php index 89a2600..422e002 100644 --- a/tests/cases/Db/BaseDriver.php +++ b/tests/cases/Db/BaseDriver.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Db; use JKingWeb\Arsse\Db\Statement; diff --git a/tests/cases/Db/BaseResult.php b/tests/cases/Db/BaseResult.php index 3cfc5bb..027743d 100644 --- a/tests/cases/Db/BaseResult.php +++ b/tests/cases/Db/BaseResult.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Db; use JKingWeb\Arsse\Db\Result; diff --git a/tests/cases/Db/BaseStatement.php b/tests/cases/Db/BaseStatement.php index bb8630e..278870b 100644 --- a/tests/cases/Db/BaseStatement.php +++ b/tests/cases/Db/BaseStatement.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Db; use JKingWeb\Arsse\Db\Statement; diff --git a/tests/cases/Db/BaseUpdate.php b/tests/cases/Db/BaseUpdate.php index c2a7cc1..8649153 100644 --- a/tests/cases/Db/BaseUpdate.php +++ b/tests/cases/Db/BaseUpdate.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Db; use JKingWeb\Arsse\Arsse; diff --git a/tests/cases/Db/MySQL/TestCreation.php b/tests/cases/Db/MySQL/TestCreation.php index 2f82104..2118fa1 100644 --- a/tests/cases/Db/MySQL/TestCreation.php +++ b/tests/cases/Db/MySQL/TestCreation.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Db\MySQL; use JKingWeb\Arsse\Db\MySQL\Driver as Driver; diff --git a/tests/cases/Db/MySQL/TestDatabase.php b/tests/cases/Db/MySQL/TestDatabase.php index 9ad47ed..b7e8d8b 100644 --- a/tests/cases/Db/MySQL/TestDatabase.php +++ b/tests/cases/Db/MySQL/TestDatabase.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Db\MySQL; /** diff --git a/tests/cases/Db/MySQL/TestDriver.php b/tests/cases/Db/MySQL/TestDriver.php index 1f8240e..a737cd0 100644 --- a/tests/cases/Db/MySQL/TestDriver.php +++ b/tests/cases/Db/MySQL/TestDriver.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Db\MySQL; /** diff --git a/tests/cases/Db/MySQL/TestResult.php b/tests/cases/Db/MySQL/TestResult.php index 030f797..d077416 100644 --- a/tests/cases/Db/MySQL/TestResult.php +++ b/tests/cases/Db/MySQL/TestResult.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Db\MySQL; /** diff --git a/tests/cases/Db/MySQL/TestStatement.php b/tests/cases/Db/MySQL/TestStatement.php index 76c7b81..2820207 100644 --- a/tests/cases/Db/MySQL/TestStatement.php +++ b/tests/cases/Db/MySQL/TestStatement.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Db\MySQL; /** diff --git a/tests/cases/Db/MySQL/TestUpdate.php b/tests/cases/Db/MySQL/TestUpdate.php index df7808e..8a9375e 100644 --- a/tests/cases/Db/MySQL/TestUpdate.php +++ b/tests/cases/Db/MySQL/TestUpdate.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Db\MySQL; /** diff --git a/tests/cases/Db/MySQLPDO/TestCreation.php b/tests/cases/Db/MySQLPDO/TestCreation.php index b12bc8e..07800d1 100644 --- a/tests/cases/Db/MySQLPDO/TestCreation.php +++ b/tests/cases/Db/MySQLPDO/TestCreation.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Db\MySQLPDO; use JKingWeb\Arsse\Db\MySQL\PDODriver as Driver; diff --git a/tests/cases/Db/MySQLPDO/TestDatabase.php b/tests/cases/Db/MySQLPDO/TestDatabase.php index e734555..41cd3ff 100644 --- a/tests/cases/Db/MySQLPDO/TestDatabase.php +++ b/tests/cases/Db/MySQLPDO/TestDatabase.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Db\MySQLPDO; /** diff --git a/tests/cases/Db/MySQLPDO/TestDriver.php b/tests/cases/Db/MySQLPDO/TestDriver.php index ee46ba9..24fd873 100644 --- a/tests/cases/Db/MySQLPDO/TestDriver.php +++ b/tests/cases/Db/MySQLPDO/TestDriver.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Db\MySQLPDO; /** diff --git a/tests/cases/Db/MySQLPDO/TestResult.php b/tests/cases/Db/MySQLPDO/TestResult.php index 5686f43..2c2efe0 100644 --- a/tests/cases/Db/MySQLPDO/TestResult.php +++ b/tests/cases/Db/MySQLPDO/TestResult.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Db\MySQLPDO; /** diff --git a/tests/cases/Db/MySQLPDO/TestStatement.php b/tests/cases/Db/MySQLPDO/TestStatement.php index a6d0706..b10cb66 100644 --- a/tests/cases/Db/MySQLPDO/TestStatement.php +++ b/tests/cases/Db/MySQLPDO/TestStatement.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Db\MySQLPDO; /** diff --git a/tests/cases/Db/MySQLPDO/TestUpdate.php b/tests/cases/Db/MySQLPDO/TestUpdate.php index 8b0594e..38a80f2 100644 --- a/tests/cases/Db/MySQLPDO/TestUpdate.php +++ b/tests/cases/Db/MySQLPDO/TestUpdate.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Db\MySQLPDO; /** diff --git a/tests/cases/Db/PostgreSQL/TestCreation.php b/tests/cases/Db/PostgreSQL/TestCreation.php index 606dc8d..7764f8a 100644 --- a/tests/cases/Db/PostgreSQL/TestCreation.php +++ b/tests/cases/Db/PostgreSQL/TestCreation.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Db\PostgreSQL; use JKingWeb\Arsse\Arsse; diff --git a/tests/cases/Db/PostgreSQL/TestDatabase.php b/tests/cases/Db/PostgreSQL/TestDatabase.php index 468a016..8342c08 100644 --- a/tests/cases/Db/PostgreSQL/TestDatabase.php +++ b/tests/cases/Db/PostgreSQL/TestDatabase.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Db\PostgreSQL; /** diff --git a/tests/cases/Db/PostgreSQL/TestDriver.php b/tests/cases/Db/PostgreSQL/TestDriver.php index df81bc4..5ab09a1 100644 --- a/tests/cases/Db/PostgreSQL/TestDriver.php +++ b/tests/cases/Db/PostgreSQL/TestDriver.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Db\PostgreSQL; /** diff --git a/tests/cases/Db/PostgreSQL/TestResult.php b/tests/cases/Db/PostgreSQL/TestResult.php index 9a4413d..af82624 100644 --- a/tests/cases/Db/PostgreSQL/TestResult.php +++ b/tests/cases/Db/PostgreSQL/TestResult.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Db\PostgreSQL; /** diff --git a/tests/cases/Db/PostgreSQL/TestStatement.php b/tests/cases/Db/PostgreSQL/TestStatement.php index 8ec5fdb..2fb2781 100644 --- a/tests/cases/Db/PostgreSQL/TestStatement.php +++ b/tests/cases/Db/PostgreSQL/TestStatement.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Db\PostgreSQL; /** diff --git a/tests/cases/Db/PostgreSQL/TestUpdate.php b/tests/cases/Db/PostgreSQL/TestUpdate.php index 0117a34..5f7f06c 100644 --- a/tests/cases/Db/PostgreSQL/TestUpdate.php +++ b/tests/cases/Db/PostgreSQL/TestUpdate.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Db\PostgreSQL; /** diff --git a/tests/cases/Db/PostgreSQLPDO/TestCreation.php b/tests/cases/Db/PostgreSQLPDO/TestCreation.php index a391640..225f75f 100644 --- a/tests/cases/Db/PostgreSQLPDO/TestCreation.php +++ b/tests/cases/Db/PostgreSQLPDO/TestCreation.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Db\PostgreSQLPDO; use JKingWeb\Arsse\Arsse; diff --git a/tests/cases/Db/PostgreSQLPDO/TestDatabase.php b/tests/cases/Db/PostgreSQLPDO/TestDatabase.php index 3c478b8..7b7a723 100644 --- a/tests/cases/Db/PostgreSQLPDO/TestDatabase.php +++ b/tests/cases/Db/PostgreSQLPDO/TestDatabase.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Db\PostgreSQLPDO; /** diff --git a/tests/cases/Db/PostgreSQLPDO/TestDriver.php b/tests/cases/Db/PostgreSQLPDO/TestDriver.php index dcde7cf..83c26c6 100644 --- a/tests/cases/Db/PostgreSQLPDO/TestDriver.php +++ b/tests/cases/Db/PostgreSQLPDO/TestDriver.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Db\PostgreSQLPDO; /** diff --git a/tests/cases/Db/PostgreSQLPDO/TestResult.php b/tests/cases/Db/PostgreSQLPDO/TestResult.php index b3d0cb3..efdadd3 100644 --- a/tests/cases/Db/PostgreSQLPDO/TestResult.php +++ b/tests/cases/Db/PostgreSQLPDO/TestResult.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Db\PostgreSQLPDO; /** diff --git a/tests/cases/Db/PostgreSQLPDO/TestStatement.php b/tests/cases/Db/PostgreSQLPDO/TestStatement.php index 8878d42..308127f 100644 --- a/tests/cases/Db/PostgreSQLPDO/TestStatement.php +++ b/tests/cases/Db/PostgreSQLPDO/TestStatement.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Db\PostgreSQLPDO; /** diff --git a/tests/cases/Db/PostgreSQLPDO/TestUpdate.php b/tests/cases/Db/PostgreSQLPDO/TestUpdate.php index e327809..a9f88ec 100644 --- a/tests/cases/Db/PostgreSQLPDO/TestUpdate.php +++ b/tests/cases/Db/PostgreSQLPDO/TestUpdate.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Db\PostgreSQLPDO; /** diff --git a/tests/cases/Db/SQLite3/TestCreation.php b/tests/cases/Db/SQLite3/TestCreation.php index 3e3b2f2..529578b 100644 --- a/tests/cases/Db/SQLite3/TestCreation.php +++ b/tests/cases/Db/SQLite3/TestCreation.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Db\SQLite3; use JKingWeb\Arsse\Arsse; diff --git a/tests/cases/Db/SQLite3/TestDatabase.php b/tests/cases/Db/SQLite3/TestDatabase.php index ea30221..ee3070b 100644 --- a/tests/cases/Db/SQLite3/TestDatabase.php +++ b/tests/cases/Db/SQLite3/TestDatabase.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Db\SQLite3; /** diff --git a/tests/cases/Db/SQLite3/TestDriver.php b/tests/cases/Db/SQLite3/TestDriver.php index b3eb359..4ac4425 100644 --- a/tests/cases/Db/SQLite3/TestDriver.php +++ b/tests/cases/Db/SQLite3/TestDriver.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Db\SQLite3; /** diff --git a/tests/cases/Db/SQLite3/TestResult.php b/tests/cases/Db/SQLite3/TestResult.php index 5a8d0cd..f5d1e01 100644 --- a/tests/cases/Db/SQLite3/TestResult.php +++ b/tests/cases/Db/SQLite3/TestResult.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Db\SQLite3; /** diff --git a/tests/cases/Db/SQLite3/TestStatement.php b/tests/cases/Db/SQLite3/TestStatement.php index f7b970f..99ff762 100644 --- a/tests/cases/Db/SQLite3/TestStatement.php +++ b/tests/cases/Db/SQLite3/TestStatement.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Db\SQLite3; /** diff --git a/tests/cases/Db/SQLite3/TestUpdate.php b/tests/cases/Db/SQLite3/TestUpdate.php index 409f109..840778d 100644 --- a/tests/cases/Db/SQLite3/TestUpdate.php +++ b/tests/cases/Db/SQLite3/TestUpdate.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Db\SQLite3; /** diff --git a/tests/cases/Db/SQLite3PDO/TestCreation.php b/tests/cases/Db/SQLite3PDO/TestCreation.php index ea5e9a3..15c5078 100644 --- a/tests/cases/Db/SQLite3PDO/TestCreation.php +++ b/tests/cases/Db/SQLite3PDO/TestCreation.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Db\SQLite3PDO; use JKingWeb\Arsse\Arsse; diff --git a/tests/cases/Db/SQLite3PDO/TestDatabase.php b/tests/cases/Db/SQLite3PDO/TestDatabase.php index 751647a..e5341f3 100644 --- a/tests/cases/Db/SQLite3PDO/TestDatabase.php +++ b/tests/cases/Db/SQLite3PDO/TestDatabase.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Db\SQLite3PDO; /** diff --git a/tests/cases/Db/SQLite3PDO/TestDriver.php b/tests/cases/Db/SQLite3PDO/TestDriver.php index 3d6087c..73cf3c7 100644 --- a/tests/cases/Db/SQLite3PDO/TestDriver.php +++ b/tests/cases/Db/SQLite3PDO/TestDriver.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Db\SQLite3PDO; /** diff --git a/tests/cases/Db/SQLite3PDO/TestResult.php b/tests/cases/Db/SQLite3PDO/TestResult.php index 339921d..13a030a 100644 --- a/tests/cases/Db/SQLite3PDO/TestResult.php +++ b/tests/cases/Db/SQLite3PDO/TestResult.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Db\SQLite3PDO; /** diff --git a/tests/cases/Db/SQLite3PDO/TestStatement.php b/tests/cases/Db/SQLite3PDO/TestStatement.php index 2229a5d..930dc73 100644 --- a/tests/cases/Db/SQLite3PDO/TestStatement.php +++ b/tests/cases/Db/SQLite3PDO/TestStatement.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Db\SQLite3PDO; /** diff --git a/tests/cases/Db/SQLite3PDO/TestUpdate.php b/tests/cases/Db/SQLite3PDO/TestUpdate.php index 964dc2d..2eb8ef4 100644 --- a/tests/cases/Db/SQLite3PDO/TestUpdate.php +++ b/tests/cases/Db/SQLite3PDO/TestUpdate.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Db\SQLite3PDO; /** diff --git a/tests/cases/Db/TestResultAggregate.php b/tests/cases/Db/TestResultAggregate.php index 2ce69cd..75ff003 100644 --- a/tests/cases/Db/TestResultAggregate.php +++ b/tests/cases/Db/TestResultAggregate.php @@ -1,5 +1,10 @@ */ class TestOPML extends \JKingWeb\Arsse\Test\AbstractTest { diff --git a/tests/cases/Lang/TestBasic.php b/tests/cases/Lang/TestBasic.php index f94b4f3..89f2ce5 100644 --- a/tests/cases/Lang/TestBasic.php +++ b/tests/cases/Lang/TestBasic.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Lang; use JKingWeb\Arsse\Lang as TestClass; diff --git a/tests/cases/Lang/TestComplex.php b/tests/cases/Lang/TestComplex.php index 9697c23..326b487 100644 --- a/tests/cases/Lang/TestComplex.php +++ b/tests/cases/Lang/TestComplex.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Lang; use JKingWeb\Arsse\Lang as TestClass; diff --git a/tests/cases/Lang/TestErrors.php b/tests/cases/Lang/TestErrors.php index 8c99506..3a49ed0 100644 --- a/tests/cases/Lang/TestErrors.php +++ b/tests/cases/Lang/TestErrors.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Lang; use JKingWeb\Arsse\Lang as TestClass; diff --git a/tests/cases/Misc/TestContext.php b/tests/cases/Misc/TestContext.php index 46ecaaf..4d29e4c 100644 --- a/tests/cases/Misc/TestContext.php +++ b/tests/cases/Misc/TestContext.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Misc; use JKingWeb\Arsse\Context\Context; diff --git a/tests/cases/Misc/TestDate.php b/tests/cases/Misc/TestDate.php index e0cbbad..955c0ca 100644 --- a/tests/cases/Misc/TestDate.php +++ b/tests/cases/Misc/TestDate.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Misc; use JKingWeb\Arsse\Misc\Date; diff --git a/tests/cases/Misc/TestFactory.php b/tests/cases/Misc/TestFactory.php index c694019..254b455 100644 --- a/tests/cases/Misc/TestFactory.php +++ b/tests/cases/Misc/TestFactory.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Misc; use JKingWeb\Arsse\Factory; diff --git a/tests/cases/Misc/TestHTTP.php b/tests/cases/Misc/TestHTTP.php index 9bffe07..9d928f9 100644 --- a/tests/cases/Misc/TestHTTP.php +++ b/tests/cases/Misc/TestHTTP.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Misc; use JKingWeb\Arsse\Misc\HTTP; diff --git a/tests/cases/Misc/TestQuery.php b/tests/cases/Misc/TestQuery.php index db8a629..1c326dc 100644 --- a/tests/cases/Misc/TestQuery.php +++ b/tests/cases/Misc/TestQuery.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Misc; use JKingWeb\Arsse\Misc\Query; diff --git a/tests/cases/Misc/TestRule.php b/tests/cases/Misc/TestRule.php index 8850329..461ee26 100644 --- a/tests/cases/Misc/TestRule.php +++ b/tests/cases/Misc/TestRule.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Misc; use JKingWeb\Arsse\Rule\Rule; diff --git a/tests/cases/Misc/TestURL.php b/tests/cases/Misc/TestURL.php index eddc67e..f207b71 100644 --- a/tests/cases/Misc/TestURL.php +++ b/tests/cases/Misc/TestURL.php @@ -4,13 +4,13 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Misc; use JKingWeb\Arsse\Misc\URL; /** @covers \JKingWeb\Arsse\Misc\URL */ class TestURL extends \JKingWeb\Arsse\Test\AbstractTest { - /** @dataProvider provideNormalizations */ public function testNormalizeAUrl(string $url, string $exp, string $user = null, string $pass = null): void { $this->assertSame($exp, URL::normalize($url, $user, $pass)); diff --git a/tests/cases/Misc/TestValueInfo.php b/tests/cases/Misc/TestValueInfo.php index 90b4be9..05d2712 100644 --- a/tests/cases/Misc/TestValueInfo.php +++ b/tests/cases/Misc/TestValueInfo.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Misc; use JKingWeb\Arsse\Misc\ValueInfo as I; @@ -12,7 +13,6 @@ use JKingWeb\Arsse\Test\Result; /** @covers \JKingWeb\Arsse\Misc\ValueInfo */ class TestValueInfo extends \JKingWeb\Arsse\Test\AbstractTest { - public function testGetIntegerInfo(): void { $tests = [ [null, I::NULL], diff --git a/tests/cases/REST/Fever/PDO/TestAPI.php b/tests/cases/REST/Fever/PDO/TestAPI.php index 02caa3d..8042f35 100644 --- a/tests/cases/REST/Fever/PDO/TestAPI.php +++ b/tests/cases/REST/Fever/PDO/TestAPI.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\REST\Fever\PDO; /** @covers \JKingWeb\Arsse\REST\Fever\API diff --git a/tests/cases/REST/Fever/TestAPI.php b/tests/cases/REST/Fever/TestAPI.php index 0868d13..55eaf10 100644 --- a/tests/cases/REST/Fever/TestAPI.php +++ b/tests/cases/REST/Fever/TestAPI.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\REST\Fever; use JKingWeb\Arsse\Arsse; @@ -15,7 +16,6 @@ use JKingWeb\Arsse\Db\ExceptionInput; use JKingWeb\Arsse\Db\Transaction; use JKingWeb\Arsse\REST\Fever\API; use Psr\Http\Message\ResponseInterface; -use Laminas\Diactoros\ServerRequest; use Laminas\Diactoros\Response\JsonResponse; use Laminas\Diactoros\Response\XmlResponse; use Laminas\Diactoros\Response\EmptyResponse; diff --git a/tests/cases/REST/Fever/TestUser.php b/tests/cases/REST/Fever/TestUser.php index 09027c2..4b976ef 100644 --- a/tests/cases/REST/Fever/TestUser.php +++ b/tests/cases/REST/Fever/TestUser.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\REST\Fever; use JKingWeb\Arsse\Arsse; @@ -34,7 +35,7 @@ class TestUser extends \JKingWeb\Arsse\Test\AbstractTest { Arsse::$db = $this->dbMock->get(); // instantiate the handler return new FeverUser; - } + } /** @dataProvider providePasswordCreations */ public function testRegisterAUserPassword(string $user, string $password = null, $exp): void { diff --git a/tests/cases/REST/Miniflux/PDO/TestToken.php b/tests/cases/REST/Miniflux/PDO/TestToken.php index 1a561d0..4f3ce3c 100644 --- a/tests/cases/REST/Miniflux/PDO/TestToken.php +++ b/tests/cases/REST/Miniflux/PDO/TestToken.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\REST\Miniflux\PDO; /** @covers \JKingWeb\Arsse\REST\Miniflux\Token diff --git a/tests/cases/REST/Miniflux/PDO/TestV1.php b/tests/cases/REST/Miniflux/PDO/TestV1.php index 977ffa4..0f1e0e2 100644 --- a/tests/cases/REST/Miniflux/PDO/TestV1.php +++ b/tests/cases/REST/Miniflux/PDO/TestV1.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\REST\Miniflux\PDO; /** @covers \JKingWeb\Arsse\REST\Miniflux\V1 diff --git a/tests/cases/REST/Miniflux/TestErrorResponse.php b/tests/cases/REST/Miniflux/TestErrorResponse.php index 5852b4d..e2e7ac8 100644 --- a/tests/cases/REST/Miniflux/TestErrorResponse.php +++ b/tests/cases/REST/Miniflux/TestErrorResponse.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\REST\Miniflux; use JKingWeb\Arsse\REST\Miniflux\ErrorResponse; diff --git a/tests/cases/REST/Miniflux/TestStatus.php b/tests/cases/REST/Miniflux/TestStatus.php index bcf81d1..9f8b287 100644 --- a/tests/cases/REST/Miniflux/TestStatus.php +++ b/tests/cases/REST/Miniflux/TestStatus.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\REST\Miniflux; use JKingWeb\Arsse\REST\Miniflux\Status; diff --git a/tests/cases/REST/Miniflux/TestToken.php b/tests/cases/REST/Miniflux/TestToken.php index 484d9b2..222e258 100644 --- a/tests/cases/REST/Miniflux/TestToken.php +++ b/tests/cases/REST/Miniflux/TestToken.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\REST\Miniflux; use JKingWeb\Arsse\Arsse; diff --git a/tests/cases/REST/Miniflux/TestV1.php b/tests/cases/REST/Miniflux/TestV1.php index f1dd8d3..2b3c6c9 100644 --- a/tests/cases/REST/Miniflux/TestV1.php +++ b/tests/cases/REST/Miniflux/TestV1.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\REST\Miniflux; use Eloquent\Phony\Mock\Handle\InstanceHandle; diff --git a/tests/cases/REST/NextcloudNews/PDO/TestV1_2.php b/tests/cases/REST/NextcloudNews/PDO/TestV1_2.php index a781a2b..6b8d834 100644 --- a/tests/cases/REST/NextcloudNews/PDO/TestV1_2.php +++ b/tests/cases/REST/NextcloudNews/PDO/TestV1_2.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\REST\NextcloudNews\PDO; /** @covers \JKingWeb\Arsse\REST\NextcloudNews\V1_2 diff --git a/tests/cases/REST/NextcloudNews/TestV1_2.php b/tests/cases/REST/NextcloudNews/TestV1_2.php index 9e980e9..c2d5d1a 100644 --- a/tests/cases/REST/NextcloudNews/TestV1_2.php +++ b/tests/cases/REST/NextcloudNews/TestV1_2.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\REST\NextcloudNews; use JKingWeb\Arsse\Arsse; diff --git a/tests/cases/REST/NextcloudNews/TestVersions.php b/tests/cases/REST/NextcloudNews/TestVersions.php index b5d5679..efbc8e7 100644 --- a/tests/cases/REST/NextcloudNews/TestVersions.php +++ b/tests/cases/REST/NextcloudNews/TestVersions.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\REST\NextcloudNews; use JKingWeb\Arsse\REST\NextcloudNews\Versions; diff --git a/tests/cases/REST/TestREST.php b/tests/cases/REST/TestREST.php index 55da259..e76d7b7 100644 --- a/tests/cases/REST/TestREST.php +++ b/tests/cases/REST/TestREST.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\REST; use JKingWeb\Arsse\Arsse; @@ -22,7 +23,6 @@ use Laminas\Diactoros\Response\EmptyResponse; /** @covers \JKingWeb\Arsse\REST */ class TestREST extends \JKingWeb\Arsse\Test\AbstractTest { - /** @dataProvider provideApiMatchData */ public function testMatchAUrlToAnApi($apiList, string $input, array $exp): void { $r = new REST($apiList); @@ -306,7 +306,7 @@ class TestREST extends \JKingWeb\Arsse\Test\AbstractTest { if ($called) { $rMock->authenticateRequest->called(); $hMock->dispatch->once()->called(); - $in = $hMock->dispatch->firstCall()->argument();; + $in = $hMock->dispatch->firstCall()->argument(); $this->assertSame($method, $in->getMethod()); $this->assertSame($target, $in->getRequestTarget()); } else { diff --git a/tests/cases/REST/TinyTinyRSS/PDO/TestAPI.php b/tests/cases/REST/TinyTinyRSS/PDO/TestAPI.php index 62a9cef..1ec5a32 100644 --- a/tests/cases/REST/TinyTinyRSS/PDO/TestAPI.php +++ b/tests/cases/REST/TinyTinyRSS/PDO/TestAPI.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\REST\TinyTinyRSS\PDO; /** @covers \JKingWeb\Arsse\REST\TinyTinyRSS\API diff --git a/tests/cases/REST/TinyTinyRSS/TestAPI.php b/tests/cases/REST/TinyTinyRSS/TestAPI.php index 18d1d24..aca3ecf 100644 --- a/tests/cases/REST/TinyTinyRSS/TestAPI.php +++ b/tests/cases/REST/TinyTinyRSS/TestAPI.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\REST\TinyTinyRSS; use JKingWeb\Arsse\Arsse; @@ -899,7 +900,7 @@ LONG_STRING; [['caption' => " "], [$this->userId, ['name' => " "]], new ExceptionInput("typeViolation"), null, null, $this->respErr("INCORRECT_USAGE")], ]; } - + /** @dataProvider provideLabelRemovals */ public function testRemoveALabel(array $in, ?array $data, $out, ResponseInterface $exp): void { $in = array_merge(['op' => "removeLabel", 'sid' => "PriestsOfSyrinx"], $in); @@ -1356,7 +1357,6 @@ LONG_STRING; ]; } - /** @dataProvider provideArticleChanges */ public function testChangeArticles(array $in, ResponseInterface $exp): void { $in = array_merge(['op' => "updateArticle", 'sid' => "PriestsOfSyrinx"], $in); diff --git a/tests/cases/REST/TinyTinyRSS/TestIcon.php b/tests/cases/REST/TinyTinyRSS/TestIcon.php index f541f50..b590c35 100644 --- a/tests/cases/REST/TinyTinyRSS/TestIcon.php +++ b/tests/cases/REST/TinyTinyRSS/TestIcon.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\REST\TinyTinyRSS; use JKingWeb\Arsse\Arsse; diff --git a/tests/cases/REST/TinyTinyRSS/TestSearch.php b/tests/cases/REST/TinyTinyRSS/TestSearch.php index 6999b0d..a1911e3 100644 --- a/tests/cases/REST/TinyTinyRSS/TestSearch.php +++ b/tests/cases/REST/TinyTinyRSS/TestSearch.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\REST\TinyTinyRSS; use JKingWeb\Arsse\Context\Context; diff --git a/tests/cases/Service/TestSerial.php b/tests/cases/Service/TestSerial.php index 321e150..a2702b0 100644 --- a/tests/cases/Service/TestSerial.php +++ b/tests/cases/Service/TestSerial.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Service; use JKingWeb\Arsse\Arsse; diff --git a/tests/cases/Service/TestService.php b/tests/cases/Service/TestService.php index 553895e..bf04511 100644 --- a/tests/cases/Service/TestService.php +++ b/tests/cases/Service/TestService.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Service; use JKingWeb\Arsse\Arsse; @@ -23,7 +24,6 @@ class TestService extends \JKingWeb\Arsse\Test\AbstractTest { $this->srv = new Service(); } - public function testCheckIn(): void { $now = time(); $this->srv->checkIn(); diff --git a/tests/cases/Service/TestSubprocess.php b/tests/cases/Service/TestSubprocess.php index 61eefa6..f4a26fe 100644 --- a/tests/cases/Service/TestSubprocess.php +++ b/tests/cases/Service/TestSubprocess.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\Service; use JKingWeb\Arsse\Arsse; diff --git a/tests/cases/TestArsse.php b/tests/cases/TestArsse.php index 2173db8..95e2204 100644 --- a/tests/cases/TestArsse.php +++ b/tests/cases/TestArsse.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase; use JKingWeb\Arsse\Arsse; diff --git a/tests/cases/User/TestInternal.php b/tests/cases/User/TestInternal.php index 12f4386..916d837 100644 --- a/tests/cases/User/TestInternal.php +++ b/tests/cases/User/TestInternal.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\User; use JKingWeb\Arsse\Arsse; diff --git a/tests/cases/User/TestUser.php b/tests/cases/User/TestUser.php index e6e6d65..72aa556 100644 --- a/tests/cases/User/TestUser.php +++ b/tests/cases/User/TestUser.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\TestCase\User; use Eloquent\Phony\Phpunit\Phony; @@ -21,12 +22,12 @@ class TestUser extends \JKingWeb\Arsse\Test\AbstractTest { parent::setUp(); self::setConf(); // create a mock database interface - $this->dbMock= $this->mock(Database::class); + $this->dbMock = $this->mock(Database::class); $this->dbMock->begin->returns($this->mock(\JKingWeb\Arsse\Db\Transaction::class)); // create a mock user driver $this->drv = $this->mock(Driver::class); } - + protected function prepTest(?\Closure $partialMockDef = null): User { Arsse::$db = $this->dbMock->get(); if ($partialMockDef) { @@ -189,7 +190,7 @@ class TestUser extends \JKingWeb\Arsse\Test\AbstractTest { $pass = "random password"; $this->drv->userAdd->returns(null)->returns($pass); $this->dbMock->userExists->returns(true); - $u = $this->prepTest(function ($u) use ($pass) { + $u = $this->prepTest(function($u) use ($pass) { $u->generatePassword->returns($pass); }); $this->assertSame($pass, $u->add($user)); @@ -330,7 +331,7 @@ class TestUser extends \JKingWeb\Arsse\Test\AbstractTest { $this->drv->userPasswordSet->returns(null)->returns($pass); $this->dbMock->userPasswordSet->returns($pass); $this->dbMock->userExists->returns(true); - $u = $this->prepTest(function ($u) use ($pass) { + $u = $this->prepTest(function($u) use ($pass) { $u->generatePassword->returns($pass); }); $this->assertSame($pass, $u->passwordSet($user, null)); @@ -360,7 +361,7 @@ class TestUser extends \JKingWeb\Arsse\Test\AbstractTest { $this->drv->userPasswordSet->returns(null)->returns($pass); $this->dbMock->userPasswordSet->returns($pass); $this->dbMock->userExists->returns(false); - $u = $this->prepTest(function ($u) use ($pass) { + $u = $this->prepTest(function($u) use ($pass) { $u->generatePassword->returns($pass); }); $this->assertSame($pass, $u->passwordSet($user, null)); @@ -374,7 +375,7 @@ class TestUser extends \JKingWeb\Arsse\Test\AbstractTest { $user = "john.doe@example.com"; $pass = "random password"; $this->drv->userPasswordSet->throws(new ExceptionConflict("doesNotExist")); - $u = $this->prepTest(function ($u) use ($pass) { + $u = $this->prepTest(function($u) use ($pass) { $u->generatePassword->returns($pass); }); $this->assertException("doesNotExist", "User", "ExceptionConflict"); diff --git a/tests/lib/AbstractTest.php b/tests/lib/AbstractTest.php index 5bfd035..37f6fad 100644 --- a/tests/lib/AbstractTest.php +++ b/tests/lib/AbstractTest.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Test; use Eloquent\Phony\Mock\Handle\InstanceHandle; @@ -36,7 +37,6 @@ abstract class AbstractTest extends \PHPUnit\Framework\TestCase { protected $langMock; protected $dbMock; protected $userMock; - public function setUp(): void { self::clearData(); @@ -63,17 +63,17 @@ abstract class AbstractTest extends \PHPUnit\Framework\TestCase { $defaults = [ 'dbSQLite3File' => ":memory:", 'dbSQLite3Timeout' => 0, - 'dbPostgreSQLHost' => $_ENV['ARSSE_TEST_PGSQL_HOST'] ?: "", - 'dbPostgreSQLPort' => $_ENV['ARSSE_TEST_PGSQL_PORT'] ?: 5432, - 'dbPostgreSQLUser' => $_ENV['ARSSE_TEST_PGSQL_USER'] ?: "arsse_test", - 'dbPostgreSQLPass' => $_ENV['ARSSE_TEST_PGSQL_PASS'] ?: "arsse_test", - 'dbPostgreSQLDb' => $_ENV['ARSSE_TEST_PGSQL_DB'] ?: "arsse_test", + 'dbPostgreSQLHost' => $_ENV['ARSSE_TEST_PGSQL_HOST'] ?: "", + 'dbPostgreSQLPort' => $_ENV['ARSSE_TEST_PGSQL_PORT'] ?: 5432, + 'dbPostgreSQLUser' => $_ENV['ARSSE_TEST_PGSQL_USER'] ?: "arsse_test", + 'dbPostgreSQLPass' => $_ENV['ARSSE_TEST_PGSQL_PASS'] ?: "arsse_test", + 'dbPostgreSQLDb' => $_ENV['ARSSE_TEST_PGSQL_DB'] ?: "arsse_test", 'dbPostgreSQLSchema' => $_ENV['ARSSE_TEST_PGSQL_SCHEMA'] ?: "arsse_test", - 'dbMySQLHost' => $_ENV['ARSSE_TEST_MYSQL_HOST'] ?: "localhost", - 'dbMySQLPort' => $_ENV['ARSSE_TEST_MYSQL_PORT'] ?: 3306, - 'dbMySQLUser' => $_ENV['ARSSE_TEST_MYSQL_USER'] ?: "arsse_test", - 'dbMySQLPass' => $_ENV['ARSSE_TEST_MYSQL_PASS'] ?: "arsse_test", - 'dbMySQLDb' => $_ENV['ARSSE_TEST_MYSQL_DB'] ?: "arsse_test", + 'dbMySQLHost' => $_ENV['ARSSE_TEST_MYSQL_HOST'] ?: "localhost", + 'dbMySQLPort' => $_ENV['ARSSE_TEST_MYSQL_PORT'] ?: 3306, + 'dbMySQLUser' => $_ENV['ARSSE_TEST_MYSQL_USER'] ?: "arsse_test", + 'dbMySQLPass' => $_ENV['ARSSE_TEST_MYSQL_PASS'] ?: "arsse_test", + 'dbMySQLDb' => $_ENV['ARSSE_TEST_MYSQL_DB'] ?: "arsse_test", ]; Arsse::$conf = (($force ? null : Arsse::$conf) ?? (new Conf))->import($defaults)->import($conf); } diff --git a/tests/lib/Database.php b/tests/lib/Database.php index 2c8a9d7..4949a22 100644 --- a/tests/lib/Database.php +++ b/tests/lib/Database.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Test; class Database extends \JKingWeb\Arsse\Database { diff --git a/tests/lib/DatabaseDrivers/MySQL.php b/tests/lib/DatabaseDrivers/MySQL.php index 0df43d3..da8ef2f 100644 --- a/tests/lib/DatabaseDrivers/MySQL.php +++ b/tests/lib/DatabaseDrivers/MySQL.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Test\DatabaseDrivers; use JKingWeb\Arsse\Arsse; diff --git a/tests/lib/DatabaseDrivers/MySQLPDO.php b/tests/lib/DatabaseDrivers/MySQLPDO.php index bbaf8ab..11f276f 100644 --- a/tests/lib/DatabaseDrivers/MySQLPDO.php +++ b/tests/lib/DatabaseDrivers/MySQLPDO.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Test\DatabaseDrivers; use JKingWeb\Arsse\Arsse; diff --git a/tests/lib/DatabaseDrivers/PostgreSQL.php b/tests/lib/DatabaseDrivers/PostgreSQL.php index edc7549..17b0c90 100644 --- a/tests/lib/DatabaseDrivers/PostgreSQL.php +++ b/tests/lib/DatabaseDrivers/PostgreSQL.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Test\DatabaseDrivers; use JKingWeb\Arsse\Arsse; diff --git a/tests/lib/DatabaseDrivers/PostgreSQLPDO.php b/tests/lib/DatabaseDrivers/PostgreSQLPDO.php index 116c3b2..4fbf547 100644 --- a/tests/lib/DatabaseDrivers/PostgreSQLPDO.php +++ b/tests/lib/DatabaseDrivers/PostgreSQLPDO.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Test\DatabaseDrivers; use JKingWeb\Arsse\Arsse; diff --git a/tests/lib/DatabaseDrivers/SQLite3.php b/tests/lib/DatabaseDrivers/SQLite3.php index 7063372..3ba6925 100644 --- a/tests/lib/DatabaseDrivers/SQLite3.php +++ b/tests/lib/DatabaseDrivers/SQLite3.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Test\DatabaseDrivers; use JKingWeb\Arsse\Arsse; diff --git a/tests/lib/DatabaseDrivers/SQLite3PDO.php b/tests/lib/DatabaseDrivers/SQLite3PDO.php index 0a81eb8..02c5d51 100644 --- a/tests/lib/DatabaseDrivers/SQLite3PDO.php +++ b/tests/lib/DatabaseDrivers/SQLite3PDO.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Test\DatabaseDrivers; use JKingWeb\Arsse\Arsse; diff --git a/tests/lib/Lang/Setup.php b/tests/lib/Lang/Setup.php index c6fa318..0969bf6 100644 --- a/tests/lib/Lang/Setup.php +++ b/tests/lib/Lang/Setup.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Test\Lang; use JKingWeb\Arsse\Lang; diff --git a/tests/lib/Misc/StrClass.php b/tests/lib/Misc/StrClass.php index 0df4e8b..fb1f2b8 100644 --- a/tests/lib/Misc/StrClass.php +++ b/tests/lib/Misc/StrClass.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Test\Misc; class StrClass { diff --git a/tests/lib/PDOTest.php b/tests/lib/PDOTest.php index 0147e28..f0d6621 100644 --- a/tests/lib/PDOTest.php +++ b/tests/lib/PDOTest.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Test; trait PDOTest { diff --git a/tests/lib/Result.php b/tests/lib/Result.php index 554c50a..1c466d0 100644 --- a/tests/lib/Result.php +++ b/tests/lib/Result.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Test; class Result implements \JKingWeb\Arsse\Db\Result { diff --git a/tests/lib/Service.php b/tests/lib/Service.php index cfd11f4..0dc9e33 100644 --- a/tests/lib/Service.php +++ b/tests/lib/Service.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse\Test; class Service extends \JKingWeb\Arsse\Service { diff --git a/tests/server.php b/tests/server.php index 2e7d8d4..f406999 100644 --- a/tests/server.php +++ b/tests/server.php @@ -4,6 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); + namespace JKingWeb\Arsse; require_once __DIR__."/bootstrap.php"; diff --git a/vendor-bin/csfixer/composer.json b/vendor-bin/csfixer/composer.json index c49c075..7953088 100644 --- a/vendor-bin/csfixer/composer.json +++ b/vendor-bin/csfixer/composer.json @@ -1,5 +1,5 @@ { "require-dev": { - "friendsofphp/php-cs-fixer": "^2.8" + "friendsofphp/php-cs-fixer": "v3.0.0-beta.2@dev" } } diff --git a/vendor-bin/csfixer/composer.lock b/vendor-bin/csfixer/composer.lock index 17edd01..f103018 100644 --- a/vendor-bin/csfixer/composer.lock +++ b/vendor-bin/csfixer/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "dec0bf343ea4650da0303df8dfb2ab40", + "content-hash": "f2ffeb86ea78fcea1fd913107fcbfb65", "packages": [], "packages-dev": [ { @@ -304,57 +304,54 @@ }, { "name": "friendsofphp/php-cs-fixer", - "version": "v2.18.5", + "version": "v3.0.0-beta.2", "source": { "type": "git", "url": "https://github.com/FriendsOfPHP/PHP-CS-Fixer.git", - "reference": "e0f6d05c8b157f50029ca6c65c19ed2694f475bf" + "reference": "9225f5d06f5c3ee24b89348cd3dff69c9b3c1ede" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/e0f6d05c8b157f50029ca6c65c19ed2694f475bf", - "reference": "e0f6d05c8b157f50029ca6c65c19ed2694f475bf", + "url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/9225f5d06f5c3ee24b89348cd3dff69c9b3c1ede", + "reference": "9225f5d06f5c3ee24b89348cd3dff69c9b3c1ede", "shasum": "" }, "require": { - "composer/semver": "^1.4 || ^2.0 || ^3.0", - "composer/xdebug-handler": "^1.2", - "doctrine/annotations": "^1.2", + "composer/semver": "^3.2", + "composer/xdebug-handler": "^1.4", + "doctrine/annotations": "^1.12", "ext-json": "*", "ext-tokenizer": "*", - "php": "^5.6 || ^7.0 || ^8.0", - "php-cs-fixer/diff": "^1.3", - "symfony/console": "^3.4.43 || ^4.1.6 || ^5.0", - "symfony/event-dispatcher": "^3.0 || ^4.0 || ^5.0", - "symfony/filesystem": "^3.0 || ^4.0 || ^5.0", - "symfony/finder": "^3.0 || ^4.0 || ^5.0", - "symfony/options-resolver": "^3.0 || ^4.0 || ^5.0", - "symfony/polyfill-php70": "^1.0", - "symfony/polyfill-php72": "^1.4", - "symfony/process": "^3.0 || ^4.0 || ^5.0", - "symfony/stopwatch": "^3.0 || ^4.0 || ^5.0" + "php": "^7.1.3 || ^8.0", + "php-cs-fixer/diff": "^2.0", + "symfony/console": "^4.4.20 || ^5.1.3", + "symfony/event-dispatcher": "^4.4.20 || ^5.0", + "symfony/filesystem": "^4.4.20 || ^5.0", + "symfony/finder": "^4.4.20 || ^5.0", + "symfony/options-resolver": "^4.4.20 || ^5.0", + "symfony/polyfill-php72": "^1.22", + "symfony/process": "^4.4.20 || ^5.0", + "symfony/stopwatch": "^4.4.20 || ^5.0" }, "require-dev": { - "justinrainbow/json-schema": "^5.0", + "justinrainbow/json-schema": "^5.2", "keradus/cli-executor": "^1.4", - "mikey179/vfsstream": "^1.6", - "php-coveralls/php-coveralls": "^2.4.2", - "php-cs-fixer/accessible-object": "^1.0", + "mikey179/vfsstream": "^1.6.8", + "php-coveralls/php-coveralls": "^2.4.3", + "php-cs-fixer/accessible-object": "^1.1", "php-cs-fixer/phpunit-constraint-isidenticalstring": "^1.2", "php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "^1.2.1", + "phpspec/prophecy": "^1.10.3", "phpspec/prophecy-phpunit": "^1.1 || ^2.0", - "phpunit/phpunit": "^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.5.13 || ^9.5", + "phpunit/phpunit": "^7.5.20 || ^8.5.14 || ^9.5", "phpunitgoodpractices/polyfill": "^1.5", "phpunitgoodpractices/traits": "^1.9.1", - "sanmai/phpunit-legacy-adapter": "^6.4 || ^8.2.1", - "symfony/phpunit-bridge": "^5.2.1", - "symfony/yaml": "^3.0 || ^4.0 || ^5.0" + "symfony/phpunit-bridge": "^5.2.4", + "symfony/yaml": "^4.4.20 || ^5.0" }, "suggest": { "ext-dom": "For handling output formats in XML", "ext-mbstring": "For handling non-UTF8 characters.", - "php-cs-fixer/phpunit-constraint-isidenticalstring": "For IsIdenticalString constraint.", - "php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "For XmlMatchesXsd constraint.", "symfony/polyfill-mbstring": "When enabling `ext-mbstring` is not possible." }, "bin": [ @@ -364,20 +361,7 @@ "autoload": { "psr-4": { "PhpCsFixer\\": "src/" - }, - "classmap": [ - "tests/Test/AbstractFixerTestCase.php", - "tests/Test/AbstractIntegrationCaseFactory.php", - "tests/Test/AbstractIntegrationTestCase.php", - "tests/Test/Assert/AssertTokensTrait.php", - "tests/Test/IntegrationCase.php", - "tests/Test/IntegrationCaseFactory.php", - "tests/Test/IntegrationCaseFactoryInterface.php", - "tests/Test/InternalIntegrationCaseFactory.php", - "tests/Test/IsIdenticalConstraint.php", - "tests/Test/TokensWithObservedTransformers.php", - "tests/TestCase.php" - ] + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -396,7 +380,7 @@ "description": "A tool to automatically fix PHP code style", "support": { "issues": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues", - "source": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/tree/v2.18.5" + "source": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/tree/v3.0.0-beta.2" }, "funding": [ { @@ -404,20 +388,20 @@ "type": "github" } ], - "time": "2021-04-06T18:37:33+00:00" + "time": "2021-04-06T18:43:43+00:00" }, { "name": "php-cs-fixer/diff", - "version": "v1.3.1", + "version": "v2.0.2", "source": { "type": "git", "url": "https://github.com/PHP-CS-Fixer/diff.git", - "reference": "dbd31aeb251639ac0b9e7e29405c1441907f5759" + "reference": "29dc0d507e838c4580d018bd8b5cb412474f7ec3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHP-CS-Fixer/diff/zipball/dbd31aeb251639ac0b9e7e29405c1441907f5759", - "reference": "dbd31aeb251639ac0b9e7e29405c1441907f5759", + "url": "https://api.github.com/repos/PHP-CS-Fixer/diff/zipball/29dc0d507e838c4580d018bd8b5cb412474f7ec3", + "reference": "29dc0d507e838c4580d018bd8b5cb412474f7ec3", "shasum": "" }, "require": { @@ -445,21 +429,18 @@ { "name": "Kore Nordmann", "email": "mail@kore-nordmann.de" - }, - { - "name": "SpacePossum" } ], - "description": "sebastian/diff v2 backport support for PHP5.6", + "description": "sebastian/diff v3 backport support for PHP 5.6+", "homepage": "https://github.com/PHP-CS-Fixer", "keywords": [ "diff" ], "support": { "issues": "https://github.com/PHP-CS-Fixer/diff/issues", - "source": "https://github.com/PHP-CS-Fixer/diff/tree/v1.3.1" + "source": "https://github.com/PHP-CS-Fixer/diff/tree/v2.0.2" }, - "time": "2020-10-14T08:39:05+00:00" + "time": "2020-10-14T08:32:19+00:00" }, { "name": "psr/container", @@ -1453,74 +1434,6 @@ ], "time": "2021-01-22T09:19:47+00:00" }, - { - "name": "symfony/polyfill-php70", - "version": "v1.20.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-php70.git", - "reference": "5f03a781d984aae42cebd18e7912fa80f02ee644" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php70/zipball/5f03a781d984aae42cebd18e7912fa80f02ee644", - "reference": "5f03a781d984aae42cebd18e7912fa80f02ee644", - "shasum": "" - }, - "require": { - "php": ">=7.1" - }, - "type": "metapackage", - "extra": { - "branch-alias": { - "dev-main": "1.20-dev" - }, - "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "polyfill", - "portable", - "shim" - ], - "support": { - "source": "https://github.com/symfony/polyfill-php70/tree/v1.20.0" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2020-10-23T14:02:19+00:00" - }, { "name": "symfony/polyfill-php72", "version": "v1.22.1", @@ -2048,7 +1961,9 @@ ], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": { + "friendsofphp/php-cs-fixer": 20 + }, "prefer-stable": false, "prefer-lowest": false, "platform": [],