From 74bc73dfc38b8f552709d87a38f256a99c73fa6b Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Thu, 22 Sep 2022 18:48:29 -0400 Subject: [PATCH] new stubs for v5.0.0 stable --- src/Acl/Adapter/AbstractAdapter.php | 34 +- src/Acl/Adapter/AdapterInterface.php | 2 - src/Acl/Adapter/Memory.php | 57 +- src/Acl/Component.php | 23 +- src/Acl/ComponentAwareInterface.php | 2 - src/Acl/ComponentInterface.php | 2 - src/Acl/Exception.php | 2 - src/Acl/Role.php | 27 +- src/Acl/RoleAwareInterface.php | 2 - src/Acl/RoleInterface.php | 2 - src/Annotations/Adapter/AbstractAdapter.php | 1 - src/Annotations/Adapter/AdapterInterface.php | 2 - src/Annotations/Adapter/Apcu.php | 1 - src/Annotations/Adapter/Memory.php | 1 - src/Annotations/Adapter/Stream.php | 1 - src/Annotations/Annotation.php | 1 - src/Annotations/AnnotationsFactory.php | 2 - src/Annotations/Collection.php | 1 - src/Annotations/Exception.php | 2 - src/Annotations/Reader.php | 2 - src/Annotations/ReaderInterface.php | 2 - src/Annotations/Reflection.php | 33 +- src/Application/AbstractApplication.php | 1 - src/Application/Exception.php | 2 - src/Assets/Asset.php | 95 +- src/Assets/Asset/Css.php | 2 - src/Assets/Asset/Js.php | 2 - src/Assets/AssetInterface.php | 2 - src/Assets/Collection.php | 159 ++-- src/Assets/Exception.php | 2 - src/Assets/FilterInterface.php | 2 - src/Assets/Filters/Cssmin.php | 2 - src/Assets/Filters/Jsmin.php | 2 - src/Assets/Filters/None.php | 2 - src/Assets/Inline.php | 35 +- src/Assets/Inline/Css.php | 2 - src/Assets/Inline/Js.php | 2 - src/Assets/Manager.php | 1 - src/Autoload/Exception.php | 2 - src/Autoload/Loader.php | 1 - src/Cache/AbstractCache.php | 1 - src/Cache/Adapter/AdapterInterface.php | 2 - src/Cache/Adapter/Apcu.php | 2 - src/Cache/Adapter/Libmemcached.php | 2 - src/Cache/Adapter/Memory.php | 2 - src/Cache/Adapter/Redis.php | 2 - src/Cache/Adapter/Stream.php | 2 - src/Cache/AdapterFactory.php | 1 - src/Cache/Cache.php | 2 - src/Cache/CacheFactory.php | 1 - src/Cache/CacheInterface.php | 2 - src/Cache/Exception/Exception.php | 2 - .../Exception/InvalidArgumentException.php | 2 - src/Cli/Console.php | 1 - src/Cli/Console/Exception.php | 2 - src/Cli/Dispatcher.php | 1 - src/Cli/Dispatcher/Exception.php | 2 - src/Cli/DispatcherInterface.php | 2 - src/Cli/Router.php | 5 +- src/Cli/Router/Exception.php | 2 - src/Cli/Router/RouteInterface.php | 2 - src/Cli/RouterInterface.php | 6 +- src/Cli/Task.php | 1 - src/Cli/TaskInterface.php | 2 - src/Config/Adapter/Grouped.php | 2 - src/Config/Adapter/Ini.php | 2 - src/Config/Adapter/Json.php | 2 - src/Config/Adapter/Php.php | 2 - src/Config/Adapter/Yaml.php | 2 - src/Config/ConfigFactory.php | 2 - src/Config/ConfigInterface.php | 2 - src/Config/Exception.php | 2 - src/DataMapper/Pdo/Connection.php | 1 - .../Pdo/Connection/AbstractConnection.php | 1 - .../Pdo/Connection/ConnectionInterface.php | 2 - src/DataMapper/Pdo/Connection/Decorated.php | 2 - .../Pdo/Connection/PdoInterface.php | 2 - src/DataMapper/Pdo/ConnectionLocator.php | 1 - .../Pdo/ConnectionLocatorInterface.php | 2 - .../Pdo/Exception/CannotDisconnect.php | 2 - .../Pdo/Exception/ConnectionNotFound.php | 2 - src/DataMapper/Pdo/Exception/Exception.php | 2 - src/DataMapper/Pdo/Profiler/MemoryLogger.php | 1 - src/DataMapper/Pdo/Profiler/Profiler.php | 1 - .../Pdo/Profiler/ProfilerInterface.php | 2 - src/DataMapper/Query/AbstractConditions.php | 2 - src/DataMapper/Query/AbstractQuery.php | 1 - src/DataMapper/Query/Bind.php | 1 - src/DataMapper/Query/Delete.php | 2 - src/DataMapper/Query/Insert.php | 2 - src/DataMapper/Query/QueryFactory.php | 1 - src/DataMapper/Query/Update.php | 2 - src/Db/AbstractDb.php | 4 +- src/Db/Adapter/AbstractAdapter.php | 37 +- src/Db/Adapter/AdapterInterface.php | 2 - src/Db/Adapter/Pdo/AbstractPdo.php | 1 - src/Db/Adapter/Pdo/Mysql.php | 1 - src/Db/Adapter/Pdo/Postgresql.php | 1 - src/Db/Adapter/Pdo/Sqlite.php | 1 - src/Db/Adapter/PdoFactory.php | 2 - src/Db/Column.php | 82 +- src/Db/ColumnInterface.php | 2 - src/Db/Dialect.php | 1 - src/Db/Dialect/Mysql.php | 1 - src/Db/Dialect/Postgresql.php | 1 - src/Db/Dialect/Sqlite.php | 1 - src/Db/DialectInterface.php | 2 - src/Db/Exception.php | 2 - src/Db/Index.php | 23 +- src/Db/IndexInterface.php | 2 - src/Db/Profiler.php | 1 - src/Db/Profiler/Item.php | 70 +- src/Db/RawValue.php | 15 +- src/Db/Reference.php | 21 +- src/Db/ReferenceInterface.php | 2 - src/Db/Result/PdoResult.php | 1 - src/Db/ResultInterface.php | 2 - src/Di/AbstractInjectionAware.php | 1 - src/Di/Di.php | 3 +- src/Di/DiInterface.php | 2 - src/Di/Exception.php | 2 - .../Exception/ServiceResolutionException.php | 2 - src/Di/FactoryDefault.php | 2 - src/Di/FactoryDefault/Cli.php | 2 - src/Di/InitializationAwareInterface.php | 10 +- src/Di/Injectable.php | 3 +- src/Di/InjectionAwareInterface.php | 2 - src/Di/Service.php | 1 - src/Di/Service/Builder.php | 2 - src/Di/ServiceInterface.php | 2 - src/Di/ServiceProviderInterface.php | 2 - src/Dispatcher/AbstractDispatcher.php | 7 +- src/Dispatcher/DispatcherInterface.php | 4 +- src/Domain/Payload/Payload.php | 19 +- src/Domain/Payload/PayloadFactory.php | 2 - src/Domain/Payload/PayloadInterface.php | 2 - src/Domain/Payload/ReadableInterface.php | 2 - src/Domain/Payload/WriteableInterface.php | 2 - src/Encryption/Crypt/CryptInterface.php | 2 - src/Encryption/Crypt/Exception/Exception.php | 2 - src/Encryption/Crypt/Exception/Mismatch.php | 2 - src/Encryption/Crypt/PadFactory.php | 1 - src/Encryption/Crypt/Padding/Ansi.php | 2 - src/Encryption/Crypt/Padding/Iso10126.php | 2 - src/Encryption/Crypt/Padding/IsoIek.php | 2 - src/Encryption/Crypt/Padding/Noop.php | 2 - src/Encryption/Crypt/Padding/PadInterface.php | 2 - src/Encryption/Crypt/Padding/Pkcs7.php | 2 - src/Encryption/Crypt/Padding/Space.php | 2 - src/Encryption/Crypt/Padding/Zero.php | 2 - src/Encryption/Security.php | 14 +- src/Encryption/Security/Exception.php | 2 - src/Encryption/Security/JWT/Builder.php | 5 +- .../UnsupportedAlgorithmException.php | 12 +- .../JWT/Exceptions/ValidatorException.php | 12 +- .../Security/JWT/Signer/AbstractSigner.php | 7 +- src/Encryption/Security/JWT/Signer/Hmac.php | 4 +- src/Encryption/Security/JWT/Signer/None.php | 4 +- .../Security/JWT/Signer/SignerInterface.php | 9 +- .../Security/JWT/Token/AbstractItem.php | 3 +- src/Encryption/Security/JWT/Token/Enum.php | 2 +- src/Encryption/Security/JWT/Token/Item.php | 4 +- src/Encryption/Security/JWT/Token/Parser.php | 8 +- .../Security/JWT/Token/Signature.php | 4 +- src/Encryption/Security/JWT/Token/Token.php | 58 +- src/Encryption/Security/JWT/Validator.php | 15 +- src/Encryption/Security/Random.php | 2 - src/Events/AbstractEventsAware.php | 1 - src/Events/Event.php | 31 +- src/Events/EventInterface.php | 2 - src/Events/EventsAwareInterface.php | 2 - src/Events/Exception.php | 2 - src/Events/ManagerInterface.php | 2 - src/Factory/AbstractConfigFactory.php | 2 - src/Factory/AbstractFactory.php | 1 - src/Factory/Exception.php | 2 - src/Filter/Exception.php | 2 - src/Filter/Filter.php | 3 + src/Filter/FilterFactory.php | 2 - src/Filter/FilterInterface.php | 2 - src/Filter/Sanitize/AbsInt.php | 2 - src/Filter/Sanitize/Alnum.php | 2 - src/Filter/Sanitize/Alpha.php | 2 - src/Filter/Sanitize/BoolVal.php | 2 - src/Filter/Sanitize/Email.php | 2 - src/Filter/Sanitize/FloatVal.php | 2 - src/Filter/Sanitize/IntVal.php | 2 - src/Filter/Sanitize/Lower.php | 2 - src/Filter/Sanitize/LowerFirst.php | 2 - src/Filter/Sanitize/Regex.php | 2 - src/Filter/Sanitize/Remove.php | 2 - src/Filter/Sanitize/Replace.php | 2 - src/Filter/Sanitize/Special.php | 2 - src/Filter/Sanitize/SpecialFull.php | 2 - src/Filter/Sanitize/StringVal.php | 8 +- src/Filter/Sanitize/StringValLegacy.php | 28 + src/Filter/Sanitize/Striptags.php | 2 - src/Filter/Sanitize/Trim.php | 2 - src/Filter/Sanitize/Upper.php | 2 - src/Filter/Sanitize/UpperFirst.php | 2 - src/Filter/Sanitize/UpperWords.php | 2 - src/Filter/Sanitize/Url.php | 2 - src/Filter/Validation.php | 32 +- .../AbstractCombinedFieldsValidator.php | 2 - src/Filter/Validation/AbstractValidator.php | 1 - .../Validation/AbstractValidatorComposite.php | 1 - src/Filter/Validation/Exception.php | 2 - src/Filter/Validation/ValidationInterface.php | 2 - src/Filter/Validation/Validator/Alnum.php | 1 - src/Filter/Validation/Validator/Alpha.php | 1 - src/Filter/Validation/Validator/Between.php | 1 - src/Filter/Validation/Validator/Callback.php | 1 - .../Validation/Validator/Confirmation.php | 1 - .../Validation/Validator/CreditCard.php | 1 - src/Filter/Validation/Validator/Date.php | 1 - src/Filter/Validation/Validator/Digit.php | 1 - src/Filter/Validation/Validator/Email.php | 1 - src/Filter/Validation/Validator/Exception.php | 2 - .../Validation/Validator/ExclusionIn.php | 1 - src/Filter/Validation/Validator/File.php | 2 - .../Validator/File/AbstractFile.php | 99 +- .../Validation/Validator/File/MimeType.php | 1 - .../Validator/File/Resolution/Equal.php | 1 - .../Validator/File/Resolution/Max.php | 1 - .../Validator/File/Resolution/Min.php | 1 - .../Validation/Validator/File/Size/Equal.php | 1 - .../Validation/Validator/File/Size/Max.php | 1 - .../Validation/Validator/File/Size/Min.php | 1 - src/Filter/Validation/Validator/Identical.php | 1 - .../Validation/Validator/InclusionIn.php | 1 - .../Validation/Validator/Numericality.php | 1 - .../Validation/Validator/PresenceOf.php | 1 - src/Filter/Validation/Validator/Regex.php | 1 - .../Validation/Validator/StringLength.php | 2 - .../Validation/Validator/StringLength/Max.php | 1 - .../Validation/Validator/StringLength/Min.php | 1 - .../Validation/Validator/Uniqueness.php | 1 - src/Filter/Validation/Validator/Url.php | 1 - .../ValidatorCompositeInterface.php | 2 - src/Filter/Validation/ValidatorFactory.php | 2 - src/Filter/Validation/ValidatorInterface.php | 2 - src/Flash/AbstractFlash.php | 62 +- src/Flash/Direct.php | 2 - src/Flash/Exception.php | 2 - src/Flash/FlashInterface.php | 2 - src/Forms/Element/AbstractElement.php | 1 - src/Forms/Element/Check.php | 1 - src/Forms/Element/Date.php | 1 - src/Forms/Element/ElementInterface.php | 2 - src/Forms/Element/Email.php | 1 - src/Forms/Element/File.php | 1 - src/Forms/Element/Hidden.php | 1 - src/Forms/Element/Numeric.php | 1 - src/Forms/Element/Password.php | 1 - src/Forms/Element/Radio.php | 1 - src/Forms/Element/Select.php | 1 - src/Forms/Element/Submit.php | 1 - src/Forms/Element/Text.php | 2 - src/Forms/Element/TextArea.php | 1 - src/Forms/Exception.php | 2 - src/Forms/Form.php | 33 +- src/Forms/Manager.php | 1 - src/Html/Attributes.php | 2 - src/Html/Attributes/AttributesInterface.php | 2 - src/Html/Attributes/RenderInterface.php | 2 - src/Html/Breadcrumbs.php | 37 +- src/Html/Escaper.php | 57 +- src/Html/Escaper/EscaperInterface.php | 4 +- src/Html/Escaper/Exception.php | 2 - src/Html/EscaperFactory.php | 2 - src/Html/Exception.php | 2 - src/Html/Helper/AbstractHelper.php | 1 - src/Html/Helper/AbstractList.php | 1 - src/Html/Helper/AbstractSeries.php | 1 - src/Html/Helper/Anchor.php | 2 - src/Html/Helper/Base.php | 2 - src/Html/Helper/Body.php | 2 - src/Html/Helper/Button.php | 2 - src/Html/Helper/Close.php | 2 - src/Html/Helper/Doctype.php | 4 +- src/Html/Helper/Element.php | 2 - src/Html/Helper/Form.php | 2 - src/Html/Helper/Img.php | 2 - src/Html/Helper/Input/AbstractInput.php | 1 - src/Html/Helper/Input/Checkbox.php | 1 - src/Html/Helper/Input/Color.php | 1 - src/Html/Helper/Input/Date.php | 1 - src/Html/Helper/Input/DateTime.php | 1 - src/Html/Helper/Input/DateTimeLocal.php | 1 - src/Html/Helper/Input/Email.php | 1 - src/Html/Helper/Input/File.php | 1 - src/Html/Helper/Input/Hidden.php | 1 - src/Html/Helper/Input/Image.php | 1 - src/Html/Helper/Input/Input.php | 2 - src/Html/Helper/Input/Month.php | 1 - src/Html/Helper/Input/Numeric.php | 1 - src/Html/Helper/Input/Password.php | 1 - src/Html/Helper/Input/Radio.php | 1 - src/Html/Helper/Input/Range.php | 1 - src/Html/Helper/Input/Search.php | 1 - src/Html/Helper/Input/Select.php | 1 - src/Html/Helper/Input/Submit.php | 1 - src/Html/Helper/Input/Tel.php | 1 - src/Html/Helper/Input/Text.php | 2 - src/Html/Helper/Input/Textarea.php | 1 - src/Html/Helper/Input/Time.php | 1 - src/Html/Helper/Input/Url.php | 1 - src/Html/Helper/Input/Week.php | 1 - src/Html/Helper/Label.php | 2 - src/Html/Helper/Link.php | 2 - src/Html/Helper/Meta.php | 2 - src/Html/Helper/Ol.php | 2 - src/Html/Helper/Script.php | 2 - src/Html/Helper/Style.php | 1 - src/Html/Helper/Title.php | 5 +- src/Html/Helper/Ul.php | 2 - src/Html/Link/AbstractLink.php | 5 +- src/Html/Link/AbstractLinkProvider.php | 1 - src/Html/Link/EvolvableLink.php | 6 +- src/Html/Link/EvolvableLinkProvider.php | 2 - .../Interfaces/EvolvableLinkInterface.php | 2 - .../EvolvableLinkProviderInterface.php | 2 - src/Html/Link/Interfaces/LinkInterface.php | 2 - .../Link/Interfaces/LinkProviderInterface.php | 2 - src/Html/Link/Link.php | 2 - src/Html/Link/LinkProvider.php | 2 - src/Html/Link/Serializer/Header.php | 2 - .../Link/Serializer/SerializerInterface.php | 2 - src/Html/TagFactory.php | 83 +- src/Http/Cookie.php | 1 - src/Http/Cookie/CookieInterface.php | 2 - src/Http/Cookie/Exception.php | 2 - src/Http/Request.php | 35 +- src/Http/Request/Exception.php | 2 - src/Http/Request/File.php | 21 +- src/Http/Request/FileInterface.php | 4 - src/Http/RequestInterface.php | 2 - src/Http/Response.php | 1 - src/Http/Response/Cookies.php | 1 - src/Http/Response/CookiesInterface.php | 2 - src/Http/Response/Exception.php | 2 - src/Http/Response/Headers.php | 1 - src/Http/Response/HeadersInterface.php | 2 - src/Http/ResponseInterface.php | 2 - src/Image/Adapter/AbstractAdapter.php | 166 ++-- src/Image/Adapter/AdapterInterface.php | 100 +- src/Image/Adapter/Gd.php | 127 ++- src/Image/Adapter/Imagick.php | 166 ++-- src/Image/Exception.php | 2 - src/Image/ImageFactory.php | 2 - src/Logger/AbstractLogger.php | 12 +- src/Logger/Adapter/AbstractAdapter.php | 1 - src/Logger/Adapter/AdapterInterface.php | 2 - src/Logger/Adapter/Noop.php | 2 - src/Logger/Adapter/Stream.php | 27 +- src/Logger/Adapter/Syslog.php | 1 - src/Logger/AdapterFactory.php | 2 - src/Logger/Exception.php | 2 - src/Logger/Formatter/AbstractFormatter.php | 22 +- src/Logger/Formatter/FormatterInterface.php | 2 - src/Logger/Formatter/Json.php | 4 - src/Logger/Formatter/Line.php | 35 +- src/Logger/Item.php | 47 +- src/Logger/Logger.php | 2 - src/Logger/LoggerFactory.php | 1 - src/Logger/LoggerInterface.php | 2 - src/Messages/Exception.php | 2 - src/Messages/Message.php | 41 +- src/Messages/MessageInterface.php | 2 - src/Messages/Messages.php | 1 - src/Mvc/Application.php | 1 - src/Mvc/Application/Exception.php | 2 - src/Mvc/Controller.php | 2 - src/Mvc/Controller/BindModelInterface.php | 2 - src/Mvc/ControllerInterface.php | 2 - src/Mvc/Dispatcher.php | 1 - src/Mvc/Dispatcher/Exception.php | 2 - src/Mvc/DispatcherInterface.php | 2 - src/Mvc/EntityInterface.php | 2 - src/Mvc/Micro.php | 5 +- src/Mvc/Micro/Collection.php | 1 - src/Mvc/Micro/CollectionInterface.php | 5 +- src/Mvc/Micro/Exception.php | 2 - src/Mvc/Micro/LazyLoader.php | 33 +- src/Mvc/Micro/MiddlewareInterface.php | 2 - src/Mvc/Model.php | 56 +- src/Mvc/Model/Behavior.php | 1 - src/Mvc/Model/Behavior/SoftDelete.php | 2 - src/Mvc/Model/Behavior/Timestampable.php | 2 - src/Mvc/Model/BehaviorInterface.php | 2 - src/Mvc/Model/Binder.php | 37 +- src/Mvc/Model/Binder/BindableInterface.php | 2 - src/Mvc/Model/BinderInterface.php | 2 - src/Mvc/Model/Criteria.php | 1 - src/Mvc/Model/CriteriaInterface.php | 2 - src/Mvc/Model/Exception.php | 2 - src/Mvc/Model/Manager.php | 803 ++++++++-------- src/Mvc/Model/ManagerInterface.php | 9 +- src/Mvc/Model/MetaData/Apcu.php | 2 - src/Mvc/Model/MetaData/Libmemcached.php | 2 - src/Mvc/Model/MetaData/Memory.php | 2 - src/Mvc/Model/MetaData/Redis.php | 2 - .../Model/MetaData/Strategy/Annotations.php | 2 - .../Model/MetaData/Strategy/Introspection.php | 2 - .../MetaData/Strategy/StrategyInterface.php | 2 - src/Mvc/Model/MetaData/Stream.php | 1 - src/Mvc/Model/MetaDataInterface.php | 2 - src/Mvc/Model/Query.php | 22 +- src/Mvc/Model/Query/Builder.php | 1 - src/Mvc/Model/Query/BuilderInterface.php | 4 +- src/Mvc/Model/Query/Lang.php | 2 - src/Mvc/Model/Query/Status.php | 1 - src/Mvc/Model/Query/StatusInterface.php | 2 - src/Mvc/Model/QueryInterface.php | 2 - src/Mvc/Model/RelationInterface.php | 2 - src/Mvc/Model/ResultInterface.php | 2 - src/Mvc/Model/Resultset/Complex.php | 1 - src/Mvc/Model/Resultset/Simple.php | 1 - src/Mvc/Model/ResultsetInterface.php | 2 - src/Mvc/Model/Row.php | 2 - src/Mvc/Model/Transaction.php | 1 - src/Mvc/Model/Transaction/Exception.php | 2 - src/Mvc/Model/Transaction/Failed.php | 1 - src/Mvc/Model/Transaction/Manager.php | 1 - .../Model/Transaction/ManagerInterface.php | 2 - src/Mvc/Model/TransactionInterface.php | 2 - src/Mvc/Model/ValidationFailed.php | 1 - src/Mvc/ModelInterface.php | 2 - src/Mvc/ModuleDefinitionInterface.php | 2 - src/Mvc/Router.php | 78 +- src/Mvc/Router/Annotations.php | 1 - src/Mvc/Router/Exception.php | 2 - src/Mvc/Router/Group.php | 1 - src/Mvc/Router/GroupInterface.php | 2 - src/Mvc/Router/Route.php | 15 +- src/Mvc/Router/RouteInterface.php | 2 - src/Mvc/RouterInterface.php | 57 +- src/Mvc/Url.php | 1 - src/Mvc/Url/Exception.php | 2 - src/Mvc/Url/UrlInterface.php | 2 - src/Mvc/View.php | 42 +- src/Mvc/View/Engine/AbstractEngine.php | 1 - src/Mvc/View/Engine/EngineInterface.php | 2 - src/Mvc/View/Engine/Php.php | 2 - src/Mvc/View/Engine/Volt.php | 1 - src/Mvc/View/Engine/Volt/Compiler.php | 21 +- src/Mvc/View/Engine/Volt/Exception.php | 1 - src/Mvc/View/Exception.php | 2 - src/Mvc/View/Simple.php | 19 +- src/Mvc/ViewBaseInterface.php | 2 - src/Mvc/ViewInterface.php | 2 - src/Paginator/Adapter/AbstractAdapter.php | 1 - src/Paginator/Adapter/AdapterInterface.php | 2 - src/Paginator/Adapter/Model.php | 2 - src/Paginator/Adapter/NativeArray.php | 2 - src/Paginator/Adapter/QueryBuilder.php | 1 - src/Paginator/Exception.php | 2 - src/Paginator/PaginatorFactory.php | 2 - src/Paginator/Repository.php | 1 - src/Session/Adapter/AbstractAdapter.php | 1 - src/Session/Adapter/Libmemcached.php | 2 - src/Session/Adapter/Noop.php | 1 - src/Session/Adapter/Redis.php | 2 - src/Session/Adapter/Stream.php | 1 - src/Session/Bag.php | 1 - src/Session/BagInterface.php | 2 - src/Session/Exception.php | 2 - src/Session/Manager.php | 1 - src/Storage/Adapter/AbstractAdapter.php | 19 +- src/Storage/Adapter/AdapterInterface.php | 2 - src/Storage/Adapter/Apcu.php | 1 - src/Storage/Adapter/Libmemcached.php | 1 - src/Storage/Adapter/Memory.php | 1 - src/Storage/Adapter/Redis.php | 15 +- src/Storage/Adapter/Stream.php | 4 - src/Storage/AdapterFactory.php | 1 - src/Storage/Exception.php | 2 - src/Storage/Serializer/AbstractSerializer.php | 35 +- src/Storage/Serializer/Base64.php | 2 - src/Storage/Serializer/Igbinary.php | 2 - src/Storage/Serializer/Json.php | 2 - src/Storage/Serializer/MemcachedIgbinary.php | 2 - src/Storage/Serializer/MemcachedJson.php | 2 - src/Storage/Serializer/MemcachedPhp.php | 2 - src/Storage/Serializer/Msgpack.php | 2 - src/Storage/Serializer/None.php | 2 - src/Storage/Serializer/Php.php | 2 - src/Storage/Serializer/RedisIgbinary.php | 2 - src/Storage/Serializer/RedisJson.php | 2 - src/Storage/Serializer/RedisMsgpack.php | 2 - src/Storage/Serializer/RedisNone.php | 2 - src/Storage/Serializer/RedisPhp.php | 2 - .../Serializer/SerializerInterface.php | 2 - src/Storage/SerializerFactory.php | 2 - src/Support/Collection.php | 1 - .../Collection/CollectionInterface.php | 2 - src/Support/Collection/Exception.php | 2 - src/Support/Collection/ReadOnlyCollection.php | 2 - src/Support/Debug.php | 1 - src/Support/Debug/Dump.php | 28 +- src/Support/Debug/Exception.php | 2 - src/Support/Exception.php | 2 - src/Support/Helper/Arr/AbstractArr.php | 2 - src/Support/Helper/Arr/Blacklist.php | 2 - src/Support/Helper/Arr/Chunk.php | 2 - src/Support/Helper/Arr/Filter.php | 2 - src/Support/Helper/Arr/First.php | 2 - src/Support/Helper/Arr/FirstKey.php | 2 - src/Support/Helper/Arr/Flatten.php | 2 - src/Support/Helper/Arr/Get.php | 2 - src/Support/Helper/Arr/Group.php | 2 - src/Support/Helper/Arr/Has.php | 2 - src/Support/Helper/Arr/IsUnique.php | 2 - src/Support/Helper/Arr/Last.php | 2 - src/Support/Helper/Arr/LastKey.php | 2 - src/Support/Helper/Arr/Pluck.php | 2 - src/Support/Helper/Arr/Set.php | 2 - src/Support/Helper/Arr/SliceLeft.php | 2 - src/Support/Helper/Arr/SliceRight.php | 2 - src/Support/Helper/Arr/Split.php | 2 - src/Support/Helper/Arr/ToObject.php | 2 - src/Support/Helper/Arr/ValidateAll.php | 2 - src/Support/Helper/Arr/ValidateAny.php | 2 - src/Support/Helper/Arr/Whitelist.php | 2 - src/Support/Helper/Exception.php | 2 - src/Support/Helper/File/Basename.php | 2 - src/Support/Helper/Json/Decode.php | 2 - src/Support/Helper/Json/Encode.php | 2 - src/Support/Helper/Number/IsBetween.php | 2 - src/Support/Helper/Str/AbstractStr.php | 2 - src/Support/Helper/Str/Camelize.php | 2 - src/Support/Helper/Str/Concat.php | 2 - src/Support/Helper/Str/CountVowels.php | 2 - src/Support/Helper/Str/Decapitalize.php | 2 - src/Support/Helper/Str/Decrement.php | 2 - src/Support/Helper/Str/DirFromFile.php | 2 - src/Support/Helper/Str/DirSeparator.php | 2 - src/Support/Helper/Str/Dynamic.php | 2 - src/Support/Helper/Str/EndsWith.php | 2 - src/Support/Helper/Str/FirstBetween.php | 2 - src/Support/Helper/Str/Friendly.php | 2 - src/Support/Helper/Str/Humanize.php | 2 - src/Support/Helper/Str/Includes.php | 2 - src/Support/Helper/Str/Increment.php | 2 - src/Support/Helper/Str/Interpolate.php | 2 - src/Support/Helper/Str/IsAnagram.php | 2 - src/Support/Helper/Str/IsLower.php | 2 - src/Support/Helper/Str/IsPalindrome.php | 2 - src/Support/Helper/Str/IsUpper.php | 2 - src/Support/Helper/Str/KebabCase.php | 2 - src/Support/Helper/Str/Len.php | 2 - src/Support/Helper/Str/Lower.php | 2 - src/Support/Helper/Str/PascalCase.php | 2 - src/Support/Helper/Str/Prefix.php | 2 - src/Support/Helper/Str/ReduceSlashes.php | 2 - src/Support/Helper/Str/SnakeCase.php | 2 - src/Support/Helper/Str/StartsWith.php | 2 - src/Support/Helper/Str/Suffix.php | 2 - src/Support/Helper/Str/Ucwords.php | 2 - src/Support/Helper/Str/Uncamelize.php | 2 - src/Support/Helper/Str/Underscore.php | 2 - src/Support/Helper/Str/Upper.php | 2 - src/Support/HelperFactory.php | 2 - src/Support/Registry.php | 2 - src/Tag.php | 879 ++++++++++++++++++ src/Tag/Exception.php | 2 - src/Tag/Select.php | 2 - src/Translate/Adapter/AbstractAdapter.php | 1 - src/Translate/Adapter/AdapterInterface.php | 2 - src/Translate/Adapter/Csv.php | 1 - src/Translate/Adapter/Gettext.php | 53 +- src/Translate/Adapter/NativeArray.php | 1 - src/Translate/Exception.php | 2 - .../Interpolator/AssociativeArray.php | 2 - src/Translate/Interpolator/IndexedArray.php | 2 - .../Interpolator/InterpolatorInterface.php | 2 - src/Translate/InterpolatorFactory.php | 2 - src/Translate/TranslateFactory.php | 1 - 578 files changed, 2776 insertions(+), 2523 deletions(-) create mode 100644 src/Filter/Sanitize/StringValLegacy.php create mode 100644 src/Tag.php diff --git a/src/Acl/Adapter/AbstractAdapter.php b/src/Acl/Adapter/AbstractAdapter.php index 036226ca..4d0cc899 100644 --- a/src/Acl/Adapter/AbstractAdapter.php +++ b/src/Acl/Adapter/AbstractAdapter.php @@ -18,14 +18,6 @@ */ abstract class AbstractAdapter extends AbstractEventsAware implements \Phalcon\Acl\Adapter\AdapterInterface, \Phalcon\Events\EventsAwareInterface { - - /** - * Active access which the list is checking if some role can access it - * - * @var string|null - */ - protected $activeAccess; - /** * Access Granted * @@ -34,19 +26,26 @@ abstract class AbstractAdapter extends AbstractEventsAware implements \Phalcon\A protected $accessGranted = false; /** - * Role which the list is checking if it's allowed to certain - * component/access + * Active access which the list is checking if some role can access it * * @var string|null */ - protected $activeRole; + protected $activeAccess = null; /** * Component which the list is checking if some role can access it * * @var string|null */ - protected $activeComponent; + protected $activeComponent = null; + + /** + * Role which the list is checking if it's allowed to certain + * component/access + * + * @var string|null + */ + protected $activeRole = null; /** * Default access @@ -65,22 +64,21 @@ public function getActiveAccess(): ?string } /** - * Role which the list is checking if it's allowed to certain - * - * component/access + * Component which the list is checking if some role can access it * * @return string|null */ - public function getActiveRole(): ?string + public function getActiveComponent(): ?string { } /** - * Component which the list is checking if some role can access it + * Role which the list is checking if it's allowed to certain + * component/access * * @return string|null */ - public function getActiveComponent(): ?string + public function getActiveRole(): ?string { } diff --git a/src/Acl/Adapter/AdapterInterface.php b/src/Acl/Adapter/AdapterInterface.php index 5381b1a3..3333fd92 100644 --- a/src/Acl/Adapter/AdapterInterface.php +++ b/src/Acl/Adapter/AdapterInterface.php @@ -17,8 +17,6 @@ */ interface AdapterInterface { - - /** * Do a role inherit from another existing role * diff --git a/src/Acl/Adapter/Memory.php b/src/Acl/Adapter/Memory.php index 16ef9f65..4408f330 100644 --- a/src/Acl/Adapter/Memory.php +++ b/src/Acl/Adapter/Memory.php @@ -84,7 +84,6 @@ */ class Memory extends \Phalcon\Acl\Adapter\AbstractAdapter { - /** * Access * @@ -118,7 +117,7 @@ class Memory extends \Phalcon\Acl\Adapter\AbstractAdapter * * @var string|null */ - protected $activeKey; + protected $activeKey = null; /** * Components @@ -162,33 +161,6 @@ class Memory extends \Phalcon\Acl\Adapter\AbstractAdapter */ protected $roleInherits; - /** - * Returns latest function used to acquire access - * - * @return mixed - */ - public function getActiveFunction() - { - } - - /** - * Returns number of additional arguments(excluding role and resource) for active function - * - * @return int - */ - public function getActiveFunctionCustomArgumentsCount(): int - { - } - - /** - * Returns latest key used to acquire access - * - * @return string|null - */ - public function getActiveKey(): ?string - { - } - /** * Phalcon\Acl\Adapter\Memory constructor */ @@ -350,6 +322,33 @@ public function dropComponentAccess(string $componentName, $accessList): void { } + /** + * Returns latest function used to acquire access + * + * @return mixed + */ + public function getActiveFunction() + { + } + + /** + * Returns number of additional arguments(excluding role and resource) for active function + * + * @return int + */ + public function getActiveFunctionCustomArgumentsCount(): int + { + } + + /** + * Returns latest key used to acquire access + * + * @return string|null + */ + public function getActiveKey(): ?string + { + } + /** * Return an array with every component registered in the list * diff --git a/src/Acl/Component.php b/src/Acl/Component.php index b761a687..0bf3f4b0 100644 --- a/src/Acl/Component.php +++ b/src/Acl/Component.php @@ -14,7 +14,6 @@ */ class Component implements \Phalcon\Acl\ComponentInterface { - /** * Component description * @@ -30,39 +29,33 @@ class Component implements \Phalcon\Acl\ComponentInterface private $name; /** - * Component description + * Phalcon\Acl\Component constructor * - * @return string + * @param string $name + * @param string $description */ - public function getDescription(): string + public function __construct(string $name, string $description = null) { } /** - * Component name - * * @return string */ - public function getName(): string + public function __toString(): string { } /** - * Component name - * * @return string */ - public function __toString(): string + public function getDescription(): string { } /** - * Phalcon\Acl\Component constructor - * - * @param string $name - * @param string $description + * @return string */ - public function __construct(string $name, string $description = null) + public function getName(): string { } } diff --git a/src/Acl/ComponentAwareInterface.php b/src/Acl/ComponentAwareInterface.php index c15c7e71..71f4b35b 100644 --- a/src/Acl/ComponentAwareInterface.php +++ b/src/Acl/ComponentAwareInterface.php @@ -14,8 +14,6 @@ */ interface ComponentAwareInterface { - - /** * Returns component name * diff --git a/src/Acl/ComponentInterface.php b/src/Acl/ComponentInterface.php index 79a48e56..f34c4cc0 100644 --- a/src/Acl/ComponentInterface.php +++ b/src/Acl/ComponentInterface.php @@ -14,8 +14,6 @@ */ interface ComponentInterface { - - /** * Returns component description * diff --git a/src/Acl/Exception.php b/src/Acl/Exception.php index 2668cd39..12d0693b 100644 --- a/src/Acl/Exception.php +++ b/src/Acl/Exception.php @@ -14,6 +14,4 @@ */ class Exception extends \Exception { - - } diff --git a/src/Acl/Role.php b/src/Acl/Role.php index 990a378a..60449f06 100644 --- a/src/Acl/Role.php +++ b/src/Acl/Role.php @@ -14,33 +14,31 @@ */ class Role implements \Phalcon\Acl\RoleInterface { - /** - * Role name + * Role description * * @var string */ - private $name; + private $description; /** - * Role description + * Role name * * @var string */ - private $description; + private $name; /** - * Role name + * Phalcon\Acl\Role constructor * - * @return string + * @param string $name + * @param string $description */ - public function getName(): string + public function __construct(string $name, string $description = null) { } /** - * Role name - * * @return string */ public function __toString(): string @@ -48,8 +46,6 @@ public function __toString(): string } /** - * Role description - * * @return string */ public function getDescription(): string @@ -57,12 +53,9 @@ public function getDescription(): string } /** - * Phalcon\Acl\Role constructor - * - * @param string $name - * @param string $description + * @return string */ - public function __construct(string $name, string $description = null) + public function getName(): string { } } diff --git a/src/Acl/RoleAwareInterface.php b/src/Acl/RoleAwareInterface.php index a42385eb..003fe8bd 100644 --- a/src/Acl/RoleAwareInterface.php +++ b/src/Acl/RoleAwareInterface.php @@ -14,8 +14,6 @@ */ interface RoleAwareInterface { - - /** * Returns role name * diff --git a/src/Acl/RoleInterface.php b/src/Acl/RoleInterface.php index 4dc42ceb..5c38cb35 100644 --- a/src/Acl/RoleInterface.php +++ b/src/Acl/RoleInterface.php @@ -14,8 +14,6 @@ */ interface RoleInterface { - - /** * Returns the role name * diff --git a/src/Annotations/Adapter/AbstractAdapter.php b/src/Annotations/Adapter/AbstractAdapter.php index 86a35918..dd208985 100644 --- a/src/Annotations/Adapter/AbstractAdapter.php +++ b/src/Annotations/Adapter/AbstractAdapter.php @@ -20,7 +20,6 @@ */ abstract class AbstractAdapter implements \Phalcon\Annotations\Adapter\AdapterInterface { - /** * @var array */ diff --git a/src/Annotations/Adapter/AdapterInterface.php b/src/Annotations/Adapter/AdapterInterface.php index 8376b718..978076cb 100644 --- a/src/Annotations/Adapter/AdapterInterface.php +++ b/src/Annotations/Adapter/AdapterInterface.php @@ -18,8 +18,6 @@ */ interface AdapterInterface { - - /** * Parses or retrieves all the annotations found in a class * diff --git a/src/Annotations/Adapter/Apcu.php b/src/Annotations/Adapter/Apcu.php index ead7e836..7cb1d60b 100644 --- a/src/Annotations/Adapter/Apcu.php +++ b/src/Annotations/Adapter/Apcu.php @@ -22,7 +22,6 @@ */ class Apcu extends \Phalcon\Annotations\Adapter\AbstractAdapter { - /** * @var string */ diff --git a/src/Annotations/Adapter/Memory.php b/src/Annotations/Adapter/Memory.php index 527037ad..7e4194ec 100644 --- a/src/Annotations/Adapter/Memory.php +++ b/src/Annotations/Adapter/Memory.php @@ -17,7 +17,6 @@ */ class Memory extends \Phalcon\Annotations\Adapter\AbstractAdapter { - /** * @var mixed */ diff --git a/src/Annotations/Adapter/Stream.php b/src/Annotations/Adapter/Stream.php index 08cb7931..ead578fb 100644 --- a/src/Annotations/Adapter/Stream.php +++ b/src/Annotations/Adapter/Stream.php @@ -28,7 +28,6 @@ */ class Stream extends \Phalcon\Annotations\Adapter\AbstractAdapter { - /** * @var string */ diff --git a/src/Annotations/Annotation.php b/src/Annotations/Annotation.php index 9c29ae36..daa1d03a 100644 --- a/src/Annotations/Annotation.php +++ b/src/Annotations/Annotation.php @@ -14,7 +14,6 @@ */ class Annotation { - /** * Annotation Arguments * diff --git a/src/Annotations/AnnotationsFactory.php b/src/Annotations/AnnotationsFactory.php index ac43ee99..94105e4d 100644 --- a/src/Annotations/AnnotationsFactory.php +++ b/src/Annotations/AnnotationsFactory.php @@ -18,8 +18,6 @@ */ class AnnotationsFactory extends AbstractFactory { - - /** * AdapterFactory constructor. * diff --git a/src/Annotations/Collection.php b/src/Annotations/Collection.php index a92b49de..36300ede 100644 --- a/src/Annotations/Collection.php +++ b/src/Annotations/Collection.php @@ -31,7 +31,6 @@ */ class Collection implements \Iterator, \Countable { - /** * @var array */ diff --git a/src/Annotations/Exception.php b/src/Annotations/Exception.php index 7aa18eea..07286917 100644 --- a/src/Annotations/Exception.php +++ b/src/Annotations/Exception.php @@ -14,6 +14,4 @@ */ class Exception extends \Exception { - - } diff --git a/src/Annotations/Reader.php b/src/Annotations/Reader.php index 3f718b1a..b0d607d2 100644 --- a/src/Annotations/Reader.php +++ b/src/Annotations/Reader.php @@ -16,8 +16,6 @@ */ class Reader implements \Phalcon\Annotations\ReaderInterface { - - /** * Reads annotations from the class docblocks, its methods and/or properties * diff --git a/src/Annotations/ReaderInterface.php b/src/Annotations/ReaderInterface.php index 477ee4b3..d84ba0c4 100644 --- a/src/Annotations/ReaderInterface.php +++ b/src/Annotations/ReaderInterface.php @@ -14,8 +14,6 @@ */ interface ReaderInterface { - - /** * Reads annotations from the class docblocks, its constants, properties and methods * diff --git a/src/Annotations/Reflection.php b/src/Annotations/Reflection.php index 196ebe91..38069236 100644 --- a/src/Annotations/Reflection.php +++ b/src/Annotations/Reflection.php @@ -29,30 +29,25 @@ */ class Reflection { - /** - * @var array - * TODO: Make always array + * @var Collection|null */ - protected $classAnnotations; + protected $classAnnotations = null; /** * @var array - * TODO: Make always array */ - protected $constantAnnotations; + protected $constantAnnotations = []; /** * @var array - * TODO: Make always array */ - protected $propertyAnnotations; + protected $propertyAnnotations = []; /** * @var array - * TODO: Make always array */ - protected $methodAnnotations; + protected $methodAnnotations = []; /** * @var array @@ -60,8 +55,6 @@ class Reflection protected $reflectionData = []; /** - * Phalcon\Annotations\Reflection constructor - * * @param array $reflectionData */ public function __construct(array $reflectionData = []) @@ -71,36 +64,36 @@ public function __construct(array $reflectionData = []) /** * Returns the annotations found in the class docblock * - * @return bool|Collection + * @return Collection|null */ - public function getClassAnnotations() + public function getClassAnnotations(): ?Collection { } /** * Returns the annotations found in the constants' docblocks * - * @return array|bool|Collection[] + * @return Collection[] */ - public function getConstantsAnnotations() + public function getConstantsAnnotations(): array { } /** * Returns the annotations found in the properties' docblocks * - * @return array|bool|Collection[] + * @return Collection[] */ - public function getPropertiesAnnotations() + public function getPropertiesAnnotations(): array { } /** * Returns the annotations found in the methods' docblocks * - * @return array|bool|Collection[] + * @return Collection[] */ - public function getMethodsAnnotations() + public function getMethodsAnnotations(): array { } diff --git a/src/Application/AbstractApplication.php b/src/Application/AbstractApplication.php index a7f623df..b7a17fd1 100644 --- a/src/Application/AbstractApplication.php +++ b/src/Application/AbstractApplication.php @@ -19,7 +19,6 @@ */ abstract class AbstractApplication extends Injectable implements \Phalcon\Events\EventsAwareInterface { - /** * @var DiInterface|null */ diff --git a/src/Application/Exception.php b/src/Application/Exception.php index 4e182279..b4a27097 100644 --- a/src/Application/Exception.php +++ b/src/Application/Exception.php @@ -14,6 +14,4 @@ */ class Exception extends \Exception { - - } diff --git a/src/Assets/Asset.php b/src/Assets/Asset.php index 569089bc..a20868c5 100644 --- a/src/Assets/Asset.php +++ b/src/Assets/Asset.php @@ -30,7 +30,6 @@ */ class Asset implements \Phalcon\Assets\AssetInterface { - /** * @var array */ @@ -84,130 +83,130 @@ class Asset implements \Phalcon\Assets\AssetInterface protected $version; /** - * @return bool + * Asset constructor. + * + * @param string $type + * @param string $path + * @param bool $isLocal + * @param bool $filter + * @param array $attributes + * @param string|null $version + * @param bool $isAutoVersion */ - public function getFilter(): bool + public function __construct(string $type, string $path, bool $isLocal = true, bool $filter = true, array $attributes = [], string $version = null, bool $isAutoVersion = false) { } /** + * Gets the asset's key. + * * @return string */ - public function getPath(): string + public function getAssetKey(): string { } /** - * @return string + * Gets extra HTML attributes. + * + * @return array */ - public function getSourcePath(): string + public function getAttributes(): array { } /** + * Returns the content of the asset as an string + * Optionally a base path where the asset is located can be set + * + * @param string|null $basePath + * * @return string + * @throws Exception */ - public function getTargetPath(): string + public function getContent(string $basePath = null): string { } /** - * @return string + * @return bool */ - public function getTargetUri(): string + public function getFilter(): bool { } /** * @return string */ - public function getType(): string + public function getPath(): string { } /** - * Version of resource + * Returns the complete location where the asset is located * - * @return string|null + * @param string|null $basePath + * + * @return string */ - public function getVersion(): ?string + public function getRealSourcePath(string $basePath = null): string { } /** - * Asset constructor. + * Returns the complete location where the asset must be written * - * @param string $type - * @param string $path - * @param bool $isLocal - * @param bool $filter - * @param array $attributes - * @param string|null $version - * @param bool $isAutoVersion + * @param string|null $basePath + * + * @return string */ - public function __construct(string $type, string $path, bool $isLocal = true, bool $filter = true, array $attributes = [], string $version = null, bool $isAutoVersion = false) + public function getRealTargetPath(string $basePath = null): string { } /** - * Gets the asset's key. + * Returns the real target uri for the generated HTML * * @return string */ - public function getAssetKey(): string + public function getRealTargetUri(): string { } /** - * Gets extra HTML attributes. - * - * @return array + * @return string */ - public function getAttributes(): array + public function getSourcePath(): string { } /** - * Returns the content of the asset as an string - * Optionally a base path where the asset is located can be set - * - * @param string|null $basePath - * * @return string - * @throws Exception */ - public function getContent(string $basePath = null): string + public function getTargetPath(): string { } /** - * Returns the complete location where the asset is located - * - * @param string|null $basePath - * * @return string */ - public function getRealSourcePath(string $basePath = null): string + public function getTargetUri(): string { } /** - * Returns the complete location where the asset must be written - * - * @param string|null $basePath - * * @return string */ - public function getRealTargetPath(string $basePath = null): string + public function getType(): string { } /** - * Returns the real target uri for the generated HTML + * Version of resource * - * @return string + * @return string|null */ - public function getRealTargetUri(): string + public function getVersion(): ?string { } diff --git a/src/Assets/Asset/Css.php b/src/Assets/Asset/Css.php index f0dba5f3..58fac1d8 100644 --- a/src/Assets/Asset/Css.php +++ b/src/Assets/Asset/Css.php @@ -16,8 +16,6 @@ */ class Css extends \Phalcon\Assets\Asset { - - /** * Phalcon\Assets\Asset\Css constructor * diff --git a/src/Assets/Asset/Js.php b/src/Assets/Asset/Js.php index 406a5b34..f4f75411 100644 --- a/src/Assets/Asset/Js.php +++ b/src/Assets/Asset/Js.php @@ -16,8 +16,6 @@ */ class Js extends \Phalcon\Assets\Asset { - - /** * Phalcon\Assets\Asset\Js constructor * diff --git a/src/Assets/AssetInterface.php b/src/Assets/AssetInterface.php index 53de8e14..d16d8a78 100644 --- a/src/Assets/AssetInterface.php +++ b/src/Assets/AssetInterface.php @@ -14,8 +14,6 @@ */ interface AssetInterface { - - /** * Gets the asset's key. * diff --git a/src/Assets/Collection.php b/src/Assets/Collection.php index 430a987f..ce61fee9 100644 --- a/src/Assets/Collection.php +++ b/src/Assets/Collection.php @@ -32,7 +32,6 @@ */ class Collection implements \Countable, \IteratorAggregate { - /** * @var array */ @@ -63,12 +62,12 @@ class Collection implements \Countable, \IteratorAggregate /** * @var bool */ - protected $join = true; + protected $isLocal = true; /** * @var bool */ - protected $isLocal = true; + protected $join = true; /** * @var string @@ -100,83 +99,6 @@ class Collection implements \Countable, \IteratorAggregate */ protected $version = ''; - /** - * @return array - */ - public function getAssets(): array - { - } - - /** - * @return array - */ - public function getAttributes(): array - { - } - - /** - * @return array - */ - public function getCodes(): array - { - } - - /** - * @return array - */ - public function getFilters(): array - { - } - - /** - * @return bool - */ - public function getJoin(): bool - { - } - - /** - * @return string - */ - public function getPrefix(): string - { - } - - /** - * @return string - */ - public function getSourcePath(): string - { - } - - /** - * @return bool - */ - public function getTargetIsLocal(): bool - { - } - - /** - * @return string - */ - public function getTargetPath(): string - { - } - - /** - * @return string - */ - public function getTargetUri(): string - { - } - - /** - * @return string - */ - public function getVersion(): string - { - } - /** * Adds an asset to the collection * @@ -272,6 +194,34 @@ public function count(): int { } + /** + * @return array + */ + public function getAssets(): array + { + } + + /** + * @return array + */ + public function getAttributes(): array + { + } + + /** + * @return array + */ + public function getCodes(): array + { + } + + /** + * @return array + */ + public function getFilters(): array + { + } + /** * Returns the generator of the class * @@ -282,6 +232,20 @@ public function getIterator(): \Traversable { } + /** + * @return bool + */ + public function getJoin(): bool + { + } + + /** + * @return string + */ + public function getPrefix(): string + { + } + /** * Returns the complete location where the joined/filtered collection must * be written @@ -294,6 +258,41 @@ public function getRealTargetPath(string $basePath): string { } + /** + * @return string + */ + public function getSourcePath(): string + { + } + + /** + * @return bool + */ + public function getTargetIsLocal(): bool + { + } + + /** + * @return string + */ + public function getTargetPath(): string + { + } + + /** + * @return string + */ + public function getTargetUri(): string + { + } + + /** + * @return string + */ + public function getVersion(): string + { + } + /** * Checks this the asset is added to the collection. * diff --git a/src/Assets/Exception.php b/src/Assets/Exception.php index b903f4a5..f17ac72d 100644 --- a/src/Assets/Exception.php +++ b/src/Assets/Exception.php @@ -14,6 +14,4 @@ */ class Exception extends \Exception { - - } diff --git a/src/Assets/FilterInterface.php b/src/Assets/FilterInterface.php index 8ca18709..5654aa6b 100644 --- a/src/Assets/FilterInterface.php +++ b/src/Assets/FilterInterface.php @@ -14,8 +14,6 @@ */ interface FilterInterface { - - /** * Filters the content returning a string with the filtered content * diff --git a/src/Assets/Filters/Cssmin.php b/src/Assets/Filters/Cssmin.php index 86967d4c..58fc0fec 100644 --- a/src/Assets/Filters/Cssmin.php +++ b/src/Assets/Filters/Cssmin.php @@ -17,8 +17,6 @@ */ class Cssmin implements \Phalcon\Assets\FilterInterface { - - /** * Filters the content using CSSMIN * NOTE: This functionality is not currently available diff --git a/src/Assets/Filters/Jsmin.php b/src/Assets/Filters/Jsmin.php index b29002a4..afc0cd04 100644 --- a/src/Assets/Filters/Jsmin.php +++ b/src/Assets/Filters/Jsmin.php @@ -18,8 +18,6 @@ */ class Jsmin implements \Phalcon\Assets\FilterInterface { - - /** * Filters the content using JSMIN * NOTE: This functionality is not currently available diff --git a/src/Assets/Filters/None.php b/src/Assets/Filters/None.php index 5aa208fb..215abf06 100644 --- a/src/Assets/Filters/None.php +++ b/src/Assets/Filters/None.php @@ -16,8 +16,6 @@ */ class None implements \Phalcon\Assets\FilterInterface { - - /** * Returns the content as is * diff --git a/src/Assets/Inline.php b/src/Assets/Inline.php index 1862b470..3bdebcff 100644 --- a/src/Assets/Inline.php +++ b/src/Assets/Inline.php @@ -18,9 +18,8 @@ */ class Inline implements \Phalcon\Assets\AssetInterface { - /** - * @var array | null + * @var array */ protected $attributes; @@ -40,51 +39,51 @@ class Inline implements \Phalcon\Assets\AssetInterface protected $type; /** - * @return array|null + * Phalcon\Assets\Inline constructor + * + * @param string $type + * @param string $content + * @param bool $filter + * @param array $attributes */ - public function getAttributes(): ?array + public function __construct(string $type, string $content, bool $filter = true, array $attributes = []) { } /** + * Gets the asset's key. + * * @return string */ - public function getContent(): string + public function getAssetKey(): string { } /** - * @return bool + * @return array */ - public function getFilter(): bool + public function getAttributes(): array { } /** * @return string */ - public function getType(): string + public function getContent(): string { } /** - * Phalcon\Assets\Inline constructor - * - * @param string $type - * @param string $content - * @param bool $filter - * @param array $attributes + * @return bool */ - public function __construct(string $type, string $content, bool $filter = true, array $attributes = []) + public function getFilter(): bool { } /** - * Gets the asset's key. - * * @return string */ - public function getAssetKey(): string + public function getType(): string { } diff --git a/src/Assets/Inline/Css.php b/src/Assets/Inline/Css.php index 67a59a38..da4a0502 100644 --- a/src/Assets/Inline/Css.php +++ b/src/Assets/Inline/Css.php @@ -16,8 +16,6 @@ */ class Css extends \Phalcon\Assets\Inline { - - /** * Phalcon\Assets\Inline\Css constructor * diff --git a/src/Assets/Inline/Js.php b/src/Assets/Inline/Js.php index 038e3fb9..3c6e89ce 100644 --- a/src/Assets/Inline/Js.php +++ b/src/Assets/Inline/Js.php @@ -16,8 +16,6 @@ */ class Js extends \Phalcon\Assets\Inline { - - /** * Phalcon\Assets\Inline\Js constructor * diff --git a/src/Assets/Manager.php b/src/Assets/Manager.php index b59608cb..40e39036 100644 --- a/src/Assets/Manager.php +++ b/src/Assets/Manager.php @@ -29,7 +29,6 @@ */ class Manager extends AbstractInjectionAware { - /** * @var array */ diff --git a/src/Autoload/Exception.php b/src/Autoload/Exception.php index 9077ae55..e6d78f3d 100644 --- a/src/Autoload/Exception.php +++ b/src/Autoload/Exception.php @@ -14,6 +14,4 @@ */ class Exception extends \Exception { - - } diff --git a/src/Autoload/Loader.php b/src/Autoload/Loader.php index db31ef45..78b81731 100644 --- a/src/Autoload/Loader.php +++ b/src/Autoload/Loader.php @@ -30,7 +30,6 @@ */ class Loader extends AbstractEventsAware { - /** * @var string|null */ diff --git a/src/Cache/AbstractCache.php b/src/Cache/AbstractCache.php index ca7dd36b..2ed1a50e 100644 --- a/src/Cache/AbstractCache.php +++ b/src/Cache/AbstractCache.php @@ -22,7 +22,6 @@ */ abstract class AbstractCache implements \Phalcon\Cache\CacheInterface { - /** * The adapter * diff --git a/src/Cache/Adapter/AdapterInterface.php b/src/Cache/Adapter/AdapterInterface.php index a6214327..254ef2de 100644 --- a/src/Cache/Adapter/AdapterInterface.php +++ b/src/Cache/Adapter/AdapterInterface.php @@ -16,6 +16,4 @@ */ interface AdapterInterface extends StorageAdapterInterface { - - } diff --git a/src/Cache/Adapter/Apcu.php b/src/Cache/Adapter/Apcu.php index 971b9848..63cd8413 100644 --- a/src/Cache/Adapter/Apcu.php +++ b/src/Cache/Adapter/Apcu.php @@ -17,6 +17,4 @@ */ class Apcu extends \Phalcon\Storage\Adapter\Apcu implements CacheAdapterInterface { - - } diff --git a/src/Cache/Adapter/Libmemcached.php b/src/Cache/Adapter/Libmemcached.php index 959d3358..8d9bc0b3 100644 --- a/src/Cache/Adapter/Libmemcached.php +++ b/src/Cache/Adapter/Libmemcached.php @@ -17,6 +17,4 @@ */ class Libmemcached extends \Phalcon\Storage\Adapter\Libmemcached implements CacheAdapterInterface { - - } diff --git a/src/Cache/Adapter/Memory.php b/src/Cache/Adapter/Memory.php index f9593f7d..e615a152 100644 --- a/src/Cache/Adapter/Memory.php +++ b/src/Cache/Adapter/Memory.php @@ -17,6 +17,4 @@ */ class Memory extends \Phalcon\Storage\Adapter\Memory implements CacheAdapterInterface { - - } diff --git a/src/Cache/Adapter/Redis.php b/src/Cache/Adapter/Redis.php index 0a8f5b08..f8d676f2 100644 --- a/src/Cache/Adapter/Redis.php +++ b/src/Cache/Adapter/Redis.php @@ -17,6 +17,4 @@ */ class Redis extends \Phalcon\Storage\Adapter\Redis implements CacheAdapterInterface { - - } diff --git a/src/Cache/Adapter/Stream.php b/src/Cache/Adapter/Stream.php index 9f5bcbe0..37ddff08 100644 --- a/src/Cache/Adapter/Stream.php +++ b/src/Cache/Adapter/Stream.php @@ -17,6 +17,4 @@ */ class Stream extends \Phalcon\Storage\Adapter\Stream implements CacheAdapterInterface { - - } diff --git a/src/Cache/AdapterFactory.php b/src/Cache/AdapterFactory.php index 51cce574..ae451a05 100644 --- a/src/Cache/AdapterFactory.php +++ b/src/Cache/AdapterFactory.php @@ -21,7 +21,6 @@ */ class AdapterFactory extends AbstractFactory { - /** * @var SerializerFactory */ diff --git a/src/Cache/Cache.php b/src/Cache/Cache.php index bd199fba..c81e6c26 100644 --- a/src/Cache/Cache.php +++ b/src/Cache/Cache.php @@ -21,8 +21,6 @@ */ class Cache extends \Phalcon\Cache\AbstractCache { - - /** * Wipes clean the entire cache's keys. * diff --git a/src/Cache/CacheFactory.php b/src/Cache/CacheFactory.php index 7aca9328..213b18a4 100644 --- a/src/Cache/CacheFactory.php +++ b/src/Cache/CacheFactory.php @@ -22,7 +22,6 @@ */ class CacheFactory extends AbstractConfigFactory { - /** * @var AdapterFactory */ diff --git a/src/Cache/CacheInterface.php b/src/Cache/CacheInterface.php index 904c023c..b255dbc9 100644 --- a/src/Cache/CacheInterface.php +++ b/src/Cache/CacheInterface.php @@ -17,8 +17,6 @@ */ interface CacheInterface { - - /** * Wipes clean the entire cache's keys. * diff --git a/src/Cache/Exception/Exception.php b/src/Cache/Exception/Exception.php index 7b4446e7..57a1309c 100644 --- a/src/Cache/Exception/Exception.php +++ b/src/Cache/Exception/Exception.php @@ -14,6 +14,4 @@ */ class Exception extends \Exception { - - } diff --git a/src/Cache/Exception/InvalidArgumentException.php b/src/Cache/Exception/InvalidArgumentException.php index 4915ef8c..2a9954c4 100644 --- a/src/Cache/Exception/InvalidArgumentException.php +++ b/src/Cache/Exception/InvalidArgumentException.php @@ -14,6 +14,4 @@ */ class InvalidArgumentException extends \Exception { - - } diff --git a/src/Cli/Console.php b/src/Cli/Console.php index 3f7f3250..bdf8e6d4 100644 --- a/src/Cli/Console.php +++ b/src/Cli/Console.php @@ -20,7 +20,6 @@ */ class Console extends AbstractApplication { - /** * @var array */ diff --git a/src/Cli/Console/Exception.php b/src/Cli/Console/Exception.php index 7c940feb..d4819feb 100644 --- a/src/Cli/Console/Exception.php +++ b/src/Cli/Console/Exception.php @@ -14,6 +14,4 @@ */ class Exception extends \Phalcon\Application\Exception { - - } diff --git a/src/Cli/Dispatcher.php b/src/Cli/Dispatcher.php index d13eee23..de1e7333 100644 --- a/src/Cli/Dispatcher.php +++ b/src/Cli/Dispatcher.php @@ -38,7 +38,6 @@ */ class Dispatcher extends \Phalcon\Dispatcher\AbstractDispatcher implements \Phalcon\Cli\DispatcherInterface { - protected $defaultHandler = 'main'; /** diff --git a/src/Cli/Dispatcher/Exception.php b/src/Cli/Dispatcher/Exception.php index c69ca0f1..6b0516fc 100644 --- a/src/Cli/Dispatcher/Exception.php +++ b/src/Cli/Dispatcher/Exception.php @@ -14,6 +14,4 @@ */ class Exception extends \Phalcon\Dispatcher\Exception { - - } diff --git a/src/Cli/DispatcherInterface.php b/src/Cli/DispatcherInterface.php index 42840d3c..a53c658e 100644 --- a/src/Cli/DispatcherInterface.php +++ b/src/Cli/DispatcherInterface.php @@ -16,8 +16,6 @@ */ interface DispatcherInterface extends DispatcherInterfaceBase { - - /** * Returns the active task in the dispatcher * diff --git a/src/Cli/Router.php b/src/Cli/Router.php index 22189344..cf60aaf7 100644 --- a/src/Cli/Router.php +++ b/src/Cli/Router.php @@ -37,7 +37,6 @@ */ class Router extends AbstractInjectionAware { - /** * @var string|null */ @@ -135,9 +134,9 @@ public function getActionName(): string /** * Returns the route that matches the handled URI * - * @return RouteInterface + * @return RouteInterface|null */ - public function getMatchedRoute(): RouteInterface + public function getMatchedRoute(): ?RouteInterface { } diff --git a/src/Cli/Router/Exception.php b/src/Cli/Router/Exception.php index 0eca2fcb..9f1ee8e0 100644 --- a/src/Cli/Router/Exception.php +++ b/src/Cli/Router/Exception.php @@ -14,6 +14,4 @@ */ class Exception extends \Exception { - - } diff --git a/src/Cli/Router/RouteInterface.php b/src/Cli/Router/RouteInterface.php index 3aea2d21..cdfe2c9a 100644 --- a/src/Cli/Router/RouteInterface.php +++ b/src/Cli/Router/RouteInterface.php @@ -14,8 +14,6 @@ */ interface RouteInterface { - - /** * Replaces placeholders from pattern returning a valid PCRE regular * expression diff --git a/src/Cli/RouterInterface.php b/src/Cli/RouterInterface.php index efcba3b5..1187996b 100644 --- a/src/Cli/RouterInterface.php +++ b/src/Cli/RouterInterface.php @@ -16,8 +16,6 @@ */ interface RouterInterface { - - /** * Adds a route to the router on any HTTP method * @@ -37,9 +35,9 @@ public function getActionName(): string; /** * Returns the route that matches the handled URI * - * @return RouteInterface + * @return RouteInterface|null */ - public function getMatchedRoute(): RouteInterface; + public function getMatchedRoute(): ?RouteInterface; /** * Return the sub expressions in the regular expression matched diff --git a/src/Cli/Task.php b/src/Cli/Task.php index 2bd6ba4b..96885d53 100644 --- a/src/Cli/Task.php +++ b/src/Cli/Task.php @@ -39,7 +39,6 @@ */ class Task extends Injectable implements \Phalcon\Cli\TaskInterface, \Phalcon\Events\EventsAwareInterface { - /** * @var ManagerInterface */ diff --git a/src/Cli/TaskInterface.php b/src/Cli/TaskInterface.php index 85fd522f..41d8f6dd 100644 --- a/src/Cli/TaskInterface.php +++ b/src/Cli/TaskInterface.php @@ -14,6 +14,4 @@ */ interface TaskInterface { - - } diff --git a/src/Config/Adapter/Grouped.php b/src/Config/Adapter/Grouped.php index 8d25daac..4638e0b6 100644 --- a/src/Config/Adapter/Grouped.php +++ b/src/Config/Adapter/Grouped.php @@ -68,8 +68,6 @@ */ class Grouped extends Config { - - /** * Phalcon\Config\Adapter\Grouped constructor * diff --git a/src/Config/Adapter/Ini.php b/src/Config/Adapter/Ini.php index b7e3fc82..846bbe9c 100644 --- a/src/Config/Adapter/Ini.php +++ b/src/Config/Adapter/Ini.php @@ -57,8 +57,6 @@ */ class Ini extends Config { - - /** * Ini constructor. * diff --git a/src/Config/Adapter/Json.php b/src/Config/Adapter/Json.php index 1c2321b7..a06d5804 100644 --- a/src/Config/Adapter/Json.php +++ b/src/Config/Adapter/Json.php @@ -34,8 +34,6 @@ */ class Json extends Config { - - /** * Phalcon\Config\Adapter\Json constructor * diff --git a/src/Config/Adapter/Php.php b/src/Config/Adapter/Php.php index 8e721bab..95ccf762 100644 --- a/src/Config/Adapter/Php.php +++ b/src/Config/Adapter/Php.php @@ -48,8 +48,6 @@ */ class Php extends Config { - - /** * Phalcon\Config\Adapter\Php constructor * diff --git a/src/Config/Adapter/Yaml.php b/src/Config/Adapter/Yaml.php index 45161b27..ab410e43 100644 --- a/src/Config/Adapter/Yaml.php +++ b/src/Config/Adapter/Yaml.php @@ -51,8 +51,6 @@ */ class Yaml extends Config { - - /** * Phalcon\Config\Adapter\Yaml constructor * diff --git a/src/Config/ConfigFactory.php b/src/Config/ConfigFactory.php index 1f54fd30..64896eff 100644 --- a/src/Config/ConfigFactory.php +++ b/src/Config/ConfigFactory.php @@ -30,8 +30,6 @@ */ class ConfigFactory extends AbstractFactory { - - /** * ConfigFactory constructor. * diff --git a/src/Config/ConfigInterface.php b/src/Config/ConfigInterface.php index d9482a81..9445c4d1 100644 --- a/src/Config/ConfigInterface.php +++ b/src/Config/ConfigInterface.php @@ -18,8 +18,6 @@ */ interface ConfigInterface extends \Phalcon\Support\Collection\CollectionInterface { - - /** * @return string */ diff --git a/src/Config/Exception.php b/src/Config/Exception.php index 7537265c..4cf841e3 100644 --- a/src/Config/Exception.php +++ b/src/Config/Exception.php @@ -14,6 +14,4 @@ */ class Exception extends \Exception { - - } diff --git a/src/DataMapper/Pdo/Connection.php b/src/DataMapper/Pdo/Connection.php index ae61668f..646881ef 100644 --- a/src/DataMapper/Pdo/Connection.php +++ b/src/DataMapper/Pdo/Connection.php @@ -24,7 +24,6 @@ */ class Connection extends AbstractConnection { - /** * @var array */ diff --git a/src/DataMapper/Pdo/Connection/AbstractConnection.php b/src/DataMapper/Pdo/Connection/AbstractConnection.php index 64b2adab..7f39ab9e 100644 --- a/src/DataMapper/Pdo/Connection/AbstractConnection.php +++ b/src/DataMapper/Pdo/Connection/AbstractConnection.php @@ -22,7 +22,6 @@ */ abstract class AbstractConnection implements \Phalcon\DataMapper\Pdo\Connection\ConnectionInterface { - /** * @var \PDO */ diff --git a/src/DataMapper/Pdo/Connection/ConnectionInterface.php b/src/DataMapper/Pdo/Connection/ConnectionInterface.php index c3c44a53..cb346682 100644 --- a/src/DataMapper/Pdo/Connection/ConnectionInterface.php +++ b/src/DataMapper/Pdo/Connection/ConnectionInterface.php @@ -24,8 +24,6 @@ */ interface ConnectionInterface extends \Phalcon\DataMapper\Pdo\Connection\PdoInterface { - - /** * Connects to the database. * diff --git a/src/DataMapper/Pdo/Connection/Decorated.php b/src/DataMapper/Pdo/Connection/Decorated.php index 5ee471b8..02eb003c 100644 --- a/src/DataMapper/Pdo/Connection/Decorated.php +++ b/src/DataMapper/Pdo/Connection/Decorated.php @@ -18,8 +18,6 @@ */ class Decorated extends \Phalcon\DataMapper\Pdo\Connection\AbstractConnection { - - /** * * Constructor. diff --git a/src/DataMapper/Pdo/Connection/PdoInterface.php b/src/DataMapper/Pdo/Connection/PdoInterface.php index a5ca7983..14b42be3 100644 --- a/src/DataMapper/Pdo/Connection/PdoInterface.php +++ b/src/DataMapper/Pdo/Connection/PdoInterface.php @@ -14,8 +14,6 @@ */ interface PdoInterface { - - /** * Begins a transaction. If the profiler is enabled, the operation will * be recorded. diff --git a/src/DataMapper/Pdo/ConnectionLocator.php b/src/DataMapper/Pdo/ConnectionLocator.php index 91432098..690b14ea 100644 --- a/src/DataMapper/Pdo/ConnectionLocator.php +++ b/src/DataMapper/Pdo/ConnectionLocator.php @@ -21,7 +21,6 @@ */ class ConnectionLocator implements \Phalcon\DataMapper\Pdo\ConnectionLocatorInterface { - /** * A default Connection connection factory/instance. * diff --git a/src/DataMapper/Pdo/ConnectionLocatorInterface.php b/src/DataMapper/Pdo/ConnectionLocatorInterface.php index 86a3aa03..60bb6f4a 100644 --- a/src/DataMapper/Pdo/ConnectionLocatorInterface.php +++ b/src/DataMapper/Pdo/ConnectionLocatorInterface.php @@ -16,8 +16,6 @@ */ interface ConnectionLocatorInterface { - - /** * Returns the default connection object. * diff --git a/src/DataMapper/Pdo/Exception/CannotDisconnect.php b/src/DataMapper/Pdo/Exception/CannotDisconnect.php index ee219064..da2c16a2 100644 --- a/src/DataMapper/Pdo/Exception/CannotDisconnect.php +++ b/src/DataMapper/Pdo/Exception/CannotDisconnect.php @@ -15,6 +15,4 @@ */ class CannotDisconnect extends \Phalcon\DataMapper\Pdo\Exception\Exception { - - } diff --git a/src/DataMapper/Pdo/Exception/ConnectionNotFound.php b/src/DataMapper/Pdo/Exception/ConnectionNotFound.php index b7233934..b0e25934 100644 --- a/src/DataMapper/Pdo/Exception/ConnectionNotFound.php +++ b/src/DataMapper/Pdo/Exception/ConnectionNotFound.php @@ -14,6 +14,4 @@ */ class ConnectionNotFound extends \Phalcon\DataMapper\Pdo\Exception\Exception { - - } diff --git a/src/DataMapper/Pdo/Exception/Exception.php b/src/DataMapper/Pdo/Exception/Exception.php index 08c63feb..8994cb20 100644 --- a/src/DataMapper/Pdo/Exception/Exception.php +++ b/src/DataMapper/Pdo/Exception/Exception.php @@ -14,6 +14,4 @@ */ class Exception extends \Exception { - - } diff --git a/src/DataMapper/Pdo/Profiler/MemoryLogger.php b/src/DataMapper/Pdo/Profiler/MemoryLogger.php index 242b7bc9..b8cb36a2 100644 --- a/src/DataMapper/Pdo/Profiler/MemoryLogger.php +++ b/src/DataMapper/Pdo/Profiler/MemoryLogger.php @@ -21,7 +21,6 @@ */ class MemoryLogger implements \Phalcon\Logger\LoggerInterface { - /** * @var array */ diff --git a/src/DataMapper/Pdo/Profiler/Profiler.php b/src/DataMapper/Pdo/Profiler/Profiler.php index a2ac777c..43c89715 100644 --- a/src/DataMapper/Pdo/Profiler/Profiler.php +++ b/src/DataMapper/Pdo/Profiler/Profiler.php @@ -25,7 +25,6 @@ */ class Profiler implements \Phalcon\DataMapper\Pdo\Profiler\ProfilerInterface { - /** * @var bool */ diff --git a/src/DataMapper/Pdo/Profiler/ProfilerInterface.php b/src/DataMapper/Pdo/Profiler/ProfilerInterface.php index b634a1c6..1247b52d 100644 --- a/src/DataMapper/Pdo/Profiler/ProfilerInterface.php +++ b/src/DataMapper/Pdo/Profiler/ProfilerInterface.php @@ -16,8 +16,6 @@ */ interface ProfilerInterface { - - /** * Finishes and logs a profile entry. * diff --git a/src/DataMapper/Query/AbstractConditions.php b/src/DataMapper/Query/AbstractConditions.php index cb60d987..90b8d3fd 100644 --- a/src/DataMapper/Query/AbstractConditions.php +++ b/src/DataMapper/Query/AbstractConditions.php @@ -14,8 +14,6 @@ */ abstract class AbstractConditions extends \Phalcon\DataMapper\Query\AbstractQuery { - - /** * Sets the `LIMIT` clause * diff --git a/src/DataMapper/Query/AbstractQuery.php b/src/DataMapper/Query/AbstractQuery.php index b8e4bd0e..712ba4ec 100644 --- a/src/DataMapper/Query/AbstractQuery.php +++ b/src/DataMapper/Query/AbstractQuery.php @@ -20,7 +20,6 @@ */ abstract class AbstractQuery { - /** * @var Bind */ diff --git a/src/DataMapper/Query/Bind.php b/src/DataMapper/Query/Bind.php index a857b391..6b681ea0 100644 --- a/src/DataMapper/Query/Bind.php +++ b/src/DataMapper/Query/Bind.php @@ -17,7 +17,6 @@ */ class Bind { - /** * @var int */ diff --git a/src/DataMapper/Query/Delete.php b/src/DataMapper/Query/Delete.php index b94c77db..4f74348d 100644 --- a/src/DataMapper/Query/Delete.php +++ b/src/DataMapper/Query/Delete.php @@ -26,8 +26,6 @@ */ class Delete extends \Phalcon\DataMapper\Query\AbstractConditions { - - /** * Delete constructor. * diff --git a/src/DataMapper/Query/Insert.php b/src/DataMapper/Query/Insert.php index d76f8f9e..56f1e831 100644 --- a/src/DataMapper/Query/Insert.php +++ b/src/DataMapper/Query/Insert.php @@ -16,8 +16,6 @@ */ class Insert extends \Phalcon\DataMapper\Query\AbstractQuery { - - /** * Insert constructor. * diff --git a/src/DataMapper/Query/QueryFactory.php b/src/DataMapper/Query/QueryFactory.php index 2af7bf74..39f15086 100644 --- a/src/DataMapper/Query/QueryFactory.php +++ b/src/DataMapper/Query/QueryFactory.php @@ -18,7 +18,6 @@ */ class QueryFactory { - /** * @var string */ diff --git a/src/DataMapper/Query/Update.php b/src/DataMapper/Query/Update.php index a3af4d7f..c2b50a74 100644 --- a/src/DataMapper/Query/Update.php +++ b/src/DataMapper/Query/Update.php @@ -16,8 +16,6 @@ */ class Update extends \Phalcon\DataMapper\Query\AbstractConditions { - - /** * Update constructor. * diff --git a/src/Db/AbstractDb.php b/src/Db/AbstractDb.php index 121a2fdb..bc32871c 100644 --- a/src/Db/AbstractDb.php +++ b/src/Db/AbstractDb.php @@ -9,7 +9,7 @@ */ namespace Phalcon\Db; -use \PDO as Pdo; +use PDO as Pdo; /** * Phalcon\Db and its related classes provide a simple SQL database interface @@ -56,8 +56,6 @@ */ abstract class AbstractDb { - - /** * Enables/disables options in the Database component * diff --git a/src/Db/Adapter/AbstractAdapter.php b/src/Db/Adapter/AbstractAdapter.php index a7d7eb14..46a2ab92 100644 --- a/src/Db/Adapter/AbstractAdapter.php +++ b/src/Db/Adapter/AbstractAdapter.php @@ -26,7 +26,6 @@ */ abstract class AbstractAdapter implements \Phalcon\Db\Adapter\AdapterInterface, \Phalcon\Events\EventsAwareInterface { - /** * Connection ID * @@ -118,24 +117,6 @@ abstract class AbstractAdapter implements \Phalcon\Db\Adapter\AdapterInterface, */ protected $type; - /** - * Name of the dialect used - * - * @return string - */ - public function getDialectType(): string - { - } - - /** - * Type of database system the adapter is used for - * - * @return string - */ - public function getType(): string - { - } - /** * Phalcon\Db\Adapter constructor * @@ -586,6 +567,15 @@ public function getDialect(): DialectInterface { } + /** + * Name of the dialect used + * + * @return string + */ + public function getDialectType(): string + { + } + /** * Returns the internal event manager * @@ -640,6 +630,15 @@ public function getSQLVariables(): array { } + /** + * Type of database system the adapter is used for + * + * @return string + */ + public function getType(): string + { + } + /** * Inserts data into a table using custom RDBMS SQL syntax * diff --git a/src/Db/Adapter/AdapterInterface.php b/src/Db/Adapter/AdapterInterface.php index 9da34bf0..5441886f 100644 --- a/src/Db/Adapter/AdapterInterface.php +++ b/src/Db/Adapter/AdapterInterface.php @@ -21,8 +21,6 @@ */ interface AdapterInterface { - - /** * Adds a column to a table * diff --git a/src/Db/Adapter/Pdo/AbstractPdo.php b/src/Db/Adapter/Pdo/AbstractPdo.php index aa1aa27e..c89ae7b5 100644 --- a/src/Db/Adapter/Pdo/AbstractPdo.php +++ b/src/Db/Adapter/Pdo/AbstractPdo.php @@ -36,7 +36,6 @@ */ abstract class AbstractPdo extends AbstractAdapter { - /** * Last affected rows * diff --git a/src/Db/Adapter/Pdo/Mysql.php b/src/Db/Adapter/Pdo/Mysql.php index 52b4d759..1b25259a 100644 --- a/src/Db/Adapter/Pdo/Mysql.php +++ b/src/Db/Adapter/Pdo/Mysql.php @@ -38,7 +38,6 @@ */ class Mysql extends \Phalcon\Db\Adapter\Pdo\AbstractPdo { - /** * @var string */ diff --git a/src/Db/Adapter/Pdo/Postgresql.php b/src/Db/Adapter/Pdo/Postgresql.php index 70de3da9..df497c22 100644 --- a/src/Db/Adapter/Pdo/Postgresql.php +++ b/src/Db/Adapter/Pdo/Postgresql.php @@ -38,7 +38,6 @@ */ class Postgresql extends \Phalcon\Db\Adapter\Pdo\AbstractPdo { - /** * @var string */ diff --git a/src/Db/Adapter/Pdo/Sqlite.php b/src/Db/Adapter/Pdo/Sqlite.php index 070e8fe4..4f5e826b 100644 --- a/src/Db/Adapter/Pdo/Sqlite.php +++ b/src/Db/Adapter/Pdo/Sqlite.php @@ -35,7 +35,6 @@ */ class Sqlite extends \Phalcon\Db\Adapter\Pdo\AbstractPdo { - /** * @var string */ diff --git a/src/Db/Adapter/PdoFactory.php b/src/Db/Adapter/PdoFactory.php index dd3f6fd4..08b391a0 100644 --- a/src/Db/Adapter/PdoFactory.php +++ b/src/Db/Adapter/PdoFactory.php @@ -22,8 +22,6 @@ */ class PdoFactory extends AbstractFactory { - - /** * Constructor * diff --git a/src/Db/Column.php b/src/Db/Column.php index 438f3f85..d6ae2eae 100644 --- a/src/Db/Column.php +++ b/src/Db/Column.php @@ -236,12 +236,19 @@ class Column implements \Phalcon\Db\ColumnInterface */ protected $bindType = 2; + /** + * Column's comment + * + * @var string|null + */ + protected $comment = null; + /** * Default column value * * @var mixed|null */ - protected $_default = null; + protected $defaultValue = null; /** * Position is first @@ -264,13 +271,6 @@ class Column implements \Phalcon\Db\ColumnInterface */ protected $name; - /** - * Column's comment - * - * @var string|null - */ - protected $comment = null; - /** * Column not nullable? * @@ -330,102 +330,102 @@ class Column implements \Phalcon\Db\ColumnInterface protected $unsigned = false; /** - * Default column value + * Phalcon\Db\Column constructor * - * @return mixed|null + * @param string $name + * @param array $definition */ - public function getDefault() + public function __construct(string $name, array $definition) { } /** - * Column's name + * Check whether field absolute to position in table * - * @return string + * @return string|null */ - public function getName(): string + public function getAfterPosition(): ?string { } /** - * Column's comment + * Returns the type of bind handling * - * @return string|null + * @return int */ - public function getComment(): ?string + public function getBindType(): int { } /** - * Integer column number scale + * Column's comment * - * @return int + * @return string|null */ - public function getScale(): int + public function getComment(): ?string { } /** - * Integer column size + * Default column value * - * @return int|string + * @return mixed */ - public function getSize() + public function getDefault() { } /** - * Column data type + * Column's name * - * @return int + * @return string */ - public function getType(): int + public function getName(): string { } /** - * Column data type reference + * Integer column number scale * * @return int */ - public function getTypeReference(): int + public function getScale(): int { } /** - * Column data type values + * Integer column size * - * @return array|string + * @return int|string */ - public function getTypeValues() + public function getSize() { } /** - * Phalcon\Db\Column constructor + * Column data type * - * @param string $name - * @param array $definition + * @return int */ - public function __construct(string $name, array $definition) + public function getType(): int { } /** - * Check whether field absolute to position in table + * Column data type reference * - * @return string|null + * @return int */ - public function getAfterPosition(): ?string + public function getTypeReference(): int { } /** - * Returns the type of bind handling + * Column data type values * - * @return int + * @return array|string */ - public function getBindType(): int + public function getTypeValues() { } diff --git a/src/Db/ColumnInterface.php b/src/Db/ColumnInterface.php index b0cd3ecb..105a05aa 100644 --- a/src/Db/ColumnInterface.php +++ b/src/Db/ColumnInterface.php @@ -14,8 +14,6 @@ */ interface ColumnInterface { - - /** * Check whether field absolute to position in table * diff --git a/src/Db/Dialect.php b/src/Db/Dialect.php index 362b095f..2cfba1a8 100644 --- a/src/Db/Dialect.php +++ b/src/Db/Dialect.php @@ -15,7 +15,6 @@ */ abstract class Dialect implements \Phalcon\Db\DialectInterface { - /** * @var string */ diff --git a/src/Db/Dialect/Mysql.php b/src/Db/Dialect/Mysql.php index 03d0f107..abc53bb4 100644 --- a/src/Db/Dialect/Mysql.php +++ b/src/Db/Dialect/Mysql.php @@ -22,7 +22,6 @@ */ class Mysql extends Dialect { - /** * @var string */ diff --git a/src/Db/Dialect/Postgresql.php b/src/Db/Dialect/Postgresql.php index 9835295b..a3829440 100644 --- a/src/Db/Dialect/Postgresql.php +++ b/src/Db/Dialect/Postgresql.php @@ -22,7 +22,6 @@ */ class Postgresql extends Dialect { - /** * @var string */ diff --git a/src/Db/Dialect/Sqlite.php b/src/Db/Dialect/Sqlite.php index b80ae7c2..b9d6dbc3 100644 --- a/src/Db/Dialect/Sqlite.php +++ b/src/Db/Dialect/Sqlite.php @@ -22,7 +22,6 @@ */ class Sqlite extends Dialect { - /** * @var string */ diff --git a/src/Db/DialectInterface.php b/src/Db/DialectInterface.php index 1509c782..3bf821df 100644 --- a/src/Db/DialectInterface.php +++ b/src/Db/DialectInterface.php @@ -14,8 +14,6 @@ */ interface DialectInterface { - - /** * Generates SQL to add a column to a table * diff --git a/src/Db/Exception.php b/src/Db/Exception.php index c6bea851..f3795cd1 100644 --- a/src/Db/Exception.php +++ b/src/Db/Exception.php @@ -14,6 +14,4 @@ */ class Exception extends \Exception { - - } diff --git a/src/Db/Index.php b/src/Db/Index.php index f43ac4a6..3ef9f00e 100644 --- a/src/Db/Index.php +++ b/src/Db/Index.php @@ -40,7 +40,6 @@ */ class Index implements \Phalcon\Db\IndexInterface { - /** * Index columns * @@ -62,6 +61,17 @@ class Index implements \Phalcon\Db\IndexInterface */ protected $type; + /** + * Phalcon\Db\Index constructor + * + * @param string $name + * @param array $columns + * @param string $type + */ + public function __construct(string $name, array $columns, string $type = '') + { + } + /** * Index columns * @@ -88,15 +98,4 @@ public function getName(): string public function getType(): string { } - - /** - * Phalcon\Db\Index constructor - * - * @param string $name - * @param array $columns - * @param string $type - */ - public function __construct(string $name, array $columns, string $type = '') - { - } } diff --git a/src/Db/IndexInterface.php b/src/Db/IndexInterface.php index 943e0291..1fab9678 100644 --- a/src/Db/IndexInterface.php +++ b/src/Db/IndexInterface.php @@ -14,8 +14,6 @@ */ interface IndexInterface { - - /** * Gets the columns that corresponds the index * diff --git a/src/Db/Profiler.php b/src/Db/Profiler.php index 313ed717..2ee177fd 100644 --- a/src/Db/Profiler.php +++ b/src/Db/Profiler.php @@ -63,7 +63,6 @@ */ class Profiler { - /** * Active Item * diff --git a/src/Db/Profiler/Item.php b/src/Db/Profiler/Item.php index ae93c2eb..a19f00e2 100644 --- a/src/Db/Profiler/Item.php +++ b/src/Db/Profiler/Item.php @@ -14,7 +14,6 @@ */ class Item { - /** * Timestamp when the profile ended * @@ -51,101 +50,106 @@ class Item protected $sqlVariables; /** - * Timestamp when the profile ended + * Return the timestamp when the profile ended * - * @param double $finalTime + * @return float */ - public function setFinalTime(float $finalTime) + public function getFinalTime(): float { } /** - * Timestamp when the profile ended + * Return the timestamp when the profile started * * @return float */ - public function getFinalTime(): float + public function getInitialTime(): float { } /** - * Timestamp when the profile started + * Return the SQL bind types related to the profile * - * @param double $initialTime + * @return array */ - public function setInitialTime(float $initialTime) + public function getSqlBindTypes(): array { } /** - * Timestamp when the profile started + * Return the SQL statement related to the profile * - * @return float + * @return string */ - public function getInitialTime(): float + public function getSqlStatement(): string { } /** - * SQL bind types related to the profile + * Return the SQL variables related to the profile * - * @param array $sqlBindTypes + * @return array */ - public function setSqlBindTypes(array $sqlBindTypes) + public function getSqlVariables(): array { } /** - * SQL bind types related to the profile + * Returns the total time in seconds spent by the profile * - * @return array + * @return float */ - public function getSqlBindTypes(): array + public function getTotalElapsedSeconds(): float { } /** - * SQL statement related to the profile + * Return the timestamp when the profile ended * - * @param string $sqlStatement + * @param double $finalTime + * @return Item */ - public function setSqlStatement(string $sqlStatement) + public function setFinalTime(float $finalTime): Item { } /** - * SQL statement related to the profile + * Return the timestamp when the profile started * - * @return string + * @param double $initialTime + * @return Item */ - public function getSqlStatement(): string + public function setInitialTime(float $initialTime): Item { } /** - * SQL variables related to the profile + * Return the SQL bind types related to the profile * - * @param array $sqlVariables + * @param array $sqlBindTypes + * @return Item */ - public function setSqlVariables(array $sqlVariables) + public function setSqlBindTypes(array $sqlBindTypes): Item { } /** - * SQL variables related to the profile + * Return the SQL statement related to the profile * - * @return array + * @param string $sqlStatement + * @return Item */ - public function getSqlVariables(): array + public function setSqlStatement(string $sqlStatement): Item { } /** - * Returns the total time in seconds spent by the profile + * Return the SQL variables related to the profile * - * @return float + * @param array $sqlVariables + * @return Item */ - public function getTotalElapsedSeconds(): float + public function setSqlVariables(array $sqlVariables): Item { } } diff --git a/src/Db/RawValue.php b/src/Db/RawValue.php index 4f7f1336..cb01a6e5 100644 --- a/src/Db/RawValue.php +++ b/src/Db/RawValue.php @@ -25,7 +25,6 @@ */ class RawValue { - /** * Raw value without quoting or formatting * @@ -34,17 +33,15 @@ class RawValue protected $value; /** - * Raw value without quoting or formatting + * Phalcon\Db\RawValue constructor * - * @return string + * @param mixed $value */ - public function getValue(): string + public function __construct($value) { } /** - * Raw value without quoting or formatting - * * @return string */ public function __toString(): string @@ -52,11 +49,9 @@ public function __toString(): string } /** - * Phalcon\Db\RawValue constructor - * - * @param mixed $value + * @return string */ - public function __construct($value) + public function getValue(): string { } } diff --git a/src/Db/Reference.php b/src/Db/Reference.php index b0754678..b44787d7 100644 --- a/src/Db/Reference.php +++ b/src/Db/Reference.php @@ -32,7 +32,6 @@ */ class Reference implements \Phalcon\Db\ReferenceInterface { - /** * Local reference columns * @@ -89,6 +88,16 @@ class Reference implements \Phalcon\Db\ReferenceInterface */ protected $onUpdate; + /** + * Phalcon\Db\Reference constructor + * + * @param string $name + * @param array $definition + */ + public function __construct(string $name, array $definition) + { + } + /** * Local reference columns * @@ -160,14 +169,4 @@ public function getOnDelete(): string public function getOnUpdate(): string { } - - /** - * Phalcon\Db\Reference constructor - * - * @param string $name - * @param array $definition - */ - public function __construct(string $name, array $definition) - { - } } diff --git a/src/Db/ReferenceInterface.php b/src/Db/ReferenceInterface.php index df5c1b6e..f96555c2 100644 --- a/src/Db/ReferenceInterface.php +++ b/src/Db/ReferenceInterface.php @@ -14,8 +14,6 @@ */ interface ReferenceInterface { - - /** * Gets local columns which reference is based * diff --git a/src/Db/Result/PdoResult.php b/src/Db/Result/PdoResult.php index 15002c10..5e9ae23d 100644 --- a/src/Db/Result/PdoResult.php +++ b/src/Db/Result/PdoResult.php @@ -31,7 +31,6 @@ */ class PdoResult implements \Phalcon\Db\ResultInterface { - /** * @var array */ diff --git a/src/Db/ResultInterface.php b/src/Db/ResultInterface.php index 0ac4dd34..e080f615 100644 --- a/src/Db/ResultInterface.php +++ b/src/Db/ResultInterface.php @@ -14,8 +14,6 @@ */ interface ResultInterface { - - /** * Moves internal resultset cursor to another position letting us to fetch a * certain row diff --git a/src/Di/AbstractInjectionAware.php b/src/Di/AbstractInjectionAware.php index bb281f9f..46c19f07 100644 --- a/src/Di/AbstractInjectionAware.php +++ b/src/Di/AbstractInjectionAware.php @@ -14,7 +14,6 @@ */ abstract class AbstractInjectionAware implements \Phalcon\Di\InjectionAwareInterface { - /** * Dependency Injector * diff --git a/src/Di/Di.php b/src/Di/Di.php index f7aa556a..8e0f8265 100644 --- a/src/Di/Di.php +++ b/src/Di/Di.php @@ -62,7 +62,6 @@ */ class Di implements \Phalcon\Di\DiInterface { - /** * List of registered services * @@ -89,7 +88,7 @@ class Di implements \Phalcon\Di\DiInterface * * @var DiInterface|null */ - protected static $_default; + protected static $defaultDi; /** * Phalcon\Di\Di constructor diff --git a/src/Di/DiInterface.php b/src/Di/DiInterface.php index 39eac0dd..45848f56 100644 --- a/src/Di/DiInterface.php +++ b/src/Di/DiInterface.php @@ -16,8 +16,6 @@ */ interface DiInterface extends \ArrayAccess { - - /** * Attempts to register a service in the services container * Only is successful if a service hasn't been registered previously diff --git a/src/Di/Exception.php b/src/Di/Exception.php index 79d32b7e..e0bca701 100644 --- a/src/Di/Exception.php +++ b/src/Di/Exception.php @@ -14,6 +14,4 @@ */ class Exception extends \Exception { - - } diff --git a/src/Di/Exception/ServiceResolutionException.php b/src/Di/Exception/ServiceResolutionException.php index 69e17440..aceff70c 100644 --- a/src/Di/Exception/ServiceResolutionException.php +++ b/src/Di/Exception/ServiceResolutionException.php @@ -14,6 +14,4 @@ */ class ServiceResolutionException extends \Phalcon\Di\Exception { - - } diff --git a/src/Di/FactoryDefault.php b/src/Di/FactoryDefault.php index a25106d6..2a1b5f18 100644 --- a/src/Di/FactoryDefault.php +++ b/src/Di/FactoryDefault.php @@ -19,8 +19,6 @@ */ class FactoryDefault extends \Phalcon\Di\Di { - - /** * Phalcon\Di\FactoryDefault constructor */ diff --git a/src/Di/FactoryDefault/Cli.php b/src/Di/FactoryDefault/Cli.php index d73bfe38..2e5462b2 100644 --- a/src/Di/FactoryDefault/Cli.php +++ b/src/Di/FactoryDefault/Cli.php @@ -23,8 +23,6 @@ */ class Cli extends FactoryDefault { - - /** * Phalcon\Di\FactoryDefault\Cli constructor */ diff --git a/src/Di/InitializationAwareInterface.php b/src/Di/InitializationAwareInterface.php index b544cc64..32af76ee 100644 --- a/src/Di/InitializationAwareInterface.php +++ b/src/Di/InitializationAwareInterface.php @@ -9,10 +9,16 @@ */ namespace Phalcon\Di; +/** + * 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. + */ interface InitializationAwareInterface { - - /** * @return void */ diff --git a/src/Di/Injectable.php b/src/Di/Injectable.php index 7eba2baa..6b982807 100644 --- a/src/Di/Injectable.php +++ b/src/Di/Injectable.php @@ -30,7 +30,7 @@ * @property \Phalcon\Db\Adapter\AdapterInterface $db * @property \Phalcon\Encryption\Security $security * @property \Phalcon\Encryption\Crypt|\Phalcon\Encryption\Crypt\CryptInterface $crypt - * @property \Phalcon\Tag $tag + * @property \Phalcon\Html\TagFactory $tag * @property \Phalcon\Html\Escaper|\Phalcon\Html\Escaper\EscaperInterface $escaper * @property \Phalcon\Annotations\Adapter\Memory|\Phalcon\Annotations\Adapter $annotations * @property \Phalcon\Mvc\Model\Manager|\Phalcon\Mvc\Model\ManagerInterface $modelsManager @@ -43,7 +43,6 @@ */ abstract class Injectable implements \Phalcon\Di\InjectionAwareInterface { - /** * Dependency Injector * diff --git a/src/Di/InjectionAwareInterface.php b/src/Di/InjectionAwareInterface.php index 4d272be5..b2d1a8d3 100644 --- a/src/Di/InjectionAwareInterface.php +++ b/src/Di/InjectionAwareInterface.php @@ -15,8 +15,6 @@ */ interface InjectionAwareInterface { - - /** * Sets the dependency injector * diff --git a/src/Di/Service.php b/src/Di/Service.php index d22299f3..2c38e312 100644 --- a/src/Di/Service.php +++ b/src/Di/Service.php @@ -27,7 +27,6 @@ */ class Service implements \Phalcon\Di\ServiceInterface { - /** * @var mixed */ diff --git a/src/Di/Service/Builder.php b/src/Di/Service/Builder.php index 80f55f46..98c639e8 100644 --- a/src/Di/Service/Builder.php +++ b/src/Di/Service/Builder.php @@ -19,8 +19,6 @@ */ class Builder { - - /** * Builds a service using a complex service definition * diff --git a/src/Di/ServiceInterface.php b/src/Di/ServiceInterface.php index c65b638d..7d6db4dc 100644 --- a/src/Di/ServiceInterface.php +++ b/src/Di/ServiceInterface.php @@ -14,8 +14,6 @@ */ interface ServiceInterface { - - /** * Returns the service definition * diff --git a/src/Di/ServiceProviderInterface.php b/src/Di/ServiceProviderInterface.php index f3edf091..8d59bf14 100644 --- a/src/Di/ServiceProviderInterface.php +++ b/src/Di/ServiceProviderInterface.php @@ -35,8 +35,6 @@ */ interface ServiceProviderInterface { - - /** * Registers a service provider. * diff --git a/src/Dispatcher/AbstractDispatcher.php b/src/Dispatcher/AbstractDispatcher.php index c88dfaa1..c142d6aa 100644 --- a/src/Dispatcher/AbstractDispatcher.php +++ b/src/Dispatcher/AbstractDispatcher.php @@ -26,7 +26,6 @@ */ abstract class AbstractDispatcher extends AbstractInjectionAware implements \Phalcon\Dispatcher\DispatcherInterface, \Phalcon\Events\EventsAwareInterface { - /** * @var object|null */ @@ -281,9 +280,9 @@ public function getModelBinder(): ?BinderInterface /** * Gets the module where the controller class is * - * @return string + * @return string|null */ - public function getModuleName(): string + public function getModuleName(): ?string { } @@ -470,7 +469,7 @@ public function setModelBinder(\Phalcon\Mvc\Model\BinderInterface $modelBinder, * @param string $moduleName * @return void */ - public function setModuleName(string $moduleName): void + public function setModuleName(string $moduleName = null): void { } diff --git a/src/Dispatcher/DispatcherInterface.php b/src/Dispatcher/DispatcherInterface.php index 44a04855..bdfbb0eb 100644 --- a/src/Dispatcher/DispatcherInterface.php +++ b/src/Dispatcher/DispatcherInterface.php @@ -14,8 +14,6 @@ */ interface DispatcherInterface { - - /** * Dispatches a handle action taking into account the routing parameters * @@ -137,7 +135,7 @@ public function setHandlerSuffix(string $handlerSuffix): void; * @param string $moduleName * @return void */ - public function setModuleName(string $moduleName): void; + public function setModuleName(string $moduleName = null): void; /** * Sets the namespace which the controller belongs to diff --git a/src/Domain/Payload/Payload.php b/src/Domain/Payload/Payload.php index c3c7fa6c..589c7c6f 100644 --- a/src/Domain/Payload/Payload.php +++ b/src/Domain/Payload/Payload.php @@ -16,7 +16,6 @@ */ class Payload implements \Phalcon\Domain\Payload\PayloadInterface { - /** * Exception if any * @@ -59,6 +58,15 @@ class Payload implements \Phalcon\Domain\Payload\PayloadInterface */ protected $output; + /** + * Gets the potential exception thrown in the domain layer + * + * @return Throwable|null + */ + public function getException(): ?Throwable + { + } + /** * Extra information * @@ -104,15 +112,6 @@ public function getOutput() { } - /** - * Gets the potential exception thrown in the domain layer - * - * @return Throwable|null - */ - public function getException(): ?Throwable - { - } - /** * Sets an exception thrown in the domain * diff --git a/src/Domain/Payload/PayloadFactory.php b/src/Domain/Payload/PayloadFactory.php index dba30508..247ba2ae 100644 --- a/src/Domain/Payload/PayloadFactory.php +++ b/src/Domain/Payload/PayloadFactory.php @@ -14,8 +14,6 @@ */ class PayloadFactory { - - /** * Instantiate a new object * diff --git a/src/Domain/Payload/PayloadInterface.php b/src/Domain/Payload/PayloadInterface.php index 05f8ec7b..8139bc2d 100644 --- a/src/Domain/Payload/PayloadInterface.php +++ b/src/Domain/Payload/PayloadInterface.php @@ -14,6 +14,4 @@ */ interface PayloadInterface extends \Phalcon\Domain\Payload\ReadableInterface, \Phalcon\Domain\Payload\WriteableInterface { - - } diff --git a/src/Domain/Payload/ReadableInterface.php b/src/Domain/Payload/ReadableInterface.php index 18903c89..7521e149 100644 --- a/src/Domain/Payload/ReadableInterface.php +++ b/src/Domain/Payload/ReadableInterface.php @@ -16,8 +16,6 @@ */ interface ReadableInterface { - - /** * Gets the potential exception thrown in the domain layer * diff --git a/src/Domain/Payload/WriteableInterface.php b/src/Domain/Payload/WriteableInterface.php index fb7f3f00..0261a11e 100644 --- a/src/Domain/Payload/WriteableInterface.php +++ b/src/Domain/Payload/WriteableInterface.php @@ -16,8 +16,6 @@ */ interface WriteableInterface { - - /** * Sets an exception produced by the domain layer. * diff --git a/src/Encryption/Crypt/CryptInterface.php b/src/Encryption/Crypt/CryptInterface.php index 1848400e..beddc4fa 100644 --- a/src/Encryption/Crypt/CryptInterface.php +++ b/src/Encryption/Crypt/CryptInterface.php @@ -14,8 +14,6 @@ */ interface CryptInterface { - - /** * Decrypts a text * diff --git a/src/Encryption/Crypt/Exception/Exception.php b/src/Encryption/Crypt/Exception/Exception.php index 903e730b..9544e6e4 100644 --- a/src/Encryption/Crypt/Exception/Exception.php +++ b/src/Encryption/Crypt/Exception/Exception.php @@ -14,6 +14,4 @@ */ class Exception extends \Exception { - - } diff --git a/src/Encryption/Crypt/Exception/Mismatch.php b/src/Encryption/Crypt/Exception/Mismatch.php index 0045893f..98f71f86 100644 --- a/src/Encryption/Crypt/Exception/Mismatch.php +++ b/src/Encryption/Crypt/Exception/Mismatch.php @@ -14,6 +14,4 @@ */ class Mismatch extends \Phalcon\Encryption\Crypt\Exception\Exception { - - } diff --git a/src/Encryption/Crypt/PadFactory.php b/src/Encryption/Crypt/PadFactory.php index 0b15bb89..19a1e017 100644 --- a/src/Encryption/Crypt/PadFactory.php +++ b/src/Encryption/Crypt/PadFactory.php @@ -21,7 +21,6 @@ */ class PadFactory extends AbstractFactory { - /** * @var string */ diff --git a/src/Encryption/Crypt/Padding/Ansi.php b/src/Encryption/Crypt/Padding/Ansi.php index 70088300..43de11d6 100644 --- a/src/Encryption/Crypt/Padding/Ansi.php +++ b/src/Encryption/Crypt/Padding/Ansi.php @@ -16,8 +16,6 @@ */ class Ansi implements \Phalcon\Encryption\Crypt\Padding\PadInterface { - - /** * @param int $paddingSize * diff --git a/src/Encryption/Crypt/Padding/Iso10126.php b/src/Encryption/Crypt/Padding/Iso10126.php index 97688e44..5736ddb5 100644 --- a/src/Encryption/Crypt/Padding/Iso10126.php +++ b/src/Encryption/Crypt/Padding/Iso10126.php @@ -16,8 +16,6 @@ */ class Iso10126 implements \Phalcon\Encryption\Crypt\Padding\PadInterface { - - /** * @param string $input * @param int $blockSize diff --git a/src/Encryption/Crypt/Padding/IsoIek.php b/src/Encryption/Crypt/Padding/IsoIek.php index e39a3d89..dcdb16c7 100644 --- a/src/Encryption/Crypt/Padding/IsoIek.php +++ b/src/Encryption/Crypt/Padding/IsoIek.php @@ -16,8 +16,6 @@ */ class IsoIek implements \Phalcon\Encryption\Crypt\Padding\PadInterface { - - /** * @param int $paddingSize * diff --git a/src/Encryption/Crypt/Padding/Noop.php b/src/Encryption/Crypt/Padding/Noop.php index 43f6783f..9001c9d9 100644 --- a/src/Encryption/Crypt/Padding/Noop.php +++ b/src/Encryption/Crypt/Padding/Noop.php @@ -16,8 +16,6 @@ */ class Noop implements \Phalcon\Encryption\Crypt\Padding\PadInterface { - - /** * @param int $paddingSize * diff --git a/src/Encryption/Crypt/Padding/PadInterface.php b/src/Encryption/Crypt/Padding/PadInterface.php index f508ea96..41506419 100644 --- a/src/Encryption/Crypt/Padding/PadInterface.php +++ b/src/Encryption/Crypt/Padding/PadInterface.php @@ -14,8 +14,6 @@ */ interface PadInterface { - - /** * @param int $paddingSize * diff --git a/src/Encryption/Crypt/Padding/Pkcs7.php b/src/Encryption/Crypt/Padding/Pkcs7.php index 9127ce96..b2cf9d99 100644 --- a/src/Encryption/Crypt/Padding/Pkcs7.php +++ b/src/Encryption/Crypt/Padding/Pkcs7.php @@ -16,8 +16,6 @@ */ class Pkcs7 implements \Phalcon\Encryption\Crypt\Padding\PadInterface { - - /** * @param int $paddingSize * diff --git a/src/Encryption/Crypt/Padding/Space.php b/src/Encryption/Crypt/Padding/Space.php index 1b7d6c21..c8167f6f 100644 --- a/src/Encryption/Crypt/Padding/Space.php +++ b/src/Encryption/Crypt/Padding/Space.php @@ -16,8 +16,6 @@ */ class Space implements \Phalcon\Encryption\Crypt\Padding\PadInterface { - - /** * @param int $paddingSize * diff --git a/src/Encryption/Crypt/Padding/Zero.php b/src/Encryption/Crypt/Padding/Zero.php index 00198539..02ab2cf1 100644 --- a/src/Encryption/Crypt/Padding/Zero.php +++ b/src/Encryption/Crypt/Padding/Zero.php @@ -16,8 +16,6 @@ */ class Zero implements \Phalcon\Encryption\Crypt\Padding\PadInterface { - - /** * @param int $paddingSize * diff --git a/src/Encryption/Security.php b/src/Encryption/Security.php index 6f51e8c6..70076691 100644 --- a/src/Encryption/Security.php +++ b/src/Encryption/Security.php @@ -116,13 +116,6 @@ class Security extends AbstractInjectionAware */ private $localRequest = null; - /** - * @return int - */ - public function getWorkFactor(): int - { - } - /** * Security constructor. * @@ -277,6 +270,13 @@ public function getTokenKey(): ?string { } + /** + * @return int + */ + public function getWorkFactor(): int + { + } + /** * Creates a password hash using bcrypt with a pseudo random salt * diff --git a/src/Encryption/Security/Exception.php b/src/Encryption/Security/Exception.php index 7b07e254..26ff21c0 100644 --- a/src/Encryption/Security/Exception.php +++ b/src/Encryption/Security/Exception.php @@ -16,6 +16,4 @@ */ class Exception extends \Exception { - - } diff --git a/src/Encryption/Security/JWT/Builder.php b/src/Encryption/Security/JWT/Builder.php index be8b05d9..a805e01b 100644 --- a/src/Encryption/Security/JWT/Builder.php +++ b/src/Encryption/Security/JWT/Builder.php @@ -20,7 +20,9 @@ use Phalcon\Encryption\Security\JWT\Token\Token; /** - * Class Builder + * Builder + * + * The builder offers * * @property CollectionInterface $claims * @property CollectionInterface $jose @@ -31,7 +33,6 @@ */ class Builder { - /** * @var CollectionInterface */ diff --git a/src/Encryption/Security/JWT/Exceptions/UnsupportedAlgorithmException.php b/src/Encryption/Security/JWT/Exceptions/UnsupportedAlgorithmException.php index ab082b5d..3b9a0867 100644 --- a/src/Encryption/Security/JWT/Exceptions/UnsupportedAlgorithmException.php +++ b/src/Encryption/Security/JWT/Exceptions/UnsupportedAlgorithmException.php @@ -10,18 +10,10 @@ namespace Phalcon\Encryption\Security\JWT\Exceptions; use Exception; -use Throwable; /** - * 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. + * Exception thrown when the algorithm is not supported for JWT */ -class UnsupportedAlgorithmException extends Exception implements \Throwable +class UnsupportedAlgorithmException extends Exception { - - } diff --git a/src/Encryption/Security/JWT/Exceptions/ValidatorException.php b/src/Encryption/Security/JWT/Exceptions/ValidatorException.php index 7620b41b..6113ea1b 100644 --- a/src/Encryption/Security/JWT/Exceptions/ValidatorException.php +++ b/src/Encryption/Security/JWT/Exceptions/ValidatorException.php @@ -10,18 +10,10 @@ namespace Phalcon\Encryption\Security\JWT\Exceptions; use Exception; -use Throwable; /** - * 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. + * Exception thrown when the validation does not pass for JWT */ -class ValidatorException extends Exception implements \Throwable +class ValidatorException extends Exception { - - } diff --git a/src/Encryption/Security/JWT/Signer/AbstractSigner.php b/src/Encryption/Security/JWT/Signer/AbstractSigner.php index f097e682..6f6e74db 100644 --- a/src/Encryption/Security/JWT/Signer/AbstractSigner.php +++ b/src/Encryption/Security/JWT/Signer/AbstractSigner.php @@ -10,17 +10,14 @@ namespace Phalcon\Encryption\Security\JWT\Signer; /** - * Class AbstractSigner - * - * @property string $algo + * Abstract class helping with the signer classes */ abstract class AbstractSigner implements \Phalcon\Encryption\Security\JWT\Signer\SignerInterface { - /** * @var string */ - protected $algorithm; + protected $algorithm = ''; /** * @return string diff --git a/src/Encryption/Security/JWT/Signer/Hmac.php b/src/Encryption/Security/JWT/Signer/Hmac.php index bd391dfe..86444bcb 100644 --- a/src/Encryption/Security/JWT/Signer/Hmac.php +++ b/src/Encryption/Security/JWT/Signer/Hmac.php @@ -12,12 +12,10 @@ use Phalcon\Encryption\Security\JWT\Exceptions\UnsupportedAlgorithmException; /** - * Class Hmac + * HMAC signing class */ class Hmac extends \Phalcon\Encryption\Security\JWT\Signer\AbstractSigner { - - /** * Hmac constructor. * diff --git a/src/Encryption/Security/JWT/Signer/None.php b/src/Encryption/Security/JWT/Signer/None.php index 409050a3..4a1ed334 100644 --- a/src/Encryption/Security/JWT/Signer/None.php +++ b/src/Encryption/Security/JWT/Signer/None.php @@ -10,12 +10,10 @@ namespace Phalcon\Encryption\Security\JWT\Signer; /** - * Class None + * No signing class */ class None implements \Phalcon\Encryption\Security\JWT\Signer\SignerInterface { - - /** * Return the value that is used for the "alg" header * diff --git a/src/Encryption/Security/JWT/Signer/SignerInterface.php b/src/Encryption/Security/JWT/Signer/SignerInterface.php index f89090a0..8019de8a 100644 --- a/src/Encryption/Security/JWT/Signer/SignerInterface.php +++ b/src/Encryption/Security/JWT/Signer/SignerInterface.php @@ -10,17 +10,10 @@ namespace Phalcon\Encryption\Security\JWT\Signer; /** - * 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. + * Interface for JWT Signer classes */ interface SignerInterface { - - /** * Return the value that is used for the "alg" header * diff --git a/src/Encryption/Security/JWT/Token/AbstractItem.php b/src/Encryption/Security/JWT/Token/AbstractItem.php index 521ca5a8..45df2261 100644 --- a/src/Encryption/Security/JWT/Token/AbstractItem.php +++ b/src/Encryption/Security/JWT/Token/AbstractItem.php @@ -10,13 +10,12 @@ namespace Phalcon\Encryption\Security\JWT\Token; /** - * Class AbstractItem + * Abstract helper class for Tokens * * @property array $data */ abstract class AbstractItem { - /** * @var array */ diff --git a/src/Encryption/Security/JWT/Token/Enum.php b/src/Encryption/Security/JWT/Token/Enum.php index f62a157d..07030f7b 100644 --- a/src/Encryption/Security/JWT/Token/Enum.php +++ b/src/Encryption/Security/JWT/Token/Enum.php @@ -10,7 +10,7 @@ namespace Phalcon\Encryption\Security\JWT\Token; /** - * Class Enum + * Constants for Tokens. It offers constants for Headers as well as Claims * * @link https://tools.ietf.org/html/rfc7519 */ diff --git a/src/Encryption/Security/JWT/Token/Item.php b/src/Encryption/Security/JWT/Token/Item.php index bf0e26d7..6538eacd 100644 --- a/src/Encryption/Security/JWT/Token/Item.php +++ b/src/Encryption/Security/JWT/Token/Item.php @@ -10,12 +10,10 @@ namespace Phalcon\Encryption\Security\JWT\Token; /** - * Class Item + * Storage class for a Token Item */ class Item extends \Phalcon\Encryption\Security\JWT\Token\AbstractItem { - - /** * Item constructor. * diff --git a/src/Encryption/Security/JWT/Token/Parser.php b/src/Encryption/Security/JWT/Token/Parser.php index b07d8209..cd609636 100644 --- a/src/Encryption/Security/JWT/Token/Parser.php +++ b/src/Encryption/Security/JWT/Token/Parser.php @@ -12,12 +12,14 @@ use InvalidArgumentException; /** - * Class Parser + * Token Parser class. + * + * It parses a token by validating if it is formed properly and splits it into + * three parts. The headers are decoded, then the claims and finally the + * signature. It returns a token object populated with the decoded information. */ class Parser { - - /** * Parse a token and return it * diff --git a/src/Encryption/Security/JWT/Token/Signature.php b/src/Encryption/Security/JWT/Token/Signature.php index 708a6ec9..c609d3cc 100644 --- a/src/Encryption/Security/JWT/Token/Signature.php +++ b/src/Encryption/Security/JWT/Token/Signature.php @@ -10,12 +10,10 @@ namespace Phalcon\Encryption\Security\JWT\Token; /** - * Class Item + * Signature class containing the encoded data and the hash. */ class Signature extends \Phalcon\Encryption\Security\JWT\Token\AbstractItem { - - /** * Signature constructor. * diff --git a/src/Encryption/Security/JWT/Token/Token.php b/src/Encryption/Security/JWT/Token/Token.php index 515809c1..fe148ca2 100644 --- a/src/Encryption/Security/JWT/Token/Token.php +++ b/src/Encryption/Security/JWT/Token/Token.php @@ -9,8 +9,14 @@ */ namespace Phalcon\Encryption\Security\JWT\Token; +use Phalcon\Encryption\Security\JWT\Signer\SignerInterface; +use Phalcon\Encryption\Security\JWT\Validator; + /** - * Class Token + * Token Class. + * + * A container for Token related data. It stores the claims, headers, signature + * and payload. It also calculates and returns the token string. * * @property Item $claims * @property Item $headers @@ -20,7 +26,6 @@ */ class Token { - /** * @var Item */ @@ -37,41 +42,41 @@ class Token private $signature; /** - * @return mixed + * Token constructor. + * + * @param Item $headers + * @param Item $claims + * @param Signature $signature */ - public function getClaims() + public function __construct(Item $headers, Item $claims, Signature $signature) { } /** - * @return mixed + * @return Item */ - public function getHeaders() + public function getClaims(): Item { } /** - * @return mixed + * @return Item */ - public function getSignature() + public function getHeaders(): Item { } /** - * Token constructor. - * - * @param Item $headers - * @param Item $claims - * @param Signature $signature + * @return string */ - public function __construct(Item $headers, Item $claims, Signature $signature) + public function getPayload(): string { } /** - * @return string + * @return Signature */ - public function getPayload(): string + public function getSignature(): Signature { } @@ -81,4 +86,25 @@ public function getPayload(): string public function getToken(): string { } + + /** + * @param Validator $validator + * + * @return array + */ + public function validate(\Phalcon\Encryption\Security\JWT\Validator $validator): array + { + } + + /** + * Verify the signature + * + * @param SignerInterface $signer + * @param string $key + * + * @return bool + */ + public function verify(\Phalcon\Encryption\Security\JWT\Signer\SignerInterface $signer, string $key): bool + { + } } diff --git a/src/Encryption/Security/JWT/Validator.php b/src/Encryption/Security/JWT/Validator.php index b24d06e0..68e5b649 100644 --- a/src/Encryption/Security/JWT/Validator.php +++ b/src/Encryption/Security/JWT/Validator.php @@ -22,6 +22,10 @@ */ class Validator { + /** + * @var array + */ + private $errors = []; /** * @var int @@ -43,6 +47,13 @@ public function __construct(\Phalcon\Encryption\Security\JWT\Token\Token $token, { } + /** + * @return array + */ + public function getErrors(): array + { + } + /** * @param Token $token * @@ -53,12 +64,12 @@ public function setToken(\Phalcon\Encryption\Security\JWT\Token\Token $token): V } /** - * @param string $audience + * @param string|array $audience * * @return Validator * @throws ValidatorException */ - public function validateAudience(string $audience): Validator + public function validateAudience($audience): Validator { } diff --git a/src/Encryption/Security/Random.php b/src/Encryption/Security/Random.php index 5c2005c4..44078266 100644 --- a/src/Encryption/Security/Random.php +++ b/src/Encryption/Security/Random.php @@ -76,8 +76,6 @@ */ class Random { - - /** * Generates a random base58 string * diff --git a/src/Events/AbstractEventsAware.php b/src/Events/AbstractEventsAware.php index 6ecfb7b9..72d15a8e 100644 --- a/src/Events/AbstractEventsAware.php +++ b/src/Events/AbstractEventsAware.php @@ -18,7 +18,6 @@ */ abstract class AbstractEventsAware { - /** * @var ManagerInterface|null */ diff --git a/src/Events/Event.php b/src/Events/Event.php index 2966d672..696cad71 100644 --- a/src/Events/Event.php +++ b/src/Events/Event.php @@ -24,7 +24,6 @@ */ class Event implements \Phalcon\Events\EventInterface { - /** * Is event cancelable? * @@ -44,7 +43,7 @@ class Event implements \Phalcon\Events\EventInterface * * @var object|null */ - protected $source; + protected $source = null; /** * Is event propagation stopped? @@ -61,8 +60,18 @@ class Event implements \Phalcon\Events\EventInterface protected $type; /** - * Event data + * Phalcon\Events\Event constructor * + * @param object $source + * @param string $type + * @param mixed $data + * @param bool $cancelable + */ + public function __construct(string $type, $source = null, $data = null, bool $cancelable = true) + { + } + + /** * @return mixed */ public function getData() @@ -70,8 +79,6 @@ public function getData() } /** - * Event source - * * @return object|null */ public function getSource() @@ -79,26 +86,12 @@ public function getSource() } /** - * Event type - * * @return string */ public function getType(): string { } - /** - * Phalcon\Events\Event constructor - * - * @param object $source - * @param string $type - * @param mixed $data - * @param bool $cancelable - */ - public function __construct(string $type, $source = null, $data = null, bool $cancelable = true) - { - } - /** * Check whether the event is cancelable. * diff --git a/src/Events/EventInterface.php b/src/Events/EventInterface.php index 67f314fa..46826ae0 100644 --- a/src/Events/EventInterface.php +++ b/src/Events/EventInterface.php @@ -14,8 +14,6 @@ */ interface EventInterface { - - /** * Gets event data * diff --git a/src/Events/EventsAwareInterface.php b/src/Events/EventsAwareInterface.php index 25031892..94fcc701 100644 --- a/src/Events/EventsAwareInterface.php +++ b/src/Events/EventsAwareInterface.php @@ -15,8 +15,6 @@ */ interface EventsAwareInterface { - - /** * Returns the internal event manager * diff --git a/src/Events/Exception.php b/src/Events/Exception.php index 789a5507..6208ae74 100644 --- a/src/Events/Exception.php +++ b/src/Events/Exception.php @@ -14,6 +14,4 @@ */ class Exception extends \Exception { - - } diff --git a/src/Events/ManagerInterface.php b/src/Events/ManagerInterface.php index bd014aa3..0ef99c7a 100644 --- a/src/Events/ManagerInterface.php +++ b/src/Events/ManagerInterface.php @@ -14,8 +14,6 @@ */ interface ManagerInterface { - - /** * Attach a listener to the events manager * diff --git a/src/Factory/AbstractConfigFactory.php b/src/Factory/AbstractConfigFactory.php index 50e275e9..03b1147c 100644 --- a/src/Factory/AbstractConfigFactory.php +++ b/src/Factory/AbstractConfigFactory.php @@ -21,8 +21,6 @@ */ abstract class AbstractConfigFactory { - - /** * Checks the config if it is a valid object * diff --git a/src/Factory/AbstractFactory.php b/src/Factory/AbstractFactory.php index 713bd527..c7cb8b99 100644 --- a/src/Factory/AbstractFactory.php +++ b/src/Factory/AbstractFactory.php @@ -21,7 +21,6 @@ */ abstract class AbstractFactory extends \Phalcon\Factory\AbstractConfigFactory { - /** * @var array */ diff --git a/src/Factory/Exception.php b/src/Factory/Exception.php index 8f16c189..099060ae 100644 --- a/src/Factory/Exception.php +++ b/src/Factory/Exception.php @@ -19,6 +19,4 @@ */ class Exception extends \Exception { - - } diff --git a/src/Filter/Exception.php b/src/Filter/Exception.php index 5f505950..874f8725 100644 --- a/src/Filter/Exception.php +++ b/src/Filter/Exception.php @@ -16,6 +16,4 @@ */ class Exception extends \Exception { - - } diff --git a/src/Filter/Filter.php b/src/Filter/Filter.php index 5299c341..094cbcdb 100644 --- a/src/Filter/Filter.php +++ b/src/Filter/Filter.php @@ -27,6 +27,7 @@ * @method special(string $input): string * @method specialfull(string $input): string * @method string(string $input): string + * @method stringlegacy(mixed $input): string * @method striptags(string $input): string * @method trim(string $input): string * @method upper(string $input): string @@ -69,6 +70,8 @@ class Filter implements \Phalcon\Filter\FilterInterface const FILTER_STRING = 'string'; + const FILTER_STRING_LEGACY = 'stringlegacy'; + const FILTER_STRIPTAGS = 'striptags'; const FILTER_TRIM = 'trim'; diff --git a/src/Filter/FilterFactory.php b/src/Filter/FilterFactory.php index d7092ed3..1f685c69 100644 --- a/src/Filter/FilterFactory.php +++ b/src/Filter/FilterFactory.php @@ -18,8 +18,6 @@ */ class FilterFactory { - - /** * Returns a Locator object with all the helpers defined in anonymous * functions diff --git a/src/Filter/FilterInterface.php b/src/Filter/FilterInterface.php index 04b2bd44..53036b34 100644 --- a/src/Filter/FilterInterface.php +++ b/src/Filter/FilterInterface.php @@ -14,8 +14,6 @@ */ interface FilterInterface { - - /** * Sanitizes a value with a specified single or set of sanitizers * diff --git a/src/Filter/Sanitize/AbsInt.php b/src/Filter/Sanitize/AbsInt.php index 3c243ca1..6c9e0068 100644 --- a/src/Filter/Sanitize/AbsInt.php +++ b/src/Filter/Sanitize/AbsInt.php @@ -16,8 +16,6 @@ */ class AbsInt { - - /** * @param mixed $input The text to sanitize * diff --git a/src/Filter/Sanitize/Alnum.php b/src/Filter/Sanitize/Alnum.php index 5f6ed673..425c88bd 100644 --- a/src/Filter/Sanitize/Alnum.php +++ b/src/Filter/Sanitize/Alnum.php @@ -16,8 +16,6 @@ */ class Alnum { - - /** * @param mixed $input The text to sanitize * diff --git a/src/Filter/Sanitize/Alpha.php b/src/Filter/Sanitize/Alpha.php index 708d6739..61e10edd 100644 --- a/src/Filter/Sanitize/Alpha.php +++ b/src/Filter/Sanitize/Alpha.php @@ -16,8 +16,6 @@ */ class Alpha { - - /** * @param mixed $input The text to sanitize * diff --git a/src/Filter/Sanitize/BoolVal.php b/src/Filter/Sanitize/BoolVal.php index 42f13719..f200548d 100644 --- a/src/Filter/Sanitize/BoolVal.php +++ b/src/Filter/Sanitize/BoolVal.php @@ -16,8 +16,6 @@ */ class BoolVal { - - /** * @param mixed $input The text to sanitize * diff --git a/src/Filter/Sanitize/Email.php b/src/Filter/Sanitize/Email.php index 8e18e22a..b3910d0a 100644 --- a/src/Filter/Sanitize/Email.php +++ b/src/Filter/Sanitize/Email.php @@ -16,8 +16,6 @@ */ class Email { - - /** * @param mixed $input The text to sanitize * diff --git a/src/Filter/Sanitize/FloatVal.php b/src/Filter/Sanitize/FloatVal.php index ba56b230..c274616f 100644 --- a/src/Filter/Sanitize/FloatVal.php +++ b/src/Filter/Sanitize/FloatVal.php @@ -16,8 +16,6 @@ */ class FloatVal { - - /** * @param mixed $input The text to sanitize * diff --git a/src/Filter/Sanitize/IntVal.php b/src/Filter/Sanitize/IntVal.php index f1319e14..b2d02092 100644 --- a/src/Filter/Sanitize/IntVal.php +++ b/src/Filter/Sanitize/IntVal.php @@ -16,8 +16,6 @@ */ class IntVal { - - /** * @param mixed $input The text to sanitize * diff --git a/src/Filter/Sanitize/Lower.php b/src/Filter/Sanitize/Lower.php index 736c36e9..ca49ef50 100644 --- a/src/Filter/Sanitize/Lower.php +++ b/src/Filter/Sanitize/Lower.php @@ -16,8 +16,6 @@ */ class Lower { - - /** * @param string $input The text to sanitize * diff --git a/src/Filter/Sanitize/LowerFirst.php b/src/Filter/Sanitize/LowerFirst.php index 9578464d..3468f371 100644 --- a/src/Filter/Sanitize/LowerFirst.php +++ b/src/Filter/Sanitize/LowerFirst.php @@ -16,8 +16,6 @@ */ class LowerFirst { - - /** * @param string $input The text to sanitize * diff --git a/src/Filter/Sanitize/Regex.php b/src/Filter/Sanitize/Regex.php index 259eecbe..4af35034 100644 --- a/src/Filter/Sanitize/Regex.php +++ b/src/Filter/Sanitize/Regex.php @@ -16,8 +16,6 @@ */ class Regex { - - /** * @param mixed $input * @param mixed $pattern diff --git a/src/Filter/Sanitize/Remove.php b/src/Filter/Sanitize/Remove.php index 09c48d02..02d7d851 100644 --- a/src/Filter/Sanitize/Remove.php +++ b/src/Filter/Sanitize/Remove.php @@ -16,8 +16,6 @@ */ class Remove { - - /** * @param mixed $input * @param mixed $replace diff --git a/src/Filter/Sanitize/Replace.php b/src/Filter/Sanitize/Replace.php index 5994820b..571bfe09 100644 --- a/src/Filter/Sanitize/Replace.php +++ b/src/Filter/Sanitize/Replace.php @@ -16,8 +16,6 @@ */ class Replace { - - /** * @param mixed $input * @param mixed $source diff --git a/src/Filter/Sanitize/Special.php b/src/Filter/Sanitize/Special.php index 47eb375d..9f9f5030 100644 --- a/src/Filter/Sanitize/Special.php +++ b/src/Filter/Sanitize/Special.php @@ -16,8 +16,6 @@ */ class Special { - - /** * @param mixed $input The text to sanitize * diff --git a/src/Filter/Sanitize/SpecialFull.php b/src/Filter/Sanitize/SpecialFull.php index 6b339b68..cc12ecf1 100644 --- a/src/Filter/Sanitize/SpecialFull.php +++ b/src/Filter/Sanitize/SpecialFull.php @@ -16,8 +16,6 @@ */ class SpecialFull { - - /** * @param mixed $input The text to sanitize * diff --git a/src/Filter/Sanitize/StringVal.php b/src/Filter/Sanitize/StringVal.php index d56f257f..e9ce398c 100644 --- a/src/Filter/Sanitize/StringVal.php +++ b/src/Filter/Sanitize/StringVal.php @@ -14,14 +14,12 @@ */ class StringVal { - - /** - * @param mixed $input The text to sanitize + * @param string $input The text to sanitize * - * @return string|false + * @return string */ - public function __invoke($input) + public function __invoke(string $input): string { } } diff --git a/src/Filter/Sanitize/StringValLegacy.php b/src/Filter/Sanitize/StringValLegacy.php new file mode 100644 index 00000000..01332bef --- /dev/null +++ b/src/Filter/Sanitize/StringValLegacy.php @@ -0,0 +1,28 @@ + + * + * For the full copyright and license information, please view the LICENSE.txt + * file that was distributed with this source code. + */ +namespace Phalcon\Filter\Sanitize; + +/** + * Sanitizes a value to string using `filter_var()`. The filter provides + * backwards compatibility with versions prior to v5. For PHP higher or equal to + * 8.1, the filter will remain the string unchanged. If anything other than a + * string is passed, the method will return false + */ +class StringValLegacy +{ + /** + * @param string $input The text to sanitize + * + * @return string|false + */ + public function __invoke($input) + { + } +} diff --git a/src/Filter/Sanitize/Striptags.php b/src/Filter/Sanitize/Striptags.php index 9fb37ccc..30bec9fe 100644 --- a/src/Filter/Sanitize/Striptags.php +++ b/src/Filter/Sanitize/Striptags.php @@ -16,8 +16,6 @@ */ class Striptags { - - /** * @param string $input The text to sanitize * diff --git a/src/Filter/Sanitize/Trim.php b/src/Filter/Sanitize/Trim.php index a88a3176..78a07be5 100644 --- a/src/Filter/Sanitize/Trim.php +++ b/src/Filter/Sanitize/Trim.php @@ -16,8 +16,6 @@ */ class Trim { - - /** * @param string $input The text to sanitize * diff --git a/src/Filter/Sanitize/Upper.php b/src/Filter/Sanitize/Upper.php index 59b33974..bad762ca 100644 --- a/src/Filter/Sanitize/Upper.php +++ b/src/Filter/Sanitize/Upper.php @@ -16,8 +16,6 @@ */ class Upper { - - /** * @param string $input The text to sanitize * diff --git a/src/Filter/Sanitize/UpperFirst.php b/src/Filter/Sanitize/UpperFirst.php index de9fe0c1..a62da89f 100644 --- a/src/Filter/Sanitize/UpperFirst.php +++ b/src/Filter/Sanitize/UpperFirst.php @@ -16,8 +16,6 @@ */ class UpperFirst { - - /** * @param string $input The text to sanitize * diff --git a/src/Filter/Sanitize/UpperWords.php b/src/Filter/Sanitize/UpperWords.php index f657907e..eca1f2e3 100644 --- a/src/Filter/Sanitize/UpperWords.php +++ b/src/Filter/Sanitize/UpperWords.php @@ -16,8 +16,6 @@ */ class UpperWords { - - /** * @param string $input The text to sanitize * diff --git a/src/Filter/Sanitize/Url.php b/src/Filter/Sanitize/Url.php index a9e774fe..1a115ca8 100644 --- a/src/Filter/Sanitize/Url.php +++ b/src/Filter/Sanitize/Url.php @@ -16,8 +16,6 @@ */ class Url { - - /** * @param mixed $input The text to sanitize * diff --git a/src/Filter/Validation.php b/src/Filter/Validation.php index 4a6b2f9a..8ff283f4 100644 --- a/src/Filter/Validation.php +++ b/src/Filter/Validation.php @@ -25,7 +25,6 @@ */ class Validation extends Injectable implements \Phalcon\Filter\Validation\ValidationInterface { - /** * @var array */ @@ -70,22 +69,6 @@ class Validation extends Injectable implements \Phalcon\Filter\Validation\Valida */ protected $values = []; - /** - * @return mixed - */ - public function getData() - { - } - - /** - * List of validators - * - * @param array $validators - */ - public function setValidators(array $validators) - { - } - /** * Phalcon\Filter\Validation constructor * @@ -129,6 +112,13 @@ public function bind($entity, $data): ValidationInterface { } + /** + * @return mixed + */ + public function getData() + { + } + /** * Returns the bound entity * @@ -262,6 +252,14 @@ public function setLabels(array $labels): void { } + /** + * @param array $validators + * @return Validation + */ + public function setValidators(array $validators): Validation + { + } + /** * Validate a set of data according to a set of rules * diff --git a/src/Filter/Validation/AbstractCombinedFieldsValidator.php b/src/Filter/Validation/AbstractCombinedFieldsValidator.php index 7e43ac39..48a74c36 100644 --- a/src/Filter/Validation/AbstractCombinedFieldsValidator.php +++ b/src/Filter/Validation/AbstractCombinedFieldsValidator.php @@ -14,6 +14,4 @@ */ abstract class AbstractCombinedFieldsValidator extends \Phalcon\Filter\Validation\AbstractValidator { - - } diff --git a/src/Filter/Validation/AbstractValidator.php b/src/Filter/Validation/AbstractValidator.php index d069acb6..c25fe6cb 100644 --- a/src/Filter/Validation/AbstractValidator.php +++ b/src/Filter/Validation/AbstractValidator.php @@ -18,7 +18,6 @@ */ abstract class AbstractValidator implements \Phalcon\Filter\Validation\ValidatorInterface { - /** * Message template * diff --git a/src/Filter/Validation/AbstractValidatorComposite.php b/src/Filter/Validation/AbstractValidatorComposite.php index 09ea11e0..ba4d7949 100644 --- a/src/Filter/Validation/AbstractValidatorComposite.php +++ b/src/Filter/Validation/AbstractValidatorComposite.php @@ -16,7 +16,6 @@ */ abstract class AbstractValidatorComposite extends \Phalcon\Filter\Validation\AbstractValidator implements \Phalcon\Filter\Validation\ValidatorCompositeInterface { - /** * @var array */ diff --git a/src/Filter/Validation/Exception.php b/src/Filter/Validation/Exception.php index fad2c65a..363b6954 100644 --- a/src/Filter/Validation/Exception.php +++ b/src/Filter/Validation/Exception.php @@ -14,6 +14,4 @@ */ class Exception extends \Exception { - - } diff --git a/src/Filter/Validation/ValidationInterface.php b/src/Filter/Validation/ValidationInterface.php index b4d8d37c..9bbf9e15 100644 --- a/src/Filter/Validation/ValidationInterface.php +++ b/src/Filter/Validation/ValidationInterface.php @@ -18,8 +18,6 @@ */ interface ValidationInterface { - - /** * Adds a validator to a field * diff --git a/src/Filter/Validation/Validator/Alnum.php b/src/Filter/Validation/Validator/Alnum.php index 4db9f760..a1651af4 100644 --- a/src/Filter/Validation/Validator/Alnum.php +++ b/src/Filter/Validation/Validator/Alnum.php @@ -48,7 +48,6 @@ */ class Alnum extends AbstractValidator { - protected $template = 'Field :field must contain only letters and numbers'; /** diff --git a/src/Filter/Validation/Validator/Alpha.php b/src/Filter/Validation/Validator/Alpha.php index ddfab168..433c9118 100644 --- a/src/Filter/Validation/Validator/Alpha.php +++ b/src/Filter/Validation/Validator/Alpha.php @@ -49,7 +49,6 @@ */ class Alpha extends AbstractValidator { - protected $template = 'Field :field must contain only letters'; /** diff --git a/src/Filter/Validation/Validator/Between.php b/src/Filter/Validation/Validator/Between.php index 223813b0..5e155628 100644 --- a/src/Filter/Validation/Validator/Between.php +++ b/src/Filter/Validation/Validator/Between.php @@ -60,7 +60,6 @@ */ class Between extends AbstractValidator { - protected $template = 'Field :field must be within the range of :min to :max'; /** diff --git a/src/Filter/Validation/Validator/Callback.php b/src/Filter/Validation/Validator/Callback.php index 19743053..eb83d434 100644 --- a/src/Filter/Validation/Validator/Callback.php +++ b/src/Filter/Validation/Validator/Callback.php @@ -60,7 +60,6 @@ */ class Callback extends AbstractValidator { - protected $template = 'Field :field must match the callback function'; /** diff --git a/src/Filter/Validation/Validator/Confirmation.php b/src/Filter/Validation/Validator/Confirmation.php index 88109fcd..01b556df 100644 --- a/src/Filter/Validation/Validator/Confirmation.php +++ b/src/Filter/Validation/Validator/Confirmation.php @@ -55,7 +55,6 @@ */ class Confirmation extends AbstractValidator { - protected $template = 'Field :field must be the same as :with'; /** diff --git a/src/Filter/Validation/Validator/CreditCard.php b/src/Filter/Validation/Validator/CreditCard.php index 63ff7e93..9d91c50f 100644 --- a/src/Filter/Validation/Validator/CreditCard.php +++ b/src/Filter/Validation/Validator/CreditCard.php @@ -49,7 +49,6 @@ */ class CreditCard extends AbstractValidator { - protected $template = 'Field :field is not valid for a credit card number'; /** diff --git a/src/Filter/Validation/Validator/Date.php b/src/Filter/Validation/Validator/Date.php index 4751aec7..a12493b2 100644 --- a/src/Filter/Validation/Validator/Date.php +++ b/src/Filter/Validation/Validator/Date.php @@ -55,7 +55,6 @@ */ class Date extends AbstractValidator { - protected $template = 'Field :field is not a valid date'; /** diff --git a/src/Filter/Validation/Validator/Digit.php b/src/Filter/Validation/Validator/Digit.php index 516bc482..91ee1d48 100644 --- a/src/Filter/Validation/Validator/Digit.php +++ b/src/Filter/Validation/Validator/Digit.php @@ -49,7 +49,6 @@ */ class Digit extends AbstractValidator { - protected $template = 'Field :field must be numeric'; /** diff --git a/src/Filter/Validation/Validator/Email.php b/src/Filter/Validation/Validator/Email.php index cc70ae16..3d1fbcca 100644 --- a/src/Filter/Validation/Validator/Email.php +++ b/src/Filter/Validation/Validator/Email.php @@ -49,7 +49,6 @@ */ class Email extends AbstractValidator { - protected $template = 'Field :field must be an email address'; /** diff --git a/src/Filter/Validation/Validator/Exception.php b/src/Filter/Validation/Validator/Exception.php index 803c8444..68a568c4 100644 --- a/src/Filter/Validation/Validator/Exception.php +++ b/src/Filter/Validation/Validator/Exception.php @@ -15,6 +15,4 @@ */ class Exception extends \Exception { - - } diff --git a/src/Filter/Validation/Validator/ExclusionIn.php b/src/Filter/Validation/Validator/ExclusionIn.php index 10299c15..98d36001 100644 --- a/src/Filter/Validation/Validator/ExclusionIn.php +++ b/src/Filter/Validation/Validator/ExclusionIn.php @@ -61,7 +61,6 @@ */ class ExclusionIn extends AbstractValidator { - protected $template = 'Field :field must not be a part of list: :domain'; /** diff --git a/src/Filter/Validation/Validator/File.php b/src/Filter/Validation/Validator/File.php index 73dce744..dce30a72 100644 --- a/src/Filter/Validation/Validator/File.php +++ b/src/Filter/Validation/Validator/File.php @@ -93,8 +93,6 @@ */ class File extends AbstractValidatorComposite { - - /** * Constructor * diff --git a/src/Filter/Validation/Validator/File/AbstractFile.php b/src/Filter/Validation/Validator/File/AbstractFile.php index db4791b7..8abc1070 100644 --- a/src/Filter/Validation/Validator/File/AbstractFile.php +++ b/src/Filter/Validation/Validator/File/AbstractFile.php @@ -54,7 +54,6 @@ */ abstract class AbstractFile extends AbstractValidator { - /** * Empty is empty * @@ -77,121 +76,127 @@ abstract class AbstractFile extends AbstractValidator protected $messageValid = 'Field :field is not valid'; /** - * Empty is empty + * Check upload * - * @return string + * @param Validation $validation + * @param mixed $field + * @return bool */ - public function getMessageFileEmpty(): string + public function checkUpload(\Phalcon\Filter\Validation $validation, $field): bool { } /** - * Empty is empty + * Check if upload is empty * - * @param string $messageFileEmpty + * @param Validation $validation + * @param mixed $field + * @return boolean */ - public function setMessageFileEmpty(string $messageFileEmpty) + public function checkUploadIsEmpty(\Phalcon\Filter\Validation $validation, $field): bool { } /** - * File exceeds the file size set in PHP configuration + * Check if upload is valid * - * @return string + * @param Validation $validation + * @param mixed $field + * @return boolean */ - public function getMessageIniSize(): string + public function checkUploadIsValid(\Phalcon\Filter\Validation $validation, $field): bool { } /** - * File exceeds the file size set in PHP configuration + * Check if uploaded file is larger than PHP allowed size * - * @param string $messageIniSize + * @param Validation $validation + * @param mixed $field + * @return boolean */ - public function setMessageIniSize(string $messageIniSize) + public function checkUploadMaxSize(\Phalcon\Filter\Validation $validation, $field): bool { } /** - * File is not valid + * Convert a string like "2.5MB" in bytes * - * @return string + * @param string $size + * @return float */ - public function getMessageValid(): string + public function getFileSizeInBytes(string $size): float { } /** - * File is not valid + * Empty is empty * - * @param string $messageValid + * @return string */ - public function setMessageValid(string $messageValid) + public function getMessageFileEmpty(): string { } /** - * Check upload + * File exceeds the file size set in PHP configuration * - * @param Validation $validation - * @param mixed $field - * @return bool + * @return string */ - public function checkUpload(\Phalcon\Filter\Validation $validation, $field): bool + public function getMessageIniSize(): string { } /** - * Check if upload is empty + * File is not valid * - * @param Validation $validation - * @param mixed $field - * @return boolean + * @return string */ - public function checkUploadIsEmpty(\Phalcon\Filter\Validation $validation, $field): bool + public function getMessageValid(): string { } /** - * Check if upload is valid + * Check on empty * * @param Validation $validation - * @param mixed $field - * @return boolean + * @param string $field + * @return bool */ - public function checkUploadIsValid(\Phalcon\Filter\Validation $validation, $field): bool + public function isAllowEmpty(\Phalcon\Filter\Validation $validation, string $field): bool { } /** - * Check if uploaded file is larger than PHP allowed size + * Empty is empty * - * @param Validation $validation - * @param mixed $field - * @return boolean + * @param string $message + * + * @return void */ - public function checkUploadMaxSize(\Phalcon\Filter\Validation $validation, $field): bool + public function setMessageFileEmpty(string $message): void { } /** - * Convert a string like "2.5MB" in bytes + * File exceeds the file size set in PHP configuration * - * @param string $size - * @return float + * @param string $message + * + * @return void */ - public function getFileSizeInBytes(string $size): float + public function setMessageIniSize(string $message): void { } /** - * Check on empty + * File is not valid * - * @param Validation $validation - * @param string $field - * @return bool + * @param string $message + * + * @return void */ - public function isAllowEmpty(\Phalcon\Filter\Validation $validation, string $field): bool + public function setMessageValid(string $message): void { } diff --git a/src/Filter/Validation/Validator/File/MimeType.php b/src/Filter/Validation/Validator/File/MimeType.php index da9fb26c..beafa328 100644 --- a/src/Filter/Validation/Validator/File/MimeType.php +++ b/src/Filter/Validation/Validator/File/MimeType.php @@ -63,7 +63,6 @@ */ class MimeType extends \Phalcon\Filter\Validation\Validator\File\AbstractFile { - protected $template = 'File :field must be of type: :types'; /** diff --git a/src/Filter/Validation/Validator/File/Resolution/Equal.php b/src/Filter/Validation/Validator/File/Resolution/Equal.php index 5263715e..28cd20f0 100644 --- a/src/Filter/Validation/Validator/File/Resolution/Equal.php +++ b/src/Filter/Validation/Validator/File/Resolution/Equal.php @@ -54,7 +54,6 @@ */ class Equal extends AbstractFile { - protected $template = 'The resolution of the field :field has to be equal :resolution'; /** diff --git a/src/Filter/Validation/Validator/File/Resolution/Max.php b/src/Filter/Validation/Validator/File/Resolution/Max.php index 015795f9..e0f71278 100644 --- a/src/Filter/Validation/Validator/File/Resolution/Max.php +++ b/src/Filter/Validation/Validator/File/Resolution/Max.php @@ -59,7 +59,6 @@ */ class Max extends AbstractFile { - protected $template = 'File :field exceeds the maximum resolution of :resolution'; /** diff --git a/src/Filter/Validation/Validator/File/Resolution/Min.php b/src/Filter/Validation/Validator/File/Resolution/Min.php index 6beb61f6..3ce11cee 100644 --- a/src/Filter/Validation/Validator/File/Resolution/Min.php +++ b/src/Filter/Validation/Validator/File/Resolution/Min.php @@ -59,7 +59,6 @@ */ class Min extends AbstractFile { - protected $template = 'File :field can not have the minimum resolution of :resolution'; /** diff --git a/src/Filter/Validation/Validator/File/Size/Equal.php b/src/Filter/Validation/Validator/File/Size/Equal.php index 6586e6da..36b87a87 100644 --- a/src/Filter/Validation/Validator/File/Size/Equal.php +++ b/src/Filter/Validation/Validator/File/Size/Equal.php @@ -59,7 +59,6 @@ */ class Equal extends AbstractFile { - protected $template = 'File :field does not have the exact :size file size'; /** diff --git a/src/Filter/Validation/Validator/File/Size/Max.php b/src/Filter/Validation/Validator/File/Size/Max.php index c81811b3..659c4869 100644 --- a/src/Filter/Validation/Validator/File/Size/Max.php +++ b/src/Filter/Validation/Validator/File/Size/Max.php @@ -59,7 +59,6 @@ */ class Max extends AbstractFile { - protected $template = 'File :field exceeds the size of :size'; /** diff --git a/src/Filter/Validation/Validator/File/Size/Min.php b/src/Filter/Validation/Validator/File/Size/Min.php index 44a5d6c0..147e9e8e 100644 --- a/src/Filter/Validation/Validator/File/Size/Min.php +++ b/src/Filter/Validation/Validator/File/Size/Min.php @@ -59,7 +59,6 @@ */ class Min extends AbstractFile { - protected $template = 'File :field can not have the minimum size of :size'; /** diff --git a/src/Filter/Validation/Validator/Identical.php b/src/Filter/Validation/Validator/Identical.php index c8882bfd..611768a5 100644 --- a/src/Filter/Validation/Validator/Identical.php +++ b/src/Filter/Validation/Validator/Identical.php @@ -54,7 +54,6 @@ */ class Identical extends AbstractValidator { - protected $template = 'Field :field does not have the expected value'; /** diff --git a/src/Filter/Validation/Validator/InclusionIn.php b/src/Filter/Validation/Validator/InclusionIn.php index c34ef3da..fcc8e2be 100644 --- a/src/Filter/Validation/Validator/InclusionIn.php +++ b/src/Filter/Validation/Validator/InclusionIn.php @@ -55,7 +55,6 @@ */ class InclusionIn extends AbstractValidator { - protected $template = 'Field :field must be a part of list: :domain'; /** diff --git a/src/Filter/Validation/Validator/Numericality.php b/src/Filter/Validation/Validator/Numericality.php index e6839624..a041d072 100644 --- a/src/Filter/Validation/Validator/Numericality.php +++ b/src/Filter/Validation/Validator/Numericality.php @@ -49,7 +49,6 @@ */ class Numericality extends AbstractValidator { - protected $template = 'Field :field does not have a valid numeric format'; /** diff --git a/src/Filter/Validation/Validator/PresenceOf.php b/src/Filter/Validation/Validator/PresenceOf.php index c4f3fe76..fe0b93b7 100644 --- a/src/Filter/Validation/Validator/PresenceOf.php +++ b/src/Filter/Validation/Validator/PresenceOf.php @@ -49,7 +49,6 @@ */ class PresenceOf extends AbstractValidator { - protected $template = 'Field :field is required'; /** diff --git a/src/Filter/Validation/Validator/Regex.php b/src/Filter/Validation/Validator/Regex.php index f8f60f29..aff37179 100644 --- a/src/Filter/Validation/Validator/Regex.php +++ b/src/Filter/Validation/Validator/Regex.php @@ -54,7 +54,6 @@ */ class Regex extends AbstractValidator { - protected $template = 'Field :field does not match the required format'; /** diff --git a/src/Filter/Validation/Validator/StringLength.php b/src/Filter/Validation/Validator/StringLength.php index 7b220d90..4e434f44 100644 --- a/src/Filter/Validation/Validator/StringLength.php +++ b/src/Filter/Validation/Validator/StringLength.php @@ -80,8 +80,6 @@ */ class StringLength extends AbstractValidatorComposite { - - /** * Constructor * diff --git a/src/Filter/Validation/Validator/StringLength/Max.php b/src/Filter/Validation/Validator/StringLength/Max.php index 38f05c3f..1fda09d9 100644 --- a/src/Filter/Validation/Validator/StringLength/Max.php +++ b/src/Filter/Validation/Validator/StringLength/Max.php @@ -62,7 +62,6 @@ */ class Max extends AbstractValidator { - protected $template = 'Field :field must not exceed :max characters long'; /** diff --git a/src/Filter/Validation/Validator/StringLength/Min.php b/src/Filter/Validation/Validator/StringLength/Min.php index 3346a9a9..5905b0d5 100644 --- a/src/Filter/Validation/Validator/StringLength/Min.php +++ b/src/Filter/Validation/Validator/StringLength/Min.php @@ -62,7 +62,6 @@ */ class Min extends AbstractValidator { - protected $template = 'Field :field must be at least :min characters long'; /** diff --git a/src/Filter/Validation/Validator/Uniqueness.php b/src/Filter/Validation/Validator/Uniqueness.php index b221ac08..63a99f3e 100644 --- a/src/Filter/Validation/Validator/Uniqueness.php +++ b/src/Filter/Validation/Validator/Uniqueness.php @@ -88,7 +88,6 @@ */ class Uniqueness extends AbstractCombinedFieldsValidator { - protected $template = 'Field :field must be unique'; /** diff --git a/src/Filter/Validation/Validator/Url.php b/src/Filter/Validation/Validator/Url.php index e6f4815f..a1c2ca35 100644 --- a/src/Filter/Validation/Validator/Url.php +++ b/src/Filter/Validation/Validator/Url.php @@ -49,7 +49,6 @@ */ class Url extends AbstractValidator { - protected $template = 'Field :field must be a url'; /** diff --git a/src/Filter/Validation/ValidatorCompositeInterface.php b/src/Filter/Validation/ValidatorCompositeInterface.php index 442a88e8..3a9601bc 100644 --- a/src/Filter/Validation/ValidatorCompositeInterface.php +++ b/src/Filter/Validation/ValidatorCompositeInterface.php @@ -16,8 +16,6 @@ */ interface ValidatorCompositeInterface { - - /** * Executes the validation * diff --git a/src/Filter/Validation/ValidatorFactory.php b/src/Filter/Validation/ValidatorFactory.php index 95ca668e..d3c8e6cc 100644 --- a/src/Filter/Validation/ValidatorFactory.php +++ b/src/Filter/Validation/ValidatorFactory.php @@ -21,8 +21,6 @@ */ class ValidatorFactory extends AbstractFactory { - - /** * TagFactory constructor. * diff --git a/src/Filter/Validation/ValidatorInterface.php b/src/Filter/Validation/ValidatorInterface.php index 2f974b38..ace0fba7 100644 --- a/src/Filter/Validation/ValidatorInterface.php +++ b/src/Filter/Validation/ValidatorInterface.php @@ -16,8 +16,6 @@ */ interface ValidatorInterface { - - /** * Returns an option in the validator's options * Returns null if the option hasn't set diff --git a/src/Flash/AbstractFlash.php b/src/Flash/AbstractFlash.php index e076ae0d..9ae7498d 100644 --- a/src/Flash/AbstractFlash.php +++ b/src/Flash/AbstractFlash.php @@ -31,7 +31,6 @@ */ abstract class AbstractFlash extends AbstractInjectionAware implements \Phalcon\Flash\FlashInterface { - /** * @var bool */ @@ -83,64 +82,71 @@ abstract class AbstractFlash extends AbstractInjectionAware implements \Phalcon\ protected $sessionService = null; /** - * @return bool + * AbstractFlash constructor. + * + * @param EscaperInterface|null $escaper + * @param SessionInterface|null $session */ - public function getAutoescape(): bool + public function __construct(\Phalcon\Html\Escaper\EscaperInterface $escaper = null, \Phalcon\Session\ManagerInterface $session = null) { } /** - * @return array + * Clears accumulated messages when implicit flush is disabled + * + * @return void */ - public function getCssClasses(): array + public function clear(): void { } /** - * @return array + * Shows a HTML error message + * + * ```php + * $flash->error("This is an error"); + * ``` + * + * @param string $message + * + * @return string|null */ - public function getCssIconClasses(): array + public function error(string $message): ?string { } /** - * @return string + * @return bool */ - public function getCustomTemplate(): string + public function getAutoescape(): bool { } /** - * AbstractFlash constructor. - * - * @param EscaperInterface|null $escaper - * @param SessionInterface|null $session + * @return bool */ - public function __construct(\Phalcon\Html\Escaper\EscaperInterface $escaper = null, \Phalcon\Session\ManagerInterface $session = null) + public function getAutomaticHtml(): bool { } /** - * Clears accumulated messages when implicit flush is disabled - * - * @return void + * @return array */ - public function clear(): void + public function getCssClasses(): array { } /** - * Shows a HTML error message - * - * ```php - * $flash->error("This is an error"); - * ``` - * - * @param string $message - * - * @return string|null + * @return array */ - public function error(string $message): ?string + public function getCssIconClasses(): array + { + } + + /** + * @return string + */ + public function getCustomTemplate(): string { } diff --git a/src/Flash/Direct.php b/src/Flash/Direct.php index d7f60f69..4c70a180 100644 --- a/src/Flash/Direct.php +++ b/src/Flash/Direct.php @@ -16,8 +16,6 @@ */ class Direct extends \Phalcon\Flash\AbstractFlash { - - /** * Outputs a message * diff --git a/src/Flash/Exception.php b/src/Flash/Exception.php index 4c658105..eb04b266 100644 --- a/src/Flash/Exception.php +++ b/src/Flash/Exception.php @@ -14,6 +14,4 @@ */ class Exception extends \Exception { - - } diff --git a/src/Flash/FlashInterface.php b/src/Flash/FlashInterface.php index b84df73e..df8d7519 100644 --- a/src/Flash/FlashInterface.php +++ b/src/Flash/FlashInterface.php @@ -16,8 +16,6 @@ */ interface FlashInterface { - - /** * Shows a HTML error message * diff --git a/src/Forms/Element/AbstractElement.php b/src/Forms/Element/AbstractElement.php index 61be083b..4121461a 100644 --- a/src/Forms/Element/AbstractElement.php +++ b/src/Forms/Element/AbstractElement.php @@ -25,7 +25,6 @@ */ abstract class AbstractElement implements \Phalcon\Forms\Element\ElementInterface { - /** * @var array */ diff --git a/src/Forms/Element/Check.php b/src/Forms/Element/Check.php index c58abcf1..c5228146 100644 --- a/src/Forms/Element/Check.php +++ b/src/Forms/Element/Check.php @@ -14,7 +14,6 @@ */ class Check extends \Phalcon\Forms\Element\AbstractElement { - /** * @var string */ diff --git a/src/Forms/Element/Date.php b/src/Forms/Element/Date.php index 5e203705..ae6e4e64 100644 --- a/src/Forms/Element/Date.php +++ b/src/Forms/Element/Date.php @@ -16,7 +16,6 @@ */ class Date extends \Phalcon\Forms\Element\AbstractElement { - /** * @var string */ diff --git a/src/Forms/Element/ElementInterface.php b/src/Forms/Element/ElementInterface.php index bb388393..d5f76076 100644 --- a/src/Forms/Element/ElementInterface.php +++ b/src/Forms/Element/ElementInterface.php @@ -19,8 +19,6 @@ */ interface ElementInterface { - - /** * Adds a filter to current list of filters * diff --git a/src/Forms/Element/Email.php b/src/Forms/Element/Email.php index f67a47ae..4324ab73 100644 --- a/src/Forms/Element/Email.php +++ b/src/Forms/Element/Email.php @@ -16,7 +16,6 @@ */ class Email extends \Phalcon\Forms\Element\AbstractElement { - /** * @var string */ diff --git a/src/Forms/Element/File.php b/src/Forms/Element/File.php index 3579d7ef..54465ef8 100644 --- a/src/Forms/Element/File.php +++ b/src/Forms/Element/File.php @@ -16,7 +16,6 @@ */ class File extends \Phalcon\Forms\Element\AbstractElement { - /** * @var string */ diff --git a/src/Forms/Element/Hidden.php b/src/Forms/Element/Hidden.php index d3df78ec..0dbff8e7 100644 --- a/src/Forms/Element/Hidden.php +++ b/src/Forms/Element/Hidden.php @@ -16,7 +16,6 @@ */ class Hidden extends \Phalcon\Forms\Element\AbstractElement { - /** * @var string */ diff --git a/src/Forms/Element/Numeric.php b/src/Forms/Element/Numeric.php index ee086919..c7c78675 100644 --- a/src/Forms/Element/Numeric.php +++ b/src/Forms/Element/Numeric.php @@ -16,7 +16,6 @@ */ class Numeric extends \Phalcon\Forms\Element\AbstractElement { - /** * @var string */ diff --git a/src/Forms/Element/Password.php b/src/Forms/Element/Password.php index 891dda62..ade36ced 100644 --- a/src/Forms/Element/Password.php +++ b/src/Forms/Element/Password.php @@ -16,7 +16,6 @@ */ class Password extends \Phalcon\Forms\Element\AbstractElement { - /** * @var string */ diff --git a/src/Forms/Element/Radio.php b/src/Forms/Element/Radio.php index c9a1d079..e73b5ec8 100644 --- a/src/Forms/Element/Radio.php +++ b/src/Forms/Element/Radio.php @@ -16,7 +16,6 @@ */ class Radio extends \Phalcon\Forms\Element\AbstractElement { - /** * @var string */ diff --git a/src/Forms/Element/Select.php b/src/Forms/Element/Select.php index 92b2f9d8..fb3de5fd 100644 --- a/src/Forms/Element/Select.php +++ b/src/Forms/Element/Select.php @@ -16,7 +16,6 @@ */ class Select extends \Phalcon\Forms\Element\AbstractElement { - /** * @var object|array|null */ diff --git a/src/Forms/Element/Submit.php b/src/Forms/Element/Submit.php index e1ec6c81..3c28d277 100644 --- a/src/Forms/Element/Submit.php +++ b/src/Forms/Element/Submit.php @@ -16,7 +16,6 @@ */ class Submit extends \Phalcon\Forms\Element\AbstractElement { - /** * @var string */ diff --git a/src/Forms/Element/Text.php b/src/Forms/Element/Text.php index 4ed14d6e..719b14ff 100644 --- a/src/Forms/Element/Text.php +++ b/src/Forms/Element/Text.php @@ -16,6 +16,4 @@ */ class Text extends \Phalcon\Forms\Element\AbstractElement { - - } diff --git a/src/Forms/Element/TextArea.php b/src/Forms/Element/TextArea.php index 70d6dbdd..ada3021e 100644 --- a/src/Forms/Element/TextArea.php +++ b/src/Forms/Element/TextArea.php @@ -16,7 +16,6 @@ */ class TextArea extends \Phalcon\Forms\Element\AbstractElement { - /** * @var string */ diff --git a/src/Forms/Exception.php b/src/Forms/Exception.php index 3d052029..418777a1 100644 --- a/src/Forms/Exception.php +++ b/src/Forms/Exception.php @@ -14,6 +14,4 @@ */ class Exception extends \Exception { - - } diff --git a/src/Forms/Form.php b/src/Forms/Form.php index af213dd2..f287d7ef 100644 --- a/src/Forms/Form.php +++ b/src/Forms/Form.php @@ -28,7 +28,6 @@ */ class Form extends Injectable implements \Countable, \Iterator, \Phalcon\Html\Attributes\AttributesInterface { - /** * @var AttributesInterface|null */ @@ -89,20 +88,6 @@ class Form extends Injectable implements \Countable, \Iterator, \Phalcon\Html\At */ protected $whitelist = []; - /** - * @return ValidationInterface|null - */ - public function getValidation() - { - } - - /** - * @return array - */ - public function getWhitelist(): array - { - } - /** * Phalcon\Forms\Form constructor * @@ -299,6 +284,24 @@ public function getValue(string $name) { } + /** + * return ValidationInterface|null + * + * @return ValidationInterface|null + */ + public function getValidation(): ?ValidationInterface + { + } + + /** + * return array + * + * @return array + */ + public function getWhitelist(): array + { + } + /** * Check if the form contains an element * diff --git a/src/Forms/Manager.php b/src/Forms/Manager.php index be328fb2..1dd8f5f1 100644 --- a/src/Forms/Manager.php +++ b/src/Forms/Manager.php @@ -14,7 +14,6 @@ */ class Manager { - /** * @var array */ diff --git a/src/Html/Attributes.php b/src/Html/Attributes.php index f0c291f6..302410c3 100644 --- a/src/Html/Attributes.php +++ b/src/Html/Attributes.php @@ -17,8 +17,6 @@ */ class Attributes extends Collection implements \Phalcon\Html\Attributes\RenderInterface { - - /** * Render attributes as HTML attributes * diff --git a/src/Html/Attributes/AttributesInterface.php b/src/Html/Attributes/AttributesInterface.php index e925f04d..401c1dfc 100644 --- a/src/Html/Attributes/AttributesInterface.php +++ b/src/Html/Attributes/AttributesInterface.php @@ -18,8 +18,6 @@ */ interface AttributesInterface { - - /** * Get Attributes * diff --git a/src/Html/Attributes/RenderInterface.php b/src/Html/Attributes/RenderInterface.php index 13262086..2d65a23a 100644 --- a/src/Html/Attributes/RenderInterface.php +++ b/src/Html/Attributes/RenderInterface.php @@ -16,8 +16,6 @@ */ interface RenderInterface { - - /** * Generate a string represetation * diff --git a/src/Html/Breadcrumbs.php b/src/Html/Breadcrumbs.php index c5fe9b8d..873524e2 100644 --- a/src/Html/Breadcrumbs.php +++ b/src/Html/Breadcrumbs.php @@ -20,7 +20,6 @@ */ class Breadcrumbs { - /** * Keeps all the breadcrumbs * @@ -42,24 +41,6 @@ class Breadcrumbs */ private $template = '
%label%
'; - /** - * Crumb separator - * - * @return string - */ - public function getSeparator(): string - { - } - - /** - * Crumb separator - * - * @param string $separator - */ - public function setSeparator(string $separator) - { - } - /** * Adds a new crumb. * @@ -92,6 +73,15 @@ public function clear(): void { } + /** + * Crumb separator + * + * @return string + */ + public function getSeparator(): string + { + } + /** * Removes crumb by url. * @@ -122,6 +112,15 @@ public function render(): string { } + /** + * @param string $separator + * + * @return Breadcrumbs + */ + public function setSeparator(string $separator): Breadcrumbs + { + } + /** * Returns the internal breadcrumbs array * diff --git a/src/Html/Escaper.php b/src/Html/Escaper.php index e500e0a8..8d76a301 100644 --- a/src/Html/Escaper.php +++ b/src/Html/Escaper.php @@ -30,7 +30,6 @@ */ class Escaper implements \Phalcon\Html\Escaper\EscaperInterface { - /** * @var bool */ @@ -49,29 +48,20 @@ class Escaper implements \Phalcon\Html\Escaper\EscaperInterface protected $flags = 11; /** - * @return string - */ - public function getEncoding(): string - { - } - - /** - * ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401 + * Escapes a HTML attribute string or array * - * @return int - */ - public function getFlags(): int - { - } - - /** - * Escapes a HTML attribute string + * If the input is an array, the keys are the attribute names and the + * values are attribute values. If a value is boolean (true/false) then + * the attribute will have no value: + * `['disabled' => true]` -> `'disabled`` * - * @param string $input + * The resulting string will have attribute pairs separated by a space. + * + * @param array|string $input * * @return string */ - public function attributes(string $input): string + public function attributes($input): string { } @@ -162,6 +152,20 @@ public function escapeUrl(string $input): string { } + /** + * @return string + */ + public function getEncoding(): string + { + } + + /** + * @return int + */ + public function getFlags(): int + { + } + /** * Escapes a HTML string. Internally uses htmlspecialchars * @@ -232,9 +236,9 @@ public function setEncoding(string $encoding): EscaperInterface * ``` * * @param int $flags - * @return Escaper + * @return EscaperInterface */ - public function setFlags(int $flags): Escaper + public function setFlags(int $flags): EscaperInterface { } @@ -264,6 +268,17 @@ public function url(string $input): string { } + /** + * Proxy method for testing + * + * @param string $input + * + * @return string + */ + protected function phpHtmlSpecialChars(string $input): string + { + } + /** * @param string $input * diff --git a/src/Html/Escaper/EscaperInterface.php b/src/Html/Escaper/EscaperInterface.php index 7c913dc9..7942cdd8 100644 --- a/src/Html/Escaper/EscaperInterface.php +++ b/src/Html/Escaper/EscaperInterface.php @@ -14,8 +14,6 @@ */ interface EscaperInterface { - - /** * Escapes a HTML attribute string * @@ -75,7 +73,7 @@ public function setEncoding(string $encoding): EscaperInterface; * @param int $flags * @return EscaperInterface */ - public function setHtmlQuoteType(int $flags): EscaperInterface; + public function setFlags(int $flags): EscaperInterface; /** * Escapes a URL. Internally uses rawurlencode diff --git a/src/Html/Escaper/Exception.php b/src/Html/Escaper/Exception.php index 084e1784..0816474d 100644 --- a/src/Html/Escaper/Exception.php +++ b/src/Html/Escaper/Exception.php @@ -14,6 +14,4 @@ */ class Exception extends \Exception { - - } diff --git a/src/Html/EscaperFactory.php b/src/Html/EscaperFactory.php index 0fe176bf..c1824f58 100644 --- a/src/Html/EscaperFactory.php +++ b/src/Html/EscaperFactory.php @@ -14,8 +14,6 @@ */ class EscaperFactory { - - /** * Create a new instance of the object * diff --git a/src/Html/Exception.php b/src/Html/Exception.php index 9dfb7bf0..22ebfabc 100644 --- a/src/Html/Exception.php +++ b/src/Html/Exception.php @@ -16,6 +16,4 @@ */ class Exception extends \Exception { - - } diff --git a/src/Html/Helper/AbstractHelper.php b/src/Html/Helper/AbstractHelper.php index 5c9b0051..53ecc8fb 100644 --- a/src/Html/Helper/AbstractHelper.php +++ b/src/Html/Helper/AbstractHelper.php @@ -20,7 +20,6 @@ */ abstract class AbstractHelper { - /** * @var string */ diff --git a/src/Html/Helper/AbstractList.php b/src/Html/Helper/AbstractList.php index 09d844d5..5f2c247a 100644 --- a/src/Html/Helper/AbstractList.php +++ b/src/Html/Helper/AbstractList.php @@ -16,7 +16,6 @@ */ abstract class AbstractList extends \Phalcon\Html\Helper\AbstractHelper { - /** * @var array */ diff --git a/src/Html/Helper/AbstractSeries.php b/src/Html/Helper/AbstractSeries.php index aca8a5e7..3e89c07b 100644 --- a/src/Html/Helper/AbstractSeries.php +++ b/src/Html/Helper/AbstractSeries.php @@ -15,7 +15,6 @@ */ abstract class AbstractSeries extends \Phalcon\Html\Helper\AbstractHelper { - /** * @var array */ diff --git a/src/Html/Helper/Anchor.php b/src/Html/Helper/Anchor.php index 6a1ef96f..343d24a7 100644 --- a/src/Html/Helper/Anchor.php +++ b/src/Html/Helper/Anchor.php @@ -16,8 +16,6 @@ */ class Anchor extends \Phalcon\Html\Helper\AbstractHelper { - - /** * Produce a tag * diff --git a/src/Html/Helper/Base.php b/src/Html/Helper/Base.php index 2395adc0..2b7dc357 100644 --- a/src/Html/Helper/Base.php +++ b/src/Html/Helper/Base.php @@ -16,8 +16,6 @@ */ class Base extends \Phalcon\Html\Helper\AbstractHelper { - - /** * Produce a `` tag. * diff --git a/src/Html/Helper/Body.php b/src/Html/Helper/Body.php index d887130e..3c899e07 100644 --- a/src/Html/Helper/Body.php +++ b/src/Html/Helper/Body.php @@ -16,8 +16,6 @@ */ class Body extends \Phalcon\Html\Helper\AbstractHelper { - - /** * Produce a `` tag. * diff --git a/src/Html/Helper/Button.php b/src/Html/Helper/Button.php index 299f5e85..f218f63a 100644 --- a/src/Html/Helper/Button.php +++ b/src/Html/Helper/Button.php @@ -16,8 +16,6 @@ */ class Button extends \Phalcon\Html\Helper\AbstractHelper { - - /** * Produce a `