From 49c996a8dad54a820f585bc8b9854f0f1b72cd8e Mon Sep 17 00:00:00 2001 From: Anton Vasiliev Date: Wed, 9 Jun 2021 00:03:01 +0100 Subject: [PATCH 01/16] Shift PHP versions --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2d059851..22c26f61 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php-versions: [7.3, 7.4] + php-versions: [7.4, 8.0] steps: - uses: actions/checkout@v2 - name: Setup PHP, with composer and extensions From ab66d04f8b202668c787533a326b4d6b6705d8d7 Mon Sep 17 00:00:00 2001 From: Anton Vasiliev Date: Wed, 9 Jun 2021 00:03:12 +0100 Subject: [PATCH 02/16] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ad9917f2..8c0a50f5 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Phalcon IDE Stubs v4 +# Phalcon IDE Stubs This repo provide the most complete Phalcon Framework stubs which enables autocompletion in modern IDEs. From 38c301fdf03ea0a96e21dccaa95ac77ac3ebc69b Mon Sep 17 00:00:00 2001 From: Anton Vasiliev Date: Wed, 9 Jun 2021 00:12:46 +0100 Subject: [PATCH 03/16] Update Phalcon files --- .../Adapter/AbstractAdapter.zep.php} | 10 +- .../Adapter/AdapterInterface.zep.php} | 22 +- .../Memory.php => Acl/Adapter/Memory.zep.php} | 20 +- .../Component.php => Acl/Component.zep.php} | 1 + .../ComponentAware.zep.php} | 1 + .../ComponentInterface.zep.php} | 1 + .../Acl/Enum.php => Acl/Enum.zep.php} | 2 + .../Exception.php => Acl/Exception.zep.php} | 0 .../Acl/Role.php => Acl/Role.zep.php} | 1 + .../RoleAware.php => Acl/RoleAware.zep.php} | 1 + .../RoleInterface.zep.php} | 1 + .../Adapter/AbstractAdapter.zep.php} | 8 +- .../Adapter/AdapterInterface.zep.php} | 3 +- .../Adapter/Apcu.zep.php} | 7 +- .../Adapter/Memory.zep.php} | 5 +- .../Adapter/Stream.zep.php} | 7 +- .../Annotation.zep.php} | 5 +- .../AnnotationsFactory.zep.php} | 9 +- .../Collection.zep.php} | 12 +- .../Exception.zep.php} | 0 .../Reader.php => Annotations/Reader.zep.php} | 1 + .../ReaderInterface.zep.php} | 1 + .../Reflection.zep.php} | 22 +- .../AbstractApplication.zep.php} | 27 +- .../Exception.zep.php} | 0 .../Assets/Asset.php => Assets/Asset.zep.php} | 3 +- .../Css.php => Assets/Asset/Css.zep.php} | 5 +- .../Asset/Js.php => Assets/Asset/Js.zep.php} | 5 +- .../AssetInterface.zep.php} | 1 + .../Collection.zep.php} | 20 +- .../Exception.zep.php} | 0 .../FilterInterface.zep.php} | 1 + .../Filters/Cssmin.zep.php} | 3 + .../Filters/Jsmin.zep.php} | 3 + .../None.php => Assets/Filters/None.zep.php} | 1 + .../Inline.php => Assets/Inline.zep.php} | 3 +- .../Css.php => Assets/Inline/Css.zep.php} | 3 + .../Js.php => Assets/Inline/Js.zep.php} | 3 + .../Manager.php => Assets/Manager.zep.php} | 21 +- src/{Phalcon/Cache.php => Cache.zep.php} | 9 +- .../Adapter/AdapterInterface.zep.php} | 0 .../Apcu.php => Cache/Adapter/Apcu.zep.php} | 1 + .../Adapter/Libmemcached.zep.php} | 0 .../Adapter/Memory.zep.php} | 0 .../Redis.php => Cache/Adapter/Redis.zep.php} | 0 .../Adapter/Stream.zep.php} | 0 .../AdapterFactory.zep.php} | 8 +- .../CacheFactory.zep.php} | 9 +- .../Exception/Exception.zep.php} | 0 .../InvalidArgumentException.zep.php} | 0 .../Cli/Console.php => Cli/Console.zep.php} | 9 +- .../Console/Exception.zep.php} | 0 .../Dispatcher.php => Cli/Dispatcher.zep.php} | 22 +- .../Dispatcher/Exception.zep.php} | 0 .../DispatcherInterface.zep.php} | 9 +- .../Cli/Router.php => Cli/Router.zep.php} | 69 +- .../Router/Exception.zep.php} | 0 .../Route.php => Cli/Router/Route.zep.php} | 71 ++- .../Router/RouteInterface.zep.php} | 7 +- .../RouterInterface.zep.php} | 9 +- .../Cli/Task.php => Cli/Task.zep.php} | 10 +- .../TaskInterface.zep.php} | 0 .../Collection.php => Collection.zep.php} | 35 +- .../CollectionInterface.zep.php} | 13 +- .../Exception.zep.php} | 2 + .../ReadOnly.zep.php} | 5 +- src/{Phalcon/Config.php => Config.zep.php} | 7 +- .../Adapter/Grouped.zep.php} | 5 + .../Ini.php => Config/Adapter/Ini.zep.php} | 4 +- .../Json.php => Config/Adapter/Json.zep.php} | 1 + .../Php.php => Config/Adapter/Php.zep.php} | 1 + .../Yaml.php => Config/Adapter/Yaml.zep.php} | 1 + .../ConfigFactory.zep.php} | 9 +- .../ConfigInterface.zep.php} | 3 + .../Exception.zep.php} | 0 .../Container.php => Container.zep.php} | 2 + src/{Phalcon/Crypt.php => Crypt.zep.php} | 9 +- .../CryptInterface.zep.php} | 1 + .../Exception.php => Crypt/Exception.zep.php} | 0 .../Mismatch.php => Crypt/Mismatch.zep.php} | 0 .../Pdo/Connection.zep.php} | 11 +- .../Connection/AbstractConnection.zep.php} | 44 +- .../Connection/ConnectionInterface.zep.php} | 27 +- .../Pdo/Connection/Decorated.zep.php} | 10 +- .../Pdo/Connection/PdoInterface.zep.php} | 7 +- .../Pdo/ConnectionLocator.zep.php} | 9 +- .../Pdo/ConnectionLocatorInterface.zep.php} | 1 + .../Pdo/Exception/CannotDisconnect.zep.php} | 0 .../Pdo/Exception/ConnectionNotFound.zep.php} | 0 .../Pdo/Exception/Exception.zep.php} | 0 .../Pdo/Profiler/MemoryLogger.zep.php | 111 ++++ .../Pdo/Profiler/Profiler.zep.php} | 10 +- .../Pdo/Profiler/ProfilerInterface.zep.php} | 5 +- .../Query/AbstractConditions.zep.php} | 9 +- .../Query/AbstractQuery.zep.php} | 7 +- .../Query/Bind.zep.php} | 9 +- .../Query/Delete.zep.php} | 7 +- .../Query/Insert.zep.php} | 13 +- .../Query/QueryFactory.zep.php} | 1 + .../Query/Select.zep.php} | 6 +- .../Query/Update.zep.php} | 13 +- .../AbstractDb.php => Db/AbstractDb.zep.php} | 5 +- .../Adapter/AbstractAdapter.zep.php} | 60 +- .../Adapter/AdapterInterface.zep.php} | 41 +- .../Adapter/Pdo/AbstractPdo.zep.php} | 40 +- .../Adapter/Pdo/Mysql.zep.php} | 11 + .../Adapter/Pdo/Postgresql.zep.php} | 9 + .../Adapter/Pdo/Sqlite.zep.php} | 10 + .../Adapter/PdoFactory.zep.php} | 9 +- .../Db/Column.php => Db/Column.zep.php} | 31 +- .../ColumnInterface.zep.php} | 1 + .../Db/Dialect.php => Db/Dialect.zep.php} | 127 ++-- .../Mysql.php => Db/Dialect/Mysql.zep.php} | 7 + .../Dialect/Postgresql.zep.php} | 7 + .../Sqlite.php => Db/Dialect/Sqlite.zep.php} | 7 + .../DialectInterface.zep.php} | 5 +- src/{Phalcon/Db/Enum.php => Db/Enum.zep.php} | 2 + .../Db/Exception.php => Db/Exception.zep.php} | 0 .../Db/Index.php => Db/Index.zep.php} | 1 + .../IndexInterface.zep.php} | 1 + .../Db/Profiler.php => Db/Profiler.zep.php} | 9 +- .../Item.php => Db/Profiler/Item.zep.php} | 1 + .../Db/RawValue.php => Db/RawValue.zep.php} | 1 + .../Db/Reference.php => Db/Reference.zep.php} | 1 + .../ReferenceInterface.zep.php} | 1 + .../Result/Pdo.php => Db/Result/Pdo.zep.php} | 41 +- .../ResultInterface.zep.php} | 1 + src/{Phalcon/Di.php => Di.zep.php} | 49 +- .../AbstractInjectionAware.zep.php} | 3 +- .../DiInterface.zep.php} | 11 +- .../Di/Exception.php => Di/Exception.zep.php} | 0 .../ServiceResolutionException.zep.php} | 0 .../FactoryDefault.zep.php} | 3 + .../Cli.php => Di/FactoryDefault/Cli.zep.php} | 3 + .../Injectable.php => Di/Injectable.zep.php} | 8 +- .../InjectionAwareInterface.zep.php} | 3 +- .../Di/Service.php => Di/Service.zep.php} | 21 +- .../Service/Builder.zep.php} | 4 + .../ServiceInterface.zep.php} | 1 + .../ServiceProviderInterface.zep.php} | 3 +- .../AbstractDispatcher.zep.php} | 113 ++-- .../DispatcherInterface.zep.php} | 23 +- .../Exception.zep.php} | 2 + .../Payload/Payload.zep.php} | 1 + .../Payload/PayloadFactory.zep.php} | 1 + .../Payload/PayloadInterface.zep.php} | 0 .../Payload/ReadableInterface.zep.php} | 1 + .../Payload/Status.zep.php} | 1 + .../Payload/WriteableInterface.zep.php} | 1 + src/{Phalcon/Escaper.php => Escaper.zep.php} | 11 +- .../EscaperInterface.zep.php} | 5 +- .../Exception.zep.php} | 0 .../Events/Event.php => Events/Event.zep.php} | 1 + .../EventInterface.zep.php} | 1 + .../EventsAwareInterface.zep.php} | 3 +- .../Exception.zep.php} | 0 .../Manager.php => Events/Manager.zep.php} | 23 +- .../ManagerInterface.zep.php} | 7 +- .../Exception.php => Exception.zep.php} | 1 + .../AbstractFactory.zep.php} | 25 +- .../Exception.zep.php} | 0 src/{Phalcon/Filter.php => Filter.zep.php} | 19 +- .../Exception.zep.php} | 0 .../FilterFactory.zep.php} | 3 + .../FilterInterface.zep.php} | 1 + .../Sanitize/AbsInt.zep.php} | 1 + .../Sanitize/Alnum.zep.php} | 1 + .../Sanitize/Alpha.zep.php} | 1 + .../Sanitize/BoolVal.zep.php} | 1 + .../Sanitize/Email.zep.php} | 1 + .../Sanitize/FloatVal.zep.php} | 1 + .../Sanitize/IntVal.zep.php} | 1 + .../Sanitize/Lower.zep.php} | 1 + .../Sanitize/LowerFirst.zep.php} | 1 + .../Sanitize/Regex.zep.php} | 1 + .../Sanitize/Remove.zep.php} | 1 + .../Sanitize/Replace.zep.php} | 1 + .../Sanitize/Special.zep.php} | 1 + .../Sanitize/SpecialFull.zep.php} | 1 + .../Sanitize/StringVal.zep.php} | 1 + .../Sanitize/Striptags.zep.php} | 1 + .../Trim.php => Filter/Sanitize/Trim.zep.php} | 1 + .../Sanitize/Upper.zep.php} | 1 + .../Sanitize/UpperFirst.zep.php} | 1 + .../Sanitize/UpperWords.zep.php} | 1 + .../Url.php => Filter/Sanitize/Url.zep.php} | 1 + .../AbstractFlash.zep.php} | 9 +- .../Flash/Direct.php => Flash/Direct.zep.php} | 3 +- .../Exception.php => Flash/Exception.zep.php} | 0 .../FlashInterface.zep.php} | 1 + .../Session.php => Flash/Session.zep.php} | 20 +- .../Element/AbstractElement.zep.php} | 62 +- .../Check.php => Forms/Element/Check.zep.php} | 5 +- .../Date.php => Forms/Element/Date.zep.php} | 5 +- .../Element/ElementInterface.zep.php} | 13 +- .../Email.php => Forms/Element/Email.zep.php} | 5 +- .../File.php => Forms/Element/File.zep.php} | 5 +- .../Element/Hidden.zep.php} | 5 +- .../Element/Numeric.zep.php} | 3 +- .../Element/Password.zep.php} | 3 +- .../Radio.php => Forms/Element/Radio.zep.php} | 3 +- .../Element/Select.zep.php} | 11 +- .../Element/Submit.zep.php} | 3 +- .../Text.php => Forms/Element/Text.zep.php} | 3 +- .../Element/TextArea.zep.php} | 3 +- .../Exception.php => Forms/Exception.zep.php} | 0 .../Forms/Form.php => Forms/Form.zep.php} | 74 ++- .../Manager.php => Forms/Manager.zep.php} | 7 +- .../Helper/Arr.php => Helper/Arr.zep.php} | 3 + .../Base64.php => Helper/Base64.zep.php} | 1 + .../Exception.zep.php} | 0 .../Helper/Fs.php => Helper/Fs.zep.php} | 1 + .../Helper/Json.php => Helper/Json.zep.php} | 4 +- .../Number.php => Helper/Number.zep.php} | 1 + .../Helper/Str.php => Helper/Str.zep.php} | 3 +- .../Attributes.zep.php} | 3 + .../Attributes/AttributesInterface.zep.php} | 1 + .../Attributes/RenderInterface.zep.php} | 1 + .../Breadcrumbs.zep.php} | 9 +- .../Exception.php => Html/Exception.zep.php} | 0 .../Helper/AbstractHelper.zep.php} | 9 +- .../Helper/AbstractList.zep.php} | 7 +- .../Helper/AbstractSeries.zep.php} | 5 +- .../Anchor.php => Html/Helper/Anchor.zep.php} | 3 +- .../Base.php => Html/Helper/Base.zep.php} | 3 +- .../Body.php => Html/Helper/Body.zep.php} | 3 +- .../Button.php => Html/Helper/Button.zep.php} | 3 +- .../Close.php => Html/Helper/Close.zep.php} | 1 + .../Helper/Element.zep.php} | 3 +- .../Form.php => Html/Helper/Form.zep.php} | 3 +- .../Img.php => Html/Helper/Img.zep.php} | 3 +- .../Helper/Input/AbstractInput.zep.php} | 5 +- .../Helper/Input/Checkbox.zep.php} | 8 +- .../Helper/Input/Color.zep.php} | 2 + .../Helper/Input/Date.zep.php} | 2 + .../Helper/Input/DateTime.zep.php} | 2 + .../Helper/Input/DateTimeLocal.zep.php} | 2 + .../Helper/Input/Email.zep.php} | 2 + .../Helper/Input/File.zep.php} | 2 + .../Helper/Input/Hidden.zep.php} | 2 + .../Helper/Input/Image.zep.php} | 2 + .../Helper/Input/Input.zep.php} | 1 + .../Helper/Input/Month.zep.php} | 2 + .../Helper/Input/Numeric.zep.php} | 2 + .../Helper/Input/Password.zep.php} | 2 + .../Helper/Input/Radio.zep.php} | 2 + .../Helper/Input/Range.zep.php} | 2 + .../Helper/Input/Search.zep.php} | 2 + .../Helper/Input/Select.zep.php} | 7 +- .../Helper/Input/Submit.zep.php} | 2 + .../Tel.php => Html/Helper/Input/Tel.zep.php} | 2 + .../Helper/Input/Text.zep.php} | 0 .../Helper/Input/Textarea.zep.php} | 2 + .../Helper/Input/Time.zep.php} | 2 + .../Url.php => Html/Helper/Input/Url.zep.php} | 2 + .../Helper/Input/Week.zep.php} | 2 + .../Label.php => Html/Helper/Label.zep.php} | 3 +- .../Link.php => Html/Helper/Link.zep.php} | 1 + .../Meta.php => Html/Helper/Meta.zep.php} | 3 +- .../Helper/Ol.php => Html/Helper/Ol.zep.php} | 4 +- .../Script.php => Html/Helper/Script.zep.php} | 5 +- .../Style.php => Html/Helper/Style.zep.php} | 3 +- .../Title.php => Html/Helper/Title.zep.php} | 5 +- .../Helper/Ul.php => Html/Helper/Ul.zep.php} | 1 + .../Link/EvolvableLink.zep.php} | 1 + .../Link/EvolvableLinkProvider.zep.php} | 1 + .../Link/Link.php => Html/Link/Link.zep.php} | 3 +- .../Link/LinkProvider.zep.php} | 9 +- .../Link/Serializer/Header.zep.php} | 1 + .../Serializer/SerializerInterface.zep.php} | 1 + .../TagFactory.zep.php} | 6 +- .../Http/Cookie.php => Http/Cookie.zep.php} | 27 +- .../Cookie/CookieInterface.zep.php} | 1 + .../Cookie/Exception.zep.php} | 0 .../Message/AbstractCommon.zep.php} | 5 +- .../Message/AbstractMessage.zep.php} | 11 +- .../Message/AbstractRequest.zep.php} | 1 + .../InvalidArgumentException.zep.php} | 2 + .../Message/Request.zep.php} | 3 +- .../Message/RequestFactory.zep.php} | 1 + .../Message/Response.zep.php} | 9 +- .../Message/ResponseFactory.zep.php} | 1 + .../Message/ServerRequest.zep.php} | 13 +- .../Message/ServerRequestFactory.zep.php} | 3 +- .../Message/Stream.zep.php} | 19 +- .../Message/Stream/Input.zep.php} | 5 +- .../Message/Stream/Memory.zep.php} | 1 + .../Message/Stream/Temp.zep.php} | 1 + .../Message/StreamFactory.zep.php} | 1 + .../Message/UploadedFile.zep.php} | 9 +- .../Message/UploadedFileFactory.zep.php} | 1 + .../Uri.php => Http/Message/Uri.zep.php} | 41 +- .../Message/UriFactory.zep.php} | 1 + .../Http/Request.php => Http/Request.zep.php} | 25 +- .../Request/Exception.zep.php} | 0 .../File.php => Http/Request/File.zep.php} | 31 +- .../Request/FileInterface.zep.php} | 1 + .../RequestInterface.zep.php} | 3 +- .../Response.php => Http/Response.zep.php} | 51 +- .../Response/Cookies.zep.php} | 31 +- .../Response/CookiesInterface.zep.php} | 3 +- .../Response/Exception.zep.php} | 0 .../Response/Headers.zep.php} | 19 +- .../Response/HeadersInterface.zep.php} | 1 + .../ResponseInterface.zep.php} | 3 +- .../Server/AbstractMiddleware.zep.php} | 1 + .../Server/AbstractRequestHandler.zep.php} | 1 + .../Adapter/AbstractAdapter.zep.php} | 32 +- .../Adapter/AdapterInterface.zep.php} | 1 + .../Gd.php => Image/Adapter/Gd.zep.php} | 10 +- .../Adapter/Imagick.zep.php} | 53 +- .../Image/Enum.php => Image/Enum.zep.php} | 2 + .../Exception.php => Image/Exception.zep.php} | 0 .../ImageFactory.zep.php} | 8 +- src/{Phalcon/Kernel.php => Kernel.zep.php} | 1 + src/{Phalcon/Loader.php => Loader.zep.php} | 33 +- .../Exception.zep.php} | 0 src/{Phalcon/Logger.php => Logger.zep.php} | 43 +- .../Adapter/AbstractAdapter.zep.php} | 18 +- .../Adapter/AdapterInterface.zep.php} | 4 +- .../Noop.php => Logger/Adapter/Noop.zep.php} | 3 +- .../Adapter/Stream.zep.php} | 5 +- .../Adapter/Syslog.zep.php} | 5 +- .../AdapterFactory.zep.php} | 8 +- .../Exception.zep.php} | 0 .../Formatter/AbstractFormatter.zep.php} | 26 +- .../Formatter/FormatterInterface.zep.php} | 3 + .../Formatter/Json.zep.php} | 2 + .../Formatter/Line.zep.php} | 4 +- .../Logger/Item.php => Logger/Item.zep.php} | 48 +- .../LoggerFactory.zep.php} | 3 +- .../Exception.zep.php} | 0 .../Message.php => Messages/Message.zep.php} | 5 +- .../MessageInterface.zep.php} | 1 + .../Messages.zep.php} | 15 +- .../Application.zep.php} | 22 +- .../Application/Exception.zep.php} | 0 .../Controller.php => Mvc/Controller.zep.php} | 1 + .../Controller/BindModelInterface.zep.php} | 1 + .../ControllerInterface.zep.php} | 0 .../Dispatcher.php => Mvc/Dispatcher.zep.php} | 8 +- .../Dispatcher/Exception.zep.php} | 0 .../DispatcherInterface.zep.php} | 1 + .../EntityInterface.zep.php} | 1 + .../Mvc/Micro.php => Mvc/Micro.zep.php} | 117 ++-- .../Micro/Collection.zep.php} | 72 ++- .../Micro/CollectionInterface.zep.php} | 3 +- .../Micro/Exception.zep.php} | 0 .../Micro/LazyLoader.zep.php} | 23 +- .../Micro/MiddlewareInterface.zep.php} | 3 + .../Mvc/Model.php => Mvc/Model.zep.php} | 341 ++++------ .../Model/Behavior.zep.php} | 7 +- .../Model/Behavior/SoftDelete.zep.php} | 3 + .../Model/Behavior/Timestampable.zep.php} | 4 + .../Model/BehaviorInterface.zep.php} | 5 +- .../Binder.php => Mvc/Model/Binder.zep.php} | 25 +- .../Model/Binder/BindableInterface.zep.php} | 1 + .../Model/BinderInterface.zep.php} | 1 + .../Model/Criteria.zep.php} | 30 +- .../Model/CriteriaInterface.zep.php} | 3 + .../Model/Exception.zep.php} | 0 .../Manager.php => Mvc/Model/Manager.zep.php} | 213 ++++--- .../Model/ManagerInterface.zep.php} | 33 +- .../Model/MetaData.zep.php} | 50 +- .../Model/MetaData/Apcu.zep.php} | 4 + .../Model/MetaData/Libmemcached.zep.php} | 8 +- .../Model/MetaData/Memory.zep.php} | 4 +- .../Model/MetaData/Redis.zep.php} | 7 +- .../MetaData/Strategy/Annotations.zep.php} | 7 + .../MetaData/Strategy/Introspection.zep.php} | 8 + .../Strategy/StrategyInterface.zep.php} | 4 + .../Model/MetaData/Stream.zep.php} | 12 +- .../Model/MetaDataInterface.zep.php} | 6 +- .../Query.php => Mvc/Model/Query.zep.php} | 588 ++++++++++-------- .../Model/Query/Builder.zep.php} | 118 ++-- .../Model/Query/BuilderInterface.zep.php} | 15 +- .../Lang.php => Mvc/Model/Query/Lang.zep.php} | 1 + .../Model/Query/Status.zep.php} | 10 +- .../Model/Query/StatusInterface.zep.php} | 2 + .../Model/QueryInterface.zep.php} | 5 +- .../Model/Relation.zep.php} | 57 +- .../Model/RelationInterface.zep.php} | 1 + .../Model/ResultInterface.zep.php} | 5 +- .../Model/Resultset.zep.php} | 78 ++- .../Model/Resultset/Complex.zep.php} | 28 +- .../Model/Resultset/Simple.zep.php} | 30 +- .../Model/ResultsetInterface.zep.php} | 11 +- .../Model/Row.php => Mvc/Model/Row.zep.php} | 18 +- .../Model/Transaction.zep.php} | 60 +- .../Model/Transaction/Exception.zep.php} | 0 .../Model/Transaction/Failed.zep.php} | 10 +- .../Model/Transaction/Manager.zep.php} | 54 +- .../Transaction/ManagerInterface.zep.php} | 11 +- .../Model/TransactionInterface.zep.php} | 12 +- .../Model/ValidationFailed.zep.php} | 20 +- .../ModelInterface.zep.php} | 59 +- .../ModuleDefinitionInterface.zep.php} | 3 + .../Mvc/Router.php => Mvc/Router.zep.php} | 267 ++++---- .../Router/Annotations.zep.php} | 34 +- .../Router/Exception.zep.php} | 0 .../Group.php => Mvc/Router/Group.zep.php} | 86 ++- .../Router/GroupInterface.zep.php} | 27 +- .../Route.php => Mvc/Router/Route.zep.php} | 83 ++- .../Router/RouteInterface.zep.php} | 5 +- .../RouterInterface.zep.php} | 40 +- .../Mvc/View.php => Mvc/View.zep.php} | 152 +++-- .../View/Engine/AbstractEngine.zep.php} | 14 +- .../View/Engine/EngineInterface.zep.php} | 5 +- .../Php.php => Mvc/View/Engine/Php.zep.php} | 1 + .../Volt.php => Mvc/View/Engine/Volt.zep.php} | 53 +- .../View/Engine/Volt/Compiler.zep.php} | 198 +++--- .../View/Engine/Volt/Exception.zep.php} | 13 +- .../View/Exception.zep.php} | 0 .../Simple.php => Mvc/View/Simple.zep.php} | 83 ++- .../ViewBaseInterface.zep.php} | 3 + .../ViewInterface.zep.php} | 5 +- .../Adapter/AbstractAdapter.zep.php} | 9 + .../Adapter/AdapterInterface.zep.php} | 1 + .../Adapter/Model.zep.php} | 1 + .../Adapter/NativeArray.zep.php} | 1 + .../Adapter/QueryBuilder.zep.php} | 5 + .../Exception.zep.php} | 0 .../PaginatorFactory.zep.php} | 14 +- .../Repository.zep.php} | 5 +- .../RepositoryInterface.zep.php} | 1 + .../DataMapper/Pdo/Profiler/MemoryLogger.php | 46 -- .../Registry.php => Registry.zep.php} | 21 +- .../Security.php => Security.zep.php} | 15 +- .../Exception.zep.php} | 0 .../JWT/Builder.zep.php} | 9 +- .../UnsupportedAlgorithmException.zep.php} | 1 + .../Exceptions/ValidatorException.zep.php} | 1 + .../JWT/Signer/AbstractSigner.zep.php} | 1 + .../JWT/Signer/Hmac.zep.php} | 1 + .../JWT/Signer/None.zep.php} | 1 + .../JWT/Signer/SignerInterface.zep.php} | 1 + .../JWT/Token/AbstractItem.zep.php} | 3 +- .../JWT/Token/Enum.zep.php} | 2 + .../JWT/Token/Item.zep.php} | 1 + .../JWT/Token/Parser.zep.php} | 6 + .../JWT/Token/Signature.zep.php} | 1 + .../JWT/Token/Token.zep.php} | 1 + .../JWT/Validator.zep.php} | 2 + .../Random.php => Security/Random.zep.php} | 1 + .../Adapter/AbstractAdapter.zep.php} | 2 + .../Adapter/Libmemcached.zep.php} | 3 +- .../Noop.php => Session/Adapter/Noop.zep.php} | 9 +- .../Adapter/Redis.zep.php} | 3 +- .../Adapter/Stream.zep.php} | 3 +- .../Session/Bag.php => Session/Bag.zep.php} | 29 +- .../Exception.zep.php} | 0 .../Manager.php => Session/Manager.zep.php} | 17 +- .../ManagerInterface.zep.php} | 13 +- .../Adapter/AbstractAdapter.zep.php} | 19 +- .../Adapter/AdapterInterface.zep.php} | 7 +- .../Apcu.php => Storage/Adapter/Apcu.zep.php} | 19 +- .../Adapter/Libmemcached.zep.php} | 10 +- .../Adapter/Memory.zep.php} | 8 +- .../Adapter/Redis.zep.php} | 14 +- .../Adapter/Stream.zep.php} | 12 +- .../AdapterFactory.zep.php} | 8 +- .../Exception.zep.php} | 0 .../Serializer/AbstractSerializer.zep.php} | 5 +- .../Serializer/Base64.zep.php} | 5 +- .../Serializer/Igbinary.zep.php} | 3 +- .../Serializer/Json.zep.php} | 3 +- .../Serializer/Msgpack.zep.php} | 3 +- .../Serializer/None.zep.php} | 3 +- .../Serializer/Php.zep.php} | 3 +- .../Serializer/SerializerInterface.zep.php} | 3 +- .../SerializerFactory.zep.php} | 6 +- .../Debug.php => Support/Debug.zep.php} | 39 +- .../Dump.php => Support/Debug/Dump.zep.php} | 18 +- .../Debug/Exception.zep.php} | 2 +- src/Support/Exception.zep.php | 18 + src/Support/Helper/Str/Interpolate.zep.php | 38 ++ src/Support/HelperFactory.zep.php | 60 ++ .../Version.php => Support/Version.zep.php} | 76 +-- src/{Phalcon/Tag.php => Tag.zep.php} | 89 ++- .../Exception.php => Tag/Exception.zep.php} | 0 .../Tag/Select.php => Tag/Select.zep.php} | 5 + src/{Phalcon/Text.php => Text.zep.php} | 3 +- .../Adapter/AbstractAdapter.zep.php} | 13 +- .../Adapter/AdapterInterface.zep.php} | 5 +- .../Csv.php => Translate/Adapter/Csv.zep.php} | 13 +- .../Adapter/Gettext.zep.php} | 21 +- .../Adapter/NativeArray.zep.php} | 7 +- .../Exception.zep.php} | 0 .../Interpolator/AssociativeArray.zep.php} | 5 +- .../Interpolator/IndexedArray.zep.php} | 3 +- .../InterpolatorInterface.zep.php} | 3 +- .../InterpolatorFactory.zep.php} | 6 +- .../TranslateFactory.zep.php} | 21 +- src/{Phalcon/Url.php => Url.zep.php} | 1 + .../Exception.php => Url/Exception.zep.php} | 0 .../UrlInterface.zep.php} | 1 + .../Validation.php => Validation.zep.php} | 83 ++- .../AbstractCombinedFieldsValidator.zep.php} | 0 .../AbstractValidator.zep.php} | 19 +- .../AbstractValidatorComposite.zep.php} | 5 +- .../Exception.zep.php} | 0 .../ValidationInterface.zep.php} | 11 +- .../Validator/Alnum.zep.php} | 4 +- .../Validator/Alpha.zep.php} | 5 +- .../Validator/Between.zep.php} | 5 +- .../Validator/Callback.zep.php} | 6 +- .../Validator/Confirmation.zep.php} | 6 +- .../Validator/CreditCard.zep.php} | 5 +- .../Validator/Date.zep.php} | 6 +- .../Validator/Digit.zep.php} | 5 +- .../Validator/Email.zep.php} | 5 +- .../Validator/Exception.zep.php} | 0 .../Validator/ExclusionIn.zep.php} | 6 +- .../Validator/File.zep.php} | 13 +- .../Validator/File/AbstractFile.zep.php} | 77 ++- .../Validator/File/MimeType.zep.php} | 1 + .../Validator/File/Resolution/Equal.zep.php} | 5 +- .../Validator/File/Resolution/Max.zep.php} | 3 +- .../Validator/File/Resolution/Min.zep.php} | 3 +- .../Validator/File/Size/Equal.zep.php} | 5 +- .../Validator/File/Size/Max.zep.php} | 3 +- .../Validator/File/Size/Min.zep.php} | 3 +- .../Validator/Identical.zep.php} | 5 +- .../Validator/InclusionIn.zep.php} | 6 +- .../Validator/Ip.zep.php} | 5 +- .../Validator/Numericality.zep.php} | 3 +- .../Validator/PresenceOf.zep.php} | 3 +- .../Validator/Regex.zep.php} | 3 +- .../Validator/StringLength.zep.php} | 3 +- .../Validator/StringLength/Max.zep.php} | 3 +- .../Validator/StringLength/Min.zep.php} | 3 +- .../Validator/Uniqueness.zep.php} | 7 +- .../Validator/Url.zep.php} | 3 +- .../ValidatorCompositeInterface.zep.php} | 1 + .../ValidatorFactory.zep.php} | 6 +- .../ValidatorInterface.zep.php} | 1 + 536 files changed, 4599 insertions(+), 2590 deletions(-) rename src/{Phalcon/Acl/Adapter/AbstractAdapter.php => Acl/Adapter/AbstractAdapter.zep.php} (91%) rename src/{Phalcon/Acl/Adapter/AdapterInterface.php => Acl/Adapter/AdapterInterface.zep.php} (91%) rename src/{Phalcon/Acl/Adapter/Memory.php => Acl/Adapter/Memory.zep.php} (96%) rename src/{Phalcon/Acl/Component.php => Acl/Component.zep.php} (99%) rename src/{Phalcon/Acl/ComponentAware.php => Acl/ComponentAware.zep.php} (99%) rename src/{Phalcon/Acl/ComponentInterface.php => Acl/ComponentInterface.zep.php} (99%) rename src/{Phalcon/Acl/Enum.php => Acl/Enum.zep.php} (99%) rename src/{Phalcon/Acl/Exception.php => Acl/Exception.zep.php} (100%) rename src/{Phalcon/Acl/Role.php => Acl/Role.zep.php} (99%) rename src/{Phalcon/Acl/RoleAware.php => Acl/RoleAware.zep.php} (99%) rename src/{Phalcon/Acl/RoleInterface.php => Acl/RoleInterface.zep.php} (99%) rename src/{Phalcon/Annotations/Adapter/AbstractAdapter.php => Annotations/Adapter/AbstractAdapter.zep.php} (96%) rename src/{Phalcon/Annotations/Adapter/AdapterInterface.php => Annotations/Adapter/AdapterInterface.zep.php} (99%) rename src/{Phalcon/Annotations/Adapter/Apcu.php => Annotations/Adapter/Apcu.zep.php} (91%) rename src/{Phalcon/Annotations/Adapter/Memory.php => Annotations/Adapter/Memory.zep.php} (93%) rename src/{Phalcon/Annotations/Adapter/Stream.php => Annotations/Adapter/Stream.zep.php} (91%) rename src/{Phalcon/Annotations/Annotation.php => Annotations/Annotation.zep.php} (96%) rename src/{Phalcon/Annotations/AnnotationsFactory.php => Annotations/AnnotationsFactory.zep.php} (85%) rename src/{Phalcon/Annotations/Collection.php => Annotations/Collection.zep.php} (93%) rename src/{Phalcon/Annotations/Exception.php => Annotations/Exception.zep.php} (100%) rename src/{Phalcon/Annotations/Reader.php => Annotations/Reader.zep.php} (99%) rename src/{Phalcon/Annotations/ReaderInterface.php => Annotations/ReaderInterface.zep.php} (99%) rename src/{Phalcon/Annotations/Reflection.php => Annotations/Reflection.zep.php} (84%) rename src/{Phalcon/Application/AbstractApplication.php => Application/AbstractApplication.zep.php} (85%) rename src/{Phalcon/Application/Exception.php => Application/Exception.zep.php} (100%) rename src/{Phalcon/Assets/Asset.php => Assets/Asset.zep.php} (97%) rename src/{Phalcon/Assets/Asset/Css.php => Assets/Asset/Css.zep.php} (82%) rename src/{Phalcon/Assets/Asset/Js.php => Assets/Asset/Js.zep.php} (82%) rename src/{Phalcon/Assets/AssetInterface.php => Assets/AssetInterface.zep.php} (99%) rename src/{Phalcon/Assets/Collection.php => Assets/Collection.zep.php} (95%) rename src/{Phalcon/Assets/Exception.php => Assets/Exception.zep.php} (100%) rename src/{Phalcon/Assets/FilterInterface.php => Assets/FilterInterface.zep.php} (99%) rename src/{Phalcon/Assets/Filters/Cssmin.php => Assets/Filters/Cssmin.zep.php} (94%) rename src/{Phalcon/Assets/Filters/Jsmin.php => Assets/Filters/Jsmin.zep.php} (95%) rename src/{Phalcon/Assets/Filters/None.php => Assets/Filters/None.zep.php} (99%) rename src/{Phalcon/Assets/Inline.php => Assets/Inline.zep.php} (97%) rename src/{Phalcon/Assets/Inline/Css.php => Assets/Inline/Css.zep.php} (93%) rename src/{Phalcon/Assets/Inline/Js.php => Assets/Inline/Js.zep.php} (93%) rename src/{Phalcon/Assets/Manager.php => Assets/Manager.zep.php} (94%) rename src/{Phalcon/Cache.php => Cache.zep.php} (96%) rename src/{Phalcon/Cache/Adapter/AdapterInterface.php => Cache/Adapter/AdapterInterface.zep.php} (100%) rename src/{Phalcon/Cache/Adapter/Apcu.php => Cache/Adapter/Apcu.zep.php} (90%) rename src/{Phalcon/Cache/Adapter/Libmemcached.php => Cache/Adapter/Libmemcached.zep.php} (100%) rename src/{Phalcon/Cache/Adapter/Memory.php => Cache/Adapter/Memory.zep.php} (100%) rename src/{Phalcon/Cache/Adapter/Redis.php => Cache/Adapter/Redis.zep.php} (100%) rename src/{Phalcon/Cache/Adapter/Stream.php => Cache/Adapter/Stream.zep.php} (100%) rename src/{Phalcon/Cache/AdapterFactory.php => Cache/AdapterFactory.zep.php} (89%) rename src/{Phalcon/Cache/CacheFactory.php => Cache/CacheFactory.zep.php} (89%) rename src/{Phalcon/Cache/Exception/Exception.php => Cache/Exception/Exception.zep.php} (100%) rename src/{Phalcon/Cache/Exception/InvalidArgumentException.php => Cache/Exception/InvalidArgumentException.zep.php} (100%) rename src/{Phalcon/Cli/Console.php => Cli/Console.zep.php} (82%) rename src/{Phalcon/Cli/Console/Exception.php => Cli/Console/Exception.zep.php} (100%) rename src/{Phalcon/Cli/Dispatcher.php => Cli/Dispatcher.zep.php} (88%) rename src/{Phalcon/Cli/Dispatcher/Exception.php => Cli/Dispatcher/Exception.zep.php} (100%) rename src/{Phalcon/Cli/DispatcherInterface.php => Cli/DispatcherInterface.zep.php} (87%) rename src/{Phalcon/Cli/Router.php => Cli/Router.zep.php} (82%) rename src/{Phalcon/Cli/Router/Exception.php => Cli/Router/Exception.zep.php} (100%) rename src/{Phalcon/Cli/Router/Route.php => Cli/Router/Route.zep.php} (80%) rename src/{Phalcon/Cli/Router/RouteInterface.php => Cli/Router/RouteInterface.zep.php} (93%) rename src/{Phalcon/Cli/RouterInterface.php => Cli/RouterInterface.zep.php} (91%) rename src/{Phalcon/Cli/Task.php => Cli/Task.zep.php} (90%) rename src/{Phalcon/Cli/TaskInterface.php => Cli/TaskInterface.zep.php} (100%) rename src/{Phalcon/Collection.php => Collection.zep.php} (87%) rename src/{Phalcon/Collection/CollectionInterface.php => Collection/CollectionInterface.zep.php} (85%) rename src/{Phalcon/Collection/Exception.php => Collection/Exception.zep.php} (95%) rename src/{Phalcon/Collection/ReadOnly.php => Collection/ReadOnly.zep.php} (86%) rename src/{Phalcon/Config.php => Config.zep.php} (95%) rename src/{Phalcon/Config/Adapter/Grouped.php => Config/Adapter/Grouped.zep.php} (91%) rename src/{Phalcon/Config/Adapter/Ini.php => Config/Adapter/Ini.zep.php} (96%) rename src/{Phalcon/Config/Adapter/Json.php => Config/Adapter/Json.zep.php} (99%) rename src/{Phalcon/Config/Adapter/Php.php => Config/Adapter/Php.zep.php} (99%) rename src/{Phalcon/Config/Adapter/Yaml.php => Config/Adapter/Yaml.zep.php} (99%) rename src/{Phalcon/Config/ConfigFactory.php => Config/ConfigFactory.zep.php} (88%) rename src/{Phalcon/Config/ConfigInterface.php => Config/ConfigInterface.zep.php} (95%) rename src/{Phalcon/Config/Exception.php => Config/Exception.zep.php} (100%) rename src/{Phalcon/Container.php => Container.zep.php} (96%) rename src/{Phalcon/Crypt.php => Crypt.zep.php} (97%) rename src/{Phalcon/Crypt/CryptInterface.php => Crypt/CryptInterface.zep.php} (99%) rename src/{Phalcon/Crypt/Exception.php => Crypt/Exception.zep.php} (100%) rename src/{Phalcon/Crypt/Mismatch.php => Crypt/Mismatch.zep.php} (100%) rename src/{Phalcon/DataMapper/Pdo/Connection.php => DataMapper/Pdo/Connection.zep.php} (82%) rename src/{Phalcon/DataMapper/Pdo/Connection/AbstractConnection.php => DataMapper/Pdo/Connection/AbstractConnection.zep.php} (93%) rename src/{Phalcon/DataMapper/Pdo/Connection/ConnectionInterface.php => DataMapper/Pdo/Connection/ConnectionInterface.zep.php} (92%) rename src/{Phalcon/DataMapper/Pdo/Connection/Decorated.php => DataMapper/Pdo/Connection/Decorated.zep.php} (86%) rename src/{Phalcon/DataMapper/Pdo/Connection/PdoInterface.php => DataMapper/Pdo/Connection/PdoInterface.zep.php} (97%) rename src/{Phalcon/DataMapper/Pdo/ConnectionLocator.php => DataMapper/Pdo/ConnectionLocator.zep.php} (95%) rename src/{Phalcon/DataMapper/Pdo/ConnectionLocatorInterface.php => DataMapper/Pdo/ConnectionLocatorInterface.zep.php} (99%) rename src/{Phalcon/DataMapper/Pdo/Exception/CannotDisconnect.php => DataMapper/Pdo/Exception/CannotDisconnect.zep.php} (100%) rename src/{Phalcon/DataMapper/Pdo/Exception/ConnectionNotFound.php => DataMapper/Pdo/Exception/ConnectionNotFound.zep.php} (100%) rename src/{Phalcon/DataMapper/Pdo/Exception/Exception.php => DataMapper/Pdo/Exception/Exception.zep.php} (100%) create mode 100644 src/DataMapper/Pdo/Profiler/MemoryLogger.zep.php rename src/{Phalcon/DataMapper/Pdo/Profiler/Profiler.php => DataMapper/Pdo/Profiler/Profiler.zep.php} (93%) rename src/{Phalcon/DataMapper/Pdo/Profiler/ProfilerInterface.php => DataMapper/Pdo/Profiler/ProfilerInterface.zep.php} (96%) rename src/{Phalcon/DataMapper/Query/AbstractConditions.php => DataMapper/Query/AbstractConditions.zep.php} (95%) rename src/{Phalcon/DataMapper/Query/AbstractQuery.php => DataMapper/Query/AbstractQuery.zep.php} (95%) rename src/{Phalcon/DataMapper/Query/Bind.php => DataMapper/Query/Bind.zep.php} (91%) rename src/{Phalcon/DataMapper/Query/Delete.php => DataMapper/Query/Delete.zep.php} (93%) rename src/{Phalcon/DataMapper/Query/Insert.php => DataMapper/Query/Insert.zep.php} (93%) rename src/{Phalcon/DataMapper/Query/QueryFactory.php => DataMapper/Query/QueryFactory.zep.php} (99%) rename src/{Phalcon/DataMapper/Query/Select.php => DataMapper/Query/Select.zep.php} (99%) rename src/{Phalcon/DataMapper/Query/Update.php => DataMapper/Query/Update.zep.php} (93%) rename src/{Phalcon/Db/AbstractDb.php => Db/AbstractDb.zep.php} (95%) rename src/{Phalcon/Db/Adapter/AbstractAdapter.php => Db/Adapter/AbstractAdapter.zep.php} (94%) rename src/{Phalcon/Db/Adapter/AdapterInterface.php => Db/Adapter/AdapterInterface.zep.php} (94%) rename src/{Phalcon/Db/Adapter/Pdo/AbstractPdo.php => Db/Adapter/Pdo/AbstractPdo.zep.php} (89%) rename src/{Phalcon/Db/Adapter/Pdo/Mysql.php => Db/Adapter/Pdo/Mysql.zep.php} (90%) rename src/{Phalcon/Db/Adapter/Pdo/Postgresql.php => Db/Adapter/Pdo/Postgresql.zep.php} (94%) rename src/{Phalcon/Db/Adapter/Pdo/Sqlite.php => Db/Adapter/Pdo/Sqlite.zep.php} (92%) rename src/{Phalcon/Db/Adapter/PdoFactory.php => Db/Adapter/PdoFactory.zep.php} (87%) rename src/{Phalcon/Db/Column.php => Db/Column.zep.php} (94%) rename src/{Phalcon/Db/ColumnInterface.php => Db/ColumnInterface.zep.php} (99%) rename src/{Phalcon/Db/Dialect.php => Db/Dialect.zep.php} (78%) rename src/{Phalcon/Db/Dialect/Mysql.php => Db/Dialect/Mysql.zep.php} (97%) rename src/{Phalcon/Db/Dialect/Postgresql.php => Db/Dialect/Postgresql.zep.php} (97%) rename src/{Phalcon/Db/Dialect/Sqlite.php => Db/Dialect/Sqlite.zep.php} (97%) rename src/{Phalcon/Db/DialectInterface.php => Db/DialectInterface.zep.php} (99%) rename src/{Phalcon/Db/Enum.php => Db/Enum.zep.php} (99%) rename src/{Phalcon/Db/Exception.php => Db/Exception.zep.php} (100%) rename src/{Phalcon/Db/Index.php => Db/Index.zep.php} (99%) rename src/{Phalcon/Db/IndexInterface.php => Db/IndexInterface.zep.php} (99%) rename src/{Phalcon/Db/Profiler.php => Db/Profiler.zep.php} (94%) rename src/{Phalcon/Db/Profiler/Item.php => Db/Profiler/Item.zep.php} (99%) rename src/{Phalcon/Db/RawValue.php => Db/RawValue.zep.php} (99%) rename src/{Phalcon/Db/Reference.php => Db/Reference.zep.php} (99%) rename src/{Phalcon/Db/ReferenceInterface.php => Db/ReferenceInterface.zep.php} (99%) rename src/{Phalcon/Db/Result/Pdo.php => Db/Result/Pdo.zep.php} (91%) rename src/{Phalcon/Db/ResultInterface.php => Db/ResultInterface.zep.php} (99%) rename src/{Phalcon/Di.php => Di.zep.php} (90%) rename src/{Phalcon/Di/AbstractInjectionAware.php => Di/AbstractInjectionAware.zep.php} (93%) rename src/{Phalcon/Di/DiInterface.php => Di/DiInterface.zep.php} (93%) rename src/{Phalcon/Di/Exception.php => Di/Exception.zep.php} (100%) rename src/{Phalcon/Di/Exception/ServiceResolutionException.php => Di/Exception/ServiceResolutionException.zep.php} (100%) rename src/{Phalcon/Di/FactoryDefault.php => Di/FactoryDefault.zep.php} (94%) rename src/{Phalcon/Di/FactoryDefault/Cli.php => Di/FactoryDefault/Cli.zep.php} (92%) rename src/{Phalcon/Di/Injectable.php => Di/Injectable.zep.php} (95%) rename src/{Phalcon/Di/InjectionAwareInterface.php => Di/InjectionAwareInterface.zep.php} (92%) rename src/{Phalcon/Di/Service.php => Di/Service.zep.php} (86%) rename src/{Phalcon/Di/Service/Builder.php => Di/Service/Builder.zep.php} (95%) rename src/{Phalcon/Di/ServiceInterface.php => Di/ServiceInterface.zep.php} (99%) rename src/{Phalcon/Di/ServiceProviderInterface.php => Di/ServiceProviderInterface.zep.php} (94%) rename src/{Phalcon/Dispatcher/AbstractDispatcher.php => Dispatcher/AbstractDispatcher.zep.php} (79%) rename src/{Phalcon/Dispatcher/DispatcherInterface.php => Dispatcher/DispatcherInterface.zep.php} (84%) rename src/{Phalcon/Dispatcher/Exception.php => Dispatcher/Exception.zep.php} (99%) rename src/{Phalcon/Domain/Payload/Payload.php => Domain/Payload/Payload.zep.php} (99%) rename src/{Phalcon/Domain/Payload/PayloadFactory.php => Domain/Payload/PayloadFactory.zep.php} (99%) rename src/{Phalcon/Domain/Payload/PayloadInterface.php => Domain/Payload/PayloadInterface.zep.php} (100%) rename src/{Phalcon/Domain/Payload/ReadableInterface.php => Domain/Payload/ReadableInterface.zep.php} (99%) rename src/{Phalcon/Domain/Payload/Status.php => Domain/Payload/Status.zep.php} (99%) rename src/{Phalcon/Domain/Payload/WriteableInterface.php => Domain/Payload/WriteableInterface.zep.php} (99%) rename src/{Phalcon/Escaper.php => Escaper.zep.php} (94%) rename src/{Phalcon/Escaper/EscaperInterface.php => Escaper/EscaperInterface.zep.php} (93%) rename src/{Phalcon/Escaper/Exception.php => Escaper/Exception.zep.php} (100%) rename src/{Phalcon/Events/Event.php => Events/Event.zep.php} (99%) rename src/{Phalcon/Events/EventInterface.php => Events/EventInterface.zep.php} (99%) rename src/{Phalcon/Events/EventsAwareInterface.php => Events/EventsAwareInterface.zep.php} (98%) rename src/{Phalcon/Events/Exception.php => Events/Exception.zep.php} (100%) rename src/{Phalcon/Events/Manager.php => Events/Manager.zep.php} (90%) rename src/{Phalcon/Events/ManagerInterface.php => Events/ManagerInterface.zep.php} (89%) rename src/{Phalcon/Exception.php => Exception.zep.php} (99%) rename src/{Phalcon/Factory/AbstractFactory.php => Factory/AbstractFactory.zep.php} (72%) rename src/{Phalcon/Factory/Exception.php => Factory/Exception.zep.php} (100%) rename src/{Phalcon/Filter.php => Filter.zep.php} (88%) rename src/{Phalcon/Filter/Exception.php => Filter/Exception.zep.php} (100%) rename src/{Phalcon/Filter/FilterFactory.php => Filter/FilterFactory.zep.php} (97%) rename src/{Phalcon/Filter/FilterInterface.php => Filter/FilterInterface.zep.php} (99%) rename src/{Phalcon/Filter/Sanitize/AbsInt.php => Filter/Sanitize/AbsInt.zep.php} (99%) rename src/{Phalcon/Filter/Sanitize/Alnum.php => Filter/Sanitize/Alnum.zep.php} (99%) rename src/{Phalcon/Filter/Sanitize/Alpha.php => Filter/Sanitize/Alpha.zep.php} (99%) rename src/{Phalcon/Filter/Sanitize/BoolVal.php => Filter/Sanitize/BoolVal.zep.php} (99%) rename src/{Phalcon/Filter/Sanitize/Email.php => Filter/Sanitize/Email.zep.php} (99%) rename src/{Phalcon/Filter/Sanitize/FloatVal.php => Filter/Sanitize/FloatVal.zep.php} (99%) rename src/{Phalcon/Filter/Sanitize/IntVal.php => Filter/Sanitize/IntVal.zep.php} (99%) rename src/{Phalcon/Filter/Sanitize/Lower.php => Filter/Sanitize/Lower.zep.php} (99%) rename src/{Phalcon/Filter/Sanitize/LowerFirst.php => Filter/Sanitize/LowerFirst.zep.php} (99%) rename src/{Phalcon/Filter/Sanitize/Regex.php => Filter/Sanitize/Regex.zep.php} (99%) rename src/{Phalcon/Filter/Sanitize/Remove.php => Filter/Sanitize/Remove.zep.php} (99%) rename src/{Phalcon/Filter/Sanitize/Replace.php => Filter/Sanitize/Replace.zep.php} (99%) rename src/{Phalcon/Filter/Sanitize/Special.php => Filter/Sanitize/Special.zep.php} (99%) rename src/{Phalcon/Filter/Sanitize/SpecialFull.php => Filter/Sanitize/SpecialFull.zep.php} (99%) rename src/{Phalcon/Filter/Sanitize/StringVal.php => Filter/Sanitize/StringVal.zep.php} (99%) rename src/{Phalcon/Filter/Sanitize/Striptags.php => Filter/Sanitize/Striptags.zep.php} (99%) rename src/{Phalcon/Filter/Sanitize/Trim.php => Filter/Sanitize/Trim.zep.php} (99%) rename src/{Phalcon/Filter/Sanitize/Upper.php => Filter/Sanitize/Upper.zep.php} (99%) rename src/{Phalcon/Filter/Sanitize/UpperFirst.php => Filter/Sanitize/UpperFirst.zep.php} (99%) rename src/{Phalcon/Filter/Sanitize/UpperWords.php => Filter/Sanitize/UpperWords.zep.php} (99%) rename src/{Phalcon/Filter/Sanitize/Url.php => Filter/Sanitize/Url.zep.php} (99%) rename src/{Phalcon/Flash/AbstractFlash.php => Flash/AbstractFlash.zep.php} (97%) rename src/{Phalcon/Flash/Direct.php => Flash/Direct.zep.php} (93%) rename src/{Phalcon/Flash/Exception.php => Flash/Exception.zep.php} (100%) rename src/{Phalcon/Flash/FlashInterface.php => Flash/FlashInterface.zep.php} (99%) rename src/{Phalcon/Flash/Session.php => Flash/Session.zep.php} (85%) rename src/{Phalcon/Forms/Element/AbstractElement.php => Forms/Element/AbstractElement.zep.php} (88%) rename src/{Phalcon/Forms/Element/Check.php => Forms/Element/Check.zep.php} (87%) rename src/{Phalcon/Forms/Element/Date.php => Forms/Element/Date.zep.php} (86%) rename src/{Phalcon/Forms/Element/ElementInterface.php => Forms/Element/ElementInterface.zep.php} (94%) rename src/{Phalcon/Forms/Element/Email.php => Forms/Element/Email.zep.php} (87%) rename src/{Phalcon/Forms/Element/File.php => Forms/Element/File.zep.php} (86%) rename src/{Phalcon/Forms/Element/Hidden.php => Forms/Element/Hidden.zep.php} (87%) rename src/{Phalcon/Forms/Element/Numeric.php => Forms/Element/Numeric.zep.php} (89%) rename src/{Phalcon/Forms/Element/Password.php => Forms/Element/Password.zep.php} (90%) rename src/{Phalcon/Forms/Element/Radio.php => Forms/Element/Radio.zep.php} (89%) rename src/{Phalcon/Forms/Element/Select.php => Forms/Element/Select.zep.php} (84%) rename src/{Phalcon/Forms/Element/Submit.php => Forms/Element/Submit.zep.php} (89%) rename src/{Phalcon/Forms/Element/Text.php => Forms/Element/Text.zep.php} (89%) rename src/{Phalcon/Forms/Element/TextArea.php => Forms/Element/TextArea.zep.php} (88%) rename src/{Phalcon/Forms/Exception.php => Forms/Exception.zep.php} (100%) rename src/{Phalcon/Forms/Form.php => Forms/Form.zep.php} (86%) rename src/{Phalcon/Forms/Manager.php => Forms/Manager.zep.php} (94%) rename src/{Phalcon/Helper/Arr.php => Helper/Arr.zep.php} (99%) rename src/{Phalcon/Helper/Base64.php => Helper/Base64.zep.php} (99%) rename src/{Phalcon/Helper/Exception.php => Helper/Exception.zep.php} (100%) rename src/{Phalcon/Helper/Fs.php => Helper/Fs.zep.php} (99%) rename src/{Phalcon/Helper/Json.php => Helper/Json.zep.php} (98%) rename src/{Phalcon/Helper/Number.php => Helper/Number.zep.php} (99%) rename src/{Phalcon/Helper/Str.php => Helper/Str.zep.php} (99%) rename src/{Phalcon/Html/Attributes.php => Html/Attributes.zep.php} (91%) rename src/{Phalcon/Html/Attributes/AttributesInterface.php => Html/Attributes/AttributesInterface.zep.php} (99%) rename src/{Phalcon/Html/Attributes/RenderInterface.php => Html/Attributes/RenderInterface.zep.php} (99%) rename src/{Phalcon/Html/Breadcrumbs.php => Html/Breadcrumbs.zep.php} (94%) rename src/{Phalcon/Html/Exception.php => Html/Exception.zep.php} (100%) rename src/{Phalcon/Html/Helper/AbstractHelper.php => Html/Helper/AbstractHelper.zep.php} (95%) rename src/{Phalcon/Html/Helper/AbstractList.php => Html/Helper/AbstractList.zep.php} (89%) rename src/{Phalcon/Html/Helper/AbstractSeries.php => Html/Helper/AbstractSeries.zep.php} (93%) rename src/{Phalcon/Html/Helper/Anchor.php => Html/Helper/Anchor.zep.php} (94%) rename src/{Phalcon/Html/Helper/Base.php => Html/Helper/Base.zep.php} (96%) rename src/{Phalcon/Html/Helper/Body.php => Html/Helper/Body.zep.php} (88%) rename src/{Phalcon/Html/Helper/Button.php => Html/Helper/Button.zep.php} (85%) rename src/{Phalcon/Html/Helper/Close.php => Html/Helper/Close.zep.php} (99%) rename src/{Phalcon/Html/Helper/Element.php => Html/Helper/Element.zep.php} (93%) rename src/{Phalcon/Html/Helper/Form.php => Html/Helper/Form.zep.php} (88%) rename src/{Phalcon/Html/Helper/Img.php => Html/Helper/Img.zep.php} (87%) rename src/{Phalcon/Html/Helper/Input/AbstractInput.php => Html/Helper/Input/AbstractInput.zep.php} (93%) rename src/{Phalcon/Html/Helper/Input/Checkbox.php => Html/Helper/Input/Checkbox.zep.php} (88%) rename src/{Phalcon/Html/Helper/Input/Color.php => Html/Helper/Input/Color.zep.php} (99%) rename src/{Phalcon/Html/Helper/Input/Date.php => Html/Helper/Input/Date.zep.php} (99%) rename src/{Phalcon/Html/Helper/Input/DateTime.php => Html/Helper/Input/DateTime.zep.php} (99%) rename src/{Phalcon/Html/Helper/Input/DateTimeLocal.php => Html/Helper/Input/DateTimeLocal.zep.php} (99%) rename src/{Phalcon/Html/Helper/Input/Email.php => Html/Helper/Input/Email.zep.php} (99%) rename src/{Phalcon/Html/Helper/Input/File.php => Html/Helper/Input/File.zep.php} (99%) rename src/{Phalcon/Html/Helper/Input/Hidden.php => Html/Helper/Input/Hidden.zep.php} (99%) rename src/{Phalcon/Html/Helper/Input/Image.php => Html/Helper/Input/Image.zep.php} (99%) rename src/{Phalcon/Html/Helper/Input/Input.php => Html/Helper/Input/Input.zep.php} (99%) rename src/{Phalcon/Html/Helper/Input/Month.php => Html/Helper/Input/Month.zep.php} (99%) rename src/{Phalcon/Html/Helper/Input/Numeric.php => Html/Helper/Input/Numeric.zep.php} (99%) rename src/{Phalcon/Html/Helper/Input/Password.php => Html/Helper/Input/Password.zep.php} (99%) rename src/{Phalcon/Html/Helper/Input/Radio.php => Html/Helper/Input/Radio.zep.php} (99%) rename src/{Phalcon/Html/Helper/Input/Range.php => Html/Helper/Input/Range.zep.php} (99%) rename src/{Phalcon/Html/Helper/Input/Search.php => Html/Helper/Input/Search.zep.php} (99%) rename src/{Phalcon/Html/Helper/Input/Select.php => Html/Helper/Input/Select.zep.php} (94%) rename src/{Phalcon/Html/Helper/Input/Submit.php => Html/Helper/Input/Submit.zep.php} (99%) rename src/{Phalcon/Html/Helper/Input/Tel.php => Html/Helper/Input/Tel.zep.php} (99%) rename src/{Phalcon/Html/Helper/Input/Text.php => Html/Helper/Input/Text.zep.php} (100%) rename src/{Phalcon/Html/Helper/Input/Textarea.php => Html/Helper/Input/Textarea.zep.php} (96%) rename src/{Phalcon/Html/Helper/Input/Time.php => Html/Helper/Input/Time.zep.php} (99%) rename src/{Phalcon/Html/Helper/Input/Url.php => Html/Helper/Input/Url.zep.php} (99%) rename src/{Phalcon/Html/Helper/Input/Week.php => Html/Helper/Input/Week.zep.php} (99%) rename src/{Phalcon/Html/Helper/Label.php => Html/Helper/Label.zep.php} (88%) rename src/{Phalcon/Html/Helper/Link.php => Html/Helper/Link.zep.php} (99%) rename src/{Phalcon/Html/Helper/Meta.php => Html/Helper/Meta.zep.php} (96%) rename src/{Phalcon/Html/Helper/Ol.php => Html/Helper/Ol.zep.php} (83%) rename src/{Phalcon/Html/Helper/Script.php => Html/Helper/Script.zep.php} (84%) rename src/{Phalcon/Html/Helper/Style.php => Html/Helper/Style.zep.php} (93%) rename src/{Phalcon/Html/Helper/Title.php => Html/Helper/Title.zep.php} (96%) rename src/{Phalcon/Html/Helper/Ul.php => Html/Helper/Ul.zep.php} (99%) rename src/{Phalcon/Html/Link/EvolvableLink.php => Html/Link/EvolvableLink.zep.php} (99%) rename src/{Phalcon/Html/Link/EvolvableLinkProvider.php => Html/Link/EvolvableLinkProvider.zep.php} (99%) rename src/{Phalcon/Html/Link/Link.php => Html/Link/Link.zep.php} (98%) rename src/{Phalcon/Html/Link/LinkProvider.php => Html/Link/LinkProvider.zep.php} (89%) rename src/{Phalcon/Html/Link/Serializer/Header.php => Html/Link/Serializer/Header.zep.php} (99%) rename src/{Phalcon/Html/Link/Serializer/SerializerInterface.php => Html/Link/Serializer/SerializerInterface.zep.php} (99%) rename src/{Phalcon/Html/TagFactory.php => Html/TagFactory.zep.php} (91%) rename src/{Phalcon/Http/Cookie.php => Http/Cookie.zep.php} (91%) rename src/{Phalcon/Http/Cookie/CookieInterface.php => Http/Cookie/CookieInterface.zep.php} (99%) rename src/{Phalcon/Http/Cookie/Exception.php => Http/Cookie/Exception.zep.php} (100%) rename src/{Phalcon/Http/Message/AbstractCommon.php => Http/Message/AbstractCommon.zep.php} (88%) rename src/{Phalcon/Http/Message/AbstractMessage.php => Http/Message/AbstractMessage.zep.php} (97%) rename src/{Phalcon/Http/Message/AbstractRequest.php => Http/Message/AbstractRequest.zep.php} (99%) rename src/{Phalcon/Http/Message/Exception/InvalidArgumentException.php => Http/Message/Exception/InvalidArgumentException.zep.php} (97%) rename src/{Phalcon/Http/Message/Request.php => Http/Message/Request.zep.php} (94%) rename src/{Phalcon/Http/Message/RequestFactory.php => Http/Message/RequestFactory.zep.php} (99%) rename src/{Phalcon/Http/Message/Response.php => Http/Message/Response.zep.php} (95%) rename src/{Phalcon/Http/Message/ResponseFactory.php => Http/Message/ResponseFactory.zep.php} (99%) rename src/{Phalcon/Http/Message/ServerRequest.php => Http/Message/ServerRequest.zep.php} (96%) rename src/{Phalcon/Http/Message/ServerRequestFactory.php => Http/Message/ServerRequestFactory.zep.php} (99%) rename src/{Phalcon/Http/Message/Stream.php => Http/Message/Stream.zep.php} (92%) rename src/{Phalcon/Http/Message/Stream/Input.php => Http/Message/Stream/Input.zep.php} (94%) rename src/{Phalcon/Http/Message/Stream/Memory.php => Http/Message/Stream/Memory.zep.php} (99%) rename src/{Phalcon/Http/Message/Stream/Temp.php => Http/Message/Stream/Temp.zep.php} (99%) rename src/{Phalcon/Http/Message/StreamFactory.php => Http/Message/StreamFactory.zep.php} (99%) rename src/{Phalcon/Http/Message/UploadedFile.php => Http/Message/UploadedFile.zep.php} (97%) rename src/{Phalcon/Http/Message/UploadedFileFactory.php => Http/Message/UploadedFileFactory.zep.php} (99%) rename src/{Phalcon/Http/Message/Uri.php => Http/Message/Uri.zep.php} (96%) rename src/{Phalcon/Http/Message/UriFactory.php => Http/Message/UriFactory.zep.php} (99%) rename src/{Phalcon/Http/Request.php => Http/Request.zep.php} (98%) rename src/{Phalcon/Http/Request/Exception.php => Http/Request/Exception.zep.php} (100%) rename src/{Phalcon/Http/Request/File.php => Http/Request/File.zep.php} (90%) rename src/{Phalcon/Http/Request/FileInterface.php => Http/Request/FileInterface.zep.php} (99%) rename src/{Phalcon/Http/RequestInterface.php => Http/RequestInterface.zep.php} (99%) rename src/{Phalcon/Http/Response.php => Http/Response.zep.php} (93%) rename src/{Phalcon/Http/Response/Cookies.php => Http/Response/Cookies.zep.php} (91%) rename src/{Phalcon/Http/Response/CookiesInterface.php => Http/Response/CookiesInterface.zep.php} (96%) rename src/{Phalcon/Http/Response/Exception.php => Http/Response/Exception.zep.php} (100%) rename src/{Phalcon/Http/Response/Headers.php => Http/Response/Headers.zep.php} (86%) rename src/{Phalcon/Http/Response/HeadersInterface.php => Http/Response/HeadersInterface.zep.php} (99%) rename src/{Phalcon/Http/ResponseInterface.php => Http/ResponseInterface.zep.php} (99%) rename src/{Phalcon/Http/Server/AbstractMiddleware.php => Http/Server/AbstractMiddleware.zep.php} (99%) rename src/{Phalcon/Http/Server/AbstractRequestHandler.php => Http/Server/AbstractRequestHandler.zep.php} (99%) rename src/{Phalcon/Image/Adapter/AbstractAdapter.php => Image/Adapter/AbstractAdapter.zep.php} (93%) rename src/{Phalcon/Image/Adapter/AdapterInterface.php => Image/Adapter/AdapterInterface.zep.php} (99%) rename src/{Phalcon/Image/Adapter/Gd.php => Image/Adapter/Gd.zep.php} (96%) rename src/{Phalcon/Image/Adapter/Imagick.php => Image/Adapter/Imagick.zep.php} (81%) rename src/{Phalcon/Image/Enum.php => Image/Enum.zep.php} (99%) rename src/{Phalcon/Image/Exception.php => Image/Exception.zep.php} (100%) rename src/{Phalcon/Image/ImageFactory.php => Image/ImageFactory.zep.php} (88%) rename src/{Phalcon/Kernel.php => Kernel.zep.php} (99%) rename src/{Phalcon/Loader.php => Loader.zep.php} (92%) rename src/{Phalcon/Loader/Exception.php => Loader/Exception.zep.php} (100%) rename src/{Phalcon/Logger.php => Logger.zep.php} (87%) rename src/{Phalcon/Logger/Adapter/AbstractAdapter.php => Logger/Adapter/AbstractAdapter.zep.php} (89%) rename src/{Phalcon/Logger/Adapter/AdapterInterface.php => Logger/Adapter/AdapterInterface.zep.php} (95%) rename src/{Phalcon/Logger/Adapter/Noop.php => Logger/Adapter/Noop.zep.php} (93%) rename src/{Phalcon/Logger/Adapter/Stream.php => Logger/Adapter/Stream.zep.php} (93%) rename src/{Phalcon/Logger/Adapter/Syslog.php => Logger/Adapter/Syslog.zep.php} (94%) rename src/{Phalcon/Logger/AdapterFactory.php => Logger/AdapterFactory.zep.php} (87%) rename src/{Phalcon/Logger/Exception.php => Logger/Exception.zep.php} (100%) rename src/{Phalcon/Logger/Formatter/AbstractFormatter.php => Logger/Formatter/AbstractFormatter.zep.php} (61%) rename src/{Phalcon/Logger/Formatter/FormatterInterface.php => Logger/Formatter/FormatterInterface.zep.php} (95%) rename src/{Phalcon/Logger/Formatter/Json.php => Logger/Formatter/Json.zep.php} (95%) rename src/{Phalcon/Logger/Formatter/Line.php => Logger/Formatter/Line.zep.php} (89%) rename src/{Phalcon/Logger/Item.php => Logger/Item.zep.php} (75%) rename src/{Phalcon/Logger/LoggerFactory.php => Logger/LoggerFactory.zep.php} (98%) rename src/{Phalcon/Messages/Exception.php => Messages/Exception.zep.php} (100%) rename src/{Phalcon/Messages/Message.php => Messages/Message.zep.php} (96%) rename src/{Phalcon/Messages/MessageInterface.php => Messages/MessageInterface.zep.php} (99%) rename src/{Phalcon/Messages/Messages.php => Messages/Messages.zep.php} (90%) rename src/{Phalcon/Mvc/Application.php => Mvc/Application.zep.php} (87%) rename src/{Phalcon/Mvc/Application/Exception.php => Mvc/Application/Exception.zep.php} (100%) rename src/{Phalcon/Mvc/Controller.php => Mvc/Controller.zep.php} (99%) rename src/{Phalcon/Mvc/Controller/BindModelInterface.php => Mvc/Controller/BindModelInterface.zep.php} (99%) rename src/{Phalcon/Mvc/ControllerInterface.php => Mvc/ControllerInterface.zep.php} (100%) rename src/{Phalcon/Mvc/Dispatcher.php => Mvc/Dispatcher.zep.php} (95%) rename src/{Phalcon/Mvc/Dispatcher/Exception.php => Mvc/Dispatcher/Exception.zep.php} (100%) rename src/{Phalcon/Mvc/DispatcherInterface.php => Mvc/DispatcherInterface.zep.php} (99%) rename src/{Phalcon/Mvc/EntityInterface.php => Mvc/EntityInterface.zep.php} (99%) rename src/{Phalcon/Mvc/Micro.php => Mvc/Micro.zep.php} (84%) rename src/{Phalcon/Mvc/Micro/Collection.php => Mvc/Micro/Collection.zep.php} (83%) rename src/{Phalcon/Mvc/Micro/CollectionInterface.php => Mvc/Micro/CollectionInterface.zep.php} (99%) rename src/{Phalcon/Mvc/Micro/Exception.php => Mvc/Micro/Exception.zep.php} (100%) rename src/{Phalcon/Mvc/Micro/LazyLoader.php => Mvc/Micro/LazyLoader.zep.php} (78%) rename src/{Phalcon/Mvc/Micro/MiddlewareInterface.php => Mvc/Micro/MiddlewareInterface.zep.php} (95%) rename src/{Phalcon/Mvc/Model.php => Mvc/Model.zep.php} (88%) rename src/{Phalcon/Mvc/Model/Behavior.php => Mvc/Model/Behavior.zep.php} (92%) rename src/{Phalcon/Mvc/Model/Behavior/SoftDelete.php => Mvc/Model/Behavior/SoftDelete.zep.php} (91%) rename src/{Phalcon/Mvc/Model/Behavior/Timestampable.php => Mvc/Model/Behavior/Timestampable.zep.php} (91%) rename src/{Phalcon/Mvc/Model/BehaviorInterface.php => Mvc/Model/BehaviorInterface.zep.php} (91%) rename src/{Phalcon/Mvc/Model/Binder.php => Mvc/Model/Binder.zep.php} (86%) rename src/{Phalcon/Mvc/Model/Binder/BindableInterface.php => Mvc/Model/Binder/BindableInterface.zep.php} (99%) rename src/{Phalcon/Mvc/Model/BinderInterface.php => Mvc/Model/BinderInterface.zep.php} (99%) rename src/{Phalcon/Mvc/Model/Criteria.php => Mvc/Model/Criteria.zep.php} (96%) rename src/{Phalcon/Mvc/Model/CriteriaInterface.php => Mvc/Model/CriteriaInterface.zep.php} (99%) rename src/{Phalcon/Mvc/Model/Exception.php => Mvc/Model/Exception.zep.php} (100%) rename src/{Phalcon/Mvc/Model/Manager.php => Mvc/Model/Manager.zep.php} (88%) rename src/{Phalcon/Mvc/Model/ManagerInterface.php => Mvc/Model/ManagerInterface.zep.php} (96%) rename src/{Phalcon/Mvc/Model/MetaData.php => Mvc/Model/MetaData.zep.php} (93%) rename src/{Phalcon/Mvc/Model/MetaData/Apcu.php => Mvc/Model/MetaData/Apcu.zep.php} (92%) rename src/{Phalcon/Mvc/Model/MetaData/Libmemcached.php => Mvc/Model/MetaData/Libmemcached.zep.php} (85%) rename src/{Phalcon/Mvc/Model/MetaData/Memory.php => Mvc/Model/MetaData/Memory.zep.php} (91%) rename src/{Phalcon/Mvc/Model/MetaData/Redis.php => Mvc/Model/MetaData/Redis.zep.php} (90%) rename src/{Phalcon/Mvc/Model/MetaData/Strategy/Annotations.php => Mvc/Model/MetaData/Strategy/Annotations.zep.php} (89%) rename src/{Phalcon/Mvc/Model/MetaData/Strategy/Introspection.php => Mvc/Model/MetaData/Strategy/Introspection.zep.php} (86%) rename src/{Phalcon/Mvc/Model/MetaData/Strategy/StrategyInterface.php => Mvc/Model/MetaData/Strategy/StrategyInterface.zep.php} (95%) rename src/{Phalcon/Mvc/Model/MetaData/Stream.php => Mvc/Model/MetaData/Stream.zep.php} (83%) rename src/{Phalcon/Mvc/Model/MetaDataInterface.php => Mvc/Model/MetaDataInterface.zep.php} (98%) rename src/{Phalcon/Mvc/Model/Query.php => Mvc/Model/Query.zep.php} (75%) rename src/{Phalcon/Mvc/Model/Query/Builder.php => Mvc/Model/Query/Builder.zep.php} (91%) rename src/{Phalcon/Mvc/Model/Query/BuilderInterface.php => Mvc/Model/Query/BuilderInterface.zep.php} (95%) rename src/{Phalcon/Mvc/Model/Query/Lang.php => Mvc/Model/Query/Lang.zep.php} (99%) rename src/{Phalcon/Mvc/Model/Query/Status.php => Mvc/Model/Query/Status.zep.php} (94%) rename src/{Phalcon/Mvc/Model/Query/StatusInterface.php => Mvc/Model/Query/StatusInterface.zep.php} (95%) rename src/{Phalcon/Mvc/Model/QueryInterface.php => Mvc/Model/QueryInterface.zep.php} (93%) rename src/{Phalcon/Mvc/Model/Relation.php => Mvc/Model/Relation.zep.php} (82%) rename src/{Phalcon/Mvc/Model/RelationInterface.php => Mvc/Model/RelationInterface.zep.php} (99%) rename src/{Phalcon/Mvc/Model/ResultInterface.php => Mvc/Model/ResultInterface.zep.php} (89%) rename src/{Phalcon/Mvc/Model/Resultset.php => Mvc/Model/Resultset.zep.php} (84%) rename src/{Phalcon/Mvc/Model/Resultset/Complex.php => Mvc/Model/Resultset/Complex.zep.php} (72%) rename src/{Phalcon/Mvc/Model/Resultset/Simple.php => Mvc/Model/Resultset/Simple.zep.php} (70%) rename src/{Phalcon/Mvc/Model/ResultsetInterface.php => Mvc/Model/ResultsetInterface.zep.php} (93%) rename src/{Phalcon/Mvc/Model/Row.php => Mvc/Model/Row.zep.php} (85%) rename src/{Phalcon/Mvc/Model/Transaction.php => Mvc/Model/Transaction.zep.php} (80%) rename src/{Phalcon/Mvc/Model/Transaction/Exception.php => Mvc/Model/Transaction/Exception.zep.php} (100%) rename src/{Phalcon/Mvc/Model/Transaction/Failed.php => Mvc/Model/Transaction/Failed.zep.php} (86%) rename src/{Phalcon/Mvc/Model/Transaction/Manager.php => Mvc/Model/Transaction/Manager.zep.php} (84%) rename src/{Phalcon/Mvc/Model/Transaction/ManagerInterface.php => Mvc/Model/Transaction/ManagerInterface.zep.php} (92%) rename src/{Phalcon/Mvc/Model/TransactionInterface.php => Mvc/Model/TransactionInterface.zep.php} (89%) rename src/{Phalcon/Mvc/Model/ValidationFailed.php => Mvc/Model/ValidationFailed.zep.php} (79%) rename src/{Phalcon/Mvc/ModelInterface.php => Mvc/ModelInterface.zep.php} (87%) rename src/{Phalcon/Mvc/ModuleDefinitionInterface.php => Mvc/ModuleDefinitionInterface.zep.php} (96%) rename src/{Phalcon/Mvc/Router.php => Mvc/Router.zep.php} (69%) rename src/{Phalcon/Mvc/Router/Annotations.php => Mvc/Router/Annotations.zep.php} (89%) rename src/{Phalcon/Mvc/Router/Exception.php => Mvc/Router/Exception.zep.php} (100%) rename src/{Phalcon/Mvc/Router/Group.php => Mvc/Router/Group.zep.php} (90%) rename src/{Phalcon/Mvc/Router/GroupInterface.php => Mvc/Router/GroupInterface.zep.php} (91%) rename src/{Phalcon/Mvc/Router/Route.php => Mvc/Router/Route.zep.php} (86%) rename src/{Phalcon/Mvc/Router/RouteInterface.php => Mvc/Router/RouteInterface.zep.php} (96%) rename src/{Phalcon/Mvc/RouterInterface.php => Mvc/RouterInterface.zep.php} (88%) rename src/{Phalcon/Mvc/View.php => Mvc/View.zep.php} (88%) rename src/{Phalcon/Mvc/View/Engine/AbstractEngine.php => Mvc/View/Engine/AbstractEngine.zep.php} (87%) rename src/{Phalcon/Mvc/View/Engine/EngineInterface.php => Mvc/View/Engine/EngineInterface.zep.php} (94%) rename src/{Phalcon/Mvc/View/Engine/Php.php => Mvc/View/Engine/Php.zep.php} (99%) rename src/{Phalcon/Mvc/View/Engine/Volt.php => Mvc/View/Engine/Volt.zep.php} (75%) rename src/{Phalcon/Mvc/View/Engine/Volt/Compiler.php => Mvc/View/Engine/Volt/Compiler.zep.php} (78%) rename src/{Phalcon/Mvc/View/Engine/Volt/Exception.php => Mvc/View/Engine/Volt/Exception.zep.php} (77%) rename src/{Phalcon/Mvc/View/Exception.php => Mvc/View/Exception.zep.php} (100%) rename src/{Phalcon/Mvc/View/Simple.php => Mvc/View/Simple.zep.php} (84%) rename src/{Phalcon/Mvc/ViewBaseInterface.php => Mvc/ViewBaseInterface.zep.php} (97%) rename src/{Phalcon/Mvc/ViewInterface.php => Mvc/ViewInterface.zep.php} (98%) rename src/{Phalcon/Paginator/Adapter/AbstractAdapter.php => Paginator/Adapter/AbstractAdapter.zep.php} (93%) rename src/{Phalcon/Paginator/Adapter/AdapterInterface.php => Paginator/Adapter/AdapterInterface.zep.php} (99%) rename src/{Phalcon/Paginator/Adapter/Model.php => Paginator/Adapter/Model.zep.php} (99%) rename src/{Phalcon/Paginator/Adapter/NativeArray.php => Paginator/Adapter/NativeArray.zep.php} (99%) rename src/{Phalcon/Paginator/Adapter/QueryBuilder.php => Paginator/Adapter/QueryBuilder.zep.php} (97%) rename src/{Phalcon/Paginator/Exception.php => Paginator/Exception.zep.php} (100%) rename src/{Phalcon/Paginator/PaginatorFactory.php => Paginator/PaginatorFactory.zep.php} (85%) rename src/{Phalcon/Paginator/Repository.php => Paginator/Repository.zep.php} (97%) rename src/{Phalcon/Paginator/RepositoryInterface.php => Paginator/RepositoryInterface.zep.php} (99%) delete mode 100644 src/Phalcon/DataMapper/Pdo/Profiler/MemoryLogger.php rename src/{Phalcon/Registry.php => Registry.zep.php} (91%) rename src/{Phalcon/Security.php => Security.zep.php} (96%) rename src/{Phalcon/Security/Exception.php => Security/Exception.zep.php} (100%) rename src/{Phalcon/Security/JWT/Builder.php => Security/JWT/Builder.zep.php} (96%) rename src/{Phalcon/Security/JWT/Exceptions/UnsupportedAlgorithmException.php => Security/JWT/Exceptions/UnsupportedAlgorithmException.zep.php} (97%) rename src/{Phalcon/Security/JWT/Exceptions/ValidatorException.php => Security/JWT/Exceptions/ValidatorException.zep.php} (97%) rename src/{Phalcon/Security/JWT/Signer/AbstractSigner.php => Security/JWT/Signer/AbstractSigner.zep.php} (99%) rename src/{Phalcon/Security/JWT/Signer/Hmac.php => Security/JWT/Signer/Hmac.zep.php} (99%) rename src/{Phalcon/Security/JWT/Signer/None.php => Security/JWT/Signer/None.zep.php} (99%) rename src/{Phalcon/Security/JWT/Signer/SignerInterface.php => Security/JWT/Signer/SignerInterface.zep.php} (99%) rename src/{Phalcon/Security/JWT/Token/AbstractItem.php => Security/JWT/Token/AbstractItem.zep.php} (94%) rename src/{Phalcon/Security/JWT/Token/Enum.php => Security/JWT/Token/Enum.zep.php} (99%) rename src/{Phalcon/Security/JWT/Token/Item.php => Security/JWT/Token/Item.zep.php} (99%) rename src/{Phalcon/Security/JWT/Token/Parser.php => Security/JWT/Token/Parser.zep.php} (92%) rename src/{Phalcon/Security/JWT/Token/Signature.php => Security/JWT/Token/Signature.zep.php} (99%) rename src/{Phalcon/Security/JWT/Token/Token.php => Security/JWT/Token/Token.zep.php} (99%) rename src/{Phalcon/Security/JWT/Validator.php => Security/JWT/Validator.zep.php} (98%) rename src/{Phalcon/Security/Random.php => Security/Random.zep.php} (99%) rename src/{Phalcon/Session/Adapter/AbstractAdapter.php => Session/Adapter/AbstractAdapter.zep.php} (98%) rename src/{Phalcon/Session/Adapter/Libmemcached.php => Session/Adapter/Libmemcached.zep.php} (96%) rename src/{Phalcon/Session/Adapter/Noop.php => Session/Adapter/Noop.zep.php} (93%) rename src/{Phalcon/Session/Adapter/Redis.php => Session/Adapter/Redis.zep.php} (95%) rename src/{Phalcon/Session/Adapter/Stream.php => Session/Adapter/Stream.zep.php} (96%) rename src/{Phalcon/Session/Bag.php => Session/Bag.zep.php} (77%) rename src/{Phalcon/Session/Exception.php => Session/Exception.zep.php} (100%) rename src/{Phalcon/Session/Manager.php => Session/Manager.zep.php} (92%) rename src/{Phalcon/Session/ManagerInterface.php => Session/ManagerInterface.zep.php} (93%) rename src/{Phalcon/Storage/Adapter/AbstractAdapter.php => Storage/Adapter/AbstractAdapter.zep.php} (93%) rename src/{Phalcon/Storage/Adapter/AdapterInterface.php => Storage/Adapter/AdapterInterface.zep.php} (93%) rename src/{Phalcon/Storage/Adapter/Apcu.php => Storage/Adapter/Apcu.zep.php} (85%) rename src/{Phalcon/Storage/Adapter/Libmemcached.php => Storage/Adapter/Libmemcached.zep.php} (95%) rename src/{Phalcon/Storage/Adapter/Memory.php => Storage/Adapter/Memory.zep.php} (96%) rename src/{Phalcon/Storage/Adapter/Redis.php => Storage/Adapter/Redis.zep.php} (92%) rename src/{Phalcon/Storage/Adapter/Stream.php => Storage/Adapter/Stream.zep.php} (95%) rename src/{Phalcon/Storage/AdapterFactory.php => Storage/AdapterFactory.zep.php} (91%) rename src/{Phalcon/Storage/Exception.php => Storage/Exception.zep.php} (100%) rename src/{Phalcon/Storage/Serializer/AbstractSerializer.php => Storage/Serializer/AbstractSerializer.zep.php} (93%) rename src/{Phalcon/Storage/Serializer/Base64.php => Storage/Serializer/Base64.zep.php} (91%) rename src/{Phalcon/Storage/Serializer/Igbinary.php => Storage/Serializer/Igbinary.zep.php} (94%) rename src/{Phalcon/Storage/Serializer/Json.php => Storage/Serializer/Json.zep.php} (95%) rename src/{Phalcon/Storage/Serializer/Msgpack.php => Storage/Serializer/Msgpack.zep.php} (94%) rename src/{Phalcon/Storage/Serializer/None.php => Storage/Serializer/None.zep.php} (94%) rename src/{Phalcon/Storage/Serializer/Php.php => Storage/Serializer/Php.zep.php} (94%) rename src/{Phalcon/Storage/Serializer/SerializerInterface.php => Storage/Serializer/SerializerInterface.zep.php} (94%) rename src/{Phalcon/Storage/SerializerFactory.php => Storage/SerializerFactory.zep.php} (89%) rename src/{Phalcon/Debug.php => Support/Debug.zep.php} (91%) rename src/{Phalcon/Debug/Dump.php => Support/Debug/Dump.zep.php} (90%) rename src/{Phalcon/Debug/Exception.php => Support/Debug/Exception.zep.php} (91%) create mode 100644 src/Support/Exception.zep.php create mode 100644 src/Support/Helper/Str/Interpolate.zep.php create mode 100644 src/Support/HelperFactory.zep.php rename src/{Phalcon/Version.php => Support/Version.zep.php} (55%) rename src/{Phalcon/Tag.php => Tag.zep.php} (91%) rename src/{Phalcon/Tag/Exception.php => Tag/Exception.zep.php} (100%) rename src/{Phalcon/Tag/Select.php => Tag/Select.zep.php} (93%) rename src/{Phalcon/Text.php => Text.zep.php} (99%) rename src/{Phalcon/Translate/Adapter/AbstractAdapter.php => Translate/Adapter/AbstractAdapter.zep.php} (91%) rename src/{Phalcon/Translate/Adapter/AdapterInterface.php => Translate/Adapter/AdapterInterface.zep.php} (96%) rename src/{Phalcon/Translate/Adapter/Csv.php => Translate/Adapter/Csv.zep.php} (84%) rename src/{Phalcon/Translate/Adapter/Gettext.php => Translate/Adapter/Gettext.zep.php} (88%) rename src/{Phalcon/Translate/Adapter/NativeArray.php => Translate/Adapter/NativeArray.zep.php} (91%) rename src/{Phalcon/Translate/Exception.php => Translate/Exception.zep.php} (100%) rename src/{Phalcon/Translate/Interpolator/AssociativeArray.php => Translate/Interpolator/AssociativeArray.zep.php} (91%) rename src/{Phalcon/Translate/Interpolator/IndexedArray.php => Translate/Interpolator/IndexedArray.zep.php} (95%) rename src/{Phalcon/Translate/Interpolator/InterpolatorInterface.php => Translate/Interpolator/InterpolatorInterface.zep.php} (94%) rename src/{Phalcon/Translate/InterpolatorFactory.php => Translate/InterpolatorFactory.zep.php} (89%) rename src/{Phalcon/Translate/TranslateFactory.php => Translate/TranslateFactory.zep.php} (77%) rename src/{Phalcon/Url.php => Url.zep.php} (99%) rename src/{Phalcon/Url/Exception.php => Url/Exception.zep.php} (100%) rename src/{Phalcon/Url/UrlInterface.php => Url/UrlInterface.zep.php} (99%) rename src/{Phalcon/Validation.php => Validation.zep.php} (77%) rename src/{Phalcon/Validation/AbstractCombinedFieldsValidator.php => Validation/AbstractCombinedFieldsValidator.zep.php} (100%) rename src/{Phalcon/Validation/AbstractValidator.php => Validation/AbstractValidator.zep.php} (90%) rename src/{Phalcon/Validation/AbstractValidatorComposite.php => Validation/AbstractValidatorComposite.zep.php} (93%) rename src/{Phalcon/Validation/Exception.php => Validation/Exception.zep.php} (100%) rename src/{Phalcon/Validation/ValidationInterface.php => Validation/ValidationInterface.zep.php} (90%) rename src/{Phalcon/Validation/Validator/Alnum.php => Validation/Validator/Alnum.zep.php} (95%) rename src/{Phalcon/Validation/Validator/Alpha.php => Validation/Validator/Alpha.zep.php} (93%) rename src/{Phalcon/Validation/Validator/Between.php => Validation/Validator/Between.zep.php} (94%) rename src/{Phalcon/Validation/Validator/Callback.php => Validation/Validator/Callback.zep.php} (93%) rename src/{Phalcon/Validation/Validator/Confirmation.php => Validation/Validator/Confirmation.zep.php} (93%) rename src/{Phalcon/Validation/Validator/CreditCard.php => Validation/Validator/CreditCard.zep.php} (94%) rename src/{Phalcon/Validation/Validator/Date.php => Validation/Validator/Date.zep.php} (93%) rename src/{Phalcon/Validation/Validator/Digit.php => Validation/Validator/Digit.zep.php} (93%) rename src/{Phalcon/Validation/Validator/Email.php => Validation/Validator/Email.zep.php} (93%) rename src/{Phalcon/Validation/Validator/Exception.php => Validation/Validator/Exception.zep.php} (100%) rename src/{Phalcon/Validation/Validator/ExclusionIn.php => Validation/Validator/ExclusionIn.zep.php} (93%) rename src/{Phalcon/Validation/Validator/File.php => Validation/Validator/File.zep.php} (84%) rename src/{Phalcon/Validation/Validator/File/AbstractFile.php => Validation/Validator/File/AbstractFile.zep.php} (78%) rename src/{Phalcon/Validation/Validator/File/MimeType.php => Validation/Validator/File/MimeType.zep.php} (99%) rename src/{Phalcon/Validation/Validator/File/Resolution/Equal.php => Validation/Validator/File/Resolution/Equal.zep.php} (94%) rename src/{Phalcon/Validation/Validator/File/Resolution/Max.php => Validation/Validator/File/Resolution/Max.zep.php} (97%) rename src/{Phalcon/Validation/Validator/File/Resolution/Min.php => Validation/Validator/File/Resolution/Min.zep.php} (97%) rename src/{Phalcon/Validation/Validator/File/Size/Equal.php => Validation/Validator/File/Size/Equal.zep.php} (94%) rename src/{Phalcon/Validation/Validator/File/Size/Max.php => Validation/Validator/File/Size/Max.zep.php} (97%) rename src/{Phalcon/Validation/Validator/File/Size/Min.php => Validation/Validator/File/Size/Min.zep.php} (97%) rename src/{Phalcon/Validation/Validator/Identical.php => Validation/Validator/Identical.zep.php} (94%) rename src/{Phalcon/Validation/Validator/InclusionIn.php => Validation/Validator/InclusionIn.zep.php} (92%) rename src/{Phalcon/Validation/Validator/Ip.php => Validation/Validator/Ip.zep.php} (96%) rename src/{Phalcon/Validation/Validator/Numericality.php => Validation/Validator/Numericality.zep.php} (96%) rename src/{Phalcon/Validation/Validator/PresenceOf.php => Validation/Validator/PresenceOf.zep.php} (96%) rename src/{Phalcon/Validation/Validator/Regex.php => Validation/Validator/Regex.zep.php} (97%) rename src/{Phalcon/Validation/Validator/StringLength.php => Validation/Validator/StringLength.zep.php} (98%) rename src/{Phalcon/Validation/Validator/StringLength/Max.php => Validation/Validator/StringLength/Max.zep.php} (97%) rename src/{Phalcon/Validation/Validator/StringLength/Min.php => Validation/Validator/StringLength/Min.zep.php} (97%) rename src/{Phalcon/Validation/Validator/Uniqueness.php => Validation/Validator/Uniqueness.zep.php} (97%) rename src/{Phalcon/Validation/Validator/Url.php => Validation/Validator/Url.zep.php} (96%) rename src/{Phalcon/Validation/ValidatorCompositeInterface.php => Validation/ValidatorCompositeInterface.zep.php} (99%) rename src/{Phalcon/Validation/ValidatorFactory.php => Validation/ValidatorFactory.zep.php} (89%) rename src/{Phalcon/Validation/ValidatorInterface.php => Validation/ValidatorInterface.zep.php} (99%) diff --git a/src/Phalcon/Acl/Adapter/AbstractAdapter.php b/src/Acl/Adapter/AbstractAdapter.zep.php similarity index 91% rename from src/Phalcon/Acl/Adapter/AbstractAdapter.php rename to src/Acl/Adapter/AbstractAdapter.zep.php index cf73bf0b..e097c185 100644 --- a/src/Phalcon/Acl/Adapter/AbstractAdapter.php +++ b/src/Acl/Adapter/AbstractAdapter.zep.php @@ -11,6 +11,7 @@ use Phalcon\Acl\Enum; use Phalcon\Events\ManagerInterface; +use Phalcon\Events\EventsAwareInterface; /** * Adapter for Phalcon\Acl adapters @@ -102,9 +103,9 @@ public function getDefaultAction(): int /** * Returns the internal event manager * - * @return ManagerInterface + * @return ManagerInterface|null */ - public function getEventsManager(): ManagerInterface + public function getEventsManager(): ?ManagerInterface { } @@ -114,7 +115,7 @@ public function getEventsManager(): ManagerInterface * @param int $defaultAccess * @return void */ - public function setDefaultAction(int $defaultAccess) + public function setDefaultAction(int $defaultAccess): void { } @@ -124,7 +125,8 @@ public function setDefaultAction(int $defaultAccess) * @param \Phalcon\Events\ManagerInterface $eventsManager * @return void */ - public function setEventsManager(\Phalcon\Events\ManagerInterface $eventsManager) + public function setEventsManager(\Phalcon\Events\ManagerInterface $eventsManager): void { } + } diff --git a/src/Phalcon/Acl/Adapter/AdapterInterface.php b/src/Acl/Adapter/AdapterInterface.zep.php similarity index 91% rename from src/Phalcon/Acl/Adapter/AdapterInterface.php rename to src/Acl/Adapter/AdapterInterface.zep.php index 93231786..9fcadd6c 100644 --- a/src/Phalcon/Acl/Adapter/AdapterInterface.php +++ b/src/Acl/Adapter/AdapterInterface.zep.php @@ -9,6 +9,9 @@ */ namespace Phalcon\Acl\Adapter; +use Phalcon\Acl\ComponentInterface; +use Phalcon\Acl\RoleInterface; + /** * Interface for Phalcon\Acl adapters */ @@ -19,10 +22,10 @@ interface AdapterInterface * Do a role inherit from another existing role * * @param string $roleName - * @param mixed $roleToInherit + * @param mixed $roleToInherits * @return bool */ - public function addInherit(string $roleName, $roleToInherit): bool; + public function addInherit(string $roleName, $roleToInherits): bool; /** * Adds a role to the ACL list. Second parameter lets to inherit access data @@ -40,11 +43,11 @@ public function addRole($role, $accessInherits = null): bool; * Access names can be a particular action, by example * search, update, delete, etc or a list of them * - * @param mixed $componentObject + * @param mixed $componentValue * @param mixed $accessList * @return bool */ - public function addComponent($componentObject, $accessList): bool; + public function addComponent($componentValue, $accessList): bool; /** * Adds access to components @@ -64,7 +67,7 @@ public function addComponentAccess(string $componentName, $accessList): bool; * @param mixed $func * @return void */ - public function allow(string $roleName, string $componentName, $access, $func = null); + public function allow(string $roleName, string $componentName, $access, $func = null): void; /** * Deny access to a role on a component @@ -75,7 +78,7 @@ public function allow(string $roleName, string $componentName, $access, $func = * @param mixed $func * @return void */ - public function deny(string $roleName, string $componentName, $access, $func = null); + public function deny(string $roleName, string $componentName, $access, $func = null): void; /** * Removes an access from a component @@ -84,7 +87,7 @@ public function deny(string $roleName, string $componentName, $access, $func = n * @param mixed $accessList * @return void */ - public function dropComponentAccess(string $componentName, $accessList); + public function dropComponentAccess(string $componentName, $accessList): void; /** * Returns the access which the list is checking if some role can access it @@ -171,7 +174,7 @@ public function isRole(string $roleName): bool; * @param int $defaultAccess * @return void */ - public function setDefaultAction(int $defaultAccess); + public function setDefaultAction(int $defaultAccess): void; /** * Sets the default access level (Phalcon\Acl\Enum::ALLOW or Phalcon\Acl\Enum::DENY) @@ -181,5 +184,6 @@ public function setDefaultAction(int $defaultAccess); * @param int $defaultAccess * @return void */ - public function setNoArgumentsDefaultAction(int $defaultAccess); + public function setNoArgumentsDefaultAction(int $defaultAccess): void; + } diff --git a/src/Phalcon/Acl/Adapter/Memory.php b/src/Acl/Adapter/Memory.zep.php similarity index 96% rename from src/Phalcon/Acl/Adapter/Memory.php rename to src/Acl/Adapter/Memory.zep.php index c29cd66b..b46c02b3 100644 --- a/src/Phalcon/Acl/Adapter/Memory.php +++ b/src/Acl/Adapter/Memory.zep.php @@ -10,6 +10,15 @@ namespace Phalcon\Acl\Adapter; use Phalcon\Acl\Enum; +use Phalcon\Acl\Role; +use Phalcon\Acl\RoleInterface; +use Phalcon\Acl\Component; +use Phalcon\Acl\Exception; +use Phalcon\Events\Manager as EventsManager; +use Phalcon\Acl\RoleAware; +use Phalcon\Acl\ComponentAware; +use Phalcon\Acl\ComponentInterface; +use ReflectionFunction; /** * Manages ACL lists in memory @@ -307,7 +316,7 @@ public function addRole($role, $accessInherits = null): bool * @param mixed $func * @return void */ - public function allow(string $roleName, string $componentName, $access, $func = null) + public function allow(string $roleName, string $componentName, $access, $func = null): void { } @@ -334,7 +343,7 @@ public function allow(string $roleName, string $componentName, $access, $func = * @param mixed $func * @return void */ - public function deny(string $roleName, string $componentName, $access, $func = null) + public function deny(string $roleName, string $componentName, $access, $func = null): void { } @@ -345,7 +354,7 @@ public function deny(string $roleName, string $componentName, $access, $func = n * @param mixed $accessList * @return void */ - public function dropComponentAccess(string $componentName, $accessList) + public function dropComponentAccess(string $componentName, $accessList): void { } @@ -426,7 +435,7 @@ public function isComponent(string $componentName): bool * @param int $defaultAccess * @return void */ - public function setNoArgumentsDefaultAction(int $defaultAccess) + public function setNoArgumentsDefaultAction(int $defaultAccess): void { } @@ -440,7 +449,7 @@ public function setNoArgumentsDefaultAction(int $defaultAccess) * @param mixed $func * @return void */ - private function allowOrDeny(string $roleName, string $componentName, $access, $action, $func = null) + private function allowOrDeny(string $roleName, string $componentName, $access, $action, $func = null): void { } @@ -455,4 +464,5 @@ private function allowOrDeny(string $roleName, string $componentName, $access, $ private function canAccess(string $roleName, string $componentName, string $access) { } + } diff --git a/src/Phalcon/Acl/Component.php b/src/Acl/Component.zep.php similarity index 99% rename from src/Phalcon/Acl/Component.php rename to src/Acl/Component.zep.php index 3de82caf..66c8319f 100644 --- a/src/Phalcon/Acl/Component.php +++ b/src/Acl/Component.zep.php @@ -65,4 +65,5 @@ public function __toString(): string public function __construct(string $name, string $description = null) { } + } diff --git a/src/Phalcon/Acl/ComponentAware.php b/src/Acl/ComponentAware.zep.php similarity index 99% rename from src/Phalcon/Acl/ComponentAware.php rename to src/Acl/ComponentAware.zep.php index a631e35b..37b68783 100644 --- a/src/Phalcon/Acl/ComponentAware.php +++ b/src/Acl/ComponentAware.zep.php @@ -21,4 +21,5 @@ interface ComponentAware * @return string */ public function getComponentName(): string; + } diff --git a/src/Phalcon/Acl/ComponentInterface.php b/src/Acl/ComponentInterface.zep.php similarity index 99% rename from src/Phalcon/Acl/ComponentInterface.php rename to src/Acl/ComponentInterface.zep.php index 3cc7b050..92284e37 100644 --- a/src/Phalcon/Acl/ComponentInterface.php +++ b/src/Acl/ComponentInterface.zep.php @@ -35,4 +35,5 @@ public function getName(): string; * @return string */ public function __toString(): string; + } diff --git a/src/Phalcon/Acl/Enum.php b/src/Acl/Enum.zep.php similarity index 99% rename from src/Phalcon/Acl/Enum.php rename to src/Acl/Enum.zep.php index b6d62470..31c3e271 100644 --- a/src/Phalcon/Acl/Enum.php +++ b/src/Acl/Enum.zep.php @@ -19,4 +19,6 @@ class Enum const DENY = 0; + + } diff --git a/src/Phalcon/Acl/Exception.php b/src/Acl/Exception.zep.php similarity index 100% rename from src/Phalcon/Acl/Exception.php rename to src/Acl/Exception.zep.php diff --git a/src/Phalcon/Acl/Role.php b/src/Acl/Role.zep.php similarity index 99% rename from src/Phalcon/Acl/Role.php rename to src/Acl/Role.zep.php index 0618f41a..784d988f 100644 --- a/src/Phalcon/Acl/Role.php +++ b/src/Acl/Role.zep.php @@ -65,4 +65,5 @@ public function getDescription(): string public function __construct(string $name, string $description = null) { } + } diff --git a/src/Phalcon/Acl/RoleAware.php b/src/Acl/RoleAware.zep.php similarity index 99% rename from src/Phalcon/Acl/RoleAware.php rename to src/Acl/RoleAware.zep.php index 2ffaf09f..2f1a3fb9 100644 --- a/src/Phalcon/Acl/RoleAware.php +++ b/src/Acl/RoleAware.zep.php @@ -21,4 +21,5 @@ interface RoleAware * @return string */ public function getRoleName(): string; + } diff --git a/src/Phalcon/Acl/RoleInterface.php b/src/Acl/RoleInterface.zep.php similarity index 99% rename from src/Phalcon/Acl/RoleInterface.php rename to src/Acl/RoleInterface.zep.php index 87beb275..edfc723a 100644 --- a/src/Phalcon/Acl/RoleInterface.php +++ b/src/Acl/RoleInterface.zep.php @@ -35,4 +35,5 @@ public function getDescription(): string; * @return string */ public function __toString(): string; + } diff --git a/src/Phalcon/Annotations/Adapter/AbstractAdapter.php b/src/Annotations/Adapter/AbstractAdapter.zep.php similarity index 96% rename from src/Phalcon/Annotations/Adapter/AbstractAdapter.php rename to src/Annotations/Adapter/AbstractAdapter.zep.php index 97373f18..38cec515 100644 --- a/src/Phalcon/Annotations/Adapter/AbstractAdapter.php +++ b/src/Annotations/Adapter/AbstractAdapter.zep.php @@ -9,10 +9,11 @@ */ namespace Phalcon\Annotations\Adapter; -use Phalcon\Annotations\Collection; use Phalcon\Annotations\Reader; -use Phalcon\Annotations\ReaderInterface; +use Phalcon\Annotations\Exception; +use Phalcon\Annotations\Collection; use Phalcon\Annotations\Reflection; +use Phalcon\Annotations\ReaderInterface; /** * This is the base class for Phalcon\Annotations adapters @@ -22,7 +23,7 @@ abstract class AbstractAdapter implements \Phalcon\Annotations\Adapter\AdapterIn /** * @var array */ - protected $annotations = array(); + protected $annotations = []; /** * @var Reader @@ -99,4 +100,5 @@ public function getReader(): ReaderInterface public function setReader(\Phalcon\Annotations\ReaderInterface $reader) { } + } diff --git a/src/Phalcon/Annotations/Adapter/AdapterInterface.php b/src/Annotations/Adapter/AdapterInterface.zep.php similarity index 99% rename from src/Phalcon/Annotations/Adapter/AdapterInterface.php rename to src/Annotations/Adapter/AdapterInterface.zep.php index 6f851a21..d5a01454 100644 --- a/src/Phalcon/Annotations/Adapter/AdapterInterface.php +++ b/src/Annotations/Adapter/AdapterInterface.zep.php @@ -9,9 +9,9 @@ */ namespace Phalcon\Annotations\Adapter; +use Phalcon\Annotations\Reflection; use Phalcon\Annotations\Collection; use Phalcon\Annotations\ReaderInterface; -use Phalcon\Annotations\Reflection; /** * This interface must be implemented by adapters in Phalcon\Annotations @@ -74,4 +74,5 @@ public function getReader(): ReaderInterface; * @param \Phalcon\Annotations\ReaderInterface $reader */ public function setReader(\Phalcon\Annotations\ReaderInterface $reader); + } diff --git a/src/Phalcon/Annotations/Adapter/Apcu.php b/src/Annotations/Adapter/Apcu.zep.php similarity index 91% rename from src/Phalcon/Annotations/Adapter/Apcu.php rename to src/Annotations/Adapter/Apcu.zep.php index 7b9bea29..3dc77ffa 100644 --- a/src/Phalcon/Annotations/Adapter/Apcu.php +++ b/src/Annotations/Adapter/Apcu.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Annotations\Adapter; +use Phalcon\Annotations\Reflection; + /** * Stores the parsed annotations in APCu. This adapter is suitable for production * @@ -39,7 +41,7 @@ class Apcu extends \Phalcon\Annotations\Adapter\AbstractAdapter * * Phalcon\Annotations\Adapter\Apcu constructor */ - public function __construct(array $options = array()) + public function __construct(array $options = []) { } @@ -47,7 +49,7 @@ public function __construct(array $options = array()) * Reads parsed annotations from APCu * * @param string $key - * @return bool|\Phalcon\Annotations\Reflection + * @return 0|Reflection */ public function read(string $key) { @@ -63,4 +65,5 @@ public function read(string $key) public function write(string $key, \Phalcon\Annotations\Reflection $data): bool { } + } diff --git a/src/Phalcon/Annotations/Adapter/Memory.php b/src/Annotations/Adapter/Memory.zep.php similarity index 93% rename from src/Phalcon/Annotations/Adapter/Memory.php rename to src/Annotations/Adapter/Memory.zep.php index 99130421..69972d9b 100644 --- a/src/Phalcon/Annotations/Adapter/Memory.php +++ b/src/Annotations/Adapter/Memory.zep.php @@ -27,7 +27,7 @@ class Memory extends \Phalcon\Annotations\Adapter\AbstractAdapter * Reads parsed annotations from memory * * @param string $key - * @return bool|\Phalcon\Annotations\Reflection + * @return 0|Reflection */ public function read(string $key) { @@ -40,7 +40,8 @@ public function read(string $key) * @param \Phalcon\Annotations\Reflection $data * @return void */ - public function write(string $key, \Phalcon\Annotations\Reflection $data) + public function write(string $key, \Phalcon\Annotations\Reflection $data): void { } + } diff --git a/src/Phalcon/Annotations/Adapter/Stream.php b/src/Annotations/Adapter/Stream.zep.php similarity index 91% rename from src/Phalcon/Annotations/Adapter/Stream.php rename to src/Annotations/Adapter/Stream.zep.php index e2140f32..c1e354e5 100644 --- a/src/Phalcon/Annotations/Adapter/Stream.php +++ b/src/Annotations/Adapter/Stream.zep.php @@ -41,7 +41,7 @@ class Stream extends \Phalcon\Annotations\Adapter\AbstractAdapter * * Phalcon\Annotations\Adapter\Stream constructor */ - public function __construct(array $options = array()) + public function __construct(array $options = []) { } @@ -49,7 +49,7 @@ public function __construct(array $options = array()) * Reads parsed annotations from files * * @param string $key - * @return bool|int|\Phalcon\Annotations\Reflection + * @return 0|1|Reflection */ public function read(string $key) { @@ -62,7 +62,8 @@ public function read(string $key) * @param \Phalcon\Annotations\Reflection $data * @return void */ - public function write(string $key, \Phalcon\Annotations\Reflection $data) + public function write(string $key, \Phalcon\Annotations\Reflection $data): void { } + } diff --git a/src/Phalcon/Annotations/Annotation.php b/src/Annotations/Annotation.zep.php similarity index 96% rename from src/Phalcon/Annotations/Annotation.php rename to src/Annotations/Annotation.zep.php index 5f7602c2..c915ebd4 100644 --- a/src/Phalcon/Annotations/Annotation.php +++ b/src/Annotations/Annotation.zep.php @@ -19,14 +19,14 @@ class Annotation * * @var array */ - protected $arguments = array(); + protected $arguments = []; /** * Annotation ExprArguments * * @var array */ - protected $exprArguments = array(); + protected $exprArguments = []; /** * Annotation Name @@ -130,4 +130,5 @@ public function hasArgument($position): bool public function numberArguments(): int { } + } diff --git a/src/Phalcon/Annotations/AnnotationsFactory.php b/src/Annotations/AnnotationsFactory.zep.php similarity index 85% rename from src/Phalcon/Annotations/AnnotationsFactory.php rename to src/Annotations/AnnotationsFactory.zep.php index 0ede1c60..5e51c36f 100644 --- a/src/Phalcon/Annotations/AnnotationsFactory.php +++ b/src/Annotations/AnnotationsFactory.zep.php @@ -11,6 +11,7 @@ use Phalcon\Annotations\Adapter\AdapterInterface; use Phalcon\Factory\AbstractFactory; +use Phalcon\Helper\Arr; /** * Factory to create annotations components @@ -18,12 +19,15 @@ class AnnotationsFactory extends AbstractFactory { + protected $exception = 'Phalcon\\\\Annotations\\\\Exception'; + + /** * AdapterFactory constructor. * * @param array $services */ - public function __construct(array $services = array()) + public function __construct(array $services = []) { } @@ -55,7 +59,7 @@ public function load($config) * @param string $name * @return AdapterInterface */ - public function newInstance(string $name, array $options = array()): AdapterInterface + public function newInstance(string $name, array $options = []): AdapterInterface { } @@ -67,4 +71,5 @@ public function newInstance(string $name, array $options = array()): AdapterInte protected function getAdapters(): array { } + } diff --git a/src/Phalcon/Annotations/Collection.php b/src/Annotations/Collection.zep.php similarity index 93% rename from src/Phalcon/Annotations/Collection.php rename to src/Annotations/Collection.zep.php index de4b4d50..c5a5fccd 100644 --- a/src/Phalcon/Annotations/Collection.php +++ b/src/Annotations/Collection.zep.php @@ -9,6 +9,9 @@ */ namespace Phalcon\Annotations; +use Countable; +use Iterator; + /** * Represents a collection of annotations. This class allows to traverse a group * of annotations easily @@ -44,7 +47,7 @@ class Collection implements \Iterator, \Countable * * @param array $reflectionData */ - public function __construct(array $reflectionData = array()) + public function __construct(array $reflectionData = []) { } @@ -60,7 +63,7 @@ public function count(): int /** * Returns the current annotation in the iterator * - * @return bool|Annotation + * @return 0|Annotation */ public function current() { @@ -119,7 +122,7 @@ public function key(): int * * @return void */ - public function next() + public function next(): void { } @@ -128,7 +131,7 @@ public function next() * * @return void */ - public function rewind() + public function rewind(): void { } @@ -140,4 +143,5 @@ public function rewind() public function valid(): bool { } + } diff --git a/src/Phalcon/Annotations/Exception.php b/src/Annotations/Exception.zep.php similarity index 100% rename from src/Phalcon/Annotations/Exception.php rename to src/Annotations/Exception.zep.php diff --git a/src/Phalcon/Annotations/Reader.php b/src/Annotations/Reader.zep.php similarity index 99% rename from src/Phalcon/Annotations/Reader.php rename to src/Annotations/Reader.zep.php index 21eeb9d4..c164bee2 100644 --- a/src/Phalcon/Annotations/Reader.php +++ b/src/Annotations/Reader.zep.php @@ -38,4 +38,5 @@ public function parse(string $className): array public static function parseDocBlock(string $docBlock, $file = null, $line = null): array { } + } diff --git a/src/Phalcon/Annotations/ReaderInterface.php b/src/Annotations/ReaderInterface.zep.php similarity index 99% rename from src/Phalcon/Annotations/ReaderInterface.php rename to src/Annotations/ReaderInterface.zep.php index af370c66..a8cc3f42 100644 --- a/src/Phalcon/Annotations/ReaderInterface.php +++ b/src/Annotations/ReaderInterface.zep.php @@ -32,4 +32,5 @@ public function parse(string $className): array; * @return array */ public static function parseDocBlock(string $docBlock, $file = null, $line = null): array; + } diff --git a/src/Phalcon/Annotations/Reflection.php b/src/Annotations/Reflection.zep.php similarity index 84% rename from src/Phalcon/Annotations/Reflection.php rename to src/Annotations/Reflection.zep.php index f1285b35..293d2c18 100644 --- a/src/Phalcon/Annotations/Reflection.php +++ b/src/Annotations/Reflection.zep.php @@ -29,19 +29,28 @@ */ class Reflection { - + /** + * @var array + * TODO: Make always array + */ protected $classAnnotations; - + /** + * @var array + * TODO: Make always array + */ protected $methodAnnotations; - + /** + * @var array + * TODO: Make always array + */ protected $propertyAnnotations; /** * @var array */ - protected $reflectionData; + protected $reflectionData = []; /** @@ -49,14 +58,14 @@ class Reflection * * @param array $reflectionData */ - public function __construct(array $reflectionData = array()) + public function __construct(array $reflectionData = []) { } /** * Returns the annotations found in the class docblock * - * @return bool|Collection + * @return 0|Collection */ public function getClassAnnotations() { @@ -89,4 +98,5 @@ public function getPropertiesAnnotations() public function getReflectionData(): array { } + } diff --git a/src/Phalcon/Application/AbstractApplication.php b/src/Application/AbstractApplication.zep.php similarity index 85% rename from src/Phalcon/Application/AbstractApplication.php rename to src/Application/AbstractApplication.zep.php index 1c1ccdd1..786fdeda 100644 --- a/src/Phalcon/Application/AbstractApplication.php +++ b/src/Application/AbstractApplication.zep.php @@ -11,6 +11,7 @@ use Phalcon\Di\DiInterface; use Phalcon\Di\Injectable; +use Phalcon\Events\EventsAwareInterface; use Phalcon\Events\ManagerInterface; /** @@ -19,24 +20,24 @@ abstract class AbstractApplication extends Injectable implements \Phalcon\Events\EventsAwareInterface { /** - * @var DiInterface + * @var DiInterface|null */ - protected $container; + protected $container = null; /** - * @var string + * @var string|null */ - protected $defaultModule; + protected $defaultModule = null; /** - * @var null | ManagerInterface + * @var ManagerInterface|null */ - protected $eventsManager; + protected $eventsManager = null; /** * @var array */ - protected $modules = array(); + protected $modules = []; /** @@ -60,18 +61,17 @@ public function getDefaultModule(): string /** * Returns the internal event manager * - * @return ManagerInterface + * @return ManagerInterface|null */ - public function getEventsManager(): ManagerInterface + public function getEventsManager(): ?ManagerInterface { } /** * Gets the module definition registered in the application via module name * - * @param string $name - * - * @return array + * @param string $name * + * @return array|mixed */ public function getModule(string $name): array { @@ -128,7 +128,8 @@ public function setDefaultModule(string $defaultModule): AbstractApplication * @param \Phalcon\Events\ManagerInterface $eventsManager * @return void */ - public function setEventsManager(\Phalcon\Events\ManagerInterface $eventsManager) + public function setEventsManager(\Phalcon\Events\ManagerInterface $eventsManager): void { } + } diff --git a/src/Phalcon/Application/Exception.php b/src/Application/Exception.zep.php similarity index 100% rename from src/Phalcon/Application/Exception.php rename to src/Application/Exception.zep.php diff --git a/src/Phalcon/Assets/Asset.php b/src/Assets/Asset.zep.php similarity index 97% rename from src/Phalcon/Assets/Asset.php rename to src/Assets/Asset.zep.php index 59669813..a710deea 100644 --- a/src/Phalcon/Assets/Asset.php +++ b/src/Assets/Asset.zep.php @@ -163,7 +163,7 @@ public function setVersion(string $version) * @param string $version * @param bool $autoVersion */ - public function __construct(string $type, string $path, bool $local = true, bool $filter = true, array $attributes = array(), string $version = null, bool $autoVersion = false) + public function __construct(string $type, string $path, bool $local = true, bool $filter = true, array $attributes = [], string $version = null, bool $autoVersion = false) { } @@ -304,4 +304,5 @@ public function setType(string $type): AssetInterface public function setPath(string $path): AssetInterface { } + } diff --git a/src/Phalcon/Assets/Asset/Css.php b/src/Assets/Asset/Css.zep.php similarity index 82% rename from src/Phalcon/Assets/Asset/Css.php rename to src/Assets/Asset/Css.zep.php index a730da27..1c31fa57 100644 --- a/src/Phalcon/Assets/Asset/Css.php +++ b/src/Assets/Asset/Css.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Assets\Asset; +use Phalcon\Assets\Asset as AssetBase; + /** * Represents CSS assets */ @@ -25,7 +27,8 @@ class Css extends \Phalcon\Assets\Asset * @param string $version * @param bool $autoVersion */ - public function __construct(string $path, bool $local = true, bool $filter = true, array $attributes = array(), string $version = null, bool $autoVersion = false) + public function __construct(string $path, bool $local = true, bool $filter = true, array $attributes = [], string $version = null, bool $autoVersion = false) { } + } diff --git a/src/Phalcon/Assets/Asset/Js.php b/src/Assets/Asset/Js.zep.php similarity index 82% rename from src/Phalcon/Assets/Asset/Js.php rename to src/Assets/Asset/Js.zep.php index 7de3a9e8..6bee7747 100644 --- a/src/Phalcon/Assets/Asset/Js.php +++ b/src/Assets/Asset/Js.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Assets\Asset; +use Phalcon\Assets\Asset as AssetBase; + /** * Represents JavaScript assets */ @@ -25,7 +27,8 @@ class Js extends \Phalcon\Assets\Asset * @param string $version * @param bool $autoVersion */ - public function __construct(string $path, bool $local = true, bool $filter = true, array $attributes = array(), string $version = null, bool $autoVersion = false) + public function __construct(string $path, bool $local = true, bool $filter = true, array $attributes = [], string $version = null, bool $autoVersion = false) { } + } diff --git a/src/Phalcon/Assets/AssetInterface.php b/src/Assets/AssetInterface.zep.php similarity index 99% rename from src/Phalcon/Assets/AssetInterface.php rename to src/Assets/AssetInterface.zep.php index 320f6317..c342e79c 100644 --- a/src/Phalcon/Assets/AssetInterface.php +++ b/src/Assets/AssetInterface.zep.php @@ -66,4 +66,5 @@ public function setFilter(bool $filter): AssetInterface; * @return AssetInterface */ public function setType(string $type): AssetInterface; + } diff --git a/src/Phalcon/Assets/Collection.php b/src/Assets/Collection.zep.php similarity index 95% rename from src/Phalcon/Assets/Collection.php rename to src/Assets/Collection.zep.php index c202bc09..8d0df59c 100644 --- a/src/Phalcon/Assets/Collection.php +++ b/src/Assets/Collection.zep.php @@ -9,6 +9,13 @@ */ namespace Phalcon\Assets; +use Countable; +use Iterator; +use Phalcon\Assets\Asset\Css as AssetCss; +use Phalcon\Assets\Asset\Js as AssetJs; +use Phalcon\Assets\Inline\Js as InlineJs; +use Phalcon\Assets\Inline\Css as InlineCss; + /** * Represents a collection of assets */ @@ -17,12 +24,12 @@ class Collection implements \Countable, \Iterator /** * @var array */ - protected $assets = array(); + protected $assets = []; /** * @var array */ - protected $attributes = array(); + protected $attributes = []; /** * Should version be determined from file modification time @@ -34,12 +41,12 @@ class Collection implements \Countable, \Iterator /** * @var array */ - protected $codes = array(); + protected $codes = []; /** * @var array */ - protected $filters = array(); + protected $filters = []; /** * @var array @@ -381,7 +388,7 @@ public function key(): int * * @return void */ - public function next() + public function next(): void { } @@ -390,7 +397,7 @@ public function next() * * @return void */ - public function rewind() + public function rewind(): void { } @@ -492,4 +499,5 @@ public function valid(): bool final protected function addAsset(AssetInterface $asset): bool { } + } diff --git a/src/Phalcon/Assets/Exception.php b/src/Assets/Exception.zep.php similarity index 100% rename from src/Phalcon/Assets/Exception.php rename to src/Assets/Exception.zep.php diff --git a/src/Phalcon/Assets/FilterInterface.php b/src/Assets/FilterInterface.zep.php similarity index 99% rename from src/Phalcon/Assets/FilterInterface.php rename to src/Assets/FilterInterface.zep.php index a93e24c8..9fdbdef2 100644 --- a/src/Phalcon/Assets/FilterInterface.php +++ b/src/Assets/FilterInterface.zep.php @@ -22,4 +22,5 @@ interface FilterInterface * @return string */ public function filter(string $content): string; + } diff --git a/src/Phalcon/Assets/Filters/Cssmin.php b/src/Assets/Filters/Cssmin.zep.php similarity index 94% rename from src/Phalcon/Assets/Filters/Cssmin.php rename to src/Assets/Filters/Cssmin.zep.php index 774e9cba..8b5144be 100644 --- a/src/Phalcon/Assets/Filters/Cssmin.php +++ b/src/Assets/Filters/Cssmin.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Assets\Filters; +use Phalcon\Assets\FilterInterface; + /** * Minify the CSS - removes comments removes newlines and line feeds keeping * removes last semicolon from last property @@ -26,4 +28,5 @@ class Cssmin implements \Phalcon\Assets\FilterInterface public function filter(string $content): string { } + } diff --git a/src/Phalcon/Assets/Filters/Jsmin.php b/src/Assets/Filters/Jsmin.zep.php similarity index 95% rename from src/Phalcon/Assets/Filters/Jsmin.php rename to src/Assets/Filters/Jsmin.zep.php index e0701838..c4959b95 100644 --- a/src/Phalcon/Assets/Filters/Jsmin.php +++ b/src/Assets/Filters/Jsmin.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Assets\Filters; +use Phalcon\Assets\FilterInterface; + /** * Deletes the characters which are insignificant to JavaScript. Comments will * be removed. Tabs will be replaced with spaces. Carriage returns will be @@ -27,4 +29,5 @@ class Jsmin implements \Phalcon\Assets\FilterInterface public function filter(string $content): string { } + } diff --git a/src/Phalcon/Assets/Filters/None.php b/src/Assets/Filters/None.zep.php similarity index 99% rename from src/Phalcon/Assets/Filters/None.php rename to src/Assets/Filters/None.zep.php index ba7c59c9..cb4bb08c 100644 --- a/src/Phalcon/Assets/Filters/None.php +++ b/src/Assets/Filters/None.zep.php @@ -26,4 +26,5 @@ class None implements \Phalcon\Assets\FilterInterface public function filter(string $content): string { } + } diff --git a/src/Phalcon/Assets/Inline.php b/src/Assets/Inline.zep.php similarity index 97% rename from src/Phalcon/Assets/Inline.php rename to src/Assets/Inline.zep.php index 8a76055b..37766c82 100644 --- a/src/Phalcon/Assets/Inline.php +++ b/src/Assets/Inline.zep.php @@ -75,7 +75,7 @@ public function getType(): string * @param bool $filter * @param array $attributes */ - public function __construct(string $type, string $content, bool $filter = true, array $attributes = array()) + public function __construct(string $type, string $content, bool $filter = true, array $attributes = []) { } @@ -117,4 +117,5 @@ public function setFilter(bool $filter): AssetInterface public function setType(string $type): AssetInterface { } + } diff --git a/src/Phalcon/Assets/Inline/Css.php b/src/Assets/Inline/Css.zep.php similarity index 93% rename from src/Phalcon/Assets/Inline/Css.php rename to src/Assets/Inline/Css.zep.php index 2353cd4e..14f7b91d 100644 --- a/src/Phalcon/Assets/Inline/Css.php +++ b/src/Assets/Inline/Css.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Assets\Inline; +use Phalcon\Assets\Inline as InlineBase; + /** * Represents an inlined CSS */ @@ -25,4 +27,5 @@ class Css extends \Phalcon\Assets\Inline public function __construct(string $content, bool $filter = true, $attributes = null) { } + } diff --git a/src/Phalcon/Assets/Inline/Js.php b/src/Assets/Inline/Js.zep.php similarity index 93% rename from src/Phalcon/Assets/Inline/Js.php rename to src/Assets/Inline/Js.zep.php index 1ec6fd4e..22409a46 100644 --- a/src/Phalcon/Assets/Inline/Js.php +++ b/src/Assets/Inline/Js.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Assets\Inline; +use Phalcon\Assets\Inline as InlineBase; + /** * Represents an inline JavaScript */ @@ -25,4 +27,5 @@ class Js extends \Phalcon\Assets\Inline public function __construct(string $content, bool $filter = true, $attributes = null) { } + } diff --git a/src/Phalcon/Assets/Manager.php b/src/Assets/Manager.zep.php similarity index 94% rename from src/Phalcon/Assets/Manager.php rename to src/Assets/Manager.zep.php index 8507aaab..b5988033 100644 --- a/src/Phalcon/Assets/Manager.php +++ b/src/Assets/Manager.zep.php @@ -24,15 +24,17 @@ */ class Manager extends AbstractInjectionAware { - - protected $collections; + /** + * @var array + */ + protected $collections = []; /** * Options configure * * @var array */ - protected $options; + protected $options = []; /** * @var bool @@ -45,7 +47,7 @@ class Manager extends AbstractInjectionAware * * @param array $options */ - public function __construct(array $options = array()) + public function __construct(array $options = []) { } @@ -94,12 +96,12 @@ public function addAssetByType(string $type, Asset $asset): Manager * @param string $path * @param mixed $local * @param bool $filter - * @param mixed $attributes + * @param array $attributes * @param string $version * @param bool $autoVersion * @return Manager */ - public function addCss(string $path, $local = true, bool $filter = true, $attributes = null, string $version = null, bool $autoVersion = false): Manager + public function addCss(string $path, $local = true, bool $filter = true, array $attributes = [], string $version = null, bool $autoVersion = false): Manager { } @@ -159,12 +161,12 @@ public function addInlineJs(string $content, $filter = true, $attributes = null) * @param string $path * @param mixed $local * @param bool $filter - * @param mixed $attributes + * @param array $attributes * @param string $version * @param bool $autoVersion * @return Manager */ - public function addJs(string $path, $local = true, bool $filter = true, $attributes = null, string $version = null, bool $autoVersion = false): Manager + public function addJs(string $path, $local = true, bool $filter = true, array $attributes = [], string $version = null, bool $autoVersion = false): Manager { } @@ -259,7 +261,7 @@ public function getOptions(): array /** * Traverses a collection calling the callback to generate its HTML * - * @param callback $callback + * @param Collection $callback * @param string $type * @param Collection $collection * @return string|null @@ -364,4 +366,5 @@ public function useImplicitOutput(bool $implicitOutput): Manager private function getPrefixedPath(Collection $collection, string $path): string { } + } diff --git a/src/Phalcon/Cache.php b/src/Cache.zep.php similarity index 96% rename from src/Phalcon/Cache.php rename to src/Cache.zep.php index cf660ec4..bfc2e689 100644 --- a/src/Phalcon/Cache.php +++ b/src/Cache.zep.php @@ -10,8 +10,10 @@ namespace Phalcon; use Phalcon\Cache\Adapter\AdapterInterface; +use Phalcon\Cache\Exception\Exception; use Phalcon\Cache\Exception\InvalidArgumentException; use Psr\SimpleCache\CacheInterface; +use Traversable; /** * This component offers caching capabilities for your application. @@ -157,10 +159,10 @@ public function setMultiple($values, $ttl = null): bool /** * Checks the key. If it contains invalid characters an exception is thrown * - * @param mixed $key + * @param string $key * @return void */ - protected function checkKey($key) + protected function checkKey(string $key): void { } @@ -170,7 +172,8 @@ protected function checkKey($key) * @param mixed $keys * @return void */ - protected function checkKeys($keys) + protected function checkKeys($keys): void { } + } diff --git a/src/Phalcon/Cache/Adapter/AdapterInterface.php b/src/Cache/Adapter/AdapterInterface.zep.php similarity index 100% rename from src/Phalcon/Cache/Adapter/AdapterInterface.php rename to src/Cache/Adapter/AdapterInterface.zep.php diff --git a/src/Phalcon/Cache/Adapter/Apcu.php b/src/Cache/Adapter/Apcu.zep.php similarity index 90% rename from src/Phalcon/Cache/Adapter/Apcu.php rename to src/Cache/Adapter/Apcu.zep.php index 01481ad0..191e2ec9 100644 --- a/src/Phalcon/Cache/Adapter/Apcu.php +++ b/src/Cache/Adapter/Apcu.zep.php @@ -10,6 +10,7 @@ namespace Phalcon\Cache\Adapter; use Phalcon\Cache\Adapter\AdapterInterface as CacheAdapterInterface; +use Phalcon\Storage\Adapter\Apcu as StorageApcu; /** * Apcu adapter diff --git a/src/Phalcon/Cache/Adapter/Libmemcached.php b/src/Cache/Adapter/Libmemcached.zep.php similarity index 100% rename from src/Phalcon/Cache/Adapter/Libmemcached.php rename to src/Cache/Adapter/Libmemcached.zep.php diff --git a/src/Phalcon/Cache/Adapter/Memory.php b/src/Cache/Adapter/Memory.zep.php similarity index 100% rename from src/Phalcon/Cache/Adapter/Memory.php rename to src/Cache/Adapter/Memory.zep.php diff --git a/src/Phalcon/Cache/Adapter/Redis.php b/src/Cache/Adapter/Redis.zep.php similarity index 100% rename from src/Phalcon/Cache/Adapter/Redis.php rename to src/Cache/Adapter/Redis.zep.php diff --git a/src/Phalcon/Cache/Adapter/Stream.php b/src/Cache/Adapter/Stream.zep.php similarity index 100% rename from src/Phalcon/Cache/Adapter/Stream.php rename to src/Cache/Adapter/Stream.zep.php diff --git a/src/Phalcon/Cache/AdapterFactory.php b/src/Cache/AdapterFactory.zep.php similarity index 89% rename from src/Phalcon/Cache/AdapterFactory.php rename to src/Cache/AdapterFactory.zep.php index 794a10d7..472ecac1 100644 --- a/src/Phalcon/Cache/AdapterFactory.php +++ b/src/Cache/AdapterFactory.zep.php @@ -18,6 +18,9 @@ */ class AdapterFactory extends AbstractFactory { + + protected $exception = 'Phalcon\\\\Cache\\\\Exception\\\\Exception'; + /** * @var SerializerFactory */ @@ -30,7 +33,7 @@ class AdapterFactory extends AbstractFactory * @param \Phalcon\Storage\SerializerFactory $factory * @param array $services */ - public function __construct(\Phalcon\Storage\SerializerFactory $factory = null, array $services = array()) + public function __construct(\Phalcon\Storage\SerializerFactory $factory, array $services = []) { } @@ -60,7 +63,7 @@ public function __construct(\Phalcon\Storage\SerializerFactory $factory = null, * @param string $name * @return AdapterInterface */ - public function newInstance(string $name, array $options = array()): AdapterInterface + public function newInstance(string $name, array $options = []): AdapterInterface { } @@ -72,4 +75,5 @@ public function newInstance(string $name, array $options = array()): AdapterInte protected function getAdapters(): array { } + } diff --git a/src/Phalcon/Cache/CacheFactory.php b/src/Cache/CacheFactory.zep.php similarity index 89% rename from src/Phalcon/Cache/CacheFactory.php rename to src/Cache/CacheFactory.zep.php index ad026d3d..23797029 100644 --- a/src/Phalcon/Cache/CacheFactory.php +++ b/src/Cache/CacheFactory.zep.php @@ -9,7 +9,13 @@ */ namespace Phalcon\Cache; +use Phalcon\Cache\Adapter\AdapterInterface; +use Phalcon\Cache; use Psr\SimpleCache\CacheInterface; +use Phalcon\Cache\Exception\Exception; +use Phalcon\Config; +use Phalcon\Config\ConfigInterface; +use Phalcon\Helper\Arr; /** * Creates a new Cache class @@ -91,7 +97,8 @@ public function load($config) * @param string $name * @return CacheInterface */ - public function newInstance(string $name, array $options = array()): CacheInterface + public function newInstance(string $name, array $options = []): CacheInterface { } + } diff --git a/src/Phalcon/Cache/Exception/Exception.php b/src/Cache/Exception/Exception.zep.php similarity index 100% rename from src/Phalcon/Cache/Exception/Exception.php rename to src/Cache/Exception/Exception.zep.php diff --git a/src/Phalcon/Cache/Exception/InvalidArgumentException.php b/src/Cache/Exception/InvalidArgumentException.zep.php similarity index 100% rename from src/Phalcon/Cache/Exception/InvalidArgumentException.php rename to src/Cache/Exception/InvalidArgumentException.zep.php diff --git a/src/Phalcon/Cli/Console.php b/src/Cli/Console.zep.php similarity index 82% rename from src/Phalcon/Cli/Console.php rename to src/Cli/Console.zep.php index b0b15ca9..ef36b506 100644 --- a/src/Phalcon/Cli/Console.php +++ b/src/Cli/Console.zep.php @@ -10,6 +10,10 @@ namespace Phalcon\Cli; use Phalcon\Application\AbstractApplication; +use Phalcon\Cli\Router\Route; +use Phalcon\Cli\Console\Exception; +use Phalcon\Di\DiInterface; +use Phalcon\Events\ManagerInterface; /** * This component allows to create CLI applications using Phalcon @@ -19,12 +23,12 @@ class Console extends AbstractApplication /** * @var array */ - protected $arguments = array(); + protected $arguments = []; /** * @var array */ - protected $options = array(); + protected $options = []; /** @@ -47,4 +51,5 @@ public function handle(array $arguments = null) public function setArgument(array $arguments = null, bool $str = true, bool $shift = true): Console { } + } diff --git a/src/Phalcon/Cli/Console/Exception.php b/src/Cli/Console/Exception.zep.php similarity index 100% rename from src/Phalcon/Cli/Console/Exception.php rename to src/Cli/Console/Exception.zep.php diff --git a/src/Phalcon/Cli/Dispatcher.php b/src/Cli/Dispatcher.zep.php similarity index 88% rename from src/Phalcon/Cli/Dispatcher.php rename to src/Cli/Dispatcher.zep.php index aa31c964..067c7b41 100644 --- a/src/Phalcon/Cli/Dispatcher.php +++ b/src/Cli/Dispatcher.zep.php @@ -9,6 +9,11 @@ */ namespace Phalcon\Cli; +use Phalcon\Cli\Dispatcher\Exception; +use Phalcon\Dispatcher\AbstractDispatcher as CliDispatcher; +use Phalcon\Events\ManagerInterface; +use Phalcon\Filter\FilterInterface; + /** * Dispatching is the process of taking the command-line arguments, extracting * the module name, task name, action name, and optional parameters contained in @@ -33,9 +38,7 @@ */ class Dispatcher extends \Phalcon\Dispatcher\AbstractDispatcher implements \Phalcon\Cli\DispatcherInterface { - /** - * @var string - */ + protected $defaultHandler = 'main'; /** @@ -51,7 +54,7 @@ class Dispatcher extends \Phalcon\Dispatcher\AbstractDispatcher implements \Phal /** * @var array */ - protected $options = array(); + protected $options = []; /** @@ -62,7 +65,7 @@ class Dispatcher extends \Phalcon\Dispatcher\AbstractDispatcher implements \Phal * @param array $params * @return mixed */ - public function callActionMethod($handler, string $actionMethod, array $params = array()) + public function callActionMethod($handler, string $actionMethod, array $params = []) { } @@ -139,7 +142,7 @@ public function hasOption($option): bool * @param string $taskName * @return void */ - public function setDefaultTask(string $taskName) + public function setDefaultTask(string $taskName): void { } @@ -149,7 +152,7 @@ public function setDefaultTask(string $taskName) * @param array $options * @return void */ - public function setOptions(array $options) + public function setOptions(array $options): void { } @@ -159,7 +162,7 @@ public function setOptions(array $options) * @param string $taskName * @return void */ - public function setTaskName(string $taskName) + public function setTaskName(string $taskName): void { } @@ -169,7 +172,7 @@ public function setTaskName(string $taskName) * @param string $taskSuffix * @return void */ - public function setTaskSuffix(string $taskSuffix) + public function setTaskSuffix(string $taskSuffix): void { } @@ -191,4 +194,5 @@ protected function handleException(\Exception $exception) protected function throwDispatchException(string $message, int $exceptionCode = 0) { } + } diff --git a/src/Phalcon/Cli/Dispatcher/Exception.php b/src/Cli/Dispatcher/Exception.zep.php similarity index 100% rename from src/Phalcon/Cli/Dispatcher/Exception.php rename to src/Cli/Dispatcher/Exception.zep.php diff --git a/src/Phalcon/Cli/DispatcherInterface.php b/src/Cli/DispatcherInterface.zep.php similarity index 87% rename from src/Phalcon/Cli/DispatcherInterface.php rename to src/Cli/DispatcherInterface.zep.php index f4f6c0f5..c638254f 100644 --- a/src/Phalcon/Cli/DispatcherInterface.php +++ b/src/Cli/DispatcherInterface.zep.php @@ -58,7 +58,7 @@ public function getTaskSuffix(): string; * @param string $taskName * @return void */ - public function setDefaultTask(string $taskName); + public function setDefaultTask(string $taskName): void; /** * Set the options to be dispatched @@ -66,7 +66,7 @@ public function setDefaultTask(string $taskName); * @param array $options * @return void */ - public function setOptions(array $options); + public function setOptions(array $options): void; /** * Sets the task name to be dispatched @@ -74,7 +74,7 @@ public function setOptions(array $options); * @param string $taskName * @return void */ - public function setTaskName(string $taskName); + public function setTaskName(string $taskName): void; /** * Sets the default task suffix @@ -82,5 +82,6 @@ public function setTaskName(string $taskName); * @param string $taskSuffix * @return void */ - public function setTaskSuffix(string $taskSuffix); + public function setTaskSuffix(string $taskSuffix): void; + } diff --git a/src/Phalcon/Cli/Router.php b/src/Cli/Router.zep.php similarity index 82% rename from src/Phalcon/Cli/Router.php rename to src/Cli/Router.zep.php index 40f62fe8..4a45762b 100644 --- a/src/Phalcon/Cli/Router.php +++ b/src/Cli/Router.zep.php @@ -9,8 +9,11 @@ */ namespace Phalcon\Cli; -use Phalcon\Cli\Router\RouteInterface; +use Phalcon\Di\DiInterface; use Phalcon\Di\AbstractInjectionAware; +use Phalcon\Cli\Router\Route; +use Phalcon\Cli\Router\Exception; +use Phalcon\Cli\Router\RouteInterface; /** * Phalcon\Cli\Router is the standard framework router. Routing is the process @@ -34,44 +37,65 @@ */ class Router extends AbstractInjectionAware { + /** + * @var string|null + */ + protected $action = null; - protected $action; - - + /** + * @var string|null + */ protected $defaultAction = null; - + /** + * @var string|null + */ protected $defaultModule = null; /** * @var array */ - protected $defaultParams = array(); - + protected $defaultParams = []; + /** + * @var string|null + */ protected $defaultTask = null; + /** + * @var RouteInterface|null + */ + protected $matchedRoute = null; - protected $matchedRoute; - - - protected $matches; - + /** + * @var array|null + * TODO: make always array + */ + protected $matches = null; - protected $module; + /** + * @var string|null + */ + protected $module = null; /** * @var array */ - protected $params = array(); - - - protected $routes; - + protected $params = []; - protected $task; + /** + * @var array + */ + protected $routes = []; + /** + * @var string|null + */ + protected $task = null; + /** + * @var bool + */ protected $wasMatched = false; @@ -148,7 +172,7 @@ public function getParams(): array * Returns a route object by its id * * @param int $id - * @return bool|\Phalcon\Cli\Router\RouteInterface + * @return 0|RouteInterface */ public function getRouteById($id) { @@ -158,7 +182,7 @@ public function getRouteById($id) * Returns a route object by its name * * @param string $name - * @return bool|\Phalcon\Cli\Router\RouteInterface + * @return 0|RouteInterface */ public function getRouteByName(string $name) { @@ -236,7 +260,7 @@ public function setDefaults(array $defaults): Router * @param string $taskName * @return void */ - public function setDefaultTask(string $taskName) + public function setDefaultTask(string $taskName): void { } @@ -248,4 +272,5 @@ public function setDefaultTask(string $taskName) public function wasMatched(): bool { } + } diff --git a/src/Phalcon/Cli/Router/Exception.php b/src/Cli/Router/Exception.zep.php similarity index 100% rename from src/Phalcon/Cli/Router/Exception.php rename to src/Cli/Router/Exception.zep.php diff --git a/src/Phalcon/Cli/Router/Route.php b/src/Cli/Router/Route.zep.php similarity index 80% rename from src/Phalcon/Cli/Router/Route.php rename to src/Cli/Router/Route.zep.php index eb98027e..75610a5f 100644 --- a/src/Phalcon/Cli/Router/Route.php +++ b/src/Cli/Router/Route.zep.php @@ -17,38 +17,60 @@ class Route implements \Phalcon\Cli\Router\RouteInterface const DEFAULT_DELIMITER = ' '; + /** + * @var mixed|null + */ + protected $beforeMatch = null; - protected $beforeMatch; - - - protected $compiledPattern; - - - protected $converters; + /** + * @var string|null + */ + protected $compiledPattern = null; + /** + * @var array + */ + protected $converters = []; + /** + * @var string + */ protected $delimiter; + /** + * @var string + */ + static protected $delimiterPath = self::DEFAULT_DELIMITER; - protected static $delimiterPath = self::DEFAULT_DELIMITER; - - - protected $description; - + /** + * @var string|null + */ + protected $description = null; + /** + * @var string + */ protected $id; + /** + * @var string|null + */ + protected $name = null; - protected $name; - - - protected $paths; - + /** + * @var array + */ + protected $paths = []; + /** + * @var string + */ protected $pattern; - - protected static $uniqueId = 0; + /** + * @var int|string + */ + static protected $uniqueId = 0; /** @@ -64,7 +86,7 @@ public function __construct(string $pattern, $paths = null) * The developer can implement any arbitrary conditions here * If the callback returns false the route is treated as not matched * - * @param callback $callback + * @param mixed $callback * @return RouteInterface */ public function beforeMatch($callback): RouteInterface @@ -100,7 +122,7 @@ public function convert(string $name, $converter): RouteInterface * @param string $delimiter * @return void */ - public static function delimiter(string $delimiter = null) + public static function delimiter(string $delimiter = null): void { } @@ -207,11 +229,11 @@ public function getRouteId(): string /** * Reconfigure the route adding a new pattern and a set of paths * - * @param array|string $paths * @param string $pattern + * @param array|string|null $paths * * @return void */ - public function reConfigure(string $pattern, $paths = null) + public function reConfigure(string $pattern, $paths = null): void { } @@ -220,7 +242,7 @@ public function reConfigure(string $pattern, $paths = null) * * @return void */ - public static function reset() + public static function reset(): void { } @@ -252,4 +274,5 @@ public function setDescription(string $description): RouteInterface public function setName(string $name): RouteInterface { } + } diff --git a/src/Phalcon/Cli/Router/RouteInterface.php b/src/Cli/Router/RouteInterface.zep.php similarity index 93% rename from src/Phalcon/Cli/Router/RouteInterface.php rename to src/Cli/Router/RouteInterface.zep.php index de7f9f28..bb98b6f4 100644 --- a/src/Phalcon/Cli/Router/RouteInterface.php +++ b/src/Cli/Router/RouteInterface.zep.php @@ -91,17 +91,17 @@ public function getRouteId(): string; * Reconfigure the route adding a new pattern and a set of paths * * @param string $pattern - * @param mixed $paths + * @param array|string|null $paths * * @return void */ - public function reConfigure(string $pattern, $paths = null); + public function reConfigure(string $pattern, $paths = null): void; /** * Resets the internal route id generator * * @return void */ - public static function reset(); + public static function reset(): void; /** * Sets the route's description @@ -118,4 +118,5 @@ public function setDescription(string $description): RouteInterface; * @return RouteInterface */ public function setName(string $name): RouteInterface; + } diff --git a/src/Phalcon/Cli/RouterInterface.php b/src/Cli/RouterInterface.zep.php similarity index 91% rename from src/Phalcon/Cli/RouterInterface.php rename to src/Cli/RouterInterface.zep.php index 29f56fa8..8eee56ab 100644 --- a/src/Phalcon/Cli/RouterInterface.php +++ b/src/Cli/RouterInterface.zep.php @@ -104,7 +104,7 @@ public function handle($arguments = null); * @param string $actionName * @return void */ - public function setDefaultAction(string $actionName); + public function setDefaultAction(string $actionName): void; /** * Sets the name of the default module @@ -112,7 +112,7 @@ public function setDefaultAction(string $actionName); * @param string $moduleName * @return void */ - public function setDefaultModule(string $moduleName); + public function setDefaultModule(string $moduleName): void; /** * Sets an array of default paths @@ -120,7 +120,7 @@ public function setDefaultModule(string $moduleName); * @param array $defaults * @return void */ - public function setDefaults(array $defaults); + public function setDefaults(array $defaults): void; /** * Sets the default task name @@ -128,7 +128,7 @@ public function setDefaults(array $defaults); * @param string $taskName * @return void */ - public function setDefaultTask(string $taskName); + public function setDefaultTask(string $taskName): void; /** * Check if the router matches any of the defined routes @@ -136,4 +136,5 @@ public function setDefaultTask(string $taskName); * @return bool */ public function wasMatched(): bool; + } diff --git a/src/Phalcon/Cli/Task.php b/src/Cli/Task.zep.php similarity index 90% rename from src/Phalcon/Cli/Task.php rename to src/Cli/Task.zep.php index 1e918278..e9406cbb 100644 --- a/src/Phalcon/Cli/Task.php +++ b/src/Cli/Task.zep.php @@ -10,6 +10,7 @@ namespace Phalcon\Cli; use Phalcon\Di\Injectable; +use Phalcon\Events\EventsAwareInterface; use Phalcon\Events\ManagerInterface; /** @@ -38,7 +39,9 @@ */ class Task extends Injectable implements \Phalcon\Cli\TaskInterface, \Phalcon\Events\EventsAwareInterface { - + /** + * @var ManagerInterface + */ protected $eventsManager; @@ -52,7 +55,7 @@ final public function __construct() /** * Returns the internal event manager * - * @return \Phalcon\Events\ManagerInterface|null + * @return ManagerInterface|null */ public function getEventsManager(): ?ManagerInterface { @@ -64,7 +67,8 @@ public function getEventsManager(): ?ManagerInterface * @param \Phalcon\Events\ManagerInterface $eventsManager * @return void */ - public function setEventsManager(\Phalcon\Events\ManagerInterface $eventsManager) + public function setEventsManager(\Phalcon\Events\ManagerInterface $eventsManager): void { } + } diff --git a/src/Phalcon/Cli/TaskInterface.php b/src/Cli/TaskInterface.zep.php similarity index 100% rename from src/Phalcon/Cli/TaskInterface.php rename to src/Cli/TaskInterface.zep.php diff --git a/src/Phalcon/Collection.php b/src/Collection.zep.php similarity index 87% rename from src/Phalcon/Collection.php rename to src/Collection.zep.php index 43d92fb6..51d7659e 100644 --- a/src/Phalcon/Collection.php +++ b/src/Collection.zep.php @@ -9,6 +9,14 @@ */ namespace Phalcon; +use ArrayAccess; +use ArrayIterator; +use Countable; +use IteratorAggregate; +use JsonSerializable; +use Phalcon\Collection\CollectionInterface; +use Phalcon\Helper\Json; +use Serializable; use Traversable; /** @@ -28,7 +36,7 @@ class Collection implements \ArrayAccess, \Phalcon\Collection\CollectionInterfac /** * @var array */ - protected $data = array(); + protected $data = []; /** * @var bool @@ -38,7 +46,7 @@ class Collection implements \ArrayAccess, \Phalcon\Collection\CollectionInterfac /** * @var array */ - protected $lowerKeys = array(); + protected $lowerKeys = []; /** @@ -47,7 +55,7 @@ class Collection implements \ArrayAccess, \Phalcon\Collection\CollectionInterfac * @param array $data * @param bool $insensitive */ - public function __construct(array $data = array(), bool $insensitive = true) + public function __construct(array $data = [], bool $insensitive = true) { } @@ -78,7 +86,7 @@ public function __isset(string $element): bool * @param mixed $value * @return void */ - public function __set(string $element, $value) + public function __set(string $element, $value): void { } @@ -88,7 +96,7 @@ public function __set(string $element, $value) * @param string $element * @return void */ - public function __unset(string $element) + public function __unset(string $element): void { } @@ -97,7 +105,7 @@ public function __unset(string $element) * * @return void */ - public function clear() + public function clear(): void { } @@ -163,7 +171,7 @@ public function has(string $element): bool * @param array $data * @return void */ - public function init(array $data = array()) + public function init(array $data = []): void { } @@ -206,7 +214,7 @@ public function offsetGet($element) * @param mixed $value * @return void */ - public function offsetSet($element, $value) + public function offsetSet($element, $value): void { } @@ -217,7 +225,7 @@ public function offsetSet($element, $value) * @param mixed $element * @return void */ - public function offsetUnset($element) + public function offsetUnset($element): void { } @@ -227,7 +235,7 @@ public function offsetUnset($element) * @param string $element * @return void */ - public function remove(string $element) + public function remove(string $element): void { } @@ -238,7 +246,7 @@ public function remove(string $element) * @param mixed $value * @return void */ - public function set(string $element, $value) + public function set(string $element, $value): void { } @@ -285,7 +293,7 @@ public function toJson(int $options = 79): string * @param mixed $serialized * @return void */ - public function unserialize($serialized) + public function unserialize($serialized): void { } @@ -296,7 +304,8 @@ public function unserialize($serialized) * @param mixed $value * @return void */ - protected function setData(string $element, $value) + protected function setData(string $element, $value): void { } + } diff --git a/src/Phalcon/Collection/CollectionInterface.php b/src/Collection/CollectionInterface.zep.php similarity index 85% rename from src/Phalcon/Collection/CollectionInterface.php rename to src/Collection/CollectionInterface.zep.php index 73c7554f..b565f47c 100644 --- a/src/Phalcon/Collection/CollectionInterface.php +++ b/src/Collection/CollectionInterface.zep.php @@ -34,18 +34,18 @@ public function __isset(string $element): bool; * @param mixed $value * @return void */ - public function __set(string $element, $value); + public function __set(string $element, $value): void; /** * @param string $element * @return void */ - public function __unset(string $element); + public function __unset(string $element): void; /** * @return void */ - public function clear(); + public function clear(): void; /** * @param string $element @@ -76,20 +76,20 @@ public function has(string $element): bool; * @param array $data * @return void */ - public function init(array $data = array()); + public function init(array $data = []): void; /** * @param string $element * @return void */ - public function remove(string $element); + public function remove(string $element): void; /** * @param string $element * @param mixed $value * @return void */ - public function set(string $element, $value); + public function set(string $element, $value): void; /** * @return array @@ -101,4 +101,5 @@ public function toArray(): array; * @return string */ public function toJson(int $options = 79): string; + } diff --git a/src/Phalcon/Collection/Exception.php b/src/Collection/Exception.zep.php similarity index 95% rename from src/Phalcon/Collection/Exception.php rename to src/Collection/Exception.zep.php index 5b84c7ed..badabd18 100644 --- a/src/Phalcon/Collection/Exception.php +++ b/src/Collection/Exception.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Collection; +use Throwable; + /** * Exceptions for the Collection object */ diff --git a/src/Phalcon/Collection/ReadOnly.php b/src/Collection/ReadOnly.zep.php similarity index 86% rename from src/Phalcon/Collection/ReadOnly.php rename to src/Collection/ReadOnly.zep.php index 28ca4011..270d1d63 100644 --- a/src/Phalcon/Collection/ReadOnly.php +++ b/src/Collection/ReadOnly.zep.php @@ -23,7 +23,7 @@ class ReadOnly extends Collection * @param string $element * @return void */ - public function remove(string $element) + public function remove(string $element): void { } @@ -34,7 +34,8 @@ public function remove(string $element) * @param mixed $value * @return void */ - public function set(string $element, $value) + public function set(string $element, $value): void { } + } diff --git a/src/Phalcon/Config.php b/src/Config.zep.php similarity index 95% rename from src/Phalcon/Config.php rename to src/Config.zep.php index e5ba14d7..f75e39b9 100644 --- a/src/Phalcon/Config.php +++ b/src/Config.zep.php @@ -9,7 +9,9 @@ */ namespace Phalcon; +use Phalcon\Collection; use Phalcon\Config\ConfigInterface; +use Phalcon\Config\Exception; /** * `Phalcon\Config` is designed to simplify the access to, and the use of, @@ -42,7 +44,7 @@ class Config extends Collection implements \Phalcon\Config\ConfigInterface const DEFAULT_PATH_DELIMITER = '.'; /** - * @var string + * @var string|null */ protected $pathDelimiter = null; @@ -137,7 +139,8 @@ final protected function internalMerge(array $source, array $target): array * @param mixed $value * @return void */ - protected function setData($element, $value) + protected function setData($element, $value): void { } + } diff --git a/src/Phalcon/Config/Adapter/Grouped.php b/src/Config/Adapter/Grouped.zep.php similarity index 91% rename from src/Phalcon/Config/Adapter/Grouped.php rename to src/Config/Adapter/Grouped.zep.php index 23fb326f..d4bb0309 100644 --- a/src/Phalcon/Config/Adapter/Grouped.php +++ b/src/Config/Adapter/Grouped.zep.php @@ -10,6 +10,10 @@ namespace Phalcon\Config\Adapter; use Phalcon\Config; +use Phalcon\Config\ConfigFactory; +use Phalcon\Config\ConfigInterface; +use Phalcon\Config\Exception; +use Phalcon\Factory\Exception as FactoryException; /** * Reads multiple files (or arrays) and merges them all together. @@ -74,4 +78,5 @@ class Grouped extends Config public function __construct(array $arrayConfig, string $defaultAdapter = 'php') { } + } diff --git a/src/Phalcon/Config/Adapter/Ini.php b/src/Config/Adapter/Ini.zep.php similarity index 96% rename from src/Phalcon/Config/Adapter/Ini.php rename to src/Config/Adapter/Ini.zep.php index 2d94f022..304e6b0c 100644 --- a/src/Phalcon/Config/Adapter/Ini.php +++ b/src/Config/Adapter/Ini.zep.php @@ -10,6 +10,7 @@ namespace Phalcon\Config\Adapter; use Phalcon\Config; +use Phalcon\Config\Exception; /** * Reads ini files and converts them to Phalcon\Config objects. @@ -71,7 +72,7 @@ public function __construct(string $filePath, $mode = null) * implementation. * * @param mixed $ini - * @return bool|null|double|int|string + * @return bool|double|int|string|null */ protected function cast($ini) { @@ -87,4 +88,5 @@ protected function cast($ini) protected function parseIniString(string $path, $value): array { } + } diff --git a/src/Phalcon/Config/Adapter/Json.php b/src/Config/Adapter/Json.zep.php similarity index 99% rename from src/Phalcon/Config/Adapter/Json.php rename to src/Config/Adapter/Json.zep.php index f3595078..dd2e9646 100644 --- a/src/Phalcon/Config/Adapter/Json.php +++ b/src/Config/Adapter/Json.zep.php @@ -43,4 +43,5 @@ class Json extends Config public function __construct(string $filePath) { } + } diff --git a/src/Phalcon/Config/Adapter/Php.php b/src/Config/Adapter/Php.zep.php similarity index 99% rename from src/Phalcon/Config/Adapter/Php.php rename to src/Config/Adapter/Php.zep.php index 30ee68a9..f94da213 100644 --- a/src/Phalcon/Config/Adapter/Php.php +++ b/src/Config/Adapter/Php.zep.php @@ -57,4 +57,5 @@ class Php extends Config public function __construct(string $filePath) { } + } diff --git a/src/Phalcon/Config/Adapter/Yaml.php b/src/Config/Adapter/Yaml.zep.php similarity index 99% rename from src/Phalcon/Config/Adapter/Yaml.php rename to src/Config/Adapter/Yaml.zep.php index 07961a2c..494fe97c 100644 --- a/src/Phalcon/Config/Adapter/Yaml.php +++ b/src/Config/Adapter/Yaml.zep.php @@ -61,4 +61,5 @@ class Yaml extends Config public function __construct(string $filePath, array $callbacks = null) { } + } diff --git a/src/Phalcon/Config/ConfigFactory.php b/src/Config/ConfigFactory.zep.php similarity index 88% rename from src/Phalcon/Config/ConfigFactory.php rename to src/Config/ConfigFactory.zep.php index b8f6d661..44f56447 100644 --- a/src/Phalcon/Config/ConfigFactory.php +++ b/src/Config/ConfigFactory.zep.php @@ -9,7 +9,10 @@ */ namespace Phalcon\Config; +use Phalcon\Config; +use Phalcon\Config\ConfigInterface; use Phalcon\Factory\AbstractFactory; +use Phalcon\Helper\Arr; /** * Loads Config Adapter class using 'adapter' option, if no extension is @@ -29,12 +32,15 @@ class ConfigFactory extends AbstractFactory { + protected $exception = 'Phalcon\\\\Config\\\\Exception'; + + /** * ConfigFactory constructor. * * @param array $services */ - public function __construct(array $services = array()) + public function __construct(array $services = []) { } @@ -73,4 +79,5 @@ public function newInstance(string $name, string $fileName, $params = null): Con protected function getAdapters(): array { } + } diff --git a/src/Phalcon/Config/ConfigInterface.php b/src/Config/ConfigInterface.zep.php similarity index 95% rename from src/Phalcon/Config/ConfigInterface.php rename to src/Config/ConfigInterface.zep.php index 82ea4de1..f16097db 100644 --- a/src/Phalcon/Config/ConfigInterface.php +++ b/src/Config/ConfigInterface.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Config; +use Phalcon\Collection\CollectionInterface; + /** * Phalcon\Config\ConfigInterface * @@ -41,4 +43,5 @@ public function path(string $path, $defaultValue = null, $delimiter = null); * @return ConfigInterface */ public function setPathDelimiter(string $delimiter = null): ConfigInterface; + } diff --git a/src/Phalcon/Config/Exception.php b/src/Config/Exception.zep.php similarity index 100% rename from src/Phalcon/Config/Exception.php rename to src/Config/Exception.zep.php diff --git a/src/Phalcon/Container.php b/src/Container.zep.php similarity index 96% rename from src/Phalcon/Container.php rename to src/Container.zep.php index fe533a3c..74f55334 100644 --- a/src/Phalcon/Container.php +++ b/src/Container.zep.php @@ -9,6 +9,7 @@ */ namespace Phalcon; +use Psr\Container\ContainerInterface; use Phalcon\Di\DiInterface; /** @@ -50,4 +51,5 @@ public function get($name) public function has($name): bool { } + } diff --git a/src/Phalcon/Crypt.php b/src/Crypt.zep.php similarity index 97% rename from src/Phalcon/Crypt.php rename to src/Crypt.zep.php index ecc21978..99c603e4 100644 --- a/src/Phalcon/Crypt.php +++ b/src/Crypt.zep.php @@ -10,6 +10,8 @@ namespace Phalcon; use Phalcon\Crypt\CryptInterface; +use Phalcon\Crypt\Exception; +use Phalcon\Crypt\Mismatch; /** * Provides encryption capabilities to Phalcon applications. @@ -347,7 +349,7 @@ public function useSigning(bool $useSigning): CryptInterface * @param string $cipher * @return void */ - protected function assertCipherIsAvailable(string $cipher) + protected function assertCipherIsAvailable(string $cipher): void { } @@ -357,7 +359,7 @@ protected function assertCipherIsAvailable(string $cipher) * @param string $hashAlgo * @return void */ - protected function assertHashAlgorithmAvailable(string $hashAlgo) + protected function assertHashAlgorithmAvailable(string $hashAlgo): void { } @@ -376,7 +378,7 @@ protected function getIvLength(string $cipher): int * * @return void */ - protected function initializeAvailableCiphers() + protected function initializeAvailableCiphers(): void { } @@ -407,4 +409,5 @@ protected function cryptPadText(string $text, string $mode, int $blockSize, int protected function cryptUnpadText(string $text, string $mode, int $blockSize, int $paddingType) { } + } diff --git a/src/Phalcon/Crypt/CryptInterface.php b/src/Crypt/CryptInterface.zep.php similarity index 99% rename from src/Phalcon/Crypt/CryptInterface.php rename to src/Crypt/CryptInterface.zep.php index d33f3ddc..5f30daa2 100644 --- a/src/Phalcon/Crypt/CryptInterface.php +++ b/src/Crypt/CryptInterface.zep.php @@ -140,4 +140,5 @@ public function setKey(string $key): CryptInterface; * @return CryptInterface */ public function setPadding(int $scheme): CryptInterface; + } diff --git a/src/Phalcon/Crypt/Exception.php b/src/Crypt/Exception.zep.php similarity index 100% rename from src/Phalcon/Crypt/Exception.php rename to src/Crypt/Exception.zep.php diff --git a/src/Phalcon/Crypt/Mismatch.php b/src/Crypt/Mismatch.zep.php similarity index 100% rename from src/Phalcon/Crypt/Mismatch.php rename to src/Crypt/Mismatch.zep.php diff --git a/src/Phalcon/DataMapper/Pdo/Connection.php b/src/DataMapper/Pdo/Connection.zep.php similarity index 82% rename from src/Phalcon/DataMapper/Pdo/Connection.php rename to src/DataMapper/Pdo/Connection.zep.php index d03e7147..68bcaf11 100644 --- a/src/Phalcon/DataMapper/Pdo/Connection.php +++ b/src/DataMapper/Pdo/Connection.zep.php @@ -9,7 +9,9 @@ */ namespace Phalcon\DataMapper\Pdo; +use InvalidArgumentException; use Phalcon\DataMapper\Pdo\Connection\AbstractConnection; +use Phalcon\DataMapper\Pdo\Profiler\Profiler; use Phalcon\DataMapper\Pdo\Profiler\ProfilerInterface; /** @@ -25,7 +27,7 @@ class Connection extends AbstractConnection /** * @var array */ - protected $arguments = array(); + protected $arguments = []; /** @@ -41,7 +43,7 @@ class Connection extends AbstractConnection * @param array $queries * @param ProfilerInterface $profiler */ - public function __construct(string $dsn, string $username = null, string $password = null, array $options = array(), array $queries = array(), \Phalcon\DataMapper\Pdo\Profiler\ProfilerInterface $profiler = null) + public function __construct(string $dsn, string $username = null, string $password = null, array $options = [], array $queries = [], \Phalcon\DataMapper\Pdo\Profiler\ProfilerInterface $profiler = null) { } @@ -59,7 +61,7 @@ public function __debugInfo(): array * * @return void */ - public function connect() + public function connect(): void { } @@ -68,7 +70,8 @@ public function connect() * * @return void */ - public function disconnect() + public function disconnect(): void { } + } diff --git a/src/Phalcon/DataMapper/Pdo/Connection/AbstractConnection.php b/src/DataMapper/Pdo/Connection/AbstractConnection.zep.php similarity index 93% rename from src/Phalcon/DataMapper/Pdo/Connection/AbstractConnection.php rename to src/DataMapper/Pdo/Connection/AbstractConnection.zep.php index 49779664..d8eb03c9 100644 --- a/src/Phalcon/DataMapper/Pdo/Connection/AbstractConnection.php +++ b/src/DataMapper/Pdo/Connection/AbstractConnection.zep.php @@ -23,7 +23,7 @@ abstract class AbstractConnection implements \Phalcon\DataMapper\Pdo\Connection\ConnectionInterface { /** - * @var PDO + * @var \PDO */ protected $pdo; @@ -72,14 +72,14 @@ public function commit(): bool * * @return void */ - abstract public function connect(); + abstract public function connect(): void; /** * Disconnects from the database. * * @return void */ - abstract public function disconnect(); + abstract public function disconnect(): void; /** * Gets the most recent error code. @@ -119,7 +119,7 @@ public function exec(string $statement): int * * @return int */ - public function fetchAffected(string $statement, array $values = array()): int + public function fetchAffected(string $statement, array $values = []): int { } @@ -132,7 +132,7 @@ public function fetchAffected(string $statement, array $values = array()): int * * @return array */ - public function fetchAll(string $statement, array $values = array()): array + public function fetchAll(string $statement, array $values = []): array { } @@ -150,7 +150,7 @@ public function fetchAll(string $statement, array $values = array()): array * * @return array */ - public function fetchAssoc(string $statement, array $values = array()): array + public function fetchAssoc(string $statement, array $values = []): array { } @@ -163,7 +163,7 @@ public function fetchAssoc(string $statement, array $values = array()): array * * @return array */ - public function fetchColumn(string $statement, array $values = array(), int $column = 0): array + public function fetchColumn(string $statement, array $values = [], int $column = 0): array { } @@ -178,7 +178,7 @@ public function fetchColumn(string $statement, array $values = array(), int $col * * @return array */ - public function fetchGroup(string $statement, array $values = array(), int $flags = \PDO::FETCH_ASSOC): array + public function fetchGroup(string $statement, array $values = [], int $flags = \PDO::FETCH_ASSOC): array { } @@ -199,7 +199,7 @@ public function fetchGroup(string $statement, array $values = array(), int $flag * @return object * @param string $className */ - public function fetchObject(string $statement, array $values = array(), string $className = 'stdClass', array $arguments = array()) + public function fetchObject(string $statement, array $values = [], string $className = 'stdClass', array $arguments = []) { } @@ -221,7 +221,7 @@ public function fetchObject(string $statement, array $values = array(), string $ * @return array * @param string $className */ - public function fetchObjects(string $statement, array $values = array(), string $className = 'stdClass', array $arguments = array()): array + public function fetchObjects(string $statement, array $values = [], string $className = 'stdClass', array $arguments = []): array { } @@ -233,7 +233,7 @@ public function fetchObjects(string $statement, array $values = array(), string * * @return array */ - public function fetchOne(string $statement, array $values = array()): array + public function fetchOne(string $statement, array $values = []): array { } @@ -246,7 +246,7 @@ public function fetchOne(string $statement, array $values = array()): array * * @return array */ - public function fetchPairs(string $statement, array $values = array()): array + public function fetchPairs(string $statement, array $values = []): array { } @@ -258,7 +258,7 @@ public function fetchPairs(string $statement, array $values = array()): array * * @return mixed */ - public function fetchValue(string $statement, array $values = array()) + public function fetchValue(string $statement, array $values = []) { } @@ -363,7 +363,7 @@ public function lastInsertId(string $name = null): string * * @return \PDOStatement */ - public function perform(string $statement, array $values = array()): \PDOStatement + public function perform(string $statement, array $values = []): \PDOStatement { } @@ -373,9 +373,9 @@ public function perform(string $statement, array $values = array()): \PDOStateme * @param string $statement * @param array $options * - * @return PDOStatement|false + * @return \PDOStatement|false */ - public function prepare(string $statement, array $options = array()) + public function prepare(string $statement, array $options = []) { } @@ -386,7 +386,7 @@ public function prepare(string $statement, array $options = array()) * @param string $statement * @param mixed ...$fetch * - * @return PDOStatement|false + * @return \PDOStatement|false */ public function query(string $statement) { @@ -441,12 +441,11 @@ public function setProfiler(\Phalcon\DataMapper\Pdo\Profiler\ProfilerInterface $ * Bind a value using the proper PDO::PARAM_ type. * * @param \PDOStatement $statement - * @param mixed $name - * @param mixed $arguments - * + * @param mixed $name + * @param mixed $arguments * @return void */ - protected function performBind(\PDOStatement $statement, $name, $arguments) + protected function performBind(\PDOStatement $statement, $name, $arguments): void { } @@ -460,7 +459,8 @@ protected function performBind(\PDOStatement $statement, $name, $arguments) * * @return array */ - protected function fetchData(string $method, array $arguments, string $statement, array $values = array()): array + protected function fetchData(string $method, array $arguments, string $statement, array $values = []): array { } + } diff --git a/src/Phalcon/DataMapper/Pdo/Connection/ConnectionInterface.php b/src/DataMapper/Pdo/Connection/ConnectionInterface.zep.php similarity index 92% rename from src/Phalcon/DataMapper/Pdo/Connection/ConnectionInterface.php rename to src/DataMapper/Pdo/Connection/ConnectionInterface.zep.php index 9eb95478..d8392239 100644 --- a/src/Phalcon/DataMapper/Pdo/Connection/ConnectionInterface.php +++ b/src/DataMapper/Pdo/Connection/ConnectionInterface.zep.php @@ -30,14 +30,14 @@ interface ConnectionInterface extends \Phalcon\DataMapper\Pdo\Connection\PdoInte * * @return void */ - public function connect(); + public function connect(): void; /** * Disconnects from the database. * * @return void */ - public function disconnect(); + public function disconnect(): void; /** * Performs a statement and returns the number of affected rows. @@ -47,7 +47,7 @@ public function disconnect(); * * @return int */ - public function fetchAffected(string $statement, array $values = array()): int; + public function fetchAffected(string $statement, array $values = []): int; /** * Fetches a sequential array of rows from the database; the rows are @@ -58,7 +58,7 @@ public function fetchAffected(string $statement, array $values = array()): int; * * @return array */ - public function fetchAll(string $statement, array $values = array()): array; + public function fetchAll(string $statement, array $values = []): array; /** * Fetches an associative array of rows from the database; the rows are @@ -74,7 +74,7 @@ public function fetchAll(string $statement, array $values = array()): array; * * @return array */ - public function fetchAssoc(string $statement, array $values = array()): array; + public function fetchAssoc(string $statement, array $values = []): array; /** * Fetches a column of rows as a sequential array (default first one). @@ -85,7 +85,7 @@ public function fetchAssoc(string $statement, array $values = array()): array; * * @return array */ - public function fetchColumn(string $statement, array $values = array(), int $column = 0): array; + public function fetchColumn(string $statement, array $values = [], int $column = 0): array; /** * Fetches multiple from the database as an associative array. The first @@ -98,7 +98,7 @@ public function fetchColumn(string $statement, array $values = array(), int $col * * @return array */ - public function fetchGroup(string $statement, array $values = array(), int $flags = \PDO::FETCH_ASSOC): array; + public function fetchGroup(string $statement, array $values = [], int $flags = \PDO::FETCH_ASSOC): array; /** * Fetches one row from the database as an object where the column values @@ -117,7 +117,7 @@ public function fetchGroup(string $statement, array $values = array(), int $flag * @return object * @param string $className */ - public function fetchObject(string $statement, array $values = array(), string $className = 'stdClass', array $arguments = array()); + public function fetchObject(string $statement, array $values = [], string $className = 'stdClass', array $arguments = []); /** * Fetches a sequential array of rows from the database; the rows are @@ -137,7 +137,7 @@ public function fetchObject(string $statement, array $values = array(), string $ * @return array * @param string $className */ - public function fetchObjects(string $statement, array $values = array(), string $className = 'stdClass', array $arguments = array()): array; + public function fetchObjects(string $statement, array $values = [], string $className = 'stdClass', array $arguments = []): array; /** * Fetches one row from the database as an associative array. @@ -147,7 +147,7 @@ public function fetchObjects(string $statement, array $values = array(), string * * @return array */ - public function fetchOne(string $statement, array $values = array()): array; + public function fetchOne(string $statement, array $values = []): array; /** * Fetches an associative array of rows as key-value pairs (first column is @@ -158,7 +158,7 @@ public function fetchOne(string $statement, array $values = array()): array; * * @return array */ - public function fetchPairs(string $statement, array $values = array()): array; + public function fetchPairs(string $statement, array $values = []): array; /** * Fetches the very first value (i.e., first column of the first row). @@ -168,7 +168,7 @@ public function fetchPairs(string $statement, array $values = array()): array; * * @return mixed */ - public function fetchValue(string $statement, array $values = array()); + public function fetchValue(string $statement, array $values = []); /** * Return the inner PDO (if any) @@ -202,7 +202,7 @@ public function isConnected(): bool; * * @return \PDOStatement */ - public function perform(string $statement, array $values = array()): \PDOStatement; + public function perform(string $statement, array $values = []): \PDOStatement; /** * Sets the Profiler instance. @@ -210,4 +210,5 @@ public function perform(string $statement, array $values = array()): \PDOStateme * @param ProfilerInterface $profiler The Profiler instance. */ public function setProfiler(\Phalcon\DataMapper\Pdo\Profiler\ProfilerInterface $profiler); + } diff --git a/src/Phalcon/DataMapper/Pdo/Connection/Decorated.php b/src/DataMapper/Pdo/Connection/Decorated.zep.php similarity index 86% rename from src/Phalcon/DataMapper/Pdo/Connection/Decorated.php rename to src/DataMapper/Pdo/Connection/Decorated.zep.php index 80a2fb1d..012e67e3 100644 --- a/src/Phalcon/DataMapper/Pdo/Connection/Decorated.php +++ b/src/DataMapper/Pdo/Connection/Decorated.zep.php @@ -10,6 +10,7 @@ namespace Phalcon\DataMapper\Pdo\Connection; use Phalcon\DataMapper\Pdo\Exception\CannotDisconnect; +use Phalcon\DataMapper\Pdo\Profiler\Profiler; use Phalcon\DataMapper\Pdo\Profiler\ProfilerInterface; /** @@ -19,13 +20,15 @@ class Decorated extends \Phalcon\DataMapper\Pdo\Connection\AbstractConnection { /** + * * Constructor. * * This overrides the parent so that it can take an existing PDO instance * and decorate it with the extended methods. * - * @param \PDO $pdo + * @param \PDO $pdo * @param ProfilerInterface|null $profiler + * */ public function __construct(\PDO $pdo, \Phalcon\DataMapper\Pdo\Profiler\ProfilerInterface $profiler = null) { @@ -36,7 +39,7 @@ public function __construct(\PDO $pdo, \Phalcon\DataMapper\Pdo\Profiler\Profiler * * @return void */ - public function connect() + public function connect(): void { } @@ -46,7 +49,8 @@ public function connect() * @throws CannotDisconnect * @return void */ - public function disconnect() + public function disconnect(): void { } + } diff --git a/src/Phalcon/DataMapper/Pdo/Connection/PdoInterface.php b/src/DataMapper/Pdo/Connection/PdoInterface.zep.php similarity index 97% rename from src/Phalcon/DataMapper/Pdo/Connection/PdoInterface.php rename to src/DataMapper/Pdo/Connection/PdoInterface.zep.php index 8786e986..ae6a9c3e 100644 --- a/src/Phalcon/DataMapper/Pdo/Connection/PdoInterface.php +++ b/src/DataMapper/Pdo/Connection/PdoInterface.zep.php @@ -96,9 +96,9 @@ public function lastInsertId(string $name = null): string; * @param string $statement * @param array $options * - * @return PDOStatement|false + * @return \PDOStatement|false */ - public function prepare(string $statement, array $options = array()); + public function prepare(string $statement, array $options = []); /** * Queries the database and returns a PDOStatement. If the profiler is @@ -107,7 +107,7 @@ public function prepare(string $statement, array $options = array()); * @param string $statement * @param mixed ...$fetch * - * @return PDOStatement|false + * @return \PDOStatement|false */ public function query(string $statement); @@ -140,4 +140,5 @@ public function rollBack(): bool; * @return bool */ public function setAttribute(int $attribute, $value): bool; + } diff --git a/src/Phalcon/DataMapper/Pdo/ConnectionLocator.php b/src/DataMapper/Pdo/ConnectionLocator.zep.php similarity index 95% rename from src/Phalcon/DataMapper/Pdo/ConnectionLocator.php rename to src/DataMapper/Pdo/ConnectionLocator.zep.php index 996a785a..2fb8189d 100644 --- a/src/Phalcon/DataMapper/Pdo/ConnectionLocator.php +++ b/src/DataMapper/Pdo/ConnectionLocator.zep.php @@ -33,21 +33,21 @@ class ConnectionLocator implements \Phalcon\DataMapper\Pdo\ConnectionLocatorInte * * @var array */ - protected $read = array(); + protected $read = []; /** * A registry of Connection "write" factories/instances. * * @var array */ - protected $write = array(); + protected $write = []; /** * A collection of resolved instances * * @var array */ - private $instances = array(); + private $instances = []; /** @@ -57,7 +57,7 @@ class ConnectionLocator implements \Phalcon\DataMapper\Pdo\ConnectionLocatorInte * @param array $read * @param array $write */ - public function __construct(\Phalcon\DataMapper\Pdo\Connection\ConnectionInterface $master, array $read = array(), array $write = array()) + public function __construct(\Phalcon\DataMapper\Pdo\Connection\ConnectionInterface $master, array $read = [], array $write = []) { } @@ -148,4 +148,5 @@ public function setWrite(string $name, $callableObject): ConnectionLocatorInterf protected function getConnection(string $type, string $name = ''): ConnectionInterface { } + } diff --git a/src/Phalcon/DataMapper/Pdo/ConnectionLocatorInterface.php b/src/DataMapper/Pdo/ConnectionLocatorInterface.zep.php similarity index 99% rename from src/Phalcon/DataMapper/Pdo/ConnectionLocatorInterface.php rename to src/DataMapper/Pdo/ConnectionLocatorInterface.zep.php index 57a21420..46f1bad0 100644 --- a/src/Phalcon/DataMapper/Pdo/ConnectionLocatorInterface.php +++ b/src/DataMapper/Pdo/ConnectionLocatorInterface.zep.php @@ -77,4 +77,5 @@ public function setRead(string $name, $callableObject): ConnectionLocatorInterfa * @param callable $callableObject */ public function setWrite(string $name, $callableObject): ConnectionLocatorInterface; + } diff --git a/src/Phalcon/DataMapper/Pdo/Exception/CannotDisconnect.php b/src/DataMapper/Pdo/Exception/CannotDisconnect.zep.php similarity index 100% rename from src/Phalcon/DataMapper/Pdo/Exception/CannotDisconnect.php rename to src/DataMapper/Pdo/Exception/CannotDisconnect.zep.php diff --git a/src/Phalcon/DataMapper/Pdo/Exception/ConnectionNotFound.php b/src/DataMapper/Pdo/Exception/ConnectionNotFound.zep.php similarity index 100% rename from src/Phalcon/DataMapper/Pdo/Exception/ConnectionNotFound.php rename to src/DataMapper/Pdo/Exception/ConnectionNotFound.zep.php diff --git a/src/Phalcon/DataMapper/Pdo/Exception/Exception.php b/src/DataMapper/Pdo/Exception/Exception.zep.php similarity index 100% rename from src/Phalcon/DataMapper/Pdo/Exception/Exception.php rename to src/DataMapper/Pdo/Exception/Exception.zep.php diff --git a/src/DataMapper/Pdo/Profiler/MemoryLogger.zep.php b/src/DataMapper/Pdo/Profiler/MemoryLogger.zep.php new file mode 100644 index 00000000..e458d415 --- /dev/null +++ b/src/DataMapper/Pdo/Profiler/MemoryLogger.zep.php @@ -0,0 +1,111 @@ + + * + * For the full copyright and license information, please view the LICENSE.txt + * file that was distributed with this source code. + */ +namespace Phalcon\DataMapper\Pdo\Profiler; + +use Psr\Log\AbstractLogger; + +/** + * A naive memory-based logger. + * + * @property array $messages + */ +class MemoryLogger extends AbstractLogger +{ + /** + * @var array + */ + protected $messages = []; + + + /** + * Returns the logged messages. + * + * @return array + */ + public function getMessages(): array + { + } + + /** + * @param string $message + * @param mixed[] $context + */ + public function emergency($message, array $context = []) + { + } + + /** + * @param string $message + * @param mixed[] $context + */ + public function alert($message, array $context = []) + { + } + + /** + * @param string $message + * @param mixed[] $context + */ + public function critical($message, array $context = []) + { + } + + /** + * @param string $message + * @param mixed[] $context + */ + public function error($message, array $context = []) + { + } + + /** + * @param string $message + * @param mixed[] $context + */ + public function warning($message, array $context = []) + { + } + + /** + * @param string $message + * @param mixed[] $context + */ + public function notice($message, array $context = []) + { + } + + /** + * @param string $message + * @param mixed[] $context + */ + public function info($message, array $context = []) + { + } + + /** + * @param string $message + * @param mixed[] $context + */ + public function debug($message, array $context = []) + { + } + + /** + * Logs a message. + * + * @param mixed $level + * @param string $message + * @param array $context + */ + public function log($level, $message, array $context = []) + { + } + +} diff --git a/src/Phalcon/DataMapper/Pdo/Profiler/Profiler.php b/src/DataMapper/Pdo/Profiler/Profiler.zep.php similarity index 93% rename from src/Phalcon/DataMapper/Pdo/Profiler/Profiler.php rename to src/DataMapper/Pdo/Profiler/Profiler.zep.php index dc301a36..9b34a382 100644 --- a/src/Phalcon/DataMapper/Pdo/Profiler/Profiler.php +++ b/src/DataMapper/Pdo/Profiler/Profiler.zep.php @@ -9,7 +9,10 @@ */ namespace Phalcon\DataMapper\Pdo\Profiler; +use Phalcon\DataMapper\Pdo\Exception\Exception; +use Phalcon\Helper\Json; use Psr\Log\LoggerInterface; +use Psr\Log\LogLevel; /** * Sends query profiles to a logger. @@ -30,7 +33,7 @@ class Profiler implements \Phalcon\DataMapper\Pdo\Profiler\ProfilerInterface /** * @var array */ - protected $context = array(); + protected $context = []; /** * @var string @@ -64,7 +67,7 @@ public function __construct(\Psr\Log\LoggerInterface $logger = null) * @param array $values * @return void */ - public function finish(string $statement = null, array $values = array()) + public function finish(string $statement = null, array $values = []): void { } @@ -143,7 +146,8 @@ public function setLogLevel(string $logLevel): ProfilerInterface * @param string $method * @return void */ - public function start(string $method) + public function start(string $method): void { } + } diff --git a/src/Phalcon/DataMapper/Pdo/Profiler/ProfilerInterface.php b/src/DataMapper/Pdo/Profiler/ProfilerInterface.zep.php similarity index 96% rename from src/Phalcon/DataMapper/Pdo/Profiler/ProfilerInterface.php rename to src/DataMapper/Pdo/Profiler/ProfilerInterface.zep.php index c480eaa4..0bf3e90c 100644 --- a/src/Phalcon/DataMapper/Pdo/Profiler/ProfilerInterface.php +++ b/src/DataMapper/Pdo/Profiler/ProfilerInterface.zep.php @@ -24,7 +24,7 @@ interface ProfilerInterface * @param array $values * @return void */ - public function finish(string $statement = null, array $values = array()); + public function finish(string $statement = null, array $values = []): void; /** * Returns the underlying logger instance. @@ -88,5 +88,6 @@ public function setLogLevel(string $logLevel): ProfilerInterface; * @param string $method * @return void */ - public function start(string $method); + public function start(string $method): void; + } diff --git a/src/Phalcon/DataMapper/Query/AbstractConditions.php b/src/DataMapper/Query/AbstractConditions.zep.php similarity index 95% rename from src/Phalcon/DataMapper/Query/AbstractConditions.php rename to src/DataMapper/Query/AbstractConditions.zep.php index 10b49d17..041ec09a 100644 --- a/src/Phalcon/DataMapper/Query/AbstractConditions.php +++ b/src/DataMapper/Query/AbstractConditions.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\DataMapper\Query; +use Phalcon\Helper\Arr; + /** * Class AbstractConditions */ @@ -119,7 +121,7 @@ public function whereEquals(array $columnsValues): AbstractConditions * @param int $type * @return void */ - protected function addCondition(string $store, string $andor, string $condition, $value = null, int $type = -1) + protected function addCondition(string $store, string $andor, string $condition, $value = null, int $type = -1): void { } @@ -190,7 +192,7 @@ protected function buildLimitSqlsrv(): string * @param int $type * @return void */ - protected function appendCondition(string $store, string $condition, $value = null, int $type = -1) + protected function appendCondition(string $store, string $condition, $value = null, int $type = -1): void { } @@ -201,7 +203,8 @@ protected function appendCondition(string $store, string $condition, $value = nu * @param array|string $data * @return void */ - protected function processValue(string $store, $data) + protected function processValue(string $store, $data): void { } + } diff --git a/src/Phalcon/DataMapper/Query/AbstractQuery.php b/src/DataMapper/Query/AbstractQuery.zep.php similarity index 95% rename from src/Phalcon/DataMapper/Query/AbstractQuery.php rename to src/DataMapper/Query/AbstractQuery.zep.php index 480e2258..5e8a2310 100644 --- a/src/Phalcon/DataMapper/Query/AbstractQuery.php +++ b/src/DataMapper/Query/AbstractQuery.zep.php @@ -33,7 +33,7 @@ abstract class AbstractQuery /** * @var array */ - protected $store = array(); + protected $store = []; /** @@ -101,7 +101,7 @@ abstract public function getStatement(): string; /** * Performs a statement in the connection * - * @return PDOStatement + * @return \PDOStatement */ public function perform() { @@ -114,7 +114,7 @@ public function perform() * @param bool $enable * @return void */ - public function setFlag(string $flag, bool $enable = true) + public function setFlag(string $flag, bool $enable = true): void { } @@ -166,4 +166,5 @@ protected function buildReturning(): string protected function indent(array $collection, string $glue = ''): string { } + } diff --git a/src/Phalcon/DataMapper/Query/Bind.php b/src/DataMapper/Query/Bind.zep.php similarity index 91% rename from src/Phalcon/DataMapper/Query/Bind.php rename to src/DataMapper/Query/Bind.zep.php index 7eba8ebe..318cfbe7 100644 --- a/src/Phalcon/DataMapper/Query/Bind.php +++ b/src/DataMapper/Query/Bind.zep.php @@ -25,7 +25,7 @@ class Bind /** * @var array */ - protected $store = array(); + protected $store = []; /** @@ -44,7 +44,7 @@ public function bindInline($value, int $type = -1): string * @param string $key * @return void */ - public function remove(string $key) + public function remove(string $key): void { } @@ -56,7 +56,7 @@ public function remove(string $key) * @param int $type * @return void */ - public function setValue(string $key, $value, int $type = -1) + public function setValue(string $key, $value, int $type = -1): void { } @@ -67,7 +67,7 @@ public function setValue(string $key, $value, int $type = -1) * @param int $type * @return void */ - public function setValues(array $values, int $type = -1) + public function setValues(array $values, int $type = -1): void { } @@ -103,4 +103,5 @@ protected function getType($value): int protected function inlineArray(array $data, int $type): string { } + } diff --git a/src/Phalcon/DataMapper/Query/Delete.php b/src/DataMapper/Query/Delete.zep.php similarity index 93% rename from src/Phalcon/DataMapper/Query/Delete.php rename to src/DataMapper/Query/Delete.zep.php index eac8b3a2..e81567e1 100644 --- a/src/Phalcon/DataMapper/Query/Delete.php +++ b/src/DataMapper/Query/Delete.zep.php @@ -42,9 +42,9 @@ public function __construct(\Phalcon\DataMapper\Pdo\Connection $connection, Bind * * @param string $table * - * @return self + * @return Delete */ - public function from(string $table): self + public function from(string $table): Delete { } @@ -71,7 +71,8 @@ public function getStatement(): string * * @return void */ - public function reset() + public function reset(): void { } + } diff --git a/src/Phalcon/DataMapper/Query/Insert.php b/src/DataMapper/Query/Insert.zep.php similarity index 93% rename from src/Phalcon/DataMapper/Query/Insert.php rename to src/DataMapper/Query/Insert.zep.php index 79fbfc79..912234ef 100644 --- a/src/Phalcon/DataMapper/Query/Insert.php +++ b/src/DataMapper/Query/Insert.zep.php @@ -31,12 +31,12 @@ public function __construct(\Phalcon\DataMapper\Pdo\Connection $connection, Bind * Sets a column for the `INSERT` query * * @param string $column + * + * @return Insert * @param mixed $value * @param int $type - * - * @return self */ - public function column(string $column, $value = null, int $type = -1): self + public function column(string $column, $value = null, int $type = -1): Insert { } @@ -45,9 +45,9 @@ public function column(string $column, $value = null, int $type = -1): self * * @param array $columns * - * @return self + * @return Insert */ - public function columns(array $columns): self + public function columns(array $columns): Insert { } @@ -96,7 +96,7 @@ public function returning(array $columns): Insert * * @return void */ - public function reset() + public function reset(): void { } @@ -120,4 +120,5 @@ public function set(string $column, $value = null): Insert private function buildColumns(): string { } + } diff --git a/src/Phalcon/DataMapper/Query/QueryFactory.php b/src/DataMapper/Query/QueryFactory.zep.php similarity index 99% rename from src/Phalcon/DataMapper/Query/QueryFactory.php rename to src/DataMapper/Query/QueryFactory.zep.php index e135f87b..e6024897 100644 --- a/src/Phalcon/DataMapper/Query/QueryFactory.php +++ b/src/DataMapper/Query/QueryFactory.zep.php @@ -89,4 +89,5 @@ public function newSelect(\Phalcon\DataMapper\Pdo\Connection $connection): Selec public function newUpdate(\Phalcon\DataMapper\Pdo\Connection $connection): Update { } + } diff --git a/src/Phalcon/DataMapper/Query/Select.php b/src/DataMapper/Query/Select.zep.php similarity index 99% rename from src/Phalcon/DataMapper/Query/Select.php rename to src/DataMapper/Query/Select.zep.php index 11314c2a..a9ae1e03 100644 --- a/src/Phalcon/DataMapper/Query/Select.php +++ b/src/DataMapper/Query/Select.zep.php @@ -9,6 +9,9 @@ */ namespace Phalcon\DataMapper\Query; +use BadMethodCallException; +use Phalcon\Helper\Arr; + /** * Class Select * @@ -120,8 +123,6 @@ public function appendJoin(string $condition, $value = null, int $type = -1): Se * @param string ...$column * * @return Select - * @param string ...$column - * */ public function columns(): Select { @@ -292,4 +293,5 @@ private function buildColumns(): string private function buildFrom(): string { } + } diff --git a/src/Phalcon/DataMapper/Query/Update.php b/src/DataMapper/Query/Update.zep.php similarity index 93% rename from src/Phalcon/DataMapper/Query/Update.php rename to src/DataMapper/Query/Update.zep.php index da93ea5f..7dd17ee0 100644 --- a/src/Phalcon/DataMapper/Query/Update.php +++ b/src/DataMapper/Query/Update.zep.php @@ -31,12 +31,12 @@ public function __construct(\Phalcon\DataMapper\Pdo\Connection $connection, Bind * Sets a column for the `UPDATE` query * * @param string $column + * + * @return Update * @param mixed $value * @param int $type - * - * @return self */ - public function column(string $column, $value = null, int $type = -1): self + public function column(string $column, $value = null, int $type = -1): Update { } @@ -45,9 +45,9 @@ public function column(string $column, $value = null, int $type = -1): self * * @param array $columns * - * @return self + * @return Update */ - public function columns(array $columns): self + public function columns(array $columns): Update { } @@ -94,7 +94,7 @@ public function returning(array $columns): Update * * @return void */ - public function reset() + public function reset(): void { } @@ -118,4 +118,5 @@ public function set(string $column, $value = null): Update private function buildColumns(): string { } + } diff --git a/src/Phalcon/Db/AbstractDb.php b/src/Db/AbstractDb.zep.php similarity index 95% rename from src/Phalcon/Db/AbstractDb.php rename to src/Db/AbstractDb.zep.php index 7ee0ca46..770b183a 100644 --- a/src/Phalcon/Db/AbstractDb.php +++ b/src/Db/AbstractDb.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Db; +use \PDO as Pdo; + /** * Phalcon\Db and its related classes provide a simple SQL database interface * for Phalcon Framework. The Phalcon\Db is the basic class you use to connect @@ -61,7 +63,8 @@ abstract class AbstractDb * @param array $options * @return void */ - public static function setup(array $options) + public static function setup(array $options): void { } + } diff --git a/src/Phalcon/Db/Adapter/AbstractAdapter.php b/src/Db/Adapter/AbstractAdapter.zep.php similarity index 94% rename from src/Phalcon/Db/Adapter/AbstractAdapter.php rename to src/Db/Adapter/AbstractAdapter.zep.php index f7a14462..5fcddb03 100644 --- a/src/Phalcon/Db/Adapter/AbstractAdapter.php +++ b/src/Db/Adapter/AbstractAdapter.zep.php @@ -10,8 +10,15 @@ namespace Phalcon\Db\Adapter; use Phalcon\Db\DialectInterface; +use Phalcon\Db\ColumnInterface; use Phalcon\Db\Enum; +use Phalcon\Db\Exception; +use Phalcon\Db\Index; +use Phalcon\Db\IndexInterface; +use Phalcon\Db\Reference; +use Phalcon\Db\ReferenceInterface; use Phalcon\Db\RawValue; +use Phalcon\Events\EventsAwareInterface; use Phalcon\Events\ManagerInterface; /** @@ -21,23 +28,29 @@ abstract class AbstractAdapter implements \Phalcon\Db\Adapter\AdapterInterface, { /** * Connection ID + * + * @var int */ - protected static $connectionConsecutive = 0; + static protected $connectionConsecutive = 0; /** * Active connection ID * - * @var long + * @var int */ protected $connectionId; /** * Descriptor used to connect to a database + * + * @var array */ - protected $descriptor = array(); + protected $descriptor = []; /** * Dialect instance + * + * @var object */ protected $dialect; @@ -51,9 +64,9 @@ abstract class AbstractAdapter implements \Phalcon\Db\Adapter\AdapterInterface, /** * Event Manager * - * @var ManagerInterface + * @var ManagerInterface|null */ - protected $eventsManager; + protected $eventsManager = null; /** * The real SQL statement - what was executed @@ -67,7 +80,7 @@ abstract class AbstractAdapter implements \Phalcon\Db\Adapter\AdapterInterface, * * @var array */ - protected $sqlBindTypes; + protected $sqlBindTypes = []; /** * Active SQL Statement @@ -85,11 +98,15 @@ abstract class AbstractAdapter implements \Phalcon\Db\Adapter\AdapterInterface, /** * Current transaction level + * + * @var int */ protected $transactionLevel = 0; /** * Whether the database supports transactions with save points + * + * @var bool */ protected $transactionsWithSavepoints = false; @@ -243,13 +260,13 @@ public function createView(string $viewName, array $definition, string $schemaNa * DELETE FROM `robots` WHERE `id` = 101 * ``` * - * @param mixed $table - * @param mixed $whereCondition - * @param mixed $placeholders - * @param mixed $dataTypes + * @param array|string $table + * @param string|null $whereCondition + * @param array $placeholders + * @param array $dataTypes * * @return bool */ - public function delete($table, $whereCondition = null, $placeholders = null, $dataTypes = null): bool + public function delete($table, string $whereCondition = null, array $placeholders = [], array $dataTypes = []): bool { } @@ -410,11 +427,11 @@ public function escapeIdentifier($identifier): string * * @param string $sqlQuery * @param int $fetchMode - * @param mixed $bindParams - * @param mixed $bindTypes + * @param array $bindParams + * @param array $bindTypes * @return array */ - public function fetchAll(string $sqlQuery, int $fetchMode = Enum::FETCH_ASSOC, $bindParams = null, $bindTypes = null): array + public function fetchAll(string $sqlQuery, int $fetchMode = Enum::FETCH_ASSOC, array $bindParams = [], array $bindTypes = []): array { } @@ -439,7 +456,7 @@ public function fetchAll(string $sqlQuery, int $fetchMode = Enum::FETCH_ASSOC, $ * @param mixed $column * @return string|bool */ - public function fetchColumn(string $sqlQuery, array $placeholders = array(), $column = 0) + public function fetchColumn(string $sqlQuery, array $placeholders = [], $column = 0) { } @@ -461,11 +478,11 @@ public function fetchColumn(string $sqlQuery, array $placeholders = array(), $co * * @param string $sqlQuery * @param mixed $fetchMode - * @param mixed $bindParams - * @param mixed $bindTypes + * @param array $bindParams + * @param array $bindTypes * @return array */ - public function fetchOne(string $sqlQuery, $fetchMode = Enum::FETCH_ASSOC, $bindParams = null, $bindTypes = null): array + public function fetchOne(string $sqlQuery, $fetchMode = Enum::FETCH_ASSOC, array $bindParams = [], array $bindTypes = []): array { } @@ -581,9 +598,9 @@ public function getDialect(): DialectInterface /** * Returns the internal event manager * - * @return ManagerInterface + * @return ManagerInterface|null */ - public function getEventsManager(): ManagerInterface + public function getEventsManager(): ?ManagerInterface { } @@ -769,7 +786,7 @@ public function rollbackSavepoint(string $name): bool * @param \Phalcon\Events\ManagerInterface $eventsManager * @return void */ - public function setEventsManager(\Phalcon\Events\ManagerInterface $eventsManager) + public function setEventsManager(\Phalcon\Events\ManagerInterface $eventsManager): void { } @@ -956,4 +973,5 @@ public function supportsDefaultValue(): bool public function viewExists(string $viewName, string $schemaName = null): bool { } + } diff --git a/src/Phalcon/Db/Adapter/AdapterInterface.php b/src/Db/Adapter/AdapterInterface.zep.php similarity index 94% rename from src/Phalcon/Db/Adapter/AdapterInterface.php rename to src/Db/Adapter/AdapterInterface.zep.php index b789e7e0..fdf91627 100644 --- a/src/Phalcon/Db/Adapter/AdapterInterface.php +++ b/src/Db/Adapter/AdapterInterface.zep.php @@ -10,7 +10,11 @@ namespace Phalcon\Db\Adapter; use Phalcon\Db\DialectInterface; +use Phalcon\Db\ResultInterface; +use Phalcon\Db\ColumnInterface; +use Phalcon\Db\IndexInterface; use Phalcon\Db\RawValue; +use Phalcon\Db\ReferenceInterface; /** * Interface for Phalcon\Db adapters @@ -130,13 +134,13 @@ public function createView(string $viewName, array $definition, string $schemaNa /** * Deletes data from a table using custom RDBMS SQL syntax * - * @param mixed $table - * @param mixed $whereCondition - * @param mixed $placeholders - * @param mixed $dataTypes + * @param array|string $table + * @param string|null $whereCondition + * @param array $placeholders + * @param array $dataTypes * * @return bool */ - public function delete($table, $whereCondition = null, $placeholders = null, $dataTypes = null): bool; + public function delete($table, string $whereCondition = null, array $placeholders = [], array $dataTypes = []): bool; /** * Returns an array of Phalcon\Db\Column objects describing a table @@ -246,21 +250,22 @@ public function escapeString(string $str): string; * return any rows * * @param string $sqlStatement - * @param mixed $placeholders - * @param mixed $dataTypes + * @param array $bindParams + * @param array $bindTypes * @return bool */ - public function execute(string $sqlStatement, $placeholders = null, $dataTypes = null): bool; + public function execute(string $sqlStatement, array $bindParams = [], array $bindTypes = []): bool; /** * Dumps the complete result of a query into an array * * @param string $sqlQuery * @param int $fetchMode - * @param mixed $placeholders + * @param array $bindParams + * @param array $bindTypes * @return array */ - public function fetchAll(string $sqlQuery, int $fetchMode = 2, $placeholders = null): array; + public function fetchAll(string $sqlQuery, int $fetchMode = 2, array $bindParams = [], array $bindTypes = []): array; /** * Returns the n'th field of first row in a SQL query result @@ -283,17 +288,18 @@ public function fetchAll(string $sqlQuery, int $fetchMode = 2, $placeholders = n * @param mixed $column * @return string|bool */ - public function fetchColumn(string $sqlQuery, array $placeholders = array(), $column = 0); + public function fetchColumn(string $sqlQuery, array $placeholders = [], $column = 0); /** * Returns the first row in a SQL query result * * @param string $sqlQuery * @param int $fetchMode - * @param mixed $placeholders + * @param array $bindParams + * @param array $bindTypes * @return array */ - public function fetchOne(string $sqlQuery, int $fetchMode = 2, $placeholders = null): array; + public function fetchOne(string $sqlQuery, int $fetchMode = 2, array $bindParams = [], array $bindTypes = []): array; /** * Returns a SQL modified with a FOR UPDATE clause @@ -526,11 +532,11 @@ public function modifyColumn(string $tableName, string $schemaName, \Phalcon\Db\ * rows * * @param string $sqlStatement - * @param mixed $placeholders - * @param mixed $dataTypes - * @return bool|\Phalcon\Db\ResultInterface + * @param array $bindParams + * @param array $bindTypes + * @return 0|ResultInterface */ - public function query(string $sqlStatement, $placeholders = null, $dataTypes = null); + public function query(string $sqlStatement, array $bindParams = [], array $bindTypes = []); /** * Releases given savepoint @@ -660,4 +666,5 @@ public function supportsDefaultValue(): bool; * @return bool */ public function viewExists(string $viewName, string $schemaName = null): bool; + } diff --git a/src/Phalcon/Db/Adapter/Pdo/AbstractPdo.php b/src/Db/Adapter/Pdo/AbstractPdo.zep.php similarity index 89% rename from src/Phalcon/Db/Adapter/Pdo/AbstractPdo.php rename to src/Db/Adapter/Pdo/AbstractPdo.zep.php index bdcee566..73df00c8 100644 --- a/src/Phalcon/Db/Adapter/Pdo/AbstractPdo.php +++ b/src/Db/Adapter/Pdo/AbstractPdo.zep.php @@ -10,6 +10,11 @@ namespace Phalcon\Db\Adapter\Pdo; use Phalcon\Db\Adapter\AbstractAdapter; +use Phalcon\Db\Column; +use Phalcon\Db\Exception; +use Phalcon\Db\Result\Pdo as ResultPdo; +use Phalcon\Db\ResultInterface; +use Phalcon\Events\ManagerInterface; /** * Phalcon\Db\Adapter\Pdo is the Phalcon\Db that internally uses PDO to connect @@ -33,8 +38,10 @@ abstract class AbstractPdo extends AbstractAdapter { /** * Last affected rows + * + * @var int */ - protected $affectedRows; + protected $affectedRows = 0; /** * PDO Handler @@ -47,7 +54,17 @@ abstract class AbstractPdo extends AbstractAdapter /** * Constructor for Phalcon\Db\Adapter\Pdo * - * @param array $descriptor + * @param array $descriptor = [ + * 'host' => 'localhost', + * 'port' => '3306', + * 'dbname' => 'blog', + * 'username' => 'sigma' + * 'password' => 'secret' + * 'dialectClass' => null, + * 'options' => [], + * 'dsn' => null, + * 'charset' => 'utf8mb4' + * ] */ public function __construct(array $descriptor) { @@ -150,7 +167,7 @@ public function connect(array $descriptor = null): bool * @param array $params * @return array */ - public function convertBoundParams(string $sql, array $params = array()): array + public function convertBoundParams(string $sql, array $params = []): array { } @@ -190,11 +207,11 @@ public function escapeString(string $str): string * ``` * * @param string $sqlStatement - * @param mixed $bindParams - * @param mixed $bindTypes + * @param array $bindParams + * @param array $bindTypes * @return bool */ - public function execute(string $sqlStatement, $bindParams = null, $bindTypes = null): bool + public function execute(string $sqlStatement, array $bindParams = [], array $bindTypes = []): bool { } @@ -349,11 +366,11 @@ public function prepare(string $sqlStatement): \PDOStatement * ``` * * @param string $sqlStatement - * @param mixed $bindParams - * @param mixed $bindTypes - * @return bool|\Phalcon\Db\ResultInterface + * @param array $bindParams + * @param array $bindTypes + * @return 0|ResultInterface */ - public function query(string $sqlStatement, $bindParams = null, $bindTypes = null) + public function query(string $sqlStatement, array $bindParams = [], array $bindTypes = []) { } @@ -382,7 +399,8 @@ abstract protected function getDsnDefaults(): array; * @param array $parameters * @return void */ - protected function prepareRealSql(string $statement, array $parameters) + protected function prepareRealSql(string $statement, array $parameters): void { } + } diff --git a/src/Phalcon/Db/Adapter/Pdo/Mysql.php b/src/Db/Adapter/Pdo/Mysql.zep.php similarity index 90% rename from src/Phalcon/Db/Adapter/Pdo/Mysql.php rename to src/Db/Adapter/Pdo/Mysql.zep.php index 107f51ad..bb3f298b 100644 --- a/src/Phalcon/Db/Adapter/Pdo/Mysql.php +++ b/src/Db/Adapter/Pdo/Mysql.zep.php @@ -9,6 +9,16 @@ */ namespace Phalcon\Db\Adapter\Pdo; +use Phalcon\Db\Adapter\Pdo\AbstractPdo as PdoAdapter; +use Phalcon\Db\Column; +use Phalcon\Db\ColumnInterface; +use Phalcon\Db\Enum; +use Phalcon\Db\Exception; +use Phalcon\Db\Index; +use Phalcon\Db\IndexInterface; +use Phalcon\Db\Reference; +use Phalcon\Db\ReferenceInterface; + /** * Specific functions for the MySQL database system * @@ -110,4 +120,5 @@ public function describeReferences(string $table, string $schema = null): array protected function getDsnDefaults(): array { } + } diff --git a/src/Phalcon/Db/Adapter/Pdo/Postgresql.php b/src/Db/Adapter/Pdo/Postgresql.zep.php similarity index 94% rename from src/Phalcon/Db/Adapter/Pdo/Postgresql.php rename to src/Db/Adapter/Pdo/Postgresql.zep.php index 930be65a..a8e08048 100644 --- a/src/Phalcon/Db/Adapter/Pdo/Postgresql.php +++ b/src/Db/Adapter/Pdo/Postgresql.zep.php @@ -9,7 +9,15 @@ */ namespace Phalcon\Db\Adapter\Pdo; +use Phalcon\Db\Adapter\Pdo\AbstractPdo as PdoAdapter; +use Phalcon\Db\Column; +use Phalcon\Db\ColumnInterface; +use Phalcon\Db\Enum; +use Phalcon\Db\Exception; use Phalcon\Db\RawValue; +use Phalcon\Db\Reference; +use Phalcon\Db\ReferenceInterface; +use Throwable; /** * Specific functions for the PostgreSQL database system @@ -174,4 +182,5 @@ public function useExplicitIdValue(): bool protected function getDsnDefaults(): array { } + } diff --git a/src/Phalcon/Db/Adapter/Pdo/Sqlite.php b/src/Db/Adapter/Pdo/Sqlite.zep.php similarity index 92% rename from src/Phalcon/Db/Adapter/Pdo/Sqlite.php rename to src/Db/Adapter/Pdo/Sqlite.zep.php index 65220882..dcee7c3c 100644 --- a/src/Phalcon/Db/Adapter/Pdo/Sqlite.php +++ b/src/Db/Adapter/Pdo/Sqlite.zep.php @@ -9,7 +9,16 @@ */ namespace Phalcon\Db\Adapter\Pdo; +use Phalcon\Db\Adapter\Pdo\AbstractPdo as PdoAdapter; +use Phalcon\Db\Column; +use Phalcon\Db\ColumnInterface; +use Phalcon\Db\Enum; +use Phalcon\Db\Exception; +use Phalcon\Db\Index; +use Phalcon\Db\IndexInterface; use Phalcon\Db\RawValue; +use Phalcon\Db\Reference; +use Phalcon\Db\ReferenceInterface; /** * Specific functions for the SQLite database system @@ -155,4 +164,5 @@ public function supportsDefaultValue(): bool protected function getDsnDefaults(): array { } + } diff --git a/src/Phalcon/Db/Adapter/PdoFactory.php b/src/Db/Adapter/PdoFactory.zep.php similarity index 87% rename from src/Phalcon/Db/Adapter/PdoFactory.php rename to src/Db/Adapter/PdoFactory.zep.php index fb41d198..18c9bdf5 100644 --- a/src/Phalcon/Db/Adapter/PdoFactory.php +++ b/src/Db/Adapter/PdoFactory.zep.php @@ -10,6 +10,7 @@ namespace Phalcon\Db\Adapter; use Phalcon\Factory\AbstractFactory; +use Phalcon\Helper\Arr; /** * This file is part of the Phalcon Framework. @@ -22,12 +23,15 @@ class PdoFactory extends AbstractFactory { + protected $exception = 'Phalcon\\\\Db\\\\Exception'; + + /** * Constructor * * @param array $services */ - public function __construct(array $services = array()) + public function __construct(array $services = []) { } @@ -61,7 +65,7 @@ public function load($config): AdapterInterface * @param array $options * @return AdapterInterface */ - public function newInstance(string $name, array $options = array()): AdapterInterface + public function newInstance(string $name, array $options = []): AdapterInterface { } @@ -73,4 +77,5 @@ public function newInstance(string $name, array $options = array()): AdapterInte protected function getAdapters(): array { } + } diff --git a/src/Phalcon/Db/Column.php b/src/Db/Column.zep.php similarity index 94% rename from src/Phalcon/Db/Column.php rename to src/Db/Column.zep.php index 4bb01d30..9b118c87 100644 --- a/src/Phalcon/Db/Column.php +++ b/src/Db/Column.zep.php @@ -80,6 +80,11 @@ class Column implements \Phalcon\Db\ColumnInterface */ const TYPE_BIT = 19; + /** + * Binary abstract data type + */ + const TYPE_BINARY = 26; + /** * Blob abstract data type */ @@ -200,6 +205,11 @@ class Column implements \Phalcon\Db\ColumnInterface */ const TYPE_TINYTEXT = 25; + /** + * Varbinary abstract data type + */ + const TYPE_VARBINARY = 27; + /** * Varchar abstract data type */ @@ -210,7 +220,7 @@ class Column implements \Phalcon\Db\ColumnInterface * * @var string|null */ - protected $after; + protected $after = null; /** * Column is autoIncrement? @@ -221,11 +231,15 @@ class Column implements \Phalcon\Db\ColumnInterface /** * Bind Type + * + * @var int */ protected $bindType = 2; /** * Default column value + * + * @var mixed|null */ protected $_default = null; @@ -238,6 +252,8 @@ class Column implements \Phalcon\Db\ColumnInterface /** * The column have some numeric type? + * + * @var bool */ protected $isNumeric = false; @@ -251,7 +267,7 @@ class Column implements \Phalcon\Db\ColumnInterface /** * Column's comment * - * @var string + * @var string|null */ protected $comment = null; @@ -266,6 +282,8 @@ class Column implements \Phalcon\Db\ColumnInterface /** * Column is part of the primary key? + * + * @var bool */ protected $primary = false; @@ -279,7 +297,7 @@ class Column implements \Phalcon\Db\ColumnInterface /** * Integer column size * - * @var int | string + * @var int|string */ protected $size = 0; @@ -314,6 +332,8 @@ class Column implements \Phalcon\Db\ColumnInterface /** * Default column value + * + * @return mixed|null */ public function getDefault() { @@ -331,9 +351,9 @@ public function getName(): string /** * Column's comment * - * @return string + * @return string|null */ - public function getComment(): string + public function getComment(): ?string { } @@ -472,4 +492,5 @@ public function isPrimary(): bool public function isUnsigned(): bool { } + } diff --git a/src/Phalcon/Db/ColumnInterface.php b/src/Db/ColumnInterface.zep.php similarity index 99% rename from src/Phalcon/Db/ColumnInterface.php rename to src/Db/ColumnInterface.zep.php index b4745255..feecfa0b 100644 --- a/src/Phalcon/Db/ColumnInterface.php +++ b/src/Db/ColumnInterface.zep.php @@ -126,4 +126,5 @@ public function isPrimary(): bool; * @return bool */ public function isUnsigned(): bool; + } diff --git a/src/Phalcon/Db/Dialect.php b/src/Db/Dialect.zep.php similarity index 78% rename from src/Phalcon/Db/Dialect.php rename to src/Db/Dialect.zep.php index 63bd2a63..26664180 100644 --- a/src/Phalcon/Db/Dialect.php +++ b/src/Db/Dialect.zep.php @@ -15,11 +15,15 @@ */ abstract class Dialect implements \Phalcon\Db\DialectInterface { - + /** + * @var string + */ protected $escapeChar; - - protected $customFunctions; + /** + * @var array + */ + protected $customFunctions = []; /** @@ -84,10 +88,10 @@ public function forUpdate(string $sqlQuery): string * * @param array $columnList * @param string $escapeChar - * @param mixed $bindCounts + * @param array $bindCounts * @return string */ - final public function getColumnList(array $columnList, string $escapeChar = null, $bindCounts = null): string + final public function getColumnList(array $columnList, string $escapeChar = null, array $bindCounts = []): string { } @@ -103,12 +107,12 @@ public function getCustomFunctions(): array /** * Resolve Column expressions * - * @param mixed $column - * @param string $escapeChar - * @param mixed $bindCounts + * @param array|string $column + * @param string|null $escapeChar + * @param array $bindCounts * * @return string */ - final public function getSqlColumn($column, string $escapeChar = null, $bindCounts = null): string + final public function getSqlColumn($column, string $escapeChar = null, array $bindCounts = []): string { } @@ -117,10 +121,10 @@ final public function getSqlColumn($column, string $escapeChar = null, $bindCoun * * @param array $expression * @param string $escapeChar - * @param mixed $bindCounts + * @param array $bindCounts * @return string */ - public function getSqlExpression(array $expression, string $escapeChar = null, $bindCounts = null): string + public function getSqlExpression(array $expression, string $escapeChar = null, array $bindCounts = []): string { } @@ -275,11 +279,11 @@ final protected function getSqlExpressionAll(array $expression, string $escapeCh * Resolve binary operations expressions * * @param array $expression - * @param string $escapeChar - * @param mixed $bindCounts + * @param string|null $escapeChar + * @param array $bindCounts * * @return string */ - final protected function getSqlExpressionBinaryOperations(array $expression, string $escapeChar = null, $bindCounts = null): string + final protected function getSqlExpressionBinaryOperations(array $expression, string $escapeChar = null, array $bindCounts = []): string { } @@ -287,11 +291,11 @@ final protected function getSqlExpressionBinaryOperations(array $expression, str * Resolve CASE expressions * * @param array $expression - * @param string $escapeChar - * @param mixed $bindCounts + * @param string|null $escapeChar + * @param array $bindCounts * * @return string */ - final protected function getSqlExpressionCase(array $expression, string $escapeChar = null, $bindCounts = null): string + final protected function getSqlExpressionCase(array $expression, string $escapeChar = null, array $bindCounts = []): string { } @@ -299,11 +303,11 @@ final protected function getSqlExpressionCase(array $expression, string $escapeC * Resolve CAST of values * * @param array $expression - * @param string $escapeChar - * @param mixed $bindCounts + * @param string|null $escapeChar + * @param array $bindCounts * * @return string */ - final protected function getSqlExpressionCastValue(array $expression, string $escapeChar = null, $bindCounts = null): string + final protected function getSqlExpressionCastValue(array $expression, string $escapeChar = null, array $bindCounts = []): string { } @@ -311,11 +315,11 @@ final protected function getSqlExpressionCastValue(array $expression, string $es * Resolve CONVERT of values encodings * * @param array $expression - * @param string $escapeChar - * @param mixed $bindCounts + * @param string|null $escapeChar + * @param array $bindCounts * * @return string */ - final protected function getSqlExpressionConvertValue(array $expression, string $escapeChar = null, $bindCounts = null): string + final protected function getSqlExpressionConvertValue(array $expression, string $escapeChar = null, array $bindCounts = []): string { } @@ -334,23 +338,23 @@ final protected function getSqlExpressionFrom($expression, string $escapeChar = * Resolve function calls * * @param array $expression - * @param string $escapeChar - * @param mixed $bindCounts + * @param string|null $escapeChar + * @param array $bindCounts * * @return string */ - final protected function getSqlExpressionFunctionCall(array $expression, string $escapeChar = null, $bindCounts): string + final protected function getSqlExpressionFunctionCall(array $expression, string $escapeChar = null, array $bindCounts = []): string { } /** * Resolve a GROUP BY clause * - * @param mixed $expression - * @param string $escapeChar - * @param mixed $bindCounts + * @param array|string $expression + * @param string|null $escapeChar + * @param array $bindCounts * * @return string */ - final protected function getSqlExpressionGroupBy($expression, string $escapeChar = null, $bindCounts = null): string + final protected function getSqlExpressionGroupBy($expression, string $escapeChar = null, array $bindCounts = []): string { } @@ -358,35 +362,35 @@ final protected function getSqlExpressionGroupBy($expression, string $escapeChar * Resolve a HAVING clause * * @param array $expression - * @param string $escapeChar - * @param mixed $bindCounts + * @param string|null $escapeChar + * @param array $bindCounts * * @return string */ - final protected function getSqlExpressionHaving(array $expression, string $escapeChar = null, $bindCounts = null): string + final protected function getSqlExpressionHaving(array $expression, string $escapeChar = null, array $bindCounts = []): string { } /** * Resolve a JOINs clause * - * @param mixed $expression - * @param string $escapeChar - * @param mixed $bindCounts + * @param array|string $expression + * @param string|null $escapeChar + * @param array $bindCounts * * @return string */ - final protected function getSqlExpressionJoins($expression, string $escapeChar = null, $bindCounts = null): string + final protected function getSqlExpressionJoins($expression, string $escapeChar = null, array $bindCounts = []): string { } /** * Resolve a LIMIT clause * - * @param mixed $expression - * @param string $escapeChar - * @param mixed $bindCounts + * @param array|string $expression + * @param string|null $escapeChar + * @param array $bindCounts * * @return string */ - final protected function getSqlExpressionLimit($expression, string $escapeChar = null, $bindCounts = null): string + final protected function getSqlExpressionLimit($expression, string $escapeChar = null, array $bindCounts = []): string { } @@ -394,11 +398,11 @@ final protected function getSqlExpressionLimit($expression, string $escapeChar = * Resolve Lists * * @param array $expression - * @param string $escapeChar - * @param mixed $bindCounts + * @param string|null $escapeChar + * @param array $bindCounts * * @return string */ - final protected function getSqlExpressionList(array $expression, string $escapeChar = null, $bindCounts = null): string + final protected function getSqlExpressionList(array $expression, string $escapeChar = null, array $bindCounts = []): string { } @@ -406,23 +410,23 @@ final protected function getSqlExpressionList(array $expression, string $escapeC * Resolve object expressions * * @param array $expression - * @param string $escapeChar - * @param mixed $bindCounts + * @param string|null $escapeChar + * @param array $bindCounts * * @return string */ - final protected function getSqlExpressionObject(array $expression, string $escapeChar = null, $bindCounts = null): string + final protected function getSqlExpressionObject(array $expression, string $escapeChar = null, array $bindCounts = []): string { } /** * Resolve an ORDER BY clause * - * @param mixed $expression - * @param string $escapeChar - * @param mixed $bindCounts + * @param array|string $expression + * @param string|null $escapeChar + * @param array $bindCounts * * @return string */ - final protected function getSqlExpressionOrderBy($expression, string $escapeChar = null, $bindCounts = null): string + final protected function getSqlExpressionOrderBy($expression, string $escapeChar = null, array $bindCounts = []): string { } @@ -441,11 +445,11 @@ final protected function getSqlExpressionQualified(array $expression, string $es * Resolve Column expressions * * @param array $expression - * @param string $escapeChar - * @param mixed $bindCounts + * @param string|null $escapeChar + * @param array $bindCounts * @return string */ - final protected function getSqlExpressionScalar(array $expression, string $escapeChar = null, $bindCounts = null): string + final protected function getSqlExpressionScalar(array $expression, string $escapeChar = null, array $bindCounts = []): string { } @@ -453,23 +457,23 @@ final protected function getSqlExpressionScalar(array $expression, string $escap * Resolve unary operations expressions * * @param array $expression - * @param string $escapeChar - * @param mixed $bindCounts + * @param string|null $escapeChar + * @param array $bindCounts * * @return string */ - final protected function getSqlExpressionUnaryOperations(array $expression, string $escapeChar = null, $bindCounts = null): string + final protected function getSqlExpressionUnaryOperations(array $expression, string $escapeChar = null, array $bindCounts = []): string { } /** * Resolve a WHERE clause * - * @param mixed $expression - * @param string $escapeChar - * @param mixed $bindCounts + * @param array|string $expression + * @param string|null $escapeChar + * @param array $bindCounts * * @return string */ - final protected function getSqlExpressionWhere($expression, string $escapeChar = null, $bindCounts = null): string + final protected function getSqlExpressionWhere($expression, string $escapeChar = null, array $bindCounts = []): string { } @@ -509,4 +513,5 @@ protected function prepareTable(string $table, string $schema = null, string $al protected function prepareQualified(string $column, string $domain = null, string $escapeChar = null): string { } + } diff --git a/src/Phalcon/Db/Dialect/Mysql.php b/src/Db/Dialect/Mysql.zep.php similarity index 97% rename from src/Phalcon/Db/Dialect/Mysql.php rename to src/Db/Dialect/Mysql.zep.php index eeef5199..c80be775 100644 --- a/src/Phalcon/Db/Dialect/Mysql.php +++ b/src/Db/Dialect/Mysql.zep.php @@ -10,6 +10,12 @@ namespace Phalcon\Db\Dialect; use Phalcon\Db\Dialect; +use Phalcon\Db\Column; +use Phalcon\Db\Exception; +use Phalcon\Db\IndexInterface; +use Phalcon\Db\ColumnInterface; +use Phalcon\Db\ReferenceInterface; +use Phalcon\Db\DialectInterface; /** * Generates database specific SQL for the MySQL RDBMS @@ -358,4 +364,5 @@ private function checkColumnSizeAndScale(\Phalcon\Db\ColumnInterface $column): s private function checkColumnUnsigned(\Phalcon\Db\ColumnInterface $column): string { } + } diff --git a/src/Phalcon/Db/Dialect/Postgresql.php b/src/Db/Dialect/Postgresql.zep.php similarity index 97% rename from src/Phalcon/Db/Dialect/Postgresql.php rename to src/Db/Dialect/Postgresql.zep.php index 4e57d5f8..7d680ec5 100644 --- a/src/Phalcon/Db/Dialect/Postgresql.php +++ b/src/Db/Dialect/Postgresql.zep.php @@ -10,6 +10,12 @@ namespace Phalcon\Db\Dialect; use Phalcon\Db\Dialect; +use Phalcon\Db\Column; +use Phalcon\Db\Exception; +use Phalcon\Db\IndexInterface; +use Phalcon\Db\ColumnInterface; +use Phalcon\Db\ReferenceInterface; +use Phalcon\Db\DialectInterface; /** * Generates database specific SQL for the PostgreSQL RDBMS @@ -329,4 +335,5 @@ protected function castDefault(\Phalcon\Db\ColumnInterface $column): string protected function getTableOptions(array $definition): string { } + } diff --git a/src/Phalcon/Db/Dialect/Sqlite.php b/src/Db/Dialect/Sqlite.zep.php similarity index 97% rename from src/Phalcon/Db/Dialect/Sqlite.php rename to src/Db/Dialect/Sqlite.zep.php index 3b2a56cc..17f84685 100644 --- a/src/Phalcon/Db/Dialect/Sqlite.php +++ b/src/Db/Dialect/Sqlite.zep.php @@ -9,7 +9,13 @@ */ namespace Phalcon\Db\Dialect; +use Phalcon\Db\Column; +use Phalcon\Db\Exception; +use Phalcon\Db\IndexInterface; use Phalcon\Db\Dialect; +use Phalcon\Db\DialectInterface; +use Phalcon\Db\ColumnInterface; +use Phalcon\Db\ReferenceInterface; /** * Generates database specific SQL for the SQLite RDBMS @@ -352,4 +358,5 @@ public function truncateTable(string $tableName, string $schemaName): string public function viewExists(string $viewName, string $schemaName = null): string { } + } diff --git a/src/Phalcon/Db/DialectInterface.php b/src/Db/DialectInterface.zep.php similarity index 99% rename from src/Phalcon/Db/DialectInterface.php rename to src/Db/DialectInterface.zep.php index fa6b3057..8a249bc0 100644 --- a/src/Phalcon/Db/DialectInterface.php +++ b/src/Db/DialectInterface.zep.php @@ -205,10 +205,10 @@ public function getCustomFunctions(): array; * * @param array $expression * @param string $escapeChar - * @param mixed $bindCounts + * @param array $bindCounts * @return string */ - public function getSqlExpression(array $expression, string $escapeChar = null, $bindCounts = null): string; + public function getSqlExpression(array $expression, string $escapeChar = null, array $bindCounts = []): string; /** * Generates the SQL for LIMIT clause @@ -319,4 +319,5 @@ public function tableOptions(string $table, string $schema = null): string; * @return string */ public function viewExists(string $viewName, string $schemaName = null): string; + } diff --git a/src/Phalcon/Db/Enum.php b/src/Db/Enum.zep.php similarity index 99% rename from src/Phalcon/Db/Enum.php rename to src/Db/Enum.zep.php index cff4d17c..d826fa71 100644 --- a/src/Phalcon/Db/Enum.php +++ b/src/Db/Enum.zep.php @@ -64,4 +64,6 @@ class Enum const FETCH_UNIQUE = 196608; + + } diff --git a/src/Phalcon/Db/Exception.php b/src/Db/Exception.zep.php similarity index 100% rename from src/Phalcon/Db/Exception.php rename to src/Db/Exception.zep.php diff --git a/src/Phalcon/Db/Index.php b/src/Db/Index.zep.php similarity index 99% rename from src/Phalcon/Db/Index.php rename to src/Db/Index.zep.php index 1832a2f8..586c8433 100644 --- a/src/Phalcon/Db/Index.php +++ b/src/Db/Index.zep.php @@ -99,4 +99,5 @@ public function getType(): string public function __construct(string $name, array $columns, string $type = '') { } + } diff --git a/src/Phalcon/Db/IndexInterface.php b/src/Db/IndexInterface.zep.php similarity index 99% rename from src/Phalcon/Db/IndexInterface.php rename to src/Db/IndexInterface.zep.php index d981c426..f1a7074c 100644 --- a/src/Phalcon/Db/IndexInterface.php +++ b/src/Db/IndexInterface.zep.php @@ -35,4 +35,5 @@ public function getName(): string; * @return string */ public function getType(): string; + } diff --git a/src/Phalcon/Db/Profiler.php b/src/Db/Profiler.zep.php similarity index 94% rename from src/Phalcon/Db/Profiler.php rename to src/Db/Profiler.zep.php index 5aee40ff..c3abe718 100644 --- a/src/Phalcon/Db/Profiler.php +++ b/src/Db/Profiler.zep.php @@ -64,16 +64,16 @@ class Profiler { /** - * Active Phalcon\Db\Profiler\Item + * Active Item * - * @var Phalcon\Db\Profiler\Item + * @var Item */ protected $activeProfile; /** - * All the Phalcon\Db\Profiler\Item in the active profile + * All the Items in the active profile * - * @var \Phalcon\Db\Profiler\Item[] + * @var Item[] */ protected $allProfiles; @@ -150,4 +150,5 @@ public function startProfile(string $sqlStatement, $sqlVariables = null, $sqlBin public function stopProfile(): Profiler { } + } diff --git a/src/Phalcon/Db/Profiler/Item.php b/src/Db/Profiler/Item.zep.php similarity index 99% rename from src/Phalcon/Db/Profiler/Item.php rename to src/Db/Profiler/Item.zep.php index 71b5487b..24610248 100644 --- a/src/Phalcon/Db/Profiler/Item.php +++ b/src/Db/Profiler/Item.zep.php @@ -148,4 +148,5 @@ public function getSqlVariables(): array public function getTotalElapsedSeconds(): float { } + } diff --git a/src/Phalcon/Db/RawValue.php b/src/Db/RawValue.zep.php similarity index 99% rename from src/Phalcon/Db/RawValue.php rename to src/Db/RawValue.zep.php index 1ecfc9b1..27a98c78 100644 --- a/src/Phalcon/Db/RawValue.php +++ b/src/Db/RawValue.zep.php @@ -59,4 +59,5 @@ public function __toString(): string public function __construct($value) { } + } diff --git a/src/Phalcon/Db/Reference.php b/src/Db/Reference.zep.php similarity index 99% rename from src/Phalcon/Db/Reference.php rename to src/Db/Reference.zep.php index 04964948..5763cd2a 100644 --- a/src/Phalcon/Db/Reference.php +++ b/src/Db/Reference.zep.php @@ -170,4 +170,5 @@ public function getOnUpdate(): string public function __construct(string $name, array $definition) { } + } diff --git a/src/Phalcon/Db/ReferenceInterface.php b/src/Db/ReferenceInterface.zep.php similarity index 99% rename from src/Phalcon/Db/ReferenceInterface.php rename to src/Db/ReferenceInterface.zep.php index c28ff533..9e2a3bf1 100644 --- a/src/Phalcon/Db/ReferenceInterface.php +++ b/src/Db/ReferenceInterface.zep.php @@ -70,4 +70,5 @@ public function getReferencedTable(): string; * @return string */ public function getSchemaName(): string; + } diff --git a/src/Phalcon/Db/Result/Pdo.php b/src/Db/Result/Pdo.zep.php similarity index 91% rename from src/Phalcon/Db/Result/Pdo.php rename to src/Db/Result/Pdo.zep.php index c4c95ecb..4cbb2b9c 100644 --- a/src/Phalcon/Db/Result/Pdo.php +++ b/src/Db/Result/Pdo.zep.php @@ -10,6 +10,8 @@ namespace Phalcon\Db\Result; use Phalcon\Db\Enum; +use Phalcon\Db\ResultInterface; +use Phalcon\Db\Adapter\AdapterInterface; /** * Encapsulates the resultset internals @@ -28,17 +30,25 @@ */ class Pdo implements \Phalcon\Db\ResultInterface { + /** + * @var array + */ + protected $bindParams = []; - protected $bindParams; - - - protected $bindTypes; - + /** + * @var array + */ + protected $bindTypes = []; + /** + * @var AdapterInterface + */ protected $connection; /** * Active fetch mode + * + * @var int */ protected $fetchMode = Enum::FETCH_OBJ; @@ -49,14 +59,21 @@ class Pdo implements \Phalcon\Db\ResultInterface */ protected $pdoStatement; - + /** + * @var mixed + * TODO: Check if this property is used + */ protected $result; - + /** + * @var bool + */ protected $rowCount = false; - - protected $sqlStatement; + /** + * @var string|null + */ + protected $sqlStatement = null; /** @@ -88,11 +105,10 @@ public function __construct(\Phalcon\Db\Adapter\AdapterInterface $connection, \P * $row = $result->fetch(); * ``` * - * @param int $number - * + * @param int $number * * @return void */ - public function dataSeek(int $number) + public function dataSeek(int $number): void { } @@ -234,4 +250,5 @@ public function numRows(): int public function setFetchMode(int $fetchMode, $colNoOrClassNameOrObject = null, $ctorargs = null): bool { } + } diff --git a/src/Phalcon/Db/ResultInterface.php b/src/Db/ResultInterface.zep.php similarity index 99% rename from src/Phalcon/Db/ResultInterface.php rename to src/Db/ResultInterface.zep.php index f9aa480a..2728004a 100644 --- a/src/Phalcon/Db/ResultInterface.php +++ b/src/Db/ResultInterface.zep.php @@ -80,4 +80,5 @@ public function numRows(): int; * @return bool */ public function setFetchMode(int $fetchMode): bool; + } diff --git a/src/Phalcon/Di.php b/src/Di.zep.php similarity index 90% rename from src/Phalcon/Di.php rename to src/Di.zep.php index 0c6a96d9..f37413e1 100644 --- a/src/Phalcon/Di.php +++ b/src/Di.zep.php @@ -9,9 +9,17 @@ */ namespace Phalcon; +use Phalcon\Di\Service; use Phalcon\Di\DiInterface; +use Phalcon\Di\Exception; +use Phalcon\Di\Exception\ServiceResolutionException; +use Phalcon\Config\Adapter\Php; +use Phalcon\Config\Adapter\Yaml; +use Phalcon\Config\ConfigInterface; use Phalcon\Di\ServiceInterface; use Phalcon\Events\ManagerInterface; +use Phalcon\Di\InjectionAwareInterface; +use Phalcon\Di\ServiceProviderInterface; /** * Phalcon\Di is a component that implements Dependency Injection/Service @@ -58,26 +66,28 @@ class Di implements \Phalcon\Di\DiInterface * * @var ServiceInterface[] */ - protected $services = array(); + protected $services = []; /** * List of shared instances + * + * @var array */ - protected $sharedInstances = array(); + protected $sharedInstances = []; /** * Events Manager * - * @var ManagerInterface | null + * @var ManagerInterface|null */ - protected $eventsManager; + protected $eventsManager = null; /** * Latest DI build * - * @var DiInterface | null + * @var DiInterface|null */ - protected static $_default; + static protected $_default; /** @@ -94,7 +104,7 @@ public function __construct() * @param array $arguments * @return mixed|null */ - public function __call(string $method, array $arguments = array()) + public function __call(string $method, array $arguments = []) { } @@ -106,7 +116,7 @@ public function __call(string $method, array $arguments = array()) * @param string $name * @param mixed $definition * @param bool $shared - * @return bool|\Phalcon\Di\ServiceInterface + * @return 0|ServiceInterface */ public function attempt(string $name, $definition, bool $shared = false) { @@ -126,7 +136,7 @@ public function get(string $name, $parameters = null) /** * Return the latest DI created * - * @return \Phalcon\Di\DiInterface|null + * @return DiInterface|null */ public static function getDefault(): ?DiInterface { @@ -135,7 +145,7 @@ public static function getDefault(): ?DiInterface /** * Returns the internal event manager * - * @return \Phalcon\Events\ManagerInterface|null + * @return ManagerInterface|null */ public function getInternalEventsManager(): ?ManagerInterface { @@ -188,7 +198,7 @@ public function getShared(string $name, $parameters = null) * @param \Phalcon\Config\ConfigInterface $config * @return void */ - protected function loadFromConfig(\Phalcon\Config\ConfigInterface $config) + protected function loadFromConfig(\Phalcon\Config\ConfigInterface $config): void { } @@ -226,7 +236,7 @@ protected function loadFromConfig(\Phalcon\Config\ConfigInterface $config) * @param string $filePath * @return void */ - public function loadFromPhp(string $filePath) + public function loadFromPhp(string $filePath): void { } @@ -266,7 +276,7 @@ public function loadFromPhp(string $filePath) * @param array $callbacks * @return void */ - public function loadFromYaml(string $filePath, array $callbacks = null) + public function loadFromYaml(string $filePath, array $callbacks = null): void { } @@ -315,7 +325,7 @@ public function offsetExists($name): bool * @param mixed $definition * @return void */ - public function offsetSet($name, $definition) + public function offsetSet($name, $definition): void { } @@ -325,7 +335,7 @@ public function offsetSet($name, $definition) * @param mixed $name * @return void */ - public function offsetUnset($name) + public function offsetUnset($name): void { } @@ -353,7 +363,7 @@ public function offsetUnset($name) * @param \Phalcon\Di\ServiceProviderInterface $provider * @return void */ - public function register(\Phalcon\Di\ServiceProviderInterface $provider) + public function register(\Phalcon\Di\ServiceProviderInterface $provider): void { } @@ -364,7 +374,7 @@ public function register(\Phalcon\Di\ServiceProviderInterface $provider) * @param string $name * @return void */ - public function remove(string $name) + public function remove(string $name): void { } @@ -373,7 +383,7 @@ public function remove(string $name) * * @return void */ - public static function reset() + public static function reset(): void { } @@ -396,7 +406,7 @@ public function set(string $name, $definition, bool $shared = false): ServiceInt * @param \Phalcon\Di\DiInterface $container * @return void */ - public static function setDefault(\Phalcon\Di\DiInterface $container) + public static function setDefault(\Phalcon\Di\DiInterface $container): void { } @@ -430,4 +440,5 @@ public function setService(string $name, \Phalcon\Di\ServiceInterface $rawDefini public function setShared(string $name, $definition): ServiceInterface { } + } diff --git a/src/Phalcon/Di/AbstractInjectionAware.php b/src/Di/AbstractInjectionAware.zep.php similarity index 93% rename from src/Phalcon/Di/AbstractInjectionAware.php rename to src/Di/AbstractInjectionAware.zep.php index d9f43b71..08768fe1 100644 --- a/src/Phalcon/Di/AbstractInjectionAware.php +++ b/src/Di/AbstractInjectionAware.zep.php @@ -37,7 +37,8 @@ public function getDI(): DiInterface * @param DiInterface $container * @return void */ - public function setDI(DiInterface $container) + public function setDI(DiInterface $container): void { } + } diff --git a/src/Phalcon/Di/DiInterface.php b/src/Di/DiInterface.zep.php similarity index 93% rename from src/Phalcon/Di/DiInterface.php rename to src/Di/DiInterface.zep.php index 4a6baa72..4162b5b1 100644 --- a/src/Phalcon/Di/DiInterface.php +++ b/src/Di/DiInterface.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Di; +use ArrayAccess; + /** * Interface for Phalcon\Di */ @@ -23,7 +25,7 @@ interface DiInterface extends \ArrayAccess * @param mixed $definition * @param string $name * @param bool $shared - * @return bool|ServiceInterface + * @return 0|ServiceInterface */ public function attempt(string $name, $definition, bool $shared = false); @@ -89,14 +91,14 @@ public function has(string $name): bool; * @param string $name * @return void */ - public function remove(string $name); + public function remove(string $name): void; /** * Resets the internal default DI * * @return void */ - public static function reset(); + public static function reset(): void; /** * Registers a service in the services container @@ -115,7 +117,7 @@ public function set(string $name, $definition, bool $shared = false): ServiceInt * @param DiInterface $container * @return void */ - public static function setDefault(DiInterface $container); + public static function setDefault(DiInterface $container): void; /** * Sets a service using a raw Phalcon\Di\Service definition @@ -134,4 +136,5 @@ public function setService(string $name, ServiceInterface $rawDefinition): Servi * @return ServiceInterface */ public function setShared(string $name, $definition): ServiceInterface; + } diff --git a/src/Phalcon/Di/Exception.php b/src/Di/Exception.zep.php similarity index 100% rename from src/Phalcon/Di/Exception.php rename to src/Di/Exception.zep.php diff --git a/src/Phalcon/Di/Exception/ServiceResolutionException.php b/src/Di/Exception/ServiceResolutionException.zep.php similarity index 100% rename from src/Phalcon/Di/Exception/ServiceResolutionException.php rename to src/Di/Exception/ServiceResolutionException.zep.php diff --git a/src/Phalcon/Di/FactoryDefault.php b/src/Di/FactoryDefault.zep.php similarity index 94% rename from src/Phalcon/Di/FactoryDefault.php rename to src/Di/FactoryDefault.zep.php index 6d8546f6..501926d9 100644 --- a/src/Phalcon/Di/FactoryDefault.php +++ b/src/Di/FactoryDefault.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Di; +use Phalcon\Filter\FilterFactory; + /** * This is a variant of the standard Phalcon\Di. By default it automatically * registers all the services provided by the framework. Thanks to this, the @@ -24,4 +26,5 @@ class FactoryDefault extends \Phalcon\Di public function __construct() { } + } diff --git a/src/Phalcon/Di/FactoryDefault/Cli.php b/src/Di/FactoryDefault/Cli.zep.php similarity index 92% rename from src/Phalcon/Di/FactoryDefault/Cli.php rename to src/Di/FactoryDefault/Cli.zep.php index d2d3c9be..24d167c9 100644 --- a/src/Phalcon/Di/FactoryDefault/Cli.php +++ b/src/Di/FactoryDefault/Cli.zep.php @@ -10,6 +10,8 @@ namespace Phalcon\Di\FactoryDefault; use Phalcon\Di\FactoryDefault; +use Phalcon\Di\Service; +use Phalcon\Filter\FilterFactory; /** * Phalcon\Di\FactoryDefault\Cli @@ -28,4 +30,5 @@ class Cli extends FactoryDefault public function __construct() { } + } diff --git a/src/Phalcon/Di/Injectable.php b/src/Di/Injectable.zep.php similarity index 95% rename from src/Phalcon/Di/Injectable.php rename to src/Di/Injectable.zep.php index 6fab0c01..9e13f485 100644 --- a/src/Phalcon/Di/Injectable.php +++ b/src/Di/Injectable.zep.php @@ -9,6 +9,7 @@ */ namespace Phalcon\Di; +use Phalcon\Di; use Phalcon\Session\BagInterface; /** @@ -45,9 +46,9 @@ abstract class Injectable implements \Phalcon\Di\InjectionAwareInterface /** * Dependency Injector * - * @var DiInterface + * @var DiInterface|null */ - protected $container; + protected $container = null; /** @@ -85,7 +86,8 @@ public function getDI(): DiInterface * @param DiInterface $container * @return void */ - public function setDI(DiInterface $container) + public function setDI(DiInterface $container): void { } + } diff --git a/src/Phalcon/Di/InjectionAwareInterface.php b/src/Di/InjectionAwareInterface.zep.php similarity index 92% rename from src/Phalcon/Di/InjectionAwareInterface.php rename to src/Di/InjectionAwareInterface.zep.php index 97b68a27..083644b4 100644 --- a/src/Phalcon/Di/InjectionAwareInterface.php +++ b/src/Di/InjectionAwareInterface.zep.php @@ -22,7 +22,7 @@ interface InjectionAwareInterface * @param DiInterface $container * @return void */ - public function setDI(DiInterface $container); + public function setDI(DiInterface $container): void; /** * Returns the internal dependency injector @@ -30,4 +30,5 @@ public function setDI(DiInterface $container); * @return DiInterface */ public function getDI(): DiInterface; + } diff --git a/src/Phalcon/Di/Service.php b/src/Di/Service.zep.php similarity index 86% rename from src/Phalcon/Di/Service.php rename to src/Di/Service.zep.php index f3db7b4a..16dcdbd1 100644 --- a/src/Phalcon/Di/Service.php +++ b/src/Di/Service.zep.php @@ -9,6 +9,10 @@ */ namespace Phalcon\Di; +use Closure; +use Phalcon\Di\Exception\ServiceResolutionException; +use Phalcon\Di\Service\Builder; + /** * Represents individually a service in the services container * @@ -23,7 +27,9 @@ */ class Service implements \Phalcon\Di\ServiceInterface { - + /** + * @var mixed + */ protected $definition; /** @@ -36,8 +42,10 @@ class Service implements \Phalcon\Di\ServiceInterface */ protected $shared = false; - - protected $sharedInstance; + /** + * @var mixed|null + */ + protected $sharedInstance = null; /** @@ -104,7 +112,7 @@ public function resolve($parameters = null, DiInterface $container = null) * @param mixed $definition * @return void */ - public function setDefinition($definition) + public function setDefinition($definition): void { } @@ -125,7 +133,7 @@ public function setParameter(int $position, array $parameter): ServiceInterface * @param bool $shared * @return void */ - public function setShared(bool $shared) + public function setShared(bool $shared): void { } @@ -135,7 +143,8 @@ public function setShared(bool $shared) * @param mixed $sharedInstance * @return void */ - public function setSharedInstance($sharedInstance) + public function setSharedInstance($sharedInstance): void { } + } diff --git a/src/Phalcon/Di/Service/Builder.php b/src/Di/Service/Builder.zep.php similarity index 95% rename from src/Phalcon/Di/Service/Builder.php rename to src/Di/Service/Builder.zep.php index b8a5a1f3..a3079d45 100644 --- a/src/Phalcon/Di/Service/Builder.php +++ b/src/Di/Service/Builder.zep.php @@ -9,6 +9,9 @@ */ namespace Phalcon\Di\Service; +use Phalcon\Di\DiInterface; +use Phalcon\Di\Exception; + /** * Phalcon\Di\Service\Builder * @@ -51,4 +54,5 @@ private function buildParameter(\Phalcon\Di\DiInterface $container, int $positio private function buildParameters(\Phalcon\Di\DiInterface $container, array $arguments): array { } + } diff --git a/src/Phalcon/Di/ServiceInterface.php b/src/Di/ServiceInterface.zep.php similarity index 99% rename from src/Phalcon/Di/ServiceInterface.php rename to src/Di/ServiceInterface.zep.php index 52c09130..31af1fe3 100644 --- a/src/Phalcon/Di/ServiceInterface.php +++ b/src/Di/ServiceInterface.zep.php @@ -75,4 +75,5 @@ public function setParameter(int $position, array $parameter): ServiceInterface; * @param bool $shared */ public function setShared(bool $shared); + } diff --git a/src/Phalcon/Di/ServiceProviderInterface.php b/src/Di/ServiceProviderInterface.zep.php similarity index 94% rename from src/Phalcon/Di/ServiceProviderInterface.php rename to src/Di/ServiceProviderInterface.zep.php index 497bac34..f79461e6 100644 --- a/src/Phalcon/Di/ServiceProviderInterface.php +++ b/src/Di/ServiceProviderInterface.zep.php @@ -42,5 +42,6 @@ interface ServiceProviderInterface * @param DiInterface $di * @return void */ - public function register(DiInterface $di); + public function register(DiInterface $di): void; + } diff --git a/src/Phalcon/Dispatcher/AbstractDispatcher.php b/src/Dispatcher/AbstractDispatcher.zep.php similarity index 79% rename from src/Phalcon/Dispatcher/AbstractDispatcher.php rename to src/Dispatcher/AbstractDispatcher.zep.php index 9e150933..5d8bba8b 100644 --- a/src/Phalcon/Dispatcher/AbstractDispatcher.php +++ b/src/Dispatcher/AbstractDispatcher.zep.php @@ -9,8 +9,14 @@ */ namespace Phalcon\Dispatcher; +use Exception; +use Phalcon\Di\DiInterface; use Phalcon\Di\AbstractInjectionAware; +use Phalcon\Dispatcher\Exception as PhalconException; +use Phalcon\Events\EventsAwareInterface; use Phalcon\Events\ManagerInterface; +use Phalcon\Filter\FilterInterface; +use Phalcon\Mvc\Model\Binder; use Phalcon\Mvc\Model\BinderInterface; /** @@ -20,15 +26,19 @@ */ abstract class AbstractDispatcher extends AbstractInjectionAware implements \Phalcon\Dispatcher\DispatcherInterface, \Phalcon\Events\EventsAwareInterface { - - protected $activeHandler; + /** + * @var object|null + */ + protected $activeHandler = null; /** * @var array */ - protected $activeMethodMap = array(); - + protected $activeMethodMap = []; + /** + * @var string|null + */ protected $actionName = null; /** @@ -39,25 +49,31 @@ abstract class AbstractDispatcher extends AbstractInjectionAware implements \Pha /** * @var array */ - protected $camelCaseMap = array(); + protected $camelCaseMap = []; /** * @var string */ protected $defaultAction = ''; - + /** + * @var string|null + */ protected $defaultNamespace = null; - + /** + * @var string|null + */ protected $defaultHandler = null; /** * @var array */ - protected $handlerHashes = array(); - + protected $handlerHashes = []; + /** + * @var string|null + */ protected $handlerName = null; /** @@ -65,8 +81,10 @@ abstract class AbstractDispatcher extends AbstractInjectionAware implements \Pha */ protected $handlerSuffix = ''; - - protected $eventsManager; + /** + * @var ManagerInterface|null + */ + protected $eventsManager = null; /** * @var bool @@ -83,10 +101,14 @@ abstract class AbstractDispatcher extends AbstractInjectionAware implements \Pha */ protected $isControllerInitialize = false; - + /** + * @var mixed|null + */ protected $lastHandler = null; - + /** + * @var BinderInterface|null + */ protected $modelBinder = null; /** @@ -94,27 +116,39 @@ abstract class AbstractDispatcher extends AbstractInjectionAware implements \Pha */ protected $modelBinding = false; - + /** + * @var string|null + */ protected $moduleName = null; - + /** + * @var string|null + */ protected $namespaceName = null; /** * @var array */ - protected $params = array(); - + protected $params = []; + /** + * @var string|null + */ protected $previousActionName = null; - + /** + * @var string|null + */ protected $previousHandlerName = null; - + /** + * @var string|null + */ protected $previousNamespaceName = null; - + /** + * @var string|null + */ protected $returnedValue = null; @@ -123,7 +157,7 @@ abstract class AbstractDispatcher extends AbstractInjectionAware implements \Pha * @param string $actionMethod * @param array $params */ - public function callActionMethod($handler, string $actionMethod, array $params = array()) + public function callActionMethod($handler, string $actionMethod, array $params = []) { } @@ -131,7 +165,9 @@ public function callActionMethod($handler, string $actionMethod, array $params = * Process the results of the router by calling into the appropriate * controller action(s) including any routing data or injected parameters. * - * @return bool + * @return mixed Returns the dispatched handler class (the Controller for Mvc dispatching or a Task + * for CLI dispatching) or false if an exception occurred and the operation was + * stopped by returning false in the exception handler. * * @throws \Exception if any uncaught or unhandled exception occurs during the dispatcher process. */ @@ -155,7 +191,7 @@ public function dispatch(): bool * @param array $forward * @return void */ - public function forward(array $forward) + public function forward(array $forward): void { } @@ -218,9 +254,9 @@ public function getDefaultNamespace(): string /** * Returns the internal event manager * - * @return ManagerInterface + * @return ManagerInterface|null */ - public function getEventsManager(): ManagerInterface + public function getEventsManager(): ?ManagerInterface { } @@ -236,7 +272,7 @@ public function getHandlerSuffix(): string /** * Gets model binder * - * @return \Phalcon\Mvc\Model\BinderInterface|null + * @return BinderInterface|null */ public function getModelBinder(): ?BinderInterface { @@ -307,7 +343,7 @@ public function isFinished(): bool * @param string $actionName * @return void */ - public function setActionName(string $actionName) + public function setActionName(string $actionName): void { } @@ -317,7 +353,7 @@ public function setActionName(string $actionName) * @param string $actionName * @return void */ - public function setDefaultAction(string $actionName) + public function setDefaultAction(string $actionName): void { } @@ -327,7 +363,7 @@ public function setDefaultAction(string $actionName) * @param string $namespaceName * @return void */ - public function setDefaultNamespace(string $namespaceName) + public function setDefaultNamespace(string $namespaceName): void { } @@ -347,7 +383,7 @@ public function getHandlerClass(): string * @param mixed $value * @return void */ - public function setParam($param, $value) + public function setParam($param, $value): void { } @@ -357,7 +393,7 @@ public function setParam($param, $value) * @param array $params * @return void */ - public function setParams(array $params) + public function setParams(array $params): void { } @@ -367,7 +403,7 @@ public function setParams(array $params) * @param mixed $value * @return void */ - public function setReturnedValue($value) + public function setReturnedValue($value): void { } @@ -377,7 +413,7 @@ public function setReturnedValue($value) * @param string $actionSuffix * @return void */ - public function setActionSuffix(string $actionSuffix) + public function setActionSuffix(string $actionSuffix): void { } @@ -387,7 +423,7 @@ public function setActionSuffix(string $actionSuffix) * @param \Phalcon\Events\ManagerInterface $eventsManager * @return void */ - public function setEventsManager(\Phalcon\Events\ManagerInterface $eventsManager) + public function setEventsManager(\Phalcon\Events\ManagerInterface $eventsManager): void { } @@ -397,7 +433,7 @@ public function setEventsManager(\Phalcon\Events\ManagerInterface $eventsManager * @param string $handlerSuffix * @return void */ - public function setHandlerSuffix(string $handlerSuffix) + public function setHandlerSuffix(string $handlerSuffix): void { } @@ -434,7 +470,7 @@ public function setModelBinder(\Phalcon\Mvc\Model\BinderInterface $modelBinder, * @param string $moduleName * @return void */ - public function setModuleName(string $moduleName) + public function setModuleName(string $moduleName): void { } @@ -444,7 +480,7 @@ public function setModuleName(string $moduleName) * @param string $namespaceName * @return void */ - public function setNamespaceName(string $namespaceName) + public function setNamespaceName(string $namespaceName): void { } @@ -471,7 +507,7 @@ public function wasForwarded(): bool * * @return void */ - protected function resolveEmptyProperties() + protected function resolveEmptyProperties(): void { } @@ -482,4 +518,5 @@ protected function resolveEmptyProperties() protected function toCamelCase(string $input): string { } + } diff --git a/src/Phalcon/Dispatcher/DispatcherInterface.php b/src/Dispatcher/DispatcherInterface.zep.php similarity index 84% rename from src/Phalcon/Dispatcher/DispatcherInterface.php rename to src/Dispatcher/DispatcherInterface.zep.php index 9014950b..db334445 100644 --- a/src/Phalcon/Dispatcher/DispatcherInterface.php +++ b/src/Dispatcher/DispatcherInterface.zep.php @@ -18,7 +18,7 @@ interface DispatcherInterface /** * Dispatches a handle action taking into account the routing parameters * - * @return bool + * @return mixed */ public function dispatch(): bool; @@ -28,7 +28,7 @@ public function dispatch(): bool; * @param array $forward * @return void */ - public function forward(array $forward); + public function forward(array $forward): void; /** * Gets last dispatched action name @@ -96,7 +96,7 @@ public function isFinished(): bool; * @param string $actionName * @return void */ - public function setActionName(string $actionName); + public function setActionName(string $actionName): void; /** * Sets the default action suffix @@ -104,7 +104,7 @@ public function setActionName(string $actionName); * @param string $actionSuffix * @return void */ - public function setActionSuffix(string $actionSuffix); + public function setActionSuffix(string $actionSuffix): void; /** * Sets the default action name @@ -112,7 +112,7 @@ public function setActionSuffix(string $actionSuffix); * @param string $actionName * @return void */ - public function setDefaultAction(string $actionName); + public function setDefaultAction(string $actionName): void; /** * Sets the default namespace @@ -120,7 +120,7 @@ public function setDefaultAction(string $actionName); * @param string $defaultNamespace * @return void */ - public function setDefaultNamespace(string $defaultNamespace); + public function setDefaultNamespace(string $defaultNamespace): void; /** * Sets the default suffix for the handler @@ -128,7 +128,7 @@ public function setDefaultNamespace(string $defaultNamespace); * @param string $handlerSuffix * @return void */ - public function setHandlerSuffix(string $handlerSuffix); + public function setHandlerSuffix(string $handlerSuffix): void; /** * Sets the module name which the application belongs to @@ -136,7 +136,7 @@ public function setHandlerSuffix(string $handlerSuffix); * @param string $moduleName * @return void */ - public function setModuleName(string $moduleName); + public function setModuleName(string $moduleName): void; /** * Sets the namespace which the controller belongs to @@ -144,7 +144,7 @@ public function setModuleName(string $moduleName); * @param string $namespaceName * @return void */ - public function setNamespaceName(string $namespaceName); + public function setNamespaceName(string $namespaceName): void; /** * Set a param by its name or numeric index @@ -153,7 +153,7 @@ public function setNamespaceName(string $namespaceName); * @param mixed $param * @return void */ - public function setParam($param, $value); + public function setParam($param, $value): void; /** * Sets action params to be dispatched @@ -161,5 +161,6 @@ public function setParam($param, $value); * @param array $params * @return void */ - public function setParams(array $params); + public function setParams(array $params): void; + } diff --git a/src/Phalcon/Dispatcher/Exception.php b/src/Dispatcher/Exception.zep.php similarity index 99% rename from src/Phalcon/Dispatcher/Exception.php rename to src/Dispatcher/Exception.zep.php index 940db816..fb0da6ee 100644 --- a/src/Phalcon/Dispatcher/Exception.php +++ b/src/Dispatcher/Exception.zep.php @@ -31,4 +31,6 @@ class Exception extends \Phalcon\Exception const EXCEPTION_NO_DI = 0; + + } diff --git a/src/Phalcon/Domain/Payload/Payload.php b/src/Domain/Payload/Payload.zep.php similarity index 99% rename from src/Phalcon/Domain/Payload/Payload.php rename to src/Domain/Payload/Payload.zep.php index aa69fc5b..134b79c7 100644 --- a/src/Phalcon/Domain/Payload/Payload.php +++ b/src/Domain/Payload/Payload.zep.php @@ -173,4 +173,5 @@ public function setOutput($output): PayloadInterface public function setStatus($status): PayloadInterface { } + } diff --git a/src/Phalcon/Domain/Payload/PayloadFactory.php b/src/Domain/Payload/PayloadFactory.zep.php similarity index 99% rename from src/Phalcon/Domain/Payload/PayloadFactory.php rename to src/Domain/Payload/PayloadFactory.zep.php index adc02bfd..518657a0 100644 --- a/src/Phalcon/Domain/Payload/PayloadFactory.php +++ b/src/Domain/Payload/PayloadFactory.zep.php @@ -23,4 +23,5 @@ class PayloadFactory public function newInstance(): PayloadInterface { } + } diff --git a/src/Phalcon/Domain/Payload/PayloadInterface.php b/src/Domain/Payload/PayloadInterface.zep.php similarity index 100% rename from src/Phalcon/Domain/Payload/PayloadInterface.php rename to src/Domain/Payload/PayloadInterface.zep.php diff --git a/src/Phalcon/Domain/Payload/ReadableInterface.php b/src/Domain/Payload/ReadableInterface.zep.php similarity index 99% rename from src/Phalcon/Domain/Payload/ReadableInterface.php rename to src/Domain/Payload/ReadableInterface.zep.php index c364d7a9..d787b7bc 100644 --- a/src/Phalcon/Domain/Payload/ReadableInterface.php +++ b/src/Domain/Payload/ReadableInterface.zep.php @@ -58,4 +58,5 @@ public function getOutput(); * @return mixed */ public function getStatus(); + } diff --git a/src/Phalcon/Domain/Payload/Status.php b/src/Domain/Payload/Status.zep.php similarity index 99% rename from src/Phalcon/Domain/Payload/Status.php rename to src/Domain/Payload/Status.zep.php index 292e2da0..03f52886 100644 --- a/src/Phalcon/Domain/Payload/Status.php +++ b/src/Domain/Payload/Status.zep.php @@ -81,4 +81,5 @@ class Status final private function __construct() { } + } diff --git a/src/Phalcon/Domain/Payload/WriteableInterface.php b/src/Domain/Payload/WriteableInterface.zep.php similarity index 99% rename from src/Phalcon/Domain/Payload/WriteableInterface.php rename to src/Domain/Payload/WriteableInterface.zep.php index f8e01c70..a0509926 100644 --- a/src/Phalcon/Domain/Payload/WriteableInterface.php +++ b/src/Domain/Payload/WriteableInterface.zep.php @@ -70,4 +70,5 @@ public function setOutput($output): PayloadInterface; * @return PayloadInterface */ public function setStatus($status): PayloadInterface; + } diff --git a/src/Phalcon/Escaper.php b/src/Escaper.zep.php similarity index 94% rename from src/Phalcon/Escaper.php rename to src/Escaper.zep.php index 571b6ef1..167f1fee 100644 --- a/src/Phalcon/Escaper.php +++ b/src/Escaper.zep.php @@ -9,6 +9,10 @@ */ namespace Phalcon; +use Phalcon\Di\DiInterface; +use Phalcon\Escaper\EscaperInterface; +use Phalcon\Escaper\Exception; + /** * Phalcon\Escaper * @@ -188,7 +192,7 @@ final public function normalizeEncoding(string $str): string * @param bool $doubleEncode * @return void */ - public function setDoubleEncode(bool $doubleEncode) + public function setDoubleEncode(bool $doubleEncode): void { } @@ -202,7 +206,7 @@ public function setDoubleEncode(bool $doubleEncode) * @param string $encoding * @return void */ - public function setEncoding(string $encoding) + public function setEncoding(string $encoding): void { } @@ -230,7 +234,7 @@ public function setFlags(int $flags): Escaper * @param int $flags * @return void */ - public function setHtmlQuoteType(int $flags) + public function setHtmlQuoteType(int $flags): void { } @@ -243,4 +247,5 @@ public function setHtmlQuoteType(int $flags) public function url(string $url): string { } + } diff --git a/src/Phalcon/Escaper/EscaperInterface.php b/src/Escaper/EscaperInterface.zep.php similarity index 93% rename from src/Phalcon/Escaper/EscaperInterface.php rename to src/Escaper/EscaperInterface.zep.php index 09e2ba21..5ee7a1a3 100644 --- a/src/Phalcon/Escaper/EscaperInterface.php +++ b/src/Escaper/EscaperInterface.zep.php @@ -70,7 +70,7 @@ public function getEncoding(): string; * @param string $encoding * @return void */ - public function setEncoding(string $encoding); + public function setEncoding(string $encoding): void; /** * Sets the HTML quoting type for htmlspecialchars @@ -78,5 +78,6 @@ public function setEncoding(string $encoding); * @param int $quoteType * @return void */ - public function setHtmlQuoteType(int $quoteType); + public function setHtmlQuoteType(int $quoteType): void; + } diff --git a/src/Phalcon/Escaper/Exception.php b/src/Escaper/Exception.zep.php similarity index 100% rename from src/Phalcon/Escaper/Exception.php rename to src/Escaper/Exception.zep.php diff --git a/src/Phalcon/Events/Event.php b/src/Events/Event.zep.php similarity index 99% rename from src/Phalcon/Events/Event.php rename to src/Events/Event.zep.php index a2c97950..a59342ca 100644 --- a/src/Phalcon/Events/Event.php +++ b/src/Events/Event.zep.php @@ -159,4 +159,5 @@ public function setType(string $type): EventInterface public function stop(): EventInterface { } + } diff --git a/src/Phalcon/Events/EventInterface.php b/src/Events/EventInterface.zep.php similarity index 99% rename from src/Phalcon/Events/EventInterface.php rename to src/Events/EventInterface.zep.php index 51e4b8e8..02ed6dd1 100644 --- a/src/Phalcon/Events/EventInterface.php +++ b/src/Events/EventInterface.zep.php @@ -67,4 +67,5 @@ public function setType(string $type): EventInterface; * @return EventInterface */ public function stop(): EventInterface; + } diff --git a/src/Phalcon/Events/EventsAwareInterface.php b/src/Events/EventsAwareInterface.zep.php similarity index 98% rename from src/Phalcon/Events/EventsAwareInterface.php rename to src/Events/EventsAwareInterface.zep.php index 1504e5d6..4ee12e5c 100644 --- a/src/Phalcon/Events/EventsAwareInterface.php +++ b/src/Events/EventsAwareInterface.zep.php @@ -31,5 +31,6 @@ public function getEventsManager(): ?ManagerInterface; * @param ManagerInterface $eventsManager * @return void */ - public function setEventsManager(ManagerInterface $eventsManager); + public function setEventsManager(ManagerInterface $eventsManager): void; + } diff --git a/src/Phalcon/Events/Exception.php b/src/Events/Exception.zep.php similarity index 100% rename from src/Phalcon/Events/Exception.php rename to src/Events/Exception.zep.php diff --git a/src/Phalcon/Events/Manager.php b/src/Events/Manager.zep.php similarity index 90% rename from src/Phalcon/Events/Manager.php rename to src/Events/Manager.zep.php index 7b63dde3..c3759a24 100644 --- a/src/Phalcon/Events/Manager.php +++ b/src/Events/Manager.zep.php @@ -35,11 +35,15 @@ class Manager implements \Phalcon\Events\ManagerInterface */ protected $enablePriorities = false; + /** + * @var array + */ + protected $events = []; - protected $events = null; - - - protected $responses; + /** + * @var array + */ + protected $responses = []; /** @@ -50,7 +54,7 @@ class Manager implements \Phalcon\Events\ManagerInterface * @param int $priority * @return void */ - public function attach(string $eventType, $handler, int $priority = self::DEFAULT_PRIORITY) + public function attach(string $eventType, $handler, int $priority = self::DEFAULT_PRIORITY): void { } @@ -70,7 +74,7 @@ public function arePrioritiesEnabled(): bool * @param bool $collect * @return void */ - public function collectResponses(bool $collect) + public function collectResponses(bool $collect): void { } @@ -81,7 +85,7 @@ public function collectResponses(bool $collect) * @param string $eventType * @return void */ - public function detach(string $eventType, $handler) + public function detach(string $eventType, $handler): void { } @@ -91,7 +95,7 @@ public function detach(string $eventType, $handler) * @param string $type * @return void */ - public function detachAll(string $type = null) + public function detachAll(string $type = null): void { } @@ -109,7 +113,7 @@ public function detachAll(string $type = null) * @param bool $enablePriorities * @return void */ - public function enablePriorities(bool $enablePriorities) + public function enablePriorities(bool $enablePriorities): void { } @@ -189,4 +193,5 @@ public function isCollecting(): bool public function isValidHandler($handler): bool { } + } diff --git a/src/Phalcon/Events/ManagerInterface.php b/src/Events/ManagerInterface.zep.php similarity index 89% rename from src/Phalcon/Events/ManagerInterface.php rename to src/Events/ManagerInterface.zep.php index b9a9d50d..619d34c7 100644 --- a/src/Phalcon/Events/ManagerInterface.php +++ b/src/Events/ManagerInterface.zep.php @@ -24,7 +24,7 @@ interface ManagerInterface * @param string $eventType * @return void */ - public function attach(string $eventType, $handler); + public function attach(string $eventType, $handler): void; /** * Detach the listener from the events manager @@ -33,7 +33,7 @@ public function attach(string $eventType, $handler); * @param string $eventType * @return void */ - public function detach(string $eventType, $handler); + public function detach(string $eventType, $handler): void; /** * Removes all events from the EventsManager @@ -41,7 +41,7 @@ public function detach(string $eventType, $handler); * @param string $type * @return void */ - public function detachAll(string $type = null); + public function detachAll(string $type = null): void; /** * Fires an event in the events manager causing the active listeners to be @@ -70,4 +70,5 @@ public function getListeners(string $type): array; * @return bool */ public function hasListeners(string $type): bool; + } diff --git a/src/Phalcon/Exception.php b/src/Exception.zep.php similarity index 99% rename from src/Phalcon/Exception.php rename to src/Exception.zep.php index 09a741b3..129c46bf 100644 --- a/src/Phalcon/Exception.php +++ b/src/Exception.zep.php @@ -24,4 +24,5 @@ class Exception extends \Exception implements \Throwable public static function containerServiceNotFound(string $service): string { } + } diff --git a/src/Phalcon/Factory/AbstractFactory.php b/src/Factory/AbstractFactory.zep.php similarity index 72% rename from src/Phalcon/Factory/AbstractFactory.php rename to src/Factory/AbstractFactory.zep.php index 2f604c31..589644ec 100644 --- a/src/Phalcon/Factory/AbstractFactory.php +++ b/src/Factory/AbstractFactory.zep.php @@ -9,6 +9,9 @@ */ namespace Phalcon\Factory; +use Phalcon\Config; +use Phalcon\Config\ConfigInterface; + /** * This file is part of the Phalcon Framework. * @@ -19,15 +22,20 @@ */ abstract class AbstractFactory { + /** + * @var string + */ + protected $exception = 'Phalcon\\\\Exception'; + /** * @var array */ - protected $mapper = array(); + protected $mapper = []; /** * @var array */ - protected $services = array(); + protected $services = []; /** @@ -63,7 +71,18 @@ protected function getService(string $name) * @param array $services * @return void */ - protected function init(array $services = array()) + protected function init(array $services = []): void { } + + /** + * Returns the exception object for the child class + * + * @param string $message + * @return \Exception + */ + protected function getException(string $message): \Exception + { + } + } diff --git a/src/Phalcon/Factory/Exception.php b/src/Factory/Exception.zep.php similarity index 100% rename from src/Phalcon/Factory/Exception.php rename to src/Factory/Exception.zep.php diff --git a/src/Phalcon/Filter.php b/src/Filter.zep.php similarity index 88% rename from src/Phalcon/Filter.php rename to src/Filter.zep.php index 7982bcc1..4cb2e4f1 100644 --- a/src/Phalcon/Filter.php +++ b/src/Filter.zep.php @@ -9,6 +9,10 @@ */ namespace Phalcon; +use Closure; +use Phalcon\Filter\Exception; +use Phalcon\Filter\FilterInterface; + /** * Lazy loads, stores and exposes sanitizer objects */ @@ -80,12 +84,12 @@ class Filter implements \Phalcon\Filter\FilterInterface /** * @var array */ - protected $mapper = array(); + protected $mapper = []; /** * @var array */ - protected $services = array(); + protected $services = []; /** @@ -94,7 +98,7 @@ class Filter implements \Phalcon\Filter\FilterInterface * * @param array $mapper */ - public function __construct(array $mapper = array()) + public function __construct(array $mapper = []) { } @@ -138,7 +142,7 @@ public function sanitize($value, $sanitizers, bool $noRecursive = false) * @param callable $service * @return void */ - public function set(string $name, $service) + public function set(string $name, $service): void { } @@ -148,7 +152,7 @@ public function set(string $name, $service) * @param array $mapper * @return void */ - protected function init(array $mapper) + protected function init(array $mapper): void { } @@ -160,7 +164,7 @@ protected function init(array $mapper) * @param array $sanitizerParams * @return array */ - private function processArrayValues(array $values, string $sanitizerName, array $sanitizerParams = array()): array + private function processArrayValues(array $values, string $sanitizerName, array $sanitizerParams = []): array { } @@ -172,7 +176,8 @@ private function processArrayValues(array $values, string $sanitizerName, array * @param array $sanitizerParams * @return mixed */ - private function sanitizer($value, string $sanitizerName, array $sanitizerParams = array()) + private function sanitizer($value, string $sanitizerName, array $sanitizerParams = []) { } + } diff --git a/src/Phalcon/Filter/Exception.php b/src/Filter/Exception.zep.php similarity index 100% rename from src/Phalcon/Filter/Exception.php rename to src/Filter/Exception.zep.php diff --git a/src/Phalcon/Filter/FilterFactory.php b/src/Filter/FilterFactory.zep.php similarity index 97% rename from src/Phalcon/Filter/FilterFactory.php rename to src/Filter/FilterFactory.zep.php index b2b9ffd5..54b0aaf4 100644 --- a/src/Phalcon/Filter/FilterFactory.php +++ b/src/Filter/FilterFactory.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Filter; +use Phalcon\Filter; + /** * This file is part of the Phalcon Framework. * @@ -36,4 +38,5 @@ public function newInstance(): FilterInterface protected function getAdapters(): array { } + } diff --git a/src/Phalcon/Filter/FilterInterface.php b/src/Filter/FilterInterface.zep.php similarity index 99% rename from src/Phalcon/Filter/FilterInterface.php rename to src/Filter/FilterInterface.zep.php index f7922641..a455a176 100644 --- a/src/Phalcon/Filter/FilterInterface.php +++ b/src/Filter/FilterInterface.zep.php @@ -24,4 +24,5 @@ interface FilterInterface * @return mixed */ public function sanitize($value, $sanitizers, bool $noRecursive = false); + } diff --git a/src/Phalcon/Filter/Sanitize/AbsInt.php b/src/Filter/Sanitize/AbsInt.zep.php similarity index 99% rename from src/Phalcon/Filter/Sanitize/AbsInt.php rename to src/Filter/Sanitize/AbsInt.zep.php index 3aabb4f2..5b155476 100644 --- a/src/Phalcon/Filter/Sanitize/AbsInt.php +++ b/src/Filter/Sanitize/AbsInt.zep.php @@ -23,4 +23,5 @@ class AbsInt public function __invoke($input) { } + } diff --git a/src/Phalcon/Filter/Sanitize/Alnum.php b/src/Filter/Sanitize/Alnum.zep.php similarity index 99% rename from src/Phalcon/Filter/Sanitize/Alnum.php rename to src/Filter/Sanitize/Alnum.zep.php index a715f0df..29516b2e 100644 --- a/src/Phalcon/Filter/Sanitize/Alnum.php +++ b/src/Filter/Sanitize/Alnum.zep.php @@ -23,4 +23,5 @@ class Alnum public function __invoke($input) { } + } diff --git a/src/Phalcon/Filter/Sanitize/Alpha.php b/src/Filter/Sanitize/Alpha.zep.php similarity index 99% rename from src/Phalcon/Filter/Sanitize/Alpha.php rename to src/Filter/Sanitize/Alpha.zep.php index 33eefae7..65c9ad74 100644 --- a/src/Phalcon/Filter/Sanitize/Alpha.php +++ b/src/Filter/Sanitize/Alpha.zep.php @@ -23,4 +23,5 @@ class Alpha public function __invoke($input) { } + } diff --git a/src/Phalcon/Filter/Sanitize/BoolVal.php b/src/Filter/Sanitize/BoolVal.zep.php similarity index 99% rename from src/Phalcon/Filter/Sanitize/BoolVal.php rename to src/Filter/Sanitize/BoolVal.zep.php index 67d8ec37..09aa4364 100644 --- a/src/Phalcon/Filter/Sanitize/BoolVal.php +++ b/src/Filter/Sanitize/BoolVal.zep.php @@ -23,4 +23,5 @@ class BoolVal public function __invoke($input) { } + } diff --git a/src/Phalcon/Filter/Sanitize/Email.php b/src/Filter/Sanitize/Email.zep.php similarity index 99% rename from src/Phalcon/Filter/Sanitize/Email.php rename to src/Filter/Sanitize/Email.zep.php index 26f81b73..5dfab0c8 100644 --- a/src/Phalcon/Filter/Sanitize/Email.php +++ b/src/Filter/Sanitize/Email.zep.php @@ -23,4 +23,5 @@ class Email public function __invoke($input) { } + } diff --git a/src/Phalcon/Filter/Sanitize/FloatVal.php b/src/Filter/Sanitize/FloatVal.zep.php similarity index 99% rename from src/Phalcon/Filter/Sanitize/FloatVal.php rename to src/Filter/Sanitize/FloatVal.zep.php index 8ab85789..6341decf 100644 --- a/src/Phalcon/Filter/Sanitize/FloatVal.php +++ b/src/Filter/Sanitize/FloatVal.zep.php @@ -23,4 +23,5 @@ class FloatVal public function __invoke($input) { } + } diff --git a/src/Phalcon/Filter/Sanitize/IntVal.php b/src/Filter/Sanitize/IntVal.zep.php similarity index 99% rename from src/Phalcon/Filter/Sanitize/IntVal.php rename to src/Filter/Sanitize/IntVal.zep.php index dac4e5c3..1583ff87 100644 --- a/src/Phalcon/Filter/Sanitize/IntVal.php +++ b/src/Filter/Sanitize/IntVal.zep.php @@ -23,4 +23,5 @@ class IntVal public function __invoke($input) { } + } diff --git a/src/Phalcon/Filter/Sanitize/Lower.php b/src/Filter/Sanitize/Lower.zep.php similarity index 99% rename from src/Phalcon/Filter/Sanitize/Lower.php rename to src/Filter/Sanitize/Lower.zep.php index c25fda7c..a61fa1c6 100644 --- a/src/Phalcon/Filter/Sanitize/Lower.php +++ b/src/Filter/Sanitize/Lower.zep.php @@ -23,4 +23,5 @@ class Lower public function __invoke(string $input) { } + } diff --git a/src/Phalcon/Filter/Sanitize/LowerFirst.php b/src/Filter/Sanitize/LowerFirst.zep.php similarity index 99% rename from src/Phalcon/Filter/Sanitize/LowerFirst.php rename to src/Filter/Sanitize/LowerFirst.zep.php index 9595ffff..d331cf11 100644 --- a/src/Phalcon/Filter/Sanitize/LowerFirst.php +++ b/src/Filter/Sanitize/LowerFirst.zep.php @@ -23,4 +23,5 @@ class LowerFirst public function __invoke(string $input) { } + } diff --git a/src/Phalcon/Filter/Sanitize/Regex.php b/src/Filter/Sanitize/Regex.zep.php similarity index 99% rename from src/Phalcon/Filter/Sanitize/Regex.php rename to src/Filter/Sanitize/Regex.zep.php index 7441191b..8817613c 100644 --- a/src/Phalcon/Filter/Sanitize/Regex.php +++ b/src/Filter/Sanitize/Regex.zep.php @@ -25,4 +25,5 @@ class Regex public function __invoke($input, $pattern, $replace) { } + } diff --git a/src/Phalcon/Filter/Sanitize/Remove.php b/src/Filter/Sanitize/Remove.zep.php similarity index 99% rename from src/Phalcon/Filter/Sanitize/Remove.php rename to src/Filter/Sanitize/Remove.zep.php index a8225560..1c7a90e5 100644 --- a/src/Phalcon/Filter/Sanitize/Remove.php +++ b/src/Filter/Sanitize/Remove.zep.php @@ -24,4 +24,5 @@ class Remove public function __invoke($input, $replace) { } + } diff --git a/src/Phalcon/Filter/Sanitize/Replace.php b/src/Filter/Sanitize/Replace.zep.php similarity index 99% rename from src/Phalcon/Filter/Sanitize/Replace.php rename to src/Filter/Sanitize/Replace.zep.php index 6a60ca8f..05a72069 100644 --- a/src/Phalcon/Filter/Sanitize/Replace.php +++ b/src/Filter/Sanitize/Replace.zep.php @@ -25,4 +25,5 @@ class Replace public function __invoke($input, $from, $to) { } + } diff --git a/src/Phalcon/Filter/Sanitize/Special.php b/src/Filter/Sanitize/Special.zep.php similarity index 99% rename from src/Phalcon/Filter/Sanitize/Special.php rename to src/Filter/Sanitize/Special.zep.php index 9ab25623..33735f44 100644 --- a/src/Phalcon/Filter/Sanitize/Special.php +++ b/src/Filter/Sanitize/Special.zep.php @@ -23,4 +23,5 @@ class Special public function __invoke($input) { } + } diff --git a/src/Phalcon/Filter/Sanitize/SpecialFull.php b/src/Filter/Sanitize/SpecialFull.zep.php similarity index 99% rename from src/Phalcon/Filter/Sanitize/SpecialFull.php rename to src/Filter/Sanitize/SpecialFull.zep.php index f57bad76..5170dfb7 100644 --- a/src/Phalcon/Filter/Sanitize/SpecialFull.php +++ b/src/Filter/Sanitize/SpecialFull.zep.php @@ -23,4 +23,5 @@ class SpecialFull public function __invoke($input) { } + } diff --git a/src/Phalcon/Filter/Sanitize/StringVal.php b/src/Filter/Sanitize/StringVal.zep.php similarity index 99% rename from src/Phalcon/Filter/Sanitize/StringVal.php rename to src/Filter/Sanitize/StringVal.zep.php index a2fcb069..798afafc 100644 --- a/src/Phalcon/Filter/Sanitize/StringVal.php +++ b/src/Filter/Sanitize/StringVal.zep.php @@ -23,4 +23,5 @@ class StringVal public function __invoke($input) { } + } diff --git a/src/Phalcon/Filter/Sanitize/Striptags.php b/src/Filter/Sanitize/Striptags.zep.php similarity index 99% rename from src/Phalcon/Filter/Sanitize/Striptags.php rename to src/Filter/Sanitize/Striptags.zep.php index 0b8a60b2..94588b4a 100644 --- a/src/Phalcon/Filter/Sanitize/Striptags.php +++ b/src/Filter/Sanitize/Striptags.zep.php @@ -23,4 +23,5 @@ class Striptags public function __invoke(string $input) { } + } diff --git a/src/Phalcon/Filter/Sanitize/Trim.php b/src/Filter/Sanitize/Trim.zep.php similarity index 99% rename from src/Phalcon/Filter/Sanitize/Trim.php rename to src/Filter/Sanitize/Trim.zep.php index 4d20bd15..73b27c53 100644 --- a/src/Phalcon/Filter/Sanitize/Trim.php +++ b/src/Filter/Sanitize/Trim.zep.php @@ -23,4 +23,5 @@ class Trim public function __invoke(string $input) { } + } diff --git a/src/Phalcon/Filter/Sanitize/Upper.php b/src/Filter/Sanitize/Upper.zep.php similarity index 99% rename from src/Phalcon/Filter/Sanitize/Upper.php rename to src/Filter/Sanitize/Upper.zep.php index 73eaa13a..b6232b24 100644 --- a/src/Phalcon/Filter/Sanitize/Upper.php +++ b/src/Filter/Sanitize/Upper.zep.php @@ -23,4 +23,5 @@ class Upper public function __invoke(string $input) { } + } diff --git a/src/Phalcon/Filter/Sanitize/UpperFirst.php b/src/Filter/Sanitize/UpperFirst.zep.php similarity index 99% rename from src/Phalcon/Filter/Sanitize/UpperFirst.php rename to src/Filter/Sanitize/UpperFirst.zep.php index 52a48308..29abcedd 100644 --- a/src/Phalcon/Filter/Sanitize/UpperFirst.php +++ b/src/Filter/Sanitize/UpperFirst.zep.php @@ -23,4 +23,5 @@ class UpperFirst public function __invoke(string $input) { } + } diff --git a/src/Phalcon/Filter/Sanitize/UpperWords.php b/src/Filter/Sanitize/UpperWords.zep.php similarity index 99% rename from src/Phalcon/Filter/Sanitize/UpperWords.php rename to src/Filter/Sanitize/UpperWords.zep.php index 497cf04f..3f7fb9ee 100644 --- a/src/Phalcon/Filter/Sanitize/UpperWords.php +++ b/src/Filter/Sanitize/UpperWords.zep.php @@ -23,4 +23,5 @@ class UpperWords public function __invoke(string $input) { } + } diff --git a/src/Phalcon/Filter/Sanitize/Url.php b/src/Filter/Sanitize/Url.zep.php similarity index 99% rename from src/Phalcon/Filter/Sanitize/Url.php rename to src/Filter/Sanitize/Url.zep.php index 8a9ee8d9..fdd131c4 100644 --- a/src/Phalcon/Filter/Sanitize/Url.php +++ b/src/Filter/Sanitize/Url.zep.php @@ -23,4 +23,5 @@ class Url public function __invoke($input) { } + } diff --git a/src/Phalcon/Flash/AbstractFlash.php b/src/Flash/AbstractFlash.zep.php similarity index 97% rename from src/Phalcon/Flash/AbstractFlash.php rename to src/Flash/AbstractFlash.zep.php index ba47a1f3..df6b5037 100644 --- a/src/Phalcon/Flash/AbstractFlash.php +++ b/src/Flash/AbstractFlash.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Flash; +use Phalcon\Di; +use Phalcon\Di\DiInterface; use Phalcon\Di\AbstractInjectionAware; use Phalcon\Escaper\EscaperInterface; use Phalcon\Session\ManagerInterface as SessionInterface; @@ -37,7 +39,7 @@ abstract class AbstractFlash extends AbstractInjectionAware implements \Phalcon\ /** * @var array */ - protected $cssClasses = array(); + protected $cssClasses = []; /** * @var string @@ -57,7 +59,7 @@ abstract class AbstractFlash extends AbstractInjectionAware implements \Phalcon\ /** * @var array */ - protected $messages = array(); + protected $messages = []; /** * @var SessionInterface | null @@ -101,7 +103,7 @@ public function __construct(\Phalcon\Escaper\EscaperInterface $escaper = null, \ * * @return void */ - public function clear() + public function clear(): void { } @@ -276,4 +278,5 @@ private function prepareEscapedMessage(string $message): string private function prepareHtmlMessage(string $type, string $message): string { } + } diff --git a/src/Phalcon/Flash/Direct.php b/src/Flash/Direct.zep.php similarity index 93% rename from src/Phalcon/Flash/Direct.php rename to src/Flash/Direct.zep.php index 2031665f..c903cf84 100644 --- a/src/Phalcon/Flash/Direct.php +++ b/src/Flash/Direct.zep.php @@ -33,7 +33,8 @@ public function message(string $type, $message): ?string * @param bool $remove * @return void */ - public function output(bool $remove = true) + public function output(bool $remove = true): void { } + } diff --git a/src/Phalcon/Flash/Exception.php b/src/Flash/Exception.zep.php similarity index 100% rename from src/Phalcon/Flash/Exception.php rename to src/Flash/Exception.zep.php diff --git a/src/Phalcon/Flash/FlashInterface.php b/src/Flash/FlashInterface.zep.php similarity index 99% rename from src/Phalcon/Flash/FlashInterface.php rename to src/Flash/FlashInterface.zep.php index 5e5824bf..a459ca0f 100644 --- a/src/Phalcon/Flash/FlashInterface.php +++ b/src/Flash/FlashInterface.zep.php @@ -57,4 +57,5 @@ public function success(string $message): ?string; * @param string $message */ public function warning(string $message): ?string; + } diff --git a/src/Phalcon/Flash/Session.php b/src/Flash/Session.zep.php similarity index 85% rename from src/Phalcon/Flash/Session.php rename to src/Flash/Session.zep.php index d57c0c51..fc4a0066 100644 --- a/src/Phalcon/Flash/Session.php +++ b/src/Flash/Session.zep.php @@ -25,15 +25,16 @@ class Session extends \Phalcon\Flash\AbstractFlash * * @return void */ - public function clear() + public function clear(): void { } /** * Returns the messages in the session flasher * - * @param mixed $type + * @param string|null $type * @param bool $remove + * * @return array */ public function getMessages($type = null, bool $remove = true): array @@ -43,7 +44,8 @@ public function getMessages($type = null, bool $remove = true): array /** * Checks whether there are messages * - * @param mixed $type + * @param string|null $type + * * @return bool */ public function has($type = null): bool @@ -54,10 +56,10 @@ public function has($type = null): bool * Adds a message to the session flasher * * @return null|string|void - * @param string $type + * @param mixed $type * @param string $message */ - public function message(string $type, string $message): ?string + public function message($type, string $message): ?string { } @@ -67,15 +69,16 @@ public function message(string $type, string $message): ?string * @param bool $remove * @return void */ - public function output(bool $remove = true) + public function output(bool $remove = true): void { } /** * Returns the messages stored in session * - * @param bool $remove - * @param mixed $type + * @param bool $remove + * @param string|null $type + * * @return array */ protected function getSessionMessages(bool $remove, $type = null): array @@ -100,4 +103,5 @@ protected function setSessionMessages(array $messages): array public function getSessionService(): ManagerInterface { } + } diff --git a/src/Phalcon/Forms/Element/AbstractElement.php b/src/Forms/Element/AbstractElement.zep.php similarity index 88% rename from src/Phalcon/Forms/Element/AbstractElement.php rename to src/Forms/Element/AbstractElement.zep.php index f9397385..2f776b4a 100644 --- a/src/Phalcon/Forms/Element/AbstractElement.php +++ b/src/Forms/Element/AbstractElement.zep.php @@ -9,42 +9,63 @@ */ namespace Phalcon\Forms\Element; +use InvalidArgumentException; use Phalcon\Forms\Form; +use Phalcon\Forms\Exception; +use Phalcon\Messages\MessageInterface; use Phalcon\Messages\Messages; +use Phalcon\Tag; +use Phalcon\Validation\ValidatorInterface; /** * This is a base class for form elements */ abstract class AbstractElement implements \Phalcon\Forms\Element\ElementInterface { + /** + * @var array + */ + protected $attributes = []; - protected $attributes; - - - protected $filters; - - - protected $form; - + /** + * @var array + */ + protected $filters = []; - protected $label; + /** + * @var Form|null + */ + protected $form = null; + /** + * @var string|null + */ + protected $label = null; + /** + * @var Messages + */ protected $messages; - + /** + * @var string + */ protected $name; - - protected $options; - /** * @var array */ - protected $validators = array(); + protected $options = []; + /** + * @var array + */ + protected $validators = []; - protected $value; + /** + * @var mixed|null + */ + protected $value = null; /** @@ -53,7 +74,7 @@ abstract class AbstractElement implements \Phalcon\Forms\Element\ElementInterfac * @param string $name Attribute name (value of 'name' attribute of HTML element) * @param array $attributes Additional HTML element attributes */ - public function __construct(string $name, array $attributes = array()) + public function __construct(string $name, array $attributes = []) { } @@ -89,10 +110,8 @@ public function addValidator(\Phalcon\Validation\ValidatorInterface $validator): /** * Adds a group of validators * - * @param \Phalcon\Validation\ValidatorInterface[] validators + * @param \Phalcon\Validation\ValidatorInterface[] $validators * @param bool $merge - * @param array $validators - * @param \Phalcon\Validation\ValidatorInterface [] validators * @return ElementInterface */ public function addValidators(array $validators, bool $merge = true): ElementInterface @@ -246,7 +265,7 @@ public function hasMessages(): bool * @param array $attributes * @return string */ - public function label(array $attributes = array()): string + public function label(array $attributes = []): string { } @@ -258,7 +277,7 @@ public function label(array $attributes = array()): string * @param bool $useChecked * @return array */ - public function prepareAttributes(array $attributes = array(), bool $useChecked = false): array + public function prepareAttributes(array $attributes = [], bool $useChecked = false): array { } @@ -364,4 +383,5 @@ public function setUserOption(string $option, $value): ElementInterface public function setUserOptions(array $options): ElementInterface { } + } diff --git a/src/Phalcon/Forms/Element/Check.php b/src/Forms/Element/Check.zep.php similarity index 87% rename from src/Phalcon/Forms/Element/Check.php rename to src/Forms/Element/Check.zep.php index 3a0a77d0..d028c0d3 100644 --- a/src/Phalcon/Forms/Element/Check.php +++ b/src/Forms/Element/Check.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Forms\Element; +use Phalcon\Tag; + /** * Phalcon\Forms\Element\Check * @@ -23,7 +25,8 @@ class Check extends \Phalcon\Forms\Element\AbstractElement * @param array $attributes * @return string */ - public function render(array $attributes = array()): string + public function render(array $attributes = []): string { } + } diff --git a/src/Phalcon/Forms/Element/Date.php b/src/Forms/Element/Date.zep.php similarity index 86% rename from src/Phalcon/Forms/Element/Date.php rename to src/Forms/Element/Date.zep.php index fc2cc229..497ad8a0 100644 --- a/src/Phalcon/Forms/Element/Date.php +++ b/src/Forms/Element/Date.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Forms\Element; +use Phalcon\Tag; + /** * Component INPUT[type=date] for forms */ @@ -21,7 +23,8 @@ class Date extends \Phalcon\Forms\Element\AbstractElement * @param array $attributes * @return string */ - public function render(array $attributes = array()): string + public function render(array $attributes = []): string { } + } diff --git a/src/Phalcon/Forms/Element/ElementInterface.php b/src/Forms/Element/ElementInterface.zep.php similarity index 94% rename from src/Phalcon/Forms/Element/ElementInterface.php rename to src/Forms/Element/ElementInterface.zep.php index ec77a1d4..3cbaa21f 100644 --- a/src/Phalcon/Forms/Element/ElementInterface.php +++ b/src/Forms/Element/ElementInterface.zep.php @@ -10,7 +10,9 @@ namespace Phalcon\Forms\Element; use Phalcon\Forms\Form; +use Phalcon\Messages\MessageInterface; use Phalcon\Messages\Messages; +use Phalcon\Validation\ValidatorInterface; /** * Interface for Phalcon\Forms\Element classes @@ -37,10 +39,8 @@ public function addValidator(\Phalcon\Validation\ValidatorInterface $validator): /** * Adds a group of validators * - * @param \Phalcon\Validation\ValidatorInterface[] - * @param array $validators - * @param bool $merge - * @param \Phalcon\Validation\ValidatorInterface [] + * @param \Phalcon\Validation\ValidatorInterface[] $validators + * @param bool $merge * * @return ElementInterface */ public function addValidators(array $validators, bool $merge = true): ElementInterface; @@ -171,7 +171,7 @@ public function label(): string; * @param bool $useChecked * @return array */ - public function prepareAttributes(array $attributes = array(), bool $useChecked = false): array; + public function prepareAttributes(array $attributes = [], bool $useChecked = false): array; /** * Renders the element widget @@ -179,7 +179,7 @@ public function prepareAttributes(array $attributes = array(), bool $useChecked * @param array $attributes * @return string */ - public function render(array $attributes = array()): string; + public function render(array $attributes = []): string; /** * Sets a default attribute for the element @@ -263,4 +263,5 @@ public function setUserOption(string $option, $value): ElementInterface; * @return ElementInterface */ public function setUserOptions(array $options): ElementInterface; + } diff --git a/src/Phalcon/Forms/Element/Email.php b/src/Forms/Element/Email.zep.php similarity index 87% rename from src/Phalcon/Forms/Element/Email.php rename to src/Forms/Element/Email.zep.php index dcd634f4..2ab7cb78 100644 --- a/src/Phalcon/Forms/Element/Email.php +++ b/src/Forms/Element/Email.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Forms\Element; +use Phalcon\Tag; + /** * Phalcon\Forms\Element\Email * @@ -23,7 +25,8 @@ class Email extends \Phalcon\Forms\Element\AbstractElement * @param array $attributes * @return string */ - public function render(array $attributes = array()): string + public function render(array $attributes = []): string { } + } diff --git a/src/Phalcon/Forms/Element/File.php b/src/Forms/Element/File.zep.php similarity index 86% rename from src/Phalcon/Forms/Element/File.php rename to src/Forms/Element/File.zep.php index 4210ffd3..a0d0af35 100644 --- a/src/Phalcon/Forms/Element/File.php +++ b/src/Forms/Element/File.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Forms\Element; +use Phalcon\Tag; + /** * Component INPUT[type=file] for forms */ @@ -21,7 +23,8 @@ class File extends \Phalcon\Forms\Element\AbstractElement * @param array $attributes * @return string */ - public function render(array $attributes = array()): string + public function render(array $attributes = []): string { } + } diff --git a/src/Phalcon/Forms/Element/Hidden.php b/src/Forms/Element/Hidden.zep.php similarity index 87% rename from src/Phalcon/Forms/Element/Hidden.php rename to src/Forms/Element/Hidden.zep.php index 212274f9..7e9b47f0 100644 --- a/src/Phalcon/Forms/Element/Hidden.php +++ b/src/Forms/Element/Hidden.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Forms\Element; +use Phalcon\Tag; + /** * Phalcon\Forms\Element\Hidden * @@ -23,7 +25,8 @@ class Hidden extends \Phalcon\Forms\Element\AbstractElement * @param array $attributes * @return string */ - public function render(array $attributes = array()): string + public function render(array $attributes = []): string { } + } diff --git a/src/Phalcon/Forms/Element/Numeric.php b/src/Forms/Element/Numeric.zep.php similarity index 89% rename from src/Phalcon/Forms/Element/Numeric.php rename to src/Forms/Element/Numeric.zep.php index eaa76856..40900e7c 100644 --- a/src/Phalcon/Forms/Element/Numeric.php +++ b/src/Forms/Element/Numeric.zep.php @@ -25,7 +25,8 @@ class Numeric extends \Phalcon\Forms\Element\AbstractElement * @param array $attributes * @return string */ - public function render(array $attributes = array()): string + public function render(array $attributes = []): string { } + } diff --git a/src/Phalcon/Forms/Element/Password.php b/src/Forms/Element/Password.zep.php similarity index 90% rename from src/Phalcon/Forms/Element/Password.php rename to src/Forms/Element/Password.zep.php index 99f283ab..a19d8fba 100644 --- a/src/Phalcon/Forms/Element/Password.php +++ b/src/Forms/Element/Password.zep.php @@ -25,7 +25,8 @@ class Password extends \Phalcon\Forms\Element\AbstractElement * @param array $attributes * @return string */ - public function render(array $attributes = array()): string + public function render(array $attributes = []): string { } + } diff --git a/src/Phalcon/Forms/Element/Radio.php b/src/Forms/Element/Radio.zep.php similarity index 89% rename from src/Phalcon/Forms/Element/Radio.php rename to src/Forms/Element/Radio.zep.php index 727c138f..e5e2e655 100644 --- a/src/Phalcon/Forms/Element/Radio.php +++ b/src/Forms/Element/Radio.zep.php @@ -25,7 +25,8 @@ class Radio extends \Phalcon\Forms\Element\AbstractElement * @param array $attributes * @return string */ - public function render(array $attributes = array()): string + public function render(array $attributes = []): string { } + } diff --git a/src/Phalcon/Forms/Element/Select.php b/src/Forms/Element/Select.zep.php similarity index 84% rename from src/Phalcon/Forms/Element/Select.php rename to src/Forms/Element/Select.zep.php index fb9b323e..28a7c46d 100644 --- a/src/Phalcon/Forms/Element/Select.php +++ b/src/Forms/Element/Select.zep.php @@ -18,8 +18,10 @@ */ class Select extends \Phalcon\Forms\Element\AbstractElement { - - protected $optionsValues; + /** + * @var object|array|null + */ + protected $optionsValues = null; /** @@ -29,7 +31,7 @@ class Select extends \Phalcon\Forms\Element\AbstractElement * @param array $attributes * @param string $name */ - public function __construct(string $name, $options = null, $attributes = null) + public function __construct(string $name, $options = null, array $attributes = []) { } @@ -58,7 +60,7 @@ public function getOptions() * @param array $attributes * @return string */ - public function render(array $attributes = array()): string + public function render(array $attributes = []): string { } @@ -71,4 +73,5 @@ public function render(array $attributes = array()): string public function setOptions($options): ElementInterface { } + } diff --git a/src/Phalcon/Forms/Element/Submit.php b/src/Forms/Element/Submit.zep.php similarity index 89% rename from src/Phalcon/Forms/Element/Submit.php rename to src/Forms/Element/Submit.zep.php index 7b4052fa..72800381 100644 --- a/src/Phalcon/Forms/Element/Submit.php +++ b/src/Forms/Element/Submit.zep.php @@ -23,7 +23,8 @@ class Submit extends \Phalcon\Forms\Element\AbstractElement * @param array $attributes * @return string */ - public function render(array $attributes = array()): string + public function render(array $attributes = []): string { } + } diff --git a/src/Phalcon/Forms/Element/Text.php b/src/Forms/Element/Text.zep.php similarity index 89% rename from src/Phalcon/Forms/Element/Text.php rename to src/Forms/Element/Text.zep.php index ff3a434d..1dfc15c3 100644 --- a/src/Phalcon/Forms/Element/Text.php +++ b/src/Forms/Element/Text.zep.php @@ -25,7 +25,8 @@ class Text extends \Phalcon\Forms\Element\AbstractElement * @param array $attributes * @return string */ - public function render(array $attributes = array()): string + public function render(array $attributes = []): string { } + } diff --git a/src/Phalcon/Forms/Element/TextArea.php b/src/Forms/Element/TextArea.zep.php similarity index 88% rename from src/Phalcon/Forms/Element/TextArea.php rename to src/Forms/Element/TextArea.zep.php index f7885541..2ccc6b14 100644 --- a/src/Phalcon/Forms/Element/TextArea.php +++ b/src/Forms/Element/TextArea.zep.php @@ -23,7 +23,8 @@ class TextArea extends \Phalcon\Forms\Element\AbstractElement * @param array $attributes * @return string */ - public function render(array $attributes = array()): string + public function render(array $attributes = []): string { } + } diff --git a/src/Phalcon/Forms/Exception.php b/src/Forms/Exception.zep.php similarity index 100% rename from src/Phalcon/Forms/Exception.php rename to src/Forms/Exception.zep.php diff --git a/src/Phalcon/Forms/Form.php b/src/Forms/Form.zep.php similarity index 86% rename from src/Phalcon/Forms/Form.php rename to src/Forms/Form.zep.php index 6d8bffe9..2f5669fc 100644 --- a/src/Phalcon/Forms/Form.php +++ b/src/Forms/Form.zep.php @@ -9,11 +9,18 @@ */ namespace Phalcon\Forms; +use Countable; +use Iterator; use Phalcon\Di\Injectable; +use Phalcon\Di\DiInterface; +use Phalcon\Filter\FilterInterface; use Phalcon\Forms\Element\ElementInterface; use Phalcon\Html\Attributes; use Phalcon\Html\Attributes\AttributesInterface; use Phalcon\Messages\Messages; +use Phalcon\Tag; +use Phalcon\Validation; +use Phalcon\Validation\ValidationInterface; /** * This component allows to build forms using an object-oriented interface @@ -21,33 +28,49 @@ class Form extends Injectable implements \Countable, \Iterator, \Phalcon\Html\Attributes\AttributesInterface { /** - * @var Attributes | null + * @var AttributesInterface|null */ protected $attributes = null; + /** + * @var array + */ + protected $data = []; - protected $data; - - - protected $elements = array(); - - - protected $elementsIndexed; - - - protected $entity; - - - protected $messages; + /** + * @var array + */ + protected $elements = []; + /** + * @var array + */ + protected $elementsIndexed = []; - protected $position; + /** + * @var object|null + */ + protected $entity = null; + /** + * @var Messages|array|null + */ + protected $messages = null; - protected $options; + /** + * @var int + */ + protected $position = 0; + /** + * @var array + */ + protected $options = []; - protected $validation; + /** + * @var ValidationInterface|null + */ + protected $validation = null; /** @@ -57,7 +80,9 @@ public function setValidation($validation) { } - + /** + * @return ValidationInterface|null + */ public function getValidation() { } @@ -68,7 +93,7 @@ public function getValidation() * @param mixed $entity * @param array $userOptions */ - public function __construct($entity = null, array $userOptions = array()) + public function __construct($entity = null, array $userOptions = []) { } @@ -118,7 +143,7 @@ public function count(): int /** * Returns the current element in the iterator * - * @return bool|\Phalcon\Forms\Element\ElementInterface + * @return 0|ElementInterface */ public function current() { @@ -193,7 +218,7 @@ public function getLabel(string $name): string * } * ``` * - * @return array|\Phalcon\Messages\Messages + * @return 0|Messages */ public function getMessages() { @@ -295,7 +320,7 @@ public function label(string $name, array $attributes = null): string * * @return void */ - public function next() + public function next(): void { } @@ -306,7 +331,7 @@ public function next() * @param array $attributes * @return string */ - public function render(string $name, array $attributes = array()): string + public function render(string $name, array $attributes = []): string { } @@ -325,7 +350,7 @@ public function remove(string $name): bool * * @return void */ - public function rewind() + public function rewind(): void { } @@ -388,4 +413,5 @@ public function setUserOptions(array $options): Form public function valid(): bool { } + } diff --git a/src/Phalcon/Forms/Manager.php b/src/Forms/Manager.zep.php similarity index 94% rename from src/Phalcon/Forms/Manager.php rename to src/Forms/Manager.zep.php index 89f01681..2029599e 100644 --- a/src/Phalcon/Forms/Manager.php +++ b/src/Forms/Manager.zep.php @@ -14,8 +14,10 @@ */ class Manager { - - protected $forms = array(); + /** + * @var array + */ + protected $forms = []; /** @@ -59,4 +61,5 @@ public function has(string $name): bool public function set(string $name, Form $form): Manager { } + } diff --git a/src/Phalcon/Helper/Arr.php b/src/Helper/Arr.zep.php similarity index 99% rename from src/Phalcon/Helper/Arr.php rename to src/Helper/Arr.zep.php index 0d0c3445..12a61eeb 100644 --- a/src/Phalcon/Helper/Arr.php +++ b/src/Helper/Arr.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Helper; +use stdClass; + /** * This class offers quick array functions throughout the framework */ @@ -289,4 +291,5 @@ final public static function validateAny(array $collection, $method = null): boo final public static function whiteList(array $collection, array $whiteList): array { } + } diff --git a/src/Phalcon/Helper/Base64.php b/src/Helper/Base64.zep.php similarity index 99% rename from src/Phalcon/Helper/Base64.php rename to src/Helper/Base64.zep.php index 7ec2a830..0c1ee79c 100644 --- a/src/Phalcon/Helper/Base64.php +++ b/src/Helper/Base64.zep.php @@ -38,4 +38,5 @@ final public static function encodeUrl(string $input): string final public static function decodeUrl(string $input): string { } + } diff --git a/src/Phalcon/Helper/Exception.php b/src/Helper/Exception.zep.php similarity index 100% rename from src/Phalcon/Helper/Exception.php rename to src/Helper/Exception.zep.php diff --git a/src/Phalcon/Helper/Fs.php b/src/Helper/Fs.zep.php similarity index 99% rename from src/Phalcon/Helper/Fs.php rename to src/Helper/Fs.zep.php index b0ad9265..ada075bd 100644 --- a/src/Phalcon/Helper/Fs.php +++ b/src/Helper/Fs.zep.php @@ -28,4 +28,5 @@ class Fs final public static function basename(string $uri, $suffix = null): string { } + } diff --git a/src/Phalcon/Helper/Json.php b/src/Helper/Json.zep.php similarity index 98% rename from src/Phalcon/Helper/Json.php rename to src/Helper/Json.zep.php index ae0a6bc8..110f3160 100644 --- a/src/Phalcon/Helper/Json.php +++ b/src/Helper/Json.zep.php @@ -67,13 +67,13 @@ final public static function decode(string $data, bool $associative = false, int * @param int $options Bitmask of JSON decode options. * @param int $depth Recursion depth. * - * @return string + * @return mixed * * @throws \InvalidArgumentException if the JSON cannot be encoded. - * * @link http://www.php.net/manual/en/function.json-encode.php */ final public static function encode($data, int $options = 0, int $depth = 512): string { } + } diff --git a/src/Phalcon/Helper/Number.php b/src/Helper/Number.zep.php similarity index 99% rename from src/Phalcon/Helper/Number.php rename to src/Helper/Number.zep.php index 09e62a95..be55148b 100644 --- a/src/Phalcon/Helper/Number.php +++ b/src/Helper/Number.zep.php @@ -28,4 +28,5 @@ class Number final public static function between(int $value, int $from, int $to): bool { } + } diff --git a/src/Phalcon/Helper/Str.php b/src/Helper/Str.zep.php similarity index 99% rename from src/Phalcon/Helper/Str.php rename to src/Helper/Str.zep.php index b71db150..85f93a6c 100644 --- a/src/Phalcon/Helper/Str.php +++ b/src/Helper/Str.zep.php @@ -77,8 +77,6 @@ final public static function camelize(string $text, $delimiter = null): string * @param string ...N * * @return string - * @param string ...N - * */ final public static function concat(): string { @@ -479,4 +477,5 @@ final public static function underscore(string $text): string final public static function upper(string $text, string $encoding = 'UTF-8'): string { } + } diff --git a/src/Phalcon/Html/Attributes.php b/src/Html/Attributes.zep.php similarity index 91% rename from src/Phalcon/Html/Attributes.php rename to src/Html/Attributes.zep.php index d431bbcc..41d7c774 100644 --- a/src/Phalcon/Html/Attributes.php +++ b/src/Html/Attributes.zep.php @@ -10,6 +10,8 @@ namespace Phalcon\Html; use Phalcon\Collection; +use Phalcon\Html\Attributes\RenderInterface; +use Phalcon\Tag; /** * This class helps to work with HTML Attributes @@ -34,4 +36,5 @@ public function render(): string public function __toString(): string { } + } diff --git a/src/Phalcon/Html/Attributes/AttributesInterface.php b/src/Html/Attributes/AttributesInterface.zep.php similarity index 99% rename from src/Phalcon/Html/Attributes/AttributesInterface.php rename to src/Html/Attributes/AttributesInterface.zep.php index 8d5a50e0..b0cb7391 100644 --- a/src/Phalcon/Html/Attributes/AttributesInterface.php +++ b/src/Html/Attributes/AttributesInterface.zep.php @@ -33,4 +33,5 @@ public function getAttributes(): Attributes; * @return AttributesInterface */ public function setAttributes(\Phalcon\Html\Attributes $attributes): AttributesInterface; + } diff --git a/src/Phalcon/Html/Attributes/RenderInterface.php b/src/Html/Attributes/RenderInterface.zep.php similarity index 99% rename from src/Phalcon/Html/Attributes/RenderInterface.php rename to src/Html/Attributes/RenderInterface.zep.php index 7fb01f6a..d2a71e41 100644 --- a/src/Phalcon/Html/Attributes/RenderInterface.php +++ b/src/Html/Attributes/RenderInterface.zep.php @@ -23,4 +23,5 @@ interface RenderInterface * @return string */ public function render(): string; + } diff --git a/src/Phalcon/Html/Breadcrumbs.php b/src/Html/Breadcrumbs.zep.php similarity index 94% rename from src/Phalcon/Html/Breadcrumbs.php rename to src/Html/Breadcrumbs.zep.php index dae1eeb7..08393d1f 100644 --- a/src/Phalcon/Html/Breadcrumbs.php +++ b/src/Html/Breadcrumbs.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Html; +use Phalcon\Di\DiInterface; + /** * Phalcon\Html\Breadcrumbs * @@ -23,7 +25,7 @@ class Breadcrumbs * * @var array */ - private $elements = array(); + private $elements = []; /** * Crumb separator @@ -86,7 +88,7 @@ public function add(string $label, string $link = ''): Breadcrumbs * * @return void */ - public function clear() + public function clear(): void { } @@ -103,7 +105,7 @@ public function clear() * @param string $link * @return void */ - public function remove(string $link) + public function remove(string $link): void { } @@ -128,4 +130,5 @@ public function render(): string public function toArray(): array { } + } diff --git a/src/Phalcon/Html/Exception.php b/src/Html/Exception.zep.php similarity index 100% rename from src/Phalcon/Html/Exception.php rename to src/Html/Exception.zep.php diff --git a/src/Phalcon/Html/Helper/AbstractHelper.php b/src/Html/Helper/AbstractHelper.zep.php similarity index 95% rename from src/Phalcon/Html/Helper/AbstractHelper.php rename to src/Html/Helper/AbstractHelper.zep.php index 9a2ed4c9..df77bd83 100644 --- a/src/Phalcon/Html/Helper/AbstractHelper.php +++ b/src/Html/Helper/AbstractHelper.zep.php @@ -118,7 +118,7 @@ protected function renderAttributes(array $attributes): string * @return string * @throws Exception */ - protected function renderElement(string $tag, array $attributes = array()): string + protected function renderElement(string $tag, array $attributes = []): string { } @@ -133,7 +133,7 @@ protected function renderElement(string $tag, array $attributes = array()): stri * @return string * @throws Exception */ - protected function renderFullElement(string $tag, string $text, array $attributes = array(), bool $raw = false): string + protected function renderFullElement(string $tag, string $text, array $attributes = [], bool $raw = false): string { } @@ -146,7 +146,7 @@ protected function renderFullElement(string $tag, string $text, array $attribute * * @return string */ - protected function renderTag(string $tag, array $attributes = array(), string $close = ''): string + protected function renderTag(string $tag, array $attributes = [], string $close = ''): string { } @@ -158,7 +158,8 @@ protected function renderTag(string $tag, array $attributes = array(), string $c * * @return string */ - protected function selfClose(string $tag, array $attributes = array()): string + protected function selfClose(string $tag, array $attributes = []): string { } + } diff --git a/src/Phalcon/Html/Helper/AbstractList.php b/src/Html/Helper/AbstractList.zep.php similarity index 89% rename from src/Phalcon/Html/Helper/AbstractList.php rename to src/Html/Helper/AbstractList.zep.php index 5a2c130d..3c6ab1c0 100644 --- a/src/Phalcon/Html/Helper/AbstractList.php +++ b/src/Html/Helper/AbstractList.zep.php @@ -19,7 +19,7 @@ abstract class AbstractList extends \Phalcon\Html\Helper\AbstractHelper /** * @var array */ - protected $attributes = array(); + protected $attributes = []; /** * @var string @@ -29,7 +29,7 @@ abstract class AbstractList extends \Phalcon\Html\Helper\AbstractHelper /** * @var array */ - protected $store = array(); + protected $store = []; /** @@ -39,7 +39,7 @@ abstract class AbstractList extends \Phalcon\Html\Helper\AbstractHelper * * @return AbstractList */ - public function __invoke(string $indent = null, string $delimiter = null, array $attributes = array()): AbstractList + public function __invoke(string $indent = null, string $delimiter = null, array $attributes = []): AbstractList { } @@ -61,4 +61,5 @@ public function __toString() * */ abstract protected function getTag(): string; + } diff --git a/src/Phalcon/Html/Helper/AbstractSeries.php b/src/Html/Helper/AbstractSeries.zep.php similarity index 93% rename from src/Phalcon/Html/Helper/AbstractSeries.php rename to src/Html/Helper/AbstractSeries.zep.php index 6cb0be53..56328955 100644 --- a/src/Phalcon/Html/Helper/AbstractSeries.php +++ b/src/Html/Helper/AbstractSeries.zep.php @@ -17,12 +17,12 @@ abstract class AbstractSeries extends \Phalcon\Html\Helper\AbstractHelper /** * @var array */ - protected $attributes = array(); + protected $attributes = []; /** * @var array */ - protected $store = array(); + protected $store = []; /** @@ -50,4 +50,5 @@ public function __toString() * @return string */ abstract protected function getTag(): string; + } diff --git a/src/Phalcon/Html/Helper/Anchor.php b/src/Html/Helper/Anchor.zep.php similarity index 94% rename from src/Phalcon/Html/Helper/Anchor.php rename to src/Html/Helper/Anchor.zep.php index 2744eb77..14b68051 100644 --- a/src/Phalcon/Html/Helper/Anchor.php +++ b/src/Html/Helper/Anchor.zep.php @@ -28,7 +28,7 @@ class Anchor extends \Phalcon\Html\Helper\AbstractHelper * @return string * @throws Exception */ - public function __invoke(string $href, string $text, array $attributes = array(), bool $raw = false): string + public function __invoke(string $href, string $text, array $attributes = [], bool $raw = false): string { } @@ -41,4 +41,5 @@ public function __invoke(string $href, string $text, array $attributes = array() protected function processAttributes(string $href, array $attributes): array { } + } diff --git a/src/Phalcon/Html/Helper/Base.php b/src/Html/Helper/Base.zep.php similarity index 96% rename from src/Phalcon/Html/Helper/Base.php rename to src/Html/Helper/Base.zep.php index 4fb37ce4..9bd2696a 100644 --- a/src/Phalcon/Html/Helper/Base.php +++ b/src/Html/Helper/Base.zep.php @@ -26,7 +26,8 @@ class Base extends \Phalcon\Html\Helper\AbstractHelper * @return string * @throws Exception */ - public function __invoke(string $href = null, array $attributes = array()): string + public function __invoke(string $href = null, array $attributes = []): string { } + } diff --git a/src/Phalcon/Html/Helper/Body.php b/src/Html/Helper/Body.zep.php similarity index 88% rename from src/Phalcon/Html/Helper/Body.php rename to src/Html/Helper/Body.zep.php index afe351eb..c5975ee7 100644 --- a/src/Phalcon/Html/Helper/Body.php +++ b/src/Html/Helper/Body.zep.php @@ -25,7 +25,8 @@ class Body extends \Phalcon\Html\Helper\AbstractHelper * @return string * @throws Exception */ - public function __invoke(array $attributes = array()): string + public function __invoke(array $attributes = []): string { } + } diff --git a/src/Phalcon/Html/Helper/Button.php b/src/Html/Helper/Button.zep.php similarity index 85% rename from src/Phalcon/Html/Helper/Button.php rename to src/Html/Helper/Button.zep.php index 4b89f603..32cd8765 100644 --- a/src/Phalcon/Html/Helper/Button.php +++ b/src/Html/Helper/Button.zep.php @@ -27,7 +27,8 @@ class Button extends \Phalcon\Html\Helper\AbstractHelper * @return string * @throws Exception */ - public function __invoke(string $text, array $attributes = array(), bool $raw = false): string + public function __invoke(string $text, array $attributes = [], bool $raw = false): string { } + } diff --git a/src/Phalcon/Html/Helper/Close.php b/src/Html/Helper/Close.zep.php similarity index 99% rename from src/Phalcon/Html/Helper/Close.php rename to src/Html/Helper/Close.zep.php index 8585c6b6..2fe336e1 100644 --- a/src/Phalcon/Html/Helper/Close.php +++ b/src/Html/Helper/Close.zep.php @@ -26,4 +26,5 @@ class Close extends \Phalcon\Html\Helper\AbstractHelper public function __invoke(string $tag, bool $raw = false): string { } + } diff --git a/src/Phalcon/Html/Helper/Element.php b/src/Html/Helper/Element.zep.php similarity index 93% rename from src/Phalcon/Html/Helper/Element.php rename to src/Html/Helper/Element.zep.php index 34889c3a..b58f5c0b 100644 --- a/src/Phalcon/Html/Helper/Element.php +++ b/src/Html/Helper/Element.zep.php @@ -28,7 +28,8 @@ class Element extends \Phalcon\Html\Helper\AbstractHelper * @return string * @throws Exception */ - public function __invoke(string $tag, string $text, array $attributes = array(), bool $raw = false): string + public function __invoke(string $tag, string $text, array $attributes = [], bool $raw = false): string { } + } diff --git a/src/Phalcon/Html/Helper/Form.php b/src/Html/Helper/Form.zep.php similarity index 88% rename from src/Phalcon/Html/Helper/Form.php rename to src/Html/Helper/Form.zep.php index 465e41eb..ec4895f4 100644 --- a/src/Phalcon/Html/Helper/Form.php +++ b/src/Html/Helper/Form.zep.php @@ -25,7 +25,8 @@ class Form extends \Phalcon\Html\Helper\AbstractHelper * @return string * @throws Exception */ - public function __invoke(array $attributes = array()): string + public function __invoke(array $attributes = []): string { } + } diff --git a/src/Phalcon/Html/Helper/Img.php b/src/Html/Helper/Img.zep.php similarity index 87% rename from src/Phalcon/Html/Helper/Img.php rename to src/Html/Helper/Img.zep.php index 6c0b710f..08241146 100644 --- a/src/Phalcon/Html/Helper/Img.php +++ b/src/Html/Helper/Img.zep.php @@ -26,7 +26,8 @@ class Img extends \Phalcon\Html\Helper\AbstractHelper * @return string * @throws Exception */ - public function __invoke(string $src, array $attributes = array()): string + public function __invoke(string $src, array $attributes = []): string { } + } diff --git a/src/Phalcon/Html/Helper/Input/AbstractInput.php b/src/Html/Helper/Input/AbstractInput.zep.php similarity index 93% rename from src/Phalcon/Html/Helper/Input/AbstractInput.php rename to src/Html/Helper/Input/AbstractInput.zep.php index 7c744170..4bf2ef6d 100644 --- a/src/Phalcon/Html/Helper/Input/AbstractInput.php +++ b/src/Html/Helper/Input/AbstractInput.zep.php @@ -28,7 +28,7 @@ abstract class AbstractInput extends AbstractHelper /** * @var array */ - protected $attributes = array(); + protected $attributes = []; /** @@ -38,7 +38,7 @@ abstract class AbstractInput extends AbstractHelper * * @return AbstractInput */ - public function __invoke(string $name, string $value = null, array $attributes = array()): AbstractInput + public function __invoke(string $name, string $value = null, array $attributes = []): AbstractInput { } @@ -61,4 +61,5 @@ public function __toString() public function setValue(string $value = null): AbstractInput { } + } diff --git a/src/Phalcon/Html/Helper/Input/Checkbox.php b/src/Html/Helper/Input/Checkbox.zep.php similarity index 88% rename from src/Phalcon/Html/Helper/Input/Checkbox.php rename to src/Html/Helper/Input/Checkbox.zep.php index abd05731..bb2229eb 100644 --- a/src/Phalcon/Html/Helper/Input/Checkbox.php +++ b/src/Html/Helper/Input/Checkbox.zep.php @@ -10,6 +10,7 @@ namespace Phalcon\Html\Helper\Input; use Phalcon\Escaper\EscaperInterface; +use Phalcon\Helper\Arr; /** * Class Checkbox @@ -21,7 +22,7 @@ class Checkbox extends \Phalcon\Html\Helper\Input\AbstractInput /** * @var array */ - protected $label = array(); + protected $label = []; /** * @var string @@ -54,7 +55,7 @@ public function __toString() * * @return Checkbox */ - public function label(array $attributes = array()): Checkbox + public function label(array $attributes = []): Checkbox { } @@ -63,7 +64,7 @@ public function label(array $attributes = array()): Checkbox * * @return void */ - private function processChecked() + private function processChecked(): void { } @@ -75,4 +76,5 @@ private function processChecked() private function processUnchecked(): string { } + } diff --git a/src/Phalcon/Html/Helper/Input/Color.php b/src/Html/Helper/Input/Color.zep.php similarity index 99% rename from src/Phalcon/Html/Helper/Input/Color.php rename to src/Html/Helper/Input/Color.zep.php index d4303302..c1b62eed 100644 --- a/src/Phalcon/Html/Helper/Input/Color.php +++ b/src/Html/Helper/Input/Color.zep.php @@ -16,4 +16,6 @@ class Color extends \Phalcon\Html\Helper\Input\AbstractInput { protected $type = 'color'; + + } diff --git a/src/Phalcon/Html/Helper/Input/Date.php b/src/Html/Helper/Input/Date.zep.php similarity index 99% rename from src/Phalcon/Html/Helper/Input/Date.php rename to src/Html/Helper/Input/Date.zep.php index c3659185..2280656c 100644 --- a/src/Phalcon/Html/Helper/Input/Date.php +++ b/src/Html/Helper/Input/Date.zep.php @@ -16,4 +16,6 @@ class Date extends \Phalcon\Html\Helper\Input\AbstractInput { protected $type = 'date'; + + } diff --git a/src/Phalcon/Html/Helper/Input/DateTime.php b/src/Html/Helper/Input/DateTime.zep.php similarity index 99% rename from src/Phalcon/Html/Helper/Input/DateTime.php rename to src/Html/Helper/Input/DateTime.zep.php index 9baefdba..4fa14308 100644 --- a/src/Phalcon/Html/Helper/Input/DateTime.php +++ b/src/Html/Helper/Input/DateTime.zep.php @@ -16,4 +16,6 @@ class DateTime extends \Phalcon\Html\Helper\Input\AbstractInput { protected $type = 'datetime'; + + } diff --git a/src/Phalcon/Html/Helper/Input/DateTimeLocal.php b/src/Html/Helper/Input/DateTimeLocal.zep.php similarity index 99% rename from src/Phalcon/Html/Helper/Input/DateTimeLocal.php rename to src/Html/Helper/Input/DateTimeLocal.zep.php index a7cde6e1..8005e624 100644 --- a/src/Phalcon/Html/Helper/Input/DateTimeLocal.php +++ b/src/Html/Helper/Input/DateTimeLocal.zep.php @@ -16,4 +16,6 @@ class DateTimeLocal extends \Phalcon\Html\Helper\Input\AbstractInput { protected $type = 'datetime-local'; + + } diff --git a/src/Phalcon/Html/Helper/Input/Email.php b/src/Html/Helper/Input/Email.zep.php similarity index 99% rename from src/Phalcon/Html/Helper/Input/Email.php rename to src/Html/Helper/Input/Email.zep.php index fedf67ab..a6c85d9f 100644 --- a/src/Phalcon/Html/Helper/Input/Email.php +++ b/src/Html/Helper/Input/Email.zep.php @@ -16,4 +16,6 @@ class Email extends \Phalcon\Html\Helper\Input\AbstractInput { protected $type = 'email'; + + } diff --git a/src/Phalcon/Html/Helper/Input/File.php b/src/Html/Helper/Input/File.zep.php similarity index 99% rename from src/Phalcon/Html/Helper/Input/File.php rename to src/Html/Helper/Input/File.zep.php index 44eba200..b3965b4d 100644 --- a/src/Phalcon/Html/Helper/Input/File.php +++ b/src/Html/Helper/Input/File.zep.php @@ -16,4 +16,6 @@ class File extends \Phalcon\Html\Helper\Input\AbstractInput { protected $type = 'file'; + + } diff --git a/src/Phalcon/Html/Helper/Input/Hidden.php b/src/Html/Helper/Input/Hidden.zep.php similarity index 99% rename from src/Phalcon/Html/Helper/Input/Hidden.php rename to src/Html/Helper/Input/Hidden.zep.php index bef01342..6d42baf8 100644 --- a/src/Phalcon/Html/Helper/Input/Hidden.php +++ b/src/Html/Helper/Input/Hidden.zep.php @@ -16,4 +16,6 @@ class Hidden extends \Phalcon\Html\Helper\Input\AbstractInput { protected $type = 'hidden'; + + } diff --git a/src/Phalcon/Html/Helper/Input/Image.php b/src/Html/Helper/Input/Image.zep.php similarity index 99% rename from src/Phalcon/Html/Helper/Input/Image.php rename to src/Html/Helper/Input/Image.zep.php index b95b3862..9db54695 100644 --- a/src/Phalcon/Html/Helper/Input/Image.php +++ b/src/Html/Helper/Input/Image.zep.php @@ -16,4 +16,6 @@ class Image extends \Phalcon\Html\Helper\Input\AbstractInput { protected $type = 'image'; + + } diff --git a/src/Phalcon/Html/Helper/Input/Input.php b/src/Html/Helper/Input/Input.zep.php similarity index 99% rename from src/Phalcon/Html/Helper/Input/Input.php rename to src/Html/Helper/Input/Input.zep.php index 292ac159..a51f05f9 100644 --- a/src/Phalcon/Html/Helper/Input/Input.php +++ b/src/Html/Helper/Input/Input.zep.php @@ -25,4 +25,5 @@ class Input extends \Phalcon\Html\Helper\Input\AbstractInput public function setType(string $type): AbstractInput { } + } diff --git a/src/Phalcon/Html/Helper/Input/Month.php b/src/Html/Helper/Input/Month.zep.php similarity index 99% rename from src/Phalcon/Html/Helper/Input/Month.php rename to src/Html/Helper/Input/Month.zep.php index 1277695f..e8bac5dd 100644 --- a/src/Phalcon/Html/Helper/Input/Month.php +++ b/src/Html/Helper/Input/Month.zep.php @@ -16,4 +16,6 @@ class Month extends \Phalcon\Html\Helper\Input\AbstractInput { protected $type = 'month'; + + } diff --git a/src/Phalcon/Html/Helper/Input/Numeric.php b/src/Html/Helper/Input/Numeric.zep.php similarity index 99% rename from src/Phalcon/Html/Helper/Input/Numeric.php rename to src/Html/Helper/Input/Numeric.zep.php index faa404ee..4b012fec 100644 --- a/src/Phalcon/Html/Helper/Input/Numeric.php +++ b/src/Html/Helper/Input/Numeric.zep.php @@ -16,4 +16,6 @@ class Numeric extends \Phalcon\Html\Helper\Input\AbstractInput { protected $type = 'numeric'; + + } diff --git a/src/Phalcon/Html/Helper/Input/Password.php b/src/Html/Helper/Input/Password.zep.php similarity index 99% rename from src/Phalcon/Html/Helper/Input/Password.php rename to src/Html/Helper/Input/Password.zep.php index 21a41dca..c874ac18 100644 --- a/src/Phalcon/Html/Helper/Input/Password.php +++ b/src/Html/Helper/Input/Password.zep.php @@ -16,4 +16,6 @@ class Password extends \Phalcon\Html\Helper\Input\AbstractInput { protected $type = 'password'; + + } diff --git a/src/Phalcon/Html/Helper/Input/Radio.php b/src/Html/Helper/Input/Radio.zep.php similarity index 99% rename from src/Phalcon/Html/Helper/Input/Radio.php rename to src/Html/Helper/Input/Radio.zep.php index 822cbc0e..9934c5bf 100644 --- a/src/Phalcon/Html/Helper/Input/Radio.php +++ b/src/Html/Helper/Input/Radio.zep.php @@ -18,4 +18,6 @@ class Radio extends \Phalcon\Html\Helper\Input\Checkbox * @var string */ protected $type = 'radio'; + + } diff --git a/src/Phalcon/Html/Helper/Input/Range.php b/src/Html/Helper/Input/Range.zep.php similarity index 99% rename from src/Phalcon/Html/Helper/Input/Range.php rename to src/Html/Helper/Input/Range.zep.php index 63af7259..1d2d91cb 100644 --- a/src/Phalcon/Html/Helper/Input/Range.php +++ b/src/Html/Helper/Input/Range.zep.php @@ -16,4 +16,6 @@ class Range extends \Phalcon\Html\Helper\Input\AbstractInput { protected $type = 'range'; + + } diff --git a/src/Phalcon/Html/Helper/Input/Search.php b/src/Html/Helper/Input/Search.zep.php similarity index 99% rename from src/Phalcon/Html/Helper/Input/Search.php rename to src/Html/Helper/Input/Search.zep.php index a97c1f51..a8ca630f 100644 --- a/src/Phalcon/Html/Helper/Input/Search.php +++ b/src/Html/Helper/Input/Search.zep.php @@ -16,4 +16,6 @@ class Search extends \Phalcon\Html\Helper\Input\AbstractInput { protected $type = 'search'; + + } diff --git a/src/Phalcon/Html/Helper/Input/Select.php b/src/Html/Helper/Input/Select.zep.php similarity index 94% rename from src/Phalcon/Html/Helper/Input/Select.php rename to src/Html/Helper/Input/Select.zep.php index 559c416e..e9c3a25e 100644 --- a/src/Phalcon/Html/Helper/Input/Select.php +++ b/src/Html/Helper/Input/Select.zep.php @@ -46,7 +46,7 @@ class Select extends AbstractList * * @return Select */ - public function add(string $text, string $value = null, array $attributes = array(), bool $raw = false): Select + public function add(string $text, string $value = null, array $attributes = [], bool $raw = false): Select { } @@ -60,7 +60,7 @@ public function add(string $text, string $value = null, array $attributes = arra * * @return Select */ - public function addPlaceholder(string $text, $value = null, array $attributes = array(), bool $raw = false): Select + public function addPlaceholder(string $text, $value = null, array $attributes = [], bool $raw = false): Select { } @@ -72,7 +72,7 @@ public function addPlaceholder(string $text, $value = null, array $attributes = * * @return Select */ - public function optGroup(string $label = null, array $attributes = array()): Select + public function optGroup(string $label = null, array $attributes = []): Select { } @@ -121,4 +121,5 @@ protected function optGroupStart(string $label, array $attributes): string private function processValue(array $attributes, $value = null): array { } + } diff --git a/src/Phalcon/Html/Helper/Input/Submit.php b/src/Html/Helper/Input/Submit.zep.php similarity index 99% rename from src/Phalcon/Html/Helper/Input/Submit.php rename to src/Html/Helper/Input/Submit.zep.php index b378519d..04922331 100644 --- a/src/Phalcon/Html/Helper/Input/Submit.php +++ b/src/Html/Helper/Input/Submit.zep.php @@ -16,4 +16,6 @@ class Submit extends \Phalcon\Html\Helper\Input\AbstractInput { protected $type = 'submit'; + + } diff --git a/src/Phalcon/Html/Helper/Input/Tel.php b/src/Html/Helper/Input/Tel.zep.php similarity index 99% rename from src/Phalcon/Html/Helper/Input/Tel.php rename to src/Html/Helper/Input/Tel.zep.php index 5a5678ce..fc16f128 100644 --- a/src/Phalcon/Html/Helper/Input/Tel.php +++ b/src/Html/Helper/Input/Tel.zep.php @@ -16,4 +16,6 @@ class Tel extends \Phalcon\Html\Helper\Input\AbstractInput { protected $type = 'tel'; + + } diff --git a/src/Phalcon/Html/Helper/Input/Text.php b/src/Html/Helper/Input/Text.zep.php similarity index 100% rename from src/Phalcon/Html/Helper/Input/Text.php rename to src/Html/Helper/Input/Text.zep.php diff --git a/src/Phalcon/Html/Helper/Input/Textarea.php b/src/Html/Helper/Input/Textarea.zep.php similarity index 96% rename from src/Phalcon/Html/Helper/Input/Textarea.php rename to src/Html/Helper/Input/Textarea.zep.php index a79e97b6..a4b3a3a4 100644 --- a/src/Phalcon/Html/Helper/Input/Textarea.php +++ b/src/Html/Helper/Input/Textarea.zep.php @@ -9,6 +9,7 @@ */ namespace Phalcon\Html\Helper\Input; +use Phalcon\Helper\Arr; use Phalcon\Html\Exception; /** @@ -31,4 +32,5 @@ class Textarea extends \Phalcon\Html\Helper\Input\AbstractInput public function __toString() { } + } diff --git a/src/Phalcon/Html/Helper/Input/Time.php b/src/Html/Helper/Input/Time.zep.php similarity index 99% rename from src/Phalcon/Html/Helper/Input/Time.php rename to src/Html/Helper/Input/Time.zep.php index a7a1bf8f..1d85010f 100644 --- a/src/Phalcon/Html/Helper/Input/Time.php +++ b/src/Html/Helper/Input/Time.zep.php @@ -16,4 +16,6 @@ class Time extends \Phalcon\Html\Helper\Input\AbstractInput { protected $type = 'time'; + + } diff --git a/src/Phalcon/Html/Helper/Input/Url.php b/src/Html/Helper/Input/Url.zep.php similarity index 99% rename from src/Phalcon/Html/Helper/Input/Url.php rename to src/Html/Helper/Input/Url.zep.php index ec559e10..9770c05d 100644 --- a/src/Phalcon/Html/Helper/Input/Url.php +++ b/src/Html/Helper/Input/Url.zep.php @@ -16,4 +16,6 @@ class Url extends \Phalcon\Html\Helper\Input\AbstractInput { protected $type = 'url'; + + } diff --git a/src/Phalcon/Html/Helper/Input/Week.php b/src/Html/Helper/Input/Week.zep.php similarity index 99% rename from src/Phalcon/Html/Helper/Input/Week.php rename to src/Html/Helper/Input/Week.zep.php index 0d6246ca..c1664fba 100644 --- a/src/Phalcon/Html/Helper/Input/Week.php +++ b/src/Html/Helper/Input/Week.zep.php @@ -16,4 +16,6 @@ class Week extends \Phalcon\Html\Helper\Input\AbstractInput { protected $type = 'week'; + + } diff --git a/src/Phalcon/Html/Helper/Label.php b/src/Html/Helper/Label.zep.php similarity index 88% rename from src/Phalcon/Html/Helper/Label.php rename to src/Html/Helper/Label.zep.php index d19be5f2..8c7ba750 100644 --- a/src/Phalcon/Html/Helper/Label.php +++ b/src/Html/Helper/Label.zep.php @@ -25,7 +25,8 @@ class Label extends \Phalcon\Html\Helper\AbstractHelper * @return string * @throws Exception */ - public function __invoke(array $attributes = array()): string + public function __invoke(array $attributes = []): string { } + } diff --git a/src/Phalcon/Html/Helper/Link.php b/src/Html/Helper/Link.zep.php similarity index 99% rename from src/Phalcon/Html/Helper/Link.php rename to src/Html/Helper/Link.zep.php index a5c8eb5d..84c85950 100644 --- a/src/Phalcon/Html/Helper/Link.php +++ b/src/Html/Helper/Link.zep.php @@ -33,4 +33,5 @@ public function add(string $rel, string $href): Link protected function getTag(): string { } + } diff --git a/src/Phalcon/Html/Helper/Meta.php b/src/Html/Helper/Meta.zep.php similarity index 96% rename from src/Phalcon/Html/Helper/Meta.php rename to src/Html/Helper/Meta.zep.php index c14124aa..78ffe2b4 100644 --- a/src/Phalcon/Html/Helper/Meta.php +++ b/src/Html/Helper/Meta.zep.php @@ -24,7 +24,7 @@ class Meta extends \Phalcon\Html\Helper\AbstractSeries * * @return Meta */ - public function add(array $attributes = array()): Meta + public function add(array $attributes = []): Meta { } @@ -79,4 +79,5 @@ protected function getTag(): string private function addElement(string $element, string $value, string $content): Meta { } + } diff --git a/src/Phalcon/Html/Helper/Ol.php b/src/Html/Helper/Ol.zep.php similarity index 83% rename from src/Phalcon/Html/Helper/Ol.php rename to src/Html/Helper/Ol.zep.php index e1aa04df..944e38ac 100644 --- a/src/Phalcon/Html/Helper/Ol.php +++ b/src/Html/Helper/Ol.zep.php @@ -22,10 +22,9 @@ class Ol extends \Phalcon\Html\Helper\AbstractList * @param array $attributes * @param bool $raw * - * @return $this * @return AbstractList */ - public function add(string $text, array $attributes = array(), bool $raw = false): AbstractList + public function add(string $text, array $attributes = [], bool $raw = false): AbstractList { } @@ -35,4 +34,5 @@ public function add(string $text, array $attributes = array(), bool $raw = false protected function getTag(): string { } + } diff --git a/src/Phalcon/Html/Helper/Script.php b/src/Html/Helper/Script.zep.php similarity index 84% rename from src/Phalcon/Html/Helper/Script.php rename to src/Html/Helper/Script.zep.php index 5ce0b700..bb5dbaeb 100644 --- a/src/Phalcon/Html/Helper/Script.php +++ b/src/Html/Helper/Script.zep.php @@ -18,12 +18,12 @@ class Script extends \Phalcon\Html\Helper\Style /** * Returns the necessary attributes * - * @param string $src + * @param string $href * @param array $attributes * * @return array */ - protected function getAttributes(string $src, array $attributes): array + protected function getAttributes(string $href, array $attributes): array { } @@ -33,4 +33,5 @@ protected function getAttributes(string $src, array $attributes): array protected function getTag(): string { } + } diff --git a/src/Phalcon/Html/Helper/Style.php b/src/Html/Helper/Style.zep.php similarity index 93% rename from src/Phalcon/Html/Helper/Style.php rename to src/Html/Helper/Style.zep.php index a6e6576a..a7324721 100644 --- a/src/Phalcon/Html/Helper/Style.php +++ b/src/Html/Helper/Style.zep.php @@ -26,7 +26,7 @@ class Style extends \Phalcon\Html\Helper\AbstractSeries * @return $this * @throws Exception */ - public function add(string $href, array $attributes = array()) + public function add(string $href, array $attributes = []) { } @@ -48,4 +48,5 @@ protected function getTag(): string protected function getAttributes(string $href, array $attributes): array { } + } diff --git a/src/Phalcon/Html/Helper/Title.php b/src/Html/Helper/Title.zep.php similarity index 96% rename from src/Phalcon/Html/Helper/Title.php rename to src/Html/Helper/Title.zep.php index ab903ad6..07eac605 100644 --- a/src/Phalcon/Html/Helper/Title.php +++ b/src/Html/Helper/Title.zep.php @@ -26,12 +26,12 @@ class Title extends \Phalcon\Html\Helper\AbstractHelper /** * @var array */ - protected $append = array(); + protected $append = []; /** * @var array */ - protected $prepend = array(); + protected $prepend = []; /** * @var string @@ -111,4 +111,5 @@ public function set(string $text, bool $raw = false): Title public function prepend(string $text, bool $raw = false): Title { } + } diff --git a/src/Phalcon/Html/Helper/Ul.php b/src/Html/Helper/Ul.zep.php similarity index 99% rename from src/Phalcon/Html/Helper/Ul.php rename to src/Html/Helper/Ul.zep.php index 83c69ad0..380e466a 100644 --- a/src/Phalcon/Html/Helper/Ul.php +++ b/src/Html/Helper/Ul.zep.php @@ -21,4 +21,5 @@ class Ul extends \Phalcon\Html\Helper\Ol protected function getTag(): string { } + } diff --git a/src/Phalcon/Html/Link/EvolvableLink.php b/src/Html/Link/EvolvableLink.zep.php similarity index 99% rename from src/Phalcon/Html/Link/EvolvableLink.php rename to src/Html/Link/EvolvableLink.zep.php index 36576364..787dfbf9 100644 --- a/src/Phalcon/Html/Link/EvolvableLink.php +++ b/src/Html/Link/EvolvableLink.zep.php @@ -98,4 +98,5 @@ public function withoutAttribute($attribute) public function withoutRel($rel) { } + } diff --git a/src/Phalcon/Html/Link/EvolvableLinkProvider.php b/src/Html/Link/EvolvableLinkProvider.zep.php similarity index 99% rename from src/Phalcon/Html/Link/EvolvableLinkProvider.php rename to src/Html/Link/EvolvableLinkProvider.zep.php index 46df0820..0846b9ca 100644 --- a/src/Phalcon/Html/Link/EvolvableLinkProvider.php +++ b/src/Html/Link/EvolvableLinkProvider.zep.php @@ -49,4 +49,5 @@ public function withLink(\Psr\Link\LinkInterface $link) public function withoutLink(\Psr\Link\LinkInterface $link) { } + } diff --git a/src/Phalcon/Html/Link/Link.php b/src/Html/Link/Link.zep.php similarity index 98% rename from src/Phalcon/Html/Link/Link.php rename to src/Html/Link/Link.zep.php index 73162bf8..3cecc116 100644 --- a/src/Phalcon/Html/Link/Link.php +++ b/src/Html/Link/Link.zep.php @@ -51,7 +51,7 @@ class Link implements \Psr\Link\LinkInterface * @param string $href * @param array $attributes */ - public function __construct(string $rel = '', string $href = '', array $attributes = array()) + public function __construct(string $rel = '', string $href = '', array $attributes = []) { } @@ -116,4 +116,5 @@ public function isTemplated() protected function hrefIsTemplated(string $href): bool { } + } diff --git a/src/Phalcon/Html/Link/LinkProvider.php b/src/Html/Link/LinkProvider.zep.php similarity index 89% rename from src/Phalcon/Html/Link/LinkProvider.php rename to src/Html/Link/LinkProvider.zep.php index a7829ba5..094ac0de 100644 --- a/src/Phalcon/Html/Link/LinkProvider.php +++ b/src/Html/Link/LinkProvider.zep.php @@ -13,8 +13,6 @@ use Psr\Link\LinkProviderInterface; /** - * Class Phalcon\Http\Link\LinkProvider - * * @property LinkInterface[] links */ class LinkProvider implements \Psr\Link\LinkProviderInterface @@ -22,7 +20,7 @@ class LinkProvider implements \Psr\Link\LinkProviderInterface /** * @var LinkInterface[] */ - protected $links = array(); + protected $links = []; /** @@ -30,7 +28,7 @@ class LinkProvider implements \Psr\Link\LinkProviderInterface * * @param array $links */ - public function __construct(array $links = array()) + public function __construct(array $links = []) { } @@ -54,7 +52,7 @@ public function getLinks() * with that relationship are available, an empty array or \Traversable * MUST be returned. * - * @return LinkInterface[]|Traversable + * @return LinkInterface[]|\Traversable * @param mixed $rel */ public function getLinksByRel($rel) @@ -70,4 +68,5 @@ public function getLinksByRel($rel) protected function getKey(\Psr\Link\LinkInterface $link): string { } + } diff --git a/src/Phalcon/Html/Link/Serializer/Header.php b/src/Html/Link/Serializer/Header.zep.php similarity index 99% rename from src/Phalcon/Html/Link/Serializer/Header.php rename to src/Html/Link/Serializer/Header.zep.php index cd9f5957..9efafa8f 100644 --- a/src/Phalcon/Html/Link/Serializer/Header.php +++ b/src/Html/Link/Serializer/Header.zep.php @@ -26,4 +26,5 @@ class Header implements \Phalcon\Html\Link\Serializer\SerializerInterface public function serialize(array $links): ?string { } + } diff --git a/src/Phalcon/Html/Link/Serializer/SerializerInterface.php b/src/Html/Link/Serializer/SerializerInterface.zep.php similarity index 99% rename from src/Phalcon/Html/Link/Serializer/SerializerInterface.php rename to src/Html/Link/Serializer/SerializerInterface.zep.php index d2804463..9b922a51 100644 --- a/src/Phalcon/Html/Link/Serializer/SerializerInterface.php +++ b/src/Html/Link/Serializer/SerializerInterface.zep.php @@ -22,4 +22,5 @@ interface SerializerInterface * @return string|null */ public function serialize(array $links): ?string; + } diff --git a/src/Phalcon/Html/TagFactory.php b/src/Html/TagFactory.zep.php similarity index 91% rename from src/Phalcon/Html/TagFactory.php rename to src/Html/TagFactory.zep.php index a492e0de..8a949b17 100644 --- a/src/Phalcon/Html/TagFactory.php +++ b/src/Html/TagFactory.zep.php @@ -18,6 +18,9 @@ */ class TagFactory extends AbstractFactory { + + protected $exception = 'Phalcon\\\\Html\\\\Exception'; + /** * @var EscaperInterface */ @@ -30,7 +33,7 @@ class TagFactory extends AbstractFactory * @param \Phalcon\Escaper\EscaperInterface $escaper * @param array $services */ - public function __construct(\Phalcon\Escaper\EscaperInterface $escaper, array $services = array()) + public function __construct(\Phalcon\Escaper\EscaperInterface $escaper, array $services = []) { } @@ -49,4 +52,5 @@ public function newInstance(string $name) protected function getAdapters(): array { } + } diff --git a/src/Phalcon/Http/Cookie.php b/src/Http/Cookie.zep.php similarity index 91% rename from src/Phalcon/Http/Cookie.php rename to src/Http/Cookie.zep.php index 9009f6c9..31b32eed 100644 --- a/src/Phalcon/Http/Cookie.php +++ b/src/Http/Cookie.zep.php @@ -9,8 +9,16 @@ */ namespace Phalcon\Http; +use Phalcon\Di\DiInterface; use Phalcon\Di\AbstractInjectionAware; +use Phalcon\Crypt\CryptInterface; +use Phalcon\Crypt\Mismatch; +use Phalcon\Filter\FilterInterface; +use Phalcon\Helper\Arr; +use Phalcon\Http\Response\Exception; use Phalcon\Http\Cookie\CookieInterface; +use Phalcon\Http\Cookie\Exception as CookieException; +use Phalcon\Session\ManagerInterface as SessionManagerInterface; /** * Provide OO wrappers to manage a HTTP cookie. @@ -27,8 +35,10 @@ class Cookie extends AbstractInjectionAware implements \Phalcon\Http\Cookie\Cook */ protected $expire; - - protected $filter; + /** + * @var FilterInterface|null + */ + protected $filter = null; /** * @var bool @@ -43,7 +53,7 @@ class Cookie extends AbstractInjectionAware implements \Phalcon\Http\Cookie\Cook /** * @var array */ - protected $options = array(); + protected $options = []; /** * @var string @@ -63,7 +73,7 @@ class Cookie extends AbstractInjectionAware implements \Phalcon\Http\Cookie\Cook /** * @var bool */ - protected $secure; + protected $secure = true; /** * The cookie's sign key. @@ -78,9 +88,9 @@ class Cookie extends AbstractInjectionAware implements \Phalcon\Http\Cookie\Cook protected $useEncryption = false; /** - * @var mixed + * @var mixed|null */ - protected $value; + protected $value = null; /** @@ -95,7 +105,7 @@ class Cookie extends AbstractInjectionAware implements \Phalcon\Http\Cookie\Cook * @param bool $httpOnly * @param array $options */ - public function __construct(string $name, $value = null, int $expire = 0, string $path = '/', bool $secure = null, string $domain = null, bool $httpOnly = false, array $options = array()) + public function __construct(string $name, $value = null, int $expire = 0, string $path = '/', bool $secure = null, string $domain = null, bool $httpOnly = null, array $options = []) { } @@ -327,7 +337,8 @@ public function useEncryption(bool $useEncryption): CookieInterface * @param string $signKey * @return void */ - protected function assertSignKeyIsLongEnough(string $signKey) + protected function assertSignKeyIsLongEnough(string $signKey): void { } + } diff --git a/src/Phalcon/Http/Cookie/CookieInterface.php b/src/Http/Cookie/CookieInterface.zep.php similarity index 99% rename from src/Phalcon/Http/Cookie/CookieInterface.php rename to src/Http/Cookie/CookieInterface.zep.php index 5fa14d63..e1be940d 100644 --- a/src/Phalcon/Http/Cookie/CookieInterface.php +++ b/src/Http/Cookie/CookieInterface.zep.php @@ -157,4 +157,5 @@ public function setValue($value): CookieInterface; * @return CookieInterface */ public function useEncryption(bool $useEncryption): CookieInterface; + } diff --git a/src/Phalcon/Http/Cookie/Exception.php b/src/Http/Cookie/Exception.zep.php similarity index 100% rename from src/Phalcon/Http/Cookie/Exception.php rename to src/Http/Cookie/Exception.zep.php diff --git a/src/Phalcon/Http/Message/AbstractCommon.php b/src/Http/Message/AbstractCommon.zep.php similarity index 88% rename from src/Phalcon/Http/Message/AbstractCommon.php rename to src/Http/Message/AbstractCommon.zep.php index 020e9e42..8d3ac3f2 100644 --- a/src/Phalcon/Http/Message/AbstractCommon.php +++ b/src/Http/Message/AbstractCommon.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Http\Message; +use Phalcon\Http\Message\Exception\InvalidArgumentException; + /** * Common methods */ @@ -33,7 +35,7 @@ final protected function cloneInstance($element, string $property) * @param mixed $element * @return void */ - final protected function checkStringParameter($element) + final protected function checkStringParameter($element): void { } @@ -49,4 +51,5 @@ final protected function checkStringParameter($element) final protected function processWith($element, string $property) { } + } diff --git a/src/Phalcon/Http/Message/AbstractMessage.php b/src/Http/Message/AbstractMessage.zep.php similarity index 97% rename from src/Phalcon/Http/Message/AbstractMessage.php rename to src/Http/Message/AbstractMessage.zep.php index 1aea59bc..7c73959a 100644 --- a/src/Phalcon/Http/Message/AbstractMessage.php +++ b/src/Http/Message/AbstractMessage.zep.php @@ -181,9 +181,6 @@ public function hasHeader($name): bool * @param string|string[] $value * * @return static - * @param mixed $value - * @param string|string [] $value - * */ public function withAddedHeader($name, $value) { @@ -225,9 +222,6 @@ public function withBody(\Psr\Http\Message\StreamInterface $body) * @return static * @throws InvalidArgumentException for invalid header names or values. * - * @param mixed $value - * @param string|string [] $value - * */ public function withHeader($name, $value) { @@ -288,7 +282,7 @@ final protected function checkHeaderHost(\Phalcon\Collection\CollectionInterface * @param mixed $name * @return void */ - final protected function checkHeaderName($name) + final protected function checkHeaderName($name): void { } @@ -339,7 +333,7 @@ final protected function checkHeaderName($name) * @param mixed $value * @return void */ - final protected function checkHeaderValue($value) + final protected function checkHeaderValue($value): void { } @@ -407,4 +401,5 @@ final protected function processHeaders($headers): CollectionInterface final protected function processProtocol($protocol = ''): string { } + } diff --git a/src/Phalcon/Http/Message/AbstractRequest.php b/src/Http/Message/AbstractRequest.zep.php similarity index 99% rename from src/Phalcon/Http/Message/AbstractRequest.php rename to src/Http/Message/AbstractRequest.zep.php index c5808555..48bfb96d 100644 --- a/src/Phalcon/Http/Message/AbstractRequest.php +++ b/src/Http/Message/AbstractRequest.zep.php @@ -181,4 +181,5 @@ final protected function processMethod($method = ''): string final protected function processUri($uri): UriInterface { } + } diff --git a/src/Phalcon/Http/Message/Exception/InvalidArgumentException.php b/src/Http/Message/Exception/InvalidArgumentException.zep.php similarity index 97% rename from src/Phalcon/Http/Message/Exception/InvalidArgumentException.php rename to src/Http/Message/Exception/InvalidArgumentException.zep.php index 14de3be7..9ceabc76 100644 --- a/src/Phalcon/Http/Message/Exception/InvalidArgumentException.php +++ b/src/Http/Message/Exception/InvalidArgumentException.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Http\Message\Exception; +use Throwable; + /** * This file is part of the Phalcon Framework. * diff --git a/src/Phalcon/Http/Message/Request.php b/src/Http/Message/Request.zep.php similarity index 94% rename from src/Phalcon/Http/Message/Request.php rename to src/Http/Message/Request.zep.php index ec21b4b3..5328215e 100644 --- a/src/Phalcon/Http/Message/Request.php +++ b/src/Http/Message/Request.zep.php @@ -29,7 +29,8 @@ final class Request extends AbstractRequest implements \Psr\Http\Message\Request * @param StreamInterface|resource|string $body * @param array $headers */ - public function __construct(string $method = 'GET', $uri = null, $body = 'php://memory', $headers = array()) + public function __construct(string $method = 'GET', $uri = null, $body = 'php://memory', $headers = []) { } + } diff --git a/src/Phalcon/Http/Message/RequestFactory.php b/src/Http/Message/RequestFactory.zep.php similarity index 99% rename from src/Phalcon/Http/Message/RequestFactory.php rename to src/Http/Message/RequestFactory.zep.php index 10fa956d..a1964d55 100644 --- a/src/Phalcon/Http/Message/RequestFactory.php +++ b/src/Http/Message/RequestFactory.zep.php @@ -30,4 +30,5 @@ final class RequestFactory implements \Psr\Http\Message\RequestFactoryInterface public function createRequest(string $method, $uri): RequestInterface { } + } diff --git a/src/Phalcon/Http/Message/Response.php b/src/Http/Message/Response.zep.php similarity index 95% rename from src/Phalcon/Http/Message/Response.php rename to src/Http/Message/Response.zep.php index 9e83ecee..a52124ca 100644 --- a/src/Phalcon/Http/Message/Response.php +++ b/src/Http/Message/Response.zep.php @@ -82,7 +82,7 @@ public function getStatusCode(): int * @param int $code * @param array $headers */ - public function __construct($body = 'php://memory', int $code = 200, array $headers = array()) + public function __construct($body = 'php://memory', int $code = 200, array $headers = []) { } @@ -126,7 +126,7 @@ protected function getPhrases(): array * @param mixed $phrase * @return void */ - protected function processCode($code, $phrase = '') + protected function processCode($code, $phrase = ''): void { } @@ -136,7 +136,7 @@ protected function processCode($code, $phrase = '') * @param mixed $code * @return void */ - private function checkCodeType($code) + private function checkCodeType($code): void { } @@ -146,7 +146,8 @@ private function checkCodeType($code) * @param int $code * @return void */ - private function checkCodeValue(int $code) + private function checkCodeValue(int $code): void { } + } diff --git a/src/Phalcon/Http/Message/ResponseFactory.php b/src/Http/Message/ResponseFactory.zep.php similarity index 99% rename from src/Phalcon/Http/Message/ResponseFactory.php rename to src/Http/Message/ResponseFactory.zep.php index 44d9504c..12802988 100644 --- a/src/Phalcon/Http/Message/ResponseFactory.php +++ b/src/Http/Message/ResponseFactory.zep.php @@ -32,4 +32,5 @@ final class ResponseFactory implements \Psr\Http\Message\ResponseFactoryInterfac public function createResponse(int $code = 200, string $reasonPhrase = ''): ResponseInterface { } + } diff --git a/src/Phalcon/Http/Message/ServerRequest.php b/src/Http/Message/ServerRequest.zep.php similarity index 96% rename from src/Phalcon/Http/Message/ServerRequest.php rename to src/Http/Message/ServerRequest.zep.php index f605b1dd..236477d5 100644 --- a/src/Phalcon/Http/Message/ServerRequest.php +++ b/src/Http/Message/ServerRequest.zep.php @@ -38,7 +38,7 @@ final class ServerRequest extends \Phalcon\Http\Message\AbstractRequest implemen * * @var array */ - protected $cookieParams = array(); + protected $cookieParams = []; /** * Retrieve any parameters provided in the request body. @@ -68,7 +68,7 @@ final class ServerRequest extends \Phalcon\Http\Message\AbstractRequest implemen * * @var array */ - protected $queryParams = array(); + protected $queryParams = []; /** * Retrieve server parameters. @@ -79,7 +79,7 @@ final class ServerRequest extends \Phalcon\Http\Message\AbstractRequest implemen * * @var array */ - protected $serverParams = array(); + protected $serverParams = []; /** * Retrieve normalized file upload data. @@ -92,7 +92,7 @@ final class ServerRequest extends \Phalcon\Http\Message\AbstractRequest implemen * * @var array */ - protected $uploadedFiles = array(); + protected $uploadedFiles = []; /** @@ -185,7 +185,7 @@ public function getUploadedFiles(): array * @param null|array|object $parsedBody * @param string $protocol */ - public function __construct(string $method = 'GET', $uri = null, array $serverParams = array(), $body = 'php://input', $headers = array(), array $cookies = array(), array $queryParams = array(), array $uploadFiles = array(), $parsedBody = null, string $protocol = '1.1') + public function __construct(string $method = 'GET', $uri = null, array $serverParams = [], $body = 'php://input', $headers = [], array $cookies = [], array $queryParams = [], array $uploadFiles = [], $parsedBody = null, string $protocol = '1.1') { } @@ -363,7 +363,8 @@ public function withoutAttribute($name): ServerRequest * @param array $files * @return void */ - private function checkUploadedFiles(array $files) + private function checkUploadedFiles(array $files): void { } + } diff --git a/src/Phalcon/Http/Message/ServerRequestFactory.php b/src/Http/Message/ServerRequestFactory.zep.php similarity index 99% rename from src/Phalcon/Http/Message/ServerRequestFactory.php rename to src/Http/Message/ServerRequestFactory.zep.php index 395c96f5..ac9ae1f2 100644 --- a/src/Phalcon/Http/Message/ServerRequestFactory.php +++ b/src/Http/Message/ServerRequestFactory.zep.php @@ -45,7 +45,7 @@ class ServerRequestFactory implements \Psr\Http\Message\ServerRequestFactoryInte * * @return ServerRequestInterface */ - public function createServerRequest(string $method, $uri, array $serverParams = array()): ServerRequestInterface + public function createServerRequest(string $method, $uri, array $serverParams = []): ServerRequestInterface { } @@ -243,4 +243,5 @@ private function parseUploadedFiles(array $files): CollectionInterface private function parseUri(\Phalcon\Collection\CollectionInterface $server, \Phalcon\Collection\CollectionInterface $headers): Uri { } + } diff --git a/src/Phalcon/Http/Message/Stream.php b/src/Http/Message/Stream.zep.php similarity index 92% rename from src/Phalcon/Http/Message/Stream.php rename to src/Http/Message/Stream.zep.php index 285e05ba..98c7585f 100644 --- a/src/Phalcon/Http/Message/Stream.php +++ b/src/Http/Message/Stream.zep.php @@ -70,7 +70,7 @@ public function __toString(): string * * @return void */ - public function close() + public function close(): void { } @@ -120,7 +120,7 @@ public function getMetadata($key = null) /** * Get the size of the stream if known. * - * @return null|int + * @return int|null */ public function getSize(): ?int { @@ -172,7 +172,7 @@ public function read($length): string * * @return void */ - public function rewind() + public function rewind(): void { } @@ -183,7 +183,7 @@ public function rewind() * @param int $whence * @return void */ - public function seek($offset, $whence = 0) + public function seek($offset, $whence = 0): void { } @@ -194,7 +194,7 @@ public function seek($offset, $whence = 0) * @param string $mode * @return void */ - public function setStream($stream, string $mode = 'rb') + public function setStream($stream, string $mode = 'rb'): void { } @@ -223,7 +223,7 @@ public function write($data): int * * @return void */ - private function checkHandle() + private function checkHandle(): void { } @@ -232,7 +232,7 @@ private function checkHandle() * * @return void */ - private function checkReadable() + private function checkReadable(): void { } @@ -241,7 +241,7 @@ private function checkReadable() * * @return void */ - private function checkSeekable() + private function checkSeekable(): void { } @@ -250,7 +250,8 @@ private function checkSeekable() * * @return void */ - private function checkWritable() + private function checkWritable(): void { } + } diff --git a/src/Phalcon/Http/Message/Stream/Input.php b/src/Http/Message/Stream/Input.zep.php similarity index 94% rename from src/Phalcon/Http/Message/Stream/Input.php rename to src/Http/Message/Stream/Input.zep.php index 2e3f6696..f6b42bf3 100644 --- a/src/Phalcon/Http/Message/Stream/Input.php +++ b/src/Http/Message/Stream/Input.zep.php @@ -59,11 +59,9 @@ public function __toString(): string /** * Returns the remaining contents in a string * - * @throws RuntimeException if unable to read. - * @throws RuntimeException if error occurs while reading. - * * @param int $length * + * @throws \RuntimeException If unable to read or if error occurs while reading. * @return string */ public function getContents(int $length = -1): string @@ -89,4 +87,5 @@ public function isWritable(): bool public function read($length): string { } + } diff --git a/src/Phalcon/Http/Message/Stream/Memory.php b/src/Http/Message/Stream/Memory.zep.php similarity index 99% rename from src/Phalcon/Http/Message/Stream/Memory.php rename to src/Http/Message/Stream/Memory.zep.php index efa30ca4..2f83336f 100644 --- a/src/Phalcon/Http/Message/Stream/Memory.php +++ b/src/Http/Message/Stream/Memory.zep.php @@ -29,4 +29,5 @@ class Memory extends Stream public function __construct($mode = 'rb') { } + } diff --git a/src/Phalcon/Http/Message/Stream/Temp.php b/src/Http/Message/Stream/Temp.zep.php similarity index 99% rename from src/Phalcon/Http/Message/Stream/Temp.php rename to src/Http/Message/Stream/Temp.zep.php index 13dc1d8c..bd28c2f7 100644 --- a/src/Phalcon/Http/Message/Stream/Temp.php +++ b/src/Http/Message/Stream/Temp.zep.php @@ -29,4 +29,5 @@ class Temp extends Stream public function __construct($mode = 'rb') { } + } diff --git a/src/Phalcon/Http/Message/StreamFactory.php b/src/Http/Message/StreamFactory.zep.php similarity index 99% rename from src/Phalcon/Http/Message/StreamFactory.php rename to src/Http/Message/StreamFactory.zep.php index 9a1c4b9f..5cdb0cb8 100644 --- a/src/Phalcon/Http/Message/StreamFactory.php +++ b/src/Http/Message/StreamFactory.zep.php @@ -62,4 +62,5 @@ public function createStreamFromFile(string $filename, string $mode = 'r+b'): St public function createStreamFromResource($phpResource): StreamInterface { } + } diff --git a/src/Phalcon/Http/Message/UploadedFile.php b/src/Http/Message/UploadedFile.zep.php similarity index 97% rename from src/Phalcon/Http/Message/UploadedFile.php rename to src/Http/Message/UploadedFile.zep.php index 89c07508..a3bd2982 100644 --- a/src/Phalcon/Http/Message/UploadedFile.php +++ b/src/Http/Message/UploadedFile.zep.php @@ -229,7 +229,7 @@ public function getStream() * the second or subsequent call to the method. * @return void */ - public function moveTo($targetPath) + public function moveTo($targetPath): void { } @@ -239,7 +239,7 @@ public function moveTo($targetPath) * @param int $error * @return void */ - private function checkError(int $error) + private function checkError(int $error): void { } @@ -250,7 +250,7 @@ private function checkError(int $error) * @param int $error * @return void */ - private function checkStream($stream, int $error) + private function checkStream($stream, int $error): void { } @@ -271,7 +271,8 @@ private function getErrorDescription(int $error): string * @param string $targetPath * @return void */ - private function storeFile(string $targetPath) + private function storeFile(string $targetPath): void { } + } diff --git a/src/Phalcon/Http/Message/UploadedFileFactory.php b/src/Http/Message/UploadedFileFactory.zep.php similarity index 99% rename from src/Phalcon/Http/Message/UploadedFileFactory.php rename to src/Http/Message/UploadedFileFactory.zep.php index a8c31f4e..093f89d5 100644 --- a/src/Phalcon/Http/Message/UploadedFileFactory.php +++ b/src/Http/Message/UploadedFileFactory.zep.php @@ -41,4 +41,5 @@ final class UploadedFileFactory implements \Psr\Http\Message\UploadedFileFactory public function createUploadedFile(\Psr\Http\Message\StreamInterface $stream, int $size = null, int $error = 0, string $clientFilename = null, string $clientMediaType = null): UploadedFileInterface { } + } diff --git a/src/Phalcon/Http/Message/Uri.php b/src/Http/Message/Uri.zep.php similarity index 96% rename from src/Phalcon/Http/Message/Uri.php rename to src/Http/Message/Uri.zep.php index d6154af1..60eabb3e 100644 --- a/src/Phalcon/Http/Message/Uri.php +++ b/src/Http/Message/Uri.zep.php @@ -22,7 +22,7 @@ final class Uri extends \Phalcon\Http\Message\AbstractCommon implements \Psr\Htt /** * Returns the fragment of the URL * - * @return string + * @var string */ protected $fragment = ''; @@ -36,7 +36,7 @@ final class Uri extends \Phalcon\Http\Message\AbstractCommon implements \Psr\Htt * * @see http://tools.ietf.org/html/rfc3986#section-3.2.2 * - * @return string + * @var string */ protected $host = ''; @@ -48,7 +48,7 @@ final class Uri extends \Phalcon\Http\Message\AbstractCommon implements \Psr\Htt /** * Returns the path of the URL * - * @return string + * @var string */ protected $path = ''; @@ -65,14 +65,14 @@ final class Uri extends \Phalcon\Http\Message\AbstractCommon implements \Psr\Htt * If no port is present, but a scheme is present, this method MAY return * the standard port for that scheme, but SHOULD return null. * - * @return int|null + * @var int|null */ protected $port = null; /** * Returns the query of the URL * - * @return string + * @var string */ protected $query = ''; @@ -89,7 +89,7 @@ final class Uri extends \Phalcon\Http\Message\AbstractCommon implements \Psr\Htt * * @see https://tools.ietf.org/html/rfc3986#section-3.1 * - * @return string + * @var string */ protected $scheme = 'https'; @@ -101,8 +101,10 @@ final class Uri extends \Phalcon\Http\Message\AbstractCommon implements \Psr\Htt /** * Returns the fragment of the URL + * + * @return string */ - public function getFragment() + public function getFragment(): string { } @@ -113,15 +115,19 @@ public function getFragment() * * The value returned MUST be normalized to lowercase, per RFC 3986 * Section 3.2.2. + * + * @return string */ - public function getHost() + public function getHost(): string { } /** * Returns the path of the URL + * + * @return string */ - public function getPath() + public function getPath(): string { } @@ -137,15 +143,19 @@ public function getPath() * * If no port is present, but a scheme is present, this method MAY return * the standard port for that scheme, but SHOULD return null. + * + * @return int|null */ - public function getPort() + public function getPort(): ?int { } /** * Returns the query of the URL + * + * @return string */ - public function getQuery() + public function getQuery(): string { } @@ -159,8 +169,10 @@ public function getQuery() * * The trailing ":" character is not part of the scheme and MUST NOT be * added. + * + * @return string */ - public function getScheme() + public function getScheme(): string { } @@ -424,9 +436,9 @@ private function filterPath(string $path): string * * @param int|null $port * - * @return int + * @return int|null */ - private function filterPort($port): int + private function filterPort($port): ?int { } @@ -474,4 +486,5 @@ private function filterScheme(string $scheme): string private function splitQueryValue(string $element): array { } + } diff --git a/src/Phalcon/Http/Message/UriFactory.php b/src/Http/Message/UriFactory.zep.php similarity index 99% rename from src/Phalcon/Http/Message/UriFactory.php rename to src/Http/Message/UriFactory.zep.php index 221ceffd..81168be2 100644 --- a/src/Phalcon/Http/Message/UriFactory.php +++ b/src/Http/Message/UriFactory.zep.php @@ -28,4 +28,5 @@ final class UriFactory implements \Psr\Http\Message\UriFactoryInterface public function createUri(string $uri = ''): UriInterface { } + } diff --git a/src/Phalcon/Http/Request.php b/src/Http/Request.zep.php similarity index 98% rename from src/Phalcon/Http/Request.php rename to src/Http/Request.zep.php index eb9b47f8..f8af53d6 100644 --- a/src/Phalcon/Http/Request.php +++ b/src/Http/Request.zep.php @@ -48,8 +48,10 @@ */ class Request extends AbstractInjectionAware implements \Phalcon\Http\RequestInterface { - - private $filterService; + /** + * @var FilterInterface|null + */ + private $filterService = null; /** * @var bool @@ -59,13 +61,17 @@ class Request extends AbstractInjectionAware implements \Phalcon\Http\RequestInt /** * @var array */ - private $queryFilters = array(); - - - private $putCache; + private $queryFilters = []; + /** + * @var array|null + */ + private $putCache = null; - private $rawBody; + /** + * @var string + */ + private $rawBody = ''; /** * @var bool @@ -339,7 +345,7 @@ public function getHTTPReferer(): string * Gets decoded JSON HTTP raw request body * * @param bool $associative - * @return array|bool|\stdClass + * @return 0|1|\stdClass */ public function getJsonRawBody(bool $associative = false) { @@ -783,7 +789,7 @@ public function numFiles(bool $onlySuccessful = false): int * @param array $scope * @return RequestInterface */ - public function setParameterFilters(string $name, array $filters = array(), array $scope = array()): RequestInterface + public function setParameterFilters(string $name, array $filters = [], array $scope = []): RequestInterface { } @@ -886,4 +892,5 @@ private function getFilterService(): FilterInterface private function getServerArray(): array { } + } diff --git a/src/Phalcon/Http/Request/Exception.php b/src/Http/Request/Exception.zep.php similarity index 100% rename from src/Phalcon/Http/Request/Exception.php rename to src/Http/Request/Exception.zep.php diff --git a/src/Phalcon/Http/Request/File.php b/src/Http/Request/File.zep.php similarity index 90% rename from src/Phalcon/Http/Request/File.php rename to src/Http/Request/File.zep.php index eb3c6500..610d23d7 100644 --- a/src/Phalcon/Http/Request/File.php +++ b/src/Http/Request/File.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Http\Request; +use Phalcon\Helper\Arr; + /** * Phalcon\Http\Request\File * @@ -37,7 +39,7 @@ class File implements \Phalcon\Http\Request\FileInterface /** * @var string|null */ - protected $error; + protected $error = null; /** * @var string @@ -47,21 +49,31 @@ class File implements \Phalcon\Http\Request\FileInterface /** * @var string|null */ - protected $key; - + protected $key = null; + /** + * @var string + */ protected $name; - + /** + * @var string + */ protected $realType; + /** + * @var int + */ + protected $size = 0; - protected $size; - - - protected $tmp; - + /** + * @var string|null + */ + protected $tmp = null; + /** + * @var string + */ protected $type; @@ -160,4 +172,5 @@ public function isUploadedFile(): bool public function moveTo(string $destination): bool { } + } diff --git a/src/Phalcon/Http/Request/FileInterface.php b/src/Http/Request/FileInterface.zep.php similarity index 99% rename from src/Phalcon/Http/Request/FileInterface.php rename to src/Http/Request/FileInterface.zep.php index 87883513..5568443b 100644 --- a/src/Phalcon/Http/Request/FileInterface.php +++ b/src/Http/Request/FileInterface.zep.php @@ -67,4 +67,5 @@ public function getType(): string; * @return bool */ public function moveTo(string $destination): bool; + } diff --git a/src/Phalcon/Http/RequestInterface.php b/src/Http/RequestInterface.zep.php similarity index 99% rename from src/Phalcon/Http/RequestInterface.php rename to src/Http/RequestInterface.zep.php index 87afbfac..c9636e39 100644 --- a/src/Phalcon/Http/RequestInterface.php +++ b/src/Http/RequestInterface.zep.php @@ -187,7 +187,7 @@ public function getHTTPReferer(): string; * Gets decoded JSON HTTP raw request body * * @param bool $associative - * @return array|bool|\stdClass + * @return 0|1|stdClass */ public function getJsonRawBody(bool $associative = false); @@ -511,4 +511,5 @@ public function isTrace(): bool; * @return int */ public function numFiles(bool $onlySuccessful = false): int; + } diff --git a/src/Phalcon/Http/Response.php b/src/Http/Response.zep.php similarity index 93% rename from src/Phalcon/Http/Response.php rename to src/Http/Response.zep.php index 101de485..53498566 100644 --- a/src/Phalcon/Http/Response.php +++ b/src/Http/Response.zep.php @@ -41,22 +41,34 @@ */ class Response implements \Phalcon\Http\ResponseInterface, \Phalcon\Di\InjectionAwareInterface, \Phalcon\Events\EventsAwareInterface { + /** + * @var DiInterface|null + */ + protected $container = null; - protected $container; - - - protected $content; - - - protected $cookies; - - - protected $eventsManager; + /** + * @var string|null + */ + protected $content = null; + /** + * @var CookiesInterface|null + */ + protected $cookies = null; - protected $file; + /** + * @var ManagerInterface|null + */ + protected $eventsManager = null; + /** + * @var string|null + */ + protected $file = null; + /** + * @var Headers + */ protected $headers; /** @@ -64,8 +76,10 @@ class Response implements \Phalcon\Http\ResponseInterface, \Phalcon\Di\Injection */ protected $sent = false; - - protected $statusCodes; + /** + * @var array + */ + protected $statusCodes = []; /** @@ -119,9 +133,9 @@ public function getDI(): DiInterface /** * Returns the internal event manager * - * @return ManagerInterface + * @return ManagerInterface|null */ - public function getEventsManager(): ManagerInterface + public function getEventsManager(): ?ManagerInterface { } @@ -255,7 +269,7 @@ public function sendCookies(): ResponseInterface /** * Sends headers to the client * - * @return bool|ResponseInterface + * @return 0|ResponseInterface */ public function sendHeaders() { @@ -335,7 +349,7 @@ public function setCookies(\Phalcon\Http\Response\CookiesInterface $cookies): Re * @param \Phalcon\Di\DiInterface $container * @return void */ - public function setDI(\Phalcon\Di\DiInterface $container) + public function setDI(\Phalcon\Di\DiInterface $container): void { } @@ -379,7 +393,7 @@ public function setExpires(\DateTime $datetime): ResponseInterface * @param \Phalcon\Events\ManagerInterface $eventsManager * @return void */ - public function setEventsManager(\Phalcon\Events\ManagerInterface $eventsManager) + public function setEventsManager(\Phalcon\Events\ManagerInterface $eventsManager): void { } @@ -494,4 +508,5 @@ public function setStatusCode(int $code, string $message = null): ResponseInterf public function setRawHeader(string $header): ResponseInterface { } + } diff --git a/src/Phalcon/Http/Response/Cookies.php b/src/Http/Response/Cookies.zep.php similarity index 91% rename from src/Phalcon/Http/Response/Cookies.php rename to src/Http/Response/Cookies.zep.php index 65e8d588..ae2d892f 100644 --- a/src/Phalcon/Http/Response/Cookies.php +++ b/src/Http/Response/Cookies.zep.php @@ -9,7 +9,9 @@ */ namespace Phalcon\Http\Response; +use Phalcon\Di\DiInterface; use Phalcon\Di\AbstractInjectionAware; +use Phalcon\Http\Cookie\Exception; use Phalcon\Http\Cookie\CookieInterface; /** @@ -62,10 +64,19 @@ */ class Cookies extends AbstractInjectionAware implements \Phalcon\Http\Response\CookiesInterface { + /** + * @var array + */ + protected $cookies = []; - protected $cookies = array(); - + /** + * @var bool + */ + protected $isSent = false; + /** + * @var bool + */ protected $registered = false; /** @@ -75,7 +86,9 @@ class Cookies extends AbstractInjectionAware implements \Phalcon\Http\Response\C */ protected $signKey = null; - + /** + * @var bool + */ protected $useEncryption = true; @@ -130,6 +143,15 @@ public function has(string $name): bool { } + /** + * Returns if the headers have already been sent + * + * @return bool + */ + public function isSent(): bool + { + } + /** * Returns if the bag is automatically encrypting/decrypting cookies * @@ -187,7 +209,7 @@ public function send(): bool * @param array $options * @return CookiesInterface */ - public function set(string $name, $value = null, int $expire = 0, string $path = '/', bool $secure = null, string $domain = null, bool $httpOnly = null, array $options = array()): CookiesInterface + public function set(string $name, $value = null, int $expire = 0, string $path = '/', bool $secure = null, string $domain = null, bool $httpOnly = null, array $options = []): CookiesInterface { } @@ -216,4 +238,5 @@ public function setSignKey(string $signKey = null): CookiesInterface public function useEncryption(bool $useEncryption): CookiesInterface { } + } diff --git a/src/Phalcon/Http/Response/CookiesInterface.php b/src/Http/Response/CookiesInterface.zep.php similarity index 96% rename from src/Phalcon/Http/Response/CookiesInterface.php rename to src/Http/Response/CookiesInterface.zep.php index 03442829..de330cc9 100644 --- a/src/Phalcon/Http/Response/CookiesInterface.php +++ b/src/Http/Response/CookiesInterface.zep.php @@ -78,7 +78,7 @@ public function send(): bool; * @param array $options * @return CookiesInterface */ - public function set(string $name, $value = null, int $expire = 0, string $path = '/', bool $secure = null, string $domain = null, bool $httpOnly = null, array $options = array()): CookiesInterface; + public function set(string $name, $value = null, int $expire = 0, string $path = '/', bool $secure = null, string $domain = null, bool $httpOnly = null, array $options = []): CookiesInterface; /** * Set if cookies in the bag must be automatically encrypted/decrypted @@ -87,4 +87,5 @@ public function set(string $name, $value = null, int $expire = 0, string $path = * @return CookiesInterface */ public function useEncryption(bool $useEncryption): CookiesInterface; + } diff --git a/src/Phalcon/Http/Response/Exception.php b/src/Http/Response/Exception.zep.php similarity index 100% rename from src/Phalcon/Http/Response/Exception.php rename to src/Http/Response/Exception.zep.php diff --git a/src/Phalcon/Http/Response/Headers.php b/src/Http/Response/Headers.zep.php similarity index 86% rename from src/Phalcon/Http/Response/Headers.php rename to src/Http/Response/Headers.zep.php index dc91141d..4d690164 100644 --- a/src/Phalcon/Http/Response/Headers.php +++ b/src/Http/Response/Headers.zep.php @@ -16,8 +16,15 @@ */ class Headers implements \Phalcon\Http\Response\HeadersInterface { + /** + * @var array + */ + protected $headers = []; - protected $headers = array(); + /** + * @var bool + */ + protected $isSent = false; /** @@ -40,6 +47,15 @@ public function has(string $name): bool { } + /** + * Returns if the headers have already been sent + * + * @return bool + */ + public function isSent(): bool + { + } + /** * Removes a header to be sent at the end of the request * @@ -95,4 +111,5 @@ public function setRaw(string $header): HeadersInterface public function toArray(): array { } + } diff --git a/src/Phalcon/Http/Response/HeadersInterface.php b/src/Http/Response/HeadersInterface.zep.php similarity index 99% rename from src/Phalcon/Http/Response/HeadersInterface.php rename to src/Http/Response/HeadersInterface.zep.php index ad75fe1f..af640ce0 100644 --- a/src/Phalcon/Http/Response/HeadersInterface.php +++ b/src/Http/Response/HeadersInterface.zep.php @@ -59,4 +59,5 @@ public function set(string $name, string $value); * @param string $header */ public function setRaw(string $header); + } diff --git a/src/Phalcon/Http/ResponseInterface.php b/src/Http/ResponseInterface.zep.php similarity index 99% rename from src/Phalcon/Http/ResponseInterface.php rename to src/Http/ResponseInterface.zep.php index 89e14993..3fcdf9a6 100644 --- a/src/Phalcon/Http/ResponseInterface.php +++ b/src/Http/ResponseInterface.zep.php @@ -189,7 +189,8 @@ public function sendCookies(): ResponseInterface; /** * Sends headers to the client * - * @return bool|ResponseInterface + * @return 0|ResponseInterface */ public function sendHeaders(); + } diff --git a/src/Phalcon/Http/Server/AbstractMiddleware.php b/src/Http/Server/AbstractMiddleware.zep.php similarity index 99% rename from src/Phalcon/Http/Server/AbstractMiddleware.php rename to src/Http/Server/AbstractMiddleware.zep.php index 2727615d..ff970f7b 100644 --- a/src/Phalcon/Http/Server/AbstractMiddleware.php +++ b/src/Http/Server/AbstractMiddleware.zep.php @@ -36,4 +36,5 @@ abstract class AbstractMiddleware implements \Psr\Http\Server\MiddlewareInterfac * @return ResponseInterface */ abstract public function process(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Server\RequestHandlerInterface $handler): ResponseInterface; + } diff --git a/src/Phalcon/Http/Server/AbstractRequestHandler.php b/src/Http/Server/AbstractRequestHandler.zep.php similarity index 99% rename from src/Phalcon/Http/Server/AbstractRequestHandler.php rename to src/Http/Server/AbstractRequestHandler.zep.php index a272d8ae..b74a5596 100644 --- a/src/Phalcon/Http/Server/AbstractRequestHandler.php +++ b/src/Http/Server/AbstractRequestHandler.zep.php @@ -31,4 +31,5 @@ abstract class AbstractRequestHandler implements \Psr\Http\Server\RequestHandler * @return ResponseInterface */ abstract public function handle(\Psr\Http\Message\ServerRequestInterface $request): ResponseInterface; + } diff --git a/src/Phalcon/Image/Adapter/AbstractAdapter.php b/src/Image/Adapter/AbstractAdapter.zep.php similarity index 93% rename from src/Phalcon/Image/Adapter/AbstractAdapter.php rename to src/Image/Adapter/AbstractAdapter.zep.php index 24633d97..27bd6b7c 100644 --- a/src/Phalcon/Image/Adapter/AbstractAdapter.php +++ b/src/Image/Adapter/AbstractAdapter.zep.php @@ -10,6 +10,7 @@ namespace Phalcon\Image\Adapter; use Phalcon\Image\Enum; +use Phalcon\Image\Exception; /** * Phalcon\Image\Adapter @@ -18,10 +19,14 @@ */ abstract class AbstractAdapter implements \Phalcon\Image\Adapter\AdapterInterface { + /** + * @var bool + */ + static protected $checked = false; - protected static $checked = false; - - + /** + * @var string + */ protected $file; /** @@ -31,8 +36,10 @@ abstract class AbstractAdapter implements \Phalcon\Image\Adapter\AdapterInterfac */ protected $height; - - protected $image; + /** + * @var object|null + */ + protected $image = null; /** * Image mime type @@ -41,7 +48,9 @@ abstract class AbstractAdapter implements \Phalcon\Image\Adapter\AdapterInterfac */ protected $mime; - + /** + * @var string + */ protected $realpath; /** @@ -70,7 +79,9 @@ public function getHeight(): int { } - + /** + * @return object|null + */ public function getImage() { } @@ -84,8 +95,10 @@ public function getMime(): string { } - - public function getRealpath() + /** + * @return string + */ + public function getRealpath(): string { } @@ -281,4 +294,5 @@ public function text(string $text, $offsetX = false, $offsetY = false, int $opac public function watermark(AdapterInterface $watermark, int $offsetX = 0, int $offsetY = 0, int $opacity = 100): AdapterInterface { } + } diff --git a/src/Phalcon/Image/Adapter/AdapterInterface.php b/src/Image/Adapter/AdapterInterface.zep.php similarity index 99% rename from src/Phalcon/Image/Adapter/AdapterInterface.php rename to src/Image/Adapter/AdapterInterface.zep.php index a2bff6a5..4325b26a 100644 --- a/src/Phalcon/Image/Adapter/AdapterInterface.php +++ b/src/Image/Adapter/AdapterInterface.zep.php @@ -124,4 +124,5 @@ public function text(string $text, int $offsetX = 0, int $offsetY = 0, int $opac * @return AdapterInterface */ public function watermark(AdapterInterface $watermark, int $offsetX = 0, int $offsetY = 0, int $opacity = 100): AdapterInterface; + } diff --git a/src/Phalcon/Image/Adapter/Gd.php b/src/Image/Adapter/Gd.zep.php similarity index 96% rename from src/Phalcon/Image/Adapter/Gd.php rename to src/Image/Adapter/Gd.zep.php index 719b860b..b4d1b32b 100644 --- a/src/Phalcon/Image/Adapter/Gd.php +++ b/src/Image/Adapter/Gd.zep.php @@ -9,6 +9,9 @@ */ namespace Phalcon\Image\Adapter; +use Phalcon\Image\Enum; +use Phalcon\Image\Exception; + /** * This file is part of the Phalcon Framework. * @@ -19,8 +22,10 @@ */ class Gd extends \Phalcon\Image\Adapter\AbstractAdapter { - - protected static $checked = false; + /** + * @var bool + */ + static protected $checked = false; /** @@ -178,4 +183,5 @@ protected function processText(string $text, int $offsetX, int $offsetY, int $op protected function processWatermark(AdapterInterface $watermark, int $offsetX, int $offsetY, int $opacity) { } + } diff --git a/src/Phalcon/Image/Adapter/Imagick.php b/src/Image/Adapter/Imagick.zep.php similarity index 81% rename from src/Phalcon/Image/Adapter/Imagick.php rename to src/Image/Adapter/Imagick.zep.php index 8991ffb6..fe39d0df 100644 --- a/src/Phalcon/Image/Adapter/Imagick.php +++ b/src/Image/Adapter/Imagick.zep.php @@ -9,6 +9,9 @@ */ namespace Phalcon\Image\Adapter; +use Phalcon\Image\Enum; +use Phalcon\Image\Exception; + /** * Phalcon\Image\Adapter\Imagick * @@ -21,17 +24,20 @@ * * if ($image->save()) { * echo "success"; - * * } * ``` */ class Imagick extends \Phalcon\Image\Adapter\AbstractAdapter { + /** + * @var bool + */ + static protected $checked = false; - protected static $checked = false; - - - protected static $version = 0; + /** + * @var int + */ + static protected $version = 0; /** @@ -76,8 +82,9 @@ public function getInternalImInstance(): \Imagick * @link http://php.net/manual/ru/imagick.constants.php#imagick.constants.resourcetypes * @param int $type * @param int $limit + * @return void */ - public function setResourceLimit(int $type, int $limit) + public function setResourceLimit(int $type, int $limit): void { } @@ -88,8 +95,9 @@ public function setResourceLimit(int $type, int $limit) * @param int $g * @param int $b * @param int $opacity + * @return void */ - protected function processBackground(int $r, int $g, int $b, int $opacity) + protected function processBackground(int $r, int $g, int $b, int $opacity): void { } @@ -97,8 +105,9 @@ protected function processBackground(int $r, int $g, int $b, int $opacity) * Blur image * * @param int $radius Blur radius + * @return void */ - protected function processBlur(int $radius) + protected function processBlur(int $radius): void { } @@ -109,8 +118,9 @@ protected function processBlur(int $radius) * @param int $height * @param int $offsetX * @param int $offsetY + * @return void */ - protected function processCrop(int $width, int $height, int $offsetX, int $offsetY) + protected function processCrop(int $width, int $height, int $offsetX, int $offsetY): void { } @@ -118,8 +128,9 @@ protected function processCrop(int $width, int $height, int $offsetX, int $offse * Execute a flip. * * @param int $direction + * @return void */ - protected function processFlip(int $direction) + protected function processFlip(int $direction): void { } @@ -131,8 +142,9 @@ protected function processFlip(int $direction) * @param int $height new height * @param int $deltaX How much the seam can traverse on x-axis. Passing 0 causes the seams to be straight. * @param int $rigidity Introduces a bias for non-straight seams. This parameter is typically 0. + * @return void */ - protected function processLiquidRescale(int $width, int $height, int $deltaX, int $rigidity) + protected function processLiquidRescale(int $width, int $height, int $deltaX, int $rigidity): void { } @@ -140,8 +152,9 @@ protected function processLiquidRescale(int $width, int $height, int $deltaX, in * Composite one image onto another * * @param AdapterInterface $image + * @return void */ - protected function processMask(AdapterInterface $image) + protected function processMask(AdapterInterface $image): void { } @@ -149,8 +162,9 @@ protected function processMask(AdapterInterface $image) * Pixelate image * * @param int $amount amount to pixelate + * @return void */ - protected function processPixelate(int $amount) + protected function processPixelate(int $amount): void { } @@ -160,8 +174,9 @@ protected function processPixelate(int $amount) * @param int $height * @param int $opacity * @param bool $fadeIn + * @return void */ - protected function processReflection(int $height, int $opacity, bool $fadeIn) + protected function processReflection(int $height, int $opacity, bool $fadeIn): void { } @@ -181,8 +196,9 @@ protected function processRender(string $extension, int $quality): string * * @param int $width * @param int $height + * @return void */ - protected function processResize(int $width, int $height) + protected function processResize(int $width, int $height): void { } @@ -190,8 +206,9 @@ protected function processResize(int $width, int $height) * Execute a rotation. * * @param int $degrees + * @return void */ - protected function processRotate(int $degrees) + protected function processRotate(int $degrees): void { } @@ -200,8 +217,9 @@ protected function processRotate(int $degrees) * * @param string $file * @param int $quality + * @return void */ - protected function processSave(string $file, int $quality) + protected function processSave(string $file, int $quality): void { } @@ -242,4 +260,5 @@ protected function processText(string $text, $offsetX, $offsetY, int $opacity, i protected function processWatermark(AdapterInterface $image, int $offsetX, int $offsetY, int $opacity) { } + } diff --git a/src/Phalcon/Image/Enum.php b/src/Image/Enum.zep.php similarity index 99% rename from src/Phalcon/Image/Enum.php rename to src/Image/Enum.zep.php index f3c5503d..f059d608 100644 --- a/src/Phalcon/Image/Enum.php +++ b/src/Image/Enum.zep.php @@ -45,4 +45,6 @@ class Enum const VERTICAL = 12; + + } diff --git a/src/Phalcon/Image/Exception.php b/src/Image/Exception.zep.php similarity index 100% rename from src/Phalcon/Image/Exception.php rename to src/Image/Exception.zep.php diff --git a/src/Phalcon/Image/ImageFactory.php b/src/Image/ImageFactory.zep.php similarity index 88% rename from src/Phalcon/Image/ImageFactory.php rename to src/Image/ImageFactory.zep.php index efe9c7c0..1da04509 100644 --- a/src/Phalcon/Image/ImageFactory.php +++ b/src/Image/ImageFactory.zep.php @@ -9,7 +9,9 @@ */ namespace Phalcon\Image; +use Phalcon\Config; use Phalcon\Factory\AbstractFactory; +use Phalcon\Helper\Arr; use Phalcon\Image\Adapter\AdapterInterface; /** @@ -18,12 +20,15 @@ class ImageFactory extends AbstractFactory { + protected $exception = 'Phalcon\\\\Image\\\\Exception'; + + /** * TagFactory constructor. * * @param array $services */ - public function __construct(array $services = array()) + public function __construct(array $services = []) { } @@ -61,4 +66,5 @@ public function newInstance(string $name, string $file, int $width = null, int $ protected function getAdapters(): array { } + } diff --git a/src/Phalcon/Kernel.php b/src/Kernel.zep.php similarity index 99% rename from src/Phalcon/Kernel.php rename to src/Kernel.zep.php index 6450c1fc..e0c058b9 100644 --- a/src/Phalcon/Kernel.php +++ b/src/Kernel.zep.php @@ -25,4 +25,5 @@ class Kernel public static function preComputeHashKey(string $key) { } + } diff --git a/src/Phalcon/Loader.php b/src/Loader.zep.php similarity index 92% rename from src/Phalcon/Loader.php rename to src/Loader.zep.php index bbc1a30b..935e91b4 100644 --- a/src/Phalcon/Loader.php +++ b/src/Loader.zep.php @@ -41,44 +41,50 @@ */ class Loader implements \Phalcon\Events\EventsAwareInterface { - + /** + * @var string|null + */ protected $checkedPath = null; /** * @var array */ - protected $classes = array(); + protected $classes = []; /** * @var array */ - protected $directories = array(); - + protected $directories = []; + /** + * @var ManagerInterface|null + */ protected $eventsManager = null; /** * @var array */ - protected $extensions = array('php'); - + protected $extensions = ['php']; + /** + * @var string + */ protected $fileCheckingCallback = 'is_file'; /** * @var array */ - protected $files = array(); + protected $files = []; /** - * @var bool + * @var string|null */ protected $foundPath = null; /** * @var array */ - protected $namespaces = array(); + protected $namespaces = []; /** * @var bool @@ -126,9 +132,9 @@ public function getDirs(): array /** * Returns the internal event manager * - * @return ManagerInterface + * @return ManagerInterface|null */ - public function getEventsManager(): ManagerInterface + public function getEventsManager(): ?ManagerInterface { } @@ -173,7 +179,7 @@ public function getNamespaces(): array * * @return void */ - public function loadFiles() + public function loadFiles(): void { } @@ -238,7 +244,7 @@ public function registerNamespaces(array $namespaces, bool $merge = false): Load * @param \Phalcon\Events\ManagerInterface $eventsManager * @return void */ - public function setEventsManager(\Phalcon\Events\ManagerInterface $eventsManager) + public function setEventsManager(\Phalcon\Events\ManagerInterface $eventsManager): void { } @@ -291,4 +297,5 @@ public function unregister(): Loader protected function prepareNamespace(array $namespaceName): array { } + } diff --git a/src/Phalcon/Loader/Exception.php b/src/Loader/Exception.zep.php similarity index 100% rename from src/Phalcon/Loader/Exception.php rename to src/Loader/Exception.zep.php diff --git a/src/Phalcon/Logger.php b/src/Logger.zep.php similarity index 87% rename from src/Phalcon/Logger.php rename to src/Logger.zep.php index fe36aa37..81246ef2 100644 --- a/src/Phalcon/Logger.php +++ b/src/Logger.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon; +use DateTimeImmutable; +use DateTimeZone; use Psr\Log\LoggerInterface; use Phalcon\Logger\Adapter\AdapterInterface; use Phalcon\Logger\Item; @@ -81,7 +83,14 @@ class Logger implements \Psr\Log\LoggerInterface * * @var AdapterInterface[] */ - protected $adapters = array(); + protected $adapters = []; + + /** + * The excluded adapters for this log process + * + * @var AdapterInterface[] + */ + protected $excluded = []; /** * Minimum log level for the logger @@ -96,11 +105,9 @@ class Logger implements \Psr\Log\LoggerInterface protected $name = ''; /** - * The excluded adapters for this log process - * - * @var AdapterInterface[] + * @var DateTimeZone|null */ - protected $excluded = array(); + protected $timezone = null; /** @@ -117,8 +124,9 @@ public function getLogLevel(): int * * @param string $name The name of the logger * @param array $adapters The collection of adapters to be used for logging (default []) + * @param DateTimeZone|null $timezone The timezone */ - public function __construct(string $name, array $adapters = array()) + public function __construct(string $name, array $adapters = [], \DateTimeZone $timezone = null) { } @@ -143,7 +151,7 @@ public function addAdapter(string $name, \Phalcon\Logger\Adapter\AdapterInterfac * @param array $context * @return void */ - public function alert($message, array $context = array()) + public function alert($message, array $context = []): void { } @@ -156,7 +164,7 @@ public function alert($message, array $context = array()) * @param array $context * @return void */ - public function critical($message, array $context = array()) + public function critical($message, array $context = []): void { } @@ -167,7 +175,7 @@ public function critical($message, array $context = array()) * @param array $context * @return void */ - public function debug($message, array $context = array()) + public function debug($message, array $context = []): void { } @@ -179,7 +187,7 @@ public function debug($message, array $context = array()) * @param array $context * @return void */ - public function error($message, array $context = array()) + public function error($message, array $context = []): void { } @@ -190,7 +198,7 @@ public function error($message, array $context = array()) * @param array $context * @return void */ - public function emergency($message, array $context = array()) + public function emergency($message, array $context = []): void { } @@ -200,7 +208,7 @@ public function emergency($message, array $context = array()) * @param array $adapters * @return Logger */ - public function excludeAdapters(array $adapters = array()): Logger + public function excludeAdapters(array $adapters = []): Logger { } @@ -243,7 +251,7 @@ public function getName(): string * @param array $context * @return void */ - public function info($message, array $context = array()) + public function info($message, array $context = []): void { } @@ -255,7 +263,7 @@ public function info($message, array $context = array()) * @param array $context * @return void */ - public function log($level, $message, array $context = array()) + public function log($level, $message, array $context = []): void { } @@ -266,7 +274,7 @@ public function log($level, $message, array $context = array()) * @param array $context * @return void */ - public function notice($message, array $context = array()) + public function notice($message, array $context = []): void { } @@ -312,7 +320,7 @@ public function setLogLevel(int $level): Logger * @param array $context * @return void */ - public function warning($message, array $context = array()) + public function warning($message, array $context = []): void { } @@ -325,7 +333,7 @@ public function warning($message, array $context = array()) * @param array $context * @return bool */ - protected function addMessage(int $level, string $message, array $context = array()): bool + protected function addMessage(int $level, string $message, array $context = []): bool { } @@ -347,4 +355,5 @@ protected function getLevels(): array private function getLevelNumber($level): int { } + } diff --git a/src/Phalcon/Logger/Adapter/AbstractAdapter.php b/src/Logger/Adapter/AbstractAdapter.zep.php similarity index 89% rename from src/Phalcon/Logger/Adapter/AbstractAdapter.php rename to src/Logger/Adapter/AbstractAdapter.zep.php index 325b51a8..766c3aee 100644 --- a/src/Phalcon/Logger/Adapter/AbstractAdapter.php +++ b/src/Logger/Adapter/AbstractAdapter.zep.php @@ -9,7 +9,10 @@ */ namespace Phalcon\Logger\Adapter; +use Phalcon\Logger; +use Phalcon\Logger\Exception; use Phalcon\Logger\Formatter\FormatterInterface; +use Phalcon\Logger\Item; /** * This file is part of the Phalcon Framework. @@ -47,7 +50,7 @@ abstract class AbstractAdapter implements \Phalcon\Logger\Adapter\AdapterInterfa * * @var array */ - protected $queue = array(); + protected $queue = []; /** @@ -107,7 +110,7 @@ public function inTransaction(): bool * @param \Phalcon\Logger\Item $item * @return void */ - abstract public function process(\Phalcon\Logger\Item $item); + abstract public function process(\Phalcon\Logger\Item $item): void; /** * Rollbacks the internal transaction @@ -127,4 +130,15 @@ public function rollback(): AdapterInterface public function setFormatter(\Phalcon\Logger\Formatter\FormatterInterface $formatter): AdapterInterface { } + + /** + * Returns the formatted item + * + * @param \Phalcon\Logger\Item $item + * @return string + */ + protected function getFormattedItem(\Phalcon\Logger\Item $item): string + { + } + } diff --git a/src/Phalcon/Logger/Adapter/AdapterInterface.php b/src/Logger/Adapter/AdapterInterface.zep.php similarity index 95% rename from src/Phalcon/Logger/Adapter/AdapterInterface.php rename to src/Logger/Adapter/AdapterInterface.zep.php index 1242f12b..8399d11b 100644 --- a/src/Phalcon/Logger/Adapter/AdapterInterface.php +++ b/src/Logger/Adapter/AdapterInterface.zep.php @@ -10,6 +10,7 @@ namespace Phalcon\Logger\Adapter; use Phalcon\Logger\Formatter\FormatterInterface; +use Phalcon\Logger\Item; /** * Phalcon\Logger\AdapterInterface @@ -69,7 +70,7 @@ public function inTransaction(): bool; * @param \Phalcon\Logger\Item $item * @return void */ - public function process(\Phalcon\Logger\Item $item); + public function process(\Phalcon\Logger\Item $item): void; /** * Rollbacks the internal transaction @@ -85,4 +86,5 @@ public function rollback(): AdapterInterface; * @return AdapterInterface */ public function setFormatter(\Phalcon\Logger\Formatter\FormatterInterface $formatter): AdapterInterface; + } diff --git a/src/Phalcon/Logger/Adapter/Noop.php b/src/Logger/Adapter/Noop.zep.php similarity index 93% rename from src/Phalcon/Logger/Adapter/Noop.php rename to src/Logger/Adapter/Noop.zep.php index 582a0261..b5fc15a0 100644 --- a/src/Phalcon/Logger/Adapter/Noop.php +++ b/src/Logger/Adapter/Noop.zep.php @@ -43,7 +43,8 @@ public function close(): bool * @param \Phalcon\Logger\Item $item * @return void */ - public function process(\Phalcon\Logger\Item $item) + public function process(\Phalcon\Logger\Item $item): void { } + } diff --git a/src/Phalcon/Logger/Adapter/Stream.php b/src/Logger/Adapter/Stream.zep.php similarity index 93% rename from src/Phalcon/Logger/Adapter/Stream.php rename to src/Logger/Adapter/Stream.zep.php index c55dc795..7e65ae63 100644 --- a/src/Phalcon/Logger/Adapter/Stream.php +++ b/src/Logger/Adapter/Stream.zep.php @@ -78,7 +78,7 @@ public function getName(): string * ] * @param string $name */ - public function __construct(string $name, array $options = array()) + public function __construct(string $name, array $options = []) { } @@ -97,7 +97,8 @@ public function close(): bool * @param \Phalcon\Logger\Item $item * @return void */ - public function process(\Phalcon\Logger\Item $item) + public function process(\Phalcon\Logger\Item $item): void { } + } diff --git a/src/Phalcon/Logger/Adapter/Syslog.php b/src/Logger/Adapter/Syslog.zep.php similarity index 94% rename from src/Phalcon/Logger/Adapter/Syslog.php rename to src/Logger/Adapter/Syslog.zep.php index 603557a6..7d970b50 100644 --- a/src/Phalcon/Logger/Adapter/Syslog.php +++ b/src/Logger/Adapter/Syslog.zep.php @@ -79,7 +79,7 @@ class Syslog extends \Phalcon\Logger\Adapter\AbstractAdapter * ] * @param string $name */ - public function __construct(string $name, array $options = array()) + public function __construct(string $name, array $options = []) { } @@ -98,7 +98,7 @@ public function close(): bool * @param \Phalcon\Logger\Item $item * @return void */ - public function process(\Phalcon\Logger\Item $item) + public function process(\Phalcon\Logger\Item $item): void { } @@ -111,4 +111,5 @@ public function process(\Phalcon\Logger\Item $item) private function logLevelToSyslog(int $level): int { } + } diff --git a/src/Phalcon/Logger/AdapterFactory.php b/src/Logger/AdapterFactory.zep.php similarity index 87% rename from src/Phalcon/Logger/AdapterFactory.php rename to src/Logger/AdapterFactory.zep.php index b2cb8c05..cfc64083 100644 --- a/src/Phalcon/Logger/AdapterFactory.php +++ b/src/Logger/AdapterFactory.zep.php @@ -23,12 +23,15 @@ class AdapterFactory extends AbstractFactory { + protected $exception = 'Phalcon\\\\Logger\\\\Exception'; + + /** * AdapterFactory constructor. * * @param array $services */ - public function __construct(array $services = array()) + public function __construct(array $services = []) { } @@ -40,7 +43,7 @@ public function __construct(array $services = array()) * @param array $options * @return AdapterInterface */ - public function newInstance(string $name, string $fileName, array $options = array()): AdapterInterface + public function newInstance(string $name, string $fileName, array $options = []): AdapterInterface { } @@ -50,4 +53,5 @@ public function newInstance(string $name, string $fileName, array $options = arr protected function getAdapters(): array { } + } diff --git a/src/Phalcon/Logger/Exception.php b/src/Logger/Exception.zep.php similarity index 100% rename from src/Phalcon/Logger/Exception.php rename to src/Logger/Exception.zep.php diff --git a/src/Phalcon/Logger/Formatter/AbstractFormatter.php b/src/Logger/Formatter/AbstractFormatter.zep.php similarity index 61% rename from src/Phalcon/Logger/Formatter/AbstractFormatter.php rename to src/Logger/Formatter/AbstractFormatter.zep.php index 9de8a6ce..34858d0b 100644 --- a/src/Phalcon/Logger/Formatter/AbstractFormatter.php +++ b/src/Logger/Formatter/AbstractFormatter.zep.php @@ -9,6 +9,11 @@ */ namespace Phalcon\Logger\Formatter; +use DateTimeImmutable; +use DateTimeZone; +use Phalcon\Logger; +use Phalcon\Logger\Item; + /** * This file is part of the Phalcon Framework. * @@ -45,25 +50,4 @@ public function setDateFormat(string $dateFormat) { } - /** - * Interpolates context values into the message placeholders - * - * @see http://www.php-fig.org/psr/psr-3/ Section 1.2 Message - * @param string $message - * @param array $context - */ - public function interpolate(string $message, $context = null) - { - } - - /** - * Returns the date formatted for the logger. - * - * @todo Not using the set time from the Item since we have interface - * misalignment which will break semver This will change in the future - * @return string - */ - protected function getFormattedDate(): string - { - } } diff --git a/src/Phalcon/Logger/Formatter/FormatterInterface.php b/src/Logger/Formatter/FormatterInterface.zep.php similarity index 95% rename from src/Phalcon/Logger/Formatter/FormatterInterface.php rename to src/Logger/Formatter/FormatterInterface.zep.php index e51a353d..11f4d6f9 100644 --- a/src/Phalcon/Logger/Formatter/FormatterInterface.php +++ b/src/Logger/Formatter/FormatterInterface.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Logger\Formatter; +use Phalcon\Logger\Item; + /** * Phalcon\Logger\FormatterInterface * @@ -24,4 +26,5 @@ interface FormatterInterface * @return string|array */ public function format(\Phalcon\Logger\Item $item); + } diff --git a/src/Phalcon/Logger/Formatter/Json.php b/src/Logger/Formatter/Json.zep.php similarity index 95% rename from src/Phalcon/Logger/Formatter/Json.php rename to src/Logger/Formatter/Json.zep.php index d1a65d25..91535960 100644 --- a/src/Phalcon/Logger/Formatter/Json.php +++ b/src/Logger/Formatter/Json.zep.php @@ -11,6 +11,7 @@ use Phalcon\Helper\Json as JsonHelper; use Phalcon\Logger\Item; +use Phalcon\Support\Helper\Str\Interpolate; /** * Phalcon\Logger\Formatter\Json @@ -38,4 +39,5 @@ public function __construct(string $dateFormat = 'c') public function format(\Phalcon\Logger\Item $item): string { } + } diff --git a/src/Phalcon/Logger/Formatter/Line.php b/src/Logger/Formatter/Line.zep.php similarity index 89% rename from src/Phalcon/Logger/Formatter/Line.php rename to src/Logger/Formatter/Line.zep.php index 173aec9b..5fa7a7cc 100644 --- a/src/Phalcon/Logger/Formatter/Line.php +++ b/src/Logger/Formatter/Line.zep.php @@ -11,6 +11,7 @@ use DateTime; use Phalcon\Logger\Item; +use Phalcon\Support\Helper\Str\Interpolate; /** * Phalcon\Logger\Formatter\Line @@ -51,7 +52,7 @@ public function setFormat(string $format) * @param string $format * @param string $dateFormat */ - public function __construct(string $format = '[%date%][%type%] %message%', string $dateFormat = 'c') + public function __construct(string $format = '[%date%][%level%] %message%', string $dateFormat = 'c') { } @@ -64,4 +65,5 @@ public function __construct(string $format = '[%date%][%type%] %message%', strin public function format(\Phalcon\Logger\Item $item): string { } + } diff --git a/src/Phalcon/Logger/Item.php b/src/Logger/Item.zep.php similarity index 75% rename from src/Phalcon/Logger/Item.php rename to src/Logger/Item.zep.php index 57b8c0d4..2c52d955 100644 --- a/src/Phalcon/Logger/Item.php +++ b/src/Logger/Item.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Logger; +use DateTimeImmutable; + /** * Phalcon\Logger\Item * @@ -31,25 +33,25 @@ class Item protected $message; /** - * Log message + * Log type * - * @var string + * @var integer */ - protected $name; + protected $level; /** - * Log timestamp + * Log message * - * @var integer + * @var string */ - protected $time; + protected $levelName; /** - * Log type + * Log timestamp * - * @var integer + * @var DateTimeImmutable */ - protected $type; + protected $time; /** @@ -71,43 +73,43 @@ public function getMessage(): string } /** - * Log message + * Log type * - * @return string + * @return mixed */ - public function getName(): string + public function getLevel() { } /** - * Log timestamp + * Log message * - * @return mixed + * @return string */ - public function getTime() + public function getLevelName(): string { } /** - * Log type + * Log timestamp * * @return mixed */ - public function getType() + public function getTime() { } /** * Phalcon\Logger\Item constructor * - * @todo Remove the time or change the signature to an array * @param string $message - * @param string $name - * @param int $type - * @param int $time - * @param mixed $context + * @param string $levelName + * @param int $level + * @param \DateTimeImmutable $time + * @param array $context */ - public function __construct(string $message, string $name, int $type, int $time = 0, $context = array()) + public function __construct(string $message, string $levelName, int $level, \DateTimeImmutable $time, array $context = []) { } + } diff --git a/src/Phalcon/Logger/LoggerFactory.php b/src/Logger/LoggerFactory.zep.php similarity index 98% rename from src/Phalcon/Logger/LoggerFactory.php rename to src/Logger/LoggerFactory.zep.php index 8d49ef6b..f61b6672 100644 --- a/src/Phalcon/Logger/LoggerFactory.php +++ b/src/Logger/LoggerFactory.zep.php @@ -63,7 +63,8 @@ public function load($config): Logger * * @return Logger */ - public function newInstance(string $name, array $adapters = array()): Logger + public function newInstance(string $name, array $adapters = []): Logger { } + } diff --git a/src/Phalcon/Messages/Exception.php b/src/Messages/Exception.zep.php similarity index 100% rename from src/Phalcon/Messages/Exception.php rename to src/Messages/Exception.zep.php diff --git a/src/Phalcon/Messages/Message.php b/src/Messages/Message.zep.php similarity index 96% rename from src/Phalcon/Messages/Message.php rename to src/Messages/Message.zep.php index c0c64851..64bb782b 100644 --- a/src/Phalcon/Messages/Message.php +++ b/src/Messages/Message.zep.php @@ -41,7 +41,7 @@ class Message implements \Phalcon\Messages\MessageInterface, \JsonSerializable /** * @var array */ - protected $metaData = array(); + protected $metaData = []; /** @@ -88,7 +88,7 @@ public function getMetaData(): array * @param int $code * @param array $metaData */ - public function __construct(string $message, $field = '', string $type = '', int $code = 0, array $metaData = array()) + public function __construct(string $message, $field = '', string $type = '', int $code = 0, array $metaData = []) { } @@ -159,4 +159,5 @@ public function setMetaData(array $metaData): MessageInterface public function setType(string $type): MessageInterface { } + } diff --git a/src/Phalcon/Messages/MessageInterface.php b/src/Messages/MessageInterface.zep.php similarity index 99% rename from src/Phalcon/Messages/MessageInterface.php rename to src/Messages/MessageInterface.zep.php index 3f964f8f..14a99d06 100644 --- a/src/Phalcon/Messages/MessageInterface.php +++ b/src/Messages/MessageInterface.zep.php @@ -98,4 +98,5 @@ public function setMetaData(array $metaData): MessageInterface; * @return MessageInterface */ public function setType(string $type): MessageInterface; + } diff --git a/src/Phalcon/Messages/Messages.php b/src/Messages/Messages.zep.php similarity index 90% rename from src/Phalcon/Messages/Messages.php rename to src/Messages/Messages.zep.php index 54d8d33b..b0677feb 100644 --- a/src/Phalcon/Messages/Messages.php +++ b/src/Messages/Messages.zep.php @@ -35,7 +35,7 @@ class Messages implements \ArrayAccess, \Countable, \Iterator, \JsonSerializable * * @param array $messages */ - public function __construct(array $messages = array()) + public function __construct(array $messages = []) { } @@ -61,9 +61,7 @@ public function appendMessage(MessageInterface $message) * $messages->appendMessages($messagesArray); * ``` * - * @param \Phalcon\Messages\MessageInterface[] messages - * @param mixed $messages - * @param \Phalcon\Messages\MessageInterface [] messages + * @param \Phalcon\Messages\MessageInterface[] $messages */ public function appendMessages($messages) { @@ -126,7 +124,7 @@ public function key(): int * * @return void */ - public function next() + public function next(): void { } @@ -173,7 +171,7 @@ public function offsetGet($index) * @param mixed $index * @return void */ - public function offsetSet($index, $message) + public function offsetSet($index, $message): void { } @@ -187,7 +185,7 @@ public function offsetSet($index, $message) * @param mixed $index * @return void */ - public function offsetUnset($index) + public function offsetUnset($index): void { } @@ -196,7 +194,7 @@ public function offsetUnset($index) * * @return void */ - public function rewind() + public function rewind(): void { } @@ -208,4 +206,5 @@ public function rewind() public function valid(): bool { } + } diff --git a/src/Phalcon/Mvc/Application.php b/src/Mvc/Application.zep.php similarity index 87% rename from src/Phalcon/Mvc/Application.php rename to src/Mvc/Application.zep.php index 1c2c3a56..3780b777 100644 --- a/src/Phalcon/Mvc/Application.php +++ b/src/Mvc/Application.zep.php @@ -9,7 +9,14 @@ */ namespace Phalcon\Mvc; +use Closure; use Phalcon\Application\AbstractApplication; +use Phalcon\Di\DiInterface; +use Phalcon\Http\ResponseInterface; +use Phalcon\Events\ManagerInterface; +use Phalcon\Mvc\Application\Exception; +use Phalcon\Mvc\Router\RouteInterface; +use Phalcon\Mvc\ModuleDefinitionInterface; /** * Phalcon\Mvc\Application @@ -59,13 +66,19 @@ */ class Application extends AbstractApplication { - + /** + * @var bool + */ protected $implicitView = true; - + /** + * @var bool + */ protected $sendCookies = true; - + /** + * @var bool + */ protected $sendHeaders = true; @@ -73,7 +86,7 @@ class Application extends AbstractApplication * Handles a MVC request * * @param string $uri - * @return bool|\Phalcon\Http\ResponseInterface + * @return 0|ResponseInterface */ public function handle(string $uri) { @@ -109,4 +122,5 @@ public function sendHeadersOnHandleRequest(bool $sendHeaders): Application public function useImplicitView(bool $implicitView): Application { } + } diff --git a/src/Phalcon/Mvc/Application/Exception.php b/src/Mvc/Application/Exception.zep.php similarity index 100% rename from src/Phalcon/Mvc/Application/Exception.php rename to src/Mvc/Application/Exception.zep.php diff --git a/src/Phalcon/Mvc/Controller.php b/src/Mvc/Controller.zep.php similarity index 99% rename from src/Phalcon/Mvc/Controller.php rename to src/Mvc/Controller.zep.php index c5bfda01..0bdb95f1 100644 --- a/src/Phalcon/Mvc/Controller.php +++ b/src/Mvc/Controller.zep.php @@ -60,4 +60,5 @@ abstract class Controller extends Injectable implements \Phalcon\Mvc\ControllerI final public function __construct() { } + } diff --git a/src/Phalcon/Mvc/Controller/BindModelInterface.php b/src/Mvc/Controller/BindModelInterface.zep.php similarity index 99% rename from src/Phalcon/Mvc/Controller/BindModelInterface.php rename to src/Mvc/Controller/BindModelInterface.zep.php index e53bf305..1d8c0bfb 100644 --- a/src/Phalcon/Mvc/Controller/BindModelInterface.php +++ b/src/Mvc/Controller/BindModelInterface.zep.php @@ -23,4 +23,5 @@ interface BindModelInterface * @return string */ public static function getModelName(): string; + } diff --git a/src/Phalcon/Mvc/ControllerInterface.php b/src/Mvc/ControllerInterface.zep.php similarity index 100% rename from src/Phalcon/Mvc/ControllerInterface.php rename to src/Mvc/ControllerInterface.zep.php diff --git a/src/Phalcon/Mvc/Dispatcher.php b/src/Mvc/Dispatcher.zep.php similarity index 95% rename from src/Phalcon/Mvc/Dispatcher.php rename to src/Mvc/Dispatcher.zep.php index af0a7413..7589ddce 100644 --- a/src/Phalcon/Mvc/Dispatcher.php +++ b/src/Mvc/Dispatcher.zep.php @@ -9,6 +9,11 @@ */ namespace Phalcon\Mvc; +use Phalcon\Mvc\Dispatcher\Exception; +use Phalcon\Events\ManagerInterface; +use Phalcon\Http\ResponseInterface; +use Phalcon\Dispatcher\AbstractDispatcher as BaseDispatcher; + /** * Dispatching is the process of taking the request object, extracting the * module name, controller name, action name, and optional parameters contained @@ -101,7 +106,7 @@ class Dispatcher extends \Phalcon\Dispatcher\AbstractDispatcher implements \Phal * @param array $forward * @return void */ - public function forward(array $forward) + public function forward(array $forward): void { } @@ -214,4 +219,5 @@ protected function handleException(\Exception $exception) protected function throwDispatchException(string $message, int $exceptionCode = 0) { } + } diff --git a/src/Phalcon/Mvc/Dispatcher/Exception.php b/src/Mvc/Dispatcher/Exception.zep.php similarity index 100% rename from src/Phalcon/Mvc/Dispatcher/Exception.php rename to src/Mvc/Dispatcher/Exception.zep.php diff --git a/src/Phalcon/Mvc/DispatcherInterface.php b/src/Mvc/DispatcherInterface.zep.php similarity index 99% rename from src/Phalcon/Mvc/DispatcherInterface.php rename to src/Mvc/DispatcherInterface.zep.php index b3c8103c..4d239253 100644 --- a/src/Phalcon/Mvc/DispatcherInterface.php +++ b/src/Mvc/DispatcherInterface.zep.php @@ -60,4 +60,5 @@ public function setControllerName(string $controllerName); * @param string $controllerName */ public function setDefaultController(string $controllerName); + } diff --git a/src/Phalcon/Mvc/EntityInterface.php b/src/Mvc/EntityInterface.zep.php similarity index 99% rename from src/Phalcon/Mvc/EntityInterface.php rename to src/Mvc/EntityInterface.zep.php index 6056f3a6..b530459d 100644 --- a/src/Phalcon/Mvc/EntityInterface.php +++ b/src/Mvc/EntityInterface.zep.php @@ -32,4 +32,5 @@ public function readAttribute(string $attribute); * @param mixed $value */ public function writeAttribute(string $attribute, $value); + } diff --git a/src/Phalcon/Mvc/Micro.php b/src/Mvc/Micro.zep.php similarity index 84% rename from src/Phalcon/Mvc/Micro.php rename to src/Mvc/Micro.zep.php index 5a51c953..0c6d562d 100644 --- a/src/Phalcon/Mvc/Micro.php +++ b/src/Mvc/Micro.zep.php @@ -9,11 +9,23 @@ */ namespace Phalcon\Mvc; +use ArrayAccess; +use Closure; +use Phalcon\Di\DiInterface; use Phalcon\Di\Injectable; +use Phalcon\Di\FactoryDefault; +use Phalcon\Mvc\Micro\Exception; use Phalcon\Di\ServiceInterface; -use Phalcon\Events\ManagerInterface; +use Phalcon\Mvc\Micro\Collection; +use Phalcon\Mvc\Micro\LazyLoader; +use Phalcon\Http\ResponseInterface; use Phalcon\Mvc\Model\BinderInterface; use Phalcon\Mvc\Router\RouteInterface; +use Phalcon\Events\EventsAwareInterface; +use Phalcon\Events\ManagerInterface; +use Phalcon\Mvc\Micro\MiddlewareInterface; +use Phalcon\Mvc\Micro\CollectionInterface; +use Throwable; /** * Phalcon\Mvc\Micro @@ -38,50 +50,80 @@ */ class Micro extends Injectable implements \ArrayAccess, \Phalcon\Events\EventsAwareInterface { + /** + * @var callable|null + */ + protected $activeHandler = null; - protected $activeHandler; - - - protected $afterBindingHandlers = array(); - - - protected $afterHandlers = array(); - - - protected $beforeHandlers = array(); - - - protected $container; - - - protected $errorHandler; - - - protected $eventsManager; - - - protected $finishHandlers = array(); - + /** + * @var array + */ + protected $afterBindingHandlers = []; - protected $handlers = array(); + /** + * @var array + */ + protected $afterHandlers = []; + /** + * @var array + */ + protected $beforeHandlers = []; - protected $modelBinder; + /** + * @var DiInterface|null + */ + protected $container = null; + /** + * @var callable|null + */ + protected $errorHandler = null; - protected $notFoundHandler; + /** + * @var ManagerInterface|null + */ + protected $eventsManager = null; + /** + * @var array + */ + protected $finishHandlers = []; - protected $responseHandler; + /** + * @var array + */ + protected $handlers = []; + /** + * @var BinderInterface|null + */ + protected $modelBinder = null; - protected $returnedValue; + /** + * @var callable|null + */ + protected $notFoundHandler = null; + /** + * @var callable|null + */ + protected $responseHandler = null; - protected $router; + /** + * @var mixed|null + */ + protected $returnedValue = null; + /** + * @var RouterInterface|null + */ + protected $router = null; - protected $stopped; + /** + * @var bool + */ + protected $stopped = false; /** @@ -187,7 +229,7 @@ public function getBoundModels(): array /** * Returns the internal event manager * - * @return \Phalcon\Events\ManagerInterface|null + * @return ManagerInterface|null */ public function getEventsManager(): ?ManagerInterface { @@ -199,7 +241,7 @@ public function getEventsManager(): ?ManagerInterface * @param \Phalcon\Events\ManagerInterface $eventsManager * @return void */ - public function setEventsManager(\Phalcon\Events\ManagerInterface $eventsManager) + public function setEventsManager(\Phalcon\Events\ManagerInterface $eventsManager): void { } @@ -215,7 +257,7 @@ public function getHandlers(): array /** * Gets model binder * - * @return \Phalcon\Mvc\Model\BinderInterface|null + * @return BinderInterface|null */ public function getModelBinder(): ?BinderInterface { @@ -362,7 +404,7 @@ public function offsetGet($alias) * @param mixed $definition * @return void */ - public function offsetSet($alias, $definition) + public function offsetSet($alias, $definition): void { } @@ -373,7 +415,7 @@ public function offsetSet($alias, $definition) * @param mixed $alias * @return void */ - public function offsetUnset($alias) + public function offsetUnset($alias): void { } @@ -436,7 +478,7 @@ public function setActiveHandler($activeHandler) * @param \Phalcon\Di\DiInterface $container * @return void */ - public function setDI(\Phalcon\Di\DiInterface $container) + public function setDI(\Phalcon\Di\DiInterface $container): void { } @@ -490,4 +532,5 @@ public function setService(string $serviceName, $definition, bool $shared = fals public function stop() { } + } diff --git a/src/Phalcon/Mvc/Micro/Collection.php b/src/Mvc/Micro/Collection.zep.php similarity index 83% rename from src/Phalcon/Mvc/Micro/Collection.php rename to src/Mvc/Micro/Collection.zep.php index 8479ed72..179198bc 100644 --- a/src/Phalcon/Mvc/Micro/Collection.php +++ b/src/Mvc/Micro/Collection.zep.php @@ -30,25 +30,33 @@ */ class Collection implements \Phalcon\Mvc\Micro\CollectionInterface { - + /** + * @var callable + */ protected $handler; + /** + * @var array + */ + protected $handlers = []; - protected $handlers = array(); - - - protected $lazy; - + /** + * @var bool + */ + protected $lazy = false; - protected $prefix; + /** + * @var string + */ + protected $prefix = ''; /** * Maps a route to a handler that only matches if the HTTP method is DELETE. * - * @param callable|string $handler * @param string $routePattern - * @param string $name + * @param callable $handler + * @param string|null $name * * @return CollectionInterface */ public function delete(string $routePattern, $handler, string $name = null): CollectionInterface @@ -58,9 +66,9 @@ public function delete(string $routePattern, $handler, string $name = null): Col /** * Maps a route to a handler that only matches if the HTTP method is GET. * - * @param callable|string $handler * @param string $routePattern - * @param string $name + * @param callable $handler + * @param string|null $name * * @return CollectionInterface */ public function get(string $routePattern, $handler, string $name = null): CollectionInterface @@ -97,9 +105,9 @@ public function getPrefix(): string /** * Maps a route to a handler that only matches if the HTTP method is HEAD. * - * @param callable|string $handler * @param string $routePattern - * @param string $name + * @param callable|string $handler + * @param string|null $name * * @return CollectionInterface */ public function head(string $routePattern, $handler, string $name = null): CollectionInterface @@ -118,9 +126,9 @@ public function isLazy(): bool /** * Maps a route to a handler. * - * @param callable|string $handler * @param string $routePattern - * @param string $name + * @param callable $handler + * @param string|null $name * * @return CollectionInterface */ public function map(string $routePattern, $handler, string $name = null): CollectionInterface @@ -139,10 +147,10 @@ public function map(string $routePattern, $handler, string $name = null): Collec * ); * ``` * + * @param string $routePattern * @param callable $handler * @param string|array $method - * @param string $routePattern - * @param string $name + * @param string|null $name * * @return CollectionInterface */ public function mapVia(string $routePattern, $handler, $method, string $name = null): CollectionInterface @@ -153,9 +161,9 @@ public function mapVia(string $routePattern, $handler, $method, string $name = n * Maps a route to a handler that only matches if the HTTP method is * OPTIONS. * - * @param callable|string $handler * @param string $routePattern - * @param string $name + * @param callable $handler + * @param string|null $name * * @return CollectionInterface */ public function options(string $routePattern, $handler, string $name = null): CollectionInterface @@ -165,9 +173,9 @@ public function options(string $routePattern, $handler, string $name = null): Co /** * Maps a route to a handler that only matches if the HTTP method is PATCH. * - * @param callable|string $handler * @param string $routePattern - * @param string $name + * @param callable $handler + * @param string|null $name * * @return CollectionInterface */ public function patch(string $routePattern, $handler, string $name = null): CollectionInterface @@ -177,9 +185,9 @@ public function patch(string $routePattern, $handler, string $name = null): Coll /** * Maps a route to a handler that only matches if the HTTP method is POST. * - * @param callable|string $handler * @param string $routePattern - * @param string $name + * @param callable $handler + * @param string|null $name * * @return CollectionInterface */ public function post(string $routePattern, $handler, string $name = null): CollectionInterface @@ -189,9 +197,9 @@ public function post(string $routePattern, $handler, string $name = null): Colle /** * Maps a route to a handler that only matches if the HTTP method is PUT. * - * @param callable|string $handler * @param string $routePattern - * @param string $name + * @param callable $handler + * @param string|null $name * * @return CollectionInterface */ public function put(string $routePattern, $handler, string $name = null): CollectionInterface @@ -201,8 +209,8 @@ public function put(string $routePattern, $handler, string $name = null): Collec /** * Sets the main handler. * - * @param callable|string $handler - * @param bool $lazy + * @param mixed $handler + * @param bool $lazy * * @return CollectionInterface */ public function setHandler($handler, bool $lazy = false): CollectionInterface @@ -212,7 +220,7 @@ public function setHandler($handler, bool $lazy = false): CollectionInterface /** * Sets if the main handler must be lazy loaded * - * @param bool $lazy + * @param bool $lazy * * @return CollectionInterface */ public function setLazy(bool $lazy): CollectionInterface @@ -222,7 +230,7 @@ public function setLazy(bool $lazy): CollectionInterface /** * Sets a prefix for all routes added to the collection * - * @param string $prefix + * @param string $prefix * * @return CollectionInterface */ public function setPrefix(string $prefix): CollectionInterface @@ -233,11 +241,13 @@ public function setPrefix(string $prefix): CollectionInterface * Internal function to add a handler to the group. * * @param string|array $method - * @param callable|string $handler * @param string $routePattern + * @param callable $handler * @param string $name + * @return void */ - protected function addMap($method, string $routePattern, $handler, string $name) + protected function addMap($method, string $routePattern, $handler, string $name): void { } + } diff --git a/src/Phalcon/Mvc/Micro/CollectionInterface.php b/src/Mvc/Micro/CollectionInterface.zep.php similarity index 99% rename from src/Phalcon/Mvc/Micro/CollectionInterface.php rename to src/Mvc/Micro/CollectionInterface.zep.php index a0b3d42a..40717b79 100644 --- a/src/Phalcon/Mvc/Micro/CollectionInterface.php +++ b/src/Mvc/Micro/CollectionInterface.zep.php @@ -129,7 +129,7 @@ public function put(string $routePattern, $handler, string $name = null): Collec * Sets the main handler * * @param mixed $handler - * @param bool $lazy + * @param bool $lazy * * @return CollectionInterface */ public function setHandler($handler, bool $lazy = false): CollectionInterface; @@ -149,4 +149,5 @@ public function setLazy(bool $lazy): CollectionInterface; * @return CollectionInterface */ public function setPrefix(string $prefix): CollectionInterface; + } diff --git a/src/Phalcon/Mvc/Micro/Exception.php b/src/Mvc/Micro/Exception.zep.php similarity index 100% rename from src/Phalcon/Mvc/Micro/Exception.php rename to src/Mvc/Micro/Exception.zep.php diff --git a/src/Phalcon/Mvc/Micro/LazyLoader.php b/src/Mvc/Micro/LazyLoader.zep.php similarity index 78% rename from src/Phalcon/Mvc/Micro/LazyLoader.php rename to src/Mvc/Micro/LazyLoader.zep.php index 6aa39862..5caed1e4 100644 --- a/src/Phalcon/Mvc/Micro/LazyLoader.php +++ b/src/Mvc/Micro/LazyLoader.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Mvc\Micro; +use Phalcon\Mvc\Model\BinderInterface; + /** * Phalcon\Mvc\Micro\LazyLoader * @@ -16,20 +18,28 @@ */ class LazyLoader { + /** + * @var object|null + */ + protected $handler = null; - protected $handler; - - + /** + * @var string + */ protected $definition; - + /** + * @return object|null + */ public function getHandler() { } - - public function getDefinition() + /** + * @return string + */ + public function getDefinition(): string { } @@ -53,4 +63,5 @@ public function __construct(string $definition) public function callMethod(string $method, $arguments, \Phalcon\Mvc\Model\BinderInterface $modelBinder = null) { } + } diff --git a/src/Phalcon/Mvc/Micro/MiddlewareInterface.php b/src/Mvc/Micro/MiddlewareInterface.zep.php similarity index 95% rename from src/Phalcon/Mvc/Micro/MiddlewareInterface.php rename to src/Mvc/Micro/MiddlewareInterface.zep.php index ab24356d..d304f082 100644 --- a/src/Phalcon/Mvc/Micro/MiddlewareInterface.php +++ b/src/Mvc/Micro/MiddlewareInterface.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Mvc\Micro; +use Phalcon\Mvc\Micro; + /** * Allows to implement Phalcon\Mvc\Micro middleware in classes */ @@ -21,4 +23,5 @@ interface MiddlewareInterface * @param \Phalcon\Mvc\Micro $application */ public function call(\Phalcon\Mvc\Micro $application); + } diff --git a/src/Phalcon/Mvc/Model.php b/src/Mvc/Model.zep.php similarity index 88% rename from src/Phalcon/Mvc/Model.php rename to src/Mvc/Model.zep.php index 4e282154..e37dda9d 100644 --- a/src/Phalcon/Mvc/Model.php +++ b/src/Mvc/Model.zep.php @@ -9,15 +9,39 @@ */ namespace Phalcon\Mvc; +use JsonSerializable; use Phalcon\Db\Adapter\AdapterInterface; +use Phalcon\Db\Column; +use Phalcon\Db\DialectInterface; +use Phalcon\Db\Enum; +use Phalcon\Db\RawValue; use Phalcon\Di\AbstractInjectionAware; +use Phalcon\Di; +use Phalcon\Di\DiInterface; use Phalcon\Events\ManagerInterface as EventsManagerInterface; +use Phalcon\Helper\Arr; +use Phalcon\Messages\Message; +use Phalcon\Messages\MessageInterface; +use Phalcon\Mvc\Model\BehaviorInterface; +use Phalcon\Mvc\Model\Criteria; use Phalcon\Mvc\Model\CriteriaInterface; +use Phalcon\Mvc\Model\Exception; use Phalcon\Mvc\Model\ManagerInterface; use Phalcon\Mvc\Model\MetaDataInterface; use Phalcon\Mvc\Model\Query; -use Phalcon\Mvc\Model\Relation; +use Phalcon\Mvc\Model\Query\Builder; +use Phalcon\Mvc\Model\Query\BuilderInterface; +use Phalcon\Mvc\Model\QueryInterface; +use Phalcon\Mvc\Model\ResultInterface; +use Phalcon\Mvc\Model\Resultset; use Phalcon\Mvc\Model\ResultsetInterface; +use Phalcon\Mvc\Model\Relation; +use Phalcon\Mvc\Model\RelationInterface; +use Phalcon\Mvc\Model\TransactionInterface; +use Phalcon\Mvc\Model\ValidationFailed; +use Phalcon\Mvc\ModelInterface; +use Phalcon\Validation\ValidationInterface; +use Serializable; /** * Phalcon\Mvc\Model @@ -82,58 +106,81 @@ abstract class Model extends AbstractInjectionAware implements \Phalcon\Mvc\Enti const TRANSACTION_INDEX = 'transaction'; - + /** + * @var int + */ protected $dirtyState = 1; /** * @var array */ - protected $dirtyRelated = array(); + protected $dirtyRelated = []; /** * @var array */ - protected $errorMessages = array(); - - - protected $modelsManager; + protected $errorMessages = []; + /** + * @var ManagerInterface|null + */ + protected $modelsManager = null; - protected $modelsMetaData; + /** + * @var MetaDataInterface|null + */ + protected $modelsMetaData = null; /** * @var array */ - protected $related = array(); - + protected $related = []; + /** + * @var int + */ protected $operationMade = 0; /** * @var array */ - protected $oldSnapshot = array(); - - - protected $skipped; - - - protected $snapshot; - - - protected $transaction; - + protected $oldSnapshot = []; - protected $uniqueKey; + /** + * @var bool + */ + protected $skipped = false; + /** + * @var array + */ + protected $snapshot = []; - protected $uniqueParams; + /** + * @var TransactionInterface|null + */ + protected $transaction = null; + /** + * @var string|null + */ + protected $uniqueKey = null; - protected $uniqueTypes; + /** + * @var array + */ + protected $uniqueParams = []; + /** + * @var array|null + * TODO: Make it always array in code + */ + protected $uniqueTypes = null; + /** + * @return TransactionInterface|null + */ public function getTransaction() { } @@ -243,7 +290,7 @@ public function __set(string $property, $value) * @param \Phalcon\Mvc\Model\BehaviorInterface $behavior * @return void */ - public function addBehavior(\Phalcon\Mvc\Model\BehaviorInterface $behavior) + public function addBehavior(\Phalcon\Mvc\Model\BehaviorInterface $behavior): void { } @@ -320,9 +367,10 @@ public function appendMessage(\Phalcon\Messages\MessageInterface $message): Mode * ); * ``` * - * @param array $dataColumnMap array to transform keys of data to another - * @param array $whiteList * @param array $data + * @param mixed $whiteList + * @param mixed $dataColumnMap Array to transform keys of data to another + * * @return ModelInterface */ public function assign(array $data, $whiteList = null, $dataColumnMap = null): ModelInterface @@ -359,9 +407,9 @@ public function assign(array $data, $whiteList = null, $dataColumnMap = null): M * ``` * * @param array $parameters - * @return double | ResultsetInterface + * @return float | ResultsetInterface */ - public static function average($parameters = null) + public static function average(array $parameters = []) { } @@ -402,12 +450,12 @@ public static function cloneResult(\Phalcon\Mvc\ModelInterface $base, array $dat * ); * ``` * - * @param \Phalcon\Mvc\ModelInterface|\Phalcon\Mvc\Model\Row $base - * @param array $columnMap - * @param array $data + * @param ModelInterface|\Phalcon\Mvc\Model\Row $base + * @param mixed $columnMap * @param int $dirtyState - * @param bool $keepSnapshots + * @param bool $keepSnapshots * * @return ModelInterface + * @param array $data */ public static function cloneResultMap($base, array $data, $columnMap, int $dirtyState = 0, bool $keepSnapshots = null): ModelInterface { @@ -416,10 +464,10 @@ public static function cloneResultMap($base, array $data, $columnMap, int $dirty /** * Returns an hydrated result based on the data and the column map * - * @param array $columnMap - * @return mixed * @param array $data - * @param int $hydrationMode + * @param mixed $columnMap + * @param int $hydrationMode * + * @return mixed */ public static function cloneResultMapHydrate(array $data, $columnMap, int $hydrationMode) { @@ -454,8 +502,8 @@ protected function collectRelatedToSave(): array * echo "There are ", $number, " mechanical robots\n"; * ``` * - * @param array $parameters - * @return int|\Phalcon\Mvc\Model\ResultsetInterface + * @param array|string|null $parameters + * @return 0|ResultsetInterface */ public static function count($parameters = null) { @@ -798,7 +846,7 @@ public static function find($parameters = null): ResultsetInterface * ], * 'hydration' => null * ] - * @return \Phalcon\Mvc\ModelInterface|null + * @return ModelInterface|null */ public static function findFirst($parameters = null): ?ModelInterface { @@ -859,7 +907,7 @@ public function getDirtyState(): int /** * Returns the custom events manager or null if there is no custom events manager * - * @return \Phalcon\Events\ManagerInterface|null + * @return EventsManagerInterface|null */ public function getEventsManager(): ?EventsManagerInterface { @@ -955,7 +1003,7 @@ final public function getReadConnectionService(): string * Returns related records based on defined relations * * @param array $arguments - * @return \Phalcon\Mvc\Model\Resultset\Simple|Phalcon\Mvc\Model\Resultset\Simple|false + * @return \Phalcon\Mvc\Model\Resultset\Simple|false * @param string $alias */ public function getRelated(string $alias, $arguments = null) @@ -992,9 +1040,9 @@ public function isRelationshipLoaded(string $relationshipAlias): bool /** * Returns schema name where the mapped table is located * - * @return string + * @return string|null */ - final public function getSchema(): string + final public function getSchema(): ?string { } @@ -1269,7 +1317,7 @@ public function unserialize($data) * @param string $connectionService * @return void */ - final public function setConnectionService(string $connectionService) + final public function setConnectionService(string $connectionService): void { } @@ -1277,7 +1325,7 @@ final public function setConnectionService(string $connectionService) * Sets the dirty state of the object using one of the DIRTY_STATE_ constants * * @param int $dirtyState - * @return bool|\Phalcon\Mvc\ModelInterface + * @return 0|ModelInterface */ public function setDirtyState(int $dirtyState) { @@ -1298,7 +1346,7 @@ public function setEventsManager(\Phalcon\Events\ManagerInterface $eventsManager * @param string $connectionService * @return void */ - final public function setReadConnectionService(string $connectionService) + final public function setReadConnectionService(string $connectionService): void { } @@ -1323,7 +1371,7 @@ public function setOldSnapshotData(array $data, $columnMap = null) * @param array $data * @return void */ - public function setSnapshotData(array $data, $columnMap = null) + public function setSnapshotData(array $data, $columnMap = null): void { } @@ -1379,7 +1427,7 @@ public function setTransaction(\Phalcon\Mvc\Model\TransactionInterface $transact * @param array $options * @return void */ - public static function setup(array $options) + public static function setup(array $options): void { } @@ -1389,7 +1437,7 @@ public static function setup(array $options) * @param string $connectionService * @return void */ - final public function setWriteConnectionService(string $connectionService) + final public function setWriteConnectionService(string $connectionService): void { } @@ -1399,7 +1447,7 @@ final public function setWriteConnectionService(string $connectionService) * @param bool $skip * @return void */ - public function skipOperation(bool $skip) + public function skipOperation(bool $skip): void { } @@ -1482,7 +1530,7 @@ public function update(): bool * @param mixed $value * @return void */ - public function writeAttribute(string $attribute, $value) + public function writeAttribute(string $attribute, $value): void { } @@ -1493,7 +1541,7 @@ public function writeAttribute(string $attribute, $value) * * @return bool */ - final protected function _checkForeignKeysRestrict(): bool + final protected function checkForeignKeysRestrict(): bool { } @@ -1503,7 +1551,7 @@ final protected function _checkForeignKeysRestrict(): bool * * @return bool */ - final protected function _checkForeignKeysReverseCascade(): bool + final protected function checkForeignKeysReverseCascade(): bool { } @@ -1513,23 +1561,7 @@ final protected function _checkForeignKeysReverseCascade(): bool * * @return bool */ - final protected function _checkForeignKeysReverseRestrict(): bool - { - } - - /** - * Sends a pre-build INSERT SQL statement to the relational database system - * - * @todo Remove in v5.0 - * @deprecated Use doLowInsert() - * - * @param string|array $table - * @param bool|string $identityField - * @param \Phalcon\Mvc\Model\MetaDataInterface $metaData - * @param \Phalcon\Db\Adapter\AdapterInterface $connection - * @return bool - */ - protected function _doLowInsert(\Phalcon\Mvc\Model\MetaDataInterface $metaData, \Phalcon\Db\Adapter\AdapterInterface $connection, $table, $identityField): bool + final protected function checkForeignKeysReverseRestrict(): bool { } @@ -1546,21 +1578,6 @@ protected function doLowInsert(\Phalcon\Mvc\Model\MetaDataInterface $metaData, \ { } - /** - * Sends a pre-build UPDATE SQL statement to the relational database system - * - * @todo Remove in v5.0 - * @deprecated Use doLowUpdate() - * - * @param string|array $table - * @param \Phalcon\Mvc\Model\MetaDataInterface $metaData - * @param \Phalcon\Db\Adapter\AdapterInterface $connection - * @return bool - */ - protected function _doLowUpdate(\Phalcon\Mvc\Model\MetaDataInterface $metaData, \Phalcon\Db\Adapter\AdapterInterface $connection, $table): bool - { - } - /** * Sends a pre-build UPDATE SQL statement to the relational database system * @@ -1573,20 +1590,6 @@ protected function doLowUpdate(\Phalcon\Mvc\Model\MetaDataInterface $metaData, \ { } - /** - * Checks whether the current record already exists - * - * @todo Remove in v5.0 - * @deprecated Use exists() - * - * @return bool - * @param \Phalcon\Mvc\Model\MetaDataInterface $metaData - * @param \Phalcon\Db\Adapter\AdapterInterface $connection - */ - protected function _exists(\Phalcon\Mvc\Model\MetaDataInterface $metaData, \Phalcon\Db\Adapter\AdapterInterface $connection): bool - { - } - /** * Checks whether the current record already exists * @@ -1598,22 +1601,6 @@ protected function exists(\Phalcon\Mvc\Model\MetaDataInterface $metaData, \Phalc { } - /** - * Returns related records defined relations depending on the method name. - * Returns false if the relation is non-existent. - * - * @todo Remove in v5.0 - * @deprecated Use getRelatedRecords() - * - * @param string $modelName - * @param string $method - * @param array $arguments * - * @return ResultsetInterface|ModelInterface|bool|null - */ - protected function _getRelatedRecords(string $modelName, string $method, array $arguments) - { - } - /** * Returns related records defined relations depending on the method name. * Returns false if the relation is non-existent. @@ -1630,38 +1617,23 @@ protected function getRelatedRecords(string $modelName, string $method, array $a /** * Generate a PHQL SELECT statement for an aggregate * - * @todo Remove in v5.0 - * @deprecated Use groupResult() - * - * @param array $parameters - * @return ResultsetInterface * @param string $functionName * @param string $alias - */ - protected static function _groupResult(string $functionName, string $alias, $parameters): ResultsetInterface - { - } - - /** - * Generate a PHQL SELECT statement for an aggregate - * - * @param array $parameters + * @param array|string|null $parameters * * @return ResultsetInterface - * @param string $functionName - * @param string $alias */ - protected static function groupResult(string $functionName, string $alias, $parameters): ResultsetInterface + protected static function groupResult(string $functionName, string $alias, $parameters = null): ResultsetInterface { } /** * Try to check if the query must invoke a finder * - * @return \Phalcon\Mvc\ModelInterface[]|\Phalcon\Mvc\ModelInterface|bool + * @return ModelInterface[]|ModelInterface|bool * @param string $method * @param array $arguments */ - final protected static function _invokeFinder(string $method, array $arguments) + protected final static function invokeFinder(string $method, array $arguments) { } @@ -1672,22 +1644,7 @@ final protected static function _invokeFinder(string $method, array $arguments) * @param mixed $value * @return bool */ - final protected function _possibleSetter(string $property, $value): bool - { - } - - /** - * Executes internal hooks before save a record - * - * @todo Remove in v5.0 - * @deprecated Use preSave() - * - * @return bool - * @param \Phalcon\Mvc\Model\MetaDataInterface $metaData - * @param bool $exists - * @param mixed $identityField - */ - protected function _preSave(\Phalcon\Mvc\Model\MetaDataInterface $metaData, bool $exists, $identityField): bool + final protected function possibleSetter(string $property, $value): bool { } @@ -1706,46 +1663,14 @@ protected function preSave(\Phalcon\Mvc\Model\MetaDataInterface $metaData, bool /** * Saves related records that must be stored prior to save the master record * - * @todo Remove in v5.0 - * @deprecated Use preSaveRelatedRecords() - * - * @param \Phalcon\Mvc\ModelInterface[] related - * @param \Phalcon\Db\Adapter\AdapterInterface $connection - * @param mixed $related - * @param \Phalcon\Mvc\ModelInterface [] related - * @return bool - */ - protected function _preSaveRelatedRecords(\Phalcon\Db\Adapter\AdapterInterface $connection, $related): bool - { - } - - /** - * Saves related records that must be stored prior to save the master record - * - * @param \Phalcon\Mvc\ModelInterface[] related + * @param ModelInterface[] $related * @return bool * @param \Phalcon\Db\Adapter\AdapterInterface $connection - * @param mixed $related - * @param \Phalcon\Mvc\ModelInterface [] related */ protected function preSaveRelatedRecords(\Phalcon\Db\Adapter\AdapterInterface $connection, $related): bool { } - /** - * Executes internal events after save a record - * - * @todo Remove in v5.0 - * @deprecated Use postSave() - * - * @return bool - * @param bool $success - * @param bool $exists - */ - protected function _postSave(bool $success, bool $exists): bool - { - } - /** * Executes internal events after save a record * @@ -1760,27 +1685,9 @@ protected function postSave(bool $success, bool $exists): bool /** * Save the related records assigned in the has-one/has-many relations * - * @todo Remove in v5.0 - * @deprecated Use postSaveRelatedRecords() - * - * @param Phalcon\Mvc\ModelInterface[] related + * @param ModelInterface[] $related * @return bool * @param \Phalcon\Db\Adapter\AdapterInterface $connection - * @param mixed $related - * @param Phalcon\Mvc\ModelInterface [] related - */ - protected function _postSaveRelatedRecords(\Phalcon\Db\Adapter\AdapterInterface $connection, $related): bool - { - } - - /** - * Save the related records assigned in the has-one/has-many relations - * - * @param Phalcon\Mvc\ModelInterface[] related - * @return bool - * @param \Phalcon\Db\Adapter\AdapterInterface $connection - * @param mixed $related - * @param Phalcon\Mvc\ModelInterface [] related */ protected function postSaveRelatedRecords(\Phalcon\Db\Adapter\AdapterInterface $connection, $related): bool { @@ -1807,17 +1714,7 @@ protected function postSaveRelatedRecords(\Phalcon\Db\Adapter\AdapterInterface $ * @param array $attributes * @return void */ - protected function allowEmptyStringValues(array $attributes) - { - } - - /** - * Cancel the current operation - * - * @todo Remove in v5.0 - * @deprecated Use cancelOperation() - */ - protected function _cancelOperation() + protected function allowEmptyStringValues(array $attributes): void { } @@ -1966,11 +1863,12 @@ protected function hasMany($fields, string $referenceModel, $referencedFields, $ * ``` * * @param string|array $fields + * @param string $intermediateModel * @param string|array $intermediateFields * @param string|array $intermediateReferencedFields + * @param string $referenceModel * @param string|array $referencedFields - * @param array $options * - * @param array|null $options = [ + * @param array $options = [ * 'reusable' => false, * 'alias' => 'someAlias', * 'foreignKey' => [ @@ -1996,11 +1894,9 @@ protected function hasMany($fields, string $referenceModel, $referencedFields, $ * 'hydration' => null * ] * ] - * @param string $intermediateModel - * @param string $referenceModel * @return Relation */ - protected function hasManyToMany($fields, string $intermediateModel, $intermediateFields, $intermediateReferencedFields, string $referenceModel, $referencedFields, $options = null): Relation + protected function hasManyToMany($fields, string $intermediateModel, $intermediateFields, $intermediateReferencedFields, string $referenceModel, $referencedFields, $options = []): Relation { } @@ -2109,7 +2005,7 @@ protected function hasOneThrough($fields, string $intermediateModel, $intermedia * @param bool $keepSnapshot * @return void */ - protected function keepSnapshots(bool $keepSnapshot) + protected function keepSnapshots(bool $keepSnapshot): void { } @@ -2178,7 +2074,7 @@ protected function skipAttributes(array $attributes) * @param array $attributes * @return void */ - protected function skipAttributesOnCreate(array $attributes) + protected function skipAttributesOnCreate(array $attributes): void { } @@ -2203,7 +2099,7 @@ protected function skipAttributesOnCreate(array $attributes) * @param array $attributes * @return void */ - protected function skipAttributesOnUpdate(array $attributes) + protected function skipAttributesOnUpdate(array $attributes): void { } @@ -2225,7 +2121,7 @@ protected function skipAttributesOnUpdate(array $attributes) * @param bool $dynamicUpdate * @return void */ - protected function useDynamicUpdate(bool $dynamicUpdate) + protected function useDynamicUpdate(bool $dynamicUpdate): void { } @@ -2314,4 +2210,5 @@ public function validationHasFailed(): bool private static function caseInsensitiveColumnMap($columnMap, $key): string { } + } diff --git a/src/Phalcon/Mvc/Model/Behavior.php b/src/Mvc/Model/Behavior.zep.php similarity index 92% rename from src/Phalcon/Mvc/Model/Behavior.php rename to src/Mvc/Model/Behavior.zep.php index 25bf961e..0950c247 100644 --- a/src/Phalcon/Mvc/Model/Behavior.php +++ b/src/Mvc/Model/Behavior.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Mvc\Model; +use Phalcon\Mvc\ModelInterface; + /** * Phalcon\Mvc\Model\Behavior * @@ -27,7 +29,7 @@ abstract class Behavior implements \Phalcon\Mvc\Model\BehaviorInterface * * @param array $options */ - public function __construct(array $options = array()) + public function __construct(array $options = []) { } @@ -48,7 +50,7 @@ protected function getOptions(string $eventName = null) * @param string $method * @param array $arguments */ - public function missingMethod(\Phalcon\Mvc\ModelInterface $model, string $method, array $arguments = array()) + public function missingMethod(\Phalcon\Mvc\ModelInterface $model, string $method, array $arguments = []) { } @@ -71,4 +73,5 @@ protected function mustTakeAction(string $eventName): bool public function notify(string $type, \Phalcon\Mvc\ModelInterface $model) { } + } diff --git a/src/Phalcon/Mvc/Model/Behavior/SoftDelete.php b/src/Mvc/Model/Behavior/SoftDelete.zep.php similarity index 91% rename from src/Phalcon/Mvc/Model/Behavior/SoftDelete.php rename to src/Mvc/Model/Behavior/SoftDelete.zep.php index 85b47a4d..5c7a483a 100644 --- a/src/Phalcon/Mvc/Model/Behavior/SoftDelete.php +++ b/src/Mvc/Model/Behavior/SoftDelete.zep.php @@ -9,7 +9,9 @@ */ namespace Phalcon\Mvc\Model\Behavior; +use Phalcon\Mvc\ModelInterface; use Phalcon\Mvc\Model\Behavior; +use Phalcon\Mvc\Model\Exception; /** * Phalcon\Mvc\Model\Behavior\SoftDelete @@ -29,4 +31,5 @@ class SoftDelete extends Behavior public function notify(string $type, \Phalcon\Mvc\ModelInterface $model) { } + } diff --git a/src/Phalcon/Mvc/Model/Behavior/Timestampable.php b/src/Mvc/Model/Behavior/Timestampable.zep.php similarity index 91% rename from src/Phalcon/Mvc/Model/Behavior/Timestampable.php rename to src/Mvc/Model/Behavior/Timestampable.zep.php index 0863099b..3347e329 100644 --- a/src/Phalcon/Mvc/Model/Behavior/Timestampable.php +++ b/src/Mvc/Model/Behavior/Timestampable.zep.php @@ -9,7 +9,10 @@ */ namespace Phalcon\Mvc\Model\Behavior; +use Closure; +use Phalcon\Mvc\ModelInterface; use Phalcon\Mvc\Model\Behavior; +use Phalcon\Mvc\Model\Exception; /** * Phalcon\Mvc\Model\Behavior\Timestampable @@ -36,4 +39,5 @@ public function notify(string $type, \Phalcon\Mvc\ModelInterface $model) private function getTimestamp(array $options) { } + } diff --git a/src/Phalcon/Mvc/Model/BehaviorInterface.php b/src/Mvc/Model/BehaviorInterface.zep.php similarity index 91% rename from src/Phalcon/Mvc/Model/BehaviorInterface.php rename to src/Mvc/Model/BehaviorInterface.zep.php index 8d42f024..78ea5d69 100644 --- a/src/Phalcon/Mvc/Model/BehaviorInterface.php +++ b/src/Mvc/Model/BehaviorInterface.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Mvc\Model; +use Phalcon\Mvc\ModelInterface; + /** * Phalcon\Mvc\Model\BehaviorInterface * @@ -24,7 +26,7 @@ interface BehaviorInterface * @param string $method * @param array $arguments */ - public function missingMethod(\Phalcon\Mvc\ModelInterface $model, string $method, array $arguments = array()); + public function missingMethod(\Phalcon\Mvc\ModelInterface $model, string $method, array $arguments = []); /** * This method receives the notifications from the EventsManager @@ -33,4 +35,5 @@ public function missingMethod(\Phalcon\Mvc\ModelInterface $model, string $method * @param \Phalcon\Mvc\ModelInterface $model */ public function notify(string $type, \Phalcon\Mvc\ModelInterface $model); + } diff --git a/src/Phalcon/Mvc/Model/Binder.php b/src/Mvc/Model/Binder.zep.php similarity index 86% rename from src/Phalcon/Mvc/Model/Binder.php rename to src/Mvc/Model/Binder.zep.php index c5e25187..52070219 100644 --- a/src/Phalcon/Mvc/Model/Binder.php +++ b/src/Mvc/Model/Binder.zep.php @@ -9,7 +9,12 @@ */ namespace Phalcon\Mvc\Model; +use Closure; +use Phalcon\Mvc\Controller\BindModelInterface; +use Phalcon\Mvc\Model\Binder\BindableInterface; use Phalcon\Cache\Adapter\AdapterInterface; +use ReflectionFunction; +use ReflectionMethod; /** * Phalcon\Mvc\Model\Binder @@ -23,22 +28,28 @@ class Binder implements \Phalcon\Mvc\Model\BinderInterface * * @var array */ - protected $boundModels = array(); + protected $boundModels = []; /** * Cache object used for caching parameters for model binding + * + * @var AdapterInterface|null */ protected $cache; /** * Internal cache for caching parameters for model binding during request + * + * @var array */ - protected $internalCache = array(); + protected $internalCache = []; /** * Array for original values + * + * @var array */ - protected $originalValues = array(); + protected $originalValues = []; /** @@ -52,8 +63,10 @@ public function getBoundModels(): array /** * Array for original values + * + * @return array */ - public function getOriginalValues() + public function getOriginalValues(): array { } @@ -82,8 +95,7 @@ public function bindToHandler($handler, array $params, string $cacheKey, string /** * Find the model by param value. * - * @return bool - * + * @return mixed * @param mixed $paramValue * @param string $className */ @@ -132,4 +144,5 @@ protected function getParamsFromReflection($handler, array $params, string $cach public function setCache(\Phalcon\Cache\Adapter\AdapterInterface $cache): BinderInterface { } + } diff --git a/src/Phalcon/Mvc/Model/Binder/BindableInterface.php b/src/Mvc/Model/Binder/BindableInterface.zep.php similarity index 99% rename from src/Phalcon/Mvc/Model/Binder/BindableInterface.php rename to src/Mvc/Model/Binder/BindableInterface.zep.php index f37da24c..f8d4bafb 100644 --- a/src/Phalcon/Mvc/Model/Binder/BindableInterface.php +++ b/src/Mvc/Model/Binder/BindableInterface.zep.php @@ -24,4 +24,5 @@ interface BindableInterface * @return string|array */ public function getModelName(); + } diff --git a/src/Phalcon/Mvc/Model/BinderInterface.php b/src/Mvc/Model/BinderInterface.zep.php similarity index 99% rename from src/Phalcon/Mvc/Model/BinderInterface.php rename to src/Mvc/Model/BinderInterface.zep.php index 8963d43c..29a7e408 100644 --- a/src/Phalcon/Mvc/Model/BinderInterface.php +++ b/src/Mvc/Model/BinderInterface.zep.php @@ -51,4 +51,5 @@ public function getCache(): AdapterInterface; * @return BinderInterface */ public function setCache(\Phalcon\Cache\Adapter\AdapterInterface $cache): BinderInterface; + } diff --git a/src/Phalcon/Mvc/Model/Criteria.php b/src/Mvc/Model/Criteria.zep.php similarity index 96% rename from src/Phalcon/Mvc/Model/Criteria.php rename to src/Mvc/Model/Criteria.zep.php index 7214c6e4..b4c33892 100644 --- a/src/Phalcon/Mvc/Model/Criteria.php +++ b/src/Mvc/Model/Criteria.zep.php @@ -9,7 +9,10 @@ */ namespace Phalcon\Mvc\Model; +use Phalcon\Di; +use Phalcon\Db\Column; use Phalcon\Di\DiInterface; +use Phalcon\Di\InjectionAwareInterface; use Phalcon\Mvc\Model\Query\BuilderInterface; /** @@ -31,20 +34,30 @@ */ class Criteria implements \Phalcon\Mvc\Model\CriteriaInterface, \Phalcon\Di\InjectionAwareInterface { - + /** + * @var array + */ protected $bindParams; - + /** + * @var array + */ protected $bindTypes; - + /** + * @var int + */ protected $hiddenParamNumber = 0; + /** + * @var string|null + */ + protected $model = null; - protected $model; - - - protected $params = array(); + /** + * @var array + */ + protected $params = []; /** @@ -503,7 +516,7 @@ public function rightJoin(string $model, $conditions = null, $alias = null): Cri * @param \Phalcon\Di\DiInterface $container * @return void */ - public function setDI(\Phalcon\Di\DiInterface $container) + public function setDI(\Phalcon\Di\DiInterface $container): void { } @@ -538,4 +551,5 @@ public function sharedLock(bool $sharedLock = true): CriteriaInterface public function where(string $conditions, $bindParams = null, $bindTypes = null): CriteriaInterface { } + } diff --git a/src/Phalcon/Mvc/Model/CriteriaInterface.php b/src/Mvc/Model/CriteriaInterface.zep.php similarity index 99% rename from src/Phalcon/Mvc/Model/CriteriaInterface.php rename to src/Mvc/Model/CriteriaInterface.zep.php index d4d62d17..c8328ad5 100644 --- a/src/Phalcon/Mvc/Model/CriteriaInterface.php +++ b/src/Mvc/Model/CriteriaInterface.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Mvc\Model; +use Phalcon\Di\DiInterface; + /** * Phalcon\Mvc\Model\CriteriaInterface * @@ -333,4 +335,5 @@ public function sharedLock(bool $sharedLock = true): CriteriaInterface; * @return CriteriaInterface */ public function where(string $conditions, $bindParams = null, $bindTypes = null): CriteriaInterface; + } diff --git a/src/Phalcon/Mvc/Model/Exception.php b/src/Mvc/Model/Exception.zep.php similarity index 100% rename from src/Phalcon/Mvc/Model/Exception.php rename to src/Mvc/Model/Exception.zep.php diff --git a/src/Phalcon/Mvc/Model/Manager.php b/src/Mvc/Model/Manager.zep.php similarity index 88% rename from src/Phalcon/Mvc/Model/Manager.php rename to src/Mvc/Model/Manager.zep.php index 7cf8babf..00d242c5 100644 --- a/src/Phalcon/Mvc/Model/Manager.php +++ b/src/Mvc/Model/Manager.zep.php @@ -11,10 +11,13 @@ use Phalcon\Db\Adapter\AdapterInterface; use Phalcon\Di\DiInterface; +use Phalcon\Di\InjectionAwareInterface; +use Phalcon\Events\EventsAwareInterface; use Phalcon\Events\ManagerInterface as EventsManagerInterface; +use Phalcon\Mvc\ModelInterface; +use Phalcon\Mvc\Model\Query\Builder; use Phalcon\Mvc\Model\Query\BuilderInterface; use Phalcon\Mvc\Model\Query\StatusInterface; -use Phalcon\Mvc\ModelInterface; /** * Phalcon\Mvc\Model\Manager @@ -43,118 +46,172 @@ */ class Manager implements \Phalcon\Mvc\Model\ManagerInterface, \Phalcon\Di\InjectionAwareInterface, \Phalcon\Events\EventsAwareInterface { - - protected $aliases = array(); + /** + * @var array + */ + protected $aliases = []; /** * Models' behaviors + * + * @var array */ - protected $behaviors = array(); + protected $behaviors = []; /** * Belongs to relations + * + * @var array */ - protected $belongsTo = array(); + protected $belongsTo = []; /** * All the relationships by model + * + * @var array */ - protected $belongsToSingle = array(); - - - protected $container; + protected $belongsToSingle = []; + /** + * @var DiInterface|null + */ + protected $container = null; - protected $customEventsManager = array(); + /** + * @var array + */ + protected $customEventsManager = []; /** * Does the model use dynamic update, instead of updating all rows? + * + * @var array */ - protected $dynamicUpdate = array(); + protected $dynamicUpdate = []; - - protected $eventsManager; + /** + * @var EventsManagerInterface|null + */ + protected $eventsManager = null; /** * Has many relations + * + * @var array */ - protected $hasMany = array(); + protected $hasMany = []; /** * Has many relations by model + * + * @var array */ - protected $hasManySingle = array(); + protected $hasManySingle = []; /** * Has many-Through relations + * + * @var array */ - protected $hasManyToMany = array(); + protected $hasManyToMany = []; /** * Has many-Through relations by model + * + * @var array */ - protected $hasManyToManySingle = array(); + protected $hasManyToManySingle = []; /** * Has one relations + * + * @var array */ - protected $hasOne = array(); + protected $hasOne = []; /** * Has one relations by model + * + * @var array */ - protected $hasOneSingle = array(); + protected $hasOneSingle = []; /** * Has one through relations + * + * @var array */ - protected $hasOneThrough = array(); + protected $hasOneThrough = []; /** * Has one through relations by model + * + * @var array */ - protected $hasOneThroughSingle = array(); + protected $hasOneThroughSingle = []; /** * Mark initialized models + * + * @var array */ - protected $initialized = array(); + protected $initialized = []; - - protected $keepSnapshots = array(); + /** + * @var array + */ + protected $keepSnapshots = []; /** * Last model initialized + * + * @var ModelInterface|null */ - protected $lastInitialized; + protected $lastInitialized = null; /** * Last query created/executed + * + * @var QueryInterface|null */ - protected $lastQuery; - - - protected $modelVisibility = array(); + protected $lastQuery = null; + /** + * @var array + */ + protected $modelVisibility = []; + /** + * @var string + */ protected $prefix = ''; + /** + * @var array + */ + protected $readConnectionServices = []; - protected $readConnectionServices = array(); - - - protected $sources = array(); - - - protected $schemas = array(); + /** + * @var array + */ + protected $sources = []; + /** + * @var array + */ + protected $schemas = []; - protected $writeConnectionServices = array(); + /** + * @var array + */ + protected $writeConnectionServices = []; /** * Stores a list of reusable instances + * + * @var array */ - protected $reusable = array(); + protected $reusable = []; /** @@ -163,7 +220,7 @@ class Manager implements \Phalcon\Mvc\Model\ManagerInterface, \Phalcon\Di\Inject * @param \Phalcon\Di\DiInterface $container * @return void */ - public function setDI(\Phalcon\Di\DiInterface $container) + public function setDI(\Phalcon\Di\DiInterface $container): void { } @@ -182,16 +239,16 @@ public function getDI(): DiInterface * @param \Phalcon\Events\ManagerInterface $eventsManager * @return void */ - public function setEventsManager(\Phalcon\Events\ManagerInterface $eventsManager) + public function setEventsManager(\Phalcon\Events\ManagerInterface $eventsManager): void { } /** * Returns the internal event manager * - * @return EventsManagerInterface + * @return EventsManagerInterface|null */ - public function getEventsManager(): EventsManagerInterface + public function getEventsManager(): ?EventsManagerInterface { } @@ -202,7 +259,7 @@ public function getEventsManager(): EventsManagerInterface * @param \Phalcon\Events\ManagerInterface $eventsManager * @return void */ - public function setCustomEventsManager(\Phalcon\Mvc\ModelInterface $model, \Phalcon\Events\ManagerInterface $eventsManager) + public function setCustomEventsManager(\Phalcon\Mvc\ModelInterface $model, \Phalcon\Events\ManagerInterface $eventsManager): void { } @@ -210,7 +267,7 @@ public function setCustomEventsManager(\Phalcon\Mvc\ModelInterface $model, \Phal * Returns a custom events manager related to a model or null if there is no related events manager * * @param \Phalcon\Mvc\ModelInterface $model - * @return \Phalcon\Events\ManagerInterface|null + * @return EventsManagerInterface|null */ public function getCustomEventsManager(\Phalcon\Mvc\ModelInterface $model): ?EventsManagerInterface { @@ -280,7 +337,7 @@ public function load(string $modelName): ModelInterface * @param string $prefix * @return void */ - public function setModelPrefix(string $prefix) + public function setModelPrefix(string $prefix): void { } @@ -300,7 +357,7 @@ public function getModelPrefix(): string * @param string $source * @return void */ - public function setModelSource(\Phalcon\Mvc\ModelInterface $model, string $source) + public function setModelSource(\Phalcon\Mvc\ModelInterface $model, string $source): void { } @@ -339,7 +396,7 @@ public function getModelSource(\Phalcon\Mvc\ModelInterface $model): string * @param string $schema * @return void */ - public function setModelSchema(\Phalcon\Mvc\ModelInterface $model, string $schema) + public function setModelSchema(\Phalcon\Mvc\ModelInterface $model, string $schema): void { } @@ -347,9 +404,9 @@ public function setModelSchema(\Phalcon\Mvc\ModelInterface $model, string $schem * Returns the mapped schema for a model * * @param \Phalcon\Mvc\ModelInterface $model - * @return string + * @return string|null */ - public function getModelSchema(\Phalcon\Mvc\ModelInterface $model): string + public function getModelSchema(\Phalcon\Mvc\ModelInterface $model): ?string { } @@ -360,7 +417,7 @@ public function getModelSchema(\Phalcon\Mvc\ModelInterface $model): string * @param string $connectionService * @return void */ - public function setConnectionService(\Phalcon\Mvc\ModelInterface $model, string $connectionService) + public function setConnectionService(\Phalcon\Mvc\ModelInterface $model, string $connectionService): void { } @@ -371,7 +428,7 @@ public function setConnectionService(\Phalcon\Mvc\ModelInterface $model, string * @param string $connectionService * @return void */ - public function setWriteConnectionService(\Phalcon\Mvc\ModelInterface $model, string $connectionService) + public function setWriteConnectionService(\Phalcon\Mvc\ModelInterface $model, string $connectionService): void { } @@ -382,7 +439,7 @@ public function setWriteConnectionService(\Phalcon\Mvc\ModelInterface $model, st * @param string $connectionService * @return void */ - public function setReadConnectionService(\Phalcon\Mvc\ModelInterface $model, string $connectionService) + public function setReadConnectionService(\Phalcon\Mvc\ModelInterface $model, string $connectionService): void { } @@ -406,20 +463,6 @@ public function getWriteConnection(\Phalcon\Mvc\ModelInterface $model): AdapterI { } - /** - * Returns the connection to read or write data related to a model depending on the connection services. - * - * @todo Remove in v5.0 - * @deprecated Use getConnection() - * - * @return AdapterInterface - * @param \Phalcon\Mvc\ModelInterface $model - * @param mixed $connectionServices - */ - protected function _getConnection(\Phalcon\Mvc\ModelInterface $model, $connectionServices): AdapterInterface - { - } - /** * Returns the connection to read or write data related to a model depending on the connection services. * @@ -451,21 +494,6 @@ public function getWriteConnectionService(\Phalcon\Mvc\ModelInterface $model): s { } - /** - * Returns the connection service name used to read or write data related to - * a model depending on the connection services - * - * @todo Remove in v5.0 - * @deprecated Use getConnectionService() - * - * @return string - * @param \Phalcon\Mvc\ModelInterface $model - * @param mixed $connectionServices - */ - public function _getConnectionService(\Phalcon\Mvc\ModelInterface $model, $connectionServices): string - { - } - /** * Returns the connection service name used to read or write data related to * a model depending on the connection services @@ -510,7 +538,7 @@ public function missingMethod(\Phalcon\Mvc\ModelInterface $model, string $eventN * @param BehaviorInterface $behavior * @return void */ - public function addBehavior(\Phalcon\Mvc\ModelInterface $model, BehaviorInterface $behavior) + public function addBehavior(\Phalcon\Mvc\ModelInterface $model, BehaviorInterface $behavior): void { } @@ -521,7 +549,7 @@ public function addBehavior(\Phalcon\Mvc\ModelInterface $model, BehaviorInterfac * @param bool $keepSnapshots * @return void */ - public function keepSnapshots(\Phalcon\Mvc\ModelInterface $model, bool $keepSnapshots) + public function keepSnapshots(\Phalcon\Mvc\ModelInterface $model, bool $keepSnapshots): void { } @@ -542,7 +570,7 @@ public function isKeepingSnapshots(\Phalcon\Mvc\ModelInterface $model): bool * @param bool $dynamicUpdate * @return void */ - public function useDynamicUpdate(\Phalcon\Mvc\ModelInterface $model, bool $dynamicUpdate) + public function useDynamicUpdate(\Phalcon\Mvc\ModelInterface $model, bool $dynamicUpdate): void { } @@ -691,8 +719,8 @@ public function existsHasManyToMany(string $modelName, string $modelRelation): b * Returns a relation by its alias * * @param string $modelName - * @param string $alias - * @return bool|RelationInterface + * @param string $alias * + * @return RelationInterface|bool */ public function getRelationByAlias(string $modelName, string $alias) { @@ -712,7 +740,7 @@ final protected function _mergeFindParameters($findParamsOne, $findParamsTwo): a /** * Helper method to query records based on a relation definition * - * @return \Phalcon\Mvc\Model\Resultset\Simple|Phalcon\Mvc\Model\Resultset\Simple|int|false + * @return \Phalcon\Mvc\Model\Resultset\Simple|int|false * @param RelationInterface $relation * @param \Phalcon\Mvc\ModelInterface $record * @param mixed $parameters @@ -740,7 +768,7 @@ public function getReusableRecords(string $modelName, string $key) * @param mixed $records * @return void */ - public function setReusableRecords(string $modelName, string $key, $records) + public function setReusableRecords(string $modelName, string $key, $records): void { } @@ -749,7 +777,7 @@ public function setReusableRecords(string $modelName, string $key, $records) * * @return void */ - public function clearReusableObjects() + public function clearReusableObjects(): void { } @@ -761,7 +789,7 @@ public function clearReusableObjects() * @param \Phalcon\Mvc\ModelInterface $record * @param mixed $parameters * @param string $method - * @return bool|ResultsetInterface + * @return 0|ResultsetInterface */ public function getBelongsToRecords(string $modelName, string $modelRelation, \Phalcon\Mvc\ModelInterface $record, $parameters = null, string $method = null) { @@ -775,7 +803,7 @@ public function getBelongsToRecords(string $modelName, string $modelRelation, \P * @param \Phalcon\Mvc\ModelInterface $record * @param mixed $parameters * @param string $method - * @return bool|ResultsetInterface + * @return 0|ResultsetInterface */ public function getHasManyRecords(string $modelName, string $modelRelation, \Phalcon\Mvc\ModelInterface $record, $parameters = null, string $method = null) { @@ -789,7 +817,7 @@ public function getHasManyRecords(string $modelName, string $modelRelation, \Pha * @param \Phalcon\Mvc\ModelInterface $record * @param mixed $parameters * @param string $method - * @return bool|\Phalcon\Mvc\ModelInterface + * @return 0|ModelInterface */ public function getHasOneRecords(string $modelName, string $modelRelation, \Phalcon\Mvc\ModelInterface $record, $parameters = null, string $method = null) { @@ -949,4 +977,5 @@ public function getLastQuery(): QueryInterface public function __destruct() { } + } diff --git a/src/Phalcon/Mvc/Model/ManagerInterface.php b/src/Mvc/Model/ManagerInterface.zep.php similarity index 96% rename from src/Phalcon/Mvc/Model/ManagerInterface.php rename to src/Mvc/Model/ManagerInterface.zep.php index c6b9256e..328955d9 100644 --- a/src/Phalcon/Mvc/Model/ManagerInterface.php +++ b/src/Mvc/Model/ManagerInterface.zep.php @@ -10,9 +10,9 @@ namespace Phalcon\Mvc\Model; use Phalcon\Db\Adapter\AdapterInterface; +use Phalcon\Mvc\ModelInterface; use Phalcon\Mvc\Model\Query\BuilderInterface; use Phalcon\Mvc\Model\Query\StatusInterface; -use Phalcon\Mvc\ModelInterface; /** * Phalcon\Mvc\Model\ManagerInterface @@ -29,7 +29,7 @@ interface ManagerInterface * @param BehaviorInterface $behavior * @return void */ - public function addBehavior(\Phalcon\Mvc\ModelInterface $model, BehaviorInterface $behavior); + public function addBehavior(\Phalcon\Mvc\ModelInterface $model, BehaviorInterface $behavior): void; /** * Setup a relation reverse 1-1 between two models @@ -184,7 +184,7 @@ public function getBelongsTo(\Phalcon\Mvc\ModelInterface $model): array; * @param array|string|null $parameters * @param ModelInterface $record * @param string|null $method - * @return bool|ResultsetInterface + * @return 0|ResultsetInterface */ public function getBelongsToRecords(string $modelName, string $modelRelation, \Phalcon\Mvc\ModelInterface $record, $parameters = null, string $method = null); @@ -204,7 +204,7 @@ public function getHasMany(\Phalcon\Mvc\ModelInterface $model): array; * @param array|string|null $parameters * @param ModelInterface $record * @param string|null $method - * @return bool|ResultsetInterface + * @return 0|ResultsetInterface */ public function getHasManyRecords(string $modelName, string $modelRelation, \Phalcon\Mvc\ModelInterface $record, $parameters = null, string $method = null); @@ -248,7 +248,7 @@ public function getHasOneAndHasMany(\Phalcon\Mvc\ModelInterface $model): array; * @param array|string|null $parameters * @param ModelInterface $record * @param string|null $method - * @return bool|\Phalcon\Mvc\ModelInterface + * @return 0|ModelInterface */ public function getHasOneRecords(string $modelName, string $modelRelation, \Phalcon\Mvc\ModelInterface $record, $parameters = null, string $method = null); @@ -270,9 +270,9 @@ public function getLastQuery(): QueryInterface; * Returns the mapped schema for a model * * @param \Phalcon\Mvc\ModelInterface $model - * @return string + * @return string|null */ - public function getModelSchema(\Phalcon\Mvc\ModelInterface $model): string; + public function getModelSchema(\Phalcon\Mvc\ModelInterface $model): ?string; /** * Returns the mapped source for a model @@ -302,15 +302,15 @@ public function getReadConnectionService(\Phalcon\Mvc\ModelInterface $model): st * Returns a relation by its alias * * @param string $modelName - * @param string $alias - * @return bool|Relation + * @param string $alias * + * @return RelationInterface|bool */ public function getRelationByAlias(string $modelName, string $alias); /** * Helper method to query records based on a relation definition * - * @return \Phalcon\Mvc\Model\Resultset\Simple|Phalcon\Mvc\Model\Resultset\Simple|int|false + * @return \Phalcon\Mvc\Model\Resultset\Simple|int|false * @param RelationInterface $relation * @param \Phalcon\Mvc\ModelInterface $record * @param mixed $parameters @@ -413,7 +413,7 @@ public function isVisibleModelProperty(\Phalcon\Mvc\ModelInterface $model, strin * @param bool $keepSnapshots * @return void */ - public function keepSnapshots(\Phalcon\Mvc\ModelInterface $model, bool $keepSnapshots); + public function keepSnapshots(\Phalcon\Mvc\ModelInterface $model, bool $keepSnapshots): void; /** * Dispatch an event to the listeners and behaviors @@ -443,7 +443,7 @@ public function notifyEvent(string $eventName, \Phalcon\Mvc\ModelInterface $mode * @param string $connectionService * @return void */ - public function setConnectionService(\Phalcon\Mvc\ModelInterface $model, string $connectionService); + public function setConnectionService(\Phalcon\Mvc\ModelInterface $model, string $connectionService): void; /** * Sets read connection service for a model @@ -452,7 +452,7 @@ public function setConnectionService(\Phalcon\Mvc\ModelInterface $model, string * @param string $connectionService * @return void */ - public function setReadConnectionService(\Phalcon\Mvc\ModelInterface $model, string $connectionService); + public function setReadConnectionService(\Phalcon\Mvc\ModelInterface $model, string $connectionService): void; /** * Sets the mapped schema for a model @@ -461,7 +461,7 @@ public function setReadConnectionService(\Phalcon\Mvc\ModelInterface $model, str * @param string $schema * @return void */ - public function setModelSchema(\Phalcon\Mvc\ModelInterface $model, string $schema); + public function setModelSchema(\Phalcon\Mvc\ModelInterface $model, string $schema): void; /** * Sets the mapped source for a model @@ -470,7 +470,7 @@ public function setModelSchema(\Phalcon\Mvc\ModelInterface $model, string $schem * @param string $source * @return void */ - public function setModelSource(\Phalcon\Mvc\ModelInterface $model, string $source); + public function setModelSource(\Phalcon\Mvc\ModelInterface $model, string $source): void; /** * Sets write connection service for a model @@ -487,5 +487,6 @@ public function setWriteConnectionService(\Phalcon\Mvc\ModelInterface $model, st * @param bool $dynamicUpdate * @return void */ - public function useDynamicUpdate(\Phalcon\Mvc\ModelInterface $model, bool $dynamicUpdate); + public function useDynamicUpdate(\Phalcon\Mvc\ModelInterface $model, bool $dynamicUpdate): void; + } diff --git a/src/Phalcon/Mvc/Model/MetaData.php b/src/Mvc/Model/MetaData.zep.php similarity index 93% rename from src/Phalcon/Mvc/Model/MetaData.php rename to src/Mvc/Model/MetaData.zep.php index 64ac785e..b6de1e0a 100644 --- a/src/Phalcon/Mvc/Model/MetaData.php +++ b/src/Mvc/Model/MetaData.zep.php @@ -11,7 +11,10 @@ use Phalcon\Cache\Adapter\AdapterInterface as CacheAdapterInterface; use Phalcon\Di\DiInterface; +use Phalcon\Di\InjectionAwareInterface; +use Phalcon\Mvc\Model\MetaData\Strategy\Introspection; use Phalcon\Mvc\Model\MetaData\Strategy\StrategyInterface; +use Phalcon\Mvc\ModelInterface; /** * Phalcon\Mvc\Model\MetaData @@ -84,21 +87,29 @@ abstract class MetaData implements \Phalcon\Di\InjectionAwareInterface, \Phalcon const MODELS_REVERSE_COLUMN_MAP = 1; /** - * @var CacheAdapterInterface + * @var CacheAdapterInterface|null */ - protected $adapter; - - - protected $columnMap = array(); - - - protected $container; + protected $adapter = null; + /** + * @var array + */ + protected $columnMap = []; - protected $metaData = array(); + /** + * @var DiInterface|null + */ + protected $container = null; + /** + * @var array + */ + protected $metaData = []; - protected $strategy; + /** + * @var StrategyInterface|null + */ + protected $strategy = null; /** @@ -499,7 +510,7 @@ final public function readMetaDataIndex(\Phalcon\Mvc\ModelInterface $model, int * * @return void */ - public function reset() + public function reset(): void { } @@ -519,7 +530,7 @@ public function reset() * @param array $attributes * @return void */ - public function setAutomaticCreateAttributes(\Phalcon\Mvc\ModelInterface $model, array $attributes) + public function setAutomaticCreateAttributes(\Phalcon\Mvc\ModelInterface $model, array $attributes): void { } @@ -539,7 +550,7 @@ public function setAutomaticCreateAttributes(\Phalcon\Mvc\ModelInterface $model, * @param array $attributes * @return void */ - public function setAutomaticUpdateAttributes(\Phalcon\Mvc\ModelInterface $model, array $attributes) + public function setAutomaticUpdateAttributes(\Phalcon\Mvc\ModelInterface $model, array $attributes): void { } @@ -559,7 +570,7 @@ public function setAutomaticUpdateAttributes(\Phalcon\Mvc\ModelInterface $model, * @param array $attributes * @return void */ - public function setEmptyStringAttributes(\Phalcon\Mvc\ModelInterface $model, array $attributes) + public function setEmptyStringAttributes(\Phalcon\Mvc\ModelInterface $model, array $attributes): void { } @@ -569,7 +580,7 @@ public function setEmptyStringAttributes(\Phalcon\Mvc\ModelInterface $model, arr * @param \Phalcon\Di\DiInterface $container * @return void */ - public function setDI(\Phalcon\Di\DiInterface $container) + public function setDI(\Phalcon\Di\DiInterface $container): void { } @@ -579,7 +590,7 @@ public function setDI(\Phalcon\Di\DiInterface $container) * @param \Phalcon\Mvc\Model\MetaData\Strategy\StrategyInterface $strategy * @return void */ - public function setStrategy(\Phalcon\Mvc\Model\MetaData\Strategy\StrategyInterface $strategy) + public function setStrategy(\Phalcon\Mvc\Model\MetaData\Strategy\StrategyInterface $strategy): void { } @@ -590,7 +601,7 @@ public function setStrategy(\Phalcon\Mvc\Model\MetaData\Strategy\StrategyInterfa * @param array $data * @return void */ - public function write(string $key, array $data) + public function write(string $key, array $data): void { } @@ -614,7 +625,7 @@ public function write(string $key, array $data) * @param mixed $data * @return void */ - final public function writeMetaDataIndex(\Phalcon\Mvc\ModelInterface $model, int $index, $data) + final public function writeMetaDataIndex(\Phalcon\Mvc\ModelInterface $model, int $index, $data): void { } @@ -636,7 +647,8 @@ final protected function initialize(\Phalcon\Mvc\ModelInterface $model, $key, $t * @param mixed $option * @return void */ - private function throwWriteException($option) + private function throwWriteException($option): void { } + } diff --git a/src/Phalcon/Mvc/Model/MetaData/Apcu.php b/src/Mvc/Model/MetaData/Apcu.zep.php similarity index 92% rename from src/Phalcon/Mvc/Model/MetaData/Apcu.php rename to src/Mvc/Model/MetaData/Apcu.zep.php index 0280a7f7..ea123946 100644 --- a/src/Phalcon/Mvc/Model/MetaData/Apcu.php +++ b/src/Mvc/Model/MetaData/Apcu.zep.php @@ -9,7 +9,10 @@ */ namespace Phalcon\Mvc\Model\MetaData; +use Phalcon\Helper\Arr; use Phalcon\Mvc\Model\MetaData; +use Phalcon\Mvc\Model\Exception; +use Phalcon\Cache\AdapterFactory; /** * Phalcon\Mvc\Model\MetaData\Apcu @@ -41,4 +44,5 @@ class Apcu extends MetaData public function __construct(\Phalcon\Cache\AdapterFactory $factory, array $options = null) { } + } diff --git a/src/Phalcon/Mvc/Model/MetaData/Libmemcached.php b/src/Mvc/Model/MetaData/Libmemcached.zep.php similarity index 85% rename from src/Phalcon/Mvc/Model/MetaData/Libmemcached.php rename to src/Mvc/Model/MetaData/Libmemcached.zep.php index 0598634e..1ce53e3f 100644 --- a/src/Phalcon/Mvc/Model/MetaData/Libmemcached.php +++ b/src/Mvc/Model/MetaData/Libmemcached.zep.php @@ -9,7 +9,10 @@ */ namespace Phalcon\Mvc\Model\MetaData; +use Phalcon\Helper\Arr; +use Phalcon\Mvc\Model\Exception; use Phalcon\Mvc\Model\MetaData; +use Phalcon\Cache\AdapterFactory; /** * Phalcon\Mvc\Model\MetaData\Libmemcached @@ -27,7 +30,7 @@ class Libmemcached extends MetaData * @param array $options * @param \Phalcon\Cache\AdapterFactory $factory */ - public function __construct(\Phalcon\Cache\AdapterFactory $factory, array $options = array()) + public function __construct(\Phalcon\Cache\AdapterFactory $factory, array $options = []) { } @@ -36,7 +39,8 @@ public function __construct(\Phalcon\Cache\AdapterFactory $factory, array $optio * * @return void */ - public function reset() + public function reset(): void { } + } diff --git a/src/Phalcon/Mvc/Model/MetaData/Memory.php b/src/Mvc/Model/MetaData/Memory.zep.php similarity index 91% rename from src/Phalcon/Mvc/Model/MetaData/Memory.php rename to src/Mvc/Model/MetaData/Memory.zep.php index 7b6ef87a..ae523993 100644 --- a/src/Phalcon/Mvc/Model/MetaData/Memory.php +++ b/src/Mvc/Model/MetaData/Memory.zep.php @@ -10,6 +10,7 @@ namespace Phalcon\Mvc\Model\MetaData; use Phalcon\Mvc\Model\MetaData; +use Phalcon\Mvc\Model\Exception; /** * Phalcon\Mvc\Model\MetaData\Memory @@ -45,7 +46,8 @@ public function read(string $key): ?array * @param array $data * @return void */ - public function write(string $key, array $data) + public function write(string $key, array $data): void { } + } diff --git a/src/Phalcon/Mvc/Model/MetaData/Redis.php b/src/Mvc/Model/MetaData/Redis.zep.php similarity index 90% rename from src/Phalcon/Mvc/Model/MetaData/Redis.php rename to src/Mvc/Model/MetaData/Redis.zep.php index d320f49a..fadae5d7 100644 --- a/src/Phalcon/Mvc/Model/MetaData/Redis.php +++ b/src/Mvc/Model/MetaData/Redis.zep.php @@ -9,7 +9,9 @@ */ namespace Phalcon\Mvc\Model\MetaData; +use Phalcon\Helper\Arr; use Phalcon\Mvc\Model\MetaData; +use Phalcon\Cache\AdapterFactory; /** * Phalcon\Mvc\Model\MetaData\Redis @@ -41,7 +43,7 @@ class Redis extends MetaData * @param array $options * @param \Phalcon\Cache\AdapterFactory $factory */ - public function __construct(\Phalcon\Cache\AdapterFactory $factory, array $options = array()) + public function __construct(\Phalcon\Cache\AdapterFactory $factory, array $options = []) { } @@ -50,7 +52,8 @@ public function __construct(\Phalcon\Cache\AdapterFactory $factory, array $optio * * @return void */ - public function reset() + public function reset(): void { } + } diff --git a/src/Phalcon/Mvc/Model/MetaData/Strategy/Annotations.php b/src/Mvc/Model/MetaData/Strategy/Annotations.zep.php similarity index 89% rename from src/Phalcon/Mvc/Model/MetaData/Strategy/Annotations.php rename to src/Mvc/Model/MetaData/Strategy/Annotations.zep.php index 9fdd2e38..511a53f7 100644 --- a/src/Phalcon/Mvc/Model/MetaData/Strategy/Annotations.php +++ b/src/Mvc/Model/MetaData/Strategy/Annotations.zep.php @@ -9,6 +9,12 @@ */ namespace Phalcon\Mvc\Model\MetaData\Strategy; +use Phalcon\Di\DiInterface; +use Phalcon\Db\Column; +use Phalcon\Mvc\ModelInterface; +use Phalcon\Mvc\Model\MetaData; +use Phalcon\Mvc\Model\Exception; + /** * This file is part of the Phalcon Framework. * @@ -41,4 +47,5 @@ final public function getColumnMaps(\Phalcon\Mvc\ModelInterface $model, \Phalcon final public function getMetaData(\Phalcon\Mvc\ModelInterface $model, \Phalcon\Di\DiInterface $container): array { } + } diff --git a/src/Phalcon/Mvc/Model/MetaData/Strategy/Introspection.php b/src/Mvc/Model/MetaData/Strategy/Introspection.zep.php similarity index 86% rename from src/Phalcon/Mvc/Model/MetaData/Strategy/Introspection.php rename to src/Mvc/Model/MetaData/Strategy/Introspection.zep.php index 0e875ac1..7284f45f 100644 --- a/src/Phalcon/Mvc/Model/MetaData/Strategy/Introspection.php +++ b/src/Mvc/Model/MetaData/Strategy/Introspection.zep.php @@ -9,6 +9,13 @@ */ namespace Phalcon\Mvc\Model\MetaData\Strategy; +use Phalcon\Di\DiInterface; +use Phalcon\Db\Adapter\AdapterInterface; +use Phalcon\Db\Column; +use Phalcon\Mvc\ModelInterface; +use Phalcon\Mvc\Model\Exception; +use Phalcon\Mvc\Model\MetaData; + /** * Phalcon\Mvc\Model\MetaData\Strategy\Introspection * @@ -38,4 +45,5 @@ final public function getColumnMaps(\Phalcon\Mvc\ModelInterface $model, \Phalcon final public function getMetaData(\Phalcon\Mvc\ModelInterface $model, \Phalcon\Di\DiInterface $container): array { } + } diff --git a/src/Phalcon/Mvc/Model/MetaData/Strategy/StrategyInterface.php b/src/Mvc/Model/MetaData/Strategy/StrategyInterface.zep.php similarity index 95% rename from src/Phalcon/Mvc/Model/MetaData/Strategy/StrategyInterface.php rename to src/Mvc/Model/MetaData/Strategy/StrategyInterface.zep.php index f2cf8b19..1ca28cf0 100644 --- a/src/Phalcon/Mvc/Model/MetaData/Strategy/StrategyInterface.php +++ b/src/Mvc/Model/MetaData/Strategy/StrategyInterface.zep.php @@ -9,6 +9,9 @@ */ namespace Phalcon\Mvc\Model\MetaData\Strategy; +use Phalcon\Mvc\ModelInterface; +use Phalcon\Di\DiInterface; + /** * This file is part of the Phalcon Framework. * @@ -38,4 +41,5 @@ public function getColumnMaps(\Phalcon\Mvc\ModelInterface $model, \Phalcon\Di\Di * @return array */ public function getMetaData(\Phalcon\Mvc\ModelInterface $model, \Phalcon\Di\DiInterface $container): array; + } diff --git a/src/Phalcon/Mvc/Model/MetaData/Stream.php b/src/Mvc/Model/MetaData/Stream.zep.php similarity index 83% rename from src/Phalcon/Mvc/Model/MetaData/Stream.php rename to src/Mvc/Model/MetaData/Stream.zep.php index a9c7d71d..e45d7fc1 100644 --- a/src/Phalcon/Mvc/Model/MetaData/Stream.php +++ b/src/Mvc/Model/MetaData/Stream.zep.php @@ -10,6 +10,7 @@ namespace Phalcon\Mvc\Model\MetaData; use Phalcon\Mvc\Model\MetaData; +use Phalcon\Mvc\Model\Exception; /** * Phalcon\Mvc\Model\MetaData\Stream @@ -26,7 +27,9 @@ */ class Stream extends MetaData { - + /** + * @var string + */ protected $metaDataDir = './'; @@ -35,7 +38,7 @@ class Stream extends MetaData * * @param array $options */ - public function __construct($options = null) + public function __construct(array $options = []) { } @@ -56,7 +59,7 @@ public function read(string $key): ?array * @param array $data * @return void */ - public function write(string $key, array $data) + public function write(string $key, array $data): void { } @@ -66,7 +69,8 @@ public function write(string $key, array $data) * @param mixed $option * @return void */ - private function throwWriteException($option) + private function throwWriteException($option): void { } + } diff --git a/src/Phalcon/Mvc/Model/MetaDataInterface.php b/src/Mvc/Model/MetaDataInterface.zep.php similarity index 98% rename from src/Phalcon/Mvc/Model/MetaDataInterface.php rename to src/Mvc/Model/MetaDataInterface.zep.php index fe06aef5..fb8c8af8 100644 --- a/src/Phalcon/Mvc/Model/MetaDataInterface.php +++ b/src/Mvc/Model/MetaDataInterface.zep.php @@ -9,6 +9,7 @@ */ namespace Phalcon\Mvc\Model; +use Phalcon\Mvc\ModelInterface; use Phalcon\Mvc\Model\MetaData\Strategy\StrategyInterface; /** @@ -223,7 +224,7 @@ public function setAutomaticUpdateAttributes(\Phalcon\Mvc\ModelInterface $model, * @param array $attributes * @return void */ - public function setEmptyStringAttributes(\Phalcon\Mvc\ModelInterface $model, array $attributes); + public function setEmptyStringAttributes(\Phalcon\Mvc\ModelInterface $model, array $attributes): void; /** * Writes meta-data for certain model using a MODEL_ constant @@ -248,5 +249,6 @@ public function setStrategy(\Phalcon\Mvc\Model\MetaData\Strategy\StrategyInterfa * @param array $data * @return void */ - public function write(string $key, array $data); + public function write(string $key, array $data): void; + } diff --git a/src/Phalcon/Mvc/Model/Query.php b/src/Mvc/Model/Query.zep.php similarity index 75% rename from src/Phalcon/Mvc/Model/Query.php rename to src/Mvc/Model/Query.zep.php index ad88cc04..92f5c549 100644 --- a/src/Phalcon/Mvc/Model/Query.php +++ b/src/Mvc/Model/Query.zep.php @@ -9,10 +9,22 @@ */ namespace Phalcon\Mvc\Model; +use Phalcon\Db\Column; +use Phalcon\Db\RawValue; +use Phalcon\Db\ResultInterface; use Phalcon\Db\Adapter\AdapterInterface; use Phalcon\Di\DiInterface; -use Phalcon\Mvc\Model\Query\StatusInterface; +use Phalcon\Helper\Arr; use Phalcon\Mvc\ModelInterface; +use Phalcon\Mvc\Model\Query\Status; +use Phalcon\Mvc\Model\Resultset\Complex; +use Phalcon\Mvc\Model\Query\StatusInterface; +use Phalcon\Mvc\Model\ResultsetInterface; +use Phalcon\Mvc\Model\Resultset\Simple; +use Phalcon\Di\InjectionAwareInterface; +use Phalcon\Db\DialectInterface; +use Phalcon\Mvc\Model\Query\Lang; +use Psr\SimpleCache\CacheInterface; /** * Phalcon\Mvc\Model\Query @@ -78,82 +90,131 @@ class Query implements \Phalcon\Mvc\Model\QueryInterface, \Phalcon\Di\InjectionA const TYPE_UPDATE = 300; - + /** + * @var array + * TODO: Add default value, instead of null, also remove type check + */ protected $ast; + /** + * @var array + */ + protected $bindParams = []; - protected $bindParams; - - - protected $bindTypes; - - - protected $cache; + /** + * @var array + */ + protected $bindTypes = []; + /** + * @var \Psr\SimpleCache\CacheInterface|null + */ + protected $cache = null; + /** + * @var array|null + */ protected $cacheOptions; + /** + * @var DiInterface|null + */ + protected $container = null; - protected $container; - - + /** + * @var bool + */ protected $enableImplicitJoins; - + /** + * @var array + */ protected $intermediate; + /** + * @var \Phalcon\Mvc\Model\ManagerInterface|null + */ + protected $manager = null; - protected $manager; - - - protected $metaData; - - - protected $models; - + /** + * @var \Phalcon\Mvc\Model\MetaDataInterface|null + */ + protected $metaData = null; - protected $modelsInstances; + /** + * @var array + */ + protected $models = []; + /** + * @var array + */ + protected $modelsInstances = []; + /** + * @var int + */ protected $nestingLevel = -1; + /** + * @var string|null + */ + protected $phql = null; - protected $phql; - - - protected $sharedLock; - - - protected $sqlAliases; - - - protected $sqlAliasesModels; - - - protected $sqlAliasesModelsInstances; + /** + * @var bool + */ + protected $sharedLock = false; + /** + * @var array + */ + protected $sqlAliases = []; - protected $sqlColumnAliases = array(); + /** + * @var array + */ + protected $sqlAliasesModels = []; + /** + * @var array + */ + protected $sqlAliasesModelsInstances = []; - protected $sqlModelsAliases; + /** + * @var array + */ + protected $sqlColumnAliases = []; + /** + * @var array + */ + protected $sqlModelsAliases = []; + /** + * @var int|null + */ protected $type; - - protected $uniqueRow; - - - protected static $_irPhqlCache; + /** + * @var bool + */ + protected $uniqueRow = false; /** * TransactionInterface so that the query can wrap a transaction * around batch updates and intermediate selects within the transaction. * however if a model got a transaction set inside it will use the local * transaction instead of this one + * + * @var TransactionInterface|null */ - protected $_transaction; + protected $transaction; + + /** + * @var array|null + */ + static protected $internalPhqlCache; /** @@ -162,6 +223,8 @@ class Query implements \Phalcon\Mvc\Model\QueryInterface, \Phalcon\Di\InjectionA * around batch updates and intermediate selects within the transaction. * however if a model got a transaction set inside it will use the local * transaction instead of this one + * + * @return TransactionInterface|null */ public function getTransaction() { @@ -170,290 +233,242 @@ public function getTransaction() /** * Phalcon\Mvc\Model\Query constructor * - * @param string $phql - * @param \Phalcon\Di\DiInterface $container + * @param string|null $phql + * @param DiInterface|null $container * @param array $options */ - public function __construct(string $phql = null, \Phalcon\Di\DiInterface $container = null, array $options = array()) - { - } - - /** - * Sets the dependency injection container - * - * @param \Phalcon\Di\DiInterface $container - * @return void - */ - public function setDI(\Phalcon\Di\DiInterface $container) + public function __construct(string $phql = null, \Phalcon\Di\DiInterface $container = null, array $options = []) { } /** - * Returns the dependency injection container - * - * @return DiInterface - */ - public function getDI(): DiInterface - { - } - - /** - * Tells to the query if only the first row in the resultset must be - * returned + * Sets the cache parameters of the query * - * @param bool $uniqueRow + * @param array $cacheOptions * @return QueryInterface */ - public function setUniqueRow(bool $uniqueRow): QueryInterface + public function cache(array $cacheOptions): QueryInterface { } /** - * Check if the query is programmed to get only the first row in the - * resultset + * Destroys the internal PHQL cache * - * @return bool + * @return void */ - public function getUniqueRow(): bool + public static function clean(): void { } /** - * Replaces the model's name to its source name in a qualified-name - * expression + * Executes a parsed PHQL statement * - * @param array $expr - * @return array + * @return mixed + * @param array $bindParams + * @param array $bindTypes */ - final protected function _getQualified(array $expr): array + public function execute(array $bindParams = [], array $bindTypes = []) { } /** - * Resolves an expression in a single call argument + * Returns the current cache backend instance * - * @param array $argument - * @return array + * @return AdapterInterface */ - final protected function _getCallArgument(array $argument): array + public function getCache(): AdapterInterface { } /** - * Resolves an expression in a single call argument + * Returns the current cache options * - * @param array $expr * @return array */ - final protected function _getCaseExpression(array $expr): array + public function getCacheOptions(): array { } /** - * Resolves an expression in a single call argument + * Returns default bind params * - * @param array $expr * @return array */ - final protected function _getFunctionCall(array $expr): array - { - } - - /** - * Resolves an expression from its intermediate code into a string - * - * @param array $expr - * @param bool $quoting - * @return string - */ - final protected function _getExpression(array $expr, bool $quoting = true): string + public function getBindParams(): array { } /** - * Resolves a column from its intermediate representation into an array - * used to determine if the resultset produced is simple or complex + * Returns default bind types * - * @param array $column * @return array */ - final protected function _getSelectColumn(array $column): array + public function getBindTypes(): array { } /** - * Resolves a table in a SELECT statement checking if the model exists + * Returns the dependency injection container * - * @return string - * @param ManagerInterface $manager - * @param array $qualifiedName + * @return DiInterface */ - final protected function _getTable(ManagerInterface $manager, array $qualifiedName) + public function getDI(): DiInterface { } /** - * Resolves a JOIN clause checking if the associated models exist + * Returns the intermediate representation of the PHQL statement * - * @param ManagerInterface $manager - * @param array $join * @return array */ - final protected function _getJoin(ManagerInterface $manager, array $join): array + public function getIntermediate(): array { } /** - * Resolves a JOIN type + * Executes the query returning the first result * - * @param array $join - * @return string + * @param array $bindParams + * @param array $bindTypes + * @return ModelInterface */ - final protected function _getJoinType(array $join): string + public function getSingleResult(array $bindParams = [], array $bindTypes = []): ModelInterface { } /** - * Resolves joins involving has-one/belongs-to/has-many relations + * Returns the SQL to be generated by the internal PHQL (only works in + * SELECT statements) * - * @param string $joinSource - * @param string $joinType - * @param string $modelAlias - * @param string $joinAlias - * @param RelationInterface $relation * @return array */ - final protected function _getSingleJoin(string $joinType, $joinSource, string $modelAlias, string $joinAlias, RelationInterface $relation): array + public function getSql(): array { } /** - * Resolves joins involving many-to-many relations + * Gets the type of PHQL statement executed * - * @param string $joinSource - * @param string $joinType - * @param string $modelAlias - * @param string $joinAlias - * @param RelationInterface $relation - * @return array + * @return int */ - final protected function _getMultiJoin(string $joinType, $joinSource, string $modelAlias, string $joinAlias, RelationInterface $relation): array + public function getType(): int { } /** - * Processes the JOINs in the query returning an internal representation for - * the database dialect + * Check if the query is programmed to get only the first row in the + * resultset * - * @param array $select - * @return array + * @return bool */ - final protected function _getJoins(array $select): array + public function getUniqueRow(): bool { } /** - * Returns a processed order clause for a SELECT statement + * Parses the intermediate code produced by Phalcon\Mvc\Model\Query\Lang + * generating another intermediate representation that could be executed by + * Phalcon\Mvc\Model\Query * - * @param array|string $order * @return array */ - final protected function _getOrderClause($order): array + public function parse(): array { } /** - * Returns a processed group clause for a SELECT statement + * Set default bind parameters * - * @param array $group - * @return array + * @param array $bindParams + * @param bool $merge + * @return QueryInterface */ - final protected function _getGroupClause(array $group): array + public function setBindParams(array $bindParams, bool $merge = false): QueryInterface { } /** - * Returns a processed limit clause for a SELECT statement + * Set default bind parameters * - * @param array $limitClause - * @return array + * @param array $bindTypes + * @param bool $merge + * @return QueryInterface */ - final protected function _getLimitClause(array $limitClause): array + public function setBindTypes(array $bindTypes, bool $merge = false): QueryInterface { } /** - * Analyzes a SELECT intermediate code and produces an array to be executed later + * Sets the dependency injection container * - * @param mixed $ast - * @param bool $merge - * @return array + * @param \Phalcon\Di\DiInterface $container + * @return void */ - final protected function _prepareSelect($ast = null, bool $merge = false): array + public function setDI(\Phalcon\Di\DiInterface $container): void { } /** - * Analyzes an INSERT intermediate code and produces an array to be executed - * later + * Allows to set the IR to be executed * - * @return array + * @param array $intermediate + * @return QueryInterface */ - final protected function _prepareInsert(): array + public function setIntermediate(array $intermediate): QueryInterface { } /** - * Analyzes an UPDATE intermediate code and produces an array to be executed - * later + * Set SHARED LOCK clause * - * @return array + * @param bool $sharedLock + * @return QueryInterface */ - final protected function _prepareUpdate(): array + public function setSharedLock(bool $sharedLock = false): QueryInterface { } /** - * Analyzes a DELETE intermediate code and produces an array to be executed - * later + * allows to wrap a transaction around all queries * - * @return array + * @param TransactionInterface $transaction + * @return QueryInterface */ - final protected function _prepareDelete(): array + public function setTransaction(TransactionInterface $transaction): QueryInterface { } /** - * Parses the intermediate code produced by Phalcon\Mvc\Model\Query\Lang - * generating another intermediate representation that could be executed by - * Phalcon\Mvc\Model\Query + * Sets the type of PHQL statement to be executed * - * @return array + * @param int $type + * @return QueryInterface */ - public function parse(): array + public function setType(int $type): QueryInterface { } /** - * Returns the current cache backend instance + * Tells to the query if only the first row in the resultset must be + * returned * - * @return AdapterInterface + * @param bool $uniqueRow + * @return QueryInterface */ - public function getCache(): AdapterInterface + public function setUniqueRow(bool $uniqueRow): QueryInterface { } /** - * Executes the SELECT intermediate representation producing a - * Phalcon\Mvc\Model\Resultset + * Executes the DELETE intermediate representation producing a + * Phalcon\Mvc\Model\Query\Status * * @param array $intermediate * @param array $bindParams * @param array $bindTypes - * @param bool $simulate - * @return array|\Phalcon\Mvc\Model\ResultsetInterface + * @return StatusInterface */ - final protected function _executeSelect(array $intermediate, array $bindParams, array $bindTypes, bool $simulate = false) + final protected function executeDelete(array $intermediate, array $bindParams, array $bindTypes): StatusInterface { } @@ -466,25 +481,26 @@ final protected function _executeSelect(array $intermediate, array $bindParams, * @param array $bindTypes * @return StatusInterface */ - final protected function _executeInsert(array $intermediate, array $bindParams, array $bindTypes): StatusInterface + final protected function executeInsert(array $intermediate, array $bindParams, array $bindTypes): StatusInterface { } /** - * Executes the UPDATE intermediate representation producing a - * Phalcon\Mvc\Model\Query\Status + * Executes the SELECT intermediate representation producing a + * Phalcon\Mvc\Model\Resultset * * @param array $intermediate * @param array $bindParams * @param array $bindTypes - * @return StatusInterface + * @param bool $simulate + * @return 0|ResultsetInterface */ - final protected function _executeUpdate(array $intermediate, array $bindParams, array $bindTypes): StatusInterface + final protected function executeSelect(array $intermediate, array $bindParams, array $bindTypes, bool $simulate = false) { } /** - * Executes the DELETE intermediate representation producing a + * Executes the UPDATE intermediate representation producing a * Phalcon\Mvc\Model\Query\Status * * @param array $intermediate @@ -492,189 +508,203 @@ final protected function _executeUpdate(array $intermediate, array $bindParams, * @param array $bindTypes * @return StatusInterface */ - final protected function _executeDelete(array $intermediate, array $bindParams, array $bindTypes): StatusInterface + final protected function executeUpdate(array $intermediate, array $bindParams, array $bindTypes): StatusInterface { } /** - * Query the records on which the UPDATE/DELETE operation will be done - * - * @todo Remove in v5.0 - * @deprecated Use getRelatedRecords() + * Resolves an expression in a single call argument * - * @return ResultsetInterface - * @param \Phalcon\Mvc\ModelInterface $model - * @param array $intermediate - * @param array $bindParams - * @param array $bindTypes + * @param array $argument + * @return array */ - final protected function _getRelatedRecords(\Phalcon\Mvc\ModelInterface $model, array $intermediate, array $bindParams, array $bindTypes): ResultsetInterface + final protected function getCallArgument(array $argument): array { } /** - * Query the records on which the UPDATE/DELETE operation will be done + * Resolves an expression in a single call argument * - * @return ResultsetInterface - * @param \Phalcon\Mvc\ModelInterface $model - * @param array $intermediate - * @param array $bindParams - * @param array $bindTypes + * @param array $expr + * @return array */ - final protected function getRelatedRecords(\Phalcon\Mvc\ModelInterface $model, array $intermediate, array $bindParams, array $bindTypes): ResultsetInterface + final protected function getCaseExpression(array $expr): array { } /** - * Executes a parsed PHQL statement + * Resolves an expression from its intermediate code into a string * - * @return mixed - * @param array $bindParams - * @param array $bindTypes + * @param array $expr + * @param bool $quoting + * @return string */ - public function execute(array $bindParams = array(), array $bindTypes = array()) + final protected function getExpression(array $expr, bool $quoting = true): string { } /** - * Executes the query returning the first result + * Resolves an expression in a single call argument * - * @param array $bindParams - * @param array $bindTypes - * @return ModelInterface + * @param array $expr + * @return array */ - public function getSingleResult(array $bindParams = array(), array $bindTypes = array()): ModelInterface + final protected function getFunctionCall(array $expr): array { } /** - * Sets the type of PHQL statement to be executed + * Returns a processed group clause for a SELECT statement * - * @param int $type - * @return QueryInterface + * @param array $group + * @return array */ - public function setType(int $type): QueryInterface + final protected function getGroupClause(array $group): array { } /** - * Gets the type of PHQL statement executed + * Returns a processed limit clause for a SELECT statement * - * @return int + * @param array $limitClause + * @return array */ - public function getType(): int + final protected function getLimitClause(array $limitClause): array { } /** - * Set default bind parameters + * Resolves a JOIN clause checking if the associated models exist * - * @param array $bindParams - * @param bool $merge - * @return QueryInterface + * @param ManagerInterface $manager + * @param array $join + * @return array */ - public function setBindParams(array $bindParams, bool $merge = false): QueryInterface + final protected function getJoin(ManagerInterface $manager, array $join): array { } /** - * Returns default bind params + * Resolves a JOIN type * - * @return array + * @param array $join + * @return string */ - public function getBindParams(): array + final protected function getJoinType(array $join): string { } /** - * Set default bind parameters + * Processes the JOINs in the query returning an internal representation for + * the database dialect * - * @param array $bindTypes - * @param bool $merge - * @return QueryInterface + * @param array $select + * @return array */ - public function setBindTypes(array $bindTypes, bool $merge = false): QueryInterface + final protected function getJoins(array $select): array { } /** - * Set SHARED LOCK clause + * Resolves joins involving many-to-many relations * - * @param bool $sharedLock - * @return QueryInterface + * @param string $joinSource + * @param string $joinType + * @param string $modelAlias + * @param string $joinAlias + * @param RelationInterface $relation + * @return array */ - public function setSharedLock(bool $sharedLock = false): QueryInterface + final protected function getMultiJoin(string $joinType, $joinSource, string $modelAlias, string $joinAlias, RelationInterface $relation): array { } /** - * Returns default bind types + * Returns a processed order clause for a SELECT statement * + * @param array|string $order * @return array */ - public function getBindTypes(): array + final protected function getOrderClause($order): array { } /** - * Allows to set the IR to be executed + * Replaces the model's name to its source name in a qualified-name + * expression * - * @param array $intermediate - * @return QueryInterface + * @param array $expr + * @return array */ - public function setIntermediate(array $intermediate): QueryInterface + final protected function getQualified(array $expr): array { } /** - * Returns the intermediate representation of the PHQL statement + * Gets the read connection from the model if there is no transaction set + * inside the query object * - * @return array + * @param \Phalcon\Mvc\ModelInterface $model + * @param array $intermediate + * @param array $bindParams + * @param array $bindTypes + * @return AdapterInterface */ - public function getIntermediate(): array + protected function getReadConnection(\Phalcon\Mvc\ModelInterface $model, array $intermediate = null, array $bindParams = [], array $bindTypes = []): AdapterInterface { } /** - * Sets the cache parameters of the query + * Query the records on which the UPDATE/DELETE operation will be done * - * @param array $cacheOptions - * @return QueryInterface + * @return ResultsetInterface + * @param \Phalcon\Mvc\ModelInterface $model + * @param array $intermediate + * @param array $bindParams + * @param array $bindTypes */ - public function cache(array $cacheOptions): QueryInterface + final protected function getRelatedRecords(\Phalcon\Mvc\ModelInterface $model, array $intermediate, array $bindParams, array $bindTypes): ResultsetInterface { } /** - * Returns the current cache options + * Resolves a column from its intermediate representation into an array + * used to determine if the resultset produced is simple or complex * + * @param array $column * @return array */ - public function getCacheOptions(): array + final protected function getSelectColumn(array $column): array { } /** - * Returns the SQL to be generated by the internal PHQL (only works in - * SELECT statements) + * Resolves joins involving has-one/belongs-to/has-many relations * + * @param string $joinSource + * @param string $joinType + * @param string $modelAlias + * @param string $joinAlias + * @param RelationInterface $relation * @return array */ - public function getSql(): array + final protected function getSingleJoin(string $joinType, $joinSource, string $modelAlias, string $joinAlias, RelationInterface $relation): array { } /** - * Destroys the internal PHQL cache + * Resolves a table in a SELECT statement checking if the model exists * - * @return void + * @return string + * @param ManagerInterface $manager + * @param array $qualifiedName */ - public static function clean() + final protected function getTable(ManagerInterface $manager, array $qualifiedName) { } /** - * Gets the read connection from the model if there is no transaction set + * Gets the write connection from the model if there is no transaction * inside the query object * * @param \Phalcon\Mvc\ModelInterface $model @@ -683,31 +713,49 @@ public static function clean() * @param array $bindTypes * @return AdapterInterface */ - protected function getReadConnection(\Phalcon\Mvc\ModelInterface $model, array $intermediate = null, array $bindParams = array(), array $bindTypes = array()): AdapterInterface + protected function getWriteConnection(\Phalcon\Mvc\ModelInterface $model, array $intermediate = null, array $bindParams = [], array $bindTypes = []): AdapterInterface { } /** - * Gets the write connection from the model if there is no transaction - * inside the query object + * Analyzes a DELETE intermediate code and produces an array to be executed + * later * - * @param \Phalcon\Mvc\ModelInterface $model - * @param array $intermediate - * @param array $bindParams - * @param array $bindTypes - * @return AdapterInterface + * @return array */ - protected function getWriteConnection(\Phalcon\Mvc\ModelInterface $model, array $intermediate = null, array $bindParams = array(), array $bindTypes = array()): AdapterInterface + final protected function _prepareDelete(): array { } /** - * allows to wrap a transaction around all queries + * Analyzes an INSERT intermediate code and produces an array to be executed + * later * - * @param TransactionInterface $transaction - * @return QueryInterface + * @return array */ - public function setTransaction(TransactionInterface $transaction): QueryInterface + final protected function _prepareInsert(): array + { + } + + /** + * Analyzes a SELECT intermediate code and produces an array to be executed later + * + * @param mixed $ast + * @param bool $merge + * @return array + */ + final protected function _prepareSelect($ast = null, bool $merge = false): array + { + } + + /** + * Analyzes an UPDATE intermediate code and produces an array to be executed + * later + * + * @return array + */ + final protected function _prepareUpdate(): array { } + } diff --git a/src/Phalcon/Mvc/Model/Query/Builder.php b/src/Mvc/Model/Query/Builder.zep.php similarity index 91% rename from src/Phalcon/Mvc/Model/Query/Builder.php rename to src/Mvc/Model/Query/Builder.zep.php index 101f74ae..88da9fbf 100644 --- a/src/Phalcon/Mvc/Model/Query/Builder.php +++ b/src/Mvc/Model/Query/Builder.zep.php @@ -9,7 +9,12 @@ */ namespace Phalcon\Mvc\Model\Query; +use Phalcon\Di; +use Phalcon\Db\Column; use Phalcon\Di\DiInterface; +use Phalcon\Helper\Arr; +use Phalcon\Mvc\Model\Exception; +use Phalcon\Di\InjectionAwareInterface; use Phalcon\Mvc\Model\QueryInterface; /** @@ -50,42 +55,64 @@ */ class Builder implements \Phalcon\Mvc\Model\Query\BuilderInterface, \Phalcon\Di\InjectionAwareInterface { + /** + * @var array + */ + protected $bindParams = []; - protected $bindParams; - - - protected $bindTypes; - - - protected $columns; - + /** + * @var array + */ + protected $bindTypes = []; - protected $conditions; + /** + * @var array|string|null + */ + protected $columns = null; + /** + * @var array|string|null + */ + protected $conditions = null; + /** + * @var DiInterface|null + */ protected $container; + /** + * @var mixed + */ + protected $distinct = null; - protected $distinct; - - - protected $forUpdate; + /** + * @var bool + */ + protected $forUpdate = false; /** * @var array */ - protected $group; - - - protected $having; + protected $group = []; + /** + * @var string|null + */ + protected $having = null; + /** + * @var int + */ protected $hiddenParamNumber = 0; + /** + * @var array + */ + protected $joins = []; - protected $joins; - - + /** + * @var array|string + */ protected $limit; /** @@ -93,21 +120,27 @@ class Builder implements \Phalcon\Mvc\Model\Query\BuilderInterface, \Phalcon\Di\ */ protected $models; + /** + * @var int + */ + protected $offset = 0; - protected $offset; - - + /** + * @var array|string + */ protected $order; - - protected $sharedLock; + /** + * @var bool + */ + protected $sharedLock = false; /** * Phalcon\Mvc\Model\Query\Builder constructor * - * @param mixed $params - * @param \Phalcon\Di\DiInterface $container + * @param array|string|null $params + * @param DiInterface|null $container */ public function __construct($params = null, \Phalcon\Di\DiInterface $container = null) { @@ -156,7 +189,7 @@ public function addFrom(string $model, string $alias = null): BuilderInterface * @param array $bindTypes * @return BuilderInterface */ - public function andHaving(string $conditions, array $bindParams = array(), array $bindTypes = array()): BuilderInterface + public function andHaving(string $conditions, array $bindParams = [], array $bindTypes = []): BuilderInterface { } @@ -180,7 +213,7 @@ public function andHaving(string $conditions, array $bindParams = array(), array * @param array $bindTypes * @return BuilderInterface */ - public function andWhere(string $conditions, array $bindParams = array(), array $bindTypes = array()): BuilderInterface + public function andWhere(string $conditions, array $bindParams = [], array $bindTypes = []): BuilderInterface { } @@ -336,7 +369,7 @@ public function getBindTypes(): array /** * Return the columns to be queried * - * @return string|array + * @return array|string */ public function getColumns() { @@ -363,7 +396,7 @@ public function getDistinct(): bool /** * Return the models who makes part of the query * - * @return string|array + * @return array|string */ public function getFrom() { @@ -399,7 +432,7 @@ public function getJoins(): array /** * Returns the current LIMIT clause * - * @return string|array + * @return array|string */ public function getLimit() { @@ -426,7 +459,7 @@ public function getOffset(): int /** * Returns the set ORDER BY clause * - * @return string|array + * @return array|string */ public function getOrderBy() { @@ -453,7 +486,7 @@ public function getQuery(): QueryInterface /** * Return the conditions for the query * - * @return string|array + * @return array|string */ public function getWhere() { @@ -470,7 +503,7 @@ public function getWhere() * ); * ``` * - * @param string|array $group + * @param array|string $group * @return BuilderInterface */ public function groupBy($group): BuilderInterface @@ -491,12 +524,12 @@ public function groupBy($group): BuilderInterface * ); * ``` * - * @param mixed $conditions + * @param string $conditions * @param array $bindParams * @param array $bindTypes * @return BuilderInterface */ - public function having($conditions, array $bindParams = array(), array $bindTypes = array()): BuilderInterface + public function having(string $conditions, array $bindParams = [], array $bindTypes = []): BuilderInterface { } @@ -734,7 +767,7 @@ public function offset(int $offset): BuilderInterface * $builder->orderBy(["Robots.name DESC"]); * ``` * - * @param string|array $orderBy + * @param array|string $orderBy * @return BuilderInterface */ public function orderBy($orderBy): BuilderInterface @@ -760,7 +793,7 @@ public function orderBy($orderBy): BuilderInterface * @param array $bindTypes * @return BuilderInterface */ - public function orHaving(string $conditions, array $bindParams = array(), array $bindTypes = array()): BuilderInterface + public function orHaving(string $conditions, array $bindParams = [], array $bindTypes = []): BuilderInterface { } @@ -784,7 +817,7 @@ public function orHaving(string $conditions, array $bindParams = array(), array * @param array $bindTypes * @return BuilderInterface */ - public function orWhere(string $conditions, array $bindParams = array(), array $bindTypes = array()): BuilderInterface + public function orWhere(string $conditions, array $bindParams = [], array $bindTypes = []): BuilderInterface { } @@ -836,7 +869,7 @@ public function setBindTypes(array $bindTypes, bool $merge = false): BuilderInte * @param \Phalcon\Di\DiInterface $container * @return void */ - public function setDI(\Phalcon\Di\DiInterface $container) + public function setDI(\Phalcon\Di\DiInterface $container): void { } @@ -862,7 +895,7 @@ public function setDI(\Phalcon\Di\DiInterface $container) * @param array $bindTypes * @return BuilderInterface */ - public function where(string $conditions, array $bindParams = array(), array $bindTypes = array()): BuilderInterface + public function where(string $conditions, array $bindParams = [], array $bindTypes = []): BuilderInterface { } @@ -919,4 +952,5 @@ protected function conditionNotBetween(string $clause, string $operator, string protected function conditionNotIn(string $clause, string $operator, string $expr, array $values): BuilderInterface { } + } diff --git a/src/Phalcon/Mvc/Model/Query/BuilderInterface.php b/src/Mvc/Model/Query/BuilderInterface.zep.php similarity index 95% rename from src/Phalcon/Mvc/Model/Query/BuilderInterface.php rename to src/Mvc/Model/Query/BuilderInterface.zep.php index d9b86f9b..1dd47b5f 100644 --- a/src/Phalcon/Mvc/Model/Query/BuilderInterface.php +++ b/src/Mvc/Model/Query/BuilderInterface.zep.php @@ -42,7 +42,7 @@ public function addFrom(string $model, string $alias = null): BuilderInterface; * @param array $bindTypes * @return BuilderInterface */ - public function andWhere(string $conditions, array $bindParams = array(), array $bindTypes = array()): BuilderInterface; + public function andWhere(string $conditions, array $bindParams = [], array $bindTypes = []): BuilderInterface; /** * Appends a BETWEEN condition to the current conditions @@ -205,10 +205,10 @@ public function groupBy($group): BuilderInterface; /** * Sets a HAVING condition clause * - * @param string $having + * @param string $conditions * @return BuilderInterface */ - public function having(string $having): BuilderInterface; + public function having(string $conditions): BuilderInterface; /** * Adds an INNER join to the query @@ -298,10 +298,10 @@ public function offset(int $offset): BuilderInterface; /** * Sets an ORDER BY condition clause * - * @param string $orderBy + * @param array|string $orderBy * @return BuilderInterface */ - public function orderBy(string $orderBy): BuilderInterface; + public function orderBy($orderBy): BuilderInterface; /** * Appends a condition to the current conditions using an OR operator @@ -311,7 +311,7 @@ public function orderBy(string $orderBy): BuilderInterface; * @param array $bindTypes * @return BuilderInterface */ - public function orWhere(string $conditions, array $bindParams = array(), array $bindTypes = array()): BuilderInterface; + public function orWhere(string $conditions, array $bindParams = [], array $bindTypes = []): BuilderInterface; /** * Adds a RIGHT join to the query @@ -349,5 +349,6 @@ public function setBindTypes(array $bindTypes, bool $merge = false): BuilderInte * @param array $bindTypes * @return BuilderInterface */ - public function where(string $conditions, array $bindParams = array(), array $bindTypes = array()): BuilderInterface; + public function where(string $conditions, array $bindParams = [], array $bindTypes = []): BuilderInterface; + } diff --git a/src/Phalcon/Mvc/Model/Query/Lang.php b/src/Mvc/Model/Query/Lang.zep.php similarity index 99% rename from src/Phalcon/Mvc/Model/Query/Lang.php rename to src/Mvc/Model/Query/Lang.zep.php index 1877eef5..f87716d1 100644 --- a/src/Phalcon/Mvc/Model/Query/Lang.php +++ b/src/Mvc/Model/Query/Lang.zep.php @@ -42,4 +42,5 @@ abstract class Lang public static function parsePHQL(string $phql): array { } + } diff --git a/src/Phalcon/Mvc/Model/Query/Status.php b/src/Mvc/Model/Query/Status.zep.php similarity index 94% rename from src/Phalcon/Mvc/Model/Query/Status.php rename to src/Mvc/Model/Query/Status.zep.php index 623b3ca1..32265b97 100644 --- a/src/Phalcon/Mvc/Model/Query/Status.php +++ b/src/Mvc/Model/Query/Status.zep.php @@ -9,6 +9,7 @@ */ namespace Phalcon\Mvc\Model\Query; +use Phalcon\Messages\MessageInterface; use Phalcon\Mvc\ModelInterface; /** @@ -40,10 +41,14 @@ */ class Status implements \Phalcon\Mvc\Model\Query\StatusInterface { - + /** + * @var ModelInterface|null + */ protected $model; - + /** + * @var bool + */ protected $success; @@ -83,4 +88,5 @@ public function getModel(): ModelInterface public function success(): bool { } + } diff --git a/src/Phalcon/Mvc/Model/Query/StatusInterface.php b/src/Mvc/Model/Query/StatusInterface.zep.php similarity index 95% rename from src/Phalcon/Mvc/Model/Query/StatusInterface.php rename to src/Mvc/Model/Query/StatusInterface.zep.php index b70cbae2..f788b95f 100644 --- a/src/Phalcon/Mvc/Model/Query/StatusInterface.php +++ b/src/Mvc/Model/Query/StatusInterface.zep.php @@ -9,6 +9,7 @@ */ namespace Phalcon\Mvc\Model\Query; +use Phalcon\Messages\MessageInterface; use Phalcon\Mvc\ModelInterface; /** @@ -39,4 +40,5 @@ public function getModel(): ModelInterface; * @return bool */ public function success(): bool; + } diff --git a/src/Phalcon/Mvc/Model/QueryInterface.php b/src/Mvc/Model/QueryInterface.zep.php similarity index 93% rename from src/Phalcon/Mvc/Model/QueryInterface.php rename to src/Mvc/Model/QueryInterface.zep.php index 23e22e87..ea25b110 100644 --- a/src/Phalcon/Mvc/Model/QueryInterface.php +++ b/src/Mvc/Model/QueryInterface.zep.php @@ -34,7 +34,7 @@ public function cache(array $cacheOptions): QueryInterface; * @param array $bindParams * @param array $bindTypes */ - public function execute(array $bindParams = array(), array $bindTypes = array()); + public function execute(array $bindParams = [], array $bindTypes = []); /** * Returns default bind params @@ -71,7 +71,7 @@ public function getSql(): array; * @param array $bindTypes * @return ModelInterface */ - public function getSingleResult(array $bindParams = array(), array $bindTypes = array()): ModelInterface; + public function getSingleResult(array $bindParams = [], array $bindTypes = []): ModelInterface; /** * Check if the query is programmed to get only the first row in the resultset @@ -121,4 +121,5 @@ public function setSharedLock(bool $sharedLock = false): QueryInterface; * @return QueryInterface */ public function setUniqueRow(bool $uniqueRow): QueryInterface; + } diff --git a/src/Phalcon/Mvc/Model/Relation.php b/src/Mvc/Model/Relation.zep.php similarity index 82% rename from src/Phalcon/Mvc/Model/Relation.php rename to src/Mvc/Model/Relation.zep.php index 5b0487aa..f2a68a4b 100644 --- a/src/Phalcon/Mvc/Model/Relation.php +++ b/src/Mvc/Model/Relation.zep.php @@ -40,48 +40,64 @@ class Relation implements \Phalcon\Mvc\Model\RelationInterface const NO_ACTION = 0; - + /** + * @var array|string + */ protected $fields; - + /** + * @var array|string + */ protected $intermediateFields; + /** + * @var string|null + */ + protected $intermediateModel = null; - protected $intermediateModel; - - + /** + * @var array|string + */ protected $intermediateReferencedFields; + /** + * @var array + */ + protected $options = []; - protected $options; - - + /** + * @var array|string + */ protected $referencedFields; - + /** + * @var string + */ protected $referencedModel; - + /** + * @var int + */ protected $type; /** * Phalcon\Mvc\Model\Relation constructor * - * @param string|array $fields - * @param string|array $referencedFields * @param int $type * @param string $referencedModel + * @param array|string $fields + * @param array|string $referencedFields * @param array $options */ - public function __construct(int $type, string $referencedModel, $fields, $referencedFields, array $options = array()) + public function __construct(int $type, string $referencedModel, $fields, $referencedFields, array $options = []) { } /** * Returns the fields * - * @return string|array + * @return array|string */ public function getFields() { @@ -90,7 +106,7 @@ public function getFields() /** * Returns the foreign key configuration * - * @return string|array + * @return array|string */ public function getForeignKey() { @@ -99,7 +115,7 @@ public function getForeignKey() /** * Gets the intermediate fields for has--through relations * - * @return string|array + * @return array|string */ public function getIntermediateFields() { @@ -117,7 +133,7 @@ public function getIntermediateModel(): string /** * Gets the intermediate referenced fields for has--through relations * - * @return string|array + * @return array|string */ public function getIntermediateReferencedFields() { @@ -163,7 +179,7 @@ public function getType(): int /** * Returns the referenced fields * - * @return string|array + * @return array|string */ public function getReferencedFields() { @@ -208,11 +224,12 @@ public function isReusable(): bool /** * Sets the intermediate model data for has--through relations * - * @param string|array $intermediateFields - * @param string $intermediateReferencedFields + * @param array|string $intermediateFields * @param string $intermediateModel + * @param array|string $intermediateReferencedFields */ public function setIntermediateRelation($intermediateFields, string $intermediateModel, $intermediateReferencedFields) { } + } diff --git a/src/Phalcon/Mvc/Model/RelationInterface.php b/src/Mvc/Model/RelationInterface.zep.php similarity index 99% rename from src/Phalcon/Mvc/Model/RelationInterface.php rename to src/Mvc/Model/RelationInterface.zep.php index a418e806..b1bf64a1 100644 --- a/src/Phalcon/Mvc/Model/RelationInterface.php +++ b/src/Mvc/Model/RelationInterface.zep.php @@ -124,4 +124,5 @@ public function isThrough(): bool; * @param string $intermediateModel */ public function setIntermediateRelation($intermediateFields, string $intermediateModel, $intermediateReferencedFields); + } diff --git a/src/Phalcon/Mvc/Model/ResultInterface.php b/src/Mvc/Model/ResultInterface.zep.php similarity index 89% rename from src/Phalcon/Mvc/Model/ResultInterface.php rename to src/Mvc/Model/ResultInterface.zep.php index 9e83d6bf..9dc1821c 100644 --- a/src/Phalcon/Mvc/Model/ResultInterface.php +++ b/src/Mvc/Model/ResultInterface.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Mvc\Model; +use Phalcon\Mvc\ModelInterface; + /** * Phalcon\Mvc\Model\ResultInterface * @@ -21,7 +23,8 @@ interface ResultInterface * Sets the object's state * * @param int $dirtyState - * @return bool|\Phalcon\Mvc\ModelInterface + * @return 0|ModelInterface */ public function setDirtyState(int $dirtyState); + } diff --git a/src/Phalcon/Mvc/Model/Resultset.php b/src/Mvc/Model/Resultset.zep.php similarity index 84% rename from src/Phalcon/Mvc/Model/Resultset.php rename to src/Mvc/Model/Resultset.zep.php index 71a31004..53420901 100644 --- a/src/Phalcon/Mvc/Model/Resultset.php +++ b/src/Mvc/Model/Resultset.zep.php @@ -9,8 +9,19 @@ */ namespace Phalcon\Mvc\Model; -use Phalcon\Cache\Adapter\AdapterInterface; +use ArrayAccess; +use Closure; +use Countable; +use Iterator; +use JsonSerializable; +use Phalcon\Db\Enum; +use Phalcon\Messages\MessageInterface; +use Phalcon\Mvc\Model; use Phalcon\Mvc\ModelInterface; +use Phalcon\Storage\Serializer\SerializerInterface; +use Psr\SimpleCache\CacheInterface; +use SeekableIterator; +use Serializable; /** * Phalcon\Mvc\Model\Resultset @@ -70,35 +81,55 @@ abstract class Resultset implements \Phalcon\Mvc\Model\ResultsetInterface, \Iter const TYPE_RESULT_PARTIAL = 1; - + /** + * @var mixed|null + */ protected $activeRow = null; - + /** + * @var CacheInterface|null + */ protected $cache = null; - + /** + * @var int + */ protected $count = 0; + /** + * @var array + */ + protected $errorMessages = []; - protected $errorMessages = array(); - - + /** + * @var int + */ protected $hydrateMode = 0; - + /** + * @var bool + */ protected $isFresh = true; - + /** + * @var int + */ protected $pointer = 0; - + /** + * @var mixed|null + */ protected $row = null; - + /** + * @var array|null + */ protected $rows = null; /** * Phalcon\Db\ResultInterface or false for empty resultset + * + * @var ResultInterface|bool */ protected $result; @@ -106,10 +137,10 @@ abstract class Resultset implements \Phalcon\Mvc\Model\ResultsetInterface, \Iter /** * Phalcon\Mvc\Model\Resultset constructor * - * @param \Phalcon\Db\ResultInterface|false $result - * @param \Phalcon\Cache\Adapter\AdapterInterface $cache + * @param ResultInterface|false $result + * @param CacheInterface|null $cache */ - public function __construct($result, \Phalcon\Cache\Adapter\AdapterInterface $cache = null) + public function __construct($result, \Psr\SimpleCache\CacheInterface $cache = null) { } @@ -155,9 +186,9 @@ public function filter($filter): array /** * Returns the associated cache for the resultset * - * @return AdapterInterface + * @return CacheInterface|null */ - public function getCache(): AdapterInterface + public function getCache(): ?CacheInterface { } @@ -202,7 +233,7 @@ public function getHydrateMode(): int /** * Get last row in the resultset * - * @return \Phalcon\Mvc\ModelInterface|null + * @return ModelInterface|null */ public function getLast(): ?ModelInterface { @@ -265,7 +296,7 @@ public function key(): ?int * * @return void */ - public function next() + public function next(): void { } @@ -273,7 +304,7 @@ public function next() * Gets row in a specific position of the resultset * * @param mixed $index - * @return bool|\Phalcon\Mvc\ModelInterface + * @return 0|ModelInterface */ public function offsetGet($index) { @@ -296,7 +327,7 @@ public function offsetExists($index): bool * @param \Phalcon\Mvc\ModelInterface $value * @return void */ - public function offsetSet($index, $value) + public function offsetSet($index, $value): void { } @@ -306,7 +337,7 @@ public function offsetSet($index, $value) * @param mixed $offset * @return void */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { } @@ -315,7 +346,7 @@ public function offsetUnset($offset) * * @return void */ - final public function rewind() + final public function rewind(): void { } @@ -326,7 +357,7 @@ final public function rewind() * @param mixed $position * @return void */ - final public function seek($position) + final public function seek($position): void { } @@ -369,4 +400,5 @@ public function update($data, \Closure $conditionCallback = null): bool public function valid(): bool { } + } diff --git a/src/Phalcon/Mvc/Model/Resultset/Complex.php b/src/Mvc/Model/Resultset/Complex.zep.php similarity index 72% rename from src/Phalcon/Mvc/Model/Resultset/Complex.php rename to src/Mvc/Model/Resultset/Complex.zep.php index 52929deb..f24abad3 100644 --- a/src/Phalcon/Mvc/Model/Resultset/Complex.php +++ b/src/Mvc/Model/Resultset/Complex.zep.php @@ -9,7 +9,18 @@ */ namespace Phalcon\Mvc\Model\Resultset; +use Phalcon\Di; +use Phalcon\Di\DiInterface; +use Phalcon\Db\ResultInterface; +use Phalcon\Mvc\Model; +use Phalcon\Mvc\Model\Exception; use Phalcon\Mvc\Model\Resultset; +use Phalcon\Mvc\Model\ResultsetInterface; +use Phalcon\Mvc\Model\Row; +use Phalcon\Mvc\ModelInterface; +use Phalcon\Storage\Serializer\SerializerInterface; +use Psr\SimpleCache\CacheInterface; +use stdClass; /** * Phalcon\Mvc\Model\Resultset\Complex @@ -19,12 +30,16 @@ */ class Complex extends Resultset implements \Phalcon\Mvc\Model\ResultsetInterface { - + /** + * @var array + */ protected $columnTypes; /** * Unserialised result-set hydrated all rows already. unserialise() sets * disableHydration to true + * + * @var bool */ protected $disableHydration = false; @@ -33,17 +48,17 @@ class Complex extends Resultset implements \Phalcon\Mvc\Model\ResultsetInterface * Phalcon\Mvc\Model\Resultset\Complex constructor * * @param array $columnTypes - * @param \Phalcon\Db\ResultInterface $result - * @param \Phalcon\Cache\Adapter\AdapterInterface $cache + * @param ResultInterface|null $result + * @param CacheInterface|null $cache */ - public function __construct($columnTypes, \Phalcon\Db\ResultInterface $result = null, \Phalcon\Cache\Adapter\AdapterInterface $cache = null) + public function __construct($columnTypes, \Phalcon\Db\ResultInterface $result = null, \Psr\SimpleCache\CacheInterface $cache = null) { } /** * Returns current row in the resultset * - * @return bool|\Phalcon\Mvc\ModelInterface + * @return 0|ModelInterface */ final public function current() { @@ -74,7 +89,8 @@ public function serialize(): string * @param mixed $data * @return void */ - public function unserialize($data) + public function unserialize($data): void { } + } diff --git a/src/Phalcon/Mvc/Model/Resultset/Simple.php b/src/Mvc/Model/Resultset/Simple.zep.php similarity index 70% rename from src/Phalcon/Mvc/Model/Resultset/Simple.php rename to src/Mvc/Model/Resultset/Simple.zep.php index 68eb43c9..7a5d57d9 100644 --- a/src/Phalcon/Mvc/Model/Resultset/Simple.php +++ b/src/Mvc/Model/Resultset/Simple.zep.php @@ -9,8 +9,15 @@ */ namespace Phalcon\Mvc\Model\Resultset; +use Phalcon\Di; +use Phalcon\Di\DiInterface; +use Phalcon\Mvc\Model; +use Phalcon\Mvc\Model\Exception; use Phalcon\Mvc\Model\Resultset; +use Phalcon\Mvc\Model\Row; use Phalcon\Mvc\ModelInterface; +use Phalcon\Storage\Serializer\SerializerInterface; +use Psr\SimpleCache\CacheInterface; /** * Phalcon\Mvc\Model\Resultset\Simple @@ -20,10 +27,14 @@ */ class Simple extends Resultset { - + /** + * @var array|string + */ protected $columnMap; - + /** + * @var ModelInterface|Row + */ protected $model; /** @@ -36,19 +47,19 @@ class Simple extends Resultset * Phalcon\Mvc\Model\Resultset\Simple constructor * * @param array $columnMap - * @param \Phalcon\Mvc\ModelInterface|Phalcon\Mvc\Model\Row $model - * @param mixed $result - * @param \Phalcon\Cache\Adapter\AdapterInterface $cache - * @param bool $keepSnapshots + * @param ModelInterface|Row $model + * @param \Phalcon\Db\ResultInterface|false $result + * @param CacheInterface|null $cache + * @param bool $keepSnapshots false */ - public function __construct($columnMap, $model, $result, \Phalcon\Cache\Adapter\AdapterInterface $cache = null, bool $keepSnapshots = null) + public function __construct($columnMap, $model, $result, \Psr\SimpleCache\CacheInterface $cache = null, bool $keepSnapshots = false) { } /** * Returns current row in the resultset * - * @return \Phalcon\Mvc\ModelInterface|null + * @return ModelInterface|null */ final public function current(): ?ModelInterface { @@ -83,7 +94,8 @@ public function serialize(): string * @param mixed $data * @return void */ - public function unserialize($data) + public function unserialize($data): void { } + } diff --git a/src/Phalcon/Mvc/Model/ResultsetInterface.php b/src/Mvc/Model/ResultsetInterface.zep.php similarity index 93% rename from src/Phalcon/Mvc/Model/ResultsetInterface.php rename to src/Mvc/Model/ResultsetInterface.zep.php index 6c2fcdd2..836917ba 100644 --- a/src/Phalcon/Mvc/Model/ResultsetInterface.php +++ b/src/Mvc/Model/ResultsetInterface.zep.php @@ -9,8 +9,10 @@ */ namespace Phalcon\Mvc\Model; -use Phalcon\Cache\Adapter\AdapterInterface; +use Closure; +use Phalcon\Messages\MessageInterface; use Phalcon\Mvc\ModelInterface; +use Psr\SimpleCache\CacheInterface; /** * Phalcon\Mvc\Model\ResultsetInterface @@ -49,9 +51,9 @@ public function filter($filter): array; /** * Returns the associated cache for the resultset * - * @return AdapterInterface + * @return CacheInterface|null */ - public function getCache(): AdapterInterface; + public function getCache(): ?CacheInterface; /** * Get first row in the resultset @@ -70,7 +72,7 @@ public function getHydrateMode(): int; /** * Get last row in the resultset * - * @return \Phalcon\Mvc\ModelInterface|null + * @return ModelInterface|null */ public function getLast(): ?ModelInterface; @@ -127,4 +129,5 @@ public function toArray(): array; * @return bool */ public function update($data, \Closure $conditionCallback = null): bool; + } diff --git a/src/Phalcon/Mvc/Model/Row.php b/src/Mvc/Model/Row.zep.php similarity index 85% rename from src/Phalcon/Mvc/Model/Row.php rename to src/Mvc/Model/Row.zep.php index 65d1cff6..773ffc3d 100644 --- a/src/Phalcon/Mvc/Model/Row.php +++ b/src/Mvc/Model/Row.zep.php @@ -9,6 +9,11 @@ */ namespace Phalcon\Mvc\Model; +use ArrayAccess; +use JsonSerializable; +use Phalcon\Mvc\EntityInterface; +use Phalcon\Mvc\ModelInterface; + /** * Phalcon\Mvc\Model\Row * @@ -31,7 +36,7 @@ public function jsonSerialize(): array * Gets a record in a specific position of the row * * @param string|int $index * - * @return string|Phalcon\Mvc\ModelInterface + * @return string|ModelInterface */ public function offsetGet($index) { @@ -51,10 +56,10 @@ public function offsetExists($index): bool * Rows cannot be changed. It has only been implemented to meet the definition of the ArrayAccess interface * * @param string|int $index - * @param \Phalcon\Mvc\ModelInterface $value + * @param ModelInterface $value * @return void */ - public function offsetSet($index, $value) + public function offsetSet($index, $value): void { } @@ -64,7 +69,7 @@ public function offsetSet($index, $value) * @param string|int $offset * @return void */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { } @@ -86,7 +91,7 @@ public function readAttribute(string $attribute) * Set the current object's state * * @param int $dirtyState - * @return bool|\Phalcon\Mvc\ModelInterface + * @return 0|ModelInterface */ public function setDirtyState(int $dirtyState) { @@ -112,7 +117,8 @@ public function toArray(): array * @param string $attribute * @return void */ - public function writeAttribute(string $attribute, $value) + public function writeAttribute(string $attribute, $value): void { } + } diff --git a/src/Phalcon/Mvc/Model/Transaction.php b/src/Mvc/Model/Transaction.zep.php similarity index 80% rename from src/Phalcon/Mvc/Model/Transaction.php rename to src/Mvc/Model/Transaction.zep.php index 0ffc5d86..fada9671 100644 --- a/src/Phalcon/Mvc/Model/Transaction.php +++ b/src/Mvc/Model/Transaction.zep.php @@ -9,6 +9,13 @@ */ namespace Phalcon\Mvc\Model; +use Phalcon\Db\Adapter\AdapterInterface; +use Phalcon\Di\DiInterface; +use Phalcon\Mvc\ModelInterface; +use Phalcon\Mvc\Model\Transaction\Failed as TxFailed; +use Phalcon\Mvc\Model\Transaction\ManagerInterface; +use Phalcon\Mvc\Model\TransactionInterface; + /** * Phalcon\Mvc\Model\Transaction * @@ -55,35 +62,51 @@ */ class Transaction implements \Phalcon\Mvc\Model\TransactionInterface { - + /** + * @var bool + */ protected $activeTransaction = false; - + /** + * @var AdapterInterface + */ protected $connection; - + /** + * @var bool + */ protected $isNewTransaction = true; + /** + * @var ManagerInterface|null + */ + protected $manager = null; - protected $manager; - - - protected $messages = array(); - - - protected $rollbackRecord; + /** + * @var array + */ + protected $messages = []; + /** + * @var ModelInterface|null + */ + protected $rollbackRecord = null; + /** + * @var bool + */ protected $rollbackOnAbort = false; - + /** + * @var bool + */ protected $rollbackThrowException = false; /** * Phalcon\Mvc\Model\Transaction constructor * - * @param \Phalcon\Di\DiInterface $container + * @param DiInterface $container * @param bool $autoBegin * @param string $service */ @@ -112,9 +135,9 @@ public function commit(): bool /** * Returns the connection related to transaction * - * @return \Phalcon\Db\Adapter\AdapterInterface + * @return AdapterInterface */ - public function getConnection(): \Phalcon\Db\Adapter\AdapterInterface + public function getConnection(): AdapterInterface { } @@ -162,7 +185,7 @@ public function rollback(string $rollbackMessage = null, \Phalcon\Mvc\ModelInter * @param bool $isNew * @return void */ - public function setIsNewTransaction(bool $isNew) + public function setIsNewTransaction(bool $isNew): void { } @@ -172,7 +195,7 @@ public function setIsNewTransaction(bool $isNew) * @param bool $rollbackOnAbort * @return void */ - public function setRollbackOnAbort(bool $rollbackOnAbort) + public function setRollbackOnAbort(bool $rollbackOnAbort): void { } @@ -182,7 +205,7 @@ public function setRollbackOnAbort(bool $rollbackOnAbort) * @param \Phalcon\Mvc\ModelInterface $record * @return void */ - public function setRollbackedRecord(\Phalcon\Mvc\ModelInterface $record) + public function setRollbackedRecord(\Phalcon\Mvc\ModelInterface $record): void { } @@ -192,7 +215,7 @@ public function setRollbackedRecord(\Phalcon\Mvc\ModelInterface $record) * @param \Phalcon\Mvc\Model\Transaction\ManagerInterface $manager * @return void */ - public function setTransactionManager(\Phalcon\Mvc\Model\Transaction\ManagerInterface $manager) + public function setTransactionManager(\Phalcon\Mvc\Model\Transaction\ManagerInterface $manager): void { } @@ -205,4 +228,5 @@ public function setTransactionManager(\Phalcon\Mvc\Model\Transaction\ManagerInte public function throwRollbackException(bool $status): TransactionInterface { } + } diff --git a/src/Phalcon/Mvc/Model/Transaction/Exception.php b/src/Mvc/Model/Transaction/Exception.zep.php similarity index 100% rename from src/Phalcon/Mvc/Model/Transaction/Exception.php rename to src/Mvc/Model/Transaction/Exception.zep.php diff --git a/src/Phalcon/Mvc/Model/Transaction/Failed.php b/src/Mvc/Model/Transaction/Failed.zep.php similarity index 86% rename from src/Phalcon/Mvc/Model/Transaction/Failed.php rename to src/Mvc/Model/Transaction/Failed.zep.php index 0c0ec856..a22f787e 100644 --- a/src/Phalcon/Mvc/Model/Transaction/Failed.php +++ b/src/Mvc/Model/Transaction/Failed.zep.php @@ -9,6 +9,7 @@ */ namespace Phalcon\Mvc\Model\Transaction; +use Phalcon\Messages\MessageInterface; use Phalcon\Mvc\ModelInterface; /** @@ -18,7 +19,9 @@ */ class Failed extends \Phalcon\Mvc\Model\Transaction\Exception { - + /** + * @var ModelInterface|null + */ protected $record = null; @@ -26,7 +29,7 @@ class Failed extends \Phalcon\Mvc\Model\Transaction\Exception * Phalcon\Mvc\Model\Transaction\Failed constructor * * @param string $message - * @param \Phalcon\Mvc\ModelInterface $record + * @param ModelInterface|null $record */ public function __construct(string $message, \Phalcon\Mvc\ModelInterface $record = null) { @@ -44,9 +47,10 @@ public function getRecord(): ModelInterface /** * Returns validation record messages which stop the transaction * - * @return array|\Phalcon\Messages\MessageInterface[] + * @return MessageInterface[] */ public function getRecordMessages(): array { } + } diff --git a/src/Phalcon/Mvc/Model/Transaction/Manager.php b/src/Mvc/Model/Transaction/Manager.zep.php similarity index 84% rename from src/Phalcon/Mvc/Model/Transaction/Manager.php rename to src/Mvc/Model/Transaction/Manager.zep.php index 28fd6173..35de6f45 100644 --- a/src/Phalcon/Mvc/Model/Transaction/Manager.php +++ b/src/Mvc/Model/Transaction/Manager.zep.php @@ -9,7 +9,10 @@ */ namespace Phalcon\Mvc\Model\Transaction; +use Phalcon\Di; use Phalcon\Di\DiInterface; +use Phalcon\Di\InjectionAwareInterface; +use Phalcon\Mvc\Model\Transaction; use Phalcon\Mvc\Model\TransactionInterface; /** @@ -61,31 +64,41 @@ */ class Manager implements \Phalcon\Mvc\Model\Transaction\ManagerInterface, \Phalcon\Di\InjectionAwareInterface { - + /** + * @var DiInterface|null + */ protected $container; - + /** + * @var bool + */ protected $initialized = false; - + /** + * @var int + */ protected $number = 0; - + /** + * @var bool + */ protected $rollbackPendent = true; - + /** + * @var string + */ protected $service = 'db'; /** * @var array */ - protected $transactions = array(); + protected $transactions = []; /** * Phalcon\Mvc\Model\Transaction\Manager constructor * - * @param \Phalcon\Di\DiInterface $container + * @param DiInterface|null $container */ public function __construct(\Phalcon\Di\DiInterface $container = null) { @@ -96,7 +109,7 @@ public function __construct(\Phalcon\Di\DiInterface $container = null) * * @return void */ - public function collectTransactions() + public function collectTransactions(): void { } @@ -111,7 +124,7 @@ public function commit() * Returns a new \Phalcon\Mvc\Model\Transaction or an already created once * This method registers a shutdown function to rollback active connections * - * @param bool $autoBegin + * @param bool $autoBegin * * @return TransactionInterface */ public function get(bool $autoBegin = true): TransactionInterface @@ -139,7 +152,7 @@ public function getDI(): DiInterface /** * Create/Returns a new transaction or an existing one * - * @param bool $autoBegin + * @param bool $autoBegin * * @return TransactionInterface */ public function getOrCreateTransaction(bool $autoBegin = true): TransactionInterface @@ -168,20 +181,20 @@ public function has(): bool /** * Notifies the manager about a committed transaction * - * @param \Phalcon\Mvc\Model\TransactionInterface $transaction + * @param TransactionInterface $transaction * @return void */ - public function notifyCommit(\Phalcon\Mvc\Model\TransactionInterface $transaction) + public function notifyCommit(\Phalcon\Mvc\Model\TransactionInterface $transaction): void { } /** * Notifies the manager about a rollbacked transaction * - * @param \Phalcon\Mvc\Model\TransactionInterface $transaction + * @param TransactionInterface $transaction * @return void */ - public function notifyRollback(\Phalcon\Mvc\Model\TransactionInterface $transaction) + public function notifyRollback(\Phalcon\Mvc\Model\TransactionInterface $transaction): void { } @@ -192,7 +205,7 @@ public function notifyRollback(\Phalcon\Mvc\Model\TransactionInterface $transact * @param bool $collect * @return void */ - public function rollback(bool $collect = true) + public function rollback(bool $collect = true): void { } @@ -201,7 +214,7 @@ public function rollback(bool $collect = true) * * @return void */ - public function rollbackPendent() + public function rollbackPendent(): void { } @@ -218,10 +231,10 @@ public function setDbService(string $service): ManagerInterface /** * Sets the dependency injection container * - * @param \Phalcon\Di\DiInterface $container + * @param DiInterface $container * @return void */ - public function setDI(\Phalcon\Di\DiInterface $container) + public function setDI(\Phalcon\Di\DiInterface $container): void { } @@ -239,10 +252,11 @@ public function setRollbackPendent(bool $rollbackPendent): ManagerInterface /** * Removes transactions from the TransactionManager * - * @param \Phalcon\Mvc\Model\TransactionInterface $transaction + * @param TransactionInterface $transaction * @return void */ - protected function collectTransaction(\Phalcon\Mvc\Model\TransactionInterface $transaction) + protected function collectTransaction(\Phalcon\Mvc\Model\TransactionInterface $transaction): void { } + } diff --git a/src/Phalcon/Mvc/Model/Transaction/ManagerInterface.php b/src/Mvc/Model/Transaction/ManagerInterface.zep.php similarity index 92% rename from src/Phalcon/Mvc/Model/Transaction/ManagerInterface.php rename to src/Mvc/Model/Transaction/ManagerInterface.zep.php index d2acfa22..036986ad 100644 --- a/src/Phalcon/Mvc/Model/Transaction/ManagerInterface.php +++ b/src/Mvc/Model/Transaction/ManagerInterface.zep.php @@ -24,7 +24,7 @@ interface ManagerInterface * * @return void */ - public function collectTransactions(); + public function collectTransactions(): void; /** * Commits active transactions within the manager @@ -66,7 +66,7 @@ public function has(): bool; * @param \Phalcon\Mvc\Model\TransactionInterface $transaction * @return void */ - public function notifyCommit(\Phalcon\Mvc\Model\TransactionInterface $transaction); + public function notifyCommit(\Phalcon\Mvc\Model\TransactionInterface $transaction): void; /** * Notifies the manager about a rollbacked transaction @@ -74,7 +74,7 @@ public function notifyCommit(\Phalcon\Mvc\Model\TransactionInterface $transactio * @param \Phalcon\Mvc\Model\TransactionInterface $transaction * @return void */ - public function notifyRollback(\Phalcon\Mvc\Model\TransactionInterface $transaction); + public function notifyRollback(\Phalcon\Mvc\Model\TransactionInterface $transaction): void; /** * Rollbacks active transactions within the manager @@ -83,14 +83,14 @@ public function notifyRollback(\Phalcon\Mvc\Model\TransactionInterface $transact * @param bool $collect * @return void */ - public function rollback(bool $collect = false); + public function rollback(bool $collect = false): void; /** * Rollbacks active transactions within the manager * * @return void */ - public function rollbackPendent(); + public function rollbackPendent(): void; /** * Sets the database service used to run the isolated transactions @@ -107,4 +107,5 @@ public function setDbService(string $service): ManagerInterface; * @return ManagerInterface */ public function setRollbackPendent(bool $rollbackPendent): ManagerInterface; + } diff --git a/src/Phalcon/Mvc/Model/TransactionInterface.php b/src/Mvc/Model/TransactionInterface.zep.php similarity index 89% rename from src/Phalcon/Mvc/Model/TransactionInterface.php rename to src/Mvc/Model/TransactionInterface.zep.php index 99dba3e3..47389fd9 100644 --- a/src/Phalcon/Mvc/Model/TransactionInterface.php +++ b/src/Mvc/Model/TransactionInterface.zep.php @@ -9,6 +9,9 @@ */ namespace Phalcon\Mvc\Model; +use Phalcon\Mvc\ModelInterface; +use Phalcon\Mvc\Model\Transaction\ManagerInterface; + /** * Phalcon\Mvc\Model\TransactionInterface * @@ -74,7 +77,7 @@ public function rollback(string $rollbackMessage = null, \Phalcon\Mvc\ModelInter * @param bool $isNew * @return void */ - public function setIsNewTransaction(bool $isNew); + public function setIsNewTransaction(bool $isNew): void; /** * Sets flag to rollback on abort the HTTP connection @@ -82,7 +85,7 @@ public function setIsNewTransaction(bool $isNew); * @param bool $rollbackOnAbort * @return void */ - public function setRollbackOnAbort(bool $rollbackOnAbort); + public function setRollbackOnAbort(bool $rollbackOnAbort): void; /** * Sets object which generates rollback action @@ -90,7 +93,7 @@ public function setRollbackOnAbort(bool $rollbackOnAbort); * @param \Phalcon\Mvc\ModelInterface $record * @return void */ - public function setRollbackedRecord(\Phalcon\Mvc\ModelInterface $record); + public function setRollbackedRecord(\Phalcon\Mvc\ModelInterface $record): void; /** * Sets transaction manager related to the transaction @@ -98,7 +101,7 @@ public function setRollbackedRecord(\Phalcon\Mvc\ModelInterface $record); * @param \Phalcon\Mvc\Model\Transaction\ManagerInterface $manager * @return void */ - public function setTransactionManager(\Phalcon\Mvc\Model\Transaction\ManagerInterface $manager); + public function setTransactionManager(\Phalcon\Mvc\Model\Transaction\ManagerInterface $manager): void; /** * Enables throwing exception @@ -107,4 +110,5 @@ public function setTransactionManager(\Phalcon\Mvc\Model\Transaction\ManagerInte * @return TransactionInterface */ public function throwRollbackException(bool $status): TransactionInterface; + } diff --git a/src/Phalcon/Mvc/Model/ValidationFailed.php b/src/Mvc/Model/ValidationFailed.zep.php similarity index 79% rename from src/Phalcon/Mvc/Model/ValidationFailed.php rename to src/Mvc/Model/ValidationFailed.zep.php index 11a3dba9..0ef15e60 100644 --- a/src/Phalcon/Mvc/Model/ValidationFailed.php +++ b/src/Mvc/Model/ValidationFailed.zep.php @@ -9,6 +9,7 @@ */ namespace Phalcon\Mvc\Model; +use Phalcon\Messages\Message; use Phalcon\Mvc\ModelInterface; /** @@ -19,20 +20,22 @@ */ class ValidationFailed extends \Phalcon\Mvc\Model\Exception { + /** + * @var array + */ + protected $messages = []; - protected $messages = array(); - - + /** + * @var ModelInterface + */ protected $model; /** * Phalcon\Mvc\Model\ValidationFailed constructor * - * @param Message[] validationMessages - * @param \Phalcon\Mvc\ModelInterface $model - * @param array $validationMessages - * @param Message [] validationMessages + * @param ModelInterface $model + * @param Message[] $validationMessages */ public function __construct(\Phalcon\Mvc\ModelInterface $model, array $validationMessages) { @@ -41,7 +44,7 @@ public function __construct(\Phalcon\Mvc\ModelInterface $model, array $validatio /** * Returns the complete group of messages produced in the validation * - * @return array|Message[] + * @return array|\Phalcon\Messages\Message[] */ public function getMessages(): array { @@ -55,4 +58,5 @@ public function getMessages(): array public function getModel(): ModelInterface { } + } diff --git a/src/Phalcon/Mvc/ModelInterface.php b/src/Mvc/ModelInterface.zep.php similarity index 87% rename from src/Phalcon/Mvc/ModelInterface.php rename to src/Mvc/ModelInterface.zep.php index 390a2a97..2998a071 100644 --- a/src/Phalcon/Mvc/ModelInterface.php +++ b/src/Mvc/ModelInterface.zep.php @@ -10,9 +10,12 @@ namespace Phalcon\Mvc; use Phalcon\Db\Adapter\AdapterInterface; +use Phalcon\Di\DiInterface; +use Phalcon\Messages\MessageInterface; use Phalcon\Mvc\Model\CriteriaInterface; use Phalcon\Mvc\Model\MetaDataInterface; use Phalcon\Mvc\Model\ResultsetInterface; +use Phalcon\Mvc\Model\TransactionInterface; /** * Phalcon\Mvc\ModelInterface @@ -33,10 +36,10 @@ public function appendMessage(\Phalcon\Messages\MessageInterface $message): Mode /** * Assigns values to a model from an array * - * @param array $columnMap * @param array $data * @param mixed $whiteList - * @param mixed $dataColumnMap + * @param mixed $dataColumnMap Array to transform keys of data to another + * * @return ModelInterface */ public function assign(array $data, $whiteList = null, $dataColumnMap = null): ModelInterface; @@ -46,9 +49,9 @@ public function assign(array $data, $whiteList = null, $dataColumnMap = null): M * conditions * * @param array $parameters - * @return double | ResultsetInterface + * @return ResultsetInterface|float */ - public static function average($parameters = null); + public static function average(array $parameters = []); /** * Assigns values to a model from an array returning a new model @@ -63,14 +66,14 @@ public static function cloneResult(ModelInterface $base, array $data, int $dirty /** * Assigns values to a model from an array returning a new model * - * @param \Phalcon\Mvc\Model $base - * @param array $columnMap - * @return \Phalcon\Mvc\Model result - * @param array $data + * @param ModelInterface|\Phalcon\Mvc\Model\Row $base + * @param mixed $columnMap * @param int $dirtyState - * @param bool $keepSnapshots + * @param bool $keepSnapshots * + * @return ModelInterface + * @param array $data */ - public static function cloneResultMap($base, array $data, $columnMap, int $dirtyState = 0, bool $keepSnapshots = null): ModelInterface; + public static function cloneResultMap($base, array $data, $columnMap, int $dirtyState = 0, bool $keepSnapshots = false): ModelInterface; /** * Returns an hydrated result based on the data and the column map @@ -88,8 +91,8 @@ public static function cloneResultMapHydrate(array $data, $columnMap, int $hydra * instance for when the GROUP condition is used. The results will * contain the count of each group. * - * @param array $parameters - * @return int|\Phalcon\Mvc\Model\ResultsetInterface + * @param array|string|null $parameters + * @return 0|ResultsetInterface */ public static function count($parameters = null); @@ -112,7 +115,7 @@ public function delete(): bool; /** * Allows to query a set of records that match the specified conditions * - * @param mixed $parameters + * @param array|string|int|null $parameters * * @return ResultsetInterface */ public static function find($parameters = null): ResultsetInterface; @@ -121,9 +124,12 @@ public static function find($parameters = null): ResultsetInterface; * Allows to query the first record that match the specified conditions * * @param array $parameters - * @return ModelInterface|null + * @return \Phalcon\Mvc\ModelInterface|\Phalcon\Mvc\Model\Row|null + * + * TODO: Current method signature must be reviewed in v5. As it must return only ?ModelInterface. + * @see https://github.com/phalcon/cphalcon/issues/15212 */ - public static function findFirst($parameters = null): ?ModelInterface; + public static function findFirst($parameters = null); /** * Fires an event, implicitly calls behaviors and listeners in the events @@ -191,18 +197,18 @@ public function getReadConnectionService(): string; /** * Returns related records based on defined relations * - * @param array $arguments - * @return \Phalcon\Mvc\Model\Resultset\Simple|Phalcon\Mvc\Model\Resultset\Simple|false * @param string $alias + * @param array $arguments + * @return \Phalcon\Mvc\Model\Resultset\Simple|false */ public function getRelated(string $alias, $arguments = null); /** * Returns schema name where table mapped is located * - * @return string + * @return string|null */ - public function getSchema(): string; + public function getSchema(): ?string; /** * Returns table name mapped in the model @@ -272,14 +278,14 @@ public function save(): bool; * @param string $connectionService * @return void */ - public function setConnectionService(string $connectionService); + public function setConnectionService(string $connectionService): void; /** * Sets the dirty state of the object using one of the DIRTY_STATE_ * constants * * @param int $dirtyState - * @return bool|ModelInterface + * @return 0|ModelInterface */ public function setDirtyState(int $dirtyState); @@ -289,7 +295,7 @@ public function setDirtyState(int $dirtyState); * @param string $connectionService * @return void */ - public function setReadConnectionService(string $connectionService); + public function setReadConnectionService(string $connectionService): void; /** * Sets the record's snapshot data. This method is used internally to set @@ -299,7 +305,7 @@ public function setReadConnectionService(string $connectionService); * @param array $data * @return void */ - public function setSnapshotData(array $data, $columnMap = null); + public function setSnapshotData(array $data, $columnMap = null): void; /** * Sets a transaction related to the Model instance @@ -315,7 +321,7 @@ public function setTransaction(\Phalcon\Mvc\Model\TransactionInterface $transact * @param string $connectionService * @return void */ - public function setWriteConnectionService(string $connectionService); + public function setWriteConnectionService(string $connectionService): void; /** * Skips the current operation forcing a success state @@ -323,13 +329,13 @@ public function setWriteConnectionService(string $connectionService); * @param bool $skip * @return void */ - public function skipOperation(bool $skip); + public function skipOperation(bool $skip): void; /** * Allows to calculate a sum on a column that match the specified conditions * * @param array $parameters - * @return double | ResultsetInterface + * @return float|ResultsetInterface */ public static function sum($parameters = null); @@ -348,4 +354,5 @@ public function validationHasFailed(): bool; * @return bool */ public function update(): bool; + } diff --git a/src/Phalcon/Mvc/ModuleDefinitionInterface.php b/src/Mvc/ModuleDefinitionInterface.zep.php similarity index 96% rename from src/Phalcon/Mvc/ModuleDefinitionInterface.php rename to src/Mvc/ModuleDefinitionInterface.zep.php index ac195410..2d445b56 100644 --- a/src/Phalcon/Mvc/ModuleDefinitionInterface.php +++ b/src/Mvc/ModuleDefinitionInterface.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Mvc; +use Phalcon\Di\DiInterface; + /** * Phalcon\Mvc\ModuleDefinitionInterface * @@ -30,4 +32,5 @@ public function registerAutoloaders(\Phalcon\Di\DiInterface $container = null); * @param \Phalcon\Di\DiInterface $container */ public function registerServices(\Phalcon\Di\DiInterface $container); + } diff --git a/src/Phalcon/Mvc/Router.php b/src/Mvc/Router.zep.php similarity index 69% rename from src/Phalcon/Mvc/Router.php rename to src/Mvc/Router.zep.php index 8a28c7ae..18734183 100644 --- a/src/Phalcon/Mvc/Router.php +++ b/src/Mvc/Router.zep.php @@ -9,8 +9,14 @@ */ namespace Phalcon\Mvc; +use Phalcon\Di\DiInterface; use Phalcon\Di\AbstractInjectionAware; +use Phalcon\Events\EventsAwareInterface; use Phalcon\Events\ManagerInterface; +use Phalcon\Http\RequestInterface; +use Phalcon\Mvc\Router\Exception; +use Phalcon\Mvc\Router\GroupInterface; +use Phalcon\Mvc\Router\Route; use Phalcon\Mvc\Router\RouteInterface; /** @@ -49,85 +55,127 @@ class Router extends AbstractInjectionAware implements \Phalcon\Mvc\RouterInterf const POSITION_LAST = 1; - + /** + * @var string|null + */ protected $action = null; - + /** + * @var string|null + */ protected $controller = null; + /** + * @var string|null + */ + protected $defaultAction = null; - protected $defaultAction; - - - protected $defaultController; - - - protected $defaultModule; - - - protected $defaultNamespace; + /** + * @var string|null + */ + protected $defaultController = null; + /** + * @var string|null + */ + protected $defaultModule = null; - protected $defaultParams = array(); + /** + * @var string|null + */ + protected $defaultNamespace = null; + /** + * @var array + */ + protected $defaultParams = []; + /** + * @var ManagerInterface|null + */ protected $eventsManager; + /** + * @var array + */ + protected $keyRouteNames = []; - protected $keyRouteNames = array(); - - - protected $keyRouteIds = array(); - - - protected $matchedRoute; - + /** + * @var array + */ + protected $keyRouteIds = []; - protected $matches; + /** + * @var RouteInterface|null + */ + protected $matchedRoute = null; + /** + * @var array + */ + protected $matches = []; + /** + * @var string|null + */ protected $module = null; - + /** + * @var string|null + */ protected $namespaceName = null; + /** + * @var array|string|null + */ + protected $notFoundPaths = null; - protected $notFoundPaths; - - - protected $params = array(); - - - protected $removeExtraSlashes; - + /** + * @var array + */ + protected $params = []; - protected $routes; + /** + * @var bool + */ + protected $removeExtraSlashes = false; + /** + * @var array + */ + protected $routes = []; + /** + * @var bool + */ protected $wasMatched = false; - - public function getKeyRouteNames() + /** + * @return array + */ + public function getKeyRouteNames(): array { } /** - * @param mixed $keyRouteNames + * @param array $keyRouteNames */ - public function setKeyRouteNames($keyRouteNames) + public function setKeyRouteNames(array $keyRouteNames) { } - - public function getKeyRouteIds() + /** + * @return array + */ + public function getKeyRouteIds(): array { } /** - * @param mixed $keyRouteIds + * @param array $keyRouteIds */ - public function setKeyRouteIds($keyRouteIds) + public function setKeyRouteIds(array $keyRouteIds) { } @@ -162,137 +210,139 @@ public function __construct(bool $defaultRoutes = true) * ); * ``` * - * @param string|array $paths = [ + * @param string $pattern + * @param string|array|null $paths = [ * 'module => '', * 'controller' => '', * 'action' => '', * 'namespace' => '' * ] - * @param string $pattern - * @param mixed $httpMethods - * @param mixed $position + * @param string|array|null $httpMethods + * @param int $position * * @return RouteInterface */ - public function add(string $pattern, $paths = null, $httpMethods = null, $position = Router::POSITION_LAST): RouteInterface + public function add(string $pattern, $paths = null, $httpMethods = null, int $position = Router::POSITION_LAST): RouteInterface { } /** * Adds a route to the router that only match if the HTTP method is CONNECT * - * @param string|array $paths = [ + * @param string $pattern + * @param string|array|null $paths = [ * 'module => '', * 'controller' => '', * 'action' => '', * 'namespace' => '' * ] - * @param string $pattern - * @param mixed $position + * @param int $position * * @return RouteInterface */ - public function addConnect(string $pattern, $paths = null, $position = Router::POSITION_LAST): RouteInterface + public function addConnect(string $pattern, $paths = null, int $position = Router::POSITION_LAST): RouteInterface { } /** * Adds a route to the router that only match if the HTTP method is DELETE * - * @param string|array $paths = [ + * @param string $param + * @param string|array|null $paths = [ * 'module => '', * 'controller' => '', * 'action' => '', * 'namespace' => '' * ] - * @param string $pattern - * @param mixed $position + * @param int $position * * @return RouteInterface + * @param string $pattern */ - public function addDelete(string $pattern, $paths = null, $position = Router::POSITION_LAST): RouteInterface + public function addDelete(string $pattern, $paths = null, int $position = Router::POSITION_LAST): RouteInterface { } /** * Adds a route to the router that only match if the HTTP method is GET * - * @param string|array $paths = [ + * @param string $param + * @param string|array|null $paths = [ * 'module => '', * 'controller' => '', * 'action' => '', * 'namespace' => '' * ] - * @param string $pattern - * @param mixed $position + * @param int $position * * @return RouteInterface + * @param string $pattern */ - public function addGet(string $pattern, $paths = null, $position = Router::POSITION_LAST): RouteInterface + public function addGet(string $pattern, $paths = null, int $position = Router::POSITION_LAST): RouteInterface { } /** * Adds a route to the router that only match if the HTTP method is HEAD * - * @param string|array $paths = [ + * @param string $pattern + * @param string|array|null $paths = [ * 'module => '', * 'controller' => '', * 'action' => '', * 'namespace' => '' * ] - * @param string $pattern - * @param mixed $position + * @param int $position * * @return RouteInterface */ - public function addHead(string $pattern, $paths = null, $position = Router::POSITION_LAST): RouteInterface + public function addHead(string $pattern, $paths = null, int $position = Router::POSITION_LAST): RouteInterface { } /** * Add a route to the router that only match if the HTTP method is OPTIONS * - * @param string|array $paths = [ + * @param string $pattern + * @param string|array|null $paths = [ * 'module => '', * 'controller' => '', * 'action' => '', * 'namespace' => '' * ] - * @param string $pattern - * @param mixed $position + * @param int $position * * @return RouteInterface */ - public function addOptions(string $pattern, $paths = null, $position = Router::POSITION_LAST): RouteInterface + public function addOptions(string $pattern, $paths = null, int $position = Router::POSITION_LAST): RouteInterface { } /** * Adds a route to the router that only match if the HTTP method is PATCH * - * @param string|array $paths = [ + * @param string $pattern + * @param string|array|null $paths = [ * 'module => '', * 'controller' => '', * 'action' => '', * 'namespace' => '' * ] - * @param string $pattern - * @param mixed $position + * @param int $position * * @return RouteInterface */ - public function addPatch(string $pattern, $paths = null, $position = Router::POSITION_LAST): RouteInterface + public function addPatch(string $pattern, $paths = null, int $position = Router::POSITION_LAST): RouteInterface { } /** * Adds a route to the router that only match if the HTTP method is POST * - * @param string|array $paths = [ + * @param string $pattern + * @param string|array|null $paths = [ * 'module => '', * 'controller' => '', * 'action' => '', * 'namespace' => '' * ] - * @param string $pattern - * @param mixed $position + * @param int $position * * @return RouteInterface */ - public function addPost(string $pattern, $paths = null, $position = Router::POSITION_LAST): RouteInterface + public function addPost(string $pattern, $paths = null, int $position = Router::POSITION_LAST): RouteInterface { } @@ -300,51 +350,51 @@ public function addPost(string $pattern, $paths = null, $position = Router::POSI * Adds a route to the router that only match if the HTTP method is PURGE * (Squid and Varnish support) * - * @param string|array $paths = [ + * @param string $pattern + * @param string|array|null $paths = [ * 'module => '', * 'controller' => '', * 'action' => '', * 'namespace' => '' * ] - * @param string $pattern - * @param mixed $position + * @param int $position * * @return RouteInterface */ - public function addPurge(string $pattern, $paths = null, $position = Router::POSITION_LAST): RouteInterface + public function addPurge(string $pattern, $paths = null, int $position = Router::POSITION_LAST): RouteInterface { } /** * Adds a route to the router that only match if the HTTP method is PUT * + * @param string $pattern * @param string|array $paths = [ * 'module => '', * 'controller' => '', * 'action' => '', * 'namespace' => '' * ] - * @param string $pattern - * @param mixed $position + * @param int $position * * @return RouteInterface */ - public function addPut(string $pattern, $paths = null, $position = Router::POSITION_LAST): RouteInterface + public function addPut(string $pattern, $paths = null, int $position = Router::POSITION_LAST): RouteInterface { } /** * Adds a route to the router that only match if the HTTP method is TRACE * - * @param string|array $paths = [ + * @param string $pattern + * @param string|array|null $paths = [ * 'module => '', * 'controller' => '', * 'action' => '', * 'namespace' => '' * ] - * @param string $pattern - * @param mixed $position + * @param int $position * * @return RouteInterface */ - public function addTrace(string $pattern, $paths = null, $position = Router::POSITION_LAST): RouteInterface + public function addTrace(string $pattern, $paths = null, int $position = Router::POSITION_LAST): RouteInterface { } @@ -367,11 +417,11 @@ public function addTrace(string $pattern, $paths = null, $position = Router::POS * ); * ``` * - * @param \Phalcon\Mvc\Router\RouteInterface $route - * @param mixed $position + * @param RouteInterface $route + * @param int $position * * @return RouterInterface */ - public function attach(\Phalcon\Mvc\Router\RouteInterface $route, $position = Router::POSITION_LAST): RouterInterface + public function attach(\Phalcon\Mvc\Router\RouteInterface $route, int $position = Router::POSITION_LAST): RouterInterface { } @@ -380,16 +430,16 @@ public function attach(\Phalcon\Mvc\Router\RouteInterface $route, $position = Ro * * @return void */ - public function clear() + public function clear(): void { } /** * Returns the internal event manager * - * @return ManagerInterface + * @return ManagerInterface|null */ - public function getEventsManager(): ManagerInterface + public function getEventsManager(): ?ManagerInterface { } @@ -459,8 +509,8 @@ public function getParams(): array /** * Returns a route object by its id * - * @param mixed $id - * @return bool|\Phalcon\Mvc\Router\RouteInterface + * @param mixed $id * + * @return RouteInterface|bool */ public function getRouteById($id) { @@ -469,8 +519,8 @@ public function getRouteById($id) /** * Returns a route object by its name * - * @param string $name - * @return bool|\Phalcon\Mvc\Router\RouteInterface + * @param string $name * + * @return RouteInterface|bool */ public function getRouteByName(string $name) { @@ -479,7 +529,7 @@ public function getRouteByName(string $name) /** * Returns all the routes defined in the router * - * @return array|\Phalcon\Mvc\Router\RouteInterface[] + * @return array */ public function getRoutes(): array { @@ -493,10 +543,10 @@ public function getRoutes(): array * $router->handle("/posts/edit/1"); * ``` * - * @param string $uri + * @param string $uri * * @return void */ - public function handle(string $uri) + public function handle(string $uri): void { } @@ -512,7 +562,7 @@ public function isExactControllerName(): bool /** * Mounts a group of routes in the router * - * @param \Phalcon\Mvc\Router\GroupInterface $group + * @param GroupInterface $group * * @return RouterInterface */ public function mount(\Phalcon\Mvc\Router\GroupInterface $group): RouterInterface @@ -523,7 +573,7 @@ public function mount(\Phalcon\Mvc\Router\GroupInterface $group): RouterInterfac * Set a group of paths to be returned when none of the defined routes are * matched * - * @param mixed $paths + * @param array|string|null $paths * * @return RouterInterface */ public function notFound($paths): RouterInterface @@ -533,7 +583,7 @@ public function notFound($paths): RouterInterface /** * Set whether router must remove the extra slashes in the handled routes * - * @param bool $remove + * @param bool $remove * * @return RouterInterface */ public function removeExtraSlashes(bool $remove): RouterInterface @@ -543,7 +593,7 @@ public function removeExtraSlashes(bool $remove): RouterInterface /** * Sets the default action name * - * @param string $actionName + * @param string $actionName * * @return RouterInterface */ public function setDefaultAction(string $actionName): RouterInterface @@ -553,7 +603,7 @@ public function setDefaultAction(string $actionName): RouterInterface /** * Sets the default controller name * - * @param string $controllerName + * @param string $controllerName * * @return RouterInterface */ public function setDefaultController(string $controllerName): RouterInterface @@ -563,7 +613,7 @@ public function setDefaultController(string $controllerName): RouterInterface /** * Sets the name of the default module * - * @param string $moduleName + * @param string $moduleName * * @return RouterInterface */ public function setDefaultModule(string $moduleName): RouterInterface @@ -573,8 +623,10 @@ public function setDefaultModule(string $moduleName): RouterInterface /** * Sets the name of the default namespace * - * @param string $namespaceName + * @parma string namespaceName + * * @return RouterInterface + * @param string $namespaceName */ public function setDefaultNamespace(string $namespaceName): RouterInterface { @@ -594,7 +646,7 @@ public function setDefaultNamespace(string $namespaceName): RouterInterface * ); * ``` * - * @param array $defaults + * @param array $defaults * * @return RouterInterface */ public function setDefaults(array $defaults): RouterInterface @@ -613,10 +665,10 @@ public function getDefaults(): array /** * Sets the events manager * - * @param \Phalcon\Events\ManagerInterface $eventsManager + * @param ManagerInterface $eventsManager * * @return void */ - public function setEventsManager(\Phalcon\Events\ManagerInterface $eventsManager) + public function setEventsManager(\Phalcon\Events\ManagerInterface $eventsManager): void { } @@ -628,4 +680,5 @@ public function setEventsManager(\Phalcon\Events\ManagerInterface $eventsManager public function wasMatched(): bool { } + } diff --git a/src/Phalcon/Mvc/Router/Annotations.php b/src/Mvc/Router/Annotations.zep.php similarity index 89% rename from src/Phalcon/Mvc/Router/Annotations.php rename to src/Mvc/Router/Annotations.zep.php index fdab5488..05451c6f 100644 --- a/src/Phalcon/Mvc/Router/Annotations.php +++ b/src/Mvc/Router/Annotations.zep.php @@ -9,7 +9,9 @@ */ namespace Phalcon\Mvc\Router; +use Phalcon\Di\DiInterface; use Phalcon\Mvc\Router; +use Phalcon\Annotations\Annotation; /** * Phalcon\Mvc\Router\Annotations @@ -35,20 +37,30 @@ */ class Annotations extends Router { - + /** + * @var string + */ protected $actionSuffix = 'Action'; + /** + * @var callable|string|null + */ + protected $actionPreformatCallback = null; - protected $actionPreformatCallback; - - + /** + * @var string + */ protected $controllerSuffix = 'Controller'; + /** + * @var array + */ + protected $handlers = []; - protected $handlers = array(); - - - protected $routePrefix; + /** + * @var string + */ + protected $routePrefix = ''; /** @@ -92,7 +104,7 @@ public function getResources(): array * @param string $uri * @return void */ - public function handle(string $uri) + public function handle(string $uri): void { } @@ -104,8 +116,9 @@ public function handle(string $uri) * @param string $controller * @param string $action * @param \Phalcon\Annotations\Annotation $annotation + * @return void */ - public function processActionAnnotation(string $module, string $namespaceName, string $controller, string $action, \Phalcon\Annotations\Annotation $annotation) + public function processActionAnnotation(string $module, string $namespaceName, string $controller, string $action, \Phalcon\Annotations\Annotation $annotation): void { } @@ -169,4 +182,5 @@ public function getActionPreformatCallback() public function setControllerSuffix(string $controllerSuffix) { } + } diff --git a/src/Phalcon/Mvc/Router/Exception.php b/src/Mvc/Router/Exception.zep.php similarity index 100% rename from src/Phalcon/Mvc/Router/Exception.php rename to src/Mvc/Router/Exception.zep.php diff --git a/src/Phalcon/Mvc/Router/Group.php b/src/Mvc/Router/Group.zep.php similarity index 90% rename from src/Phalcon/Mvc/Router/Group.php rename to src/Mvc/Router/Group.zep.php index f6b9b6d7..cfa5e07f 100644 --- a/src/Phalcon/Mvc/Router/Group.php +++ b/src/Mvc/Router/Group.zep.php @@ -59,26 +59,36 @@ */ class Group implements \Phalcon\Mvc\Router\GroupInterface { + /** + * @var callable|null + */ + protected $beforeMatch = null; - protected $beforeMatch; - - - protected $hostname; - - - protected $paths; - + /** + * @var string|null + */ + protected $hostname = null; - protected $prefix; + /** + * @var array|string|null + */ + protected $paths = null; + /** + * @var string|null + */ + protected $prefix = null; - protected $routes = array(); + /** + * @var array + */ + protected $routes = []; /** * Phalcon\Mvc\Router\Group constructor * - * @param mixed $paths + * @param array|string $paths */ public function __construct($paths = null) { @@ -91,15 +101,18 @@ public function __construct($paths = null) * $router->add("/about", "About::index"); * ``` * + * @param string $pattenr * @param string|array $paths = [ * 'module => '', * 'controller' => '', * 'action' => '', * 'namespace' => '' * ] + * @param httpMethods $array |string|null + * + * @return RouteInterface * @param string $pattern * @param mixed $httpMethods - * @return RouteInterface */ public function add(string $pattern, $paths = null, $httpMethods = null): RouteInterface { @@ -108,13 +121,14 @@ public function add(string $pattern, $paths = null, $httpMethods = null): RouteI /** * Adds a route to the router that only match if the HTTP method is CONNECT * + * @param string $pattern * @param string|array $paths = [ * 'module => '', * 'controller' => '', * 'action' => '', * 'namespace' => '' * ] - * @param string $pattern + * * @return RouteInterface */ public function addConnect(string $pattern, $paths = null): RouteInterface @@ -124,13 +138,14 @@ public function addConnect(string $pattern, $paths = null): RouteInterface /** * Adds a route to the router that only match if the HTTP method is DELETE * + * @param string $pattern * @param string|array $paths = [ * 'module => '', * 'controller' => '', * 'action' => '', * 'namespace' => '' * ] - * @param string $pattern + * * @return RouteInterface */ public function addDelete(string $pattern, $paths = null): RouteInterface @@ -140,13 +155,14 @@ public function addDelete(string $pattern, $paths = null): RouteInterface /** * Adds a route to the router that only match if the HTTP method is GET * + * @param string $pattern * @param string|array $paths = [ * 'module => '', * 'controller' => '', * 'action' => '', * 'namespace' => '' * ] - * @param string $pattern + * * @return RouteInterface */ public function addGet(string $pattern, $paths = null): RouteInterface @@ -156,13 +172,14 @@ public function addGet(string $pattern, $paths = null): RouteInterface /** * Adds a route to the router that only match if the HTTP method is HEAD * + * @param string $pattern * @param string|array $paths = [ * 'module => '', * 'controller' => '', * 'action' => '', * 'namespace' => '' * ] - * @param string $pattern + * * @return RouteInterface */ public function addHead(string $pattern, $paths = null): RouteInterface @@ -172,13 +189,14 @@ public function addHead(string $pattern, $paths = null): RouteInterface /** * Add a route to the router that only match if the HTTP method is OPTIONS * + * @param string $pattern * @param string|array $paths = [ * 'module => '', * 'controller' => '', * 'action' => '', * 'namespace' => '' * ] - * @param string $pattern + * * @return RouteInterface */ public function addOptions(string $pattern, $paths = null): RouteInterface @@ -188,13 +206,14 @@ public function addOptions(string $pattern, $paths = null): RouteInterface /** * Adds a route to the router that only match if the HTTP method is PATCH * + * @param string $pattern * @param string|array $paths = [ * 'module => '', * 'controller' => '', * 'action' => '', * 'namespace' => '' * ] - * @param string $pattern + * * @return RouteInterface */ public function addPatch(string $pattern, $paths = null): RouteInterface @@ -204,13 +223,14 @@ public function addPatch(string $pattern, $paths = null): RouteInterface /** * Adds a route to the router that only match if the HTTP method is POST * + * @param string $pattern * @param string|array $paths = [ * 'module => '', * 'controller' => '', * 'action' => '', * 'namespace' => '' * ] - * @param string $pattern + * * @return RouteInterface */ public function addPost(string $pattern, $paths = null): RouteInterface @@ -220,13 +240,14 @@ public function addPost(string $pattern, $paths = null): RouteInterface /** * Adds a route to the router that only match if the HTTP method is PURGE * + * @param string $pattern * @param string|array $paths = [ * 'module => '', * 'controller' => '', * 'action' => '', * 'namespace' => '' * ] - * @param string $pattern + * * @return RouteInterface */ public function addPurge(string $pattern, $paths = null): RouteInterface @@ -236,13 +257,14 @@ public function addPurge(string $pattern, $paths = null): RouteInterface /** * Adds a route to the router that only match if the HTTP method is PUT * + * @param string $pattern * @param string|array $paths = [ * 'module => '', * 'controller' => '', * 'action' => '', * 'namespace' => '' * ] - * @param string $pattern + * * @return RouteInterface */ public function addPut(string $pattern, $paths = null): RouteInterface @@ -252,13 +274,14 @@ public function addPut(string $pattern, $paths = null): RouteInterface /** * Adds a route to the router that only match if the HTTP method is TRACE * + * @param string $pattern * @param string|array $paths = [ * 'module => '', * 'controller' => '', * 'action' => '', * 'namespace' => '' * ] - * @param string $pattern + * * @return RouteInterface */ public function addTrace(string $pattern, $paths = null): RouteInterface @@ -270,8 +293,10 @@ public function addTrace(string $pattern, $paths = null): RouteInterface * The developer can implement any arbitrary conditions here * If the callback returns false the route is treated as not matched * - * @param callable $beforeMatch + * @paramm callable beforeMatch + * * @return GroupInterface + * @param callable $beforeMatch */ public function beforeMatch($beforeMatch): GroupInterface { @@ -282,7 +307,7 @@ public function beforeMatch($beforeMatch): GroupInterface * * @return void */ - public function clear() + public function clear(): void { } @@ -334,7 +359,7 @@ public function getRoutes(): array /** * Set a hostname restriction for all the routes in the group * - * @param string $hostname + * @param string $hostname * * @return GroupInterface */ public function setHostname(string $hostname): GroupInterface @@ -344,7 +369,7 @@ public function setHostname(string $hostname): GroupInterface /** * Set common paths for all the routes in the group * - * @param mixed $paths + * @param array|string $paths * * @return GroupInterface */ public function setPaths($paths): GroupInterface @@ -354,7 +379,7 @@ public function setPaths($paths): GroupInterface /** * Set a common uri prefix for all the routes in this group * - * @param string $prefix + * @param string $prefix * * @return GroupInterface */ public function setPrefix(string $prefix): GroupInterface @@ -364,17 +389,18 @@ public function setPrefix(string $prefix): GroupInterface /** * Adds a route applying the common attributes * - * @param string|array $paths = [ + * @param string $pattern + * @param string|array|null $paths = [ * 'module => '', * 'controller' => '', * 'action' => '', * 'namespace' => '' * ] - * @param string $pattern - * @param mixed $httpMethods + * @param array|string|null $httpMethods * * @return RouteInterface */ protected function addRoute(string $pattern, $paths = null, $httpMethods = null): RouteInterface { } + } diff --git a/src/Phalcon/Mvc/Router/GroupInterface.php b/src/Mvc/Router/GroupInterface.zep.php similarity index 91% rename from src/Phalcon/Mvc/Router/GroupInterface.php rename to src/Mvc/Router/GroupInterface.zep.php index 2ed4c526..7e0ad563 100644 --- a/src/Phalcon/Mvc/Router/GroupInterface.php +++ b/src/Mvc/Router/GroupInterface.zep.php @@ -66,8 +66,8 @@ interface GroupInterface * ``` * * @param string $pattern - * @param mixed $paths - * @param mixed $httpMethods + * @param array|string|null $paths + * @param array|string|null $httpMethods * * @return RouteInterface */ public function add(string $pattern, $paths = null, $httpMethods = null): RouteInterface; @@ -76,7 +76,7 @@ public function add(string $pattern, $paths = null, $httpMethods = null): RouteI * Adds a route to the router that only match if the HTTP method is CONNECT * * @param string $pattern - * @param mixed $paths + * @param array|string|null $paths * * @return RouteInterface */ public function addConnect(string $pattern, $paths = null): RouteInterface; @@ -85,7 +85,7 @@ public function addConnect(string $pattern, $paths = null): RouteInterface; * Adds a route to the router that only match if the HTTP method is DELETE * * @param string $pattern - * @param mixed $paths + * @param array|string|null $paths * * @return RouteInterface */ public function addDelete(string $pattern, $paths = null): RouteInterface; @@ -94,7 +94,7 @@ public function addDelete(string $pattern, $paths = null): RouteInterface; * Adds a route to the router that only match if the HTTP method is GET * * @param string $pattern - * @param mixed $paths + * @param array|string|null $paths * * @return RouteInterface */ public function addGet(string $pattern, $paths = null): RouteInterface; @@ -103,7 +103,7 @@ public function addGet(string $pattern, $paths = null): RouteInterface; * Adds a route to the router that only match if the HTTP method is HEAD * * @param string $pattern - * @param mixed $paths + * @param array|string|null $paths * * @return RouteInterface */ public function addHead(string $pattern, $paths = null): RouteInterface; @@ -112,7 +112,7 @@ public function addHead(string $pattern, $paths = null): RouteInterface; * Add a route to the router that only match if the HTTP method is OPTIONS * * @param string $pattern - * @param mixed $paths + * @param array|string|null $paths * * @return RouteInterface */ public function addOptions(string $pattern, $paths = null): RouteInterface; @@ -121,7 +121,7 @@ public function addOptions(string $pattern, $paths = null): RouteInterface; * Adds a route to the router that only match if the HTTP method is PATCH * * @param string $pattern - * @param mixed $paths + * @param array|string|null $paths * * @return RouteInterface */ public function addPatch(string $pattern, $paths = null): RouteInterface; @@ -130,7 +130,7 @@ public function addPatch(string $pattern, $paths = null): RouteInterface; * Adds a route to the router that only match if the HTTP method is POST * * @param string $pattern - * @param mixed $paths + * @param array|string|null $paths * * @return RouteInterface */ public function addPost(string $pattern, $paths = null): RouteInterface; @@ -139,7 +139,7 @@ public function addPost(string $pattern, $paths = null): RouteInterface; * Adds a route to the router that only match if the HTTP method is PURGE * * @param string $pattern - * @param mixed $paths + * @param array|string|null $paths * * @return RouteInterface */ public function addPurge(string $pattern, $paths = null): RouteInterface; @@ -148,7 +148,7 @@ public function addPurge(string $pattern, $paths = null): RouteInterface; * Adds a route to the router that only match if the HTTP method is PUT * * @param string $pattern - * @param mixed $paths + * @param array|string|null $paths * * @return RouteInterface */ public function addPut(string $pattern, $paths = null): RouteInterface; @@ -157,7 +157,7 @@ public function addPut(string $pattern, $paths = null): RouteInterface; * Adds a route to the router that only match if the HTTP method is TRACE * * @param string $pattern - * @param mixed $paths + * @param array|string|null $paths * * @return RouteInterface */ public function addTrace(string $pattern, $paths = null): RouteInterface; @@ -177,7 +177,7 @@ public function beforeMatch($beforeMatch): GroupInterface; * * @return void */ - public function clear(); + public function clear(): void; /** * Returns the 'before match' callback if any @@ -237,4 +237,5 @@ public function setPaths($paths): GroupInterface; * @return GroupInterface */ public function setPrefix(string $prefix): GroupInterface; + } diff --git a/src/Phalcon/Mvc/Router/Route.php b/src/Mvc/Router/Route.zep.php similarity index 86% rename from src/Phalcon/Mvc/Router/Route.php rename to src/Mvc/Router/Route.zep.php index 287f343a..42f83df8 100644 --- a/src/Phalcon/Mvc/Router/Route.php +++ b/src/Mvc/Router/Route.zep.php @@ -16,45 +16,71 @@ */ class Route implements \Phalcon\Mvc\Router\RouteInterface { + /** + * @var callable|null + */ + protected $beforeMatch = null; - protected $beforeMatch; - - - protected $compiledPattern; - - - protected $converters; - - - protected $group; - - - protected $hostname; - - - protected $id; - + /** + * @var string|null + */ + protected $compiledPattern = null; - protected $methods; + /** + * @var array + */ + protected $converters = []; + /** + * @var GroupInterface|null + */ + protected $group = null; - protected $match; + /** + * @var string|null + */ + protected $hostname = null; + /** + * @var string|null + */ + protected $id = null; - protected $name; + /** + * @var array|string + */ + protected $methods = []; + /** + * @var callable|null + */ + protected $match = null; - protected $paths; + /** + * @var string|null + */ + protected $name = null; + /** + * @var array + */ + protected $paths = []; + /** + * @var string + */ protected $pattern; - - protected static $uniqueId = 0; - + /** + * @var int + */ + static protected $uniqueId = 0; - public function getId() + /** + * @return string|null + */ + public function getId(): ?string { } @@ -93,7 +119,7 @@ public function __construct(string $pattern, $paths = null, $httpMethods = null) * ); * ``` * - * @param mixed $callback + * @param callable $callback * @return RouteInterface */ public function beforeMatch($callback): RouteInterface @@ -277,7 +303,7 @@ public function match($callback): RouteInterface * @param mixed $paths * @return void */ - public function reConfigure(string $pattern, $paths = null) + public function reConfigure(string $pattern, $paths = null): void { } @@ -286,7 +312,7 @@ public function reConfigure(string $pattern, $paths = null) * * @return void */ - public static function reset() + public static function reset(): void { } @@ -374,4 +400,5 @@ public function setName(string $name): RouteInterface public function via($httpMethods): RouteInterface { } + } diff --git a/src/Phalcon/Mvc/Router/RouteInterface.php b/src/Mvc/Router/RouteInterface.zep.php similarity index 96% rename from src/Phalcon/Mvc/Router/RouteInterface.php rename to src/Mvc/Router/RouteInterface.zep.php index 830cf72e..bde6e6ca 100644 --- a/src/Phalcon/Mvc/Router/RouteInterface.php +++ b/src/Mvc/Router/RouteInterface.zep.php @@ -121,14 +121,14 @@ public function setName(string $name): RouteInterface; * @param mixed $paths * @return void */ - public function reConfigure(string $pattern, $paths = null); + public function reConfigure(string $pattern, $paths = null): void; /** * Resets the internal route id generator * * @return void */ - public static function reset(); + public static function reset(): void; /** * Set one or more HTTP methods that constraint the matching of the route @@ -137,4 +137,5 @@ public static function reset(); * @return RouteInterface */ public function via($httpMethods): RouteInterface; + } diff --git a/src/Phalcon/Mvc/RouterInterface.php b/src/Mvc/RouterInterface.zep.php similarity index 88% rename from src/Phalcon/Mvc/RouterInterface.php rename to src/Mvc/RouterInterface.zep.php index 336dd512..8b5a2bd8 100644 --- a/src/Phalcon/Mvc/RouterInterface.php +++ b/src/Mvc/RouterInterface.zep.php @@ -10,6 +10,7 @@ namespace Phalcon\Mvc; use Phalcon\Mvc\Router\RouteInterface; +use Phalcon\Mvc\Router\GroupInterface; /** * Interface for Phalcon\Mvc\Router @@ -21,8 +22,8 @@ interface RouterInterface * Adds a route to the router on any HTTP method * * @param string $pattern - * @param mixed $paths - * @param mixed $httpMethods + * @param array|string|null $paths + * @param array|string|null $httpMethods * * @return RouteInterface */ public function add(string $pattern, $paths = null, $httpMethods = null): RouteInterface; @@ -30,17 +31,17 @@ public function add(string $pattern, $paths = null, $httpMethods = null): RouteI /** * Attach Route object to the routes stack. * - * @param \Phalcon\Mvc\Router\RouteInterface $route - * @param mixed $position + * @param RouteInterface $route + * @param int $position * * @return RouterInterface */ - public function attach(\Phalcon\Mvc\Router\RouteInterface $route, $position = Router::POSITION_LAST): RouterInterface; + public function attach(\Phalcon\Mvc\Router\RouteInterface $route, int $position = Router::POSITION_LAST): RouterInterface; /** * Adds a route to the router that only match if the HTTP method is CONNECT * * @param string $pattern - * @param mixed $paths + * @param array|string|null $paths * * @return RouteInterface */ public function addConnect(string $pattern, $paths = null): RouteInterface; @@ -49,7 +50,7 @@ public function addConnect(string $pattern, $paths = null): RouteInterface; * Adds a route to the router that only match if the HTTP method is DELETE * * @param string $pattern - * @param mixed $paths + * @param array|string|null $paths * * @return RouteInterface */ public function addDelete(string $pattern, $paths = null): RouteInterface; @@ -58,7 +59,7 @@ public function addDelete(string $pattern, $paths = null): RouteInterface; * Adds a route to the router that only match if the HTTP method is HEAD * * @param string $pattern - * @param mixed $paths + * @param array|string|null $paths * * @return RouteInterface */ public function addHead(string $pattern, $paths = null): RouteInterface; @@ -67,7 +68,7 @@ public function addHead(string $pattern, $paths = null): RouteInterface; * Adds a route to the router that only match if the HTTP method is GET * * @param string $pattern - * @param mixed $paths + * @param array|string|null $paths * * @return RouteInterface */ public function addGet(string $pattern, $paths = null): RouteInterface; @@ -76,7 +77,7 @@ public function addGet(string $pattern, $paths = null): RouteInterface; * Add a route to the router that only match if the HTTP method is OPTIONS * * @param string $pattern - * @param mixed $paths + * @param array|string|null $paths * * @return RouteInterface */ public function addOptions(string $pattern, $paths = null): RouteInterface; @@ -85,7 +86,7 @@ public function addOptions(string $pattern, $paths = null): RouteInterface; * Adds a route to the router that only match if the HTTP method is PATCH * * @param string $pattern - * @param mixed $paths + * @param array|string|null $paths * * @return RouteInterface */ public function addPatch(string $pattern, $paths = null): RouteInterface; @@ -94,7 +95,7 @@ public function addPatch(string $pattern, $paths = null): RouteInterface; * Adds a route to the router that only match if the HTTP method is POST * * @param string $pattern - * @param mixed $paths + * @param array|string|null $paths * * @return RouteInterface */ public function addPost(string $pattern, $paths = null): RouteInterface; @@ -104,7 +105,7 @@ public function addPost(string $pattern, $paths = null): RouteInterface; * (Squid and Varnish support) * * @param string $pattern - * @param mixed $paths + * @param array|string|null $paths * * @return RouteInterface */ public function addPurge(string $pattern, $paths = null): RouteInterface; @@ -113,7 +114,7 @@ public function addPurge(string $pattern, $paths = null): RouteInterface; * Adds a route to the router that only match if the HTTP method is PUT * * @param string $pattern - * @param mixed $paths + * @param array|string|null $paths * * @return RouteInterface */ public function addPut(string $pattern, $paths = null): RouteInterface; @@ -122,7 +123,7 @@ public function addPut(string $pattern, $paths = null): RouteInterface; * Adds a route to the router that only match if the HTTP method is TRACE * * @param string $pattern - * @param mixed $paths + * @param array|string|null $paths * * @return RouteInterface */ public function addTrace(string $pattern, $paths = null): RouteInterface; @@ -132,7 +133,7 @@ public function addTrace(string $pattern, $paths = null): RouteInterface; * * @return void */ - public function clear(); + public function clear(): void; /** * Returns processed action name @@ -193,16 +194,16 @@ public function getRoutes(): array; /** * Returns a route object by its id * + * @return RouteInterface|bool * @param mixed $id - * @return bool|\Phalcon\Mvc\Router\RouteInterface */ public function getRouteById($id); /** * Returns a route object by its name * + * @return RouteInterface|bool * @param string $name - * @return bool|\Phalcon\Mvc\Router\RouteInterface */ public function getRouteByName(string $name); @@ -212,7 +213,7 @@ public function getRouteByName(string $name); * @param string $uri * @return void */ - public function handle(string $uri); + public function handle(string $uri): void; /** * Mounts a group of routes in the router @@ -260,4 +261,5 @@ public function setDefaults(array $defaults): RouterInterface; * @return bool */ public function wasMatched(): bool; + } diff --git a/src/Phalcon/Mvc/View.php b/src/Mvc/View.zep.php similarity index 88% rename from src/Phalcon/Mvc/View.php rename to src/Mvc/View.zep.php index 01421d6a..bfc2d7d9 100644 --- a/src/Phalcon/Mvc/View.php +++ b/src/Mvc/View.zep.php @@ -9,8 +9,15 @@ */ namespace Phalcon\Mvc; +use Closure; +use Phalcon\Di\DiInterface; use Phalcon\Di\Injectable; use Phalcon\Events\ManagerInterface; +use Phalcon\Helper\Arr; +use Phalcon\Helper\Str; +use Phalcon\Mvc\View\Exception; +use Phalcon\Events\EventsAwareInterface; +use Phalcon\Mvc\View\Engine\Php as PhpEngine; /** * Phalcon\Mvc\View @@ -70,88 +77,140 @@ class View extends Injectable implements \Phalcon\Mvc\ViewInterface, \Phalcon\Ev */ const LEVEL_AFTER_TEMPLATE = 4; - + /** + * @var string + */ protected $actionName; - + /** + * @var array + */ protected $activeRenderPaths; - + /** + * @var string + */ protected $basePath = ''; - + /** + * @var string + */ protected $content = ''; - + /** + * @var string + */ protected $controllerName; - + /** + * @var int + */ protected $currentRenderLevel = 0; - + /** + * @var bool + */ protected $disabled = false; + /** + * @var array + */ + protected $disabledLevels = []; - protected $disabledLevels; - - + /** + * @var array|bool + */ protected $engines = false; - + /** + * @var ManagerInterface|null + */ protected $eventsManager; + /** + * @var string|null + */ + protected $layout = null; - protected $layout; - - + /** + * @var string + */ protected $layoutsDir = ''; - + /** + * @var string + */ protected $mainView = 'index'; + /** + * @var array + */ + protected $options = []; - protected $options = array(); - - - protected $params; - + /** + * @var array + */ + protected $params = []; + /** + * @var array|null + */ protected $pickView; - + /** + * @var string + */ protected $partialsDir = ''; + /** + * @var array + */ + protected $registeredEngines = []; - protected $registeredEngines = array(); - - + /** + * @var int + */ protected $renderLevel = 5; + /** + * @var array + */ + protected $templatesAfter = []; - protected $templatesAfter = array(); - - - protected $templatesBefore = array(); - - - protected $viewsDirs = array(); - + /** + * @var array + */ + protected $templatesBefore = []; - protected $viewParams = array(); + /** + * @var array + */ + protected $viewsDirs = []; + /** + * @var array + */ + protected $viewParams = []; - public function getCurrentRenderLevel() + /** + * @return int + */ + public function getCurrentRenderLevel(): int { } - - public function getRegisteredEngines() + /** + * @return array + */ + public function getRegisteredEngines(): array { } - - public function getRenderLevel() + /** + * @return int + */ + public function getRenderLevel(): int { } @@ -160,7 +219,7 @@ public function getRenderLevel() * * @param array $options */ - public function __construct(array $options = array()) + public function __construct(array $options = []) { } @@ -326,7 +385,7 @@ public function getControllerName(): string /** * Returns the internal event manager * - * @return \Phalcon\Events\ManagerInterface|null + * @return ManagerInterface|null */ public function getEventsManager(): ?ManagerInterface { @@ -422,7 +481,7 @@ public function getPartialsDir(): string * @param array $params * @return string */ - public function getRender(string $controllerName, string $actionName, array $params = array(), $configCallback = null): string + public function getRender(string $controllerName, string $actionName, array $params = [], $configCallback = null): string { } @@ -543,9 +602,9 @@ public function registerEngines(array $engines): View * @param string $controllerName * @param string $actionName * @param array $params - * @return bool|View + * @return 0|View */ - public function render(string $controllerName, string $actionName, array $params = array()) + public function render(string $controllerName, string $actionName, array $params = []) { } @@ -593,7 +652,7 @@ public function setContent(string $content): View * @param \Phalcon\Events\ManagerInterface $eventsManager * @return void */ - public function setEventsManager(\Phalcon\Events\ManagerInterface $eventsManager) + public function setEventsManager(\Phalcon\Events\ManagerInterface $eventsManager): void { } @@ -774,7 +833,7 @@ public function start(): View * @param array $params * @return string */ - public function toString(string $controllerName, string $actionName, array $params = array()): string + public function toString(string $controllerName, string $actionName, array $params = []): string { } @@ -818,7 +877,8 @@ protected function loadTemplateEngines(): array * @param bool $fireEvents * @return bool */ - public function processRender(string $controllerName, string $actionName, array $params = array(), bool $fireEvents = true): bool + public function processRender(string $controllerName, string $actionName, array $params = [], bool $fireEvents = true): bool { } + } diff --git a/src/Phalcon/Mvc/View/Engine/AbstractEngine.php b/src/Mvc/View/Engine/AbstractEngine.zep.php similarity index 87% rename from src/Phalcon/Mvc/View/Engine/AbstractEngine.php rename to src/Mvc/View/Engine/AbstractEngine.zep.php index 007c9c85..84c8c2f3 100644 --- a/src/Phalcon/Mvc/View/Engine/AbstractEngine.php +++ b/src/Mvc/View/Engine/AbstractEngine.zep.php @@ -9,6 +9,7 @@ */ namespace Phalcon\Mvc\View\Engine; +use Phalcon\Di\DiInterface; use Phalcon\Di\Injectable; use Phalcon\Mvc\ViewBaseInterface; @@ -18,15 +19,17 @@ */ abstract class AbstractEngine extends Injectable implements \Phalcon\Mvc\View\Engine\EngineInterface { - + /** + * @var ViewBaseInterface + */ protected $view; /** * Phalcon\Mvc\View\Engine constructor * - * @param \Phalcon\Mvc\ViewBaseInterface $view - * @param \Phalcon\Di\DiInterface $container + * @param ViewBaseInterface $view + * @param DiInterface|null $container */ public function __construct(\Phalcon\Mvc\ViewBaseInterface $view, \Phalcon\Di\DiInterface $container = null) { @@ -53,11 +56,12 @@ public function getView(): ViewBaseInterface /** * Renders a partial inside another view * - * @param array $params * @param string $partialPath + * @param mixed|null $params * * @return void */ - public function partial(string $partialPath, $params = null) + public function partial(string $partialPath, $params = null): void { } + } diff --git a/src/Phalcon/Mvc/View/Engine/EngineInterface.php b/src/Mvc/View/Engine/EngineInterface.zep.php similarity index 94% rename from src/Phalcon/Mvc/View/Engine/EngineInterface.php rename to src/Mvc/View/Engine/EngineInterface.zep.php index 78012e02..4a2f99fe 100644 --- a/src/Phalcon/Mvc/View/Engine/EngineInterface.php +++ b/src/Mvc/View/Engine/EngineInterface.zep.php @@ -29,14 +29,17 @@ public function getContent(): string; * @param mixed $params * @return void */ - public function partial(string $partialPath, $params = null); + public function partial(string $partialPath, $params = null): void; /** * Renders a view using the template engine * + * TODO: Change params to array type + * * @param string $path * @param mixed $params * @param bool $mustClean */ public function render(string $path, $params, bool $mustClean = false); + } diff --git a/src/Phalcon/Mvc/View/Engine/Php.php b/src/Mvc/View/Engine/Php.zep.php similarity index 99% rename from src/Phalcon/Mvc/View/Engine/Php.php rename to src/Mvc/View/Engine/Php.zep.php index 35138e3f..a8b2ac61 100644 --- a/src/Phalcon/Mvc/View/Engine/Php.php +++ b/src/Mvc/View/Engine/Php.zep.php @@ -25,4 +25,5 @@ class Php extends \Phalcon\Mvc\View\Engine\AbstractEngine public function render(string $path, $params, bool $mustClean = false) { } + } diff --git a/src/Phalcon/Mvc/View/Engine/Volt.php b/src/Mvc/View/Engine/Volt.zep.php similarity index 75% rename from src/Phalcon/Mvc/View/Engine/Volt.php rename to src/Mvc/View/Engine/Volt.zep.php index c2a9cfdb..38a538be 100644 --- a/src/Phalcon/Mvc/View/Engine/Volt.php +++ b/src/Mvc/View/Engine/Volt.zep.php @@ -9,45 +9,59 @@ */ namespace Phalcon\Mvc\View\Engine; +use Phalcon\Di\DiInterface; +use Phalcon\Events\EventsAwareInterface; use Phalcon\Events\ManagerInterface; use Phalcon\Mvc\View\Engine\Volt\Compiler; +use Phalcon\Mvc\View\Exception; /** * Designer friendly and fast template engine for PHP written in Zephir/C */ class Volt extends \Phalcon\Mvc\View\Engine\AbstractEngine implements \Phalcon\Events\EventsAwareInterface { - + /** + * @var Compiler + */ protected $compiler; - + /** + * @var ManagerInterface|null + */ protected $eventsManager; + /** + * @var array + */ + protected $macros = []; - protected $macros; - - - protected $options; + /** + * @var array + */ + protected $options = []; /** * Checks if a macro is defined and calls it * + * @params string name + * @params array arguments + * + * @return mixed * @param string $name * @param array $arguments - * @return mixed */ - public function callMacro(string $name, array $arguments = array()) + public function callMacro(string $name, array $arguments = []) { } /** * Performs a string conversion * + * @return string * @param string $text * @param string $from * @param string $to - * @return string */ public function convertEncoding(string $text, string $from, string $to): string { @@ -65,7 +79,7 @@ public function getCompiler(): Compiler /** * Returns the internal event manager * - * @return \Phalcon\Events\ManagerInterface|null + * @return ManagerInterface|null */ public function getEventsManager(): ?ManagerInterface { @@ -84,7 +98,7 @@ public function getOptions(): array * Checks if the needle is included in the haystack * * @param mixed $needle - * @param mixed $haystack + * @param array|string $haystack * * @return bool */ public function isIncluded($needle, $haystack): bool @@ -94,7 +108,7 @@ public function isIncluded($needle, $haystack): bool /** * Length filter. If an array/object is passed a count is performed otherwise a strlen/mb_strlen * - * @param mixed $item + * @param mixed $item * * @return int */ public function length($item): int @@ -104,28 +118,32 @@ public function length($item): int /** * Renders a view using the template engine * - * @param string $templatePath + * @param string $path * @param mixed $params + * @params bool mustClean + * + * @return void * @param bool $mustClean */ - public function render(string $templatePath, $params, bool $mustClean = false) + public function render(string $path, $params, bool $mustClean = false) { } /** * Sets the events manager * - * @param \Phalcon\Events\ManagerInterface $eventsManager + * @param ManagerInterface $eventsManager * * @return void */ - public function setEventsManager(\Phalcon\Events\ManagerInterface $eventsManager) + public function setEventsManager(\Phalcon\Events\ManagerInterface $eventsManager): void { } /** * Set Volt's options * - * @param array $options + * @param array $options * + * @return void */ public function setOptions(array $options) { @@ -151,4 +169,5 @@ public function slice($value, int $start = 0, $end = null) public function sort(array $value): array { } + } diff --git a/src/Phalcon/Mvc/View/Engine/Volt/Compiler.php b/src/Mvc/View/Engine/Volt/Compiler.zep.php similarity index 78% rename from src/Phalcon/Mvc/View/Engine/Volt/Compiler.php rename to src/Mvc/View/Engine/Volt/Compiler.zep.php index 520e8fd2..0e642c45 100644 --- a/src/Phalcon/Mvc/View/Engine/Volt/Compiler.php +++ b/src/Mvc/View/Engine/Volt/Compiler.zep.php @@ -9,7 +9,10 @@ */ namespace Phalcon\Mvc\View\Engine\Volt; +use Closure; use Phalcon\Di\DiInterface; +use Phalcon\Mvc\ViewBaseInterface; +use Phalcon\Di\InjectionAwareInterface; /** * This class reads and compiles Volt templates into PHP plain code @@ -24,74 +27,120 @@ */ class Compiler implements \Phalcon\Di\InjectionAwareInterface { - + /** + * @var bool + */ protected $autoescape = false; - + /** + * @var int + */ protected $blockLevel = 0; - + /** + * @var array|null + * + * TODO: Make array only? + */ protected $blocks; + /** + * @var DiInterface|null + */ + protected $container = null; - protected $container; - - + /** + * @var string|null + */ protected $compiledTemplatePath; + /** + * @var string|null + */ + protected $currentBlock = null; - protected $currentBlock; - - - protected $currentPath; - + /** + * @var string|null + */ + protected $currentPath = null; + /** + * @var int + */ protected $exprLevel = 0; - + /** + * @var bool + */ protected $extended = false; + /** + * @var array + */ + protected $extensions = []; - protected $extensions; - - + /** + * @var array|bool + * + * TODO: Make it always array + */ protected $extendedBlocks; + /** + * @var array + */ + protected $filters = []; - protected $filters; - - + /** + * @var int + */ protected $foreachLevel = 0; + /** + * @var array + */ + protected $forElsePointers = []; - protected $forElsePointers; - - - protected $functions; - + /** + * @var array + */ + protected $functions = []; + /** + * @var int + */ protected $level = 0; + /** + * @var array + */ + protected $loopPointers = []; - protected $loopPointers; - - - protected $macros; - - - protected $options; - + /** + * @var array + */ + protected $macros = []; - protected $prefix; + /** + * @var array + */ + protected $options = []; + /** + * @var string + */ + protected $prefix = ''; + /** + * @var ViewBaseInterface|null + */ protected $view; /** * Phalcon\Mvc\View\Engine\Volt\Compiler * - * @param \Phalcon\Mvc\ViewBaseInterface $view + * @param ViewBaseInterface|null $view */ public function __construct(\Phalcon\Mvc\ViewBaseInterface $view = null) { @@ -100,7 +149,7 @@ public function __construct(\Phalcon\Mvc\ViewBaseInterface $view = null) /** * Registers a Volt's extension * - * @param mixed $extension + * @param mixed $extension * * @return Compiler */ public function addExtension($extension): Compiler @@ -111,7 +160,7 @@ public function addExtension($extension): Compiler * Register a new filter in the compiler * * @param string $name - * @param mixed $definition + * @param mixed $definition * * @return Compiler */ public function addFilter(string $name, $definition): Compiler @@ -122,7 +171,7 @@ public function addFilter(string $name, $definition): Compiler * Register a new function in the compiler * * @param string $name - * @param mixed $definition + * @param mixed $definition * * @return Compiler */ public function addFunction(string $name, $definition): Compiler @@ -132,7 +181,7 @@ public function addFunction(string $name, $definition): Compiler /** * Resolves attribute reading * - * @param array $expr + * @param array $expr * * @return string */ public function attributeReader(array $expr): string @@ -150,7 +199,9 @@ public function attributeReader(array $expr): string * ``` * * @param string $templatePath - * @param bool $extendsMode + * @param bool $extendsMode * + * @throws \Phalcon\Mvc\View\Engine\Volt\Exception + * @return mixed */ public function compile(string $templatePath, bool $extendsMode = false) { @@ -160,26 +211,13 @@ public function compile(string $templatePath, bool $extendsMode = false) * Compiles a "autoescape" statement returning PHP code * * @param array $statement - * @param bool $extendsMode + * @param bool $extendsMode * * @return string */ public function compileAutoEscape(array $statement, bool $extendsMode): string { } - /** - * Compiles a "cache" statement returning PHP code - * - * @deprecated Will be removed in 5.0 - * @todo Remove this in the next major version - * @param array $statement - * @param bool $extendsMode - * @return string - */ - public function compileCache(array $statement, bool $extendsMode = false): string - { - } - /** * Compiles calls to macros * @@ -194,7 +232,7 @@ public function compileCall(array $statement, bool $extendsMode) * Compiles a "case"/"default" clause returning PHP code * * @param array $statement - * @param bool $caseClause + * @param bool $caseClause * * @return string */ public function compileCase(array $statement, bool $caseClause = true): string @@ -204,7 +242,7 @@ public function compileCase(array $statement, bool $caseClause = true): string /** * Compiles a "do" statement returning PHP code * - * @param array $statement + * @param array $statement * * @return string */ public function compileDo(array $statement): string @@ -214,7 +252,7 @@ public function compileDo(array $statement): string /** * Compiles a {% raw %}`{{` `}}`{% endraw %} statement returning PHP code * - * @param array $statement + * @param array $statement * * @return string */ public function compileEcho(array $statement): string @@ -224,7 +262,7 @@ public function compileEcho(array $statement): string /** * Compiles a "elseif" statement returning PHP code * - * @param array $statement + * @param array $statement * * @return string */ public function compileElseIf(array $statement): string @@ -241,10 +279,11 @@ public function compileElseIf(array $statement): string * ); * ``` * - * @return string|array * @param string $path * @param string $compiledPath - * @param bool $extendsMode + * @param bool $extendsMode * + * @throws \Phalcon\Mvc\View\Engine\Volt\Exception + * @return string|array */ public function compileFile(string $path, string $compiledPath, bool $extendsMode = false) { @@ -254,7 +293,7 @@ public function compileFile(string $path, string $compiledPath, bool $extendsMod * Compiles a "foreach" intermediate code representation into plain PHP code * * @param array $statement - * @param bool $extendsMode + * @param bool $extendsMode * * @return string */ public function compileForeach(array $statement, bool $extendsMode = false): string @@ -274,7 +313,8 @@ public function compileForElse(): string * Compiles a 'if' statement returning PHP code * * @param array $statement - * @param bool $extendsMode + * @param bool $extendsMode * + * @throws \Phalcon\Mvc\View\Engine\Volt\Exception * @return string */ public function compileIf(array $statement, bool $extendsMode = false): string @@ -284,7 +324,8 @@ public function compileIf(array $statement, bool $extendsMode = false): string /** * Compiles a 'include' statement returning PHP code * - * @param array $statement + * @param array $statement * + * @throws \Phalcon\Mvc\View\Engine\Volt\Exception * @return string */ public function compileInclude(array $statement): string @@ -295,7 +336,7 @@ public function compileInclude(array $statement): string * Compiles macros * * @param array $statement - * @param bool $extendsMode + * @param bool $extendsMode * * @return string */ public function compileMacro(array $statement, bool $extendsMode): string @@ -305,8 +346,9 @@ public function compileMacro(array $statement, bool $extendsMode): string /** * Compiles a "return" statement returning PHP code * - * @param array $statement + * @throws \Phalcon\Mvc\View\Engine\Volt\Exception * @return string + * @param array $statement */ public function compileReturn(array $statement): string { @@ -315,7 +357,8 @@ public function compileReturn(array $statement): string /** * Compiles a "set" statement returning PHP code * - * @param array $statement + * @param array $statement * + * @throws \Phalcon\Mvc\View\Engine\Volt\Exception * @return string */ public function compileSet(array $statement): string @@ -330,7 +373,7 @@ public function compileSet(array $statement): string * ``` * * @param string $viewCode - * @param bool $extendsMode + * @param bool $extendsMode * * @return string */ public function compileString(string $viewCode, bool $extendsMode = false): string @@ -341,7 +384,8 @@ public function compileString(string $viewCode, bool $extendsMode = false): stri * Compiles a 'switch' statement returning PHP code * * @param array $statement - * @param bool $extendsMode + * @param bool $extendsMode * + * @throws \Phalcon\Mvc\View\Engine\Volt\Exception * @return string */ public function compileSwitch(array $statement, bool $extendsMode = false): string @@ -351,7 +395,7 @@ public function compileSwitch(array $statement, bool $extendsMode = false): stri /** * Resolves an expression node in an AST volt tree * - * @param array $expr + * @param array $expr * * @return string */ final public function expression(array $expr): string @@ -361,9 +405,9 @@ final public function expression(array $expr): string /** * Fires an event to registered extensions * - * @param array $arguments - * @return mixed * @param string $name + * @param array $arguments * + * @return mixed */ final public function fireExtensionEvent(string $name, $arguments = null) { @@ -372,7 +416,8 @@ final public function fireExtensionEvent(string $name, $arguments = null) /** * Resolves function intermediate code into PHP function calls * - * @param array $expr + * @param array $expr * + * @throws \Phalcon\Mvc\View\Engine\Volt\Exception * @return string */ public function functionCall(array $expr): string @@ -427,10 +472,10 @@ public function getFunctions(): array /** * Returns a compiler's option * - * @return string - * @param string $option + * @param string $option * + * @return string|null */ - public function getOption(string $option) + public function getOption(string $option): ?string { } @@ -471,10 +516,10 @@ public function getUniquePrefix(): string * ); * ``` * + * @param string $viewCode * * @return array - * @param string $viewCode */ - public function parse(string $viewCode) + public function parse(string $viewCode): array { } @@ -495,7 +540,7 @@ public function resolveTest(array $test, string $left): string * @param \Phalcon\Di\DiInterface $container * @return void */ - public function setDI(\Phalcon\Di\DiInterface $container) + public function setDI(\Phalcon\Di\DiInterface $container): void { } @@ -579,4 +624,5 @@ final protected function statementList(array $statements, bool $extendsMode = fa final protected function statementListOrExtends($statements) { } + } diff --git a/src/Phalcon/Mvc/View/Engine/Volt/Exception.php b/src/Mvc/View/Engine/Volt/Exception.zep.php similarity index 77% rename from src/Phalcon/Mvc/View/Engine/Volt/Exception.php rename to src/Mvc/View/Engine/Volt/Exception.zep.php index 08a2dad3..c9739cea 100644 --- a/src/Phalcon/Mvc/View/Engine/Volt/Exception.php +++ b/src/Mvc/View/Engine/Volt/Exception.zep.php @@ -9,22 +9,26 @@ */ namespace Phalcon\Mvc\View\Engine\Volt; +use Phalcon\Mvc\View\Exception as BaseException; + /** * Class for exceptions thrown by Phalcon\Mvc\View */ class Exception extends \Phalcon\Mvc\View\Exception { - - protected $statement; + /** + * @var array + */ + protected $statement = []; /** * @param string $message * @param array $statement * @param int $code - * @param \Exception $previous + * @param \Exception|null $previous */ - public function __construct(string $message = '', array $statement = array(), int $code = 0, \Exception $previous = null) + public function __construct(string $message = '', array $statement = [], int $code = 0, \Exception $previous = null) { } @@ -36,4 +40,5 @@ public function __construct(string $message = '', array $statement = array(), in public function getStatement(): array { } + } diff --git a/src/Phalcon/Mvc/View/Exception.php b/src/Mvc/View/Exception.zep.php similarity index 100% rename from src/Phalcon/Mvc/View/Exception.php rename to src/Mvc/View/Exception.zep.php diff --git a/src/Phalcon/Mvc/View/Simple.php b/src/Mvc/View/Simple.zep.php similarity index 84% rename from src/Phalcon/Mvc/View/Simple.php rename to src/Mvc/View/Simple.zep.php index 7501f4f6..4c5f917e 100644 --- a/src/Phalcon/Mvc/View/Simple.php +++ b/src/Mvc/View/Simple.zep.php @@ -9,8 +9,16 @@ */ namespace Phalcon\Mvc\View; +use Closure; +use Phalcon\Di\DiInterface; use Phalcon\Di\Injectable; +use Phalcon\Events\EventsAwareInterface; use Phalcon\Events\ManagerInterface; +use Phalcon\Helper\Arr; +use Phalcon\Helper\Str; +use Phalcon\Mvc\ViewBaseInterface; +use Phalcon\Mvc\View\Engine\EngineInterface; +use Phalcon\Mvc\View\Engine\Php as PhpEngine; /** * Phalcon\Mvc\View\Simple @@ -41,36 +49,45 @@ */ class Simple extends Injectable implements \Phalcon\Mvc\ViewBaseInterface, \Phalcon\Events\EventsAwareInterface { - + /** + * @var string + */ protected $activeRenderPath; - + /** + * @var string + */ protected $content; /** - * @var \Phalcon\Mvc\View\EngineInterface[]|false + * @var EngineInterface[]|false */ protected $engines = false; - + /** + * @var ManagerInterface|null + */ protected $eventsManager; - - protected $options; - - - protected $partialsDir; + /** + * @var array + */ + protected $options = []; /** * @var array|null */ protected $registeredEngines; - + /** + * @var string + */ protected $viewsDir; - - protected $viewParams = array(); + /** + * @var array + */ + protected $viewParams = []; /** @@ -85,7 +102,7 @@ public function getRegisteredEngines(): ?array * * @param array $options */ - public function __construct(array $options = array()) + public function __construct(array $options = []) { } @@ -96,8 +113,8 @@ public function __construct(array $options = array()) * echo $this->view->products; * ``` * - * @param string $key * @return mixed|null + * @param string $key */ public function __get(string $key) { @@ -110,10 +127,11 @@ public function __get(string $key) * $this->view->products = $products; * ``` * + * @return void * @param string $key * @param mixed $value */ - public function __set(string $key, $value) + public function __set(string $key, $value): void { } @@ -138,7 +156,7 @@ public function getContent(): string /** * Returns the internal event manager * - * @return \Phalcon\Events\ManagerInterface|null + * @return ManagerInterface|null */ public function getEventsManager(): ?ManagerInterface { @@ -156,8 +174,8 @@ public function getParamsToView(): array /** * Returns a parameter previously set in the view * - * @param string $key * @return mixed|null + * @param string $key */ public function getVar(string $key) { @@ -190,10 +208,11 @@ public function getViewsDir(): string * ); * ``` * + * @return void * @param string $partialPath * @param mixed $params */ - public function partial(string $partialPath, $params = null) + public function partial(string $partialPath, $params = null): void { } @@ -210,20 +229,21 @@ public function partial(string $partialPath, $params = null) * ); * ``` * + * @return void * @param array $engines */ - public function registerEngines(array $engines) + public function registerEngines(array $engines): void { } /** * Renders a view * + * @return string * @param string $path * @param array $params - * @return string */ - public function render(string $path, array $params = array()): string + public function render(string $path, array $params = []): string { } @@ -234,8 +254,8 @@ public function render(string $path, array $params = array()): string * $this->view->setContent("

hello

"); * ``` * - * @param string $content * @return Simple + * @param string $content */ public function setContent(string $content): Simple { @@ -244,10 +264,10 @@ public function setContent(string $content): Simple /** * Sets the events manager * - * @param \Phalcon\Events\ManagerInterface $eventsManager * @return void + * @param \Phalcon\Events\ManagerInterface $eventsManager */ - public function setEventsManager(\Phalcon\Events\ManagerInterface $eventsManager) + public function setEventsManager(\Phalcon\Events\ManagerInterface $eventsManager): void { } @@ -258,9 +278,9 @@ public function setEventsManager(\Phalcon\Events\ManagerInterface $eventsManager * $this->view->setParamToView("products", $products); * ``` * + * @return Simple * @param string $key * @param mixed $value - * @return Simple */ public function setParamToView(string $key, $value): Simple { @@ -273,9 +293,9 @@ public function setParamToView(string $key, $value): Simple * $this->view->setVar("products", $products); * ``` * + * @return Simple * @param string $key * @param mixed $value - * @return Simple */ public function setVar(string $key, $value): Simple { @@ -292,9 +312,9 @@ public function setVar(string $key, $value): Simple * ); * ``` * + * @return Simple * @param array $params * @param bool $merge - * @return Simple */ public function setVars(array $params, bool $merge = true): Simple { @@ -303,9 +323,10 @@ public function setVars(array $params, bool $merge = true): Simple /** * Sets views directory * + * @return void * @param string $viewsDir */ - public function setViewsDir(string $viewsDir) + public function setViewsDir(string $viewsDir): void { } @@ -322,10 +343,12 @@ protected function loadTemplateEngines(): array /** * Tries to render the view with every engine registered in the component * - * @param array $params * @param string $path + * @param array $params * + * @return void */ - final protected function internalRender(string $path, $params) + final protected function internalRender(string $path, $params): void { } + } diff --git a/src/Phalcon/Mvc/ViewBaseInterface.php b/src/Mvc/ViewBaseInterface.zep.php similarity index 97% rename from src/Phalcon/Mvc/ViewBaseInterface.php rename to src/Mvc/ViewBaseInterface.zep.php index 494f184a..c01d2115 100644 --- a/src/Phalcon/Mvc/ViewBaseInterface.php +++ b/src/Mvc/ViewBaseInterface.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Mvc; +use Phalcon\Cache\Adapter\AdapterInterface; + /** * Phalcon\Mvc\ViewInterface * @@ -76,4 +78,5 @@ public function setVar(string $key, $value); * @param string $viewsDir */ public function setViewsDir(string $viewsDir); + } diff --git a/src/Phalcon/Mvc/ViewInterface.php b/src/Mvc/ViewInterface.zep.php similarity index 98% rename from src/Phalcon/Mvc/ViewInterface.php rename to src/Mvc/ViewInterface.zep.php index 5e6a88a6..248db947 100644 --- a/src/Phalcon/Mvc/ViewInterface.php +++ b/src/Mvc/ViewInterface.zep.php @@ -125,9 +125,9 @@ public function registerEngines(array $engines); * @param string $controllerName * @param string $actionName * @param array $params - * @return bool|ViewInterface + * @return 0|ViewInterface */ - public function render(string $controllerName, string $actionName, array $params = array()); + public function render(string $controllerName, string $actionName, array $params = []); /** * Resets the view component to its factory default values @@ -202,4 +202,5 @@ public function setTemplateBefore($templateBefore); * Starts rendering process enabling the output buffering */ public function start(); + } diff --git a/src/Phalcon/Paginator/Adapter/AbstractAdapter.php b/src/Paginator/Adapter/AbstractAdapter.zep.php similarity index 93% rename from src/Phalcon/Paginator/Adapter/AbstractAdapter.php rename to src/Paginator/Adapter/AbstractAdapter.zep.php index 4a919273..da960704 100644 --- a/src/Phalcon/Paginator/Adapter/AbstractAdapter.php +++ b/src/Paginator/Adapter/AbstractAdapter.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Paginator\Adapter; +use Phalcon\Paginator\Exception; +use Phalcon\Paginator\Repository; use Phalcon\Paginator\RepositoryInterface; /** @@ -18,16 +20,22 @@ abstract class AbstractAdapter implements \Phalcon\Paginator\Adapter\AdapterInte { /** * Configuration of paginator + * + * @var array */ protected $config; /** * Number of rows to show in the paginator. By default is null + * + * @var int|null */ protected $limitRows = null; /** * Current page in paginate + * + * @var int|null */ protected $page = null; @@ -96,4 +104,5 @@ public function setRepository(\Phalcon\Paginator\RepositoryInterface $repository protected function getRepository(array $properties = null): RepositoryInterface { } + } diff --git a/src/Phalcon/Paginator/Adapter/AdapterInterface.php b/src/Paginator/Adapter/AdapterInterface.zep.php similarity index 99% rename from src/Phalcon/Paginator/Adapter/AdapterInterface.php rename to src/Paginator/Adapter/AdapterInterface.zep.php index b39e5b27..e4136ebe 100644 --- a/src/Phalcon/Paginator/Adapter/AdapterInterface.php +++ b/src/Paginator/Adapter/AdapterInterface.zep.php @@ -46,4 +46,5 @@ public function setCurrentPage(int $page); * @param int $limit */ public function setLimit(int $limit); + } diff --git a/src/Phalcon/Paginator/Adapter/Model.php b/src/Paginator/Adapter/Model.zep.php similarity index 99% rename from src/Phalcon/Paginator/Adapter/Model.php rename to src/Paginator/Adapter/Model.zep.php index 21f04fe3..f692741c 100644 --- a/src/Phalcon/Paginator/Adapter/Model.php +++ b/src/Paginator/Adapter/Model.zep.php @@ -90,4 +90,5 @@ class Model extends \Phalcon\Paginator\Adapter\AbstractAdapter public function paginate(): RepositoryInterface { } + } diff --git a/src/Phalcon/Paginator/Adapter/NativeArray.php b/src/Paginator/Adapter/NativeArray.zep.php similarity index 99% rename from src/Phalcon/Paginator/Adapter/NativeArray.php rename to src/Paginator/Adapter/NativeArray.zep.php index 98dc5e5e..fef477e5 100644 --- a/src/Phalcon/Paginator/Adapter/NativeArray.php +++ b/src/Paginator/Adapter/NativeArray.zep.php @@ -46,4 +46,5 @@ class NativeArray extends \Phalcon\Paginator\Adapter\AbstractAdapter public function paginate(): RepositoryInterface { } + } diff --git a/src/Phalcon/Paginator/Adapter/QueryBuilder.php b/src/Paginator/Adapter/QueryBuilder.zep.php similarity index 97% rename from src/Phalcon/Paginator/Adapter/QueryBuilder.php rename to src/Paginator/Adapter/QueryBuilder.zep.php index 6d325ea0..5bba1583 100644 --- a/src/Phalcon/Paginator/Adapter/QueryBuilder.php +++ b/src/Paginator/Adapter/QueryBuilder.zep.php @@ -40,11 +40,15 @@ class QueryBuilder extends \Phalcon\Paginator\Adapter\AbstractAdapter { /** * Paginator's data + * + * @var Builder */ protected $builder; /** * Columns for count query if builder has having + * + * @var array|string */ protected $columns; @@ -98,4 +102,5 @@ public function paginate(): RepositoryInterface public function setQueryBuilder(\Phalcon\Mvc\Model\Query\Builder $builder): QueryBuilder { } + } diff --git a/src/Phalcon/Paginator/Exception.php b/src/Paginator/Exception.zep.php similarity index 100% rename from src/Phalcon/Paginator/Exception.php rename to src/Paginator/Exception.zep.php diff --git a/src/Phalcon/Paginator/PaginatorFactory.php b/src/Paginator/PaginatorFactory.zep.php similarity index 85% rename from src/Phalcon/Paginator/PaginatorFactory.php rename to src/Paginator/PaginatorFactory.zep.php index 457aa472..403aeb6e 100644 --- a/src/Phalcon/Paginator/PaginatorFactory.php +++ b/src/Paginator/PaginatorFactory.zep.php @@ -24,12 +24,15 @@ class PaginatorFactory extends AbstractFactory { + protected $exception = 'Phalcon\\\\Annotations\\\\Exception'; + + /** * AdapterFactory constructor. * * @param array $services */ - public function __construct(array $services = array()) + public function __construct(array $services = []) { } @@ -63,12 +66,6 @@ public function __construct(array $services = array()) * 'builder' => null * ] * @param mixed $config - * @param array|\Phalcon\Config = [ - * 'adapter' => 'queryBuilder', - * 'limit' => 20, - * 'page' => 1, - * 'builder' => null - * ] * @return AdapterInterface */ public function load($config): AdapterInterface @@ -82,7 +79,7 @@ public function load($config): AdapterInterface * @param array $options * @return AdapterInterface */ - public function newInstance(string $name, array $options = array()): AdapterInterface + public function newInstance(string $name, array $options = []): AdapterInterface { } @@ -92,4 +89,5 @@ public function newInstance(string $name, array $options = array()): AdapterInte protected function getAdapters(): array { } + } diff --git a/src/Phalcon/Paginator/Repository.php b/src/Paginator/Repository.zep.php similarity index 97% rename from src/Phalcon/Paginator/Repository.php rename to src/Paginator/Repository.zep.php index 124c8086..d677eb13 100644 --- a/src/Phalcon/Paginator/Repository.php +++ b/src/Paginator/Repository.zep.php @@ -22,12 +22,12 @@ class Repository implements \Phalcon\Paginator\RepositoryInterface, \JsonSeriali /** * @var array */ - protected $aliases = array(); + protected $aliases = []; /** * @var array */ - protected $properties = array(); + protected $properties = []; /** @@ -170,4 +170,5 @@ protected function getProperty(string $property, $defaultValue = null) protected function getRealNameProperty(string $property): string { } + } diff --git a/src/Phalcon/Paginator/RepositoryInterface.php b/src/Paginator/RepositoryInterface.zep.php similarity index 99% rename from src/Phalcon/Paginator/RepositoryInterface.php rename to src/Paginator/RepositoryInterface.zep.php index 921f0c17..37835568 100644 --- a/src/Phalcon/Paginator/RepositoryInterface.php +++ b/src/Paginator/RepositoryInterface.zep.php @@ -120,4 +120,5 @@ public function setAliases(array $aliases): RepositoryInterface; * @return RepositoryInterface */ public function setProperties(array $properties): RepositoryInterface; + } diff --git a/src/Phalcon/DataMapper/Pdo/Profiler/MemoryLogger.php b/src/Phalcon/DataMapper/Pdo/Profiler/MemoryLogger.php deleted file mode 100644 index 1e5e496c..00000000 --- a/src/Phalcon/DataMapper/Pdo/Profiler/MemoryLogger.php +++ /dev/null @@ -1,46 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE.txt - * file that was distributed with this source code. - */ -namespace Phalcon\DataMapper\Pdo\Profiler; - -use Psr\Log\AbstractLogger; - -/** - * A naive memory-based logger. - * - * @property array $messages - */ -class MemoryLogger extends AbstractLogger -{ - /** - * @var array - */ - protected $messages = array(); - - - /** - * Returns the logged messages. - * - * @return array - */ - public function getMessages() - { - } - - /** - * Logs a message. - * - * @param mixed $level - * @param string $message - * @param array $context - */ - public function log($level, $message, array $context = array()) - { - } -} diff --git a/src/Phalcon/Registry.php b/src/Registry.zep.php similarity index 91% rename from src/Phalcon/Registry.php rename to src/Registry.zep.php index cd6dab97..5771d954 100644 --- a/src/Phalcon/Registry.php +++ b/src/Registry.zep.php @@ -69,7 +69,7 @@ final class Registry extends \Phalcon\Collection * * @param array $data */ - final public function __construct(array $data = null) + final public function __construct(array $data = []) { } @@ -100,7 +100,7 @@ final public function __isset(string $element): bool * @param mixed $value * @return void */ - final public function __set(string $element, $value) + final public function __set(string $element, $value): void { } @@ -110,7 +110,7 @@ final public function __set(string $element, $value) * @param string $element * @return void */ - final public function __unset(string $element) + final public function __unset(string $element): void { } @@ -119,7 +119,7 @@ final public function __unset(string $element) * * @return void */ - final public function clear() + final public function clear(): void { } @@ -170,7 +170,7 @@ final public function has(string $element): bool * @param array $data * @return void */ - final public function init(array $data = array()) + final public function init(array $data = []): void { } @@ -214,7 +214,7 @@ final public function offsetGet($element) * @param mixed $value * @return void */ - final public function offsetSet($element, $value) + final public function offsetSet($element, $value): void { } @@ -225,7 +225,7 @@ final public function offsetSet($element, $value) * @param mixed $element * @return void */ - final public function offsetUnset($element) + final public function offsetUnset($element): void { } @@ -235,7 +235,7 @@ final public function offsetUnset($element) * @param string $element * @return void */ - final public function remove(string $element) + final public function remove(string $element): void { } @@ -256,7 +256,7 @@ final public function serialize(): string * @param mixed $value * @return void */ - final public function set(string $element, $value) + final public function set(string $element, $value): void { } @@ -291,7 +291,8 @@ final public function toJson(int $options = 79): string * @param mixed $serialized * @return void */ - final public function unserialize($serialized) + final public function unserialize($serialized): void { } + } diff --git a/src/Phalcon/Security.php b/src/Security.zep.php similarity index 96% rename from src/Phalcon/Security.php rename to src/Security.zep.php index 1b102d24..0d547b52 100644 --- a/src/Phalcon/Security.php +++ b/src/Security.zep.php @@ -68,7 +68,7 @@ class Security extends AbstractInjectionAware /** * @var int|null */ - protected $defaultHash; + protected $defaultHash = null; /** * @var int @@ -81,19 +81,19 @@ class Security extends AbstractInjectionAware protected $random; /** - * @var string}null + * @var string|null */ - protected $requestToken; + protected $requestToken = null; /** * @var string|null */ - protected $token; + protected $token = null; /** * @var string|null */ - protected $tokenKey; + protected $tokenKey = null; /** * @var string @@ -316,16 +316,17 @@ public function setWorkFactor(int $workFactor): Security } /** - * @return \Phalcon\Http\RequestInterface|null + * @return RequestInterface|null */ private function getLocalRequest(): ?RequestInterface { } /** - * @return \Phalcon\Session\ManagerInterface|null + * @return SessionInterface|null */ private function getLocalSession(): ?SessionInterface { } + } diff --git a/src/Phalcon/Security/Exception.php b/src/Security/Exception.zep.php similarity index 100% rename from src/Phalcon/Security/Exception.php rename to src/Security/Exception.zep.php diff --git a/src/Phalcon/Security/JWT/Builder.php b/src/Security/JWT/Builder.zep.php similarity index 96% rename from src/Phalcon/Security/JWT/Builder.php rename to src/Security/JWT/Builder.zep.php index 19163e59..eedcab40 100644 --- a/src/Phalcon/Security/JWT/Builder.php +++ b/src/Security/JWT/Builder.zep.php @@ -9,9 +9,15 @@ */ namespace Phalcon\Security\JWT; +use Phalcon\Collection; use Phalcon\Collection\CollectionInterface; +use Phalcon\Helper\Base64; +use Phalcon\Helper\Json; use Phalcon\Security\JWT\Exceptions\ValidatorException; use Phalcon\Security\JWT\Signer\SignerInterface; +use Phalcon\Security\JWT\Token\Enum; +use Phalcon\Security\JWT\Token\Item; +use Phalcon\Security\JWT\Token\Signature; use Phalcon\Security\JWT\Token\Token; /** @@ -298,7 +304,8 @@ public function setPassphrase(string $passphrase): Builder * * @return Builder */ - private function setClaim(string $name, $value): Builder + protected function setClaim(string $name, $value): Builder { } + } diff --git a/src/Phalcon/Security/JWT/Exceptions/UnsupportedAlgorithmException.php b/src/Security/JWT/Exceptions/UnsupportedAlgorithmException.zep.php similarity index 97% rename from src/Phalcon/Security/JWT/Exceptions/UnsupportedAlgorithmException.php rename to src/Security/JWT/Exceptions/UnsupportedAlgorithmException.zep.php index 54847fee..427fa4db 100644 --- a/src/Phalcon/Security/JWT/Exceptions/UnsupportedAlgorithmException.php +++ b/src/Security/JWT/Exceptions/UnsupportedAlgorithmException.zep.php @@ -10,6 +10,7 @@ namespace Phalcon\Security\JWT\Exceptions; use Exception; +use Throwable; /** * This file is part of the Phalcon Framework. diff --git a/src/Phalcon/Security/JWT/Exceptions/ValidatorException.php b/src/Security/JWT/Exceptions/ValidatorException.zep.php similarity index 97% rename from src/Phalcon/Security/JWT/Exceptions/ValidatorException.php rename to src/Security/JWT/Exceptions/ValidatorException.zep.php index 09020d3d..bd615e7a 100644 --- a/src/Phalcon/Security/JWT/Exceptions/ValidatorException.php +++ b/src/Security/JWT/Exceptions/ValidatorException.zep.php @@ -10,6 +10,7 @@ namespace Phalcon\Security\JWT\Exceptions; use Exception; +use Throwable; /** * This file is part of the Phalcon Framework. diff --git a/src/Phalcon/Security/JWT/Signer/AbstractSigner.php b/src/Security/JWT/Signer/AbstractSigner.zep.php similarity index 99% rename from src/Phalcon/Security/JWT/Signer/AbstractSigner.php rename to src/Security/JWT/Signer/AbstractSigner.zep.php index 17371cf0..9684e8c0 100644 --- a/src/Phalcon/Security/JWT/Signer/AbstractSigner.php +++ b/src/Security/JWT/Signer/AbstractSigner.zep.php @@ -28,4 +28,5 @@ abstract class AbstractSigner implements \Phalcon\Security\JWT\Signer\SignerInte public function getAlgorithm(): string { } + } diff --git a/src/Phalcon/Security/JWT/Signer/Hmac.php b/src/Security/JWT/Signer/Hmac.zep.php similarity index 99% rename from src/Phalcon/Security/JWT/Signer/Hmac.php rename to src/Security/JWT/Signer/Hmac.zep.php index ed78120a..d2eba8fe 100644 --- a/src/Phalcon/Security/JWT/Signer/Hmac.php +++ b/src/Security/JWT/Signer/Hmac.zep.php @@ -73,4 +73,5 @@ public function verify(string $source, string $payload, string $passphrase): boo private function getHash(string $payload, string $passphrase): string { } + } diff --git a/src/Phalcon/Security/JWT/Signer/None.php b/src/Security/JWT/Signer/None.zep.php similarity index 99% rename from src/Phalcon/Security/JWT/Signer/None.php rename to src/Security/JWT/Signer/None.zep.php index 1b4d909b..5d122c47 100644 --- a/src/Phalcon/Security/JWT/Signer/None.php +++ b/src/Security/JWT/Signer/None.zep.php @@ -57,4 +57,5 @@ public function sign(string $payload, string $passphrase): string public function verify(string $source, string $payload, string $passphrase): bool { } + } diff --git a/src/Phalcon/Security/JWT/Signer/SignerInterface.php b/src/Security/JWT/Signer/SignerInterface.zep.php similarity index 99% rename from src/Phalcon/Security/JWT/Signer/SignerInterface.php rename to src/Security/JWT/Signer/SignerInterface.zep.php index d93239ca..5786c128 100644 --- a/src/Phalcon/Security/JWT/Signer/SignerInterface.php +++ b/src/Security/JWT/Signer/SignerInterface.zep.php @@ -54,4 +54,5 @@ public function sign(string $payload, string $passphrase): string; * @return bool */ public function verify(string $source, string $payload, string $passphrase): bool; + } diff --git a/src/Phalcon/Security/JWT/Token/AbstractItem.php b/src/Security/JWT/Token/AbstractItem.zep.php similarity index 94% rename from src/Phalcon/Security/JWT/Token/AbstractItem.php rename to src/Security/JWT/Token/AbstractItem.zep.php index 65f322b1..b33fbffe 100644 --- a/src/Phalcon/Security/JWT/Token/AbstractItem.php +++ b/src/Security/JWT/Token/AbstractItem.zep.php @@ -19,7 +19,7 @@ abstract class AbstractItem /** * @var array */ - protected $data = array(); + protected $data = []; /** @@ -28,4 +28,5 @@ abstract class AbstractItem public function getEncoded(): string { } + } diff --git a/src/Phalcon/Security/JWT/Token/Enum.php b/src/Security/JWT/Token/Enum.zep.php similarity index 99% rename from src/Phalcon/Security/JWT/Token/Enum.php rename to src/Security/JWT/Token/Enum.zep.php index aad3a303..910003d9 100644 --- a/src/Phalcon/Security/JWT/Token/Enum.php +++ b/src/Security/JWT/Token/Enum.zep.php @@ -49,4 +49,6 @@ class Enum const SUBJECT = 'sub'; + + } diff --git a/src/Phalcon/Security/JWT/Token/Item.php b/src/Security/JWT/Token/Item.zep.php similarity index 99% rename from src/Phalcon/Security/JWT/Token/Item.php rename to src/Security/JWT/Token/Item.zep.php index 3a7c48dc..673c460d 100644 --- a/src/Phalcon/Security/JWT/Token/Item.php +++ b/src/Security/JWT/Token/Item.zep.php @@ -50,4 +50,5 @@ public function getPayload(): array public function has(string $name): bool { } + } diff --git a/src/Phalcon/Security/JWT/Token/Parser.php b/src/Security/JWT/Token/Parser.zep.php similarity index 92% rename from src/Phalcon/Security/JWT/Token/Parser.php rename to src/Security/JWT/Token/Parser.zep.php index 10034e6f..be7c5e5a 100644 --- a/src/Phalcon/Security/JWT/Token/Parser.php +++ b/src/Security/JWT/Token/Parser.zep.php @@ -9,6 +9,11 @@ */ namespace Phalcon\Security\JWT\Token; +use InvalidArgumentException; +use Phalcon\Helper\Arr; +use Phalcon\Helper\Base64; +use Phalcon\Helper\Json; + /** * Class Parser */ @@ -70,4 +75,5 @@ private function decodeSignature(Item $headers, string $signature): Signature private function parseToken(string $token): array { } + } diff --git a/src/Phalcon/Security/JWT/Token/Signature.php b/src/Security/JWT/Token/Signature.zep.php similarity index 99% rename from src/Phalcon/Security/JWT/Token/Signature.php rename to src/Security/JWT/Token/Signature.zep.php index 558cbba4..9e469f6b 100644 --- a/src/Phalcon/Security/JWT/Token/Signature.php +++ b/src/Security/JWT/Token/Signature.zep.php @@ -31,4 +31,5 @@ public function __construct(string $hash = '', string $encoded = '') public function getHash(): string { } + } diff --git a/src/Phalcon/Security/JWT/Token/Token.php b/src/Security/JWT/Token/Token.zep.php similarity index 99% rename from src/Phalcon/Security/JWT/Token/Token.php rename to src/Security/JWT/Token/Token.zep.php index 65bb5b94..d46dbf0a 100644 --- a/src/Phalcon/Security/JWT/Token/Token.php +++ b/src/Security/JWT/Token/Token.zep.php @@ -81,4 +81,5 @@ public function getPayload(): string public function getToken(): string { } + } diff --git a/src/Phalcon/Security/JWT/Validator.php b/src/Security/JWT/Validator.zep.php similarity index 98% rename from src/Phalcon/Security/JWT/Validator.php rename to src/Security/JWT/Validator.zep.php index 1607fd36..65013398 100644 --- a/src/Phalcon/Security/JWT/Validator.php +++ b/src/Security/JWT/Validator.zep.php @@ -11,6 +11,7 @@ use Phalcon\Security\JWT\Exceptions\ValidatorException; use Phalcon\Security\JWT\Signer\SignerInterface; +use Phalcon\Security\JWT\Token\Enum; use Phalcon\Security\JWT\Token\Token; /** @@ -130,4 +131,5 @@ public function validateSignature(\Phalcon\Security\JWT\Signer\SignerInterface $ private function getTimestamp(int $timestamp): int { } + } diff --git a/src/Phalcon/Security/Random.php b/src/Security/Random.zep.php similarity index 99% rename from src/Phalcon/Security/Random.php rename to src/Security/Random.zep.php index 0c309003..ea9b65f9 100644 --- a/src/Phalcon/Security/Random.php +++ b/src/Security/Random.zep.php @@ -282,4 +282,5 @@ public function uuid(): string protected function base(string $alphabet, int $base, $n = null): string { } + } diff --git a/src/Phalcon/Session/Adapter/AbstractAdapter.php b/src/Session/Adapter/AbstractAdapter.zep.php similarity index 98% rename from src/Phalcon/Session/Adapter/AbstractAdapter.php rename to src/Session/Adapter/AbstractAdapter.zep.php index e0d4fc6e..c563515c 100644 --- a/src/Phalcon/Session/Adapter/AbstractAdapter.php +++ b/src/Session/Adapter/AbstractAdapter.zep.php @@ -10,6 +10,7 @@ namespace Phalcon\Session\Adapter; use Phalcon\Storage\Adapter\AdapterInterface; +use SessionHandlerInterface; /** * This file is part of the Phalcon. @@ -87,4 +88,5 @@ public function open($savePath, $sessionName): bool public function write($id, $data): bool { } + } diff --git a/src/Phalcon/Session/Adapter/Libmemcached.php b/src/Session/Adapter/Libmemcached.zep.php similarity index 96% rename from src/Phalcon/Session/Adapter/Libmemcached.php rename to src/Session/Adapter/Libmemcached.zep.php index 2a603e04..0472bdac 100644 --- a/src/Phalcon/Session/Adapter/Libmemcached.php +++ b/src/Session/Adapter/Libmemcached.zep.php @@ -37,7 +37,8 @@ class Libmemcached extends \Phalcon\Session\Adapter\AbstractAdapter * ] * @param \Phalcon\Storage\AdapterFactory $factory */ - public function __construct(\Phalcon\Storage\AdapterFactory $factory, array $options = array()) + public function __construct(\Phalcon\Storage\AdapterFactory $factory, array $options = []) { } + } diff --git a/src/Phalcon/Session/Adapter/Noop.php b/src/Session/Adapter/Noop.zep.php similarity index 93% rename from src/Phalcon/Session/Adapter/Noop.php rename to src/Session/Adapter/Noop.zep.php index feb2e656..224c8bd6 100644 --- a/src/Phalcon/Session/Adapter/Noop.php +++ b/src/Session/Adapter/Noop.zep.php @@ -31,15 +31,17 @@ class Noop implements \SessionHandlerInterface { /** * The connection of some adapters + * + * @var null */ - protected $connection; + protected $connection = null; /** * Session options * * @var array */ - protected $options = array(); + protected $options = []; /** * Session prefix @@ -63,7 +65,7 @@ class Noop implements \SessionHandlerInterface * 'prefix' => '' * ] */ - public function __construct(array $options = array()) + public function __construct(array $options = []) { } @@ -137,4 +139,5 @@ public function write($id, $data): bool protected function getPrefixedName($name): string { } + } diff --git a/src/Phalcon/Session/Adapter/Redis.php b/src/Session/Adapter/Redis.zep.php similarity index 95% rename from src/Phalcon/Session/Adapter/Redis.php rename to src/Session/Adapter/Redis.zep.php index 3fe6595f..243a6dfb 100644 --- a/src/Phalcon/Session/Adapter/Redis.php +++ b/src/Session/Adapter/Redis.zep.php @@ -32,7 +32,8 @@ class Redis extends \Phalcon\Session\Adapter\AbstractAdapter * ] * @param \Phalcon\Storage\AdapterFactory $factory */ - public function __construct(\Phalcon\Storage\AdapterFactory $factory, array $options = array()) + public function __construct(\Phalcon\Storage\AdapterFactory $factory, array $options = []) { } + } diff --git a/src/Phalcon/Session/Adapter/Stream.php b/src/Session/Adapter/Stream.zep.php similarity index 96% rename from src/Phalcon/Session/Adapter/Stream.php rename to src/Session/Adapter/Stream.zep.php index 2dcb1c33..7df73a25 100644 --- a/src/Phalcon/Session/Adapter/Stream.php +++ b/src/Session/Adapter/Stream.zep.php @@ -48,7 +48,7 @@ class Stream extends \Phalcon\Session\Adapter\Noop * 'savePath' => '' * ] */ - public function __construct(array $options = array()) + public function __construct(array $options = []) { } @@ -95,4 +95,5 @@ public function read($id): string public function write($id, $data): bool { } + } diff --git a/src/Phalcon/Session/Bag.php b/src/Session/Bag.zep.php similarity index 77% rename from src/Phalcon/Session/Bag.php rename to src/Session/Bag.zep.php index 62471c9b..2d51533d 100644 --- a/src/Phalcon/Session/Bag.php +++ b/src/Session/Bag.zep.php @@ -10,7 +10,9 @@ namespace Phalcon\Session; use Phalcon\Collection; +use Phalcon\Di; use Phalcon\Di\DiInterface; +use Phalcon\Di\InjectionAwareInterface; /** * Phalcon\Session\Bag @@ -28,13 +30,21 @@ */ class Bag extends Collection implements \Phalcon\Di\InjectionAwareInterface { - + /** + * @var DiInterface|null + */ private $container; + /** + * Session Bag name + * + * @var string + */ + private $name; - private $name = null; - - + /** + * @var \Phalcon\Session\ManagerInterface + */ private $session; @@ -52,7 +62,7 @@ public function __construct(string $name) * * @return void */ - public function clear() + public function clear(): void { } @@ -71,7 +81,7 @@ public function getDI(): DiInterface * @param array $data * @return void */ - public function init(array $data = array()) + public function init(array $data = []): void { } @@ -81,7 +91,7 @@ public function init(array $data = array()) * @param string $element * @return void */ - public function remove(string $element) + public function remove(string $element): void { } @@ -92,7 +102,7 @@ public function remove(string $element) * @param mixed $value * @return void */ - public function set(string $element, $value) + public function set(string $element, $value): void { } @@ -102,7 +112,8 @@ public function set(string $element, $value) * @param \Phalcon\Di\DiInterface $container * @return void */ - public function setDI(\Phalcon\Di\DiInterface $container) + public function setDI(\Phalcon\Di\DiInterface $container): void { } + } diff --git a/src/Phalcon/Session/Exception.php b/src/Session/Exception.zep.php similarity index 100% rename from src/Phalcon/Session/Exception.php rename to src/Session/Exception.zep.php diff --git a/src/Phalcon/Session/Manager.php b/src/Session/Manager.zep.php similarity index 92% rename from src/Phalcon/Session/Manager.php rename to src/Session/Manager.zep.php index 7a8529aa..a24c6851 100644 --- a/src/Phalcon/Session/Manager.php +++ b/src/Session/Manager.zep.php @@ -36,7 +36,7 @@ class Manager extends AbstractInjectionAware implements \Phalcon\Session\Manager /** * @var array */ - private $options = array(); + private $options = []; /** * @var string @@ -51,7 +51,7 @@ class Manager extends AbstractInjectionAware implements \Phalcon\Session\Manager * 'uniqueId' => null * ] */ - public function __construct(array $options = array()) + public function __construct(array $options = []) { } @@ -82,7 +82,7 @@ public function __isset(string $key): bool * @param mixed $value * @return void */ - public function __set(string $key, $value) + public function __set(string $key, $value): void { } @@ -92,7 +92,7 @@ public function __set(string $key, $value) * @param string $key * @return void */ - public function __unset(string $key) + public function __unset(string $key): void { } @@ -101,7 +101,7 @@ public function __unset(string $key) * * @return void */ - public function destroy() + public function destroy(): void { } @@ -188,7 +188,7 @@ public function regenerateId($deleteOldSession = true): ManagerInterface * @param string $key * @return void */ - public function remove(string $key) + public function remove(string $key): void { } @@ -199,7 +199,7 @@ public function remove(string $key) * @param mixed $value * @return void */ - public function set(string $key, $value) + public function set(string $key, $value): void { } @@ -242,7 +242,7 @@ public function setName(string $name): ManagerInterface * @param array $options * @return void */ - public function setOptions(array $options) + public function setOptions(array $options): void { } @@ -274,4 +274,5 @@ public function status(): int private function getUniqueKey(string $key): string { } + } diff --git a/src/Phalcon/Session/ManagerInterface.php b/src/Session/ManagerInterface.zep.php similarity index 93% rename from src/Phalcon/Session/ManagerInterface.php rename to src/Session/ManagerInterface.zep.php index 71730b61..91e1603c 100644 --- a/src/Phalcon/Session/ManagerInterface.php +++ b/src/Session/ManagerInterface.zep.php @@ -53,7 +53,7 @@ public function __isset(string $key): bool; * @param mixed $value * @return void */ - public function __set(string $key, $value); + public function __set(string $key, $value): void; /** * Alias: Removes a session variable from an application context @@ -61,7 +61,7 @@ public function __set(string $key, $value); * @param string $key * @return void */ - public function __unset(string $key); + public function __unset(string $key): void; /** * Check whether the session has been started @@ -75,7 +75,7 @@ public function exists(): bool; * * @return void */ - public function destroy(); + public function destroy(): void; /** * Gets a session variable from an application context @@ -129,7 +129,7 @@ public function has(string $key): bool; * @param string $key * @return void */ - public function remove(string $key); + public function remove(string $key): void; /** * Sets a session variable in an application context @@ -138,7 +138,7 @@ public function remove(string $key); * @param mixed $value * @return void */ - public function set(string $key, $value); + public function set(string $key, $value): void; /** * Set the adapter for the session @@ -172,7 +172,7 @@ public function setName(string $name): ManagerInterface; * @param array $options * @return void */ - public function setOptions(array $options); + public function setOptions(array $options): void; /** * Returns the status of the current session. @@ -196,4 +196,5 @@ public function start(): bool; * @return ManagerInterface */ public function regenerateId($deleteOldSession = true): ManagerInterface; + } diff --git a/src/Phalcon/Storage/Adapter/AbstractAdapter.php b/src/Storage/Adapter/AbstractAdapter.zep.php similarity index 93% rename from src/Phalcon/Storage/Adapter/AbstractAdapter.php rename to src/Storage/Adapter/AbstractAdapter.zep.php index a19ab19c..86a4e033 100644 --- a/src/Phalcon/Storage/Adapter/AbstractAdapter.php +++ b/src/Storage/Adapter/AbstractAdapter.zep.php @@ -10,9 +10,12 @@ namespace Phalcon\Storage\Adapter; use DateInterval; +use DateTime; +use Phalcon\Helper\Arr; +use Phalcon\Helper\Str; use Phalcon\Storage\Exception; -use Phalcon\Storage\Serializer\SerializerInterface; use Phalcon\Storage\SerializerFactory; +use Phalcon\Storage\Serializer\SerializerInterface; /** * This file is part of the Phalcon Framework. @@ -25,7 +28,7 @@ abstract class AbstractAdapter implements \Phalcon\Storage\Adapter\AdapterInterface { /** - * @var mixed + * @var mixed|null */ protected $adapter; @@ -99,7 +102,7 @@ public function getPrefix(): string * ] * @param \Phalcon\Storage\SerializerFactory $factory */ - protected function __construct(\Phalcon\Storage\SerializerFactory $factory, array $options = array()) + protected function __construct(\Phalcon\Storage\SerializerFactory $factory, array $options = []) { } @@ -131,7 +134,7 @@ abstract public function delete(string $key): bool; * Reads data from the adapter * * @param string $key - * @param mixed $defaultValue + * @param mixed|null $defaultValue * * @return mixed */ abstract public function get(string $key, $defaultValue = null); @@ -173,7 +176,7 @@ abstract public function increment(string $key, int $value = 1); * * @param string $key * @param mixed $value - * @param mixed $ttl + * @param DateInterval|int|null $ttl * @return bool */ abstract public function set(string $key, $value, $ttl = null): bool; @@ -226,10 +229,9 @@ protected function getTtl($ttl): int * Returns unserialized data * * @param mixed $content - * @param mixed $defaultValue * @return mixed */ - protected function getUnserializedData($content, $defaultValue = null) + protected function getUnserializedData($content) { } @@ -238,7 +240,8 @@ protected function getUnserializedData($content, $defaultValue = null) * * @return void */ - protected function initSerializer() + protected function initSerializer(): void { } + } diff --git a/src/Phalcon/Storage/Adapter/AdapterInterface.php b/src/Storage/Adapter/AdapterInterface.zep.php similarity index 93% rename from src/Phalcon/Storage/Adapter/AdapterInterface.php rename to src/Storage/Adapter/AdapterInterface.zep.php index 2387928a..aeef2847 100644 --- a/src/Phalcon/Storage/Adapter/AdapterInterface.php +++ b/src/Storage/Adapter/AdapterInterface.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Storage\Adapter; +use Phalcon\Storage\Serializer\SerializerInterface; + /** * Interface for Phalcon\Logger adapters */ @@ -43,7 +45,7 @@ public function delete(string $key): bool; * Reads data from the adapter * * @param string $key - * @param mixed $defaultValue + * @param mixed|null $defaultValue * * @return mixed */ public function get(string $key, $defaultValue = null); @@ -93,8 +95,9 @@ public function increment(string $key, int $value = 1); * * @param string $key * @param mixed $value - * @param mixed $ttl + * @param \DateInterval|int|null $ttl * @return bool */ public function set(string $key, $value, $ttl = null): bool; + } diff --git a/src/Phalcon/Storage/Adapter/Apcu.php b/src/Storage/Adapter/Apcu.zep.php similarity index 85% rename from src/Phalcon/Storage/Adapter/Apcu.php rename to src/Storage/Adapter/Apcu.zep.php index 00d9940b..f9f464b3 100644 --- a/src/Phalcon/Storage/Adapter/Apcu.php +++ b/src/Storage/Adapter/Apcu.zep.php @@ -9,6 +9,12 @@ */ namespace Phalcon\Storage\Adapter; +use APCuIterator; +use Phalcon\Helper\Arr; +use Phalcon\Storage\Exception; +use Phalcon\Storage\SerializerFactory; +use Phalcon\Storage\Serializer\SerializerInterface; + /** * Apcu adapter */ @@ -17,7 +23,7 @@ class Apcu extends \Phalcon\Storage\Adapter\AbstractAdapter /** * @var array */ - protected $options = array(); + protected $options = []; /** @@ -31,7 +37,7 @@ class Apcu extends \Phalcon\Storage\Adapter\AbstractAdapter * ] * @param \Phalcon\Storage\SerializerFactory $factory */ - public function __construct(\Phalcon\Storage\SerializerFactory $factory, array $options = array()) + public function __construct(\Phalcon\Storage\SerializerFactory $factory, array $options = []) { } @@ -71,7 +77,7 @@ public function delete(string $key): bool * Reads data from the adapter * * @param string $key - * @param null $defaultValue + * @param mixed|null $defaultValue * * @return mixed */ @@ -124,9 +130,9 @@ public function increment(string $key, int $value = 1) /** * Stores data in the adapter * - * @param string $key - * @param mixed $value - * @param null $ttl + * @param string $key + * @param mixed $value + * @param \DateInterval|int|null $ttl * * @return bool * @throws \Exception @@ -134,4 +140,5 @@ public function increment(string $key, int $value = 1) public function set(string $key, $value, $ttl = null): bool { } + } diff --git a/src/Phalcon/Storage/Adapter/Libmemcached.php b/src/Storage/Adapter/Libmemcached.zep.php similarity index 95% rename from src/Phalcon/Storage/Adapter/Libmemcached.php rename to src/Storage/Adapter/Libmemcached.zep.php index 6e7d58fd..a50f6b94 100644 --- a/src/Phalcon/Storage/Adapter/Libmemcached.php +++ b/src/Storage/Adapter/Libmemcached.zep.php @@ -22,7 +22,7 @@ class Libmemcached extends \Phalcon\Storage\Adapter\AbstractAdapter /** * @var array */ - protected $options = array(); + protected $options = []; /** @@ -43,7 +43,7 @@ class Libmemcached extends \Phalcon\Storage\Adapter\AbstractAdapter * ] * @param \Phalcon\Storage\SerializerFactory $factory */ - public function __construct(\Phalcon\Storage\SerializerFactory $factory, array $options = array()) + public function __construct(\Phalcon\Storage\SerializerFactory $factory, array $options = []) { } @@ -84,7 +84,7 @@ public function delete(string $key): bool * Reads data from the adapter * * @param string $key - * @param null $defaultValue + * @param mixed|null $defaultValue * * @return mixed * @throws Exception @@ -144,8 +144,7 @@ public function increment(string $key, int $value = 1) * * @param string $key * @param mixed $value - * @param null $ttl - * + * @param \DateInterval|int|null $ttl * * @return bool * @throws Exception */ @@ -162,4 +161,5 @@ public function set(string $key, $value, $ttl = null): bool private function setSerializer(\Memcached $connection) { } + } diff --git a/src/Phalcon/Storage/Adapter/Memory.php b/src/Storage/Adapter/Memory.zep.php similarity index 96% rename from src/Phalcon/Storage/Adapter/Memory.php rename to src/Storage/Adapter/Memory.zep.php index 6f3883ea..6b772de5 100644 --- a/src/Phalcon/Storage/Adapter/Memory.php +++ b/src/Storage/Adapter/Memory.zep.php @@ -29,7 +29,7 @@ class Memory extends \Phalcon\Storage\Adapter\AbstractAdapter /** * @var array */ - protected $options = array(); + protected $options = []; /** @@ -43,7 +43,7 @@ class Memory extends \Phalcon\Storage\Adapter\AbstractAdapter * ] * @param \Phalcon\Storage\SerializerFactory $factory */ - public function __construct(\Phalcon\Storage\SerializerFactory $factory, array $options = array()) + public function __construct(\Phalcon\Storage\SerializerFactory $factory, array $options = []) { } @@ -138,11 +138,11 @@ public function increment(string $key, int $value = 1) * * @param string $key * @param mixed $value - * @param null $ttl - * + * @param \DateInterval|int|null $ttl * * @return bool */ public function set(string $key, $value, $ttl = null): bool { } + } diff --git a/src/Phalcon/Storage/Adapter/Redis.php b/src/Storage/Adapter/Redis.zep.php similarity index 92% rename from src/Phalcon/Storage/Adapter/Redis.php rename to src/Storage/Adapter/Redis.zep.php index 5e0009a1..046ef7d6 100644 --- a/src/Phalcon/Storage/Adapter/Redis.php +++ b/src/Storage/Adapter/Redis.zep.php @@ -22,7 +22,7 @@ class Redis extends \Phalcon\Storage\Adapter\AbstractAdapter /** * @var array */ - protected $options = array(); + protected $options = []; /** @@ -35,6 +35,9 @@ class Redis extends \Phalcon\Storage\Adapter\AbstractAdapter * 'persistent' => false, * 'auth' => '', * 'socket' => '', + * 'connectionTimeout' => 0, + * 'retryInterval' => null, + * 'readTimeout' => 0, * 'defaultSerializer' => 'Php', * 'lifetime' => 3600, * 'serializer' => null, @@ -42,7 +45,7 @@ class Redis extends \Phalcon\Storage\Adapter\AbstractAdapter * ] * @param \Phalcon\Storage\SerializerFactory $factory */ - public function __construct(\Phalcon\Storage\SerializerFactory $factory, array $options = array()) + public function __construct(\Phalcon\Storage\SerializerFactory $factory, array $options = []) { } @@ -85,8 +88,7 @@ public function delete(string $key): bool * Reads data from the adapter * * @param string $key - * @param null $defaultValue - * + * @param mixed|null $defaultValue * * @return mixed * @throws Exception */ @@ -147,8 +149,7 @@ public function increment(string $key, int $value = 1) * * @param string $key * @param mixed $value - * @param null $ttl - * + * @param \DateInterval|int|null $ttl * * @return bool * @throws Exception */ @@ -165,4 +166,5 @@ public function set(string $key, $value, $ttl = null): bool private function setSerializer(\Redis $connection) { } + } diff --git a/src/Phalcon/Storage/Adapter/Stream.php b/src/Storage/Adapter/Stream.zep.php similarity index 95% rename from src/Phalcon/Storage/Adapter/Stream.php rename to src/Storage/Adapter/Stream.zep.php index 9abc7e46..7515586e 100644 --- a/src/Phalcon/Storage/Adapter/Stream.php +++ b/src/Storage/Adapter/Stream.zep.php @@ -32,7 +32,7 @@ class Stream extends \Phalcon\Storage\Adapter\AbstractAdapter /** * @var array */ - protected $options = array(); + protected $options = []; /** @@ -49,7 +49,7 @@ class Stream extends \Phalcon\Storage\Adapter\AbstractAdapter * @throws Exception * @param \Phalcon\Storage\SerializerFactory $factory */ - public function __construct(\Phalcon\Storage\SerializerFactory $factory, array $options = array()) + public function __construct(\Phalcon\Storage\SerializerFactory $factory, array $options = []) { } @@ -90,9 +90,8 @@ public function delete(string $key): bool * Reads data from the adapter * * @param string $key - * @param null $defaultValue - * - * @return mixed|null + * @param mixed|null $defaultValue * + * @return mixed */ public function get(string $key, $defaultValue = null) { @@ -146,7 +145,7 @@ public function increment(string $key, int $value = 1) * * @param string $key * @param mixed $value - * @param DateInterval|int|null $ttl + * @param \DateInterval|int|null $ttl * * @return bool * @throws \Exception @@ -207,4 +206,5 @@ private function getPayload(string $filepath): array private function isExpired(array $payload): bool { } + } diff --git a/src/Phalcon/Storage/AdapterFactory.php b/src/Storage/AdapterFactory.zep.php similarity index 91% rename from src/Phalcon/Storage/AdapterFactory.php rename to src/Storage/AdapterFactory.zep.php index a27a2eb1..862c8f81 100644 --- a/src/Phalcon/Storage/AdapterFactory.php +++ b/src/Storage/AdapterFactory.zep.php @@ -22,6 +22,9 @@ */ class AdapterFactory extends AbstractFactory { + + protected $exception = 'Phalcon\\\\Storage\\\\Exception'; + /** * @var SerializerFactory */ @@ -34,7 +37,7 @@ class AdapterFactory extends AbstractFactory * @param SerializerFactory $factory * @param array $services */ - public function __construct(SerializerFactory $factory, array $services = array()) + public function __construct(SerializerFactory $factory, array $services = []) { } @@ -64,7 +67,7 @@ public function __construct(SerializerFactory $factory, array $services = array( * @param string $name * @return AdapterInterface */ - public function newInstance(string $name, array $options = array()): AdapterInterface + public function newInstance(string $name, array $options = []): AdapterInterface { } @@ -74,4 +77,5 @@ public function newInstance(string $name, array $options = array()): AdapterInte protected function getAdapters(): array { } + } diff --git a/src/Phalcon/Storage/Exception.php b/src/Storage/Exception.zep.php similarity index 100% rename from src/Phalcon/Storage/Exception.php rename to src/Storage/Exception.zep.php diff --git a/src/Phalcon/Storage/Serializer/AbstractSerializer.php b/src/Storage/Serializer/AbstractSerializer.zep.php similarity index 93% rename from src/Phalcon/Storage/Serializer/AbstractSerializer.php rename to src/Storage/Serializer/AbstractSerializer.zep.php index 7dbe671d..168cf653 100644 --- a/src/Phalcon/Storage/Serializer/AbstractSerializer.php +++ b/src/Storage/Serializer/AbstractSerializer.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Storage\Serializer; +use Phalcon\Storage\Exception; + /** * This file is part of the Phalcon Framework. * @@ -55,7 +57,8 @@ public function getData() * @param mixed $data * @return void */ - public function setData($data) + public function setData($data): void { } + } diff --git a/src/Phalcon/Storage/Serializer/Base64.php b/src/Storage/Serializer/Base64.zep.php similarity index 91% rename from src/Phalcon/Storage/Serializer/Base64.php rename to src/Storage/Serializer/Base64.zep.php index 45363d98..9f0c1f43 100644 --- a/src/Phalcon/Storage/Serializer/Base64.php +++ b/src/Storage/Serializer/Base64.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Storage\Serializer; +use InvalidArgumentException; + /** * This file is part of the Phalcon Framework. * @@ -35,7 +37,8 @@ public function serialize(): string * @param mixed $data * @return void */ - public function unserialize($data) + public function unserialize($data): void { } + } diff --git a/src/Phalcon/Storage/Serializer/Igbinary.php b/src/Storage/Serializer/Igbinary.zep.php similarity index 94% rename from src/Phalcon/Storage/Serializer/Igbinary.php rename to src/Storage/Serializer/Igbinary.zep.php index c3db0cbe..28851a5c 100644 --- a/src/Phalcon/Storage/Serializer/Igbinary.php +++ b/src/Storage/Serializer/Igbinary.zep.php @@ -35,7 +35,8 @@ public function serialize(): string * @param mixed $data * @return void */ - public function unserialize($data) + public function unserialize($data): void { } + } diff --git a/src/Phalcon/Storage/Serializer/Json.php b/src/Storage/Serializer/Json.zep.php similarity index 95% rename from src/Phalcon/Storage/Serializer/Json.php rename to src/Storage/Serializer/Json.zep.php index 6e148320..46d678ad 100644 --- a/src/Phalcon/Storage/Serializer/Json.php +++ b/src/Storage/Serializer/Json.zep.php @@ -39,7 +39,8 @@ public function serialize(): string * @param mixed $data * @return void */ - public function unserialize($data) + public function unserialize($data): void { } + } diff --git a/src/Phalcon/Storage/Serializer/Msgpack.php b/src/Storage/Serializer/Msgpack.zep.php similarity index 94% rename from src/Phalcon/Storage/Serializer/Msgpack.php rename to src/Storage/Serializer/Msgpack.zep.php index 44c730ea..a4e30e77 100644 --- a/src/Phalcon/Storage/Serializer/Msgpack.php +++ b/src/Storage/Serializer/Msgpack.zep.php @@ -35,7 +35,8 @@ public function serialize(): ?string * @param mixed $data * @return void */ - public function unserialize($data) + public function unserialize($data): void { } + } diff --git a/src/Phalcon/Storage/Serializer/None.php b/src/Storage/Serializer/None.zep.php similarity index 94% rename from src/Phalcon/Storage/Serializer/None.php rename to src/Storage/Serializer/None.zep.php index 5f6931f4..1566e471 100644 --- a/src/Phalcon/Storage/Serializer/None.php +++ b/src/Storage/Serializer/None.zep.php @@ -37,7 +37,8 @@ public function serialize(): string * @param mixed $data * @return void */ - public function unserialize($data) + public function unserialize($data): void { } + } diff --git a/src/Phalcon/Storage/Serializer/Php.php b/src/Storage/Serializer/Php.zep.php similarity index 94% rename from src/Phalcon/Storage/Serializer/Php.php rename to src/Storage/Serializer/Php.zep.php index a606e340..d5b9ebca 100644 --- a/src/Phalcon/Storage/Serializer/Php.php +++ b/src/Storage/Serializer/Php.zep.php @@ -38,7 +38,8 @@ public function serialize(): string * @param mixed $data * @return void */ - public function unserialize($data) + public function unserialize($data): void { } + } diff --git a/src/Phalcon/Storage/Serializer/SerializerInterface.php b/src/Storage/Serializer/SerializerInterface.zep.php similarity index 94% rename from src/Phalcon/Storage/Serializer/SerializerInterface.php rename to src/Storage/Serializer/SerializerInterface.zep.php index 0e567290..1f483de8 100644 --- a/src/Phalcon/Storage/Serializer/SerializerInterface.php +++ b/src/Storage/Serializer/SerializerInterface.zep.php @@ -31,5 +31,6 @@ public function getData(); * @param mixed $data * @return void */ - public function setData($data); + public function setData($data): void; + } diff --git a/src/Phalcon/Storage/SerializerFactory.php b/src/Storage/SerializerFactory.zep.php similarity index 89% rename from src/Phalcon/Storage/SerializerFactory.php rename to src/Storage/SerializerFactory.zep.php index 0ae0be18..6120dc77 100644 --- a/src/Phalcon/Storage/SerializerFactory.php +++ b/src/Storage/SerializerFactory.zep.php @@ -23,12 +23,15 @@ class SerializerFactory extends AbstractFactory { + protected $exception = 'Phalcon\\\\Storage\\\\Exception'; + + /** * SerializerFactory constructor. * * @param array $services */ - public function __construct(array $services = array()) + public function __construct(array $services = []) { } @@ -47,4 +50,5 @@ public function newInstance(string $name): SerializerInterface protected function getAdapters(): array { } + } diff --git a/src/Phalcon/Debug.php b/src/Support/Debug.zep.php similarity index 91% rename from src/Phalcon/Debug.php rename to src/Support/Debug.zep.php index 8bc9cc36..a4b4a165 100644 --- a/src/Phalcon/Debug.php +++ b/src/Support/Debug.zep.php @@ -7,7 +7,13 @@ * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. */ -namespace Phalcon; +namespace Phalcon\Support; + +use ErrorException; +use Phalcon\Helper\Arr; +use Phalcon\Tag; +use ReflectionClass; +use ReflectionFunction; /** * Provides debug capabilities to Phalcon applications @@ -17,10 +23,12 @@ class Debug /** * @var array */ - protected $blacklist = array('request' => array(), 'server' => array()); - + protected $blacklist = ['request' => [], 'server' => []]; - protected $data; + /** + * @var array + */ + protected $data = []; /** * @var bool @@ -30,7 +38,7 @@ class Debug /** * @var bool */ - protected static $isActive; + static protected $isActive = false; /** * @var bool @@ -50,7 +58,7 @@ class Debug /** * @var string */ - protected $uri = 'https://assets.phalcon.io/debug/4.0.x/'; + protected $uri = 'https://assets.phalcon.io/debug/5.0.x/'; /** @@ -105,7 +113,7 @@ public function getVersion(): string * * @return void */ - public function halt() + public function halt(): void { } @@ -158,7 +166,15 @@ public function onUncaughtException(\Throwable $exception): bool * @param mixed $context * @return void */ - public function onUncaughtLowSeverity($severity, $message, $file, $line, $context) + public function onUncaughtLowSeverity($severity, $message, $file, $line, $context): void + { + } + + /** + * @param \Throwable $exception + * @return string + */ + public function renderHtml(\Throwable $exception): string { } @@ -255,11 +271,4 @@ final protected function showTraceItem(int $n, array $trace): string { } - /** - * @param \Throwable $exception - * @return string - */ - public function renderHtml(\Throwable $exception): string - { - } } diff --git a/src/Phalcon/Debug/Dump.php b/src/Support/Debug/Dump.zep.php similarity index 90% rename from src/Phalcon/Debug/Dump.php rename to src/Support/Debug/Dump.zep.php index aad14563..2c703e77 100644 --- a/src/Phalcon/Debug/Dump.php +++ b/src/Support/Debug/Dump.zep.php @@ -7,7 +7,14 @@ * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. */ -namespace Phalcon\Debug; +namespace Phalcon\Support\Debug; + +use Phalcon\Di; +use Phalcon\Helper\Json; +use Reflection; +use ReflectionClass; +use ReflectionProperty; +use stdClass; /** * Dumps information about a variable(s) @@ -36,12 +43,12 @@ class Dump /** * @var array */ - protected $methods = array(); + protected $methods = []; /** * @var array */ - protected $styles = array(); + protected $styles = []; /** @@ -64,7 +71,7 @@ public function setDetailed(bool $detailed) * @param array $styles * @param bool $detailed */ - public function __construct(array $styles = array(), bool $detailed = false) + public function __construct(array $styles = [], bool $detailed = false) { } @@ -94,7 +101,7 @@ public function one($variable, string $name = null): string * @param array $styles * @return array */ - public function setStyles(array $styles = array()): array + public function setStyles(array $styles = []): array { } @@ -175,4 +182,5 @@ protected function getStyle(string $type): string protected function output($variable, string $name = null, int $tab = 1): string { } + } diff --git a/src/Phalcon/Debug/Exception.php b/src/Support/Debug/Exception.zep.php similarity index 91% rename from src/Phalcon/Debug/Exception.php rename to src/Support/Debug/Exception.zep.php index 9b59519b..76f526d6 100644 --- a/src/Phalcon/Debug/Exception.php +++ b/src/Support/Debug/Exception.zep.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. */ -namespace Phalcon\Debug; +namespace Phalcon\Support\Debug; /** * Exceptions thrown in Phalcon\Debug will use this class diff --git a/src/Support/Exception.zep.php b/src/Support/Exception.zep.php new file mode 100644 index 00000000..b1dadc36 --- /dev/null +++ b/src/Support/Exception.zep.php @@ -0,0 +1,18 @@ + + * + * For the full copyright and license information, please view the LICENSE.txt + * file that was distributed with this source code. + */ +namespace Phalcon\Support; + +/** + * Phalcon\Support\Exception + */ +class Exception extends \Exception +{ + +} diff --git a/src/Support/Helper/Str/Interpolate.zep.php b/src/Support/Helper/Str/Interpolate.zep.php new file mode 100644 index 00000000..0cba361e --- /dev/null +++ b/src/Support/Helper/Str/Interpolate.zep.php @@ -0,0 +1,38 @@ + + * + * For the full copyright and license information, please view the LICENSE.txt + * file that was distributed with this source code. + */ +namespace Phalcon\Support\Helper\Str; + +/** + * This file is part of the Phalcon Framework. + * + * (c) Phalcon Team + * + * For the full copyright and license information, please view the LICENSE.txt + * file that was distributed with this source code. + */ +class Interpolate +{ + + /** + * Interpolates context values into the message placeholders + * + * @see http://www.php-fig.org/psr/psr-3/ Section 1.2 Message + * + * @param string $message + * @param array $context + * @param string $leftToken + * @param string $rightToken + * @return string + */ + public function __invoke(string $message, array $context = [], string $leftToken = '%', string $rightToken = '%'): string + { + } + +} diff --git a/src/Support/HelperFactory.zep.php b/src/Support/HelperFactory.zep.php new file mode 100644 index 00000000..bdae8013 --- /dev/null +++ b/src/Support/HelperFactory.zep.php @@ -0,0 +1,60 @@ + + * + * For the full copyright and license information, please view the LICENSE.txt + * file that was distributed with this source code. + */ +namespace Phalcon\Support; + +use Phalcon\Factory\AbstractFactory; + +/** + * ServiceLocator implementation for helpers + */ +class HelperFactory extends AbstractFactory +{ + + protected $exception = 'Phalcon\\\\Support\\\\Exception'; + + + /** + * HelperFactory constructor. + * + * @param array $services + */ + public function __construct(array $services = []) + { + } + + /** + * @param string $name + * @param array $arguments + * + * @return mixed + * @throws Exception + */ + public function __call(string $name, array $arguments) + { + } + + /** + * @param string $name + * + * @return mixed + * @throws Exception + */ + public function newInstance(string $name) + { + } + + /** + * @return string[] + */ + protected function getAdapters(): array + { + } + +} diff --git a/src/Phalcon/Version.php b/src/Support/Version.zep.php similarity index 55% rename from src/Phalcon/Version.php rename to src/Support/Version.zep.php index 254272fc..073f7483 100644 --- a/src/Phalcon/Version.php +++ b/src/Support/Version.zep.php @@ -7,7 +7,7 @@ * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. */ -namespace Phalcon; +namespace Phalcon\Support; /** * This class allows to get the installed version of the framework @@ -18,9 +18,8 @@ class Version * The constant referencing the major version. Returns 0 * * ```php - * echo Phalcon\Version::getPart( - * Phalcon\Version::VERSION_MAJOR - * ); + * echo (new Phalcon\Support\Version()) + * ->getPart(Phalcon\Support\Version::VERSION_MAJOR); * ``` */ const VERSION_MAJOR = 0; @@ -29,9 +28,8 @@ class Version * The constant referencing the major version. Returns 1 * * ```php - * echo Phalcon\Version::getPart( - * Phalcon\Version::VERSION_MEDIUM - * ); + * echo (new Phalcon\Support\Version()) + * ->getPart(Phalcon\Support\Version::VERSION_MEDIUM); * ``` */ const VERSION_MEDIUM = 1; @@ -40,9 +38,8 @@ class Version * The constant referencing the major version. Returns 2 * * ```php - * echo Phalcon\Version::getPart( - * Phalcon\Version::VERSION_MINOR - * ); + * echo (new Phalcon\Support\Version()) + * ->getPart(Phalcon\Support\Version::VERSION_MINOR); * ``` */ const VERSION_MINOR = 2; @@ -51,9 +48,8 @@ class Version * The constant referencing the major version. Returns 3 * * ```php - * echo Phalcon\Version::getPart( - * Phalcon\Version::VERSION_SPECIAL - * ); + * echo (new Phalcon\Support\Version()) + * ->getPart(Phalcon\Support\Version::VERSION_SPECIAL); * ``` */ const VERSION_SPECIAL = 3; @@ -62,9 +58,8 @@ class Version * The constant referencing the major version. Returns 4 * * ```php - * echo Phalcon\Version::getPart( - * Phalcon\Version::VERSION_SPECIAL_NUMBER - * ); + * echo (new Phalcon\Support\Version()) + * ->getPart(Phalcon\Support\Version::VERSION_SPECIAL_NUMBER); * ``` */ const VERSION_SPECIAL_NUMBER = 4; @@ -80,39 +75,9 @@ class Version * D - Special release: 1 = alpha, 2 = beta, 3 = RC, 4 = stable * E - Special release version i.e. RC1, Beta2 etc. * - * @todo Remove in v5 - * @deprecated Use getVersion() * @return array */ - protected static function _getVersion(): array - { - } - - /** - * Area where the version number is set. The format is as follows: - * ABBCCDE - * - * A - Major version - * B - Med version (two digits) - * C - Min version (two digits) - * D - Special release: 1 = alpha, 2 = beta, 3 = RC, 4 = stable - * E - Special release version i.e. RC1, Beta2 etc. - * - * @return array - */ - protected static function getVersion(): array - { - } - - /** - * Translates a number to a special release. - * - * @todo Remove in v5.0 - * @deprecated Use getSpecial() - * @param int $special - * @return string - */ - final protected static function _getSpecial(int $special): string + protected function getVersion(): array { } @@ -122,7 +87,7 @@ final protected static function _getSpecial(int $special): string * @param int $special * @return string */ - final protected static function getSpecial(int $special): string + protected final function getSpecial(int $special): string { } @@ -130,12 +95,12 @@ final protected static function getSpecial(int $special): string * Returns the active version (string) * * ```php - * echo Phalcon\Version::get(); + * echo (new Phalcon\Version())->get(); * ``` * * @return string */ - public static function get(): string + public function get(): string { } @@ -143,12 +108,12 @@ public static function get(): string * Returns the numeric active version * * ```php - * echo Phalcon\Version::getId(); + * echo (new Phalcon\Version())->getId(); * ``` * * @return string */ - public static function getId(): string + public function getId(): string { } @@ -157,15 +122,14 @@ public static function getId(): string * it will return the full version * * ```php - * echo Phalcon\Version::getPart( - * Phalcon\Version::VERSION_MAJOR - * ); + * echo (new Phalcon\Version())->getPart(Phalcon\Version::VERSION_MAJOR); * ``` * * @param int $part * @return string */ - public static function getPart(int $part): string + public function getPart(int $part): string { } + } diff --git a/src/Phalcon/Tag.php b/src/Tag.zep.php similarity index 91% rename from src/Phalcon/Tag.php rename to src/Tag.zep.php index 59e4eb8e..2846e51e 100644 --- a/src/Phalcon/Tag.php +++ b/src/Tag.zep.php @@ -59,50 +59,70 @@ class Tag const XHTML5 = 11; - - protected static $autoEscape = true; + /** + * @var bool + */ + static protected $autoEscape = true; /** * DI Container + * + * @var DiInterface|null */ - protected static $container; + static protected $container = null; /** * Pre-assigned values for components + * + * @var array */ - protected static $displayValues; - - - protected static $documentAppendTitle = null; + static protected $displayValues; + /** + * @var array + */ + static protected $documentAppendTitle; - protected static $documentPrependTitle = null; + /** + * @var array + */ + static protected $documentPrependTitle; /** * HTML document title + * + * @var string|null */ - protected static $documentTitle = null; - - - protected static $documentTitleSeparator = null; - - - protected static $documentType = 11; + static protected $documentTitle = null; + /** + * @var string|null + */ + static protected $documentTitleSeparator = null; - protected static $escaperService = null; + /** + * @var int + */ + static protected $documentType = 11; + /** + * @var EscaperInterface|null + */ + static protected $escaperService = null; - protected static $urlService = null; + /** + * @var UrlInterface|null + */ + static protected $urlService = null; /** * Appends a text to current document title * - * @param mixed $title + * @param array|string $title * @return void */ - public static function appendTitle($title) + public static function appendTitle($title): void { } @@ -188,7 +208,7 @@ public static function dateTimeLocalField($parameters): string * @param mixed $value * @return void */ - public static function displayTo(string $id, $value) + public static function displayTo(string $id, $value): void { } @@ -274,7 +294,7 @@ public static function getDocType(): string * Obtains the 'escaper' service if required * * @param array $params - * @return \Phalcon\Escaper\EscaperInterface|null + * @return EscaperInterface|null */ public static function getEscaper(array $params): ?EscaperInterface { @@ -334,7 +354,7 @@ public static function getUrlService(): UrlInterface * @param mixed $name * @param array $params */ - public static function getValue($name, array $params = array()) + public static function getValue($name, array $params = []) { } @@ -485,10 +505,10 @@ public static function passwordField($parameters): string /** * Prepends a text to current document title * - * @param mixed $title + * @param array|string $title * @return void */ - public static function prependTitle($title) + public static function prependTitle($title): void { } @@ -575,7 +595,7 @@ public static function renderTitle(bool $prepend = true, bool $append = true): s * @deprecated * @return void */ - public static function resetInput() + public static function resetInput(): void { } @@ -637,7 +657,7 @@ public static function selectStatic($parameters, $data = null): string * @param bool $autoescape * @return void */ - public static function setAutoescape(bool $autoescape) + public static function setAutoescape(bool $autoescape): void { } @@ -648,7 +668,7 @@ public static function setAutoescape(bool $autoescape) * @param mixed $value * @return void */ - public static function setDefault(string $id, $value) + public static function setDefault(string $id, $value): void { } @@ -659,7 +679,7 @@ public static function setDefault(string $id, $value) * @param bool $merge * @return void */ - public static function setDefaults(array $values, bool $merge = false) + public static function setDefaults(array $values, bool $merge = false): void { } @@ -669,7 +689,7 @@ public static function setDefaults(array $values, bool $merge = false) * @param \Phalcon\Di\DiInterface $container * @return void */ - public static function setDI(\Phalcon\Di\DiInterface $container) + public static function setDI(\Phalcon\Di\DiInterface $container): void { } @@ -679,7 +699,7 @@ public static function setDI(\Phalcon\Di\DiInterface $container) * @param int $doctype * @return void */ - public static function setDocType(int $doctype) + public static function setDocType(int $doctype): void { } @@ -689,7 +709,7 @@ public static function setDocType(int $doctype) * @param string $title * @return void */ - public static function setTitle(string $title) + public static function setTitle(string $title): void { } @@ -699,7 +719,7 @@ public static function setTitle(string $title) * @param string $titleSeparator * @return void */ - public static function setTitleSeparator(string $titleSeparator) + public static function setTitleSeparator(string $titleSeparator): void { } @@ -857,7 +877,7 @@ public static function weekField($parameters): string * @param bool $asValue * @return string */ - final protected static function inputField(string $type, $parameters, bool $asValue = false): string + static final protected function inputField(string $type, $parameters, bool $asValue = false): string { } @@ -868,7 +888,8 @@ final protected static function inputField(string $type, $parameters, bool $asVa * @param mixed $parameters * @return string */ - final protected static function inputFieldChecked(string $type, $parameters): string + static final protected function inputFieldChecked(string $type, $parameters): string { } + } diff --git a/src/Phalcon/Tag/Exception.php b/src/Tag/Exception.zep.php similarity index 100% rename from src/Phalcon/Tag/Exception.php rename to src/Tag/Exception.zep.php diff --git a/src/Phalcon/Tag/Select.php b/src/Tag/Select.zep.php similarity index 93% rename from src/Phalcon/Tag/Select.php rename to src/Tag/Select.zep.php index 5c2584ce..aff7da70 100644 --- a/src/Phalcon/Tag/Select.php +++ b/src/Tag/Select.zep.php @@ -9,6 +9,10 @@ */ namespace Phalcon\Tag; +use Phalcon\Tag as BaseTag; +use Phalcon\Escaper\EscaperInterface; +use Phalcon\Mvc\Model\ResultsetInterface; + /** * Phalcon\Tag\Select * @@ -60,4 +64,5 @@ private static function optionsFromArray(array $data, $value, string $closeOptio private static function optionsFromResultset(\Phalcon\Mvc\Model\ResultsetInterface $resultset, $using, $value, string $closeOption): string { } + } diff --git a/src/Phalcon/Text.php b/src/Text.zep.php similarity index 99% rename from src/Phalcon/Text.php rename to src/Text.zep.php index 9b174342..812f6d5c 100644 --- a/src/Phalcon/Text.php +++ b/src/Text.zep.php @@ -73,7 +73,6 @@ public static function camelize(string $text, $delimiter = null): string * @param string $a * @param string $b * @param string ...N - * @param string ...N * @return string */ public static function concat(): string @@ -208,7 +207,6 @@ public static function startsWith(string $text, string $start, bool $ignoreCase * * @param int $type * @param int $length - * * @return string */ public static function random(int $type = 0, int $length = 8): string @@ -279,4 +277,5 @@ public static function underscore(string $text): string public static function upper(string $text, string $encoding = 'UTF-8'): string { } + } diff --git a/src/Phalcon/Translate/Adapter/AbstractAdapter.php b/src/Translate/Adapter/AbstractAdapter.zep.php similarity index 91% rename from src/Phalcon/Translate/Adapter/AbstractAdapter.php rename to src/Translate/Adapter/AbstractAdapter.zep.php index 5c2cb5c4..5083375b 100644 --- a/src/Phalcon/Translate/Adapter/AbstractAdapter.php +++ b/src/Translate/Adapter/AbstractAdapter.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Translate\Adapter; +use Phalcon\Helper\Arr; +use Phalcon\Translate\Exception; use Phalcon\Translate\InterpolatorFactory; /** @@ -44,7 +46,7 @@ public function __construct(\Phalcon\Translate\InterpolatorFactory $interpolator * @param string $translateKey * @return string */ - public function _(string $translateKey, array $placeholders = array()): string + public function _(string $translateKey, array $placeholders = []): string { } @@ -75,7 +77,7 @@ public function offsetGet($translateKey) * @param mixed $offset * @return void */ - public function offsetSet($offset, $value) + public function offsetSet($offset, $value): void { } @@ -85,7 +87,7 @@ public function offsetSet($offset, $value) * @param mixed $offset * @return void */ - public function offsetUnset($offset) + public function offsetUnset($offset): void { } @@ -96,7 +98,7 @@ public function offsetUnset($offset) * @param string $translateKey * @return string */ - public function t(string $translateKey, array $placeholders = array()): string + public function t(string $translateKey, array $placeholders = []): string { } @@ -107,7 +109,8 @@ public function t(string $translateKey, array $placeholders = array()): string * @param array $placeholders * @return string */ - protected function replacePlaceholders(string $translation, array $placeholders = array()): string + protected function replacePlaceholders(string $translation, array $placeholders = []): string { } + } diff --git a/src/Phalcon/Translate/Adapter/AdapterInterface.php b/src/Translate/Adapter/AdapterInterface.zep.php similarity index 96% rename from src/Phalcon/Translate/Adapter/AdapterInterface.php rename to src/Translate/Adapter/AdapterInterface.zep.php index 214bb99f..37d6ea75 100644 --- a/src/Phalcon/Translate/Adapter/AdapterInterface.php +++ b/src/Translate/Adapter/AdapterInterface.zep.php @@ -32,7 +32,7 @@ public function exists(string $index): bool; * @param string $translateKey * @return string */ - public function query(string $translateKey, array $placeholders = array()): string; + public function query(string $translateKey, array $placeholders = []): string; /** * Returns the translation string of the given key @@ -41,5 +41,6 @@ public function query(string $translateKey, array $placeholders = array()): stri * @param string $translateKey * @return string */ - public function t(string $translateKey, array $placeholders = array()): string; + public function t(string $translateKey, array $placeholders = []): string; + } diff --git a/src/Phalcon/Translate/Adapter/Csv.php b/src/Translate/Adapter/Csv.zep.php similarity index 84% rename from src/Phalcon/Translate/Adapter/Csv.php rename to src/Translate/Adapter/Csv.zep.php index 73fb0ccf..d8f00030 100644 --- a/src/Phalcon/Translate/Adapter/Csv.php +++ b/src/Translate/Adapter/Csv.zep.php @@ -9,6 +9,10 @@ */ namespace Phalcon\Translate\Adapter; +use ArrayAccess; +use Phalcon\Translate\Exception; +use Phalcon\Translate\InterpolatorFactory; + /** * Phalcon\Translate\Adapter\Csv * @@ -19,7 +23,7 @@ class Csv extends \Phalcon\Translate\Adapter\AbstractAdapter implements \ArrayAc /** * @var array */ - protected $translate = array(); + protected $translate = []; /** @@ -49,11 +53,11 @@ public function exists(string $index): bool /** * Returns the translation related to the given key * - * @param string $index + * @param string $translateKey * @param array $placeholders * @return string */ - public function query(string $index, array $placeholders = array()): string + public function query(string $translateKey, array $placeholders = []): string { } @@ -66,7 +70,8 @@ public function query(string $index, array $placeholders = array()): string * @param string $enclosure * @return void */ - private function load(string $file, int $length, string $delimiter, string $enclosure) + private function load(string $file, int $length, string $delimiter, string $enclosure): void { } + } diff --git a/src/Phalcon/Translate/Adapter/Gettext.php b/src/Translate/Adapter/Gettext.zep.php similarity index 88% rename from src/Phalcon/Translate/Adapter/Gettext.php rename to src/Translate/Adapter/Gettext.zep.php index 16c33aca..6856eb3a 100644 --- a/src/Phalcon/Translate/Adapter/Gettext.php +++ b/src/Translate/Adapter/Gettext.zep.php @@ -9,6 +9,10 @@ */ namespace Phalcon\Translate\Adapter; +use ArrayAccess; +use Phalcon\Translate\Exception; +use Phalcon\Translate\InterpolatorFactory; + /** * Phalcon\Translate\Adapter\Gettext * @@ -115,7 +119,7 @@ public function exists(string $index): bool * @param string $domain * @return string */ - public function nquery(string $msgid1, string $msgid2, int $count, array $placeholders = array(), string $domain = null): string + public function nquery(string $msgid1, string $msgid2, int $count, array $placeholders = [], string $domain = null): string { } @@ -126,11 +130,11 @@ public function nquery(string $msgid1, string $msgid2, int $count, array $placeh * $translator->query("你好 %name%!", ["name" => "Phalcon"]); * ``` * + * @param string $translateKey * @param array $placeholders - * @param string $index * @return string */ - public function query(string $index, array $placeholders = array()): string + public function query(string $translateKey, array $placeholders = []): string { } @@ -149,7 +153,7 @@ public function resetDomain(): string * @param string $domain * @return void */ - public function setDefaultDomain(string $domain) + public function setDefaultDomain(string $domain): void { } @@ -172,7 +176,7 @@ public function setDefaultDomain(string $domain) * @param string|array $directory The directory path or an array of directories and domains * @return void */ - public function setDirectory($directory) + public function setDirectory($directory): void { } @@ -198,10 +202,10 @@ public function setDomain($domain): string * ``` * * @param int $category - * @param string $locale + * @param array $localeArray * @return string|bool */ - public function setLocale(int $category, string $locale) + public function setLocale(int $category, array $localeArray = []) { } @@ -220,7 +224,8 @@ protected function getOptionsDefault(): array * @param array $options * @return void */ - protected function prepareOptions(array $options) + protected function prepareOptions(array $options): void { } + } diff --git a/src/Phalcon/Translate/Adapter/NativeArray.php b/src/Translate/Adapter/NativeArray.zep.php similarity index 91% rename from src/Phalcon/Translate/Adapter/NativeArray.php rename to src/Translate/Adapter/NativeArray.zep.php index 8bb8e759..6dc2721a 100644 --- a/src/Phalcon/Translate/Adapter/NativeArray.php +++ b/src/Translate/Adapter/NativeArray.zep.php @@ -23,7 +23,7 @@ class NativeArray extends \Phalcon\Translate\Adapter\AbstractAdapter implements /** * @var array */ - private $translate; + private $translate = []; /** * @var bool @@ -67,11 +67,12 @@ public function notFound(string $index): string /** * Returns the translation related to the given key * - * @param string $index + * @param string $translateKey * @param array $placeholders * @return string */ - public function query(string $index, array $placeholders = array()): string + public function query(string $translateKey, array $placeholders = []): string { } + } diff --git a/src/Phalcon/Translate/Exception.php b/src/Translate/Exception.zep.php similarity index 100% rename from src/Phalcon/Translate/Exception.php rename to src/Translate/Exception.zep.php diff --git a/src/Phalcon/Translate/Interpolator/AssociativeArray.php b/src/Translate/Interpolator/AssociativeArray.zep.php similarity index 91% rename from src/Phalcon/Translate/Interpolator/AssociativeArray.php rename to src/Translate/Interpolator/AssociativeArray.zep.php index ea3aad8e..1c5a25f8 100644 --- a/src/Phalcon/Translate/Interpolator/AssociativeArray.php +++ b/src/Translate/Interpolator/AssociativeArray.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Translate\Interpolator; +use Phalcon\Support\Helper\Str\Interpolate; + /** * This file is part of the Phalcon Framework. * @@ -27,7 +29,8 @@ class AssociativeArray implements \Phalcon\Translate\Interpolator\InterpolatorIn * @param array $placeholders * @return string */ - public function replacePlaceholders(string $translation, array $placeholders = array()): string + public function replacePlaceholders(string $translation, array $placeholders = []): string { } + } diff --git a/src/Phalcon/Translate/Interpolator/IndexedArray.php b/src/Translate/Interpolator/IndexedArray.zep.php similarity index 95% rename from src/Phalcon/Translate/Interpolator/IndexedArray.php rename to src/Translate/Interpolator/IndexedArray.zep.php index d363ba26..e2103d76 100644 --- a/src/Phalcon/Translate/Interpolator/IndexedArray.php +++ b/src/Translate/Interpolator/IndexedArray.zep.php @@ -27,7 +27,8 @@ class IndexedArray implements \Phalcon\Translate\Interpolator\InterpolatorInterf * @param array $placeholders * @return string */ - public function replacePlaceholders(string $translation, array $placeholders = array()): string + public function replacePlaceholders(string $translation, array $placeholders = []): string { } + } diff --git a/src/Phalcon/Translate/Interpolator/InterpolatorInterface.php b/src/Translate/Interpolator/InterpolatorInterface.zep.php similarity index 94% rename from src/Phalcon/Translate/Interpolator/InterpolatorInterface.php rename to src/Translate/Interpolator/InterpolatorInterface.zep.php index e3ab9ade..9339e092 100644 --- a/src/Phalcon/Translate/Interpolator/InterpolatorInterface.php +++ b/src/Translate/Interpolator/InterpolatorInterface.zep.php @@ -24,5 +24,6 @@ interface InterpolatorInterface * @param array $placeholders * @return string */ - public function replacePlaceholders(string $translation, array $placeholders = array()): string; + public function replacePlaceholders(string $translation, array $placeholders = []): string; + } diff --git a/src/Phalcon/Translate/InterpolatorFactory.php b/src/Translate/InterpolatorFactory.zep.php similarity index 89% rename from src/Phalcon/Translate/InterpolatorFactory.php rename to src/Translate/InterpolatorFactory.zep.php index cff10ad8..c14d6050 100644 --- a/src/Phalcon/Translate/InterpolatorFactory.php +++ b/src/Translate/InterpolatorFactory.zep.php @@ -23,12 +23,15 @@ class InterpolatorFactory extends AbstractFactory { + protected $exception = 'Phalcon\\\\Translate\\\\Exception'; + + /** * AdapterFactory constructor. * * @param array $services */ - public function __construct(array $services = array()) + public function __construct(array $services = []) { } @@ -48,4 +51,5 @@ public function newInstance(string $name): InterpolatorInterface protected function getAdapters(): array { } + } diff --git a/src/Phalcon/Translate/TranslateFactory.php b/src/Translate/TranslateFactory.zep.php similarity index 77% rename from src/Phalcon/Translate/TranslateFactory.php rename to src/Translate/TranslateFactory.zep.php index 14351a5b..7c26396c 100644 --- a/src/Phalcon/Translate/TranslateFactory.php +++ b/src/Translate/TranslateFactory.zep.php @@ -24,6 +24,9 @@ */ class TranslateFactory extends AbstractFactory { + + protected $exception = 'Phalcon\\\\Translate\\\\Exception'; + /** * @var InterpolatorFactory */ @@ -36,7 +39,7 @@ class TranslateFactory extends AbstractFactory * @param InterpolatorFactory $interpolator * @param array $services */ - public function __construct(InterpolatorFactory $interpolator, array $services = array()) + public function __construct(InterpolatorFactory $interpolator, array $services = []) { } @@ -57,19 +60,6 @@ public function __construct(InterpolatorFactory $interpolator, array $services = * ] * ] * @param mixed $config - * @param array|\Phalcon\Config = [ - * 'adapter' => 'ini, - * 'options' => [ - * 'content' => '', - * 'delimiter' => ';', - * 'enclosure' => '"', - * 'locale' => '', - * 'defaultDomain' => '', - * 'directory' => '', - * 'category' => '' - * 'triggerError' => false - * ] - * ] * @return mixed */ public function load($config) @@ -83,7 +73,7 @@ public function load($config) * @param array $options * @return AdapterInterface */ - public function newInstance(string $name, array $options = array()): AdapterInterface + public function newInstance(string $name, array $options = []): AdapterInterface { } @@ -93,4 +83,5 @@ public function newInstance(string $name, array $options = array()): AdapterInte protected function getAdapters(): array { } + } diff --git a/src/Phalcon/Url.php b/src/Url.zep.php similarity index 99% rename from src/Phalcon/Url.php rename to src/Url.zep.php index 9d0d767e..875d25a9 100644 --- a/src/Phalcon/Url.php +++ b/src/Url.zep.php @@ -212,4 +212,5 @@ public function setStaticBaseUri(string $staticBaseUri): UrlInterface public function path(string $path = null): string { } + } diff --git a/src/Phalcon/Url/Exception.php b/src/Url/Exception.zep.php similarity index 100% rename from src/Phalcon/Url/Exception.php rename to src/Url/Exception.zep.php diff --git a/src/Phalcon/Url/UrlInterface.php b/src/Url/UrlInterface.zep.php similarity index 99% rename from src/Phalcon/Url/UrlInterface.php rename to src/Url/UrlInterface.zep.php index 3a25a9f8..7f5c8764 100644 --- a/src/Phalcon/Url/UrlInterface.php +++ b/src/Url/UrlInterface.zep.php @@ -62,4 +62,5 @@ public function setBaseUri(string $baseUri): UrlInterface; * @return string */ public function path(string $path = null): string; + } diff --git a/src/Phalcon/Validation.php b/src/Validation.zep.php similarity index 77% rename from src/Phalcon/Validation.php rename to src/Validation.zep.php index 6d8d3836..df2ae91f 100644 --- a/src/Phalcon/Validation.php +++ b/src/Validation.zep.php @@ -24,40 +24,64 @@ */ class Validation extends Injectable implements \Phalcon\Validation\ValidationInterface { + /** + * @var array + */ + protected $combinedFieldsValidators = []; - protected $combinedFieldsValidators; - - + /** + * @var mixed + */ protected $data; + /** + * @var object|null + */ + protected $entity = null; - protected $entity; - - - protected $filters = array(); - - - protected $labels = array(); - - - protected $messages; - + /** + * @var array + */ + protected $filters = []; - protected $validators; + /** + * @var array + */ + protected $labels = []; + /** + * @var Messages|null + */ + protected $messages = null; - protected $values; + /** + * List of validators + * + * @var array + */ + protected $validators = []; + /** + * Calculated values + * + * @var array + */ + protected $values = []; + /** + * @return mixed + */ public function getData() { } /** - * @param mixed $validators + * List of validators + * + * @param array $validators */ - public function setValidators($validators) + public function setValidators(array $validators) { } @@ -66,15 +90,16 @@ public function setValidators($validators) * * @param array $validators */ - public function __construct(array $validators = array()) + public function __construct(array $validators = []) { } /** * Adds a validator to a field * - * @param mixed $field - * @param \Phalcon\Validation\ValidatorInterface $validator + * @param string|array $field + * @param ValidatorInterface $validator + * * @return ValidationInterface */ public function add($field, \Phalcon\Validation\ValidatorInterface $validator): ValidationInterface @@ -84,7 +109,7 @@ public function add($field, \Phalcon\Validation\ValidatorInterface $validator): /** * Appends a message to the messages list * - * @param \Phalcon\Messages\MessageInterface $message + * @param MessageInterface $message * @return ValidationInterface */ public function appendMessage(\Phalcon\Messages\MessageInterface $message): ValidationInterface @@ -163,8 +188,9 @@ public function getValue(string $field) /** * Alias of `add` method * - * @param mixed $field - * @param \Phalcon\Validation\ValidatorInterface $validator + * @param string|array $field + * @param ValidatorInterface $validator + * * @return ValidationInterface */ public function rule($field, \Phalcon\Validation\ValidatorInterface $validator): ValidationInterface @@ -188,7 +214,7 @@ public function rules($field, array $validators): ValidationInterface * @param object $entity * @return void */ - public function setEntity($entity) + public function setEntity($entity): void { } @@ -209,7 +235,7 @@ public function setFilters($field, $filters): ValidationInterface * @param array $labels * @return void */ - public function setLabels(array $labels) + public function setLabels(array $labels): void { } @@ -227,11 +253,12 @@ public function validate($data = null, $entity = null): Messages /** * Internal validations, if it returns true, then skip the current validator * - * @param mixed $field - * @param \Phalcon\Validation\ValidatorInterface $validator + * @param array|string $field + * @param ValidatorInterface $validator * @return bool */ protected function preChecking($field, \Phalcon\Validation\ValidatorInterface $validator): bool { } + } diff --git a/src/Phalcon/Validation/AbstractCombinedFieldsValidator.php b/src/Validation/AbstractCombinedFieldsValidator.zep.php similarity index 100% rename from src/Phalcon/Validation/AbstractCombinedFieldsValidator.php rename to src/Validation/AbstractCombinedFieldsValidator.zep.php diff --git a/src/Phalcon/Validation/AbstractValidator.php b/src/Validation/AbstractValidator.zep.php similarity index 90% rename from src/Phalcon/Validation/AbstractValidator.php rename to src/Validation/AbstractValidator.zep.php index 92f00e49..064b5115 100644 --- a/src/Phalcon/Validation/AbstractValidator.php +++ b/src/Validation/AbstractValidator.zep.php @@ -9,7 +9,9 @@ */ namespace Phalcon\Validation; +use Phalcon\Helper\Arr; use Phalcon\Messages\Message; +use Phalcon\Validation; /** * This is a base class for validators @@ -21,17 +23,19 @@ abstract class AbstractValidator implements \Phalcon\Validation\ValidatorInterfa * * @var string|null */ - protected $template; + protected $template = null; /** * Message templates * * @var array */ - protected $templates = array(); + protected $templates = []; - - protected $options; + /** + * @var array + */ + protected $options = []; /** @@ -39,7 +43,7 @@ abstract class AbstractValidator implements \Phalcon\Validation\ValidatorInterfa * * @param array $options */ - public function __construct(array $options = array()) + public function __construct(array $options = []) { } @@ -112,7 +116,7 @@ public function hasOption(string $key): bool * @param mixed $value * @return void */ - public function setOption(string $key, $value) + public function setOption(string $key, $value): void { } @@ -156,7 +160,8 @@ protected function prepareLabel(\Phalcon\Validation $validation, string $field) * @param mixed $field * @param array $replacements */ - public function messageFactory(\Phalcon\Validation $validation, $field, array $replacements = array()): Message + public function messageFactory(\Phalcon\Validation $validation, $field, array $replacements = []): Message { } + } diff --git a/src/Phalcon/Validation/AbstractValidatorComposite.php b/src/Validation/AbstractValidatorComposite.zep.php similarity index 93% rename from src/Phalcon/Validation/AbstractValidatorComposite.php rename to src/Validation/AbstractValidatorComposite.zep.php index b1180f8d..ffbeae90 100644 --- a/src/Phalcon/Validation/AbstractValidatorComposite.php +++ b/src/Validation/AbstractValidatorComposite.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Validation; +use Phalcon\Validation; + /** * This is a base class for combined fields validators */ @@ -17,7 +19,7 @@ abstract class AbstractValidatorComposite extends \Phalcon\Validation\AbstractVa /** * @var array */ - protected $validators = array(); + protected $validators = []; /** @@ -37,4 +39,5 @@ public function getValidators(): array public function validate(\Phalcon\Validation $validation, $field): bool { } + } diff --git a/src/Phalcon/Validation/Exception.php b/src/Validation/Exception.zep.php similarity index 100% rename from src/Phalcon/Validation/Exception.php rename to src/Validation/Exception.zep.php diff --git a/src/Phalcon/Validation/ValidationInterface.php b/src/Validation/ValidationInterface.zep.php similarity index 90% rename from src/Phalcon/Validation/ValidationInterface.php rename to src/Validation/ValidationInterface.zep.php index 517fb752..65849450 100644 --- a/src/Phalcon/Validation/ValidationInterface.php +++ b/src/Validation/ValidationInterface.zep.php @@ -22,11 +22,11 @@ interface ValidationInterface /** * Adds a validator to a field * - * @param string $field + * @param string|array $field * @param ValidatorInterface $validator * @return ValidationInterface */ - public function add(string $field, ValidatorInterface $validator): ValidationInterface; + public function add($field, ValidatorInterface $validator): ValidationInterface; /** * Appends a message to the messages list @@ -94,11 +94,11 @@ public function getValue(string $field); /** * Alias of `add` method * - * @param string $field + * @param string|array $field * @param ValidatorInterface $validator * @return ValidationInterface */ - public function rule(string $field, ValidatorInterface $validator): ValidationInterface; + public function rule($field, ValidatorInterface $validator): ValidationInterface; /** * Adds the validators to a field @@ -124,7 +124,7 @@ public function setFilters(string $field, $filters): ValidationInterface; * @param array $labels * @return void */ - public function setLabels(array $labels); + public function setLabels(array $labels): void; /** * Validate a set of data according to a set of rules @@ -134,4 +134,5 @@ public function setLabels(array $labels); * @return Messages */ public function validate($data = null, $entity = null): Messages; + } diff --git a/src/Phalcon/Validation/Validator/Alnum.php b/src/Validation/Validator/Alnum.zep.php similarity index 95% rename from src/Phalcon/Validation/Validator/Alnum.php rename to src/Validation/Validator/Alnum.zep.php index 342fdb1c..09e7956e 100644 --- a/src/Phalcon/Validation/Validator/Alnum.php +++ b/src/Validation/Validator/Alnum.zep.php @@ -9,6 +9,7 @@ */ namespace Phalcon\Validation\Validator; +use Phalcon\Validation; use Phalcon\Validation\AbstractValidator; /** @@ -60,7 +61,7 @@ class Alnum extends AbstractValidator * 'allowEmpty' => false * ] */ - public function __construct(array $options = array()) + public function __construct(array $options = []) { } @@ -74,4 +75,5 @@ public function __construct(array $options = array()) public function validate(\Phalcon\Validation $validation, $field): bool { } + } diff --git a/src/Phalcon/Validation/Validator/Alpha.php b/src/Validation/Validator/Alpha.zep.php similarity index 93% rename from src/Phalcon/Validation/Validator/Alpha.php rename to src/Validation/Validator/Alpha.zep.php index 8459a1e4..fa7e4ca3 100644 --- a/src/Phalcon/Validation/Validator/Alpha.php +++ b/src/Validation/Validator/Alpha.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Validation\Validator; +use Phalcon\Messages\Message; +use Phalcon\Validation; use Phalcon\Validation\AbstractValidator; /** @@ -60,7 +62,7 @@ class Alpha extends AbstractValidator * 'allowEmpty' => false * ] */ - public function __construct(array $options = array()) + public function __construct(array $options = []) { } @@ -74,4 +76,5 @@ public function __construct(array $options = array()) public function validate(\Phalcon\Validation $validation, $field): bool { } + } diff --git a/src/Phalcon/Validation/Validator/Between.php b/src/Validation/Validator/Between.zep.php similarity index 94% rename from src/Phalcon/Validation/Validator/Between.php rename to src/Validation/Validator/Between.zep.php index 5582b835..b7dbdaff 100644 --- a/src/Phalcon/Validation/Validator/Between.php +++ b/src/Validation/Validator/Between.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Validation\Validator; +use Phalcon\Messages\Message; +use Phalcon\Validation; use Phalcon\Validation\AbstractValidator; /** @@ -73,7 +75,7 @@ class Between extends AbstractValidator * 'allowEmpty' => false * ] */ - public function __construct(array $options = array()) + public function __construct(array $options = []) { } @@ -87,4 +89,5 @@ public function __construct(array $options = array()) public function validate(\Phalcon\Validation $validation, $field): bool { } + } diff --git a/src/Phalcon/Validation/Validator/Callback.php b/src/Validation/Validator/Callback.zep.php similarity index 93% rename from src/Phalcon/Validation/Validator/Callback.php rename to src/Validation/Validator/Callback.zep.php index 6bbe556a..efb8485b 100644 --- a/src/Phalcon/Validation/Validator/Callback.php +++ b/src/Validation/Validator/Callback.zep.php @@ -9,6 +9,9 @@ */ namespace Phalcon\Validation\Validator; +use Phalcon\Messages\Message; +use Phalcon\Validation; +use Phalcon\Validation\ValidatorInterface; use Phalcon\Validation\AbstractValidator; /** @@ -71,7 +74,7 @@ class Callback extends AbstractValidator * 'allowEmpty' => false * ] */ - public function __construct(array $options = array()) + public function __construct(array $options = []) { } @@ -85,4 +88,5 @@ public function __construct(array $options = array()) public function validate(\Phalcon\Validation $validation, $field): bool { } + } diff --git a/src/Phalcon/Validation/Validator/Confirmation.php b/src/Validation/Validator/Confirmation.zep.php similarity index 93% rename from src/Phalcon/Validation/Validator/Confirmation.php rename to src/Validation/Validator/Confirmation.zep.php index 33e22044..46d6b7d2 100644 --- a/src/Phalcon/Validation/Validator/Confirmation.php +++ b/src/Validation/Validator/Confirmation.zep.php @@ -9,6 +9,9 @@ */ namespace Phalcon\Validation\Validator; +use Phalcon\Messages\Message; +use Phalcon\Validation; +use Phalcon\Validation\Exception; use Phalcon\Validation\AbstractValidator; /** @@ -68,7 +71,7 @@ class Confirmation extends AbstractValidator * 'allowEmpty' => false * ] */ - public function __construct(array $options = array()) + public function __construct(array $options = []) { } @@ -93,4 +96,5 @@ public function validate(\Phalcon\Validation $validation, $field): bool final protected function compare(string $a, string $b): bool { } + } diff --git a/src/Phalcon/Validation/Validator/CreditCard.php b/src/Validation/Validator/CreditCard.zep.php similarity index 94% rename from src/Phalcon/Validation/Validator/CreditCard.php rename to src/Validation/Validator/CreditCard.zep.php index 17c60812..83e839e7 100644 --- a/src/Phalcon/Validation/Validator/CreditCard.php +++ b/src/Validation/Validator/CreditCard.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Validation\Validator; +use Phalcon\Messages\Message; +use Phalcon\Validation; use Phalcon\Validation\AbstractValidator; /** @@ -60,7 +62,7 @@ class CreditCard extends AbstractValidator * 'allowEmpty' => false * ] */ - public function __construct(array $options = array()) + public function __construct(array $options = []) { } @@ -85,4 +87,5 @@ public function validate(\Phalcon\Validation $validation, $field): bool private function verifyByLuhnAlgorithm(string $number): bool { } + } diff --git a/src/Phalcon/Validation/Validator/Date.php b/src/Validation/Validator/Date.zep.php similarity index 93% rename from src/Phalcon/Validation/Validator/Date.php rename to src/Validation/Validator/Date.zep.php index 43d15351..757475cd 100644 --- a/src/Phalcon/Validation/Validator/Date.php +++ b/src/Validation/Validator/Date.zep.php @@ -9,6 +9,9 @@ */ namespace Phalcon\Validation\Validator; +use DateTime; +use Phalcon\Messages\Message; +use Phalcon\Validation; use Phalcon\Validation\AbstractValidator; /** @@ -66,7 +69,7 @@ class Date extends AbstractValidator * 'allowEmpty' => false * ] */ - public function __construct(array $options = array()) + public function __construct(array $options = []) { } @@ -89,4 +92,5 @@ public function validate(\Phalcon\Validation $validation, $field): bool private function checkDate($value, $format): bool { } + } diff --git a/src/Phalcon/Validation/Validator/Digit.php b/src/Validation/Validator/Digit.zep.php similarity index 93% rename from src/Phalcon/Validation/Validator/Digit.php rename to src/Validation/Validator/Digit.zep.php index 56873037..5fdd16dc 100644 --- a/src/Phalcon/Validation/Validator/Digit.php +++ b/src/Validation/Validator/Digit.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Validation\Validator; +use Phalcon\Messages\Message; +use Phalcon\Validation; use Phalcon\Validation\AbstractValidator; /** @@ -60,7 +62,7 @@ class Digit extends AbstractValidator * 'allowEmpty' => false * ] */ - public function __construct(array $options = array()) + public function __construct(array $options = []) { } @@ -74,4 +76,5 @@ public function __construct(array $options = array()) public function validate(\Phalcon\Validation $validation, $field): bool { } + } diff --git a/src/Phalcon/Validation/Validator/Email.php b/src/Validation/Validator/Email.zep.php similarity index 93% rename from src/Phalcon/Validation/Validator/Email.php rename to src/Validation/Validator/Email.zep.php index dde2b525..36ba42a5 100644 --- a/src/Phalcon/Validation/Validator/Email.php +++ b/src/Validation/Validator/Email.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Validation\Validator; +use Phalcon\Messages\Message; +use Phalcon\Validation; use Phalcon\Validation\AbstractValidator; /** @@ -60,7 +62,7 @@ class Email extends AbstractValidator * 'allowEmpty' => false * ] */ - public function __construct(array $options = array()) + public function __construct(array $options = []) { } @@ -74,4 +76,5 @@ public function __construct(array $options = array()) public function validate(\Phalcon\Validation $validation, $field): bool { } + } diff --git a/src/Phalcon/Validation/Validator/Exception.php b/src/Validation/Validator/Exception.zep.php similarity index 100% rename from src/Phalcon/Validation/Validator/Exception.php rename to src/Validation/Validator/Exception.zep.php diff --git a/src/Phalcon/Validation/Validator/ExclusionIn.php b/src/Validation/Validator/ExclusionIn.zep.php similarity index 93% rename from src/Phalcon/Validation/Validator/ExclusionIn.php rename to src/Validation/Validator/ExclusionIn.zep.php index 8d6991d0..ef9b3814 100644 --- a/src/Phalcon/Validation/Validator/ExclusionIn.php +++ b/src/Validation/Validator/ExclusionIn.zep.php @@ -9,7 +9,10 @@ */ namespace Phalcon\Validation\Validator; +use Phalcon\Messages\Message; +use Phalcon\Validation; use Phalcon\Validation\AbstractValidator; +use Phalcon\Validation\Exception; /** * Check if a value is not included into a list of values @@ -73,7 +76,7 @@ class ExclusionIn extends AbstractValidator * 'allowEmpty' => false * ] */ - public function __construct(array $options = array()) + public function __construct(array $options = []) { } @@ -87,4 +90,5 @@ public function __construct(array $options = array()) public function validate(\Phalcon\Validation $validation, $field): bool { } + } diff --git a/src/Phalcon/Validation/Validator/File.php b/src/Validation/Validator/File.zep.php similarity index 84% rename from src/Phalcon/Validation/Validator/File.php rename to src/Validation/Validator/File.zep.php index 750903ee..7b342b8b 100644 --- a/src/Phalcon/Validation/Validator/File.php +++ b/src/Validation/Validator/File.zep.php @@ -9,7 +9,17 @@ */ namespace Phalcon\Validation\Validator; +use Phalcon\Helper\Arr; +use Phalcon\Messages\Message; +use Phalcon\Validation; use Phalcon\Validation\AbstractValidatorComposite; +use Phalcon\Validation\Validator\File\MimeType; +use Phalcon\Validation\Validator\File\Resolution\Equal as EqualResolution; +use Phalcon\Validation\Validator\File\Resolution\Max as MaxResolution; +use Phalcon\Validation\Validator\File\Resolution\Min as MinResolution; +use Phalcon\Validation\Validator\File\Size\Equal as EqualFileSize; +use Phalcon\Validation\Validator\File\Size\Max as MaxFileSize; +use Phalcon\Validation\Validator\File\Size\Min as MinFileSize; /** * Checks if a value has a correct file @@ -106,7 +116,8 @@ class File extends AbstractValidatorComposite * 'allowEmpty' => false * ] */ - public function __construct(array $options = array()) + public function __construct(array $options = []) { } + } diff --git a/src/Phalcon/Validation/Validator/File/AbstractFile.php b/src/Validation/Validator/File/AbstractFile.zep.php similarity index 78% rename from src/Phalcon/Validation/Validator/File/AbstractFile.php rename to src/Validation/Validator/File/AbstractFile.zep.php index 8e824bf9..29016f08 100644 --- a/src/Phalcon/Validation/Validator/File/AbstractFile.php +++ b/src/Validation/Validator/File/AbstractFile.zep.php @@ -9,6 +9,7 @@ */ namespace Phalcon\Validation\Validator\File; +use Phalcon\Messages\Message; use Phalcon\Validation; use Phalcon\Validation\AbstractValidator; @@ -55,76 +56,77 @@ abstract class AbstractFile extends AbstractValidator { /** * Empty is empty + * + * @var string */ protected $messageFileEmpty = 'Field :field must not be empty'; /** * File exceeds the file size set in PHP configuration + * + * @var string */ protected $messageIniSize = 'File :field exceeds the maximum file size'; /** * File is not valid + * + * @var string */ protected $messageValid = 'Field :field is not valid'; /** * Empty is empty + * + * @return string */ - public function getMessageFileEmpty() + public function getMessageFileEmpty(): string { } /** * Empty is empty * - * @param mixed $messageFileEmpty + * @param string $messageFileEmpty */ - public function setMessageFileEmpty($messageFileEmpty) + public function setMessageFileEmpty(string $messageFileEmpty) { } /** * File exceeds the file size set in PHP configuration + * + * @return string */ - public function getMessageIniSize() + public function getMessageIniSize(): string { } /** * File exceeds the file size set in PHP configuration * - * @param mixed $messageIniSize - */ - public function setMessageIniSize($messageIniSize) - { - } - - /** - * File is not valid + * @param string $messageIniSize */ - public function getMessageValid() + public function setMessageIniSize(string $messageIniSize) { } /** * File is not valid * - * @param mixed $messageValid + * @return string */ - public function setMessageValid($messageValid) + public function getMessageValid(): string { } /** - * Check on empty + * File is not valid * - * @param Validation $validation - * @param string $field - * @return bool + * @param string $messageValid */ - public function isAllowEmpty(\Phalcon\Validation $validation, string $field): bool + public function setMessageValid(string $messageValid) { } @@ -140,35 +142,35 @@ public function checkUpload(\Phalcon\Validation $validation, $field): bool } /** - * Check if uploaded file is larger than PHP allowed size + * Check if upload is empty * * @param Validation $validation * @param mixed $field * @return boolean */ - public function checkUploadMaxSize(\Phalcon\Validation $validation, $field): bool + public function checkUploadIsEmpty(\Phalcon\Validation $validation, $field): bool { } /** - * Check if upload is empty + * Check if upload is valid * * @param Validation $validation * @param mixed $field * @return boolean */ - public function checkUploadIsEmpty(\Phalcon\Validation $validation, $field): bool + public function checkUploadIsValid(\Phalcon\Validation $validation, $field): bool { } /** - * Check if upload is valid + * Check if uploaded file is larger than PHP allowed size * * @param Validation $validation * @param mixed $field * @return boolean */ - public function checkUploadIsValid(\Phalcon\Validation $validation, $field): bool + public function checkUploadMaxSize(\Phalcon\Validation $validation, $field): bool { } @@ -181,4 +183,27 @@ public function checkUploadIsValid(\Phalcon\Validation $validation, $field): boo public function getFileSizeInBytes(string $size): float { } + + /** + * Check on empty + * + * @param Validation $validation + * @param string $field + * @return bool + */ + public function isAllowEmpty(\Phalcon\Validation $validation, string $field): bool + { + } + + /** + * Checks if a file has been uploaded; Internal check that can be + * overriden in a subclass if you do not want to check uploaded files + * + * @param string $name + * @return bool + */ + protected function checkIsUploadedFile(string $name): bool + { + } + } diff --git a/src/Phalcon/Validation/Validator/File/MimeType.php b/src/Validation/Validator/File/MimeType.zep.php similarity index 99% rename from src/Phalcon/Validation/Validator/File/MimeType.php rename to src/Validation/Validator/File/MimeType.zep.php index 60cb7c75..eb0d6f28 100644 --- a/src/Phalcon/Validation/Validator/File/MimeType.php +++ b/src/Validation/Validator/File/MimeType.zep.php @@ -77,4 +77,5 @@ class MimeType extends \Phalcon\Validation\Validator\File\AbstractFile public function validate(\Phalcon\Validation $validation, $field): bool { } + } diff --git a/src/Phalcon/Validation/Validator/File/Resolution/Equal.php b/src/Validation/Validator/File/Resolution/Equal.zep.php similarity index 94% rename from src/Phalcon/Validation/Validator/File/Resolution/Equal.php rename to src/Validation/Validator/File/Resolution/Equal.zep.php index 00c22fa6..7846b6fd 100644 --- a/src/Phalcon/Validation/Validator/File/Resolution/Equal.php +++ b/src/Validation/Validator/File/Resolution/Equal.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Validation\Validator\File\Resolution; +use Phalcon\Messages\Message; +use Phalcon\Validation; use Phalcon\Validation\Validator\File\AbstractFile; /** @@ -65,7 +67,7 @@ class Equal extends AbstractFile * 'resolution' => '1000x1000' * ] */ - public function __construct(array $options = array()) + public function __construct(array $options = []) { } @@ -79,4 +81,5 @@ public function __construct(array $options = array()) public function validate(\Phalcon\Validation $validation, $field): bool { } + } diff --git a/src/Phalcon/Validation/Validator/File/Resolution/Max.php b/src/Validation/Validator/File/Resolution/Max.zep.php similarity index 97% rename from src/Phalcon/Validation/Validator/File/Resolution/Max.php rename to src/Validation/Validator/File/Resolution/Max.zep.php index f81a4d7b..a70573cd 100644 --- a/src/Phalcon/Validation/Validator/File/Resolution/Max.php +++ b/src/Validation/Validator/File/Resolution/Max.zep.php @@ -73,7 +73,7 @@ class Max extends AbstractFile * 'included' => false * ] */ - public function __construct(array $options = array()) + public function __construct(array $options = []) { } @@ -87,4 +87,5 @@ public function __construct(array $options = array()) public function validate(\Phalcon\Validation $validation, $field): bool { } + } diff --git a/src/Phalcon/Validation/Validator/File/Resolution/Min.php b/src/Validation/Validator/File/Resolution/Min.zep.php similarity index 97% rename from src/Phalcon/Validation/Validator/File/Resolution/Min.php rename to src/Validation/Validator/File/Resolution/Min.zep.php index 70d9310d..764a3ed1 100644 --- a/src/Phalcon/Validation/Validator/File/Resolution/Min.php +++ b/src/Validation/Validator/File/Resolution/Min.zep.php @@ -73,7 +73,7 @@ class Min extends AbstractFile * 'included' => false * ] */ - public function __construct(array $options = array()) + public function __construct(array $options = []) { } @@ -87,4 +87,5 @@ public function __construct(array $options = array()) public function validate(\Phalcon\Validation $validation, $field): bool { } + } diff --git a/src/Phalcon/Validation/Validator/File/Size/Equal.php b/src/Validation/Validator/File/Size/Equal.zep.php similarity index 94% rename from src/Phalcon/Validation/Validator/File/Size/Equal.php rename to src/Validation/Validator/File/Size/Equal.zep.php index 1ac14551..f4187591 100644 --- a/src/Phalcon/Validation/Validator/File/Size/Equal.php +++ b/src/Validation/Validator/File/Size/Equal.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Validation\Validator\File\Size; +use Phalcon\Messages\Message; +use Phalcon\Validation; use Phalcon\Validation\Validator\File\AbstractFile; /** @@ -70,7 +72,7 @@ class Equal extends AbstractFile * 'size' => '2.5MB' * ] */ - public function __construct(array $options = array()) + public function __construct(array $options = []) { } @@ -84,4 +86,5 @@ public function __construct(array $options = array()) public function validate(\Phalcon\Validation $validation, $field): bool { } + } diff --git a/src/Phalcon/Validation/Validator/File/Size/Max.php b/src/Validation/Validator/File/Size/Max.zep.php similarity index 97% rename from src/Phalcon/Validation/Validator/File/Size/Max.php rename to src/Validation/Validator/File/Size/Max.zep.php index 8d03e1eb..a4fd7712 100644 --- a/src/Phalcon/Validation/Validator/File/Size/Max.php +++ b/src/Validation/Validator/File/Size/Max.zep.php @@ -73,7 +73,7 @@ class Max extends AbstractFile * 'included' => false * ] */ - public function __construct(array $options = array()) + public function __construct(array $options = []) { } @@ -87,4 +87,5 @@ public function __construct(array $options = array()) public function validate(\Phalcon\Validation $validation, $field): bool { } + } diff --git a/src/Phalcon/Validation/Validator/File/Size/Min.php b/src/Validation/Validator/File/Size/Min.zep.php similarity index 97% rename from src/Phalcon/Validation/Validator/File/Size/Min.php rename to src/Validation/Validator/File/Size/Min.zep.php index edcc366c..12944540 100644 --- a/src/Phalcon/Validation/Validator/File/Size/Min.php +++ b/src/Validation/Validator/File/Size/Min.zep.php @@ -73,7 +73,7 @@ class Min extends AbstractFile * 'included' => false * ] */ - public function __construct(array $options = array()) + public function __construct(array $options = []) { } @@ -87,4 +87,5 @@ public function __construct(array $options = array()) public function validate(\Phalcon\Validation $validation, $field): bool { } + } diff --git a/src/Phalcon/Validation/Validator/Identical.php b/src/Validation/Validator/Identical.zep.php similarity index 94% rename from src/Phalcon/Validation/Validator/Identical.php rename to src/Validation/Validator/Identical.zep.php index 62828f50..faea1348 100644 --- a/src/Phalcon/Validation/Validator/Identical.php +++ b/src/Validation/Validator/Identical.zep.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Validation\Validator; +use Phalcon\Messages\Message; +use Phalcon\Validation; use Phalcon\Validation\AbstractValidator; /** @@ -67,7 +69,7 @@ class Identical extends AbstractValidator * 'allowEmpty' => false * ] */ - public function __construct(array $options = array()) + public function __construct(array $options = []) { } @@ -81,4 +83,5 @@ public function __construct(array $options = array()) public function validate(\Phalcon\Validation $validation, $field): bool { } + } diff --git a/src/Phalcon/Validation/Validator/InclusionIn.php b/src/Validation/Validator/InclusionIn.zep.php similarity index 92% rename from src/Phalcon/Validation/Validator/InclusionIn.php rename to src/Validation/Validator/InclusionIn.zep.php index 5ee64b88..24cfb26a 100644 --- a/src/Phalcon/Validation/Validator/InclusionIn.php +++ b/src/Validation/Validator/InclusionIn.zep.php @@ -9,7 +9,10 @@ */ namespace Phalcon\Validation\Validator; +use Phalcon\Messages\Message; +use Phalcon\Validation; use Phalcon\Validation\AbstractValidator; +use Phalcon\Validation\Exception; /** * Check if a value is included into a list of values @@ -67,7 +70,7 @@ class InclusionIn extends AbstractValidator * 'allowEmpty' => false * ] */ - public function __construct(array $options = array()) + public function __construct(array $options = []) { } @@ -81,4 +84,5 @@ public function __construct(array $options = array()) public function validate(\Phalcon\Validation $validation, $field): bool { } + } diff --git a/src/Phalcon/Validation/Validator/Ip.php b/src/Validation/Validator/Ip.zep.php similarity index 96% rename from src/Phalcon/Validation/Validator/Ip.php rename to src/Validation/Validator/Ip.zep.php index 9949603b..53fda100 100644 --- a/src/Phalcon/Validation/Validator/Ip.php +++ b/src/Validation/Validator/Ip.zep.php @@ -9,7 +9,9 @@ */ namespace Phalcon\Validation\Validator; +use Phalcon\Validation; use Phalcon\Validation\AbstractValidator; +use Phalcon\Messages\Message; /** * Check for IP addresses @@ -85,7 +87,7 @@ class Ip extends AbstractValidator * 'allowEmpty' => false * ] */ - public function __construct(array $options = array()) + public function __construct(array $options = []) { } @@ -99,4 +101,5 @@ public function __construct(array $options = array()) public function validate(\Phalcon\Validation $validation, $field): bool { } + } diff --git a/src/Phalcon/Validation/Validator/Numericality.php b/src/Validation/Validator/Numericality.zep.php similarity index 96% rename from src/Phalcon/Validation/Validator/Numericality.php rename to src/Validation/Validator/Numericality.zep.php index 0dbffa5e..a79a9617 100644 --- a/src/Phalcon/Validation/Validator/Numericality.php +++ b/src/Validation/Validator/Numericality.zep.php @@ -62,7 +62,7 @@ class Numericality extends AbstractValidator * 'allowEmpty' => false * ] */ - public function __construct(array $options = array()) + public function __construct(array $options = []) { } @@ -76,4 +76,5 @@ public function __construct(array $options = array()) public function validate(\Phalcon\Validation $validation, $field): bool { } + } diff --git a/src/Phalcon/Validation/Validator/PresenceOf.php b/src/Validation/Validator/PresenceOf.zep.php similarity index 96% rename from src/Phalcon/Validation/Validator/PresenceOf.php rename to src/Validation/Validator/PresenceOf.zep.php index 86fee665..4750e8b5 100644 --- a/src/Phalcon/Validation/Validator/PresenceOf.php +++ b/src/Validation/Validator/PresenceOf.zep.php @@ -62,7 +62,7 @@ class PresenceOf extends AbstractValidator * 'allowEmpty' => false * ] */ - public function __construct(array $options = array()) + public function __construct(array $options = []) { } @@ -76,4 +76,5 @@ public function __construct(array $options = array()) public function validate(\Phalcon\Validation $validation, $field): bool { } + } diff --git a/src/Phalcon/Validation/Validator/Regex.php b/src/Validation/Validator/Regex.zep.php similarity index 97% rename from src/Phalcon/Validation/Validator/Regex.php rename to src/Validation/Validator/Regex.zep.php index 20c406ea..9274a3bf 100644 --- a/src/Phalcon/Validation/Validator/Regex.php +++ b/src/Validation/Validator/Regex.zep.php @@ -68,7 +68,7 @@ class Regex extends AbstractValidator * 'pattern' => '' * ] */ - public function __construct(array $options = array()) + public function __construct(array $options = []) { } @@ -82,4 +82,5 @@ public function __construct(array $options = array()) public function validate(\Phalcon\Validation $validation, $field): bool { } + } diff --git a/src/Phalcon/Validation/Validator/StringLength.php b/src/Validation/Validator/StringLength.zep.php similarity index 98% rename from src/Phalcon/Validation/Validator/StringLength.php rename to src/Validation/Validator/StringLength.zep.php index 8772ca8d..bff4889c 100644 --- a/src/Phalcon/Validation/Validator/StringLength.php +++ b/src/Validation/Validator/StringLength.zep.php @@ -95,7 +95,8 @@ class StringLength extends AbstractValidatorComposite * 'includedMaximum' => false * ] */ - public function __construct(array $options = array()) + public function __construct(array $options = []) { } + } diff --git a/src/Phalcon/Validation/Validator/StringLength/Max.php b/src/Validation/Validator/StringLength/Max.zep.php similarity index 97% rename from src/Phalcon/Validation/Validator/StringLength/Max.php rename to src/Validation/Validator/StringLength/Max.zep.php index 496c4100..36ff13ff 100644 --- a/src/Phalcon/Validation/Validator/StringLength/Max.php +++ b/src/Validation/Validator/StringLength/Max.zep.php @@ -77,7 +77,7 @@ class Max extends AbstractValidator * 'included' => false * ] */ - public function __construct(array $options = array()) + public function __construct(array $options = []) { } @@ -91,4 +91,5 @@ public function __construct(array $options = array()) public function validate(\Phalcon\Validation $validation, $field): bool { } + } diff --git a/src/Phalcon/Validation/Validator/StringLength/Min.php b/src/Validation/Validator/StringLength/Min.zep.php similarity index 97% rename from src/Phalcon/Validation/Validator/StringLength/Min.php rename to src/Validation/Validator/StringLength/Min.zep.php index 3e61bb04..31393f57 100644 --- a/src/Phalcon/Validation/Validator/StringLength/Min.php +++ b/src/Validation/Validator/StringLength/Min.zep.php @@ -77,7 +77,7 @@ class Min extends AbstractValidator * 'included' => false * ] */ - public function __construct(array $options = array()) + public function __construct(array $options = []) { } @@ -91,4 +91,5 @@ public function __construct(array $options = array()) public function validate(\Phalcon\Validation $validation, $field): bool { } + } diff --git a/src/Phalcon/Validation/Validator/Uniqueness.php b/src/Validation/Validator/Uniqueness.zep.php similarity index 97% rename from src/Phalcon/Validation/Validator/Uniqueness.php rename to src/Validation/Validator/Uniqueness.zep.php index 48caa76d..6389a013 100644 --- a/src/Phalcon/Validation/Validator/Uniqueness.php +++ b/src/Validation/Validator/Uniqueness.zep.php @@ -91,7 +91,9 @@ class Uniqueness extends AbstractCombinedFieldsValidator protected $template = 'Field :field must be unique'; - + /** + * @var array|null + */ private $columnMap = null; @@ -107,7 +109,7 @@ class Uniqueness extends AbstractCombinedFieldsValidator * 'except' => null * ] */ - public function __construct(array $options = array()) + public function __construct(array $options = []) { } @@ -152,4 +154,5 @@ protected function isUniqueness(\Phalcon\Validation $validation, $field): bool protected function isUniquenessModel($record, array $field, array $values) { } + } diff --git a/src/Phalcon/Validation/Validator/Url.php b/src/Validation/Validator/Url.zep.php similarity index 96% rename from src/Phalcon/Validation/Validator/Url.php rename to src/Validation/Validator/Url.zep.php index 68ee2633..625540c1 100644 --- a/src/Phalcon/Validation/Validator/Url.php +++ b/src/Validation/Validator/Url.zep.php @@ -63,7 +63,7 @@ class Url extends AbstractValidator * 'options' => [] * ] */ - public function __construct(array $options = array()) + public function __construct(array $options = []) { } @@ -77,4 +77,5 @@ public function __construct(array $options = array()) public function validate(\Phalcon\Validation $validation, $field): bool { } + } diff --git a/src/Phalcon/Validation/ValidatorCompositeInterface.php b/src/Validation/ValidatorCompositeInterface.zep.php similarity index 99% rename from src/Phalcon/Validation/ValidatorCompositeInterface.php rename to src/Validation/ValidatorCompositeInterface.zep.php index 9d1335de..28bacbca 100644 --- a/src/Phalcon/Validation/ValidatorCompositeInterface.php +++ b/src/Validation/ValidatorCompositeInterface.zep.php @@ -32,4 +32,5 @@ public function getValidators(): array; * @return bool */ public function validate(\Phalcon\Validation $validation, $field): bool; + } diff --git a/src/Phalcon/Validation/ValidatorFactory.php b/src/Validation/ValidatorFactory.zep.php similarity index 89% rename from src/Phalcon/Validation/ValidatorFactory.php rename to src/Validation/ValidatorFactory.zep.php index 465222aa..85bbaba5 100644 --- a/src/Phalcon/Validation/ValidatorFactory.php +++ b/src/Validation/ValidatorFactory.zep.php @@ -23,12 +23,15 @@ class ValidatorFactory extends AbstractFactory { + protected $exception = 'Phalcon\\\\Validation\\\\Exception'; + + /** * TagFactory constructor. * * @param array $services */ - public function __construct(array $services = array()) + public function __construct(array $services = []) { } @@ -48,4 +51,5 @@ public function newInstance(string $name): ValidatorInterface protected function getAdapters(): array { } + } diff --git a/src/Phalcon/Validation/ValidatorInterface.php b/src/Validation/ValidatorInterface.zep.php similarity index 99% rename from src/Phalcon/Validation/ValidatorInterface.php rename to src/Validation/ValidatorInterface.zep.php index 1b4f2c64..51a71aec 100644 --- a/src/Phalcon/Validation/ValidatorInterface.php +++ b/src/Validation/ValidatorInterface.zep.php @@ -75,4 +75,5 @@ public function setTemplates(array $templates): ValidatorInterface; * @param string $template */ public function setTemplate(string $template): ValidatorInterface; + } From 031ca0a2eeb5780169fb85c22ab2132f44e605eb Mon Sep 17 00:00:00 2001 From: Anton Vasiliev Date: Wed, 9 Jun 2021 00:13:07 +0100 Subject: [PATCH 04/16] Update composer files --- composer.json | 2 +- composer.lock | 397 ++++++++++++++++++++++++++++++-------------------- 2 files changed, 237 insertions(+), 162 deletions(-) diff --git a/composer.json b/composer.json index 06b08cfb..c68cdbd6 100644 --- a/composer.json +++ b/composer.json @@ -32,7 +32,7 @@ "forum": "https://forum.phalcon.io/" }, "require": { - "php": ">=7.2.0" + "php": ">=7.4" }, "require-dev": { "squizlabs/php_codesniffer": "3.*", diff --git a/composer.lock b/composer.lock index 6c61c5c9..53cca273 100644 --- a/composer.lock +++ b/composer.lock @@ -4,21 +4,21 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "810d9bc61ae4fe5487f474ce57be9d2b", + "content-hash": "7d008907c09cfa7e75a685aad7e3dc66", "packages": [], "packages-dev": [ { "name": "amphp/amp", - "version": "v2.5.1", + "version": "v2.5.2", "source": { "type": "git", "url": "https://github.com/amphp/amp.git", - "reference": "ecdc3c476b3ccff02f8e5d5bcc04f7ccfd18751c" + "reference": "efca2b32a7580087adb8aabbff6be1dc1bb924a9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/amphp/amp/zipball/ecdc3c476b3ccff02f8e5d5bcc04f7ccfd18751c", - "reference": "ecdc3c476b3ccff02f8e5d5bcc04f7ccfd18751c", + "url": "https://api.github.com/repos/amphp/amp/zipball/efca2b32a7580087adb8aabbff6be1dc1bb924a9", + "reference": "efca2b32a7580087adb8aabbff6be1dc1bb924a9", "shasum": "" }, "require": { @@ -86,7 +86,7 @@ "support": { "irc": "irc://irc.freenode.org/amphp", "issues": "https://github.com/amphp/amp/issues", - "source": "https://github.com/amphp/amp/tree/v2.5.1" + "source": "https://github.com/amphp/amp/tree/v2.5.2" }, "funding": [ { @@ -94,20 +94,20 @@ "type": "github" } ], - "time": "2020-11-03T16:23:45+00:00" + "time": "2021-01-10T17:06:37+00:00" }, { "name": "amphp/byte-stream", - "version": "v1.8.0", + "version": "v1.8.1", "source": { "type": "git", "url": "https://github.com/amphp/byte-stream.git", - "reference": "f0c20cf598a958ba2aa8c6e5a71c697d652c7088" + "reference": "acbd8002b3536485c997c4e019206b3f10ca15bd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/amphp/byte-stream/zipball/f0c20cf598a958ba2aa8c6e5a71c697d652c7088", - "reference": "f0c20cf598a958ba2aa8c6e5a71c697d652c7088", + "url": "https://api.github.com/repos/amphp/byte-stream/zipball/acbd8002b3536485c997c4e019206b3f10ca15bd", + "reference": "acbd8002b3536485c997c4e019206b3f10ca15bd", "shasum": "" }, "require": { @@ -163,22 +163,28 @@ "support": { "irc": "irc://irc.freenode.org/amphp", "issues": "https://github.com/amphp/byte-stream/issues", - "source": "https://github.com/amphp/byte-stream/tree/master" + "source": "https://github.com/amphp/byte-stream/tree/v1.8.1" }, - "time": "2020-06-29T18:35:05+00:00" + "funding": [ + { + "url": "https://github.com/amphp", + "type": "github" + } + ], + "time": "2021-03-30T17:13:30+00:00" }, { "name": "composer/package-versions-deprecated", - "version": "1.11.99.1", + "version": "1.11.99.2", "source": { "type": "git", "url": "https://github.com/composer/package-versions-deprecated.git", - "reference": "7413f0b55a051e89485c5cb9f765fe24bb02a7b6" + "reference": "c6522afe5540d5fc46675043d3ed5a45a740b27c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/package-versions-deprecated/zipball/7413f0b55a051e89485c5cb9f765fe24bb02a7b6", - "reference": "7413f0b55a051e89485c5cb9f765fe24bb02a7b6", + "url": "https://api.github.com/repos/composer/package-versions-deprecated/zipball/c6522afe5540d5fc46675043d3ed5a45a740b27c", + "reference": "c6522afe5540d5fc46675043d3ed5a45a740b27c", "shasum": "" }, "require": { @@ -222,7 +228,7 @@ "description": "Composer plugin that provides efficient querying for installed package versions (no runtime IO)", "support": { "issues": "https://github.com/composer/package-versions-deprecated/issues", - "source": "https://github.com/composer/package-versions-deprecated/tree/1.11.99.1" + "source": "https://github.com/composer/package-versions-deprecated/tree/1.11.99.2" }, "funding": [ { @@ -238,27 +244,27 @@ "type": "tidelift" } ], - "time": "2020-11-11T10:22:58+00:00" + "time": "2021-05-24T07:46:03+00:00" }, { "name": "composer/semver", - "version": "3.2.3", + "version": "3.2.5", "source": { "type": "git", "url": "https://github.com/composer/semver.git", - "reference": "bcf1cc72150023e1c3dca4a353296b4c83deea41" + "reference": "31f3ea725711245195f62e54ffa402d8ef2fdba9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/semver/zipball/bcf1cc72150023e1c3dca4a353296b4c83deea41", - "reference": "bcf1cc72150023e1c3dca4a353296b4c83deea41", + "url": "https://api.github.com/repos/composer/semver/zipball/31f3ea725711245195f62e54ffa402d8ef2fdba9", + "reference": "31f3ea725711245195f62e54ffa402d8ef2fdba9", "shasum": "" }, "require": { "php": "^5.3.2 || ^7.0 || ^8.0" }, "require-dev": { - "phpstan/phpstan": "^0.12.19", + "phpstan/phpstan": "^0.12.54", "symfony/phpunit-bridge": "^4.2 || ^5" }, "type": "library", @@ -303,7 +309,7 @@ "support": { "irc": "irc://irc.freenode.org/composer", "issues": "https://github.com/composer/semver/issues", - "source": "https://github.com/composer/semver/tree/3.2.3" + "source": "https://github.com/composer/semver/tree/3.2.5" }, "funding": [ { @@ -319,20 +325,20 @@ "type": "tidelift" } ], - "time": "2020-11-12T11:25:27+00:00" + "time": "2021-05-24T12:41:47+00:00" }, { "name": "composer/xdebug-handler", - "version": "1.4.4", + "version": "1.4.6", "source": { "type": "git", "url": "https://github.com/composer/xdebug-handler.git", - "reference": "6e076a124f7ee146f2487554a94b6a19a74887ba" + "reference": "f27e06cd9675801df441b3656569b328e04aa37c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/6e076a124f7ee146f2487554a94b6a19a74887ba", - "reference": "6e076a124f7ee146f2487554a94b6a19a74887ba", + "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/f27e06cd9675801df441b3656569b328e04aa37c", + "reference": "f27e06cd9675801df441b3656569b328e04aa37c", "shasum": "" }, "require": { @@ -340,7 +346,8 @@ "psr/log": "^1.0" }, "require-dev": { - "phpunit/phpunit": "^4.8.35 || ^5.7 || 6.5 - 8" + "phpstan/phpstan": "^0.12.55", + "symfony/phpunit-bridge": "^4.2 || ^5" }, "type": "library", "autoload": { @@ -366,7 +373,7 @@ "support": { "irc": "irc://irc.freenode.org/composer", "issues": "https://github.com/composer/xdebug-handler/issues", - "source": "https://github.com/composer/xdebug-handler/tree/1.4.4" + "source": "https://github.com/composer/xdebug-handler/tree/1.4.6" }, "funding": [ { @@ -382,7 +389,7 @@ "type": "tidelift" } ], - "time": "2020-10-24T12:39:10+00:00" + "time": "2021-03-25T17:01:18+00:00" }, { "name": "dnoegel/php-xdg-base-dir", @@ -423,25 +430,25 @@ }, { "name": "felixfbecker/advanced-json-rpc", - "version": "v3.1.1", + "version": "v3.2.0", "source": { "type": "git", "url": "https://github.com/felixfbecker/php-advanced-json-rpc.git", - "reference": "0ed363f8de17d284d479ec813c9ad3f6834b5c40" + "reference": "06f0b06043c7438959dbdeed8bb3f699a19be22e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/felixfbecker/php-advanced-json-rpc/zipball/0ed363f8de17d284d479ec813c9ad3f6834b5c40", - "reference": "0ed363f8de17d284d479ec813c9ad3f6834b5c40", + "url": "https://api.github.com/repos/felixfbecker/php-advanced-json-rpc/zipball/06f0b06043c7438959dbdeed8bb3f699a19be22e", + "reference": "06f0b06043c7438959dbdeed8bb3f699a19be22e", "shasum": "" }, "require": { "netresearch/jsonmapper": "^1.0 || ^2.0", - "php": ">=7.0", - "phpdocumentor/reflection-docblock": "^4.0.0 || ^5.0.0" + "php": "^7.1 || ^8.0", + "phpdocumentor/reflection-docblock": "^4.3.4 || ^5.0.0" }, "require-dev": { - "phpunit/phpunit": "^6.0.0" + "phpunit/phpunit": "^7.0 || ^8.0" }, "type": "library", "autoload": { @@ -462,22 +469,22 @@ "description": "A more advanced JSONRPC implementation", "support": { "issues": "https://github.com/felixfbecker/php-advanced-json-rpc/issues", - "source": "https://github.com/felixfbecker/php-advanced-json-rpc/tree/master" + "source": "https://github.com/felixfbecker/php-advanced-json-rpc/tree/v3.2.0" }, - "time": "2020-03-11T15:21:41+00:00" + "time": "2021-01-10T17:48:47+00:00" }, { "name": "felixfbecker/language-server-protocol", - "version": "v1.5.0", + "version": "1.5.1", "source": { "type": "git", "url": "https://github.com/felixfbecker/php-language-server-protocol.git", - "reference": "85e83cacd2ed573238678c6875f8f0d7ec699541" + "reference": "9d846d1f5cf101deee7a61c8ba7caa0a975cd730" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/felixfbecker/php-language-server-protocol/zipball/85e83cacd2ed573238678c6875f8f0d7ec699541", - "reference": "85e83cacd2ed573238678c6875f8f0d7ec699541", + "url": "https://api.github.com/repos/felixfbecker/php-language-server-protocol/zipball/9d846d1f5cf101deee7a61c8ba7caa0a975cd730", + "reference": "9d846d1f5cf101deee7a61c8ba7caa0a975cd730", "shasum": "" }, "require": { @@ -518,9 +525,9 @@ ], "support": { "issues": "https://github.com/felixfbecker/php-language-server-protocol/issues", - "source": "https://github.com/felixfbecker/php-language-server-protocol/tree/v1.5.0" + "source": "https://github.com/felixfbecker/php-language-server-protocol/tree/1.5.1" }, - "time": "2020-10-23T13:55:30+00:00" + "time": "2021-02-22T14:02:09+00:00" }, { "name": "netresearch/jsonmapper", @@ -575,16 +582,16 @@ }, { "name": "nikic/php-parser", - "version": "v4.10.2", + "version": "v4.10.5", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "658f1be311a230e0907f5dfe0213742aff0596de" + "reference": "4432ba399e47c66624bc73c8c0f811e5c109576f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/658f1be311a230e0907f5dfe0213742aff0596de", - "reference": "658f1be311a230e0907f5dfe0213742aff0596de", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/4432ba399e47c66624bc73c8c0f811e5c109576f", + "reference": "4432ba399e47c66624bc73c8c0f811e5c109576f", "shasum": "" }, "require": { @@ -625,9 +632,9 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v4.10.2" + "source": "https://github.com/nikic/PHP-Parser/tree/v4.10.5" }, - "time": "2020-09-26T10:30:38+00:00" + "time": "2021-05-03T19:11:20+00:00" }, { "name": "openlss/lib-array2xml", @@ -842,27 +849,22 @@ }, { "name": "psr/container", - "version": "1.0.0", + "version": "1.1.1", "source": { "type": "git", "url": "https://github.com/php-fig/container.git", - "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f" + "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/container/zipball/b7ce3b176482dbbc1245ebf52b181af44c2cf55f", - "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f", + "url": "https://api.github.com/repos/php-fig/container/zipball/8622567409010282b7aeebe4bb841fe98b58dcaf", + "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf", "shasum": "" }, "require": { - "php": ">=5.3.0" + "php": ">=7.2.0" }, "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, "autoload": { "psr-4": { "Psr\\Container\\": "src/" @@ -875,7 +877,7 @@ "authors": [ { "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" + "homepage": "https://www.php-fig.org/" } ], "description": "Common Container Interface (PHP FIG PSR-11)", @@ -889,22 +891,22 @@ ], "support": { "issues": "https://github.com/php-fig/container/issues", - "source": "https://github.com/php-fig/container/tree/master" + "source": "https://github.com/php-fig/container/tree/1.1.1" }, - "time": "2017-02-14T16:28:37+00:00" + "time": "2021-03-05T17:36:06+00:00" }, { "name": "psr/log", - "version": "1.1.3", + "version": "1.1.4", "source": { "type": "git", "url": "https://github.com/php-fig/log.git", - "reference": "0f73288fd15629204f9d42b7055f72dacbe811fc" + "reference": "d49695b909c3b7628b6289db5479a1c204601f11" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/log/zipball/0f73288fd15629204f9d42b7055f72dacbe811fc", - "reference": "0f73288fd15629204f9d42b7055f72dacbe811fc", + "url": "https://api.github.com/repos/php-fig/log/zipball/d49695b909c3b7628b6289db5479a1c204601f11", + "reference": "d49695b909c3b7628b6289db5479a1c204601f11", "shasum": "" }, "require": { @@ -928,7 +930,7 @@ "authors": [ { "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" + "homepage": "https://www.php-fig.org/" } ], "description": "Common interface for logging libraries", @@ -939,9 +941,9 @@ "psr-3" ], "support": { - "source": "https://github.com/php-fig/log/tree/1.1.3" + "source": "https://github.com/php-fig/log/tree/1.1.4" }, - "time": "2020-03-23T09:12:05+00:00" + "time": "2021-05-03T11:20:27+00:00" }, { "name": "sebastian/diff", @@ -1011,16 +1013,16 @@ }, { "name": "squizlabs/php_codesniffer", - "version": "3.5.8", + "version": "3.6.0", "source": { "type": "git", "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", - "reference": "9d583721a7157ee997f235f327de038e7ea6dac4" + "reference": "ffced0d2c8fa8e6cdc4d695a743271fab6c38625" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/9d583721a7157ee997f235f327de038e7ea6dac4", - "reference": "9d583721a7157ee997f235f327de038e7ea6dac4", + "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/ffced0d2c8fa8e6cdc4d695a743271fab6c38625", + "reference": "ffced0d2c8fa8e6cdc4d695a743271fab6c38625", "shasum": "" }, "require": { @@ -1063,24 +1065,25 @@ "source": "https://github.com/squizlabs/PHP_CodeSniffer", "wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki" }, - "time": "2020-10-23T02:01:07+00:00" + "time": "2021-04-09T00:54:41+00:00" }, { "name": "symfony/console", - "version": "v5.1.8", + "version": "v5.3.0", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "e0b2c29c0fa6a69089209bbe8fcff4df2a313d0e" + "reference": "058553870f7809087fa80fa734704a21b9bcaeb2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/e0b2c29c0fa6a69089209bbe8fcff4df2a313d0e", - "reference": "e0b2c29c0fa6a69089209bbe8fcff4df2a313d0e", + "url": "https://api.github.com/repos/symfony/console/zipball/058553870f7809087fa80fa734704a21b9bcaeb2", + "reference": "058553870f7809087fa80fa734704a21b9bcaeb2", "shasum": "" }, "require": { "php": ">=7.2.5", + "symfony/deprecation-contracts": "^2.1", "symfony/polyfill-mbstring": "~1.0", "symfony/polyfill-php73": "^1.8", "symfony/polyfill-php80": "^1.15", @@ -1135,10 +1138,83 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony Console Component", + "description": "Eases the creation of beautiful and testable command line interfaces", + "homepage": "https://symfony.com", + "keywords": [ + "cli", + "command line", + "console", + "terminal" + ], + "support": { + "source": "https://github.com/symfony/console/tree/v5.3.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": "2021-05-26T17:43:10+00:00" + }, + { + "name": "symfony/deprecation-contracts", + "version": "v2.4.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/deprecation-contracts.git", + "reference": "5f38c8804a9e97d23e0c8d63341088cd8a22d627" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/5f38c8804a9e97d23e0c8d63341088cd8a22d627", + "reference": "5f38c8804a9e97d23e0c8d63341088cd8a22d627", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.4-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "autoload": { + "files": [ + "function.php" + ] + }, + "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": "A generic function and convention to trigger deprecation notices", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/console/tree/v5.1.8" + "source": "https://github.com/symfony/deprecation-contracts/tree/v2.4.0" }, "funding": [ { @@ -1154,20 +1230,20 @@ "type": "tidelift" } ], - "time": "2020-10-24T12:01:57+00:00" + "time": "2021-03-23T23:28:01+00:00" }, { "name": "symfony/polyfill-ctype", - "version": "v1.20.0", + "version": "v1.23.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-ctype.git", - "reference": "f4ba089a5b6366e453971d3aad5fe8e897b37f41" + "reference": "46cd95797e9df938fdd2b03693b5fca5e64b01ce" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/f4ba089a5b6366e453971d3aad5fe8e897b37f41", - "reference": "f4ba089a5b6366e453971d3aad5fe8e897b37f41", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/46cd95797e9df938fdd2b03693b5fca5e64b01ce", + "reference": "46cd95797e9df938fdd2b03693b5fca5e64b01ce", "shasum": "" }, "require": { @@ -1179,7 +1255,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.20-dev" + "dev-main": "1.23-dev" }, "thanks": { "name": "symfony/polyfill", @@ -1217,7 +1293,7 @@ "portable" ], "support": { - "source": "https://github.com/symfony/polyfill-ctype/tree/v1.20.0" + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.23.0" }, "funding": [ { @@ -1233,20 +1309,20 @@ "type": "tidelift" } ], - "time": "2020-10-23T14:02:19+00:00" + "time": "2021-02-19T12:13:01+00:00" }, { "name": "symfony/polyfill-intl-grapheme", - "version": "v1.20.0", + "version": "v1.23.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-grapheme.git", - "reference": "c7cf3f858ec7d70b89559d6e6eb1f7c2517d479c" + "reference": "24b72c6baa32c746a4d0840147c9715e42bb68ab" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/c7cf3f858ec7d70b89559d6e6eb1f7c2517d479c", - "reference": "c7cf3f858ec7d70b89559d6e6eb1f7c2517d479c", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/24b72c6baa32c746a4d0840147c9715e42bb68ab", + "reference": "24b72c6baa32c746a4d0840147c9715e42bb68ab", "shasum": "" }, "require": { @@ -1258,7 +1334,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.20-dev" + "dev-main": "1.23-dev" }, "thanks": { "name": "symfony/polyfill", @@ -1298,7 +1374,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.20.0" + "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.23.0" }, "funding": [ { @@ -1314,20 +1390,20 @@ "type": "tidelift" } ], - "time": "2020-10-23T14:02:19+00:00" + "time": "2021-05-27T09:17:38+00:00" }, { "name": "symfony/polyfill-intl-normalizer", - "version": "v1.20.0", + "version": "v1.23.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-normalizer.git", - "reference": "727d1096295d807c309fb01a851577302394c897" + "reference": "8590a5f561694770bdcd3f9b5c69dde6945028e8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/727d1096295d807c309fb01a851577302394c897", - "reference": "727d1096295d807c309fb01a851577302394c897", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/8590a5f561694770bdcd3f9b5c69dde6945028e8", + "reference": "8590a5f561694770bdcd3f9b5c69dde6945028e8", "shasum": "" }, "require": { @@ -1339,7 +1415,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.20-dev" + "dev-main": "1.23-dev" }, "thanks": { "name": "symfony/polyfill", @@ -1382,7 +1458,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.20.0" + "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.23.0" }, "funding": [ { @@ -1398,20 +1474,20 @@ "type": "tidelift" } ], - "time": "2020-10-23T14:02:19+00:00" + "time": "2021-02-19T12:13:01+00:00" }, { "name": "symfony/polyfill-mbstring", - "version": "v1.20.0", + "version": "v1.23.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "39d483bdf39be819deabf04ec872eb0b2410b531" + "reference": "2df51500adbaebdc4c38dea4c89a2e131c45c8a1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/39d483bdf39be819deabf04ec872eb0b2410b531", - "reference": "39d483bdf39be819deabf04ec872eb0b2410b531", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/2df51500adbaebdc4c38dea4c89a2e131c45c8a1", + "reference": "2df51500adbaebdc4c38dea4c89a2e131c45c8a1", "shasum": "" }, "require": { @@ -1423,7 +1499,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.20-dev" + "dev-main": "1.23-dev" }, "thanks": { "name": "symfony/polyfill", @@ -1462,7 +1538,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.20.0" + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.23.0" }, "funding": [ { @@ -1478,20 +1554,20 @@ "type": "tidelift" } ], - "time": "2020-10-23T14:02:19+00:00" + "time": "2021-05-27T09:27:20+00:00" }, { "name": "symfony/polyfill-php73", - "version": "v1.20.0", + "version": "v1.23.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php73.git", - "reference": "8ff431c517be11c78c48a39a66d37431e26a6bed" + "reference": "fba8933c384d6476ab14fb7b8526e5287ca7e010" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/8ff431c517be11c78c48a39a66d37431e26a6bed", - "reference": "8ff431c517be11c78c48a39a66d37431e26a6bed", + "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/fba8933c384d6476ab14fb7b8526e5287ca7e010", + "reference": "fba8933c384d6476ab14fb7b8526e5287ca7e010", "shasum": "" }, "require": { @@ -1500,7 +1576,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.20-dev" + "dev-main": "1.23-dev" }, "thanks": { "name": "symfony/polyfill", @@ -1541,7 +1617,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php73/tree/v1.20.0" + "source": "https://github.com/symfony/polyfill-php73/tree/v1.23.0" }, "funding": [ { @@ -1557,20 +1633,20 @@ "type": "tidelift" } ], - "time": "2020-10-23T14:02:19+00:00" + "time": "2021-02-19T12:13:01+00:00" }, { "name": "symfony/polyfill-php80", - "version": "v1.20.0", + "version": "v1.23.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "e70aa8b064c5b72d3df2abd5ab1e90464ad009de" + "reference": "eca0bf41ed421bed1b57c4958bab16aa86b757d0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/e70aa8b064c5b72d3df2abd5ab1e90464ad009de", - "reference": "e70aa8b064c5b72d3df2abd5ab1e90464ad009de", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/eca0bf41ed421bed1b57c4958bab16aa86b757d0", + "reference": "eca0bf41ed421bed1b57c4958bab16aa86b757d0", "shasum": "" }, "require": { @@ -1579,7 +1655,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.20-dev" + "dev-main": "1.23-dev" }, "thanks": { "name": "symfony/polyfill", @@ -1624,7 +1700,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php80/tree/v1.20.0" + "source": "https://github.com/symfony/polyfill-php80/tree/v1.23.0" }, "funding": [ { @@ -1640,25 +1716,25 @@ "type": "tidelift" } ], - "time": "2020-10-23T14:02:19+00:00" + "time": "2021-02-19T12:13:01+00:00" }, { "name": "symfony/service-contracts", - "version": "v2.2.0", + "version": "v2.4.0", "source": { "type": "git", "url": "https://github.com/symfony/service-contracts.git", - "reference": "d15da7ba4957ffb8f1747218be9e1a121fd298a1" + "reference": "f040a30e04b57fbcc9c6cbcf4dbaa96bd318b9bb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/d15da7ba4957ffb8f1747218be9e1a121fd298a1", - "reference": "d15da7ba4957ffb8f1747218be9e1a121fd298a1", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/f040a30e04b57fbcc9c6cbcf4dbaa96bd318b9bb", + "reference": "f040a30e04b57fbcc9c6cbcf4dbaa96bd318b9bb", "shasum": "" }, "require": { "php": ">=7.2.5", - "psr/container": "^1.0" + "psr/container": "^1.1" }, "suggest": { "symfony/service-implementation": "" @@ -1666,7 +1742,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.2-dev" + "dev-main": "2.4-dev" }, "thanks": { "name": "symfony/contracts", @@ -1703,7 +1779,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/service-contracts/tree/master" + "source": "https://github.com/symfony/service-contracts/tree/v2.4.0" }, "funding": [ { @@ -1719,20 +1795,20 @@ "type": "tidelift" } ], - "time": "2020-09-07T11:33:47+00:00" + "time": "2021-04-01T10:43:52+00:00" }, { "name": "symfony/string", - "version": "v5.1.8", + "version": "v5.3.0", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "a97573e960303db71be0dd8fda9be3bca5e0feea" + "reference": "a9a0f8b6aafc5d2d1c116dcccd1573a95153515b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/a97573e960303db71be0dd8fda9be3bca5e0feea", - "reference": "a97573e960303db71be0dd8fda9be3bca5e0feea", + "url": "https://api.github.com/repos/symfony/string/zipball/a9a0f8b6aafc5d2d1c116dcccd1573a95153515b", + "reference": "a9a0f8b6aafc5d2d1c116dcccd1573a95153515b", "shasum": "" }, "require": { @@ -1775,7 +1851,7 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony String component", + "description": "Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way", "homepage": "https://symfony.com", "keywords": [ "grapheme", @@ -1786,7 +1862,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v5.1.8" + "source": "https://github.com/symfony/string/tree/v5.3.0" }, "funding": [ { @@ -1802,7 +1878,7 @@ "type": "tidelift" } ], - "time": "2020-10-24T12:01:57+00:00" + "time": "2021-05-26T17:43:10+00:00" }, { "name": "vimeo/psalm", @@ -1913,12 +1989,12 @@ "version": "1.9.1", "source": { "type": "git", - "url": "https://github.com/webmozart/assert.git", + "url": "https://github.com/webmozarts/assert.git", "reference": "bafc69caeb4d49c39fd0779086c03a3738cbb389" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/webmozart/assert/zipball/bafc69caeb4d49c39fd0779086c03a3738cbb389", + "url": "https://api.github.com/repos/webmozarts/assert/zipball/bafc69caeb4d49c39fd0779086c03a3738cbb389", "reference": "bafc69caeb4d49c39fd0779086c03a3738cbb389", "shasum": "" }, @@ -1956,33 +2032,32 @@ "validate" ], "support": { - "issues": "https://github.com/webmozart/assert/issues", - "source": "https://github.com/webmozart/assert/tree/master" + "issues": "https://github.com/webmozarts/assert/issues", + "source": "https://github.com/webmozarts/assert/tree/1.9.1" }, "time": "2020-07-08T17:02:28+00:00" }, { "name": "webmozart/glob", - "version": "4.1.0", + "version": "4.3.0", "source": { "type": "git", - "url": "https://github.com/webmozart/glob.git", - "reference": "3cbf63d4973cf9d780b93d2da8eec7e4a9e63bbe" + "url": "https://github.com/webmozarts/glob.git", + "reference": "06358fafde0f32edb4513f4fd88fe113a40c90ee" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/webmozart/glob/zipball/3cbf63d4973cf9d780b93d2da8eec7e4a9e63bbe", - "reference": "3cbf63d4973cf9d780b93d2da8eec7e4a9e63bbe", + "url": "https://api.github.com/repos/webmozarts/glob/zipball/06358fafde0f32edb4513f4fd88fe113a40c90ee", + "reference": "06358fafde0f32edb4513f4fd88fe113a40c90ee", "shasum": "" }, "require": { - "php": "^5.3.3|^7.0", + "php": "^7.3 || ^8.0.0", "webmozart/path-util": "^2.2" }, "require-dev": { - "phpunit/phpunit": "^4.6", - "sebastian/version": "^1.0.1", - "symfony/filesystem": "^2.5" + "phpunit/phpunit": "^8.0", + "symfony/filesystem": "^5.1" }, "type": "library", "extra": { @@ -2007,10 +2082,10 @@ ], "description": "A PHP implementation of Ant's glob.", "support": { - "issues": "https://github.com/webmozart/glob/issues", - "source": "https://github.com/webmozart/glob/tree/master" + "issues": "https://github.com/webmozarts/glob/issues", + "source": "https://github.com/webmozarts/glob/tree/4.3.0" }, - "time": "2015-12-29T11:14:33+00:00" + "time": "2021-01-21T06:17:15+00:00" }, { "name": "webmozart/path-util", @@ -2069,8 +2144,8 @@ "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": ">=7.2.0" + "php": ">=7.4" }, "platform-dev": [], - "plugin-api-version": "2.0.0" + "plugin-api-version": "2.1.0" } From 0d57f35112e4c8069b94ab7d5197675bf2529d36 Mon Sep 17 00:00:00 2001 From: Anton Vasiliev Date: Wed, 9 Jun 2021 00:32:22 +0100 Subject: [PATCH 05/16] Mass rename extension from `.zep.php` to `.php` --- src/Acl/Adapter/{AbstractAdapter.zep.php => AbstractAdapter.php} | 0 .../Adapter/{AdapterInterface.zep.php => AdapterInterface.php} | 0 src/Acl/Adapter/{Memory.zep.php => Memory.php} | 0 src/Acl/{Component.zep.php => Component.php} | 0 src/Acl/{ComponentAware.zep.php => ComponentAware.php} | 0 src/Acl/{ComponentInterface.zep.php => ComponentInterface.php} | 0 src/Acl/{Enum.zep.php => Enum.php} | 0 src/Acl/{Exception.zep.php => Exception.php} | 0 src/Acl/{Role.zep.php => Role.php} | 0 src/Acl/{RoleAware.zep.php => RoleAware.php} | 0 src/Acl/{RoleInterface.zep.php => RoleInterface.php} | 0 .../Adapter/{AbstractAdapter.zep.php => AbstractAdapter.php} | 0 .../Adapter/{AdapterInterface.zep.php => AdapterInterface.php} | 0 src/Annotations/Adapter/{Apcu.zep.php => Apcu.php} | 0 src/Annotations/Adapter/{Memory.zep.php => Memory.php} | 0 src/Annotations/Adapter/{Stream.zep.php => Stream.php} | 0 src/Annotations/{Annotation.zep.php => Annotation.php} | 0 .../{AnnotationsFactory.zep.php => AnnotationsFactory.php} | 0 src/Annotations/{Collection.zep.php => Collection.php} | 0 src/Annotations/{Exception.zep.php => Exception.php} | 0 src/Annotations/{Reader.zep.php => Reader.php} | 0 src/Annotations/{ReaderInterface.zep.php => ReaderInterface.php} | 0 src/Annotations/{Reflection.zep.php => Reflection.php} | 0 .../{AbstractApplication.zep.php => AbstractApplication.php} | 0 src/Application/{Exception.zep.php => Exception.php} | 0 src/Assets/{Asset.zep.php => Asset.php} | 0 src/Assets/Asset/{Css.zep.php => Css.php} | 0 src/Assets/Asset/{Js.zep.php => Js.php} | 0 src/Assets/{AssetInterface.zep.php => AssetInterface.php} | 0 src/Assets/{Collection.zep.php => Collection.php} | 0 src/Assets/{Exception.zep.php => Exception.php} | 0 src/Assets/{FilterInterface.zep.php => FilterInterface.php} | 0 src/Assets/Filters/{Cssmin.zep.php => Cssmin.php} | 0 src/Assets/Filters/{Jsmin.zep.php => Jsmin.php} | 0 src/Assets/Filters/{None.zep.php => None.php} | 0 src/Assets/{Inline.zep.php => Inline.php} | 0 src/Assets/Inline/{Css.zep.php => Css.php} | 0 src/Assets/Inline/{Js.zep.php => Js.php} | 0 src/Assets/{Manager.zep.php => Manager.php} | 0 src/{Cache.zep.php => Cache.php} | 0 .../Adapter/{AdapterInterface.zep.php => AdapterInterface.php} | 0 src/Cache/Adapter/{Apcu.zep.php => Apcu.php} | 0 src/Cache/Adapter/{Libmemcached.zep.php => Libmemcached.php} | 0 src/Cache/Adapter/{Memory.zep.php => Memory.php} | 0 src/Cache/Adapter/{Redis.zep.php => Redis.php} | 0 src/Cache/Adapter/{Stream.zep.php => Stream.php} | 0 src/Cache/{AdapterFactory.zep.php => AdapterFactory.php} | 0 src/Cache/{CacheFactory.zep.php => CacheFactory.php} | 0 src/Cache/Exception/{Exception.zep.php => Exception.php} | 0 ...alidArgumentException.zep.php => InvalidArgumentException.php} | 0 src/Cli/{Console.zep.php => Console.php} | 0 src/Cli/Console/{Exception.zep.php => Exception.php} | 0 src/Cli/{Dispatcher.zep.php => Dispatcher.php} | 0 src/Cli/Dispatcher/{Exception.zep.php => Exception.php} | 0 src/Cli/{DispatcherInterface.zep.php => DispatcherInterface.php} | 0 src/Cli/{Router.zep.php => Router.php} | 0 src/Cli/Router/{Exception.zep.php => Exception.php} | 0 src/Cli/Router/{Route.zep.php => Route.php} | 0 src/Cli/Router/{RouteInterface.zep.php => RouteInterface.php} | 0 src/Cli/{RouterInterface.zep.php => RouterInterface.php} | 0 src/Cli/{Task.zep.php => Task.php} | 0 src/Cli/{TaskInterface.zep.php => TaskInterface.php} | 0 src/{Collection.zep.php => Collection.php} | 0 .../{CollectionInterface.zep.php => CollectionInterface.php} | 0 src/Collection/{Exception.zep.php => Exception.php} | 0 src/Collection/{ReadOnly.zep.php => ReadOnly.php} | 0 src/{Config.zep.php => Config.php} | 0 src/Config/Adapter/{Grouped.zep.php => Grouped.php} | 0 src/Config/Adapter/{Ini.zep.php => Ini.php} | 0 src/Config/Adapter/{Json.zep.php => Json.php} | 0 src/Config/Adapter/{Php.zep.php => Php.php} | 0 src/Config/Adapter/{Yaml.zep.php => Yaml.php} | 0 src/Config/{ConfigFactory.zep.php => ConfigFactory.php} | 0 src/Config/{ConfigInterface.zep.php => ConfigInterface.php} | 0 src/Config/{Exception.zep.php => Exception.php} | 0 src/{Container.zep.php => Container.php} | 0 src/{Crypt.zep.php => Crypt.php} | 0 src/Crypt/{CryptInterface.zep.php => CryptInterface.php} | 0 src/Crypt/{Exception.zep.php => Exception.php} | 0 src/Crypt/{Mismatch.zep.php => Mismatch.php} | 0 src/DataMapper/Pdo/{Connection.zep.php => Connection.php} | 0 .../{AbstractConnection.zep.php => AbstractConnection.php} | 0 .../{ConnectionInterface.zep.php => ConnectionInterface.php} | 0 .../Pdo/Connection/{Decorated.zep.php => Decorated.php} | 0 .../Pdo/Connection/{PdoInterface.zep.php => PdoInterface.php} | 0 .../Pdo/{ConnectionLocator.zep.php => ConnectionLocator.php} | 0 ...ionLocatorInterface.zep.php => ConnectionLocatorInterface.php} | 0 .../Exception/{CannotDisconnect.zep.php => CannotDisconnect.php} | 0 .../{ConnectionNotFound.zep.php => ConnectionNotFound.php} | 0 src/DataMapper/Pdo/Exception/{Exception.zep.php => Exception.php} | 0 .../Pdo/Profiler/{MemoryLogger.zep.php => MemoryLogger.php} | 0 src/DataMapper/Pdo/Profiler/{Profiler.zep.php => Profiler.php} | 0 .../Profiler/{ProfilerInterface.zep.php => ProfilerInterface.php} | 0 .../Query/{AbstractConditions.zep.php => AbstractConditions.php} | 0 src/DataMapper/Query/{AbstractQuery.zep.php => AbstractQuery.php} | 0 src/DataMapper/Query/{Bind.zep.php => Bind.php} | 0 src/DataMapper/Query/{Delete.zep.php => Delete.php} | 0 src/DataMapper/Query/{Insert.zep.php => Insert.php} | 0 src/DataMapper/Query/{QueryFactory.zep.php => QueryFactory.php} | 0 src/DataMapper/Query/{Select.zep.php => Select.php} | 0 src/DataMapper/Query/{Update.zep.php => Update.php} | 0 src/Db/{AbstractDb.zep.php => AbstractDb.php} | 0 src/Db/Adapter/{AbstractAdapter.zep.php => AbstractAdapter.php} | 0 src/Db/Adapter/{AdapterInterface.zep.php => AdapterInterface.php} | 0 src/Db/Adapter/Pdo/{AbstractPdo.zep.php => AbstractPdo.php} | 0 src/Db/Adapter/Pdo/{Mysql.zep.php => Mysql.php} | 0 src/Db/Adapter/Pdo/{Postgresql.zep.php => Postgresql.php} | 0 src/Db/Adapter/Pdo/{Sqlite.zep.php => Sqlite.php} | 0 src/Db/Adapter/{PdoFactory.zep.php => PdoFactory.php} | 0 src/Db/{Column.zep.php => Column.php} | 0 src/Db/{ColumnInterface.zep.php => ColumnInterface.php} | 0 src/Db/{Dialect.zep.php => Dialect.php} | 0 src/Db/Dialect/{Mysql.zep.php => Mysql.php} | 0 src/Db/Dialect/{Postgresql.zep.php => Postgresql.php} | 0 src/Db/Dialect/{Sqlite.zep.php => Sqlite.php} | 0 src/Db/{DialectInterface.zep.php => DialectInterface.php} | 0 src/Db/{Enum.zep.php => Enum.php} | 0 src/Db/{Exception.zep.php => Exception.php} | 0 src/Db/{Index.zep.php => Index.php} | 0 src/Db/{IndexInterface.zep.php => IndexInterface.php} | 0 src/Db/{Profiler.zep.php => Profiler.php} | 0 src/Db/Profiler/{Item.zep.php => Item.php} | 0 src/Db/{RawValue.zep.php => RawValue.php} | 0 src/Db/{Reference.zep.php => Reference.php} | 0 src/Db/{ReferenceInterface.zep.php => ReferenceInterface.php} | 0 src/Db/Result/{Pdo.zep.php => Pdo.php} | 0 src/Db/{ResultInterface.zep.php => ResultInterface.php} | 0 src/{Di.zep.php => Di.php} | 0 ...{AbstractInjectionAware.zep.php => AbstractInjectionAware.php} | 0 src/Di/{DiInterface.zep.php => DiInterface.php} | 0 src/Di/{Exception.zep.php => Exception.php} | 0 ...ResolutionException.zep.php => ServiceResolutionException.php} | 0 src/Di/{FactoryDefault.zep.php => FactoryDefault.php} | 0 src/Di/FactoryDefault/{Cli.zep.php => Cli.php} | 0 src/Di/{Injectable.zep.php => Injectable.php} | 0 ...njectionAwareInterface.zep.php => InjectionAwareInterface.php} | 0 src/Di/{Service.zep.php => Service.php} | 0 src/Di/Service/{Builder.zep.php => Builder.php} | 0 src/Di/{ServiceInterface.zep.php => ServiceInterface.php} | 0 ...viceProviderInterface.zep.php => ServiceProviderInterface.php} | 0 .../{AbstractDispatcher.zep.php => AbstractDispatcher.php} | 0 .../{DispatcherInterface.zep.php => DispatcherInterface.php} | 0 src/Dispatcher/{Exception.zep.php => Exception.php} | 0 src/Domain/Payload/{Payload.zep.php => Payload.php} | 0 src/Domain/Payload/{PayloadFactory.zep.php => PayloadFactory.php} | 0 .../Payload/{PayloadInterface.zep.php => PayloadInterface.php} | 0 .../Payload/{ReadableInterface.zep.php => ReadableInterface.php} | 0 src/Domain/Payload/{Status.zep.php => Status.php} | 0 .../{WriteableInterface.zep.php => WriteableInterface.php} | 0 src/{Escaper.zep.php => Escaper.php} | 0 src/Escaper/{EscaperInterface.zep.php => EscaperInterface.php} | 0 src/Escaper/{Exception.zep.php => Exception.php} | 0 src/Events/{Event.zep.php => Event.php} | 0 src/Events/{EventInterface.zep.php => EventInterface.php} | 0 .../{EventsAwareInterface.zep.php => EventsAwareInterface.php} | 0 src/Events/{Exception.zep.php => Exception.php} | 0 src/Events/{Manager.zep.php => Manager.php} | 0 src/Events/{ManagerInterface.zep.php => ManagerInterface.php} | 0 src/{Exception.zep.php => Exception.php} | 0 src/Factory/{AbstractFactory.zep.php => AbstractFactory.php} | 0 src/Factory/{Exception.zep.php => Exception.php} | 0 src/{Filter.zep.php => Filter.php} | 0 src/Filter/{Exception.zep.php => Exception.php} | 0 src/Filter/{FilterFactory.zep.php => FilterFactory.php} | 0 src/Filter/{FilterInterface.zep.php => FilterInterface.php} | 0 src/Filter/Sanitize/{AbsInt.zep.php => AbsInt.php} | 0 src/Filter/Sanitize/{Alnum.zep.php => Alnum.php} | 0 src/Filter/Sanitize/{Alpha.zep.php => Alpha.php} | 0 src/Filter/Sanitize/{BoolVal.zep.php => BoolVal.php} | 0 src/Filter/Sanitize/{Email.zep.php => Email.php} | 0 src/Filter/Sanitize/{FloatVal.zep.php => FloatVal.php} | 0 src/Filter/Sanitize/{IntVal.zep.php => IntVal.php} | 0 src/Filter/Sanitize/{Lower.zep.php => Lower.php} | 0 src/Filter/Sanitize/{LowerFirst.zep.php => LowerFirst.php} | 0 src/Filter/Sanitize/{Regex.zep.php => Regex.php} | 0 src/Filter/Sanitize/{Remove.zep.php => Remove.php} | 0 src/Filter/Sanitize/{Replace.zep.php => Replace.php} | 0 src/Filter/Sanitize/{Special.zep.php => Special.php} | 0 src/Filter/Sanitize/{SpecialFull.zep.php => SpecialFull.php} | 0 src/Filter/Sanitize/{StringVal.zep.php => StringVal.php} | 0 src/Filter/Sanitize/{Striptags.zep.php => Striptags.php} | 0 src/Filter/Sanitize/{Trim.zep.php => Trim.php} | 0 src/Filter/Sanitize/{Upper.zep.php => Upper.php} | 0 src/Filter/Sanitize/{UpperFirst.zep.php => UpperFirst.php} | 0 src/Filter/Sanitize/{UpperWords.zep.php => UpperWords.php} | 0 src/Filter/Sanitize/{Url.zep.php => Url.php} | 0 src/Flash/{AbstractFlash.zep.php => AbstractFlash.php} | 0 src/Flash/{Direct.zep.php => Direct.php} | 0 src/Flash/{Exception.zep.php => Exception.php} | 0 src/Flash/{FlashInterface.zep.php => FlashInterface.php} | 0 src/Flash/{Session.zep.php => Session.php} | 0 .../Element/{AbstractElement.zep.php => AbstractElement.php} | 0 src/Forms/Element/{Check.zep.php => Check.php} | 0 src/Forms/Element/{Date.zep.php => Date.php} | 0 .../Element/{ElementInterface.zep.php => ElementInterface.php} | 0 src/Forms/Element/{Email.zep.php => Email.php} | 0 src/Forms/Element/{File.zep.php => File.php} | 0 src/Forms/Element/{Hidden.zep.php => Hidden.php} | 0 src/Forms/Element/{Numeric.zep.php => Numeric.php} | 0 src/Forms/Element/{Password.zep.php => Password.php} | 0 src/Forms/Element/{Radio.zep.php => Radio.php} | 0 src/Forms/Element/{Select.zep.php => Select.php} | 0 src/Forms/Element/{Submit.zep.php => Submit.php} | 0 src/Forms/Element/{Text.zep.php => Text.php} | 0 src/Forms/Element/{TextArea.zep.php => TextArea.php} | 0 src/Forms/{Exception.zep.php => Exception.php} | 0 src/Forms/{Form.zep.php => Form.php} | 0 src/Forms/{Manager.zep.php => Manager.php} | 0 src/Helper/{Arr.zep.php => Arr.php} | 0 src/Helper/{Base64.zep.php => Base64.php} | 0 src/Helper/{Exception.zep.php => Exception.php} | 0 src/Helper/{Fs.zep.php => Fs.php} | 0 src/Helper/{Json.zep.php => Json.php} | 0 src/Helper/{Number.zep.php => Number.php} | 0 src/Helper/{Str.zep.php => Str.php} | 0 src/Html/{Attributes.zep.php => Attributes.php} | 0 .../{AttributesInterface.zep.php => AttributesInterface.php} | 0 .../Attributes/{RenderInterface.zep.php => RenderInterface.php} | 0 src/Html/{Breadcrumbs.zep.php => Breadcrumbs.php} | 0 src/Html/{Exception.zep.php => Exception.php} | 0 src/Html/Helper/{AbstractHelper.zep.php => AbstractHelper.php} | 0 src/Html/Helper/{AbstractList.zep.php => AbstractList.php} | 0 src/Html/Helper/{AbstractSeries.zep.php => AbstractSeries.php} | 0 src/Html/Helper/{Anchor.zep.php => Anchor.php} | 0 src/Html/Helper/{Base.zep.php => Base.php} | 0 src/Html/Helper/{Body.zep.php => Body.php} | 0 src/Html/Helper/{Button.zep.php => Button.php} | 0 src/Html/Helper/{Close.zep.php => Close.php} | 0 src/Html/Helper/{Element.zep.php => Element.php} | 0 src/Html/Helper/{Form.zep.php => Form.php} | 0 src/Html/Helper/{Img.zep.php => Img.php} | 0 .../Helper/Input/{AbstractInput.zep.php => AbstractInput.php} | 0 src/Html/Helper/Input/{Checkbox.zep.php => Checkbox.php} | 0 src/Html/Helper/Input/{Color.zep.php => Color.php} | 0 src/Html/Helper/Input/{Date.zep.php => Date.php} | 0 src/Html/Helper/Input/{DateTime.zep.php => DateTime.php} | 0 .../Helper/Input/{DateTimeLocal.zep.php => DateTimeLocal.php} | 0 src/Html/Helper/Input/{Email.zep.php => Email.php} | 0 src/Html/Helper/Input/{File.zep.php => File.php} | 0 src/Html/Helper/Input/{Hidden.zep.php => Hidden.php} | 0 src/Html/Helper/Input/{Image.zep.php => Image.php} | 0 src/Html/Helper/Input/{Input.zep.php => Input.php} | 0 src/Html/Helper/Input/{Month.zep.php => Month.php} | 0 src/Html/Helper/Input/{Numeric.zep.php => Numeric.php} | 0 src/Html/Helper/Input/{Password.zep.php => Password.php} | 0 src/Html/Helper/Input/{Radio.zep.php => Radio.php} | 0 src/Html/Helper/Input/{Range.zep.php => Range.php} | 0 src/Html/Helper/Input/{Search.zep.php => Search.php} | 0 src/Html/Helper/Input/{Select.zep.php => Select.php} | 0 src/Html/Helper/Input/{Submit.zep.php => Submit.php} | 0 src/Html/Helper/Input/{Tel.zep.php => Tel.php} | 0 src/Html/Helper/Input/{Text.zep.php => Text.php} | 0 src/Html/Helper/Input/{Textarea.zep.php => Textarea.php} | 0 src/Html/Helper/Input/{Time.zep.php => Time.php} | 0 src/Html/Helper/Input/{Url.zep.php => Url.php} | 0 src/Html/Helper/Input/{Week.zep.php => Week.php} | 0 src/Html/Helper/{Label.zep.php => Label.php} | 0 src/Html/Helper/{Link.zep.php => Link.php} | 0 src/Html/Helper/{Meta.zep.php => Meta.php} | 0 src/Html/Helper/{Ol.zep.php => Ol.php} | 0 src/Html/Helper/{Script.zep.php => Script.php} | 0 src/Html/Helper/{Style.zep.php => Style.php} | 0 src/Html/Helper/{Title.zep.php => Title.php} | 0 src/Html/Helper/{Ul.zep.php => Ul.php} | 0 src/Html/Link/{EvolvableLink.zep.php => EvolvableLink.php} | 0 .../{EvolvableLinkProvider.zep.php => EvolvableLinkProvider.php} | 0 src/Html/Link/{Link.zep.php => Link.php} | 0 src/Html/Link/{LinkProvider.zep.php => LinkProvider.php} | 0 src/Html/Link/Serializer/{Header.zep.php => Header.php} | 0 .../{SerializerInterface.zep.php => SerializerInterface.php} | 0 src/Html/{TagFactory.zep.php => TagFactory.php} | 0 src/Http/{Cookie.zep.php => Cookie.php} | 0 src/Http/Cookie/{CookieInterface.zep.php => CookieInterface.php} | 0 src/Http/Cookie/{Exception.zep.php => Exception.php} | 0 src/Http/Message/{AbstractCommon.zep.php => AbstractCommon.php} | 0 src/Http/Message/{AbstractMessage.zep.php => AbstractMessage.php} | 0 src/Http/Message/{AbstractRequest.zep.php => AbstractRequest.php} | 0 ...alidArgumentException.zep.php => InvalidArgumentException.php} | 0 src/Http/Message/{Request.zep.php => Request.php} | 0 src/Http/Message/{RequestFactory.zep.php => RequestFactory.php} | 0 src/Http/Message/{Response.zep.php => Response.php} | 0 src/Http/Message/{ResponseFactory.zep.php => ResponseFactory.php} | 0 src/Http/Message/{ServerRequest.zep.php => ServerRequest.php} | 0 .../{ServerRequestFactory.zep.php => ServerRequestFactory.php} | 0 src/Http/Message/{Stream.zep.php => Stream.php} | 0 src/Http/Message/Stream/{Input.zep.php => Input.php} | 0 src/Http/Message/Stream/{Memory.zep.php => Memory.php} | 0 src/Http/Message/Stream/{Temp.zep.php => Temp.php} | 0 src/Http/Message/{StreamFactory.zep.php => StreamFactory.php} | 0 src/Http/Message/{UploadedFile.zep.php => UploadedFile.php} | 0 .../{UploadedFileFactory.zep.php => UploadedFileFactory.php} | 0 src/Http/Message/{Uri.zep.php => Uri.php} | 0 src/Http/Message/{UriFactory.zep.php => UriFactory.php} | 0 src/Http/{Request.zep.php => Request.php} | 0 src/Http/Request/{Exception.zep.php => Exception.php} | 0 src/Http/Request/{File.zep.php => File.php} | 0 src/Http/Request/{FileInterface.zep.php => FileInterface.php} | 0 src/Http/{RequestInterface.zep.php => RequestInterface.php} | 0 src/Http/{Response.zep.php => Response.php} | 0 src/Http/Response/{Cookies.zep.php => Cookies.php} | 0 .../Response/{CookiesInterface.zep.php => CookiesInterface.php} | 0 src/Http/Response/{Exception.zep.php => Exception.php} | 0 src/Http/Response/{Headers.zep.php => Headers.php} | 0 .../Response/{HeadersInterface.zep.php => HeadersInterface.php} | 0 src/Http/{ResponseInterface.zep.php => ResponseInterface.php} | 0 .../Server/{AbstractMiddleware.zep.php => AbstractMiddleware.php} | 0 ...{AbstractRequestHandler.zep.php => AbstractRequestHandler.php} | 0 .../Adapter/{AbstractAdapter.zep.php => AbstractAdapter.php} | 0 .../Adapter/{AdapterInterface.zep.php => AdapterInterface.php} | 0 src/Image/Adapter/{Gd.zep.php => Gd.php} | 0 src/Image/Adapter/{Imagick.zep.php => Imagick.php} | 0 src/Image/{Enum.zep.php => Enum.php} | 0 src/Image/{Exception.zep.php => Exception.php} | 0 src/Image/{ImageFactory.zep.php => ImageFactory.php} | 0 src/{Kernel.zep.php => Kernel.php} | 0 src/{Loader.zep.php => Loader.php} | 0 src/Loader/{Exception.zep.php => Exception.php} | 0 src/{Logger.zep.php => Logger.php} | 0 .../Adapter/{AbstractAdapter.zep.php => AbstractAdapter.php} | 0 .../Adapter/{AdapterInterface.zep.php => AdapterInterface.php} | 0 src/Logger/Adapter/{Noop.zep.php => Noop.php} | 0 src/Logger/Adapter/{Stream.zep.php => Stream.php} | 0 src/Logger/Adapter/{Syslog.zep.php => Syslog.php} | 0 src/Logger/{AdapterFactory.zep.php => AdapterFactory.php} | 0 src/Logger/{Exception.zep.php => Exception.php} | 0 .../{AbstractFormatter.zep.php => AbstractFormatter.php} | 0 .../{FormatterInterface.zep.php => FormatterInterface.php} | 0 src/Logger/Formatter/{Json.zep.php => Json.php} | 0 src/Logger/Formatter/{Line.zep.php => Line.php} | 0 src/Logger/{Item.zep.php => Item.php} | 0 src/Logger/{LoggerFactory.zep.php => LoggerFactory.php} | 0 src/Messages/{Exception.zep.php => Exception.php} | 0 src/Messages/{Message.zep.php => Message.php} | 0 src/Messages/{MessageInterface.zep.php => MessageInterface.php} | 0 src/Messages/{Messages.zep.php => Messages.php} | 0 src/Mvc/{Application.zep.php => Application.php} | 0 src/Mvc/Application/{Exception.zep.php => Exception.php} | 0 src/Mvc/{Controller.zep.php => Controller.php} | 0 .../{BindModelInterface.zep.php => BindModelInterface.php} | 0 src/Mvc/{ControllerInterface.zep.php => ControllerInterface.php} | 0 src/Mvc/{Dispatcher.zep.php => Dispatcher.php} | 0 src/Mvc/Dispatcher/{Exception.zep.php => Exception.php} | 0 src/Mvc/{DispatcherInterface.zep.php => DispatcherInterface.php} | 0 src/Mvc/{EntityInterface.zep.php => EntityInterface.php} | 0 src/Mvc/{Micro.zep.php => Micro.php} | 0 src/Mvc/Micro/{Collection.zep.php => Collection.php} | 0 .../{CollectionInterface.zep.php => CollectionInterface.php} | 0 src/Mvc/Micro/{Exception.zep.php => Exception.php} | 0 src/Mvc/Micro/{LazyLoader.zep.php => LazyLoader.php} | 0 .../{MiddlewareInterface.zep.php => MiddlewareInterface.php} | 0 src/Mvc/{Model.zep.php => Model.php} | 0 src/Mvc/Model/{Behavior.zep.php => Behavior.php} | 0 src/Mvc/Model/Behavior/{SoftDelete.zep.php => SoftDelete.php} | 0 .../Model/Behavior/{Timestampable.zep.php => Timestampable.php} | 0 .../Model/{BehaviorInterface.zep.php => BehaviorInterface.php} | 0 src/Mvc/Model/{Binder.zep.php => Binder.php} | 0 .../Binder/{BindableInterface.zep.php => BindableInterface.php} | 0 src/Mvc/Model/{BinderInterface.zep.php => BinderInterface.php} | 0 src/Mvc/Model/{Criteria.zep.php => Criteria.php} | 0 .../Model/{CriteriaInterface.zep.php => CriteriaInterface.php} | 0 src/Mvc/Model/{Exception.zep.php => Exception.php} | 0 src/Mvc/Model/{Manager.zep.php => Manager.php} | 0 src/Mvc/Model/{ManagerInterface.zep.php => ManagerInterface.php} | 0 src/Mvc/Model/{MetaData.zep.php => MetaData.php} | 0 src/Mvc/Model/MetaData/{Apcu.zep.php => Apcu.php} | 0 src/Mvc/Model/MetaData/{Libmemcached.zep.php => Libmemcached.php} | 0 src/Mvc/Model/MetaData/{Memory.zep.php => Memory.php} | 0 src/Mvc/Model/MetaData/{Redis.zep.php => Redis.php} | 0 .../MetaData/Strategy/{Annotations.zep.php => Annotations.php} | 0 .../Strategy/{Introspection.zep.php => Introspection.php} | 0 .../Strategy/{StrategyInterface.zep.php => StrategyInterface.php} | 0 src/Mvc/Model/MetaData/{Stream.zep.php => Stream.php} | 0 .../Model/{MetaDataInterface.zep.php => MetaDataInterface.php} | 0 src/Mvc/Model/{Query.zep.php => Query.php} | 0 src/Mvc/Model/Query/{Builder.zep.php => Builder.php} | 0 .../Query/{BuilderInterface.zep.php => BuilderInterface.php} | 0 src/Mvc/Model/Query/{Lang.zep.php => Lang.php} | 0 src/Mvc/Model/Query/{Status.zep.php => Status.php} | 0 .../Model/Query/{StatusInterface.zep.php => StatusInterface.php} | 0 src/Mvc/Model/{QueryInterface.zep.php => QueryInterface.php} | 0 src/Mvc/Model/{Relation.zep.php => Relation.php} | 0 .../Model/{RelationInterface.zep.php => RelationInterface.php} | 0 src/Mvc/Model/{ResultInterface.zep.php => ResultInterface.php} | 0 src/Mvc/Model/{Resultset.zep.php => Resultset.php} | 0 src/Mvc/Model/Resultset/{Complex.zep.php => Complex.php} | 0 src/Mvc/Model/Resultset/{Simple.zep.php => Simple.php} | 0 .../Model/{ResultsetInterface.zep.php => ResultsetInterface.php} | 0 src/Mvc/Model/{Row.zep.php => Row.php} | 0 src/Mvc/Model/{Transaction.zep.php => Transaction.php} | 0 src/Mvc/Model/Transaction/{Exception.zep.php => Exception.php} | 0 src/Mvc/Model/Transaction/{Failed.zep.php => Failed.php} | 0 src/Mvc/Model/Transaction/{Manager.zep.php => Manager.php} | 0 .../{ManagerInterface.zep.php => ManagerInterface.php} | 0 .../{TransactionInterface.zep.php => TransactionInterface.php} | 0 src/Mvc/Model/{ValidationFailed.zep.php => ValidationFailed.php} | 0 src/Mvc/{ModelInterface.zep.php => ModelInterface.php} | 0 ...eDefinitionInterface.zep.php => ModuleDefinitionInterface.php} | 0 src/Mvc/{Router.zep.php => Router.php} | 0 src/Mvc/Router/{Annotations.zep.php => Annotations.php} | 0 src/Mvc/Router/{Exception.zep.php => Exception.php} | 0 src/Mvc/Router/{Group.zep.php => Group.php} | 0 src/Mvc/Router/{GroupInterface.zep.php => GroupInterface.php} | 0 src/Mvc/Router/{Route.zep.php => Route.php} | 0 src/Mvc/Router/{RouteInterface.zep.php => RouteInterface.php} | 0 src/Mvc/{RouterInterface.zep.php => RouterInterface.php} | 0 src/Mvc/{View.zep.php => View.php} | 0 .../View/Engine/{AbstractEngine.zep.php => AbstractEngine.php} | 0 .../View/Engine/{EngineInterface.zep.php => EngineInterface.php} | 0 src/Mvc/View/Engine/{Php.zep.php => Php.php} | 0 src/Mvc/View/Engine/{Volt.zep.php => Volt.php} | 0 src/Mvc/View/Engine/Volt/{Compiler.zep.php => Compiler.php} | 0 src/Mvc/View/Engine/Volt/{Exception.zep.php => Exception.php} | 0 src/Mvc/View/{Exception.zep.php => Exception.php} | 0 src/Mvc/View/{Simple.zep.php => Simple.php} | 0 src/Mvc/{ViewBaseInterface.zep.php => ViewBaseInterface.php} | 0 src/Mvc/{ViewInterface.zep.php => ViewInterface.php} | 0 .../Adapter/{AbstractAdapter.zep.php => AbstractAdapter.php} | 0 .../Adapter/{AdapterInterface.zep.php => AdapterInterface.php} | 0 src/Paginator/Adapter/{Model.zep.php => Model.php} | 0 src/Paginator/Adapter/{NativeArray.zep.php => NativeArray.php} | 0 src/Paginator/Adapter/{QueryBuilder.zep.php => QueryBuilder.php} | 0 src/Paginator/{Exception.zep.php => Exception.php} | 0 src/Paginator/{PaginatorFactory.zep.php => PaginatorFactory.php} | 0 src/Paginator/{Repository.zep.php => Repository.php} | 0 .../{RepositoryInterface.zep.php => RepositoryInterface.php} | 0 src/{Registry.zep.php => Registry.php} | 0 src/{Security.zep.php => Security.php} | 0 src/Security/{Exception.zep.php => Exception.php} | 0 src/Security/JWT/{Builder.zep.php => Builder.php} | 0 ...gorithmException.zep.php => UnsupportedAlgorithmException.php} | 0 .../{ValidatorException.zep.php => ValidatorException.php} | 0 .../JWT/Signer/{AbstractSigner.zep.php => AbstractSigner.php} | 0 src/Security/JWT/Signer/{Hmac.zep.php => Hmac.php} | 0 src/Security/JWT/Signer/{None.zep.php => None.php} | 0 .../JWT/Signer/{SignerInterface.zep.php => SignerInterface.php} | 0 src/Security/JWT/Token/{AbstractItem.zep.php => AbstractItem.php} | 0 src/Security/JWT/Token/{Enum.zep.php => Enum.php} | 0 src/Security/JWT/Token/{Item.zep.php => Item.php} | 0 src/Security/JWT/Token/{Parser.zep.php => Parser.php} | 0 src/Security/JWT/Token/{Signature.zep.php => Signature.php} | 0 src/Security/JWT/Token/{Token.zep.php => Token.php} | 0 src/Security/JWT/{Validator.zep.php => Validator.php} | 0 src/Security/{Random.zep.php => Random.php} | 0 .../Adapter/{AbstractAdapter.zep.php => AbstractAdapter.php} | 0 src/Session/Adapter/{Libmemcached.zep.php => Libmemcached.php} | 0 src/Session/Adapter/{Noop.zep.php => Noop.php} | 0 src/Session/Adapter/{Redis.zep.php => Redis.php} | 0 src/Session/Adapter/{Stream.zep.php => Stream.php} | 0 src/Session/{Bag.zep.php => Bag.php} | 0 src/Session/{Exception.zep.php => Exception.php} | 0 src/Session/{Manager.zep.php => Manager.php} | 0 src/Session/{ManagerInterface.zep.php => ManagerInterface.php} | 0 .../Adapter/{AbstractAdapter.zep.php => AbstractAdapter.php} | 0 .../Adapter/{AdapterInterface.zep.php => AdapterInterface.php} | 0 src/Storage/Adapter/{Apcu.zep.php => Apcu.php} | 0 src/Storage/Adapter/{Libmemcached.zep.php => Libmemcached.php} | 0 src/Storage/Adapter/{Memory.zep.php => Memory.php} | 0 src/Storage/Adapter/{Redis.zep.php => Redis.php} | 0 src/Storage/Adapter/{Stream.zep.php => Stream.php} | 0 src/Storage/{AdapterFactory.zep.php => AdapterFactory.php} | 0 src/Storage/{Exception.zep.php => Exception.php} | 0 .../{AbstractSerializer.zep.php => AbstractSerializer.php} | 0 src/Storage/Serializer/{Base64.zep.php => Base64.php} | 0 src/Storage/Serializer/{Igbinary.zep.php => Igbinary.php} | 0 src/Storage/Serializer/{Json.zep.php => Json.php} | 0 src/Storage/Serializer/{Msgpack.zep.php => Msgpack.php} | 0 src/Storage/Serializer/{None.zep.php => None.php} | 0 src/Storage/Serializer/{Php.zep.php => Php.php} | 0 .../{SerializerInterface.zep.php => SerializerInterface.php} | 0 src/Storage/{SerializerFactory.zep.php => SerializerFactory.php} | 0 src/Support/{Debug.zep.php => Debug.php} | 0 src/Support/Debug/{Dump.zep.php => Dump.php} | 0 src/Support/Debug/{Exception.zep.php => Exception.php} | 0 src/Support/{Exception.zep.php => Exception.php} | 0 src/Support/Helper/Str/{Interpolate.zep.php => Interpolate.php} | 0 src/Support/{HelperFactory.zep.php => HelperFactory.php} | 0 src/Support/{Version.zep.php => Version.php} | 0 src/{Tag.zep.php => Tag.php} | 0 src/Tag/{Exception.zep.php => Exception.php} | 0 src/Tag/{Select.zep.php => Select.php} | 0 src/{Text.zep.php => Text.php} | 0 .../Adapter/{AbstractAdapter.zep.php => AbstractAdapter.php} | 0 .../Adapter/{AdapterInterface.zep.php => AdapterInterface.php} | 0 src/Translate/Adapter/{Csv.zep.php => Csv.php} | 0 src/Translate/Adapter/{Gettext.zep.php => Gettext.php} | 0 src/Translate/Adapter/{NativeArray.zep.php => NativeArray.php} | 0 src/Translate/{Exception.zep.php => Exception.php} | 0 .../{AssociativeArray.zep.php => AssociativeArray.php} | 0 .../Interpolator/{IndexedArray.zep.php => IndexedArray.php} | 0 .../{InterpolatorInterface.zep.php => InterpolatorInterface.php} | 0 .../{InterpolatorFactory.zep.php => InterpolatorFactory.php} | 0 src/Translate/{TranslateFactory.zep.php => TranslateFactory.php} | 0 src/{Url.zep.php => Url.php} | 0 src/Url/{Exception.zep.php => Exception.php} | 0 src/Url/{UrlInterface.zep.php => UrlInterface.php} | 0 src/{Validation.zep.php => Validation.php} | 0 ...ieldsValidator.zep.php => AbstractCombinedFieldsValidator.php} | 0 .../{AbstractValidator.zep.php => AbstractValidator.php} | 0 ...tValidatorComposite.zep.php => AbstractValidatorComposite.php} | 0 src/Validation/{Exception.zep.php => Exception.php} | 0 .../{ValidationInterface.zep.php => ValidationInterface.php} | 0 src/Validation/Validator/{Alnum.zep.php => Alnum.php} | 0 src/Validation/Validator/{Alpha.zep.php => Alpha.php} | 0 src/Validation/Validator/{Between.zep.php => Between.php} | 0 src/Validation/Validator/{Callback.zep.php => Callback.php} | 0 .../Validator/{Confirmation.zep.php => Confirmation.php} | 0 src/Validation/Validator/{CreditCard.zep.php => CreditCard.php} | 0 src/Validation/Validator/{Date.zep.php => Date.php} | 0 src/Validation/Validator/{Digit.zep.php => Digit.php} | 0 src/Validation/Validator/{Email.zep.php => Email.php} | 0 src/Validation/Validator/{Exception.zep.php => Exception.php} | 0 src/Validation/Validator/{ExclusionIn.zep.php => ExclusionIn.php} | 0 src/Validation/Validator/{File.zep.php => File.php} | 0 .../Validator/File/{AbstractFile.zep.php => AbstractFile.php} | 0 src/Validation/Validator/File/{MimeType.zep.php => MimeType.php} | 0 .../Validator/File/Resolution/{Equal.zep.php => Equal.php} | 0 src/Validation/Validator/File/Resolution/{Max.zep.php => Max.php} | 0 src/Validation/Validator/File/Resolution/{Min.zep.php => Min.php} | 0 src/Validation/Validator/File/Size/{Equal.zep.php => Equal.php} | 0 src/Validation/Validator/File/Size/{Max.zep.php => Max.php} | 0 src/Validation/Validator/File/Size/{Min.zep.php => Min.php} | 0 src/Validation/Validator/{Identical.zep.php => Identical.php} | 0 src/Validation/Validator/{InclusionIn.zep.php => InclusionIn.php} | 0 src/Validation/Validator/{Ip.zep.php => Ip.php} | 0 .../Validator/{Numericality.zep.php => Numericality.php} | 0 src/Validation/Validator/{PresenceOf.zep.php => PresenceOf.php} | 0 src/Validation/Validator/{Regex.zep.php => Regex.php} | 0 .../Validator/{StringLength.zep.php => StringLength.php} | 0 src/Validation/Validator/StringLength/{Max.zep.php => Max.php} | 0 src/Validation/Validator/StringLength/{Min.zep.php => Min.php} | 0 src/Validation/Validator/{Uniqueness.zep.php => Uniqueness.php} | 0 src/Validation/Validator/{Url.zep.php => Url.php} | 0 ...CompositeInterface.zep.php => ValidatorCompositeInterface.php} | 0 src/Validation/{ValidatorFactory.zep.php => ValidatorFactory.php} | 0 .../{ValidatorInterface.zep.php => ValidatorInterface.php} | 0 535 files changed, 0 insertions(+), 0 deletions(-) rename src/Acl/Adapter/{AbstractAdapter.zep.php => AbstractAdapter.php} (100%) rename src/Acl/Adapter/{AdapterInterface.zep.php => AdapterInterface.php} (100%) rename src/Acl/Adapter/{Memory.zep.php => Memory.php} (100%) rename src/Acl/{Component.zep.php => Component.php} (100%) rename src/Acl/{ComponentAware.zep.php => ComponentAware.php} (100%) rename src/Acl/{ComponentInterface.zep.php => ComponentInterface.php} (100%) rename src/Acl/{Enum.zep.php => Enum.php} (100%) rename src/Acl/{Exception.zep.php => Exception.php} (100%) rename src/Acl/{Role.zep.php => Role.php} (100%) rename src/Acl/{RoleAware.zep.php => RoleAware.php} (100%) rename src/Acl/{RoleInterface.zep.php => RoleInterface.php} (100%) rename src/Annotations/Adapter/{AbstractAdapter.zep.php => AbstractAdapter.php} (100%) rename src/Annotations/Adapter/{AdapterInterface.zep.php => AdapterInterface.php} (100%) rename src/Annotations/Adapter/{Apcu.zep.php => Apcu.php} (100%) rename src/Annotations/Adapter/{Memory.zep.php => Memory.php} (100%) rename src/Annotations/Adapter/{Stream.zep.php => Stream.php} (100%) rename src/Annotations/{Annotation.zep.php => Annotation.php} (100%) rename src/Annotations/{AnnotationsFactory.zep.php => AnnotationsFactory.php} (100%) rename src/Annotations/{Collection.zep.php => Collection.php} (100%) rename src/Annotations/{Exception.zep.php => Exception.php} (100%) rename src/Annotations/{Reader.zep.php => Reader.php} (100%) rename src/Annotations/{ReaderInterface.zep.php => ReaderInterface.php} (100%) rename src/Annotations/{Reflection.zep.php => Reflection.php} (100%) rename src/Application/{AbstractApplication.zep.php => AbstractApplication.php} (100%) rename src/Application/{Exception.zep.php => Exception.php} (100%) rename src/Assets/{Asset.zep.php => Asset.php} (100%) rename src/Assets/Asset/{Css.zep.php => Css.php} (100%) rename src/Assets/Asset/{Js.zep.php => Js.php} (100%) rename src/Assets/{AssetInterface.zep.php => AssetInterface.php} (100%) rename src/Assets/{Collection.zep.php => Collection.php} (100%) rename src/Assets/{Exception.zep.php => Exception.php} (100%) rename src/Assets/{FilterInterface.zep.php => FilterInterface.php} (100%) rename src/Assets/Filters/{Cssmin.zep.php => Cssmin.php} (100%) rename src/Assets/Filters/{Jsmin.zep.php => Jsmin.php} (100%) rename src/Assets/Filters/{None.zep.php => None.php} (100%) rename src/Assets/{Inline.zep.php => Inline.php} (100%) rename src/Assets/Inline/{Css.zep.php => Css.php} (100%) rename src/Assets/Inline/{Js.zep.php => Js.php} (100%) rename src/Assets/{Manager.zep.php => Manager.php} (100%) rename src/{Cache.zep.php => Cache.php} (100%) rename src/Cache/Adapter/{AdapterInterface.zep.php => AdapterInterface.php} (100%) rename src/Cache/Adapter/{Apcu.zep.php => Apcu.php} (100%) rename src/Cache/Adapter/{Libmemcached.zep.php => Libmemcached.php} (100%) rename src/Cache/Adapter/{Memory.zep.php => Memory.php} (100%) rename src/Cache/Adapter/{Redis.zep.php => Redis.php} (100%) rename src/Cache/Adapter/{Stream.zep.php => Stream.php} (100%) rename src/Cache/{AdapterFactory.zep.php => AdapterFactory.php} (100%) rename src/Cache/{CacheFactory.zep.php => CacheFactory.php} (100%) rename src/Cache/Exception/{Exception.zep.php => Exception.php} (100%) rename src/Cache/Exception/{InvalidArgumentException.zep.php => InvalidArgumentException.php} (100%) rename src/Cli/{Console.zep.php => Console.php} (100%) rename src/Cli/Console/{Exception.zep.php => Exception.php} (100%) rename src/Cli/{Dispatcher.zep.php => Dispatcher.php} (100%) rename src/Cli/Dispatcher/{Exception.zep.php => Exception.php} (100%) rename src/Cli/{DispatcherInterface.zep.php => DispatcherInterface.php} (100%) rename src/Cli/{Router.zep.php => Router.php} (100%) rename src/Cli/Router/{Exception.zep.php => Exception.php} (100%) rename src/Cli/Router/{Route.zep.php => Route.php} (100%) rename src/Cli/Router/{RouteInterface.zep.php => RouteInterface.php} (100%) rename src/Cli/{RouterInterface.zep.php => RouterInterface.php} (100%) rename src/Cli/{Task.zep.php => Task.php} (100%) rename src/Cli/{TaskInterface.zep.php => TaskInterface.php} (100%) rename src/{Collection.zep.php => Collection.php} (100%) rename src/Collection/{CollectionInterface.zep.php => CollectionInterface.php} (100%) rename src/Collection/{Exception.zep.php => Exception.php} (100%) rename src/Collection/{ReadOnly.zep.php => ReadOnly.php} (100%) rename src/{Config.zep.php => Config.php} (100%) rename src/Config/Adapter/{Grouped.zep.php => Grouped.php} (100%) rename src/Config/Adapter/{Ini.zep.php => Ini.php} (100%) rename src/Config/Adapter/{Json.zep.php => Json.php} (100%) rename src/Config/Adapter/{Php.zep.php => Php.php} (100%) rename src/Config/Adapter/{Yaml.zep.php => Yaml.php} (100%) rename src/Config/{ConfigFactory.zep.php => ConfigFactory.php} (100%) rename src/Config/{ConfigInterface.zep.php => ConfigInterface.php} (100%) rename src/Config/{Exception.zep.php => Exception.php} (100%) rename src/{Container.zep.php => Container.php} (100%) rename src/{Crypt.zep.php => Crypt.php} (100%) rename src/Crypt/{CryptInterface.zep.php => CryptInterface.php} (100%) rename src/Crypt/{Exception.zep.php => Exception.php} (100%) rename src/Crypt/{Mismatch.zep.php => Mismatch.php} (100%) rename src/DataMapper/Pdo/{Connection.zep.php => Connection.php} (100%) rename src/DataMapper/Pdo/Connection/{AbstractConnection.zep.php => AbstractConnection.php} (100%) rename src/DataMapper/Pdo/Connection/{ConnectionInterface.zep.php => ConnectionInterface.php} (100%) rename src/DataMapper/Pdo/Connection/{Decorated.zep.php => Decorated.php} (100%) rename src/DataMapper/Pdo/Connection/{PdoInterface.zep.php => PdoInterface.php} (100%) rename src/DataMapper/Pdo/{ConnectionLocator.zep.php => ConnectionLocator.php} (100%) rename src/DataMapper/Pdo/{ConnectionLocatorInterface.zep.php => ConnectionLocatorInterface.php} (100%) rename src/DataMapper/Pdo/Exception/{CannotDisconnect.zep.php => CannotDisconnect.php} (100%) rename src/DataMapper/Pdo/Exception/{ConnectionNotFound.zep.php => ConnectionNotFound.php} (100%) rename src/DataMapper/Pdo/Exception/{Exception.zep.php => Exception.php} (100%) rename src/DataMapper/Pdo/Profiler/{MemoryLogger.zep.php => MemoryLogger.php} (100%) rename src/DataMapper/Pdo/Profiler/{Profiler.zep.php => Profiler.php} (100%) rename src/DataMapper/Pdo/Profiler/{ProfilerInterface.zep.php => ProfilerInterface.php} (100%) rename src/DataMapper/Query/{AbstractConditions.zep.php => AbstractConditions.php} (100%) rename src/DataMapper/Query/{AbstractQuery.zep.php => AbstractQuery.php} (100%) rename src/DataMapper/Query/{Bind.zep.php => Bind.php} (100%) rename src/DataMapper/Query/{Delete.zep.php => Delete.php} (100%) rename src/DataMapper/Query/{Insert.zep.php => Insert.php} (100%) rename src/DataMapper/Query/{QueryFactory.zep.php => QueryFactory.php} (100%) rename src/DataMapper/Query/{Select.zep.php => Select.php} (100%) rename src/DataMapper/Query/{Update.zep.php => Update.php} (100%) rename src/Db/{AbstractDb.zep.php => AbstractDb.php} (100%) rename src/Db/Adapter/{AbstractAdapter.zep.php => AbstractAdapter.php} (100%) rename src/Db/Adapter/{AdapterInterface.zep.php => AdapterInterface.php} (100%) rename src/Db/Adapter/Pdo/{AbstractPdo.zep.php => AbstractPdo.php} (100%) rename src/Db/Adapter/Pdo/{Mysql.zep.php => Mysql.php} (100%) rename src/Db/Adapter/Pdo/{Postgresql.zep.php => Postgresql.php} (100%) rename src/Db/Adapter/Pdo/{Sqlite.zep.php => Sqlite.php} (100%) rename src/Db/Adapter/{PdoFactory.zep.php => PdoFactory.php} (100%) rename src/Db/{Column.zep.php => Column.php} (100%) rename src/Db/{ColumnInterface.zep.php => ColumnInterface.php} (100%) rename src/Db/{Dialect.zep.php => Dialect.php} (100%) rename src/Db/Dialect/{Mysql.zep.php => Mysql.php} (100%) rename src/Db/Dialect/{Postgresql.zep.php => Postgresql.php} (100%) rename src/Db/Dialect/{Sqlite.zep.php => Sqlite.php} (100%) rename src/Db/{DialectInterface.zep.php => DialectInterface.php} (100%) rename src/Db/{Enum.zep.php => Enum.php} (100%) rename src/Db/{Exception.zep.php => Exception.php} (100%) rename src/Db/{Index.zep.php => Index.php} (100%) rename src/Db/{IndexInterface.zep.php => IndexInterface.php} (100%) rename src/Db/{Profiler.zep.php => Profiler.php} (100%) rename src/Db/Profiler/{Item.zep.php => Item.php} (100%) rename src/Db/{RawValue.zep.php => RawValue.php} (100%) rename src/Db/{Reference.zep.php => Reference.php} (100%) rename src/Db/{ReferenceInterface.zep.php => ReferenceInterface.php} (100%) rename src/Db/Result/{Pdo.zep.php => Pdo.php} (100%) rename src/Db/{ResultInterface.zep.php => ResultInterface.php} (100%) rename src/{Di.zep.php => Di.php} (100%) rename src/Di/{AbstractInjectionAware.zep.php => AbstractInjectionAware.php} (100%) rename src/Di/{DiInterface.zep.php => DiInterface.php} (100%) rename src/Di/{Exception.zep.php => Exception.php} (100%) rename src/Di/Exception/{ServiceResolutionException.zep.php => ServiceResolutionException.php} (100%) rename src/Di/{FactoryDefault.zep.php => FactoryDefault.php} (100%) rename src/Di/FactoryDefault/{Cli.zep.php => Cli.php} (100%) rename src/Di/{Injectable.zep.php => Injectable.php} (100%) rename src/Di/{InjectionAwareInterface.zep.php => InjectionAwareInterface.php} (100%) rename src/Di/{Service.zep.php => Service.php} (100%) rename src/Di/Service/{Builder.zep.php => Builder.php} (100%) rename src/Di/{ServiceInterface.zep.php => ServiceInterface.php} (100%) rename src/Di/{ServiceProviderInterface.zep.php => ServiceProviderInterface.php} (100%) rename src/Dispatcher/{AbstractDispatcher.zep.php => AbstractDispatcher.php} (100%) rename src/Dispatcher/{DispatcherInterface.zep.php => DispatcherInterface.php} (100%) rename src/Dispatcher/{Exception.zep.php => Exception.php} (100%) rename src/Domain/Payload/{Payload.zep.php => Payload.php} (100%) rename src/Domain/Payload/{PayloadFactory.zep.php => PayloadFactory.php} (100%) rename src/Domain/Payload/{PayloadInterface.zep.php => PayloadInterface.php} (100%) rename src/Domain/Payload/{ReadableInterface.zep.php => ReadableInterface.php} (100%) rename src/Domain/Payload/{Status.zep.php => Status.php} (100%) rename src/Domain/Payload/{WriteableInterface.zep.php => WriteableInterface.php} (100%) rename src/{Escaper.zep.php => Escaper.php} (100%) rename src/Escaper/{EscaperInterface.zep.php => EscaperInterface.php} (100%) rename src/Escaper/{Exception.zep.php => Exception.php} (100%) rename src/Events/{Event.zep.php => Event.php} (100%) rename src/Events/{EventInterface.zep.php => EventInterface.php} (100%) rename src/Events/{EventsAwareInterface.zep.php => EventsAwareInterface.php} (100%) rename src/Events/{Exception.zep.php => Exception.php} (100%) rename src/Events/{Manager.zep.php => Manager.php} (100%) rename src/Events/{ManagerInterface.zep.php => ManagerInterface.php} (100%) rename src/{Exception.zep.php => Exception.php} (100%) rename src/Factory/{AbstractFactory.zep.php => AbstractFactory.php} (100%) rename src/Factory/{Exception.zep.php => Exception.php} (100%) rename src/{Filter.zep.php => Filter.php} (100%) rename src/Filter/{Exception.zep.php => Exception.php} (100%) rename src/Filter/{FilterFactory.zep.php => FilterFactory.php} (100%) rename src/Filter/{FilterInterface.zep.php => FilterInterface.php} (100%) rename src/Filter/Sanitize/{AbsInt.zep.php => AbsInt.php} (100%) rename src/Filter/Sanitize/{Alnum.zep.php => Alnum.php} (100%) rename src/Filter/Sanitize/{Alpha.zep.php => Alpha.php} (100%) rename src/Filter/Sanitize/{BoolVal.zep.php => BoolVal.php} (100%) rename src/Filter/Sanitize/{Email.zep.php => Email.php} (100%) rename src/Filter/Sanitize/{FloatVal.zep.php => FloatVal.php} (100%) rename src/Filter/Sanitize/{IntVal.zep.php => IntVal.php} (100%) rename src/Filter/Sanitize/{Lower.zep.php => Lower.php} (100%) rename src/Filter/Sanitize/{LowerFirst.zep.php => LowerFirst.php} (100%) rename src/Filter/Sanitize/{Regex.zep.php => Regex.php} (100%) rename src/Filter/Sanitize/{Remove.zep.php => Remove.php} (100%) rename src/Filter/Sanitize/{Replace.zep.php => Replace.php} (100%) rename src/Filter/Sanitize/{Special.zep.php => Special.php} (100%) rename src/Filter/Sanitize/{SpecialFull.zep.php => SpecialFull.php} (100%) rename src/Filter/Sanitize/{StringVal.zep.php => StringVal.php} (100%) rename src/Filter/Sanitize/{Striptags.zep.php => Striptags.php} (100%) rename src/Filter/Sanitize/{Trim.zep.php => Trim.php} (100%) rename src/Filter/Sanitize/{Upper.zep.php => Upper.php} (100%) rename src/Filter/Sanitize/{UpperFirst.zep.php => UpperFirst.php} (100%) rename src/Filter/Sanitize/{UpperWords.zep.php => UpperWords.php} (100%) rename src/Filter/Sanitize/{Url.zep.php => Url.php} (100%) rename src/Flash/{AbstractFlash.zep.php => AbstractFlash.php} (100%) rename src/Flash/{Direct.zep.php => Direct.php} (100%) rename src/Flash/{Exception.zep.php => Exception.php} (100%) rename src/Flash/{FlashInterface.zep.php => FlashInterface.php} (100%) rename src/Flash/{Session.zep.php => Session.php} (100%) rename src/Forms/Element/{AbstractElement.zep.php => AbstractElement.php} (100%) rename src/Forms/Element/{Check.zep.php => Check.php} (100%) rename src/Forms/Element/{Date.zep.php => Date.php} (100%) rename src/Forms/Element/{ElementInterface.zep.php => ElementInterface.php} (100%) rename src/Forms/Element/{Email.zep.php => Email.php} (100%) rename src/Forms/Element/{File.zep.php => File.php} (100%) rename src/Forms/Element/{Hidden.zep.php => Hidden.php} (100%) rename src/Forms/Element/{Numeric.zep.php => Numeric.php} (100%) rename src/Forms/Element/{Password.zep.php => Password.php} (100%) rename src/Forms/Element/{Radio.zep.php => Radio.php} (100%) rename src/Forms/Element/{Select.zep.php => Select.php} (100%) rename src/Forms/Element/{Submit.zep.php => Submit.php} (100%) rename src/Forms/Element/{Text.zep.php => Text.php} (100%) rename src/Forms/Element/{TextArea.zep.php => TextArea.php} (100%) rename src/Forms/{Exception.zep.php => Exception.php} (100%) rename src/Forms/{Form.zep.php => Form.php} (100%) rename src/Forms/{Manager.zep.php => Manager.php} (100%) rename src/Helper/{Arr.zep.php => Arr.php} (100%) rename src/Helper/{Base64.zep.php => Base64.php} (100%) rename src/Helper/{Exception.zep.php => Exception.php} (100%) rename src/Helper/{Fs.zep.php => Fs.php} (100%) rename src/Helper/{Json.zep.php => Json.php} (100%) rename src/Helper/{Number.zep.php => Number.php} (100%) rename src/Helper/{Str.zep.php => Str.php} (100%) rename src/Html/{Attributes.zep.php => Attributes.php} (100%) rename src/Html/Attributes/{AttributesInterface.zep.php => AttributesInterface.php} (100%) rename src/Html/Attributes/{RenderInterface.zep.php => RenderInterface.php} (100%) rename src/Html/{Breadcrumbs.zep.php => Breadcrumbs.php} (100%) rename src/Html/{Exception.zep.php => Exception.php} (100%) rename src/Html/Helper/{AbstractHelper.zep.php => AbstractHelper.php} (100%) rename src/Html/Helper/{AbstractList.zep.php => AbstractList.php} (100%) rename src/Html/Helper/{AbstractSeries.zep.php => AbstractSeries.php} (100%) rename src/Html/Helper/{Anchor.zep.php => Anchor.php} (100%) rename src/Html/Helper/{Base.zep.php => Base.php} (100%) rename src/Html/Helper/{Body.zep.php => Body.php} (100%) rename src/Html/Helper/{Button.zep.php => Button.php} (100%) rename src/Html/Helper/{Close.zep.php => Close.php} (100%) rename src/Html/Helper/{Element.zep.php => Element.php} (100%) rename src/Html/Helper/{Form.zep.php => Form.php} (100%) rename src/Html/Helper/{Img.zep.php => Img.php} (100%) rename src/Html/Helper/Input/{AbstractInput.zep.php => AbstractInput.php} (100%) rename src/Html/Helper/Input/{Checkbox.zep.php => Checkbox.php} (100%) rename src/Html/Helper/Input/{Color.zep.php => Color.php} (100%) rename src/Html/Helper/Input/{Date.zep.php => Date.php} (100%) rename src/Html/Helper/Input/{DateTime.zep.php => DateTime.php} (100%) rename src/Html/Helper/Input/{DateTimeLocal.zep.php => DateTimeLocal.php} (100%) rename src/Html/Helper/Input/{Email.zep.php => Email.php} (100%) rename src/Html/Helper/Input/{File.zep.php => File.php} (100%) rename src/Html/Helper/Input/{Hidden.zep.php => Hidden.php} (100%) rename src/Html/Helper/Input/{Image.zep.php => Image.php} (100%) rename src/Html/Helper/Input/{Input.zep.php => Input.php} (100%) rename src/Html/Helper/Input/{Month.zep.php => Month.php} (100%) rename src/Html/Helper/Input/{Numeric.zep.php => Numeric.php} (100%) rename src/Html/Helper/Input/{Password.zep.php => Password.php} (100%) rename src/Html/Helper/Input/{Radio.zep.php => Radio.php} (100%) rename src/Html/Helper/Input/{Range.zep.php => Range.php} (100%) rename src/Html/Helper/Input/{Search.zep.php => Search.php} (100%) rename src/Html/Helper/Input/{Select.zep.php => Select.php} (100%) rename src/Html/Helper/Input/{Submit.zep.php => Submit.php} (100%) rename src/Html/Helper/Input/{Tel.zep.php => Tel.php} (100%) rename src/Html/Helper/Input/{Text.zep.php => Text.php} (100%) rename src/Html/Helper/Input/{Textarea.zep.php => Textarea.php} (100%) rename src/Html/Helper/Input/{Time.zep.php => Time.php} (100%) rename src/Html/Helper/Input/{Url.zep.php => Url.php} (100%) rename src/Html/Helper/Input/{Week.zep.php => Week.php} (100%) rename src/Html/Helper/{Label.zep.php => Label.php} (100%) rename src/Html/Helper/{Link.zep.php => Link.php} (100%) rename src/Html/Helper/{Meta.zep.php => Meta.php} (100%) rename src/Html/Helper/{Ol.zep.php => Ol.php} (100%) rename src/Html/Helper/{Script.zep.php => Script.php} (100%) rename src/Html/Helper/{Style.zep.php => Style.php} (100%) rename src/Html/Helper/{Title.zep.php => Title.php} (100%) rename src/Html/Helper/{Ul.zep.php => Ul.php} (100%) rename src/Html/Link/{EvolvableLink.zep.php => EvolvableLink.php} (100%) rename src/Html/Link/{EvolvableLinkProvider.zep.php => EvolvableLinkProvider.php} (100%) rename src/Html/Link/{Link.zep.php => Link.php} (100%) rename src/Html/Link/{LinkProvider.zep.php => LinkProvider.php} (100%) rename src/Html/Link/Serializer/{Header.zep.php => Header.php} (100%) rename src/Html/Link/Serializer/{SerializerInterface.zep.php => SerializerInterface.php} (100%) rename src/Html/{TagFactory.zep.php => TagFactory.php} (100%) rename src/Http/{Cookie.zep.php => Cookie.php} (100%) rename src/Http/Cookie/{CookieInterface.zep.php => CookieInterface.php} (100%) rename src/Http/Cookie/{Exception.zep.php => Exception.php} (100%) rename src/Http/Message/{AbstractCommon.zep.php => AbstractCommon.php} (100%) rename src/Http/Message/{AbstractMessage.zep.php => AbstractMessage.php} (100%) rename src/Http/Message/{AbstractRequest.zep.php => AbstractRequest.php} (100%) rename src/Http/Message/Exception/{InvalidArgumentException.zep.php => InvalidArgumentException.php} (100%) rename src/Http/Message/{Request.zep.php => Request.php} (100%) rename src/Http/Message/{RequestFactory.zep.php => RequestFactory.php} (100%) rename src/Http/Message/{Response.zep.php => Response.php} (100%) rename src/Http/Message/{ResponseFactory.zep.php => ResponseFactory.php} (100%) rename src/Http/Message/{ServerRequest.zep.php => ServerRequest.php} (100%) rename src/Http/Message/{ServerRequestFactory.zep.php => ServerRequestFactory.php} (100%) rename src/Http/Message/{Stream.zep.php => Stream.php} (100%) rename src/Http/Message/Stream/{Input.zep.php => Input.php} (100%) rename src/Http/Message/Stream/{Memory.zep.php => Memory.php} (100%) rename src/Http/Message/Stream/{Temp.zep.php => Temp.php} (100%) rename src/Http/Message/{StreamFactory.zep.php => StreamFactory.php} (100%) rename src/Http/Message/{UploadedFile.zep.php => UploadedFile.php} (100%) rename src/Http/Message/{UploadedFileFactory.zep.php => UploadedFileFactory.php} (100%) rename src/Http/Message/{Uri.zep.php => Uri.php} (100%) rename src/Http/Message/{UriFactory.zep.php => UriFactory.php} (100%) rename src/Http/{Request.zep.php => Request.php} (100%) rename src/Http/Request/{Exception.zep.php => Exception.php} (100%) rename src/Http/Request/{File.zep.php => File.php} (100%) rename src/Http/Request/{FileInterface.zep.php => FileInterface.php} (100%) rename src/Http/{RequestInterface.zep.php => RequestInterface.php} (100%) rename src/Http/{Response.zep.php => Response.php} (100%) rename src/Http/Response/{Cookies.zep.php => Cookies.php} (100%) rename src/Http/Response/{CookiesInterface.zep.php => CookiesInterface.php} (100%) rename src/Http/Response/{Exception.zep.php => Exception.php} (100%) rename src/Http/Response/{Headers.zep.php => Headers.php} (100%) rename src/Http/Response/{HeadersInterface.zep.php => HeadersInterface.php} (100%) rename src/Http/{ResponseInterface.zep.php => ResponseInterface.php} (100%) rename src/Http/Server/{AbstractMiddleware.zep.php => AbstractMiddleware.php} (100%) rename src/Http/Server/{AbstractRequestHandler.zep.php => AbstractRequestHandler.php} (100%) rename src/Image/Adapter/{AbstractAdapter.zep.php => AbstractAdapter.php} (100%) rename src/Image/Adapter/{AdapterInterface.zep.php => AdapterInterface.php} (100%) rename src/Image/Adapter/{Gd.zep.php => Gd.php} (100%) rename src/Image/Adapter/{Imagick.zep.php => Imagick.php} (100%) rename src/Image/{Enum.zep.php => Enum.php} (100%) rename src/Image/{Exception.zep.php => Exception.php} (100%) rename src/Image/{ImageFactory.zep.php => ImageFactory.php} (100%) rename src/{Kernel.zep.php => Kernel.php} (100%) rename src/{Loader.zep.php => Loader.php} (100%) rename src/Loader/{Exception.zep.php => Exception.php} (100%) rename src/{Logger.zep.php => Logger.php} (100%) rename src/Logger/Adapter/{AbstractAdapter.zep.php => AbstractAdapter.php} (100%) rename src/Logger/Adapter/{AdapterInterface.zep.php => AdapterInterface.php} (100%) rename src/Logger/Adapter/{Noop.zep.php => Noop.php} (100%) rename src/Logger/Adapter/{Stream.zep.php => Stream.php} (100%) rename src/Logger/Adapter/{Syslog.zep.php => Syslog.php} (100%) rename src/Logger/{AdapterFactory.zep.php => AdapterFactory.php} (100%) rename src/Logger/{Exception.zep.php => Exception.php} (100%) rename src/Logger/Formatter/{AbstractFormatter.zep.php => AbstractFormatter.php} (100%) rename src/Logger/Formatter/{FormatterInterface.zep.php => FormatterInterface.php} (100%) rename src/Logger/Formatter/{Json.zep.php => Json.php} (100%) rename src/Logger/Formatter/{Line.zep.php => Line.php} (100%) rename src/Logger/{Item.zep.php => Item.php} (100%) rename src/Logger/{LoggerFactory.zep.php => LoggerFactory.php} (100%) rename src/Messages/{Exception.zep.php => Exception.php} (100%) rename src/Messages/{Message.zep.php => Message.php} (100%) rename src/Messages/{MessageInterface.zep.php => MessageInterface.php} (100%) rename src/Messages/{Messages.zep.php => Messages.php} (100%) rename src/Mvc/{Application.zep.php => Application.php} (100%) rename src/Mvc/Application/{Exception.zep.php => Exception.php} (100%) rename src/Mvc/{Controller.zep.php => Controller.php} (100%) rename src/Mvc/Controller/{BindModelInterface.zep.php => BindModelInterface.php} (100%) rename src/Mvc/{ControllerInterface.zep.php => ControllerInterface.php} (100%) rename src/Mvc/{Dispatcher.zep.php => Dispatcher.php} (100%) rename src/Mvc/Dispatcher/{Exception.zep.php => Exception.php} (100%) rename src/Mvc/{DispatcherInterface.zep.php => DispatcherInterface.php} (100%) rename src/Mvc/{EntityInterface.zep.php => EntityInterface.php} (100%) rename src/Mvc/{Micro.zep.php => Micro.php} (100%) rename src/Mvc/Micro/{Collection.zep.php => Collection.php} (100%) rename src/Mvc/Micro/{CollectionInterface.zep.php => CollectionInterface.php} (100%) rename src/Mvc/Micro/{Exception.zep.php => Exception.php} (100%) rename src/Mvc/Micro/{LazyLoader.zep.php => LazyLoader.php} (100%) rename src/Mvc/Micro/{MiddlewareInterface.zep.php => MiddlewareInterface.php} (100%) rename src/Mvc/{Model.zep.php => Model.php} (100%) rename src/Mvc/Model/{Behavior.zep.php => Behavior.php} (100%) rename src/Mvc/Model/Behavior/{SoftDelete.zep.php => SoftDelete.php} (100%) rename src/Mvc/Model/Behavior/{Timestampable.zep.php => Timestampable.php} (100%) rename src/Mvc/Model/{BehaviorInterface.zep.php => BehaviorInterface.php} (100%) rename src/Mvc/Model/{Binder.zep.php => Binder.php} (100%) rename src/Mvc/Model/Binder/{BindableInterface.zep.php => BindableInterface.php} (100%) rename src/Mvc/Model/{BinderInterface.zep.php => BinderInterface.php} (100%) rename src/Mvc/Model/{Criteria.zep.php => Criteria.php} (100%) rename src/Mvc/Model/{CriteriaInterface.zep.php => CriteriaInterface.php} (100%) rename src/Mvc/Model/{Exception.zep.php => Exception.php} (100%) rename src/Mvc/Model/{Manager.zep.php => Manager.php} (100%) rename src/Mvc/Model/{ManagerInterface.zep.php => ManagerInterface.php} (100%) rename src/Mvc/Model/{MetaData.zep.php => MetaData.php} (100%) rename src/Mvc/Model/MetaData/{Apcu.zep.php => Apcu.php} (100%) rename src/Mvc/Model/MetaData/{Libmemcached.zep.php => Libmemcached.php} (100%) rename src/Mvc/Model/MetaData/{Memory.zep.php => Memory.php} (100%) rename src/Mvc/Model/MetaData/{Redis.zep.php => Redis.php} (100%) rename src/Mvc/Model/MetaData/Strategy/{Annotations.zep.php => Annotations.php} (100%) rename src/Mvc/Model/MetaData/Strategy/{Introspection.zep.php => Introspection.php} (100%) rename src/Mvc/Model/MetaData/Strategy/{StrategyInterface.zep.php => StrategyInterface.php} (100%) rename src/Mvc/Model/MetaData/{Stream.zep.php => Stream.php} (100%) rename src/Mvc/Model/{MetaDataInterface.zep.php => MetaDataInterface.php} (100%) rename src/Mvc/Model/{Query.zep.php => Query.php} (100%) rename src/Mvc/Model/Query/{Builder.zep.php => Builder.php} (100%) rename src/Mvc/Model/Query/{BuilderInterface.zep.php => BuilderInterface.php} (100%) rename src/Mvc/Model/Query/{Lang.zep.php => Lang.php} (100%) rename src/Mvc/Model/Query/{Status.zep.php => Status.php} (100%) rename src/Mvc/Model/Query/{StatusInterface.zep.php => StatusInterface.php} (100%) rename src/Mvc/Model/{QueryInterface.zep.php => QueryInterface.php} (100%) rename src/Mvc/Model/{Relation.zep.php => Relation.php} (100%) rename src/Mvc/Model/{RelationInterface.zep.php => RelationInterface.php} (100%) rename src/Mvc/Model/{ResultInterface.zep.php => ResultInterface.php} (100%) rename src/Mvc/Model/{Resultset.zep.php => Resultset.php} (100%) rename src/Mvc/Model/Resultset/{Complex.zep.php => Complex.php} (100%) rename src/Mvc/Model/Resultset/{Simple.zep.php => Simple.php} (100%) rename src/Mvc/Model/{ResultsetInterface.zep.php => ResultsetInterface.php} (100%) rename src/Mvc/Model/{Row.zep.php => Row.php} (100%) rename src/Mvc/Model/{Transaction.zep.php => Transaction.php} (100%) rename src/Mvc/Model/Transaction/{Exception.zep.php => Exception.php} (100%) rename src/Mvc/Model/Transaction/{Failed.zep.php => Failed.php} (100%) rename src/Mvc/Model/Transaction/{Manager.zep.php => Manager.php} (100%) rename src/Mvc/Model/Transaction/{ManagerInterface.zep.php => ManagerInterface.php} (100%) rename src/Mvc/Model/{TransactionInterface.zep.php => TransactionInterface.php} (100%) rename src/Mvc/Model/{ValidationFailed.zep.php => ValidationFailed.php} (100%) rename src/Mvc/{ModelInterface.zep.php => ModelInterface.php} (100%) rename src/Mvc/{ModuleDefinitionInterface.zep.php => ModuleDefinitionInterface.php} (100%) rename src/Mvc/{Router.zep.php => Router.php} (100%) rename src/Mvc/Router/{Annotations.zep.php => Annotations.php} (100%) rename src/Mvc/Router/{Exception.zep.php => Exception.php} (100%) rename src/Mvc/Router/{Group.zep.php => Group.php} (100%) rename src/Mvc/Router/{GroupInterface.zep.php => GroupInterface.php} (100%) rename src/Mvc/Router/{Route.zep.php => Route.php} (100%) rename src/Mvc/Router/{RouteInterface.zep.php => RouteInterface.php} (100%) rename src/Mvc/{RouterInterface.zep.php => RouterInterface.php} (100%) rename src/Mvc/{View.zep.php => View.php} (100%) rename src/Mvc/View/Engine/{AbstractEngine.zep.php => AbstractEngine.php} (100%) rename src/Mvc/View/Engine/{EngineInterface.zep.php => EngineInterface.php} (100%) rename src/Mvc/View/Engine/{Php.zep.php => Php.php} (100%) rename src/Mvc/View/Engine/{Volt.zep.php => Volt.php} (100%) rename src/Mvc/View/Engine/Volt/{Compiler.zep.php => Compiler.php} (100%) rename src/Mvc/View/Engine/Volt/{Exception.zep.php => Exception.php} (100%) rename src/Mvc/View/{Exception.zep.php => Exception.php} (100%) rename src/Mvc/View/{Simple.zep.php => Simple.php} (100%) rename src/Mvc/{ViewBaseInterface.zep.php => ViewBaseInterface.php} (100%) rename src/Mvc/{ViewInterface.zep.php => ViewInterface.php} (100%) rename src/Paginator/Adapter/{AbstractAdapter.zep.php => AbstractAdapter.php} (100%) rename src/Paginator/Adapter/{AdapterInterface.zep.php => AdapterInterface.php} (100%) rename src/Paginator/Adapter/{Model.zep.php => Model.php} (100%) rename src/Paginator/Adapter/{NativeArray.zep.php => NativeArray.php} (100%) rename src/Paginator/Adapter/{QueryBuilder.zep.php => QueryBuilder.php} (100%) rename src/Paginator/{Exception.zep.php => Exception.php} (100%) rename src/Paginator/{PaginatorFactory.zep.php => PaginatorFactory.php} (100%) rename src/Paginator/{Repository.zep.php => Repository.php} (100%) rename src/Paginator/{RepositoryInterface.zep.php => RepositoryInterface.php} (100%) rename src/{Registry.zep.php => Registry.php} (100%) rename src/{Security.zep.php => Security.php} (100%) rename src/Security/{Exception.zep.php => Exception.php} (100%) rename src/Security/JWT/{Builder.zep.php => Builder.php} (100%) rename src/Security/JWT/Exceptions/{UnsupportedAlgorithmException.zep.php => UnsupportedAlgorithmException.php} (100%) rename src/Security/JWT/Exceptions/{ValidatorException.zep.php => ValidatorException.php} (100%) rename src/Security/JWT/Signer/{AbstractSigner.zep.php => AbstractSigner.php} (100%) rename src/Security/JWT/Signer/{Hmac.zep.php => Hmac.php} (100%) rename src/Security/JWT/Signer/{None.zep.php => None.php} (100%) rename src/Security/JWT/Signer/{SignerInterface.zep.php => SignerInterface.php} (100%) rename src/Security/JWT/Token/{AbstractItem.zep.php => AbstractItem.php} (100%) rename src/Security/JWT/Token/{Enum.zep.php => Enum.php} (100%) rename src/Security/JWT/Token/{Item.zep.php => Item.php} (100%) rename src/Security/JWT/Token/{Parser.zep.php => Parser.php} (100%) rename src/Security/JWT/Token/{Signature.zep.php => Signature.php} (100%) rename src/Security/JWT/Token/{Token.zep.php => Token.php} (100%) rename src/Security/JWT/{Validator.zep.php => Validator.php} (100%) rename src/Security/{Random.zep.php => Random.php} (100%) rename src/Session/Adapter/{AbstractAdapter.zep.php => AbstractAdapter.php} (100%) rename src/Session/Adapter/{Libmemcached.zep.php => Libmemcached.php} (100%) rename src/Session/Adapter/{Noop.zep.php => Noop.php} (100%) rename src/Session/Adapter/{Redis.zep.php => Redis.php} (100%) rename src/Session/Adapter/{Stream.zep.php => Stream.php} (100%) rename src/Session/{Bag.zep.php => Bag.php} (100%) rename src/Session/{Exception.zep.php => Exception.php} (100%) rename src/Session/{Manager.zep.php => Manager.php} (100%) rename src/Session/{ManagerInterface.zep.php => ManagerInterface.php} (100%) rename src/Storage/Adapter/{AbstractAdapter.zep.php => AbstractAdapter.php} (100%) rename src/Storage/Adapter/{AdapterInterface.zep.php => AdapterInterface.php} (100%) rename src/Storage/Adapter/{Apcu.zep.php => Apcu.php} (100%) rename src/Storage/Adapter/{Libmemcached.zep.php => Libmemcached.php} (100%) rename src/Storage/Adapter/{Memory.zep.php => Memory.php} (100%) rename src/Storage/Adapter/{Redis.zep.php => Redis.php} (100%) rename src/Storage/Adapter/{Stream.zep.php => Stream.php} (100%) rename src/Storage/{AdapterFactory.zep.php => AdapterFactory.php} (100%) rename src/Storage/{Exception.zep.php => Exception.php} (100%) rename src/Storage/Serializer/{AbstractSerializer.zep.php => AbstractSerializer.php} (100%) rename src/Storage/Serializer/{Base64.zep.php => Base64.php} (100%) rename src/Storage/Serializer/{Igbinary.zep.php => Igbinary.php} (100%) rename src/Storage/Serializer/{Json.zep.php => Json.php} (100%) rename src/Storage/Serializer/{Msgpack.zep.php => Msgpack.php} (100%) rename src/Storage/Serializer/{None.zep.php => None.php} (100%) rename src/Storage/Serializer/{Php.zep.php => Php.php} (100%) rename src/Storage/Serializer/{SerializerInterface.zep.php => SerializerInterface.php} (100%) rename src/Storage/{SerializerFactory.zep.php => SerializerFactory.php} (100%) rename src/Support/{Debug.zep.php => Debug.php} (100%) rename src/Support/Debug/{Dump.zep.php => Dump.php} (100%) rename src/Support/Debug/{Exception.zep.php => Exception.php} (100%) rename src/Support/{Exception.zep.php => Exception.php} (100%) rename src/Support/Helper/Str/{Interpolate.zep.php => Interpolate.php} (100%) rename src/Support/{HelperFactory.zep.php => HelperFactory.php} (100%) rename src/Support/{Version.zep.php => Version.php} (100%) rename src/{Tag.zep.php => Tag.php} (100%) rename src/Tag/{Exception.zep.php => Exception.php} (100%) rename src/Tag/{Select.zep.php => Select.php} (100%) rename src/{Text.zep.php => Text.php} (100%) rename src/Translate/Adapter/{AbstractAdapter.zep.php => AbstractAdapter.php} (100%) rename src/Translate/Adapter/{AdapterInterface.zep.php => AdapterInterface.php} (100%) rename src/Translate/Adapter/{Csv.zep.php => Csv.php} (100%) rename src/Translate/Adapter/{Gettext.zep.php => Gettext.php} (100%) rename src/Translate/Adapter/{NativeArray.zep.php => NativeArray.php} (100%) rename src/Translate/{Exception.zep.php => Exception.php} (100%) rename src/Translate/Interpolator/{AssociativeArray.zep.php => AssociativeArray.php} (100%) rename src/Translate/Interpolator/{IndexedArray.zep.php => IndexedArray.php} (100%) rename src/Translate/Interpolator/{InterpolatorInterface.zep.php => InterpolatorInterface.php} (100%) rename src/Translate/{InterpolatorFactory.zep.php => InterpolatorFactory.php} (100%) rename src/Translate/{TranslateFactory.zep.php => TranslateFactory.php} (100%) rename src/{Url.zep.php => Url.php} (100%) rename src/Url/{Exception.zep.php => Exception.php} (100%) rename src/Url/{UrlInterface.zep.php => UrlInterface.php} (100%) rename src/{Validation.zep.php => Validation.php} (100%) rename src/Validation/{AbstractCombinedFieldsValidator.zep.php => AbstractCombinedFieldsValidator.php} (100%) rename src/Validation/{AbstractValidator.zep.php => AbstractValidator.php} (100%) rename src/Validation/{AbstractValidatorComposite.zep.php => AbstractValidatorComposite.php} (100%) rename src/Validation/{Exception.zep.php => Exception.php} (100%) rename src/Validation/{ValidationInterface.zep.php => ValidationInterface.php} (100%) rename src/Validation/Validator/{Alnum.zep.php => Alnum.php} (100%) rename src/Validation/Validator/{Alpha.zep.php => Alpha.php} (100%) rename src/Validation/Validator/{Between.zep.php => Between.php} (100%) rename src/Validation/Validator/{Callback.zep.php => Callback.php} (100%) rename src/Validation/Validator/{Confirmation.zep.php => Confirmation.php} (100%) rename src/Validation/Validator/{CreditCard.zep.php => CreditCard.php} (100%) rename src/Validation/Validator/{Date.zep.php => Date.php} (100%) rename src/Validation/Validator/{Digit.zep.php => Digit.php} (100%) rename src/Validation/Validator/{Email.zep.php => Email.php} (100%) rename src/Validation/Validator/{Exception.zep.php => Exception.php} (100%) rename src/Validation/Validator/{ExclusionIn.zep.php => ExclusionIn.php} (100%) rename src/Validation/Validator/{File.zep.php => File.php} (100%) rename src/Validation/Validator/File/{AbstractFile.zep.php => AbstractFile.php} (100%) rename src/Validation/Validator/File/{MimeType.zep.php => MimeType.php} (100%) rename src/Validation/Validator/File/Resolution/{Equal.zep.php => Equal.php} (100%) rename src/Validation/Validator/File/Resolution/{Max.zep.php => Max.php} (100%) rename src/Validation/Validator/File/Resolution/{Min.zep.php => Min.php} (100%) rename src/Validation/Validator/File/Size/{Equal.zep.php => Equal.php} (100%) rename src/Validation/Validator/File/Size/{Max.zep.php => Max.php} (100%) rename src/Validation/Validator/File/Size/{Min.zep.php => Min.php} (100%) rename src/Validation/Validator/{Identical.zep.php => Identical.php} (100%) rename src/Validation/Validator/{InclusionIn.zep.php => InclusionIn.php} (100%) rename src/Validation/Validator/{Ip.zep.php => Ip.php} (100%) rename src/Validation/Validator/{Numericality.zep.php => Numericality.php} (100%) rename src/Validation/Validator/{PresenceOf.zep.php => PresenceOf.php} (100%) rename src/Validation/Validator/{Regex.zep.php => Regex.php} (100%) rename src/Validation/Validator/{StringLength.zep.php => StringLength.php} (100%) rename src/Validation/Validator/StringLength/{Max.zep.php => Max.php} (100%) rename src/Validation/Validator/StringLength/{Min.zep.php => Min.php} (100%) rename src/Validation/Validator/{Uniqueness.zep.php => Uniqueness.php} (100%) rename src/Validation/Validator/{Url.zep.php => Url.php} (100%) rename src/Validation/{ValidatorCompositeInterface.zep.php => ValidatorCompositeInterface.php} (100%) rename src/Validation/{ValidatorFactory.zep.php => ValidatorFactory.php} (100%) rename src/Validation/{ValidatorInterface.zep.php => ValidatorInterface.php} (100%) diff --git a/src/Acl/Adapter/AbstractAdapter.zep.php b/src/Acl/Adapter/AbstractAdapter.php similarity index 100% rename from src/Acl/Adapter/AbstractAdapter.zep.php rename to src/Acl/Adapter/AbstractAdapter.php diff --git a/src/Acl/Adapter/AdapterInterface.zep.php b/src/Acl/Adapter/AdapterInterface.php similarity index 100% rename from src/Acl/Adapter/AdapterInterface.zep.php rename to src/Acl/Adapter/AdapterInterface.php diff --git a/src/Acl/Adapter/Memory.zep.php b/src/Acl/Adapter/Memory.php similarity index 100% rename from src/Acl/Adapter/Memory.zep.php rename to src/Acl/Adapter/Memory.php diff --git a/src/Acl/Component.zep.php b/src/Acl/Component.php similarity index 100% rename from src/Acl/Component.zep.php rename to src/Acl/Component.php diff --git a/src/Acl/ComponentAware.zep.php b/src/Acl/ComponentAware.php similarity index 100% rename from src/Acl/ComponentAware.zep.php rename to src/Acl/ComponentAware.php diff --git a/src/Acl/ComponentInterface.zep.php b/src/Acl/ComponentInterface.php similarity index 100% rename from src/Acl/ComponentInterface.zep.php rename to src/Acl/ComponentInterface.php diff --git a/src/Acl/Enum.zep.php b/src/Acl/Enum.php similarity index 100% rename from src/Acl/Enum.zep.php rename to src/Acl/Enum.php diff --git a/src/Acl/Exception.zep.php b/src/Acl/Exception.php similarity index 100% rename from src/Acl/Exception.zep.php rename to src/Acl/Exception.php diff --git a/src/Acl/Role.zep.php b/src/Acl/Role.php similarity index 100% rename from src/Acl/Role.zep.php rename to src/Acl/Role.php diff --git a/src/Acl/RoleAware.zep.php b/src/Acl/RoleAware.php similarity index 100% rename from src/Acl/RoleAware.zep.php rename to src/Acl/RoleAware.php diff --git a/src/Acl/RoleInterface.zep.php b/src/Acl/RoleInterface.php similarity index 100% rename from src/Acl/RoleInterface.zep.php rename to src/Acl/RoleInterface.php diff --git a/src/Annotations/Adapter/AbstractAdapter.zep.php b/src/Annotations/Adapter/AbstractAdapter.php similarity index 100% rename from src/Annotations/Adapter/AbstractAdapter.zep.php rename to src/Annotations/Adapter/AbstractAdapter.php diff --git a/src/Annotations/Adapter/AdapterInterface.zep.php b/src/Annotations/Adapter/AdapterInterface.php similarity index 100% rename from src/Annotations/Adapter/AdapterInterface.zep.php rename to src/Annotations/Adapter/AdapterInterface.php diff --git a/src/Annotations/Adapter/Apcu.zep.php b/src/Annotations/Adapter/Apcu.php similarity index 100% rename from src/Annotations/Adapter/Apcu.zep.php rename to src/Annotations/Adapter/Apcu.php diff --git a/src/Annotations/Adapter/Memory.zep.php b/src/Annotations/Adapter/Memory.php similarity index 100% rename from src/Annotations/Adapter/Memory.zep.php rename to src/Annotations/Adapter/Memory.php diff --git a/src/Annotations/Adapter/Stream.zep.php b/src/Annotations/Adapter/Stream.php similarity index 100% rename from src/Annotations/Adapter/Stream.zep.php rename to src/Annotations/Adapter/Stream.php diff --git a/src/Annotations/Annotation.zep.php b/src/Annotations/Annotation.php similarity index 100% rename from src/Annotations/Annotation.zep.php rename to src/Annotations/Annotation.php diff --git a/src/Annotations/AnnotationsFactory.zep.php b/src/Annotations/AnnotationsFactory.php similarity index 100% rename from src/Annotations/AnnotationsFactory.zep.php rename to src/Annotations/AnnotationsFactory.php diff --git a/src/Annotations/Collection.zep.php b/src/Annotations/Collection.php similarity index 100% rename from src/Annotations/Collection.zep.php rename to src/Annotations/Collection.php diff --git a/src/Annotations/Exception.zep.php b/src/Annotations/Exception.php similarity index 100% rename from src/Annotations/Exception.zep.php rename to src/Annotations/Exception.php diff --git a/src/Annotations/Reader.zep.php b/src/Annotations/Reader.php similarity index 100% rename from src/Annotations/Reader.zep.php rename to src/Annotations/Reader.php diff --git a/src/Annotations/ReaderInterface.zep.php b/src/Annotations/ReaderInterface.php similarity index 100% rename from src/Annotations/ReaderInterface.zep.php rename to src/Annotations/ReaderInterface.php diff --git a/src/Annotations/Reflection.zep.php b/src/Annotations/Reflection.php similarity index 100% rename from src/Annotations/Reflection.zep.php rename to src/Annotations/Reflection.php diff --git a/src/Application/AbstractApplication.zep.php b/src/Application/AbstractApplication.php similarity index 100% rename from src/Application/AbstractApplication.zep.php rename to src/Application/AbstractApplication.php diff --git a/src/Application/Exception.zep.php b/src/Application/Exception.php similarity index 100% rename from src/Application/Exception.zep.php rename to src/Application/Exception.php diff --git a/src/Assets/Asset.zep.php b/src/Assets/Asset.php similarity index 100% rename from src/Assets/Asset.zep.php rename to src/Assets/Asset.php diff --git a/src/Assets/Asset/Css.zep.php b/src/Assets/Asset/Css.php similarity index 100% rename from src/Assets/Asset/Css.zep.php rename to src/Assets/Asset/Css.php diff --git a/src/Assets/Asset/Js.zep.php b/src/Assets/Asset/Js.php similarity index 100% rename from src/Assets/Asset/Js.zep.php rename to src/Assets/Asset/Js.php diff --git a/src/Assets/AssetInterface.zep.php b/src/Assets/AssetInterface.php similarity index 100% rename from src/Assets/AssetInterface.zep.php rename to src/Assets/AssetInterface.php diff --git a/src/Assets/Collection.zep.php b/src/Assets/Collection.php similarity index 100% rename from src/Assets/Collection.zep.php rename to src/Assets/Collection.php diff --git a/src/Assets/Exception.zep.php b/src/Assets/Exception.php similarity index 100% rename from src/Assets/Exception.zep.php rename to src/Assets/Exception.php diff --git a/src/Assets/FilterInterface.zep.php b/src/Assets/FilterInterface.php similarity index 100% rename from src/Assets/FilterInterface.zep.php rename to src/Assets/FilterInterface.php diff --git a/src/Assets/Filters/Cssmin.zep.php b/src/Assets/Filters/Cssmin.php similarity index 100% rename from src/Assets/Filters/Cssmin.zep.php rename to src/Assets/Filters/Cssmin.php diff --git a/src/Assets/Filters/Jsmin.zep.php b/src/Assets/Filters/Jsmin.php similarity index 100% rename from src/Assets/Filters/Jsmin.zep.php rename to src/Assets/Filters/Jsmin.php diff --git a/src/Assets/Filters/None.zep.php b/src/Assets/Filters/None.php similarity index 100% rename from src/Assets/Filters/None.zep.php rename to src/Assets/Filters/None.php diff --git a/src/Assets/Inline.zep.php b/src/Assets/Inline.php similarity index 100% rename from src/Assets/Inline.zep.php rename to src/Assets/Inline.php diff --git a/src/Assets/Inline/Css.zep.php b/src/Assets/Inline/Css.php similarity index 100% rename from src/Assets/Inline/Css.zep.php rename to src/Assets/Inline/Css.php diff --git a/src/Assets/Inline/Js.zep.php b/src/Assets/Inline/Js.php similarity index 100% rename from src/Assets/Inline/Js.zep.php rename to src/Assets/Inline/Js.php diff --git a/src/Assets/Manager.zep.php b/src/Assets/Manager.php similarity index 100% rename from src/Assets/Manager.zep.php rename to src/Assets/Manager.php diff --git a/src/Cache.zep.php b/src/Cache.php similarity index 100% rename from src/Cache.zep.php rename to src/Cache.php diff --git a/src/Cache/Adapter/AdapterInterface.zep.php b/src/Cache/Adapter/AdapterInterface.php similarity index 100% rename from src/Cache/Adapter/AdapterInterface.zep.php rename to src/Cache/Adapter/AdapterInterface.php diff --git a/src/Cache/Adapter/Apcu.zep.php b/src/Cache/Adapter/Apcu.php similarity index 100% rename from src/Cache/Adapter/Apcu.zep.php rename to src/Cache/Adapter/Apcu.php diff --git a/src/Cache/Adapter/Libmemcached.zep.php b/src/Cache/Adapter/Libmemcached.php similarity index 100% rename from src/Cache/Adapter/Libmemcached.zep.php rename to src/Cache/Adapter/Libmemcached.php diff --git a/src/Cache/Adapter/Memory.zep.php b/src/Cache/Adapter/Memory.php similarity index 100% rename from src/Cache/Adapter/Memory.zep.php rename to src/Cache/Adapter/Memory.php diff --git a/src/Cache/Adapter/Redis.zep.php b/src/Cache/Adapter/Redis.php similarity index 100% rename from src/Cache/Adapter/Redis.zep.php rename to src/Cache/Adapter/Redis.php diff --git a/src/Cache/Adapter/Stream.zep.php b/src/Cache/Adapter/Stream.php similarity index 100% rename from src/Cache/Adapter/Stream.zep.php rename to src/Cache/Adapter/Stream.php diff --git a/src/Cache/AdapterFactory.zep.php b/src/Cache/AdapterFactory.php similarity index 100% rename from src/Cache/AdapterFactory.zep.php rename to src/Cache/AdapterFactory.php diff --git a/src/Cache/CacheFactory.zep.php b/src/Cache/CacheFactory.php similarity index 100% rename from src/Cache/CacheFactory.zep.php rename to src/Cache/CacheFactory.php diff --git a/src/Cache/Exception/Exception.zep.php b/src/Cache/Exception/Exception.php similarity index 100% rename from src/Cache/Exception/Exception.zep.php rename to src/Cache/Exception/Exception.php diff --git a/src/Cache/Exception/InvalidArgumentException.zep.php b/src/Cache/Exception/InvalidArgumentException.php similarity index 100% rename from src/Cache/Exception/InvalidArgumentException.zep.php rename to src/Cache/Exception/InvalidArgumentException.php diff --git a/src/Cli/Console.zep.php b/src/Cli/Console.php similarity index 100% rename from src/Cli/Console.zep.php rename to src/Cli/Console.php diff --git a/src/Cli/Console/Exception.zep.php b/src/Cli/Console/Exception.php similarity index 100% rename from src/Cli/Console/Exception.zep.php rename to src/Cli/Console/Exception.php diff --git a/src/Cli/Dispatcher.zep.php b/src/Cli/Dispatcher.php similarity index 100% rename from src/Cli/Dispatcher.zep.php rename to src/Cli/Dispatcher.php diff --git a/src/Cli/Dispatcher/Exception.zep.php b/src/Cli/Dispatcher/Exception.php similarity index 100% rename from src/Cli/Dispatcher/Exception.zep.php rename to src/Cli/Dispatcher/Exception.php diff --git a/src/Cli/DispatcherInterface.zep.php b/src/Cli/DispatcherInterface.php similarity index 100% rename from src/Cli/DispatcherInterface.zep.php rename to src/Cli/DispatcherInterface.php diff --git a/src/Cli/Router.zep.php b/src/Cli/Router.php similarity index 100% rename from src/Cli/Router.zep.php rename to src/Cli/Router.php diff --git a/src/Cli/Router/Exception.zep.php b/src/Cli/Router/Exception.php similarity index 100% rename from src/Cli/Router/Exception.zep.php rename to src/Cli/Router/Exception.php diff --git a/src/Cli/Router/Route.zep.php b/src/Cli/Router/Route.php similarity index 100% rename from src/Cli/Router/Route.zep.php rename to src/Cli/Router/Route.php diff --git a/src/Cli/Router/RouteInterface.zep.php b/src/Cli/Router/RouteInterface.php similarity index 100% rename from src/Cli/Router/RouteInterface.zep.php rename to src/Cli/Router/RouteInterface.php diff --git a/src/Cli/RouterInterface.zep.php b/src/Cli/RouterInterface.php similarity index 100% rename from src/Cli/RouterInterface.zep.php rename to src/Cli/RouterInterface.php diff --git a/src/Cli/Task.zep.php b/src/Cli/Task.php similarity index 100% rename from src/Cli/Task.zep.php rename to src/Cli/Task.php diff --git a/src/Cli/TaskInterface.zep.php b/src/Cli/TaskInterface.php similarity index 100% rename from src/Cli/TaskInterface.zep.php rename to src/Cli/TaskInterface.php diff --git a/src/Collection.zep.php b/src/Collection.php similarity index 100% rename from src/Collection.zep.php rename to src/Collection.php diff --git a/src/Collection/CollectionInterface.zep.php b/src/Collection/CollectionInterface.php similarity index 100% rename from src/Collection/CollectionInterface.zep.php rename to src/Collection/CollectionInterface.php diff --git a/src/Collection/Exception.zep.php b/src/Collection/Exception.php similarity index 100% rename from src/Collection/Exception.zep.php rename to src/Collection/Exception.php diff --git a/src/Collection/ReadOnly.zep.php b/src/Collection/ReadOnly.php similarity index 100% rename from src/Collection/ReadOnly.zep.php rename to src/Collection/ReadOnly.php diff --git a/src/Config.zep.php b/src/Config.php similarity index 100% rename from src/Config.zep.php rename to src/Config.php diff --git a/src/Config/Adapter/Grouped.zep.php b/src/Config/Adapter/Grouped.php similarity index 100% rename from src/Config/Adapter/Grouped.zep.php rename to src/Config/Adapter/Grouped.php diff --git a/src/Config/Adapter/Ini.zep.php b/src/Config/Adapter/Ini.php similarity index 100% rename from src/Config/Adapter/Ini.zep.php rename to src/Config/Adapter/Ini.php diff --git a/src/Config/Adapter/Json.zep.php b/src/Config/Adapter/Json.php similarity index 100% rename from src/Config/Adapter/Json.zep.php rename to src/Config/Adapter/Json.php diff --git a/src/Config/Adapter/Php.zep.php b/src/Config/Adapter/Php.php similarity index 100% rename from src/Config/Adapter/Php.zep.php rename to src/Config/Adapter/Php.php diff --git a/src/Config/Adapter/Yaml.zep.php b/src/Config/Adapter/Yaml.php similarity index 100% rename from src/Config/Adapter/Yaml.zep.php rename to src/Config/Adapter/Yaml.php diff --git a/src/Config/ConfigFactory.zep.php b/src/Config/ConfigFactory.php similarity index 100% rename from src/Config/ConfigFactory.zep.php rename to src/Config/ConfigFactory.php diff --git a/src/Config/ConfigInterface.zep.php b/src/Config/ConfigInterface.php similarity index 100% rename from src/Config/ConfigInterface.zep.php rename to src/Config/ConfigInterface.php diff --git a/src/Config/Exception.zep.php b/src/Config/Exception.php similarity index 100% rename from src/Config/Exception.zep.php rename to src/Config/Exception.php diff --git a/src/Container.zep.php b/src/Container.php similarity index 100% rename from src/Container.zep.php rename to src/Container.php diff --git a/src/Crypt.zep.php b/src/Crypt.php similarity index 100% rename from src/Crypt.zep.php rename to src/Crypt.php diff --git a/src/Crypt/CryptInterface.zep.php b/src/Crypt/CryptInterface.php similarity index 100% rename from src/Crypt/CryptInterface.zep.php rename to src/Crypt/CryptInterface.php diff --git a/src/Crypt/Exception.zep.php b/src/Crypt/Exception.php similarity index 100% rename from src/Crypt/Exception.zep.php rename to src/Crypt/Exception.php diff --git a/src/Crypt/Mismatch.zep.php b/src/Crypt/Mismatch.php similarity index 100% rename from src/Crypt/Mismatch.zep.php rename to src/Crypt/Mismatch.php diff --git a/src/DataMapper/Pdo/Connection.zep.php b/src/DataMapper/Pdo/Connection.php similarity index 100% rename from src/DataMapper/Pdo/Connection.zep.php rename to src/DataMapper/Pdo/Connection.php diff --git a/src/DataMapper/Pdo/Connection/AbstractConnection.zep.php b/src/DataMapper/Pdo/Connection/AbstractConnection.php similarity index 100% rename from src/DataMapper/Pdo/Connection/AbstractConnection.zep.php rename to src/DataMapper/Pdo/Connection/AbstractConnection.php diff --git a/src/DataMapper/Pdo/Connection/ConnectionInterface.zep.php b/src/DataMapper/Pdo/Connection/ConnectionInterface.php similarity index 100% rename from src/DataMapper/Pdo/Connection/ConnectionInterface.zep.php rename to src/DataMapper/Pdo/Connection/ConnectionInterface.php diff --git a/src/DataMapper/Pdo/Connection/Decorated.zep.php b/src/DataMapper/Pdo/Connection/Decorated.php similarity index 100% rename from src/DataMapper/Pdo/Connection/Decorated.zep.php rename to src/DataMapper/Pdo/Connection/Decorated.php diff --git a/src/DataMapper/Pdo/Connection/PdoInterface.zep.php b/src/DataMapper/Pdo/Connection/PdoInterface.php similarity index 100% rename from src/DataMapper/Pdo/Connection/PdoInterface.zep.php rename to src/DataMapper/Pdo/Connection/PdoInterface.php diff --git a/src/DataMapper/Pdo/ConnectionLocator.zep.php b/src/DataMapper/Pdo/ConnectionLocator.php similarity index 100% rename from src/DataMapper/Pdo/ConnectionLocator.zep.php rename to src/DataMapper/Pdo/ConnectionLocator.php diff --git a/src/DataMapper/Pdo/ConnectionLocatorInterface.zep.php b/src/DataMapper/Pdo/ConnectionLocatorInterface.php similarity index 100% rename from src/DataMapper/Pdo/ConnectionLocatorInterface.zep.php rename to src/DataMapper/Pdo/ConnectionLocatorInterface.php diff --git a/src/DataMapper/Pdo/Exception/CannotDisconnect.zep.php b/src/DataMapper/Pdo/Exception/CannotDisconnect.php similarity index 100% rename from src/DataMapper/Pdo/Exception/CannotDisconnect.zep.php rename to src/DataMapper/Pdo/Exception/CannotDisconnect.php diff --git a/src/DataMapper/Pdo/Exception/ConnectionNotFound.zep.php b/src/DataMapper/Pdo/Exception/ConnectionNotFound.php similarity index 100% rename from src/DataMapper/Pdo/Exception/ConnectionNotFound.zep.php rename to src/DataMapper/Pdo/Exception/ConnectionNotFound.php diff --git a/src/DataMapper/Pdo/Exception/Exception.zep.php b/src/DataMapper/Pdo/Exception/Exception.php similarity index 100% rename from src/DataMapper/Pdo/Exception/Exception.zep.php rename to src/DataMapper/Pdo/Exception/Exception.php diff --git a/src/DataMapper/Pdo/Profiler/MemoryLogger.zep.php b/src/DataMapper/Pdo/Profiler/MemoryLogger.php similarity index 100% rename from src/DataMapper/Pdo/Profiler/MemoryLogger.zep.php rename to src/DataMapper/Pdo/Profiler/MemoryLogger.php diff --git a/src/DataMapper/Pdo/Profiler/Profiler.zep.php b/src/DataMapper/Pdo/Profiler/Profiler.php similarity index 100% rename from src/DataMapper/Pdo/Profiler/Profiler.zep.php rename to src/DataMapper/Pdo/Profiler/Profiler.php diff --git a/src/DataMapper/Pdo/Profiler/ProfilerInterface.zep.php b/src/DataMapper/Pdo/Profiler/ProfilerInterface.php similarity index 100% rename from src/DataMapper/Pdo/Profiler/ProfilerInterface.zep.php rename to src/DataMapper/Pdo/Profiler/ProfilerInterface.php diff --git a/src/DataMapper/Query/AbstractConditions.zep.php b/src/DataMapper/Query/AbstractConditions.php similarity index 100% rename from src/DataMapper/Query/AbstractConditions.zep.php rename to src/DataMapper/Query/AbstractConditions.php diff --git a/src/DataMapper/Query/AbstractQuery.zep.php b/src/DataMapper/Query/AbstractQuery.php similarity index 100% rename from src/DataMapper/Query/AbstractQuery.zep.php rename to src/DataMapper/Query/AbstractQuery.php diff --git a/src/DataMapper/Query/Bind.zep.php b/src/DataMapper/Query/Bind.php similarity index 100% rename from src/DataMapper/Query/Bind.zep.php rename to src/DataMapper/Query/Bind.php diff --git a/src/DataMapper/Query/Delete.zep.php b/src/DataMapper/Query/Delete.php similarity index 100% rename from src/DataMapper/Query/Delete.zep.php rename to src/DataMapper/Query/Delete.php diff --git a/src/DataMapper/Query/Insert.zep.php b/src/DataMapper/Query/Insert.php similarity index 100% rename from src/DataMapper/Query/Insert.zep.php rename to src/DataMapper/Query/Insert.php diff --git a/src/DataMapper/Query/QueryFactory.zep.php b/src/DataMapper/Query/QueryFactory.php similarity index 100% rename from src/DataMapper/Query/QueryFactory.zep.php rename to src/DataMapper/Query/QueryFactory.php diff --git a/src/DataMapper/Query/Select.zep.php b/src/DataMapper/Query/Select.php similarity index 100% rename from src/DataMapper/Query/Select.zep.php rename to src/DataMapper/Query/Select.php diff --git a/src/DataMapper/Query/Update.zep.php b/src/DataMapper/Query/Update.php similarity index 100% rename from src/DataMapper/Query/Update.zep.php rename to src/DataMapper/Query/Update.php diff --git a/src/Db/AbstractDb.zep.php b/src/Db/AbstractDb.php similarity index 100% rename from src/Db/AbstractDb.zep.php rename to src/Db/AbstractDb.php diff --git a/src/Db/Adapter/AbstractAdapter.zep.php b/src/Db/Adapter/AbstractAdapter.php similarity index 100% rename from src/Db/Adapter/AbstractAdapter.zep.php rename to src/Db/Adapter/AbstractAdapter.php diff --git a/src/Db/Adapter/AdapterInterface.zep.php b/src/Db/Adapter/AdapterInterface.php similarity index 100% rename from src/Db/Adapter/AdapterInterface.zep.php rename to src/Db/Adapter/AdapterInterface.php diff --git a/src/Db/Adapter/Pdo/AbstractPdo.zep.php b/src/Db/Adapter/Pdo/AbstractPdo.php similarity index 100% rename from src/Db/Adapter/Pdo/AbstractPdo.zep.php rename to src/Db/Adapter/Pdo/AbstractPdo.php diff --git a/src/Db/Adapter/Pdo/Mysql.zep.php b/src/Db/Adapter/Pdo/Mysql.php similarity index 100% rename from src/Db/Adapter/Pdo/Mysql.zep.php rename to src/Db/Adapter/Pdo/Mysql.php diff --git a/src/Db/Adapter/Pdo/Postgresql.zep.php b/src/Db/Adapter/Pdo/Postgresql.php similarity index 100% rename from src/Db/Adapter/Pdo/Postgresql.zep.php rename to src/Db/Adapter/Pdo/Postgresql.php diff --git a/src/Db/Adapter/Pdo/Sqlite.zep.php b/src/Db/Adapter/Pdo/Sqlite.php similarity index 100% rename from src/Db/Adapter/Pdo/Sqlite.zep.php rename to src/Db/Adapter/Pdo/Sqlite.php diff --git a/src/Db/Adapter/PdoFactory.zep.php b/src/Db/Adapter/PdoFactory.php similarity index 100% rename from src/Db/Adapter/PdoFactory.zep.php rename to src/Db/Adapter/PdoFactory.php diff --git a/src/Db/Column.zep.php b/src/Db/Column.php similarity index 100% rename from src/Db/Column.zep.php rename to src/Db/Column.php diff --git a/src/Db/ColumnInterface.zep.php b/src/Db/ColumnInterface.php similarity index 100% rename from src/Db/ColumnInterface.zep.php rename to src/Db/ColumnInterface.php diff --git a/src/Db/Dialect.zep.php b/src/Db/Dialect.php similarity index 100% rename from src/Db/Dialect.zep.php rename to src/Db/Dialect.php diff --git a/src/Db/Dialect/Mysql.zep.php b/src/Db/Dialect/Mysql.php similarity index 100% rename from src/Db/Dialect/Mysql.zep.php rename to src/Db/Dialect/Mysql.php diff --git a/src/Db/Dialect/Postgresql.zep.php b/src/Db/Dialect/Postgresql.php similarity index 100% rename from src/Db/Dialect/Postgresql.zep.php rename to src/Db/Dialect/Postgresql.php diff --git a/src/Db/Dialect/Sqlite.zep.php b/src/Db/Dialect/Sqlite.php similarity index 100% rename from src/Db/Dialect/Sqlite.zep.php rename to src/Db/Dialect/Sqlite.php diff --git a/src/Db/DialectInterface.zep.php b/src/Db/DialectInterface.php similarity index 100% rename from src/Db/DialectInterface.zep.php rename to src/Db/DialectInterface.php diff --git a/src/Db/Enum.zep.php b/src/Db/Enum.php similarity index 100% rename from src/Db/Enum.zep.php rename to src/Db/Enum.php diff --git a/src/Db/Exception.zep.php b/src/Db/Exception.php similarity index 100% rename from src/Db/Exception.zep.php rename to src/Db/Exception.php diff --git a/src/Db/Index.zep.php b/src/Db/Index.php similarity index 100% rename from src/Db/Index.zep.php rename to src/Db/Index.php diff --git a/src/Db/IndexInterface.zep.php b/src/Db/IndexInterface.php similarity index 100% rename from src/Db/IndexInterface.zep.php rename to src/Db/IndexInterface.php diff --git a/src/Db/Profiler.zep.php b/src/Db/Profiler.php similarity index 100% rename from src/Db/Profiler.zep.php rename to src/Db/Profiler.php diff --git a/src/Db/Profiler/Item.zep.php b/src/Db/Profiler/Item.php similarity index 100% rename from src/Db/Profiler/Item.zep.php rename to src/Db/Profiler/Item.php diff --git a/src/Db/RawValue.zep.php b/src/Db/RawValue.php similarity index 100% rename from src/Db/RawValue.zep.php rename to src/Db/RawValue.php diff --git a/src/Db/Reference.zep.php b/src/Db/Reference.php similarity index 100% rename from src/Db/Reference.zep.php rename to src/Db/Reference.php diff --git a/src/Db/ReferenceInterface.zep.php b/src/Db/ReferenceInterface.php similarity index 100% rename from src/Db/ReferenceInterface.zep.php rename to src/Db/ReferenceInterface.php diff --git a/src/Db/Result/Pdo.zep.php b/src/Db/Result/Pdo.php similarity index 100% rename from src/Db/Result/Pdo.zep.php rename to src/Db/Result/Pdo.php diff --git a/src/Db/ResultInterface.zep.php b/src/Db/ResultInterface.php similarity index 100% rename from src/Db/ResultInterface.zep.php rename to src/Db/ResultInterface.php diff --git a/src/Di.zep.php b/src/Di.php similarity index 100% rename from src/Di.zep.php rename to src/Di.php diff --git a/src/Di/AbstractInjectionAware.zep.php b/src/Di/AbstractInjectionAware.php similarity index 100% rename from src/Di/AbstractInjectionAware.zep.php rename to src/Di/AbstractInjectionAware.php diff --git a/src/Di/DiInterface.zep.php b/src/Di/DiInterface.php similarity index 100% rename from src/Di/DiInterface.zep.php rename to src/Di/DiInterface.php diff --git a/src/Di/Exception.zep.php b/src/Di/Exception.php similarity index 100% rename from src/Di/Exception.zep.php rename to src/Di/Exception.php diff --git a/src/Di/Exception/ServiceResolutionException.zep.php b/src/Di/Exception/ServiceResolutionException.php similarity index 100% rename from src/Di/Exception/ServiceResolutionException.zep.php rename to src/Di/Exception/ServiceResolutionException.php diff --git a/src/Di/FactoryDefault.zep.php b/src/Di/FactoryDefault.php similarity index 100% rename from src/Di/FactoryDefault.zep.php rename to src/Di/FactoryDefault.php diff --git a/src/Di/FactoryDefault/Cli.zep.php b/src/Di/FactoryDefault/Cli.php similarity index 100% rename from src/Di/FactoryDefault/Cli.zep.php rename to src/Di/FactoryDefault/Cli.php diff --git a/src/Di/Injectable.zep.php b/src/Di/Injectable.php similarity index 100% rename from src/Di/Injectable.zep.php rename to src/Di/Injectable.php diff --git a/src/Di/InjectionAwareInterface.zep.php b/src/Di/InjectionAwareInterface.php similarity index 100% rename from src/Di/InjectionAwareInterface.zep.php rename to src/Di/InjectionAwareInterface.php diff --git a/src/Di/Service.zep.php b/src/Di/Service.php similarity index 100% rename from src/Di/Service.zep.php rename to src/Di/Service.php diff --git a/src/Di/Service/Builder.zep.php b/src/Di/Service/Builder.php similarity index 100% rename from src/Di/Service/Builder.zep.php rename to src/Di/Service/Builder.php diff --git a/src/Di/ServiceInterface.zep.php b/src/Di/ServiceInterface.php similarity index 100% rename from src/Di/ServiceInterface.zep.php rename to src/Di/ServiceInterface.php diff --git a/src/Di/ServiceProviderInterface.zep.php b/src/Di/ServiceProviderInterface.php similarity index 100% rename from src/Di/ServiceProviderInterface.zep.php rename to src/Di/ServiceProviderInterface.php diff --git a/src/Dispatcher/AbstractDispatcher.zep.php b/src/Dispatcher/AbstractDispatcher.php similarity index 100% rename from src/Dispatcher/AbstractDispatcher.zep.php rename to src/Dispatcher/AbstractDispatcher.php diff --git a/src/Dispatcher/DispatcherInterface.zep.php b/src/Dispatcher/DispatcherInterface.php similarity index 100% rename from src/Dispatcher/DispatcherInterface.zep.php rename to src/Dispatcher/DispatcherInterface.php diff --git a/src/Dispatcher/Exception.zep.php b/src/Dispatcher/Exception.php similarity index 100% rename from src/Dispatcher/Exception.zep.php rename to src/Dispatcher/Exception.php diff --git a/src/Domain/Payload/Payload.zep.php b/src/Domain/Payload/Payload.php similarity index 100% rename from src/Domain/Payload/Payload.zep.php rename to src/Domain/Payload/Payload.php diff --git a/src/Domain/Payload/PayloadFactory.zep.php b/src/Domain/Payload/PayloadFactory.php similarity index 100% rename from src/Domain/Payload/PayloadFactory.zep.php rename to src/Domain/Payload/PayloadFactory.php diff --git a/src/Domain/Payload/PayloadInterface.zep.php b/src/Domain/Payload/PayloadInterface.php similarity index 100% rename from src/Domain/Payload/PayloadInterface.zep.php rename to src/Domain/Payload/PayloadInterface.php diff --git a/src/Domain/Payload/ReadableInterface.zep.php b/src/Domain/Payload/ReadableInterface.php similarity index 100% rename from src/Domain/Payload/ReadableInterface.zep.php rename to src/Domain/Payload/ReadableInterface.php diff --git a/src/Domain/Payload/Status.zep.php b/src/Domain/Payload/Status.php similarity index 100% rename from src/Domain/Payload/Status.zep.php rename to src/Domain/Payload/Status.php diff --git a/src/Domain/Payload/WriteableInterface.zep.php b/src/Domain/Payload/WriteableInterface.php similarity index 100% rename from src/Domain/Payload/WriteableInterface.zep.php rename to src/Domain/Payload/WriteableInterface.php diff --git a/src/Escaper.zep.php b/src/Escaper.php similarity index 100% rename from src/Escaper.zep.php rename to src/Escaper.php diff --git a/src/Escaper/EscaperInterface.zep.php b/src/Escaper/EscaperInterface.php similarity index 100% rename from src/Escaper/EscaperInterface.zep.php rename to src/Escaper/EscaperInterface.php diff --git a/src/Escaper/Exception.zep.php b/src/Escaper/Exception.php similarity index 100% rename from src/Escaper/Exception.zep.php rename to src/Escaper/Exception.php diff --git a/src/Events/Event.zep.php b/src/Events/Event.php similarity index 100% rename from src/Events/Event.zep.php rename to src/Events/Event.php diff --git a/src/Events/EventInterface.zep.php b/src/Events/EventInterface.php similarity index 100% rename from src/Events/EventInterface.zep.php rename to src/Events/EventInterface.php diff --git a/src/Events/EventsAwareInterface.zep.php b/src/Events/EventsAwareInterface.php similarity index 100% rename from src/Events/EventsAwareInterface.zep.php rename to src/Events/EventsAwareInterface.php diff --git a/src/Events/Exception.zep.php b/src/Events/Exception.php similarity index 100% rename from src/Events/Exception.zep.php rename to src/Events/Exception.php diff --git a/src/Events/Manager.zep.php b/src/Events/Manager.php similarity index 100% rename from src/Events/Manager.zep.php rename to src/Events/Manager.php diff --git a/src/Events/ManagerInterface.zep.php b/src/Events/ManagerInterface.php similarity index 100% rename from src/Events/ManagerInterface.zep.php rename to src/Events/ManagerInterface.php diff --git a/src/Exception.zep.php b/src/Exception.php similarity index 100% rename from src/Exception.zep.php rename to src/Exception.php diff --git a/src/Factory/AbstractFactory.zep.php b/src/Factory/AbstractFactory.php similarity index 100% rename from src/Factory/AbstractFactory.zep.php rename to src/Factory/AbstractFactory.php diff --git a/src/Factory/Exception.zep.php b/src/Factory/Exception.php similarity index 100% rename from src/Factory/Exception.zep.php rename to src/Factory/Exception.php diff --git a/src/Filter.zep.php b/src/Filter.php similarity index 100% rename from src/Filter.zep.php rename to src/Filter.php diff --git a/src/Filter/Exception.zep.php b/src/Filter/Exception.php similarity index 100% rename from src/Filter/Exception.zep.php rename to src/Filter/Exception.php diff --git a/src/Filter/FilterFactory.zep.php b/src/Filter/FilterFactory.php similarity index 100% rename from src/Filter/FilterFactory.zep.php rename to src/Filter/FilterFactory.php diff --git a/src/Filter/FilterInterface.zep.php b/src/Filter/FilterInterface.php similarity index 100% rename from src/Filter/FilterInterface.zep.php rename to src/Filter/FilterInterface.php diff --git a/src/Filter/Sanitize/AbsInt.zep.php b/src/Filter/Sanitize/AbsInt.php similarity index 100% rename from src/Filter/Sanitize/AbsInt.zep.php rename to src/Filter/Sanitize/AbsInt.php diff --git a/src/Filter/Sanitize/Alnum.zep.php b/src/Filter/Sanitize/Alnum.php similarity index 100% rename from src/Filter/Sanitize/Alnum.zep.php rename to src/Filter/Sanitize/Alnum.php diff --git a/src/Filter/Sanitize/Alpha.zep.php b/src/Filter/Sanitize/Alpha.php similarity index 100% rename from src/Filter/Sanitize/Alpha.zep.php rename to src/Filter/Sanitize/Alpha.php diff --git a/src/Filter/Sanitize/BoolVal.zep.php b/src/Filter/Sanitize/BoolVal.php similarity index 100% rename from src/Filter/Sanitize/BoolVal.zep.php rename to src/Filter/Sanitize/BoolVal.php diff --git a/src/Filter/Sanitize/Email.zep.php b/src/Filter/Sanitize/Email.php similarity index 100% rename from src/Filter/Sanitize/Email.zep.php rename to src/Filter/Sanitize/Email.php diff --git a/src/Filter/Sanitize/FloatVal.zep.php b/src/Filter/Sanitize/FloatVal.php similarity index 100% rename from src/Filter/Sanitize/FloatVal.zep.php rename to src/Filter/Sanitize/FloatVal.php diff --git a/src/Filter/Sanitize/IntVal.zep.php b/src/Filter/Sanitize/IntVal.php similarity index 100% rename from src/Filter/Sanitize/IntVal.zep.php rename to src/Filter/Sanitize/IntVal.php diff --git a/src/Filter/Sanitize/Lower.zep.php b/src/Filter/Sanitize/Lower.php similarity index 100% rename from src/Filter/Sanitize/Lower.zep.php rename to src/Filter/Sanitize/Lower.php diff --git a/src/Filter/Sanitize/LowerFirst.zep.php b/src/Filter/Sanitize/LowerFirst.php similarity index 100% rename from src/Filter/Sanitize/LowerFirst.zep.php rename to src/Filter/Sanitize/LowerFirst.php diff --git a/src/Filter/Sanitize/Regex.zep.php b/src/Filter/Sanitize/Regex.php similarity index 100% rename from src/Filter/Sanitize/Regex.zep.php rename to src/Filter/Sanitize/Regex.php diff --git a/src/Filter/Sanitize/Remove.zep.php b/src/Filter/Sanitize/Remove.php similarity index 100% rename from src/Filter/Sanitize/Remove.zep.php rename to src/Filter/Sanitize/Remove.php diff --git a/src/Filter/Sanitize/Replace.zep.php b/src/Filter/Sanitize/Replace.php similarity index 100% rename from src/Filter/Sanitize/Replace.zep.php rename to src/Filter/Sanitize/Replace.php diff --git a/src/Filter/Sanitize/Special.zep.php b/src/Filter/Sanitize/Special.php similarity index 100% rename from src/Filter/Sanitize/Special.zep.php rename to src/Filter/Sanitize/Special.php diff --git a/src/Filter/Sanitize/SpecialFull.zep.php b/src/Filter/Sanitize/SpecialFull.php similarity index 100% rename from src/Filter/Sanitize/SpecialFull.zep.php rename to src/Filter/Sanitize/SpecialFull.php diff --git a/src/Filter/Sanitize/StringVal.zep.php b/src/Filter/Sanitize/StringVal.php similarity index 100% rename from src/Filter/Sanitize/StringVal.zep.php rename to src/Filter/Sanitize/StringVal.php diff --git a/src/Filter/Sanitize/Striptags.zep.php b/src/Filter/Sanitize/Striptags.php similarity index 100% rename from src/Filter/Sanitize/Striptags.zep.php rename to src/Filter/Sanitize/Striptags.php diff --git a/src/Filter/Sanitize/Trim.zep.php b/src/Filter/Sanitize/Trim.php similarity index 100% rename from src/Filter/Sanitize/Trim.zep.php rename to src/Filter/Sanitize/Trim.php diff --git a/src/Filter/Sanitize/Upper.zep.php b/src/Filter/Sanitize/Upper.php similarity index 100% rename from src/Filter/Sanitize/Upper.zep.php rename to src/Filter/Sanitize/Upper.php diff --git a/src/Filter/Sanitize/UpperFirst.zep.php b/src/Filter/Sanitize/UpperFirst.php similarity index 100% rename from src/Filter/Sanitize/UpperFirst.zep.php rename to src/Filter/Sanitize/UpperFirst.php diff --git a/src/Filter/Sanitize/UpperWords.zep.php b/src/Filter/Sanitize/UpperWords.php similarity index 100% rename from src/Filter/Sanitize/UpperWords.zep.php rename to src/Filter/Sanitize/UpperWords.php diff --git a/src/Filter/Sanitize/Url.zep.php b/src/Filter/Sanitize/Url.php similarity index 100% rename from src/Filter/Sanitize/Url.zep.php rename to src/Filter/Sanitize/Url.php diff --git a/src/Flash/AbstractFlash.zep.php b/src/Flash/AbstractFlash.php similarity index 100% rename from src/Flash/AbstractFlash.zep.php rename to src/Flash/AbstractFlash.php diff --git a/src/Flash/Direct.zep.php b/src/Flash/Direct.php similarity index 100% rename from src/Flash/Direct.zep.php rename to src/Flash/Direct.php diff --git a/src/Flash/Exception.zep.php b/src/Flash/Exception.php similarity index 100% rename from src/Flash/Exception.zep.php rename to src/Flash/Exception.php diff --git a/src/Flash/FlashInterface.zep.php b/src/Flash/FlashInterface.php similarity index 100% rename from src/Flash/FlashInterface.zep.php rename to src/Flash/FlashInterface.php diff --git a/src/Flash/Session.zep.php b/src/Flash/Session.php similarity index 100% rename from src/Flash/Session.zep.php rename to src/Flash/Session.php diff --git a/src/Forms/Element/AbstractElement.zep.php b/src/Forms/Element/AbstractElement.php similarity index 100% rename from src/Forms/Element/AbstractElement.zep.php rename to src/Forms/Element/AbstractElement.php diff --git a/src/Forms/Element/Check.zep.php b/src/Forms/Element/Check.php similarity index 100% rename from src/Forms/Element/Check.zep.php rename to src/Forms/Element/Check.php diff --git a/src/Forms/Element/Date.zep.php b/src/Forms/Element/Date.php similarity index 100% rename from src/Forms/Element/Date.zep.php rename to src/Forms/Element/Date.php diff --git a/src/Forms/Element/ElementInterface.zep.php b/src/Forms/Element/ElementInterface.php similarity index 100% rename from src/Forms/Element/ElementInterface.zep.php rename to src/Forms/Element/ElementInterface.php diff --git a/src/Forms/Element/Email.zep.php b/src/Forms/Element/Email.php similarity index 100% rename from src/Forms/Element/Email.zep.php rename to src/Forms/Element/Email.php diff --git a/src/Forms/Element/File.zep.php b/src/Forms/Element/File.php similarity index 100% rename from src/Forms/Element/File.zep.php rename to src/Forms/Element/File.php diff --git a/src/Forms/Element/Hidden.zep.php b/src/Forms/Element/Hidden.php similarity index 100% rename from src/Forms/Element/Hidden.zep.php rename to src/Forms/Element/Hidden.php diff --git a/src/Forms/Element/Numeric.zep.php b/src/Forms/Element/Numeric.php similarity index 100% rename from src/Forms/Element/Numeric.zep.php rename to src/Forms/Element/Numeric.php diff --git a/src/Forms/Element/Password.zep.php b/src/Forms/Element/Password.php similarity index 100% rename from src/Forms/Element/Password.zep.php rename to src/Forms/Element/Password.php diff --git a/src/Forms/Element/Radio.zep.php b/src/Forms/Element/Radio.php similarity index 100% rename from src/Forms/Element/Radio.zep.php rename to src/Forms/Element/Radio.php diff --git a/src/Forms/Element/Select.zep.php b/src/Forms/Element/Select.php similarity index 100% rename from src/Forms/Element/Select.zep.php rename to src/Forms/Element/Select.php diff --git a/src/Forms/Element/Submit.zep.php b/src/Forms/Element/Submit.php similarity index 100% rename from src/Forms/Element/Submit.zep.php rename to src/Forms/Element/Submit.php diff --git a/src/Forms/Element/Text.zep.php b/src/Forms/Element/Text.php similarity index 100% rename from src/Forms/Element/Text.zep.php rename to src/Forms/Element/Text.php diff --git a/src/Forms/Element/TextArea.zep.php b/src/Forms/Element/TextArea.php similarity index 100% rename from src/Forms/Element/TextArea.zep.php rename to src/Forms/Element/TextArea.php diff --git a/src/Forms/Exception.zep.php b/src/Forms/Exception.php similarity index 100% rename from src/Forms/Exception.zep.php rename to src/Forms/Exception.php diff --git a/src/Forms/Form.zep.php b/src/Forms/Form.php similarity index 100% rename from src/Forms/Form.zep.php rename to src/Forms/Form.php diff --git a/src/Forms/Manager.zep.php b/src/Forms/Manager.php similarity index 100% rename from src/Forms/Manager.zep.php rename to src/Forms/Manager.php diff --git a/src/Helper/Arr.zep.php b/src/Helper/Arr.php similarity index 100% rename from src/Helper/Arr.zep.php rename to src/Helper/Arr.php diff --git a/src/Helper/Base64.zep.php b/src/Helper/Base64.php similarity index 100% rename from src/Helper/Base64.zep.php rename to src/Helper/Base64.php diff --git a/src/Helper/Exception.zep.php b/src/Helper/Exception.php similarity index 100% rename from src/Helper/Exception.zep.php rename to src/Helper/Exception.php diff --git a/src/Helper/Fs.zep.php b/src/Helper/Fs.php similarity index 100% rename from src/Helper/Fs.zep.php rename to src/Helper/Fs.php diff --git a/src/Helper/Json.zep.php b/src/Helper/Json.php similarity index 100% rename from src/Helper/Json.zep.php rename to src/Helper/Json.php diff --git a/src/Helper/Number.zep.php b/src/Helper/Number.php similarity index 100% rename from src/Helper/Number.zep.php rename to src/Helper/Number.php diff --git a/src/Helper/Str.zep.php b/src/Helper/Str.php similarity index 100% rename from src/Helper/Str.zep.php rename to src/Helper/Str.php diff --git a/src/Html/Attributes.zep.php b/src/Html/Attributes.php similarity index 100% rename from src/Html/Attributes.zep.php rename to src/Html/Attributes.php diff --git a/src/Html/Attributes/AttributesInterface.zep.php b/src/Html/Attributes/AttributesInterface.php similarity index 100% rename from src/Html/Attributes/AttributesInterface.zep.php rename to src/Html/Attributes/AttributesInterface.php diff --git a/src/Html/Attributes/RenderInterface.zep.php b/src/Html/Attributes/RenderInterface.php similarity index 100% rename from src/Html/Attributes/RenderInterface.zep.php rename to src/Html/Attributes/RenderInterface.php diff --git a/src/Html/Breadcrumbs.zep.php b/src/Html/Breadcrumbs.php similarity index 100% rename from src/Html/Breadcrumbs.zep.php rename to src/Html/Breadcrumbs.php diff --git a/src/Html/Exception.zep.php b/src/Html/Exception.php similarity index 100% rename from src/Html/Exception.zep.php rename to src/Html/Exception.php diff --git a/src/Html/Helper/AbstractHelper.zep.php b/src/Html/Helper/AbstractHelper.php similarity index 100% rename from src/Html/Helper/AbstractHelper.zep.php rename to src/Html/Helper/AbstractHelper.php diff --git a/src/Html/Helper/AbstractList.zep.php b/src/Html/Helper/AbstractList.php similarity index 100% rename from src/Html/Helper/AbstractList.zep.php rename to src/Html/Helper/AbstractList.php diff --git a/src/Html/Helper/AbstractSeries.zep.php b/src/Html/Helper/AbstractSeries.php similarity index 100% rename from src/Html/Helper/AbstractSeries.zep.php rename to src/Html/Helper/AbstractSeries.php diff --git a/src/Html/Helper/Anchor.zep.php b/src/Html/Helper/Anchor.php similarity index 100% rename from src/Html/Helper/Anchor.zep.php rename to src/Html/Helper/Anchor.php diff --git a/src/Html/Helper/Base.zep.php b/src/Html/Helper/Base.php similarity index 100% rename from src/Html/Helper/Base.zep.php rename to src/Html/Helper/Base.php diff --git a/src/Html/Helper/Body.zep.php b/src/Html/Helper/Body.php similarity index 100% rename from src/Html/Helper/Body.zep.php rename to src/Html/Helper/Body.php diff --git a/src/Html/Helper/Button.zep.php b/src/Html/Helper/Button.php similarity index 100% rename from src/Html/Helper/Button.zep.php rename to src/Html/Helper/Button.php diff --git a/src/Html/Helper/Close.zep.php b/src/Html/Helper/Close.php similarity index 100% rename from src/Html/Helper/Close.zep.php rename to src/Html/Helper/Close.php diff --git a/src/Html/Helper/Element.zep.php b/src/Html/Helper/Element.php similarity index 100% rename from src/Html/Helper/Element.zep.php rename to src/Html/Helper/Element.php diff --git a/src/Html/Helper/Form.zep.php b/src/Html/Helper/Form.php similarity index 100% rename from src/Html/Helper/Form.zep.php rename to src/Html/Helper/Form.php diff --git a/src/Html/Helper/Img.zep.php b/src/Html/Helper/Img.php similarity index 100% rename from src/Html/Helper/Img.zep.php rename to src/Html/Helper/Img.php diff --git a/src/Html/Helper/Input/AbstractInput.zep.php b/src/Html/Helper/Input/AbstractInput.php similarity index 100% rename from src/Html/Helper/Input/AbstractInput.zep.php rename to src/Html/Helper/Input/AbstractInput.php diff --git a/src/Html/Helper/Input/Checkbox.zep.php b/src/Html/Helper/Input/Checkbox.php similarity index 100% rename from src/Html/Helper/Input/Checkbox.zep.php rename to src/Html/Helper/Input/Checkbox.php diff --git a/src/Html/Helper/Input/Color.zep.php b/src/Html/Helper/Input/Color.php similarity index 100% rename from src/Html/Helper/Input/Color.zep.php rename to src/Html/Helper/Input/Color.php diff --git a/src/Html/Helper/Input/Date.zep.php b/src/Html/Helper/Input/Date.php similarity index 100% rename from src/Html/Helper/Input/Date.zep.php rename to src/Html/Helper/Input/Date.php diff --git a/src/Html/Helper/Input/DateTime.zep.php b/src/Html/Helper/Input/DateTime.php similarity index 100% rename from src/Html/Helper/Input/DateTime.zep.php rename to src/Html/Helper/Input/DateTime.php diff --git a/src/Html/Helper/Input/DateTimeLocal.zep.php b/src/Html/Helper/Input/DateTimeLocal.php similarity index 100% rename from src/Html/Helper/Input/DateTimeLocal.zep.php rename to src/Html/Helper/Input/DateTimeLocal.php diff --git a/src/Html/Helper/Input/Email.zep.php b/src/Html/Helper/Input/Email.php similarity index 100% rename from src/Html/Helper/Input/Email.zep.php rename to src/Html/Helper/Input/Email.php diff --git a/src/Html/Helper/Input/File.zep.php b/src/Html/Helper/Input/File.php similarity index 100% rename from src/Html/Helper/Input/File.zep.php rename to src/Html/Helper/Input/File.php diff --git a/src/Html/Helper/Input/Hidden.zep.php b/src/Html/Helper/Input/Hidden.php similarity index 100% rename from src/Html/Helper/Input/Hidden.zep.php rename to src/Html/Helper/Input/Hidden.php diff --git a/src/Html/Helper/Input/Image.zep.php b/src/Html/Helper/Input/Image.php similarity index 100% rename from src/Html/Helper/Input/Image.zep.php rename to src/Html/Helper/Input/Image.php diff --git a/src/Html/Helper/Input/Input.zep.php b/src/Html/Helper/Input/Input.php similarity index 100% rename from src/Html/Helper/Input/Input.zep.php rename to src/Html/Helper/Input/Input.php diff --git a/src/Html/Helper/Input/Month.zep.php b/src/Html/Helper/Input/Month.php similarity index 100% rename from src/Html/Helper/Input/Month.zep.php rename to src/Html/Helper/Input/Month.php diff --git a/src/Html/Helper/Input/Numeric.zep.php b/src/Html/Helper/Input/Numeric.php similarity index 100% rename from src/Html/Helper/Input/Numeric.zep.php rename to src/Html/Helper/Input/Numeric.php diff --git a/src/Html/Helper/Input/Password.zep.php b/src/Html/Helper/Input/Password.php similarity index 100% rename from src/Html/Helper/Input/Password.zep.php rename to src/Html/Helper/Input/Password.php diff --git a/src/Html/Helper/Input/Radio.zep.php b/src/Html/Helper/Input/Radio.php similarity index 100% rename from src/Html/Helper/Input/Radio.zep.php rename to src/Html/Helper/Input/Radio.php diff --git a/src/Html/Helper/Input/Range.zep.php b/src/Html/Helper/Input/Range.php similarity index 100% rename from src/Html/Helper/Input/Range.zep.php rename to src/Html/Helper/Input/Range.php diff --git a/src/Html/Helper/Input/Search.zep.php b/src/Html/Helper/Input/Search.php similarity index 100% rename from src/Html/Helper/Input/Search.zep.php rename to src/Html/Helper/Input/Search.php diff --git a/src/Html/Helper/Input/Select.zep.php b/src/Html/Helper/Input/Select.php similarity index 100% rename from src/Html/Helper/Input/Select.zep.php rename to src/Html/Helper/Input/Select.php diff --git a/src/Html/Helper/Input/Submit.zep.php b/src/Html/Helper/Input/Submit.php similarity index 100% rename from src/Html/Helper/Input/Submit.zep.php rename to src/Html/Helper/Input/Submit.php diff --git a/src/Html/Helper/Input/Tel.zep.php b/src/Html/Helper/Input/Tel.php similarity index 100% rename from src/Html/Helper/Input/Tel.zep.php rename to src/Html/Helper/Input/Tel.php diff --git a/src/Html/Helper/Input/Text.zep.php b/src/Html/Helper/Input/Text.php similarity index 100% rename from src/Html/Helper/Input/Text.zep.php rename to src/Html/Helper/Input/Text.php diff --git a/src/Html/Helper/Input/Textarea.zep.php b/src/Html/Helper/Input/Textarea.php similarity index 100% rename from src/Html/Helper/Input/Textarea.zep.php rename to src/Html/Helper/Input/Textarea.php diff --git a/src/Html/Helper/Input/Time.zep.php b/src/Html/Helper/Input/Time.php similarity index 100% rename from src/Html/Helper/Input/Time.zep.php rename to src/Html/Helper/Input/Time.php diff --git a/src/Html/Helper/Input/Url.zep.php b/src/Html/Helper/Input/Url.php similarity index 100% rename from src/Html/Helper/Input/Url.zep.php rename to src/Html/Helper/Input/Url.php diff --git a/src/Html/Helper/Input/Week.zep.php b/src/Html/Helper/Input/Week.php similarity index 100% rename from src/Html/Helper/Input/Week.zep.php rename to src/Html/Helper/Input/Week.php diff --git a/src/Html/Helper/Label.zep.php b/src/Html/Helper/Label.php similarity index 100% rename from src/Html/Helper/Label.zep.php rename to src/Html/Helper/Label.php diff --git a/src/Html/Helper/Link.zep.php b/src/Html/Helper/Link.php similarity index 100% rename from src/Html/Helper/Link.zep.php rename to src/Html/Helper/Link.php diff --git a/src/Html/Helper/Meta.zep.php b/src/Html/Helper/Meta.php similarity index 100% rename from src/Html/Helper/Meta.zep.php rename to src/Html/Helper/Meta.php diff --git a/src/Html/Helper/Ol.zep.php b/src/Html/Helper/Ol.php similarity index 100% rename from src/Html/Helper/Ol.zep.php rename to src/Html/Helper/Ol.php diff --git a/src/Html/Helper/Script.zep.php b/src/Html/Helper/Script.php similarity index 100% rename from src/Html/Helper/Script.zep.php rename to src/Html/Helper/Script.php diff --git a/src/Html/Helper/Style.zep.php b/src/Html/Helper/Style.php similarity index 100% rename from src/Html/Helper/Style.zep.php rename to src/Html/Helper/Style.php diff --git a/src/Html/Helper/Title.zep.php b/src/Html/Helper/Title.php similarity index 100% rename from src/Html/Helper/Title.zep.php rename to src/Html/Helper/Title.php diff --git a/src/Html/Helper/Ul.zep.php b/src/Html/Helper/Ul.php similarity index 100% rename from src/Html/Helper/Ul.zep.php rename to src/Html/Helper/Ul.php diff --git a/src/Html/Link/EvolvableLink.zep.php b/src/Html/Link/EvolvableLink.php similarity index 100% rename from src/Html/Link/EvolvableLink.zep.php rename to src/Html/Link/EvolvableLink.php diff --git a/src/Html/Link/EvolvableLinkProvider.zep.php b/src/Html/Link/EvolvableLinkProvider.php similarity index 100% rename from src/Html/Link/EvolvableLinkProvider.zep.php rename to src/Html/Link/EvolvableLinkProvider.php diff --git a/src/Html/Link/Link.zep.php b/src/Html/Link/Link.php similarity index 100% rename from src/Html/Link/Link.zep.php rename to src/Html/Link/Link.php diff --git a/src/Html/Link/LinkProvider.zep.php b/src/Html/Link/LinkProvider.php similarity index 100% rename from src/Html/Link/LinkProvider.zep.php rename to src/Html/Link/LinkProvider.php diff --git a/src/Html/Link/Serializer/Header.zep.php b/src/Html/Link/Serializer/Header.php similarity index 100% rename from src/Html/Link/Serializer/Header.zep.php rename to src/Html/Link/Serializer/Header.php diff --git a/src/Html/Link/Serializer/SerializerInterface.zep.php b/src/Html/Link/Serializer/SerializerInterface.php similarity index 100% rename from src/Html/Link/Serializer/SerializerInterface.zep.php rename to src/Html/Link/Serializer/SerializerInterface.php diff --git a/src/Html/TagFactory.zep.php b/src/Html/TagFactory.php similarity index 100% rename from src/Html/TagFactory.zep.php rename to src/Html/TagFactory.php diff --git a/src/Http/Cookie.zep.php b/src/Http/Cookie.php similarity index 100% rename from src/Http/Cookie.zep.php rename to src/Http/Cookie.php diff --git a/src/Http/Cookie/CookieInterface.zep.php b/src/Http/Cookie/CookieInterface.php similarity index 100% rename from src/Http/Cookie/CookieInterface.zep.php rename to src/Http/Cookie/CookieInterface.php diff --git a/src/Http/Cookie/Exception.zep.php b/src/Http/Cookie/Exception.php similarity index 100% rename from src/Http/Cookie/Exception.zep.php rename to src/Http/Cookie/Exception.php diff --git a/src/Http/Message/AbstractCommon.zep.php b/src/Http/Message/AbstractCommon.php similarity index 100% rename from src/Http/Message/AbstractCommon.zep.php rename to src/Http/Message/AbstractCommon.php diff --git a/src/Http/Message/AbstractMessage.zep.php b/src/Http/Message/AbstractMessage.php similarity index 100% rename from src/Http/Message/AbstractMessage.zep.php rename to src/Http/Message/AbstractMessage.php diff --git a/src/Http/Message/AbstractRequest.zep.php b/src/Http/Message/AbstractRequest.php similarity index 100% rename from src/Http/Message/AbstractRequest.zep.php rename to src/Http/Message/AbstractRequest.php diff --git a/src/Http/Message/Exception/InvalidArgumentException.zep.php b/src/Http/Message/Exception/InvalidArgumentException.php similarity index 100% rename from src/Http/Message/Exception/InvalidArgumentException.zep.php rename to src/Http/Message/Exception/InvalidArgumentException.php diff --git a/src/Http/Message/Request.zep.php b/src/Http/Message/Request.php similarity index 100% rename from src/Http/Message/Request.zep.php rename to src/Http/Message/Request.php diff --git a/src/Http/Message/RequestFactory.zep.php b/src/Http/Message/RequestFactory.php similarity index 100% rename from src/Http/Message/RequestFactory.zep.php rename to src/Http/Message/RequestFactory.php diff --git a/src/Http/Message/Response.zep.php b/src/Http/Message/Response.php similarity index 100% rename from src/Http/Message/Response.zep.php rename to src/Http/Message/Response.php diff --git a/src/Http/Message/ResponseFactory.zep.php b/src/Http/Message/ResponseFactory.php similarity index 100% rename from src/Http/Message/ResponseFactory.zep.php rename to src/Http/Message/ResponseFactory.php diff --git a/src/Http/Message/ServerRequest.zep.php b/src/Http/Message/ServerRequest.php similarity index 100% rename from src/Http/Message/ServerRequest.zep.php rename to src/Http/Message/ServerRequest.php diff --git a/src/Http/Message/ServerRequestFactory.zep.php b/src/Http/Message/ServerRequestFactory.php similarity index 100% rename from src/Http/Message/ServerRequestFactory.zep.php rename to src/Http/Message/ServerRequestFactory.php diff --git a/src/Http/Message/Stream.zep.php b/src/Http/Message/Stream.php similarity index 100% rename from src/Http/Message/Stream.zep.php rename to src/Http/Message/Stream.php diff --git a/src/Http/Message/Stream/Input.zep.php b/src/Http/Message/Stream/Input.php similarity index 100% rename from src/Http/Message/Stream/Input.zep.php rename to src/Http/Message/Stream/Input.php diff --git a/src/Http/Message/Stream/Memory.zep.php b/src/Http/Message/Stream/Memory.php similarity index 100% rename from src/Http/Message/Stream/Memory.zep.php rename to src/Http/Message/Stream/Memory.php diff --git a/src/Http/Message/Stream/Temp.zep.php b/src/Http/Message/Stream/Temp.php similarity index 100% rename from src/Http/Message/Stream/Temp.zep.php rename to src/Http/Message/Stream/Temp.php diff --git a/src/Http/Message/StreamFactory.zep.php b/src/Http/Message/StreamFactory.php similarity index 100% rename from src/Http/Message/StreamFactory.zep.php rename to src/Http/Message/StreamFactory.php diff --git a/src/Http/Message/UploadedFile.zep.php b/src/Http/Message/UploadedFile.php similarity index 100% rename from src/Http/Message/UploadedFile.zep.php rename to src/Http/Message/UploadedFile.php diff --git a/src/Http/Message/UploadedFileFactory.zep.php b/src/Http/Message/UploadedFileFactory.php similarity index 100% rename from src/Http/Message/UploadedFileFactory.zep.php rename to src/Http/Message/UploadedFileFactory.php diff --git a/src/Http/Message/Uri.zep.php b/src/Http/Message/Uri.php similarity index 100% rename from src/Http/Message/Uri.zep.php rename to src/Http/Message/Uri.php diff --git a/src/Http/Message/UriFactory.zep.php b/src/Http/Message/UriFactory.php similarity index 100% rename from src/Http/Message/UriFactory.zep.php rename to src/Http/Message/UriFactory.php diff --git a/src/Http/Request.zep.php b/src/Http/Request.php similarity index 100% rename from src/Http/Request.zep.php rename to src/Http/Request.php diff --git a/src/Http/Request/Exception.zep.php b/src/Http/Request/Exception.php similarity index 100% rename from src/Http/Request/Exception.zep.php rename to src/Http/Request/Exception.php diff --git a/src/Http/Request/File.zep.php b/src/Http/Request/File.php similarity index 100% rename from src/Http/Request/File.zep.php rename to src/Http/Request/File.php diff --git a/src/Http/Request/FileInterface.zep.php b/src/Http/Request/FileInterface.php similarity index 100% rename from src/Http/Request/FileInterface.zep.php rename to src/Http/Request/FileInterface.php diff --git a/src/Http/RequestInterface.zep.php b/src/Http/RequestInterface.php similarity index 100% rename from src/Http/RequestInterface.zep.php rename to src/Http/RequestInterface.php diff --git a/src/Http/Response.zep.php b/src/Http/Response.php similarity index 100% rename from src/Http/Response.zep.php rename to src/Http/Response.php diff --git a/src/Http/Response/Cookies.zep.php b/src/Http/Response/Cookies.php similarity index 100% rename from src/Http/Response/Cookies.zep.php rename to src/Http/Response/Cookies.php diff --git a/src/Http/Response/CookiesInterface.zep.php b/src/Http/Response/CookiesInterface.php similarity index 100% rename from src/Http/Response/CookiesInterface.zep.php rename to src/Http/Response/CookiesInterface.php diff --git a/src/Http/Response/Exception.zep.php b/src/Http/Response/Exception.php similarity index 100% rename from src/Http/Response/Exception.zep.php rename to src/Http/Response/Exception.php diff --git a/src/Http/Response/Headers.zep.php b/src/Http/Response/Headers.php similarity index 100% rename from src/Http/Response/Headers.zep.php rename to src/Http/Response/Headers.php diff --git a/src/Http/Response/HeadersInterface.zep.php b/src/Http/Response/HeadersInterface.php similarity index 100% rename from src/Http/Response/HeadersInterface.zep.php rename to src/Http/Response/HeadersInterface.php diff --git a/src/Http/ResponseInterface.zep.php b/src/Http/ResponseInterface.php similarity index 100% rename from src/Http/ResponseInterface.zep.php rename to src/Http/ResponseInterface.php diff --git a/src/Http/Server/AbstractMiddleware.zep.php b/src/Http/Server/AbstractMiddleware.php similarity index 100% rename from src/Http/Server/AbstractMiddleware.zep.php rename to src/Http/Server/AbstractMiddleware.php diff --git a/src/Http/Server/AbstractRequestHandler.zep.php b/src/Http/Server/AbstractRequestHandler.php similarity index 100% rename from src/Http/Server/AbstractRequestHandler.zep.php rename to src/Http/Server/AbstractRequestHandler.php diff --git a/src/Image/Adapter/AbstractAdapter.zep.php b/src/Image/Adapter/AbstractAdapter.php similarity index 100% rename from src/Image/Adapter/AbstractAdapter.zep.php rename to src/Image/Adapter/AbstractAdapter.php diff --git a/src/Image/Adapter/AdapterInterface.zep.php b/src/Image/Adapter/AdapterInterface.php similarity index 100% rename from src/Image/Adapter/AdapterInterface.zep.php rename to src/Image/Adapter/AdapterInterface.php diff --git a/src/Image/Adapter/Gd.zep.php b/src/Image/Adapter/Gd.php similarity index 100% rename from src/Image/Adapter/Gd.zep.php rename to src/Image/Adapter/Gd.php diff --git a/src/Image/Adapter/Imagick.zep.php b/src/Image/Adapter/Imagick.php similarity index 100% rename from src/Image/Adapter/Imagick.zep.php rename to src/Image/Adapter/Imagick.php diff --git a/src/Image/Enum.zep.php b/src/Image/Enum.php similarity index 100% rename from src/Image/Enum.zep.php rename to src/Image/Enum.php diff --git a/src/Image/Exception.zep.php b/src/Image/Exception.php similarity index 100% rename from src/Image/Exception.zep.php rename to src/Image/Exception.php diff --git a/src/Image/ImageFactory.zep.php b/src/Image/ImageFactory.php similarity index 100% rename from src/Image/ImageFactory.zep.php rename to src/Image/ImageFactory.php diff --git a/src/Kernel.zep.php b/src/Kernel.php similarity index 100% rename from src/Kernel.zep.php rename to src/Kernel.php diff --git a/src/Loader.zep.php b/src/Loader.php similarity index 100% rename from src/Loader.zep.php rename to src/Loader.php diff --git a/src/Loader/Exception.zep.php b/src/Loader/Exception.php similarity index 100% rename from src/Loader/Exception.zep.php rename to src/Loader/Exception.php diff --git a/src/Logger.zep.php b/src/Logger.php similarity index 100% rename from src/Logger.zep.php rename to src/Logger.php diff --git a/src/Logger/Adapter/AbstractAdapter.zep.php b/src/Logger/Adapter/AbstractAdapter.php similarity index 100% rename from src/Logger/Adapter/AbstractAdapter.zep.php rename to src/Logger/Adapter/AbstractAdapter.php diff --git a/src/Logger/Adapter/AdapterInterface.zep.php b/src/Logger/Adapter/AdapterInterface.php similarity index 100% rename from src/Logger/Adapter/AdapterInterface.zep.php rename to src/Logger/Adapter/AdapterInterface.php diff --git a/src/Logger/Adapter/Noop.zep.php b/src/Logger/Adapter/Noop.php similarity index 100% rename from src/Logger/Adapter/Noop.zep.php rename to src/Logger/Adapter/Noop.php diff --git a/src/Logger/Adapter/Stream.zep.php b/src/Logger/Adapter/Stream.php similarity index 100% rename from src/Logger/Adapter/Stream.zep.php rename to src/Logger/Adapter/Stream.php diff --git a/src/Logger/Adapter/Syslog.zep.php b/src/Logger/Adapter/Syslog.php similarity index 100% rename from src/Logger/Adapter/Syslog.zep.php rename to src/Logger/Adapter/Syslog.php diff --git a/src/Logger/AdapterFactory.zep.php b/src/Logger/AdapterFactory.php similarity index 100% rename from src/Logger/AdapterFactory.zep.php rename to src/Logger/AdapterFactory.php diff --git a/src/Logger/Exception.zep.php b/src/Logger/Exception.php similarity index 100% rename from src/Logger/Exception.zep.php rename to src/Logger/Exception.php diff --git a/src/Logger/Formatter/AbstractFormatter.zep.php b/src/Logger/Formatter/AbstractFormatter.php similarity index 100% rename from src/Logger/Formatter/AbstractFormatter.zep.php rename to src/Logger/Formatter/AbstractFormatter.php diff --git a/src/Logger/Formatter/FormatterInterface.zep.php b/src/Logger/Formatter/FormatterInterface.php similarity index 100% rename from src/Logger/Formatter/FormatterInterface.zep.php rename to src/Logger/Formatter/FormatterInterface.php diff --git a/src/Logger/Formatter/Json.zep.php b/src/Logger/Formatter/Json.php similarity index 100% rename from src/Logger/Formatter/Json.zep.php rename to src/Logger/Formatter/Json.php diff --git a/src/Logger/Formatter/Line.zep.php b/src/Logger/Formatter/Line.php similarity index 100% rename from src/Logger/Formatter/Line.zep.php rename to src/Logger/Formatter/Line.php diff --git a/src/Logger/Item.zep.php b/src/Logger/Item.php similarity index 100% rename from src/Logger/Item.zep.php rename to src/Logger/Item.php diff --git a/src/Logger/LoggerFactory.zep.php b/src/Logger/LoggerFactory.php similarity index 100% rename from src/Logger/LoggerFactory.zep.php rename to src/Logger/LoggerFactory.php diff --git a/src/Messages/Exception.zep.php b/src/Messages/Exception.php similarity index 100% rename from src/Messages/Exception.zep.php rename to src/Messages/Exception.php diff --git a/src/Messages/Message.zep.php b/src/Messages/Message.php similarity index 100% rename from src/Messages/Message.zep.php rename to src/Messages/Message.php diff --git a/src/Messages/MessageInterface.zep.php b/src/Messages/MessageInterface.php similarity index 100% rename from src/Messages/MessageInterface.zep.php rename to src/Messages/MessageInterface.php diff --git a/src/Messages/Messages.zep.php b/src/Messages/Messages.php similarity index 100% rename from src/Messages/Messages.zep.php rename to src/Messages/Messages.php diff --git a/src/Mvc/Application.zep.php b/src/Mvc/Application.php similarity index 100% rename from src/Mvc/Application.zep.php rename to src/Mvc/Application.php diff --git a/src/Mvc/Application/Exception.zep.php b/src/Mvc/Application/Exception.php similarity index 100% rename from src/Mvc/Application/Exception.zep.php rename to src/Mvc/Application/Exception.php diff --git a/src/Mvc/Controller.zep.php b/src/Mvc/Controller.php similarity index 100% rename from src/Mvc/Controller.zep.php rename to src/Mvc/Controller.php diff --git a/src/Mvc/Controller/BindModelInterface.zep.php b/src/Mvc/Controller/BindModelInterface.php similarity index 100% rename from src/Mvc/Controller/BindModelInterface.zep.php rename to src/Mvc/Controller/BindModelInterface.php diff --git a/src/Mvc/ControllerInterface.zep.php b/src/Mvc/ControllerInterface.php similarity index 100% rename from src/Mvc/ControllerInterface.zep.php rename to src/Mvc/ControllerInterface.php diff --git a/src/Mvc/Dispatcher.zep.php b/src/Mvc/Dispatcher.php similarity index 100% rename from src/Mvc/Dispatcher.zep.php rename to src/Mvc/Dispatcher.php diff --git a/src/Mvc/Dispatcher/Exception.zep.php b/src/Mvc/Dispatcher/Exception.php similarity index 100% rename from src/Mvc/Dispatcher/Exception.zep.php rename to src/Mvc/Dispatcher/Exception.php diff --git a/src/Mvc/DispatcherInterface.zep.php b/src/Mvc/DispatcherInterface.php similarity index 100% rename from src/Mvc/DispatcherInterface.zep.php rename to src/Mvc/DispatcherInterface.php diff --git a/src/Mvc/EntityInterface.zep.php b/src/Mvc/EntityInterface.php similarity index 100% rename from src/Mvc/EntityInterface.zep.php rename to src/Mvc/EntityInterface.php diff --git a/src/Mvc/Micro.zep.php b/src/Mvc/Micro.php similarity index 100% rename from src/Mvc/Micro.zep.php rename to src/Mvc/Micro.php diff --git a/src/Mvc/Micro/Collection.zep.php b/src/Mvc/Micro/Collection.php similarity index 100% rename from src/Mvc/Micro/Collection.zep.php rename to src/Mvc/Micro/Collection.php diff --git a/src/Mvc/Micro/CollectionInterface.zep.php b/src/Mvc/Micro/CollectionInterface.php similarity index 100% rename from src/Mvc/Micro/CollectionInterface.zep.php rename to src/Mvc/Micro/CollectionInterface.php diff --git a/src/Mvc/Micro/Exception.zep.php b/src/Mvc/Micro/Exception.php similarity index 100% rename from src/Mvc/Micro/Exception.zep.php rename to src/Mvc/Micro/Exception.php diff --git a/src/Mvc/Micro/LazyLoader.zep.php b/src/Mvc/Micro/LazyLoader.php similarity index 100% rename from src/Mvc/Micro/LazyLoader.zep.php rename to src/Mvc/Micro/LazyLoader.php diff --git a/src/Mvc/Micro/MiddlewareInterface.zep.php b/src/Mvc/Micro/MiddlewareInterface.php similarity index 100% rename from src/Mvc/Micro/MiddlewareInterface.zep.php rename to src/Mvc/Micro/MiddlewareInterface.php diff --git a/src/Mvc/Model.zep.php b/src/Mvc/Model.php similarity index 100% rename from src/Mvc/Model.zep.php rename to src/Mvc/Model.php diff --git a/src/Mvc/Model/Behavior.zep.php b/src/Mvc/Model/Behavior.php similarity index 100% rename from src/Mvc/Model/Behavior.zep.php rename to src/Mvc/Model/Behavior.php diff --git a/src/Mvc/Model/Behavior/SoftDelete.zep.php b/src/Mvc/Model/Behavior/SoftDelete.php similarity index 100% rename from src/Mvc/Model/Behavior/SoftDelete.zep.php rename to src/Mvc/Model/Behavior/SoftDelete.php diff --git a/src/Mvc/Model/Behavior/Timestampable.zep.php b/src/Mvc/Model/Behavior/Timestampable.php similarity index 100% rename from src/Mvc/Model/Behavior/Timestampable.zep.php rename to src/Mvc/Model/Behavior/Timestampable.php diff --git a/src/Mvc/Model/BehaviorInterface.zep.php b/src/Mvc/Model/BehaviorInterface.php similarity index 100% rename from src/Mvc/Model/BehaviorInterface.zep.php rename to src/Mvc/Model/BehaviorInterface.php diff --git a/src/Mvc/Model/Binder.zep.php b/src/Mvc/Model/Binder.php similarity index 100% rename from src/Mvc/Model/Binder.zep.php rename to src/Mvc/Model/Binder.php diff --git a/src/Mvc/Model/Binder/BindableInterface.zep.php b/src/Mvc/Model/Binder/BindableInterface.php similarity index 100% rename from src/Mvc/Model/Binder/BindableInterface.zep.php rename to src/Mvc/Model/Binder/BindableInterface.php diff --git a/src/Mvc/Model/BinderInterface.zep.php b/src/Mvc/Model/BinderInterface.php similarity index 100% rename from src/Mvc/Model/BinderInterface.zep.php rename to src/Mvc/Model/BinderInterface.php diff --git a/src/Mvc/Model/Criteria.zep.php b/src/Mvc/Model/Criteria.php similarity index 100% rename from src/Mvc/Model/Criteria.zep.php rename to src/Mvc/Model/Criteria.php diff --git a/src/Mvc/Model/CriteriaInterface.zep.php b/src/Mvc/Model/CriteriaInterface.php similarity index 100% rename from src/Mvc/Model/CriteriaInterface.zep.php rename to src/Mvc/Model/CriteriaInterface.php diff --git a/src/Mvc/Model/Exception.zep.php b/src/Mvc/Model/Exception.php similarity index 100% rename from src/Mvc/Model/Exception.zep.php rename to src/Mvc/Model/Exception.php diff --git a/src/Mvc/Model/Manager.zep.php b/src/Mvc/Model/Manager.php similarity index 100% rename from src/Mvc/Model/Manager.zep.php rename to src/Mvc/Model/Manager.php diff --git a/src/Mvc/Model/ManagerInterface.zep.php b/src/Mvc/Model/ManagerInterface.php similarity index 100% rename from src/Mvc/Model/ManagerInterface.zep.php rename to src/Mvc/Model/ManagerInterface.php diff --git a/src/Mvc/Model/MetaData.zep.php b/src/Mvc/Model/MetaData.php similarity index 100% rename from src/Mvc/Model/MetaData.zep.php rename to src/Mvc/Model/MetaData.php diff --git a/src/Mvc/Model/MetaData/Apcu.zep.php b/src/Mvc/Model/MetaData/Apcu.php similarity index 100% rename from src/Mvc/Model/MetaData/Apcu.zep.php rename to src/Mvc/Model/MetaData/Apcu.php diff --git a/src/Mvc/Model/MetaData/Libmemcached.zep.php b/src/Mvc/Model/MetaData/Libmemcached.php similarity index 100% rename from src/Mvc/Model/MetaData/Libmemcached.zep.php rename to src/Mvc/Model/MetaData/Libmemcached.php diff --git a/src/Mvc/Model/MetaData/Memory.zep.php b/src/Mvc/Model/MetaData/Memory.php similarity index 100% rename from src/Mvc/Model/MetaData/Memory.zep.php rename to src/Mvc/Model/MetaData/Memory.php diff --git a/src/Mvc/Model/MetaData/Redis.zep.php b/src/Mvc/Model/MetaData/Redis.php similarity index 100% rename from src/Mvc/Model/MetaData/Redis.zep.php rename to src/Mvc/Model/MetaData/Redis.php diff --git a/src/Mvc/Model/MetaData/Strategy/Annotations.zep.php b/src/Mvc/Model/MetaData/Strategy/Annotations.php similarity index 100% rename from src/Mvc/Model/MetaData/Strategy/Annotations.zep.php rename to src/Mvc/Model/MetaData/Strategy/Annotations.php diff --git a/src/Mvc/Model/MetaData/Strategy/Introspection.zep.php b/src/Mvc/Model/MetaData/Strategy/Introspection.php similarity index 100% rename from src/Mvc/Model/MetaData/Strategy/Introspection.zep.php rename to src/Mvc/Model/MetaData/Strategy/Introspection.php diff --git a/src/Mvc/Model/MetaData/Strategy/StrategyInterface.zep.php b/src/Mvc/Model/MetaData/Strategy/StrategyInterface.php similarity index 100% rename from src/Mvc/Model/MetaData/Strategy/StrategyInterface.zep.php rename to src/Mvc/Model/MetaData/Strategy/StrategyInterface.php diff --git a/src/Mvc/Model/MetaData/Stream.zep.php b/src/Mvc/Model/MetaData/Stream.php similarity index 100% rename from src/Mvc/Model/MetaData/Stream.zep.php rename to src/Mvc/Model/MetaData/Stream.php diff --git a/src/Mvc/Model/MetaDataInterface.zep.php b/src/Mvc/Model/MetaDataInterface.php similarity index 100% rename from src/Mvc/Model/MetaDataInterface.zep.php rename to src/Mvc/Model/MetaDataInterface.php diff --git a/src/Mvc/Model/Query.zep.php b/src/Mvc/Model/Query.php similarity index 100% rename from src/Mvc/Model/Query.zep.php rename to src/Mvc/Model/Query.php diff --git a/src/Mvc/Model/Query/Builder.zep.php b/src/Mvc/Model/Query/Builder.php similarity index 100% rename from src/Mvc/Model/Query/Builder.zep.php rename to src/Mvc/Model/Query/Builder.php diff --git a/src/Mvc/Model/Query/BuilderInterface.zep.php b/src/Mvc/Model/Query/BuilderInterface.php similarity index 100% rename from src/Mvc/Model/Query/BuilderInterface.zep.php rename to src/Mvc/Model/Query/BuilderInterface.php diff --git a/src/Mvc/Model/Query/Lang.zep.php b/src/Mvc/Model/Query/Lang.php similarity index 100% rename from src/Mvc/Model/Query/Lang.zep.php rename to src/Mvc/Model/Query/Lang.php diff --git a/src/Mvc/Model/Query/Status.zep.php b/src/Mvc/Model/Query/Status.php similarity index 100% rename from src/Mvc/Model/Query/Status.zep.php rename to src/Mvc/Model/Query/Status.php diff --git a/src/Mvc/Model/Query/StatusInterface.zep.php b/src/Mvc/Model/Query/StatusInterface.php similarity index 100% rename from src/Mvc/Model/Query/StatusInterface.zep.php rename to src/Mvc/Model/Query/StatusInterface.php diff --git a/src/Mvc/Model/QueryInterface.zep.php b/src/Mvc/Model/QueryInterface.php similarity index 100% rename from src/Mvc/Model/QueryInterface.zep.php rename to src/Mvc/Model/QueryInterface.php diff --git a/src/Mvc/Model/Relation.zep.php b/src/Mvc/Model/Relation.php similarity index 100% rename from src/Mvc/Model/Relation.zep.php rename to src/Mvc/Model/Relation.php diff --git a/src/Mvc/Model/RelationInterface.zep.php b/src/Mvc/Model/RelationInterface.php similarity index 100% rename from src/Mvc/Model/RelationInterface.zep.php rename to src/Mvc/Model/RelationInterface.php diff --git a/src/Mvc/Model/ResultInterface.zep.php b/src/Mvc/Model/ResultInterface.php similarity index 100% rename from src/Mvc/Model/ResultInterface.zep.php rename to src/Mvc/Model/ResultInterface.php diff --git a/src/Mvc/Model/Resultset.zep.php b/src/Mvc/Model/Resultset.php similarity index 100% rename from src/Mvc/Model/Resultset.zep.php rename to src/Mvc/Model/Resultset.php diff --git a/src/Mvc/Model/Resultset/Complex.zep.php b/src/Mvc/Model/Resultset/Complex.php similarity index 100% rename from src/Mvc/Model/Resultset/Complex.zep.php rename to src/Mvc/Model/Resultset/Complex.php diff --git a/src/Mvc/Model/Resultset/Simple.zep.php b/src/Mvc/Model/Resultset/Simple.php similarity index 100% rename from src/Mvc/Model/Resultset/Simple.zep.php rename to src/Mvc/Model/Resultset/Simple.php diff --git a/src/Mvc/Model/ResultsetInterface.zep.php b/src/Mvc/Model/ResultsetInterface.php similarity index 100% rename from src/Mvc/Model/ResultsetInterface.zep.php rename to src/Mvc/Model/ResultsetInterface.php diff --git a/src/Mvc/Model/Row.zep.php b/src/Mvc/Model/Row.php similarity index 100% rename from src/Mvc/Model/Row.zep.php rename to src/Mvc/Model/Row.php diff --git a/src/Mvc/Model/Transaction.zep.php b/src/Mvc/Model/Transaction.php similarity index 100% rename from src/Mvc/Model/Transaction.zep.php rename to src/Mvc/Model/Transaction.php diff --git a/src/Mvc/Model/Transaction/Exception.zep.php b/src/Mvc/Model/Transaction/Exception.php similarity index 100% rename from src/Mvc/Model/Transaction/Exception.zep.php rename to src/Mvc/Model/Transaction/Exception.php diff --git a/src/Mvc/Model/Transaction/Failed.zep.php b/src/Mvc/Model/Transaction/Failed.php similarity index 100% rename from src/Mvc/Model/Transaction/Failed.zep.php rename to src/Mvc/Model/Transaction/Failed.php diff --git a/src/Mvc/Model/Transaction/Manager.zep.php b/src/Mvc/Model/Transaction/Manager.php similarity index 100% rename from src/Mvc/Model/Transaction/Manager.zep.php rename to src/Mvc/Model/Transaction/Manager.php diff --git a/src/Mvc/Model/Transaction/ManagerInterface.zep.php b/src/Mvc/Model/Transaction/ManagerInterface.php similarity index 100% rename from src/Mvc/Model/Transaction/ManagerInterface.zep.php rename to src/Mvc/Model/Transaction/ManagerInterface.php diff --git a/src/Mvc/Model/TransactionInterface.zep.php b/src/Mvc/Model/TransactionInterface.php similarity index 100% rename from src/Mvc/Model/TransactionInterface.zep.php rename to src/Mvc/Model/TransactionInterface.php diff --git a/src/Mvc/Model/ValidationFailed.zep.php b/src/Mvc/Model/ValidationFailed.php similarity index 100% rename from src/Mvc/Model/ValidationFailed.zep.php rename to src/Mvc/Model/ValidationFailed.php diff --git a/src/Mvc/ModelInterface.zep.php b/src/Mvc/ModelInterface.php similarity index 100% rename from src/Mvc/ModelInterface.zep.php rename to src/Mvc/ModelInterface.php diff --git a/src/Mvc/ModuleDefinitionInterface.zep.php b/src/Mvc/ModuleDefinitionInterface.php similarity index 100% rename from src/Mvc/ModuleDefinitionInterface.zep.php rename to src/Mvc/ModuleDefinitionInterface.php diff --git a/src/Mvc/Router.zep.php b/src/Mvc/Router.php similarity index 100% rename from src/Mvc/Router.zep.php rename to src/Mvc/Router.php diff --git a/src/Mvc/Router/Annotations.zep.php b/src/Mvc/Router/Annotations.php similarity index 100% rename from src/Mvc/Router/Annotations.zep.php rename to src/Mvc/Router/Annotations.php diff --git a/src/Mvc/Router/Exception.zep.php b/src/Mvc/Router/Exception.php similarity index 100% rename from src/Mvc/Router/Exception.zep.php rename to src/Mvc/Router/Exception.php diff --git a/src/Mvc/Router/Group.zep.php b/src/Mvc/Router/Group.php similarity index 100% rename from src/Mvc/Router/Group.zep.php rename to src/Mvc/Router/Group.php diff --git a/src/Mvc/Router/GroupInterface.zep.php b/src/Mvc/Router/GroupInterface.php similarity index 100% rename from src/Mvc/Router/GroupInterface.zep.php rename to src/Mvc/Router/GroupInterface.php diff --git a/src/Mvc/Router/Route.zep.php b/src/Mvc/Router/Route.php similarity index 100% rename from src/Mvc/Router/Route.zep.php rename to src/Mvc/Router/Route.php diff --git a/src/Mvc/Router/RouteInterface.zep.php b/src/Mvc/Router/RouteInterface.php similarity index 100% rename from src/Mvc/Router/RouteInterface.zep.php rename to src/Mvc/Router/RouteInterface.php diff --git a/src/Mvc/RouterInterface.zep.php b/src/Mvc/RouterInterface.php similarity index 100% rename from src/Mvc/RouterInterface.zep.php rename to src/Mvc/RouterInterface.php diff --git a/src/Mvc/View.zep.php b/src/Mvc/View.php similarity index 100% rename from src/Mvc/View.zep.php rename to src/Mvc/View.php diff --git a/src/Mvc/View/Engine/AbstractEngine.zep.php b/src/Mvc/View/Engine/AbstractEngine.php similarity index 100% rename from src/Mvc/View/Engine/AbstractEngine.zep.php rename to src/Mvc/View/Engine/AbstractEngine.php diff --git a/src/Mvc/View/Engine/EngineInterface.zep.php b/src/Mvc/View/Engine/EngineInterface.php similarity index 100% rename from src/Mvc/View/Engine/EngineInterface.zep.php rename to src/Mvc/View/Engine/EngineInterface.php diff --git a/src/Mvc/View/Engine/Php.zep.php b/src/Mvc/View/Engine/Php.php similarity index 100% rename from src/Mvc/View/Engine/Php.zep.php rename to src/Mvc/View/Engine/Php.php diff --git a/src/Mvc/View/Engine/Volt.zep.php b/src/Mvc/View/Engine/Volt.php similarity index 100% rename from src/Mvc/View/Engine/Volt.zep.php rename to src/Mvc/View/Engine/Volt.php diff --git a/src/Mvc/View/Engine/Volt/Compiler.zep.php b/src/Mvc/View/Engine/Volt/Compiler.php similarity index 100% rename from src/Mvc/View/Engine/Volt/Compiler.zep.php rename to src/Mvc/View/Engine/Volt/Compiler.php diff --git a/src/Mvc/View/Engine/Volt/Exception.zep.php b/src/Mvc/View/Engine/Volt/Exception.php similarity index 100% rename from src/Mvc/View/Engine/Volt/Exception.zep.php rename to src/Mvc/View/Engine/Volt/Exception.php diff --git a/src/Mvc/View/Exception.zep.php b/src/Mvc/View/Exception.php similarity index 100% rename from src/Mvc/View/Exception.zep.php rename to src/Mvc/View/Exception.php diff --git a/src/Mvc/View/Simple.zep.php b/src/Mvc/View/Simple.php similarity index 100% rename from src/Mvc/View/Simple.zep.php rename to src/Mvc/View/Simple.php diff --git a/src/Mvc/ViewBaseInterface.zep.php b/src/Mvc/ViewBaseInterface.php similarity index 100% rename from src/Mvc/ViewBaseInterface.zep.php rename to src/Mvc/ViewBaseInterface.php diff --git a/src/Mvc/ViewInterface.zep.php b/src/Mvc/ViewInterface.php similarity index 100% rename from src/Mvc/ViewInterface.zep.php rename to src/Mvc/ViewInterface.php diff --git a/src/Paginator/Adapter/AbstractAdapter.zep.php b/src/Paginator/Adapter/AbstractAdapter.php similarity index 100% rename from src/Paginator/Adapter/AbstractAdapter.zep.php rename to src/Paginator/Adapter/AbstractAdapter.php diff --git a/src/Paginator/Adapter/AdapterInterface.zep.php b/src/Paginator/Adapter/AdapterInterface.php similarity index 100% rename from src/Paginator/Adapter/AdapterInterface.zep.php rename to src/Paginator/Adapter/AdapterInterface.php diff --git a/src/Paginator/Adapter/Model.zep.php b/src/Paginator/Adapter/Model.php similarity index 100% rename from src/Paginator/Adapter/Model.zep.php rename to src/Paginator/Adapter/Model.php diff --git a/src/Paginator/Adapter/NativeArray.zep.php b/src/Paginator/Adapter/NativeArray.php similarity index 100% rename from src/Paginator/Adapter/NativeArray.zep.php rename to src/Paginator/Adapter/NativeArray.php diff --git a/src/Paginator/Adapter/QueryBuilder.zep.php b/src/Paginator/Adapter/QueryBuilder.php similarity index 100% rename from src/Paginator/Adapter/QueryBuilder.zep.php rename to src/Paginator/Adapter/QueryBuilder.php diff --git a/src/Paginator/Exception.zep.php b/src/Paginator/Exception.php similarity index 100% rename from src/Paginator/Exception.zep.php rename to src/Paginator/Exception.php diff --git a/src/Paginator/PaginatorFactory.zep.php b/src/Paginator/PaginatorFactory.php similarity index 100% rename from src/Paginator/PaginatorFactory.zep.php rename to src/Paginator/PaginatorFactory.php diff --git a/src/Paginator/Repository.zep.php b/src/Paginator/Repository.php similarity index 100% rename from src/Paginator/Repository.zep.php rename to src/Paginator/Repository.php diff --git a/src/Paginator/RepositoryInterface.zep.php b/src/Paginator/RepositoryInterface.php similarity index 100% rename from src/Paginator/RepositoryInterface.zep.php rename to src/Paginator/RepositoryInterface.php diff --git a/src/Registry.zep.php b/src/Registry.php similarity index 100% rename from src/Registry.zep.php rename to src/Registry.php diff --git a/src/Security.zep.php b/src/Security.php similarity index 100% rename from src/Security.zep.php rename to src/Security.php diff --git a/src/Security/Exception.zep.php b/src/Security/Exception.php similarity index 100% rename from src/Security/Exception.zep.php rename to src/Security/Exception.php diff --git a/src/Security/JWT/Builder.zep.php b/src/Security/JWT/Builder.php similarity index 100% rename from src/Security/JWT/Builder.zep.php rename to src/Security/JWT/Builder.php diff --git a/src/Security/JWT/Exceptions/UnsupportedAlgorithmException.zep.php b/src/Security/JWT/Exceptions/UnsupportedAlgorithmException.php similarity index 100% rename from src/Security/JWT/Exceptions/UnsupportedAlgorithmException.zep.php rename to src/Security/JWT/Exceptions/UnsupportedAlgorithmException.php diff --git a/src/Security/JWT/Exceptions/ValidatorException.zep.php b/src/Security/JWT/Exceptions/ValidatorException.php similarity index 100% rename from src/Security/JWT/Exceptions/ValidatorException.zep.php rename to src/Security/JWT/Exceptions/ValidatorException.php diff --git a/src/Security/JWT/Signer/AbstractSigner.zep.php b/src/Security/JWT/Signer/AbstractSigner.php similarity index 100% rename from src/Security/JWT/Signer/AbstractSigner.zep.php rename to src/Security/JWT/Signer/AbstractSigner.php diff --git a/src/Security/JWT/Signer/Hmac.zep.php b/src/Security/JWT/Signer/Hmac.php similarity index 100% rename from src/Security/JWT/Signer/Hmac.zep.php rename to src/Security/JWT/Signer/Hmac.php diff --git a/src/Security/JWT/Signer/None.zep.php b/src/Security/JWT/Signer/None.php similarity index 100% rename from src/Security/JWT/Signer/None.zep.php rename to src/Security/JWT/Signer/None.php diff --git a/src/Security/JWT/Signer/SignerInterface.zep.php b/src/Security/JWT/Signer/SignerInterface.php similarity index 100% rename from src/Security/JWT/Signer/SignerInterface.zep.php rename to src/Security/JWT/Signer/SignerInterface.php diff --git a/src/Security/JWT/Token/AbstractItem.zep.php b/src/Security/JWT/Token/AbstractItem.php similarity index 100% rename from src/Security/JWT/Token/AbstractItem.zep.php rename to src/Security/JWT/Token/AbstractItem.php diff --git a/src/Security/JWT/Token/Enum.zep.php b/src/Security/JWT/Token/Enum.php similarity index 100% rename from src/Security/JWT/Token/Enum.zep.php rename to src/Security/JWT/Token/Enum.php diff --git a/src/Security/JWT/Token/Item.zep.php b/src/Security/JWT/Token/Item.php similarity index 100% rename from src/Security/JWT/Token/Item.zep.php rename to src/Security/JWT/Token/Item.php diff --git a/src/Security/JWT/Token/Parser.zep.php b/src/Security/JWT/Token/Parser.php similarity index 100% rename from src/Security/JWT/Token/Parser.zep.php rename to src/Security/JWT/Token/Parser.php diff --git a/src/Security/JWT/Token/Signature.zep.php b/src/Security/JWT/Token/Signature.php similarity index 100% rename from src/Security/JWT/Token/Signature.zep.php rename to src/Security/JWT/Token/Signature.php diff --git a/src/Security/JWT/Token/Token.zep.php b/src/Security/JWT/Token/Token.php similarity index 100% rename from src/Security/JWT/Token/Token.zep.php rename to src/Security/JWT/Token/Token.php diff --git a/src/Security/JWT/Validator.zep.php b/src/Security/JWT/Validator.php similarity index 100% rename from src/Security/JWT/Validator.zep.php rename to src/Security/JWT/Validator.php diff --git a/src/Security/Random.zep.php b/src/Security/Random.php similarity index 100% rename from src/Security/Random.zep.php rename to src/Security/Random.php diff --git a/src/Session/Adapter/AbstractAdapter.zep.php b/src/Session/Adapter/AbstractAdapter.php similarity index 100% rename from src/Session/Adapter/AbstractAdapter.zep.php rename to src/Session/Adapter/AbstractAdapter.php diff --git a/src/Session/Adapter/Libmemcached.zep.php b/src/Session/Adapter/Libmemcached.php similarity index 100% rename from src/Session/Adapter/Libmemcached.zep.php rename to src/Session/Adapter/Libmemcached.php diff --git a/src/Session/Adapter/Noop.zep.php b/src/Session/Adapter/Noop.php similarity index 100% rename from src/Session/Adapter/Noop.zep.php rename to src/Session/Adapter/Noop.php diff --git a/src/Session/Adapter/Redis.zep.php b/src/Session/Adapter/Redis.php similarity index 100% rename from src/Session/Adapter/Redis.zep.php rename to src/Session/Adapter/Redis.php diff --git a/src/Session/Adapter/Stream.zep.php b/src/Session/Adapter/Stream.php similarity index 100% rename from src/Session/Adapter/Stream.zep.php rename to src/Session/Adapter/Stream.php diff --git a/src/Session/Bag.zep.php b/src/Session/Bag.php similarity index 100% rename from src/Session/Bag.zep.php rename to src/Session/Bag.php diff --git a/src/Session/Exception.zep.php b/src/Session/Exception.php similarity index 100% rename from src/Session/Exception.zep.php rename to src/Session/Exception.php diff --git a/src/Session/Manager.zep.php b/src/Session/Manager.php similarity index 100% rename from src/Session/Manager.zep.php rename to src/Session/Manager.php diff --git a/src/Session/ManagerInterface.zep.php b/src/Session/ManagerInterface.php similarity index 100% rename from src/Session/ManagerInterface.zep.php rename to src/Session/ManagerInterface.php diff --git a/src/Storage/Adapter/AbstractAdapter.zep.php b/src/Storage/Adapter/AbstractAdapter.php similarity index 100% rename from src/Storage/Adapter/AbstractAdapter.zep.php rename to src/Storage/Adapter/AbstractAdapter.php diff --git a/src/Storage/Adapter/AdapterInterface.zep.php b/src/Storage/Adapter/AdapterInterface.php similarity index 100% rename from src/Storage/Adapter/AdapterInterface.zep.php rename to src/Storage/Adapter/AdapterInterface.php diff --git a/src/Storage/Adapter/Apcu.zep.php b/src/Storage/Adapter/Apcu.php similarity index 100% rename from src/Storage/Adapter/Apcu.zep.php rename to src/Storage/Adapter/Apcu.php diff --git a/src/Storage/Adapter/Libmemcached.zep.php b/src/Storage/Adapter/Libmemcached.php similarity index 100% rename from src/Storage/Adapter/Libmemcached.zep.php rename to src/Storage/Adapter/Libmemcached.php diff --git a/src/Storage/Adapter/Memory.zep.php b/src/Storage/Adapter/Memory.php similarity index 100% rename from src/Storage/Adapter/Memory.zep.php rename to src/Storage/Adapter/Memory.php diff --git a/src/Storage/Adapter/Redis.zep.php b/src/Storage/Adapter/Redis.php similarity index 100% rename from src/Storage/Adapter/Redis.zep.php rename to src/Storage/Adapter/Redis.php diff --git a/src/Storage/Adapter/Stream.zep.php b/src/Storage/Adapter/Stream.php similarity index 100% rename from src/Storage/Adapter/Stream.zep.php rename to src/Storage/Adapter/Stream.php diff --git a/src/Storage/AdapterFactory.zep.php b/src/Storage/AdapterFactory.php similarity index 100% rename from src/Storage/AdapterFactory.zep.php rename to src/Storage/AdapterFactory.php diff --git a/src/Storage/Exception.zep.php b/src/Storage/Exception.php similarity index 100% rename from src/Storage/Exception.zep.php rename to src/Storage/Exception.php diff --git a/src/Storage/Serializer/AbstractSerializer.zep.php b/src/Storage/Serializer/AbstractSerializer.php similarity index 100% rename from src/Storage/Serializer/AbstractSerializer.zep.php rename to src/Storage/Serializer/AbstractSerializer.php diff --git a/src/Storage/Serializer/Base64.zep.php b/src/Storage/Serializer/Base64.php similarity index 100% rename from src/Storage/Serializer/Base64.zep.php rename to src/Storage/Serializer/Base64.php diff --git a/src/Storage/Serializer/Igbinary.zep.php b/src/Storage/Serializer/Igbinary.php similarity index 100% rename from src/Storage/Serializer/Igbinary.zep.php rename to src/Storage/Serializer/Igbinary.php diff --git a/src/Storage/Serializer/Json.zep.php b/src/Storage/Serializer/Json.php similarity index 100% rename from src/Storage/Serializer/Json.zep.php rename to src/Storage/Serializer/Json.php diff --git a/src/Storage/Serializer/Msgpack.zep.php b/src/Storage/Serializer/Msgpack.php similarity index 100% rename from src/Storage/Serializer/Msgpack.zep.php rename to src/Storage/Serializer/Msgpack.php diff --git a/src/Storage/Serializer/None.zep.php b/src/Storage/Serializer/None.php similarity index 100% rename from src/Storage/Serializer/None.zep.php rename to src/Storage/Serializer/None.php diff --git a/src/Storage/Serializer/Php.zep.php b/src/Storage/Serializer/Php.php similarity index 100% rename from src/Storage/Serializer/Php.zep.php rename to src/Storage/Serializer/Php.php diff --git a/src/Storage/Serializer/SerializerInterface.zep.php b/src/Storage/Serializer/SerializerInterface.php similarity index 100% rename from src/Storage/Serializer/SerializerInterface.zep.php rename to src/Storage/Serializer/SerializerInterface.php diff --git a/src/Storage/SerializerFactory.zep.php b/src/Storage/SerializerFactory.php similarity index 100% rename from src/Storage/SerializerFactory.zep.php rename to src/Storage/SerializerFactory.php diff --git a/src/Support/Debug.zep.php b/src/Support/Debug.php similarity index 100% rename from src/Support/Debug.zep.php rename to src/Support/Debug.php diff --git a/src/Support/Debug/Dump.zep.php b/src/Support/Debug/Dump.php similarity index 100% rename from src/Support/Debug/Dump.zep.php rename to src/Support/Debug/Dump.php diff --git a/src/Support/Debug/Exception.zep.php b/src/Support/Debug/Exception.php similarity index 100% rename from src/Support/Debug/Exception.zep.php rename to src/Support/Debug/Exception.php diff --git a/src/Support/Exception.zep.php b/src/Support/Exception.php similarity index 100% rename from src/Support/Exception.zep.php rename to src/Support/Exception.php diff --git a/src/Support/Helper/Str/Interpolate.zep.php b/src/Support/Helper/Str/Interpolate.php similarity index 100% rename from src/Support/Helper/Str/Interpolate.zep.php rename to src/Support/Helper/Str/Interpolate.php diff --git a/src/Support/HelperFactory.zep.php b/src/Support/HelperFactory.php similarity index 100% rename from src/Support/HelperFactory.zep.php rename to src/Support/HelperFactory.php diff --git a/src/Support/Version.zep.php b/src/Support/Version.php similarity index 100% rename from src/Support/Version.zep.php rename to src/Support/Version.php diff --git a/src/Tag.zep.php b/src/Tag.php similarity index 100% rename from src/Tag.zep.php rename to src/Tag.php diff --git a/src/Tag/Exception.zep.php b/src/Tag/Exception.php similarity index 100% rename from src/Tag/Exception.zep.php rename to src/Tag/Exception.php diff --git a/src/Tag/Select.zep.php b/src/Tag/Select.php similarity index 100% rename from src/Tag/Select.zep.php rename to src/Tag/Select.php diff --git a/src/Text.zep.php b/src/Text.php similarity index 100% rename from src/Text.zep.php rename to src/Text.php diff --git a/src/Translate/Adapter/AbstractAdapter.zep.php b/src/Translate/Adapter/AbstractAdapter.php similarity index 100% rename from src/Translate/Adapter/AbstractAdapter.zep.php rename to src/Translate/Adapter/AbstractAdapter.php diff --git a/src/Translate/Adapter/AdapterInterface.zep.php b/src/Translate/Adapter/AdapterInterface.php similarity index 100% rename from src/Translate/Adapter/AdapterInterface.zep.php rename to src/Translate/Adapter/AdapterInterface.php diff --git a/src/Translate/Adapter/Csv.zep.php b/src/Translate/Adapter/Csv.php similarity index 100% rename from src/Translate/Adapter/Csv.zep.php rename to src/Translate/Adapter/Csv.php diff --git a/src/Translate/Adapter/Gettext.zep.php b/src/Translate/Adapter/Gettext.php similarity index 100% rename from src/Translate/Adapter/Gettext.zep.php rename to src/Translate/Adapter/Gettext.php diff --git a/src/Translate/Adapter/NativeArray.zep.php b/src/Translate/Adapter/NativeArray.php similarity index 100% rename from src/Translate/Adapter/NativeArray.zep.php rename to src/Translate/Adapter/NativeArray.php diff --git a/src/Translate/Exception.zep.php b/src/Translate/Exception.php similarity index 100% rename from src/Translate/Exception.zep.php rename to src/Translate/Exception.php diff --git a/src/Translate/Interpolator/AssociativeArray.zep.php b/src/Translate/Interpolator/AssociativeArray.php similarity index 100% rename from src/Translate/Interpolator/AssociativeArray.zep.php rename to src/Translate/Interpolator/AssociativeArray.php diff --git a/src/Translate/Interpolator/IndexedArray.zep.php b/src/Translate/Interpolator/IndexedArray.php similarity index 100% rename from src/Translate/Interpolator/IndexedArray.zep.php rename to src/Translate/Interpolator/IndexedArray.php diff --git a/src/Translate/Interpolator/InterpolatorInterface.zep.php b/src/Translate/Interpolator/InterpolatorInterface.php similarity index 100% rename from src/Translate/Interpolator/InterpolatorInterface.zep.php rename to src/Translate/Interpolator/InterpolatorInterface.php diff --git a/src/Translate/InterpolatorFactory.zep.php b/src/Translate/InterpolatorFactory.php similarity index 100% rename from src/Translate/InterpolatorFactory.zep.php rename to src/Translate/InterpolatorFactory.php diff --git a/src/Translate/TranslateFactory.zep.php b/src/Translate/TranslateFactory.php similarity index 100% rename from src/Translate/TranslateFactory.zep.php rename to src/Translate/TranslateFactory.php diff --git a/src/Url.zep.php b/src/Url.php similarity index 100% rename from src/Url.zep.php rename to src/Url.php diff --git a/src/Url/Exception.zep.php b/src/Url/Exception.php similarity index 100% rename from src/Url/Exception.zep.php rename to src/Url/Exception.php diff --git a/src/Url/UrlInterface.zep.php b/src/Url/UrlInterface.php similarity index 100% rename from src/Url/UrlInterface.zep.php rename to src/Url/UrlInterface.php diff --git a/src/Validation.zep.php b/src/Validation.php similarity index 100% rename from src/Validation.zep.php rename to src/Validation.php diff --git a/src/Validation/AbstractCombinedFieldsValidator.zep.php b/src/Validation/AbstractCombinedFieldsValidator.php similarity index 100% rename from src/Validation/AbstractCombinedFieldsValidator.zep.php rename to src/Validation/AbstractCombinedFieldsValidator.php diff --git a/src/Validation/AbstractValidator.zep.php b/src/Validation/AbstractValidator.php similarity index 100% rename from src/Validation/AbstractValidator.zep.php rename to src/Validation/AbstractValidator.php diff --git a/src/Validation/AbstractValidatorComposite.zep.php b/src/Validation/AbstractValidatorComposite.php similarity index 100% rename from src/Validation/AbstractValidatorComposite.zep.php rename to src/Validation/AbstractValidatorComposite.php diff --git a/src/Validation/Exception.zep.php b/src/Validation/Exception.php similarity index 100% rename from src/Validation/Exception.zep.php rename to src/Validation/Exception.php diff --git a/src/Validation/ValidationInterface.zep.php b/src/Validation/ValidationInterface.php similarity index 100% rename from src/Validation/ValidationInterface.zep.php rename to src/Validation/ValidationInterface.php diff --git a/src/Validation/Validator/Alnum.zep.php b/src/Validation/Validator/Alnum.php similarity index 100% rename from src/Validation/Validator/Alnum.zep.php rename to src/Validation/Validator/Alnum.php diff --git a/src/Validation/Validator/Alpha.zep.php b/src/Validation/Validator/Alpha.php similarity index 100% rename from src/Validation/Validator/Alpha.zep.php rename to src/Validation/Validator/Alpha.php diff --git a/src/Validation/Validator/Between.zep.php b/src/Validation/Validator/Between.php similarity index 100% rename from src/Validation/Validator/Between.zep.php rename to src/Validation/Validator/Between.php diff --git a/src/Validation/Validator/Callback.zep.php b/src/Validation/Validator/Callback.php similarity index 100% rename from src/Validation/Validator/Callback.zep.php rename to src/Validation/Validator/Callback.php diff --git a/src/Validation/Validator/Confirmation.zep.php b/src/Validation/Validator/Confirmation.php similarity index 100% rename from src/Validation/Validator/Confirmation.zep.php rename to src/Validation/Validator/Confirmation.php diff --git a/src/Validation/Validator/CreditCard.zep.php b/src/Validation/Validator/CreditCard.php similarity index 100% rename from src/Validation/Validator/CreditCard.zep.php rename to src/Validation/Validator/CreditCard.php diff --git a/src/Validation/Validator/Date.zep.php b/src/Validation/Validator/Date.php similarity index 100% rename from src/Validation/Validator/Date.zep.php rename to src/Validation/Validator/Date.php diff --git a/src/Validation/Validator/Digit.zep.php b/src/Validation/Validator/Digit.php similarity index 100% rename from src/Validation/Validator/Digit.zep.php rename to src/Validation/Validator/Digit.php diff --git a/src/Validation/Validator/Email.zep.php b/src/Validation/Validator/Email.php similarity index 100% rename from src/Validation/Validator/Email.zep.php rename to src/Validation/Validator/Email.php diff --git a/src/Validation/Validator/Exception.zep.php b/src/Validation/Validator/Exception.php similarity index 100% rename from src/Validation/Validator/Exception.zep.php rename to src/Validation/Validator/Exception.php diff --git a/src/Validation/Validator/ExclusionIn.zep.php b/src/Validation/Validator/ExclusionIn.php similarity index 100% rename from src/Validation/Validator/ExclusionIn.zep.php rename to src/Validation/Validator/ExclusionIn.php diff --git a/src/Validation/Validator/File.zep.php b/src/Validation/Validator/File.php similarity index 100% rename from src/Validation/Validator/File.zep.php rename to src/Validation/Validator/File.php diff --git a/src/Validation/Validator/File/AbstractFile.zep.php b/src/Validation/Validator/File/AbstractFile.php similarity index 100% rename from src/Validation/Validator/File/AbstractFile.zep.php rename to src/Validation/Validator/File/AbstractFile.php diff --git a/src/Validation/Validator/File/MimeType.zep.php b/src/Validation/Validator/File/MimeType.php similarity index 100% rename from src/Validation/Validator/File/MimeType.zep.php rename to src/Validation/Validator/File/MimeType.php diff --git a/src/Validation/Validator/File/Resolution/Equal.zep.php b/src/Validation/Validator/File/Resolution/Equal.php similarity index 100% rename from src/Validation/Validator/File/Resolution/Equal.zep.php rename to src/Validation/Validator/File/Resolution/Equal.php diff --git a/src/Validation/Validator/File/Resolution/Max.zep.php b/src/Validation/Validator/File/Resolution/Max.php similarity index 100% rename from src/Validation/Validator/File/Resolution/Max.zep.php rename to src/Validation/Validator/File/Resolution/Max.php diff --git a/src/Validation/Validator/File/Resolution/Min.zep.php b/src/Validation/Validator/File/Resolution/Min.php similarity index 100% rename from src/Validation/Validator/File/Resolution/Min.zep.php rename to src/Validation/Validator/File/Resolution/Min.php diff --git a/src/Validation/Validator/File/Size/Equal.zep.php b/src/Validation/Validator/File/Size/Equal.php similarity index 100% rename from src/Validation/Validator/File/Size/Equal.zep.php rename to src/Validation/Validator/File/Size/Equal.php diff --git a/src/Validation/Validator/File/Size/Max.zep.php b/src/Validation/Validator/File/Size/Max.php similarity index 100% rename from src/Validation/Validator/File/Size/Max.zep.php rename to src/Validation/Validator/File/Size/Max.php diff --git a/src/Validation/Validator/File/Size/Min.zep.php b/src/Validation/Validator/File/Size/Min.php similarity index 100% rename from src/Validation/Validator/File/Size/Min.zep.php rename to src/Validation/Validator/File/Size/Min.php diff --git a/src/Validation/Validator/Identical.zep.php b/src/Validation/Validator/Identical.php similarity index 100% rename from src/Validation/Validator/Identical.zep.php rename to src/Validation/Validator/Identical.php diff --git a/src/Validation/Validator/InclusionIn.zep.php b/src/Validation/Validator/InclusionIn.php similarity index 100% rename from src/Validation/Validator/InclusionIn.zep.php rename to src/Validation/Validator/InclusionIn.php diff --git a/src/Validation/Validator/Ip.zep.php b/src/Validation/Validator/Ip.php similarity index 100% rename from src/Validation/Validator/Ip.zep.php rename to src/Validation/Validator/Ip.php diff --git a/src/Validation/Validator/Numericality.zep.php b/src/Validation/Validator/Numericality.php similarity index 100% rename from src/Validation/Validator/Numericality.zep.php rename to src/Validation/Validator/Numericality.php diff --git a/src/Validation/Validator/PresenceOf.zep.php b/src/Validation/Validator/PresenceOf.php similarity index 100% rename from src/Validation/Validator/PresenceOf.zep.php rename to src/Validation/Validator/PresenceOf.php diff --git a/src/Validation/Validator/Regex.zep.php b/src/Validation/Validator/Regex.php similarity index 100% rename from src/Validation/Validator/Regex.zep.php rename to src/Validation/Validator/Regex.php diff --git a/src/Validation/Validator/StringLength.zep.php b/src/Validation/Validator/StringLength.php similarity index 100% rename from src/Validation/Validator/StringLength.zep.php rename to src/Validation/Validator/StringLength.php diff --git a/src/Validation/Validator/StringLength/Max.zep.php b/src/Validation/Validator/StringLength/Max.php similarity index 100% rename from src/Validation/Validator/StringLength/Max.zep.php rename to src/Validation/Validator/StringLength/Max.php diff --git a/src/Validation/Validator/StringLength/Min.zep.php b/src/Validation/Validator/StringLength/Min.php similarity index 100% rename from src/Validation/Validator/StringLength/Min.zep.php rename to src/Validation/Validator/StringLength/Min.php diff --git a/src/Validation/Validator/Uniqueness.zep.php b/src/Validation/Validator/Uniqueness.php similarity index 100% rename from src/Validation/Validator/Uniqueness.zep.php rename to src/Validation/Validator/Uniqueness.php diff --git a/src/Validation/Validator/Url.zep.php b/src/Validation/Validator/Url.php similarity index 100% rename from src/Validation/Validator/Url.zep.php rename to src/Validation/Validator/Url.php diff --git a/src/Validation/ValidatorCompositeInterface.zep.php b/src/Validation/ValidatorCompositeInterface.php similarity index 100% rename from src/Validation/ValidatorCompositeInterface.zep.php rename to src/Validation/ValidatorCompositeInterface.php diff --git a/src/Validation/ValidatorFactory.zep.php b/src/Validation/ValidatorFactory.php similarity index 100% rename from src/Validation/ValidatorFactory.zep.php rename to src/Validation/ValidatorFactory.php diff --git a/src/Validation/ValidatorInterface.zep.php b/src/Validation/ValidatorInterface.php similarity index 100% rename from src/Validation/ValidatorInterface.zep.php rename to src/Validation/ValidatorInterface.php From c0f4cb761f8a2d3c8cc8d0d3d16d35b5ec862c13 Mon Sep 17 00:00:00 2001 From: Anton Vasiliev Date: Wed, 9 Jun 2021 00:33:03 +0100 Subject: [PATCH 06/16] Bump shivammathur/setup-php to v2 --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 22c26f61..7c20aa85 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Setup PHP, with composer and extensions - uses: shivammathur/setup-php@v1 + uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-versions }} extensions: mbstring, dom, zip, psr From 6d32be01aa04b122fbecc0e7f812a776b9c964ab Mon Sep 17 00:00:00 2001 From: Anton Vasiliev Date: Sat, 11 Sep 2021 09:51:58 +0100 Subject: [PATCH 07/16] Update README.md --- README.md | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 8c0a50f5..e86a5de9 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,12 @@ # Phalcon IDE Stubs -This repo provide the most complete Phalcon Framework stubs which enables autocompletion in modern IDEs. +This repo provides the most complete Phalcon Framework stubs which enables autocompletion in modern IDEs. ## Installing via Composer -1. Install Composer in a common location or in your project: - ```bash - curl -s http://getcomposer.org/installer | php - ``` - -2. Install via composer: - ```bash - composer require --dev phalcon/ide-stubs - ``` - -3. Setup your IDE. +```bash +composer require --dev phalcon/ide-stubs +``` ## Installing via Git @@ -41,4 +33,3 @@ Support us with a monthly donation and help us continue our activities. [[Become ## License Phalcon IDE Stubs is open-sourced software licensed under the New BSD License. © Phalcon Framework Team and contributors. - From 82b1f92b4357f18ed0c5f9f09811ebc512f57c41 Mon Sep 17 00:00:00 2001 From: Anton Vasiliev Date: Sat, 11 Sep 2021 09:59:23 +0100 Subject: [PATCH 08/16] Fix codestyle and optimize imports --- src/Acl/Adapter/AbstractAdapter.php | 2 -- src/Acl/Adapter/AdapterInterface.php | 4 --- src/Acl/Adapter/Memory.php | 10 ------ src/Acl/Component.php | 1 - src/Acl/ComponentAware.php | 1 - src/Acl/ComponentInterface.php | 1 - src/Acl/Enum.php | 2 -- src/Acl/Role.php | 1 - src/Acl/RoleAware.php | 1 - src/Acl/RoleInterface.php | 1 - src/Annotations/Adapter/AbstractAdapter.php | 6 ++-- src/Annotations/Adapter/AdapterInterface.php | 3 +- src/Annotations/Adapter/Apcu.php | 3 -- src/Annotations/Adapter/Memory.php | 3 -- src/Annotations/Adapter/Stream.php | 5 --- src/Annotations/Annotation.php | 1 - src/Annotations/AnnotationsFactory.php | 2 -- src/Annotations/Collection.php | 4 --- src/Annotations/Reader.php | 3 -- src/Annotations/ReaderInterface.php | 1 - src/Annotations/Reflection.php | 1 - src/Application/AbstractApplication.php | 2 -- src/Assets/Asset.php | 1 - src/Assets/Asset/Css.php | 3 -- src/Assets/Asset/Js.php | 3 -- src/Assets/AssetInterface.php | 1 - src/Assets/Collection.php | 8 ----- src/Assets/FilterInterface.php | 1 - src/Assets/Filters/Cssmin.php | 3 -- src/Assets/Filters/Jsmin.php | 3 -- src/Assets/Filters/None.php | 3 -- src/Assets/Inline.php | 1 - src/Assets/Inline/Css.php | 3 -- src/Assets/Inline/Js.php | 3 -- src/Assets/Manager.php | 7 ----- src/Cache.php | 3 -- src/Cache/Adapter/Apcu.php | 1 - src/Cache/Adapter/Libmemcached.php | 1 - src/Cache/Adapter/Memory.php | 1 - src/Cache/Adapter/Redis.php | 1 - src/Cache/Adapter/Stream.php | 1 - src/Cache/AdapterFactory.php | 1 - src/Cache/CacheFactory.php | 7 ----- src/Cli/Console.php | 5 --- src/Cli/Dispatcher.php | 6 ---- src/Cli/DispatcherInterface.php | 1 - src/Cli/Router.php | 6 +--- src/Cli/Router/Route.php | 5 ++- src/Cli/Router/RouteInterface.php | 1 - src/Cli/RouterInterface.php | 1 - src/Cli/Task.php | 2 -- src/Collection.php | 9 ------ src/Collection/CollectionInterface.php | 1 - src/Collection/Exception.php | 2 -- src/Collection/ReadOnly.php | 1 - src/Config.php | 3 -- src/Config/Adapter/Grouped.php | 5 --- src/Config/Adapter/Ini.php | 2 -- src/Config/Adapter/Json.php | 2 -- src/Config/Adapter/Php.php | 1 - src/Config/Adapter/Yaml.php | 2 -- src/Config/ConfigFactory.php | 4 --- src/Config/ConfigInterface.php | 3 -- src/Container.php | 2 -- src/Crypt.php | 3 -- src/Crypt/CryptInterface.php | 1 - src/DataMapper/Pdo/Connection.php | 3 -- .../Pdo/Connection/AbstractConnection.php | 1 - .../Pdo/Connection/ConnectionInterface.php | 1 - src/DataMapper/Pdo/Connection/Decorated.php | 2 -- .../Pdo/Connection/PdoInterface.php | 1 - src/DataMapper/Pdo/ConnectionLocator.php | 1 - .../Pdo/ConnectionLocatorInterface.php | 1 - src/DataMapper/Pdo/Profiler/MemoryLogger.php | 1 - src/DataMapper/Pdo/Profiler/Profiler.php | 4 --- .../Pdo/Profiler/ProfilerInterface.php | 1 - src/DataMapper/Query/AbstractConditions.php | 3 -- src/DataMapper/Query/AbstractQuery.php | 1 - src/DataMapper/Query/Bind.php | 1 - src/DataMapper/Query/Delete.php | 1 - src/DataMapper/Query/Insert.php | 1 - src/DataMapper/Query/QueryFactory.php | 1 - src/DataMapper/Query/Select.php | 4 --- src/DataMapper/Query/Update.php | 1 - src/Db/AbstractDb.php | 3 -- src/Db/Adapter/AbstractAdapter.php | 10 +----- src/Db/Adapter/AdapterInterface.php | 5 --- src/Db/Adapter/Pdo/AbstractPdo.php | 6 ---- src/Db/Adapter/Pdo/Mysql.php | 11 ------- src/Db/Adapter/Pdo/Postgresql.php | 9 ------ src/Db/Adapter/Pdo/Sqlite.php | 10 ------ src/Db/Adapter/PdoFactory.php | 2 -- src/Db/Column.php | 1 - src/Db/ColumnInterface.php | 1 - src/Db/Dialect.php | 1 - src/Db/Dialect/Mysql.php | 7 ----- src/Db/Dialect/Postgresql.php | 7 ----- src/Db/Dialect/Sqlite.php | 7 ----- src/Db/DialectInterface.php | 1 - src/Db/Enum.php | 2 -- src/Db/Index.php | 1 - src/Db/IndexInterface.php | 1 - src/Db/Profiler.php | 1 - src/Db/Profiler/Item.php | 1 - src/Db/RawValue.php | 1 - src/Db/Reference.php | 1 - src/Db/ReferenceInterface.php | 1 - src/Db/Result/Pdo.php | 4 +-- src/Db/ResultInterface.php | 1 - src/Di.php | 11 +------ src/Di/AbstractInjectionAware.php | 1 - src/Di/DiInterface.php | 3 -- src/Di/FactoryDefault.php | 3 -- src/Di/FactoryDefault/Cli.php | 3 -- src/Di/Injectable.php | 2 -- src/Di/InjectionAwareInterface.php | 1 - src/Di/Service.php | 5 --- src/Di/Service/Builder.php | 4 --- src/Di/ServiceInterface.php | 1 - src/Di/ServiceProviderInterface.php | 1 - src/Dispatcher/AbstractDispatcher.php | 7 ----- src/Dispatcher/DispatcherInterface.php | 1 - src/Dispatcher/Exception.php | 2 -- src/Domain/Payload/Payload.php | 1 - src/Domain/Payload/PayloadFactory.php | 1 - src/Domain/Payload/ReadableInterface.php | 1 - src/Domain/Payload/Status.php | 1 - src/Domain/Payload/WriteableInterface.php | 1 - src/Escaper.php | 5 --- src/Escaper/EscaperInterface.php | 1 - src/Events/Event.php | 1 - src/Events/EventInterface.php | 1 - src/Events/EventsAwareInterface.php | 1 - src/Events/Manager.php | 4 --- src/Events/ManagerInterface.php | 1 - src/Exception.php | 1 - src/Factory/AbstractFactory.php | 4 --- src/Filter.php | 5 --- src/Filter/FilterFactory.php | 3 -- src/Filter/FilterInterface.php | 1 - src/Filter/Sanitize/AbsInt.php | 1 - src/Filter/Sanitize/Alnum.php | 1 - src/Filter/Sanitize/Alpha.php | 1 - src/Filter/Sanitize/BoolVal.php | 1 - src/Filter/Sanitize/Email.php | 1 - src/Filter/Sanitize/FloatVal.php | 1 - src/Filter/Sanitize/IntVal.php | 1 - src/Filter/Sanitize/Lower.php | 1 - src/Filter/Sanitize/LowerFirst.php | 1 - src/Filter/Sanitize/Regex.php | 1 - src/Filter/Sanitize/Remove.php | 1 - src/Filter/Sanitize/Replace.php | 1 - src/Filter/Sanitize/Special.php | 1 - src/Filter/Sanitize/SpecialFull.php | 1 - src/Filter/Sanitize/StringVal.php | 1 - src/Filter/Sanitize/Striptags.php | 1 - src/Filter/Sanitize/Trim.php | 1 - src/Filter/Sanitize/Upper.php | 1 - src/Filter/Sanitize/UpperFirst.php | 1 - src/Filter/Sanitize/UpperWords.php | 1 - src/Filter/Sanitize/Url.php | 1 - src/Flash/AbstractFlash.php | 3 -- src/Flash/Direct.php | 1 - src/Flash/FlashInterface.php | 1 - src/Flash/Session.php | 2 -- src/Forms/Element/AbstractElement.php | 6 ---- src/Forms/Element/Check.php | 3 -- src/Forms/Element/Date.php | 3 -- src/Forms/Element/ElementInterface.php | 3 -- src/Forms/Element/Email.php | 3 -- src/Forms/Element/File.php | 3 -- src/Forms/Element/Hidden.php | 3 -- src/Forms/Element/Numeric.php | 3 -- src/Forms/Element/Password.php | 3 -- src/Forms/Element/Radio.php | 3 -- src/Forms/Element/Select.php | 3 -- src/Forms/Element/Submit.php | 3 -- src/Forms/Element/Text.php | 3 -- src/Forms/Element/TextArea.php | 3 -- src/Forms/Form.php | 7 ----- src/Forms/Manager.php | 1 - src/Helper/Arr.php | 3 -- src/Helper/Base64.php | 1 - src/Helper/Fs.php | 1 - src/Helper/Json.php | 3 -- src/Helper/Number.php | 1 - src/Helper/Str.php | 3 -- src/Html/Attributes.php | 3 -- src/Html/Attributes/AttributesInterface.php | 1 - src/Html/Attributes/RenderInterface.php | 1 - src/Html/Breadcrumbs.php | 3 -- src/Html/Helper/AbstractHelper.php | 1 - src/Html/Helper/AbstractList.php | 1 - src/Html/Helper/AbstractSeries.php | 1 - src/Html/Helper/Anchor.php | 1 - src/Html/Helper/Base.php | 1 - src/Html/Helper/Body.php | 1 - src/Html/Helper/Button.php | 1 - src/Html/Helper/Close.php | 1 - src/Html/Helper/Element.php | 1 - src/Html/Helper/Form.php | 1 - src/Html/Helper/Img.php | 1 - src/Html/Helper/Input/AbstractInput.php | 1 - src/Html/Helper/Input/Checkbox.php | 2 -- src/Html/Helper/Input/Color.php | 2 -- src/Html/Helper/Input/Date.php | 2 -- src/Html/Helper/Input/DateTime.php | 2 -- src/Html/Helper/Input/DateTimeLocal.php | 2 -- src/Html/Helper/Input/Email.php | 2 -- src/Html/Helper/Input/File.php | 2 -- src/Html/Helper/Input/Hidden.php | 2 -- src/Html/Helper/Input/Image.php | 2 -- src/Html/Helper/Input/Input.php | 1 - src/Html/Helper/Input/Month.php | 2 -- src/Html/Helper/Input/Numeric.php | 2 -- src/Html/Helper/Input/Password.php | 2 -- src/Html/Helper/Input/Radio.php | 2 -- src/Html/Helper/Input/Range.php | 2 -- src/Html/Helper/Input/Search.php | 2 -- src/Html/Helper/Input/Select.php | 1 - src/Html/Helper/Input/Submit.php | 2 -- src/Html/Helper/Input/Tel.php | 2 -- src/Html/Helper/Input/Textarea.php | 2 -- src/Html/Helper/Input/Time.php | 2 -- src/Html/Helper/Input/Url.php | 2 -- src/Html/Helper/Input/Week.php | 2 -- src/Html/Helper/Label.php | 1 - src/Html/Helper/Link.php | 1 - src/Html/Helper/Meta.php | 1 - src/Html/Helper/Ol.php | 1 - src/Html/Helper/Script.php | 1 - src/Html/Helper/Style.php | 1 - src/Html/Helper/Title.php | 1 - src/Html/Helper/Ul.php | 1 - src/Html/Link/EvolvableLink.php | 1 - src/Html/Link/EvolvableLinkProvider.php | 1 - src/Html/Link/Link.php | 1 - src/Html/Link/LinkProvider.php | 1 - src/Html/Link/Serializer/Header.php | 1 - .../Link/Serializer/SerializerInterface.php | 1 - src/Html/TagFactory.php | 2 -- src/Http/Cookie.php | 8 ----- src/Http/Cookie/CookieInterface.php | 1 - src/Http/Message/AbstractCommon.php | 3 -- src/Http/Message/AbstractMessage.php | 1 - src/Http/Message/AbstractRequest.php | 1 - .../Exception/InvalidArgumentException.php | 2 -- src/Http/Message/Request.php | 3 -- src/Http/Message/RequestFactory.php | 3 +- src/Http/Message/Response.php | 4 --- src/Http/Message/ResponseFactory.php | 3 +- src/Http/Message/ServerRequest.php | 2 -- src/Http/Message/ServerRequestFactory.php | 5 +-- src/Http/Message/Stream.php | 4 --- src/Http/Message/Stream/Input.php | 1 - src/Http/Message/Stream/Memory.php | 1 - src/Http/Message/Stream/Temp.php | 1 - src/Http/Message/StreamFactory.php | 2 -- src/Http/Message/UploadedFile.php | 4 --- src/Http/Message/UploadedFileFactory.php | 3 +- src/Http/Message/Uri.php | 3 -- src/Http/Message/UriFactory.php | 1 - src/Http/Request.php | 9 ------ src/Http/Request/File.php | 3 -- src/Http/Request/FileInterface.php | 1 - src/Http/RequestInterface.php | 4 --- src/Http/Response.php | 15 ++------- src/Http/Response/Cookies.php | 3 -- src/Http/Response/CookiesInterface.php | 1 - src/Http/Response/Headers.php | 1 - src/Http/Response/HeadersInterface.php | 1 - src/Http/ResponseInterface.php | 2 -- src/Http/Server/AbstractMiddleware.php | 1 - src/Http/Server/AbstractRequestHandler.php | 1 - src/Image/Adapter/AbstractAdapter.php | 4 +-- src/Image/Adapter/AdapterInterface.php | 1 - src/Image/Adapter/Gd.php | 6 +--- src/Image/Adapter/Imagick.php | 8 ++--- src/Image/Enum.php | 2 -- src/Image/ImageFactory.php | 3 -- src/Kernel.php | 1 - src/Loader.php | 3 -- src/Logger.php | 4 --- src/Logger/Adapter/AbstractAdapter.php | 4 --- src/Logger/Adapter/AdapterInterface.php | 2 -- src/Logger/Adapter/Noop.php | 3 -- src/Logger/Adapter/Stream.php | 7 ----- src/Logger/Adapter/Syslog.php | 9 ------ src/Logger/AdapterFactory.php | 1 - src/Logger/Formatter/AbstractFormatter.php | 6 ---- src/Logger/Formatter/FormatterInterface.php | 3 -- src/Logger/Formatter/Json.php | 5 --- src/Logger/Formatter/Line.php | 5 --- src/Logger/Item.php | 1 - src/Logger/LoggerFactory.php | 4 --- src/Messages/Message.php | 3 -- src/Messages/MessageInterface.php | 1 - src/Messages/Messages.php | 6 ---- src/Mvc/Application.php | 8 ----- src/Mvc/Controller.php | 1 - src/Mvc/Controller/BindModelInterface.php | 1 - src/Mvc/Dispatcher.php | 6 ---- src/Mvc/DispatcherInterface.php | 1 - src/Mvc/EntityInterface.php | 1 - src/Mvc/Micro.php | 14 +-------- src/Mvc/Micro/Collection.php | 1 - src/Mvc/Micro/CollectionInterface.php | 1 - src/Mvc/Micro/LazyLoader.php | 3 -- src/Mvc/Micro/MiddlewareInterface.php | 3 -- src/Mvc/Model.php | 28 ++--------------- src/Mvc/Model/Behavior.php | 3 -- src/Mvc/Model/Behavior/SoftDelete.php | 3 -- src/Mvc/Model/Behavior/Timestampable.php | 4 --- src/Mvc/Model/BehaviorInterface.php | 3 -- src/Mvc/Model/Binder.php | 6 ---- src/Mvc/Model/Binder/BindableInterface.php | 1 - src/Mvc/Model/BinderInterface.php | 1 - src/Mvc/Model/Criteria.php | 4 --- src/Mvc/Model/CriteriaInterface.php | 3 -- src/Mvc/Model/Manager.php | 6 +--- src/Mvc/Model/ManagerInterface.php | 3 +- src/Mvc/Model/MetaData.php | 4 --- src/Mvc/Model/MetaData/Apcu.php | 4 --- src/Mvc/Model/MetaData/Libmemcached.php | 4 --- src/Mvc/Model/MetaData/Memory.php | 2 -- src/Mvc/Model/MetaData/Redis.php | 3 -- .../Model/MetaData/Strategy/Annotations.php | 7 ----- .../Model/MetaData/Strategy/Introspection.php | 8 ----- .../MetaData/Strategy/StrategyInterface.php | 4 --- src/Mvc/Model/MetaData/Stream.php | 2 -- src/Mvc/Model/MetaDataInterface.php | 2 -- src/Mvc/Model/Query.php | 16 ++-------- src/Mvc/Model/Query/Builder.php | 6 ---- src/Mvc/Model/Query/BuilderInterface.php | 1 - src/Mvc/Model/Query/Lang.php | 1 - src/Mvc/Model/Query/Status.php | 2 -- src/Mvc/Model/Query/StatusInterface.php | 2 -- src/Mvc/Model/QueryInterface.php | 1 - src/Mvc/Model/Relation.php | 1 - src/Mvc/Model/RelationInterface.php | 1 - src/Mvc/Model/ResultInterface.php | 3 -- src/Mvc/Model/Resultset.php | 12 ------- src/Mvc/Model/Resultset/Complex.php | 10 ------ src/Mvc/Model/Resultset/Simple.php | 6 ---- src/Mvc/Model/ResultsetInterface.php | 3 -- src/Mvc/Model/Row.php | 4 --- src/Mvc/Model/Transaction.php | 5 +-- src/Mvc/Model/Transaction/Failed.php | 1 - src/Mvc/Model/Transaction/Manager.php | 4 --- .../Model/Transaction/ManagerInterface.php | 1 - src/Mvc/Model/TransactionInterface.php | 4 --- src/Mvc/Model/ValidationFailed.php | 1 - src/Mvc/ModelInterface.php | 4 --- src/Mvc/ModuleDefinitionInterface.php | 3 -- src/Mvc/Router.php | 6 ---- src/Mvc/Router/Annotations.php | 3 -- src/Mvc/Router/Group.php | 1 - src/Mvc/Router/GroupInterface.php | 1 - src/Mvc/Router/Route.php | 3 +- src/Mvc/Router/RouteInterface.php | 1 - src/Mvc/RouterInterface.php | 2 -- src/Mvc/View.php | 8 ----- src/Mvc/View/Engine/AbstractEngine.php | 1 - src/Mvc/View/Engine/EngineInterface.php | 1 - src/Mvc/View/Engine/Php.php | 1 - src/Mvc/View/Engine/Volt.php | 4 --- src/Mvc/View/Engine/Volt/Compiler.php | 3 -- src/Mvc/View/Engine/Volt/Exception.php | 3 -- src/Mvc/View/Simple.php | 8 ----- src/Mvc/ViewBaseInterface.php | 3 -- src/Mvc/ViewInterface.php | 1 - src/Paginator/Adapter/AbstractAdapter.php | 3 -- src/Paginator/Adapter/AdapterInterface.php | 1 - src/Paginator/Adapter/Model.php | 5 --- src/Paginator/Adapter/NativeArray.php | 2 -- src/Paginator/Adapter/QueryBuilder.php | 3 -- src/Paginator/PaginatorFactory.php | 4 +-- src/Paginator/Repository.php | 4 --- src/Paginator/RepositoryInterface.php | 1 - src/Registry.php | 1 - src/Security.php | 3 -- src/Security/JWT/Builder.php | 7 ----- .../UnsupportedAlgorithmException.php | 1 - .../JWT/Exceptions/ValidatorException.php | 1 - src/Security/JWT/Signer/AbstractSigner.php | 1 - src/Security/JWT/Signer/Hmac.php | 1 - src/Security/JWT/Signer/None.php | 1 - src/Security/JWT/Signer/SignerInterface.php | 1 - src/Security/JWT/Token/AbstractItem.php | 1 - src/Security/JWT/Token/Enum.php | 2 -- src/Security/JWT/Token/Item.php | 1 - src/Security/JWT/Token/Parser.php | 6 ---- src/Security/JWT/Token/Signature.php | 1 - src/Security/JWT/Token/Token.php | 1 - src/Security/JWT/Validator.php | 2 -- src/Security/Random.php | 1 - src/Session/Adapter/AbstractAdapter.php | 2 -- src/Session/Adapter/Libmemcached.php | 4 --- src/Session/Adapter/Noop.php | 3 -- src/Session/Adapter/Redis.php | 4 --- src/Session/Adapter/Stream.php | 4 --- src/Session/Bag.php | 3 -- src/Session/Manager.php | 6 +--- src/Session/ManagerInterface.php | 2 -- src/Storage/Adapter/AbstractAdapter.php | 6 +--- src/Storage/Adapter/AdapterInterface.php | 3 -- src/Storage/Adapter/Apcu.php | 7 ----- src/Storage/Adapter/Libmemcached.php | 4 --- src/Storage/Adapter/Memory.php | 5 --- src/Storage/Adapter/Redis.php | 4 --- src/Storage/Adapter/Stream.php | 8 ----- src/Storage/AdapterFactory.php | 1 - src/Storage/Serializer/AbstractSerializer.php | 3 -- src/Storage/Serializer/Base64.php | 3 -- src/Storage/Serializer/Igbinary.php | 1 - src/Storage/Serializer/Json.php | 5 --- src/Storage/Serializer/Msgpack.php | 1 - src/Storage/Serializer/None.php | 3 -- src/Storage/Serializer/Php.php | 4 --- .../Serializer/SerializerInterface.php | 3 -- src/Storage/SerializerFactory.php | 1 - src/Support/Debug.php | 9 +----- src/Support/Debug/Dump.php | 8 ----- src/Support/Helper/Str/Interpolate.php | 1 - src/Support/HelperFactory.php | 1 - src/Support/Version.php | 3 +- src/Tag.php | 31 +++++++------------ src/Tag/Select.php | 5 --- src/Text.php | 3 -- src/Translate/Adapter/AbstractAdapter.php | 3 -- src/Translate/Adapter/AdapterInterface.php | 1 - src/Translate/Adapter/Csv.php | 5 --- src/Translate/Adapter/Gettext.php | 5 --- src/Translate/Adapter/NativeArray.php | 5 --- .../Interpolator/AssociativeArray.php | 3 -- src/Translate/Interpolator/IndexedArray.php | 1 - .../Interpolator/InterpolatorInterface.php | 1 - src/Translate/InterpolatorFactory.php | 1 - src/Translate/TranslateFactory.php | 3 -- src/Url.php | 4 --- src/Url/UrlInterface.php | 1 - src/Validation.php | 5 --- src/Validation/AbstractValidator.php | 3 -- src/Validation/AbstractValidatorComposite.php | 3 -- src/Validation/ValidationInterface.php | 3 -- src/Validation/Validator/Alnum.php | 2 -- src/Validation/Validator/Alpha.php | 3 -- src/Validation/Validator/Between.php | 3 -- src/Validation/Validator/Callback.php | 4 --- src/Validation/Validator/Confirmation.php | 4 --- src/Validation/Validator/CreditCard.php | 3 -- src/Validation/Validator/Date.php | 4 --- src/Validation/Validator/Digit.php | 3 -- src/Validation/Validator/Email.php | 3 -- src/Validation/Validator/ExclusionIn.php | 4 --- src/Validation/Validator/File.php | 11 ------- .../Validator/File/AbstractFile.php | 2 -- src/Validation/Validator/File/MimeType.php | 3 -- .../Validator/File/Resolution/Equal.php | 3 -- .../Validator/File/Resolution/Max.php | 3 -- .../Validator/File/Resolution/Min.php | 3 -- src/Validation/Validator/File/Size/Equal.php | 3 -- src/Validation/Validator/File/Size/Max.php | 3 -- src/Validation/Validator/File/Size/Min.php | 3 -- src/Validation/Validator/Identical.php | 3 -- src/Validation/Validator/InclusionIn.php | 4 --- src/Validation/Validator/Ip.php | 3 -- src/Validation/Validator/Numericality.php | 3 -- src/Validation/Validator/PresenceOf.php | 3 -- src/Validation/Validator/Regex.php | 3 -- src/Validation/Validator/StringLength.php | 6 ---- src/Validation/Validator/StringLength/Max.php | 4 --- src/Validation/Validator/StringLength/Min.php | 4 --- src/Validation/Validator/Uniqueness.php | 6 ---- src/Validation/Validator/Url.php | 3 -- .../ValidatorCompositeInterface.php | 3 -- src/Validation/ValidatorFactory.php | 2 -- src/Validation/ValidatorInterface.php | 3 -- 478 files changed, 45 insertions(+), 1359 deletions(-) diff --git a/src/Acl/Adapter/AbstractAdapter.php b/src/Acl/Adapter/AbstractAdapter.php index e097c185..e3eeeedd 100644 --- a/src/Acl/Adapter/AbstractAdapter.php +++ b/src/Acl/Adapter/AbstractAdapter.php @@ -11,7 +11,6 @@ use Phalcon\Acl\Enum; use Phalcon\Events\ManagerInterface; -use Phalcon\Events\EventsAwareInterface; /** * Adapter for Phalcon\Acl adapters @@ -128,5 +127,4 @@ public function setDefaultAction(int $defaultAccess): void public function setEventsManager(\Phalcon\Events\ManagerInterface $eventsManager): void { } - } diff --git a/src/Acl/Adapter/AdapterInterface.php b/src/Acl/Adapter/AdapterInterface.php index 9fcadd6c..15e35855 100644 --- a/src/Acl/Adapter/AdapterInterface.php +++ b/src/Acl/Adapter/AdapterInterface.php @@ -9,9 +9,6 @@ */ namespace Phalcon\Acl\Adapter; -use Phalcon\Acl\ComponentInterface; -use Phalcon\Acl\RoleInterface; - /** * Interface for Phalcon\Acl adapters */ @@ -185,5 +182,4 @@ public function setDefaultAction(int $defaultAccess): void; * @return void */ public function setNoArgumentsDefaultAction(int $defaultAccess): void; - } diff --git a/src/Acl/Adapter/Memory.php b/src/Acl/Adapter/Memory.php index b46c02b3..5be2a10f 100644 --- a/src/Acl/Adapter/Memory.php +++ b/src/Acl/Adapter/Memory.php @@ -10,15 +10,6 @@ namespace Phalcon\Acl\Adapter; use Phalcon\Acl\Enum; -use Phalcon\Acl\Role; -use Phalcon\Acl\RoleInterface; -use Phalcon\Acl\Component; -use Phalcon\Acl\Exception; -use Phalcon\Events\Manager as EventsManager; -use Phalcon\Acl\RoleAware; -use Phalcon\Acl\ComponentAware; -use Phalcon\Acl\ComponentInterface; -use ReflectionFunction; /** * Manages ACL lists in memory @@ -464,5 +455,4 @@ private function allowOrDeny(string $roleName, string $componentName, $access, $ private function canAccess(string $roleName, string $componentName, string $access) { } - } diff --git a/src/Acl/Component.php b/src/Acl/Component.php index 66c8319f..3de82caf 100644 --- a/src/Acl/Component.php +++ b/src/Acl/Component.php @@ -65,5 +65,4 @@ public function __toString(): string public function __construct(string $name, string $description = null) { } - } diff --git a/src/Acl/ComponentAware.php b/src/Acl/ComponentAware.php index 37b68783..a631e35b 100644 --- a/src/Acl/ComponentAware.php +++ b/src/Acl/ComponentAware.php @@ -21,5 +21,4 @@ interface ComponentAware * @return string */ public function getComponentName(): string; - } diff --git a/src/Acl/ComponentInterface.php b/src/Acl/ComponentInterface.php index 92284e37..3cc7b050 100644 --- a/src/Acl/ComponentInterface.php +++ b/src/Acl/ComponentInterface.php @@ -35,5 +35,4 @@ public function getName(): string; * @return string */ public function __toString(): string; - } diff --git a/src/Acl/Enum.php b/src/Acl/Enum.php index 31c3e271..b6d62470 100644 --- a/src/Acl/Enum.php +++ b/src/Acl/Enum.php @@ -19,6 +19,4 @@ class Enum const DENY = 0; - - } diff --git a/src/Acl/Role.php b/src/Acl/Role.php index 784d988f..0618f41a 100644 --- a/src/Acl/Role.php +++ b/src/Acl/Role.php @@ -65,5 +65,4 @@ public function getDescription(): string public function __construct(string $name, string $description = null) { } - } diff --git a/src/Acl/RoleAware.php b/src/Acl/RoleAware.php index 2f1a3fb9..2ffaf09f 100644 --- a/src/Acl/RoleAware.php +++ b/src/Acl/RoleAware.php @@ -21,5 +21,4 @@ interface RoleAware * @return string */ public function getRoleName(): string; - } diff --git a/src/Acl/RoleInterface.php b/src/Acl/RoleInterface.php index edfc723a..87beb275 100644 --- a/src/Acl/RoleInterface.php +++ b/src/Acl/RoleInterface.php @@ -35,5 +35,4 @@ public function getDescription(): string; * @return string */ public function __toString(): string; - } diff --git a/src/Annotations/Adapter/AbstractAdapter.php b/src/Annotations/Adapter/AbstractAdapter.php index 38cec515..52306733 100644 --- a/src/Annotations/Adapter/AbstractAdapter.php +++ b/src/Annotations/Adapter/AbstractAdapter.php @@ -9,11 +9,10 @@ */ namespace Phalcon\Annotations\Adapter; -use Phalcon\Annotations\Reader; -use Phalcon\Annotations\Exception; use Phalcon\Annotations\Collection; -use Phalcon\Annotations\Reflection; +use Phalcon\Annotations\Reader; use Phalcon\Annotations\ReaderInterface; +use Phalcon\Annotations\Reflection; /** * This is the base class for Phalcon\Annotations adapters @@ -100,5 +99,4 @@ public function getReader(): ReaderInterface public function setReader(\Phalcon\Annotations\ReaderInterface $reader) { } - } diff --git a/src/Annotations/Adapter/AdapterInterface.php b/src/Annotations/Adapter/AdapterInterface.php index d5a01454..6f851a21 100644 --- a/src/Annotations/Adapter/AdapterInterface.php +++ b/src/Annotations/Adapter/AdapterInterface.php @@ -9,9 +9,9 @@ */ namespace Phalcon\Annotations\Adapter; -use Phalcon\Annotations\Reflection; use Phalcon\Annotations\Collection; use Phalcon\Annotations\ReaderInterface; +use Phalcon\Annotations\Reflection; /** * This interface must be implemented by adapters in Phalcon\Annotations @@ -74,5 +74,4 @@ public function getReader(): ReaderInterface; * @param \Phalcon\Annotations\ReaderInterface $reader */ public function setReader(\Phalcon\Annotations\ReaderInterface $reader); - } diff --git a/src/Annotations/Adapter/Apcu.php b/src/Annotations/Adapter/Apcu.php index 3dc77ffa..0834f9d8 100644 --- a/src/Annotations/Adapter/Apcu.php +++ b/src/Annotations/Adapter/Apcu.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Annotations\Adapter; -use Phalcon\Annotations\Reflection; - /** * Stores the parsed annotations in APCu. This adapter is suitable for production * @@ -65,5 +63,4 @@ public function read(string $key) public function write(string $key, \Phalcon\Annotations\Reflection $data): bool { } - } diff --git a/src/Annotations/Adapter/Memory.php b/src/Annotations/Adapter/Memory.php index 69972d9b..da87d80f 100644 --- a/src/Annotations/Adapter/Memory.php +++ b/src/Annotations/Adapter/Memory.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Annotations\Adapter; -use Phalcon\Annotations\Reflection; - /** * Stores the parsed annotations in memory. This adapter is the suitable * development/testing @@ -43,5 +41,4 @@ public function read(string $key) public function write(string $key, \Phalcon\Annotations\Reflection $data): void { } - } diff --git a/src/Annotations/Adapter/Stream.php b/src/Annotations/Adapter/Stream.php index c1e354e5..3d4ec6b9 100644 --- a/src/Annotations/Adapter/Stream.php +++ b/src/Annotations/Adapter/Stream.php @@ -9,10 +9,6 @@ */ namespace Phalcon\Annotations\Adapter; -use Phalcon\Annotations\Reflection; -use Phalcon\Annotations\Exception; -use RuntimeException; - /** * Stores the parsed annotations in files. This adapter is suitable for production * @@ -65,5 +61,4 @@ public function read(string $key) public function write(string $key, \Phalcon\Annotations\Reflection $data): void { } - } diff --git a/src/Annotations/Annotation.php b/src/Annotations/Annotation.php index c915ebd4..d4479f46 100644 --- a/src/Annotations/Annotation.php +++ b/src/Annotations/Annotation.php @@ -130,5 +130,4 @@ public function hasArgument($position): bool public function numberArguments(): int { } - } diff --git a/src/Annotations/AnnotationsFactory.php b/src/Annotations/AnnotationsFactory.php index 5e51c36f..d59549d6 100644 --- a/src/Annotations/AnnotationsFactory.php +++ b/src/Annotations/AnnotationsFactory.php @@ -11,7 +11,6 @@ use Phalcon\Annotations\Adapter\AdapterInterface; use Phalcon\Factory\AbstractFactory; -use Phalcon\Helper\Arr; /** * Factory to create annotations components @@ -71,5 +70,4 @@ public function newInstance(string $name, array $options = []): AdapterInterface protected function getAdapters(): array { } - } diff --git a/src/Annotations/Collection.php b/src/Annotations/Collection.php index c5a5fccd..510f836e 100644 --- a/src/Annotations/Collection.php +++ b/src/Annotations/Collection.php @@ -9,9 +9,6 @@ */ namespace Phalcon\Annotations; -use Countable; -use Iterator; - /** * Represents a collection of annotations. This class allows to traverse a group * of annotations easily @@ -143,5 +140,4 @@ public function rewind(): void public function valid(): bool { } - } diff --git a/src/Annotations/Reader.php b/src/Annotations/Reader.php index c164bee2..ddccab04 100644 --- a/src/Annotations/Reader.php +++ b/src/Annotations/Reader.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Annotations; -use ReflectionClass; - /** * Parses docblocks returning an array with the found annotations */ @@ -38,5 +36,4 @@ public function parse(string $className): array public static function parseDocBlock(string $docBlock, $file = null, $line = null): array { } - } diff --git a/src/Annotations/ReaderInterface.php b/src/Annotations/ReaderInterface.php index a8cc3f42..af370c66 100644 --- a/src/Annotations/ReaderInterface.php +++ b/src/Annotations/ReaderInterface.php @@ -32,5 +32,4 @@ public function parse(string $className): array; * @return array */ public static function parseDocBlock(string $docBlock, $file = null, $line = null): array; - } diff --git a/src/Annotations/Reflection.php b/src/Annotations/Reflection.php index 293d2c18..cfccdc0b 100644 --- a/src/Annotations/Reflection.php +++ b/src/Annotations/Reflection.php @@ -98,5 +98,4 @@ public function getPropertiesAnnotations() public function getReflectionData(): array { } - } diff --git a/src/Application/AbstractApplication.php b/src/Application/AbstractApplication.php index 786fdeda..aeb78742 100644 --- a/src/Application/AbstractApplication.php +++ b/src/Application/AbstractApplication.php @@ -11,7 +11,6 @@ use Phalcon\Di\DiInterface; use Phalcon\Di\Injectable; -use Phalcon\Events\EventsAwareInterface; use Phalcon\Events\ManagerInterface; /** @@ -131,5 +130,4 @@ public function setDefaultModule(string $defaultModule): AbstractApplication public function setEventsManager(\Phalcon\Events\ManagerInterface $eventsManager): void { } - } diff --git a/src/Assets/Asset.php b/src/Assets/Asset.php index a710deea..c1597f7f 100644 --- a/src/Assets/Asset.php +++ b/src/Assets/Asset.php @@ -304,5 +304,4 @@ public function setType(string $type): AssetInterface public function setPath(string $path): AssetInterface { } - } diff --git a/src/Assets/Asset/Css.php b/src/Assets/Asset/Css.php index 1c31fa57..7e066b1a 100644 --- a/src/Assets/Asset/Css.php +++ b/src/Assets/Asset/Css.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Assets\Asset; -use Phalcon\Assets\Asset as AssetBase; - /** * Represents CSS assets */ @@ -30,5 +28,4 @@ class Css extends \Phalcon\Assets\Asset public function __construct(string $path, bool $local = true, bool $filter = true, array $attributes = [], string $version = null, bool $autoVersion = false) { } - } diff --git a/src/Assets/Asset/Js.php b/src/Assets/Asset/Js.php index 6bee7747..2dacee46 100644 --- a/src/Assets/Asset/Js.php +++ b/src/Assets/Asset/Js.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Assets\Asset; -use Phalcon\Assets\Asset as AssetBase; - /** * Represents JavaScript assets */ @@ -30,5 +28,4 @@ class Js extends \Phalcon\Assets\Asset public function __construct(string $path, bool $local = true, bool $filter = true, array $attributes = [], string $version = null, bool $autoVersion = false) { } - } diff --git a/src/Assets/AssetInterface.php b/src/Assets/AssetInterface.php index c342e79c..320f6317 100644 --- a/src/Assets/AssetInterface.php +++ b/src/Assets/AssetInterface.php @@ -66,5 +66,4 @@ public function setFilter(bool $filter): AssetInterface; * @return AssetInterface */ public function setType(string $type): AssetInterface; - } diff --git a/src/Assets/Collection.php b/src/Assets/Collection.php index 8d0df59c..11e5bacc 100644 --- a/src/Assets/Collection.php +++ b/src/Assets/Collection.php @@ -9,13 +9,6 @@ */ namespace Phalcon\Assets; -use Countable; -use Iterator; -use Phalcon\Assets\Asset\Css as AssetCss; -use Phalcon\Assets\Asset\Js as AssetJs; -use Phalcon\Assets\Inline\Js as InlineJs; -use Phalcon\Assets\Inline\Css as InlineCss; - /** * Represents a collection of assets */ @@ -499,5 +492,4 @@ public function valid(): bool final protected function addAsset(AssetInterface $asset): bool { } - } diff --git a/src/Assets/FilterInterface.php b/src/Assets/FilterInterface.php index 9fdbdef2..a93e24c8 100644 --- a/src/Assets/FilterInterface.php +++ b/src/Assets/FilterInterface.php @@ -22,5 +22,4 @@ interface FilterInterface * @return string */ public function filter(string $content): string; - } diff --git a/src/Assets/Filters/Cssmin.php b/src/Assets/Filters/Cssmin.php index 8b5144be..774e9cba 100644 --- a/src/Assets/Filters/Cssmin.php +++ b/src/Assets/Filters/Cssmin.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Assets\Filters; -use Phalcon\Assets\FilterInterface; - /** * Minify the CSS - removes comments removes newlines and line feeds keeping * removes last semicolon from last property @@ -28,5 +26,4 @@ class Cssmin implements \Phalcon\Assets\FilterInterface public function filter(string $content): string { } - } diff --git a/src/Assets/Filters/Jsmin.php b/src/Assets/Filters/Jsmin.php index c4959b95..e0701838 100644 --- a/src/Assets/Filters/Jsmin.php +++ b/src/Assets/Filters/Jsmin.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Assets\Filters; -use Phalcon\Assets\FilterInterface; - /** * Deletes the characters which are insignificant to JavaScript. Comments will * be removed. Tabs will be replaced with spaces. Carriage returns will be @@ -29,5 +27,4 @@ class Jsmin implements \Phalcon\Assets\FilterInterface public function filter(string $content): string { } - } diff --git a/src/Assets/Filters/None.php b/src/Assets/Filters/None.php index cb4bb08c..a5e19df9 100644 --- a/src/Assets/Filters/None.php +++ b/src/Assets/Filters/None.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Assets\Filters; -use Phalcon\Assets\FilterInterface; - /** * Returns the content without make any modification to the original source */ @@ -26,5 +24,4 @@ class None implements \Phalcon\Assets\FilterInterface public function filter(string $content): string { } - } diff --git a/src/Assets/Inline.php b/src/Assets/Inline.php index 37766c82..d6fd08d2 100644 --- a/src/Assets/Inline.php +++ b/src/Assets/Inline.php @@ -117,5 +117,4 @@ public function setFilter(bool $filter): AssetInterface public function setType(string $type): AssetInterface { } - } diff --git a/src/Assets/Inline/Css.php b/src/Assets/Inline/Css.php index 14f7b91d..2353cd4e 100644 --- a/src/Assets/Inline/Css.php +++ b/src/Assets/Inline/Css.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Assets\Inline; -use Phalcon\Assets\Inline as InlineBase; - /** * Represents an inlined CSS */ @@ -27,5 +25,4 @@ class Css extends \Phalcon\Assets\Inline public function __construct(string $content, bool $filter = true, $attributes = null) { } - } diff --git a/src/Assets/Inline/Js.php b/src/Assets/Inline/Js.php index 22409a46..1ec6fd4e 100644 --- a/src/Assets/Inline/Js.php +++ b/src/Assets/Inline/Js.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Assets\Inline; -use Phalcon\Assets\Inline as InlineBase; - /** * Represents an inline JavaScript */ @@ -27,5 +25,4 @@ class Js extends \Phalcon\Assets\Inline public function __construct(string $content, bool $filter = true, $attributes = null) { } - } diff --git a/src/Assets/Manager.php b/src/Assets/Manager.php index b5988033..f56a6aa5 100644 --- a/src/Assets/Manager.php +++ b/src/Assets/Manager.php @@ -9,12 +9,6 @@ */ namespace Phalcon\Assets; -use Phalcon\Tag; -use Phalcon\Assets\Asset\Js as AssetJs; -use Phalcon\Assets\Asset\Css as AssetCss; -use Phalcon\Assets\Inline\Css as InlineCss; -use Phalcon\Assets\Inline\Js as InlineJs; -use Phalcon\Di\DiInterface; use Phalcon\Di\AbstractInjectionAware; /** @@ -366,5 +360,4 @@ public function useImplicitOutput(bool $implicitOutput): Manager private function getPrefixedPath(Collection $collection, string $path): string { } - } diff --git a/src/Cache.php b/src/Cache.php index bfc2e689..8bd70919 100644 --- a/src/Cache.php +++ b/src/Cache.php @@ -10,10 +10,8 @@ namespace Phalcon; use Phalcon\Cache\Adapter\AdapterInterface; -use Phalcon\Cache\Exception\Exception; use Phalcon\Cache\Exception\InvalidArgumentException; use Psr\SimpleCache\CacheInterface; -use Traversable; /** * This component offers caching capabilities for your application. @@ -175,5 +173,4 @@ protected function checkKey(string $key): void protected function checkKeys($keys): void { } - } diff --git a/src/Cache/Adapter/Apcu.php b/src/Cache/Adapter/Apcu.php index 191e2ec9..01481ad0 100644 --- a/src/Cache/Adapter/Apcu.php +++ b/src/Cache/Adapter/Apcu.php @@ -10,7 +10,6 @@ namespace Phalcon\Cache\Adapter; use Phalcon\Cache\Adapter\AdapterInterface as CacheAdapterInterface; -use Phalcon\Storage\Adapter\Apcu as StorageApcu; /** * Apcu adapter diff --git a/src/Cache/Adapter/Libmemcached.php b/src/Cache/Adapter/Libmemcached.php index a00deb4a..43526134 100644 --- a/src/Cache/Adapter/Libmemcached.php +++ b/src/Cache/Adapter/Libmemcached.php @@ -10,7 +10,6 @@ namespace Phalcon\Cache\Adapter; use Phalcon\Cache\Adapter\AdapterInterface as CacheAdapterInterface; -use Phalcon\Storage\Adapter\Libmemcached as StorageLibmemcached; /** * Libmemcached adapter diff --git a/src/Cache/Adapter/Memory.php b/src/Cache/Adapter/Memory.php index 41619081..4cbe2d5e 100644 --- a/src/Cache/Adapter/Memory.php +++ b/src/Cache/Adapter/Memory.php @@ -10,7 +10,6 @@ namespace Phalcon\Cache\Adapter; use Phalcon\Cache\Adapter\AdapterInterface as CacheAdapterInterface; -use Phalcon\Storage\Adapter\Memory as StorageMemory; /** * Memory adapter diff --git a/src/Cache/Adapter/Redis.php b/src/Cache/Adapter/Redis.php index f9551cec..c3c8ce7a 100644 --- a/src/Cache/Adapter/Redis.php +++ b/src/Cache/Adapter/Redis.php @@ -10,7 +10,6 @@ namespace Phalcon\Cache\Adapter; use Phalcon\Cache\Adapter\AdapterInterface as CacheAdapterInterface; -use Phalcon\Storage\Adapter\Redis as StorageRedis; /** * Redis adapter diff --git a/src/Cache/Adapter/Stream.php b/src/Cache/Adapter/Stream.php index 376e7a73..7002ae87 100644 --- a/src/Cache/Adapter/Stream.php +++ b/src/Cache/Adapter/Stream.php @@ -10,7 +10,6 @@ namespace Phalcon\Cache\Adapter; use Phalcon\Cache\Adapter\AdapterInterface as CacheAdapterInterface; -use Phalcon\Storage\Adapter\Stream as StorageStream; /** * Stream adapter diff --git a/src/Cache/AdapterFactory.php b/src/Cache/AdapterFactory.php index 472ecac1..89530b91 100644 --- a/src/Cache/AdapterFactory.php +++ b/src/Cache/AdapterFactory.php @@ -75,5 +75,4 @@ public function newInstance(string $name, array $options = []): AdapterInterface protected function getAdapters(): array { } - } diff --git a/src/Cache/CacheFactory.php b/src/Cache/CacheFactory.php index 23797029..2991470d 100644 --- a/src/Cache/CacheFactory.php +++ b/src/Cache/CacheFactory.php @@ -9,13 +9,7 @@ */ namespace Phalcon\Cache; -use Phalcon\Cache\Adapter\AdapterInterface; -use Phalcon\Cache; use Psr\SimpleCache\CacheInterface; -use Phalcon\Cache\Exception\Exception; -use Phalcon\Config; -use Phalcon\Config\ConfigInterface; -use Phalcon\Helper\Arr; /** * Creates a new Cache class @@ -100,5 +94,4 @@ public function load($config) public function newInstance(string $name, array $options = []): CacheInterface { } - } diff --git a/src/Cli/Console.php b/src/Cli/Console.php index ef36b506..89cff154 100644 --- a/src/Cli/Console.php +++ b/src/Cli/Console.php @@ -10,10 +10,6 @@ namespace Phalcon\Cli; use Phalcon\Application\AbstractApplication; -use Phalcon\Cli\Router\Route; -use Phalcon\Cli\Console\Exception; -use Phalcon\Di\DiInterface; -use Phalcon\Events\ManagerInterface; /** * This component allows to create CLI applications using Phalcon @@ -51,5 +47,4 @@ public function handle(array $arguments = null) public function setArgument(array $arguments = null, bool $str = true, bool $shift = true): Console { } - } diff --git a/src/Cli/Dispatcher.php b/src/Cli/Dispatcher.php index 067c7b41..8db05566 100644 --- a/src/Cli/Dispatcher.php +++ b/src/Cli/Dispatcher.php @@ -9,11 +9,6 @@ */ namespace Phalcon\Cli; -use Phalcon\Cli\Dispatcher\Exception; -use Phalcon\Dispatcher\AbstractDispatcher as CliDispatcher; -use Phalcon\Events\ManagerInterface; -use Phalcon\Filter\FilterInterface; - /** * Dispatching is the process of taking the command-line arguments, extracting * the module name, task name, action name, and optional parameters contained in @@ -194,5 +189,4 @@ protected function handleException(\Exception $exception) protected function throwDispatchException(string $message, int $exceptionCode = 0) { } - } diff --git a/src/Cli/DispatcherInterface.php b/src/Cli/DispatcherInterface.php index c638254f..cfb2bce1 100644 --- a/src/Cli/DispatcherInterface.php +++ b/src/Cli/DispatcherInterface.php @@ -83,5 +83,4 @@ public function setTaskName(string $taskName): void; * @return void */ public function setTaskSuffix(string $taskSuffix): void; - } diff --git a/src/Cli/Router.php b/src/Cli/Router.php index 4a45762b..7af3790b 100644 --- a/src/Cli/Router.php +++ b/src/Cli/Router.php @@ -9,11 +9,8 @@ */ namespace Phalcon\Cli; -use Phalcon\Di\DiInterface; -use Phalcon\Di\AbstractInjectionAware; -use Phalcon\Cli\Router\Route; -use Phalcon\Cli\Router\Exception; use Phalcon\Cli\Router\RouteInterface; +use Phalcon\Di\AbstractInjectionAware; /** * Phalcon\Cli\Router is the standard framework router. Routing is the process @@ -272,5 +269,4 @@ public function setDefaultTask(string $taskName): void public function wasMatched(): bool { } - } diff --git a/src/Cli/Router/Route.php b/src/Cli/Router/Route.php index 75610a5f..dcd68635 100644 --- a/src/Cli/Router/Route.php +++ b/src/Cli/Router/Route.php @@ -40,7 +40,7 @@ class Route implements \Phalcon\Cli\Router\RouteInterface /** * @var string */ - static protected $delimiterPath = self::DEFAULT_DELIMITER; + protected static $delimiterPath = self::DEFAULT_DELIMITER; /** * @var string|null @@ -70,7 +70,7 @@ class Route implements \Phalcon\Cli\Router\RouteInterface /** * @var int|string */ - static protected $uniqueId = 0; + protected static $uniqueId = 0; /** @@ -274,5 +274,4 @@ public function setDescription(string $description): RouteInterface public function setName(string $name): RouteInterface { } - } diff --git a/src/Cli/Router/RouteInterface.php b/src/Cli/Router/RouteInterface.php index bb98b6f4..4ab323af 100644 --- a/src/Cli/Router/RouteInterface.php +++ b/src/Cli/Router/RouteInterface.php @@ -118,5 +118,4 @@ public function setDescription(string $description): RouteInterface; * @return RouteInterface */ public function setName(string $name): RouteInterface; - } diff --git a/src/Cli/RouterInterface.php b/src/Cli/RouterInterface.php index 8eee56ab..bd585b98 100644 --- a/src/Cli/RouterInterface.php +++ b/src/Cli/RouterInterface.php @@ -136,5 +136,4 @@ public function setDefaultTask(string $taskName): void; * @return bool */ public function wasMatched(): bool; - } diff --git a/src/Cli/Task.php b/src/Cli/Task.php index e9406cbb..11e0369b 100644 --- a/src/Cli/Task.php +++ b/src/Cli/Task.php @@ -10,7 +10,6 @@ namespace Phalcon\Cli; use Phalcon\Di\Injectable; -use Phalcon\Events\EventsAwareInterface; use Phalcon\Events\ManagerInterface; /** @@ -70,5 +69,4 @@ public function getEventsManager(): ?ManagerInterface public function setEventsManager(\Phalcon\Events\ManagerInterface $eventsManager): void { } - } diff --git a/src/Collection.php b/src/Collection.php index 51d7659e..eab41a5c 100644 --- a/src/Collection.php +++ b/src/Collection.php @@ -9,14 +9,6 @@ */ namespace Phalcon; -use ArrayAccess; -use ArrayIterator; -use Countable; -use IteratorAggregate; -use JsonSerializable; -use Phalcon\Collection\CollectionInterface; -use Phalcon\Helper\Json; -use Serializable; use Traversable; /** @@ -307,5 +299,4 @@ public function unserialize($serialized): void protected function setData(string $element, $value): void { } - } diff --git a/src/Collection/CollectionInterface.php b/src/Collection/CollectionInterface.php index b565f47c..219152a0 100644 --- a/src/Collection/CollectionInterface.php +++ b/src/Collection/CollectionInterface.php @@ -101,5 +101,4 @@ public function toArray(): array; * @return string */ public function toJson(int $options = 79): string; - } diff --git a/src/Collection/Exception.php b/src/Collection/Exception.php index badabd18..5b84c7ed 100644 --- a/src/Collection/Exception.php +++ b/src/Collection/Exception.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Collection; -use Throwable; - /** * Exceptions for the Collection object */ diff --git a/src/Collection/ReadOnly.php b/src/Collection/ReadOnly.php index 270d1d63..c75e5eaa 100644 --- a/src/Collection/ReadOnly.php +++ b/src/Collection/ReadOnly.php @@ -37,5 +37,4 @@ public function remove(string $element): void public function set(string $element, $value): void { } - } diff --git a/src/Config.php b/src/Config.php index f75e39b9..05fb7938 100644 --- a/src/Config.php +++ b/src/Config.php @@ -9,9 +9,7 @@ */ namespace Phalcon; -use Phalcon\Collection; use Phalcon\Config\ConfigInterface; -use Phalcon\Config\Exception; /** * `Phalcon\Config` is designed to simplify the access to, and the use of, @@ -142,5 +140,4 @@ final protected function internalMerge(array $source, array $target): array protected function setData($element, $value): void { } - } diff --git a/src/Config/Adapter/Grouped.php b/src/Config/Adapter/Grouped.php index d4bb0309..23fb326f 100644 --- a/src/Config/Adapter/Grouped.php +++ b/src/Config/Adapter/Grouped.php @@ -10,10 +10,6 @@ namespace Phalcon\Config\Adapter; use Phalcon\Config; -use Phalcon\Config\ConfigFactory; -use Phalcon\Config\ConfigInterface; -use Phalcon\Config\Exception; -use Phalcon\Factory\Exception as FactoryException; /** * Reads multiple files (or arrays) and merges them all together. @@ -78,5 +74,4 @@ class Grouped extends Config public function __construct(array $arrayConfig, string $defaultAdapter = 'php') { } - } diff --git a/src/Config/Adapter/Ini.php b/src/Config/Adapter/Ini.php index 304e6b0c..0aa25da0 100644 --- a/src/Config/Adapter/Ini.php +++ b/src/Config/Adapter/Ini.php @@ -10,7 +10,6 @@ namespace Phalcon\Config\Adapter; use Phalcon\Config; -use Phalcon\Config\Exception; /** * Reads ini files and converts them to Phalcon\Config objects. @@ -88,5 +87,4 @@ protected function cast($ini) protected function parseIniString(string $path, $value): array { } - } diff --git a/src/Config/Adapter/Json.php b/src/Config/Adapter/Json.php index dd2e9646..4c4b1e3f 100644 --- a/src/Config/Adapter/Json.php +++ b/src/Config/Adapter/Json.php @@ -10,7 +10,6 @@ namespace Phalcon\Config\Adapter; use Phalcon\Config; -use Phalcon\Helper\Json as JsonHelper; /** * Reads JSON files and converts them to Phalcon\Config objects. @@ -43,5 +42,4 @@ class Json extends Config public function __construct(string $filePath) { } - } diff --git a/src/Config/Adapter/Php.php b/src/Config/Adapter/Php.php index f94da213..30ee68a9 100644 --- a/src/Config/Adapter/Php.php +++ b/src/Config/Adapter/Php.php @@ -57,5 +57,4 @@ class Php extends Config public function __construct(string $filePath) { } - } diff --git a/src/Config/Adapter/Yaml.php b/src/Config/Adapter/Yaml.php index 494fe97c..b4713fba 100644 --- a/src/Config/Adapter/Yaml.php +++ b/src/Config/Adapter/Yaml.php @@ -10,7 +10,6 @@ namespace Phalcon\Config\Adapter; use Phalcon\Config; -use Phalcon\Config\Exception; /** * Reads YAML files and converts them to Phalcon\Config objects. @@ -61,5 +60,4 @@ class Yaml extends Config public function __construct(string $filePath, array $callbacks = null) { } - } diff --git a/src/Config/ConfigFactory.php b/src/Config/ConfigFactory.php index 44f56447..01f9a0d5 100644 --- a/src/Config/ConfigFactory.php +++ b/src/Config/ConfigFactory.php @@ -9,10 +9,7 @@ */ namespace Phalcon\Config; -use Phalcon\Config; -use Phalcon\Config\ConfigInterface; use Phalcon\Factory\AbstractFactory; -use Phalcon\Helper\Arr; /** * Loads Config Adapter class using 'adapter' option, if no extension is @@ -79,5 +76,4 @@ public function newInstance(string $name, string $fileName, $params = null): Con protected function getAdapters(): array { } - } diff --git a/src/Config/ConfigInterface.php b/src/Config/ConfigInterface.php index f16097db..82ea4de1 100644 --- a/src/Config/ConfigInterface.php +++ b/src/Config/ConfigInterface.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Config; -use Phalcon\Collection\CollectionInterface; - /** * Phalcon\Config\ConfigInterface * @@ -43,5 +41,4 @@ public function path(string $path, $defaultValue = null, $delimiter = null); * @return ConfigInterface */ public function setPathDelimiter(string $delimiter = null): ConfigInterface; - } diff --git a/src/Container.php b/src/Container.php index 74f55334..fe533a3c 100644 --- a/src/Container.php +++ b/src/Container.php @@ -9,7 +9,6 @@ */ namespace Phalcon; -use Psr\Container\ContainerInterface; use Phalcon\Di\DiInterface; /** @@ -51,5 +50,4 @@ public function get($name) public function has($name): bool { } - } diff --git a/src/Crypt.php b/src/Crypt.php index 99c603e4..5ff78964 100644 --- a/src/Crypt.php +++ b/src/Crypt.php @@ -10,8 +10,6 @@ namespace Phalcon; use Phalcon\Crypt\CryptInterface; -use Phalcon\Crypt\Exception; -use Phalcon\Crypt\Mismatch; /** * Provides encryption capabilities to Phalcon applications. @@ -409,5 +407,4 @@ protected function cryptPadText(string $text, string $mode, int $blockSize, int protected function cryptUnpadText(string $text, string $mode, int $blockSize, int $paddingType) { } - } diff --git a/src/Crypt/CryptInterface.php b/src/Crypt/CryptInterface.php index 5f30daa2..d33f3ddc 100644 --- a/src/Crypt/CryptInterface.php +++ b/src/Crypt/CryptInterface.php @@ -140,5 +140,4 @@ public function setKey(string $key): CryptInterface; * @return CryptInterface */ public function setPadding(int $scheme): CryptInterface; - } diff --git a/src/DataMapper/Pdo/Connection.php b/src/DataMapper/Pdo/Connection.php index 68bcaf11..ce22f087 100644 --- a/src/DataMapper/Pdo/Connection.php +++ b/src/DataMapper/Pdo/Connection.php @@ -9,9 +9,7 @@ */ namespace Phalcon\DataMapper\Pdo; -use InvalidArgumentException; use Phalcon\DataMapper\Pdo\Connection\AbstractConnection; -use Phalcon\DataMapper\Pdo\Profiler\Profiler; use Phalcon\DataMapper\Pdo\Profiler\ProfilerInterface; /** @@ -73,5 +71,4 @@ public function connect(): void public function disconnect(): void { } - } diff --git a/src/DataMapper/Pdo/Connection/AbstractConnection.php b/src/DataMapper/Pdo/Connection/AbstractConnection.php index d8eb03c9..84e98270 100644 --- a/src/DataMapper/Pdo/Connection/AbstractConnection.php +++ b/src/DataMapper/Pdo/Connection/AbstractConnection.php @@ -462,5 +462,4 @@ protected function performBind(\PDOStatement $statement, $name, $arguments): voi protected function fetchData(string $method, array $arguments, string $statement, array $values = []): array { } - } diff --git a/src/DataMapper/Pdo/Connection/ConnectionInterface.php b/src/DataMapper/Pdo/Connection/ConnectionInterface.php index d8392239..4059fad6 100644 --- a/src/DataMapper/Pdo/Connection/ConnectionInterface.php +++ b/src/DataMapper/Pdo/Connection/ConnectionInterface.php @@ -210,5 +210,4 @@ public function perform(string $statement, array $values = []): \PDOStatement; * @param ProfilerInterface $profiler The Profiler instance. */ public function setProfiler(\Phalcon\DataMapper\Pdo\Profiler\ProfilerInterface $profiler); - } diff --git a/src/DataMapper/Pdo/Connection/Decorated.php b/src/DataMapper/Pdo/Connection/Decorated.php index 012e67e3..5556dac0 100644 --- a/src/DataMapper/Pdo/Connection/Decorated.php +++ b/src/DataMapper/Pdo/Connection/Decorated.php @@ -10,7 +10,6 @@ namespace Phalcon\DataMapper\Pdo\Connection; use Phalcon\DataMapper\Pdo\Exception\CannotDisconnect; -use Phalcon\DataMapper\Pdo\Profiler\Profiler; use Phalcon\DataMapper\Pdo\Profiler\ProfilerInterface; /** @@ -52,5 +51,4 @@ public function connect(): void public function disconnect(): void { } - } diff --git a/src/DataMapper/Pdo/Connection/PdoInterface.php b/src/DataMapper/Pdo/Connection/PdoInterface.php index ae6a9c3e..0f3ec143 100644 --- a/src/DataMapper/Pdo/Connection/PdoInterface.php +++ b/src/DataMapper/Pdo/Connection/PdoInterface.php @@ -140,5 +140,4 @@ public function rollBack(): bool; * @return bool */ public function setAttribute(int $attribute, $value): bool; - } diff --git a/src/DataMapper/Pdo/ConnectionLocator.php b/src/DataMapper/Pdo/ConnectionLocator.php index 2fb8189d..e4f1e740 100644 --- a/src/DataMapper/Pdo/ConnectionLocator.php +++ b/src/DataMapper/Pdo/ConnectionLocator.php @@ -148,5 +148,4 @@ public function setWrite(string $name, $callableObject): ConnectionLocatorInterf protected function getConnection(string $type, string $name = ''): ConnectionInterface { } - } diff --git a/src/DataMapper/Pdo/ConnectionLocatorInterface.php b/src/DataMapper/Pdo/ConnectionLocatorInterface.php index 46f1bad0..57a21420 100644 --- a/src/DataMapper/Pdo/ConnectionLocatorInterface.php +++ b/src/DataMapper/Pdo/ConnectionLocatorInterface.php @@ -77,5 +77,4 @@ public function setRead(string $name, $callableObject): ConnectionLocatorInterfa * @param callable $callableObject */ public function setWrite(string $name, $callableObject): ConnectionLocatorInterface; - } diff --git a/src/DataMapper/Pdo/Profiler/MemoryLogger.php b/src/DataMapper/Pdo/Profiler/MemoryLogger.php index e458d415..2f1254cd 100644 --- a/src/DataMapper/Pdo/Profiler/MemoryLogger.php +++ b/src/DataMapper/Pdo/Profiler/MemoryLogger.php @@ -107,5 +107,4 @@ public function debug($message, array $context = []) public function log($level, $message, array $context = []) { } - } diff --git a/src/DataMapper/Pdo/Profiler/Profiler.php b/src/DataMapper/Pdo/Profiler/Profiler.php index 9b34a382..cb81f890 100644 --- a/src/DataMapper/Pdo/Profiler/Profiler.php +++ b/src/DataMapper/Pdo/Profiler/Profiler.php @@ -9,10 +9,7 @@ */ namespace Phalcon\DataMapper\Pdo\Profiler; -use Phalcon\DataMapper\Pdo\Exception\Exception; -use Phalcon\Helper\Json; use Psr\Log\LoggerInterface; -use Psr\Log\LogLevel; /** * Sends query profiles to a logger. @@ -149,5 +146,4 @@ public function setLogLevel(string $logLevel): ProfilerInterface public function start(string $method): void { } - } diff --git a/src/DataMapper/Pdo/Profiler/ProfilerInterface.php b/src/DataMapper/Pdo/Profiler/ProfilerInterface.php index 0bf3e90c..52e1b077 100644 --- a/src/DataMapper/Pdo/Profiler/ProfilerInterface.php +++ b/src/DataMapper/Pdo/Profiler/ProfilerInterface.php @@ -89,5 +89,4 @@ public function setLogLevel(string $logLevel): ProfilerInterface; * @return void */ public function start(string $method): void; - } diff --git a/src/DataMapper/Query/AbstractConditions.php b/src/DataMapper/Query/AbstractConditions.php index 041ec09a..b2be43f1 100644 --- a/src/DataMapper/Query/AbstractConditions.php +++ b/src/DataMapper/Query/AbstractConditions.php @@ -9,8 +9,6 @@ */ namespace Phalcon\DataMapper\Query; -use Phalcon\Helper\Arr; - /** * Class AbstractConditions */ @@ -206,5 +204,4 @@ protected function appendCondition(string $store, string $condition, $value = nu protected function processValue(string $store, $data): void { } - } diff --git a/src/DataMapper/Query/AbstractQuery.php b/src/DataMapper/Query/AbstractQuery.php index 5e8a2310..369a6d10 100644 --- a/src/DataMapper/Query/AbstractQuery.php +++ b/src/DataMapper/Query/AbstractQuery.php @@ -166,5 +166,4 @@ protected function buildReturning(): string protected function indent(array $collection, string $glue = ''): string { } - } diff --git a/src/DataMapper/Query/Bind.php b/src/DataMapper/Query/Bind.php index 318cfbe7..bd4639a3 100644 --- a/src/DataMapper/Query/Bind.php +++ b/src/DataMapper/Query/Bind.php @@ -103,5 +103,4 @@ protected function getType($value): int protected function inlineArray(array $data, int $type): string { } - } diff --git a/src/DataMapper/Query/Delete.php b/src/DataMapper/Query/Delete.php index e81567e1..342353cf 100644 --- a/src/DataMapper/Query/Delete.php +++ b/src/DataMapper/Query/Delete.php @@ -74,5 +74,4 @@ public function getStatement(): string public function reset(): void { } - } diff --git a/src/DataMapper/Query/Insert.php b/src/DataMapper/Query/Insert.php index 912234ef..e940e363 100644 --- a/src/DataMapper/Query/Insert.php +++ b/src/DataMapper/Query/Insert.php @@ -120,5 +120,4 @@ public function set(string $column, $value = null): Insert private function buildColumns(): string { } - } diff --git a/src/DataMapper/Query/QueryFactory.php b/src/DataMapper/Query/QueryFactory.php index e6024897..e135f87b 100644 --- a/src/DataMapper/Query/QueryFactory.php +++ b/src/DataMapper/Query/QueryFactory.php @@ -89,5 +89,4 @@ public function newSelect(\Phalcon\DataMapper\Pdo\Connection $connection): Selec public function newUpdate(\Phalcon\DataMapper\Pdo\Connection $connection): Update { } - } diff --git a/src/DataMapper/Query/Select.php b/src/DataMapper/Query/Select.php index a9ae1e03..41cac29e 100644 --- a/src/DataMapper/Query/Select.php +++ b/src/DataMapper/Query/Select.php @@ -9,9 +9,6 @@ */ namespace Phalcon\DataMapper\Query; -use BadMethodCallException; -use Phalcon\Helper\Arr; - /** * Class Select * @@ -293,5 +290,4 @@ private function buildColumns(): string private function buildFrom(): string { } - } diff --git a/src/DataMapper/Query/Update.php b/src/DataMapper/Query/Update.php index 7dd17ee0..52c9ece5 100644 --- a/src/DataMapper/Query/Update.php +++ b/src/DataMapper/Query/Update.php @@ -118,5 +118,4 @@ public function set(string $column, $value = null): Update private function buildColumns(): string { } - } diff --git a/src/Db/AbstractDb.php b/src/Db/AbstractDb.php index 770b183a..7e985097 100644 --- a/src/Db/AbstractDb.php +++ b/src/Db/AbstractDb.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Db; -use \PDO as Pdo; - /** * Phalcon\Db and its related classes provide a simple SQL database interface * for Phalcon Framework. The Phalcon\Db is the basic class you use to connect @@ -66,5 +64,4 @@ abstract class AbstractDb public static function setup(array $options): void { } - } diff --git a/src/Db/Adapter/AbstractAdapter.php b/src/Db/Adapter/AbstractAdapter.php index 5fcddb03..92a9bec1 100644 --- a/src/Db/Adapter/AbstractAdapter.php +++ b/src/Db/Adapter/AbstractAdapter.php @@ -10,15 +10,8 @@ namespace Phalcon\Db\Adapter; use Phalcon\Db\DialectInterface; -use Phalcon\Db\ColumnInterface; use Phalcon\Db\Enum; -use Phalcon\Db\Exception; -use Phalcon\Db\Index; -use Phalcon\Db\IndexInterface; -use Phalcon\Db\Reference; -use Phalcon\Db\ReferenceInterface; use Phalcon\Db\RawValue; -use Phalcon\Events\EventsAwareInterface; use Phalcon\Events\ManagerInterface; /** @@ -31,7 +24,7 @@ abstract class AbstractAdapter implements \Phalcon\Db\Adapter\AdapterInterface, * * @var int */ - static protected $connectionConsecutive = 0; + protected static $connectionConsecutive = 0; /** * Active connection ID @@ -973,5 +966,4 @@ public function supportsDefaultValue(): bool public function viewExists(string $viewName, string $schemaName = null): bool { } - } diff --git a/src/Db/Adapter/AdapterInterface.php b/src/Db/Adapter/AdapterInterface.php index fdf91627..73148a49 100644 --- a/src/Db/Adapter/AdapterInterface.php +++ b/src/Db/Adapter/AdapterInterface.php @@ -10,11 +10,7 @@ namespace Phalcon\Db\Adapter; use Phalcon\Db\DialectInterface; -use Phalcon\Db\ResultInterface; -use Phalcon\Db\ColumnInterface; -use Phalcon\Db\IndexInterface; use Phalcon\Db\RawValue; -use Phalcon\Db\ReferenceInterface; /** * Interface for Phalcon\Db adapters @@ -666,5 +662,4 @@ public function supportsDefaultValue(): bool; * @return bool */ public function viewExists(string $viewName, string $schemaName = null): bool; - } diff --git a/src/Db/Adapter/Pdo/AbstractPdo.php b/src/Db/Adapter/Pdo/AbstractPdo.php index 73df00c8..d21199b0 100644 --- a/src/Db/Adapter/Pdo/AbstractPdo.php +++ b/src/Db/Adapter/Pdo/AbstractPdo.php @@ -10,11 +10,6 @@ namespace Phalcon\Db\Adapter\Pdo; use Phalcon\Db\Adapter\AbstractAdapter; -use Phalcon\Db\Column; -use Phalcon\Db\Exception; -use Phalcon\Db\Result\Pdo as ResultPdo; -use Phalcon\Db\ResultInterface; -use Phalcon\Events\ManagerInterface; /** * Phalcon\Db\Adapter\Pdo is the Phalcon\Db that internally uses PDO to connect @@ -402,5 +397,4 @@ abstract protected function getDsnDefaults(): array; protected function prepareRealSql(string $statement, array $parameters): void { } - } diff --git a/src/Db/Adapter/Pdo/Mysql.php b/src/Db/Adapter/Pdo/Mysql.php index bb3f298b..107f51ad 100644 --- a/src/Db/Adapter/Pdo/Mysql.php +++ b/src/Db/Adapter/Pdo/Mysql.php @@ -9,16 +9,6 @@ */ namespace Phalcon\Db\Adapter\Pdo; -use Phalcon\Db\Adapter\Pdo\AbstractPdo as PdoAdapter; -use Phalcon\Db\Column; -use Phalcon\Db\ColumnInterface; -use Phalcon\Db\Enum; -use Phalcon\Db\Exception; -use Phalcon\Db\Index; -use Phalcon\Db\IndexInterface; -use Phalcon\Db\Reference; -use Phalcon\Db\ReferenceInterface; - /** * Specific functions for the MySQL database system * @@ -120,5 +110,4 @@ public function describeReferences(string $table, string $schema = null): array protected function getDsnDefaults(): array { } - } diff --git a/src/Db/Adapter/Pdo/Postgresql.php b/src/Db/Adapter/Pdo/Postgresql.php index a8e08048..930be65a 100644 --- a/src/Db/Adapter/Pdo/Postgresql.php +++ b/src/Db/Adapter/Pdo/Postgresql.php @@ -9,15 +9,7 @@ */ namespace Phalcon\Db\Adapter\Pdo; -use Phalcon\Db\Adapter\Pdo\AbstractPdo as PdoAdapter; -use Phalcon\Db\Column; -use Phalcon\Db\ColumnInterface; -use Phalcon\Db\Enum; -use Phalcon\Db\Exception; use Phalcon\Db\RawValue; -use Phalcon\Db\Reference; -use Phalcon\Db\ReferenceInterface; -use Throwable; /** * Specific functions for the PostgreSQL database system @@ -182,5 +174,4 @@ public function useExplicitIdValue(): bool protected function getDsnDefaults(): array { } - } diff --git a/src/Db/Adapter/Pdo/Sqlite.php b/src/Db/Adapter/Pdo/Sqlite.php index dcee7c3c..65220882 100644 --- a/src/Db/Adapter/Pdo/Sqlite.php +++ b/src/Db/Adapter/Pdo/Sqlite.php @@ -9,16 +9,7 @@ */ namespace Phalcon\Db\Adapter\Pdo; -use Phalcon\Db\Adapter\Pdo\AbstractPdo as PdoAdapter; -use Phalcon\Db\Column; -use Phalcon\Db\ColumnInterface; -use Phalcon\Db\Enum; -use Phalcon\Db\Exception; -use Phalcon\Db\Index; -use Phalcon\Db\IndexInterface; use Phalcon\Db\RawValue; -use Phalcon\Db\Reference; -use Phalcon\Db\ReferenceInterface; /** * Specific functions for the SQLite database system @@ -164,5 +155,4 @@ public function supportsDefaultValue(): bool protected function getDsnDefaults(): array { } - } diff --git a/src/Db/Adapter/PdoFactory.php b/src/Db/Adapter/PdoFactory.php index 18c9bdf5..eadc67ff 100644 --- a/src/Db/Adapter/PdoFactory.php +++ b/src/Db/Adapter/PdoFactory.php @@ -10,7 +10,6 @@ namespace Phalcon\Db\Adapter; use Phalcon\Factory\AbstractFactory; -use Phalcon\Helper\Arr; /** * This file is part of the Phalcon Framework. @@ -77,5 +76,4 @@ public function newInstance(string $name, array $options = []): AdapterInterface protected function getAdapters(): array { } - } diff --git a/src/Db/Column.php b/src/Db/Column.php index 9b118c87..f0d7af80 100644 --- a/src/Db/Column.php +++ b/src/Db/Column.php @@ -492,5 +492,4 @@ public function isPrimary(): bool public function isUnsigned(): bool { } - } diff --git a/src/Db/ColumnInterface.php b/src/Db/ColumnInterface.php index feecfa0b..b4745255 100644 --- a/src/Db/ColumnInterface.php +++ b/src/Db/ColumnInterface.php @@ -126,5 +126,4 @@ public function isPrimary(): bool; * @return bool */ public function isUnsigned(): bool; - } diff --git a/src/Db/Dialect.php b/src/Db/Dialect.php index 26664180..6ba589c1 100644 --- a/src/Db/Dialect.php +++ b/src/Db/Dialect.php @@ -513,5 +513,4 @@ protected function prepareTable(string $table, string $schema = null, string $al protected function prepareQualified(string $column, string $domain = null, string $escapeChar = null): string { } - } diff --git a/src/Db/Dialect/Mysql.php b/src/Db/Dialect/Mysql.php index c80be775..eeef5199 100644 --- a/src/Db/Dialect/Mysql.php +++ b/src/Db/Dialect/Mysql.php @@ -10,12 +10,6 @@ namespace Phalcon\Db\Dialect; use Phalcon\Db\Dialect; -use Phalcon\Db\Column; -use Phalcon\Db\Exception; -use Phalcon\Db\IndexInterface; -use Phalcon\Db\ColumnInterface; -use Phalcon\Db\ReferenceInterface; -use Phalcon\Db\DialectInterface; /** * Generates database specific SQL for the MySQL RDBMS @@ -364,5 +358,4 @@ private function checkColumnSizeAndScale(\Phalcon\Db\ColumnInterface $column): s private function checkColumnUnsigned(\Phalcon\Db\ColumnInterface $column): string { } - } diff --git a/src/Db/Dialect/Postgresql.php b/src/Db/Dialect/Postgresql.php index 7d680ec5..4e57d5f8 100644 --- a/src/Db/Dialect/Postgresql.php +++ b/src/Db/Dialect/Postgresql.php @@ -10,12 +10,6 @@ namespace Phalcon\Db\Dialect; use Phalcon\Db\Dialect; -use Phalcon\Db\Column; -use Phalcon\Db\Exception; -use Phalcon\Db\IndexInterface; -use Phalcon\Db\ColumnInterface; -use Phalcon\Db\ReferenceInterface; -use Phalcon\Db\DialectInterface; /** * Generates database specific SQL for the PostgreSQL RDBMS @@ -335,5 +329,4 @@ protected function castDefault(\Phalcon\Db\ColumnInterface $column): string protected function getTableOptions(array $definition): string { } - } diff --git a/src/Db/Dialect/Sqlite.php b/src/Db/Dialect/Sqlite.php index 17f84685..3b2a56cc 100644 --- a/src/Db/Dialect/Sqlite.php +++ b/src/Db/Dialect/Sqlite.php @@ -9,13 +9,7 @@ */ namespace Phalcon\Db\Dialect; -use Phalcon\Db\Column; -use Phalcon\Db\Exception; -use Phalcon\Db\IndexInterface; use Phalcon\Db\Dialect; -use Phalcon\Db\DialectInterface; -use Phalcon\Db\ColumnInterface; -use Phalcon\Db\ReferenceInterface; /** * Generates database specific SQL for the SQLite RDBMS @@ -358,5 +352,4 @@ public function truncateTable(string $tableName, string $schemaName): string public function viewExists(string $viewName, string $schemaName = null): string { } - } diff --git a/src/Db/DialectInterface.php b/src/Db/DialectInterface.php index 8a249bc0..cc1c2bd2 100644 --- a/src/Db/DialectInterface.php +++ b/src/Db/DialectInterface.php @@ -319,5 +319,4 @@ public function tableOptions(string $table, string $schema = null): string; * @return string */ public function viewExists(string $viewName, string $schemaName = null): string; - } diff --git a/src/Db/Enum.php b/src/Db/Enum.php index d826fa71..cff4d17c 100644 --- a/src/Db/Enum.php +++ b/src/Db/Enum.php @@ -64,6 +64,4 @@ class Enum const FETCH_UNIQUE = 196608; - - } diff --git a/src/Db/Index.php b/src/Db/Index.php index 586c8433..1832a2f8 100644 --- a/src/Db/Index.php +++ b/src/Db/Index.php @@ -99,5 +99,4 @@ public function getType(): string public function __construct(string $name, array $columns, string $type = '') { } - } diff --git a/src/Db/IndexInterface.php b/src/Db/IndexInterface.php index f1a7074c..d981c426 100644 --- a/src/Db/IndexInterface.php +++ b/src/Db/IndexInterface.php @@ -35,5 +35,4 @@ public function getName(): string; * @return string */ public function getType(): string; - } diff --git a/src/Db/Profiler.php b/src/Db/Profiler.php index c3abe718..aeb82f65 100644 --- a/src/Db/Profiler.php +++ b/src/Db/Profiler.php @@ -150,5 +150,4 @@ public function startProfile(string $sqlStatement, $sqlVariables = null, $sqlBin public function stopProfile(): Profiler { } - } diff --git a/src/Db/Profiler/Item.php b/src/Db/Profiler/Item.php index 24610248..71b5487b 100644 --- a/src/Db/Profiler/Item.php +++ b/src/Db/Profiler/Item.php @@ -148,5 +148,4 @@ public function getSqlVariables(): array public function getTotalElapsedSeconds(): float { } - } diff --git a/src/Db/RawValue.php b/src/Db/RawValue.php index 27a98c78..1ecfc9b1 100644 --- a/src/Db/RawValue.php +++ b/src/Db/RawValue.php @@ -59,5 +59,4 @@ public function __toString(): string public function __construct($value) { } - } diff --git a/src/Db/Reference.php b/src/Db/Reference.php index 5763cd2a..04964948 100644 --- a/src/Db/Reference.php +++ b/src/Db/Reference.php @@ -170,5 +170,4 @@ public function getOnUpdate(): string public function __construct(string $name, array $definition) { } - } diff --git a/src/Db/ReferenceInterface.php b/src/Db/ReferenceInterface.php index 9e2a3bf1..c28ff533 100644 --- a/src/Db/ReferenceInterface.php +++ b/src/Db/ReferenceInterface.php @@ -70,5 +70,4 @@ public function getReferencedTable(): string; * @return string */ public function getSchemaName(): string; - } diff --git a/src/Db/Result/Pdo.php b/src/Db/Result/Pdo.php index 4cbb2b9c..860aa319 100644 --- a/src/Db/Result/Pdo.php +++ b/src/Db/Result/Pdo.php @@ -9,9 +9,8 @@ */ namespace Phalcon\Db\Result; -use Phalcon\Db\Enum; -use Phalcon\Db\ResultInterface; use Phalcon\Db\Adapter\AdapterInterface; +use Phalcon\Db\Enum; /** * Encapsulates the resultset internals @@ -250,5 +249,4 @@ public function numRows(): int public function setFetchMode(int $fetchMode, $colNoOrClassNameOrObject = null, $ctorargs = null): bool { } - } diff --git a/src/Db/ResultInterface.php b/src/Db/ResultInterface.php index 2728004a..f9aa480a 100644 --- a/src/Db/ResultInterface.php +++ b/src/Db/ResultInterface.php @@ -80,5 +80,4 @@ public function numRows(): int; * @return bool */ public function setFetchMode(int $fetchMode): bool; - } diff --git a/src/Di.php b/src/Di.php index f37413e1..cda593b1 100644 --- a/src/Di.php +++ b/src/Di.php @@ -9,17 +9,9 @@ */ namespace Phalcon; -use Phalcon\Di\Service; use Phalcon\Di\DiInterface; -use Phalcon\Di\Exception; -use Phalcon\Di\Exception\ServiceResolutionException; -use Phalcon\Config\Adapter\Php; -use Phalcon\Config\Adapter\Yaml; -use Phalcon\Config\ConfigInterface; use Phalcon\Di\ServiceInterface; use Phalcon\Events\ManagerInterface; -use Phalcon\Di\InjectionAwareInterface; -use Phalcon\Di\ServiceProviderInterface; /** * Phalcon\Di is a component that implements Dependency Injection/Service @@ -87,7 +79,7 @@ class Di implements \Phalcon\Di\DiInterface * * @var DiInterface|null */ - static protected $_default; + protected static $_default; /** @@ -440,5 +432,4 @@ public function setService(string $name, \Phalcon\Di\ServiceInterface $rawDefini public function setShared(string $name, $definition): ServiceInterface { } - } diff --git a/src/Di/AbstractInjectionAware.php b/src/Di/AbstractInjectionAware.php index 08768fe1..1284aca8 100644 --- a/src/Di/AbstractInjectionAware.php +++ b/src/Di/AbstractInjectionAware.php @@ -40,5 +40,4 @@ public function getDI(): DiInterface public function setDI(DiInterface $container): void { } - } diff --git a/src/Di/DiInterface.php b/src/Di/DiInterface.php index 4162b5b1..1483068d 100644 --- a/src/Di/DiInterface.php +++ b/src/Di/DiInterface.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Di; -use ArrayAccess; - /** * Interface for Phalcon\Di */ @@ -136,5 +134,4 @@ public function setService(string $name, ServiceInterface $rawDefinition): Servi * @return ServiceInterface */ public function setShared(string $name, $definition): ServiceInterface; - } diff --git a/src/Di/FactoryDefault.php b/src/Di/FactoryDefault.php index 501926d9..6d8546f6 100644 --- a/src/Di/FactoryDefault.php +++ b/src/Di/FactoryDefault.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Di; -use Phalcon\Filter\FilterFactory; - /** * This is a variant of the standard Phalcon\Di. By default it automatically * registers all the services provided by the framework. Thanks to this, the @@ -26,5 +24,4 @@ class FactoryDefault extends \Phalcon\Di public function __construct() { } - } diff --git a/src/Di/FactoryDefault/Cli.php b/src/Di/FactoryDefault/Cli.php index 24d167c9..d2d3c9be 100644 --- a/src/Di/FactoryDefault/Cli.php +++ b/src/Di/FactoryDefault/Cli.php @@ -10,8 +10,6 @@ namespace Phalcon\Di\FactoryDefault; use Phalcon\Di\FactoryDefault; -use Phalcon\Di\Service; -use Phalcon\Filter\FilterFactory; /** * Phalcon\Di\FactoryDefault\Cli @@ -30,5 +28,4 @@ class Cli extends FactoryDefault public function __construct() { } - } diff --git a/src/Di/Injectable.php b/src/Di/Injectable.php index 9e13f485..616e4240 100644 --- a/src/Di/Injectable.php +++ b/src/Di/Injectable.php @@ -9,7 +9,6 @@ */ namespace Phalcon\Di; -use Phalcon\Di; use Phalcon\Session\BagInterface; /** @@ -89,5 +88,4 @@ public function getDI(): DiInterface public function setDI(DiInterface $container): void { } - } diff --git a/src/Di/InjectionAwareInterface.php b/src/Di/InjectionAwareInterface.php index 083644b4..ea9f32a3 100644 --- a/src/Di/InjectionAwareInterface.php +++ b/src/Di/InjectionAwareInterface.php @@ -30,5 +30,4 @@ public function setDI(DiInterface $container): void; * @return DiInterface */ public function getDI(): DiInterface; - } diff --git a/src/Di/Service.php b/src/Di/Service.php index 16dcdbd1..c324dd75 100644 --- a/src/Di/Service.php +++ b/src/Di/Service.php @@ -9,10 +9,6 @@ */ namespace Phalcon\Di; -use Closure; -use Phalcon\Di\Exception\ServiceResolutionException; -use Phalcon\Di\Service\Builder; - /** * Represents individually a service in the services container * @@ -146,5 +142,4 @@ public function setShared(bool $shared): void public function setSharedInstance($sharedInstance): void { } - } diff --git a/src/Di/Service/Builder.php b/src/Di/Service/Builder.php index a3079d45..b8a5a1f3 100644 --- a/src/Di/Service/Builder.php +++ b/src/Di/Service/Builder.php @@ -9,9 +9,6 @@ */ namespace Phalcon\Di\Service; -use Phalcon\Di\DiInterface; -use Phalcon\Di\Exception; - /** * Phalcon\Di\Service\Builder * @@ -54,5 +51,4 @@ private function buildParameter(\Phalcon\Di\DiInterface $container, int $positio private function buildParameters(\Phalcon\Di\DiInterface $container, array $arguments): array { } - } diff --git a/src/Di/ServiceInterface.php b/src/Di/ServiceInterface.php index 31af1fe3..52c09130 100644 --- a/src/Di/ServiceInterface.php +++ b/src/Di/ServiceInterface.php @@ -75,5 +75,4 @@ public function setParameter(int $position, array $parameter): ServiceInterface; * @param bool $shared */ public function setShared(bool $shared); - } diff --git a/src/Di/ServiceProviderInterface.php b/src/Di/ServiceProviderInterface.php index f79461e6..ba7e8226 100644 --- a/src/Di/ServiceProviderInterface.php +++ b/src/Di/ServiceProviderInterface.php @@ -43,5 +43,4 @@ interface ServiceProviderInterface * @return void */ public function register(DiInterface $di): void; - } diff --git a/src/Dispatcher/AbstractDispatcher.php b/src/Dispatcher/AbstractDispatcher.php index 5d8bba8b..f1a172d1 100644 --- a/src/Dispatcher/AbstractDispatcher.php +++ b/src/Dispatcher/AbstractDispatcher.php @@ -9,14 +9,8 @@ */ namespace Phalcon\Dispatcher; -use Exception; -use Phalcon\Di\DiInterface; use Phalcon\Di\AbstractInjectionAware; -use Phalcon\Dispatcher\Exception as PhalconException; -use Phalcon\Events\EventsAwareInterface; use Phalcon\Events\ManagerInterface; -use Phalcon\Filter\FilterInterface; -use Phalcon\Mvc\Model\Binder; use Phalcon\Mvc\Model\BinderInterface; /** @@ -518,5 +512,4 @@ protected function resolveEmptyProperties(): void protected function toCamelCase(string $input): string { } - } diff --git a/src/Dispatcher/DispatcherInterface.php b/src/Dispatcher/DispatcherInterface.php index db334445..2a2b5a83 100644 --- a/src/Dispatcher/DispatcherInterface.php +++ b/src/Dispatcher/DispatcherInterface.php @@ -162,5 +162,4 @@ public function setParam($param, $value): void; * @return void */ public function setParams(array $params): void; - } diff --git a/src/Dispatcher/Exception.php b/src/Dispatcher/Exception.php index fb0da6ee..940db816 100644 --- a/src/Dispatcher/Exception.php +++ b/src/Dispatcher/Exception.php @@ -31,6 +31,4 @@ class Exception extends \Phalcon\Exception const EXCEPTION_NO_DI = 0; - - } diff --git a/src/Domain/Payload/Payload.php b/src/Domain/Payload/Payload.php index 134b79c7..aa69fc5b 100644 --- a/src/Domain/Payload/Payload.php +++ b/src/Domain/Payload/Payload.php @@ -173,5 +173,4 @@ public function setOutput($output): PayloadInterface public function setStatus($status): PayloadInterface { } - } diff --git a/src/Domain/Payload/PayloadFactory.php b/src/Domain/Payload/PayloadFactory.php index 518657a0..adc02bfd 100644 --- a/src/Domain/Payload/PayloadFactory.php +++ b/src/Domain/Payload/PayloadFactory.php @@ -23,5 +23,4 @@ class PayloadFactory public function newInstance(): PayloadInterface { } - } diff --git a/src/Domain/Payload/ReadableInterface.php b/src/Domain/Payload/ReadableInterface.php index d787b7bc..c364d7a9 100644 --- a/src/Domain/Payload/ReadableInterface.php +++ b/src/Domain/Payload/ReadableInterface.php @@ -58,5 +58,4 @@ public function getOutput(); * @return mixed */ public function getStatus(); - } diff --git a/src/Domain/Payload/Status.php b/src/Domain/Payload/Status.php index 03f52886..292e2da0 100644 --- a/src/Domain/Payload/Status.php +++ b/src/Domain/Payload/Status.php @@ -81,5 +81,4 @@ class Status final private function __construct() { } - } diff --git a/src/Domain/Payload/WriteableInterface.php b/src/Domain/Payload/WriteableInterface.php index a0509926..f8e01c70 100644 --- a/src/Domain/Payload/WriteableInterface.php +++ b/src/Domain/Payload/WriteableInterface.php @@ -70,5 +70,4 @@ public function setOutput($output): PayloadInterface; * @return PayloadInterface */ public function setStatus($status): PayloadInterface; - } diff --git a/src/Escaper.php b/src/Escaper.php index 167f1fee..f7b06430 100644 --- a/src/Escaper.php +++ b/src/Escaper.php @@ -9,10 +9,6 @@ */ namespace Phalcon; -use Phalcon\Di\DiInterface; -use Phalcon\Escaper\EscaperInterface; -use Phalcon\Escaper\Exception; - /** * Phalcon\Escaper * @@ -247,5 +243,4 @@ public function setHtmlQuoteType(int $flags): void public function url(string $url): string { } - } diff --git a/src/Escaper/EscaperInterface.php b/src/Escaper/EscaperInterface.php index 5ee7a1a3..be336a5b 100644 --- a/src/Escaper/EscaperInterface.php +++ b/src/Escaper/EscaperInterface.php @@ -79,5 +79,4 @@ public function setEncoding(string $encoding): void; * @return void */ public function setHtmlQuoteType(int $quoteType): void; - } diff --git a/src/Events/Event.php b/src/Events/Event.php index a59342ca..a2c97950 100644 --- a/src/Events/Event.php +++ b/src/Events/Event.php @@ -159,5 +159,4 @@ public function setType(string $type): EventInterface public function stop(): EventInterface { } - } diff --git a/src/Events/EventInterface.php b/src/Events/EventInterface.php index 02ed6dd1..51e4b8e8 100644 --- a/src/Events/EventInterface.php +++ b/src/Events/EventInterface.php @@ -67,5 +67,4 @@ public function setType(string $type): EventInterface; * @return EventInterface */ public function stop(): EventInterface; - } diff --git a/src/Events/EventsAwareInterface.php b/src/Events/EventsAwareInterface.php index 4ee12e5c..de8c85c0 100644 --- a/src/Events/EventsAwareInterface.php +++ b/src/Events/EventsAwareInterface.php @@ -32,5 +32,4 @@ public function getEventsManager(): ?ManagerInterface; * @return void */ public function setEventsManager(ManagerInterface $eventsManager): void; - } diff --git a/src/Events/Manager.php b/src/Events/Manager.php index c3759a24..881cc9d4 100644 --- a/src/Events/Manager.php +++ b/src/Events/Manager.php @@ -9,9 +9,6 @@ */ namespace Phalcon\Events; -use Closure; -use SplPriorityQueue; - /** * Phalcon\Events\Manager * @@ -193,5 +190,4 @@ public function isCollecting(): bool public function isValidHandler($handler): bool { } - } diff --git a/src/Events/ManagerInterface.php b/src/Events/ManagerInterface.php index 619d34c7..188fd42e 100644 --- a/src/Events/ManagerInterface.php +++ b/src/Events/ManagerInterface.php @@ -70,5 +70,4 @@ public function getListeners(string $type): array; * @return bool */ public function hasListeners(string $type): bool; - } diff --git a/src/Exception.php b/src/Exception.php index 129c46bf..09a741b3 100644 --- a/src/Exception.php +++ b/src/Exception.php @@ -24,5 +24,4 @@ class Exception extends \Exception implements \Throwable public static function containerServiceNotFound(string $service): string { } - } diff --git a/src/Factory/AbstractFactory.php b/src/Factory/AbstractFactory.php index 589644ec..f4ef9bc0 100644 --- a/src/Factory/AbstractFactory.php +++ b/src/Factory/AbstractFactory.php @@ -9,9 +9,6 @@ */ namespace Phalcon\Factory; -use Phalcon\Config; -use Phalcon\Config\ConfigInterface; - /** * This file is part of the Phalcon Framework. * @@ -84,5 +81,4 @@ protected function init(array $services = []): void protected function getException(string $message): \Exception { } - } diff --git a/src/Filter.php b/src/Filter.php index 4cb2e4f1..a5705cc2 100644 --- a/src/Filter.php +++ b/src/Filter.php @@ -9,10 +9,6 @@ */ namespace Phalcon; -use Closure; -use Phalcon\Filter\Exception; -use Phalcon\Filter\FilterInterface; - /** * Lazy loads, stores and exposes sanitizer objects */ @@ -179,5 +175,4 @@ private function processArrayValues(array $values, string $sanitizerName, array private function sanitizer($value, string $sanitizerName, array $sanitizerParams = []) { } - } diff --git a/src/Filter/FilterFactory.php b/src/Filter/FilterFactory.php index 54b0aaf4..b2b9ffd5 100644 --- a/src/Filter/FilterFactory.php +++ b/src/Filter/FilterFactory.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Filter; -use Phalcon\Filter; - /** * This file is part of the Phalcon Framework. * @@ -38,5 +36,4 @@ public function newInstance(): FilterInterface protected function getAdapters(): array { } - } diff --git a/src/Filter/FilterInterface.php b/src/Filter/FilterInterface.php index a455a176..f7922641 100644 --- a/src/Filter/FilterInterface.php +++ b/src/Filter/FilterInterface.php @@ -24,5 +24,4 @@ interface FilterInterface * @return mixed */ public function sanitize($value, $sanitizers, bool $noRecursive = false); - } diff --git a/src/Filter/Sanitize/AbsInt.php b/src/Filter/Sanitize/AbsInt.php index 5b155476..3aabb4f2 100644 --- a/src/Filter/Sanitize/AbsInt.php +++ b/src/Filter/Sanitize/AbsInt.php @@ -23,5 +23,4 @@ class AbsInt public function __invoke($input) { } - } diff --git a/src/Filter/Sanitize/Alnum.php b/src/Filter/Sanitize/Alnum.php index 29516b2e..a715f0df 100644 --- a/src/Filter/Sanitize/Alnum.php +++ b/src/Filter/Sanitize/Alnum.php @@ -23,5 +23,4 @@ class Alnum public function __invoke($input) { } - } diff --git a/src/Filter/Sanitize/Alpha.php b/src/Filter/Sanitize/Alpha.php index 65c9ad74..33eefae7 100644 --- a/src/Filter/Sanitize/Alpha.php +++ b/src/Filter/Sanitize/Alpha.php @@ -23,5 +23,4 @@ class Alpha public function __invoke($input) { } - } diff --git a/src/Filter/Sanitize/BoolVal.php b/src/Filter/Sanitize/BoolVal.php index 09aa4364..67d8ec37 100644 --- a/src/Filter/Sanitize/BoolVal.php +++ b/src/Filter/Sanitize/BoolVal.php @@ -23,5 +23,4 @@ class BoolVal public function __invoke($input) { } - } diff --git a/src/Filter/Sanitize/Email.php b/src/Filter/Sanitize/Email.php index 5dfab0c8..26f81b73 100644 --- a/src/Filter/Sanitize/Email.php +++ b/src/Filter/Sanitize/Email.php @@ -23,5 +23,4 @@ class Email public function __invoke($input) { } - } diff --git a/src/Filter/Sanitize/FloatVal.php b/src/Filter/Sanitize/FloatVal.php index 6341decf..8ab85789 100644 --- a/src/Filter/Sanitize/FloatVal.php +++ b/src/Filter/Sanitize/FloatVal.php @@ -23,5 +23,4 @@ class FloatVal public function __invoke($input) { } - } diff --git a/src/Filter/Sanitize/IntVal.php b/src/Filter/Sanitize/IntVal.php index 1583ff87..dac4e5c3 100644 --- a/src/Filter/Sanitize/IntVal.php +++ b/src/Filter/Sanitize/IntVal.php @@ -23,5 +23,4 @@ class IntVal public function __invoke($input) { } - } diff --git a/src/Filter/Sanitize/Lower.php b/src/Filter/Sanitize/Lower.php index a61fa1c6..c25fda7c 100644 --- a/src/Filter/Sanitize/Lower.php +++ b/src/Filter/Sanitize/Lower.php @@ -23,5 +23,4 @@ class Lower public function __invoke(string $input) { } - } diff --git a/src/Filter/Sanitize/LowerFirst.php b/src/Filter/Sanitize/LowerFirst.php index d331cf11..9595ffff 100644 --- a/src/Filter/Sanitize/LowerFirst.php +++ b/src/Filter/Sanitize/LowerFirst.php @@ -23,5 +23,4 @@ class LowerFirst public function __invoke(string $input) { } - } diff --git a/src/Filter/Sanitize/Regex.php b/src/Filter/Sanitize/Regex.php index 8817613c..7441191b 100644 --- a/src/Filter/Sanitize/Regex.php +++ b/src/Filter/Sanitize/Regex.php @@ -25,5 +25,4 @@ class Regex public function __invoke($input, $pattern, $replace) { } - } diff --git a/src/Filter/Sanitize/Remove.php b/src/Filter/Sanitize/Remove.php index 1c7a90e5..a8225560 100644 --- a/src/Filter/Sanitize/Remove.php +++ b/src/Filter/Sanitize/Remove.php @@ -24,5 +24,4 @@ class Remove public function __invoke($input, $replace) { } - } diff --git a/src/Filter/Sanitize/Replace.php b/src/Filter/Sanitize/Replace.php index 05a72069..6a60ca8f 100644 --- a/src/Filter/Sanitize/Replace.php +++ b/src/Filter/Sanitize/Replace.php @@ -25,5 +25,4 @@ class Replace public function __invoke($input, $from, $to) { } - } diff --git a/src/Filter/Sanitize/Special.php b/src/Filter/Sanitize/Special.php index 33735f44..9ab25623 100644 --- a/src/Filter/Sanitize/Special.php +++ b/src/Filter/Sanitize/Special.php @@ -23,5 +23,4 @@ class Special public function __invoke($input) { } - } diff --git a/src/Filter/Sanitize/SpecialFull.php b/src/Filter/Sanitize/SpecialFull.php index 5170dfb7..f57bad76 100644 --- a/src/Filter/Sanitize/SpecialFull.php +++ b/src/Filter/Sanitize/SpecialFull.php @@ -23,5 +23,4 @@ class SpecialFull public function __invoke($input) { } - } diff --git a/src/Filter/Sanitize/StringVal.php b/src/Filter/Sanitize/StringVal.php index 798afafc..a2fcb069 100644 --- a/src/Filter/Sanitize/StringVal.php +++ b/src/Filter/Sanitize/StringVal.php @@ -23,5 +23,4 @@ class StringVal public function __invoke($input) { } - } diff --git a/src/Filter/Sanitize/Striptags.php b/src/Filter/Sanitize/Striptags.php index 94588b4a..0b8a60b2 100644 --- a/src/Filter/Sanitize/Striptags.php +++ b/src/Filter/Sanitize/Striptags.php @@ -23,5 +23,4 @@ class Striptags public function __invoke(string $input) { } - } diff --git a/src/Filter/Sanitize/Trim.php b/src/Filter/Sanitize/Trim.php index 73b27c53..4d20bd15 100644 --- a/src/Filter/Sanitize/Trim.php +++ b/src/Filter/Sanitize/Trim.php @@ -23,5 +23,4 @@ class Trim public function __invoke(string $input) { } - } diff --git a/src/Filter/Sanitize/Upper.php b/src/Filter/Sanitize/Upper.php index b6232b24..73eaa13a 100644 --- a/src/Filter/Sanitize/Upper.php +++ b/src/Filter/Sanitize/Upper.php @@ -23,5 +23,4 @@ class Upper public function __invoke(string $input) { } - } diff --git a/src/Filter/Sanitize/UpperFirst.php b/src/Filter/Sanitize/UpperFirst.php index 29abcedd..52a48308 100644 --- a/src/Filter/Sanitize/UpperFirst.php +++ b/src/Filter/Sanitize/UpperFirst.php @@ -23,5 +23,4 @@ class UpperFirst public function __invoke(string $input) { } - } diff --git a/src/Filter/Sanitize/UpperWords.php b/src/Filter/Sanitize/UpperWords.php index 3f7fb9ee..497cf04f 100644 --- a/src/Filter/Sanitize/UpperWords.php +++ b/src/Filter/Sanitize/UpperWords.php @@ -23,5 +23,4 @@ class UpperWords public function __invoke(string $input) { } - } diff --git a/src/Filter/Sanitize/Url.php b/src/Filter/Sanitize/Url.php index fdd131c4..8a9ee8d9 100644 --- a/src/Filter/Sanitize/Url.php +++ b/src/Filter/Sanitize/Url.php @@ -23,5 +23,4 @@ class Url public function __invoke($input) { } - } diff --git a/src/Flash/AbstractFlash.php b/src/Flash/AbstractFlash.php index df6b5037..843c4bd9 100644 --- a/src/Flash/AbstractFlash.php +++ b/src/Flash/AbstractFlash.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Flash; -use Phalcon\Di; -use Phalcon\Di\DiInterface; use Phalcon\Di\AbstractInjectionAware; use Phalcon\Escaper\EscaperInterface; use Phalcon\Session\ManagerInterface as SessionInterface; @@ -278,5 +276,4 @@ private function prepareEscapedMessage(string $message): string private function prepareHtmlMessage(string $type, string $message): string { } - } diff --git a/src/Flash/Direct.php b/src/Flash/Direct.php index c903cf84..59e69d9f 100644 --- a/src/Flash/Direct.php +++ b/src/Flash/Direct.php @@ -36,5 +36,4 @@ public function message(string $type, $message): ?string public function output(bool $remove = true): void { } - } diff --git a/src/Flash/FlashInterface.php b/src/Flash/FlashInterface.php index a459ca0f..5e5824bf 100644 --- a/src/Flash/FlashInterface.php +++ b/src/Flash/FlashInterface.php @@ -57,5 +57,4 @@ public function success(string $message): ?string; * @param string $message */ public function warning(string $message): ?string; - } diff --git a/src/Flash/Session.php b/src/Flash/Session.php index fc4a0066..35a3036c 100644 --- a/src/Flash/Session.php +++ b/src/Flash/Session.php @@ -9,7 +9,6 @@ */ namespace Phalcon\Flash; -use Phalcon\Di\DiInterface; use Phalcon\Session\ManagerInterface; /** @@ -103,5 +102,4 @@ protected function setSessionMessages(array $messages): array public function getSessionService(): ManagerInterface { } - } diff --git a/src/Forms/Element/AbstractElement.php b/src/Forms/Element/AbstractElement.php index 2f776b4a..4fdca846 100644 --- a/src/Forms/Element/AbstractElement.php +++ b/src/Forms/Element/AbstractElement.php @@ -9,13 +9,8 @@ */ namespace Phalcon\Forms\Element; -use InvalidArgumentException; use Phalcon\Forms\Form; -use Phalcon\Forms\Exception; -use Phalcon\Messages\MessageInterface; use Phalcon\Messages\Messages; -use Phalcon\Tag; -use Phalcon\Validation\ValidatorInterface; /** * This is a base class for form elements @@ -383,5 +378,4 @@ public function setUserOption(string $option, $value): ElementInterface public function setUserOptions(array $options): ElementInterface { } - } diff --git a/src/Forms/Element/Check.php b/src/Forms/Element/Check.php index d028c0d3..9142911e 100644 --- a/src/Forms/Element/Check.php +++ b/src/Forms/Element/Check.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Forms\Element; -use Phalcon\Tag; - /** * Phalcon\Forms\Element\Check * @@ -28,5 +26,4 @@ class Check extends \Phalcon\Forms\Element\AbstractElement public function render(array $attributes = []): string { } - } diff --git a/src/Forms/Element/Date.php b/src/Forms/Element/Date.php index 497ad8a0..f01dede3 100644 --- a/src/Forms/Element/Date.php +++ b/src/Forms/Element/Date.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Forms\Element; -use Phalcon\Tag; - /** * Component INPUT[type=date] for forms */ @@ -26,5 +24,4 @@ class Date extends \Phalcon\Forms\Element\AbstractElement public function render(array $attributes = []): string { } - } diff --git a/src/Forms/Element/ElementInterface.php b/src/Forms/Element/ElementInterface.php index 3cbaa21f..60473d50 100644 --- a/src/Forms/Element/ElementInterface.php +++ b/src/Forms/Element/ElementInterface.php @@ -10,9 +10,7 @@ namespace Phalcon\Forms\Element; use Phalcon\Forms\Form; -use Phalcon\Messages\MessageInterface; use Phalcon\Messages\Messages; -use Phalcon\Validation\ValidatorInterface; /** * Interface for Phalcon\Forms\Element classes @@ -263,5 +261,4 @@ public function setUserOption(string $option, $value): ElementInterface; * @return ElementInterface */ public function setUserOptions(array $options): ElementInterface; - } diff --git a/src/Forms/Element/Email.php b/src/Forms/Element/Email.php index 2ab7cb78..a3d57ead 100644 --- a/src/Forms/Element/Email.php +++ b/src/Forms/Element/Email.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Forms\Element; -use Phalcon\Tag; - /** * Phalcon\Forms\Element\Email * @@ -28,5 +26,4 @@ class Email extends \Phalcon\Forms\Element\AbstractElement public function render(array $attributes = []): string { } - } diff --git a/src/Forms/Element/File.php b/src/Forms/Element/File.php index a0d0af35..9e5151b9 100644 --- a/src/Forms/Element/File.php +++ b/src/Forms/Element/File.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Forms\Element; -use Phalcon\Tag; - /** * Component INPUT[type=file] for forms */ @@ -26,5 +24,4 @@ class File extends \Phalcon\Forms\Element\AbstractElement public function render(array $attributes = []): string { } - } diff --git a/src/Forms/Element/Hidden.php b/src/Forms/Element/Hidden.php index 7e9b47f0..8f8c7ec5 100644 --- a/src/Forms/Element/Hidden.php +++ b/src/Forms/Element/Hidden.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Forms\Element; -use Phalcon\Tag; - /** * Phalcon\Forms\Element\Hidden * @@ -28,5 +26,4 @@ class Hidden extends \Phalcon\Forms\Element\AbstractElement public function render(array $attributes = []): string { } - } diff --git a/src/Forms/Element/Numeric.php b/src/Forms/Element/Numeric.php index 40900e7c..f3969abd 100644 --- a/src/Forms/Element/Numeric.php +++ b/src/Forms/Element/Numeric.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Forms\Element; -use Phalcon\Tag; - /** * Phalcon\Forms\Element\Numeric * @@ -28,5 +26,4 @@ class Numeric extends \Phalcon\Forms\Element\AbstractElement public function render(array $attributes = []): string { } - } diff --git a/src/Forms/Element/Password.php b/src/Forms/Element/Password.php index a19d8fba..d208a2fe 100644 --- a/src/Forms/Element/Password.php +++ b/src/Forms/Element/Password.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Forms\Element; -use Phalcon\Tag; - /** * Phalcon\Forms\Element\Password * @@ -28,5 +26,4 @@ class Password extends \Phalcon\Forms\Element\AbstractElement public function render(array $attributes = []): string { } - } diff --git a/src/Forms/Element/Radio.php b/src/Forms/Element/Radio.php index e5e2e655..a538f718 100644 --- a/src/Forms/Element/Radio.php +++ b/src/Forms/Element/Radio.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Forms\Element; -use Phalcon\Tag; - /** * Phalcon\Forms\Element\Radio * @@ -28,5 +26,4 @@ class Radio extends \Phalcon\Forms\Element\AbstractElement public function render(array $attributes = []): string { } - } diff --git a/src/Forms/Element/Select.php b/src/Forms/Element/Select.php index 28a7c46d..8a0e1ffd 100644 --- a/src/Forms/Element/Select.php +++ b/src/Forms/Element/Select.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Forms\Element; -use Phalcon\Tag\Select as SelectTag; - /** * Phalcon\Forms\Element\Select * @@ -73,5 +71,4 @@ public function render(array $attributes = []): string public function setOptions($options): ElementInterface { } - } diff --git a/src/Forms/Element/Submit.php b/src/Forms/Element/Submit.php index 72800381..95444354 100644 --- a/src/Forms/Element/Submit.php +++ b/src/Forms/Element/Submit.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Forms\Element; -use Phalcon\Tag; - /** * Component INPUT[type=submit] for forms */ @@ -26,5 +24,4 @@ class Submit extends \Phalcon\Forms\Element\AbstractElement public function render(array $attributes = []): string { } - } diff --git a/src/Forms/Element/Text.php b/src/Forms/Element/Text.php index 1dfc15c3..03bb1f93 100644 --- a/src/Forms/Element/Text.php +++ b/src/Forms/Element/Text.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Forms\Element; -use Phalcon\Tag; - /** * Phalcon\Forms\Element\Text * @@ -28,5 +26,4 @@ class Text extends \Phalcon\Forms\Element\AbstractElement public function render(array $attributes = []): string { } - } diff --git a/src/Forms/Element/TextArea.php b/src/Forms/Element/TextArea.php index 2ccc6b14..f8679dbd 100644 --- a/src/Forms/Element/TextArea.php +++ b/src/Forms/Element/TextArea.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Forms\Element; -use Phalcon\Tag; - /** * Component TEXTAREA for forms */ @@ -26,5 +24,4 @@ class TextArea extends \Phalcon\Forms\Element\AbstractElement public function render(array $attributes = []): string { } - } diff --git a/src/Forms/Form.php b/src/Forms/Form.php index 2f5669fc..732f53dc 100644 --- a/src/Forms/Form.php +++ b/src/Forms/Form.php @@ -9,17 +9,11 @@ */ namespace Phalcon\Forms; -use Countable; -use Iterator; use Phalcon\Di\Injectable; -use Phalcon\Di\DiInterface; -use Phalcon\Filter\FilterInterface; use Phalcon\Forms\Element\ElementInterface; use Phalcon\Html\Attributes; use Phalcon\Html\Attributes\AttributesInterface; use Phalcon\Messages\Messages; -use Phalcon\Tag; -use Phalcon\Validation; use Phalcon\Validation\ValidationInterface; /** @@ -413,5 +407,4 @@ public function setUserOptions(array $options): Form public function valid(): bool { } - } diff --git a/src/Forms/Manager.php b/src/Forms/Manager.php index 2029599e..930e8e43 100644 --- a/src/Forms/Manager.php +++ b/src/Forms/Manager.php @@ -61,5 +61,4 @@ public function has(string $name): bool public function set(string $name, Form $form): Manager { } - } diff --git a/src/Helper/Arr.php b/src/Helper/Arr.php index 12a61eeb..0d0c3445 100644 --- a/src/Helper/Arr.php +++ b/src/Helper/Arr.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Helper; -use stdClass; - /** * This class offers quick array functions throughout the framework */ @@ -291,5 +289,4 @@ final public static function validateAny(array $collection, $method = null): boo final public static function whiteList(array $collection, array $whiteList): array { } - } diff --git a/src/Helper/Base64.php b/src/Helper/Base64.php index 0c1ee79c..7ec2a830 100644 --- a/src/Helper/Base64.php +++ b/src/Helper/Base64.php @@ -38,5 +38,4 @@ final public static function encodeUrl(string $input): string final public static function decodeUrl(string $input): string { } - } diff --git a/src/Helper/Fs.php b/src/Helper/Fs.php index ada075bd..b0ad9265 100644 --- a/src/Helper/Fs.php +++ b/src/Helper/Fs.php @@ -28,5 +28,4 @@ class Fs final public static function basename(string $uri, $suffix = null): string { } - } diff --git a/src/Helper/Json.php b/src/Helper/Json.php index 110f3160..3ee32285 100644 --- a/src/Helper/Json.php +++ b/src/Helper/Json.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Helper; -use InvalidArgumentException; - /** * This class offers a wrapper for JSON methods to serialize and unserialize */ @@ -75,5 +73,4 @@ final public static function decode(string $data, bool $associative = false, int final public static function encode($data, int $options = 0, int $depth = 512): string { } - } diff --git a/src/Helper/Number.php b/src/Helper/Number.php index be55148b..09e62a95 100644 --- a/src/Helper/Number.php +++ b/src/Helper/Number.php @@ -28,5 +28,4 @@ class Number final public static function between(int $value, int $from, int $to): bool { } - } diff --git a/src/Helper/Str.php b/src/Helper/Str.php index 85f93a6c..6dc027d3 100644 --- a/src/Helper/Str.php +++ b/src/Helper/Str.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Helper; -use RuntimeException; - /** * This class offers quick string functions throughout the framework */ @@ -477,5 +475,4 @@ final public static function underscore(string $text): string final public static function upper(string $text, string $encoding = 'UTF-8'): string { } - } diff --git a/src/Html/Attributes.php b/src/Html/Attributes.php index 41d7c774..d431bbcc 100644 --- a/src/Html/Attributes.php +++ b/src/Html/Attributes.php @@ -10,8 +10,6 @@ namespace Phalcon\Html; use Phalcon\Collection; -use Phalcon\Html\Attributes\RenderInterface; -use Phalcon\Tag; /** * This class helps to work with HTML Attributes @@ -36,5 +34,4 @@ public function render(): string public function __toString(): string { } - } diff --git a/src/Html/Attributes/AttributesInterface.php b/src/Html/Attributes/AttributesInterface.php index b0cb7391..8d5a50e0 100644 --- a/src/Html/Attributes/AttributesInterface.php +++ b/src/Html/Attributes/AttributesInterface.php @@ -33,5 +33,4 @@ public function getAttributes(): Attributes; * @return AttributesInterface */ public function setAttributes(\Phalcon\Html\Attributes $attributes): AttributesInterface; - } diff --git a/src/Html/Attributes/RenderInterface.php b/src/Html/Attributes/RenderInterface.php index d2a71e41..7fb01f6a 100644 --- a/src/Html/Attributes/RenderInterface.php +++ b/src/Html/Attributes/RenderInterface.php @@ -23,5 +23,4 @@ interface RenderInterface * @return string */ public function render(): string; - } diff --git a/src/Html/Breadcrumbs.php b/src/Html/Breadcrumbs.php index 08393d1f..706593c8 100644 --- a/src/Html/Breadcrumbs.php +++ b/src/Html/Breadcrumbs.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Html; -use Phalcon\Di\DiInterface; - /** * Phalcon\Html\Breadcrumbs * @@ -130,5 +128,4 @@ public function render(): string public function toArray(): array { } - } diff --git a/src/Html/Helper/AbstractHelper.php b/src/Html/Helper/AbstractHelper.php index df77bd83..61a64086 100644 --- a/src/Html/Helper/AbstractHelper.php +++ b/src/Html/Helper/AbstractHelper.php @@ -161,5 +161,4 @@ protected function renderTag(string $tag, array $attributes = [], string $close protected function selfClose(string $tag, array $attributes = []): string { } - } diff --git a/src/Html/Helper/AbstractList.php b/src/Html/Helper/AbstractList.php index 3c6ab1c0..c6ab107d 100644 --- a/src/Html/Helper/AbstractList.php +++ b/src/Html/Helper/AbstractList.php @@ -61,5 +61,4 @@ public function __toString() * */ abstract protected function getTag(): string; - } diff --git a/src/Html/Helper/AbstractSeries.php b/src/Html/Helper/AbstractSeries.php index 56328955..c39df702 100644 --- a/src/Html/Helper/AbstractSeries.php +++ b/src/Html/Helper/AbstractSeries.php @@ -50,5 +50,4 @@ public function __toString() * @return string */ abstract protected function getTag(): string; - } diff --git a/src/Html/Helper/Anchor.php b/src/Html/Helper/Anchor.php index 14b68051..43698e2e 100644 --- a/src/Html/Helper/Anchor.php +++ b/src/Html/Helper/Anchor.php @@ -41,5 +41,4 @@ public function __invoke(string $href, string $text, array $attributes = [], boo protected function processAttributes(string $href, array $attributes): array { } - } diff --git a/src/Html/Helper/Base.php b/src/Html/Helper/Base.php index 9bd2696a..1a78c430 100644 --- a/src/Html/Helper/Base.php +++ b/src/Html/Helper/Base.php @@ -29,5 +29,4 @@ class Base extends \Phalcon\Html\Helper\AbstractHelper public function __invoke(string $href = null, array $attributes = []): string { } - } diff --git a/src/Html/Helper/Body.php b/src/Html/Helper/Body.php index c5975ee7..f18eaf0e 100644 --- a/src/Html/Helper/Body.php +++ b/src/Html/Helper/Body.php @@ -28,5 +28,4 @@ class Body extends \Phalcon\Html\Helper\AbstractHelper public function __invoke(array $attributes = []): string { } - } diff --git a/src/Html/Helper/Button.php b/src/Html/Helper/Button.php index 32cd8765..ff246f4c 100644 --- a/src/Html/Helper/Button.php +++ b/src/Html/Helper/Button.php @@ -30,5 +30,4 @@ class Button extends \Phalcon\Html\Helper\AbstractHelper public function __invoke(string $text, array $attributes = [], bool $raw = false): string { } - } diff --git a/src/Html/Helper/Close.php b/src/Html/Helper/Close.php index 2fe336e1..8585c6b6 100644 --- a/src/Html/Helper/Close.php +++ b/src/Html/Helper/Close.php @@ -26,5 +26,4 @@ class Close extends \Phalcon\Html\Helper\AbstractHelper public function __invoke(string $tag, bool $raw = false): string { } - } diff --git a/src/Html/Helper/Element.php b/src/Html/Helper/Element.php index b58f5c0b..327d0d76 100644 --- a/src/Html/Helper/Element.php +++ b/src/Html/Helper/Element.php @@ -31,5 +31,4 @@ class Element extends \Phalcon\Html\Helper\AbstractHelper public function __invoke(string $tag, string $text, array $attributes = [], bool $raw = false): string { } - } diff --git a/src/Html/Helper/Form.php b/src/Html/Helper/Form.php index ec4895f4..852e65e4 100644 --- a/src/Html/Helper/Form.php +++ b/src/Html/Helper/Form.php @@ -28,5 +28,4 @@ class Form extends \Phalcon\Html\Helper\AbstractHelper public function __invoke(array $attributes = []): string { } - } diff --git a/src/Html/Helper/Img.php b/src/Html/Helper/Img.php index 08241146..43cfa6e3 100644 --- a/src/Html/Helper/Img.php +++ b/src/Html/Helper/Img.php @@ -29,5 +29,4 @@ class Img extends \Phalcon\Html\Helper\AbstractHelper public function __invoke(string $src, array $attributes = []): string { } - } diff --git a/src/Html/Helper/Input/AbstractInput.php b/src/Html/Helper/Input/AbstractInput.php index 4bf2ef6d..31dced3b 100644 --- a/src/Html/Helper/Input/AbstractInput.php +++ b/src/Html/Helper/Input/AbstractInput.php @@ -61,5 +61,4 @@ public function __toString() public function setValue(string $value = null): AbstractInput { } - } diff --git a/src/Html/Helper/Input/Checkbox.php b/src/Html/Helper/Input/Checkbox.php index bb2229eb..c319dace 100644 --- a/src/Html/Helper/Input/Checkbox.php +++ b/src/Html/Helper/Input/Checkbox.php @@ -10,7 +10,6 @@ namespace Phalcon\Html\Helper\Input; use Phalcon\Escaper\EscaperInterface; -use Phalcon\Helper\Arr; /** * Class Checkbox @@ -76,5 +75,4 @@ private function processChecked(): void private function processUnchecked(): string { } - } diff --git a/src/Html/Helper/Input/Color.php b/src/Html/Helper/Input/Color.php index c1b62eed..d4303302 100644 --- a/src/Html/Helper/Input/Color.php +++ b/src/Html/Helper/Input/Color.php @@ -16,6 +16,4 @@ class Color extends \Phalcon\Html\Helper\Input\AbstractInput { protected $type = 'color'; - - } diff --git a/src/Html/Helper/Input/Date.php b/src/Html/Helper/Input/Date.php index 2280656c..c3659185 100644 --- a/src/Html/Helper/Input/Date.php +++ b/src/Html/Helper/Input/Date.php @@ -16,6 +16,4 @@ class Date extends \Phalcon\Html\Helper\Input\AbstractInput { protected $type = 'date'; - - } diff --git a/src/Html/Helper/Input/DateTime.php b/src/Html/Helper/Input/DateTime.php index 4fa14308..9baefdba 100644 --- a/src/Html/Helper/Input/DateTime.php +++ b/src/Html/Helper/Input/DateTime.php @@ -16,6 +16,4 @@ class DateTime extends \Phalcon\Html\Helper\Input\AbstractInput { protected $type = 'datetime'; - - } diff --git a/src/Html/Helper/Input/DateTimeLocal.php b/src/Html/Helper/Input/DateTimeLocal.php index 8005e624..a7cde6e1 100644 --- a/src/Html/Helper/Input/DateTimeLocal.php +++ b/src/Html/Helper/Input/DateTimeLocal.php @@ -16,6 +16,4 @@ class DateTimeLocal extends \Phalcon\Html\Helper\Input\AbstractInput { protected $type = 'datetime-local'; - - } diff --git a/src/Html/Helper/Input/Email.php b/src/Html/Helper/Input/Email.php index a6c85d9f..fedf67ab 100644 --- a/src/Html/Helper/Input/Email.php +++ b/src/Html/Helper/Input/Email.php @@ -16,6 +16,4 @@ class Email extends \Phalcon\Html\Helper\Input\AbstractInput { protected $type = 'email'; - - } diff --git a/src/Html/Helper/Input/File.php b/src/Html/Helper/Input/File.php index b3965b4d..44eba200 100644 --- a/src/Html/Helper/Input/File.php +++ b/src/Html/Helper/Input/File.php @@ -16,6 +16,4 @@ class File extends \Phalcon\Html\Helper\Input\AbstractInput { protected $type = 'file'; - - } diff --git a/src/Html/Helper/Input/Hidden.php b/src/Html/Helper/Input/Hidden.php index 6d42baf8..bef01342 100644 --- a/src/Html/Helper/Input/Hidden.php +++ b/src/Html/Helper/Input/Hidden.php @@ -16,6 +16,4 @@ class Hidden extends \Phalcon\Html\Helper\Input\AbstractInput { protected $type = 'hidden'; - - } diff --git a/src/Html/Helper/Input/Image.php b/src/Html/Helper/Input/Image.php index 9db54695..b95b3862 100644 --- a/src/Html/Helper/Input/Image.php +++ b/src/Html/Helper/Input/Image.php @@ -16,6 +16,4 @@ class Image extends \Phalcon\Html\Helper\Input\AbstractInput { protected $type = 'image'; - - } diff --git a/src/Html/Helper/Input/Input.php b/src/Html/Helper/Input/Input.php index a51f05f9..292ac159 100644 --- a/src/Html/Helper/Input/Input.php +++ b/src/Html/Helper/Input/Input.php @@ -25,5 +25,4 @@ class Input extends \Phalcon\Html\Helper\Input\AbstractInput public function setType(string $type): AbstractInput { } - } diff --git a/src/Html/Helper/Input/Month.php b/src/Html/Helper/Input/Month.php index e8bac5dd..1277695f 100644 --- a/src/Html/Helper/Input/Month.php +++ b/src/Html/Helper/Input/Month.php @@ -16,6 +16,4 @@ class Month extends \Phalcon\Html\Helper\Input\AbstractInput { protected $type = 'month'; - - } diff --git a/src/Html/Helper/Input/Numeric.php b/src/Html/Helper/Input/Numeric.php index 4b012fec..faa404ee 100644 --- a/src/Html/Helper/Input/Numeric.php +++ b/src/Html/Helper/Input/Numeric.php @@ -16,6 +16,4 @@ class Numeric extends \Phalcon\Html\Helper\Input\AbstractInput { protected $type = 'numeric'; - - } diff --git a/src/Html/Helper/Input/Password.php b/src/Html/Helper/Input/Password.php index c874ac18..21a41dca 100644 --- a/src/Html/Helper/Input/Password.php +++ b/src/Html/Helper/Input/Password.php @@ -16,6 +16,4 @@ class Password extends \Phalcon\Html\Helper\Input\AbstractInput { protected $type = 'password'; - - } diff --git a/src/Html/Helper/Input/Radio.php b/src/Html/Helper/Input/Radio.php index 9934c5bf..822cbc0e 100644 --- a/src/Html/Helper/Input/Radio.php +++ b/src/Html/Helper/Input/Radio.php @@ -18,6 +18,4 @@ class Radio extends \Phalcon\Html\Helper\Input\Checkbox * @var string */ protected $type = 'radio'; - - } diff --git a/src/Html/Helper/Input/Range.php b/src/Html/Helper/Input/Range.php index 1d2d91cb..63af7259 100644 --- a/src/Html/Helper/Input/Range.php +++ b/src/Html/Helper/Input/Range.php @@ -16,6 +16,4 @@ class Range extends \Phalcon\Html\Helper\Input\AbstractInput { protected $type = 'range'; - - } diff --git a/src/Html/Helper/Input/Search.php b/src/Html/Helper/Input/Search.php index a8ca630f..a97c1f51 100644 --- a/src/Html/Helper/Input/Search.php +++ b/src/Html/Helper/Input/Search.php @@ -16,6 +16,4 @@ class Search extends \Phalcon\Html\Helper\Input\AbstractInput { protected $type = 'search'; - - } diff --git a/src/Html/Helper/Input/Select.php b/src/Html/Helper/Input/Select.php index e9c3a25e..6b65b7a2 100644 --- a/src/Html/Helper/Input/Select.php +++ b/src/Html/Helper/Input/Select.php @@ -121,5 +121,4 @@ protected function optGroupStart(string $label, array $attributes): string private function processValue(array $attributes, $value = null): array { } - } diff --git a/src/Html/Helper/Input/Submit.php b/src/Html/Helper/Input/Submit.php index 04922331..b378519d 100644 --- a/src/Html/Helper/Input/Submit.php +++ b/src/Html/Helper/Input/Submit.php @@ -16,6 +16,4 @@ class Submit extends \Phalcon\Html\Helper\Input\AbstractInput { protected $type = 'submit'; - - } diff --git a/src/Html/Helper/Input/Tel.php b/src/Html/Helper/Input/Tel.php index fc16f128..5a5678ce 100644 --- a/src/Html/Helper/Input/Tel.php +++ b/src/Html/Helper/Input/Tel.php @@ -16,6 +16,4 @@ class Tel extends \Phalcon\Html\Helper\Input\AbstractInput { protected $type = 'tel'; - - } diff --git a/src/Html/Helper/Input/Textarea.php b/src/Html/Helper/Input/Textarea.php index a4b3a3a4..a79e97b6 100644 --- a/src/Html/Helper/Input/Textarea.php +++ b/src/Html/Helper/Input/Textarea.php @@ -9,7 +9,6 @@ */ namespace Phalcon\Html\Helper\Input; -use Phalcon\Helper\Arr; use Phalcon\Html\Exception; /** @@ -32,5 +31,4 @@ class Textarea extends \Phalcon\Html\Helper\Input\AbstractInput public function __toString() { } - } diff --git a/src/Html/Helper/Input/Time.php b/src/Html/Helper/Input/Time.php index 1d85010f..a7a1bf8f 100644 --- a/src/Html/Helper/Input/Time.php +++ b/src/Html/Helper/Input/Time.php @@ -16,6 +16,4 @@ class Time extends \Phalcon\Html\Helper\Input\AbstractInput { protected $type = 'time'; - - } diff --git a/src/Html/Helper/Input/Url.php b/src/Html/Helper/Input/Url.php index 9770c05d..ec559e10 100644 --- a/src/Html/Helper/Input/Url.php +++ b/src/Html/Helper/Input/Url.php @@ -16,6 +16,4 @@ class Url extends \Phalcon\Html\Helper\Input\AbstractInput { protected $type = 'url'; - - } diff --git a/src/Html/Helper/Input/Week.php b/src/Html/Helper/Input/Week.php index c1664fba..0d6246ca 100644 --- a/src/Html/Helper/Input/Week.php +++ b/src/Html/Helper/Input/Week.php @@ -16,6 +16,4 @@ class Week extends \Phalcon\Html\Helper\Input\AbstractInput { protected $type = 'week'; - - } diff --git a/src/Html/Helper/Label.php b/src/Html/Helper/Label.php index 8c7ba750..44e748df 100644 --- a/src/Html/Helper/Label.php +++ b/src/Html/Helper/Label.php @@ -28,5 +28,4 @@ class Label extends \Phalcon\Html\Helper\AbstractHelper public function __invoke(array $attributes = []): string { } - } diff --git a/src/Html/Helper/Link.php b/src/Html/Helper/Link.php index 84c85950..a5c8eb5d 100644 --- a/src/Html/Helper/Link.php +++ b/src/Html/Helper/Link.php @@ -33,5 +33,4 @@ public function add(string $rel, string $href): Link protected function getTag(): string { } - } diff --git a/src/Html/Helper/Meta.php b/src/Html/Helper/Meta.php index 78ffe2b4..5a15311c 100644 --- a/src/Html/Helper/Meta.php +++ b/src/Html/Helper/Meta.php @@ -79,5 +79,4 @@ protected function getTag(): string private function addElement(string $element, string $value, string $content): Meta { } - } diff --git a/src/Html/Helper/Ol.php b/src/Html/Helper/Ol.php index 944e38ac..2d114e0e 100644 --- a/src/Html/Helper/Ol.php +++ b/src/Html/Helper/Ol.php @@ -34,5 +34,4 @@ public function add(string $text, array $attributes = [], bool $raw = false): Ab protected function getTag(): string { } - } diff --git a/src/Html/Helper/Script.php b/src/Html/Helper/Script.php index bb5dbaeb..37894340 100644 --- a/src/Html/Helper/Script.php +++ b/src/Html/Helper/Script.php @@ -33,5 +33,4 @@ protected function getAttributes(string $href, array $attributes): array protected function getTag(): string { } - } diff --git a/src/Html/Helper/Style.php b/src/Html/Helper/Style.php index a7324721..05adc85e 100644 --- a/src/Html/Helper/Style.php +++ b/src/Html/Helper/Style.php @@ -48,5 +48,4 @@ protected function getTag(): string protected function getAttributes(string $href, array $attributes): array { } - } diff --git a/src/Html/Helper/Title.php b/src/Html/Helper/Title.php index 07eac605..f33fa42b 100644 --- a/src/Html/Helper/Title.php +++ b/src/Html/Helper/Title.php @@ -111,5 +111,4 @@ public function set(string $text, bool $raw = false): Title public function prepend(string $text, bool $raw = false): Title { } - } diff --git a/src/Html/Helper/Ul.php b/src/Html/Helper/Ul.php index 380e466a..83c69ad0 100644 --- a/src/Html/Helper/Ul.php +++ b/src/Html/Helper/Ul.php @@ -21,5 +21,4 @@ class Ul extends \Phalcon\Html\Helper\Ol protected function getTag(): string { } - } diff --git a/src/Html/Link/EvolvableLink.php b/src/Html/Link/EvolvableLink.php index 787dfbf9..36576364 100644 --- a/src/Html/Link/EvolvableLink.php +++ b/src/Html/Link/EvolvableLink.php @@ -98,5 +98,4 @@ public function withoutAttribute($attribute) public function withoutRel($rel) { } - } diff --git a/src/Html/Link/EvolvableLinkProvider.php b/src/Html/Link/EvolvableLinkProvider.php index 0846b9ca..46df0820 100644 --- a/src/Html/Link/EvolvableLinkProvider.php +++ b/src/Html/Link/EvolvableLinkProvider.php @@ -49,5 +49,4 @@ public function withLink(\Psr\Link\LinkInterface $link) public function withoutLink(\Psr\Link\LinkInterface $link) { } - } diff --git a/src/Html/Link/Link.php b/src/Html/Link/Link.php index 3cecc116..ff1acb1b 100644 --- a/src/Html/Link/Link.php +++ b/src/Html/Link/Link.php @@ -116,5 +116,4 @@ public function isTemplated() protected function hrefIsTemplated(string $href): bool { } - } diff --git a/src/Html/Link/LinkProvider.php b/src/Html/Link/LinkProvider.php index 094ac0de..9d5d2088 100644 --- a/src/Html/Link/LinkProvider.php +++ b/src/Html/Link/LinkProvider.php @@ -68,5 +68,4 @@ public function getLinksByRel($rel) protected function getKey(\Psr\Link\LinkInterface $link): string { } - } diff --git a/src/Html/Link/Serializer/Header.php b/src/Html/Link/Serializer/Header.php index 9efafa8f..cd9f5957 100644 --- a/src/Html/Link/Serializer/Header.php +++ b/src/Html/Link/Serializer/Header.php @@ -26,5 +26,4 @@ class Header implements \Phalcon\Html\Link\Serializer\SerializerInterface public function serialize(array $links): ?string { } - } diff --git a/src/Html/Link/Serializer/SerializerInterface.php b/src/Html/Link/Serializer/SerializerInterface.php index 9b922a51..d2804463 100644 --- a/src/Html/Link/Serializer/SerializerInterface.php +++ b/src/Html/Link/Serializer/SerializerInterface.php @@ -22,5 +22,4 @@ interface SerializerInterface * @return string|null */ public function serialize(array $links): ?string; - } diff --git a/src/Html/TagFactory.php b/src/Html/TagFactory.php index 8a949b17..41c3e20a 100644 --- a/src/Html/TagFactory.php +++ b/src/Html/TagFactory.php @@ -9,7 +9,6 @@ */ namespace Phalcon\Html; -use Phalcon\Escaper; use Phalcon\Escaper\EscaperInterface; use Phalcon\Factory\AbstractFactory; @@ -52,5 +51,4 @@ public function newInstance(string $name) protected function getAdapters(): array { } - } diff --git a/src/Http/Cookie.php b/src/Http/Cookie.php index 31b32eed..ddbf8bbc 100644 --- a/src/Http/Cookie.php +++ b/src/Http/Cookie.php @@ -9,16 +9,9 @@ */ namespace Phalcon\Http; -use Phalcon\Di\DiInterface; use Phalcon\Di\AbstractInjectionAware; -use Phalcon\Crypt\CryptInterface; -use Phalcon\Crypt\Mismatch; use Phalcon\Filter\FilterInterface; -use Phalcon\Helper\Arr; -use Phalcon\Http\Response\Exception; use Phalcon\Http\Cookie\CookieInterface; -use Phalcon\Http\Cookie\Exception as CookieException; -use Phalcon\Session\ManagerInterface as SessionManagerInterface; /** * Provide OO wrappers to manage a HTTP cookie. @@ -340,5 +333,4 @@ public function useEncryption(bool $useEncryption): CookieInterface protected function assertSignKeyIsLongEnough(string $signKey): void { } - } diff --git a/src/Http/Cookie/CookieInterface.php b/src/Http/Cookie/CookieInterface.php index e1be940d..5fa14d63 100644 --- a/src/Http/Cookie/CookieInterface.php +++ b/src/Http/Cookie/CookieInterface.php @@ -157,5 +157,4 @@ public function setValue($value): CookieInterface; * @return CookieInterface */ public function useEncryption(bool $useEncryption): CookieInterface; - } diff --git a/src/Http/Message/AbstractCommon.php b/src/Http/Message/AbstractCommon.php index 8d3ac3f2..86123f61 100644 --- a/src/Http/Message/AbstractCommon.php +++ b/src/Http/Message/AbstractCommon.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Http\Message; -use Phalcon\Http\Message\Exception\InvalidArgumentException; - /** * Common methods */ @@ -51,5 +49,4 @@ final protected function checkStringParameter($element): void final protected function processWith($element, string $property) { } - } diff --git a/src/Http/Message/AbstractMessage.php b/src/Http/Message/AbstractMessage.php index 7c73959a..a3657dd5 100644 --- a/src/Http/Message/AbstractMessage.php +++ b/src/Http/Message/AbstractMessage.php @@ -401,5 +401,4 @@ final protected function processHeaders($headers): CollectionInterface final protected function processProtocol($protocol = ''): string { } - } diff --git a/src/Http/Message/AbstractRequest.php b/src/Http/Message/AbstractRequest.php index 48bfb96d..c5808555 100644 --- a/src/Http/Message/AbstractRequest.php +++ b/src/Http/Message/AbstractRequest.php @@ -181,5 +181,4 @@ final protected function processMethod($method = ''): string final protected function processUri($uri): UriInterface { } - } diff --git a/src/Http/Message/Exception/InvalidArgumentException.php b/src/Http/Message/Exception/InvalidArgumentException.php index 9ceabc76..14de3be7 100644 --- a/src/Http/Message/Exception/InvalidArgumentException.php +++ b/src/Http/Message/Exception/InvalidArgumentException.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Http\Message\Exception; -use Throwable; - /** * This file is part of the Phalcon Framework. * diff --git a/src/Http/Message/Request.php b/src/Http/Message/Request.php index 5328215e..ed6eac3a 100644 --- a/src/Http/Message/Request.php +++ b/src/Http/Message/Request.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Http\Message; -use Phalcon\Http\Message\Stream\Input; -use Phalcon\Http\Message\AbstractRequest; use Psr\Http\Message\RequestInterface; use Psr\Http\Message\StreamInterface; use Psr\Http\Message\UriInterface; @@ -32,5 +30,4 @@ final class Request extends AbstractRequest implements \Psr\Http\Message\Request public function __construct(string $method = 'GET', $uri = null, $body = 'php://memory', $headers = []) { } - } diff --git a/src/Http/Message/RequestFactory.php b/src/Http/Message/RequestFactory.php index a1964d55..b7bd65e4 100644 --- a/src/Http/Message/RequestFactory.php +++ b/src/Http/Message/RequestFactory.php @@ -9,8 +9,8 @@ */ namespace Phalcon\Http\Message; -use Psr\Http\Message\RequestInterface; use Psr\Http\Message\RequestFactoryInterface; +use Psr\Http\Message\RequestInterface; use Psr\Http\Message\UriInterface; /** @@ -30,5 +30,4 @@ final class RequestFactory implements \Psr\Http\Message\RequestFactoryInterface public function createRequest(string $method, $uri): RequestInterface { } - } diff --git a/src/Http/Message/Response.php b/src/Http/Message/Response.php index a52124ca..f33d0e78 100644 --- a/src/Http/Message/Response.php +++ b/src/Http/Message/Response.php @@ -9,9 +9,6 @@ */ namespace Phalcon\Http\Message; -use Phalcon\Helper\Number; -use Phalcon\Http\Message\AbstractMessage; -use Phalcon\Http\Message\Exception\InvalidArgumentException; use Psr\Http\Message\ResponseInterface; /** @@ -149,5 +146,4 @@ private function checkCodeType($code): void private function checkCodeValue(int $code): void { } - } diff --git a/src/Http/Message/ResponseFactory.php b/src/Http/Message/ResponseFactory.php index 12802988..7491c31a 100644 --- a/src/Http/Message/ResponseFactory.php +++ b/src/Http/Message/ResponseFactory.php @@ -9,8 +9,8 @@ */ namespace Phalcon\Http\Message; -use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ResponseFactoryInterface; +use Psr\Http\Message\ResponseInterface; /** * PSR-17 ResponseFactory @@ -32,5 +32,4 @@ final class ResponseFactory implements \Psr\Http\Message\ResponseFactoryInterfac public function createResponse(int $code = 200, string $reasonPhrase = ''): ResponseInterface { } - } diff --git a/src/Http/Message/ServerRequest.php b/src/Http/Message/ServerRequest.php index 236477d5..d84e0e99 100644 --- a/src/Http/Message/ServerRequest.php +++ b/src/Http/Message/ServerRequest.php @@ -12,7 +12,6 @@ use Phalcon\Collection; use Phalcon\Collection\CollectionInterface; use Phalcon\Http\Message\Exception\InvalidArgumentException; -use Phalcon\Http\Message\Stream\Input; use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Message\StreamInterface; use Psr\Http\Message\UploadedFileInterface; @@ -366,5 +365,4 @@ public function withoutAttribute($name): ServerRequest private function checkUploadedFiles(array $files): void { } - } diff --git a/src/Http/Message/ServerRequestFactory.php b/src/Http/Message/ServerRequestFactory.php index ac9ae1f2..bfe9d935 100644 --- a/src/Http/Message/ServerRequestFactory.php +++ b/src/Http/Message/ServerRequestFactory.php @@ -9,14 +9,12 @@ */ namespace Phalcon\Http\Message; -use Phalcon\Collection; use Phalcon\Collection\CollectionInterface; -use Phalcon\Helper\Arr; use Phalcon\Http\Message\Exception\InvalidArgumentException; use Psr\Http\Message\ServerRequestFactoryInterface; use Psr\Http\Message\ServerRequestInterface; -use Psr\Http\Message\UriInterface; use Psr\Http\Message\UploadedFileInterface; +use Psr\Http\Message\UriInterface; /** * PSR-17 ServerRequestFactory @@ -243,5 +241,4 @@ private function parseUploadedFiles(array $files): CollectionInterface private function parseUri(\Phalcon\Collection\CollectionInterface $server, \Phalcon\Collection\CollectionInterface $headers): Uri { } - } diff --git a/src/Http/Message/Stream.php b/src/Http/Message/Stream.php index 98c7585f..16e6b507 100644 --- a/src/Http/Message/Stream.php +++ b/src/Http/Message/Stream.php @@ -9,10 +9,7 @@ */ namespace Phalcon\Http\Message; -use Phalcon\Helper\Arr; -use Exception; use Psr\Http\Message\StreamInterface; -use RuntimeException; /** * PSR-7 Stream @@ -253,5 +250,4 @@ private function checkSeekable(): void private function checkWritable(): void { } - } diff --git a/src/Http/Message/Stream/Input.php b/src/Http/Message/Stream/Input.php index f6b42bf3..842c8721 100644 --- a/src/Http/Message/Stream/Input.php +++ b/src/Http/Message/Stream/Input.php @@ -87,5 +87,4 @@ public function isWritable(): bool public function read($length): string { } - } diff --git a/src/Http/Message/Stream/Memory.php b/src/Http/Message/Stream/Memory.php index 2f83336f..efa30ca4 100644 --- a/src/Http/Message/Stream/Memory.php +++ b/src/Http/Message/Stream/Memory.php @@ -29,5 +29,4 @@ class Memory extends Stream public function __construct($mode = 'rb') { } - } diff --git a/src/Http/Message/Stream/Temp.php b/src/Http/Message/Stream/Temp.php index bd28c2f7..13dc1d8c 100644 --- a/src/Http/Message/Stream/Temp.php +++ b/src/Http/Message/Stream/Temp.php @@ -29,5 +29,4 @@ class Temp extends Stream public function __construct($mode = 'rb') { } - } diff --git a/src/Http/Message/StreamFactory.php b/src/Http/Message/StreamFactory.php index 5cdb0cb8..f8401d0d 100644 --- a/src/Http/Message/StreamFactory.php +++ b/src/Http/Message/StreamFactory.php @@ -9,7 +9,6 @@ */ namespace Phalcon\Http\Message; -use Phalcon\Http\Message\Exception\InvalidArgumentException; use Psr\Http\Message\StreamFactoryInterface; use Psr\Http\Message\StreamInterface; @@ -62,5 +61,4 @@ public function createStreamFromFile(string $filename, string $mode = 'r+b'): St public function createStreamFromResource($phpResource): StreamInterface { } - } diff --git a/src/Http/Message/UploadedFile.php b/src/Http/Message/UploadedFile.php index a3bd2982..0f32dcac 100644 --- a/src/Http/Message/UploadedFile.php +++ b/src/Http/Message/UploadedFile.php @@ -9,9 +9,6 @@ */ namespace Phalcon\Http\Message; -use Phalcon\Helper\Number; -use Phalcon\Helper\Arr; -use Phalcon\Helper\Str; use Phalcon\Http\Message\Exception\InvalidArgumentException; use Psr\Http\Message\StreamInterface; use Psr\Http\Message\UploadedFileInterface; @@ -274,5 +271,4 @@ private function getErrorDescription(int $error): string private function storeFile(string $targetPath): void { } - } diff --git a/src/Http/Message/UploadedFileFactory.php b/src/Http/Message/UploadedFileFactory.php index 093f89d5..e01d2ad4 100644 --- a/src/Http/Message/UploadedFileFactory.php +++ b/src/Http/Message/UploadedFileFactory.php @@ -10,8 +10,8 @@ namespace Phalcon\Http\Message; use Psr\Http\Message\StreamInterface; -use Psr\Http\Message\UploadedFileInterface; use Psr\Http\Message\UploadedFileFactoryInterface; +use Psr\Http\Message\UploadedFileInterface; /** * PSR-17 UploadedFileFactory @@ -41,5 +41,4 @@ final class UploadedFileFactory implements \Psr\Http\Message\UploadedFileFactory public function createUploadedFile(\Psr\Http\Message\StreamInterface $stream, int $size = null, int $error = 0, string $clientFilename = null, string $clientMediaType = null): UploadedFileInterface { } - } diff --git a/src/Http/Message/Uri.php b/src/Http/Message/Uri.php index 60eabb3e..ee465196 100644 --- a/src/Http/Message/Uri.php +++ b/src/Http/Message/Uri.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Http\Message; -use Phalcon\Helper\Arr; -use Phalcon\Helper\Str; use Phalcon\Http\Message\Exception\InvalidArgumentException; use Psr\Http\Message\UriInterface; @@ -486,5 +484,4 @@ private function filterScheme(string $scheme): string private function splitQueryValue(string $element): array { } - } diff --git a/src/Http/Message/UriFactory.php b/src/Http/Message/UriFactory.php index 81168be2..221ceffd 100644 --- a/src/Http/Message/UriFactory.php +++ b/src/Http/Message/UriFactory.php @@ -28,5 +28,4 @@ final class UriFactory implements \Psr\Http\Message\UriFactoryInterface public function createUri(string $uri = ''): UriInterface { } - } diff --git a/src/Http/Request.php b/src/Http/Request.php index f8af53d6..5526836a 100644 --- a/src/Http/Request.php +++ b/src/Http/Request.php @@ -9,16 +9,8 @@ */ namespace Phalcon\Http; -use Phalcon\Di\DiInterface; use Phalcon\Di\AbstractInjectionAware; -use Phalcon\Events\ManagerInterface; use Phalcon\Filter\FilterInterface; -use Phalcon\Helper\Json; -use Phalcon\Http\Request\File; -use Phalcon\Http\Request\FileInterface; -use Phalcon\Http\Request\Exception; -use UnexpectedValueException; -use stdClass; /** * Encapsulates request information for easy and secure access from application @@ -892,5 +884,4 @@ private function getFilterService(): FilterInterface private function getServerArray(): array { } - } diff --git a/src/Http/Request/File.php b/src/Http/Request/File.php index 610d23d7..370b45c5 100644 --- a/src/Http/Request/File.php +++ b/src/Http/Request/File.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Http\Request; -use Phalcon\Helper\Arr; - /** * Phalcon\Http\Request\File * @@ -172,5 +170,4 @@ public function isUploadedFile(): bool public function moveTo(string $destination): bool { } - } diff --git a/src/Http/Request/FileInterface.php b/src/Http/Request/FileInterface.php index 5568443b..87883513 100644 --- a/src/Http/Request/FileInterface.php +++ b/src/Http/Request/FileInterface.php @@ -67,5 +67,4 @@ public function getType(): string; * @return bool */ public function moveTo(string $destination): bool; - } diff --git a/src/Http/RequestInterface.php b/src/Http/RequestInterface.php index c9636e39..687057bd 100644 --- a/src/Http/RequestInterface.php +++ b/src/Http/RequestInterface.php @@ -9,9 +9,6 @@ */ namespace Phalcon\Http; -use Phalcon\Http\Request\FileInterface; -use stdClass; - /** * Interface for Phalcon\Http\Request */ @@ -511,5 +508,4 @@ public function isTrace(): bool; * @return int */ public function numFiles(bool $onlySuccessful = false): int; - } diff --git a/src/Http/Response.php b/src/Http/Response.php index 53498566..a5faf918 100644 --- a/src/Http/Response.php +++ b/src/Http/Response.php @@ -9,21 +9,11 @@ */ namespace Phalcon\Http; -use DateTime; -use DateTimeZone; -use Phalcon\Di; use Phalcon\Di\DiInterface; -use Phalcon\Helper\Fs; -use Phalcon\Helper\Json; -use Phalcon\Http\Response\Exception; -use Phalcon\Http\Response\HeadersInterface; +use Phalcon\Events\ManagerInterface; use Phalcon\Http\Response\CookiesInterface; -use Phalcon\Url\UrlInterface; -use Phalcon\Mvc\ViewInterface; use Phalcon\Http\Response\Headers; -use Phalcon\Di\InjectionAwareInterface; -use Phalcon\Events\EventsAwareInterface; -use Phalcon\Events\ManagerInterface; +use Phalcon\Http\Response\HeadersInterface; /** * Part of the HTTP cycle is return responses to the clients. @@ -508,5 +498,4 @@ public function setStatusCode(int $code, string $message = null): ResponseInterf public function setRawHeader(string $header): ResponseInterface { } - } diff --git a/src/Http/Response/Cookies.php b/src/Http/Response/Cookies.php index ae2d892f..1a8fb021 100644 --- a/src/Http/Response/Cookies.php +++ b/src/Http/Response/Cookies.php @@ -9,9 +9,7 @@ */ namespace Phalcon\Http\Response; -use Phalcon\Di\DiInterface; use Phalcon\Di\AbstractInjectionAware; -use Phalcon\Http\Cookie\Exception; use Phalcon\Http\Cookie\CookieInterface; /** @@ -238,5 +236,4 @@ public function setSignKey(string $signKey = null): CookiesInterface public function useEncryption(bool $useEncryption): CookiesInterface { } - } diff --git a/src/Http/Response/CookiesInterface.php b/src/Http/Response/CookiesInterface.php index de330cc9..149931cb 100644 --- a/src/Http/Response/CookiesInterface.php +++ b/src/Http/Response/CookiesInterface.php @@ -87,5 +87,4 @@ public function set(string $name, $value = null, int $expire = 0, string $path = * @return CookiesInterface */ public function useEncryption(bool $useEncryption): CookiesInterface; - } diff --git a/src/Http/Response/Headers.php b/src/Http/Response/Headers.php index 4d690164..b4dbfc17 100644 --- a/src/Http/Response/Headers.php +++ b/src/Http/Response/Headers.php @@ -111,5 +111,4 @@ public function setRaw(string $header): HeadersInterface public function toArray(): array { } - } diff --git a/src/Http/Response/HeadersInterface.php b/src/Http/Response/HeadersInterface.php index af640ce0..ad75fe1f 100644 --- a/src/Http/Response/HeadersInterface.php +++ b/src/Http/Response/HeadersInterface.php @@ -59,5 +59,4 @@ public function set(string $name, string $value); * @param string $header */ public function setRaw(string $header); - } diff --git a/src/Http/ResponseInterface.php b/src/Http/ResponseInterface.php index 3fcdf9a6..07e1e700 100644 --- a/src/Http/ResponseInterface.php +++ b/src/Http/ResponseInterface.php @@ -9,7 +9,6 @@ */ namespace Phalcon\Http; -use DateTime; use Phalcon\Http\Response\HeadersInterface; /** @@ -192,5 +191,4 @@ public function sendCookies(): ResponseInterface; * @return 0|ResponseInterface */ public function sendHeaders(); - } diff --git a/src/Http/Server/AbstractMiddleware.php b/src/Http/Server/AbstractMiddleware.php index ff970f7b..2727615d 100644 --- a/src/Http/Server/AbstractMiddleware.php +++ b/src/Http/Server/AbstractMiddleware.php @@ -36,5 +36,4 @@ abstract class AbstractMiddleware implements \Psr\Http\Server\MiddlewareInterfac * @return ResponseInterface */ abstract public function process(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Server\RequestHandlerInterface $handler): ResponseInterface; - } diff --git a/src/Http/Server/AbstractRequestHandler.php b/src/Http/Server/AbstractRequestHandler.php index b74a5596..a272d8ae 100644 --- a/src/Http/Server/AbstractRequestHandler.php +++ b/src/Http/Server/AbstractRequestHandler.php @@ -31,5 +31,4 @@ abstract class AbstractRequestHandler implements \Psr\Http\Server\RequestHandler * @return ResponseInterface */ abstract public function handle(\Psr\Http\Message\ServerRequestInterface $request): ResponseInterface; - } diff --git a/src/Image/Adapter/AbstractAdapter.php b/src/Image/Adapter/AbstractAdapter.php index 27bd6b7c..859c10d9 100644 --- a/src/Image/Adapter/AbstractAdapter.php +++ b/src/Image/Adapter/AbstractAdapter.php @@ -10,7 +10,6 @@ namespace Phalcon\Image\Adapter; use Phalcon\Image\Enum; -use Phalcon\Image\Exception; /** * Phalcon\Image\Adapter @@ -22,7 +21,7 @@ abstract class AbstractAdapter implements \Phalcon\Image\Adapter\AdapterInterfac /** * @var bool */ - static protected $checked = false; + protected static $checked = false; /** * @var string @@ -294,5 +293,4 @@ public function text(string $text, $offsetX = false, $offsetY = false, int $opac public function watermark(AdapterInterface $watermark, int $offsetX = 0, int $offsetY = 0, int $opacity = 100): AdapterInterface { } - } diff --git a/src/Image/Adapter/AdapterInterface.php b/src/Image/Adapter/AdapterInterface.php index 4325b26a..a2bff6a5 100644 --- a/src/Image/Adapter/AdapterInterface.php +++ b/src/Image/Adapter/AdapterInterface.php @@ -124,5 +124,4 @@ public function text(string $text, int $offsetX = 0, int $offsetY = 0, int $opac * @return AdapterInterface */ public function watermark(AdapterInterface $watermark, int $offsetX = 0, int $offsetY = 0, int $opacity = 100): AdapterInterface; - } diff --git a/src/Image/Adapter/Gd.php b/src/Image/Adapter/Gd.php index b4d1b32b..772b0590 100644 --- a/src/Image/Adapter/Gd.php +++ b/src/Image/Adapter/Gd.php @@ -9,9 +9,6 @@ */ namespace Phalcon\Image\Adapter; -use Phalcon\Image\Enum; -use Phalcon\Image\Exception; - /** * This file is part of the Phalcon Framework. * @@ -25,7 +22,7 @@ class Gd extends \Phalcon\Image\Adapter\AbstractAdapter /** * @var bool */ - static protected $checked = false; + protected static $checked = false; /** @@ -183,5 +180,4 @@ protected function processText(string $text, int $offsetX, int $offsetY, int $op protected function processWatermark(AdapterInterface $watermark, int $offsetX, int $offsetY, int $opacity) { } - } diff --git a/src/Image/Adapter/Imagick.php b/src/Image/Adapter/Imagick.php index fe39d0df..6b4e31db 100644 --- a/src/Image/Adapter/Imagick.php +++ b/src/Image/Adapter/Imagick.php @@ -9,9 +9,6 @@ */ namespace Phalcon\Image\Adapter; -use Phalcon\Image\Enum; -use Phalcon\Image\Exception; - /** * Phalcon\Image\Adapter\Imagick * @@ -32,12 +29,12 @@ class Imagick extends \Phalcon\Image\Adapter\AbstractAdapter /** * @var bool */ - static protected $checked = false; + protected static $checked = false; /** * @var int */ - static protected $version = 0; + protected static $version = 0; /** @@ -260,5 +257,4 @@ protected function processText(string $text, $offsetX, $offsetY, int $opacity, i protected function processWatermark(AdapterInterface $image, int $offsetX, int $offsetY, int $opacity) { } - } diff --git a/src/Image/Enum.php b/src/Image/Enum.php index f059d608..f3c5503d 100644 --- a/src/Image/Enum.php +++ b/src/Image/Enum.php @@ -45,6 +45,4 @@ class Enum const VERTICAL = 12; - - } diff --git a/src/Image/ImageFactory.php b/src/Image/ImageFactory.php index 1da04509..bcbd6d45 100644 --- a/src/Image/ImageFactory.php +++ b/src/Image/ImageFactory.php @@ -9,9 +9,7 @@ */ namespace Phalcon\Image; -use Phalcon\Config; use Phalcon\Factory\AbstractFactory; -use Phalcon\Helper\Arr; use Phalcon\Image\Adapter\AdapterInterface; /** @@ -66,5 +64,4 @@ public function newInstance(string $name, string $file, int $width = null, int $ protected function getAdapters(): array { } - } diff --git a/src/Kernel.php b/src/Kernel.php index e0c058b9..6450c1fc 100644 --- a/src/Kernel.php +++ b/src/Kernel.php @@ -25,5 +25,4 @@ class Kernel public static function preComputeHashKey(string $key) { } - } diff --git a/src/Loader.php b/src/Loader.php index 935e91b4..1031fe99 100644 --- a/src/Loader.php +++ b/src/Loader.php @@ -9,9 +9,7 @@ */ namespace Phalcon; -use Phalcon\Loader\Exception; use Phalcon\Events\ManagerInterface; -use Phalcon\Events\EventsAwareInterface; /** * This component helps to load your project classes automatically based on some @@ -297,5 +295,4 @@ public function unregister(): Loader protected function prepareNamespace(array $namespaceName): array { } - } diff --git a/src/Logger.php b/src/Logger.php index 81246ef2..6cf6a417 100644 --- a/src/Logger.php +++ b/src/Logger.php @@ -9,11 +9,8 @@ */ namespace Phalcon; -use DateTimeImmutable; use DateTimeZone; -use Psr\Log\LoggerInterface; use Phalcon\Logger\Adapter\AdapterInterface; -use Phalcon\Logger\Item; use Phalcon\Logger\Exception; /** @@ -355,5 +352,4 @@ protected function getLevels(): array private function getLevelNumber($level): int { } - } diff --git a/src/Logger/Adapter/AbstractAdapter.php b/src/Logger/Adapter/AbstractAdapter.php index 766c3aee..bea8f69f 100644 --- a/src/Logger/Adapter/AbstractAdapter.php +++ b/src/Logger/Adapter/AbstractAdapter.php @@ -9,10 +9,7 @@ */ namespace Phalcon\Logger\Adapter; -use Phalcon\Logger; -use Phalcon\Logger\Exception; use Phalcon\Logger\Formatter\FormatterInterface; -use Phalcon\Logger\Item; /** * This file is part of the Phalcon Framework. @@ -140,5 +137,4 @@ public function setFormatter(\Phalcon\Logger\Formatter\FormatterInterface $forma protected function getFormattedItem(\Phalcon\Logger\Item $item): string { } - } diff --git a/src/Logger/Adapter/AdapterInterface.php b/src/Logger/Adapter/AdapterInterface.php index 8399d11b..daa19c2c 100644 --- a/src/Logger/Adapter/AdapterInterface.php +++ b/src/Logger/Adapter/AdapterInterface.php @@ -10,7 +10,6 @@ namespace Phalcon\Logger\Adapter; use Phalcon\Logger\Formatter\FormatterInterface; -use Phalcon\Logger\Item; /** * Phalcon\Logger\AdapterInterface @@ -86,5 +85,4 @@ public function rollback(): AdapterInterface; * @return AdapterInterface */ public function setFormatter(\Phalcon\Logger\Formatter\FormatterInterface $formatter): AdapterInterface; - } diff --git a/src/Logger/Adapter/Noop.php b/src/Logger/Adapter/Noop.php index b5fc15a0..7344fdca 100644 --- a/src/Logger/Adapter/Noop.php +++ b/src/Logger/Adapter/Noop.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Logger\Adapter; -use Phalcon\Logger\Item; - /** * Phalcon\Logger\Adapter\Noop * @@ -46,5 +44,4 @@ public function close(): bool public function process(\Phalcon\Logger\Item $item): void { } - } diff --git a/src/Logger/Adapter/Stream.php b/src/Logger/Adapter/Stream.php index 7e65ae63..7f5bc0b1 100644 --- a/src/Logger/Adapter/Stream.php +++ b/src/Logger/Adapter/Stream.php @@ -9,12 +9,6 @@ */ namespace Phalcon\Logger\Adapter; -use Phalcon\Logger\Adapter; -use Phalcon\Logger\Exception; -use Phalcon\Logger\Formatter\FormatterInterface; -use Phalcon\Logger\Item; -use UnexpectedValueException; - /** * Phalcon\Logger\Adapter\Stream * @@ -100,5 +94,4 @@ public function close(): bool public function process(\Phalcon\Logger\Item $item): void { } - } diff --git a/src/Logger/Adapter/Syslog.php b/src/Logger/Adapter/Syslog.php index 7d970b50..82533d06 100644 --- a/src/Logger/Adapter/Syslog.php +++ b/src/Logger/Adapter/Syslog.php @@ -9,14 +9,6 @@ */ namespace Phalcon\Logger\Adapter; -use LogicException; -use Phalcon\Helper\Arr; -use Phalcon\Logger; -use Phalcon\Logger\Adapter; -use Phalcon\Logger\Exception; -use Phalcon\Logger\Formatter\FormatterInterface; -use Phalcon\Logger\Item; - /** * Phalcon\Logger\Adapter\Syslog * @@ -111,5 +103,4 @@ public function process(\Phalcon\Logger\Item $item): void private function logLevelToSyslog(int $level): int { } - } diff --git a/src/Logger/AdapterFactory.php b/src/Logger/AdapterFactory.php index cfc64083..0eb162b7 100644 --- a/src/Logger/AdapterFactory.php +++ b/src/Logger/AdapterFactory.php @@ -53,5 +53,4 @@ public function newInstance(string $name, string $fileName, array $options = []) protected function getAdapters(): array { } - } diff --git a/src/Logger/Formatter/AbstractFormatter.php b/src/Logger/Formatter/AbstractFormatter.php index 34858d0b..d3b92172 100644 --- a/src/Logger/Formatter/AbstractFormatter.php +++ b/src/Logger/Formatter/AbstractFormatter.php @@ -9,11 +9,6 @@ */ namespace Phalcon\Logger\Formatter; -use DateTimeImmutable; -use DateTimeZone; -use Phalcon\Logger; -use Phalcon\Logger\Item; - /** * This file is part of the Phalcon Framework. * @@ -49,5 +44,4 @@ public function getDateFormat(): string public function setDateFormat(string $dateFormat) { } - } diff --git a/src/Logger/Formatter/FormatterInterface.php b/src/Logger/Formatter/FormatterInterface.php index 11f4d6f9..e51a353d 100644 --- a/src/Logger/Formatter/FormatterInterface.php +++ b/src/Logger/Formatter/FormatterInterface.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Logger\Formatter; -use Phalcon\Logger\Item; - /** * Phalcon\Logger\FormatterInterface * @@ -26,5 +24,4 @@ interface FormatterInterface * @return string|array */ public function format(\Phalcon\Logger\Item $item); - } diff --git a/src/Logger/Formatter/Json.php b/src/Logger/Formatter/Json.php index 91535960..19527618 100644 --- a/src/Logger/Formatter/Json.php +++ b/src/Logger/Formatter/Json.php @@ -9,10 +9,6 @@ */ namespace Phalcon\Logger\Formatter; -use Phalcon\Helper\Json as JsonHelper; -use Phalcon\Logger\Item; -use Phalcon\Support\Helper\Str\Interpolate; - /** * Phalcon\Logger\Formatter\Json * @@ -39,5 +35,4 @@ public function __construct(string $dateFormat = 'c') public function format(\Phalcon\Logger\Item $item): string { } - } diff --git a/src/Logger/Formatter/Line.php b/src/Logger/Formatter/Line.php index 5fa7a7cc..b012cfa9 100644 --- a/src/Logger/Formatter/Line.php +++ b/src/Logger/Formatter/Line.php @@ -9,10 +9,6 @@ */ namespace Phalcon\Logger\Formatter; -use DateTime; -use Phalcon\Logger\Item; -use Phalcon\Support\Helper\Str\Interpolate; - /** * Phalcon\Logger\Formatter\Line * @@ -65,5 +61,4 @@ public function __construct(string $format = '[%date%][%level%] %message%', stri public function format(\Phalcon\Logger\Item $item): string { } - } diff --git a/src/Logger/Item.php b/src/Logger/Item.php index 2c52d955..f1ce574c 100644 --- a/src/Logger/Item.php +++ b/src/Logger/Item.php @@ -111,5 +111,4 @@ public function getTime() public function __construct(string $message, string $levelName, int $level, \DateTimeImmutable $time, array $context = []) { } - } diff --git a/src/Logger/LoggerFactory.php b/src/Logger/LoggerFactory.php index f61b6672..385acda0 100644 --- a/src/Logger/LoggerFactory.php +++ b/src/Logger/LoggerFactory.php @@ -9,9 +9,6 @@ */ namespace Phalcon\Logger; -use Phalcon\Config; -use Phalcon\Config\ConfigInterface; -use Phalcon\Helper\Arr; use Phalcon\Logger; /** @@ -66,5 +63,4 @@ public function load($config): Logger public function newInstance(string $name, array $adapters = []): Logger { } - } diff --git a/src/Messages/Message.php b/src/Messages/Message.php index 64bb782b..20ca3c3d 100644 --- a/src/Messages/Message.php +++ b/src/Messages/Message.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Messages; -use JsonSerializable; - /** * Phalcon\Messages\Message * @@ -159,5 +157,4 @@ public function setMetaData(array $metaData): MessageInterface public function setType(string $type): MessageInterface { } - } diff --git a/src/Messages/MessageInterface.php b/src/Messages/MessageInterface.php index 14a99d06..3f964f8f 100644 --- a/src/Messages/MessageInterface.php +++ b/src/Messages/MessageInterface.php @@ -98,5 +98,4 @@ public function setMetaData(array $metaData): MessageInterface; * @return MessageInterface */ public function setType(string $type): MessageInterface; - } diff --git a/src/Messages/Messages.php b/src/Messages/Messages.php index b0677feb..b68c1e63 100644 --- a/src/Messages/Messages.php +++ b/src/Messages/Messages.php @@ -9,11 +9,6 @@ */ namespace Phalcon\Messages; -use ArrayAccess; -use Countable; -use Iterator; -use JsonSerializable; - /** * Represents a collection of messages */ @@ -206,5 +201,4 @@ public function rewind(): void public function valid(): bool { } - } diff --git a/src/Mvc/Application.php b/src/Mvc/Application.php index 3780b777..d236a155 100644 --- a/src/Mvc/Application.php +++ b/src/Mvc/Application.php @@ -9,14 +9,7 @@ */ namespace Phalcon\Mvc; -use Closure; use Phalcon\Application\AbstractApplication; -use Phalcon\Di\DiInterface; -use Phalcon\Http\ResponseInterface; -use Phalcon\Events\ManagerInterface; -use Phalcon\Mvc\Application\Exception; -use Phalcon\Mvc\Router\RouteInterface; -use Phalcon\Mvc\ModuleDefinitionInterface; /** * Phalcon\Mvc\Application @@ -122,5 +115,4 @@ public function sendHeadersOnHandleRequest(bool $sendHeaders): Application public function useImplicitView(bool $implicitView): Application { } - } diff --git a/src/Mvc/Controller.php b/src/Mvc/Controller.php index 0bdb95f1..c5bfda01 100644 --- a/src/Mvc/Controller.php +++ b/src/Mvc/Controller.php @@ -60,5 +60,4 @@ abstract class Controller extends Injectable implements \Phalcon\Mvc\ControllerI final public function __construct() { } - } diff --git a/src/Mvc/Controller/BindModelInterface.php b/src/Mvc/Controller/BindModelInterface.php index 1d8c0bfb..e53bf305 100644 --- a/src/Mvc/Controller/BindModelInterface.php +++ b/src/Mvc/Controller/BindModelInterface.php @@ -23,5 +23,4 @@ interface BindModelInterface * @return string */ public static function getModelName(): string; - } diff --git a/src/Mvc/Dispatcher.php b/src/Mvc/Dispatcher.php index 7589ddce..fa238287 100644 --- a/src/Mvc/Dispatcher.php +++ b/src/Mvc/Dispatcher.php @@ -9,11 +9,6 @@ */ namespace Phalcon\Mvc; -use Phalcon\Mvc\Dispatcher\Exception; -use Phalcon\Events\ManagerInterface; -use Phalcon\Http\ResponseInterface; -use Phalcon\Dispatcher\AbstractDispatcher as BaseDispatcher; - /** * Dispatching is the process of taking the request object, extracting the * module name, controller name, action name, and optional parameters contained @@ -219,5 +214,4 @@ protected function handleException(\Exception $exception) protected function throwDispatchException(string $message, int $exceptionCode = 0) { } - } diff --git a/src/Mvc/DispatcherInterface.php b/src/Mvc/DispatcherInterface.php index 4d239253..b3c8103c 100644 --- a/src/Mvc/DispatcherInterface.php +++ b/src/Mvc/DispatcherInterface.php @@ -60,5 +60,4 @@ public function setControllerName(string $controllerName); * @param string $controllerName */ public function setDefaultController(string $controllerName); - } diff --git a/src/Mvc/EntityInterface.php b/src/Mvc/EntityInterface.php index b530459d..6056f3a6 100644 --- a/src/Mvc/EntityInterface.php +++ b/src/Mvc/EntityInterface.php @@ -32,5 +32,4 @@ public function readAttribute(string $attribute); * @param mixed $value */ public function writeAttribute(string $attribute, $value); - } diff --git a/src/Mvc/Micro.php b/src/Mvc/Micro.php index 0c6d562d..9578ce51 100644 --- a/src/Mvc/Micro.php +++ b/src/Mvc/Micro.php @@ -9,23 +9,12 @@ */ namespace Phalcon\Mvc; -use ArrayAccess; -use Closure; use Phalcon\Di\DiInterface; use Phalcon\Di\Injectable; -use Phalcon\Di\FactoryDefault; -use Phalcon\Mvc\Micro\Exception; use Phalcon\Di\ServiceInterface; -use Phalcon\Mvc\Micro\Collection; -use Phalcon\Mvc\Micro\LazyLoader; -use Phalcon\Http\ResponseInterface; +use Phalcon\Events\ManagerInterface; use Phalcon\Mvc\Model\BinderInterface; use Phalcon\Mvc\Router\RouteInterface; -use Phalcon\Events\EventsAwareInterface; -use Phalcon\Events\ManagerInterface; -use Phalcon\Mvc\Micro\MiddlewareInterface; -use Phalcon\Mvc\Micro\CollectionInterface; -use Throwable; /** * Phalcon\Mvc\Micro @@ -532,5 +521,4 @@ public function setService(string $serviceName, $definition, bool $shared = fals public function stop() { } - } diff --git a/src/Mvc/Micro/Collection.php b/src/Mvc/Micro/Collection.php index 179198bc..3d212785 100644 --- a/src/Mvc/Micro/Collection.php +++ b/src/Mvc/Micro/Collection.php @@ -249,5 +249,4 @@ public function setPrefix(string $prefix): CollectionInterface protected function addMap($method, string $routePattern, $handler, string $name): void { } - } diff --git a/src/Mvc/Micro/CollectionInterface.php b/src/Mvc/Micro/CollectionInterface.php index 40717b79..18148560 100644 --- a/src/Mvc/Micro/CollectionInterface.php +++ b/src/Mvc/Micro/CollectionInterface.php @@ -149,5 +149,4 @@ public function setLazy(bool $lazy): CollectionInterface; * @return CollectionInterface */ public function setPrefix(string $prefix): CollectionInterface; - } diff --git a/src/Mvc/Micro/LazyLoader.php b/src/Mvc/Micro/LazyLoader.php index 5caed1e4..c9460cfe 100644 --- a/src/Mvc/Micro/LazyLoader.php +++ b/src/Mvc/Micro/LazyLoader.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Mvc\Micro; -use Phalcon\Mvc\Model\BinderInterface; - /** * Phalcon\Mvc\Micro\LazyLoader * @@ -63,5 +61,4 @@ public function __construct(string $definition) public function callMethod(string $method, $arguments, \Phalcon\Mvc\Model\BinderInterface $modelBinder = null) { } - } diff --git a/src/Mvc/Micro/MiddlewareInterface.php b/src/Mvc/Micro/MiddlewareInterface.php index d304f082..ab24356d 100644 --- a/src/Mvc/Micro/MiddlewareInterface.php +++ b/src/Mvc/Micro/MiddlewareInterface.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Mvc\Micro; -use Phalcon\Mvc\Micro; - /** * Allows to implement Phalcon\Mvc\Micro middleware in classes */ @@ -23,5 +21,4 @@ interface MiddlewareInterface * @param \Phalcon\Mvc\Micro $application */ public function call(\Phalcon\Mvc\Micro $application); - } diff --git a/src/Mvc/Model.php b/src/Mvc/Model.php index e37dda9d..dbdfbfca 100644 --- a/src/Mvc/Model.php +++ b/src/Mvc/Model.php @@ -9,39 +9,16 @@ */ namespace Phalcon\Mvc; -use JsonSerializable; use Phalcon\Db\Adapter\AdapterInterface; -use Phalcon\Db\Column; -use Phalcon\Db\DialectInterface; -use Phalcon\Db\Enum; -use Phalcon\Db\RawValue; use Phalcon\Di\AbstractInjectionAware; -use Phalcon\Di; -use Phalcon\Di\DiInterface; use Phalcon\Events\ManagerInterface as EventsManagerInterface; -use Phalcon\Helper\Arr; -use Phalcon\Messages\Message; -use Phalcon\Messages\MessageInterface; -use Phalcon\Mvc\Model\BehaviorInterface; -use Phalcon\Mvc\Model\Criteria; use Phalcon\Mvc\Model\CriteriaInterface; -use Phalcon\Mvc\Model\Exception; use Phalcon\Mvc\Model\ManagerInterface; use Phalcon\Mvc\Model\MetaDataInterface; use Phalcon\Mvc\Model\Query; -use Phalcon\Mvc\Model\Query\Builder; -use Phalcon\Mvc\Model\Query\BuilderInterface; -use Phalcon\Mvc\Model\QueryInterface; -use Phalcon\Mvc\Model\ResultInterface; -use Phalcon\Mvc\Model\Resultset; -use Phalcon\Mvc\Model\ResultsetInterface; use Phalcon\Mvc\Model\Relation; -use Phalcon\Mvc\Model\RelationInterface; +use Phalcon\Mvc\Model\ResultsetInterface; use Phalcon\Mvc\Model\TransactionInterface; -use Phalcon\Mvc\Model\ValidationFailed; -use Phalcon\Mvc\ModelInterface; -use Phalcon\Validation\ValidationInterface; -use Serializable; /** * Phalcon\Mvc\Model @@ -1633,7 +1610,7 @@ protected static function groupResult(string $functionName, string $alias, $para * @param string $method * @param array $arguments */ - protected final static function invokeFinder(string $method, array $arguments) + final protected static function invokeFinder(string $method, array $arguments) { } @@ -2210,5 +2187,4 @@ public function validationHasFailed(): bool private static function caseInsensitiveColumnMap($columnMap, $key): string { } - } diff --git a/src/Mvc/Model/Behavior.php b/src/Mvc/Model/Behavior.php index 0950c247..9afe06de 100644 --- a/src/Mvc/Model/Behavior.php +++ b/src/Mvc/Model/Behavior.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Mvc\Model; -use Phalcon\Mvc\ModelInterface; - /** * Phalcon\Mvc\Model\Behavior * @@ -73,5 +71,4 @@ protected function mustTakeAction(string $eventName): bool public function notify(string $type, \Phalcon\Mvc\ModelInterface $model) { } - } diff --git a/src/Mvc/Model/Behavior/SoftDelete.php b/src/Mvc/Model/Behavior/SoftDelete.php index 5c7a483a..85b47a4d 100644 --- a/src/Mvc/Model/Behavior/SoftDelete.php +++ b/src/Mvc/Model/Behavior/SoftDelete.php @@ -9,9 +9,7 @@ */ namespace Phalcon\Mvc\Model\Behavior; -use Phalcon\Mvc\ModelInterface; use Phalcon\Mvc\Model\Behavior; -use Phalcon\Mvc\Model\Exception; /** * Phalcon\Mvc\Model\Behavior\SoftDelete @@ -31,5 +29,4 @@ class SoftDelete extends Behavior public function notify(string $type, \Phalcon\Mvc\ModelInterface $model) { } - } diff --git a/src/Mvc/Model/Behavior/Timestampable.php b/src/Mvc/Model/Behavior/Timestampable.php index 3347e329..0863099b 100644 --- a/src/Mvc/Model/Behavior/Timestampable.php +++ b/src/Mvc/Model/Behavior/Timestampable.php @@ -9,10 +9,7 @@ */ namespace Phalcon\Mvc\Model\Behavior; -use Closure; -use Phalcon\Mvc\ModelInterface; use Phalcon\Mvc\Model\Behavior; -use Phalcon\Mvc\Model\Exception; /** * Phalcon\Mvc\Model\Behavior\Timestampable @@ -39,5 +36,4 @@ public function notify(string $type, \Phalcon\Mvc\ModelInterface $model) private function getTimestamp(array $options) { } - } diff --git a/src/Mvc/Model/BehaviorInterface.php b/src/Mvc/Model/BehaviorInterface.php index 78ea5d69..30423559 100644 --- a/src/Mvc/Model/BehaviorInterface.php +++ b/src/Mvc/Model/BehaviorInterface.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Mvc\Model; -use Phalcon\Mvc\ModelInterface; - /** * Phalcon\Mvc\Model\BehaviorInterface * @@ -35,5 +33,4 @@ public function missingMethod(\Phalcon\Mvc\ModelInterface $model, string $method * @param \Phalcon\Mvc\ModelInterface $model */ public function notify(string $type, \Phalcon\Mvc\ModelInterface $model); - } diff --git a/src/Mvc/Model/Binder.php b/src/Mvc/Model/Binder.php index 52070219..109aff8a 100644 --- a/src/Mvc/Model/Binder.php +++ b/src/Mvc/Model/Binder.php @@ -9,12 +9,7 @@ */ namespace Phalcon\Mvc\Model; -use Closure; -use Phalcon\Mvc\Controller\BindModelInterface; -use Phalcon\Mvc\Model\Binder\BindableInterface; use Phalcon\Cache\Adapter\AdapterInterface; -use ReflectionFunction; -use ReflectionMethod; /** * Phalcon\Mvc\Model\Binder @@ -144,5 +139,4 @@ protected function getParamsFromReflection($handler, array $params, string $cach public function setCache(\Phalcon\Cache\Adapter\AdapterInterface $cache): BinderInterface { } - } diff --git a/src/Mvc/Model/Binder/BindableInterface.php b/src/Mvc/Model/Binder/BindableInterface.php index f8d4bafb..f37da24c 100644 --- a/src/Mvc/Model/Binder/BindableInterface.php +++ b/src/Mvc/Model/Binder/BindableInterface.php @@ -24,5 +24,4 @@ interface BindableInterface * @return string|array */ public function getModelName(); - } diff --git a/src/Mvc/Model/BinderInterface.php b/src/Mvc/Model/BinderInterface.php index 29a7e408..8963d43c 100644 --- a/src/Mvc/Model/BinderInterface.php +++ b/src/Mvc/Model/BinderInterface.php @@ -51,5 +51,4 @@ public function getCache(): AdapterInterface; * @return BinderInterface */ public function setCache(\Phalcon\Cache\Adapter\AdapterInterface $cache): BinderInterface; - } diff --git a/src/Mvc/Model/Criteria.php b/src/Mvc/Model/Criteria.php index b4c33892..119530eb 100644 --- a/src/Mvc/Model/Criteria.php +++ b/src/Mvc/Model/Criteria.php @@ -9,10 +9,7 @@ */ namespace Phalcon\Mvc\Model; -use Phalcon\Di; -use Phalcon\Db\Column; use Phalcon\Di\DiInterface; -use Phalcon\Di\InjectionAwareInterface; use Phalcon\Mvc\Model\Query\BuilderInterface; /** @@ -551,5 +548,4 @@ public function sharedLock(bool $sharedLock = true): CriteriaInterface public function where(string $conditions, $bindParams = null, $bindTypes = null): CriteriaInterface { } - } diff --git a/src/Mvc/Model/CriteriaInterface.php b/src/Mvc/Model/CriteriaInterface.php index c8328ad5..d4d62d17 100644 --- a/src/Mvc/Model/CriteriaInterface.php +++ b/src/Mvc/Model/CriteriaInterface.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Mvc\Model; -use Phalcon\Di\DiInterface; - /** * Phalcon\Mvc\Model\CriteriaInterface * @@ -335,5 +333,4 @@ public function sharedLock(bool $sharedLock = true): CriteriaInterface; * @return CriteriaInterface */ public function where(string $conditions, $bindParams = null, $bindTypes = null): CriteriaInterface; - } diff --git a/src/Mvc/Model/Manager.php b/src/Mvc/Model/Manager.php index 00d242c5..268264b3 100644 --- a/src/Mvc/Model/Manager.php +++ b/src/Mvc/Model/Manager.php @@ -11,13 +11,10 @@ use Phalcon\Db\Adapter\AdapterInterface; use Phalcon\Di\DiInterface; -use Phalcon\Di\InjectionAwareInterface; -use Phalcon\Events\EventsAwareInterface; use Phalcon\Events\ManagerInterface as EventsManagerInterface; -use Phalcon\Mvc\ModelInterface; -use Phalcon\Mvc\Model\Query\Builder; use Phalcon\Mvc\Model\Query\BuilderInterface; use Phalcon\Mvc\Model\Query\StatusInterface; +use Phalcon\Mvc\ModelInterface; /** * Phalcon\Mvc\Model\Manager @@ -977,5 +974,4 @@ public function getLastQuery(): QueryInterface public function __destruct() { } - } diff --git a/src/Mvc/Model/ManagerInterface.php b/src/Mvc/Model/ManagerInterface.php index 328955d9..298df165 100644 --- a/src/Mvc/Model/ManagerInterface.php +++ b/src/Mvc/Model/ManagerInterface.php @@ -10,9 +10,9 @@ namespace Phalcon\Mvc\Model; use Phalcon\Db\Adapter\AdapterInterface; -use Phalcon\Mvc\ModelInterface; use Phalcon\Mvc\Model\Query\BuilderInterface; use Phalcon\Mvc\Model\Query\StatusInterface; +use Phalcon\Mvc\ModelInterface; /** * Phalcon\Mvc\Model\ManagerInterface @@ -488,5 +488,4 @@ public function setWriteConnectionService(\Phalcon\Mvc\ModelInterface $model, st * @return void */ public function useDynamicUpdate(\Phalcon\Mvc\ModelInterface $model, bool $dynamicUpdate): void; - } diff --git a/src/Mvc/Model/MetaData.php b/src/Mvc/Model/MetaData.php index b6de1e0a..f6f6ba94 100644 --- a/src/Mvc/Model/MetaData.php +++ b/src/Mvc/Model/MetaData.php @@ -11,10 +11,7 @@ use Phalcon\Cache\Adapter\AdapterInterface as CacheAdapterInterface; use Phalcon\Di\DiInterface; -use Phalcon\Di\InjectionAwareInterface; -use Phalcon\Mvc\Model\MetaData\Strategy\Introspection; use Phalcon\Mvc\Model\MetaData\Strategy\StrategyInterface; -use Phalcon\Mvc\ModelInterface; /** * Phalcon\Mvc\Model\MetaData @@ -650,5 +647,4 @@ final protected function initialize(\Phalcon\Mvc\ModelInterface $model, $key, $t private function throwWriteException($option): void { } - } diff --git a/src/Mvc/Model/MetaData/Apcu.php b/src/Mvc/Model/MetaData/Apcu.php index ea123946..0280a7f7 100644 --- a/src/Mvc/Model/MetaData/Apcu.php +++ b/src/Mvc/Model/MetaData/Apcu.php @@ -9,10 +9,7 @@ */ namespace Phalcon\Mvc\Model\MetaData; -use Phalcon\Helper\Arr; use Phalcon\Mvc\Model\MetaData; -use Phalcon\Mvc\Model\Exception; -use Phalcon\Cache\AdapterFactory; /** * Phalcon\Mvc\Model\MetaData\Apcu @@ -44,5 +41,4 @@ class Apcu extends MetaData public function __construct(\Phalcon\Cache\AdapterFactory $factory, array $options = null) { } - } diff --git a/src/Mvc/Model/MetaData/Libmemcached.php b/src/Mvc/Model/MetaData/Libmemcached.php index 1ce53e3f..724e4ee1 100644 --- a/src/Mvc/Model/MetaData/Libmemcached.php +++ b/src/Mvc/Model/MetaData/Libmemcached.php @@ -9,10 +9,7 @@ */ namespace Phalcon\Mvc\Model\MetaData; -use Phalcon\Helper\Arr; -use Phalcon\Mvc\Model\Exception; use Phalcon\Mvc\Model\MetaData; -use Phalcon\Cache\AdapterFactory; /** * Phalcon\Mvc\Model\MetaData\Libmemcached @@ -42,5 +39,4 @@ public function __construct(\Phalcon\Cache\AdapterFactory $factory, array $optio public function reset(): void { } - } diff --git a/src/Mvc/Model/MetaData/Memory.php b/src/Mvc/Model/MetaData/Memory.php index ae523993..35a10c40 100644 --- a/src/Mvc/Model/MetaData/Memory.php +++ b/src/Mvc/Model/MetaData/Memory.php @@ -10,7 +10,6 @@ namespace Phalcon\Mvc\Model\MetaData; use Phalcon\Mvc\Model\MetaData; -use Phalcon\Mvc\Model\Exception; /** * Phalcon\Mvc\Model\MetaData\Memory @@ -49,5 +48,4 @@ public function read(string $key): ?array public function write(string $key, array $data): void { } - } diff --git a/src/Mvc/Model/MetaData/Redis.php b/src/Mvc/Model/MetaData/Redis.php index fadae5d7..eefa8af0 100644 --- a/src/Mvc/Model/MetaData/Redis.php +++ b/src/Mvc/Model/MetaData/Redis.php @@ -9,9 +9,7 @@ */ namespace Phalcon\Mvc\Model\MetaData; -use Phalcon\Helper\Arr; use Phalcon\Mvc\Model\MetaData; -use Phalcon\Cache\AdapterFactory; /** * Phalcon\Mvc\Model\MetaData\Redis @@ -55,5 +53,4 @@ public function __construct(\Phalcon\Cache\AdapterFactory $factory, array $optio public function reset(): void { } - } diff --git a/src/Mvc/Model/MetaData/Strategy/Annotations.php b/src/Mvc/Model/MetaData/Strategy/Annotations.php index 511a53f7..9fdd2e38 100644 --- a/src/Mvc/Model/MetaData/Strategy/Annotations.php +++ b/src/Mvc/Model/MetaData/Strategy/Annotations.php @@ -9,12 +9,6 @@ */ namespace Phalcon\Mvc\Model\MetaData\Strategy; -use Phalcon\Di\DiInterface; -use Phalcon\Db\Column; -use Phalcon\Mvc\ModelInterface; -use Phalcon\Mvc\Model\MetaData; -use Phalcon\Mvc\Model\Exception; - /** * This file is part of the Phalcon Framework. * @@ -47,5 +41,4 @@ final public function getColumnMaps(\Phalcon\Mvc\ModelInterface $model, \Phalcon final public function getMetaData(\Phalcon\Mvc\ModelInterface $model, \Phalcon\Di\DiInterface $container): array { } - } diff --git a/src/Mvc/Model/MetaData/Strategy/Introspection.php b/src/Mvc/Model/MetaData/Strategy/Introspection.php index 7284f45f..0e875ac1 100644 --- a/src/Mvc/Model/MetaData/Strategy/Introspection.php +++ b/src/Mvc/Model/MetaData/Strategy/Introspection.php @@ -9,13 +9,6 @@ */ namespace Phalcon\Mvc\Model\MetaData\Strategy; -use Phalcon\Di\DiInterface; -use Phalcon\Db\Adapter\AdapterInterface; -use Phalcon\Db\Column; -use Phalcon\Mvc\ModelInterface; -use Phalcon\Mvc\Model\Exception; -use Phalcon\Mvc\Model\MetaData; - /** * Phalcon\Mvc\Model\MetaData\Strategy\Introspection * @@ -45,5 +38,4 @@ final public function getColumnMaps(\Phalcon\Mvc\ModelInterface $model, \Phalcon final public function getMetaData(\Phalcon\Mvc\ModelInterface $model, \Phalcon\Di\DiInterface $container): array { } - } diff --git a/src/Mvc/Model/MetaData/Strategy/StrategyInterface.php b/src/Mvc/Model/MetaData/Strategy/StrategyInterface.php index 1ca28cf0..f2cf8b19 100644 --- a/src/Mvc/Model/MetaData/Strategy/StrategyInterface.php +++ b/src/Mvc/Model/MetaData/Strategy/StrategyInterface.php @@ -9,9 +9,6 @@ */ namespace Phalcon\Mvc\Model\MetaData\Strategy; -use Phalcon\Mvc\ModelInterface; -use Phalcon\Di\DiInterface; - /** * This file is part of the Phalcon Framework. * @@ -41,5 +38,4 @@ public function getColumnMaps(\Phalcon\Mvc\ModelInterface $model, \Phalcon\Di\Di * @return array */ public function getMetaData(\Phalcon\Mvc\ModelInterface $model, \Phalcon\Di\DiInterface $container): array; - } diff --git a/src/Mvc/Model/MetaData/Stream.php b/src/Mvc/Model/MetaData/Stream.php index e45d7fc1..1feae5e8 100644 --- a/src/Mvc/Model/MetaData/Stream.php +++ b/src/Mvc/Model/MetaData/Stream.php @@ -10,7 +10,6 @@ namespace Phalcon\Mvc\Model\MetaData; use Phalcon\Mvc\Model\MetaData; -use Phalcon\Mvc\Model\Exception; /** * Phalcon\Mvc\Model\MetaData\Stream @@ -72,5 +71,4 @@ public function write(string $key, array $data): void private function throwWriteException($option): void { } - } diff --git a/src/Mvc/Model/MetaDataInterface.php b/src/Mvc/Model/MetaDataInterface.php index fb8c8af8..51f83a65 100644 --- a/src/Mvc/Model/MetaDataInterface.php +++ b/src/Mvc/Model/MetaDataInterface.php @@ -9,7 +9,6 @@ */ namespace Phalcon\Mvc\Model; -use Phalcon\Mvc\ModelInterface; use Phalcon\Mvc\Model\MetaData\Strategy\StrategyInterface; /** @@ -250,5 +249,4 @@ public function setStrategy(\Phalcon\Mvc\Model\MetaData\Strategy\StrategyInterfa * @return void */ public function write(string $key, array $data): void; - } diff --git a/src/Mvc/Model/Query.php b/src/Mvc/Model/Query.php index 92f5c549..9b761043 100644 --- a/src/Mvc/Model/Query.php +++ b/src/Mvc/Model/Query.php @@ -9,21 +9,10 @@ */ namespace Phalcon\Mvc\Model; -use Phalcon\Db\Column; -use Phalcon\Db\RawValue; -use Phalcon\Db\ResultInterface; use Phalcon\Db\Adapter\AdapterInterface; use Phalcon\Di\DiInterface; -use Phalcon\Helper\Arr; -use Phalcon\Mvc\ModelInterface; -use Phalcon\Mvc\Model\Query\Status; -use Phalcon\Mvc\Model\Resultset\Complex; use Phalcon\Mvc\Model\Query\StatusInterface; -use Phalcon\Mvc\Model\ResultsetInterface; -use Phalcon\Mvc\Model\Resultset\Simple; -use Phalcon\Di\InjectionAwareInterface; -use Phalcon\Db\DialectInterface; -use Phalcon\Mvc\Model\Query\Lang; +use Phalcon\Mvc\ModelInterface; use Psr\SimpleCache\CacheInterface; /** @@ -214,7 +203,7 @@ class Query implements \Phalcon\Mvc\Model\QueryInterface, \Phalcon\Di\InjectionA /** * @var array|null */ - static protected $internalPhqlCache; + protected static $internalPhqlCache; /** @@ -757,5 +746,4 @@ final protected function _prepareSelect($ast = null, bool $merge = false): array final protected function _prepareUpdate(): array { } - } diff --git a/src/Mvc/Model/Query/Builder.php b/src/Mvc/Model/Query/Builder.php index 88da9fbf..20249718 100644 --- a/src/Mvc/Model/Query/Builder.php +++ b/src/Mvc/Model/Query/Builder.php @@ -9,12 +9,7 @@ */ namespace Phalcon\Mvc\Model\Query; -use Phalcon\Di; -use Phalcon\Db\Column; use Phalcon\Di\DiInterface; -use Phalcon\Helper\Arr; -use Phalcon\Mvc\Model\Exception; -use Phalcon\Di\InjectionAwareInterface; use Phalcon\Mvc\Model\QueryInterface; /** @@ -952,5 +947,4 @@ protected function conditionNotBetween(string $clause, string $operator, string protected function conditionNotIn(string $clause, string $operator, string $expr, array $values): BuilderInterface { } - } diff --git a/src/Mvc/Model/Query/BuilderInterface.php b/src/Mvc/Model/Query/BuilderInterface.php index 1dd47b5f..dc49933e 100644 --- a/src/Mvc/Model/Query/BuilderInterface.php +++ b/src/Mvc/Model/Query/BuilderInterface.php @@ -350,5 +350,4 @@ public function setBindTypes(array $bindTypes, bool $merge = false): BuilderInte * @return BuilderInterface */ public function where(string $conditions, array $bindParams = [], array $bindTypes = []): BuilderInterface; - } diff --git a/src/Mvc/Model/Query/Lang.php b/src/Mvc/Model/Query/Lang.php index f87716d1..1877eef5 100644 --- a/src/Mvc/Model/Query/Lang.php +++ b/src/Mvc/Model/Query/Lang.php @@ -42,5 +42,4 @@ abstract class Lang public static function parsePHQL(string $phql): array { } - } diff --git a/src/Mvc/Model/Query/Status.php b/src/Mvc/Model/Query/Status.php index 32265b97..938f3cd6 100644 --- a/src/Mvc/Model/Query/Status.php +++ b/src/Mvc/Model/Query/Status.php @@ -9,7 +9,6 @@ */ namespace Phalcon\Mvc\Model\Query; -use Phalcon\Messages\MessageInterface; use Phalcon\Mvc\ModelInterface; /** @@ -88,5 +87,4 @@ public function getModel(): ModelInterface public function success(): bool { } - } diff --git a/src/Mvc/Model/Query/StatusInterface.php b/src/Mvc/Model/Query/StatusInterface.php index f788b95f..b70cbae2 100644 --- a/src/Mvc/Model/Query/StatusInterface.php +++ b/src/Mvc/Model/Query/StatusInterface.php @@ -9,7 +9,6 @@ */ namespace Phalcon\Mvc\Model\Query; -use Phalcon\Messages\MessageInterface; use Phalcon\Mvc\ModelInterface; /** @@ -40,5 +39,4 @@ public function getModel(): ModelInterface; * @return bool */ public function success(): bool; - } diff --git a/src/Mvc/Model/QueryInterface.php b/src/Mvc/Model/QueryInterface.php index ea25b110..9fbc47ef 100644 --- a/src/Mvc/Model/QueryInterface.php +++ b/src/Mvc/Model/QueryInterface.php @@ -121,5 +121,4 @@ public function setSharedLock(bool $sharedLock = false): QueryInterface; * @return QueryInterface */ public function setUniqueRow(bool $uniqueRow): QueryInterface; - } diff --git a/src/Mvc/Model/Relation.php b/src/Mvc/Model/Relation.php index f2a68a4b..bfd6a013 100644 --- a/src/Mvc/Model/Relation.php +++ b/src/Mvc/Model/Relation.php @@ -231,5 +231,4 @@ public function isReusable(): bool public function setIntermediateRelation($intermediateFields, string $intermediateModel, $intermediateReferencedFields) { } - } diff --git a/src/Mvc/Model/RelationInterface.php b/src/Mvc/Model/RelationInterface.php index b1bf64a1..a418e806 100644 --- a/src/Mvc/Model/RelationInterface.php +++ b/src/Mvc/Model/RelationInterface.php @@ -124,5 +124,4 @@ public function isThrough(): bool; * @param string $intermediateModel */ public function setIntermediateRelation($intermediateFields, string $intermediateModel, $intermediateReferencedFields); - } diff --git a/src/Mvc/Model/ResultInterface.php b/src/Mvc/Model/ResultInterface.php index 9dc1821c..9001d6f8 100644 --- a/src/Mvc/Model/ResultInterface.php +++ b/src/Mvc/Model/ResultInterface.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Mvc\Model; -use Phalcon\Mvc\ModelInterface; - /** * Phalcon\Mvc\Model\ResultInterface * @@ -26,5 +24,4 @@ interface ResultInterface * @return 0|ModelInterface */ public function setDirtyState(int $dirtyState); - } diff --git a/src/Mvc/Model/Resultset.php b/src/Mvc/Model/Resultset.php index 53420901..4095e562 100644 --- a/src/Mvc/Model/Resultset.php +++ b/src/Mvc/Model/Resultset.php @@ -9,19 +9,8 @@ */ namespace Phalcon\Mvc\Model; -use ArrayAccess; -use Closure; -use Countable; -use Iterator; -use JsonSerializable; -use Phalcon\Db\Enum; -use Phalcon\Messages\MessageInterface; -use Phalcon\Mvc\Model; use Phalcon\Mvc\ModelInterface; -use Phalcon\Storage\Serializer\SerializerInterface; use Psr\SimpleCache\CacheInterface; -use SeekableIterator; -use Serializable; /** * Phalcon\Mvc\Model\Resultset @@ -400,5 +389,4 @@ public function update($data, \Closure $conditionCallback = null): bool public function valid(): bool { } - } diff --git a/src/Mvc/Model/Resultset/Complex.php b/src/Mvc/Model/Resultset/Complex.php index f24abad3..78e89d64 100644 --- a/src/Mvc/Model/Resultset/Complex.php +++ b/src/Mvc/Model/Resultset/Complex.php @@ -9,18 +9,9 @@ */ namespace Phalcon\Mvc\Model\Resultset; -use Phalcon\Di; -use Phalcon\Di\DiInterface; use Phalcon\Db\ResultInterface; -use Phalcon\Mvc\Model; -use Phalcon\Mvc\Model\Exception; use Phalcon\Mvc\Model\Resultset; -use Phalcon\Mvc\Model\ResultsetInterface; -use Phalcon\Mvc\Model\Row; -use Phalcon\Mvc\ModelInterface; -use Phalcon\Storage\Serializer\SerializerInterface; use Psr\SimpleCache\CacheInterface; -use stdClass; /** * Phalcon\Mvc\Model\Resultset\Complex @@ -92,5 +83,4 @@ public function serialize(): string public function unserialize($data): void { } - } diff --git a/src/Mvc/Model/Resultset/Simple.php b/src/Mvc/Model/Resultset/Simple.php index 7a5d57d9..9344cba7 100644 --- a/src/Mvc/Model/Resultset/Simple.php +++ b/src/Mvc/Model/Resultset/Simple.php @@ -9,14 +9,9 @@ */ namespace Phalcon\Mvc\Model\Resultset; -use Phalcon\Di; -use Phalcon\Di\DiInterface; -use Phalcon\Mvc\Model; -use Phalcon\Mvc\Model\Exception; use Phalcon\Mvc\Model\Resultset; use Phalcon\Mvc\Model\Row; use Phalcon\Mvc\ModelInterface; -use Phalcon\Storage\Serializer\SerializerInterface; use Psr\SimpleCache\CacheInterface; /** @@ -97,5 +92,4 @@ public function serialize(): string public function unserialize($data): void { } - } diff --git a/src/Mvc/Model/ResultsetInterface.php b/src/Mvc/Model/ResultsetInterface.php index 836917ba..1ec61669 100644 --- a/src/Mvc/Model/ResultsetInterface.php +++ b/src/Mvc/Model/ResultsetInterface.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Mvc\Model; -use Closure; -use Phalcon\Messages\MessageInterface; use Phalcon\Mvc\ModelInterface; use Psr\SimpleCache\CacheInterface; @@ -129,5 +127,4 @@ public function toArray(): array; * @return bool */ public function update($data, \Closure $conditionCallback = null): bool; - } diff --git a/src/Mvc/Model/Row.php b/src/Mvc/Model/Row.php index 773ffc3d..e02676ba 100644 --- a/src/Mvc/Model/Row.php +++ b/src/Mvc/Model/Row.php @@ -9,9 +9,6 @@ */ namespace Phalcon\Mvc\Model; -use ArrayAccess; -use JsonSerializable; -use Phalcon\Mvc\EntityInterface; use Phalcon\Mvc\ModelInterface; /** @@ -120,5 +117,4 @@ public function toArray(): array public function writeAttribute(string $attribute, $value): void { } - } diff --git a/src/Mvc/Model/Transaction.php b/src/Mvc/Model/Transaction.php index fada9671..7206cc76 100644 --- a/src/Mvc/Model/Transaction.php +++ b/src/Mvc/Model/Transaction.php @@ -11,10 +11,8 @@ use Phalcon\Db\Adapter\AdapterInterface; use Phalcon\Di\DiInterface; -use Phalcon\Mvc\ModelInterface; -use Phalcon\Mvc\Model\Transaction\Failed as TxFailed; use Phalcon\Mvc\Model\Transaction\ManagerInterface; -use Phalcon\Mvc\Model\TransactionInterface; +use Phalcon\Mvc\ModelInterface; /** * Phalcon\Mvc\Model\Transaction @@ -228,5 +226,4 @@ public function setTransactionManager(\Phalcon\Mvc\Model\Transaction\ManagerInte public function throwRollbackException(bool $status): TransactionInterface { } - } diff --git a/src/Mvc/Model/Transaction/Failed.php b/src/Mvc/Model/Transaction/Failed.php index a22f787e..88f5c1c6 100644 --- a/src/Mvc/Model/Transaction/Failed.php +++ b/src/Mvc/Model/Transaction/Failed.php @@ -52,5 +52,4 @@ public function getRecord(): ModelInterface public function getRecordMessages(): array { } - } diff --git a/src/Mvc/Model/Transaction/Manager.php b/src/Mvc/Model/Transaction/Manager.php index 35de6f45..b98801a4 100644 --- a/src/Mvc/Model/Transaction/Manager.php +++ b/src/Mvc/Model/Transaction/Manager.php @@ -9,10 +9,7 @@ */ namespace Phalcon\Mvc\Model\Transaction; -use Phalcon\Di; use Phalcon\Di\DiInterface; -use Phalcon\Di\InjectionAwareInterface; -use Phalcon\Mvc\Model\Transaction; use Phalcon\Mvc\Model\TransactionInterface; /** @@ -258,5 +255,4 @@ public function setRollbackPendent(bool $rollbackPendent): ManagerInterface protected function collectTransaction(\Phalcon\Mvc\Model\TransactionInterface $transaction): void { } - } diff --git a/src/Mvc/Model/Transaction/ManagerInterface.php b/src/Mvc/Model/Transaction/ManagerInterface.php index 036986ad..ba56e79d 100644 --- a/src/Mvc/Model/Transaction/ManagerInterface.php +++ b/src/Mvc/Model/Transaction/ManagerInterface.php @@ -107,5 +107,4 @@ public function setDbService(string $service): ManagerInterface; * @return ManagerInterface */ public function setRollbackPendent(bool $rollbackPendent): ManagerInterface; - } diff --git a/src/Mvc/Model/TransactionInterface.php b/src/Mvc/Model/TransactionInterface.php index 47389fd9..19b23ad9 100644 --- a/src/Mvc/Model/TransactionInterface.php +++ b/src/Mvc/Model/TransactionInterface.php @@ -9,9 +9,6 @@ */ namespace Phalcon\Mvc\Model; -use Phalcon\Mvc\ModelInterface; -use Phalcon\Mvc\Model\Transaction\ManagerInterface; - /** * Phalcon\Mvc\Model\TransactionInterface * @@ -110,5 +107,4 @@ public function setTransactionManager(\Phalcon\Mvc\Model\Transaction\ManagerInte * @return TransactionInterface */ public function throwRollbackException(bool $status): TransactionInterface; - } diff --git a/src/Mvc/Model/ValidationFailed.php b/src/Mvc/Model/ValidationFailed.php index 0ef15e60..a4562f9b 100644 --- a/src/Mvc/Model/ValidationFailed.php +++ b/src/Mvc/Model/ValidationFailed.php @@ -58,5 +58,4 @@ public function getMessages(): array public function getModel(): ModelInterface { } - } diff --git a/src/Mvc/ModelInterface.php b/src/Mvc/ModelInterface.php index 2998a071..8c02bb2c 100644 --- a/src/Mvc/ModelInterface.php +++ b/src/Mvc/ModelInterface.php @@ -10,12 +10,9 @@ namespace Phalcon\Mvc; use Phalcon\Db\Adapter\AdapterInterface; -use Phalcon\Di\DiInterface; -use Phalcon\Messages\MessageInterface; use Phalcon\Mvc\Model\CriteriaInterface; use Phalcon\Mvc\Model\MetaDataInterface; use Phalcon\Mvc\Model\ResultsetInterface; -use Phalcon\Mvc\Model\TransactionInterface; /** * Phalcon\Mvc\ModelInterface @@ -354,5 +351,4 @@ public function validationHasFailed(): bool; * @return bool */ public function update(): bool; - } diff --git a/src/Mvc/ModuleDefinitionInterface.php b/src/Mvc/ModuleDefinitionInterface.php index 2d445b56..ac195410 100644 --- a/src/Mvc/ModuleDefinitionInterface.php +++ b/src/Mvc/ModuleDefinitionInterface.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Mvc; -use Phalcon\Di\DiInterface; - /** * Phalcon\Mvc\ModuleDefinitionInterface * @@ -32,5 +30,4 @@ public function registerAutoloaders(\Phalcon\Di\DiInterface $container = null); * @param \Phalcon\Di\DiInterface $container */ public function registerServices(\Phalcon\Di\DiInterface $container); - } diff --git a/src/Mvc/Router.php b/src/Mvc/Router.php index 18734183..e49eb958 100644 --- a/src/Mvc/Router.php +++ b/src/Mvc/Router.php @@ -9,14 +9,9 @@ */ namespace Phalcon\Mvc; -use Phalcon\Di\DiInterface; use Phalcon\Di\AbstractInjectionAware; -use Phalcon\Events\EventsAwareInterface; use Phalcon\Events\ManagerInterface; -use Phalcon\Http\RequestInterface; -use Phalcon\Mvc\Router\Exception; use Phalcon\Mvc\Router\GroupInterface; -use Phalcon\Mvc\Router\Route; use Phalcon\Mvc\Router\RouteInterface; /** @@ -680,5 +675,4 @@ public function setEventsManager(\Phalcon\Events\ManagerInterface $eventsManager public function wasMatched(): bool { } - } diff --git a/src/Mvc/Router/Annotations.php b/src/Mvc/Router/Annotations.php index 05451c6f..d3e39133 100644 --- a/src/Mvc/Router/Annotations.php +++ b/src/Mvc/Router/Annotations.php @@ -9,9 +9,7 @@ */ namespace Phalcon\Mvc\Router; -use Phalcon\Di\DiInterface; use Phalcon\Mvc\Router; -use Phalcon\Annotations\Annotation; /** * Phalcon\Mvc\Router\Annotations @@ -182,5 +180,4 @@ public function getActionPreformatCallback() public function setControllerSuffix(string $controllerSuffix) { } - } diff --git a/src/Mvc/Router/Group.php b/src/Mvc/Router/Group.php index cfa5e07f..81351637 100644 --- a/src/Mvc/Router/Group.php +++ b/src/Mvc/Router/Group.php @@ -402,5 +402,4 @@ public function setPrefix(string $prefix): GroupInterface protected function addRoute(string $pattern, $paths = null, $httpMethods = null): RouteInterface { } - } diff --git a/src/Mvc/Router/GroupInterface.php b/src/Mvc/Router/GroupInterface.php index 7e0ad563..3c780175 100644 --- a/src/Mvc/Router/GroupInterface.php +++ b/src/Mvc/Router/GroupInterface.php @@ -237,5 +237,4 @@ public function setPaths($paths): GroupInterface; * @return GroupInterface */ public function setPrefix(string $prefix): GroupInterface; - } diff --git a/src/Mvc/Router/Route.php b/src/Mvc/Router/Route.php index 42f83df8..91654de4 100644 --- a/src/Mvc/Router/Route.php +++ b/src/Mvc/Router/Route.php @@ -74,7 +74,7 @@ class Route implements \Phalcon\Mvc\Router\RouteInterface /** * @var int */ - static protected $uniqueId = 0; + protected static $uniqueId = 0; /** @@ -400,5 +400,4 @@ public function setName(string $name): RouteInterface public function via($httpMethods): RouteInterface { } - } diff --git a/src/Mvc/Router/RouteInterface.php b/src/Mvc/Router/RouteInterface.php index bde6e6ca..5f3759ce 100644 --- a/src/Mvc/Router/RouteInterface.php +++ b/src/Mvc/Router/RouteInterface.php @@ -137,5 +137,4 @@ public static function reset(): void; * @return RouteInterface */ public function via($httpMethods): RouteInterface; - } diff --git a/src/Mvc/RouterInterface.php b/src/Mvc/RouterInterface.php index 8b5a2bd8..938590c4 100644 --- a/src/Mvc/RouterInterface.php +++ b/src/Mvc/RouterInterface.php @@ -10,7 +10,6 @@ namespace Phalcon\Mvc; use Phalcon\Mvc\Router\RouteInterface; -use Phalcon\Mvc\Router\GroupInterface; /** * Interface for Phalcon\Mvc\Router @@ -261,5 +260,4 @@ public function setDefaults(array $defaults): RouterInterface; * @return bool */ public function wasMatched(): bool; - } diff --git a/src/Mvc/View.php b/src/Mvc/View.php index bfc2d7d9..35479a5f 100644 --- a/src/Mvc/View.php +++ b/src/Mvc/View.php @@ -9,15 +9,8 @@ */ namespace Phalcon\Mvc; -use Closure; -use Phalcon\Di\DiInterface; use Phalcon\Di\Injectable; use Phalcon\Events\ManagerInterface; -use Phalcon\Helper\Arr; -use Phalcon\Helper\Str; -use Phalcon\Mvc\View\Exception; -use Phalcon\Events\EventsAwareInterface; -use Phalcon\Mvc\View\Engine\Php as PhpEngine; /** * Phalcon\Mvc\View @@ -880,5 +873,4 @@ protected function loadTemplateEngines(): array public function processRender(string $controllerName, string $actionName, array $params = [], bool $fireEvents = true): bool { } - } diff --git a/src/Mvc/View/Engine/AbstractEngine.php b/src/Mvc/View/Engine/AbstractEngine.php index 84c8c2f3..55523132 100644 --- a/src/Mvc/View/Engine/AbstractEngine.php +++ b/src/Mvc/View/Engine/AbstractEngine.php @@ -63,5 +63,4 @@ public function getView(): ViewBaseInterface public function partial(string $partialPath, $params = null): void { } - } diff --git a/src/Mvc/View/Engine/EngineInterface.php b/src/Mvc/View/Engine/EngineInterface.php index 4a2f99fe..aa5dbe76 100644 --- a/src/Mvc/View/Engine/EngineInterface.php +++ b/src/Mvc/View/Engine/EngineInterface.php @@ -41,5 +41,4 @@ public function partial(string $partialPath, $params = null): void; * @param bool $mustClean */ public function render(string $path, $params, bool $mustClean = false); - } diff --git a/src/Mvc/View/Engine/Php.php b/src/Mvc/View/Engine/Php.php index a8b2ac61..35138e3f 100644 --- a/src/Mvc/View/Engine/Php.php +++ b/src/Mvc/View/Engine/Php.php @@ -25,5 +25,4 @@ class Php extends \Phalcon\Mvc\View\Engine\AbstractEngine public function render(string $path, $params, bool $mustClean = false) { } - } diff --git a/src/Mvc/View/Engine/Volt.php b/src/Mvc/View/Engine/Volt.php index 38a538be..7e031bcc 100644 --- a/src/Mvc/View/Engine/Volt.php +++ b/src/Mvc/View/Engine/Volt.php @@ -9,11 +9,8 @@ */ namespace Phalcon\Mvc\View\Engine; -use Phalcon\Di\DiInterface; -use Phalcon\Events\EventsAwareInterface; use Phalcon\Events\ManagerInterface; use Phalcon\Mvc\View\Engine\Volt\Compiler; -use Phalcon\Mvc\View\Exception; /** * Designer friendly and fast template engine for PHP written in Zephir/C @@ -169,5 +166,4 @@ public function slice($value, int $start = 0, $end = null) public function sort(array $value): array { } - } diff --git a/src/Mvc/View/Engine/Volt/Compiler.php b/src/Mvc/View/Engine/Volt/Compiler.php index 0e642c45..86c590e7 100644 --- a/src/Mvc/View/Engine/Volt/Compiler.php +++ b/src/Mvc/View/Engine/Volt/Compiler.php @@ -9,10 +9,8 @@ */ namespace Phalcon\Mvc\View\Engine\Volt; -use Closure; use Phalcon\Di\DiInterface; use Phalcon\Mvc\ViewBaseInterface; -use Phalcon\Di\InjectionAwareInterface; /** * This class reads and compiles Volt templates into PHP plain code @@ -624,5 +622,4 @@ final protected function statementList(array $statements, bool $extendsMode = fa final protected function statementListOrExtends($statements) { } - } diff --git a/src/Mvc/View/Engine/Volt/Exception.php b/src/Mvc/View/Engine/Volt/Exception.php index c9739cea..8783b6f1 100644 --- a/src/Mvc/View/Engine/Volt/Exception.php +++ b/src/Mvc/View/Engine/Volt/Exception.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Mvc\View\Engine\Volt; -use Phalcon\Mvc\View\Exception as BaseException; - /** * Class for exceptions thrown by Phalcon\Mvc\View */ @@ -40,5 +38,4 @@ public function __construct(string $message = '', array $statement = [], int $co public function getStatement(): array { } - } diff --git a/src/Mvc/View/Simple.php b/src/Mvc/View/Simple.php index 4c5f917e..991f012f 100644 --- a/src/Mvc/View/Simple.php +++ b/src/Mvc/View/Simple.php @@ -9,16 +9,9 @@ */ namespace Phalcon\Mvc\View; -use Closure; -use Phalcon\Di\DiInterface; use Phalcon\Di\Injectable; -use Phalcon\Events\EventsAwareInterface; use Phalcon\Events\ManagerInterface; -use Phalcon\Helper\Arr; -use Phalcon\Helper\Str; -use Phalcon\Mvc\ViewBaseInterface; use Phalcon\Mvc\View\Engine\EngineInterface; -use Phalcon\Mvc\View\Engine\Php as PhpEngine; /** * Phalcon\Mvc\View\Simple @@ -350,5 +343,4 @@ protected function loadTemplateEngines(): array final protected function internalRender(string $path, $params): void { } - } diff --git a/src/Mvc/ViewBaseInterface.php b/src/Mvc/ViewBaseInterface.php index c01d2115..494f184a 100644 --- a/src/Mvc/ViewBaseInterface.php +++ b/src/Mvc/ViewBaseInterface.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Mvc; -use Phalcon\Cache\Adapter\AdapterInterface; - /** * Phalcon\Mvc\ViewInterface * @@ -78,5 +76,4 @@ public function setVar(string $key, $value); * @param string $viewsDir */ public function setViewsDir(string $viewsDir); - } diff --git a/src/Mvc/ViewInterface.php b/src/Mvc/ViewInterface.php index 248db947..bf430e4c 100644 --- a/src/Mvc/ViewInterface.php +++ b/src/Mvc/ViewInterface.php @@ -202,5 +202,4 @@ public function setTemplateBefore($templateBefore); * Starts rendering process enabling the output buffering */ public function start(); - } diff --git a/src/Paginator/Adapter/AbstractAdapter.php b/src/Paginator/Adapter/AbstractAdapter.php index da960704..97c5b2c0 100644 --- a/src/Paginator/Adapter/AbstractAdapter.php +++ b/src/Paginator/Adapter/AbstractAdapter.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Paginator\Adapter; -use Phalcon\Paginator\Exception; -use Phalcon\Paginator\Repository; use Phalcon\Paginator\RepositoryInterface; /** @@ -104,5 +102,4 @@ public function setRepository(\Phalcon\Paginator\RepositoryInterface $repository protected function getRepository(array $properties = null): RepositoryInterface { } - } diff --git a/src/Paginator/Adapter/AdapterInterface.php b/src/Paginator/Adapter/AdapterInterface.php index e4136ebe..b39e5b27 100644 --- a/src/Paginator/Adapter/AdapterInterface.php +++ b/src/Paginator/Adapter/AdapterInterface.php @@ -46,5 +46,4 @@ public function setCurrentPage(int $page); * @param int $limit */ public function setLimit(int $limit); - } diff --git a/src/Paginator/Adapter/Model.php b/src/Paginator/Adapter/Model.php index f692741c..cca3b9d3 100644 --- a/src/Paginator/Adapter/Model.php +++ b/src/Paginator/Adapter/Model.php @@ -9,10 +9,6 @@ */ namespace Phalcon\Paginator\Adapter; -use Phalcon\Helper\Arr; -use Phalcon\Mvc\ModelInterface; -use Phalcon\Mvc\Model\ResultsetInterface; -use Phalcon\Paginator\Exception; use Phalcon\Paginator\RepositoryInterface; /** @@ -90,5 +86,4 @@ class Model extends \Phalcon\Paginator\Adapter\AbstractAdapter public function paginate(): RepositoryInterface { } - } diff --git a/src/Paginator/Adapter/NativeArray.php b/src/Paginator/Adapter/NativeArray.php index fef477e5..a6bae499 100644 --- a/src/Paginator/Adapter/NativeArray.php +++ b/src/Paginator/Adapter/NativeArray.php @@ -9,7 +9,6 @@ */ namespace Phalcon\Paginator\Adapter; -use Phalcon\Paginator\Exception; use Phalcon\Paginator\RepositoryInterface; /** @@ -46,5 +45,4 @@ class NativeArray extends \Phalcon\Paginator\Adapter\AbstractAdapter public function paginate(): RepositoryInterface { } - } diff --git a/src/Paginator/Adapter/QueryBuilder.php b/src/Paginator/Adapter/QueryBuilder.php index 5bba1583..5ed0a4a1 100644 --- a/src/Paginator/Adapter/QueryBuilder.php +++ b/src/Paginator/Adapter/QueryBuilder.php @@ -9,10 +9,8 @@ */ namespace Phalcon\Paginator\Adapter; -use Phalcon\Db\Enum; use Phalcon\Mvc\Model\Query\Builder; use Phalcon\Paginator\RepositoryInterface; -use Phalcon\Paginator\Exception; /** * Phalcon\Paginator\Adapter\QueryBuilder @@ -102,5 +100,4 @@ public function paginate(): RepositoryInterface public function setQueryBuilder(\Phalcon\Mvc\Model\Query\Builder $builder): QueryBuilder { } - } diff --git a/src/Paginator/PaginatorFactory.php b/src/Paginator/PaginatorFactory.php index 403aeb6e..f1193ec5 100644 --- a/src/Paginator/PaginatorFactory.php +++ b/src/Paginator/PaginatorFactory.php @@ -9,9 +9,8 @@ */ namespace Phalcon\Paginator; -use Phalcon\Paginator\Adapter\AdapterInterface; use Phalcon\Factory\AbstractFactory; -use Phalcon\Helper\Arr; +use Phalcon\Paginator\Adapter\AdapterInterface; /** * This file is part of the Phalcon Framework. @@ -89,5 +88,4 @@ public function newInstance(string $name, array $options = []): AdapterInterface protected function getAdapters(): array { } - } diff --git a/src/Paginator/Repository.php b/src/Paginator/Repository.php index d677eb13..19931fb2 100644 --- a/src/Paginator/Repository.php +++ b/src/Paginator/Repository.php @@ -9,9 +9,6 @@ */ namespace Phalcon\Paginator; -use JsonSerializable; -use Phalcon\Helper\Arr; - /** * Phalcon\Paginator\Repository * @@ -170,5 +167,4 @@ protected function getProperty(string $property, $defaultValue = null) protected function getRealNameProperty(string $property): string { } - } diff --git a/src/Paginator/RepositoryInterface.php b/src/Paginator/RepositoryInterface.php index 37835568..921f0c17 100644 --- a/src/Paginator/RepositoryInterface.php +++ b/src/Paginator/RepositoryInterface.php @@ -120,5 +120,4 @@ public function setAliases(array $aliases): RepositoryInterface; * @return RepositoryInterface */ public function setProperties(array $properties): RepositoryInterface; - } diff --git a/src/Registry.php b/src/Registry.php index 5771d954..0a27af22 100644 --- a/src/Registry.php +++ b/src/Registry.php @@ -294,5 +294,4 @@ final public function toJson(int $options = 79): string final public function unserialize($serialized): void { } - } diff --git a/src/Security.php b/src/Security.php index 0d547b52..fdd8723e 100644 --- a/src/Security.php +++ b/src/Security.php @@ -9,11 +9,9 @@ */ namespace Phalcon; -use Phalcon\Di\DiInterface; use Phalcon\Di\AbstractInjectionAware; use Phalcon\Http\RequestInterface; use Phalcon\Security\Random; -use Phalcon\Security\Exception; use Phalcon\Session\ManagerInterface as SessionInterface; /** @@ -328,5 +326,4 @@ private function getLocalRequest(): ?RequestInterface private function getLocalSession(): ?SessionInterface { } - } diff --git a/src/Security/JWT/Builder.php b/src/Security/JWT/Builder.php index eedcab40..8a481556 100644 --- a/src/Security/JWT/Builder.php +++ b/src/Security/JWT/Builder.php @@ -9,15 +9,9 @@ */ namespace Phalcon\Security\JWT; -use Phalcon\Collection; use Phalcon\Collection\CollectionInterface; -use Phalcon\Helper\Base64; -use Phalcon\Helper\Json; use Phalcon\Security\JWT\Exceptions\ValidatorException; use Phalcon\Security\JWT\Signer\SignerInterface; -use Phalcon\Security\JWT\Token\Enum; -use Phalcon\Security\JWT\Token\Item; -use Phalcon\Security\JWT\Token\Signature; use Phalcon\Security\JWT\Token\Token; /** @@ -307,5 +301,4 @@ public function setPassphrase(string $passphrase): Builder protected function setClaim(string $name, $value): Builder { } - } diff --git a/src/Security/JWT/Exceptions/UnsupportedAlgorithmException.php b/src/Security/JWT/Exceptions/UnsupportedAlgorithmException.php index 427fa4db..54847fee 100644 --- a/src/Security/JWT/Exceptions/UnsupportedAlgorithmException.php +++ b/src/Security/JWT/Exceptions/UnsupportedAlgorithmException.php @@ -10,7 +10,6 @@ namespace Phalcon\Security\JWT\Exceptions; use Exception; -use Throwable; /** * This file is part of the Phalcon Framework. diff --git a/src/Security/JWT/Exceptions/ValidatorException.php b/src/Security/JWT/Exceptions/ValidatorException.php index bd615e7a..09020d3d 100644 --- a/src/Security/JWT/Exceptions/ValidatorException.php +++ b/src/Security/JWT/Exceptions/ValidatorException.php @@ -10,7 +10,6 @@ namespace Phalcon\Security\JWT\Exceptions; use Exception; -use Throwable; /** * This file is part of the Phalcon Framework. diff --git a/src/Security/JWT/Signer/AbstractSigner.php b/src/Security/JWT/Signer/AbstractSigner.php index 9684e8c0..17371cf0 100644 --- a/src/Security/JWT/Signer/AbstractSigner.php +++ b/src/Security/JWT/Signer/AbstractSigner.php @@ -28,5 +28,4 @@ abstract class AbstractSigner implements \Phalcon\Security\JWT\Signer\SignerInte public function getAlgorithm(): string { } - } diff --git a/src/Security/JWT/Signer/Hmac.php b/src/Security/JWT/Signer/Hmac.php index d2eba8fe..ed78120a 100644 --- a/src/Security/JWT/Signer/Hmac.php +++ b/src/Security/JWT/Signer/Hmac.php @@ -73,5 +73,4 @@ public function verify(string $source, string $payload, string $passphrase): boo private function getHash(string $payload, string $passphrase): string { } - } diff --git a/src/Security/JWT/Signer/None.php b/src/Security/JWT/Signer/None.php index 5d122c47..1b4d909b 100644 --- a/src/Security/JWT/Signer/None.php +++ b/src/Security/JWT/Signer/None.php @@ -57,5 +57,4 @@ public function sign(string $payload, string $passphrase): string public function verify(string $source, string $payload, string $passphrase): bool { } - } diff --git a/src/Security/JWT/Signer/SignerInterface.php b/src/Security/JWT/Signer/SignerInterface.php index 5786c128..d93239ca 100644 --- a/src/Security/JWT/Signer/SignerInterface.php +++ b/src/Security/JWT/Signer/SignerInterface.php @@ -54,5 +54,4 @@ public function sign(string $payload, string $passphrase): string; * @return bool */ public function verify(string $source, string $payload, string $passphrase): bool; - } diff --git a/src/Security/JWT/Token/AbstractItem.php b/src/Security/JWT/Token/AbstractItem.php index b33fbffe..c45c3d30 100644 --- a/src/Security/JWT/Token/AbstractItem.php +++ b/src/Security/JWT/Token/AbstractItem.php @@ -28,5 +28,4 @@ abstract class AbstractItem public function getEncoded(): string { } - } diff --git a/src/Security/JWT/Token/Enum.php b/src/Security/JWT/Token/Enum.php index 910003d9..aad3a303 100644 --- a/src/Security/JWT/Token/Enum.php +++ b/src/Security/JWT/Token/Enum.php @@ -49,6 +49,4 @@ class Enum const SUBJECT = 'sub'; - - } diff --git a/src/Security/JWT/Token/Item.php b/src/Security/JWT/Token/Item.php index 673c460d..3a7c48dc 100644 --- a/src/Security/JWT/Token/Item.php +++ b/src/Security/JWT/Token/Item.php @@ -50,5 +50,4 @@ public function getPayload(): array public function has(string $name): bool { } - } diff --git a/src/Security/JWT/Token/Parser.php b/src/Security/JWT/Token/Parser.php index be7c5e5a..10034e6f 100644 --- a/src/Security/JWT/Token/Parser.php +++ b/src/Security/JWT/Token/Parser.php @@ -9,11 +9,6 @@ */ namespace Phalcon\Security\JWT\Token; -use InvalidArgumentException; -use Phalcon\Helper\Arr; -use Phalcon\Helper\Base64; -use Phalcon\Helper\Json; - /** * Class Parser */ @@ -75,5 +70,4 @@ private function decodeSignature(Item $headers, string $signature): Signature private function parseToken(string $token): array { } - } diff --git a/src/Security/JWT/Token/Signature.php b/src/Security/JWT/Token/Signature.php index 9e469f6b..558cbba4 100644 --- a/src/Security/JWT/Token/Signature.php +++ b/src/Security/JWT/Token/Signature.php @@ -31,5 +31,4 @@ public function __construct(string $hash = '', string $encoded = '') public function getHash(): string { } - } diff --git a/src/Security/JWT/Token/Token.php b/src/Security/JWT/Token/Token.php index d46dbf0a..65bb5b94 100644 --- a/src/Security/JWT/Token/Token.php +++ b/src/Security/JWT/Token/Token.php @@ -81,5 +81,4 @@ public function getPayload(): string public function getToken(): string { } - } diff --git a/src/Security/JWT/Validator.php b/src/Security/JWT/Validator.php index 65013398..1607fd36 100644 --- a/src/Security/JWT/Validator.php +++ b/src/Security/JWT/Validator.php @@ -11,7 +11,6 @@ use Phalcon\Security\JWT\Exceptions\ValidatorException; use Phalcon\Security\JWT\Signer\SignerInterface; -use Phalcon\Security\JWT\Token\Enum; use Phalcon\Security\JWT\Token\Token; /** @@ -131,5 +130,4 @@ public function validateSignature(\Phalcon\Security\JWT\Signer\SignerInterface $ private function getTimestamp(int $timestamp): int { } - } diff --git a/src/Security/Random.php b/src/Security/Random.php index ea9b65f9..0c309003 100644 --- a/src/Security/Random.php +++ b/src/Security/Random.php @@ -282,5 +282,4 @@ public function uuid(): string protected function base(string $alphabet, int $base, $n = null): string { } - } diff --git a/src/Session/Adapter/AbstractAdapter.php b/src/Session/Adapter/AbstractAdapter.php index c563515c..e0d4fc6e 100644 --- a/src/Session/Adapter/AbstractAdapter.php +++ b/src/Session/Adapter/AbstractAdapter.php @@ -10,7 +10,6 @@ namespace Phalcon\Session\Adapter; use Phalcon\Storage\Adapter\AdapterInterface; -use SessionHandlerInterface; /** * This file is part of the Phalcon. @@ -88,5 +87,4 @@ public function open($savePath, $sessionName): bool public function write($id, $data): bool { } - } diff --git a/src/Session/Adapter/Libmemcached.php b/src/Session/Adapter/Libmemcached.php index 0472bdac..5a11b14d 100644 --- a/src/Session/Adapter/Libmemcached.php +++ b/src/Session/Adapter/Libmemcached.php @@ -9,9 +9,6 @@ */ namespace Phalcon\Session\Adapter; -use Phalcon\Storage\AdapterFactory; -use Phalcon\Helper\Arr; - /** * Phalcon\Session\Adapter\Libmemcached */ @@ -40,5 +37,4 @@ class Libmemcached extends \Phalcon\Session\Adapter\AbstractAdapter public function __construct(\Phalcon\Storage\AdapterFactory $factory, array $options = []) { } - } diff --git a/src/Session/Adapter/Noop.php b/src/Session/Adapter/Noop.php index 224c8bd6..c1ffd2f4 100644 --- a/src/Session/Adapter/Noop.php +++ b/src/Session/Adapter/Noop.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Session\Adapter; -use SessionHandlerInterface; - /** * Phalcon\Session\Adapter\Noop * @@ -139,5 +137,4 @@ public function write($id, $data): bool protected function getPrefixedName($name): string { } - } diff --git a/src/Session/Adapter/Redis.php b/src/Session/Adapter/Redis.php index 243a6dfb..6732c01a 100644 --- a/src/Session/Adapter/Redis.php +++ b/src/Session/Adapter/Redis.php @@ -9,9 +9,6 @@ */ namespace Phalcon\Session\Adapter; -use Phalcon\Storage\AdapterFactory; -use Phalcon\Helper\Arr; - /** * Phalcon\Session\Adapter\Redis */ @@ -35,5 +32,4 @@ class Redis extends \Phalcon\Session\Adapter\AbstractAdapter public function __construct(\Phalcon\Storage\AdapterFactory $factory, array $options = []) { } - } diff --git a/src/Session/Adapter/Stream.php b/src/Session/Adapter/Stream.php index 7df73a25..9758443c 100644 --- a/src/Session/Adapter/Stream.php +++ b/src/Session/Adapter/Stream.php @@ -9,9 +9,6 @@ */ namespace Phalcon\Session\Adapter; -use Phalcon\Helper\Str; -use Phalcon\Session\Exception; - /** * Phalcon\Session\Adapter\Stream * @@ -95,5 +92,4 @@ public function read($id): string public function write($id, $data): bool { } - } diff --git a/src/Session/Bag.php b/src/Session/Bag.php index 2d51533d..e616c49c 100644 --- a/src/Session/Bag.php +++ b/src/Session/Bag.php @@ -10,9 +10,7 @@ namespace Phalcon\Session; use Phalcon\Collection; -use Phalcon\Di; use Phalcon\Di\DiInterface; -use Phalcon\Di\InjectionAwareInterface; /** * Phalcon\Session\Bag @@ -115,5 +113,4 @@ public function set(string $element, $value): void public function setDI(\Phalcon\Di\DiInterface $container): void { } - } diff --git a/src/Session/Manager.php b/src/Session/Manager.php index a24c6851..111de4f4 100644 --- a/src/Session/Manager.php +++ b/src/Session/Manager.php @@ -10,11 +10,8 @@ namespace Phalcon\Session; use InvalidArgumentException; -use RuntimeException; -use SessionHandlerInterface; use Phalcon\Di\AbstractInjectionAware; -use Phalcon\Di\DiInterface; -use Phalcon\Helper\Arr; +use SessionHandlerInterface; /** * Phalcon\Session\Manager @@ -274,5 +271,4 @@ public function status(): int private function getUniqueKey(string $key): string { } - } diff --git a/src/Session/ManagerInterface.php b/src/Session/ManagerInterface.php index 91e1603c..58faaa25 100644 --- a/src/Session/ManagerInterface.php +++ b/src/Session/ManagerInterface.php @@ -10,7 +10,6 @@ namespace Phalcon\Session; use InvalidArgumentException; -use RuntimeException; use SessionHandlerInterface; /** @@ -196,5 +195,4 @@ public function start(): bool; * @return ManagerInterface */ public function regenerateId($deleteOldSession = true): ManagerInterface; - } diff --git a/src/Storage/Adapter/AbstractAdapter.php b/src/Storage/Adapter/AbstractAdapter.php index 86a4e033..85e98c57 100644 --- a/src/Storage/Adapter/AbstractAdapter.php +++ b/src/Storage/Adapter/AbstractAdapter.php @@ -10,12 +10,9 @@ namespace Phalcon\Storage\Adapter; use DateInterval; -use DateTime; -use Phalcon\Helper\Arr; -use Phalcon\Helper\Str; use Phalcon\Storage\Exception; -use Phalcon\Storage\SerializerFactory; use Phalcon\Storage\Serializer\SerializerInterface; +use Phalcon\Storage\SerializerFactory; /** * This file is part of the Phalcon Framework. @@ -243,5 +240,4 @@ protected function getUnserializedData($content) protected function initSerializer(): void { } - } diff --git a/src/Storage/Adapter/AdapterInterface.php b/src/Storage/Adapter/AdapterInterface.php index aeef2847..475ff95b 100644 --- a/src/Storage/Adapter/AdapterInterface.php +++ b/src/Storage/Adapter/AdapterInterface.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Storage\Adapter; -use Phalcon\Storage\Serializer\SerializerInterface; - /** * Interface for Phalcon\Logger adapters */ @@ -99,5 +97,4 @@ public function increment(string $key, int $value = 1); * @return bool */ public function set(string $key, $value, $ttl = null): bool; - } diff --git a/src/Storage/Adapter/Apcu.php b/src/Storage/Adapter/Apcu.php index f9f464b3..0e8019d2 100644 --- a/src/Storage/Adapter/Apcu.php +++ b/src/Storage/Adapter/Apcu.php @@ -9,12 +9,6 @@ */ namespace Phalcon\Storage\Adapter; -use APCuIterator; -use Phalcon\Helper\Arr; -use Phalcon\Storage\Exception; -use Phalcon\Storage\SerializerFactory; -use Phalcon\Storage\Serializer\SerializerInterface; - /** * Apcu adapter */ @@ -140,5 +134,4 @@ public function increment(string $key, int $value = 1) public function set(string $key, $value, $ttl = null): bool { } - } diff --git a/src/Storage/Adapter/Libmemcached.php b/src/Storage/Adapter/Libmemcached.php index a50f6b94..7ffb8697 100644 --- a/src/Storage/Adapter/Libmemcached.php +++ b/src/Storage/Adapter/Libmemcached.php @@ -9,10 +9,7 @@ */ namespace Phalcon\Storage\Adapter; -use Phalcon\Helper\Arr; use Phalcon\Storage\Exception; -use Phalcon\Storage\SerializerFactory; -use Phalcon\Storage\Serializer\SerializerInterface; /** * Libmemcached adapter @@ -161,5 +158,4 @@ public function set(string $key, $value, $ttl = null): bool private function setSerializer(\Memcached $connection) { } - } diff --git a/src/Storage/Adapter/Memory.php b/src/Storage/Adapter/Memory.php index 6b772de5..ebb84aaf 100644 --- a/src/Storage/Adapter/Memory.php +++ b/src/Storage/Adapter/Memory.php @@ -11,10 +11,6 @@ use Phalcon\Collection; use Phalcon\Collection\CollectionInterface; -use Phalcon\Helper\Arr; -use Phalcon\Storage\Exception; -use Phalcon\Storage\SerializerFactory; -use Phalcon\Storage\Serializer\SerializerInterface; /** * Memory adapter @@ -144,5 +140,4 @@ public function increment(string $key, int $value = 1) public function set(string $key, $value, $ttl = null): bool { } - } diff --git a/src/Storage/Adapter/Redis.php b/src/Storage/Adapter/Redis.php index 046ef7d6..dcf9ea83 100644 --- a/src/Storage/Adapter/Redis.php +++ b/src/Storage/Adapter/Redis.php @@ -9,10 +9,7 @@ */ namespace Phalcon\Storage\Adapter; -use Phalcon\Helper\Arr; use Phalcon\Storage\Exception; -use Phalcon\Storage\SerializerFactory; -use Phalcon\Storage\Serializer\SerializerInterface; /** * Redis adapter @@ -166,5 +163,4 @@ public function set(string $key, $value, $ttl = null): bool private function setSerializer(\Redis $connection) { } - } diff --git a/src/Storage/Adapter/Stream.php b/src/Storage/Adapter/Stream.php index 7515586e..db256218 100644 --- a/src/Storage/Adapter/Stream.php +++ b/src/Storage/Adapter/Stream.php @@ -9,15 +9,8 @@ */ namespace Phalcon\Storage\Adapter; -use FilesystemIterator; use Iterator; -use Phalcon\Helper\Arr; -use Phalcon\Helper\Str; use Phalcon\Storage\Exception; -use Phalcon\Storage\SerializerFactory; -use Phalcon\Storage\Serializer\SerializerInterface; -use RecursiveDirectoryIterator; -use RecursiveIteratorIterator; /** * Stream adapter @@ -206,5 +199,4 @@ private function getPayload(string $filepath): array private function isExpired(array $payload): bool { } - } diff --git a/src/Storage/AdapterFactory.php b/src/Storage/AdapterFactory.php index 862c8f81..4b9bc331 100644 --- a/src/Storage/AdapterFactory.php +++ b/src/Storage/AdapterFactory.php @@ -77,5 +77,4 @@ public function newInstance(string $name, array $options = []): AdapterInterface protected function getAdapters(): array { } - } diff --git a/src/Storage/Serializer/AbstractSerializer.php b/src/Storage/Serializer/AbstractSerializer.php index 168cf653..3318abd4 100644 --- a/src/Storage/Serializer/AbstractSerializer.php +++ b/src/Storage/Serializer/AbstractSerializer.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Storage\Serializer; -use Phalcon\Storage\Exception; - /** * This file is part of the Phalcon Framework. * @@ -60,5 +58,4 @@ public function getData() public function setData($data): void { } - } diff --git a/src/Storage/Serializer/Base64.php b/src/Storage/Serializer/Base64.php index 9f0c1f43..1263829f 100644 --- a/src/Storage/Serializer/Base64.php +++ b/src/Storage/Serializer/Base64.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Storage\Serializer; -use InvalidArgumentException; - /** * This file is part of the Phalcon Framework. * @@ -40,5 +38,4 @@ public function serialize(): string public function unserialize($data): void { } - } diff --git a/src/Storage/Serializer/Igbinary.php b/src/Storage/Serializer/Igbinary.php index 28851a5c..d71302c8 100644 --- a/src/Storage/Serializer/Igbinary.php +++ b/src/Storage/Serializer/Igbinary.php @@ -38,5 +38,4 @@ public function serialize(): string public function unserialize($data): void { } - } diff --git a/src/Storage/Serializer/Json.php b/src/Storage/Serializer/Json.php index 46d678ad..e7eaa92e 100644 --- a/src/Storage/Serializer/Json.php +++ b/src/Storage/Serializer/Json.php @@ -9,10 +9,6 @@ */ namespace Phalcon\Storage\Serializer; -use InvalidArgumentException; -use JsonSerializable; -use Phalcon\Helper\Json as JsonHelper; - /** * This file is part of the Phalcon Framework. * @@ -42,5 +38,4 @@ public function serialize(): string public function unserialize($data): void { } - } diff --git a/src/Storage/Serializer/Msgpack.php b/src/Storage/Serializer/Msgpack.php index a4e30e77..e1bb0d2e 100644 --- a/src/Storage/Serializer/Msgpack.php +++ b/src/Storage/Serializer/Msgpack.php @@ -38,5 +38,4 @@ public function serialize(): ?string public function unserialize($data): void { } - } diff --git a/src/Storage/Serializer/None.php b/src/Storage/Serializer/None.php index 1566e471..98c17ab4 100644 --- a/src/Storage/Serializer/None.php +++ b/src/Storage/Serializer/None.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Storage\Serializer; -use InvalidArgumentException; - /** * This file is part of the Phalcon Framework. * @@ -40,5 +38,4 @@ public function serialize(): string public function unserialize($data): void { } - } diff --git a/src/Storage/Serializer/Php.php b/src/Storage/Serializer/Php.php index d5b9ebca..ee3d65b4 100644 --- a/src/Storage/Serializer/Php.php +++ b/src/Storage/Serializer/Php.php @@ -9,9 +9,6 @@ */ namespace Phalcon\Storage\Serializer; -use InvalidArgumentException; -use Phalcon\Storage\Exception; - /** * This file is part of the Phalcon Framework. * @@ -41,5 +38,4 @@ public function serialize(): string public function unserialize($data): void { } - } diff --git a/src/Storage/Serializer/SerializerInterface.php b/src/Storage/Serializer/SerializerInterface.php index 1f483de8..ac0c3979 100644 --- a/src/Storage/Serializer/SerializerInterface.php +++ b/src/Storage/Serializer/SerializerInterface.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Storage\Serializer; -use Serializable; - /** * This file is part of the Phalcon Framework. * @@ -32,5 +30,4 @@ public function getData(); * @return void */ public function setData($data): void; - } diff --git a/src/Storage/SerializerFactory.php b/src/Storage/SerializerFactory.php index 6120dc77..afaf5468 100644 --- a/src/Storage/SerializerFactory.php +++ b/src/Storage/SerializerFactory.php @@ -50,5 +50,4 @@ public function newInstance(string $name): SerializerInterface protected function getAdapters(): array { } - } diff --git a/src/Support/Debug.php b/src/Support/Debug.php index a4b4a165..3fb6895f 100644 --- a/src/Support/Debug.php +++ b/src/Support/Debug.php @@ -9,12 +9,6 @@ */ namespace Phalcon\Support; -use ErrorException; -use Phalcon\Helper\Arr; -use Phalcon\Tag; -use ReflectionClass; -use ReflectionFunction; - /** * Provides debug capabilities to Phalcon applications */ @@ -38,7 +32,7 @@ class Debug /** * @var bool */ - static protected $isActive = false; + protected static $isActive = false; /** * @var bool @@ -270,5 +264,4 @@ protected function getVarDump($variable): string final protected function showTraceItem(int $n, array $trace): string { } - } diff --git a/src/Support/Debug/Dump.php b/src/Support/Debug/Dump.php index 2c703e77..01b3ad7e 100644 --- a/src/Support/Debug/Dump.php +++ b/src/Support/Debug/Dump.php @@ -9,13 +9,6 @@ */ namespace Phalcon\Support\Debug; -use Phalcon\Di; -use Phalcon\Helper\Json; -use Reflection; -use ReflectionClass; -use ReflectionProperty; -use stdClass; - /** * Dumps information about a variable(s) * @@ -182,5 +175,4 @@ protected function getStyle(string $type): string protected function output($variable, string $name = null, int $tab = 1): string { } - } diff --git a/src/Support/Helper/Str/Interpolate.php b/src/Support/Helper/Str/Interpolate.php index 0cba361e..58db8403 100644 --- a/src/Support/Helper/Str/Interpolate.php +++ b/src/Support/Helper/Str/Interpolate.php @@ -34,5 +34,4 @@ class Interpolate public function __invoke(string $message, array $context = [], string $leftToken = '%', string $rightToken = '%'): string { } - } diff --git a/src/Support/HelperFactory.php b/src/Support/HelperFactory.php index bdae8013..ff728cd8 100644 --- a/src/Support/HelperFactory.php +++ b/src/Support/HelperFactory.php @@ -56,5 +56,4 @@ public function newInstance(string $name) protected function getAdapters(): array { } - } diff --git a/src/Support/Version.php b/src/Support/Version.php index 073f7483..54638561 100644 --- a/src/Support/Version.php +++ b/src/Support/Version.php @@ -87,7 +87,7 @@ protected function getVersion(): array * @param int $special * @return string */ - protected final function getSpecial(int $special): string + final protected function getSpecial(int $special): string { } @@ -131,5 +131,4 @@ public function getId(): string public function getPart(int $part): string { } - } diff --git a/src/Tag.php b/src/Tag.php index 2846e51e..0d64d75f 100644 --- a/src/Tag.php +++ b/src/Tag.php @@ -11,12 +11,6 @@ use Phalcon\Di\DiInterface; use Phalcon\Escaper\EscaperInterface; -use Phalcon\Html\Link\Link; -use Phalcon\Html\Link\Serializer\Header; -use Phalcon\Helper\Str; -use Phalcon\Helper\Exception as HelperException; -use Phalcon\Tag\Select; -use Phalcon\Tag\Exception; use Phalcon\Url\UrlInterface; /** @@ -62,58 +56,58 @@ class Tag /** * @var bool */ - static protected $autoEscape = true; + protected static $autoEscape = true; /** * DI Container * * @var DiInterface|null */ - static protected $container = null; + protected static $container = null; /** * Pre-assigned values for components * * @var array */ - static protected $displayValues; + protected static $displayValues; /** * @var array */ - static protected $documentAppendTitle; + protected static $documentAppendTitle; /** * @var array */ - static protected $documentPrependTitle; + protected static $documentPrependTitle; /** * HTML document title * * @var string|null */ - static protected $documentTitle = null; + protected static $documentTitle = null; /** * @var string|null */ - static protected $documentTitleSeparator = null; + protected static $documentTitleSeparator = null; /** * @var int */ - static protected $documentType = 11; + protected static $documentType = 11; /** * @var EscaperInterface|null */ - static protected $escaperService = null; + protected static $escaperService = null; /** * @var UrlInterface|null */ - static protected $urlService = null; + protected static $urlService = null; /** @@ -877,7 +871,7 @@ public static function weekField($parameters): string * @param bool $asValue * @return string */ - static final protected function inputField(string $type, $parameters, bool $asValue = false): string + final protected static function inputField(string $type, $parameters, bool $asValue = false): string { } @@ -888,8 +882,7 @@ static final protected function inputField(string $type, $parameters, bool $asVa * @param mixed $parameters * @return string */ - static final protected function inputFieldChecked(string $type, $parameters): string + final protected static function inputFieldChecked(string $type, $parameters): string { } - } diff --git a/src/Tag/Select.php b/src/Tag/Select.php index aff7da70..5c2584ce 100644 --- a/src/Tag/Select.php +++ b/src/Tag/Select.php @@ -9,10 +9,6 @@ */ namespace Phalcon\Tag; -use Phalcon\Tag as BaseTag; -use Phalcon\Escaper\EscaperInterface; -use Phalcon\Mvc\Model\ResultsetInterface; - /** * Phalcon\Tag\Select * @@ -64,5 +60,4 @@ private static function optionsFromArray(array $data, $value, string $closeOptio private static function optionsFromResultset(\Phalcon\Mvc\Model\ResultsetInterface $resultset, $using, $value, string $closeOption): string { } - } diff --git a/src/Text.php b/src/Text.php index 812f6d5c..fdb0bb09 100644 --- a/src/Text.php +++ b/src/Text.php @@ -9,8 +9,6 @@ */ namespace Phalcon; -use Phalcon\Helper\Str; - /** * Provides utilities to work with texts */ @@ -277,5 +275,4 @@ public static function underscore(string $text): string public static function upper(string $text, string $encoding = 'UTF-8'): string { } - } diff --git a/src/Translate/Adapter/AbstractAdapter.php b/src/Translate/Adapter/AbstractAdapter.php index 5083375b..346083ed 100644 --- a/src/Translate/Adapter/AbstractAdapter.php +++ b/src/Translate/Adapter/AbstractAdapter.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Translate\Adapter; -use Phalcon\Helper\Arr; -use Phalcon\Translate\Exception; use Phalcon\Translate\InterpolatorFactory; /** @@ -112,5 +110,4 @@ public function t(string $translateKey, array $placeholders = []): string protected function replacePlaceholders(string $translation, array $placeholders = []): string { } - } diff --git a/src/Translate/Adapter/AdapterInterface.php b/src/Translate/Adapter/AdapterInterface.php index 37d6ea75..1c05a9db 100644 --- a/src/Translate/Adapter/AdapterInterface.php +++ b/src/Translate/Adapter/AdapterInterface.php @@ -42,5 +42,4 @@ public function query(string $translateKey, array $placeholders = []): string; * @return string */ public function t(string $translateKey, array $placeholders = []): string; - } diff --git a/src/Translate/Adapter/Csv.php b/src/Translate/Adapter/Csv.php index d8f00030..dd16753c 100644 --- a/src/Translate/Adapter/Csv.php +++ b/src/Translate/Adapter/Csv.php @@ -9,10 +9,6 @@ */ namespace Phalcon\Translate\Adapter; -use ArrayAccess; -use Phalcon\Translate\Exception; -use Phalcon\Translate\InterpolatorFactory; - /** * Phalcon\Translate\Adapter\Csv * @@ -73,5 +69,4 @@ public function query(string $translateKey, array $placeholders = []): string private function load(string $file, int $length, string $delimiter, string $enclosure): void { } - } diff --git a/src/Translate/Adapter/Gettext.php b/src/Translate/Adapter/Gettext.php index 6856eb3a..11bfe81c 100644 --- a/src/Translate/Adapter/Gettext.php +++ b/src/Translate/Adapter/Gettext.php @@ -9,10 +9,6 @@ */ namespace Phalcon\Translate\Adapter; -use ArrayAccess; -use Phalcon\Translate\Exception; -use Phalcon\Translate\InterpolatorFactory; - /** * Phalcon\Translate\Adapter\Gettext * @@ -227,5 +223,4 @@ protected function getOptionsDefault(): array protected function prepareOptions(array $options): void { } - } diff --git a/src/Translate/Adapter/NativeArray.php b/src/Translate/Adapter/NativeArray.php index 6dc2721a..49ec0fb6 100644 --- a/src/Translate/Adapter/NativeArray.php +++ b/src/Translate/Adapter/NativeArray.php @@ -9,10 +9,6 @@ */ namespace Phalcon\Translate\Adapter; -use ArrayAccess; -use Phalcon\Translate\Exception; -use Phalcon\Translate\InterpolatorFactory; - /** * Phalcon\Translate\Adapter\NativeArray * @@ -74,5 +70,4 @@ public function notFound(string $index): string public function query(string $translateKey, array $placeholders = []): string { } - } diff --git a/src/Translate/Interpolator/AssociativeArray.php b/src/Translate/Interpolator/AssociativeArray.php index 1c5a25f8..2b08dc89 100644 --- a/src/Translate/Interpolator/AssociativeArray.php +++ b/src/Translate/Interpolator/AssociativeArray.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Translate\Interpolator; -use Phalcon\Support\Helper\Str\Interpolate; - /** * This file is part of the Phalcon Framework. * @@ -32,5 +30,4 @@ class AssociativeArray implements \Phalcon\Translate\Interpolator\InterpolatorIn public function replacePlaceholders(string $translation, array $placeholders = []): string { } - } diff --git a/src/Translate/Interpolator/IndexedArray.php b/src/Translate/Interpolator/IndexedArray.php index e2103d76..3aee4701 100644 --- a/src/Translate/Interpolator/IndexedArray.php +++ b/src/Translate/Interpolator/IndexedArray.php @@ -30,5 +30,4 @@ class IndexedArray implements \Phalcon\Translate\Interpolator\InterpolatorInterf public function replacePlaceholders(string $translation, array $placeholders = []): string { } - } diff --git a/src/Translate/Interpolator/InterpolatorInterface.php b/src/Translate/Interpolator/InterpolatorInterface.php index 9339e092..8ce2faa3 100644 --- a/src/Translate/Interpolator/InterpolatorInterface.php +++ b/src/Translate/Interpolator/InterpolatorInterface.php @@ -25,5 +25,4 @@ interface InterpolatorInterface * @return string */ public function replacePlaceholders(string $translation, array $placeholders = []): string; - } diff --git a/src/Translate/InterpolatorFactory.php b/src/Translate/InterpolatorFactory.php index c14d6050..07431b32 100644 --- a/src/Translate/InterpolatorFactory.php +++ b/src/Translate/InterpolatorFactory.php @@ -51,5 +51,4 @@ public function newInstance(string $name): InterpolatorInterface protected function getAdapters(): array { } - } diff --git a/src/Translate/TranslateFactory.php b/src/Translate/TranslateFactory.php index 7c26396c..bbbc47a0 100644 --- a/src/Translate/TranslateFactory.php +++ b/src/Translate/TranslateFactory.php @@ -9,9 +9,7 @@ */ namespace Phalcon\Translate; -use Phalcon\Config; use Phalcon\Factory\AbstractFactory; -use Phalcon\Helper\Arr; use Phalcon\Translate\Adapter\AdapterInterface; /** @@ -83,5 +81,4 @@ public function newInstance(string $name, array $options = []): AdapterInterface protected function getAdapters(): array { } - } diff --git a/src/Url.php b/src/Url.php index 875d25a9..86b152e2 100644 --- a/src/Url.php +++ b/src/Url.php @@ -9,11 +9,8 @@ */ namespace Phalcon; -use Phalcon\Di\DiInterface; use Phalcon\Di\AbstractInjectionAware; use Phalcon\Mvc\RouterInterface; -use Phalcon\Mvc\Router\RouteInterface; -use Phalcon\Url\Exception; use Phalcon\Url\UrlInterface; /** @@ -212,5 +209,4 @@ public function setStaticBaseUri(string $staticBaseUri): UrlInterface public function path(string $path = null): string { } - } diff --git a/src/Url/UrlInterface.php b/src/Url/UrlInterface.php index 7f5c8764..3a25a9f8 100644 --- a/src/Url/UrlInterface.php +++ b/src/Url/UrlInterface.php @@ -62,5 +62,4 @@ public function setBaseUri(string $baseUri): UrlInterface; * @return string */ public function path(string $path = null): string; - } diff --git a/src/Validation.php b/src/Validation.php index df2ae91f..d8d1e746 100644 --- a/src/Validation.php +++ b/src/Validation.php @@ -9,15 +9,11 @@ */ namespace Phalcon; -use Phalcon\Di\DiInterface; use Phalcon\Di\Injectable; -use Phalcon\Filter\FilterInterface; use Phalcon\Messages\MessageInterface; use Phalcon\Messages\Messages; use Phalcon\Validation\ValidationInterface; -use Phalcon\Validation\Exception; use Phalcon\Validation\ValidatorInterface; -use Phalcon\Validation\AbstractCombinedFieldsValidator; /** * Allows to validate data using custom or built-in validators @@ -260,5 +256,4 @@ public function validate($data = null, $entity = null): Messages protected function preChecking($field, \Phalcon\Validation\ValidatorInterface $validator): bool { } - } diff --git a/src/Validation/AbstractValidator.php b/src/Validation/AbstractValidator.php index 064b5115..dd2beffe 100644 --- a/src/Validation/AbstractValidator.php +++ b/src/Validation/AbstractValidator.php @@ -9,9 +9,7 @@ */ namespace Phalcon\Validation; -use Phalcon\Helper\Arr; use Phalcon\Messages\Message; -use Phalcon\Validation; /** * This is a base class for validators @@ -163,5 +161,4 @@ protected function prepareLabel(\Phalcon\Validation $validation, string $field) public function messageFactory(\Phalcon\Validation $validation, $field, array $replacements = []): Message { } - } diff --git a/src/Validation/AbstractValidatorComposite.php b/src/Validation/AbstractValidatorComposite.php index ffbeae90..cc4957be 100644 --- a/src/Validation/AbstractValidatorComposite.php +++ b/src/Validation/AbstractValidatorComposite.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Validation; -use Phalcon\Validation; - /** * This is a base class for combined fields validators */ @@ -39,5 +37,4 @@ public function getValidators(): array public function validate(\Phalcon\Validation $validation, $field): bool { } - } diff --git a/src/Validation/ValidationInterface.php b/src/Validation/ValidationInterface.php index 65849450..5eb0bd1a 100644 --- a/src/Validation/ValidationInterface.php +++ b/src/Validation/ValidationInterface.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Validation; -use Phalcon\Di\Injectable; -use Phalcon\Messages\MessageInterface; use Phalcon\Messages\Messages; /** @@ -134,5 +132,4 @@ public function setLabels(array $labels): void; * @return Messages */ public function validate($data = null, $entity = null): Messages; - } diff --git a/src/Validation/Validator/Alnum.php b/src/Validation/Validator/Alnum.php index 09e7956e..2e39dedc 100644 --- a/src/Validation/Validator/Alnum.php +++ b/src/Validation/Validator/Alnum.php @@ -9,7 +9,6 @@ */ namespace Phalcon\Validation\Validator; -use Phalcon\Validation; use Phalcon\Validation\AbstractValidator; /** @@ -75,5 +74,4 @@ public function __construct(array $options = []) public function validate(\Phalcon\Validation $validation, $field): bool { } - } diff --git a/src/Validation/Validator/Alpha.php b/src/Validation/Validator/Alpha.php index fa7e4ca3..03a7502f 100644 --- a/src/Validation/Validator/Alpha.php +++ b/src/Validation/Validator/Alpha.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Validation\Validator; -use Phalcon\Messages\Message; -use Phalcon\Validation; use Phalcon\Validation\AbstractValidator; /** @@ -76,5 +74,4 @@ public function __construct(array $options = []) public function validate(\Phalcon\Validation $validation, $field): bool { } - } diff --git a/src/Validation/Validator/Between.php b/src/Validation/Validator/Between.php index b7dbdaff..eb743d2d 100644 --- a/src/Validation/Validator/Between.php +++ b/src/Validation/Validator/Between.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Validation\Validator; -use Phalcon\Messages\Message; -use Phalcon\Validation; use Phalcon\Validation\AbstractValidator; /** @@ -89,5 +87,4 @@ public function __construct(array $options = []) public function validate(\Phalcon\Validation $validation, $field): bool { } - } diff --git a/src/Validation/Validator/Callback.php b/src/Validation/Validator/Callback.php index efb8485b..8a170eae 100644 --- a/src/Validation/Validator/Callback.php +++ b/src/Validation/Validator/Callback.php @@ -9,9 +9,6 @@ */ namespace Phalcon\Validation\Validator; -use Phalcon\Messages\Message; -use Phalcon\Validation; -use Phalcon\Validation\ValidatorInterface; use Phalcon\Validation\AbstractValidator; /** @@ -88,5 +85,4 @@ public function __construct(array $options = []) public function validate(\Phalcon\Validation $validation, $field): bool { } - } diff --git a/src/Validation/Validator/Confirmation.php b/src/Validation/Validator/Confirmation.php index 46d6b7d2..d8be81aa 100644 --- a/src/Validation/Validator/Confirmation.php +++ b/src/Validation/Validator/Confirmation.php @@ -9,9 +9,6 @@ */ namespace Phalcon\Validation\Validator; -use Phalcon\Messages\Message; -use Phalcon\Validation; -use Phalcon\Validation\Exception; use Phalcon\Validation\AbstractValidator; /** @@ -96,5 +93,4 @@ public function validate(\Phalcon\Validation $validation, $field): bool final protected function compare(string $a, string $b): bool { } - } diff --git a/src/Validation/Validator/CreditCard.php b/src/Validation/Validator/CreditCard.php index 83e839e7..7b798741 100644 --- a/src/Validation/Validator/CreditCard.php +++ b/src/Validation/Validator/CreditCard.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Validation\Validator; -use Phalcon\Messages\Message; -use Phalcon\Validation; use Phalcon\Validation\AbstractValidator; /** @@ -87,5 +85,4 @@ public function validate(\Phalcon\Validation $validation, $field): bool private function verifyByLuhnAlgorithm(string $number): bool { } - } diff --git a/src/Validation/Validator/Date.php b/src/Validation/Validator/Date.php index 757475cd..37b084e0 100644 --- a/src/Validation/Validator/Date.php +++ b/src/Validation/Validator/Date.php @@ -9,9 +9,6 @@ */ namespace Phalcon\Validation\Validator; -use DateTime; -use Phalcon\Messages\Message; -use Phalcon\Validation; use Phalcon\Validation\AbstractValidator; /** @@ -92,5 +89,4 @@ public function validate(\Phalcon\Validation $validation, $field): bool private function checkDate($value, $format): bool { } - } diff --git a/src/Validation/Validator/Digit.php b/src/Validation/Validator/Digit.php index 5fdd16dc..5af0ffc7 100644 --- a/src/Validation/Validator/Digit.php +++ b/src/Validation/Validator/Digit.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Validation\Validator; -use Phalcon\Messages\Message; -use Phalcon\Validation; use Phalcon\Validation\AbstractValidator; /** @@ -76,5 +74,4 @@ public function __construct(array $options = []) public function validate(\Phalcon\Validation $validation, $field): bool { } - } diff --git a/src/Validation/Validator/Email.php b/src/Validation/Validator/Email.php index 36ba42a5..f019b2f5 100644 --- a/src/Validation/Validator/Email.php +++ b/src/Validation/Validator/Email.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Validation\Validator; -use Phalcon\Messages\Message; -use Phalcon\Validation; use Phalcon\Validation\AbstractValidator; /** @@ -76,5 +74,4 @@ public function __construct(array $options = []) public function validate(\Phalcon\Validation $validation, $field): bool { } - } diff --git a/src/Validation/Validator/ExclusionIn.php b/src/Validation/Validator/ExclusionIn.php index ef9b3814..6a327382 100644 --- a/src/Validation/Validator/ExclusionIn.php +++ b/src/Validation/Validator/ExclusionIn.php @@ -9,10 +9,7 @@ */ namespace Phalcon\Validation\Validator; -use Phalcon\Messages\Message; -use Phalcon\Validation; use Phalcon\Validation\AbstractValidator; -use Phalcon\Validation\Exception; /** * Check if a value is not included into a list of values @@ -90,5 +87,4 @@ public function __construct(array $options = []) public function validate(\Phalcon\Validation $validation, $field): bool { } - } diff --git a/src/Validation/Validator/File.php b/src/Validation/Validator/File.php index 7b342b8b..f050b47d 100644 --- a/src/Validation/Validator/File.php +++ b/src/Validation/Validator/File.php @@ -9,17 +9,7 @@ */ namespace Phalcon\Validation\Validator; -use Phalcon\Helper\Arr; -use Phalcon\Messages\Message; -use Phalcon\Validation; use Phalcon\Validation\AbstractValidatorComposite; -use Phalcon\Validation\Validator\File\MimeType; -use Phalcon\Validation\Validator\File\Resolution\Equal as EqualResolution; -use Phalcon\Validation\Validator\File\Resolution\Max as MaxResolution; -use Phalcon\Validation\Validator\File\Resolution\Min as MinResolution; -use Phalcon\Validation\Validator\File\Size\Equal as EqualFileSize; -use Phalcon\Validation\Validator\File\Size\Max as MaxFileSize; -use Phalcon\Validation\Validator\File\Size\Min as MinFileSize; /** * Checks if a value has a correct file @@ -119,5 +109,4 @@ class File extends AbstractValidatorComposite public function __construct(array $options = []) { } - } diff --git a/src/Validation/Validator/File/AbstractFile.php b/src/Validation/Validator/File/AbstractFile.php index 29016f08..671c4f20 100644 --- a/src/Validation/Validator/File/AbstractFile.php +++ b/src/Validation/Validator/File/AbstractFile.php @@ -9,7 +9,6 @@ */ namespace Phalcon\Validation\Validator\File; -use Phalcon\Messages\Message; use Phalcon\Validation; use Phalcon\Validation\AbstractValidator; @@ -205,5 +204,4 @@ public function isAllowEmpty(\Phalcon\Validation $validation, string $field): bo protected function checkIsUploadedFile(string $name): bool { } - } diff --git a/src/Validation/Validator/File/MimeType.php b/src/Validation/Validator/File/MimeType.php index eb0d6f28..443c35bd 100644 --- a/src/Validation/Validator/File/MimeType.php +++ b/src/Validation/Validator/File/MimeType.php @@ -9,9 +9,7 @@ */ namespace Phalcon\Validation\Validator\File; -use Phalcon\Messages\Message; use Phalcon\Validation; -use Phalcon\Validation\Exception; /** * Checks if a value has a correct file mime type @@ -77,5 +75,4 @@ class MimeType extends \Phalcon\Validation\Validator\File\AbstractFile public function validate(\Phalcon\Validation $validation, $field): bool { } - } diff --git a/src/Validation/Validator/File/Resolution/Equal.php b/src/Validation/Validator/File/Resolution/Equal.php index 7846b6fd..a9994fe3 100644 --- a/src/Validation/Validator/File/Resolution/Equal.php +++ b/src/Validation/Validator/File/Resolution/Equal.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Validation\Validator\File\Resolution; -use Phalcon\Messages\Message; -use Phalcon\Validation; use Phalcon\Validation\Validator\File\AbstractFile; /** @@ -81,5 +79,4 @@ public function __construct(array $options = []) public function validate(\Phalcon\Validation $validation, $field): bool { } - } diff --git a/src/Validation/Validator/File/Resolution/Max.php b/src/Validation/Validator/File/Resolution/Max.php index a70573cd..a031a582 100644 --- a/src/Validation/Validator/File/Resolution/Max.php +++ b/src/Validation/Validator/File/Resolution/Max.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Validation\Validator\File\Resolution; -use Phalcon\Messages\Message; -use Phalcon\Validation; use Phalcon\Validation\Validator\File\AbstractFile; /** @@ -87,5 +85,4 @@ public function __construct(array $options = []) public function validate(\Phalcon\Validation $validation, $field): bool { } - } diff --git a/src/Validation/Validator/File/Resolution/Min.php b/src/Validation/Validator/File/Resolution/Min.php index 764a3ed1..d7afd978 100644 --- a/src/Validation/Validator/File/Resolution/Min.php +++ b/src/Validation/Validator/File/Resolution/Min.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Validation\Validator\File\Resolution; -use Phalcon\Messages\Message; -use Phalcon\Validation; use Phalcon\Validation\Validator\File\AbstractFile; /** @@ -87,5 +85,4 @@ public function __construct(array $options = []) public function validate(\Phalcon\Validation $validation, $field): bool { } - } diff --git a/src/Validation/Validator/File/Size/Equal.php b/src/Validation/Validator/File/Size/Equal.php index f4187591..d6a477d4 100644 --- a/src/Validation/Validator/File/Size/Equal.php +++ b/src/Validation/Validator/File/Size/Equal.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Validation\Validator\File\Size; -use Phalcon\Messages\Message; -use Phalcon\Validation; use Phalcon\Validation\Validator\File\AbstractFile; /** @@ -86,5 +84,4 @@ public function __construct(array $options = []) public function validate(\Phalcon\Validation $validation, $field): bool { } - } diff --git a/src/Validation/Validator/File/Size/Max.php b/src/Validation/Validator/File/Size/Max.php index a4fd7712..1c4b605f 100644 --- a/src/Validation/Validator/File/Size/Max.php +++ b/src/Validation/Validator/File/Size/Max.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Validation\Validator\File\Size; -use Phalcon\Messages\Message; -use Phalcon\Validation; use Phalcon\Validation\Validator\File\AbstractFile; /** @@ -87,5 +85,4 @@ public function __construct(array $options = []) public function validate(\Phalcon\Validation $validation, $field): bool { } - } diff --git a/src/Validation/Validator/File/Size/Min.php b/src/Validation/Validator/File/Size/Min.php index 12944540..435d6efa 100644 --- a/src/Validation/Validator/File/Size/Min.php +++ b/src/Validation/Validator/File/Size/Min.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Validation\Validator\File\Size; -use Phalcon\Messages\Message; -use Phalcon\Validation; use Phalcon\Validation\Validator\File\AbstractFile; /** @@ -87,5 +85,4 @@ public function __construct(array $options = []) public function validate(\Phalcon\Validation $validation, $field): bool { } - } diff --git a/src/Validation/Validator/Identical.php b/src/Validation/Validator/Identical.php index faea1348..2af3ab03 100644 --- a/src/Validation/Validator/Identical.php +++ b/src/Validation/Validator/Identical.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Validation\Validator; -use Phalcon\Messages\Message; -use Phalcon\Validation; use Phalcon\Validation\AbstractValidator; /** @@ -83,5 +81,4 @@ public function __construct(array $options = []) public function validate(\Phalcon\Validation $validation, $field): bool { } - } diff --git a/src/Validation/Validator/InclusionIn.php b/src/Validation/Validator/InclusionIn.php index 24cfb26a..9eb236e9 100644 --- a/src/Validation/Validator/InclusionIn.php +++ b/src/Validation/Validator/InclusionIn.php @@ -9,10 +9,7 @@ */ namespace Phalcon\Validation\Validator; -use Phalcon\Messages\Message; -use Phalcon\Validation; use Phalcon\Validation\AbstractValidator; -use Phalcon\Validation\Exception; /** * Check if a value is included into a list of values @@ -84,5 +81,4 @@ public function __construct(array $options = []) public function validate(\Phalcon\Validation $validation, $field): bool { } - } diff --git a/src/Validation/Validator/Ip.php b/src/Validation/Validator/Ip.php index 53fda100..1841f54e 100644 --- a/src/Validation/Validator/Ip.php +++ b/src/Validation/Validator/Ip.php @@ -9,9 +9,7 @@ */ namespace Phalcon\Validation\Validator; -use Phalcon\Validation; use Phalcon\Validation\AbstractValidator; -use Phalcon\Messages\Message; /** * Check for IP addresses @@ -101,5 +99,4 @@ public function __construct(array $options = []) public function validate(\Phalcon\Validation $validation, $field): bool { } - } diff --git a/src/Validation/Validator/Numericality.php b/src/Validation/Validator/Numericality.php index a79a9617..66db4678 100644 --- a/src/Validation/Validator/Numericality.php +++ b/src/Validation/Validator/Numericality.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Validation\Validator; -use Phalcon\Messages\Message; -use Phalcon\Validation; use Phalcon\Validation\AbstractValidator; /** @@ -76,5 +74,4 @@ public function __construct(array $options = []) public function validate(\Phalcon\Validation $validation, $field): bool { } - } diff --git a/src/Validation/Validator/PresenceOf.php b/src/Validation/Validator/PresenceOf.php index 4750e8b5..a6f9edf4 100644 --- a/src/Validation/Validator/PresenceOf.php +++ b/src/Validation/Validator/PresenceOf.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Validation\Validator; -use Phalcon\Messages\Message; -use Phalcon\Validation; use Phalcon\Validation\AbstractValidator; /** @@ -76,5 +74,4 @@ public function __construct(array $options = []) public function validate(\Phalcon\Validation $validation, $field): bool { } - } diff --git a/src/Validation/Validator/Regex.php b/src/Validation/Validator/Regex.php index 9274a3bf..432af3ca 100644 --- a/src/Validation/Validator/Regex.php +++ b/src/Validation/Validator/Regex.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Validation\Validator; -use Phalcon\Messages\Message; -use Phalcon\Validation; use Phalcon\Validation\AbstractValidator; /** @@ -82,5 +80,4 @@ public function __construct(array $options = []) public function validate(\Phalcon\Validation $validation, $field): bool { } - } diff --git a/src/Validation/Validator/StringLength.php b/src/Validation/Validator/StringLength.php index bff4889c..eb4b0460 100644 --- a/src/Validation/Validator/StringLength.php +++ b/src/Validation/Validator/StringLength.php @@ -9,12 +9,7 @@ */ namespace Phalcon\Validation\Validator; -use Phalcon\Messages\Message; -use Phalcon\Validation\AbstractValidator; use Phalcon\Validation\AbstractValidatorComposite; -use Phalcon\Validation\Validator\StringLength\Max; -use Phalcon\Validation\Validator\StringLength\Min; -use Phalcon\Validation\Exception; /** * Validates that a string has the specified maximum and minimum constraints @@ -98,5 +93,4 @@ class StringLength extends AbstractValidatorComposite public function __construct(array $options = []) { } - } diff --git a/src/Validation/Validator/StringLength/Max.php b/src/Validation/Validator/StringLength/Max.php index 36ff13ff..8e38b435 100644 --- a/src/Validation/Validator/StringLength/Max.php +++ b/src/Validation/Validator/StringLength/Max.php @@ -9,10 +9,7 @@ */ namespace Phalcon\Validation\Validator\StringLength; -use Phalcon\Messages\Message; -use Phalcon\Validation; use Phalcon\Validation\AbstractValidator; -use Phalcon\Validation\Exception; /** * Validates that a string has the specified maximum constraints @@ -91,5 +88,4 @@ public function __construct(array $options = []) public function validate(\Phalcon\Validation $validation, $field): bool { } - } diff --git a/src/Validation/Validator/StringLength/Min.php b/src/Validation/Validator/StringLength/Min.php index 31393f57..fbcad109 100644 --- a/src/Validation/Validator/StringLength/Min.php +++ b/src/Validation/Validator/StringLength/Min.php @@ -9,10 +9,7 @@ */ namespace Phalcon\Validation\Validator\StringLength; -use Phalcon\Messages\Message; -use Phalcon\Validation; use Phalcon\Validation\AbstractValidator; -use Phalcon\Validation\Exception; /** * Validates that a string has the specified minimum constraints @@ -91,5 +88,4 @@ public function __construct(array $options = []) public function validate(\Phalcon\Validation $validation, $field): bool { } - } diff --git a/src/Validation/Validator/Uniqueness.php b/src/Validation/Validator/Uniqueness.php index 6389a013..e28736f7 100644 --- a/src/Validation/Validator/Uniqueness.php +++ b/src/Validation/Validator/Uniqueness.php @@ -9,12 +9,7 @@ */ namespace Phalcon\Validation\Validator; -use Phalcon\Messages\Message; -use Phalcon\Mvc\Model; -use Phalcon\Mvc\ModelInterface; -use Phalcon\Validation; use Phalcon\Validation\AbstractCombinedFieldsValidator; -use Phalcon\Validation\Exception; /** * Check that a field is unique in the related table @@ -154,5 +149,4 @@ protected function isUniqueness(\Phalcon\Validation $validation, $field): bool protected function isUniquenessModel($record, array $field, array $values) { } - } diff --git a/src/Validation/Validator/Url.php b/src/Validation/Validator/Url.php index 625540c1..88cc599f 100644 --- a/src/Validation/Validator/Url.php +++ b/src/Validation/Validator/Url.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Validation\Validator; -use Phalcon\Messages\Message; -use Phalcon\Validation; use Phalcon\Validation\AbstractValidator; /** @@ -77,5 +75,4 @@ public function __construct(array $options = []) public function validate(\Phalcon\Validation $validation, $field): bool { } - } diff --git a/src/Validation/ValidatorCompositeInterface.php b/src/Validation/ValidatorCompositeInterface.php index 28bacbca..cb532dfc 100644 --- a/src/Validation/ValidatorCompositeInterface.php +++ b/src/Validation/ValidatorCompositeInterface.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Validation; -use Phalcon\Validation; - /** * This is a base class for combined fields validators */ @@ -32,5 +30,4 @@ public function getValidators(): array; * @return bool */ public function validate(\Phalcon\Validation $validation, $field): bool; - } diff --git a/src/Validation/ValidatorFactory.php b/src/Validation/ValidatorFactory.php index 85bbaba5..a23b5a80 100644 --- a/src/Validation/ValidatorFactory.php +++ b/src/Validation/ValidatorFactory.php @@ -10,7 +10,6 @@ namespace Phalcon\Validation; use Phalcon\Factory\AbstractFactory; -use Phalcon\Helper\Arr; /** * This file is part of the Phalcon Framework. @@ -51,5 +50,4 @@ public function newInstance(string $name): ValidatorInterface protected function getAdapters(): array { } - } diff --git a/src/Validation/ValidatorInterface.php b/src/Validation/ValidatorInterface.php index 51a71aec..1844d552 100644 --- a/src/Validation/ValidatorInterface.php +++ b/src/Validation/ValidatorInterface.php @@ -9,8 +9,6 @@ */ namespace Phalcon\Validation; -use Phalcon\Validation; - /** * Interface for Phalcon\Validation\AbstractValidator */ @@ -75,5 +73,4 @@ public function setTemplates(array $templates): ValidatorInterface; * @param string $template */ public function setTemplate(string $template): ValidatorInterface; - } From 92d11a9441be191fc61a22ddbfa12f578f58cd8b Mon Sep 17 00:00:00 2001 From: Anton Vasiliev Date: Sat, 11 Sep 2021 10:04:15 +0100 Subject: [PATCH 09/16] Fix return type --- src/Db/Adapter/Pdo/AbstractPdo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Db/Adapter/Pdo/AbstractPdo.php b/src/Db/Adapter/Pdo/AbstractPdo.php index d21199b0..4b1c06e9 100644 --- a/src/Db/Adapter/Pdo/AbstractPdo.php +++ b/src/Db/Adapter/Pdo/AbstractPdo.php @@ -363,7 +363,7 @@ public function prepare(string $sqlStatement): \PDOStatement * @param string $sqlStatement * @param array $bindParams * @param array $bindTypes - * @return 0|ResultInterface + * @return bool|ResultInterface */ public function query(string $sqlStatement, array $bindParams = [], array $bindTypes = []) { From cd098fd9fadcbb43aa53c860744c5c33dba09c2d Mon Sep 17 00:00:00 2001 From: Anton Vasiliev Date: Sat, 11 Sep 2021 10:04:27 +0100 Subject: [PATCH 10/16] Refactor main.yml --- .github/workflows/main.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7c20aa85..0dac40e3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,21 +1,26 @@ name: main + on: pull_request: push: + jobs: build: runs-on: ubuntu-latest + strategy: matrix: php-versions: [7.4, 8.0] + steps: - uses: actions/checkout@v2 + - name: Setup PHP, with composer and extensions uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-versions }} extensions: mbstring, dom, zip, psr - tools: prestissimo + - name: Get Composer Cache Directory id: composer-cache run: echo "::set-output name=dir::$(composer config cache-files-dir)" @@ -25,9 +30,13 @@ jobs: path: ${{ steps.composer-cache.outputs.dir }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} restore-keys: ${{ runner.os }}-composer- - - name: composer install - run: composer install --no-interaction --no-ansi --no-progress --no-suggest + + - run: composer install --no-interaction --no-ansi --no-progress + - name: run psalm + if: always() run: vendor/bin/psalm + - name: run phpcs + if: always() run: vendor/bin/phpcs From e374409401a7a22b9f6e3b32cf542dde346a3fdb Mon Sep 17 00:00:00 2001 From: Anton Vasiliev Date: Sat, 11 Sep 2021 10:07:37 +0100 Subject: [PATCH 11/16] Rename workflow --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0dac40e3..1cb5cf24 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,4 @@ -name: main +name: Stubs code validation on: pull_request: From 556e9e5bd0ffe897282bf7e3018f86233bb6177d Mon Sep 17 00:00:00 2001 From: Anton Vasiliev Date: Sat, 11 Sep 2021 10:08:19 +0100 Subject: [PATCH 12/16] Fix return type --- src/Db/Adapter/AdapterInterface.php | 3 ++- src/Db/Adapter/Pdo/AbstractPdo.php | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Db/Adapter/AdapterInterface.php b/src/Db/Adapter/AdapterInterface.php index 73148a49..d1caea10 100644 --- a/src/Db/Adapter/AdapterInterface.php +++ b/src/Db/Adapter/AdapterInterface.php @@ -11,6 +11,7 @@ use Phalcon\Db\DialectInterface; use Phalcon\Db\RawValue; +use Phalcon\Db\ResultInterface; /** * Interface for Phalcon\Db adapters @@ -530,7 +531,7 @@ public function modifyColumn(string $tableName, string $schemaName, \Phalcon\Db\ * @param string $sqlStatement * @param array $bindParams * @param array $bindTypes - * @return 0|ResultInterface + * @return bool|ResultInterface */ public function query(string $sqlStatement, array $bindParams = [], array $bindTypes = []); diff --git a/src/Db/Adapter/Pdo/AbstractPdo.php b/src/Db/Adapter/Pdo/AbstractPdo.php index 4b1c06e9..bf80fdab 100644 --- a/src/Db/Adapter/Pdo/AbstractPdo.php +++ b/src/Db/Adapter/Pdo/AbstractPdo.php @@ -10,6 +10,7 @@ namespace Phalcon\Db\Adapter\Pdo; use Phalcon\Db\Adapter\AbstractAdapter; +use Phalcon\Db\ResultInterface; /** * Phalcon\Db\Adapter\Pdo is the Phalcon\Db that internally uses PDO to connect From 1f89fe3cded6d3b4a530a9ffaaeae9dd9388e0ee Mon Sep 17 00:00:00 2001 From: Anton Vasiliev Date: Sat, 11 Sep 2021 10:11:42 +0100 Subject: [PATCH 13/16] Fix return type --- src/Http/Request.php | 2 +- src/Http/RequestInterface.php | 2 +- src/Mvc/Model/ResultInterface.php | 2 +- src/Mvc/Model/Row.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Http/Request.php b/src/Http/Request.php index 5526836a..8df8ad66 100644 --- a/src/Http/Request.php +++ b/src/Http/Request.php @@ -337,7 +337,7 @@ public function getHTTPReferer(): string * Gets decoded JSON HTTP raw request body * * @param bool $associative - * @return 0|1|\stdClass + * @return array|bool|\stdClass */ public function getJsonRawBody(bool $associative = false) { diff --git a/src/Http/RequestInterface.php b/src/Http/RequestInterface.php index 687057bd..44d54fd1 100644 --- a/src/Http/RequestInterface.php +++ b/src/Http/RequestInterface.php @@ -184,7 +184,7 @@ public function getHTTPReferer(): string; * Gets decoded JSON HTTP raw request body * * @param bool $associative - * @return 0|1|stdClass + * @return array|bool|\stdClass */ public function getJsonRawBody(bool $associative = false); diff --git a/src/Mvc/Model/ResultInterface.php b/src/Mvc/Model/ResultInterface.php index 9001d6f8..24ebfe22 100644 --- a/src/Mvc/Model/ResultInterface.php +++ b/src/Mvc/Model/ResultInterface.php @@ -21,7 +21,7 @@ interface ResultInterface * Sets the object's state * * @param int $dirtyState - * @return 0|ModelInterface + * @return bool|ModelInterface */ public function setDirtyState(int $dirtyState); } diff --git a/src/Mvc/Model/Row.php b/src/Mvc/Model/Row.php index e02676ba..a6ec34c3 100644 --- a/src/Mvc/Model/Row.php +++ b/src/Mvc/Model/Row.php @@ -88,7 +88,7 @@ public function readAttribute(string $attribute) * Set the current object's state * * @param int $dirtyState - * @return 0|ModelInterface + * @return bool|ModelInterface */ public function setDirtyState(int $dirtyState) { From a82b19864b289370a9da1bbd4b870eec0e5108e4 Mon Sep 17 00:00:00 2001 From: Anton Vasiliev Date: Sat, 11 Sep 2021 10:13:39 +0100 Subject: [PATCH 14/16] Import `Phalcon\Mvc\ModelInterface` --- src/Mvc/Model/ResultInterface.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Mvc/Model/ResultInterface.php b/src/Mvc/Model/ResultInterface.php index 24ebfe22..fc057681 100644 --- a/src/Mvc/Model/ResultInterface.php +++ b/src/Mvc/Model/ResultInterface.php @@ -9,6 +9,8 @@ */ namespace Phalcon\Mvc\Model; +use Phalcon\Mvc\ModelInterface; + /** * Phalcon\Mvc\Model\ResultInterface * From 38f72e3d96022277c4aa8a1ef2a6f1f2f280ff81 Mon Sep 17 00:00:00 2001 From: Anton Vasiliev Date: Sat, 11 Sep 2021 10:14:29 +0100 Subject: [PATCH 15/16] Fix return type --- src/Mvc/Model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mvc/Model.php b/src/Mvc/Model.php index dbdfbfca..b18ab3b0 100644 --- a/src/Mvc/Model.php +++ b/src/Mvc/Model.php @@ -1302,7 +1302,7 @@ final public function setConnectionService(string $connectionService): void * Sets the dirty state of the object using one of the DIRTY_STATE_ constants * * @param int $dirtyState - * @return 0|ModelInterface + * @return bool|ModelInterface */ public function setDirtyState(int $dirtyState) { From 25ff67b573d579877b446d588b8ca28ec9ac72e3 Mon Sep 17 00:00:00 2001 From: Anton Vasiliev Date: Sat, 11 Sep 2021 10:15:58 +0100 Subject: [PATCH 16/16] Fix return type in ModelInterface --- src/Mvc/ModelInterface.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mvc/ModelInterface.php b/src/Mvc/ModelInterface.php index 8c02bb2c..50b25337 100644 --- a/src/Mvc/ModelInterface.php +++ b/src/Mvc/ModelInterface.php @@ -282,7 +282,7 @@ public function setConnectionService(string $connectionService): void; * constants * * @param int $dirtyState - * @return 0|ModelInterface + * @return bool|ModelInterface */ public function setDirtyState(int $dirtyState);