From a1ca6a97de65fecaa645be2c2644e1cc909aa1f8 Mon Sep 17 00:00:00 2001 From: azghanvi Date: Fri, 16 Nov 2018 02:07:31 +0500 Subject: [PATCH 01/20] Update Body.php Fix for plain text messages --- src/Core/Message/Body.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Core/Message/Body.php b/src/Core/Message/Body.php index c82980f..0a670a3 100644 --- a/src/Core/Message/Body.php +++ b/src/Core/Message/Body.php @@ -84,6 +84,7 @@ class Body $part = $structure->parts[1]; $this->message = imap_fetchbody($this->connection->getStream(),$this->message_number , $option); + $this->encoding = $part->encoding; if($part->encoding == 3) { @@ -94,6 +95,10 @@ class Body $this->message = imap_qprint($this->message); } } + else { + $this->message = imap_fetchbody($this->connection->getStream(),$this->message_number , $option); + $this->message = imap_body($this->connection->getStream(),$this->message_number , $option); + } return $this->message; } @@ -107,4 +112,4 @@ class Body { return $this->encoding; } -} \ No newline at end of file +} From e060323e5c763a2b618badea02f596d68e081f08 Mon Sep 17 00:00:00 2001 From: azghanvi Date: Fri, 16 Nov 2018 02:09:07 +0500 Subject: [PATCH 02/20] Update Body.php --- src/Core/Message/Body.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Core/Message/Body.php b/src/Core/Message/Body.php index 0a670a3..adbbe39 100644 --- a/src/Core/Message/Body.php +++ b/src/Core/Message/Body.php @@ -96,7 +96,6 @@ class Body } } else { - $this->message = imap_fetchbody($this->connection->getStream(),$this->message_number , $option); $this->message = imap_body($this->connection->getStream(),$this->message_number , $option); } From 231d4a4de72526235e2f9cadd02c814ddf3d35d9 Mon Sep 17 00:00:00 2001 From: Clivern Date: Mon, 25 Feb 2019 14:47:07 +0100 Subject: [PATCH 03/20] bump version to 1.0.4 --- README.md | 5 +++++ src/Core/Message/Body.php | 7 +++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 38732f9..3086349 100644 --- a/README.md +++ b/README.md @@ -265,6 +265,11 @@ Misc Changelog --------- +Version 1.0.4: +``` +Fix for plain text messages. +``` + Version 1.0.3: ``` Fix Attachment Object. diff --git a/src/Core/Message/Body.php b/src/Core/Message/Body.php index adbbe39..68765e2 100644 --- a/src/Core/Message/Body.php +++ b/src/Core/Message/Body.php @@ -80,7 +80,7 @@ class Body $structure = imap_fetchstructure($this->connection->getStream(), $this->message_number); - if(isset($structure->parts) && is_array($structure->parts) && isset($structure->parts[1])) { + if (isset($structure->parts) && is_array($structure->parts) && isset($structure->parts[1])) { $part = $structure->parts[1]; $this->message = imap_fetchbody($this->connection->getStream(),$this->message_number , $option); @@ -94,9 +94,8 @@ class Body } else { $this->message = imap_qprint($this->message); } - } - else { - $this->message = imap_body($this->connection->getStream(),$this->message_number , $option); + } else { + $this->message = imap_body($this->connection->getStream(), $this->message_number, $option); } return $this->message; From 5194042e1595a183e83cd91745d2e83fed9fe4ba Mon Sep 17 00:00:00 2001 From: "A. F" Date: Mon, 25 Feb 2019 14:55:29 +0100 Subject: [PATCH 04/20] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3086349..edb2ed5 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Imap ==== :mailbox_with_mail: Access Mailbox Using PHP IMAP. -*Current Version: 1.0.3* +*Current Version: 1.0.4* [![Build Status](https://travis-ci.org/Clivern/Imap.svg?branch=master)](https://travis-ci.org/Clivern/Imap) @@ -295,4 +295,4 @@ Acknowledgements © 2017, Clivern. Released under the [MIT License](http://www.opensource.org/licenses/mit-license.php). -**Imap** is authored and maintained by [@clivern](http://github.com/clivern). \ No newline at end of file +**Imap** is authored and maintained by [@clivern](http://github.com/clivern). From 3b2904c5afc3b40f664d0d644cc87b2876b1d021 Mon Sep 17 00:00:00 2001 From: Clivern Date: Mon, 25 Feb 2019 19:27:36 +0100 Subject: [PATCH 05/20] enhance code style issues and create Makefile --- phpunit.xml.dist | 23 + .editorconfig | 15 - .gitignore | 6 +- .php_cs.dist | 39 + .travis.yml | 3 +- LICENSE | 2 +- Makefile | 57 + composer.json | 7 +- composer.lock | 1405 +++++++++++++++-- phpcs.xml | 7 + src/Core/Connection.php | 114 +- .../AuthenticationFailedException.php | 17 +- .../Exception/FolderNotExistException.php | 17 +- src/Core/Exception/MessageDeleteException.php | 17 +- .../MessageDoesNotExistException.php | 17 +- src/Core/Exception/MessageMoveException.php | 17 +- src/Core/Message.php | 65 +- src/Core/Message/Action.php | 39 +- src/Core/Message/Attachment.php | 109 +- src/Core/Message/Body.php | 47 +- src/Core/Message/Header.php | 64 +- src/Core/MessageIterator.php | 31 +- src/Core/Search.php | 38 +- src/Core/Search/Condition/All.php | 17 +- src/Core/Search/Condition/Answered.php | 17 +- src/Core/Search/Condition/BCC.php | 17 +- src/Core/Search/Condition/Before.php | 17 +- src/Core/Search/Condition/Body.php | 17 +- src/Core/Search/Condition/CC.php | 17 +- src/Core/Search/Condition/Deleted.php | 17 +- src/Core/Search/Condition/Flagged.php | 17 +- src/Core/Search/Condition/From.php | 17 +- src/Core/Search/Condition/Keyword.php | 17 +- src/Core/Search/Condition/NewFlag.php | 17 +- src/Core/Search/Condition/Old.php | 17 +- src/Core/Search/Condition/On.php | 17 +- src/Core/Search/Condition/Recent.php | 17 +- src/Core/Search/Condition/Seen.php | 17 +- src/Core/Search/Condition/Since.php | 17 +- src/Core/Search/Condition/Subject.php | 17 +- src/Core/Search/Condition/Text.php | 17 +- src/Core/Search/Condition/To.php | 17 +- src/Core/Search/Condition/UnAnswered.php | 17 +- src/Core/Search/Condition/UnDeleted.php | 17 +- src/Core/Search/Condition/UnFlagged.php | 17 +- src/Core/Search/Condition/UnKeyword.php | 17 +- src/Core/Search/Condition/UnSeen.php | 17 +- src/Core/Search/Contract/Condition.php | 12 +- src/MailBox.php | 75 +- tests/Core/ConnectionTest.php | 18 +- tests/Core/SearchTest.php | 45 +- tests/MailBoxTest.php | 12 +- 52 files changed, 2047 insertions(+), 679 deletions(-) create mode 100644 phpunit.xml.dist delete mode 100644 .editorconfig create mode 100644 .php_cs.dist create mode 100644 Makefile create mode 100644 phpcs.xml diff --git a/ phpunit.xml.dist b/ phpunit.xml.dist new file mode 100644 index 0000000..16de795 --- /dev/null +++ b/ phpunit.xml.dist @@ -0,0 +1,23 @@ + + + + + + + + + + tests/ + + + + + + ./src/ + + + \ No newline at end of file diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 9d49909..0000000 --- a/.editorconfig +++ /dev/null @@ -1,15 +0,0 @@ -; This file is for unifying the coding style for different editors and IDEs. -; More information at http://editorconfig.org - -root = true - -[*] -charset = utf-8 -indent_size = 4 -indent_style = space -end_of_line = lf -insert_final_newline = true -trim_trailing_whitespace = true - -[*.md] -trim_trailing_whitespace = false \ No newline at end of file diff --git a/.gitignore b/.gitignore index 462abd2..4e52068 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ /vendor -.phpintel/ coverage.clover -build/ -index.php \ No newline at end of file +.env +.php_cs.cache +build \ No newline at end of file diff --git a/.php_cs.dist b/.php_cs.dist new file mode 100644 index 0000000..7fc2a42 --- /dev/null +++ b/.php_cs.dist @@ -0,0 +1,39 @@ + +COMMENT; +$finder = PhpCsFixer\Finder::create() + ->in(__DIR__) + ->exclude('var') +; +return PhpCsFixer\Config::create() + ->setIndent(" ") + ->setLineEnding("\n") + ->setRiskyAllowed(true) + ->setRules([ + '@PSR2' => true, + '@Symfony' => true, + '@Symfony:risky' => true, + 'array_syntax' => ['syntax' => 'short'], + 'header_comment' => ['header' => $fileHeaderComment, 'separate' => 'both'], + 'linebreak_after_opening_tag' => true, + 'mb_str_functions' => true, + 'no_php4_constructor' => true, + 'no_unreachable_default_argument_value' => true, + 'no_useless_else' => true, + 'no_useless_return' => true, + 'ordered_imports' => true, + 'php_unit_strict' => true, + 'phpdoc_order' => true, + 'semicolon_after_instruction' => true, + 'strict_comparison' => true, + 'strict_param' => true, + 'phpdoc_add_missing_param_annotation' => true, + 'ordered_class_elements'=> true, + 'phpdoc_types_order' => true, + 'logical_operators' => true, + ]) + ->setFinder($finder) + ->setCacheFile(__DIR__.'/.php_cs.cache') +; \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 6777756..54781ca 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,4 @@ language: php -dist: precise php: - 5.6 @@ -16,4 +15,4 @@ before_script: - travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-dist script: - - vendor/bin/phpunit --bootstrap vendor/autoload.php --coverage-text --coverage-clover=coverage.clover \ No newline at end of file + - make ci \ No newline at end of file diff --git a/LICENSE b/LICENSE index 59b5b31..661dac6 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2017 A. F +Copyright (c) 2017 Cliven Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7977003 --- /dev/null +++ b/Makefile @@ -0,0 +1,57 @@ +COMPOSER ?= composer +PHPUNIT_OPTS = + + +composer: + $(COMPOSER) install + + +fix: + ./vendor/bin/php-cs-fixer fix + + +fix-diff: + ./vendor/bin/php-cs-fixer fix --diff --dry-run -v + + +test: composer + vendor/bin/phpunit -c . + + +lint: lint-php phpcs php-cs lint-composer lint-eol + @echo All good. + + +lint-eol: + @echo "\n==> Validating unix style line endings of files:files" + @! grep -lIUr --color '^M' src/ composer.json composer.lock || ( echo '[ERROR] Above files have CRLF line endings' && exit 1 ) + @echo All files have valid line endings + + +lint-composer: + @echo "\n==> Validating composer.json and composer.lock:" + $(COMPOSER) validate --strict + + +lint-php: + @echo "\n==> Validating all php files:" + @find src tests -type f -name \*.php | while read file; do php -l "$$file" || exit 1; done + + +phpcs: + vendor/bin/phpcs + + +php-cs: + vendor/bin/php-cs-fixer fix --diff --dry-run -v + + +coverage: composer + vendor/bin/phpunit -c . + + +ci: composer lint test + @echo "All quality checks passed" + + +.PHONY: test composer coverage phpcs php-cs lint lint-php ci \ No newline at end of file diff --git a/composer.json b/composer.json index da4038f..660a422 100644 --- a/composer.json +++ b/composer.json @@ -4,7 +4,6 @@ "description": "Access Mailbox Using PHP IMAP", "keywords": ["clivern", "imap"], "license": "MIT", - "type": "project", "homepage": "https://github.com/clivern/imap", "authors": [ { @@ -17,7 +16,9 @@ "php": ">=5.6.4" }, "require-dev": { - "phpunit/phpunit": "~5.7" + "phpunit/phpunit": "~5.7", + "friendsofphp/php-cs-fixer": "^2.14", + "squizlabs/php_codesniffer": "^3.4" }, "autoload": { "psr-4": { @@ -32,4 +33,4 @@ "scripts": { "test": "phpunit" } -} \ No newline at end of file +} diff --git a/composer.lock b/composer.lock index 33e1cbb..770408b 100644 --- a/composer.lock +++ b/composer.lock @@ -1,40 +1,214 @@ { "_readme": [ "This file locks the dependencies of your project to a known state", - "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "09858dbd5ada4a10aae0f98d06c6340b", + "content-hash": "72e32d9720f8b30de799786db5951d66", "packages": [], "packages-dev": [ { - "name": "doctrine/instantiator", - "version": "1.0.5", + "name": "composer/semver", + "version": "1.4.2", "source": { "type": "git", - "url": "https://github.com/doctrine/instantiator.git", - "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d" + "url": "https://github.com/composer/semver.git", + "reference": "c7cb9a2095a074d131b65a8a0cd294479d785573" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/8e884e78f9f0eb1329e445619e04456e64d8051d", - "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d", + "url": "https://api.github.com/repos/composer/semver/zipball/c7cb9a2095a074d131b65a8a0cd294479d785573", + "reference": "c7cb9a2095a074d131b65a8a0cd294479d785573", "shasum": "" }, "require": { - "php": ">=5.3,<8.0-DEV" + "php": "^5.3.2 || ^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.5 || ^5.0.5", + "phpunit/phpunit-mock-objects": "2.3.0 || ^3.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Composer\\Semver\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nils Adermann", + "email": "naderman@naderman.de", + "homepage": "http://www.naderman.de" + }, + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + }, + { + "name": "Rob Bast", + "email": "rob.bast@gmail.com", + "homepage": "http://robbast.nl" + } + ], + "description": "Semver library that offers utilities, version constraint parsing and validation.", + "keywords": [ + "semantic", + "semver", + "validation", + "versioning" + ], + "time": "2016-08-30T16:08:34+00:00" + }, + { + "name": "composer/xdebug-handler", + "version": "1.3.2", + "source": { + "type": "git", + "url": "https://github.com/composer/xdebug-handler.git", + "reference": "d17708133b6c276d6e42ef887a877866b909d892" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/d17708133b6c276d6e42ef887a877866b909d892", + "reference": "d17708133b6c276d6e42ef887a877866b909d892", + "shasum": "" + }, + "require": { + "php": "^5.3.2 || ^7.0", + "psr/log": "^1.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5" + }, + "type": "library", + "autoload": { + "psr-4": { + "Composer\\XdebugHandler\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "John Stevenson", + "email": "john-stevenson@blueyonder.co.uk" + } + ], + "description": "Restarts a process without xdebug.", + "keywords": [ + "Xdebug", + "performance" + ], + "time": "2019-01-28T20:25:53+00:00" + }, + { + "name": "doctrine/annotations", + "version": "v1.6.0", + "source": { + "type": "git", + "url": "https://github.com/doctrine/annotations.git", + "reference": "c7f2050c68a9ab0bdb0f98567ec08d80ea7d24d5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/annotations/zipball/c7f2050c68a9ab0bdb0f98567ec08d80ea7d24d5", + "reference": "c7f2050c68a9ab0bdb0f98567ec08d80ea7d24d5", + "shasum": "" + }, + "require": { + "doctrine/lexer": "1.*", + "php": "^7.1" + }, + "require-dev": { + "doctrine/cache": "1.*", + "phpunit/phpunit": "^6.4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.6.x-dev" + } + }, + "autoload": { + "psr-4": { + "Doctrine\\Common\\Annotations\\": "lib/Doctrine/Common/Annotations" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Benjamin Eberlei", + "email": "kontakt@beberlei.de" + }, + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Jonathan Wage", + "email": "jonwage@gmail.com" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" + } + ], + "description": "Docblock Annotations Parser", + "homepage": "http://www.doctrine-project.org", + "keywords": [ + "annotations", + "docblock", + "parser" + ], + "time": "2017-12-06T07:11:42+00:00" + }, + { + "name": "doctrine/instantiator", + "version": "1.1.0", + "source": { + "type": "git", + "url": "https://github.com/doctrine/instantiator.git", + "reference": "185b8868aa9bf7159f5f953ed5afb2d7fcdc3bda" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/185b8868aa9bf7159f5f953ed5afb2d7fcdc3bda", + "reference": "185b8868aa9bf7159f5f953ed5afb2d7fcdc3bda", + "shasum": "" + }, + "require": { + "php": "^7.1" }, "require-dev": { "athletic/athletic": "~0.1.8", "ext-pdo": "*", "ext-phar": "*", - "phpunit/phpunit": "~4.0", - "squizlabs/php_codesniffer": "~2.0" + "phpunit/phpunit": "^6.2.3", + "squizlabs/php_codesniffer": "^3.0.2" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "1.2.x-dev" } }, "autoload": { @@ -59,41 +233,189 @@ "constructor", "instantiate" ], - "time": "2015-06-14T21:17:01+00:00" + "time": "2017-07-22T11:58:36+00:00" }, { - "name": "myclabs/deep-copy", - "version": "1.6.1", + "name": "doctrine/lexer", + "version": "v1.0.1", "source": { "type": "git", - "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "8e6e04167378abf1ddb4d3522d8755c5fd90d102" + "url": "https://github.com/doctrine/lexer.git", + "reference": "83893c552fd2045dd78aef794c31e694c37c0b8c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/8e6e04167378abf1ddb4d3522d8755c5fd90d102", - "reference": "8e6e04167378abf1ddb4d3522d8755c5fd90d102", + "url": "https://api.github.com/repos/doctrine/lexer/zipball/83893c552fd2045dd78aef794c31e694c37c0b8c", + "reference": "83893c552fd2045dd78aef794c31e694c37c0b8c", "shasum": "" }, "require": { - "php": ">=5.4.0" - }, - "require-dev": { - "doctrine/collections": "1.*", - "phpunit/phpunit": "~4.1" + "php": ">=5.3.2" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, "autoload": { - "psr-4": { - "DeepCopy\\": "src/DeepCopy/" + "psr-0": { + "Doctrine\\Common\\Lexer\\": "lib/" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], + "authors": [ + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" + } + ], + "description": "Base library for a lexer that can be used in Top-Down, Recursive Descent Parsers.", + "homepage": "http://www.doctrine-project.org", + "keywords": [ + "lexer", + "parser" + ], + "time": "2014-09-09T13:34:57+00:00" + }, + { + "name": "friendsofphp/php-cs-fixer", + "version": "v2.14.2", + "source": { + "type": "git", + "url": "https://github.com/FriendsOfPHP/PHP-CS-Fixer.git", + "reference": "ff401e58261ffc5934a58f795b3f95b355e276cb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/ff401e58261ffc5934a58f795b3f95b355e276cb", + "reference": "ff401e58261ffc5934a58f795b3f95b355e276cb", + "shasum": "" + }, + "require": { + "composer/semver": "^1.4", + "composer/xdebug-handler": "^1.2", + "doctrine/annotations": "^1.2", + "ext-json": "*", + "ext-tokenizer": "*", + "php": "^5.6 || ^7.0", + "php-cs-fixer/diff": "^1.3", + "symfony/console": "^3.4.17 || ^4.1.6", + "symfony/event-dispatcher": "^3.0 || ^4.0", + "symfony/filesystem": "^3.0 || ^4.0", + "symfony/finder": "^3.0 || ^4.0", + "symfony/options-resolver": "^3.0 || ^4.0", + "symfony/polyfill-php70": "^1.0", + "symfony/polyfill-php72": "^1.4", + "symfony/process": "^3.0 || ^4.0", + "symfony/stopwatch": "^3.0 || ^4.0" + }, + "require-dev": { + "johnkary/phpunit-speedtrap": "^1.1 || ^2.0 || ^3.0", + "justinrainbow/json-schema": "^5.0", + "keradus/cli-executor": "^1.2", + "mikey179/vfsstream": "^1.6", + "php-coveralls/php-coveralls": "^2.1", + "php-cs-fixer/accessible-object": "^1.0", + "php-cs-fixer/phpunit-constraint-isidenticalstring": "^1.0.1", + "php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "^1.0.1", + "phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1", + "phpunitgoodpractices/traits": "^1.5.1", + "symfony/phpunit-bridge": "^4.0" + }, + "suggest": { + "ext-mbstring": "For handling non-UTF8 characters in cache signature.", + "php-cs-fixer/phpunit-constraint-isidenticalstring": "For IsIdenticalString constraint.", + "php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "For XmlMatchesXsd constraint.", + "symfony/polyfill-mbstring": "When enabling `ext-mbstring` is not possible." + }, + "bin": [ + "php-cs-fixer" + ], + "type": "application", + "autoload": { + "psr-4": { + "PhpCsFixer\\": "src/" + }, + "classmap": [ + "tests/Test/AbstractFixerTestCase.php", + "tests/Test/AbstractIntegrationCaseFactory.php", + "tests/Test/AbstractIntegrationTestCase.php", + "tests/Test/Assert/AssertTokensTrait.php", + "tests/Test/IntegrationCase.php", + "tests/Test/IntegrationCaseFactory.php", + "tests/Test/IntegrationCaseFactoryInterface.php", + "tests/Test/InternalIntegrationCaseFactory.php", + "tests/TestCase.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Dariusz Rumiński", + "email": "dariusz.ruminski@gmail.com" + }, + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + } + ], + "description": "A tool to automatically fix PHP code style", + "time": "2019-02-17T17:44:13+00:00" + }, + { + "name": "myclabs/deep-copy", + "version": "1.8.1", + "source": { + "type": "git", + "url": "https://github.com/myclabs/DeepCopy.git", + "reference": "3e01bdad3e18354c3dce54466b7fbe33a9f9f7f8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/3e01bdad3e18354c3dce54466b7fbe33a9f9f7f8", + "reference": "3e01bdad3e18354c3dce54466b7fbe33a9f9f7f8", + "shasum": "" + }, + "require": { + "php": "^7.1" + }, + "replace": { + "myclabs/deep-copy": "self.version" + }, + "require-dev": { + "doctrine/collections": "^1.0", + "doctrine/common": "^2.6", + "phpunit/phpunit": "^7.1" + }, + "type": "library", + "autoload": { + "psr-4": { + "DeepCopy\\": "src/DeepCopy/" + }, + "files": [ + "src/DeepCopy/deep_copy.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], "description": "Create deep copies (clones) of your objects", - "homepage": "https://github.com/myclabs/DeepCopy", "keywords": [ "clone", "copy", @@ -101,20 +423,116 @@ "object", "object graph" ], - "time": "2017-04-12T18:52:22+00:00" + "time": "2018-06-11T23:09:50+00:00" }, { - "name": "phpdocumentor/reflection-common", - "version": "1.0", + "name": "paragonie/random_compat", + "version": "v9.99.99", "source": { "type": "git", - "url": "https://github.com/phpDocumentor/ReflectionCommon.git", - "reference": "144c307535e82c8fdcaacbcfc1d6d8eeb896687c" + "url": "https://github.com/paragonie/random_compat.git", + "reference": "84b4dfb120c6f9b4ff7b3685f9b8f1aa365a0c95" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/144c307535e82c8fdcaacbcfc1d6d8eeb896687c", - "reference": "144c307535e82c8fdcaacbcfc1d6d8eeb896687c", + "url": "https://api.github.com/repos/paragonie/random_compat/zipball/84b4dfb120c6f9b4ff7b3685f9b8f1aa365a0c95", + "reference": "84b4dfb120c6f9b4ff7b3685f9b8f1aa365a0c95", + "shasum": "" + }, + "require": { + "php": "^7" + }, + "require-dev": { + "phpunit/phpunit": "4.*|5.*", + "vimeo/psalm": "^1" + }, + "suggest": { + "ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes." + }, + "type": "library", + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Paragon Initiative Enterprises", + "email": "security@paragonie.com", + "homepage": "https://paragonie.com" + } + ], + "description": "PHP 5.x polyfill for random_bytes() and random_int() from PHP 7", + "keywords": [ + "csprng", + "polyfill", + "pseudorandom", + "random" + ], + "time": "2018-07-02T15:55:56+00:00" + }, + { + "name": "php-cs-fixer/diff", + "version": "v1.3.0", + "source": { + "type": "git", + "url": "https://github.com/PHP-CS-Fixer/diff.git", + "reference": "78bb099e9c16361126c86ce82ec4405ebab8e756" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHP-CS-Fixer/diff/zipball/78bb099e9c16361126c86ce82ec4405ebab8e756", + "reference": "78bb099e9c16361126c86ce82ec4405ebab8e756", + "shasum": "" + }, + "require": { + "php": "^5.6 || ^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^5.7.23 || ^6.4.3", + "symfony/process": "^3.3" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Kore Nordmann", + "email": "mail@kore-nordmann.de" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "SpacePossum" + } + ], + "description": "sebastian/diff v2 backport support for PHP5.6", + "homepage": "https://github.com/PHP-CS-Fixer", + "keywords": [ + "diff" + ], + "time": "2018-02-15T16:58:55+00:00" + }, + { + "name": "phpdocumentor/reflection-common", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/ReflectionCommon.git", + "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6", + "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6", "shasum": "" }, "require": { @@ -155,33 +573,39 @@ "reflection", "static analysis" ], - "time": "2015-12-27T11:43:31+00:00" + "time": "2017-09-11T18:02:19+00:00" }, { "name": "phpdocumentor/reflection-docblock", - "version": "3.2.2", + "version": "4.3.0", "source": { "type": "git", "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "4aada1f93c72c35e22fb1383b47fee43b8f1d157" + "reference": "94fd0001232e47129dd3504189fa1c7225010d08" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/4aada1f93c72c35e22fb1383b47fee43b8f1d157", - "reference": "4aada1f93c72c35e22fb1383b47fee43b8f1d157", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/94fd0001232e47129dd3504189fa1c7225010d08", + "reference": "94fd0001232e47129dd3504189fa1c7225010d08", "shasum": "" }, "require": { - "php": ">=5.5", - "phpdocumentor/reflection-common": "^1.0@dev", - "phpdocumentor/type-resolver": "^0.3.0", + "php": "^7.0", + "phpdocumentor/reflection-common": "^1.0.0", + "phpdocumentor/type-resolver": "^0.4.0", "webmozart/assert": "^1.0" }, "require-dev": { - "mockery/mockery": "^0.9.4", - "phpunit/phpunit": "^4.4" + "doctrine/instantiator": "~1.0.5", + "mockery/mockery": "^1.0", + "phpunit/phpunit": "^6.4" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.x-dev" + } + }, "autoload": { "psr-4": { "phpDocumentor\\Reflection\\": [ @@ -200,20 +624,20 @@ } ], "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", - "time": "2017-08-08T06:39:58+00:00" + "time": "2017-11-30T07:14:17+00:00" }, { "name": "phpdocumentor/type-resolver", - "version": "0.3.0", + "version": "0.4.0", "source": { "type": "git", "url": "https://github.com/phpDocumentor/TypeResolver.git", - "reference": "fb3933512008d8162b3cdf9e18dba9309b7c3773" + "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/fb3933512008d8162b3cdf9e18dba9309b7c3773", - "reference": "fb3933512008d8162b3cdf9e18dba9309b7c3773", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/9c977708995954784726e25d0cd1dddf4e65b0f7", + "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7", "shasum": "" }, "require": { @@ -247,37 +671,37 @@ "email": "me@mikevanriel.com" } ], - "time": "2017-06-03T08:32:36+00:00" + "time": "2017-07-14T14:27:02+00:00" }, { "name": "phpspec/prophecy", - "version": "v1.7.0", + "version": "1.8.0", "source": { "type": "git", "url": "https://github.com/phpspec/prophecy.git", - "reference": "93d39f1f7f9326d746203c7c056f300f7f126073" + "reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpspec/prophecy/zipball/93d39f1f7f9326d746203c7c056f300f7f126073", - "reference": "93d39f1f7f9326d746203c7c056f300f7f126073", + "url": "https://api.github.com/repos/phpspec/prophecy/zipball/4ba436b55987b4bf311cb7c6ba82aa528aac0a06", + "reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06", "shasum": "" }, "require": { "doctrine/instantiator": "^1.0.2", "php": "^5.3|^7.0", - "phpdocumentor/reflection-docblock": "^2.0|^3.0.2", - "sebastian/comparator": "^1.1|^2.0", + "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0", + "sebastian/comparator": "^1.1|^2.0|^3.0", "sebastian/recursion-context": "^1.0|^2.0|^3.0" }, "require-dev": { "phpspec/phpspec": "^2.5|^3.2", - "phpunit/phpunit": "^4.8 || ^5.6.5" + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5 || ^7.1" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.6.x-dev" + "dev-master": "1.8.x-dev" } }, "autoload": { @@ -310,7 +734,7 @@ "spy", "stub" ], - "time": "2017-03-02T20:05:34+00:00" + "time": "2018-08-05T17:53:17+00:00" }, { "name": "phpunit/php-code-coverage", @@ -377,16 +801,16 @@ }, { "name": "phpunit/php-file-iterator", - "version": "1.4.2", + "version": "1.4.5", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "3cc8f69b3028d0f96a9078e6295d86e9bf019be5" + "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/3cc8f69b3028d0f96a9078e6295d86e9bf019be5", - "reference": "3cc8f69b3028d0f96a9078e6295d86e9bf019be5", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/730b01bc3e867237eaac355e06a36b85dd93a8b4", + "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4", "shasum": "" }, "require": { @@ -420,7 +844,7 @@ "filesystem", "iterator" ], - "time": "2016-10-03T07:40:28+00:00" + "time": "2017-11-27T13:52:08+00:00" }, { "name": "phpunit/php-text-template", @@ -514,29 +938,29 @@ }, { "name": "phpunit/php-token-stream", - "version": "1.4.11", + "version": "2.0.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-token-stream.git", - "reference": "e03f8f67534427a787e21a385a67ec3ca6978ea7" + "reference": "791198a2c6254db10131eecfe8c06670700904db" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/e03f8f67534427a787e21a385a67ec3ca6978ea7", - "reference": "e03f8f67534427a787e21a385a67ec3ca6978ea7", + "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/791198a2c6254db10131eecfe8c06670700904db", + "reference": "791198a2c6254db10131eecfe8c06670700904db", "shasum": "" }, "require": { "ext-tokenizer": "*", - "php": ">=5.3.3" + "php": "^7.0" }, "require-dev": { - "phpunit/phpunit": "~4.2" + "phpunit/phpunit": "^6.2.4" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.4-dev" + "dev-master": "2.0-dev" } }, "autoload": { @@ -559,20 +983,20 @@ "keywords": [ "tokenizer" ], - "time": "2017-02-27T10:12:30+00:00" + "time": "2017-11-27T05:48:46+00:00" }, { "name": "phpunit/phpunit", - "version": "5.7.21", + "version": "5.7.27", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "3b91adfb64264ddec5a2dee9851f354aa66327db" + "reference": "b7803aeca3ccb99ad0a506fa80b64cd6a56bbc0c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/3b91adfb64264ddec5a2dee9851f354aa66327db", - "reference": "3b91adfb64264ddec5a2dee9851f354aa66327db", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/b7803aeca3ccb99ad0a506fa80b64cd6a56bbc0c", + "reference": "b7803aeca3ccb99ad0a506fa80b64cd6a56bbc0c", "shasum": "" }, "require": { @@ -596,8 +1020,8 @@ "sebastian/global-state": "^1.1", "sebastian/object-enumerator": "~2.0", "sebastian/resource-operations": "~1.0", - "sebastian/version": "~1.0.3|~2.0", - "symfony/yaml": "~2.1|~3.0" + "sebastian/version": "^1.0.6|^2.0.1", + "symfony/yaml": "~2.1|~3.0|~4.0" }, "conflict": { "phpdocumentor/reflection-docblock": "3.0.2" @@ -641,7 +1065,7 @@ "testing", "xunit" ], - "time": "2017-06-21T08:11:54+00:00" + "time": "2018-02-01T05:50:59+00:00" }, { "name": "phpunit/phpunit-mock-objects", @@ -700,8 +1124,56 @@ "mock", "xunit" ], + "abandoned": true, "time": "2017-06-30T09:13:00+00:00" }, + { + "name": "psr/log", + "version": "1.1.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/log.git", + "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/log/zipball/6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd", + "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Log\\": "Psr/Log/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interface for logging libraries", + "homepage": "https://github.com/php-fig/log", + "keywords": [ + "log", + "psr", + "psr-3" + ], + "time": "2018-11-20T15:27:04+00:00" + }, { "name": "sebastian/code-unit-reverse-lookup", "version": "1.0.1", @@ -1216,24 +1688,766 @@ "time": "2016-10-03T07:35:21+00:00" }, { - "name": "symfony/yaml", - "version": "v3.3.6", + "name": "squizlabs/php_codesniffer", + "version": "3.4.0", "source": { "type": "git", - "url": "https://github.com/symfony/yaml.git", - "reference": "ddc23324e6cfe066f3dd34a37ff494fa80b617ed" + "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", + "reference": "379deb987e26c7cd103a7b387aea178baec96e48" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/ddc23324e6cfe066f3dd34a37ff494fa80b617ed", - "reference": "ddc23324e6cfe066f3dd34a37ff494fa80b617ed", + "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/379deb987e26c7cd103a7b387aea178baec96e48", + "reference": "379deb987e26c7cd103a7b387aea178baec96e48", "shasum": "" }, "require": { - "php": ">=5.5.9" + "ext-simplexml": "*", + "ext-tokenizer": "*", + "ext-xmlwriter": "*", + "php": ">=5.4.0" }, "require-dev": { - "symfony/console": "~2.8|~3.0" + "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0" + }, + "bin": [ + "bin/phpcs", + "bin/phpcbf" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.x-dev" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Greg Sherwood", + "role": "lead" + } + ], + "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.", + "homepage": "http://www.squizlabs.com/php-codesniffer", + "keywords": [ + "phpcs", + "standards" + ], + "time": "2018-12-19T23:57:18+00:00" + }, + { + "name": "symfony/console", + "version": "v4.2.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/console.git", + "reference": "1f0ad51dfde4da8a6070f06adc58b4e37cbb37a4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/console/zipball/1f0ad51dfde4da8a6070f06adc58b4e37cbb37a4", + "reference": "1f0ad51dfde4da8a6070f06adc58b4e37cbb37a4", + "shasum": "" + }, + "require": { + "php": "^7.1.3", + "symfony/contracts": "^1.0", + "symfony/polyfill-mbstring": "~1.0" + }, + "conflict": { + "symfony/dependency-injection": "<3.4", + "symfony/process": "<3.3" + }, + "provide": { + "psr/log-implementation": "1.0" + }, + "require-dev": { + "psr/log": "~1.0", + "symfony/config": "~3.4|~4.0", + "symfony/dependency-injection": "~3.4|~4.0", + "symfony/event-dispatcher": "~3.4|~4.0", + "symfony/lock": "~3.4|~4.0", + "symfony/process": "~3.4|~4.0" + }, + "suggest": { + "psr/log": "For using the console logger", + "symfony/event-dispatcher": "", + "symfony/lock": "", + "symfony/process": "" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.2-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\Console\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony Console Component", + "homepage": "https://symfony.com", + "time": "2019-01-25T14:35:16+00:00" + }, + { + "name": "symfony/contracts", + "version": "v1.0.2", + "source": { + "type": "git", + "url": "https://github.com/symfony/contracts.git", + "reference": "1aa7ab2429c3d594dd70689604b5cf7421254cdf" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/contracts/zipball/1aa7ab2429c3d594dd70689604b5cf7421254cdf", + "reference": "1aa7ab2429c3d594dd70689604b5cf7421254cdf", + "shasum": "" + }, + "require": { + "php": "^7.1.3" + }, + "require-dev": { + "psr/cache": "^1.0", + "psr/container": "^1.0" + }, + "suggest": { + "psr/cache": "When using the Cache contracts", + "psr/container": "When using the Service contracts", + "symfony/cache-contracts-implementation": "", + "symfony/service-contracts-implementation": "", + "symfony/translation-contracts-implementation": "" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\": "" + }, + "exclude-from-classmap": [ + "**/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "A set of abstractions extracted out of the Symfony components", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "time": "2018-12-05T08:06:11+00:00" + }, + { + "name": "symfony/event-dispatcher", + "version": "v4.2.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/event-dispatcher.git", + "reference": "bd09ad265cd50b2b9d09d65ce6aba2d29bc81fe1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/bd09ad265cd50b2b9d09d65ce6aba2d29bc81fe1", + "reference": "bd09ad265cd50b2b9d09d65ce6aba2d29bc81fe1", + "shasum": "" + }, + "require": { + "php": "^7.1.3", + "symfony/contracts": "^1.0" + }, + "conflict": { + "symfony/dependency-injection": "<3.4" + }, + "require-dev": { + "psr/log": "~1.0", + "symfony/config": "~3.4|~4.0", + "symfony/dependency-injection": "~3.4|~4.0", + "symfony/expression-language": "~3.4|~4.0", + "symfony/stopwatch": "~3.4|~4.0" + }, + "suggest": { + "symfony/dependency-injection": "", + "symfony/http-kernel": "" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.2-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\EventDispatcher\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony EventDispatcher Component", + "homepage": "https://symfony.com", + "time": "2019-01-16T20:35:37+00:00" + }, + { + "name": "symfony/filesystem", + "version": "v4.2.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/filesystem.git", + "reference": "7c16ebc2629827d4ec915a52ac809768d060a4ee" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/7c16ebc2629827d4ec915a52ac809768d060a4ee", + "reference": "7c16ebc2629827d4ec915a52ac809768d060a4ee", + "shasum": "" + }, + "require": { + "php": "^7.1.3", + "symfony/polyfill-ctype": "~1.8" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.2-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\Filesystem\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony Filesystem Component", + "homepage": "https://symfony.com", + "time": "2019-01-16T20:35:37+00:00" + }, + { + "name": "symfony/finder", + "version": "v4.2.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/finder.git", + "reference": "ef71816cbb264988bb57fe6a73f610888b9aa70c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/finder/zipball/ef71816cbb264988bb57fe6a73f610888b9aa70c", + "reference": "ef71816cbb264988bb57fe6a73f610888b9aa70c", + "shasum": "" + }, + "require": { + "php": "^7.1.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.2-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\Finder\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony Finder Component", + "homepage": "https://symfony.com", + "time": "2019-01-16T20:35:37+00:00" + }, + { + "name": "symfony/options-resolver", + "version": "v4.2.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/options-resolver.git", + "reference": "831b272963a8aa5a0613a1a7f013322d8161bbbb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/options-resolver/zipball/831b272963a8aa5a0613a1a7f013322d8161bbbb", + "reference": "831b272963a8aa5a0613a1a7f013322d8161bbbb", + "shasum": "" + }, + "require": { + "php": "^7.1.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.2-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\OptionsResolver\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony OptionsResolver Component", + "homepage": "https://symfony.com", + "keywords": [ + "config", + "configuration", + "options" + ], + "time": "2019-01-16T21:31:25+00:00" + }, + { + "name": "symfony/polyfill-ctype", + "version": "v1.10.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-ctype.git", + "reference": "e3d826245268269cd66f8326bd8bc066687b4a19" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/e3d826245268269cd66f8326bd8bc066687b4a19", + "reference": "e3d826245268269cd66f8326bd8bc066687b4a19", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "suggest": { + "ext-ctype": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.9-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Ctype\\": "" + }, + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + }, + { + "name": "Gert de Pagter", + "email": "BackEndTea@gmail.com" + } + ], + "description": "Symfony polyfill for ctype functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "ctype", + "polyfill", + "portable" + ], + "time": "2018-08-06T14:22:27+00:00" + }, + { + "name": "symfony/polyfill-mbstring", + "version": "v1.10.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-mbstring.git", + "reference": "c79c051f5b3a46be09205c73b80b346e4153e494" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/c79c051f5b3a46be09205c73b80b346e4153e494", + "reference": "c79c051f5b3a46be09205c73b80b346e4153e494", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "suggest": { + "ext-mbstring": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.9-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Mbstring\\": "" + }, + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for the Mbstring extension", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "mbstring", + "polyfill", + "portable", + "shim" + ], + "time": "2018-09-21T13:07:52+00:00" + }, + { + "name": "symfony/polyfill-php70", + "version": "v1.10.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php70.git", + "reference": "6b88000cdd431cd2e940caa2cb569201f3f84224" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php70/zipball/6b88000cdd431cd2e940caa2cb569201f3f84224", + "reference": "6b88000cdd431cd2e940caa2cb569201f3f84224", + "shasum": "" + }, + "require": { + "paragonie/random_compat": "~1.0|~2.0|~9.99", + "php": ">=5.3.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.9-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Php70\\": "" + }, + "files": [ + "bootstrap.php" + ], + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "time": "2018-09-21T06:26:08+00:00" + }, + { + "name": "symfony/polyfill-php72", + "version": "v1.10.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php72.git", + "reference": "9050816e2ca34a8e916c3a0ae8b9c2fccf68b631" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/9050816e2ca34a8e916c3a0ae8b9c2fccf68b631", + "reference": "9050816e2ca34a8e916c3a0ae8b9c2fccf68b631", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.9-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Php72\\": "" + }, + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "time": "2018-09-21T13:07:52+00:00" + }, + { + "name": "symfony/process", + "version": "v4.2.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/process.git", + "reference": "6c05edb11fbeff9e2b324b4270ecb17911a8b7ad" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/process/zipball/6c05edb11fbeff9e2b324b4270ecb17911a8b7ad", + "reference": "6c05edb11fbeff9e2b324b4270ecb17911a8b7ad", + "shasum": "" + }, + "require": { + "php": "^7.1.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.2-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\Process\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony Process Component", + "homepage": "https://symfony.com", + "time": "2019-01-24T22:05:03+00:00" + }, + { + "name": "symfony/stopwatch", + "version": "v4.2.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/stopwatch.git", + "reference": "b1a5f646d56a3290230dbc8edf2a0d62cda23f67" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/stopwatch/zipball/b1a5f646d56a3290230dbc8edf2a0d62cda23f67", + "reference": "b1a5f646d56a3290230dbc8edf2a0d62cda23f67", + "shasum": "" + }, + "require": { + "php": "^7.1.3", + "symfony/contracts": "^1.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.2-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\Stopwatch\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony Stopwatch Component", + "homepage": "https://symfony.com", + "time": "2019-01-16T20:31:39+00:00" + }, + { + "name": "symfony/yaml", + "version": "v4.2.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/yaml.git", + "reference": "d461670ee145092b7e2a56c1da7118f19cadadb0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/yaml/zipball/d461670ee145092b7e2a56c1da7118f19cadadb0", + "reference": "d461670ee145092b7e2a56c1da7118f19cadadb0", + "shasum": "" + }, + "require": { + "php": "^7.1.3", + "symfony/polyfill-ctype": "~1.8" + }, + "conflict": { + "symfony/console": "<3.4" + }, + "require-dev": { + "symfony/console": "~3.4|~4.0" }, "suggest": { "symfony/console": "For validating YAML files using the lint command" @@ -1241,7 +2455,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "3.3-dev" + "dev-master": "4.2-dev" } }, "autoload": { @@ -1268,24 +2482,25 @@ ], "description": "Symfony Yaml Component", "homepage": "https://symfony.com", - "time": "2017-07-23T12:43:26+00:00" + "time": "2019-01-16T20:35:37+00:00" }, { "name": "webmozart/assert", - "version": "1.2.0", + "version": "1.4.0", "source": { "type": "git", "url": "https://github.com/webmozart/assert.git", - "reference": "2db61e59ff05fe5126d152bd0655c9ea113e550f" + "reference": "83e253c8e0be5b0257b881e1827274667c5c17a9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/webmozart/assert/zipball/2db61e59ff05fe5126d152bd0655c9ea113e550f", - "reference": "2db61e59ff05fe5126d152bd0655c9ea113e550f", + "url": "https://api.github.com/repos/webmozart/assert/zipball/83e253c8e0be5b0257b881e1827274667c5c17a9", + "reference": "83e253c8e0be5b0257b881e1827274667c5c17a9", "shasum": "" }, "require": { - "php": "^5.3.3 || ^7.0" + "php": "^5.3.3 || ^7.0", + "symfony/polyfill-ctype": "^1.8" }, "require-dev": { "phpunit/phpunit": "^4.6", @@ -1318,7 +2533,7 @@ "check", "validate" ], - "time": "2016-11-23T20:04:58+00:00" + "time": "2018-12-25T11:19:39+00:00" } ], "aliases": [], diff --git a/phpcs.xml b/phpcs.xml new file mode 100644 index 0000000..6d5f469 --- /dev/null +++ b/phpcs.xml @@ -0,0 +1,7 @@ + + + Imap coding standard. + src + tests + + \ No newline at end of file diff --git a/src/Core/Connection.php b/src/Core/Connection.php index eac979a..a415224 100644 --- a/src/Core/Connection.php +++ b/src/Core/Connection.php @@ -1,6 +1,8 @@ + +/* + * This file is part of the Imap PHP package. + * (c) Clivern */ namespace Clivern\Imap\Core; @@ -8,20 +10,17 @@ namespace Clivern\Imap\Core; use Clivern\Imap\Core\Exception\AuthenticationFailedException; /** - * Connection Class - * - * @package Clivern\Imap\Core + * Connection Class. */ class Connection { - /** * @var string */ protected $server; /** - * @var integer + * @var int */ protected $port; @@ -61,7 +60,7 @@ class Connection protected $timeout; /** - * Class Constructor + * Class Constructor. * * @param string $server * @param string $port @@ -69,9 +68,8 @@ class Connection * @param string $password * @param string $flag * @param string $folder - * @return void */ - public function __construct($server, $port, $email, $password, $flag = "/ssl", $folder = "INBOX") + public function __construct($server, $port, $email, $password, $flag = '/ssl', $folder = 'INBOX') { $this->server = $server; $this->port = $port; @@ -82,55 +80,59 @@ class Connection } /** - * Connect to IMAP Email + * Connect to IMAP Email. + * + * @throws AuthenticationFailedException * * @return Connection - * @throws AuthenticationFailedException */ public function connect() { try { - $this->stream = imap_open("{" . $this->server . ":" . $this->port . $this->flag . "}" . $this->folder, $this->email, $this->password); + $this->stream = imap_open( + '{'.$this->server.':'.$this->port.$this->flag.'}'.$this->folder, + $this->email, + $this->password + ); } catch (\Exception $e) { - throw new AuthenticationFailedException("Error! Connecting to Imap Email."); + throw new AuthenticationFailedException('Error! Connecting to Imap Email.'); } return $this; } - public function reconnect($folder = "INBOX") + public function reconnect($folder = 'INBOX') { try { - imap_reopen($this->stream, "{" . $this->server . ":" . $this->port . $this->flag . "}" . $folder); + imap_reopen($this->stream, '{'.$this->server.':'.$this->port.$this->flag.'}'.$folder); } catch (\Exception $e) { - throw new AuthenticationFailedException("Error! Connecting to Imap Email."); + throw new AuthenticationFailedException('Error! Connecting to Imap Email.'); } } - public function survive($folder = "INBOX") + public function survive($folder = 'INBOX') { - if( !$this->ping() || ($this->folder != $folder) ) { + if (!$this->ping() || ($this->folder !== $folder)) { $this->reconnect($folder); } } /** - * Set Timeout + * Set Timeout. * * @param string $timeout_type it may be IMAP_OPENTIMEOUT, IMAP_READTIMEOUT, IMAP_WRITETIMEOUT, or IMAP_CLOSETIMEOUT - * @param integer $timeout time in seconds or -1 - * @return void + * @param int $timeout time in seconds or -1 */ public function setTimeout($timeout_type, $timeout) { $this->timeout_type = $timeout_type; $this->timeout = $timeout; - return (boolean) imap_timeout($timeout_type, $timeout); + return (bool) imap_timeout($timeout_type, $timeout); } /** - * Get Stream + * Get Stream. * * @return mixed */ @@ -140,7 +142,7 @@ class Connection } /** - * Get Server + * Get Server. * * @return string */ @@ -150,19 +152,20 @@ class Connection } /** - * Check Connection + * Check Connection. * - * @return boolean + * @return bool */ public function checkConnection() { - return (!is_null($this->stream) && imap_ping($this->stream)); + return null !== $this->stream && imap_ping($this->stream); } /** - * Get Quota + * Get Quota. + * + * @param string $folder * - * @param string $folder * @return array */ public function getQuota($folder = 'INBOX') @@ -171,20 +174,21 @@ class Connection return [ 'usage' => (isset($data['usage'])) ? $data['usage'] : false, - 'limit' => (isset($data['limit'])) ? $data['limit'] : false + 'limit' => (isset($data['limit'])) ? $data['limit'] : false, ]; } /** - * Get Status + * Get Status. + * + * @param string $folder + * @param string $flag * - * @param string $folder - * @param string $flag * @return array */ public function getStatus($folder = 'INBOX', $flag = SA_ALL) { - $data = imap_status($this->stream, "{" . $this->server . "}" . $folder, $flag); + $data = imap_status($this->stream, '{'.$this->server.'}'.$folder, $flag); return [ 'flags' => (isset($data->flags)) ? $data->flags : false, @@ -192,12 +196,12 @@ class Connection 'recent' => (isset($data->recent)) ? $data->recent : false, 'unseen' => (isset($data->unseen)) ? $data->unseen : false, 'uidnext' => (isset($data->uidnext)) ? $data->uidnext : false, - 'uidvalidity' => (isset($data->uidvalidity)) ? $data->uidvalidity : false + 'uidvalidity' => (isset($data->uidvalidity)) ? $data->uidvalidity : false, ]; } /** - * Check MailBox Data + * Check MailBox Data. * * @return array */ @@ -210,22 +214,22 @@ class Connection 'driver' => (isset($data->Driver)) ? $data->Driver : false, 'mailbox' => (isset($data->Mailbox)) ? $data->Mailbox : false, 'nmsgs' => (isset($data->Nmsgs)) ? $data->Nmsgs : false, - 'recent' => (isset($data->Recent)) ? $data->Recent : false + 'recent' => (isset($data->Recent)) ? $data->Recent : false, ]; } /** - * Ping Connection + * Ping Connection. * - * @return boolean + * @return bool */ public function ping() { - return (boolean) imap_ping($this->stream); + return (bool) imap_ping($this->stream); } /** - * Get Errors + * Get Errors. * * @return array */ @@ -233,11 +237,11 @@ class Connection { $errors = imap_errors(); - return (is_array($errors)) ? $errors : []; + return (\is_array($errors)) ? $errors : []; } /** - * Get Alerts + * Get Alerts. * * @return array */ @@ -245,11 +249,11 @@ class Connection { $alerts = imap_alerts(); - return (is_array($alerts)) ? $alerts : []; + return (\is_array($alerts)) ? $alerts : []; } /** - * Get Last Error + * Get Last Error. * * @return string */ @@ -261,22 +265,24 @@ class Connection } /** - * Disconnect + * Disconnect. * - * @param integer $flag - * @return boolean + * @param int $flag + * + * @return bool */ public function disconnect($flag = \CL_EXPUNGE) { - if( !is_null($this->stream) && imap_ping($this->stream) ){ - if( imap_close($this->stream, $flag) ){ + if (null !== $this->stream && imap_ping($this->stream)) { + if (imap_close($this->stream, $flag)) { $this->stream = null; + return true; - }else{ - return false; } + + return false; } return false; } -} \ No newline at end of file +} diff --git a/src/Core/Exception/AuthenticationFailedException.php b/src/Core/Exception/AuthenticationFailedException.php index 1d14b70..7a0737a 100644 --- a/src/Core/Exception/AuthenticationFailedException.php +++ b/src/Core/Exception/AuthenticationFailedException.php @@ -1,25 +1,24 @@ + +/* + * This file is part of the Imap PHP package. + * (c) Clivern */ namespace Clivern\Imap\Core\Exception; /** - * Connection Error Class - * - * @package Clivern\Imap\Core\Exception + * Connection Error Class. */ class AuthenticationFailedException extends \Exception { - /** - * Class Constructor + * Class Constructor. * * @param string $error */ public function __construct($error = null) { - parent::__construct(sprintf("Authentication failed with error: %s", $error)); + parent::__construct(sprintf('Authentication failed with error: %s', $error)); } -} \ No newline at end of file +} diff --git a/src/Core/Exception/FolderNotExistException.php b/src/Core/Exception/FolderNotExistException.php index 233d54d..b898cb5 100644 --- a/src/Core/Exception/FolderNotExistException.php +++ b/src/Core/Exception/FolderNotExistException.php @@ -1,25 +1,24 @@ + +/* + * This file is part of the Imap PHP package. + * (c) Clivern */ namespace Clivern\Imap\Core\Exception; /** - * Folder Not Exist Error Class - * - * @package Clivern\Imap\Core\Exception + * Folder Not Exist Error Class. */ class FolderNotExistException extends \Exception { - /** - * Class Constructor + * Class Constructor. * * @param string $folder */ public function __construct($folder = null) { - parent::__construct(sprintf("Mailbox folder not exist: %s", $folder)); + parent::__construct(sprintf('Mailbox folder not exist: %s', $folder)); } -} \ No newline at end of file +} diff --git a/src/Core/Exception/MessageDeleteException.php b/src/Core/Exception/MessageDeleteException.php index 2c54f87..81c5f02 100644 --- a/src/Core/Exception/MessageDeleteException.php +++ b/src/Core/Exception/MessageDeleteException.php @@ -1,25 +1,24 @@ + +/* + * This file is part of the Imap PHP package. + * (c) Clivern */ namespace Clivern\Imap\Core\Exception; /** - * Connection Error Class - * - * @package Clivern\Imap\Core\Exception + * Connection Error Class. */ class MessageDeleteException extends \Exception { - /** - * Class Constructor + * Class Constructor. * - * @param integer $message_number + * @param int $message_number */ public function __construct($message_number) { parent::__construct(sprintf('Message %s cannot be deleted', $message_number)); } -} \ No newline at end of file +} diff --git a/src/Core/Exception/MessageDoesNotExistException.php b/src/Core/Exception/MessageDoesNotExistException.php index ca58661..3ba4964 100644 --- a/src/Core/Exception/MessageDoesNotExistException.php +++ b/src/Core/Exception/MessageDoesNotExistException.php @@ -1,26 +1,25 @@ + +/* + * This file is part of the Imap PHP package. + * (c) Clivern */ namespace Clivern\Imap\Core\Exception; /** - * Connection Error Class - * - * @package Clivern\Imap\Core\Exception + * Connection Error Class. */ class MessageDoesNotExistException extends \Exception { - /** - * Class Constructor + * Class Constructor. * - * @param integer $number + * @param int $number * @param string $error */ public function __construct($number, $error) { parent::__construct(sprintf('Message %s does not exist: %s', $number, $error)); } -} \ No newline at end of file +} diff --git a/src/Core/Exception/MessageMoveException.php b/src/Core/Exception/MessageMoveException.php index 2584632..7424562 100644 --- a/src/Core/Exception/MessageMoveException.php +++ b/src/Core/Exception/MessageMoveException.php @@ -1,26 +1,25 @@ + +/* + * This file is part of the Imap PHP package. + * (c) Clivern */ namespace Clivern\Imap\Core\Exception; /** - * Connection Error Class - * - * @package Clivern\Imap\Core\Exception + * Connection Error Class. */ class MessageMoveException extends \Exception { - /** - * Class Constructor + * Class Constructor. * - * @param integer $message_number + * @param int $message_number * @param string $mailbox */ public function __construct($message_number, $mailbox) { parent::__construct(sprintf('Message %s cannot be moved to %s', $message_number, $mailbox)); } -} \ No newline at end of file +} diff --git a/src/Core/Message.php b/src/Core/Message.php index 2809cbe..86b55a0 100644 --- a/src/Core/Message.php +++ b/src/Core/Message.php @@ -1,20 +1,19 @@ + +/* + * This file is part of the Imap PHP package. + * (c) Clivern */ namespace Clivern\Imap\Core; -use Clivern\Imap\Core\Connection; -use Clivern\Imap\Core\Message\Header; use Clivern\Imap\Core\Message\Action; use Clivern\Imap\Core\Message\Attachment; use Clivern\Imap\Core\Message\Body; +use Clivern\Imap\Core\Message\Header; /** - * Message Class - * - * @package Clivern\Imap\Core + * Message Class. */ class Message { @@ -44,17 +43,17 @@ class Message protected $body; /** - * @var integer + * @var int */ protected $uid; /** - * @var integer + * @var int */ protected $msg_number; /** - * Message Constructor + * Message Constructor. * * @param Connection $connection */ @@ -67,9 +66,11 @@ class Message } /** - * Set Message Number + * Set Message Number. + * + * @param int $id + * @param mixed $msg_number * - * @param integer $id * @return Message */ public function setMsgNo($msg_number) @@ -80,9 +81,9 @@ class Message } /** - * Get Message Number + * Get Message Number. * - * @return integer + * @return int */ public function getMsgNo() { @@ -90,9 +91,10 @@ class Message } /** - * Set UID + * Set UID. + * + * @param int $uid * - * @param integer $uid * @return Message */ public function setUid($uid) @@ -103,9 +105,9 @@ class Message } /** - * Get UID + * Get UID. * - * @return integer + * @return int */ public function getUid() { @@ -113,17 +115,17 @@ class Message } /** - * Config Message Number & UID + * Config Message Number & UID. * * @return Message */ public function config() { - if( !$this->msg_number && $this->uid ){ + if (!$this->msg_number && $this->uid) { $this->msg_number = imap_msgno($this->connection->getStream(), $this->uid); } - if( !$this->uid && $this->msg_number ){ + if (!$this->uid && $this->msg_number) { $this->uid = imap_uid($this->connection->getStream(), $this->msg_number); } @@ -131,7 +133,7 @@ class Message } /** - * Get Message Header Object + * Get Message Header Object. * * @return Header */ @@ -141,7 +143,7 @@ class Message } /** - * Get Message Action Object + * Get Message Action Object. * * @return Action */ @@ -151,7 +153,7 @@ class Message } /** - * Get Message Body Object + * Get Message Body Object. * * @return Body */ @@ -161,13 +163,13 @@ class Message } /** - * Get Message Attachments + * Get Message Attachments. * * @return array */ public function attachments() { - if( !is_null($this->attachments) ){ + if (null !== $this->attachments) { return $this->attachments; } @@ -180,21 +182,22 @@ class Message $i = 0; foreach ($structure->parts as $index => $part) { - if (!$part->ifdisposition){ + if (!$part->ifdisposition) { continue; } $this->attachments[$i] = new Attachment($this->connection); $this->attachments[$i]->config($this->getMsgNo(), $this->getUid(), $index + 1, $part); - $i += 1; + ++$i; } return $this->attachments; } /** - * Get Body + * Get Body. + * + * @param int $options * - * @param integer $options * @return string */ public function getBody($options = 0) @@ -203,4 +206,4 @@ class Message return $body; } -} \ No newline at end of file +} diff --git a/src/Core/Message/Action.php b/src/Core/Message/Action.php index 3daaa45..40ddaa6 100644 --- a/src/Core/Message/Action.php +++ b/src/Core/Message/Action.php @@ -1,6 +1,8 @@ + +/* + * This file is part of the Imap PHP package. + * (c) Clivern */ namespace Clivern\Imap\Core\Message; @@ -8,31 +10,27 @@ namespace Clivern\Imap\Core\Message; use Clivern\Imap\Core\Connection; /** - * Action Class - * - * @package Clivern\Imap\Core\Message + * Action Class. */ class Action { - /** * @var Connection */ protected $connection; /** - * @var integer + * @var int */ protected $message_number; /** - * @var integer + * @var int */ protected $message_uid; - /** - * Class Constructor + * Class Constructor. * * @param Connection $connection */ @@ -42,10 +40,11 @@ class Action } /** - * Config Message + * Config Message. + * + * @param int $message_number + * @param int $message_uid * - * @param integer $message_number - * @param integer $message_uid * @return Action */ public function config($message_number, $message_uid) @@ -57,22 +56,22 @@ class Action } /** - * Delete Message + * Delete Message. * - * @return boolean + * @return bool */ public function delete() { - return (boolean) imap_delete($this->connection->getStream(), $this->message_uid, \FT_UID); + return (bool) imap_delete($this->connection->getStream(), $this->message_uid, \FT_UID); } /** - * Undelete Message + * Undelete Message. * - * @return boolean + * @return bool */ public function undelete() { - return (boolean) imap_undelete($this->connection->getStream(), $this->message_uid, \FT_UID); + return (bool) imap_undelete($this->connection->getStream(), $this->message_uid, \FT_UID); } -} \ No newline at end of file +} diff --git a/src/Core/Message/Attachment.php b/src/Core/Message/Attachment.php index 3f6e2a0..05e067f 100644 --- a/src/Core/Message/Attachment.php +++ b/src/Core/Message/Attachment.php @@ -1,6 +1,8 @@ + +/* + * This file is part of the Imap PHP package. + * (c) Clivern */ namespace Clivern\Imap\Core\Message; @@ -8,25 +10,22 @@ namespace Clivern\Imap\Core\Message; use Clivern\Imap\Core\Connection; /** - * Attachment Class - * - * @package Clivern\Imap\Core\Message + * Attachment Class. */ class Attachment { - /** * @var Connection */ protected $connection; /** - * @var integer + * @var int */ protected $message_number; /** - * @var integer + * @var int */ protected $message_uid; @@ -36,13 +35,12 @@ class Attachment protected $attachment; /** - * @var Object + * @var object */ protected $part; - /** - * Class Constructor + * Class Constructor. * * @param Connection $connection */ @@ -52,12 +50,13 @@ class Attachment } /** - * Config Attachment + * Config Attachment. * - * @param integer $message_number - * @param integer $message_uid - * @param integer $attachment_id + * @param int $message_number + * @param int $message_uid + * @param int $attachment_id * @param object $part + * * @return Attachment */ public function config($message_number, $message_uid, $attachment_id, $part) @@ -73,10 +72,11 @@ class Attachment } /** - * Get Attachment Property + * Get Attachment Property. + * + * @param string $key + * @param bool $default * - * @param string $key - * @param boolean $default * @return mixed */ public function get($key, $default = false) @@ -85,7 +85,7 @@ class Attachment } /** - * Get Filename + * Get Filename. * * @return mixed */ @@ -95,7 +95,7 @@ class Attachment } /** - * Get Extension + * Get Extension. * * @return mixed */ @@ -105,7 +105,7 @@ class Attachment } /** - * Get Size + * Get Size. * * @return mixed */ @@ -115,7 +115,7 @@ class Attachment } /** - * Get Encoding + * Get Encoding. * * @return mixed */ @@ -125,7 +125,7 @@ class Attachment } /** - * Get Bytes + * Get Bytes. * * @return mixed */ @@ -135,49 +135,52 @@ class Attachment } /** - * Get Plain Body + * Get Plain Body. * * @return mixed */ public function getPlainBody() { - if( $this->get('plain_body') ){ + if ($this->get('plain_body')) { return $this->get('plain_body'); } - $this->attachment['plain_body'] = imap_fetchbody($this->connection->getStream(), $this->message_number, $this->attachment['index']); + $this->attachment['plain_body'] = imap_fetchbody( + $this->connection->getStream(), + $this->message_number, + $this->attachment['index'] + ); - return $this->get('plain_body'); + return $this->get('plain_body'); } /** - * Get Body + * Get Body. + * + * @throws Exception * * @return mixed - * @throws Exception */ public function getBody() { - - if( $this->get('body') ){ + if ($this->get('body')) { return $this->get('body'); } switch ($this->getEncoding()) { - case 0: // 7BIT - - case 1: // 8BIT - case 2: // BINARY $this->attachment['body'] = $this->getPlainBody(); + return $this->get('body'); case 3: // BASE-64 - $this->attachment['body'] = base64_decode($this->getPlainBody()); + $this->attachment['body'] = base64_decode($this->getPlainBody(), true); + return $this->get('body'); case 4: // QUOTED-PRINTABLE $this->attachment['body'] = imap_qprint($this->getPlainBody()); + return $this->get('body'); } @@ -185,27 +188,29 @@ class Attachment } /** - * Store File + * Store File. * - * @param string $path - * @param boolean $file_name - * @return boolean + * @param string $path + * @param bool $file_name + * + * @return bool */ public function store($path, $file_name = false) { $file_name = ($file_name) ? $file_name : "{$this->getFilename()}.{$this->getExtension()}"; - $path = rtrim($path, '/') . "/"; - return (boolean) file_put_contents($path . $file_name, $this->getBody()); + $path = rtrim($path, '/').'/'; + + return (bool) file_put_contents($path.$file_name, $this->getBody()); } /** - * Parse Parts + * Parse Parts. * - * @return boolean + * @return bool */ protected function parseParts() { - if( (count($this->attachment) > 2) ){ + if ((\count($this->attachment) > 2)) { return true; } @@ -223,19 +228,19 @@ class Attachment $this->attachment['ifdparameters'] = (isset($this->part->ifdparameters)) ? $this->part->ifdparameters : false; $this->attachment['ifparameters'] = (isset($this->part->ifparameters)) ? $this->part->ifparameters : false; - if( is_array($this->part->dparameters) ){ + if (\is_array($this->part->dparameters)) { foreach ($this->part->dparameters as $obj) { - if( in_array(strtolower($obj->attribute), ['filename', 'name']) ){ - $this->attachment[strtolower($obj->attribute)] = pathinfo($obj->value, PATHINFO_FILENAME); + if (\in_array(mb_strtolower($obj->attribute), ['filename', 'name'], true)) { + $this->attachment[mb_strtolower($obj->attribute)] = pathinfo($obj->value, PATHINFO_FILENAME); $this->attachment['extension'] = pathinfo($obj->value, PATHINFO_EXTENSION); } } } - if( is_array($this->part->parameters) ){ + if (\is_array($this->part->parameters)) { foreach ($this->part->parameters as $obj) { - if( in_array(strtolower($obj->attribute), ['filename', 'name']) ){ - $this->attachment[strtolower($obj->attribute)] = pathinfo($obj->value, PATHINFO_FILENAME); + if (\in_array(mb_strtolower($obj->attribute), ['filename', 'name'], true)) { + $this->attachment[mb_strtolower($obj->attribute)] = pathinfo($obj->value, PATHINFO_FILENAME); $this->attachment['extension'] = pathinfo($obj->value, PATHINFO_EXTENSION); } } @@ -243,4 +248,4 @@ class Attachment return true; } -} \ No newline at end of file +} diff --git a/src/Core/Message/Body.php b/src/Core/Message/Body.php index 68765e2..3565024 100644 --- a/src/Core/Message/Body.php +++ b/src/Core/Message/Body.php @@ -1,6 +1,8 @@ + +/* + * This file is part of the Imap PHP package. + * (c) Clivern */ namespace Clivern\Imap\Core\Message; @@ -8,30 +10,27 @@ namespace Clivern\Imap\Core\Message; use Clivern\Imap\Core\Connection; /** - * Body Class - * - * @package Clivern\Imap\Core\Message + * Body Class. */ class Body { - /** * @var Connection */ protected $connection; /** - * @var integer + * @var int */ protected $message_number; /** - * @var integer + * @var int */ protected $message_uid; /** - * @var integer + * @var int */ protected $encoding; @@ -40,9 +39,8 @@ class Body */ protected $message = ''; - /** - * Class Constructor + * Class Constructor. * * @param Connection $connection */ @@ -52,10 +50,11 @@ class Body } /** - * Config Body + * Config Body. + * + * @param int $message_number + * @param int $message_uid * - * @param integer $message_number - * @param integer $message_uid * @return Body */ public function config($message_number, $message_uid) @@ -67,29 +66,29 @@ class Body } /** - * Get Message + * Get Message. + * + * @param int $option * - * @param integer $option * @return string */ public function getMessage($option = 2) { - if( !empty($this->message) ){ + if (!empty($this->message)) { return $this->message; } $structure = imap_fetchstructure($this->connection->getStream(), $this->message_number); - if (isset($structure->parts) && is_array($structure->parts) && isset($structure->parts[1])) { + if (isset($structure->parts) && \is_array($structure->parts) && isset($structure->parts[1])) { $part = $structure->parts[1]; - $this->message = imap_fetchbody($this->connection->getStream(),$this->message_number , $option); - + $this->message = imap_fetchbody($this->connection->getStream(), $this->message_number, $option); $this->encoding = $part->encoding; - if($part->encoding == 3) { + if (3 === $part->encoding) { $this->message = imap_base64($this->message); - } elseif($part->encoding == 1) { + } elseif (1 === $part->encoding) { $this->message = imap_8bit($this->message); } else { $this->message = imap_qprint($this->message); @@ -102,9 +101,9 @@ class Body } /** - * Get Encoding + * Get Encoding. * - * @return integer + * @return int */ public function getEncoding() { diff --git a/src/Core/Message/Header.php b/src/Core/Message/Header.php index f981f37..049e571 100644 --- a/src/Core/Message/Header.php +++ b/src/Core/Message/Header.php @@ -1,6 +1,8 @@ + +/* + * This file is part of the Imap PHP package. + * (c) Clivern */ namespace Clivern\Imap\Core\Message; @@ -8,25 +10,22 @@ namespace Clivern\Imap\Core\Message; use Clivern\Imap\Core\Connection; /** - * Header Class - * - * @package Clivern\Imap\Core\Message + * Header Class. */ class Header { - /** * @var Connection */ protected $connection; /** - * @var integer + * @var int */ protected $message_number; /** - * @var integer + * @var int */ protected $message_uid; @@ -35,9 +34,8 @@ class Header */ protected $header = []; - /** - * Class Constructor + * Class Constructor. * * @param Connection $connection */ @@ -47,15 +45,17 @@ class Header } /** - * Config Message + * Config Message. + * + * @param int $message_number + * @param int $message_uid + * @param mixed $options * - * @param integer $message_number - * @param integer $message_uid * @return Header */ public function config($message_number, $message_uid, $options = 0) { - if( !empty($this->header) ){ + if (!empty($this->header)) { return $this; } @@ -67,37 +67,41 @@ class Header } /** - * Get From Header + * Get From Header. + * + * @param string $key + * @param bool $default * - * @param string $key - * @param boolean $default * @return mixed */ public function get($key, $default = false) { - return (isset($this->header[strtolower($key)])) ? $this->header[strtolower($key)] : $default; + return (isset($this->header[mb_strtolower($key)])) ? $this->header[mb_strtolower($key)] : $default; } /** - * Check if header has key + * Check if header has key. * - * @param string $key - * @return boolean + * @param string $key + * + * @return bool */ public function has($key) { - return (isset($this->header[strtolower($key)])); + return isset($this->header[mb_strtolower($key)]); } /** - * Parse Address List + * Parse Address List. * * @param string $address_string + * @param mixed $default_host + * * @return array */ - public function parseAddressList($address_string, $default_host = "example.com") + public function parseAddressList($address_string, $default_host = 'example.com') { - $address_array = imap_rfc822_parse_adrlist($address_string, $default_host); + $address_array = imap_rfc822_parse_adrlist($address_string, $default_host); $address_list = []; foreach ($address_array as $id => $val) { @@ -105,7 +109,7 @@ class Header 'mailbox' => $val->mailbox, 'host' => $val->host, 'personal' => $val->personal, - 'adl' => $val->adl + 'adl' => $val->adl, ]; } @@ -113,9 +117,10 @@ class Header } /** - * Load Header Data + * Load Header Data. * * @param mixed $options + * * @return Header */ protected function load($options = 0) @@ -129,7 +134,8 @@ class Header $this->header['date'] = (isset($item_overview->date)) ? $item_overview->date : false; $this->header['message_id'] = (isset($item_overview->message_id)) ? $item_overview->message_id : false; $this->header['in_reply_to'] = (isset($item_overview->in_reply_to)) ? $item_overview->in_reply_to : false; - $this->header['references'] = (isset($item_overview->references)) ? explode(" ", $item_overview->references) : false; + $this->header['references'] = (isset($item_overview->references)) ? + explode(' ', $item_overview->references) : false; $this->header['size'] = (isset($item_overview->size)) ? $item_overview->size : false; $this->header['uid'] = (isset($item_overview->uid)) ? $item_overview->uid : false; $this->header['msgno'] = (isset($item_overview->msgno)) ? $item_overview->msgno : false; @@ -144,4 +150,4 @@ class Header return $this; } -} \ No newline at end of file +} diff --git a/src/Core/MessageIterator.php b/src/Core/MessageIterator.php index 515c6cd..343c387 100644 --- a/src/Core/MessageIterator.php +++ b/src/Core/MessageIterator.php @@ -1,34 +1,31 @@ + +/* + * This file is part of the Imap PHP package. + * (c) Clivern */ namespace Clivern\Imap\Core; -use Clivern\Imap\Core\Message; -use Clivern\Imap\Core\Connection; -use Clivern\Imap\Core\Message\Header; use Clivern\Imap\Core\Message\Action; use Clivern\Imap\Core\Message\Body; +use Clivern\Imap\Core\Message\Header; /** - * Message Iterator Class - * - * @package Clivern\Imap\Core + * Message Iterator Class. */ class MessageIterator extends \ArrayIterator { - /** * @var Connection */ protected $connection; /** - * Constructor + * Constructor. * * @param Connection $connection - * @param array $message_numbers + * @param array $message_numbers */ public function __construct(Connection $connection, array $message_numbers) { @@ -37,13 +34,19 @@ class MessageIterator extends \ArrayIterator } /** - * Get current message + * Get current message. * * @return Message */ public function current() { - $message = new Message($this->connection, new Header($this->connection), new Action($this->connection), new Body($this->connection)); + $message = new Message( + $this->connection, + new Header($this->connection), + new Action($this->connection), + new Body($this->connection) + ); + return $message->setUid(parent::current())->config(); } -} \ No newline at end of file +} diff --git a/src/Core/Search.php b/src/Core/Search.php index 8d8320d..377e5d0 100644 --- a/src/Core/Search.php +++ b/src/Core/Search.php @@ -1,6 +1,8 @@ + +/* + * This file is part of the Imap PHP package. + * (c) Clivern */ namespace Clivern\Imap\Core; @@ -8,22 +10,30 @@ namespace Clivern\Imap\Core; use Clivern\Imap\Core\Search\Contract\Condition; /** - * Search Class - * - * @package Clivern\Imap\Core + * Search Class. */ class Search { - /** * @var array */ protected $conditions = []; /** - * Add Condition + * Get Conditions Query. + * + * @return string + */ + public function __toString() + { + return (!empty($this->conditions)) ? implode(' ', $this->conditions) : ''; + } + + /** + * Add Condition. * * @param Condition $condition + * * @return Search */ public function addCondition(Condition $condition) @@ -34,7 +44,7 @@ class Search } /** - * Get Conditions + * Get Conditions. * * @return array */ @@ -42,14 +52,4 @@ class Search { return $this->conditions; } - - /** - * Get Conditions Query - * - * @return string - */ - public function __toString() - { - return (!empty($this->conditions)) ? implode(" ", $this->conditions) : ""; - } -} \ No newline at end of file +} diff --git a/src/Core/Search/Condition/All.php b/src/Core/Search/Condition/All.php index fc325c9..d9c6c27 100644 --- a/src/Core/Search/Condition/All.php +++ b/src/Core/Search/Condition/All.php @@ -1,6 +1,8 @@ + +/* + * This file is part of the Imap PHP package. + * (c) Clivern */ namespace Clivern\Imap\Core\Search\Condition; @@ -8,20 +10,17 @@ namespace Clivern\Imap\Core\Search\Condition; use Clivern\Imap\Core\Search\Contract\Condition; /** - * All Class - * - * @package Clivern\Imap\Core\Search\Condition + * All Class. */ class All implements Condition { - /** - * Query String + * Query String. * * @return string */ public function __toString() { - return "ALL"; + return 'ALL'; } -} \ No newline at end of file +} diff --git a/src/Core/Search/Condition/Answered.php b/src/Core/Search/Condition/Answered.php index 37ce5f1..dab1637 100644 --- a/src/Core/Search/Condition/Answered.php +++ b/src/Core/Search/Condition/Answered.php @@ -1,6 +1,8 @@ + +/* + * This file is part of the Imap PHP package. + * (c) Clivern */ namespace Clivern\Imap\Core\Search\Condition; @@ -8,20 +10,17 @@ namespace Clivern\Imap\Core\Search\Condition; use Clivern\Imap\Core\Search\Contract\Condition; /** - * Answered Class - * - * @package Clivern\Imap\Core\Search\Condition + * Answered Class. */ class Answered implements Condition { - /** - * Query String + * Query String. * * @return string */ public function __toString() { - return "ANSWERED"; + return 'ANSWERED'; } -} \ No newline at end of file +} diff --git a/src/Core/Search/Condition/BCC.php b/src/Core/Search/Condition/BCC.php index c1247ea..4c9efd8 100644 --- a/src/Core/Search/Condition/BCC.php +++ b/src/Core/Search/Condition/BCC.php @@ -1,6 +1,8 @@ + +/* + * This file is part of the Imap PHP package. + * (c) Clivern */ namespace Clivern\Imap\Core\Search\Condition; @@ -8,20 +10,17 @@ namespace Clivern\Imap\Core\Search\Condition; use Clivern\Imap\Core\Search\Contract\Condition; /** - * BCC Class - * - * @package Clivern\Imap\Core\Search\Condition + * BCC Class. */ class BCC implements Condition { - /** * @var string */ protected $data; /** - * Class Constructor + * Class Constructor. * * @param string $data */ @@ -31,7 +30,7 @@ class BCC implements Condition } /** - * Query String + * Query String. * * @return string */ @@ -39,4 +38,4 @@ class BCC implements Condition { return "BCC \"{$this->data}\""; } -} \ No newline at end of file +} diff --git a/src/Core/Search/Condition/Before.php b/src/Core/Search/Condition/Before.php index 9eabd72..bebccab 100644 --- a/src/Core/Search/Condition/Before.php +++ b/src/Core/Search/Condition/Before.php @@ -1,6 +1,8 @@ + +/* + * This file is part of the Imap PHP package. + * (c) Clivern */ namespace Clivern\Imap\Core\Search\Condition; @@ -8,20 +10,17 @@ namespace Clivern\Imap\Core\Search\Condition; use Clivern\Imap\Core\Search\Contract\Condition; /** - * Before Class - * - * @package Clivern\Imap\Core\Search\Condition + * Before Class. */ class Before implements Condition { - /** * @var string */ protected $data; /** - * Class Constructor + * Class Constructor. * * @param string $data */ @@ -31,7 +30,7 @@ class Before implements Condition } /** - * Query String + * Query String. * * @return string */ @@ -39,4 +38,4 @@ class Before implements Condition { return "BEFORE \"{$this->data}\""; } -} \ No newline at end of file +} diff --git a/src/Core/Search/Condition/Body.php b/src/Core/Search/Condition/Body.php index 80d48ad..11328d0 100644 --- a/src/Core/Search/Condition/Body.php +++ b/src/Core/Search/Condition/Body.php @@ -1,6 +1,8 @@ + +/* + * This file is part of the Imap PHP package. + * (c) Clivern */ namespace Clivern\Imap\Core\Search\Condition; @@ -8,20 +10,17 @@ namespace Clivern\Imap\Core\Search\Condition; use Clivern\Imap\Core\Search\Contract\Condition; /** - * Body Class - * - * @package Clivern\Imap\Core\Search\Condition + * Body Class. */ class Body implements Condition { - /** * @var string */ protected $data; /** - * Class Constructor + * Class Constructor. * * @param string $data */ @@ -31,7 +30,7 @@ class Body implements Condition } /** - * Query String + * Query String. * * @return string */ @@ -39,4 +38,4 @@ class Body implements Condition { return "BODY \"{$this->data}\""; } -} \ No newline at end of file +} diff --git a/src/Core/Search/Condition/CC.php b/src/Core/Search/Condition/CC.php index 208b58a..79c4189 100644 --- a/src/Core/Search/Condition/CC.php +++ b/src/Core/Search/Condition/CC.php @@ -1,6 +1,8 @@ + +/* + * This file is part of the Imap PHP package. + * (c) Clivern */ namespace Clivern\Imap\Core\Search\Condition; @@ -8,20 +10,17 @@ namespace Clivern\Imap\Core\Search\Condition; use Clivern\Imap\Core\Search\Contract\Condition; /** - * CC Class - * - * @package Clivern\Imap\Core\Search\Condition + * CC Class. */ class CC implements Condition { - /** * @var string */ protected $data; /** - * Class Constructor + * Class Constructor. * * @param string $data */ @@ -31,7 +30,7 @@ class CC implements Condition } /** - * Query String + * Query String. * * @return string */ @@ -39,4 +38,4 @@ class CC implements Condition { return "CC \"{$this->data}\""; } -} \ No newline at end of file +} diff --git a/src/Core/Search/Condition/Deleted.php b/src/Core/Search/Condition/Deleted.php index 484bd7f..3c00c96 100644 --- a/src/Core/Search/Condition/Deleted.php +++ b/src/Core/Search/Condition/Deleted.php @@ -1,6 +1,8 @@ + +/* + * This file is part of the Imap PHP package. + * (c) Clivern */ namespace Clivern\Imap\Core\Search\Condition; @@ -8,20 +10,17 @@ namespace Clivern\Imap\Core\Search\Condition; use Clivern\Imap\Core\Search\Contract\Condition; /** - * Deleted Class - * - * @package Clivern\Imap\Core\Search\Condition + * Deleted Class. */ class Deleted implements Condition { - /** - * Query String + * Query String. * * @return string */ public function __toString() { - return "DELETED"; + return 'DELETED'; } -} \ No newline at end of file +} diff --git a/src/Core/Search/Condition/Flagged.php b/src/Core/Search/Condition/Flagged.php index c772a79..ce8ca39 100644 --- a/src/Core/Search/Condition/Flagged.php +++ b/src/Core/Search/Condition/Flagged.php @@ -1,6 +1,8 @@ + +/* + * This file is part of the Imap PHP package. + * (c) Clivern */ namespace Clivern\Imap\Core\Search\Condition; @@ -8,20 +10,17 @@ namespace Clivern\Imap\Core\Search\Condition; use Clivern\Imap\Core\Search\Contract\Condition; /** - * Flagged Class - * - * @package Clivern\Imap\Core\Search\Condition + * Flagged Class. */ class Flagged implements Condition { - /** - * Query String + * Query String. * * @return string */ public function __toString() { - return "FLAGGED"; + return 'FLAGGED'; } -} \ No newline at end of file +} diff --git a/src/Core/Search/Condition/From.php b/src/Core/Search/Condition/From.php index 6b83739..42370f3 100644 --- a/src/Core/Search/Condition/From.php +++ b/src/Core/Search/Condition/From.php @@ -1,6 +1,8 @@ + +/* + * This file is part of the Imap PHP package. + * (c) Clivern */ namespace Clivern\Imap\Core\Search\Condition; @@ -8,20 +10,17 @@ namespace Clivern\Imap\Core\Search\Condition; use Clivern\Imap\Core\Search\Contract\Condition; /** - * From Class - * - * @package Clivern\Imap\Core\Search\Condition + * From Class. */ class From implements Condition { - /** * @var string */ protected $data; /** - * Class Constructor + * Class Constructor. * * @param string $data */ @@ -31,7 +30,7 @@ class From implements Condition } /** - * Query String + * Query String. * * @return string */ @@ -39,4 +38,4 @@ class From implements Condition { return "FROM \"{$this->data}\""; } -} \ No newline at end of file +} diff --git a/src/Core/Search/Condition/Keyword.php b/src/Core/Search/Condition/Keyword.php index df51231..3ab2ff6 100644 --- a/src/Core/Search/Condition/Keyword.php +++ b/src/Core/Search/Condition/Keyword.php @@ -1,6 +1,8 @@ + +/* + * This file is part of the Imap PHP package. + * (c) Clivern */ namespace Clivern\Imap\Core\Search\Condition; @@ -8,20 +10,17 @@ namespace Clivern\Imap\Core\Search\Condition; use Clivern\Imap\Core\Search\Contract\Condition; /** - * Keyword Class - * - * @package Clivern\Imap\Core\Search\Condition + * Keyword Class. */ class Keyword implements Condition { - /** * @var string */ protected $data; /** - * Class Constructor + * Class Constructor. * * @param string $data */ @@ -31,7 +30,7 @@ class Keyword implements Condition } /** - * Query String + * Query String. * * @return string */ @@ -39,4 +38,4 @@ class Keyword implements Condition { return "KEYWORD \"{$this->data}\""; } -} \ No newline at end of file +} diff --git a/src/Core/Search/Condition/NewFlag.php b/src/Core/Search/Condition/NewFlag.php index ee1e770..7c293f7 100644 --- a/src/Core/Search/Condition/NewFlag.php +++ b/src/Core/Search/Condition/NewFlag.php @@ -1,6 +1,8 @@ + +/* + * This file is part of the Imap PHP package. + * (c) Clivern */ namespace Clivern\Imap\Core\Search\Condition; @@ -8,20 +10,17 @@ namespace Clivern\Imap\Core\Search\Condition; use Clivern\Imap\Core\Search\Contract\Condition; /** - * New Flag Class - * - * @package Clivern\Imap\Core\Search\Condition + * New Flag Class. */ class NewFlag implements Condition { - /** - * Query String + * Query String. * * @return string */ public function __toString() { - return "NEW"; + return 'NEW'; } -} \ No newline at end of file +} diff --git a/src/Core/Search/Condition/Old.php b/src/Core/Search/Condition/Old.php index 604d9bb..eb7e12a 100644 --- a/src/Core/Search/Condition/Old.php +++ b/src/Core/Search/Condition/Old.php @@ -1,6 +1,8 @@ + +/* + * This file is part of the Imap PHP package. + * (c) Clivern */ namespace Clivern\Imap\Core\Search\Condition; @@ -8,20 +10,17 @@ namespace Clivern\Imap\Core\Search\Condition; use Clivern\Imap\Core\Search\Contract\Condition; /** - * Old Class - * - * @package Clivern\Imap\Core\Search\Condition + * Old Class. */ class Old implements Condition { - /** - * Query String + * Query String. * * @return string */ public function __toString() { - return "OLD"; + return 'OLD'; } -} \ No newline at end of file +} diff --git a/src/Core/Search/Condition/On.php b/src/Core/Search/Condition/On.php index 9ff3aa3..f911610 100644 --- a/src/Core/Search/Condition/On.php +++ b/src/Core/Search/Condition/On.php @@ -1,6 +1,8 @@ + +/* + * This file is part of the Imap PHP package. + * (c) Clivern */ namespace Clivern\Imap\Core\Search\Condition; @@ -8,20 +10,17 @@ namespace Clivern\Imap\Core\Search\Condition; use Clivern\Imap\Core\Search\Contract\Condition; /** - * On Class - * - * @package Clivern\Imap\Core\Search\Condition + * On Class. */ class On implements Condition { - /** * @var string */ protected $data; /** - * Class Constructor + * Class Constructor. * * @param string $data */ @@ -31,7 +30,7 @@ class On implements Condition } /** - * Query String + * Query String. * * @return string */ @@ -39,4 +38,4 @@ class On implements Condition { return "ON \"{$this->data}\""; } -} \ No newline at end of file +} diff --git a/src/Core/Search/Condition/Recent.php b/src/Core/Search/Condition/Recent.php index 3dac8ae..7070817 100644 --- a/src/Core/Search/Condition/Recent.php +++ b/src/Core/Search/Condition/Recent.php @@ -1,6 +1,8 @@ + +/* + * This file is part of the Imap PHP package. + * (c) Clivern */ namespace Clivern\Imap\Core\Search\Condition; @@ -8,20 +10,17 @@ namespace Clivern\Imap\Core\Search\Condition; use Clivern\Imap\Core\Search\Contract\Condition; /** - * All Class - * - * @package Clivern\Imap\Core\Search\Condition + * All Class. */ class Recent implements Condition { - /** - * Query String + * Query String. * * @return string */ public function __toString() { - return "RECENT"; + return 'RECENT'; } -} \ No newline at end of file +} diff --git a/src/Core/Search/Condition/Seen.php b/src/Core/Search/Condition/Seen.php index d912db6..eb8339e 100644 --- a/src/Core/Search/Condition/Seen.php +++ b/src/Core/Search/Condition/Seen.php @@ -1,6 +1,8 @@ + +/* + * This file is part of the Imap PHP package. + * (c) Clivern */ namespace Clivern\Imap\Core\Search\Condition; @@ -8,20 +10,17 @@ namespace Clivern\Imap\Core\Search\Condition; use Clivern\Imap\Core\Search\Contract\Condition; /** - * Seen Class - * - * @package Clivern\Imap\Core\Search\Condition + * Seen Class. */ class Seen implements Condition { - /** - * Query String + * Query String. * * @return string */ public function __toString() { - return "SEEN"; + return 'SEEN'; } -} \ No newline at end of file +} diff --git a/src/Core/Search/Condition/Since.php b/src/Core/Search/Condition/Since.php index 0bec57d..da10828 100644 --- a/src/Core/Search/Condition/Since.php +++ b/src/Core/Search/Condition/Since.php @@ -1,6 +1,8 @@ + +/* + * This file is part of the Imap PHP package. + * (c) Clivern */ namespace Clivern\Imap\Core\Search\Condition; @@ -8,20 +10,17 @@ namespace Clivern\Imap\Core\Search\Condition; use Clivern\Imap\Core\Search\Contract\Condition; /** - * Since Class - * - * @package Clivern\Imap\Core\Search\Condition + * Since Class. */ class Since implements Condition { - /** * @var string */ protected $data; /** - * Class Constructor + * Class Constructor. * * @param string $data */ @@ -31,7 +30,7 @@ class Since implements Condition } /** - * Query String + * Query String. * * @return string */ @@ -39,4 +38,4 @@ class Since implements Condition { return "SINCE \"{$this->data}\""; } -} \ No newline at end of file +} diff --git a/src/Core/Search/Condition/Subject.php b/src/Core/Search/Condition/Subject.php index 3d88618..d96db36 100644 --- a/src/Core/Search/Condition/Subject.php +++ b/src/Core/Search/Condition/Subject.php @@ -1,6 +1,8 @@ + +/* + * This file is part of the Imap PHP package. + * (c) Clivern */ namespace Clivern\Imap\Core\Search\Condition; @@ -8,20 +10,17 @@ namespace Clivern\Imap\Core\Search\Condition; use Clivern\Imap\Core\Search\Contract\Condition; /** - * Subject Class - * - * @package Clivern\Imap\Core\Search\Condition + * Subject Class. */ class Subject implements Condition { - /** * @var string */ protected $data; /** - * Class Constructor + * Class Constructor. * * @param string $data */ @@ -31,7 +30,7 @@ class Subject implements Condition } /** - * Query String + * Query String. * * @return string */ @@ -39,4 +38,4 @@ class Subject implements Condition { return "SUBJECT \"{$this->data}\""; } -} \ No newline at end of file +} diff --git a/src/Core/Search/Condition/Text.php b/src/Core/Search/Condition/Text.php index 343b836..9e00da3 100644 --- a/src/Core/Search/Condition/Text.php +++ b/src/Core/Search/Condition/Text.php @@ -1,6 +1,8 @@ + +/* + * This file is part of the Imap PHP package. + * (c) Clivern */ namespace Clivern\Imap\Core\Search\Condition; @@ -8,20 +10,17 @@ namespace Clivern\Imap\Core\Search\Condition; use Clivern\Imap\Core\Search\Contract\Condition; /** - * Text Class - * - * @package Clivern\Imap\Core\Search\Condition + * Text Class. */ class Text implements Condition { - /** * @var string */ protected $data; /** - * Class Constructor + * Class Constructor. * * @param string $data */ @@ -31,7 +30,7 @@ class Text implements Condition } /** - * Query String + * Query String. * * @return string */ @@ -39,4 +38,4 @@ class Text implements Condition { return "TEXT \"{$this->data}\""; } -} \ No newline at end of file +} diff --git a/src/Core/Search/Condition/To.php b/src/Core/Search/Condition/To.php index f69e8ba..945f8b3 100644 --- a/src/Core/Search/Condition/To.php +++ b/src/Core/Search/Condition/To.php @@ -1,6 +1,8 @@ + +/* + * This file is part of the Imap PHP package. + * (c) Clivern */ namespace Clivern\Imap\Core\Search\Condition; @@ -8,20 +10,17 @@ namespace Clivern\Imap\Core\Search\Condition; use Clivern\Imap\Core\Search\Contract\Condition; /** - * To Class - * - * @package Clivern\Imap\Core\Search\Condition + * To Class. */ class To implements Condition { - /** * @var string */ protected $data; /** - * Class Constructor + * Class Constructor. * * @param string $data */ @@ -31,7 +30,7 @@ class To implements Condition } /** - * Query String + * Query String. * * @return string */ @@ -39,4 +38,4 @@ class To implements Condition { return "TO \"{$this->data}\""; } -} \ No newline at end of file +} diff --git a/src/Core/Search/Condition/UnAnswered.php b/src/Core/Search/Condition/UnAnswered.php index 0f873cc..9d48586 100644 --- a/src/Core/Search/Condition/UnAnswered.php +++ b/src/Core/Search/Condition/UnAnswered.php @@ -1,6 +1,8 @@ + +/* + * This file is part of the Imap PHP package. + * (c) Clivern */ namespace Clivern\Imap\Core\Search\Condition; @@ -8,20 +10,17 @@ namespace Clivern\Imap\Core\Search\Condition; use Clivern\Imap\Core\Search\Contract\Condition; /** - * UnAnswered Class - * - * @package Clivern\Imap\Core\Search\Condition + * UnAnswered Class. */ class UnAnswered implements Condition { - /** - * Query String + * Query String. * * @return string */ public function __toString() { - return "UNANSWERED"; + return 'UNANSWERED'; } -} \ No newline at end of file +} diff --git a/src/Core/Search/Condition/UnDeleted.php b/src/Core/Search/Condition/UnDeleted.php index 1c79312..b190c2a 100644 --- a/src/Core/Search/Condition/UnDeleted.php +++ b/src/Core/Search/Condition/UnDeleted.php @@ -1,6 +1,8 @@ + +/* + * This file is part of the Imap PHP package. + * (c) Clivern */ namespace Clivern\Imap\Core\Search\Condition; @@ -8,20 +10,17 @@ namespace Clivern\Imap\Core\Search\Condition; use Clivern\Imap\Core\Search\Contract\Condition; /** - * UnDeleted Class - * - * @package Clivern\Imap\Core\Search\Condition + * UnDeleted Class. */ class UnDeleted implements Condition { - /** - * Query String + * Query String. * * @return string */ public function __toString() { - return "UNDELETED"; + return 'UNDELETED'; } -} \ No newline at end of file +} diff --git a/src/Core/Search/Condition/UnFlagged.php b/src/Core/Search/Condition/UnFlagged.php index 28bc662..ec4412a 100644 --- a/src/Core/Search/Condition/UnFlagged.php +++ b/src/Core/Search/Condition/UnFlagged.php @@ -1,6 +1,8 @@ + +/* + * This file is part of the Imap PHP package. + * (c) Clivern */ namespace Clivern\Imap\Core\Search\Condition; @@ -8,20 +10,17 @@ namespace Clivern\Imap\Core\Search\Condition; use Clivern\Imap\Core\Search\Contract\Condition; /** - * UnFlagged Class - * - * @package Clivern\Imap\Core\Search\Condition + * UnFlagged Class. */ class UnFlagged implements Condition { - /** - * Query String + * Query String. * * @return string */ public function __toString() { - return "UNFLAGGED"; + return 'UNFLAGGED'; } -} \ No newline at end of file +} diff --git a/src/Core/Search/Condition/UnKeyword.php b/src/Core/Search/Condition/UnKeyword.php index 35265fe..8e121c7 100644 --- a/src/Core/Search/Condition/UnKeyword.php +++ b/src/Core/Search/Condition/UnKeyword.php @@ -1,6 +1,8 @@ + +/* + * This file is part of the Imap PHP package. + * (c) Clivern */ namespace Clivern\Imap\Core\Search\Condition; @@ -8,20 +10,17 @@ namespace Clivern\Imap\Core\Search\Condition; use Clivern\Imap\Core\Search\Contract\Condition; /** - * UnKeyword Class - * - * @package Clivern\Imap\Core\Search\Condition + * UnKeyword Class. */ class UnKeyword implements Condition { - /** * @var string */ protected $data; /** - * Class Constructor + * Class Constructor. * * @param string $data */ @@ -31,7 +30,7 @@ class UnKeyword implements Condition } /** - * Query String + * Query String. * * @return string */ @@ -39,4 +38,4 @@ class UnKeyword implements Condition { return "UNKEYWORD \"{$this->data}\""; } -} \ No newline at end of file +} diff --git a/src/Core/Search/Condition/UnSeen.php b/src/Core/Search/Condition/UnSeen.php index 9e5b8e4..98f75ab 100644 --- a/src/Core/Search/Condition/UnSeen.php +++ b/src/Core/Search/Condition/UnSeen.php @@ -1,6 +1,8 @@ + +/* + * This file is part of the Imap PHP package. + * (c) Clivern */ namespace Clivern\Imap\Core\Search\Condition; @@ -8,20 +10,17 @@ namespace Clivern\Imap\Core\Search\Condition; use Clivern\Imap\Core\Search\Contract\Condition; /** - * UnSeen Class - * - * @package Clivern\Imap\Core\Search\Condition + * UnSeen Class. */ class UnSeen implements Condition { - /** - * Query String + * Query String. * * @return string */ public function __toString() { - return "UNSEEN"; + return 'UNSEEN'; } -} \ No newline at end of file +} diff --git a/src/Core/Search/Contract/Condition.php b/src/Core/Search/Contract/Condition.php index aa52245..a480b37 100644 --- a/src/Core/Search/Contract/Condition.php +++ b/src/Core/Search/Contract/Condition.php @@ -1,16 +1,16 @@ + +/* + * This file is part of the Imap PHP package. + * (c) Clivern */ namespace Clivern\Imap\Core\Search\Contract; /** - * Condition Interface - * - * @package Clivern\Imap\Core\Search\Contract + * Condition Interface. */ interface Condition { public function __toString(); -} \ No newline at end of file +} diff --git a/src/MailBox.php b/src/MailBox.php index 731ae44..838d04c 100644 --- a/src/MailBox.php +++ b/src/MailBox.php @@ -1,28 +1,27 @@ + +/* + * This file is part of the Imap PHP package. + * (c) Clivern */ namespace Clivern\Imap; use Clivern\Imap\Core\Connection; -use Clivern\Imap\Core\MessageIterator; +use Clivern\Imap\Core\Exception\FolderNotExistException; use Clivern\Imap\Core\Message; -use Clivern\Imap\Core\Search; -use Clivern\Imap\Core\Message\Header; use Clivern\Imap\Core\Message\Action; use Clivern\Imap\Core\Message\Attachments; use Clivern\Imap\Core\Message\Body; -use Clivern\Imap\Core\Exception\FolderNotExistException; +use Clivern\Imap\Core\Message\Header; +use Clivern\Imap\Core\MessageIterator; +use Clivern\Imap\Core\Search; /** - * MailBox Class - * - * @package Clivern\Imap + * MailBox Class. */ class MailBox { - /** * @var string */ @@ -38,9 +37,8 @@ class MailBox */ protected $folders = []; - /** - * Constructor + * Constructor. * * @param Connection $connection IMAP connection */ @@ -50,14 +48,15 @@ class MailBox } /** - * Set Folder Name + * Set Folder Name. * * @param string $folder + * * @return MailBox */ public function setFolder($folder) { - if( !in_array($folder, $this->getFolders()) ){ + if (!\in_array($folder, $this->getFolders(), true)) { throw new FolderNotExistException($folder); } @@ -67,7 +66,7 @@ class MailBox } /** - * Get Folder name + * Get Folder name. * * @return string */ @@ -77,20 +76,22 @@ class MailBox } /** - * Get number of messages in this mailbox + * Get number of messages in this mailbox. * * @return int */ public function count() { $this->connection->survive($this->folder); + return imap_num_msg($this->connection->getStream()); } /** - * Get message ids + * Get message ids. * * @param Search $search + * * @return MessageIterator */ public function getMessages(Search $search = null) @@ -99,7 +100,7 @@ class MailBox $query = ($search) ? (string) $search : 'ALL'; $message_numbers = imap_search($this->connection->getStream(), $query, \SE_UID); - if (false == $message_numbers) { + if (false === $message_numbers) { // imap_search can also return false $message_numbers = []; } @@ -108,53 +109,61 @@ class MailBox } /** - * Get a message by message number or uid + * Get a message by message number or uid. + * + * @param bool|int $message_number + * @param bool|int $message_uid * - * @param int|boolean $message_number - * @param int|boolean $message_uid * @return Message */ public function getMessage($message_number = false, $message_uid = false) { $this->connection->survive($this->folder); - $message = new Message($this->connection, new Header($this->connection), new Action($this->connection), new Attachments($this->connection), new Body($this->connection)); + $message = new Message( + $this->connection, + new Header($this->connection), + new Action($this->connection), + new Attachments($this->connection), + new Body($this->connection) + ); - if( $message_number == false ){ + if (false === $message_number) { return $message->setUid($message_uid)->config(); - }else{ - return $message->setMsgNo($message_number)->config(); } + + return $message->setMsgNo($message_number)->config(); } /** - * Delete all messages marked for deletion + * Delete all messages marked for deletion. * - * @return boolean + * @return bool */ public function expunge() { $this->connection->survive($this->folder); - return (boolean) imap_expunge($this->connection->getStream()); + + return (bool) imap_expunge($this->connection->getStream()); } /** - * Get Folders List + * Get Folders List. * * @return array */ public function getFolders() { - if( !empty($this->folders) ){ + if (!empty($this->folders)) { return $this->folders; } - $this->folders = imap_getmailboxes($this->connection->getStream(), "{" . $this->connection->getServer() . "}", "*"); + $this->folders = imap_getmailboxes($this->connection->getStream(), '{'.$this->connection->getServer().'}', '*'); foreach ($this->folders as $key => $folder) { - $this->folders[$key] = str_replace("{" . $this->connection->getServer() . "}", "", $folder->name); + $this->folders[$key] = str_replace('{'.$this->connection->getServer().'}', '', $folder->name); } return $this->folders; } -} \ No newline at end of file +} diff --git a/tests/Core/ConnectionTest.php b/tests/Core/ConnectionTest.php index b2c7b0a..7371280 100644 --- a/tests/Core/ConnectionTest.php +++ b/tests/Core/ConnectionTest.php @@ -1,4 +1,10 @@ + */ + namespace Tests\Core; use PHPUnit\Framework\TestCase; @@ -7,10 +13,10 @@ class ConnectionTest extends TestCase { public function testConnect() { - #$email = getenv("TEST_EMAIL"); - #$password = getenv("TEST_EMAIL_PASS"); - #$connection = new \Clivern\Imap\Core\Connection("imap.gmail.com", "993", $email, $password, "/ssl", "INBOX"); - #$this->assertTrue($connection->connect()->checkConnection()); - #$this->assertTrue($connection->connect()->disconnect()); + //$email = getenv("TEST_EMAIL"); + //$password = getenv("TEST_EMAIL_PASS"); + //$connection = new \Clivern\Imap\Core\Connection("imap.gmail.com", "993", $email, $password, "/ssl", "INBOX"); + //$this->assertTrue($connection->connect()->checkConnection()); + //$this->assertTrue($connection->connect()->disconnect()); } -} \ No newline at end of file +} diff --git a/tests/Core/SearchTest.php b/tests/Core/SearchTest.php index 53da585..24564ab 100644 --- a/tests/Core/SearchTest.php +++ b/tests/Core/SearchTest.php @@ -1,4 +1,10 @@ + */ + namespace Tests\Core; use PHPUnit\Framework\TestCase; @@ -8,8 +14,32 @@ class SearchTest extends TestCase public function testConditionBuilder() { $search = new \Clivern\Imap\Core\Search(); - $search->addCondition(new \Clivern\Imap\Core\Search\Condition\All())->addCondition(new \Clivern\Imap\Core\Search\Condition\Answered())->addCondition(new \Clivern\Imap\Core\Search\Condition\BCC("val"))->addCondition(new \Clivern\Imap\Core\Search\Condition\Before("val"))->addCondition(new \Clivern\Imap\Core\Search\Condition\Body("val"))->addCondition(new \Clivern\Imap\Core\Search\Condition\CC("val"))->addCondition(new \Clivern\Imap\Core\Search\Condition\Deleted())->addCondition(new \Clivern\Imap\Core\Search\Condition\Flagged())->addCondition(new \Clivern\Imap\Core\Search\Condition\From("val"))->addCondition(new \Clivern\Imap\Core\Search\Condition\Keyword("val"))->addCondition(new \Clivern\Imap\Core\Search\Condition\NewFlag())->addCondition(new \Clivern\Imap\Core\Search\Condition\Old())->addCondition(new \Clivern\Imap\Core\Search\Condition\On("val"))->addCondition(new \Clivern\Imap\Core\Search\Condition\Recent())->addCondition(new \Clivern\Imap\Core\Search\Condition\Seen())->addCondition(new \Clivern\Imap\Core\Search\Condition\Since("val"))->addCondition(new \Clivern\Imap\Core\Search\Condition\Subject("val"))->addCondition(new \Clivern\Imap\Core\Search\Condition\Text("val"))->addCondition(new \Clivern\Imap\Core\Search\Condition\To("val"))->addCondition(new \Clivern\Imap\Core\Search\Condition\UnAnswered())->addCondition(new \Clivern\Imap\Core\Search\Condition\UnDeleted())->addCondition(new \Clivern\Imap\Core\Search\Condition\UnFlagged())->addCondition(new \Clivern\Imap\Core\Search\Condition\UnKeyword("val"))->addCondition(new \Clivern\Imap\Core\Search\Condition\UnSeen()); - $this->assertEquals($search->getConditions(), [ + $search->addCondition(new \Clivern\Imap\Core\Search\Condition\All()) + ->addCondition(new \Clivern\Imap\Core\Search\Condition\Answered()) + ->addCondition(new \Clivern\Imap\Core\Search\Condition\BCC('val')) + ->addCondition(new \Clivern\Imap\Core\Search\Condition\Before('val')) + ->addCondition(new \Clivern\Imap\Core\Search\Condition\Body('val')) + ->addCondition(new \Clivern\Imap\Core\Search\Condition\CC('val')) + ->addCondition(new \Clivern\Imap\Core\Search\Condition\Deleted()) + ->addCondition(new \Clivern\Imap\Core\Search\Condition\Flagged()) + ->addCondition(new \Clivern\Imap\Core\Search\Condition\From('val')) + ->addCondition(new \Clivern\Imap\Core\Search\Condition\Keyword('val')) + ->addCondition(new \Clivern\Imap\Core\Search\Condition\NewFlag()) + ->addCondition(new \Clivern\Imap\Core\Search\Condition\Old()) + ->addCondition(new \Clivern\Imap\Core\Search\Condition\On('val')) + ->addCondition(new \Clivern\Imap\Core\Search\Condition\Recent()) + ->addCondition(new \Clivern\Imap\Core\Search\Condition\Seen()) + ->addCondition(new \Clivern\Imap\Core\Search\Condition\Since('val')) + ->addCondition(new \Clivern\Imap\Core\Search\Condition\Subject('val')) + ->addCondition(new \Clivern\Imap\Core\Search\Condition\Text('val')) + ->addCondition(new \Clivern\Imap\Core\Search\Condition\To('val')) + ->addCondition(new \Clivern\Imap\Core\Search\Condition\UnAnswered()) + ->addCondition(new \Clivern\Imap\Core\Search\Condition\UnDeleted()) + ->addCondition(new \Clivern\Imap\Core\Search\Condition\UnFlagged()) + ->addCondition(new \Clivern\Imap\Core\Search\Condition\UnKeyword('val')) + ->addCondition(new \Clivern\Imap\Core\Search\Condition\UnSeen()); + + $this->assertSame($search->getConditions(), [ 'ALL', 'ANSWERED', 'BCC "val"', @@ -33,8 +63,13 @@ class SearchTest extends TestCase 'UNDELETED', 'UNFLAGGED', 'UNKEYWORD "val"', - 'UNSEEN' + 'UNSEEN', ]); - $this->assertEquals((string) $search, 'ALL ANSWERED BCC "val" BEFORE "val" BODY "val" CC "val" DELETED FLAGGED FROM "val" KEYWORD "val" NEW OLD ON "val" RECENT SEEN SINCE "val" SUBJECT "val" TEXT "val" TO "val" UNANSWERED UNDELETED UNFLAGGED UNKEYWORD "val" UNSEEN'); + $this->assertSame( + (string) $search, + 'ALL ANSWERED BCC "val" BEFORE "val" BODY "val" CC "val" DELETED FLAGGED FROM "val" KEYWORD "val" '. + 'NEW OLD ON "val" RECENT SEEN SINCE "val" SUBJECT "val" TEXT "val" TO "val" UNANSWERED UNDELETED '. + 'UNFLAGGED UNKEYWORD "val" UNSEEN' + ); } -} \ No newline at end of file +} diff --git a/tests/MailBoxTest.php b/tests/MailBoxTest.php index 3f802a7..998c1f7 100644 --- a/tests/MailBoxTest.php +++ b/tests/MailBoxTest.php @@ -1,6 +1,8 @@ + +/* + * This file is part of the Imap PHP package. + * (c) Clivern */ namespace Tests; @@ -8,9 +10,7 @@ namespace Tests; use PHPUnit\Framework\TestCase; /** - * MailBox Class Test - * - * @package Tests + * MailBox Class Test. */ class MailBoxTest extends TestCase { @@ -18,4 +18,4 @@ class MailBoxTest extends TestCase { $this->assertTrue(true); } -} \ No newline at end of file +} From 2491a2130a9b6527fd74754679f24556e3291c9c Mon Sep 17 00:00:00 2001 From: Clivern Date: Mon, 25 Feb 2019 19:29:39 +0100 Subject: [PATCH 06/20] bump version --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index edb2ed5..01df84b 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Imap ==== :mailbox_with_mail: Access Mailbox Using PHP IMAP. -*Current Version: 1.0.4* +*Current Version: 1.0.5* [![Build Status](https://travis-ci.org/Clivern/Imap.svg?branch=master)](https://travis-ci.org/Clivern/Imap) @@ -265,6 +265,12 @@ Misc Changelog --------- +Version 1.0.5: +``` +Enhance code style. +Automate code fixes and linting. +``` + Version 1.0.4: ``` Fix for plain text messages. From 0ebf39572e687f0deecbf46ab263c096a55c0322 Mon Sep 17 00:00:00 2001 From: "A. F" Date: Mon, 25 Feb 2019 19:42:52 +0100 Subject: [PATCH 07/20] Create CODE_OF_CONDUCT.md --- CODE_OF_CONDUCT.md | 76 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 CODE_OF_CONDUCT.md diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 0000000..518d821 --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,76 @@ +# Contributor Covenant Code of Conduct + +## Our Pledge + +In the interest of fostering an open and welcoming environment, we as +contributors and maintainers pledge to making participation in our project and +our community a harassment-free experience for everyone, regardless of age, body +size, disability, ethnicity, sex characteristics, gender identity and expression, +level of experience, education, socio-economic status, nationality, personal +appearance, race, religion, or sexual identity and orientation. + +## Our Standards + +Examples of behavior that contributes to creating a positive environment +include: + +* Using welcoming and inclusive language +* Being respectful of differing viewpoints and experiences +* Gracefully accepting constructive criticism +* Focusing on what is best for the community +* Showing empathy towards other community members + +Examples of unacceptable behavior by participants include: + +* The use of sexualized language or imagery and unwelcome sexual attention or + advances +* Trolling, insulting/derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or electronic + address, without explicit permission +* Other conduct which could reasonably be considered inappropriate in a + professional setting + +## Our Responsibilities + +Project maintainers are responsible for clarifying the standards of acceptable +behavior and are expected to take appropriate and fair corrective action in +response to any instances of unacceptable behavior. + +Project maintainers have the right and responsibility to remove, edit, or +reject comments, commits, code, wiki edits, issues, and other contributions +that are not aligned to this Code of Conduct, or to ban temporarily or +permanently any contributor for other behaviors that they deem inappropriate, +threatening, offensive, or harmful. + +## Scope + +This Code of Conduct applies both within project spaces and in public spaces +when an individual is representing the project or its community. Examples of +representing a project or community include using an official project e-mail +address, posting via an official social media account, or acting as an appointed +representative at an online or offline event. Representation of a project may be +further defined and clarified by project maintainers. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be +reported by contacting the project team at hello@clivern.com. All +complaints will be reviewed and investigated and will result in a response that +is deemed necessary and appropriate to the circumstances. The project team is +obligated to maintain confidentiality with regard to the reporter of an incident. +Further details of specific enforcement policies may be posted separately. + +Project maintainers who do not follow or enforce the Code of Conduct in good +faith may face temporary or permanent repercussions as determined by other +members of the project's leadership. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, +available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html + +[homepage]: https://www.contributor-covenant.org + +For answers to common questions about this code of conduct, see +https://www.contributor-covenant.org/faq From 508fbd936ad8c48a0406da73057e88ead78df931 Mon Sep 17 00:00:00 2001 From: "A. F" Date: Mon, 25 Feb 2019 19:43:42 +0100 Subject: [PATCH 08/20] Create CONTRIBUTING.md --- CONTRIBUTING.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 CONTRIBUTING.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..007b124 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,13 @@ +## Contributing + +- With issues: + - Use the search tool before opening a new issue. + - Please provide source code and commit sha if you found a bug. + - Review existing issues and provide feedback or react to them. + +- With pull requests: + - Open your pull request against `master` + - Your pull request should have no more than two commits, if not you should squash them. + - It should pass all tests in the available continuous integrations systems such as TravisCI. + - You should add/modify tests to cover your proposed code changes. + - If your pull request contains a new feature, please document it on the README. From 0f512e9680463f29d4b611838dbddc788c94f407 Mon Sep 17 00:00:00 2001 From: "A. F" Date: Mon, 25 Feb 2019 19:53:10 +0100 Subject: [PATCH 09/20] Update phpcs.xml --- phpcs.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpcs.xml b/phpcs.xml index 6d5f469..b2ac939 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -1,7 +1,7 @@ - + Imap coding standard. src tests - \ No newline at end of file + From 9a90fc964b154f12f7d41bfa0dcd103fd40f66d8 Mon Sep 17 00:00:00 2001 From: Clivern Date: Thu, 7 Nov 2019 16:47:51 +0100 Subject: [PATCH 10/20] Fix attachment class name --- src/MailBox.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MailBox.php b/src/MailBox.php index 838d04c..2df2db3 100644 --- a/src/MailBox.php +++ b/src/MailBox.php @@ -11,7 +11,7 @@ use Clivern\Imap\Core\Connection; use Clivern\Imap\Core\Exception\FolderNotExistException; use Clivern\Imap\Core\Message; use Clivern\Imap\Core\Message\Action; -use Clivern\Imap\Core\Message\Attachments; +use Clivern\Imap\Core\Message\Attachment; use Clivern\Imap\Core\Message\Body; use Clivern\Imap\Core\Message\Header; use Clivern\Imap\Core\MessageIterator; @@ -124,7 +124,7 @@ class MailBox $this->connection, new Header($this->connection), new Action($this->connection), - new Attachments($this->connection), + new Attachment($this->connection), new Body($this->connection) ); From b7120d8e3b222fb2849dad791a0c0acf0b9eea9e Mon Sep 17 00:00:00 2001 From: Ahmed Date: Thu, 7 Nov 2019 16:55:43 +0100 Subject: [PATCH 11/20] Update .travis.yml --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 54781ca..8924613 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,7 @@ php: - 5.6 - 7.0 - 7.1 + - 7.2 ## Cache composer cache: @@ -15,4 +16,4 @@ before_script: - travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-dist script: - - make ci \ No newline at end of file + - make ci From 3a97db96250341beae9eef084be6eaa60b1a8c8f Mon Sep 17 00:00:00 2001 From: Clivern Date: Wed, 13 Nov 2019 12:22:12 +0100 Subject: [PATCH 12/20] Fix the thing --- LICENSE | 2 +- README.md | 9 +- composer.lock | 740 ++++++++++++++++++++------------ src/Core/Message.php | 2 - src/Core/Message/Action.php | 2 - src/Core/Message/Attachment.php | 2 - src/Core/Message/Body.php | 2 - src/Core/Message/Header.php | 2 - src/Core/MessageIterator.php | 3 - src/Core/Search.php | 2 - 10 files changed, 464 insertions(+), 302 deletions(-) diff --git a/LICENSE b/LICENSE index 661dac6..eff59d3 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2017 Cliven +Copyright (c) 2019 Cliven Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 01df84b..42c04a5 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Imap ==== :mailbox_with_mail: Access Mailbox Using PHP IMAP. -*Current Version: 1.0.5* +*Current Version: 1.0.6* [![Build Status](https://travis-ci.org/Clivern/Imap.svg?branch=master)](https://travis-ci.org/Clivern/Imap) @@ -265,6 +265,11 @@ Misc Changelog --------- +Version 1.0.6: +``` +Fix Class Name. +``` + Version 1.0.5: ``` Enhance code style. @@ -299,6 +304,6 @@ Initial Release. Acknowledgements ---------------- -© 2017, Clivern. Released under the [MIT License](http://www.opensource.org/licenses/mit-license.php). +© 2019, Clivern. Released under the [MIT License](http://www.opensource.org/licenses/mit-license.php). **Imap** is authored and maintained by [@clivern](http://github.com/clivern). diff --git a/composer.lock b/composer.lock index 770408b..b70d7db 100644 --- a/composer.lock +++ b/composer.lock @@ -9,16 +9,16 @@ "packages-dev": [ { "name": "composer/semver", - "version": "1.4.2", + "version": "1.5.0", "source": { "type": "git", "url": "https://github.com/composer/semver.git", - "reference": "c7cb9a2095a074d131b65a8a0cd294479d785573" + "reference": "46d9139568ccb8d9e7cdd4539cab7347568a5e2e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/semver/zipball/c7cb9a2095a074d131b65a8a0cd294479d785573", - "reference": "c7cb9a2095a074d131b65a8a0cd294479d785573", + "url": "https://api.github.com/repos/composer/semver/zipball/46d9139568ccb8d9e7cdd4539cab7347568a5e2e", + "reference": "46d9139568ccb8d9e7cdd4539cab7347568a5e2e", "shasum": "" }, "require": { @@ -67,28 +67,28 @@ "validation", "versioning" ], - "time": "2016-08-30T16:08:34+00:00" + "time": "2019-03-19T17:25:45+00:00" }, { "name": "composer/xdebug-handler", - "version": "1.3.2", + "version": "1.4.0", "source": { "type": "git", "url": "https://github.com/composer/xdebug-handler.git", - "reference": "d17708133b6c276d6e42ef887a877866b909d892" + "reference": "cbe23383749496fe0f373345208b79568e4bc248" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/d17708133b6c276d6e42ef887a877866b909d892", - "reference": "d17708133b6c276d6e42ef887a877866b909d892", + "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/cbe23383749496fe0f373345208b79568e4bc248", + "reference": "cbe23383749496fe0f373345208b79568e4bc248", "shasum": "" }, "require": { - "php": "^5.3.2 || ^7.0", + "php": "^5.3.2 || ^7.0 || ^8.0", "psr/log": "^1.0" }, "require-dev": { - "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5" + "phpunit/phpunit": "^4.8.35 || ^5.7 || 6.5 - 8" }, "type": "library", "autoload": { @@ -106,25 +106,25 @@ "email": "john-stevenson@blueyonder.co.uk" } ], - "description": "Restarts a process without xdebug.", + "description": "Restarts a process without Xdebug.", "keywords": [ "Xdebug", "performance" ], - "time": "2019-01-28T20:25:53+00:00" + "time": "2019-11-06T16:40:04+00:00" }, { "name": "doctrine/annotations", - "version": "v1.6.0", + "version": "v1.8.0", "source": { "type": "git", "url": "https://github.com/doctrine/annotations.git", - "reference": "c7f2050c68a9ab0bdb0f98567ec08d80ea7d24d5" + "reference": "904dca4eb10715b92569fbcd79e201d5c349b6bc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/annotations/zipball/c7f2050c68a9ab0bdb0f98567ec08d80ea7d24d5", - "reference": "c7f2050c68a9ab0bdb0f98567ec08d80ea7d24d5", + "url": "https://api.github.com/repos/doctrine/annotations/zipball/904dca4eb10715b92569fbcd79e201d5c349b6bc", + "reference": "904dca4eb10715b92569fbcd79e201d5c349b6bc", "shasum": "" }, "require": { @@ -133,12 +133,12 @@ }, "require-dev": { "doctrine/cache": "1.*", - "phpunit/phpunit": "^6.4" + "phpunit/phpunit": "^7.5" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.6.x-dev" + "dev-master": "1.7.x-dev" } }, "autoload": { @@ -151,6 +151,10 @@ "MIT" ], "authors": [ + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, { "name": "Roman Borschel", "email": "roman@code-factory.org" @@ -159,10 +163,6 @@ "name": "Benjamin Eberlei", "email": "kontakt@beberlei.de" }, - { - "name": "Guilherme Blanco", - "email": "guilhermeblanco@gmail.com" - }, { "name": "Jonathan Wage", "email": "jonwage@gmail.com" @@ -179,31 +179,33 @@ "docblock", "parser" ], - "time": "2017-12-06T07:11:42+00:00" + "time": "2019-10-01T18:55:10+00:00" }, { "name": "doctrine/instantiator", - "version": "1.1.0", + "version": "1.3.0", "source": { "type": "git", "url": "https://github.com/doctrine/instantiator.git", - "reference": "185b8868aa9bf7159f5f953ed5afb2d7fcdc3bda" + "reference": "ae466f726242e637cebdd526a7d991b9433bacf1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/185b8868aa9bf7159f5f953ed5afb2d7fcdc3bda", - "reference": "185b8868aa9bf7159f5f953ed5afb2d7fcdc3bda", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/ae466f726242e637cebdd526a7d991b9433bacf1", + "reference": "ae466f726242e637cebdd526a7d991b9433bacf1", "shasum": "" }, "require": { "php": "^7.1" }, "require-dev": { - "athletic/athletic": "~0.1.8", + "doctrine/coding-standard": "^6.0", "ext-pdo": "*", "ext-phar": "*", - "phpunit/phpunit": "^6.2.3", - "squizlabs/php_codesniffer": "^3.0.2" + "phpbench/phpbench": "^0.13", + "phpstan/phpstan-phpunit": "^0.11", + "phpstan/phpstan-shim": "^0.11", + "phpunit/phpunit": "^7.0" }, "type": "library", "extra": { @@ -228,39 +230,44 @@ } ], "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", - "homepage": "https://github.com/doctrine/instantiator", + "homepage": "https://www.doctrine-project.org/projects/instantiator.html", "keywords": [ "constructor", "instantiate" ], - "time": "2017-07-22T11:58:36+00:00" + "time": "2019-10-21T16:45:58+00:00" }, { "name": "doctrine/lexer", - "version": "v1.0.1", + "version": "1.2.0", "source": { "type": "git", "url": "https://github.com/doctrine/lexer.git", - "reference": "83893c552fd2045dd78aef794c31e694c37c0b8c" + "reference": "5242d66dbeb21a30dd8a3e66bf7a73b66e05e1f6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/lexer/zipball/83893c552fd2045dd78aef794c31e694c37c0b8c", - "reference": "83893c552fd2045dd78aef794c31e694c37c0b8c", + "url": "https://api.github.com/repos/doctrine/lexer/zipball/5242d66dbeb21a30dd8a3e66bf7a73b66e05e1f6", + "reference": "5242d66dbeb21a30dd8a3e66bf7a73b66e05e1f6", "shasum": "" }, "require": { - "php": ">=5.3.2" + "php": "^7.2" + }, + "require-dev": { + "doctrine/coding-standard": "^6.0", + "phpstan/phpstan": "^0.11.8", + "phpunit/phpunit": "^8.2" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "1.2.x-dev" } }, "autoload": { - "psr-0": { - "Doctrine\\Common\\Lexer\\": "lib/" + "psr-4": { + "Doctrine\\Common\\Lexer\\": "lib/Doctrine/Common/Lexer" } }, "notification-url": "https://packagist.org/downloads/", @@ -268,39 +275,42 @@ "MIT" ], "authors": [ - { - "name": "Roman Borschel", - "email": "roman@code-factory.org" - }, { "name": "Guilherme Blanco", "email": "guilhermeblanco@gmail.com" }, + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, { "name": "Johannes Schmitt", "email": "schmittjoh@gmail.com" } ], - "description": "Base library for a lexer that can be used in Top-Down, Recursive Descent Parsers.", - "homepage": "http://www.doctrine-project.org", + "description": "PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.", + "homepage": "https://www.doctrine-project.org/projects/lexer.html", "keywords": [ + "annotations", + "docblock", "lexer", - "parser" + "parser", + "php" ], - "time": "2014-09-09T13:34:57+00:00" + "time": "2019-10-30T14:39:59+00:00" }, { "name": "friendsofphp/php-cs-fixer", - "version": "v2.14.2", + "version": "v2.16.0", "source": { "type": "git", "url": "https://github.com/FriendsOfPHP/PHP-CS-Fixer.git", - "reference": "ff401e58261ffc5934a58f795b3f95b355e276cb" + "reference": "ceaff36bee1ed3f1bbbedca36d2528c0826c336d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/ff401e58261ffc5934a58f795b3f95b355e276cb", - "reference": "ff401e58261ffc5934a58f795b3f95b355e276cb", + "url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/ceaff36bee1ed3f1bbbedca36d2528c0826c336d", + "reference": "ceaff36bee1ed3f1bbbedca36d2528c0826c336d", "shasum": "" }, "require": { @@ -328,11 +338,12 @@ "mikey179/vfsstream": "^1.6", "php-coveralls/php-coveralls": "^2.1", "php-cs-fixer/accessible-object": "^1.0", - "php-cs-fixer/phpunit-constraint-isidenticalstring": "^1.0.1", - "php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "^1.0.1", - "phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1", - "phpunitgoodpractices/traits": "^1.5.1", - "symfony/phpunit-bridge": "^4.0" + "php-cs-fixer/phpunit-constraint-isidenticalstring": "^1.1", + "php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "^1.1", + "phpunit/phpunit": "^5.7.27 || ^6.5.14 || ^7.1", + "phpunitgoodpractices/traits": "^1.8", + "symfony/phpunit-bridge": "^4.3", + "symfony/yaml": "^3.0 || ^4.0" }, "suggest": { "ext-mbstring": "For handling non-UTF8 characters in cache signature.", @@ -365,30 +376,30 @@ "MIT" ], "authors": [ - { - "name": "Dariusz Rumiński", - "email": "dariusz.ruminski@gmail.com" - }, { "name": "Fabien Potencier", "email": "fabien@symfony.com" + }, + { + "name": "Dariusz Rumiński", + "email": "dariusz.ruminski@gmail.com" } ], "description": "A tool to automatically fix PHP code style", - "time": "2019-02-17T17:44:13+00:00" + "time": "2019-11-03T13:31:09+00:00" }, { "name": "myclabs/deep-copy", - "version": "1.8.1", + "version": "1.9.3", "source": { "type": "git", "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "3e01bdad3e18354c3dce54466b7fbe33a9f9f7f8" + "reference": "007c053ae6f31bba39dfa19a7726f56e9763bbea" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/3e01bdad3e18354c3dce54466b7fbe33a9f9f7f8", - "reference": "3e01bdad3e18354c3dce54466b7fbe33a9f9f7f8", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/007c053ae6f31bba39dfa19a7726f56e9763bbea", + "reference": "007c053ae6f31bba39dfa19a7726f56e9763bbea", "shasum": "" }, "require": { @@ -423,7 +434,7 @@ "object", "object graph" ], - "time": "2018-06-11T23:09:50+00:00" + "time": "2019-08-09T12:45:53+00:00" }, { "name": "paragonie/random_compat", @@ -523,35 +534,33 @@ }, { "name": "phpdocumentor/reflection-common", - "version": "1.0.1", + "version": "2.0.0", "source": { "type": "git", "url": "https://github.com/phpDocumentor/ReflectionCommon.git", - "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6" + "reference": "63a995caa1ca9e5590304cd845c15ad6d482a62a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6", - "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/63a995caa1ca9e5590304cd845c15ad6d482a62a", + "reference": "63a995caa1ca9e5590304cd845c15ad6d482a62a", "shasum": "" }, "require": { - "php": ">=5.5" + "php": ">=7.1" }, "require-dev": { - "phpunit/phpunit": "^4.6" + "phpunit/phpunit": "~6" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "2.x-dev" } }, "autoload": { "psr-4": { - "phpDocumentor\\Reflection\\": [ - "src" - ] + "phpDocumentor\\Reflection\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -573,30 +582,30 @@ "reflection", "static analysis" ], - "time": "2017-09-11T18:02:19+00:00" + "time": "2018-08-07T13:53:10+00:00" }, { "name": "phpdocumentor/reflection-docblock", - "version": "4.3.0", + "version": "4.3.2", "source": { "type": "git", "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "94fd0001232e47129dd3504189fa1c7225010d08" + "reference": "b83ff7cfcfee7827e1e78b637a5904fe6a96698e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/94fd0001232e47129dd3504189fa1c7225010d08", - "reference": "94fd0001232e47129dd3504189fa1c7225010d08", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/b83ff7cfcfee7827e1e78b637a5904fe6a96698e", + "reference": "b83ff7cfcfee7827e1e78b637a5904fe6a96698e", "shasum": "" }, "require": { "php": "^7.0", - "phpdocumentor/reflection-common": "^1.0.0", - "phpdocumentor/type-resolver": "^0.4.0", + "phpdocumentor/reflection-common": "^1.0.0 || ^2.0.0", + "phpdocumentor/type-resolver": "~0.4 || ^1.0.0", "webmozart/assert": "^1.0" }, "require-dev": { - "doctrine/instantiator": "~1.0.5", + "doctrine/instantiator": "^1.0.5", "mockery/mockery": "^1.0", "phpunit/phpunit": "^6.4" }, @@ -624,41 +633,40 @@ } ], "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", - "time": "2017-11-30T07:14:17+00:00" + "time": "2019-09-12T14:27:41+00:00" }, { "name": "phpdocumentor/type-resolver", - "version": "0.4.0", + "version": "1.0.1", "source": { "type": "git", "url": "https://github.com/phpDocumentor/TypeResolver.git", - "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7" + "reference": "2e32a6d48972b2c1976ed5d8967145b6cec4a4a9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/9c977708995954784726e25d0cd1dddf4e65b0f7", - "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/2e32a6d48972b2c1976ed5d8967145b6cec4a4a9", + "reference": "2e32a6d48972b2c1976ed5d8967145b6cec4a4a9", "shasum": "" }, "require": { - "php": "^5.5 || ^7.0", - "phpdocumentor/reflection-common": "^1.0" + "php": "^7.1", + "phpdocumentor/reflection-common": "^2.0" }, "require-dev": { - "mockery/mockery": "^0.9.4", - "phpunit/phpunit": "^5.2||^4.8.24" + "ext-tokenizer": "^7.1", + "mockery/mockery": "~1", + "phpunit/phpunit": "^7.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "1.x-dev" } }, "autoload": { "psr-4": { - "phpDocumentor\\Reflection\\": [ - "src/" - ] + "phpDocumentor\\Reflection\\": "src" } }, "notification-url": "https://packagist.org/downloads/", @@ -671,26 +679,27 @@ "email": "me@mikevanriel.com" } ], - "time": "2017-07-14T14:27:02+00:00" + "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", + "time": "2019-08-22T18:11:29+00:00" }, { "name": "phpspec/prophecy", - "version": "1.8.0", + "version": "1.9.0", "source": { "type": "git", "url": "https://github.com/phpspec/prophecy.git", - "reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06" + "reference": "f6811d96d97bdf400077a0cc100ae56aa32b9203" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpspec/prophecy/zipball/4ba436b55987b4bf311cb7c6ba82aa528aac0a06", - "reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06", + "url": "https://api.github.com/repos/phpspec/prophecy/zipball/f6811d96d97bdf400077a0cc100ae56aa32b9203", + "reference": "f6811d96d97bdf400077a0cc100ae56aa32b9203", "shasum": "" }, "require": { "doctrine/instantiator": "^1.0.2", "php": "^5.3|^7.0", - "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0", + "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0|^5.0", "sebastian/comparator": "^1.1|^2.0|^3.0", "sebastian/recursion-context": "^1.0|^2.0|^3.0" }, @@ -705,8 +714,8 @@ } }, "autoload": { - "psr-0": { - "Prophecy\\": "src/" + "psr-4": { + "Prophecy\\": "src/Prophecy" } }, "notification-url": "https://packagist.org/downloads/", @@ -734,7 +743,7 @@ "spy", "stub" ], - "time": "2018-08-05T17:53:17+00:00" + "time": "2019-10-03T11:07:50+00:00" }, { "name": "phpunit/php-code-coverage", @@ -1128,17 +1137,17 @@ "time": "2017-06-30T09:13:00+00:00" }, { - "name": "psr/log", - "version": "1.1.0", + "name": "psr/container", + "version": "1.0.0", "source": { "type": "git", - "url": "https://github.com/php-fig/log.git", - "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd" + "url": "https://github.com/php-fig/container.git", + "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/log/zipball/6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd", - "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd", + "url": "https://api.github.com/repos/php-fig/container/zipball/b7ce3b176482dbbc1245ebf52b181af44c2cf55f", + "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f", "shasum": "" }, "require": { @@ -1150,6 +1159,55 @@ "dev-master": "1.0.x-dev" } }, + "autoload": { + "psr-4": { + "Psr\\Container\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common Container Interface (PHP FIG PSR-11)", + "homepage": "https://github.com/php-fig/container", + "keywords": [ + "PSR-11", + "container", + "container-interface", + "container-interop", + "psr" + ], + "time": "2017-02-14T16:28:37+00:00" + }, + { + "name": "psr/log", + "version": "1.1.2", + "source": { + "type": "git", + "url": "https://github.com/php-fig/log.git", + "reference": "446d54b4cb6bf489fc9d75f55843658e6f25d801" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/log/zipball/446d54b4cb6bf489fc9d75f55843658e6f25d801", + "reference": "446d54b4cb6bf489fc9d75f55843658e6f25d801", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.1.x-dev" + } + }, "autoload": { "psr-4": { "Psr\\Log\\": "Psr/Log/" @@ -1172,7 +1230,7 @@ "psr", "psr-3" ], - "time": "2018-11-20T15:27:04+00:00" + "time": "2019-11-01T11:05:21+00:00" }, { "name": "sebastian/code-unit-reverse-lookup", @@ -1689,16 +1747,16 @@ }, { "name": "squizlabs/php_codesniffer", - "version": "3.4.0", + "version": "3.5.2", "source": { "type": "git", "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", - "reference": "379deb987e26c7cd103a7b387aea178baec96e48" + "reference": "65b12cdeaaa6cd276d4c3033a95b9b88b12701e7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/379deb987e26c7cd103a7b387aea178baec96e48", - "reference": "379deb987e26c7cd103a7b387aea178baec96e48", + "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/65b12cdeaaa6cd276d4c3033a95b9b88b12701e7", + "reference": "65b12cdeaaa6cd276d4c3033a95b9b88b12701e7", "shasum": "" }, "require": { @@ -1731,34 +1789,36 @@ } ], "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.", - "homepage": "http://www.squizlabs.com/php-codesniffer", + "homepage": "https://github.com/squizlabs/PHP_CodeSniffer", "keywords": [ "phpcs", "standards" ], - "time": "2018-12-19T23:57:18+00:00" + "time": "2019-10-28T04:36:32+00:00" }, { "name": "symfony/console", - "version": "v4.2.3", + "version": "v4.3.8", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "1f0ad51dfde4da8a6070f06adc58b4e37cbb37a4" + "reference": "831424efae0a1fe6642784bd52aae14ece6538e6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/1f0ad51dfde4da8a6070f06adc58b4e37cbb37a4", - "reference": "1f0ad51dfde4da8a6070f06adc58b4e37cbb37a4", + "url": "https://api.github.com/repos/symfony/console/zipball/831424efae0a1fe6642784bd52aae14ece6538e6", + "reference": "831424efae0a1fe6642784bd52aae14ece6538e6", "shasum": "" }, "require": { "php": "^7.1.3", - "symfony/contracts": "^1.0", - "symfony/polyfill-mbstring": "~1.0" + "symfony/polyfill-mbstring": "~1.0", + "symfony/polyfill-php73": "^1.8", + "symfony/service-contracts": "^1.1" }, "conflict": { "symfony/dependency-injection": "<3.4", + "symfony/event-dispatcher": "<4.3", "symfony/process": "<3.3" }, "provide": { @@ -1768,9 +1828,10 @@ "psr/log": "~1.0", "symfony/config": "~3.4|~4.0", "symfony/dependency-injection": "~3.4|~4.0", - "symfony/event-dispatcher": "~3.4|~4.0", + "symfony/event-dispatcher": "^4.3", "symfony/lock": "~3.4|~4.0", - "symfony/process": "~3.4|~4.0" + "symfony/process": "~3.4|~4.0", + "symfony/var-dumper": "^4.3" }, "suggest": { "psr/log": "For using the console logger", @@ -1781,7 +1842,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.2-dev" + "dev-master": "4.3-dev" } }, "autoload": { @@ -1808,102 +1869,40 @@ ], "description": "Symfony Console Component", "homepage": "https://symfony.com", - "time": "2019-01-25T14:35:16+00:00" - }, - { - "name": "symfony/contracts", - "version": "v1.0.2", - "source": { - "type": "git", - "url": "https://github.com/symfony/contracts.git", - "reference": "1aa7ab2429c3d594dd70689604b5cf7421254cdf" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/contracts/zipball/1aa7ab2429c3d594dd70689604b5cf7421254cdf", - "reference": "1aa7ab2429c3d594dd70689604b5cf7421254cdf", - "shasum": "" - }, - "require": { - "php": "^7.1.3" - }, - "require-dev": { - "psr/cache": "^1.0", - "psr/container": "^1.0" - }, - "suggest": { - "psr/cache": "When using the Cache contracts", - "psr/container": "When using the Service contracts", - "symfony/cache-contracts-implementation": "", - "symfony/service-contracts-implementation": "", - "symfony/translation-contracts-implementation": "" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0-dev" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Contracts\\": "" - }, - "exclude-from-classmap": [ - "**/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "A set of abstractions extracted out of the Symfony components", - "homepage": "https://symfony.com", - "keywords": [ - "abstractions", - "contracts", - "decoupling", - "interfaces", - "interoperability", - "standards" - ], - "time": "2018-12-05T08:06:11+00:00" + "time": "2019-11-13T07:29:07+00:00" }, { "name": "symfony/event-dispatcher", - "version": "v4.2.3", + "version": "v4.3.8", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "bd09ad265cd50b2b9d09d65ce6aba2d29bc81fe1" + "reference": "0df002fd4f500392eabd243c2947061a50937287" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/bd09ad265cd50b2b9d09d65ce6aba2d29bc81fe1", - "reference": "bd09ad265cd50b2b9d09d65ce6aba2d29bc81fe1", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/0df002fd4f500392eabd243c2947061a50937287", + "reference": "0df002fd4f500392eabd243c2947061a50937287", "shasum": "" }, "require": { "php": "^7.1.3", - "symfony/contracts": "^1.0" + "symfony/event-dispatcher-contracts": "^1.1" }, "conflict": { "symfony/dependency-injection": "<3.4" }, + "provide": { + "psr/event-dispatcher-implementation": "1.0", + "symfony/event-dispatcher-implementation": "1.1" + }, "require-dev": { "psr/log": "~1.0", "symfony/config": "~3.4|~4.0", "symfony/dependency-injection": "~3.4|~4.0", "symfony/expression-language": "~3.4|~4.0", + "symfony/http-foundation": "^3.4|^4.0", + "symfony/service-contracts": "^1.1", "symfony/stopwatch": "~3.4|~4.0" }, "suggest": { @@ -1913,7 +1912,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.2-dev" + "dev-master": "4.3-dev" } }, "autoload": { @@ -1940,20 +1939,78 @@ ], "description": "Symfony EventDispatcher Component", "homepage": "https://symfony.com", - "time": "2019-01-16T20:35:37+00:00" + "time": "2019-11-03T09:04:05+00:00" }, { - "name": "symfony/filesystem", - "version": "v4.2.3", + "name": "symfony/event-dispatcher-contracts", + "version": "v1.1.7", "source": { "type": "git", - "url": "https://github.com/symfony/filesystem.git", - "reference": "7c16ebc2629827d4ec915a52ac809768d060a4ee" + "url": "https://github.com/symfony/event-dispatcher-contracts.git", + "reference": "c43ab685673fb6c8d84220c77897b1d6cdbe1d18" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/7c16ebc2629827d4ec915a52ac809768d060a4ee", - "reference": "7c16ebc2629827d4ec915a52ac809768d060a4ee", + "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/c43ab685673fb6c8d84220c77897b1d6cdbe1d18", + "reference": "c43ab685673fb6c8d84220c77897b1d6cdbe1d18", + "shasum": "" + }, + "require": { + "php": "^7.1.3" + }, + "suggest": { + "psr/event-dispatcher": "", + "symfony/event-dispatcher-implementation": "" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.1-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\EventDispatcher\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Generic abstractions related to dispatching event", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "time": "2019-09-17T09:54:03+00:00" + }, + { + "name": "symfony/filesystem", + "version": "v4.3.8", + "source": { + "type": "git", + "url": "https://github.com/symfony/filesystem.git", + "reference": "9abbb7ef96a51f4d7e69627bc6f63307994e4263" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/9abbb7ef96a51f4d7e69627bc6f63307994e4263", + "reference": "9abbb7ef96a51f4d7e69627bc6f63307994e4263", "shasum": "" }, "require": { @@ -1963,7 +2020,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.2-dev" + "dev-master": "4.3-dev" } }, "autoload": { @@ -1990,20 +2047,20 @@ ], "description": "Symfony Filesystem Component", "homepage": "https://symfony.com", - "time": "2019-01-16T20:35:37+00:00" + "time": "2019-08-20T14:07:54+00:00" }, { "name": "symfony/finder", - "version": "v4.2.3", + "version": "v4.3.8", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "ef71816cbb264988bb57fe6a73f610888b9aa70c" + "reference": "72a068f77e317ae77c0a0495236ad292cfb5ce6f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/ef71816cbb264988bb57fe6a73f610888b9aa70c", - "reference": "ef71816cbb264988bb57fe6a73f610888b9aa70c", + "url": "https://api.github.com/repos/symfony/finder/zipball/72a068f77e317ae77c0a0495236ad292cfb5ce6f", + "reference": "72a068f77e317ae77c0a0495236ad292cfb5ce6f", "shasum": "" }, "require": { @@ -2012,7 +2069,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.2-dev" + "dev-master": "4.3-dev" } }, "autoload": { @@ -2039,20 +2096,20 @@ ], "description": "Symfony Finder Component", "homepage": "https://symfony.com", - "time": "2019-01-16T20:35:37+00:00" + "time": "2019-10-30T12:53:54+00:00" }, { "name": "symfony/options-resolver", - "version": "v4.2.3", + "version": "v4.3.8", "source": { "type": "git", "url": "https://github.com/symfony/options-resolver.git", - "reference": "831b272963a8aa5a0613a1a7f013322d8161bbbb" + "reference": "f46c7fc8e207bd8a2188f54f8738f232533765a4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/options-resolver/zipball/831b272963a8aa5a0613a1a7f013322d8161bbbb", - "reference": "831b272963a8aa5a0613a1a7f013322d8161bbbb", + "url": "https://api.github.com/repos/symfony/options-resolver/zipball/f46c7fc8e207bd8a2188f54f8738f232533765a4", + "reference": "f46c7fc8e207bd8a2188f54f8738f232533765a4", "shasum": "" }, "require": { @@ -2061,7 +2118,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.2-dev" + "dev-master": "4.3-dev" } }, "autoload": { @@ -2093,20 +2150,20 @@ "configuration", "options" ], - "time": "2019-01-16T21:31:25+00:00" + "time": "2019-10-28T20:59:01+00:00" }, { "name": "symfony/polyfill-ctype", - "version": "v1.10.0", + "version": "v1.12.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-ctype.git", - "reference": "e3d826245268269cd66f8326bd8bc066687b4a19" + "reference": "550ebaac289296ce228a706d0867afc34687e3f4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/e3d826245268269cd66f8326bd8bc066687b4a19", - "reference": "e3d826245268269cd66f8326bd8bc066687b4a19", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/550ebaac289296ce228a706d0867afc34687e3f4", + "reference": "550ebaac289296ce228a706d0867afc34687e3f4", "shasum": "" }, "require": { @@ -2118,7 +2175,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.9-dev" + "dev-master": "1.12-dev" } }, "autoload": { @@ -2134,13 +2191,13 @@ "MIT" ], "authors": [ - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - }, { "name": "Gert de Pagter", "email": "BackEndTea@gmail.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" } ], "description": "Symfony polyfill for ctype functions", @@ -2151,20 +2208,20 @@ "polyfill", "portable" ], - "time": "2018-08-06T14:22:27+00:00" + "time": "2019-08-06T08:03:45+00:00" }, { "name": "symfony/polyfill-mbstring", - "version": "v1.10.0", + "version": "v1.12.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "c79c051f5b3a46be09205c73b80b346e4153e494" + "reference": "b42a2f66e8f1b15ccf25652c3424265923eb4f17" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/c79c051f5b3a46be09205c73b80b346e4153e494", - "reference": "c79c051f5b3a46be09205c73b80b346e4153e494", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/b42a2f66e8f1b15ccf25652c3424265923eb4f17", + "reference": "b42a2f66e8f1b15ccf25652c3424265923eb4f17", "shasum": "" }, "require": { @@ -2176,7 +2233,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.9-dev" + "dev-master": "1.12-dev" } }, "autoload": { @@ -2210,20 +2267,20 @@ "portable", "shim" ], - "time": "2018-09-21T13:07:52+00:00" + "time": "2019-08-06T08:03:45+00:00" }, { "name": "symfony/polyfill-php70", - "version": "v1.10.0", + "version": "v1.12.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php70.git", - "reference": "6b88000cdd431cd2e940caa2cb569201f3f84224" + "reference": "54b4c428a0054e254223797d2713c31e08610831" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php70/zipball/6b88000cdd431cd2e940caa2cb569201f3f84224", - "reference": "6b88000cdd431cd2e940caa2cb569201f3f84224", + "url": "https://api.github.com/repos/symfony/polyfill-php70/zipball/54b4c428a0054e254223797d2713c31e08610831", + "reference": "54b4c428a0054e254223797d2713c31e08610831", "shasum": "" }, "require": { @@ -2233,7 +2290,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.9-dev" + "dev-master": "1.12-dev" } }, "autoload": { @@ -2269,20 +2326,20 @@ "portable", "shim" ], - "time": "2018-09-21T06:26:08+00:00" + "time": "2019-08-06T08:03:45+00:00" }, { "name": "symfony/polyfill-php72", - "version": "v1.10.0", + "version": "v1.12.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php72.git", - "reference": "9050816e2ca34a8e916c3a0ae8b9c2fccf68b631" + "reference": "04ce3335667451138df4307d6a9b61565560199e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/9050816e2ca34a8e916c3a0ae8b9c2fccf68b631", - "reference": "9050816e2ca34a8e916c3a0ae8b9c2fccf68b631", + "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/04ce3335667451138df4307d6a9b61565560199e", + "reference": "04ce3335667451138df4307d6a9b61565560199e", "shasum": "" }, "require": { @@ -2291,7 +2348,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.9-dev" + "dev-master": "1.12-dev" } }, "autoload": { @@ -2324,20 +2381,78 @@ "portable", "shim" ], - "time": "2018-09-21T13:07:52+00:00" + "time": "2019-08-06T08:03:45+00:00" }, { - "name": "symfony/process", - "version": "v4.2.3", + "name": "symfony/polyfill-php73", + "version": "v1.12.0", "source": { "type": "git", - "url": "https://github.com/symfony/process.git", - "reference": "6c05edb11fbeff9e2b324b4270ecb17911a8b7ad" + "url": "https://github.com/symfony/polyfill-php73.git", + "reference": "2ceb49eaccb9352bff54d22570276bb75ba4a188" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/6c05edb11fbeff9e2b324b4270ecb17911a8b7ad", - "reference": "6c05edb11fbeff9e2b324b4270ecb17911a8b7ad", + "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/2ceb49eaccb9352bff54d22570276bb75ba4a188", + "reference": "2ceb49eaccb9352bff54d22570276bb75ba4a188", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.12-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Php73\\": "" + }, + "files": [ + "bootstrap.php" + ], + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "time": "2019-08-06T08:03:45+00:00" + }, + { + "name": "symfony/process", + "version": "v4.3.8", + "source": { + "type": "git", + "url": "https://github.com/symfony/process.git", + "reference": "3b2e0cb029afbb0395034509291f21191d1a4db0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/process/zipball/3b2e0cb029afbb0395034509291f21191d1a4db0", + "reference": "3b2e0cb029afbb0395034509291f21191d1a4db0", "shasum": "" }, "require": { @@ -2346,7 +2461,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.2-dev" + "dev-master": "4.3-dev" } }, "autoload": { @@ -2373,30 +2488,88 @@ ], "description": "Symfony Process Component", "homepage": "https://symfony.com", - "time": "2019-01-24T22:05:03+00:00" + "time": "2019-10-28T17:07:32+00:00" }, { - "name": "symfony/stopwatch", - "version": "v4.2.3", + "name": "symfony/service-contracts", + "version": "v1.1.8", "source": { "type": "git", - "url": "https://github.com/symfony/stopwatch.git", - "reference": "b1a5f646d56a3290230dbc8edf2a0d62cda23f67" + "url": "https://github.com/symfony/service-contracts.git", + "reference": "ffc7f5692092df31515df2a5ecf3b7302b3ddacf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/stopwatch/zipball/b1a5f646d56a3290230dbc8edf2a0d62cda23f67", - "reference": "b1a5f646d56a3290230dbc8edf2a0d62cda23f67", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/ffc7f5692092df31515df2a5ecf3b7302b3ddacf", + "reference": "ffc7f5692092df31515df2a5ecf3b7302b3ddacf", "shasum": "" }, "require": { "php": "^7.1.3", - "symfony/contracts": "^1.0" + "psr/container": "^1.0" + }, + "suggest": { + "symfony/service-implementation": "" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.2-dev" + "dev-master": "1.1-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\Service\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Generic abstractions related to writing services", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "time": "2019-10-14T12:27:06+00:00" + }, + { + "name": "symfony/stopwatch", + "version": "v4.3.8", + "source": { + "type": "git", + "url": "https://github.com/symfony/stopwatch.git", + "reference": "e96c259de6abcd0cead71f0bf4d730d53ee464d0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/stopwatch/zipball/e96c259de6abcd0cead71f0bf4d730d53ee464d0", + "reference": "e96c259de6abcd0cead71f0bf4d730d53ee464d0", + "shasum": "" + }, + "require": { + "php": "^7.1.3", + "symfony/service-contracts": "^1.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.3-dev" } }, "autoload": { @@ -2423,20 +2596,20 @@ ], "description": "Symfony Stopwatch Component", "homepage": "https://symfony.com", - "time": "2019-01-16T20:31:39+00:00" + "time": "2019-11-05T14:48:09+00:00" }, { "name": "symfony/yaml", - "version": "v4.2.3", + "version": "v4.3.8", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "d461670ee145092b7e2a56c1da7118f19cadadb0" + "reference": "324cf4b19c345465fad14f3602050519e09e361d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/d461670ee145092b7e2a56c1da7118f19cadadb0", - "reference": "d461670ee145092b7e2a56c1da7118f19cadadb0", + "url": "https://api.github.com/repos/symfony/yaml/zipball/324cf4b19c345465fad14f3602050519e09e361d", + "reference": "324cf4b19c345465fad14f3602050519e09e361d", "shasum": "" }, "require": { @@ -2455,7 +2628,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.2-dev" + "dev-master": "4.3-dev" } }, "autoload": { @@ -2482,20 +2655,20 @@ ], "description": "Symfony Yaml Component", "homepage": "https://symfony.com", - "time": "2019-01-16T20:35:37+00:00" + "time": "2019-10-30T12:58:49+00:00" }, { "name": "webmozart/assert", - "version": "1.4.0", + "version": "1.5.0", "source": { "type": "git", "url": "https://github.com/webmozart/assert.git", - "reference": "83e253c8e0be5b0257b881e1827274667c5c17a9" + "reference": "88e6d84706d09a236046d686bbea96f07b3a34f4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/webmozart/assert/zipball/83e253c8e0be5b0257b881e1827274667c5c17a9", - "reference": "83e253c8e0be5b0257b881e1827274667c5c17a9", + "url": "https://api.github.com/repos/webmozart/assert/zipball/88e6d84706d09a236046d686bbea96f07b3a34f4", + "reference": "88e6d84706d09a236046d686bbea96f07b3a34f4", "shasum": "" }, "require": { @@ -2503,8 +2676,7 @@ "symfony/polyfill-ctype": "^1.8" }, "require-dev": { - "phpunit/phpunit": "^4.6", - "sebastian/version": "^1.0.1" + "phpunit/phpunit": "^4.8.36 || ^7.5.13" }, "type": "library", "extra": { @@ -2533,7 +2705,7 @@ "check", "validate" ], - "time": "2018-12-25T11:19:39+00:00" + "time": "2019-08-24T08:43:50+00:00" } ], "aliases": [], diff --git a/src/Core/Message.php b/src/Core/Message.php index 86b55a0..4970458 100644 --- a/src/Core/Message.php +++ b/src/Core/Message.php @@ -54,8 +54,6 @@ class Message /** * Message Constructor. - * - * @param Connection $connection */ public function __construct(Connection $connection, Header $header, Action $action, Body $body) { diff --git a/src/Core/Message/Action.php b/src/Core/Message/Action.php index 40ddaa6..9830eaa 100644 --- a/src/Core/Message/Action.php +++ b/src/Core/Message/Action.php @@ -31,8 +31,6 @@ class Action /** * Class Constructor. - * - * @param Connection $connection */ public function __construct(Connection $connection) { diff --git a/src/Core/Message/Attachment.php b/src/Core/Message/Attachment.php index 05e067f..a6f0e76 100644 --- a/src/Core/Message/Attachment.php +++ b/src/Core/Message/Attachment.php @@ -41,8 +41,6 @@ class Attachment /** * Class Constructor. - * - * @param Connection $connection */ public function __construct(Connection $connection) { diff --git a/src/Core/Message/Body.php b/src/Core/Message/Body.php index 3565024..7820f8f 100644 --- a/src/Core/Message/Body.php +++ b/src/Core/Message/Body.php @@ -41,8 +41,6 @@ class Body /** * Class Constructor. - * - * @param Connection $connection */ public function __construct(Connection $connection) { diff --git a/src/Core/Message/Header.php b/src/Core/Message/Header.php index 049e571..d80f9d1 100644 --- a/src/Core/Message/Header.php +++ b/src/Core/Message/Header.php @@ -36,8 +36,6 @@ class Header /** * Class Constructor. - * - * @param Connection $connection */ public function __construct(Connection $connection) { diff --git a/src/Core/MessageIterator.php b/src/Core/MessageIterator.php index 343c387..a4bc429 100644 --- a/src/Core/MessageIterator.php +++ b/src/Core/MessageIterator.php @@ -23,9 +23,6 @@ class MessageIterator extends \ArrayIterator /** * Constructor. - * - * @param Connection $connection - * @param array $message_numbers */ public function __construct(Connection $connection, array $message_numbers) { diff --git a/src/Core/Search.php b/src/Core/Search.php index 377e5d0..c89eb77 100644 --- a/src/Core/Search.php +++ b/src/Core/Search.php @@ -32,8 +32,6 @@ class Search /** * Add Condition. * - * @param Condition $condition - * * @return Search */ public function addCondition(Condition $condition) From 585d549be8ce8dce4df8c05cabd6d2dba0bf7f0f Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Wed, 20 Nov 2019 20:35:07 +0000 Subject: [PATCH 13/20] Add renovate.json --- renovate.json | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 renovate.json diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..f45d8f1 --- /dev/null +++ b/renovate.json @@ -0,0 +1,5 @@ +{ + "extends": [ + "config:base" + ] +} From a0e85dc59227b66a63415db3d3be5dccafb8c992 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 1 Dec 2019 21:49:31 +0100 Subject: [PATCH 14/20] Pin dependencies (#16) --- composer.json | 6 +- composer.lock | 277 +++++++++++++++++++++++++++++--------------------- 2 files changed, 164 insertions(+), 119 deletions(-) diff --git a/composer.json b/composer.json index 660a422..2d9a331 100644 --- a/composer.json +++ b/composer.json @@ -16,9 +16,9 @@ "php": ">=5.6.4" }, "require-dev": { - "phpunit/phpunit": "~5.7", - "friendsofphp/php-cs-fixer": "^2.14", - "squizlabs/php_codesniffer": "^3.4" + "phpunit/phpunit": "5.7.27", + "friendsofphp/php-cs-fixer": "2.16.1", + "squizlabs/php_codesniffer": "3.5.2" }, "autoload": { "psr-4": { diff --git a/composer.lock b/composer.lock index b70d7db..57f8bf0 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "72e32d9720f8b30de799786db5951d66", + "content-hash": "5084e00c605b9a9a094080500cc4b167", "packages": [], "packages-dev": [ { @@ -301,16 +301,16 @@ }, { "name": "friendsofphp/php-cs-fixer", - "version": "v2.16.0", + "version": "v2.16.1", "source": { "type": "git", "url": "https://github.com/FriendsOfPHP/PHP-CS-Fixer.git", - "reference": "ceaff36bee1ed3f1bbbedca36d2528c0826c336d" + "reference": "c8afb599858876e95e8ebfcd97812d383fa23f02" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/ceaff36bee1ed3f1bbbedca36d2528c0826c336d", - "reference": "ceaff36bee1ed3f1bbbedca36d2528c0826c336d", + "url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/c8afb599858876e95e8ebfcd97812d383fa23f02", + "reference": "c8afb599858876e95e8ebfcd97812d383fa23f02", "shasum": "" }, "require": { @@ -321,15 +321,15 @@ "ext-tokenizer": "*", "php": "^5.6 || ^7.0", "php-cs-fixer/diff": "^1.3", - "symfony/console": "^3.4.17 || ^4.1.6", - "symfony/event-dispatcher": "^3.0 || ^4.0", - "symfony/filesystem": "^3.0 || ^4.0", - "symfony/finder": "^3.0 || ^4.0", - "symfony/options-resolver": "^3.0 || ^4.0", + "symfony/console": "^3.4.17 || ^4.1.6 || ^5.0", + "symfony/event-dispatcher": "^3.0 || ^4.0 || ^5.0", + "symfony/filesystem": "^3.0 || ^4.0 || ^5.0", + "symfony/finder": "^3.0 || ^4.0 || ^5.0", + "symfony/options-resolver": "^3.0 || ^4.0 || ^5.0", "symfony/polyfill-php70": "^1.0", "symfony/polyfill-php72": "^1.4", - "symfony/process": "^3.0 || ^4.0", - "symfony/stopwatch": "^3.0 || ^4.0" + "symfony/process": "^3.0 || ^4.0 || ^5.0", + "symfony/stopwatch": "^3.0 || ^4.0 || ^5.0" }, "require-dev": { "johnkary/phpunit-speedtrap": "^1.1 || ^2.0 || ^3.0", @@ -342,8 +342,8 @@ "php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "^1.1", "phpunit/phpunit": "^5.7.27 || ^6.5.14 || ^7.1", "phpunitgoodpractices/traits": "^1.8", - "symfony/phpunit-bridge": "^4.3", - "symfony/yaml": "^3.0 || ^4.0" + "symfony/phpunit-bridge": "^4.3 || ^5.0", + "symfony/yaml": "^3.0 || ^4.0 || ^5.0" }, "suggest": { "ext-mbstring": "For handling non-UTF8 characters in cache signature.", @@ -386,7 +386,7 @@ } ], "description": "A tool to automatically fix PHP code style", - "time": "2019-11-03T13:31:09+00:00" + "time": "2019-11-25T22:10:32+00:00" }, { "name": "myclabs/deep-copy", @@ -1185,6 +1185,52 @@ ], "time": "2017-02-14T16:28:37+00:00" }, + { + "name": "psr/event-dispatcher", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/event-dispatcher.git", + "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/event-dispatcher/zipball/dbefd12671e8a14ec7f180cab83036ed26714bb0", + "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0", + "shasum": "" + }, + "require": { + "php": ">=7.2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\EventDispatcher\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Standard interfaces for event handling.", + "keywords": [ + "events", + "psr", + "psr-14" + ], + "time": "2019-01-08T18:20:26+00:00" + }, { "name": "psr/log", "version": "1.1.2", @@ -1798,40 +1844,41 @@ }, { "name": "symfony/console", - "version": "v4.3.8", + "version": "v5.0.0", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "831424efae0a1fe6642784bd52aae14ece6538e6" + "reference": "1ece22ce0c2d54572dafcd114cc08c0031cc0ac3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/831424efae0a1fe6642784bd52aae14ece6538e6", - "reference": "831424efae0a1fe6642784bd52aae14ece6538e6", + "url": "https://api.github.com/repos/symfony/console/zipball/1ece22ce0c2d54572dafcd114cc08c0031cc0ac3", + "reference": "1ece22ce0c2d54572dafcd114cc08c0031cc0ac3", "shasum": "" }, "require": { - "php": "^7.1.3", + "php": "^7.2.5", "symfony/polyfill-mbstring": "~1.0", "symfony/polyfill-php73": "^1.8", - "symfony/service-contracts": "^1.1" + "symfony/service-contracts": "^1.1|^2" }, "conflict": { - "symfony/dependency-injection": "<3.4", - "symfony/event-dispatcher": "<4.3", - "symfony/process": "<3.3" + "symfony/dependency-injection": "<4.4", + "symfony/event-dispatcher": "<4.4", + "symfony/lock": "<4.4", + "symfony/process": "<4.4" }, "provide": { "psr/log-implementation": "1.0" }, "require-dev": { "psr/log": "~1.0", - "symfony/config": "~3.4|~4.0", - "symfony/dependency-injection": "~3.4|~4.0", - "symfony/event-dispatcher": "^4.3", - "symfony/lock": "~3.4|~4.0", - "symfony/process": "~3.4|~4.0", - "symfony/var-dumper": "^4.3" + "symfony/config": "^4.4|^5.0", + "symfony/dependency-injection": "^4.4|^5.0", + "symfony/event-dispatcher": "^4.4|^5.0", + "symfony/lock": "^4.4|^5.0", + "symfony/process": "^4.4|^5.0", + "symfony/var-dumper": "^4.4|^5.0" }, "suggest": { "psr/log": "For using the console logger", @@ -1842,7 +1889,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.3-dev" + "dev-master": "5.0-dev" } }, "autoload": { @@ -1869,41 +1916,41 @@ ], "description": "Symfony Console Component", "homepage": "https://symfony.com", - "time": "2019-11-13T07:29:07+00:00" + "time": "2019-11-18T17:27:11+00:00" }, { "name": "symfony/event-dispatcher", - "version": "v4.3.8", + "version": "v5.0.0", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "0df002fd4f500392eabd243c2947061a50937287" + "reference": "7b738a51645e10f864cc25c24d232fb03f37b475" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/0df002fd4f500392eabd243c2947061a50937287", - "reference": "0df002fd4f500392eabd243c2947061a50937287", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/7b738a51645e10f864cc25c24d232fb03f37b475", + "reference": "7b738a51645e10f864cc25c24d232fb03f37b475", "shasum": "" }, "require": { - "php": "^7.1.3", - "symfony/event-dispatcher-contracts": "^1.1" + "php": "^7.2.5", + "symfony/event-dispatcher-contracts": "^2" }, "conflict": { - "symfony/dependency-injection": "<3.4" + "symfony/dependency-injection": "<4.4" }, "provide": { "psr/event-dispatcher-implementation": "1.0", - "symfony/event-dispatcher-implementation": "1.1" + "symfony/event-dispatcher-implementation": "2.0" }, "require-dev": { "psr/log": "~1.0", - "symfony/config": "~3.4|~4.0", - "symfony/dependency-injection": "~3.4|~4.0", - "symfony/expression-language": "~3.4|~4.0", - "symfony/http-foundation": "^3.4|^4.0", - "symfony/service-contracts": "^1.1", - "symfony/stopwatch": "~3.4|~4.0" + "symfony/config": "^4.4|^5.0", + "symfony/dependency-injection": "^4.4|^5.0", + "symfony/expression-language": "^4.4|^5.0", + "symfony/http-foundation": "^4.4|^5.0", + "symfony/service-contracts": "^1.1|^2", + "symfony/stopwatch": "^4.4|^5.0" }, "suggest": { "symfony/dependency-injection": "", @@ -1912,7 +1959,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.3-dev" + "dev-master": "5.0-dev" } }, "autoload": { @@ -1939,33 +1986,33 @@ ], "description": "Symfony EventDispatcher Component", "homepage": "https://symfony.com", - "time": "2019-11-03T09:04:05+00:00" + "time": "2019-11-18T17:27:11+00:00" }, { "name": "symfony/event-dispatcher-contracts", - "version": "v1.1.7", + "version": "v2.0.0", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher-contracts.git", - "reference": "c43ab685673fb6c8d84220c77897b1d6cdbe1d18" + "reference": "bb09b1d8f8a35243195189ded0d41bdc798ac2fb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/c43ab685673fb6c8d84220c77897b1d6cdbe1d18", - "reference": "c43ab685673fb6c8d84220c77897b1d6cdbe1d18", + "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/bb09b1d8f8a35243195189ded0d41bdc798ac2fb", + "reference": "bb09b1d8f8a35243195189ded0d41bdc798ac2fb", "shasum": "" }, "require": { - "php": "^7.1.3" + "php": "^7.2.9", + "psr/event-dispatcher": "^1" }, "suggest": { - "psr/event-dispatcher": "", "symfony/event-dispatcher-implementation": "" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.1-dev" + "dev-master": "2.0-dev" } }, "autoload": { @@ -1997,30 +2044,30 @@ "interoperability", "standards" ], - "time": "2019-09-17T09:54:03+00:00" + "time": "2019-11-09T09:18:34+00:00" }, { "name": "symfony/filesystem", - "version": "v4.3.8", + "version": "v5.0.0", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "9abbb7ef96a51f4d7e69627bc6f63307994e4263" + "reference": "0bf75c37a71ff41f718b14b9f5a0a7d6a7dd9b84" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/9abbb7ef96a51f4d7e69627bc6f63307994e4263", - "reference": "9abbb7ef96a51f4d7e69627bc6f63307994e4263", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/0bf75c37a71ff41f718b14b9f5a0a7d6a7dd9b84", + "reference": "0bf75c37a71ff41f718b14b9f5a0a7d6a7dd9b84", "shasum": "" }, "require": { - "php": "^7.1.3", + "php": "^7.2.5", "symfony/polyfill-ctype": "~1.8" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.3-dev" + "dev-master": "5.0-dev" } }, "autoload": { @@ -2047,29 +2094,29 @@ ], "description": "Symfony Filesystem Component", "homepage": "https://symfony.com", - "time": "2019-08-20T14:07:54+00:00" + "time": "2019-11-18T17:27:11+00:00" }, { "name": "symfony/finder", - "version": "v4.3.8", + "version": "v5.0.0", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "72a068f77e317ae77c0a0495236ad292cfb5ce6f" + "reference": "17874dd8ab9a19422028ad56172fb294287a701b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/72a068f77e317ae77c0a0495236ad292cfb5ce6f", - "reference": "72a068f77e317ae77c0a0495236ad292cfb5ce6f", + "url": "https://api.github.com/repos/symfony/finder/zipball/17874dd8ab9a19422028ad56172fb294287a701b", + "reference": "17874dd8ab9a19422028ad56172fb294287a701b", "shasum": "" }, "require": { - "php": "^7.1.3" + "php": "^7.2.5" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.3-dev" + "dev-master": "5.0-dev" } }, "autoload": { @@ -2096,29 +2143,29 @@ ], "description": "Symfony Finder Component", "homepage": "https://symfony.com", - "time": "2019-10-30T12:53:54+00:00" + "time": "2019-11-18T17:27:11+00:00" }, { "name": "symfony/options-resolver", - "version": "v4.3.8", + "version": "v5.0.0", "source": { "type": "git", "url": "https://github.com/symfony/options-resolver.git", - "reference": "f46c7fc8e207bd8a2188f54f8738f232533765a4" + "reference": "1ad3d0ffc00cc1990e5c9c7bb6b81578ec3f5f68" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/options-resolver/zipball/f46c7fc8e207bd8a2188f54f8738f232533765a4", - "reference": "f46c7fc8e207bd8a2188f54f8738f232533765a4", + "url": "https://api.github.com/repos/symfony/options-resolver/zipball/1ad3d0ffc00cc1990e5c9c7bb6b81578ec3f5f68", + "reference": "1ad3d0ffc00cc1990e5c9c7bb6b81578ec3f5f68", "shasum": "" }, "require": { - "php": "^7.1.3" + "php": "^7.2.5" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.3-dev" + "dev-master": "5.0-dev" } }, "autoload": { @@ -2150,7 +2197,7 @@ "configuration", "options" ], - "time": "2019-10-28T20:59:01+00:00" + "time": "2019-11-18T17:27:11+00:00" }, { "name": "symfony/polyfill-ctype", @@ -2443,25 +2490,25 @@ }, { "name": "symfony/process", - "version": "v4.3.8", + "version": "v5.0.0", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "3b2e0cb029afbb0395034509291f21191d1a4db0" + "reference": "110f98bed214a007eb440c7bb14088fed96f847f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/3b2e0cb029afbb0395034509291f21191d1a4db0", - "reference": "3b2e0cb029afbb0395034509291f21191d1a4db0", + "url": "https://api.github.com/repos/symfony/process/zipball/110f98bed214a007eb440c7bb14088fed96f847f", + "reference": "110f98bed214a007eb440c7bb14088fed96f847f", "shasum": "" }, "require": { - "php": "^7.1.3" + "php": "^7.2.5" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.3-dev" + "dev-master": "5.0-dev" } }, "autoload": { @@ -2488,24 +2535,24 @@ ], "description": "Symfony Process Component", "homepage": "https://symfony.com", - "time": "2019-10-28T17:07:32+00:00" + "time": "2019-11-18T17:27:11+00:00" }, { "name": "symfony/service-contracts", - "version": "v1.1.8", + "version": "v2.0.0", "source": { "type": "git", "url": "https://github.com/symfony/service-contracts.git", - "reference": "ffc7f5692092df31515df2a5ecf3b7302b3ddacf" + "reference": "9d99e1556417bf227a62e14856d630672bf10eaf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/ffc7f5692092df31515df2a5ecf3b7302b3ddacf", - "reference": "ffc7f5692092df31515df2a5ecf3b7302b3ddacf", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/9d99e1556417bf227a62e14856d630672bf10eaf", + "reference": "9d99e1556417bf227a62e14856d630672bf10eaf", "shasum": "" }, "require": { - "php": "^7.1.3", + "php": "^7.2.9", "psr/container": "^1.0" }, "suggest": { @@ -2514,7 +2561,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.1-dev" + "dev-master": "2.0-dev" } }, "autoload": { @@ -2546,30 +2593,30 @@ "interoperability", "standards" ], - "time": "2019-10-14T12:27:06+00:00" + "time": "2019-11-09T09:18:34+00:00" }, { "name": "symfony/stopwatch", - "version": "v4.3.8", + "version": "v5.0.0", "source": { "type": "git", "url": "https://github.com/symfony/stopwatch.git", - "reference": "e96c259de6abcd0cead71f0bf4d730d53ee464d0" + "reference": "d410282956706e0b08681a5527447a8e6b6f421e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/stopwatch/zipball/e96c259de6abcd0cead71f0bf4d730d53ee464d0", - "reference": "e96c259de6abcd0cead71f0bf4d730d53ee464d0", + "url": "https://api.github.com/repos/symfony/stopwatch/zipball/d410282956706e0b08681a5527447a8e6b6f421e", + "reference": "d410282956706e0b08681a5527447a8e6b6f421e", "shasum": "" }, "require": { - "php": "^7.1.3", - "symfony/service-contracts": "^1.0" + "php": "^7.2.5", + "symfony/service-contracts": "^1.0|^2" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.3-dev" + "dev-master": "5.0-dev" } }, "autoload": { @@ -2596,20 +2643,20 @@ ], "description": "Symfony Stopwatch Component", "homepage": "https://symfony.com", - "time": "2019-11-05T14:48:09+00:00" + "time": "2019-11-18T17:27:11+00:00" }, { "name": "symfony/yaml", - "version": "v4.3.8", + "version": "v4.4.0", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "324cf4b19c345465fad14f3602050519e09e361d" + "reference": "76de473358fe802578a415d5bb43c296cf09d211" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/324cf4b19c345465fad14f3602050519e09e361d", - "reference": "324cf4b19c345465fad14f3602050519e09e361d", + "url": "https://api.github.com/repos/symfony/yaml/zipball/76de473358fe802578a415d5bb43c296cf09d211", + "reference": "76de473358fe802578a415d5bb43c296cf09d211", "shasum": "" }, "require": { @@ -2620,7 +2667,7 @@ "symfony/console": "<3.4" }, "require-dev": { - "symfony/console": "~3.4|~4.0" + "symfony/console": "^3.4|^4.0|^5.0" }, "suggest": { "symfony/console": "For validating YAML files using the lint command" @@ -2628,7 +2675,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.3-dev" + "dev-master": "4.4-dev" } }, "autoload": { @@ -2655,35 +2702,33 @@ ], "description": "Symfony Yaml Component", "homepage": "https://symfony.com", - "time": "2019-10-30T12:58:49+00:00" + "time": "2019-11-12T14:51:11+00:00" }, { "name": "webmozart/assert", - "version": "1.5.0", + "version": "1.6.0", "source": { "type": "git", "url": "https://github.com/webmozart/assert.git", - "reference": "88e6d84706d09a236046d686bbea96f07b3a34f4" + "reference": "573381c0a64f155a0d9a23f4b0c797194805b925" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/webmozart/assert/zipball/88e6d84706d09a236046d686bbea96f07b3a34f4", - "reference": "88e6d84706d09a236046d686bbea96f07b3a34f4", + "url": "https://api.github.com/repos/webmozart/assert/zipball/573381c0a64f155a0d9a23f4b0c797194805b925", + "reference": "573381c0a64f155a0d9a23f4b0c797194805b925", "shasum": "" }, "require": { "php": "^5.3.3 || ^7.0", "symfony/polyfill-ctype": "^1.8" }, + "conflict": { + "vimeo/psalm": "<3.6.0" + }, "require-dev": { "phpunit/phpunit": "^4.8.36 || ^7.5.13" }, "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.3-dev" - } - }, "autoload": { "psr-4": { "Webmozart\\Assert\\": "src/" @@ -2705,7 +2750,7 @@ "check", "validate" ], - "time": "2019-08-24T08:43:50+00:00" + "time": "2019-11-24T13:36:37+00:00" } ], "aliases": [], From be3a950124f67402ac8127316284b841c741bc1b Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 28 Jan 2020 18:46:46 +0100 Subject: [PATCH 15/20] Update dependency squizlabs/php_codesniffer to v3.5.3 (#19) Co-authored-by: WhiteSource Renovate --- composer.json | 2 +- composer.lock | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/composer.json b/composer.json index 2d9a331..29a2a89 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ "require-dev": { "phpunit/phpunit": "5.7.27", "friendsofphp/php-cs-fixer": "2.16.1", - "squizlabs/php_codesniffer": "3.5.2" + "squizlabs/php_codesniffer": "3.5.3" }, "autoload": { "psr-4": { diff --git a/composer.lock b/composer.lock index 57f8bf0..a21684c 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "5084e00c605b9a9a094080500cc4b167", + "content-hash": "0e53df162254f7eafdc39f5b3194e17a", "packages": [], "packages-dev": [ { @@ -1793,16 +1793,16 @@ }, { "name": "squizlabs/php_codesniffer", - "version": "3.5.2", + "version": "3.5.3", "source": { "type": "git", "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", - "reference": "65b12cdeaaa6cd276d4c3033a95b9b88b12701e7" + "reference": "557a1fc7ac702c66b0bbfe16ab3d55839ef724cb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/65b12cdeaaa6cd276d4c3033a95b9b88b12701e7", - "reference": "65b12cdeaaa6cd276d4c3033a95b9b88b12701e7", + "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/557a1fc7ac702c66b0bbfe16ab3d55839ef724cb", + "reference": "557a1fc7ac702c66b0bbfe16ab3d55839ef724cb", "shasum": "" }, "require": { @@ -1840,7 +1840,7 @@ "phpcs", "standards" ], - "time": "2019-10-28T04:36:32+00:00" + "time": "2019-12-04T04:46:47+00:00" }, { "name": "symfony/console", From 3614c9a2d2a4c3e689d26bff6cd2d6b5d2ec3fe4 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 31 Jan 2020 15:49:02 +0100 Subject: [PATCH 16/20] Update dependency squizlabs/php_codesniffer to v3.5.4 (#23) Co-authored-by: WhiteSource Renovate --- composer.json | 2 +- composer.lock | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/composer.json b/composer.json index 29a2a89..b724f10 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ "require-dev": { "phpunit/phpunit": "5.7.27", "friendsofphp/php-cs-fixer": "2.16.1", - "squizlabs/php_codesniffer": "3.5.3" + "squizlabs/php_codesniffer": "3.5.4" }, "autoload": { "psr-4": { diff --git a/composer.lock b/composer.lock index a21684c..61ed42d 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "0e53df162254f7eafdc39f5b3194e17a", + "content-hash": "d181bb008b848ce4218461baa0b1431b", "packages": [], "packages-dev": [ { @@ -1793,16 +1793,16 @@ }, { "name": "squizlabs/php_codesniffer", - "version": "3.5.3", + "version": "3.5.4", "source": { "type": "git", "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", - "reference": "557a1fc7ac702c66b0bbfe16ab3d55839ef724cb" + "reference": "dceec07328401de6211037abbb18bda423677e26" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/557a1fc7ac702c66b0bbfe16ab3d55839ef724cb", - "reference": "557a1fc7ac702c66b0bbfe16ab3d55839ef724cb", + "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/dceec07328401de6211037abbb18bda423677e26", + "reference": "dceec07328401de6211037abbb18bda423677e26", "shasum": "" }, "require": { @@ -1840,7 +1840,7 @@ "phpcs", "standards" ], - "time": "2019-12-04T04:46:47+00:00" + "time": "2020-01-30T22:20:29+00:00" }, { "name": "symfony/console", From 8cc04995f6309013c65c54439ecf6d6eb131ae1d Mon Sep 17 00:00:00 2001 From: Ahmed Date: Mon, 10 Feb 2020 19:52:38 +0100 Subject: [PATCH 17/20] Update .travis.yml --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 8924613..7613ebf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,8 @@ php: - 7.0 - 7.1 - 7.2 + - 7.3 + - 7.4 ## Cache composer cache: From 135ea0091d78621cabb3ef45989bc30592ea5e0c Mon Sep 17 00:00:00 2001 From: Clivern Date: Wed, 15 Jul 2020 22:49:43 +0200 Subject: [PATCH 18/20] bump pkgs --- composer.lock | 1089 ++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 885 insertions(+), 204 deletions(-) diff --git a/composer.lock b/composer.lock index 61ed42d..95e1231 100644 --- a/composer.lock +++ b/composer.lock @@ -9,24 +9,23 @@ "packages-dev": [ { "name": "composer/semver", - "version": "1.5.0", + "version": "1.5.1", "source": { "type": "git", "url": "https://github.com/composer/semver.git", - "reference": "46d9139568ccb8d9e7cdd4539cab7347568a5e2e" + "reference": "c6bea70230ef4dd483e6bbcab6005f682ed3a8de" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/semver/zipball/46d9139568ccb8d9e7cdd4539cab7347568a5e2e", - "reference": "46d9139568ccb8d9e7cdd4539cab7347568a5e2e", + "url": "https://api.github.com/repos/composer/semver/zipball/c6bea70230ef4dd483e6bbcab6005f682ed3a8de", + "reference": "c6bea70230ef4dd483e6bbcab6005f682ed3a8de", "shasum": "" }, "require": { "php": "^5.3.2 || ^7.0" }, "require-dev": { - "phpunit/phpunit": "^4.5 || ^5.0.5", - "phpunit/phpunit-mock-objects": "2.3.0 || ^3.0" + "phpunit/phpunit": "^4.5 || ^5.0.5" }, "type": "library", "extra": { @@ -67,20 +66,20 @@ "validation", "versioning" ], - "time": "2019-03-19T17:25:45+00:00" + "time": "2020-01-13T12:06:48+00:00" }, { "name": "composer/xdebug-handler", - "version": "1.4.0", + "version": "1.4.2", "source": { "type": "git", "url": "https://github.com/composer/xdebug-handler.git", - "reference": "cbe23383749496fe0f373345208b79568e4bc248" + "reference": "fa2aaf99e2087f013a14f7432c1cd2dd7d8f1f51" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/cbe23383749496fe0f373345208b79568e4bc248", - "reference": "cbe23383749496fe0f373345208b79568e4bc248", + "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/fa2aaf99e2087f013a14f7432c1cd2dd7d8f1f51", + "reference": "fa2aaf99e2087f013a14f7432c1cd2dd7d8f1f51", "shasum": "" }, "require": { @@ -111,25 +110,40 @@ "Xdebug", "performance" ], - "time": "2019-11-06T16:40:04+00:00" + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "time": "2020-06-04T11:16:35+00:00" }, { "name": "doctrine/annotations", - "version": "v1.8.0", + "version": "1.10.3", "source": { "type": "git", "url": "https://github.com/doctrine/annotations.git", - "reference": "904dca4eb10715b92569fbcd79e201d5c349b6bc" + "reference": "5db60a4969eba0e0c197a19c077780aadbc43c5d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/annotations/zipball/904dca4eb10715b92569fbcd79e201d5c349b6bc", - "reference": "904dca4eb10715b92569fbcd79e201d5c349b6bc", + "url": "https://api.github.com/repos/doctrine/annotations/zipball/5db60a4969eba0e0c197a19c077780aadbc43c5d", + "reference": "5db60a4969eba0e0c197a19c077780aadbc43c5d", "shasum": "" }, "require": { "doctrine/lexer": "1.*", - "php": "^7.1" + "ext-tokenizer": "*", + "php": "^7.1 || ^8.0" }, "require-dev": { "doctrine/cache": "1.*", @@ -138,7 +152,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.7.x-dev" + "dev-master": "1.9.x-dev" } }, "autoload": { @@ -179,24 +193,24 @@ "docblock", "parser" ], - "time": "2019-10-01T18:55:10+00:00" + "time": "2020-05-25T17:24:27+00:00" }, { "name": "doctrine/instantiator", - "version": "1.3.0", + "version": "1.3.1", "source": { "type": "git", "url": "https://github.com/doctrine/instantiator.git", - "reference": "ae466f726242e637cebdd526a7d991b9433bacf1" + "reference": "f350df0268e904597e3bd9c4685c53e0e333feea" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/ae466f726242e637cebdd526a7d991b9433bacf1", - "reference": "ae466f726242e637cebdd526a7d991b9433bacf1", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/f350df0268e904597e3bd9c4685c53e0e333feea", + "reference": "f350df0268e904597e3bd9c4685c53e0e333feea", "shasum": "" }, "require": { - "php": "^7.1" + "php": "^7.1 || ^8.0" }, "require-dev": { "doctrine/coding-standard": "^6.0", @@ -235,24 +249,38 @@ "constructor", "instantiate" ], - "time": "2019-10-21T16:45:58+00:00" + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator", + "type": "tidelift" + } + ], + "time": "2020-05-29T17:27:14+00:00" }, { "name": "doctrine/lexer", - "version": "1.2.0", + "version": "1.2.1", "source": { "type": "git", "url": "https://github.com/doctrine/lexer.git", - "reference": "5242d66dbeb21a30dd8a3e66bf7a73b66e05e1f6" + "reference": "e864bbf5904cb8f5bb334f99209b48018522f042" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/lexer/zipball/5242d66dbeb21a30dd8a3e66bf7a73b66e05e1f6", - "reference": "5242d66dbeb21a30dd8a3e66bf7a73b66e05e1f6", + "url": "https://api.github.com/repos/doctrine/lexer/zipball/e864bbf5904cb8f5bb334f99209b48018522f042", + "reference": "e864bbf5904cb8f5bb334f99209b48018522f042", "shasum": "" }, "require": { - "php": "^7.2" + "php": "^7.2 || ^8.0" }, "require-dev": { "doctrine/coding-standard": "^6.0", @@ -297,7 +325,21 @@ "parser", "php" ], - "time": "2019-10-30T14:39:59+00:00" + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Flexer", + "type": "tidelift" + } + ], + "time": "2020-05-25T17:44:05+00:00" }, { "name": "friendsofphp/php-cs-fixer", @@ -390,20 +432,20 @@ }, { "name": "myclabs/deep-copy", - "version": "1.9.3", + "version": "1.10.1", "source": { "type": "git", "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "007c053ae6f31bba39dfa19a7726f56e9763bbea" + "reference": "969b211f9a51aa1f6c01d1d2aef56d3bd91598e5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/007c053ae6f31bba39dfa19a7726f56e9763bbea", - "reference": "007c053ae6f31bba39dfa19a7726f56e9763bbea", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/969b211f9a51aa1f6c01d1d2aef56d3bd91598e5", + "reference": "969b211f9a51aa1f6c01d1d2aef56d3bd91598e5", "shasum": "" }, "require": { - "php": "^7.1" + "php": "^7.1 || ^8.0" }, "replace": { "myclabs/deep-copy": "self.version" @@ -434,7 +476,13 @@ "object", "object graph" ], - "time": "2019-08-09T12:45:53+00:00" + "funding": [ + { + "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", + "type": "tidelift" + } + ], + "time": "2020-06-29T13:22:24+00:00" }, { "name": "paragonie/random_compat", @@ -534,28 +582,25 @@ }, { "name": "phpdocumentor/reflection-common", - "version": "2.0.0", + "version": "2.2.0", "source": { "type": "git", "url": "https://github.com/phpDocumentor/ReflectionCommon.git", - "reference": "63a995caa1ca9e5590304cd845c15ad6d482a62a" + "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/63a995caa1ca9e5590304cd845c15ad6d482a62a", - "reference": "63a995caa1ca9e5590304cd845c15ad6d482a62a", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/1d01c49d4ed62f25aa84a747ad35d5a16924662b", + "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b", "shasum": "" }, "require": { - "php": ">=7.1" - }, - "require-dev": { - "phpunit/phpunit": "~6" + "php": "^7.2 || ^8.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.x-dev" + "dev-2.x": "2.x-dev" } }, "autoload": { @@ -582,44 +627,42 @@ "reflection", "static analysis" ], - "time": "2018-08-07T13:53:10+00:00" + "time": "2020-06-27T09:03:43+00:00" }, { "name": "phpdocumentor/reflection-docblock", - "version": "4.3.2", + "version": "5.1.0", "source": { "type": "git", "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "b83ff7cfcfee7827e1e78b637a5904fe6a96698e" + "reference": "cd72d394ca794d3466a3b2fc09d5a6c1dc86b47e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/b83ff7cfcfee7827e1e78b637a5904fe6a96698e", - "reference": "b83ff7cfcfee7827e1e78b637a5904fe6a96698e", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/cd72d394ca794d3466a3b2fc09d5a6c1dc86b47e", + "reference": "cd72d394ca794d3466a3b2fc09d5a6c1dc86b47e", "shasum": "" }, "require": { - "php": "^7.0", - "phpdocumentor/reflection-common": "^1.0.0 || ^2.0.0", - "phpdocumentor/type-resolver": "~0.4 || ^1.0.0", - "webmozart/assert": "^1.0" + "ext-filter": "^7.1", + "php": "^7.2", + "phpdocumentor/reflection-common": "^2.0", + "phpdocumentor/type-resolver": "^1.0", + "webmozart/assert": "^1" }, "require-dev": { - "doctrine/instantiator": "^1.0.5", - "mockery/mockery": "^1.0", - "phpunit/phpunit": "^6.4" + "doctrine/instantiator": "^1", + "mockery/mockery": "^1" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "4.x-dev" + "dev-master": "5.x-dev" } }, "autoload": { "psr-4": { - "phpDocumentor\\Reflection\\": [ - "src/" - ] + "phpDocumentor\\Reflection\\": "src" } }, "notification-url": "https://packagist.org/downloads/", @@ -630,38 +673,40 @@ { "name": "Mike van Riel", "email": "me@mikevanriel.com" + }, + { + "name": "Jaap van Otterdijk", + "email": "account@ijaap.nl" } ], "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", - "time": "2019-09-12T14:27:41+00:00" + "time": "2020-02-22T12:28:44+00:00" }, { "name": "phpdocumentor/type-resolver", - "version": "1.0.1", + "version": "1.3.0", "source": { "type": "git", "url": "https://github.com/phpDocumentor/TypeResolver.git", - "reference": "2e32a6d48972b2c1976ed5d8967145b6cec4a4a9" + "reference": "e878a14a65245fbe78f8080eba03b47c3b705651" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/2e32a6d48972b2c1976ed5d8967145b6cec4a4a9", - "reference": "2e32a6d48972b2c1976ed5d8967145b6cec4a4a9", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/e878a14a65245fbe78f8080eba03b47c3b705651", + "reference": "e878a14a65245fbe78f8080eba03b47c3b705651", "shasum": "" }, "require": { - "php": "^7.1", + "php": "^7.2 || ^8.0", "phpdocumentor/reflection-common": "^2.0" }, "require-dev": { - "ext-tokenizer": "^7.1", - "mockery/mockery": "~1", - "phpunit/phpunit": "^7.0" + "ext-tokenizer": "*" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.x-dev" + "dev-1.x": "1.x-dev" } }, "autoload": { @@ -680,37 +725,37 @@ } ], "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", - "time": "2019-08-22T18:11:29+00:00" + "time": "2020-06-27T10:12:23+00:00" }, { "name": "phpspec/prophecy", - "version": "1.9.0", + "version": "v1.10.3", "source": { "type": "git", "url": "https://github.com/phpspec/prophecy.git", - "reference": "f6811d96d97bdf400077a0cc100ae56aa32b9203" + "reference": "451c3cd1418cf640de218914901e51b064abb093" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpspec/prophecy/zipball/f6811d96d97bdf400077a0cc100ae56aa32b9203", - "reference": "f6811d96d97bdf400077a0cc100ae56aa32b9203", + "url": "https://api.github.com/repos/phpspec/prophecy/zipball/451c3cd1418cf640de218914901e51b064abb093", + "reference": "451c3cd1418cf640de218914901e51b064abb093", "shasum": "" }, "require": { "doctrine/instantiator": "^1.0.2", "php": "^5.3|^7.0", "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0|^5.0", - "sebastian/comparator": "^1.1|^2.0|^3.0", - "sebastian/recursion-context": "^1.0|^2.0|^3.0" + "sebastian/comparator": "^1.2.3|^2.0|^3.0|^4.0", + "sebastian/recursion-context": "^1.0|^2.0|^3.0|^4.0" }, "require-dev": { - "phpspec/phpspec": "^2.5|^3.2", + "phpspec/phpspec": "^2.5 || ^3.2", "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5 || ^7.1" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.8.x-dev" + "dev-master": "1.10.x-dev" } }, "autoload": { @@ -743,7 +788,7 @@ "spy", "stub" ], - "time": "2019-10-03T11:07:50+00:00" + "time": "2020-03-05T15:02:03+00:00" }, { "name": "phpunit/php-code-coverage", @@ -1233,16 +1278,16 @@ }, { "name": "psr/log", - "version": "1.1.2", + "version": "1.1.3", "source": { "type": "git", "url": "https://github.com/php-fig/log.git", - "reference": "446d54b4cb6bf489fc9d75f55843658e6f25d801" + "reference": "0f73288fd15629204f9d42b7055f72dacbe811fc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/log/zipball/446d54b4cb6bf489fc9d75f55843658e6f25d801", - "reference": "446d54b4cb6bf489fc9d75f55843658e6f25d801", + "url": "https://api.github.com/repos/php-fig/log/zipball/0f73288fd15629204f9d42b7055f72dacbe811fc", + "reference": "0f73288fd15629204f9d42b7055f72dacbe811fc", "shasum": "" }, "require": { @@ -1276,7 +1321,7 @@ "psr", "psr-3" ], - "time": "2019-11-01T11:05:21+00:00" + "time": "2020-03-23T09:12:05+00:00" }, { "name": "sebastian/code-unit-reverse-lookup", @@ -1844,26 +1889,29 @@ }, { "name": "symfony/console", - "version": "v5.0.0", + "version": "v5.1.2", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "1ece22ce0c2d54572dafcd114cc08c0031cc0ac3" + "reference": "34ac555a3627e324b660e318daa07572e1140123" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/1ece22ce0c2d54572dafcd114cc08c0031cc0ac3", - "reference": "1ece22ce0c2d54572dafcd114cc08c0031cc0ac3", + "url": "https://api.github.com/repos/symfony/console/zipball/34ac555a3627e324b660e318daa07572e1140123", + "reference": "34ac555a3627e324b660e318daa07572e1140123", "shasum": "" }, "require": { - "php": "^7.2.5", + "php": ">=7.2.5", "symfony/polyfill-mbstring": "~1.0", "symfony/polyfill-php73": "^1.8", - "symfony/service-contracts": "^1.1|^2" + "symfony/polyfill-php80": "^1.15", + "symfony/service-contracts": "^1.1|^2", + "symfony/string": "^5.1" }, "conflict": { "symfony/dependency-injection": "<4.4", + "symfony/dotenv": "<5.1", "symfony/event-dispatcher": "<4.4", "symfony/lock": "<4.4", "symfony/process": "<4.4" @@ -1889,7 +1937,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "5.0-dev" + "dev-master": "5.1-dev" } }, "autoload": { @@ -1916,25 +1964,105 @@ ], "description": "Symfony Console Component", "homepage": "https://symfony.com", - "time": "2019-11-18T17:27:11+00:00" + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-06-15T12:59:21+00:00" }, { - "name": "symfony/event-dispatcher", - "version": "v5.0.0", + "name": "symfony/deprecation-contracts", + "version": "v2.1.3", "source": { "type": "git", - "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "7b738a51645e10f864cc25c24d232fb03f37b475" + "url": "https://github.com/symfony/deprecation-contracts.git", + "reference": "5e20b83385a77593259c9f8beb2c43cd03b2ac14" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/7b738a51645e10f864cc25c24d232fb03f37b475", - "reference": "7b738a51645e10f864cc25c24d232fb03f37b475", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/5e20b83385a77593259c9f8beb2c43cd03b2ac14", + "reference": "5e20b83385a77593259c9f8beb2c43cd03b2ac14", "shasum": "" }, "require": { - "php": "^7.2.5", - "symfony/event-dispatcher-contracts": "^2" + "php": ">=7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.1-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "autoload": { + "files": [ + "function.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "A generic function and convention to trigger deprecation notices", + "homepage": "https://symfony.com", + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-06-06T08:49:21+00:00" + }, + { + "name": "symfony/event-dispatcher", + "version": "v5.1.2", + "source": { + "type": "git", + "url": "https://github.com/symfony/event-dispatcher.git", + "reference": "cc0d059e2e997e79ca34125a52f3e33de4424ac7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/cc0d059e2e997e79ca34125a52f3e33de4424ac7", + "reference": "cc0d059e2e997e79ca34125a52f3e33de4424ac7", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/deprecation-contracts": "^2.1", + "symfony/event-dispatcher-contracts": "^2", + "symfony/polyfill-php80": "^1.15" }, "conflict": { "symfony/dependency-injection": "<4.4" @@ -1959,7 +2087,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "5.0-dev" + "dev-master": "5.1-dev" } }, "autoload": { @@ -1986,24 +2114,38 @@ ], "description": "Symfony EventDispatcher Component", "homepage": "https://symfony.com", - "time": "2019-11-18T17:27:11+00:00" + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-05-20T17:43:50+00:00" }, { "name": "symfony/event-dispatcher-contracts", - "version": "v2.0.0", + "version": "v2.1.3", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher-contracts.git", - "reference": "bb09b1d8f8a35243195189ded0d41bdc798ac2fb" + "reference": "f6f613d74cfc5a623fc36294d3451eb7fa5a042b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/bb09b1d8f8a35243195189ded0d41bdc798ac2fb", - "reference": "bb09b1d8f8a35243195189ded0d41bdc798ac2fb", + "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/f6f613d74cfc5a623fc36294d3451eb7fa5a042b", + "reference": "f6f613d74cfc5a623fc36294d3451eb7fa5a042b", "shasum": "" }, "require": { - "php": "^7.2.9", + "php": ">=7.2.5", "psr/event-dispatcher": "^1" }, "suggest": { @@ -2012,7 +2154,11 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0-dev" + "dev-master": "2.1-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" } }, "autoload": { @@ -2044,30 +2190,44 @@ "interoperability", "standards" ], - "time": "2019-11-09T09:18:34+00:00" + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-07-06T13:23:11+00:00" }, { "name": "symfony/filesystem", - "version": "v5.0.0", + "version": "v5.1.2", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "0bf75c37a71ff41f718b14b9f5a0a7d6a7dd9b84" + "reference": "6e4320f06d5f2cce0d96530162491f4465179157" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/0bf75c37a71ff41f718b14b9f5a0a7d6a7dd9b84", - "reference": "0bf75c37a71ff41f718b14b9f5a0a7d6a7dd9b84", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/6e4320f06d5f2cce0d96530162491f4465179157", + "reference": "6e4320f06d5f2cce0d96530162491f4465179157", "shasum": "" }, "require": { - "php": "^7.2.5", + "php": ">=7.2.5", "symfony/polyfill-ctype": "~1.8" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "5.0-dev" + "dev-master": "5.1-dev" } }, "autoload": { @@ -2094,29 +2254,43 @@ ], "description": "Symfony Filesystem Component", "homepage": "https://symfony.com", - "time": "2019-11-18T17:27:11+00:00" + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-05-30T20:35:19+00:00" }, { "name": "symfony/finder", - "version": "v5.0.0", + "version": "v5.1.2", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "17874dd8ab9a19422028ad56172fb294287a701b" + "reference": "4298870062bfc667cb78d2b379be4bf5dec5f187" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/17874dd8ab9a19422028ad56172fb294287a701b", - "reference": "17874dd8ab9a19422028ad56172fb294287a701b", + "url": "https://api.github.com/repos/symfony/finder/zipball/4298870062bfc667cb78d2b379be4bf5dec5f187", + "reference": "4298870062bfc667cb78d2b379be4bf5dec5f187", "shasum": "" }, "require": { - "php": "^7.2.5" + "php": ">=7.2.5" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "5.0-dev" + "dev-master": "5.1-dev" } }, "autoload": { @@ -2143,29 +2317,45 @@ ], "description": "Symfony Finder Component", "homepage": "https://symfony.com", - "time": "2019-11-18T17:27:11+00:00" + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-05-20T17:43:50+00:00" }, { "name": "symfony/options-resolver", - "version": "v5.0.0", + "version": "v5.1.2", "source": { "type": "git", "url": "https://github.com/symfony/options-resolver.git", - "reference": "1ad3d0ffc00cc1990e5c9c7bb6b81578ec3f5f68" + "reference": "663f5dd5e14057d1954fe721f9709d35837f2447" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/options-resolver/zipball/1ad3d0ffc00cc1990e5c9c7bb6b81578ec3f5f68", - "reference": "1ad3d0ffc00cc1990e5c9c7bb6b81578ec3f5f68", + "url": "https://api.github.com/repos/symfony/options-resolver/zipball/663f5dd5e14057d1954fe721f9709d35837f2447", + "reference": "663f5dd5e14057d1954fe721f9709d35837f2447", "shasum": "" }, "require": { - "php": "^7.2.5" + "php": ">=7.2.5", + "symfony/deprecation-contracts": "^2.1", + "symfony/polyfill-php80": "^1.15" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "5.0-dev" + "dev-master": "5.1-dev" } }, "autoload": { @@ -2197,20 +2387,34 @@ "configuration", "options" ], - "time": "2019-11-18T17:27:11+00:00" + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-05-23T13:08:13+00:00" }, { "name": "symfony/polyfill-ctype", - "version": "v1.12.0", + "version": "v1.18.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-ctype.git", - "reference": "550ebaac289296ce228a706d0867afc34687e3f4" + "reference": "1c302646f6efc070cd46856e600e5e0684d6b454" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/550ebaac289296ce228a706d0867afc34687e3f4", - "reference": "550ebaac289296ce228a706d0867afc34687e3f4", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/1c302646f6efc070cd46856e600e5e0684d6b454", + "reference": "1c302646f6efc070cd46856e600e5e0684d6b454", "shasum": "" }, "require": { @@ -2222,7 +2426,11 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.12-dev" + "dev-master": "1.18-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" } }, "autoload": { @@ -2255,20 +2463,193 @@ "polyfill", "portable" ], - "time": "2019-08-06T08:03:45+00:00" + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-07-14T12:35:20+00:00" }, { - "name": "symfony/polyfill-mbstring", - "version": "v1.12.0", + "name": "symfony/polyfill-intl-grapheme", + "version": "v1.18.0", "source": { "type": "git", - "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "b42a2f66e8f1b15ccf25652c3424265923eb4f17" + "url": "https://github.com/symfony/polyfill-intl-grapheme.git", + "reference": "b740103edbdcc39602239ee8860f0f45a8eb9aa5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/b42a2f66e8f1b15ccf25652c3424265923eb4f17", - "reference": "b42a2f66e8f1b15ccf25652c3424265923eb4f17", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/b740103edbdcc39602239ee8860f0f45a8eb9aa5", + "reference": "b740103edbdcc39602239ee8860f0f45a8eb9aa5", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.18-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Intl\\Grapheme\\": "" + }, + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for intl's grapheme_* functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "grapheme", + "intl", + "polyfill", + "portable", + "shim" + ], + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-07-14T12:35:20+00:00" + }, + { + "name": "symfony/polyfill-intl-normalizer", + "version": "v1.18.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-normalizer.git", + "reference": "37078a8dd4a2a1e9ab0231af7c6cb671b2ed5a7e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/37078a8dd4a2a1e9ab0231af7c6cb671b2ed5a7e", + "reference": "37078a8dd4a2a1e9ab0231af7c6cb671b2ed5a7e", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.18-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Intl\\Normalizer\\": "" + }, + "files": [ + "bootstrap.php" + ], + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for intl's Normalizer class and related functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "intl", + "normalizer", + "polyfill", + "portable", + "shim" + ], + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-07-14T12:35:20+00:00" + }, + { + "name": "symfony/polyfill-mbstring", + "version": "v1.18.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-mbstring.git", + "reference": "a6977d63bf9a0ad4c65cd352709e230876f9904a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/a6977d63bf9a0ad4c65cd352709e230876f9904a", + "reference": "a6977d63bf9a0ad4c65cd352709e230876f9904a", "shasum": "" }, "require": { @@ -2280,7 +2661,11 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.12-dev" + "dev-master": "1.18-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" } }, "autoload": { @@ -2314,20 +2699,34 @@ "portable", "shim" ], - "time": "2019-08-06T08:03:45+00:00" + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-07-14T12:35:20+00:00" }, { "name": "symfony/polyfill-php70", - "version": "v1.12.0", + "version": "v1.18.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php70.git", - "reference": "54b4c428a0054e254223797d2713c31e08610831" + "reference": "0dd93f2c578bdc9c72697eaa5f1dd25644e618d3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php70/zipball/54b4c428a0054e254223797d2713c31e08610831", - "reference": "54b4c428a0054e254223797d2713c31e08610831", + "url": "https://api.github.com/repos/symfony/polyfill-php70/zipball/0dd93f2c578bdc9c72697eaa5f1dd25644e618d3", + "reference": "0dd93f2c578bdc9c72697eaa5f1dd25644e618d3", "shasum": "" }, "require": { @@ -2337,7 +2736,11 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.12-dev" + "dev-master": "1.18-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" } }, "autoload": { @@ -2373,20 +2776,34 @@ "portable", "shim" ], - "time": "2019-08-06T08:03:45+00:00" + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-07-14T12:35:20+00:00" }, { "name": "symfony/polyfill-php72", - "version": "v1.12.0", + "version": "v1.18.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php72.git", - "reference": "04ce3335667451138df4307d6a9b61565560199e" + "reference": "639447d008615574653fb3bc60d1986d7172eaae" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/04ce3335667451138df4307d6a9b61565560199e", - "reference": "04ce3335667451138df4307d6a9b61565560199e", + "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/639447d008615574653fb3bc60d1986d7172eaae", + "reference": "639447d008615574653fb3bc60d1986d7172eaae", "shasum": "" }, "require": { @@ -2395,7 +2812,11 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.12-dev" + "dev-master": "1.18-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" } }, "autoload": { @@ -2428,20 +2849,34 @@ "portable", "shim" ], - "time": "2019-08-06T08:03:45+00:00" + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-07-14T12:35:20+00:00" }, { "name": "symfony/polyfill-php73", - "version": "v1.12.0", + "version": "v1.18.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php73.git", - "reference": "2ceb49eaccb9352bff54d22570276bb75ba4a188" + "reference": "fffa1a52a023e782cdcc221d781fe1ec8f87fcca" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/2ceb49eaccb9352bff54d22570276bb75ba4a188", - "reference": "2ceb49eaccb9352bff54d22570276bb75ba4a188", + "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/fffa1a52a023e782cdcc221d781fe1ec8f87fcca", + "reference": "fffa1a52a023e782cdcc221d781fe1ec8f87fcca", "shasum": "" }, "require": { @@ -2450,7 +2885,11 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.12-dev" + "dev-master": "1.18-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" } }, "autoload": { @@ -2486,29 +2925,124 @@ "portable", "shim" ], - "time": "2019-08-06T08:03:45+00:00" + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-07-14T12:35:20+00:00" }, { - "name": "symfony/process", - "version": "v5.0.0", + "name": "symfony/polyfill-php80", + "version": "v1.18.0", "source": { "type": "git", - "url": "https://github.com/symfony/process.git", - "reference": "110f98bed214a007eb440c7bb14088fed96f847f" + "url": "https://github.com/symfony/polyfill-php80.git", + "reference": "d87d5766cbf48d72388a9f6b85f280c8ad51f981" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/110f98bed214a007eb440c7bb14088fed96f847f", - "reference": "110f98bed214a007eb440c7bb14088fed96f847f", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/d87d5766cbf48d72388a9f6b85f280c8ad51f981", + "reference": "d87d5766cbf48d72388a9f6b85f280c8ad51f981", "shasum": "" }, "require": { - "php": "^7.2.5" + "php": ">=7.0.8" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "5.0-dev" + "dev-master": "1.18-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Php80\\": "" + }, + "files": [ + "bootstrap.php" + ], + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ion Bazan", + "email": "ion.bazan@gmail.com" + }, + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-07-14T12:35:20+00:00" + }, + { + "name": "symfony/process", + "version": "v5.1.2", + "source": { + "type": "git", + "url": "https://github.com/symfony/process.git", + "reference": "7f6378c1fa2147eeb1b4c385856ce9de0d46ebd1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/process/zipball/7f6378c1fa2147eeb1b4c385856ce9de0d46ebd1", + "reference": "7f6378c1fa2147eeb1b4c385856ce9de0d46ebd1", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/polyfill-php80": "^1.15" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.1-dev" } }, "autoload": { @@ -2535,24 +3069,38 @@ ], "description": "Symfony Process Component", "homepage": "https://symfony.com", - "time": "2019-11-18T17:27:11+00:00" + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-05-30T20:35:19+00:00" }, { "name": "symfony/service-contracts", - "version": "v2.0.0", + "version": "v2.1.3", "source": { "type": "git", "url": "https://github.com/symfony/service-contracts.git", - "reference": "9d99e1556417bf227a62e14856d630672bf10eaf" + "reference": "58c7475e5457c5492c26cc740cc0ad7464be9442" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/9d99e1556417bf227a62e14856d630672bf10eaf", - "reference": "9d99e1556417bf227a62e14856d630672bf10eaf", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/58c7475e5457c5492c26cc740cc0ad7464be9442", + "reference": "58c7475e5457c5492c26cc740cc0ad7464be9442", "shasum": "" }, "require": { - "php": "^7.2.9", + "php": ">=7.2.5", "psr/container": "^1.0" }, "suggest": { @@ -2561,7 +3109,11 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0-dev" + "dev-master": "2.1-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" } }, "autoload": { @@ -2593,30 +3145,44 @@ "interoperability", "standards" ], - "time": "2019-11-09T09:18:34+00:00" + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-07-06T13:23:11+00:00" }, { "name": "symfony/stopwatch", - "version": "v5.0.0", + "version": "v5.1.2", "source": { "type": "git", "url": "https://github.com/symfony/stopwatch.git", - "reference": "d410282956706e0b08681a5527447a8e6b6f421e" + "reference": "0f7c58cf81dbb5dd67d423a89d577524a2ec0323" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/stopwatch/zipball/d410282956706e0b08681a5527447a8e6b6f421e", - "reference": "d410282956706e0b08681a5527447a8e6b6f421e", + "url": "https://api.github.com/repos/symfony/stopwatch/zipball/0f7c58cf81dbb5dd67d423a89d577524a2ec0323", + "reference": "0f7c58cf81dbb5dd67d423a89d577524a2ec0323", "shasum": "" }, "require": { - "php": "^7.2.5", + "php": ">=7.2.5", "symfony/service-contracts": "^1.0|^2" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "5.0-dev" + "dev-master": "5.1-dev" } }, "autoload": { @@ -2643,24 +3209,123 @@ ], "description": "Symfony Stopwatch Component", "homepage": "https://symfony.com", - "time": "2019-11-18T17:27:11+00:00" + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-05-20T17:43:50+00:00" }, { - "name": "symfony/yaml", - "version": "v4.4.0", + "name": "symfony/string", + "version": "v5.1.2", "source": { "type": "git", - "url": "https://github.com/symfony/yaml.git", - "reference": "76de473358fe802578a415d5bb43c296cf09d211" + "url": "https://github.com/symfony/string.git", + "reference": "ac70459db781108db7c6d8981dd31ce0e29e3298" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/76de473358fe802578a415d5bb43c296cf09d211", - "reference": "76de473358fe802578a415d5bb43c296cf09d211", + "url": "https://api.github.com/repos/symfony/string/zipball/ac70459db781108db7c6d8981dd31ce0e29e3298", + "reference": "ac70459db781108db7c6d8981dd31ce0e29e3298", "shasum": "" }, "require": { - "php": "^7.1.3", + "php": ">=7.2.5", + "symfony/polyfill-ctype": "~1.8", + "symfony/polyfill-intl-grapheme": "~1.0", + "symfony/polyfill-intl-normalizer": "~1.0", + "symfony/polyfill-mbstring": "~1.0", + "symfony/polyfill-php80": "~1.15" + }, + "require-dev": { + "symfony/error-handler": "^4.4|^5.0", + "symfony/http-client": "^4.4|^5.0", + "symfony/translation-contracts": "^1.1|^2", + "symfony/var-exporter": "^4.4|^5.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.1-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\String\\": "" + }, + "files": [ + "Resources/functions.php" + ], + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony String component", + "homepage": "https://symfony.com", + "keywords": [ + "grapheme", + "i18n", + "string", + "unicode", + "utf-8", + "utf8" + ], + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-06-11T12:16:36+00:00" + }, + { + "name": "symfony/yaml", + "version": "v4.4.10", + "source": { + "type": "git", + "url": "https://github.com/symfony/yaml.git", + "reference": "c2d2cc66e892322cfcc03f8f12f8340dbd7a3f8a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/yaml/zipball/c2d2cc66e892322cfcc03f8f12f8340dbd7a3f8a", + "reference": "c2d2cc66e892322cfcc03f8f12f8340dbd7a3f8a", + "shasum": "" + }, + "require": { + "php": ">=7.1.3", "symfony/polyfill-ctype": "~1.8" }, "conflict": { @@ -2702,28 +3367,43 @@ ], "description": "Symfony Yaml Component", "homepage": "https://symfony.com", - "time": "2019-11-12T14:51:11+00:00" + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-05-20T08:37:50+00:00" }, { "name": "webmozart/assert", - "version": "1.6.0", + "version": "1.9.1", "source": { "type": "git", "url": "https://github.com/webmozart/assert.git", - "reference": "573381c0a64f155a0d9a23f4b0c797194805b925" + "reference": "bafc69caeb4d49c39fd0779086c03a3738cbb389" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/webmozart/assert/zipball/573381c0a64f155a0d9a23f4b0c797194805b925", - "reference": "573381c0a64f155a0d9a23f4b0c797194805b925", + "url": "https://api.github.com/repos/webmozart/assert/zipball/bafc69caeb4d49c39fd0779086c03a3738cbb389", + "reference": "bafc69caeb4d49c39fd0779086c03a3738cbb389", "shasum": "" }, "require": { - "php": "^5.3.3 || ^7.0", + "php": "^5.3.3 || ^7.0 || ^8.0", "symfony/polyfill-ctype": "^1.8" }, "conflict": { - "vimeo/psalm": "<3.6.0" + "phpstan/phpstan": "<0.12.20", + "vimeo/psalm": "<3.9.1" }, "require-dev": { "phpunit/phpunit": "^4.8.36 || ^7.5.13" @@ -2750,7 +3430,7 @@ "check", "validate" ], - "time": "2019-11-24T13:36:37+00:00" + "time": "2020-07-08T17:02:28+00:00" } ], "aliases": [], @@ -2761,5 +3441,6 @@ "platform": { "php": ">=5.6.4" }, - "platform-dev": [] + "platform-dev": [], + "plugin-api-version": "1.1.0" } From ce00940822b9211267840c1f540d19a7032b5fe5 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Mon, 4 Apr 2022 16:33:11 +0200 Subject: [PATCH 19/20] fix notice "Notice: Undefined property: stdClass::$dparameters" --- src/Core/Message/Attachment.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/Message/Attachment.php b/src/Core/Message/Attachment.php index a6f0e76..f1d7916 100644 --- a/src/Core/Message/Attachment.php +++ b/src/Core/Message/Attachment.php @@ -226,7 +226,7 @@ class Attachment $this->attachment['ifdparameters'] = (isset($this->part->ifdparameters)) ? $this->part->ifdparameters : false; $this->attachment['ifparameters'] = (isset($this->part->ifparameters)) ? $this->part->ifparameters : false; - if (\is_array($this->part->dparameters)) { + if (isset($this->part->dparameters) && \is_array($this->part->dparameters)) { foreach ($this->part->dparameters as $obj) { if (\in_array(mb_strtolower($obj->attribute), ['filename', 'name'], true)) { $this->attachment[mb_strtolower($obj->attribute)] = pathinfo($obj->value, PATHINFO_FILENAME); @@ -235,7 +235,7 @@ class Attachment } } - if (\is_array($this->part->parameters)) { + if (isset($this->part->parameters) && \is_array($this->part->parameters)) { foreach ($this->part->parameters as $obj) { if (\in_array(mb_strtolower($obj->attribute), ['filename', 'name'], true)) { $this->attachment[mb_strtolower($obj->attribute)] = pathinfo($obj->value, PATHINFO_FILENAME); From aef063794963d9a98b93ecf9d91274d277fd7693 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Mon, 4 Apr 2022 16:33:18 +0200 Subject: [PATCH 20/20] update composer --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index b724f10..02afdeb 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "clivern/imap", + "name": "deblan/clivern-imap", "type": "library", "description": "Access Mailbox Using PHP IMAP", "keywords": ["clivern", "imap"],