From 30538371891c4a4f86488cac2591a89397129d62 Mon Sep 17 00:00:00 2001 From: Lai Power Date: Fri, 25 Sep 2020 14:44:17 +0000 Subject: [PATCH] updated plugin `WP Mail SMTP` version 2.4.0 --- .../wp-mail-smtp/assets/css/admin-bar.min.css | 2 - .../assets/css/admin-notifications.min.css | 2 - .../assets/css/smtp-about.min.css | 4 +- .../assets/css/smtp-admin.min.css | 4 +- .../assets/images/about/plugin-mi.png | Bin 7244 -> 7238 bytes .../assets/images/email/wp-mail-smtp.png | Bin 24087 -> 24083 bytes .../assets/images/loaders/loading-blue.svg | 1 + .../assets/images/loaders/loading-white.svg | 1 + .../assets/images/loaders/loading.svg | 1 + .../wp-mail-smtp/assets/js/smtp-admin.js | 2 +- .../wp-mail-smtp/assets/js/smtp-admin.min.js | 2 +- .../assets/languages/wp-mail-smtp.pot | 610 +- .../assets/libs/jquery-confirm.min.css | 16 +- .../assets/libs/jquery-confirm.min.js | 18 +- wp-content/plugins/wp-mail-smtp/readme.txt | 22 +- .../wp-mail-smtp/src/Admin/AdminBarMenu.php | 15 +- .../wp-mail-smtp/src/Admin/Notifications.php | 3 +- .../wp-mail-smtp/src/Admin/PageInterface.php | 90 +- .../wp-mail-smtp/src/Admin/Pages/About.php | 117 +- .../wp-mail-smtp/src/Admin/Pages/AuthTab.php | 126 +- .../plugins/wp-mail-smtp/src/Conflicts.php | 368 +- wp-content/plugins/wp-mail-smtp/src/Core.php | 25 + wp-content/plugins/wp-mail-smtp/src/Geo.php | 44 +- .../plugins/wp-mail-smtp/src/MailCatcher.php | 12 + .../wp-mail-smtp/src/MailCatcherInterface.php | 9 + .../wp-mail-smtp/src/MailCatcherV6.php | 12 + .../plugins/wp-mail-smtp/src/Options.php | 23 +- .../src/Providers/AmazonSES/Options.php | 88 +- .../src/Providers/AuthAbstract.php | 296 +- .../src/Providers/AuthInterface.php | 60 +- .../wp-mail-smtp/src/Providers/Gmail/Auth.php | 40 +- .../src/Providers/Gmail/Mailer.php | 10 +- .../wp-mail-smtp/src/Providers/Loader.php | 4 +- .../src/Providers/Mail/Mailer.php | 98 +- .../src/Providers/Mail/Options.php | 84 +- .../src/Providers/Mailgun/Mailer.php | 7 +- .../src/Providers/Outlook/Options.php | 88 +- .../src/Providers/Pepipost/Mailer.php | 64 +- .../src/Providers/SMTP/Mailer.php | 64 +- .../src/Providers/Sendinblue/Api.php | 191 +- .../src/Providers/Sendinblue/Mailer.php | 13 +- .../src/Providers/Sendinblue/Options.php | 48 +- .../plugins/wp-mail-smtp/src/Tasks/Task.php | 2 +- .../plugins/wp-mail-smtp/src/Tasks/Tasks.php | 6 +- .../plugins/wp-mail-smtp/src/Upgrade.php | 142 +- .../src/UsageTracking/SendUsageTask.php | 2 +- wp-content/plugins/wp-mail-smtp/uninstall.php | 6 +- .../plugins/wp-mail-smtp/vendor/autoload.php | 2 +- .../vendor/composer/ClassLoader.php | 2 +- .../vendor/composer/autoload_classmap.php | 522 +- .../vendor/composer/autoload_files.php | 14 +- .../vendor/composer/autoload_namespaces.php | 2 - .../vendor/composer/autoload_psr4.php | 14 +- .../vendor/composer/autoload_real.php | 14 +- .../vendor/composer/autoload_static.php | 639 +- .../src/Google/Service/Gmail.php | 1232 ---- .../Google/Service/Gmail/AutoForwarding.php | 48 - .../Gmail/BatchModifyMessagesRequest.php | 49 - .../src/Google/Service/Gmail/Filter.php | 62 - .../src/Google/Service/Gmail/FilterAction.php | 49 - .../Google/Service/Gmail/FilterCriteria.php | 102 - .../Service/Gmail/ForwardingAddress.php | 39 - .../src/Google/Service/Gmail/History.php | 111 - .../Service/Gmail/HistoryLabelAdded.php | 47 - .../Service/Gmail/HistoryLabelRemoved.php | 47 - .../src/Google/Service/Gmail/ImapSettings.php | 57 - .../src/Google/Service/Gmail/Label.php | 118 - .../Service/Gmail/ListDraftsResponse.php | 56 - .../Service/Gmail/ListHistoryResponse.php | 56 - .../Service/Gmail/ListLabelsResponse.php | 38 - .../Service/Gmail/ListMessagesResponse.php | 56 - .../Service/Gmail/ListThreadsResponse.php | 56 - .../src/Google/Service/Gmail/Message.php | 110 - .../src/Google/Service/Gmail/MessagePart.php | 97 - .../Google/Service/Gmail/MessagePartBody.php | 48 - .../Service/Gmail/ModifyMessageRequest.php | 40 - .../Service/Gmail/ModifyThreadRequest.php | 40 - .../src/Google/Service/Gmail/Profile.php | 57 - .../Google/Service/Gmail/Resource/Users.php | 71 - .../Service/Gmail/Resource/UsersDrafts.php | 130 - .../Service/Gmail/Resource/UsersHistory.php | 61 - .../Service/Gmail/Resource/UsersLabels.php | 119 - .../Service/Gmail/Resource/UsersMessages.php | 229 - .../Service/Gmail/Resource/UsersSettings.php | 184 - .../Gmail/Resource/UsersSettingsDelegates.php | 119 - .../Gmail/Resource/UsersSettingsFilters.php | 86 - .../UsersSettingsForwardingAddresses.php | 97 - .../Gmail/Resource/UsersSettingsSendAs.php | 157 - .../Resource/UsersSettingsSendAsSmimeInfo.php | 115 - .../Service/Gmail/Resource/UsersThreads.php | 135 - .../src/Google/Service/Gmail/SendAs.php | 109 - .../src/Google/Service/Gmail/SmimeInfo.php | 84 - .../src/Google/Service/Gmail/SmtpMsa.php | 66 - .../src/Google/Service/Gmail/Thread.php | 65 - .../Google/Service/Gmail/VacationSettings.php | 93 - .../src/Google/Service/Gmail/WatchRequest.php | 49 - .../src/Google/AccessToken/Revoke.php | 78 - .../src/Google/AccessToken/Verify.php | 273 - .../Google/AuthHandler/AuthHandlerFactory.php | 42 - .../Google/AuthHandler/Guzzle5AuthHandler.php | 99 - .../Google/AuthHandler/Guzzle6AuthHandler.php | 106 - .../google/apiclient/src/Google/Client.php | 1185 ---- .../apiclient/src/Google/Collection.php | 100 - .../apiclient/src/Google/Http/Batch.php | 253 - .../src/Google/Http/MediaFileUpload.php | 353 -- .../google/apiclient/src/Google/Http/REST.php | 182 - .../google/apiclient/src/Google/Model.php | 317 - .../google/apiclient/src/Google/Service.php | 56 - .../src/Google/Service/Exception.php | 68 - .../apiclient/src/Google/Service/Resource.php | 302 - .../apiclient/src/Google/Task/Runner.php | 281 - .../src/Google/Utils/UriTemplate.php | 333 -- .../wp-mail-smtp/vendor/google/auth/COPYING | 202 - .../wp-mail-smtp/vendor/google/auth/LICENSE | 203 - .../src/HttpHandler/Guzzle5HttpHandler.php | 126 - .../src/Exception/BadResponseException.php | 27 - .../guzzle/src/Exception/ClientException.php | 9 - .../Exception/InvalidArgumentException.php | 7 - .../guzzle/src/Exception/ServerException.php | 9 - .../Exception/TooManyRedirectsException.php | 6 - .../src/Exception/TransferException.php | 6 - .../guzzle/src/Handler/CurlFactory.php | 585 -- .../guzzle/src/Handler/MockHandler.php | 195 - .../guzzle/src/Handler/StreamHandler.php | 545 -- .../guzzle/src/MessageFormatter.php | 185 - .../guzzle/src/RedirectMiddleware.php | 255 - .../promises/src/AggregateException.php | 16 - .../promises/src/CancellationException.php | 9 - .../guzzlehttp/psr7/src/NoSeekStream.php | 22 - .../vendor/guzzlehttp/psr7/src/Response.php | 154 - .../guzzlehttp/psr7/src/functions_include.php | 6 - .../monolog/src/Monolog/ErrorHandler.php | 238 - .../Monolog/Handler/AbstractSyslogHandler.php | 101 - .../src/Monolog/Handler/CouchDBHandler.php | 72 - .../monolog/src/Monolog/Handler/Curl/Util.php | 57 - .../Monolog/Handler/ZendMonitorHandler.php | 101 - .../monolog/src/Monolog/SignalHandler.php | 115 - .../phpseclib/phpseclib/bootstrap.php | 16 - .../phpseclib/phpseclib/phpseclib/openssl.cnf | 6 - .../wp-mail-smtp/vendor/psr/cache/LICENSE.txt | 19 - .../vendor/psr/log/Psr/Log/LogLevel.php | 18 - .../api-v3-sdk/lib/Api/ResellerApi.php | 4762 --------------- .../Resources/unidata/lowerCase.php | 1397 ----- .../Resources/unidata/titleCaseRegexp.php | 5 - .../Resources/unidata/upperCase.php | 1414 ----- .../vendor/symfony/polyfill-php72/Php72.php | 217 - .../src/Google/Service/Gmail.php | 105 + .../Google/Service/Gmail/AutoForwarding.php | 49 + .../Gmail/BatchDeleteMessagesRequest.php | 27 +- .../Gmail/BatchModifyMessagesRequest.php | 50 + .../src/Google/Service/Gmail/Delegate.php | 43 +- .../src/Google/Service/Gmail/Draft.php | 47 + .../src/Google/Service/Gmail/Filter.php | 63 + .../src/Google/Service/Gmail/FilterAction.php | 50 + .../Google/Service/Gmail/FilterCriteria.php | 103 + .../Service/Gmail/ForwardingAddress.php | 40 + .../src/Google/Service/Gmail/History.php | 112 + .../Service/Gmail/HistoryLabelAdded.php | 48 + .../Service/Gmail/HistoryLabelRemoved.php | 48 + .../Service/Gmail/HistoryMessageAdded.php | 39 +- .../Service/Gmail/HistoryMessageDeleted.php | 39 +- .../src/Google/Service/Gmail/ImapSettings.php | 58 + .../src/Google/Service/Gmail/Label.php | 119 + .../src/Google/Service/Gmail/LabelColor.php | 43 +- .../Google/Service/Gmail/LanguageSettings.php | 25 +- .../Service/Gmail/ListDelegatesResponse.php | 41 +- .../Service/Gmail/ListDraftsResponse.php | 57 + .../Service/Gmail/ListFiltersResponse.php | 41 +- .../Gmail/ListForwardingAddressesResponse.php | 41 +- .../Service/Gmail/ListHistoryResponse.php | 57 + .../Service/Gmail/ListLabelsResponse.php} | 41 +- .../Service/Gmail/ListMessagesResponse.php | 57 + .../Service/Gmail/ListSendAsResponse.php | 41 +- .../Service/Gmail/ListSmimeInfoResponse.php} | 49 +- .../Service/Gmail/ListThreadsResponse.php | 57 + .../src/Google/Service/Gmail/Message.php | 111 + .../src/Google/Service/Gmail/MessagePart.php | 98 + .../Google/Service/Gmail/MessagePartBody.php | 49 + .../Service/Gmail/MessagePartHeader.php | 43 +- .../Service/Gmail/ModifyMessageRequest.php | 41 + .../Service/Gmail/ModifyThreadRequest.php | 41 + .../src/Google/Service/Gmail/PopSettings.php | 43 +- .../src/Google/Service/Gmail/Profile.php | 58 + .../Google/Service/Gmail/Resource/Users.php | 73 + .../Service/Gmail/Resource/UsersDrafts.php | 132 + .../Service/Gmail/Resource/UsersHistory.php | 63 + .../Service/Gmail/Resource/UsersLabels.php | 121 + .../Service/Gmail/Resource/UsersMessages.php | 232 + .../Resource/UsersMessagesAttachments.php | 38 +- .../Service/Gmail/Resource/UsersSettings.php | 184 + .../Gmail/Resource/UsersSettingsDelegates.php | 109 + .../Gmail/Resource/UsersSettingsFilters.php | 88 + .../UsersSettingsForwardingAddresses.php | 97 + .../Gmail/Resource/UsersSettingsSendAs.php | 153 + .../Resource/UsersSettingsSendAsSmimeInfo.php | 117 + .../Service/Gmail/Resource/UsersThreads.php | 137 + .../src/Google/Service/Gmail/SendAs.php | 110 + .../src/Google/Service/Gmail/SmimeInfo.php | 85 + .../src/Google/Service/Gmail/SmtpMsa.php | 67 + .../src/Google/Service/Gmail/Thread.php | 66 + .../Google/Service/Gmail/VacationSettings.php | 94 + .../src/Google/Service/Gmail/WatchRequest.php | 50 + .../Google/Service/Gmail/WatchResponse.php | 43 +- .../google/apiclient}/LICENSE | 0 .../src/Google/AccessToken/Revoke.php | 64 + .../src/Google/AccessToken/Verify.php | 218 + .../Google/AuthHandler/AuthHandlerFactory.php | 49 + .../Google/AuthHandler/Guzzle5AuthHandler.php | 63 + .../Google/AuthHandler/Guzzle6AuthHandler.php | 72 + .../Google/AuthHandler/Guzzle7AuthHandler.php | 25 + .../google/apiclient/src/Google/Client.php | 977 ++++ .../apiclient/src/Google/Collection.php | 87 + .../google/apiclient/src/Google/Exception.php | 6 +- .../apiclient/src/Google/Http/Batch.php | 188 + .../src/Google/Http/MediaFileUpload.php | 277 + .../google/apiclient/src/Google/Http/REST.php | 148 + .../google/apiclient/src/Google/Model.php | 292 + .../google/apiclient/src/Google/Service.php | 50 + .../src/Google/Service/Exception.php | 62 + .../apiclient/src/Google/Service/Resource.php | 212 + .../apiclient/src/Google/Task/Composer.php | 71 + .../apiclient/src/Google/Task/Exception.php | 6 +- .../apiclient/src/Google/Task/Retryable.php | 4 +- .../apiclient/src/Google/Task/Runner.php | 230 + .../src/Google/Utils/UriTemplate.php | 266 + .../google/apiclient/src/Google/autoload.php | 16 +- .../google/auth}/LICENSE | 0 .../google/auth/autoload.php | 17 +- .../google/auth/src/AccessToken.php | 265 +- .../src/ApplicationDefaultCredentials.php | 172 +- .../src/Cache/InvalidArgumentException.php | 9 +- .../google/auth/src/Cache/Item.php | 73 +- .../auth/src/Cache/MemoryCacheItemPool.php | 60 +- .../auth/src/Cache/SysVCacheItemPool.php | 103 +- .../google/auth/src/CacheTrait.php | 31 +- .../Credentials/AppIdentityCredentials.php | 72 +- .../auth/src/Credentials/GCECredentials.php | 189 +- .../auth/src/Credentials/IAMCredentials.php | 30 +- .../src/Credentials/InsecureCredentials.php | 16 +- .../Credentials/ServiceAccountCredentials.php | 105 +- .../ServiceAccountJwtAccessCredentials.php | 79 +- .../Credentials/UserRefreshCredentials.php | 63 +- .../google/auth/src/CredentialsLoader.php | 112 +- .../google/auth/src/FetchAuthTokenCache.php | 89 +- .../auth/src/FetchAuthTokenInterface.php | 6 +- .../google/auth/src/GCECache.php | 78 + .../auth/src/GetQuotaProjectInterface.php | 5 +- .../src/HttpHandler/Guzzle5HttpHandler.php | 90 + .../src/HttpHandler/Guzzle6HttpHandler.php | 19 +- .../src/HttpHandler/Guzzle7HttpHandler.php | 5 +- .../auth/src/HttpHandler/HttpClientCache.php | 11 +- .../src/HttpHandler/HttpHandlerFactory.php | 28 +- .../google/auth/src/Iam.php | 47 +- .../src/Middleware/AuthTokenMiddleware.php | 49 +- .../ScopedAccessTokenMiddleware.php | 59 +- .../auth/src/Middleware/SimpleMiddleware.php | 24 +- .../google/auth/src/OAuth2.php | 424 +- .../auth/src/ProjectIdProviderInterface.php | 4 +- .../auth/src/ServiceAccountSignerTrait.php | 24 +- .../google/auth/src/SignBlobInterface.php | 9 +- .../src/Subscriber/AuthTokenSubscriber.php | 48 +- .../ScopedAccessTokenSubscriber.php | 66 +- .../auth/src/Subscriber/SimpleSubscriber.php | 23 +- .../auth/src/UpdateMetadataInterface.php | 36 + .../guzzlehttp/guzzle/LICENSE | 0 .../guzzlehttp/guzzle/src/Client.php | 223 +- .../guzzlehttp/guzzle/src/ClientInterface.php | 21 +- .../guzzle/src/Cookie/CookieJar.php | 172 +- .../guzzle/src/Cookie/CookieJarInterface.php | 20 +- .../guzzle/src/Cookie/FileCookieJar.php | 37 +- .../guzzle/src/Cookie/SessionCookieJar.php | 25 +- .../guzzle/src/Cookie/SetCookie.php | 134 +- .../src/Exception/BadResponseException.php | 19 + .../guzzle/src/Exception/ClientException.php | 10 + .../guzzle/src/Exception/ConnectException.php | 18 +- .../guzzle/src/Exception/GuzzleException.php | 8 +- .../Exception/InvalidArgumentException.php | 7 + .../guzzle/src/Exception/RequestException.php | 91 +- .../guzzle/src/Exception/SeekException.php | 10 +- .../guzzle/src/Exception/ServerException.php | 10 + .../Exception/TooManyRedirectsException.php | 7 + .../src/Exception/TransferException.php | 7 + .../guzzle/src/Handler/CurlFactory.php | 436 ++ .../src/Handler/CurlFactoryInterface.php | 9 +- .../guzzle/src/Handler/CurlHandler.php | 24 +- .../guzzle/src/Handler/CurlMultiHandler.php | 112 +- .../guzzle/src/Handler/EasyHandle.php | 51 +- .../guzzle/src/Handler/MockHandler.php | 157 + .../guzzlehttp/guzzle/src/Handler/Proxy.php | 31 +- .../guzzle/src/Handler/StreamHandler.php | 377 ++ .../guzzlehttp/guzzle/src/HandlerStack.php | 90 +- .../guzzle/src/MessageFormatter.php | 156 + .../guzzlehttp/guzzle/src/Middleware.php | 141 +- .../guzzlehttp/guzzle/src/Pool.php | 59 +- .../guzzle/src/PrepareBodyMiddleware.php | 44 +- .../guzzle/src/RedirectMiddleware.php | 177 + .../guzzlehttp/guzzle/src/RequestOptions.php | 32 +- .../guzzlehttp/guzzle/src/RetryMiddleware.php | 69 +- .../guzzlehttp/guzzle/src/TransferStats.php | 30 +- .../guzzlehttp/guzzle/src/UriTemplate.php | 108 +- .../guzzlehttp/guzzle/src/Utils.php | 42 +- .../guzzlehttp/guzzle/src/functions.php | 146 +- .../guzzle}/src/functions_include.php | 4 +- .../guzzlehttp/promises/LICENSE | 0 .../promises/src/AggregateException.php | 14 + .../promises/src/CancellationException.php | 10 + .../guzzlehttp/promises/src/Coroutine.php | 40 +- .../guzzlehttp/promises/src/EachPromise.php | 115 +- .../promises/src/FulfilledPromise.php | 33 +- .../guzzlehttp/promises/src/Promise.php | 113 +- .../promises/src/PromiseInterface.php | 17 +- .../promises/src/PromisorInterface.php | 3 +- .../promises/src/RejectedPromise.php | 33 +- .../promises/src/RejectionException.php | 15 +- .../guzzlehttp/promises/src/TaskQueue.php | 24 +- .../promises/src/TaskQueueInterface.php | 5 +- .../guzzlehttp/promises/src/functions.php | 210 +- .../promises/src/functions_include.php | 8 + .../guzzlehttp/psr7/LICENSE | 0 .../guzzlehttp/psr7/src/AppendStream.php | 81 +- .../guzzlehttp/psr7/src/BufferStream.php | 52 +- .../guzzlehttp/psr7/src/CachingStream.php | 59 +- .../guzzlehttp/psr7/src/DroppingStream.php | 18 +- .../guzzlehttp/psr7/src/FnStream.php | 74 +- .../guzzlehttp/psr7/src/InflateStream.php | 26 +- .../guzzlehttp/psr7/src/LazyOpenStream.php | 10 +- .../guzzlehttp/psr7/src/LimitStream.php | 55 +- .../guzzlehttp/psr7/src/MessageTrait.php | 86 +- .../guzzlehttp/psr7/src/MultipartStream.php | 60 +- .../guzzlehttp/psr7/src/NoSeekStream.php | 20 + .../guzzlehttp/psr7/src/PumpStream.php | 53 +- .../guzzlehttp/psr7/src/Request.php | 63 +- .../guzzlehttp/psr7/src/Response.php | 76 + .../guzzlehttp/psr7/src/Rfc7230.php | 4 +- .../guzzlehttp/psr7/src/ServerRequest.php | 138 +- .../guzzlehttp/psr7/src/Stream.php | 106 +- .../psr7/src/StreamDecoratorTrait.php | 35 +- .../guzzlehttp/psr7/src/StreamWrapper.php | 93 +- .../guzzlehttp/psr7/src/UploadedFile.php | 150 +- .../guzzlehttp/psr7/src/Uri.php | 286 +- .../guzzlehttp/psr7/src/UriNormalizer.php | 73 +- .../guzzlehttp/psr7/src/UriResolver.php | 79 +- .../guzzlehttp/psr7/src/functions.php | 474 +- .../psr7}/src/functions_include.php | 4 +- .../monolog/monolog/LICENSE | 0 .../monolog/src/Monolog/ErrorHandler.php | 189 + .../Monolog/Formatter/ChromePHPFormatter.php | 38 +- .../Monolog/Formatter/ElasticaFormatter.php | 21 +- .../Monolog/Formatter/FlowdockFormatter.php | 52 +- .../Monolog/Formatter/FluentdFormatter.php | 33 +- .../Monolog/Formatter/FormatterInterface.php | 4 +- .../Formatter/GelfMessageFormatter.php | 73 +- .../src/Monolog/Formatter/HtmlFormatter.php | 61 +- .../src/Monolog/Formatter/JsonFormatter.php | 73 +- .../src/Monolog/Formatter/LineFormatter.php | 93 +- .../src/Monolog/Formatter/LogglyFormatter.php | 13 +- .../Monolog/Formatter/LogstashFormatter.php | 39 +- .../Monolog/Formatter/MongoDBFormatter.php | 41 +- .../Monolog/Formatter/NormalizerFormatter.php | 90 +- .../src/Monolog/Formatter/ScalarFormatter.php | 13 +- .../Monolog/Formatter/WildfireFormatter.php | 62 +- .../src/Monolog/Handler/AbstractHandler.php | 58 +- .../Handler/AbstractProcessingHandler.php | 23 +- .../Monolog/Handler/AbstractSyslogHandler.php | 79 + .../src/Monolog/Handler/AmqpHandler.php | 79 +- .../Monolog/Handler/BrowserConsoleHandler.php | 95 +- .../src/Monolog/Handler/BufferHandler.php | 50 +- .../src/Monolog/Handler/ChromePHPHandler.php | 101 +- .../src/Monolog/Handler/CouchDBHandler.php | 50 + .../src/Monolog/Handler/CubeHandler.php | 77 +- .../monolog/src/Monolog/Handler/Curl/Util.php | 42 + .../Monolog/Handler/DeduplicationHandler.php | 101 +- .../Handler/DoctrineCouchDBHandler.php | 19 +- .../src/Monolog/Handler/DynamoDbHandler.php | 46 +- .../Monolog/Handler/ElasticSearchHandler.php | 49 +- .../src/Monolog/Handler/ErrorLogHandler.php | 36 +- .../src/Monolog/Handler/FilterHandler.php | 72 +- .../ActivationStrategyInterface.php | 3 +- .../ChannelLevelActivationStrategy.php | 15 +- .../ErrorLevelActivationStrategy.php | 12 +- .../Monolog/Handler/FingersCrossedHandler.php | 86 +- .../src/Monolog/Handler/FirePHPHandler.php | 68 +- .../src/Monolog/Handler/FleepHookHandler.php | 39 +- .../src/Monolog/Handler/FlowdockHandler.php | 44 +- .../Handler/FormattableHandlerInterface.php | 14 +- .../Handler/FormattableHandlerTrait.php | 24 +- .../src/Monolog/Handler/GelfHandler.php | 29 +- .../src/Monolog/Handler/GroupHandler.php | 41 +- .../src/Monolog/Handler/HandlerInterface.php | 14 +- .../src/Monolog/Handler/HandlerWrapper.php | 27 +- .../src/Monolog/Handler/HipChatHandler.php | 141 +- .../src/Monolog/Handler/IFTTTHandler.php | 41 +- .../src/Monolog/Handler/InsightOpsHandler.php | 22 +- .../src/Monolog/Handler/LogEntriesHandler.php | 17 +- .../src/Monolog/Handler/LogglyHandler.php | 62 +- .../src/Monolog/Handler/MailHandler.php | 13 +- .../src/Monolog/Handler/MandrillHandler.php | 40 +- .../Handler/MissingExtensionException.php | 3 +- .../src/Monolog/Handler/MongoDBHandler.php | 25 +- .../Monolog/Handler/NativeMailerHandler.php | 58 +- .../src/Monolog/Handler/NewRelicHandler.php | 72 +- .../src/Monolog/Handler/NullHandler.php | 18 +- .../src/Monolog/Handler/PHPConsoleHandler.php | 145 +- .../Handler/ProcessableHandlerInterface.php | 14 +- .../Handler/ProcessableHandlerTrait.php | 30 +- .../src/Monolog/Handler/PsrHandler.php | 23 +- .../src/Monolog/Handler/PushoverHandler.php | 90 +- .../src/Monolog/Handler/RavenHandler.php | 75 +- .../src/Monolog/Handler/RedisHandler.php | 33 +- .../src/Monolog/Handler/RollbarHandler.php | 67 +- .../Monolog/Handler/RotatingFileHandler.php | 102 +- .../src/Monolog/Handler/SamplingHandler.php | 38 +- .../src/Monolog/Handler/Slack/SlackRecord.php | 118 +- .../src/Monolog/Handler/SlackHandler.php | 79 +- .../Monolog/Handler/SlackWebhookHandler.php | 63 +- .../src/Monolog/Handler/SlackbotHandler.php | 38 +- .../src/Monolog/Handler/SocketHandler.php | 111 +- .../src/Monolog/Handler/StreamHandler.php | 85 +- .../Monolog/Handler/SwiftMailerHandler.php | 46 +- .../src/Monolog/Handler/SyslogHandler.php | 22 +- .../Monolog/Handler/SyslogUdp/UdpSocket.php | 26 +- .../src/Monolog/Handler/SyslogUdpHandler.php | 60 +- .../src/Monolog/Handler/TestHandler.php | 62 +- .../Handler/WhatFailureGroupHandler.php | 15 +- .../Monolog/Handler/ZendMonitorHandler.php | 79 + .../monolog/monolog/src/Monolog/Logger.php | 200 +- .../src/Monolog/Processor/GitProcessor.php | 26 +- .../Processor/IntrospectionProcessor.php | 66 +- .../Processor/MemoryPeakUsageProcessor.php | 9 +- .../src/Monolog/Processor/MemoryProcessor.php | 17 +- .../Processor/MemoryUsageProcessor.php | 9 +- .../Monolog/Processor/MercurialProcessor.php | 28 +- .../Monolog/Processor/ProcessIdProcessor.php | 8 +- .../Monolog/Processor/ProcessorInterface.php | 3 +- .../Processor/PsrLogMessageProcessor.php | 25 +- .../src/Monolog/Processor/TagProcessor.php | 12 +- .../src/Monolog/Processor/UidProcessor.php | 22 +- .../src/Monolog/Processor/WebProcessor.php | 32 +- .../monolog/monolog/src/Monolog/Registry.php | 30 +- .../src/Monolog/ResettableInterface.php | 3 +- .../monolog/src/Monolog/SignalHandler.php | 100 + .../monolog/monolog/src/Monolog/Utils.php | 99 +- .../phpseclib/phpseclib/LICENSE | 0 .../phpseclib/phpseclib/Crypt/AES.php | 12 +- .../phpseclib/phpseclib/Crypt/RSA.php | 1722 ++---- .../phpseclib/phpseclib/Crypt/Random.php | 156 +- .../phpseclib/phpseclib/Crypt/Rijndael.php | 709 +-- .../phpseclib/phpseclib/Math/BigInteger.php | 1776 ++---- .../phpseclib/phpseclib/bootstrap.php | 15 + .../psr/cache/src/CacheException.php | 2 +- .../psr/cache/src/CacheItemInterface.php | 7 +- .../psr/cache/src/CacheItemPoolInterface.php | 15 +- .../cache/src/InvalidArgumentException.php | 4 +- .../psr/http-message/LICENSE | 0 .../psr/http-message/src/MessageInterface.php | 14 +- .../psr/http-message/src/RequestInterface.php | 11 +- .../http-message/src/ResponseInterface.php | 6 +- .../src/ServerRequestInterface.php | 16 +- .../psr/http-message/src/StreamInterface.php | 18 +- .../src/UploadedFileInterface.php | 7 +- .../psr/http-message/src/UriInterface.php | 18 +- .../psr/log/LICENSE | 0 .../psr/log/Psr/Log/AbstractLogger.php | 27 +- .../log/Psr/Log/InvalidArgumentException.php | 2 +- .../psr/log/Psr/Log/LogLevel.php | 18 + .../psr/log/Psr/Log/LoggerAwareInterface.php | 4 +- .../psr/log/Psr/Log/LoggerAwareTrait.php | 5 +- .../psr/log/Psr/Log/LoggerInterface.php | 10 +- .../psr/log/Psr/Log/LoggerTrait.php | 28 +- .../psr/log/Psr/Log/NullLogger.php | 4 +- .../api-v3-sdk/lib/Api/AccountApi.php | 234 +- .../api-v3-sdk/lib/Api/AttributesApi.php | 765 +-- .../api-v3-sdk/lib/Api/ContactsApi.php | 5144 +++++------------ .../api-v3-sdk/lib/Api/EmailCampaignsApi.php | 2416 +++----- .../api-v3-sdk/lib/Api/FoldersApi.php | 1188 +--- .../api-v3-sdk/lib/Api/ListsApi.php | 1795 ++---- .../api-v3-sdk/lib/Api/ProcessApi.php | 437 +- .../api-v3-sdk/lib/Api/ResellerApi.php | 3217 +++++++++++ .../api-v3-sdk/lib/Api/SMSCampaignsApi.php | 1841 ++---- .../sendinblue/api-v3-sdk/lib/Api/SMTPApi.php | 3157 +++------- .../api-v3-sdk/lib/Api/SendersApi.php | 1118 +--- .../lib/Api/TransactionalSMSApi.php | 839 +-- .../api-v3-sdk/lib/Api/WebhooksApi.php | 936 +-- .../api-v3-sdk/lib/ApiException.php | 19 +- .../api-v3-sdk/lib/Configuration.php | 67 +- .../api-v3-sdk/lib/HeaderSelector.php | 29 +- .../lib/Model/AbTestCampaignResult.php | 186 +- .../api-v3-sdk/lib/Model/AddChildDomain.php | 103 +- .../api-v3-sdk/lib/Model/AddContactToList.php | 105 +- .../api-v3-sdk/lib/Model/AddCredits.php | 111 +- .../api-v3-sdk/lib/Model/CreateAttribute.php | 146 +- .../lib/Model/CreateAttributeEnumeration.php | 111 +- .../api-v3-sdk/lib/Model/CreateChild.php | 180 +- .../api-v3-sdk/lib/Model/CreateContact.php | 153 +- .../api-v3-sdk/lib/Model/CreateDoiContact.php | 373 ++ .../lib/Model/CreateEmailCampaign.php | 386 +- .../Model/CreateEmailCampaignRecipients.php | 111 +- .../lib/Model/CreateEmailCampaignSender.php | 119 +- .../api-v3-sdk/lib/Model/CreateList.php | 111 +- .../api-v3-sdk/lib/Model/CreateModel.php | 103 +- .../api-v3-sdk/lib/Model/CreateReseller.php | 125 +- .../api-v3-sdk/lib/Model/CreateSender.php | 121 +- .../api-v3-sdk/lib/Model/CreateSenderIps.php | 131 +- .../lib/Model/CreateSenderModel.php | 119 +- .../lib/Model/CreateSmsCampaign.php | 141 +- .../lib/Model/CreateSmsCampaignRecipients.php | 111 +- .../api-v3-sdk/lib/Model/CreateSmtpEmail.php | 103 +- .../lib/Model/CreateSmtpTemplate.php | 175 +- .../lib/Model/CreateSmtpTemplateSender.php | 119 +- .../lib/Model/CreateUpdateContactModel.php | 103 +- .../lib/Model/CreateUpdateFolder.php | 103 +- .../api-v3-sdk/lib/Model/CreateWebhook.php | 181 +- .../api-v3-sdk/lib/Model/CreatedProcessId.php | 103 +- .../lib/Model/DeleteHardbounces.php | 119 +- .../lib/Model/EmailExportRecipients.php | 142 +- .../api-v3-sdk/lib/Model/ErrorModel.php | 147 +- .../api-v3-sdk/lib/Model/GetAccount.php | 159 +- .../Model/GetAccountMarketingAutomation.php | 111 +- .../api-v3-sdk/lib/Model/GetAccountPlan.php | 191 +- .../api-v3-sdk/lib/Model/GetAccountRelay.php | 111 +- .../lib/Model/GetAccountRelayData.php | 119 +- .../lib/Model/GetAggregatedReport.php | 199 +- .../api-v3-sdk/lib/Model/GetAttributes.php | 103 +- .../lib/Model/GetAttributesAttributes.php | 187 +- .../lib/Model/GetAttributesEnumeration.php | 111 +- .../lib/Model/GetCampaignOverview.php | 249 +- .../lib/Model/GetCampaignRecipients.php | 111 +- .../api-v3-sdk/lib/Model/GetCampaignStats.php | 191 +- .../Model/GetChildAccountCreationStatus.php | 103 +- .../api-v3-sdk/lib/Model/GetChildDomain.php | 111 +- .../api-v3-sdk/lib/Model/GetChildDomains.php | 100 +- .../api-v3-sdk/lib/Model/GetChildInfo.php | 167 +- .../lib/Model/GetChildInfoApiKeys.php | 111 +- .../lib/Model/GetChildInfoApiKeysV2.php | 111 +- .../lib/Model/GetChildInfoApiKeysV3.php | 111 +- .../lib/Model/GetChildInfoCredits.php | 111 +- .../lib/Model/GetChildInfoStatistics.php | 119 +- .../api-v3-sdk/lib/Model/GetChildrenList.php | 111 +- .../api-v3-sdk/lib/Model/GetClient.php | 127 +- .../lib/Model/GetContactCampaignStats.php | 159 +- .../Model/GetContactCampaignStatsClicked.php | 111 +- .../Model/GetContactCampaignStatsOpened.php | 127 +- ...tContactCampaignStatsTransacAttributes.php | 119 +- ...GetContactCampaignStatsUnsubscriptions.php | 111 +- .../lib/Model/GetContactDetails.php | 167 +- .../api-v3-sdk/lib/Model/GetContacts.php | 111 +- .../lib/Model/GetDeviceBrowserStats.php | 127 +- .../api-v3-sdk/lib/Model/GetEmailCampaign.php | 407 +- .../lib/Model/GetEmailCampaigns.php | 111 +- .../lib/Model/GetEmailEventReport.php | 103 +- .../lib/Model/GetEmailEventReportEvents.php | 208 +- .../lib/Model/GetExtendedCampaignOverview.php | 391 +- .../GetExtendedCampaignOverviewSender.php | 119 +- .../lib/Model/GetExtendedCampaignStats.php | 159 +- .../lib/Model/GetExtendedClient.php | 135 +- .../lib/Model/GetExtendedClientAddress.php | 127 +- .../lib/Model/GetExtendedContactDetails.php | 175 +- .../GetExtendedContactDetailsStatistics.php | 159 +- ...xtendedContactDetailsStatisticsClicked.php | 111 +- ...tExtendedContactDetailsStatisticsLinks.php | 127 +- ...edContactDetailsStatisticsMessagesSent.php | 111 +- ...ExtendedContactDetailsStatisticsOpened.php | 127 +- ...ontactDetailsStatisticsUnsubscriptions.php | 111 +- ...ticsUnsubscriptionsAdminUnsubscription.php | 111 +- ...sticsUnsubscriptionsUserUnsubscription.php | 119 +- .../api-v3-sdk/lib/Model/GetExtendedList.php | 159 +- .../Model/GetExtendedListCampaignStats.php | 111 +- .../api-v3-sdk/lib/Model/GetFolder.php | 135 +- .../api-v3-sdk/lib/Model/GetFolderLists.php | 111 +- .../api-v3-sdk/lib/Model/GetFolders.php | 111 +- .../sendinblue/api-v3-sdk/lib/Model/GetIp.php | 127 +- .../api-v3-sdk/lib/Model/GetIpFromSender.php | 127 +- .../api-v3-sdk/lib/Model/GetIps.php | 103 +- .../api-v3-sdk/lib/Model/GetIpsFromSender.php | 103 +- .../api-v3-sdk/lib/Model/GetList.php | 127 +- .../api-v3-sdk/lib/Model/GetLists.php | 111 +- .../api-v3-sdk/lib/Model/GetProcess.php | 151 +- .../api-v3-sdk/lib/Model/GetProcesses.php | 111 +- .../api-v3-sdk/lib/Model/GetReports.php | 103 +- .../lib/Model/GetReportsReports.php | 199 +- .../api-v3-sdk/lib/Model/GetSendersList.php | 103 +- .../lib/Model/GetSendersListIps.php | 119 +- .../lib/Model/GetSendersListSenders.php | 135 +- .../lib/Model/GetSharedTemplateUrl.php | 103 +- .../api-v3-sdk/lib/Model/GetSmsCampaign.php | 202 +- .../lib/Model/GetSmsCampaignOverview.php | 186 +- .../lib/Model/GetSmsCampaignStats.php | 151 +- .../api-v3-sdk/lib/Model/GetSmsCampaigns.php | 111 +- .../lib/Model/GetSmsEventReport.php | 103 +- .../lib/Model/GetSmsEventReportEvents.php | 181 +- .../lib/Model/GetSmtpTemplateOverview.php | 213 +- .../Model/GetSmtpTemplateOverviewSender.php | 119 +- .../api-v3-sdk/lib/Model/GetSmtpTemplates.php | 111 +- .../api-v3-sdk/lib/Model/GetSsoToken.php | 103 +- .../lib/Model/GetStatsByBrowser.php | 100 +- .../api-v3-sdk/lib/Model/GetStatsByDevice.php | 127 +- .../api-v3-sdk/lib/Model/GetStatsByDomain.php | 100 +- .../Model/GetTransacAggregatedSmsReport.php | 175 +- .../lib/Model/GetTransacBlockedContacts.php | 111 +- .../GetTransacBlockedContactsContacts.php | 127 +- .../Model/GetTransacBlockedContactsReason.php | 138 +- .../lib/Model/GetTransacEmailContent.php | 151 +- .../Model/GetTransacEmailContentEvents.php | 111 +- .../lib/Model/GetTransacEmailsList.php | 103 +- ...etTransacEmailsListTransactionalEmails.php | 187 +- .../lib/Model/GetTransacSmsReport.php | 103 +- .../lib/Model/GetTransacSmsReportReports.php | 175 +- .../api-v3-sdk/lib/Model/GetWebhook.php | 174 +- .../api-v3-sdk/lib/Model/GetWebhooks.php | 103 +- .../api-v3-sdk/lib/Model/ManageIp.php | 103 +- .../api-v3-sdk/lib/Model/ModelInterface.php | 13 +- .../api-v3-sdk/lib/Model/PostContactInfo.php | 103 +- .../lib/Model/PostContactInfoContacts.php | 141 +- .../api-v3-sdk/lib/Model/PostSendFailed.php | 135 +- .../lib/Model/PostSendSmsTestFailed.php | 127 +- .../lib/Model/RemainingCreditModel.php | 111 +- .../lib/Model/RemainingCreditModelChild.php | 119 +- .../Model/RemainingCreditModelReseller.php | 119 +- .../lib/Model/RemoveContactFromList.php | 115 +- .../api-v3-sdk/lib/Model/RemoveCredits.php | 111 +- .../lib/Model/RequestContactExport.php | 131 +- ...equestContactExportCustomContactFilter.php | 220 +- .../lib/Model/RequestContactImport.php | 179 +- .../lib/Model/RequestContactImportNewList.php | 111 +- .../lib/Model/RequestSMSRecipientExport.php | 140 +- .../api-v3-sdk/lib/Model/SendEmail.php | 173 +- .../lib/Model/SendEmailAttachment.php | 122 +- .../api-v3-sdk/lib/Model/SendReport.php | 138 +- .../api-v3-sdk/lib/Model/SendReportEmail.php | 166 +- .../api-v3-sdk/lib/Model/SendSms.php | 135 +- .../api-v3-sdk/lib/Model/SendSmtpEmail.php | 207 +- .../lib/Model/SendSmtpEmailAttachment.php | 130 +- .../api-v3-sdk/lib/Model/SendSmtpEmailBcc.php | 111 +- .../api-v3-sdk/lib/Model/SendSmtpEmailCc.php | 111 +- .../lib/Model/SendSmtpEmailReplyTo.php | 111 +- .../lib/Model/SendSmtpEmailSender.php | 111 +- .../api-v3-sdk/lib/Model/SendSmtpEmailTo.php | 111 +- .../lib/Model/SendTemplateEmail.php | 103 +- .../api-v3-sdk/lib/Model/SendTestEmail.php | 103 +- .../api-v3-sdk/lib/Model/SendTestSms.php | 103 +- .../api-v3-sdk/lib/Model/SendTransacSms.php | 172 +- .../api-v3-sdk/lib/Model/UpdateAttribute.php | 113 +- .../lib/Model/UpdateAttributeEnumeration.php | 111 +- .../lib/Model/UpdateCampaignStatus.php | 132 +- .../api-v3-sdk/lib/Model/UpdateChild.php | 135 +- .../lib/Model/UpdateChildAccountStatus.php | 141 +- .../lib/Model/UpdateChildDomain.php | 103 +- .../api-v3-sdk/lib/Model/UpdateContact.php | 145 +- .../lib/Model/UpdateEmailCampaign.php | 388 +- .../Model/UpdateEmailCampaignRecipients.php | 111 +- .../lib/Model/UpdateEmailCampaignSender.php | 119 +- .../api-v3-sdk/lib/Model/UpdateList.php | 111 +- .../api-v3-sdk/lib/Model/UpdateSender.php | 119 +- .../lib/Model/UpdateSmsCampaign.php | 141 +- .../lib/Model/UpdateSmtpTemplate.php | 175 +- .../lib/Model/UpdateSmtpTemplateSender.php | 119 +- .../api-v3-sdk/lib/Model/UpdateWebhook.php | 147 +- .../lib/Model/UploadImageToGallery.php | 279 + .../api-v3-sdk/lib/ObjectSerializer.php | 126 +- .../symfony/polyfill-intl-idn/Idn.php | 139 +- .../symfony/polyfill-intl-idn/LICENSE | 0 .../symfony/polyfill-intl-idn/bootstrap.php | 2 +- .../symfony/polyfill-mbstring/LICENSE | 0 .../symfony/polyfill-mbstring/Mbstring.php | 482 +- .../Resources/unidata/lowerCase.php | 5 + .../Resources/unidata/titleCaseRegexp.php | 6 + .../Resources/unidata/upperCase.php | 5 + .../symfony/polyfill-mbstring/bootstrap.php | 2 +- .../symfony/polyfill-php72/LICENSE | 0 .../symfony/polyfill-php72/Php72.php | 176 + .../symfony/polyfill-php72/bootstrap.php | 2 +- .../plugins/wp-mail-smtp/wp-mail-smtp.php | 166 +- .../plugins/wp-mail-smtp/wp_mail_smtp.php | 4 +- 673 files changed, 31869 insertions(+), 65613 deletions(-) create mode 100644 wp-content/plugins/wp-mail-smtp/assets/images/loaders/loading-blue.svg create mode 100644 wp-content/plugins/wp-mail-smtp/assets/images/loaders/loading-white.svg create mode 100644 wp-content/plugins/wp-mail-smtp/assets/images/loaders/loading.svg delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/AutoForwarding.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/BatchModifyMessagesRequest.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Filter.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/FilterAction.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/FilterCriteria.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ForwardingAddress.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/History.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/HistoryLabelAdded.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/HistoryLabelRemoved.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ImapSettings.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Label.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ListDraftsResponse.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ListHistoryResponse.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ListLabelsResponse.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ListMessagesResponse.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ListThreadsResponse.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Message.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/MessagePart.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/MessagePartBody.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ModifyMessageRequest.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ModifyThreadRequest.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Profile.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/Users.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersDrafts.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersHistory.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersLabels.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersMessages.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettings.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsDelegates.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsFilters.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsForwardingAddresses.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsSendAs.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsSendAsSmimeInfo.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersThreads.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/SendAs.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/SmimeInfo.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/SmtpMsa.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Thread.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/VacationSettings.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/WatchRequest.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/AccessToken/Revoke.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/AccessToken/Verify.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/AuthHandler/AuthHandlerFactory.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/AuthHandler/Guzzle5AuthHandler.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/AuthHandler/Guzzle6AuthHandler.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Client.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Collection.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Http/Batch.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Http/MediaFileUpload.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Http/REST.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Model.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Service.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Service/Exception.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Service/Resource.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Task/Runner.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Utils/UriTemplate.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/auth/COPYING delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/auth/LICENSE delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/HttpHandler/Guzzle5HttpHandler.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Exception/ClientException.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Exception/InvalidArgumentException.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Exception/TooManyRedirectsException.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Handler/MockHandler.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/MessageFormatter.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/promises/src/AggregateException.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/promises/src/CancellationException.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/NoSeekStream.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/Response.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/functions_include.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/ErrorHandler.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/AbstractSyslogHandler.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/CouchDBHandler.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/Curl/Util.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/ZendMonitorHandler.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/SignalHandler.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/phpseclib/phpseclib/phpseclib/bootstrap.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/phpseclib/phpseclib/phpseclib/openssl.cnf delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/psr/cache/LICENSE.txt delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/psr/log/Psr/Log/LogLevel.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/ResellerApi.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-mbstring/Resources/unidata/titleCaseRegexp.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-mbstring/Resources/unidata/upperCase.php delete mode 100644 wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-php72/Php72.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/AutoForwarding.php rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/apiclient-services/src/Google/Service/Gmail/BatchDeleteMessagesRequest.php (65%) create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/BatchModifyMessagesRequest.php rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/apiclient-services/src/Google/Service/Gmail/Delegate.php (50%) create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Draft.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Filter.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/FilterAction.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/FilterCriteria.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ForwardingAddress.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/History.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/HistoryLabelAdded.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/HistoryLabelRemoved.php rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/apiclient-services/src/Google/Service/Gmail/HistoryMessageAdded.php (52%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/apiclient-services/src/Google/Service/Gmail/HistoryMessageDeleted.php (52%) create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ImapSettings.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Label.php rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/apiclient-services/src/Google/Service/Gmail/LabelColor.php (52%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/apiclient-services/src/Google/Service/Gmail/LanguageSettings.php (63%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/apiclient-services/src/Google/Service/Gmail/ListDelegatesResponse.php (51%) create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListDraftsResponse.php rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/apiclient-services/src/Google/Service/Gmail/ListFiltersResponse.php (52%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/apiclient-services/src/Google/Service/Gmail/ListForwardingAddressesResponse.php (51%) create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListHistoryResponse.php rename wp-content/plugins/wp-mail-smtp/{vendor/google/apiclient-services/src/Google/Service/Gmail/ListSmimeInfoResponse.php => vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListLabelsResponse.php} (54%) create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListMessagesResponse.php rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/apiclient-services/src/Google/Service/Gmail/ListSendAsResponse.php (52%) rename wp-content/plugins/wp-mail-smtp/{vendor/google/apiclient-services/src/Google/Service/Gmail/Draft.php => vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListSmimeInfoResponse.php} (51%) create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListThreadsResponse.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Message.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/MessagePart.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/MessagePartBody.php rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/apiclient-services/src/Google/Service/Gmail/MessagePartHeader.php (57%) create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ModifyMessageRequest.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ModifyThreadRequest.php rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/apiclient-services/src/Google/Service/Gmail/PopSettings.php (52%) create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Profile.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/Users.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersDrafts.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersHistory.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersLabels.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersMessages.php rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersMessagesAttachments.php (50%) create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettings.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsDelegates.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsFilters.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsForwardingAddresses.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsSendAs.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsSendAsSmimeInfo.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersThreads.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/SendAs.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/SmimeInfo.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/SmtpMsa.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Thread.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/VacationSettings.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/WatchRequest.php rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/apiclient-services/src/Google/Service/Gmail/WatchResponse.php (53%) rename wp-content/plugins/wp-mail-smtp/{vendor/google/apiclient-services => vendor_prefixed/google/apiclient}/LICENSE (100%) create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/AccessToken/Revoke.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/AccessToken/Verify.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/AuthHandler/AuthHandlerFactory.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/AuthHandler/Guzzle5AuthHandler.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/AuthHandler/Guzzle6AuthHandler.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/AuthHandler/Guzzle7AuthHandler.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Client.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Collection.php rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/apiclient/src/Google/Exception.php (89%) create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Http/Batch.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Http/MediaFileUpload.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Http/REST.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Model.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Service.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Service/Exception.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Service/Resource.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Task/Composer.php rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/apiclient/src/Google/Task/Exception.php (85%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/apiclient/src/Google/Task/Retryable.php (96%) create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Task/Runner.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Utils/UriTemplate.php rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/apiclient/src/Google/autoload.php (54%) rename wp-content/plugins/wp-mail-smtp/{vendor/google/apiclient => vendor_prefixed/google/auth}/LICENSE (100%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/auth/autoload.php (71%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/auth/src/AccessToken.php (64%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/auth/src/ApplicationDefaultCredentials.php (57%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/auth/src/Cache/InvalidArgumentException.php (76%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/auth/src/Cache/Item.php (76%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/auth/src/Cache/MemoryCacheItemPool.php (72%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/auth/src/Cache/SysVCacheItemPool.php (69%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/auth/src/CacheTrait.php (80%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/auth/src/Credentials/AppIdentityCredentials.php (74%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/auth/src/Credentials/GCECredentials.php (72%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/auth/src/Credentials/IAMCredentials.php (81%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/auth/src/Credentials/InsecureCredentials.php (86%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/auth/src/Credentials/ServiceAccountCredentials.php (71%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/auth/src/Credentials/ServiceAccountJwtAccessCredentials.php (70%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/auth/src/Credentials/UserRefreshCredentials.php (65%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/auth/src/CredentialsLoader.php (66%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/auth/src/FetchAuthTokenCache.php (62%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/auth/src/FetchAuthTokenInterface.php (97%) create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/GCECache.php rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/auth/src/GetQuotaProjectInterface.php (95%) create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/HttpHandler/Guzzle5HttpHandler.php rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/auth/src/HttpHandler/Guzzle6HttpHandler.php (72%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/auth/src/HttpHandler/Guzzle7HttpHandler.php (80%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/auth/src/HttpHandler/HttpClientCache.php (85%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/auth/src/HttpHandler/HttpHandlerFactory.php (53%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/auth/src/Iam.php (68%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/auth/src/Middleware/AuthTokenMiddleware.php (78%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/auth/src/Middleware/ScopedAccessTokenMiddleware.php (80%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/auth/src/Middleware/SimpleMiddleware.php (79%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/auth/src/OAuth2.php (79%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/auth/src/ProjectIdProviderInterface.php (95%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/auth/src/ServiceAccountSignerTrait.php (69%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/auth/src/SignBlobInterface.php (87%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/auth/src/Subscriber/AuthTokenSubscriber.php (72%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/auth/src/Subscriber/ScopedAccessTokenSubscriber.php (75%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/google/auth/src/Subscriber/SimpleSubscriber.php (80%) create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/UpdateMetadataInterface.php rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/guzzle/LICENSE (100%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/guzzle/src/Client.php (68%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/guzzle/src/ClientInterface.php (81%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/guzzle/src/Cookie/CookieJar.php (60%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php (71%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php (73%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/guzzle/src/Cookie/SetCookie.php (76%) create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Exception/BadResponseException.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Exception/ClientException.php rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/guzzle/src/Exception/ConnectException.php (51%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/guzzle/src/Exception/GuzzleException.php (70%) create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Exception/InvalidArgumentException.php rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/guzzle/src/Exception/RequestException.php (59%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/guzzle/src/Exception/SeekException.php (52%) create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Exception/ServerException.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Exception/TooManyRedirectsException.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Exception/TransferException.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Handler/CurlFactory.php rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php (63%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/guzzle/src/Handler/CurlHandler.php (54%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php (66%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/guzzle/src/Handler/EasyHandle.php (60%) create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Handler/MockHandler.php rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/guzzle/src/Handler/Proxy.php (53%) create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Handler/StreamHandler.php rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/guzzle/src/HandlerStack.php (77%) create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/MessageFormatter.php rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/guzzle/src/Middleware.php (56%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/guzzle/src/Pool.php (70%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php (75%) create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/RedirectMiddleware.php rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/guzzle/src/RequestOptions.php (99%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/guzzle/src/RetryMiddleware.php (55%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/guzzle/src/TransferStats.php (83%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/guzzle/src/UriTemplate.php (68%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/guzzle/src/Utils.php (56%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/guzzle/src/functions.php (70%) rename wp-content/plugins/wp-mail-smtp/{vendor/guzzlehttp/promises => vendor_prefixed/guzzlehttp/guzzle}/src/functions_include.php (51%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/promises/LICENSE (100%) create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/promises/src/AggregateException.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/promises/src/CancellationException.php rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/promises/src/Coroutine.php (83%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/promises/src/EachPromise.php (75%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/promises/src/FulfilledPromise.php (70%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/promises/src/Promise.php (73%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/promises/src/PromiseInterface.php (93%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/promises/src/PromisorInterface.php (81%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/promises/src/RejectedPromise.php (73%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/promises/src/RejectionException.php (78%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/promises/src/TaskQueue.php (75%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/promises/src/TaskQueueInterface.php (90%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/promises/src/functions.php (63%) create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/promises/src/functions_include.php rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/psr7/LICENSE (100%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/psr7/src/AppendStream.php (81%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/psr7/src/BufferStream.php (78%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/psr7/src/CachingStream.php (72%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/psr7/src/DroppingStream.php (66%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/psr7/src/FnStream.php (61%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/psr7/src/InflateStream.php (52%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/psr7/src/LazyOpenStream.php (80%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/psr7/src/LimitStream.php (80%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/psr7/src/MessageTrait.php (75%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/psr7/src/MultipartStream.php (73%) create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/NoSeekStream.php rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/psr7/src/PumpStream.php (83%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/psr7/src/Request.php (74%) create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/Response.php rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/psr7/src/Rfc7230.php (77%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/psr7/src/ServerRequest.php (75%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/psr7/src/Stream.php (75%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/psr7/src/StreamDecoratorTrait.php (84%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/psr7/src/StreamWrapper.php (53%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/psr7/src/UploadedFile.php (58%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/psr7/src/Uri.php (73%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/psr7/src/UriNormalizer.php (79%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/psr7/src/UriResolver.php (77%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/guzzlehttp/psr7/src/functions.php (57%) rename wp-content/plugins/wp-mail-smtp/{vendor/guzzlehttp/guzzle => vendor_prefixed/guzzlehttp/psr7}/src/functions_include.php (52%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/LICENSE (100%) create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/ErrorHandler.php rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Formatter/ChromePHPFormatter.php (58%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Formatter/ElasticaFormatter.php (84%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Formatter/FlowdockFormatter.php (59%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php (72%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Formatter/FormatterInterface.php (94%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Formatter/GelfMessageFormatter.php (61%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Formatter/HtmlFormatter.php (64%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php (75%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Formatter/LineFormatter.php (60%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Formatter/LogglyFormatter.php (80%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Formatter/LogstashFormatter.php (88%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Formatter/MongoDBFormatter.php (76%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php (65%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Formatter/ScalarFormatter.php (76%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Formatter/WildfireFormatter.php (62%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/AbstractHandler.php (76%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php (76%) create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/AbstractSyslogHandler.php rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/AmqpHandler.php (58%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/BrowserConsoleHandler.php (71%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/BufferHandler.php (76%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/ChromePHPHandler.php (63%) create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/CouchDBHandler.php rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/CubeHandler.php (59%) create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/Curl/Util.php rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/DeduplicationHandler.php (62%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/DoctrineCouchDBHandler.php (55%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/DynamoDbHandler.php (60%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/ElasticSearchHandler.php (66%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/ErrorLogHandler.php (62%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/FilterHandler.php (61%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/FingersCrossed/ActivationStrategyInterface.php (90%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/FingersCrossed/ChannelLevelActivationStrategy.php (77%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/FingersCrossed/ErrorLevelActivationStrategy.php (63%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php (64%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/FirePHPHandler.php (77%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/FleepHookHandler.php (77%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/FlowdockHandler.php (69%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/FormattableHandlerInterface.php (63%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/FormattableHandlerTrait.php (62%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/GelfHandler.php (58%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/GroupHandler.php (72%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/HandlerInterface.php (92%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/HandlerWrapper.php (77%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/HipChatHandler.php (74%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/IFTTTHandler.php (57%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/InsightOpsHandler.php (69%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/LogEntriesHandler.php (68%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/LogglyHandler.php (54%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/MailHandler.php (87%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/MandrillHandler.php (57%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/MissingExtensionException.php (90%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/MongoDBHandler.php (67%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/NativeMailerHandler.php (75%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php (74%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/NullHandler.php (67%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/PHPConsoleHandler.php (56%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/ProcessableHandlerInterface.php (73%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/ProcessableHandlerTrait.php (66%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/PsrHandler.php (66%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/PushoverHandler.php (68%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/RavenHandler.php (72%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/RedisHandler.php (69%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/RollbarHandler.php (63%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php (60%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/SamplingHandler.php (70%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/Slack/SlackRecord.php (71%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/SlackHandler.php (75%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php (64%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/SlackbotHandler.php (66%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/SocketHandler.php (80%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/StreamHandler.php (63%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/SwiftMailerHandler.php (68%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/SyslogHandler.php (70%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/SyslogUdp/UdpSocket.php (56%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/SyslogUdpHandler.php (67%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/TestHandler.php (77%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Handler/WhatFailureGroupHandler.php (83%) create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/ZendMonitorHandler.php rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Logger.php (85%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Processor/GitProcessor.php (65%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Processor/IntrospectionProcessor.php (53%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Processor/MemoryPeakUsageProcessor.php (76%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Processor/MemoryProcessor.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Processor/MemoryUsageProcessor.php (77%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Processor/MercurialProcessor.php (64%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Processor/ProcessIdProcessor.php (70%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Processor/ProcessorInterface.php (91%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.php (50%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Processor/TagProcessor.php (79%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Processor/UidProcessor.php (68%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Processor/WebProcessor.php (81%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Registry.php (83%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/ResettableInterface.php (96%) create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/SignalHandler.php rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/monolog/monolog/src/Monolog/Utils.php (66%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/phpseclib/phpseclib/LICENSE (100%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/phpseclib/phpseclib/phpseclib/Crypt/AES.php (95%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/phpseclib/phpseclib/phpseclib/Crypt/RSA.php (61%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/phpseclib/phpseclib/phpseclib/Crypt/Random.php (65%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php (51%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/phpseclib/phpseclib/phpseclib/Math/BigInteger.php (70%) create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/phpseclib/phpseclib/phpseclib/bootstrap.php rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/psr/cache/src/CacheException.php (75%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/psr/cache/src/CacheItemInterface.php (98%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/psr/cache/src/CacheItemPoolInterface.php (95%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/psr/cache/src/InvalidArgumentException.php (63%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/psr/http-message/LICENSE (100%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/psr/http-message/src/MessageInterface.php (98%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/psr/http-message/src/RequestInterface.php (95%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/psr/http-message/src/ResponseInterface.php (94%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/psr/http-message/src/ServerRequestInterface.php (98%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/psr/http-message/src/StreamInterface.php (97%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/psr/http-message/src/UploadedFileInterface.php (98%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/psr/http-message/src/UriInterface.php (99%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/psr/log/LICENSE (100%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/psr/log/Psr/Log/AbstractLogger.php (76%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/psr/log/Psr/Log/InvalidArgumentException.php (67%) create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/psr/log/Psr/Log/LogLevel.php rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/psr/log/Psr/Log/LoggerAwareInterface.php (64%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/psr/log/Psr/Log/LoggerAwareTrait.php (73%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/psr/log/Psr/Log/LoggerInterface.php (98%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/psr/log/Psr/Log/LoggerTrait.php (78%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/psr/log/Psr/Log/NullLogger.php (86%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Api/AccountApi.php (53%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Api/AttributesApi.php (54%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Api/ContactsApi.php (51%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Api/EmailCampaignsApi.php (53%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Api/FoldersApi.php (51%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Api/ListsApi.php (51%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Api/ProcessApi.php (53%) create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/ResellerApi.php rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Api/SMSCampaignsApi.php (54%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Api/SMTPApi.php (56%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Api/SendersApi.php (51%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Api/TransactionalSMSApi.php (59%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Api/WebhooksApi.php (52%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/ApiException.php (97%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Configuration.php (93%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/HeaderSelector.php (86%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/AbTestCampaignResult.php (71%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/AddChildDomain.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/AddContactToList.php (79%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/AddCredits.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/CreateAttribute.php (76%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/CreateAttributeEnumeration.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/CreateChild.php (70%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/CreateContact.php (79%) create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateDoiContact.php rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/CreateEmailCampaign.php (75%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/CreateEmailCampaignRecipients.php (81%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/CreateEmailCampaignSender.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/CreateList.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/CreateModel.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/CreateReseller.php (77%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/CreateSender.php (81%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/CreateSenderIps.php (80%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/CreateSenderModel.php (81%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/CreateSmsCampaign.php (80%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/CreateSmsCampaignRecipients.php (81%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/CreateSmtpEmail.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/CreateSmtpTemplate.php (80%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/CreateSmtpTemplateSender.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/CreateUpdateContactModel.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/CreateUpdateFolder.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/CreateWebhook.php (70%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/CreatedProcessId.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/DeleteHardbounces.php (81%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/EmailExportRecipients.php (74%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/ErrorModel.php (74%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetAccount.php (79%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetAccountMarketingAutomation.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetAccountPlan.php (73%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetAccountRelay.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetAccountRelayData.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetAggregatedReport.php (80%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetAttributes.php (81%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetAttributesAttributes.php (71%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetAttributesEnumeration.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetCampaignOverview.php (74%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetCampaignRecipients.php (81%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetCampaignStats.php (79%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetChildAccountCreationStatus.php (81%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetChildDomain.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetChildDomains.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetChildInfo.php (79%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetChildInfoApiKeys.php (81%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetChildInfoApiKeysV2.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetChildInfoApiKeysV3.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetChildInfoCredits.php (81%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetChildInfoStatistics.php (79%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetChildrenList.php (81%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetClient.php (81%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStats.php (77%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsClicked.php (81%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsOpened.php (81%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsTransacAttributes.php (81%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsUnsubscriptions.php (80%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetContactDetails.php (80%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetContacts.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetDeviceBrowserStats.php (81%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetEmailCampaign.php (75%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetEmailCampaigns.php (81%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetEmailEventReport.php (81%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetEmailEventReportEvents.php (76%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetExtendedCampaignOverview.php (75%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetExtendedCampaignOverviewSender.php (81%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetExtendedCampaignStats.php (79%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetExtendedClient.php (80%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetExtendedClientAddress.php (81%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetails.php (79%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatistics.php (77%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsClicked.php (81%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsLinks.php (81%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsMessagesSent.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsOpened.php (81%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptions.php (81%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetExtendedList.php (79%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetExtendedListCampaignStats.php (81%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetFolder.php (80%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetFolderLists.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetFolders.php (81%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetIp.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetIpFromSender.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetIps.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetIpsFromSender.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetList.php (81%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetLists.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetProcess.php (76%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetProcesses.php (81%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetReports.php (81%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetReportsReports.php (80%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetSendersList.php (81%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetSendersListIps.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetSendersListSenders.php (81%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetSharedTemplateUrl.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaign.php (77%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaignOverview.php (77%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaignStats.php (80%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaigns.php (81%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetSmsEventReport.php (81%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetSmsEventReportEvents.php (76%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetSmtpTemplateOverview.php (79%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetSmtpTemplateOverviewSender.php (81%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetSmtpTemplates.php (81%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetSsoToken.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetStatsByBrowser.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetStatsByDevice.php (80%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetStatsByDomain.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetTransacAggregatedSmsReport.php (80%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetTransacBlockedContacts.php (81%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetTransacBlockedContactsContacts.php (81%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetTransacBlockedContactsReason.php (75%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailContent.php (80%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailContentEvents.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailsList.php (80%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailsListTransactionalEmails.php (74%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetTransacSmsReport.php (81%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetTransacSmsReportReports.php (80%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetWebhook.php (77%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/GetWebhooks.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/ManageIp.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/ModelInterface.php (98%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/PostContactInfo.php (81%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/PostContactInfoContacts.php (75%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/PostSendFailed.php (79%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/PostSendSmsTestFailed.php (80%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/RemainingCreditModel.php (81%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/RemainingCreditModelChild.php (80%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/RemainingCreditModelReseller.php (80%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/RemoveContactFromList.php (79%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/RemoveCredits.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/RequestContactExport.php (78%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/RequestContactExportCustomContactFilter.php (70%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/RequestContactImport.php (77%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/RequestContactImportNewList.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/RequestSMSRecipientExport.php (74%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/SendEmail.php (77%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/SendEmailAttachment.php (77%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/SendReport.php (75%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/SendReportEmail.php (76%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/SendSms.php (80%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmail.php (73%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailAttachment.php (76%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailBcc.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailCc.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailReplyTo.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailSender.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailTo.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/SendTemplateEmail.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/SendTestEmail.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/SendTestSms.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/SendTransacSms.php (77%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/UpdateAttribute.php (80%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/UpdateAttributeEnumeration.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/UpdateCampaignStatus.php (75%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/UpdateChild.php (80%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/UpdateChildAccountStatus.php (74%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/UpdateChildDomain.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/UpdateContact.php (76%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/UpdateEmailCampaign.php (74%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/UpdateEmailCampaignRecipients.php (81%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/UpdateEmailCampaignSender.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/UpdateList.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/UpdateSender.php (81%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/UpdateSmsCampaign.php (79%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/UpdateSmtpTemplate.php (79%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/UpdateSmtpTemplateSender.php (82%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/Model/UpdateWebhook.php (76%) create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UploadImageToGallery.php rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/sendinblue/api-v3-sdk/lib/ObjectSerializer.php (71%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/symfony/polyfill-intl-idn/Idn.php (67%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/symfony/polyfill-intl-idn/LICENSE (100%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/symfony/polyfill-intl-idn/bootstrap.php (98%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/symfony/polyfill-mbstring/LICENSE (100%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/symfony/polyfill-mbstring/Mbstring.php (63%) create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/symfony/polyfill-mbstring/Resources/unidata/titleCaseRegexp.php create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/symfony/polyfill-mbstring/Resources/unidata/upperCase.php rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/symfony/polyfill-mbstring/bootstrap.php (99%) rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/symfony/polyfill-php72/LICENSE (100%) create mode 100644 wp-content/plugins/wp-mail-smtp/vendor_prefixed/symfony/polyfill-php72/Php72.php rename wp-content/plugins/wp-mail-smtp/{vendor => vendor_prefixed}/symfony/polyfill-php72/bootstrap.php (97%) diff --git a/wp-content/plugins/wp-mail-smtp/assets/css/admin-bar.min.css b/wp-content/plugins/wp-mail-smtp/assets/css/admin-bar.min.css index 627e8c6..8dbf2af 100644 --- a/wp-content/plugins/wp-mail-smtp/assets/css/admin-bar.min.css +++ b/wp-content/plugins/wp-mail-smtp/assets/css/admin-bar.min.css @@ -1,3 +1 @@ #wpadminbar .wp-mail-smtp-admin-bar-menu-notification-counter,#wpadminbar .wp-mail-smtp-admin-bar-menu-error{display:inline-block !important;vertical-align:top !important;box-sizing:border-box !important;margin:7px 0 0 2px !important;padding:0 5px !important;min-width:18px !important;height:18px !important;border-radius:9px !important;background-color:#ca4a1f !important;color:#fff !important;font-size:11px !important;line-height:1.6 !important;text-align:center !important}#wpadminbar .wp-mail-smtp-admin-bar-menu-notification-counter span,#wpadminbar .wp-mail-smtp-admin-bar-menu-error span{line-height:1 !important;font-size:11px !important} - -/*# sourceMappingURL=admin-bar.min.css.map */ diff --git a/wp-content/plugins/wp-mail-smtp/assets/css/admin-notifications.min.css b/wp-content/plugins/wp-mail-smtp/assets/css/admin-notifications.min.css index 7a4a38a..faf09fb 100644 --- a/wp-content/plugins/wp-mail-smtp/assets/css/admin-notifications.min.css +++ b/wp-content/plugins/wp-mail-smtp/assets/css/admin-notifications.min.css @@ -1,3 +1 @@ #wp-mail-smtp-notifications{position:relative;background:#FFFFFF 0 0 no-repeat padding-box;box-shadow:0 5px 15px #0000000D;border-radius:6px;opacity:1;min-height:48px;padding:15px 102px 15px 72px;margin:0 0 14px 0}#wp-mail-smtp-notifications *{box-sizing:border-box}#wp-mail-smtp-notifications .bell{position:absolute;top:15px;left:15px;width:42px;height:48px}#wp-mail-smtp-notifications .messages .message{display:none}#wp-mail-smtp-notifications .messages .message.current{display:block}#wp-mail-smtp-notifications .messages .message .title{font-weight:bold;font-size:17px;line-height:20px;margin:0;color:#444}#wp-mail-smtp-notifications .messages .message .content{font-weight:normal;font-size:13px;line-height:20px;margin:6px 0 40px 0}#wp-mail-smtp-notifications .messages .message .buttons{margin:-30px 80px 0 0}#wp-mail-smtp-notifications .messages .message .buttons a{margin:0 6px 0 0;padding:8px 10px;line-height:13px;font-size:13px;min-height:unset}#wp-mail-smtp-notifications .messages .message .buttons .button-secondary{border:1px solid #0071A1}#wp-mail-smtp-notifications .dismiss{position:absolute;top:15px;right:15px;width:16px;height:16px;color:#72777C;font-size:16px;cursor:pointer;text-align:center;vertical-align:middle;line-height:16px}#wp-mail-smtp-notifications .dismiss:hover{color:#dc3232}#wp-mail-smtp-notifications .navigation{position:absolute;bottom:15px;right:15px;width:63px;height:30px}#wp-mail-smtp-notifications .navigation a{display:block;width:30px;height:30px;border:1px solid #7E8993;border-radius:3px;font-size:8px;text-align:center;vertical-align:middle;line-height:30px;cursor:pointer;background-color:#ffffff;color:#41454A}#wp-mail-smtp-notifications .navigation a:hover{background-color:#f1f1f1}#wp-mail-smtp-notifications .navigation a .dashicons{margin-top:8px;font-size:12px}#wp-mail-smtp-notifications .navigation .prev{float:left}#wp-mail-smtp-notifications .navigation .next{float:right}#wp-mail-smtp-notifications .navigation .disabled{border-color:#dddddd;color:#A0A5AA;cursor:default}#wp-mail-smtp-notifications .navigation .disabled:hover{background-color:#ffffff}@media screen and (max-width: 768px){#wp-mail-smtp-notifications{padding:15px 15px 15px 72px}#wp-mail-smtp-notifications .messages .message .title{margin:0 30px 0 0}#wp-mail-smtp-notifications .messages .message .content{font-size:16px;line-height:24px}#wp-mail-smtp-notifications .messages .message .buttons{margin:-30px 80px 0 0}#wp-mail-smtp-notifications .messages .message .buttons a{margin:0;display:table}#wp-mail-smtp-notifications .messages .message .buttons .button-secondary{margin-top:6px}} - -/*# sourceMappingURL=admin-notifications.min.css.map */ diff --git a/wp-content/plugins/wp-mail-smtp/assets/css/smtp-about.min.css b/wp-content/plugins/wp-mail-smtp/assets/css/smtp-about.min.css index 533a17d..b8936a1 100644 --- a/wp-content/plugins/wp-mail-smtp/assets/css/smtp-about.min.css +++ b/wp-content/plugins/wp-mail-smtp/assets/css/smtp-about.min.css @@ -1,3 +1 @@ -.wp-mail-smtp-page-about{padding:0 !important}.wp-mail-smtp-page-about *,.wp-mail-smtp-page-about *::before,.wp-mail-smtp-page-about *::after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins{padding:0 10px}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container{margin-left:-20px;margin-right:-20px}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-container{padding:0 10px;float:left;width:33.333333%;margin-bottom:20px}@media (max-width: 1249px){.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-container{width:50%}}@media (max-width: 781px){.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-container{width:100%;margin-bottom:20px}}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container h5{font-size:17px;font-weight:700}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item{background-color:#fff;border:1px solid #ddd;border-radius:3px;margin:0}@media (max-width: 781px){.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item{margin:0 0}}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item img{border:1px solid #eee;float:left;max-width:75px;padding:10px}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item img[src*="-mi"]{padding:13px}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item h5{margin:0 0 10px 100px;font-size:16px}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item p{margin:0 0 0 100px}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .details{padding:20px}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .actions{background-color:#f7f7f7;border-top:1px solid #ddd;padding:20px;position:relative}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .actions .msg{background-color:#f7f7f7;position:absolute;text-align:center;font-weight:600;top:0;left:0;height:100%;width:100%;z-index:99;padding:20px;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;-webkit-align-items:center;-ms-align-items:center;align-items:center;justify-content:center}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .actions .msg.success{color:#2a9b39}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .actions .msg.error{color:red}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .status{float:left;padding-top:8px}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .status .status-inactive{color:red}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .status .status-download{color:#666}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .status .status-active{color:#2a9b39}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button{float:right}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button{background:none;cursor:pointer;width:140px;text-align:center;display:inline-block;text-decoration:none;font-size:13px;line-height:26px;height:28px;margin:0;padding:0 10px 1px;-webkit-appearance:none;border-radius:3px;border:1px solid #cccccc;background:#f7f7f7;box-shadow:0 1px 0 #cccccc;font-weight:normal}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button:hover,.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button:focus,.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.loading{background:#fafafa;border-color:#999;color:#23282d}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button .fa{margin-right:8px}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button .fa.fa-spinner{margin-right:0}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.button-primary{background:#0085ba;border-color:#0073aa #006799 #006799;box-shadow:0 1px 0 #006799;color:#fff;text-shadow:0 -1px 1px #006799, 1px 0 1px #006799, 0 1px 1px #006799, -1px 0 1px #006799}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.button-primary:hover,.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.button-primary:focus{background:#008ec2;border-color:#006799;color:#fff}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.button-primary .fa-spinner{color:#fff}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.button-secondary{color:#555;border-color:#cccccc;background:#f7f7f7;box-shadow:0 1px 0 #cccccc}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.button-secondary:hover,.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.button-secondary:focus{background:#fafafa;border-color:#999;color:#23282d}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.status-active .fa{color:#2a9b39}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.status-inactive .fa{color:red}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.status-download .fa{color:#999}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.loading .fa{color:#666}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.disabled{cursor:default}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section{margin:0 0 20px;padding:30px;background:#fff;border:1px solid #E5E6E6;line-height:2}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section h1,.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section h2,.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section h3,.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section h4,.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section h5{margin-top:0;padding-top:0;line-height:1.6}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section h2{font-size:24px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section h3{font-size:18px;margin-bottom:30px;color:#23282C}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section ul,.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section p{font-size:16px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section p{margin-bottom:20px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section p.bigger{font-size:18px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section p.smaller{font-size:14px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section p:last-child{margin-bottom:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section hr{margin:30px 0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section figure{margin:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section figure img{width:100%}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section figure figcaption{font-size:14px;color:#888888;margin-top:5px;text-align:center;line-height:initial}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section .wp-mail-smtp-admin-column-40{padding-left:15px}@media (max-width: 781px){.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section .wp-mail-smtp-admin-column-40{width:100%;padding-left:0;padding-top:20px}}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section .wp-mail-smtp-admin-column-60{padding-right:15px}@media (max-width: 781px){.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section .wp-mail-smtp-admin-column-60{width:100%;padding-right:0}}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section ul.list-plain{margin-top:0;margin-bottom:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section ul.list-plain li{margin-bottom:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section ul.list-features li .fa{color:#2a9b39;margin:0 8px 0 0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section .fa-star{color:gold}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section .no-margin{margin:0 !important}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section .no-padding{padding:0 !important}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section .centered{text-align:center !important}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero{padding:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero .wp-mail-smtp-admin-about-section-hero-main,.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero .wp-mail-smtp-admin-about-section-hero-extra{padding:30px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero .wp-mail-smtp-admin-about-section-hero-extra table{width:100%}@media (max-width: 781px){.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero .wp-mail-smtp-admin-about-section-hero-extra .wp-mail-smtp-admin-column-50{float:none;width:100%}}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero .wp-mail-smtp-admin-about-section-hero-main{background-color:#FAFAFA;border-bottom:1px solid #E5E6E6}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero .wp-mail-smtp-admin-about-section-hero-main.no-border{border-bottom:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero .wp-mail-smtp-admin-about-section-hero-main p{color:#666}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero h3.call-to-action{margin-bottom:-10px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero span.price-off{color:#6AB255}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-squashed{margin-bottom:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-squashed:not(:last-of-type){border-bottom:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post h2{margin-bottom:-10px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post h3{margin-bottom:15px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post p:last-of-type{margin-bottom:30px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post .wp-mail-smtp-admin-column-20{padding-right:20px;width:auto}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post .wp-mail-smtp-admin-column-20 img{width:270px}@media (max-width: 781px){.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post .wp-mail-smtp-admin-column-20{width:20%}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post .wp-mail-smtp-admin-column-20 img{width:auto;max-width:100%}}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post .wp-mail-smtp-admin-column-80{padding-left:20px;width:calc(100% - 20px - 270px)}@media (max-width: 781px){.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post .wp-mail-smtp-admin-column-80{width:80%}}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post .wp-mail-smtp-admin-about-section-post-link{padding:10px 15px;background-color:#DF7739;color:#fff;border-radius:3px;text-decoration:none;margin-top:15px;font-size:14px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post .wp-mail-smtp-admin-about-section-post-link:hover{background-color:#B85A1B}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post .wp-mail-smtp-admin-about-section-post-link .fa{color:#EDBA9E;vertical-align:middle;margin-left:8px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table table{border-collapse:collapse}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table table tr td{border-bottom:1px solid #E5E6E6;border-right:1px solid #E5E6E6;padding:30px;vertical-align:top}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table table tr td:last-of-type{border-right:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table table tr:last-child td{border-bottom:none}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table table p{background-repeat:no-repeat;background-size:15px auto;background-position:0 6px;margin:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table table p.features-full{padding-left:30px;background-image:url(../images/about/icon-full.svg)}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table table p.features-none{padding-left:30px;background-image:url(../images/about/icon-none.svg)}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table table p.features-partial{padding-left:30px;background-position:-3px 0;background-size:23px auto;background-image:url(../images/about/icon-partial.svg)}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table .wp-mail-smtp-admin-about-section-hero-main{padding:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table .wp-mail-smtp-admin-about-section-hero-main h3{padding:30px 30px 30px 60px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table .wp-mail-smtp-admin-about-section-hero-main .wp-mail-smtp-admin-column-33:first-child h3{padding:30px} - -/*# sourceMappingURL=smtp-about.min.css.map */ +.wp-mail-smtp-page-about{padding:0 !important}.wp-mail-smtp-page-about *,.wp-mail-smtp-page-about *::before,.wp-mail-smtp-page-about *::after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins{padding:0 10px}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container{margin-left:-20px;margin-right:-20px}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-container{padding:0 10px;float:left;width:33.333333%;margin-bottom:20px}@media (max-width: 1249px){.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-container{width:50%}}@media (max-width: 781px){.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-container{width:100%;margin-bottom:20px}}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container h5{font-size:17px;font-weight:700}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item{background-color:#fff;border:1px solid #ddd;border-radius:3px;margin:0}@media (max-width: 781px){.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item{margin:0 0}}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item img{border:1px solid #eee;float:left;max-width:75px;padding:10px}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item img[src*="-mi"]{padding:13px}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item h5{margin:0 0 10px 100px;font-size:16px}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item p{margin:0 0 0 100px}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .details{padding:20px}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .actions{background-color:#f7f7f7;border-top:1px solid #ddd;padding:20px;position:relative}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .actions .msg{background-color:#f7f7f7;position:absolute;text-align:center;font-weight:600;top:0;left:0;height:100%;width:100%;z-index:99;padding:20px;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;-webkit-align-items:center;-ms-align-items:center;align-items:center;justify-content:center}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .actions .msg.success{color:#2a9b39}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .actions .msg.error{color:red}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .status{float:left;padding-top:8px}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .status .status-inactive{color:red}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .status .status-download{color:#666}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .status .status-active{color:#2a9b39}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button{float:right}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button{background:none;cursor:pointer;width:140px;text-align:center;display:inline-block;text-decoration:none;font-size:13px;line-height:26px;height:28px;margin:0;padding:0 10px 1px;-webkit-appearance:none;border-radius:3px;border:1px solid #cccccc;background:#f7f7f7;box-shadow:0 1px 0 #cccccc;font-weight:normal}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button:hover,.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button:focus,.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.loading{background:#fafafa;border-color:#999;color:#23282d}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button .fa{margin-right:8px}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button .fa.fa-spinner{margin-right:0}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.button-primary{background:#0085ba;border-color:#0073aa #006799 #006799;box-shadow:0 1px 0 #006799;color:#fff;text-shadow:0 -1px 1px #006799, 1px 0 1px #006799, 0 1px 1px #006799, -1px 0 1px #006799}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.button-primary:hover,.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.button-primary:focus{background:#008ec2;border-color:#006799;color:#fff}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.button-primary .fa-spinner{color:#fff}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.button-secondary{color:#555;border-color:#cccccc;background:#f7f7f7;box-shadow:0 1px 0 #cccccc}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.button-secondary:hover,.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.button-secondary:focus{background:#fafafa;border-color:#999;color:#23282d}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.status-active .fa{color:#2a9b39}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.status-inactive .fa{color:red}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.status-download .fa{color:#999}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.loading .fa{color:#666}.wp-mail-smtp-page-about.wp-mail-smtp-tab-about-about .wp-mail-smtp-admin-about-plugins .plugins-container .plugin-item .action-button button.disabled{cursor:default}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section{margin:0 0 20px;padding:30px;background:#fff;border:1px solid #E5E6E6;line-height:2}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section h1,.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section h2,.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section h3,.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section h4,.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section h5{margin-top:0;padding-top:0;line-height:1.6}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section h2{font-size:24px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section h3{font-size:18px;margin-bottom:30px;color:#23282C}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section ul,.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section p{font-size:16px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section p{margin-bottom:20px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section p.bigger{font-size:18px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section p.smaller{font-size:14px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section p:last-child{margin-bottom:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section hr{margin:30px 0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section figure{margin:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section figure img{width:100%}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section figure figcaption{font-size:14px;color:#888888;margin-top:5px;text-align:center;line-height:initial}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section .wp-mail-smtp-admin-column-40{padding-left:15px}@media (max-width: 781px){.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section .wp-mail-smtp-admin-column-40{width:100%;padding-left:0;padding-top:20px}}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section .wp-mail-smtp-admin-column-60{padding-right:15px}@media (max-width: 781px){.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section .wp-mail-smtp-admin-column-60{width:100%;padding-right:0}}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section ul.list-plain{margin-top:0;margin-bottom:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section ul.list-plain li{margin-bottom:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section ul.list-features li .fa{color:#2a9b39;margin:0 8px 0 0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section .fa-star{color:gold}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section .no-margin{margin:0 !important}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section .no-padding{padding:0 !important}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section .centered{text-align:center !important}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero{padding:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero .wp-mail-smtp-admin-about-section-hero-main,.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero .wp-mail-smtp-admin-about-section-hero-extra{padding:30px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero .wp-mail-smtp-admin-about-section-hero-extra table{width:100%}@media (max-width: 781px){.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero .wp-mail-smtp-admin-about-section-hero-extra .wp-mail-smtp-admin-column-50{float:none;width:100%}}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero .wp-mail-smtp-admin-about-section-hero-main{background-color:#FAFAFA;border-bottom:1px solid #E5E6E6}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero .wp-mail-smtp-admin-about-section-hero-main.no-border{border-bottom:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero .wp-mail-smtp-admin-about-section-hero-main p{color:#666}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero h3.call-to-action{margin-bottom:-10px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-hero span.price-off{color:#6AB255}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-squashed{margin-bottom:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-squashed:not(:last-of-type){border-bottom:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post h2{margin-bottom:-10px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post h3{margin-bottom:15px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post p:last-of-type{margin-bottom:30px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post .wp-mail-smtp-admin-column-20{padding-right:20px;width:auto}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post .wp-mail-smtp-admin-column-20 img{width:270px}@media (max-width: 781px){.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post .wp-mail-smtp-admin-column-20{width:20%}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post .wp-mail-smtp-admin-column-20 img{width:auto;max-width:100%}}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post .wp-mail-smtp-admin-column-80{padding-left:20px;width:calc(100% - 20px - 270px)}@media (max-width: 781px){.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post .wp-mail-smtp-admin-column-80{width:80%}}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post .wp-mail-smtp-admin-about-section-post-link{padding:10px 15px;background-color:#DF7739;color:#fff;border-radius:3px;text-decoration:none;margin-top:15px;font-size:14px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post .wp-mail-smtp-admin-about-section-post-link:hover{background-color:#B85A1B}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-post .wp-mail-smtp-admin-about-section-post-link .fa{color:#EDBA9E;vertical-align:middle;margin-left:8px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table table{border-collapse:collapse}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table table tr td{border-bottom:1px solid #E5E6E6;border-right:1px solid #E5E6E6;padding:30px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table table tr td:last-of-type{border-right:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table table tr:last-child td{border-bottom:none}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table table p{background-repeat:no-repeat;background-size:15px auto;background-position:0 6px;margin:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table table p.features-full{padding-left:30px;background-image:url(../images/about/icon-full.svg)}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table table p.features-none{padding-left:30px;background-image:url(../images/about/icon-none.svg)}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table table p.features-partial{padding-left:30px;background-position:-3px 0;background-size:23px auto;background-image:url(../images/about/icon-partial.svg)}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table .wp-mail-smtp-admin-about-section-hero-main{padding:0}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table .wp-mail-smtp-admin-about-section-hero-main h3{padding:30px 30px 30px 60px}.wp-mail-smtp-page-about .wp-mail-smtp-admin-about-section-table .wp-mail-smtp-admin-about-section-hero-main .wp-mail-smtp-admin-column-33:first-child h3{padding:30px} diff --git a/wp-content/plugins/wp-mail-smtp/assets/css/smtp-admin.min.css b/wp-content/plugins/wp-mail-smtp/assets/css/smtp-admin.min.css index ddeee1b..b8e7cad 100644 --- a/wp-content/plugins/wp-mail-smtp/assets/css/smtp-admin.min.css +++ b/wp-content/plugins/wp-mail-smtp/assets/css/smtp-admin.min.css @@ -1,3 +1 @@ -#wpcontent{padding-left:0 !important;position:relative}@media (max-width: 600px){#wpcontent{padding-top:46px}}@media (max-width: 600px){#wpbody{padding-top:0}}@-webkit-keyframes wp-mail-smtp-fade-in-stop-out{0%,100%{opacity:0}35%{opacity:1}65%{opacity:1}}@keyframes wp-mail-smtp-fade-in-stop-out{0%,100%{opacity:0}35%{opacity:1}65%{opacity:1}}body.toplevel_page_wp-mail-smtp div.jconfirm *,body.toplevel_page_wp-mail-smtp div.jconfirm *::before,body.toplevel_page_wp-mail-smtp div.jconfirm *::after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box-container div.jconfirm-box{border-radius:0;box-shadow:0 2px 6px rgba(0,0,0,0.2)}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box-container div.jconfirm-box div.jconfirm-closeIcon{color:rgba(0,0,0,0.4);top:8px;right:8px}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box-container div.jconfirm-box div.jconfirm-closeIcon:hover{color:rgba(0,0,0,0.8)}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-title-c{margin:0 0 26px 0 !important;padding:0 !important}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-title-c .jconfirm-icon-c{margin:0 !important;color:#c4c4c4 !important;-webkit-transition:none !important;transition:none !important;-webkit-transform:none !important;-ms-transform:none !important;transform:none !important;font-size:45px !important}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-title-c .jconfirm-icon-c i:empty{display:none}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-title-c .jconfirm-icon-c svg{height:35px}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-title-c .jconfirm-title{display:block;color:#444}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-title-c .jconfirm-icon-c+span.jconfirm-title{margin-top:20px !important}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content-pane{margin-bottom:0;display:block}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content-pane .jconfirm-content{overflow:inherit}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content{font-size:16px;color:#777;line-height:1.4}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content.lite-upgrade p{font-size:18px;padding:0 20px}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content p{margin:0 0 20px;font-size:16px;line-height:1.5}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content p:last-of-type{margin:0}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content p.large{font-size:18px}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content p.small{font-size:14px}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content .already-purchased{font-size:12px;color:#ccc;text-decoration:none}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content .already-purchased:hover{text-decoration:underline}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-buttons .already-purchased{display:block;font-size:12px;color:#aaa;text-decoration:none;padding-top:20px}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-buttons .already-purchased:hover{color:#999;text-decoration:underline}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box .discount-note{text-align:center;margin:30px 0 0}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box .discount-note p{background-color:#faffac;margin:0 -30px;padding:24px 60px 20px;font-size:15px;color:#4d4d4d;position:relative}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box .discount-note p:after{content:url(../images/font-awesome/check-circle-solid-green.svg);width:40px;height:40px;background-color:#fff;border-radius:50%;padding:5px 6px;position:absolute;top:-20px;right:50%;margin-right:-18px}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box .discount-note span{font-weight:700;color:#3abc01}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box .discount-note a{color:#aaa;display:block;margin-top:12px}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box input[type=text]{display:block;width:99%;border:1px solid #d6d6d6;padding:10px;box-shadow:none;margin:20px auto 0 auto}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box button.btn-confirm{background-color:#FF982D;color:#fff;outline:none}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box button.btn-confirm:hover{background-color:#f97f00;border-color:#f97f00}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box button,body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box button.btn-default{color:#666}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box button.btn-block{display:block;text-align:center;width:100%;margin:0 0 10px 0 !important}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box button.btn-normal-case{text-transform:none !important}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box .error{display:none;color:red}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box .wpforms-error{border:1px solid #ebccd1 !important}@media screen and (max-width: 1023px){#wp-mail-smtp-notice-bar{display:none !important}}#wp-mail-smtp-notice-bar{max-height:35px;position:relative;margin-bottom:-3px;transition:all .3s ease-out;overflow:hidden}#wp-mail-smtp-notice-bar.out{max-height:3px}#wp-mail-smtp-notice-bar .wp-amil-smtp-notice-bar-container{background-color:#DDDDDD;border-top:3px solid #FF982D;color:#777777;text-align:center;padding:7px}#wp-mail-smtp-notice-bar a{color:#FF982D}#wp-mail-smtp-notice-bar a:hover{color:#f97f00}#wp-mail-smtp-notice-bar .dismiss{position:absolute;top:0;right:0;border:none;padding:5px;margin-top:4px;background:0 0;color:#72777c;cursor:pointer}#wp-mail-smtp-notice-bar .dismiss:before{background:0 0;color:#72777c;content:"\f335";display:block;font:normal 20px/20px dashicons;speak:none;height:20px;text-align:center;width:20px;-webkit-font-smoothing:antialiased}#screen-meta-links .screen-meta-toggle{position:absolute;right:20px;top:auto}#screen-meta-links,#screen-meta{display:none}#wp-mail-smtp-header-temp{position:absolute;margin:0;top:-1px;left:20px;right:20px;z-index:99}#wp-mail-smtp-header{border-top:3px solid #FF982D;padding:20px}#wp-mail-smtp-header img{display:block;margin:0;max-width:242px}@media (max-width: 782px){#wp-mail-smtp-header img{max-width:200px}}#wp-mail-smtp{margin:0}#wp-mail-smtp .wp-mail-smtp-hide{display:none}#wp-mail-smtp .wp-mail-smtp-page-title{height:58px;background-color:#fff;font-size:14px;margin:0 0 20px 0;padding:0 20px}#wp-mail-smtp .wp-mail-smtp-page-title a.tab{border-bottom:2px solid #fff;box-shadow:none;color:#666;display:inline-block;margin-right:30px;padding:20px 0 18px 0;text-decoration:none}#wp-mail-smtp .wp-mail-smtp-page-title a.tab.active{border-bottom:2px solid #FF982D}#wp-mail-smtp .wp-mail-smtp-page-title a.tab:hover{border-color:#999}#wp-mail-smtp .wp-mail-smtp-page-title a.action{padding:5px;border:0;min-height:auto;color:#fff;margin:-10px 0 0 20px}#wp-mail-smtp .wp-mail-smtp-page-title .page-title{background-color:#fff;display:inline-block;font-size:23px;margin:0;padding:20px 20px 20px 0}#wp-mail-smtp .wp-mail-smtp-page-content{padding:0 20px}#wp-mail-smtp .wp-mail-smtp-page-content *,#wp-mail-smtp .wp-mail-smtp-page-content *::before,#wp-mail-smtp .wp-mail-smtp-page-content *::after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-clear:before{content:" ";display:table}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-clear:after{clear:both;content:" ";display:table}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row{border-bottom:1px solid #e4e4e4;padding:30px 0;font-size:14px;line-height:1.3}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row:first-of-type{padding-top:10px !important}@media (max-width: 781px){#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row{padding:20px 0}}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.inactive{display:none}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row .wp-mail-smtp-setting-mid-row-sep{background:#e4e4e4;height:1px;border:0;margin:15px 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.section-heading{padding:20px 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.section-heading.no-desc h2,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.section-heading.no-desc h4{margin:0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.section-heading .wp-mail-smtp-setting-field{margin:0;max-width:1005px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox input[type=checkbox]{float:left;margin:1px 0 0 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox input[type=checkbox]+label{margin:0 0 0 8px;vertical-align:baseline}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox .desc{margin:0 0 0 30px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox input[type=checkbox]+label+.desc{margin:8px 0 0 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-text .wp-mail-smtp-setting-label,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-password .wp-mail-smtp-setting-label,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-number .wp-mail-smtp-setting-label,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-email .wp-mail-smtp-setting-label{padding-top:8px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-select .wp-mail-smtp-setting-label{padding-top:8px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-radio .wp-mail-smtp-setting-field input[type=radio]{margin:-3px 10px 0 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-radio .wp-mail-smtp-setting-field label{margin-right:30px;display:inline-block}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field label{vertical-align:middle;display:inline-block}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field label:hover .wp-mail-smtp-setting-toggle-switch{background-color:#999}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]{display:none}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:checked+.wp-mail-smtp-setting-toggle-switch{background-color:#46B450}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:checked+.wp-mail-smtp-setting-toggle-switch:before{-webkit-transform:translateX(19px);-ms-transform:translateX(19px);transform:translateX(19px)}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:disabled+.wp-mail-smtp-setting-toggle-switch{background-color:#a0daa5;cursor:default}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:checked+.wp-mail-smtp-setting-toggle-switch+.wp-mail-smtp-setting-toggle-checked-label{display:inline-block}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:checked+.wp-mail-smtp-setting-toggle-switch+.wp-mail-smtp-setting-toggle-checked-label+.wp-mail-smtp-setting-toggle-unchecked-label{display:none}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:disabled+.wp-mail-smtp-setting-toggle-switch+.wp-mail-smtp-setting-toggle-checked-label,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:disabled+.wp-mail-smtp-setting-toggle-switch+.wp-mail-smtp-setting-toggle-unchecked-label{color:#aaa}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field .wp-mail-smtp-setting-toggle-unchecked-label,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field .wp-mail-smtp-setting-toggle-checked-label{text-transform:uppercase;font-weight:400;color:#777;font-size:13px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field .wp-mail-smtp-setting-toggle-checked-label{display:none}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field .wp-mail-smtp-setting-toggle-switch{position:relative;cursor:pointer;background-color:#ccc;border-radius:15px;-webkit-transition:all 0.2s ease-in-out;-moz-transition:all 0.2s ease-in-out;-ms-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out;vertical-align:middle;position:relative;display:inline-block;margin:0 5px 0 0;width:40px;height:20px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field .wp-mail-smtp-setting-toggle-switch:before{position:absolute;content:"";height:14px;width:14px;left:3px;top:3px;background-color:#fff;border-radius:50%;-webkit-transition:all 0.2s ease-in-out;-moz-transition:all 0.2s ease-in-out;-ms-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer{padding-bottom:20px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer .wp-mail-smtp-mailers .wp-mail-smtp-mailer{display:inline-block;width:140px;margin-right:12px;margin-bottom:12px;position:relative}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer .wp-mail-smtp-mailers .wp-mail-smtp-mailer .wp-mail-smtp-mailer-image{background:#fff;text-align:center;border:2px solid #E5E5E5;border-radius:4px;cursor:pointer;height:76px;position:relative;margin-bottom:10px;-webkit-transition:all 0.2s ease-in-out;-moz-transition:all 0.2s ease-in-out;-ms-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer .wp-mail-smtp-mailers .wp-mail-smtp-mailer .wp-mail-smtp-mailer-image.is-recommended{background-image:url(../images/recommended.svg);background-repeat:no-repeat;background-size:60%;background-position:top right -2px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer .wp-mail-smtp-mailers .wp-mail-smtp-mailer .wp-mail-smtp-mailer-image img{max-width:90%;max-height:40px;display:block;position:relative;top:50%;left:50%;transform:translate(-50%, -50%);opacity:0.6;-webkit-transition:all 0.2s ease-in-out;-moz-transition:all 0.2s ease-in-out;-ms-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer .wp-mail-smtp-mailers .wp-mail-smtp-mailer.wp-mail-smtp-mailer-smtp .wp-mail-smtp-mailer-image img{max-height:30px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer .wp-mail-smtp-mailers .wp-mail-smtp-mailer.active .wp-mail-smtp-mailer-image{border-color:#FF982D}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer .wp-mail-smtp-mailers .wp-mail-smtp-mailer.active .wp-mail-smtp-mailer-image img{opacity:1}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer .wp-mail-smtp-mailers .wp-mail-smtp-mailer:hover .wp-mail-smtp-mailer-image{border-color:#ccc}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer .wp-mail-smtp-mailers .wp-mail-smtp-mailer:hover .wp-mail-smtp-mailer-image img{opacity:1}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row h2,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row h4{color:#444;font-size:20px;font-weight:700;margin:0 0 6px 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row h2{margin-bottom:15px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row h3{color:#444;font-size:24px;font-weight:600;margin:0 0 20px 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row p{margin:12px 0 0;font-size:14px;line-height:1.5em}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row p:first-of-type{margin:8px 0 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row p.desc{font-style:italic;color:#777}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row p.buttonned{margin-top:30px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row p.inline-notice{margin:5px 0 15px;box-sizing:border-box;background:#fff;border-left:4px solid transparent;box-shadow:0 1px 1px 0 rgba(0,0,0,0.1)}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row p.inline-notice.inline-error{border-color:#dc3232;margin-bottom:5px;padding:10px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row p.inline-notice.inline-edu-notice{border-color:#809EB0;line-height:1.5em;padding:10px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row p.inline-notice a.wp-mail-smtp-mailer-notice-dismiss{float:right;color:#999DA1;margin:0 0 10px 10px;text-decoration:none}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row p.inline-notice a.wp-mail-smtp-mailer-notice-dismiss:hover{color:#666a6e}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row ul{margin:8px 0 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row ul.list li{margin-left:20px;list-style-type:disc}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list th{padding:5px 5px 5px 0;text-align:left}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td.email{padding-right:2em}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td.status{width:100px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td.actions a{border-bottom:1px solid;display:inline-block;margin-right:5px;text-decoration:none}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td.actions a[class*=delete]{color:#a00}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td.actions a[class*=delete]:hover,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td.actions a[class*=delete]:active,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td.actions a[class*=delete]:focus{color:#400}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=text],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=email],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=number],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=password]{background-color:#fff;border:1px solid #ddd;border-radius:3px;box-shadow:none;color:#333;display:inline-block;vertical-align:middle;padding:7px 12px;margin:0 10px 0 0;width:400px;min-height:35px;line-height:1.3}@media (max-width: 959px){#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=text],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=email],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=number],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=password]{width:300px}}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=text][readonly],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=email][readonly],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=number][readonly],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=password][readonly]{background-color:#f9f9f9}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=text].small-text,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=email].small-text,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=number].small-text,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=password].small-text{width:75px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=text]:focus,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=email]:focus,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=number]:focus,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=password]:focus{border-color:#bbb}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=text]:disabled,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=email]:disabled,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=number]:disabled,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=password]:disabled{opacity:0.6}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row .dashicons-yes-alt.wp-mail-smtp-animate{-webkit-animation:wp-mail-smtp-fade-in-stop-out 1s linear;animation:wp-mail-smtp-fade-in-stop-out 1s linear}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row .dashicons-yes-alt.wp-mail-smtp-success{color:#46b450}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-label{display:block;float:left;width:205px;padding:0 20px 0 0}@media (max-width: 781px){#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-label{float:none;width:100%;padding-bottom:15px}}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-label label{display:block;font-weight:600}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-field{display:block;margin:0 0 0 205px;max-width:800px}@media (max-width: 781px){#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-field{margin:0}}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-submit{margin:0;padding:25px 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-submit .help-text{margin-left:10px;vertical-align:middle}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-mailer-options .wp-mail-smtp-mailer-option .wp-mail-smtp-setting-row.section-heading{padding:20px 0 !important}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-mailer-options .wp-mail-smtp-mailer-option blockquote{background:#E5E5E5;border-radius:4px;color:#666;font-size:14px;margin:20px 0;padding:15px;width:1005px}#wp-mail-smtp .wp-mail-smtp-page-content.wp-mail-smtp-page-general p{margin:0}#wp-mail-smtp .wp-mail-smtp-page-content .notice-inline{background:#fff;border-left:4px solid #fff;box-shadow:0 1px 1px 0 rgba(0,0,0,0.1);margin:5px 0 15px;padding:1px 12px}#wp-mail-smtp .wp-mail-smtp-page-content .notice-inline.notice-success{border-left-color:#46b450}#wp-mail-smtp .wp-mail-smtp-page-content .notice-inline.notice-warning{border-left-color:#ffb900}#wp-mail-smtp .wp-mail-smtp-page-content .notice-inline.notice-error{border-left-color:#dc3232}#wp-mail-smtp .wp-mail-smtp-page-content .notice-inline.notice-info{border-left-color:#00a0d2}#wp-mail-smtp .wp-mail-smtp-page-content .notice p,#wp-mail-smtp .wp-mail-smtp-page-content .notice-inline p{margin:0.5em 0;padding:2px}#wp-mail-smtp .wp-mail-smtp-page-content pre{white-space:pre-line}#wp-mail-smtp .wp-mail-smtp-page-content.active{display:block}#wp-mail-smtp .wp-mail-smtp-page-content .connected-as{margin-left:30px}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug{background-color:#fff;padding:25px 20px 1px 25px}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug h2{color:#444;margin:1.4em 0 0.8em;font-size:16px;font-weight:700}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug p{font-size:14px;color:#555;margin-bottom:1.1em}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug ul,#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug ol{font-size:14px;color:#555;margin:0 0 1.1em 1.8em}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug ul li,#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug ol li{margin:0 0 8px 0;line-height:1.5}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug ul li:last-of-type,#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug ol li:last-of-type{margin:0}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug ul li ul,#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug ol li ul{list-style-type:disc}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug a{color:#FF982D}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug a:hover{color:#f97f00}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug .dashicons-star-filled{color:#FF982D;width:16px;height:16px;font-size:16px;vertical-align:text-top}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug .price-off{color:green;font-weight:bold}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug .error-log-toggle{text-decoration:none;color:#444}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug .error-log-toggle:hover{color:#FF982D}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug .error-log-toggle .dashicons{font-size:15px;height:15px;width:15px;padding-top:3px;border:0;outline:0}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug .error-log{border-left:3px solid #ffb900;padding:0 0 0 20px;margin:0 0 10px 0;font-size:12px;display:none}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug .error-log pre{margin:0}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug .error-log-note{display:none}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner{background-color:#fff;padding:25px 20px;border:1px solid #dadada;margin:10px 0 0 0;position:relative}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .wp-mail-smtp-pro-banner-dismiss{position:absolute;right:10px;top:10px}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .wp-mail-smtp-pro-banner-dismiss button{background:none;border:none;color:#a9a9a9;cursor:pointer;margin:0;padding:0}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner h2{color:#444;margin-top:0;font-size:16px;font-weight:700}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner p{font-size:14px;color:#555;margin-bottom:1.1em}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner p:last-of-type{margin:0}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .benefits{margin:0 0 16px 0;overflow:auto;max-width:1000px}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .benefits ul{margin:0;padding:0;width:50%;float:left}@media (max-width: 600px){#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .benefits ul{width:100%;float:none}}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .benefits ul li{margin:0;padding:0 0 2px 16px;color:#555;font-size:14px;position:relative}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .benefits ul li:before{content:'+';position:absolute;top:-1px;left:0}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .benefits ul li.arrow-right:before{content:'→'}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner a{color:#FF982D}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner a:hover,#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner a:active,#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner a:focus{color:#f97f00}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .stars{text-decoration:none}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .stars .dashicons{width:16px;height:16px;font-size:16px;vertical-align:text-top}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .price-off{color:green;font-weight:bold}#wp-mail-smtp .wp-mail-smtp-admin-columns>div[class*="-column-"]{float:left}#wp-mail-smtp .wp-mail-smtp-admin-columns .wp-mail-smtp-admin-column-20{width:20%}#wp-mail-smtp .wp-mail-smtp-admin-columns .wp-mail-smtp-admin-column-33{width:33.33333%}#wp-mail-smtp .wp-mail-smtp-admin-columns .wp-mail-smtp-admin-column-40{width:40%}#wp-mail-smtp .wp-mail-smtp-admin-columns .wp-mail-smtp-admin-column-50{width:50%}#wp-mail-smtp .wp-mail-smtp-admin-columns .wp-mail-smtp-admin-column-60{width:60%}#wp-mail-smtp .wp-mail-smtp-admin-columns .wp-mail-smtp-admin-column-80{width:80%}#wp-mail-smtp .wp-mail-smtp-admin-columns .wp-mail-smtp-admin-column-last{float:right !important}#wp-mail-smtp .wp-mail-smtp-admin-columns:after{content:"";display:table;clear:both}#wp-mail-smtp .wp-mail-smtp-page-upsell{display:flex;align-items:center;justify-content:center;height:auto;flex-direction:column}#wp-mail-smtp .wp-mail-smtp-page-upsell>*{width:800px}#wp-mail-smtp .wp-mail-smtp-page-upsell *,#wp-mail-smtp .wp-mail-smtp-page-upsell *::before,#wp-mail-smtp .wp-mail-smtp-page-upsell *::after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#wp-mail-smtp .wp-mail-smtp-page-upsell h2{font-size:24px;color:#444444;text-align:center}#wp-mail-smtp .wp-mail-smtp-page-upsell h3{font-size:16px;font-weight:normal;color:#72777C;line-height:1.5em;margin-top:0;margin-bottom:6px;text-align:center}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features{margin-bottom:40px;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:stretch;align-content:flex-start}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature{display:flex;flex-direction:row;width:360px;align-items:flex-start;align-content:flex-start;margin-right:60px;margin-top:40px}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature:nth-of-type(1){margin-top:20px}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature:nth-of-type(2){margin-top:20px}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature:nth-of-type(even){margin-right:0}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature .wp-mail-smtp-page-upsell-feature-image{display:flex;align-items:center}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature .wp-mail-smtp-page-upsell-feature-image svg{height:64px;width:64px}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature .wp-mail-smtp-page-upsell-feature-image .st0{fill:#C3D0D7}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature .wp-mail-smtp-page-upsell-feature-image .st1{fill:#809DB0}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature .wp-mail-smtp-page-upsell-feature-content{margin-left:20px}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature .wp-mail-smtp-page-upsell-feature-content h4{font-size:15px;margin:0 0 0.5em}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature .wp-mail-smtp-page-upsell-feature-content p{color:#72777C;margin:0}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-images{margin-top:20px;margin-bottom:30px;text-align:center}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-images img{width:380px;height:auto;margin-right:30px;border:5px solid #fff;border-radius:5px;box-shadow:0 5px 15px rgba(0,0,0,0.1);float:left}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-images img:last-child{margin-right:0}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-button{text-align:center}.wp-mail-smtp-btn{border:0;border-radius:3px;cursor:pointer;display:inline-block;margin:0;text-decoration:none;text-align:center;vertical-align:middle;white-space:nowrap;text-shadow:none;box-shadow:none;outline:none}.wp-mail-smtp-btn .dashicons{font-size:16px;width:16px;height:16px}.wp-mail-smtp-btn:disabled{opacity:0.5;cursor:not-allowed}.wp-mail-smtp-btn.wp-mail-smtp-btn-md{font-size:13px;font-weight:600;padding:8px 12px;min-height:35px}.wp-mail-smtp-btn.wp-mail-smtp-btn-lg{font-size:16px;font-weight:600;padding:16px 28px}.wp-mail-smtp-btn.wp-mail-smtp-btn-orange{background-color:#FF982D;border-color:#FF982D;color:#fff}.wp-mail-smtp-btn.wp-mail-smtp-btn-orange:hover,.wp-mail-smtp-btn.wp-mail-smtp-btn-orange:active,.wp-mail-smtp-btn.wp-mail-smtp-btn-orange:focus{background-color:#f97f00;border-color:#f97f00}.wp-mail-smtp-btn.wp-mail-smtp-btn-red{background-color:#DC3232;border-color:#DC3232;color:#fff}.wp-mail-smtp-btn.wp-mail-smtp-btn-red:hover,.wp-mail-smtp-btn.wp-mail-smtp-btn-red:active,.wp-mail-smtp-btn.wp-mail-smtp-btn-red:focus{background-color:darkred;border-color:darkred}.wp-mail-smtp-btn.wp-mail-smtp-btn-grey{background-color:#f5f5f5;border:1px solid #ccc;color:#666}.wp-mail-smtp-btn.wp-mail-smtp-btn-grey:hover,.wp-mail-smtp-btn.wp-mail-smtp-btn-grey:active,.wp-mail-smtp-btn.wp-mail-smtp-btn-grey:focus{background-color:#d7d7d7;border-color:#ccc;color:#444}.wp-mail-smtp-btn.wp-mail-smtp-btn-light-grey{background-color:#f5f5f5;border:1px solid #ccc;color:#666}.wp-mail-smtp-btn.wp-mail-smtp-btn-light-grey:hover,.wp-mail-smtp-btn.wp-mail-smtp-btn-light-grey:active,.wp-mail-smtp-btn.wp-mail-smtp-btn-light-grey:focus{background-color:#eee;color:#444}.wp-mail-smtp-btn.wp-mail-smtp-btn-blueish{background-color:#738e9e;border:1px solid #738e9e;color:#fff}.wp-mail-smtp-btn.wp-mail-smtp-btn-blueish:hover,.wp-mail-smtp-btn.wp-mail-smtp-btn-blueish:active,.wp-mail-smtp-btn.wp-mail-smtp-btn-blueish:focus{background-color:#395360;border-color:#395360;color:#fff} - -/*# sourceMappingURL=smtp-admin.min.css.map */ +#wpcontent{padding-left:0 !important;position:relative}@media (max-width: 600px){#wpcontent{padding-top:46px}}@media (max-width: 600px){#wpbody{padding-top:0}}@-webkit-keyframes wp-mail-smtp-fade-in-stop-out{0%,100%{opacity:0}35%{opacity:1}65%{opacity:1}}@keyframes wp-mail-smtp-fade-in-stop-out{0%,100%{opacity:0}35%{opacity:1}65%{opacity:1}}body.toplevel_page_wp-mail-smtp div.jconfirm *,body.toplevel_page_wp-mail-smtp div.jconfirm *::before,body.toplevel_page_wp-mail-smtp div.jconfirm *::after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box-container div.jconfirm-box{border-radius:0;box-shadow:0 2px 6px rgba(0,0,0,0.2)}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box-container div.jconfirm-box div.jconfirm-closeIcon{color:rgba(0,0,0,0.4);top:8px;right:8px}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box-container div.jconfirm-box div.jconfirm-closeIcon:hover{color:rgba(0,0,0,0.8)}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-title-c{margin:0 0 26px 0 !important;padding:0 !important}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-title-c .jconfirm-icon-c{margin:0 !important;color:#c4c4c4 !important;-webkit-transition:none !important;transition:none !important;-webkit-transform:none !important;-ms-transform:none !important;transform:none !important;font-size:45px !important}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-title-c .jconfirm-icon-c i:empty{display:none}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-title-c .jconfirm-icon-c svg{height:35px}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-title-c .jconfirm-title{display:block;color:#444}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-title-c .jconfirm-icon-c+span.jconfirm-title{margin-top:20px !important}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content-pane{margin-bottom:0;display:block}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content-pane .jconfirm-content{overflow:inherit}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content{font-size:16px;color:#777;line-height:1.4}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content.lite-upgrade p{font-size:18px;padding:0 20px}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content p{margin:0 0 20px;font-size:16px;line-height:1.5}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content p:last-of-type{margin:0}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content p.large{font-size:18px}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content p.small{font-size:14px}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content .already-purchased{font-size:12px;color:#ccc;text-decoration:none}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content .already-purchased:hover{text-decoration:underline}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content .wp-mail-smtp-btn{font-weight:bold;text-transform:uppercase;-webkit-transition:background .1s;transition:background .1s;padding:10px 20px;outline:none;display:inline-block;font-size:14px;line-height:1.42857143;text-align:center;white-space:nowrap;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-radius:4px;min-height:1em;-webkit-tap-highlight-color:transparent;border:0;background-image:none}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content .wp-mail-smtp-btn.with-loader{padding:12px 12px 7px}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content .wp-mail-smtp-providers-amazonses-txt-record{display:flex;justify-content:space-evenly;align-items:center}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content .wp-mail-smtp-providers-amazonses-txt-record-label{color:#444}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content .wp-mail-smtp-providers-amazonses-txt-record input[type="text"]{display:inline-block;width:340px;color:#777;background-color:#f8f8f8;border:1px solid #ddd;border-radius:3px;margin:0;padding:10px 0 10px 12px;font-size:16px;line-height:18px}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content .wp-mail-smtp-providers-amazonses-txt-record input[type="text"][readonly]{background-color:#f9f9f9}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content .wp-mail-smtp-providers-amazonses-txt-record input[type="text"]:focus{border-color:#bbb}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content .wp-mail-smtp-providers-amazonses-txt-record input[type="text"]:disabled{opacity:0.6}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content .wp-mail-smtp-providers-amazonses-txt-record button{padding:9px 11px;background-color:#fff;border:1px solid #ddd;border-radius:3px;cursor:pointer;outline:none}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content .wp-mail-smtp-providers-amazonses-txt-record button:hover{background-color:#ddd}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content .wp-mail-smtp-providers-amazonses-txt-record button:active{background-color:#aaa;border-color:#aaa}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-content .wp-mail-smtp-providers-amazonses-txt-record .dashicons-yes-alt{color:#46b450}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-buttons .already-purchased{display:block;font-size:12px;color:#aaa;text-decoration:none;padding-top:20px}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-buttons .already-purchased:hover{color:#999;text-decoration:underline}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box div.jconfirm-buttons .btn-hide{display:none}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box .discount-note{text-align:center;margin:30px 0 0}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box .discount-note p{background-color:#faffac;margin:0 -30px;padding:24px 60px 20px;font-size:15px;color:#4d4d4d;position:relative}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box .discount-note p:after{content:url(../images/font-awesome/check-circle-solid-green.svg);width:40px;height:40px;background-color:#fff;border-radius:50%;padding:5px 6px;position:absolute;top:-20px;right:50%;margin-right:-18px}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box .discount-note span{font-weight:700;color:#3abc01}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box .discount-note a{color:#aaa;display:block;margin-top:12px}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box input[type=text]{display:block;width:99%;border:1px solid #d6d6d6;padding:10px;box-shadow:none;margin:20px auto 0 auto}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box button.btn-confirm{background-color:#FF982D;color:#fff;outline:none}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box button.btn-confirm:hover{background-color:#f97f00;border-color:#f97f00}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box button,body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box button.btn-default{color:#666}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box button.wp-mail-smtp-btn-orange{color:#fff}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box button.btn-block{display:block;text-align:center;width:100%;margin:0 0 10px 0 !important}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box button.btn-normal-case{text-transform:none !important}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box .error{display:none;color:red}body.toplevel_page_wp-mail-smtp div.jconfirm div.jconfirm-box .wpforms-error{border:1px solid #ebccd1 !important}@media screen and (max-width: 1023px){#wp-mail-smtp-notice-bar{display:none !important}}#wp-mail-smtp-notice-bar{max-height:35px;position:relative;margin-bottom:-3px;transition:all .3s ease-out;overflow:hidden}#wp-mail-smtp-notice-bar.out{max-height:3px}#wp-mail-smtp-notice-bar .wp-amil-smtp-notice-bar-container{background-color:#DDDDDD;border-top:3px solid #FF982D;color:#777777;text-align:center;padding:7px}#wp-mail-smtp-notice-bar a{color:#FF982D}#wp-mail-smtp-notice-bar a:hover{color:#f97f00}#wp-mail-smtp-notice-bar .dismiss{position:absolute;top:0;right:0;border:none;padding:5px;margin-top:4px;background:0 0;color:#72777c;cursor:pointer}#wp-mail-smtp-notice-bar .dismiss:before{background:0 0;color:#72777c;content:"\f335";display:block;font:normal 20px/20px dashicons;speak:none;height:20px;text-align:center;width:20px;-webkit-font-smoothing:antialiased}#screen-meta-links .screen-meta-toggle{position:absolute;right:20px;top:auto}#screen-meta-links,#screen-meta{display:none}#wp-mail-smtp-header-temp{position:absolute;margin:0;top:-1px;left:20px;right:20px;z-index:99}#wp-mail-smtp-header{border-top:3px solid #FF982D;padding:20px}#wp-mail-smtp-header img{display:block;margin:0;max-width:242px}@media (max-width: 782px){#wp-mail-smtp-header img{max-width:200px}}#wp-mail-smtp{margin:0}#wp-mail-smtp .wp-mail-smtp-hide{display:none}#wp-mail-smtp .wp-mail-smtp-page-title{height:58px;background-color:#fff;font-size:14px;margin:0 0 20px 0;padding:0 20px}#wp-mail-smtp .wp-mail-smtp-page-title a.tab{border-bottom:2px solid #fff;box-shadow:none;color:#666;display:inline-block;margin-right:30px;padding:20px 0 18px 0;text-decoration:none}#wp-mail-smtp .wp-mail-smtp-page-title a.tab.active{border-bottom:2px solid #FF982D}#wp-mail-smtp .wp-mail-smtp-page-title a.tab:hover{border-color:#999}#wp-mail-smtp .wp-mail-smtp-page-title a.action{padding:5px;border:0;min-height:auto;color:#fff;margin:-10px 0 0 20px}#wp-mail-smtp .wp-mail-smtp-page-title .page-title{background-color:#fff;display:inline-block;font-size:23px;margin:0;padding:20px 20px 20px 0}#wp-mail-smtp .wp-mail-smtp-page-content{padding:0 20px}#wp-mail-smtp .wp-mail-smtp-page-content *,#wp-mail-smtp .wp-mail-smtp-page-content *::before,#wp-mail-smtp .wp-mail-smtp-page-content *::after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-clear:before{content:" ";display:table}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-clear:after{clear:both;content:" ";display:table}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row{border-bottom:1px solid #e4e4e4;padding:30px 0;font-size:14px;line-height:1.3}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row:first-of-type{padding-top:10px !important}@media (max-width: 781px){#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row{padding:20px 0}}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.inactive{display:none}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row .wp-mail-smtp-setting-mid-row-sep{background:#e4e4e4;height:1px;border:0;margin:15px 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.section-heading{padding:20px 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.section-heading.no-desc h2,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.section-heading.no-desc h4{margin:0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.section-heading .wp-mail-smtp-setting-field{margin:0;max-width:1005px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox input[type=checkbox]{float:left;margin:1px 0 0 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox input[type=checkbox]+label{margin:0 0 0 8px;vertical-align:baseline}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox .desc{margin:0 0 0 30px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox input[type=checkbox]+label+.desc{margin:8px 0 0 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-text .wp-mail-smtp-setting-label,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-password .wp-mail-smtp-setting-label,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-number .wp-mail-smtp-setting-label,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-email .wp-mail-smtp-setting-label{padding-top:8px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-select .wp-mail-smtp-setting-label{padding-top:8px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-radio .wp-mail-smtp-setting-field input[type=radio]{margin:-3px 10px 0 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-radio .wp-mail-smtp-setting-field label{margin-right:30px;display:inline-block}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field label{vertical-align:middle;display:inline-block}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]{position:absolute;top:auto;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;white-space:nowrap}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:checked+.wp-mail-smtp-setting-toggle-switch{background-color:#46B450}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:checked+.wp-mail-smtp-setting-toggle-switch:before{-webkit-transform:translateX(16px);-ms-transform:translateX(16px);transform:translateX(16px)}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:disabled:checked:hover+.wp-mail-smtp-setting-toggle-switch,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:disabled:not(:checked):hover+.wp-mail-smtp-setting-toggle-switch{box-shadow:none}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:disabled:not(:checked):hover+.wp-mail-smtp-setting-toggle-switch{background-color:#ddd}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:disabled+.wp-mail-smtp-setting-toggle-switch{background-color:#ddd;cursor:default}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:disabled:checked+.wp-mail-smtp-setting-toggle-switch{background-color:#a0daa5;cursor:default}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:checked+.wp-mail-smtp-setting-toggle-switch+.wp-mail-smtp-setting-toggle-checked-label{display:inline-block}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:checked+.wp-mail-smtp-setting-toggle-switch+.wp-mail-smtp-setting-toggle-checked-label+.wp-mail-smtp-setting-toggle-unchecked-label{display:none}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:disabled+.wp-mail-smtp-setting-toggle-switch+.wp-mail-smtp-setting-toggle-checked-label,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:disabled+.wp-mail-smtp-setting-toggle-switch+.wp-mail-smtp-setting-toggle-unchecked-label{color:#aaaaaa}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:checked:hover+.wp-mail-smtp-setting-toggle-switch,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:checked:focus+.wp-mail-smtp-setting-toggle-switch{box-shadow:0 0 0 1px #fff, 0 0 0 3px #46B450}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:not(:checked):hover+.wp-mail-smtp-setting-toggle-switch,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field input[type=checkbox]:not(:checked):focus+.wp-mail-smtp-setting-toggle-switch{background-color:#999;box-shadow:0 0 0 1px #fff, 0 0 0 3px #999}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field .wp-mail-smtp-setting-toggle-unchecked-label,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field .wp-mail-smtp-setting-toggle-checked-label{text-transform:uppercase;font-weight:400;color:#777;font-size:13px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field .wp-mail-smtp-setting-toggle-checked-label{display:none}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field .wp-mail-smtp-setting-toggle-switch{position:relative;cursor:pointer;background-color:#ccc;border-radius:15px;-webkit-transition:all 0.2s ease-in-out;-moz-transition:all 0.2s ease-in-out;-ms-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out;vertical-align:middle;display:inline-block;margin:0 5px 0 0;width:36px;height:20px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-checkbox-toggle .wp-mail-smtp-setting-field .wp-mail-smtp-setting-toggle-switch:before{position:absolute;content:"";height:16px;width:16px;left:2px;top:2px;background-color:#fff;border-radius:50%;-webkit-transition:all 0.2s ease-in-out;-moz-transition:all 0.2s ease-in-out;-ms-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer{padding-bottom:20px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer .wp-mail-smtp-mailers .wp-mail-smtp-mailer{display:inline-block;width:140px;margin-right:12px;margin-bottom:12px;position:relative}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer .wp-mail-smtp-mailers .wp-mail-smtp-mailer .wp-mail-smtp-mailer-image{background:#fff;text-align:center;border:2px solid #E5E5E5;border-radius:4px;cursor:pointer;height:76px;position:relative;margin-bottom:10px;-webkit-transition:all 0.2s ease-in-out;-moz-transition:all 0.2s ease-in-out;-ms-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer .wp-mail-smtp-mailers .wp-mail-smtp-mailer .wp-mail-smtp-mailer-image.is-recommended{background-image:url(../images/recommended.svg);background-repeat:no-repeat;background-size:60%;background-position:top right -2px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer .wp-mail-smtp-mailers .wp-mail-smtp-mailer .wp-mail-smtp-mailer-image img{max-width:90%;max-height:40px;display:block;position:relative;top:50%;left:50%;transform:translate(-50%, -50%);opacity:0.6;-webkit-transition:all 0.2s ease-in-out;-moz-transition:all 0.2s ease-in-out;-ms-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer .wp-mail-smtp-mailers .wp-mail-smtp-mailer.wp-mail-smtp-mailer-smtp .wp-mail-smtp-mailer-image img{max-height:30px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer .wp-mail-smtp-mailers .wp-mail-smtp-mailer.active .wp-mail-smtp-mailer-image{border-color:#FF982D}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer .wp-mail-smtp-mailers .wp-mail-smtp-mailer.active .wp-mail-smtp-mailer-image img{opacity:1}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer .wp-mail-smtp-mailers .wp-mail-smtp-mailer:hover .wp-mail-smtp-mailer-image{border-color:#ccc}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row.wp-mail-smtp-setting-row-mailer .wp-mail-smtp-mailers .wp-mail-smtp-mailer:hover .wp-mail-smtp-mailer-image img{opacity:1}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row h2,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row h4{color:#444;font-size:20px;font-weight:700;margin:0 0 6px 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row h2{margin-bottom:15px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row h3{color:#444;font-size:24px;font-weight:600;margin:0 0 20px 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row p{margin:12px 0 0;font-size:14px;line-height:1.5em}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row p:first-of-type{margin:8px 0 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row p.desc{font-style:italic;color:#777}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row p.buttonned{margin-top:30px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row p.inline-notice{margin:5px 0 15px;box-sizing:border-box;background:#fff;border-left:4px solid transparent;box-shadow:0 1px 1px 0 rgba(0,0,0,0.1)}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row p.inline-notice.inline-error{border-color:#dc3232;margin-bottom:5px;padding:10px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row p.inline-notice.inline-edu-notice{border-color:#809EB0;line-height:1.5em;padding:10px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row p.inline-notice a.wp-mail-smtp-mailer-notice-dismiss{float:right;color:#999DA1;margin:0 0 10px 10px;text-decoration:none}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row p.inline-notice a.wp-mail-smtp-mailer-notice-dismiss:hover{color:#666a6e}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row ul{margin:8px 0 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row ul.list li{margin-left:20px;list-style-type:disc}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list th{padding:5px 5px 5px 0;text-align:left}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td.email{padding-right:2em}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td.status{width:100px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td.actions a{border-bottom:1px solid;display:inline-block;margin-right:5px;text-decoration:none}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td.actions a[class*=delete],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td.actions a[class*=error]{color:#a00}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td.actions a[class*=delete]:hover,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td.actions a[class*=delete]:active,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td.actions a[class*=delete]:focus,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td.actions a[class*=error]:hover,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td.actions a[class*=error]:active,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row table.actions-list td.actions a[class*=error]:focus{color:#440000}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=text],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=email],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=number],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=password],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row select{background-color:#fff;border:1px solid #ddd;border-radius:4px;box-shadow:none;color:#333;display:inline-block;vertical-align:middle;padding:7px 12px;margin:0 10px 0 0;width:400px;min-height:35px;line-height:1.3}@media (max-width: 959px){#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=text],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=email],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=number],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=password],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row select{width:300px}}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=text][readonly],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=email][readonly],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=number][readonly],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=password][readonly],#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row select[readonly]{background-color:#f9f9f9}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=text].small-text,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=email].small-text,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=number].small-text,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=password].small-text,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row select.small-text{width:75px}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=text]:focus,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=email]:focus,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=number]:focus,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=password]:focus,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row select:focus{border:1px solid #016AAB;box-shadow:0 0 0 1px #016AAB;outline:none}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=text]:disabled,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=email]:disabled,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=number]:disabled,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=password]:disabled,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row select:disabled{opacity:0.6}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=checkbox]:focus,#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row input[type=radio]:focus{border:1px solid #016AAB;box-shadow:0 0 0 1px #016AAB;outline:none}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row .dashicons-yes-alt.wp-mail-smtp-animate{-webkit-animation:wp-mail-smtp-fade-in-stop-out 1s linear;animation:wp-mail-smtp-fade-in-stop-out 1s linear}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-row .dashicons-yes-alt.wp-mail-smtp-success{color:#46b450}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-label{display:block;float:left;width:205px;padding:0 20px 0 0}@media (max-width: 781px){#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-label{float:none;width:100%;padding-bottom:15px}}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-label label{display:block;font-weight:600}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-field{display:block;margin:0 0 0 205px;max-width:800px}@media (max-width: 781px){#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-setting-field{margin:0}}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-submit{margin:0;padding:25px 0}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-submit .help-text{margin-left:10px;vertical-align:middle}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-mailer-options .wp-mail-smtp-mailer-option .wp-mail-smtp-setting-row.section-heading{padding:20px 0 !important}#wp-mail-smtp .wp-mail-smtp-page-content .wp-mail-smtp-mailer-options .wp-mail-smtp-mailer-option blockquote{background:#E5E5E5;border-radius:4px;color:#666;font-size:14px;margin:20px 0;padding:15px;width:1005px}#wp-mail-smtp .wp-mail-smtp-page-content.wp-mail-smtp-page-general p{margin:0}#wp-mail-smtp .wp-mail-smtp-page-content .notice-inline{background:#fff;border-left:4px solid #fff;box-shadow:0 1px 1px 0 rgba(0,0,0,0.1);margin:5px 0 15px;padding:1px 12px}#wp-mail-smtp .wp-mail-smtp-page-content .notice-inline.notice-success{border-left-color:#46b450}#wp-mail-smtp .wp-mail-smtp-page-content .notice-inline.notice-warning{border-left-color:#ffb900}#wp-mail-smtp .wp-mail-smtp-page-content .notice-inline.notice-error{border-left-color:#dc3232}#wp-mail-smtp .wp-mail-smtp-page-content .notice-inline.notice-info{border-left-color:#00a0d2}#wp-mail-smtp .wp-mail-smtp-page-content .notice p,#wp-mail-smtp .wp-mail-smtp-page-content .notice-inline p{margin:0.5em 0;padding:2px}#wp-mail-smtp .wp-mail-smtp-page-content pre{white-space:pre-line}#wp-mail-smtp .wp-mail-smtp-page-content.active{display:block}#wp-mail-smtp .wp-mail-smtp-page-content .connected-as{margin-left:30px}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug{background-color:#fff;padding:25px 20px 1px 25px}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug h2{color:#444;margin:1.4em 0 0.8em;font-size:16px;font-weight:700}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug p{font-size:14px;color:#555;margin-bottom:1.1em}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug ul,#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug ol{font-size:14px;color:#555;margin:0 0 1.1em 1.8em}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug ul li,#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug ol li{margin:0 0 8px 0;line-height:1.5}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug ul li:last-of-type,#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug ol li:last-of-type{margin:0}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug ul li ul,#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug ol li ul{list-style-type:disc}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug a{color:#FF982D}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug a:hover{color:#f97f00}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug .dashicons-star-filled{color:#FF982D;width:16px;height:16px;font-size:16px;vertical-align:text-top}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug .price-off{color:green;font-weight:bold}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug .error-log-toggle{text-decoration:none;color:#444}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug .error-log-toggle:hover{color:#FF982D}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug .error-log-toggle .dashicons{font-size:15px;height:15px;width:15px;padding-top:3px;border:0;outline:0}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug .error-log{border-left:3px solid #ffb900;padding:0 0 0 20px;margin:0 0 10px 0;font-size:12px;display:none}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug .error-log pre{margin:0}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-debug .error-log-note{display:none}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner{background-color:#fff;padding:25px 20px;border:1px solid #dadada;margin:10px 0 0 0;position:relative}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .wp-mail-smtp-pro-banner-dismiss{position:absolute;right:10px;top:10px}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .wp-mail-smtp-pro-banner-dismiss button{background:none;border:none;color:#A9A9A9;cursor:pointer;margin:0;padding:0}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner h2{color:#444;margin-top:0;font-size:16px;font-weight:700}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner p{font-size:14px;color:#555;margin-bottom:1.1em}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner p:last-of-type{margin:0}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .benefits{margin:0 0 16px 0;overflow:auto;max-width:1000px}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .benefits ul{margin:0;padding:0;width:50%;float:left}@media (max-width: 600px){#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .benefits ul{width:100%;float:none}}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .benefits ul li{margin:0;padding:0 0 2px 16px;color:#555;font-size:14px;position:relative}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .benefits ul li:before{content:'+';position:absolute;top:-1px;left:0}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .benefits ul li.arrow-right:before{content:'→'}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner a{color:#FF982D}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner a:hover,#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner a:active,#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner a:focus{color:#f97f00}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .stars{text-decoration:none}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .stars .dashicons{width:16px;height:16px;font-size:16px;vertical-align:text-top}#wp-mail-smtp .wp-mail-smtp-page-content #wp-mail-smtp-pro-banner .price-off{color:green;font-weight:bold}#wp-mail-smtp .wp-mail-smtp-admin-columns>div[class*="-column-"]{float:left}#wp-mail-smtp .wp-mail-smtp-admin-columns .wp-mail-smtp-admin-column-20{width:20%}#wp-mail-smtp .wp-mail-smtp-admin-columns .wp-mail-smtp-admin-column-33{width:33.33333%}#wp-mail-smtp .wp-mail-smtp-admin-columns .wp-mail-smtp-admin-column-40{width:40%}#wp-mail-smtp .wp-mail-smtp-admin-columns .wp-mail-smtp-admin-column-50{width:50%}#wp-mail-smtp .wp-mail-smtp-admin-columns .wp-mail-smtp-admin-column-60{width:60%}#wp-mail-smtp .wp-mail-smtp-admin-columns .wp-mail-smtp-admin-column-80{width:80%}#wp-mail-smtp .wp-mail-smtp-admin-columns .wp-mail-smtp-admin-column-last{float:right !important}#wp-mail-smtp .wp-mail-smtp-admin-columns:after{content:"";display:table;clear:both}#wp-mail-smtp .wp-mail-smtp-page-upsell{display:flex;align-items:center;justify-content:center;height:auto;flex-direction:column}#wp-mail-smtp .wp-mail-smtp-page-upsell>*{width:800px}#wp-mail-smtp .wp-mail-smtp-page-upsell *,#wp-mail-smtp .wp-mail-smtp-page-upsell *::before,#wp-mail-smtp .wp-mail-smtp-page-upsell *::after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#wp-mail-smtp .wp-mail-smtp-page-upsell h2{font-size:24px;color:#444444;text-align:center}#wp-mail-smtp .wp-mail-smtp-page-upsell h3{font-size:16px;font-weight:normal;color:#72777C;line-height:1.5em;margin-top:0;margin-bottom:6px;text-align:center}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features{margin-bottom:40px;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:stretch;align-content:flex-start}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature{display:flex;flex-direction:row;width:360px;align-items:flex-start;align-content:flex-start;margin-right:60px;margin-top:40px}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature:nth-of-type(1){margin-top:20px}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature:nth-of-type(2){margin-top:20px}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature:nth-of-type(even){margin-right:0}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature .wp-mail-smtp-page-upsell-feature-image{display:flex;align-items:center}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature .wp-mail-smtp-page-upsell-feature-image svg{height:64px;width:64px}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature .wp-mail-smtp-page-upsell-feature-image .st0{fill:#C3D0D7}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature .wp-mail-smtp-page-upsell-feature-image .st1{fill:#809DB0}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature .wp-mail-smtp-page-upsell-feature-content{margin-left:20px}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature .wp-mail-smtp-page-upsell-feature-content h4{font-size:15px;margin:0 0 0.5em}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-content .wp-mail-smtp-page-upsell-features .wp-mail-smtp-page-upsell-feature .wp-mail-smtp-page-upsell-feature-content p{color:#72777C;margin:0}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-images{margin-top:20px;margin-bottom:30px;text-align:center}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-images img{width:380px;height:auto;margin-right:30px;border:5px solid #fff;border-radius:5px;box-shadow:0 5px 15px rgba(0,0,0,0.1);float:left}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-images img:last-child{margin-right:0}#wp-mail-smtp .wp-mail-smtp-page-upsell .wp-mail-smtp-page-upsell-button{text-align:center}.wp-mail-smtp-btn{border:0;border-radius:3px;cursor:pointer;display:inline-block;margin:0;text-decoration:none;text-align:center;vertical-align:middle;white-space:nowrap;text-shadow:none;box-shadow:none;outline:none}.wp-mail-smtp-btn .dashicons{font-size:16px;width:16px;height:16px}.wp-mail-smtp-btn:disabled{opacity:0.5;cursor:not-allowed}.wp-mail-smtp-btn.wp-mail-smtp-btn-md{font-size:13px;font-weight:600;padding:8px 12px;min-height:35px}.wp-mail-smtp-btn.wp-mail-smtp-btn-lg{font-size:16px;font-weight:600;padding:16px 28px}.wp-mail-smtp-btn.wp-mail-smtp-btn-orange{background-color:#FF982D;border-color:#FF982D;color:#fff}.wp-mail-smtp-btn.wp-mail-smtp-btn-orange:hover,.wp-mail-smtp-btn.wp-mail-smtp-btn-orange:active,.wp-mail-smtp-btn.wp-mail-smtp-btn-orange:focus{background-color:#f97f00;border-color:#f97f00}.wp-mail-smtp-btn.wp-mail-smtp-btn-orange:focus{box-shadow:0 0 0 1px #fff, 0 0 0 3px #f97f00}.wp-mail-smtp-btn.wp-mail-smtp-btn-red{background-color:#DC3232;border-color:#DC3232;color:#fff}.wp-mail-smtp-btn.wp-mail-smtp-btn-red:hover,.wp-mail-smtp-btn.wp-mail-smtp-btn-red:active,.wp-mail-smtp-btn.wp-mail-smtp-btn-red:focus{background-color:darkred;border-color:darkred}.wp-mail-smtp-btn.wp-mail-smtp-btn-red:focus{box-shadow:0 0 0 1px #fff, 0 0 0 3px darkred}.wp-mail-smtp-btn.wp-mail-smtp-btn-grey{background-color:#f5f5f5;border:1px solid #ccc;color:#666}.wp-mail-smtp-btn.wp-mail-smtp-btn-grey:hover,.wp-mail-smtp-btn.wp-mail-smtp-btn-grey:active,.wp-mail-smtp-btn.wp-mail-smtp-btn-grey:focus{background-color:#d7d7d7;border-color:#ccc;color:#444}.wp-mail-smtp-btn.wp-mail-smtp-btn-light-grey{background-color:#f5f5f5;border:1px solid #ccc;color:#666}.wp-mail-smtp-btn.wp-mail-smtp-btn-light-grey:hover,.wp-mail-smtp-btn.wp-mail-smtp-btn-light-grey:active,.wp-mail-smtp-btn.wp-mail-smtp-btn-light-grey:focus{background-color:#eee;color:#444}.wp-mail-smtp-btn.wp-mail-smtp-btn-blueish{background-color:#738e9e;border:1px solid #738e9e;color:#fff}.wp-mail-smtp-btn.wp-mail-smtp-btn-blueish:hover,.wp-mail-smtp-btn.wp-mail-smtp-btn-blueish:active,.wp-mail-smtp-btn.wp-mail-smtp-btn-blueish:focus{background-color:#395360;border-color:#395360;color:#fff}.wp-mail-smtp-btn.wp-mail-smtp-btn-blueish:focus{box-shadow:0 0 0 1px #fff, 0 0 0 3px #395360} diff --git a/wp-content/plugins/wp-mail-smtp/assets/images/about/plugin-mi.png b/wp-content/plugins/wp-mail-smtp/assets/images/about/plugin-mi.png index 31ea261d83dba13736a4b29fe65d1ea8cb975e47..b9e4beddbd9127a4e240799110c56c5f3798c621 100644 GIT binary patch literal 7238 zcmV-M9J%9(P)STTo6G7Wf2e%1=$1y6%}zo zzzs!3+`wHF+4p@>6n7Eaa03zd^X|D_x2Wo_>J2c?vp%2SN9nGe>Nq_vhd$w;%8>g8rTXSngZ^E8Pl(Kpqf{Xh+*lL@%%{ z*O4b7*ftk@r)9FXn~8q^uE9QmU*2QvX;|-54m(yHxC)&U+ z8n(6Exey}fmx8}l7PyW&#oAu=E`jdBfP~oP!Fum93L6y{Rteq~>B3$fN%X!JZGKF2 zjD2pw#B_-8D1o&L%ILqomYLu;JxkcTKY3SRN8^`vACn4eyvit$`0#2Tc>MBeSZtFm z1RjrGg_`z$OO(U*N0Y(YMXhuzqOkpEWKpxi?dSY1fc`D#>JgwhJdkZmt9aN{1pZRT zJR$JyQazmO(OGQ2KFrD zo%4mj!zFy^BkcX4nYk*UQK574dDsEgqC2Li7Uw(TZG>$~^qR;^!+!gyO*Ky!0ofEJ z4I33UN7Tb-3ffwwu17Nk+2-)DQSNPnaG;v={E#S?+wX608|)w@8~d@uKEGrp1l=(q zkZAu3S=eaL1KWD!Q*MAAE40yapi$_F2x0q9;|IzLHNjA};QLH^+hC_C1rOyIAu8=N zkiEastylzPoxmfJ()MLlFn|1M*7jMV`}qI)nG%I|ZwhE}FW*kqLXcpdC~0 z+&&^&%K7)yYw;Y%U)QYHU^f1$GBAC7b@m@%pUyP+af~}%;w-qwXjjk zoZ1FVxdBnA;90pUuu&duApMEViLS7AG0<8*w+I4e@OQwSw+Z$S>_oArZC_qRdufP$ zu5w=Dxw^q@gKxP;*x2?w;-6!$TkEABG@2K`>6wzSecD_=VImCtEVCfevy{Lt6pj<{ zCepy#!X7Ae=Y*a`Ea~M+rUjPR=gR^@n3{mE@hXNehXRegI(%-SBxt2*lFDmh8r@&$ z!6?E0!&?cP_NQ&>Qbn(gTBP3o#)VZu4DqekE|l-x(E-KaJv9ZKh93dP zVMoE)^f=K8a56ncUONh&6H{P?tMpwGXp=1o83)W&^W;64)t;nRPZ#%oqNcY2@~?@^ zh}H|Ucg8&LROL4aS9VXkQFXPR3%g$wUrBT{;u?WT`LeJ2ito zX^9Oer!HS?V4F>i_AA#K^g5qHupYD8kR-92GgkI5^v`*^1=nwm+|!7>-RYiGeWVFy|2kO$HJWi*VIv&jfr zTMuK)l5(&!*-JsA?2Hdki1ve%!De70|GMqqJ>W1R3EajV2KNa^socg9;AV%w(ew!T zS*6RuM0<@cAKG)F-Nw6tc`oSk$=P&-k8Lav_xMjb3--6{AoxT@o8F2xStVC3p+#0H zJW!!#8YP0K`7z=lWWj2WV!eBAkWwUxy_n@xa8N|R+L|4V6F3gfI@65&g~8q&T%nUK z*3_$K7$%4y&l<89{H@bqjgEF#PEwx9N;my3UXU#x8P|6v><<}ij11L<)YzM){AI~} zwR5Hjw3o#Rod-8fLZ4X~_G*t3z1j+Fa|ug3+ar012f~O@%1)zy&3hvYwX@d?ryiq_ ztp_GRuw7P%Lgwu)@ifq0GtglU`Fgh{a0yd78+I)oXzhX$afC;DvQ&VAit$$u++|EM z1-)cWPN#t82T5|bpnIoHk5-o>_nE@aLD|{auybj4Z(fm7?xS4o$z!jVgY7sn2?A$I zr(L7`Dj;RwHK?v=gv(bR!R5LpsJ;FODlXoG-11wHo?8#cj$DJ?n`$9Cu(I731P4my z0xolsPId{rk%-QQokWvK&iUeCM8lVmGbd=*18mY%_D_zx1UKp*!^>B%L2i5T>J>D$ zJcaXjA3@cv2UMAb4Uo9CmIPGgdckIS5tbR0+DGtE!Mn3z$I!6cK34=xU)Y$i67IJ* zx)$!TvOYlGeGqOa`SYAU; za#_IG04~}j_Wn%eJ$U^Z^xmGncq!`TsEqsuhzZicym*z7yS9)Hpcn{A?IW1zGp4g) zyW)WsPD)qXLq&F1O$KlSc`t_8+D09Fv)uNam=wbFs}8PI@kkJ+x~DH&LaU*<GY@qvQ?_U}3yHlH8azO1TU zVR}QuW9Y2yH8K7*cOI$$FTU8Q(M4SBd<14&M!I`kVf26`Kgq#9r}9*hP} zhmpqaugTv|M1OxH`4MfCQBo?%ya}DX-E4lM0vnZ<`8*Td|mvEw= zcW8b@n2f@Sku(nypuV^7j5yP=y_&dsPjgG4dE;(qTDb|DBDTQeoyqXx{1y84IVCrc z=|pigm<+e1fcgwHqdhgZ_BwqJKXbF`2{b=@PV@rql7Q*@!xp%BuZa(wu0D8711WqB z|4u1612Y`v3wwDg(Qi8}Kf;nx=yhm2XD=_UzGE2Qy$272)euO2X(A`_Nuq~~sE|1-Cv;7`O%kIPKAq#Y8tQ|Bs`9n>4ErpSD{wi;4O~+co zNzx-JJkpa9GJ>mZd?X8*>F(pFDk+0o%?fvO`{7jRZ_IlzM~FUXcYZ{ejKbcGzO^QI zu=Ux?cJ}D|@T{T+n%2i_2Yd7^xHHNYZksznO>Q|@J1TB<zM$xa1USo;cvX?aq$~lTq4eSL7KI-F2M3Zatj~bu-+-+h_!seE%c# zHuw(u5}Ezb2iBNQfJQ413YsZylofBI6OLz4Xw+kGyAc-`Cr_gw--7xiIKBs7qVS3$-K3u|Wv zJVjsF=2FQhO***q0v&ida!W}`k%j&F=buCWe|-t(3GnqpCv)b*9P%&J(E$y6G}>NW zL8CC2j$3o=E)i&^mSgF3z&(&rAoNgr=>xkzT|pp`j8dmVi5KCesC z%(?IbqEEOa>;h+Rh>nh?+PG~egZ-H3BYhT*QrO#cNJb@XQ@CIEo;>X^*t2HMQUU$d zS6}gRXrpP6p&uD=_Ii+T_?PHxx5ZkJzI zM04nBX}jUA`e{rB&os~$x zYAX!g*>>g16>2I93JL&Tyikn`$g%J`Q~T|fJrhmC1cbjQ&BWXE5Bp$NKXhr_2CAygAfc0ggn9ksCUaG`n~ zxj5LXb8>Rjo8#$&M@#)<1!;h&kIJZL7n@&jsNvsmHa!GjPR8w)Kh>fKrN zem3k%(jGPeYmIO{$DgLtxNt2a{vAHIK;yc_NOD1fZFA_F#6S{tMlC6WwEPdeecjb;$Xhvm`R`P8c>(73eY8BR`NWh+8v<#B5o^VGt|Qbe(V zm=P?7usON(uHe_-IOj@2XTrQPx>x0S{0ycDIN00Of&K+iwToHX zN-$K|oP4hIM3&A^YNC8f_!YLe{(SeY^V<2hM>AD?+Ilk^h&MC?2ZKH^_G<%}L;!pK zdjK3Y9?$RNWUTOUeL^E?JM00#;cJ)R?-@%}U=KeOPJ3-!{0=ygQvhXkw-qj5X(}|w zJHz7*li^H+HJmz{%!loA8{P%@*~vC@8Ej8=umh-V_9zlfp2XF#+U7^%W#)~nbSt2+ zv7Lk++5x|~`zW6_)mH06fm+k@PIsyfuzO zkKMQt3KLcVEbSvw>$>q!Q-6#0bh)?z(-ZmRt`s~_=qm^MZ@4TCSLR|^PAB28$trG& z$tv?krM7E2!v^0{m^b=D*J__@A zRTXT%Tm=V-`zJh3Wy3v4E2)58Bm%q_K0*aH>PF@+x-Z&gd`$LQ$;ZaKXkGk%cKk-! z2MMff8+))TeEfxjq(1o(Ip7F8aCQ!Xpj}{5edQ)x-k1nCt=wfH*E{*c#r-GgW3dUA zbLbad5UfbA9wj{&K_5Pyq1EwTt}v2>edowZ(SDdsWNG9^F0Vb2J2p|I9O(bSb&dg6 zS+cWLnF)x~us~_!;&M7Ls+)$k!nJ_5bu{IwZV?^np*5xF;KISva4G&ET-tRQYL92Z z*&1;>K|zY30v}f$%`SxKm>AfRxQF&$ZI08j*+vp}UG9F>j=(*m#NLiiYy?l;yQ#I+ z%F`9r3D%usT@Ktw(@I`k?uPr-lr+MN=dYmY!816v{i5oMv8frbCb(4ZFj`8O9>9t6 zkzU0xWT@h4`h4FI*hr$jqDysJw{xj78(uFTAOejSpt|9%>}QI|-6xn^vQ6De-ueaR zX{w%tV9gA3<221537(~Z9k;BCw`UQ=_r@MCauWkco8*`*f6`u^&bk4yA#J8_f&DJt zcCU-ut#f-9&XvQxq+ocIFdrIDZ-MIi+iLg6`6Pv%{0J~O3&i!8~n@RaMBehz1*lXkjjSpbb8q~nJL24 zCi?N_B=KZ+hu%d(EscufFYFYP2%OaPwH)lVG<_;DmoFxuLS@xdq-U|lK`>~hVmTYm z=-;}uQuJgV$Ab9qD$Y!m5VKT4ryAo@jh!3L!SQ3)Ag}T^o%SnvyVl;Ny?Eb_iy9|Q zM$9jSkt6IW1VfW?bUImwgI>Rt2W>kon3ZtC8d{%9!M=oboFsdxU|l*^oJ4>tTnaV9 z#$L?K4koeIEGU)??a`F5ffRG)!aIr1xC*L-O<~orWjPsmmsHV0GP+LtUE!V$rlvC~ z4D^3-Vhy^2?S))?^(M^o4dX#uONn! z$j(oECp~ul1jV3=OC`b_^0b->iXr)_i+*Rv{F0+XAl=W=btoRu;qrl*?4YsT3{tp&`2tQyLI1PJv)H9IrSQxsC8B zq=g4Cj}q-y3ajQ7%DRf$ESS=2$p-OItSy${0LDL~oaN#J@rP4Mh<;Zi;DSpxAZlk4 zo$<;b8yb&?MXqs@9fn)@R4jzOTHUinA#AMcp(yp4rmE<4ReD4L+&9Hz7P|#oZ902D1*3qgyLQ^<%&|WeImGB8X!Lq*Y z2>Unq2Le&`B&7XU=FVw)%8t<@E2Zp5z^^C%G}zD!M7l z(P{;SJ*<}(Ev1CT!LUaws{ibvl_rAi(^WF1ILV2xsVY_8Vx3II1y&ewgI}3ONZ9+a z+B?F=1Q&W7Z=)GeUWSJ~Tb@L{ zBGK2z1x*-rq9>zk)w8z+HkQ7?fgcx_V)0wdY$_M(jr1&mklESbJ3SR93=9R6UT!e5 zw;xO&utNoQuzi*?D=g^#5yJkvToz9`lH+~twyPy6oP4u18?;$L4guPX0pRsV5^}s~v{ryB3-pd;%_lqTe@230A z8Fqlypju7rH8=eug?S>M$qjb&NevkkgjqjPjp}Kc^vS!RdOQ3F>lIfF9m_nIVQ*Y0 z=-mM}={#)w*V<4~9`D;V`0X?oz#Bg`&eBQ3yKM<(Hm3P<5k&lL9QcHhoG|OB2{w14%jkn)i*&Vx zXf+8zac$2~e!zjy+S9gITO?~KlLh@R4EBVzzvqrVB(lxJdU?XQKFg_BGJD7&m}Pu` znilr{oS}!WV&~%^g&VKBy?x4lAve* zk*F0-%rfT!noGe-kXWq-ixJWq)i&8w7|NpLii_(58!O?^cC8i1z@CZ6#AD+*;JM&A zVSSMW3K#aG+>Z}ou|)Q}4tRGUi@Bo?a%J%nY4kYsM-N%Ag!FDJQG?{gPi7hKr(X)| z?4j(*mD1Jbk=rPmJ3(LN-=opDY`#9Q5vI1s6@=2G)lBQapw9<85StygXlgnvo|z4X z{Vk{)X!L^v@k-*AVZS8$qcZIG3E+A(>TJgu0}|>OL|dbM)K1|AA-BsbG75*2@U#S- zc)Wd_XvyW{=+H-UCwFe)qzoOSwx0$zRw?GPa{IKHiuY%t5TXl=%^1S~LFjG*Lwk9^ zguW37zMgOll5B{);bk+3MnA8JW)p2;wX2n`)+%oQp4`4Pa>CpI`Tq=Z0{=@_lv(He zN5G~5ngtEe9^o@s9i~tJH&NfoMyo9uY$XNBewcvzkjRJV8}9F6XzbCJ3qT*j{RE$J zqIQW~B+~QomiZG`y@CG9XqXOP`lo`un42hyQ=;`Ebpr(4&#VR{oaIK= zMj|(&4ML$sf0sQ|`rI5&+BPN5FD;A44;79;0#$<}G$G~ysQjZCJ|R!76e_UD); zfwS2`Q8i4Qr{Xj16nz#d_+ic%b-&K11#C9~W~i%rTdY=7;#;fEB)V8+)|FU^|Ue+>JQS;C^W0JSQE8AiGR%@K=mA zb4(6n(RG*h7EmByKOp)yQ8%KWz4udW_)m%@VM2%FYjHB^MN_!>%BW!Q;~5g2F) z<1qGqd~_-OLIC?$a{J9TIn-6EZF0;W@?H_Glhu8GAn#7vKM3W}YIHIUHiz6bas0a!Qq9Oi#Ag57gq)yzEhueWV7_>4}G_U=#K71&|)p{Mtchn1dr3`kT^u?ReBNiocGI3)!h zMP7xT_I`^><;RoB;O&x@xn(ifbH}7GvmzYl@-Be>t>Ee*&{Pq~=0!y!Y$k-iXmYv~ z_!gxeF7)UWew?3uZJS(VN(eS-&WI%5Udewl#NVO%8F8E~2NOI!M+CBIexV$;pd~J+ zrNDy}eCWgc@BU-cbU>39Ogb&X_O+KiF)fX_-Z704wiW6P%G1DcdznqONt6Lu@2?D- zv~ZHFhmV!CwOn71=JFqxD#9jBuN{Q_^jznMs0iV>zcn`4{#rKnV})aW$xR5kV^Sbt za|={qlRfvV?UB!f0d|1YMyr7)ktZUB?LA5yC=2uiL#HI4XJ})C9j6sMgHH0c&!X@*dzd#lZx>}!rkmQ2Y4-!bA7aHlcB{()a8^|UQZidZiVoRFrS zmw2IXFk9=LZxA-MJq`VH>UFC;^@Aq!;xjr~5w=&Y3n)#5fsbtpgm~m4>`du60dFG> zY%J_fQg=@3Swvtj*D@_If5K^1Km^ke@Rgp~u+S;PV6P6ElBoza5~Ve?#vRBOHSV735#v2&&>pmp;K48o=e(-3IVys@dOu(^rw9Gn1)v~C=I20BIy z_MaOI>^9n7#zvJOWjzjZlnYSe2GvkE&`6kbjM`My-)% z@%V*r3^eRrP%ozA!hH)M6wMF4Z~62rm_7)BB3y;!zf4nl9Yg5HWr?RnlQU%IBG55S zOtl(%BIsDruG^+aUDyCrN7R44Ex0r}+X^)cm7qP6YofUnxk*@3Y!J9qt7d1wxURbl zLe`P>Q3jJdkfl?z@P=g@1y`!2u356Dz|$sC>0DK)11Kj{lZJ#nT)k4$1SEfK!? z%;k<F@_NKKVw2UhS0$_MLZvUB~UrWJu3J=EJGSVVKxG1{}LZ!-Vb!*#GHwF4((S zAkz1kNpPhicTXDDQ}T-JK0T>(Mkcd#u*!{Y+EB19`AHTzrDHxLkA=}{Hkm*h>tSr1 zpAU|fdl+bvW7qu*;)HGoz@gJF@%Q7p?FOgb(cm`l5KJF@gvo6n0=GU0ldTSek6ofF zOtRPH@{v84+HHCoxaUGHpPEf4_|(Qsd5{03pcu>#LW3d!HrDJ=oFH&`-jHVGFC6xUfC7_jv7uf) z#$tyI^7!t1V6HtTnM}01YEtq{mbsaC^Zdt&k#TuL!v2uMrpQoVNKL(2$zN8?SGy$3 zKzj~5X7b=>NaQnX!(QQ@V^&*!wJu?9Lwh6-=|mI}D%olBuSIWUmT~ra*2q`}*}l^b z2yjfPSIDBhMNfn5H3z-W>9pBxNnFCXhK5~ACt5W#M;_r}PgV+0Na1t!1E1Re00TXL zQfh;M76(auTFAXKrbp|`k$a60*Pv``XxM2iyEiRMEBBGF_u{G7tHGY!CmQ_5DyLmT zeF`9M?=>hcsD#T`9>L|ZDk#1F2nsIVgS7lxkeF5uv4^k0&h@1b=2uwf8$tsmcL5hW zD<``o-bipm!;WUjB%Fwq1tSJNgqk@ayYB0dpmY3z$V+ge{4u|z z{_Z0vy7ho5IkN(GZ7RipD&H*FJTJmCgG$FpCKYBkH0*E|mSe733d~&Cl(3Q>w2w8z`}Wi@Y(tqWbp<_qQ|xk4SNJ% zI;NAW#yLc7kAz_An|;~1pctxaUO;`msD~FzObV&s#(judT~aRts08-s4Gmk&k8BN6 z3TQMbQ<}Wh=Yf!Rgq(#()z6_JUUwcpmBA+Em)(QN<#p@fG~pnD{kw*SE#^nIEH0{3 zm|juw7#iyJ291BoorgNWvoBT}bP?ydV0O_q7zX#B4wgMeL;KGCp^Zf!rjA_(L6^>> zp-hl#()%Z$d-AZdO0hflW#{Rj#|3$0Gxr?N&o~gv-I2pd^$H z>iznL{b5~`QM*>1h379{H#qE?7cUiIleUGO6F}#Jo5MQj+-;Z)ppD&Rn6qdlgzt=j z-6v8ZHlqLzr{}?rW4P39%U9o(X_Z~d-UkQ~Cp6VJm3$E=v0!0<~ zWT1~`7DD$v!x@w=RyMHhNCNvk`R5OxzF<$p{U^`iLS>bz8KUukzaHZa;l~DrM@f5m z2I`Y~$&c`46uEn=XVs=v_2scEZr0rcso8l*KV*sS3~+=B=ebalU&>&lp1&&ETB`xJ za2$IigNHqtAQQOK%15e@x$ZuGrjs(bRjqM1w;YOx4qZhL<}m7mI_F2E$tdd0GgWERFP?DAp_LDV_de>e<;b>M7v%?RcYJB}$ zD&C8d9z0c!59s$aPDCDvW9CT!?p^2nh%^~xjJAiI!RW63?Df-=X;3z1I?V3U8!W&7 z5!$r+4%(rte`pIUtp-D-ojU`~71`HLw9z|`CNXHtY+zg0&;}a|nnbo-e7$-F&r);X zNpu`M&n<=rXv^uCz?JJc?3bt(=E8PSN=6ydzK!SM$%|L@>T$Tax zYcvCW)p{&gcGB2VPyb~M20ixly8h5K(4?m?HJ{^6bq(B~>L<(-PfkHA$pAPQ22sa+p)GO@V++0P_ zEn2jICQX_!*?;>Z^zGb_ePI6;5e!zVa9Xc_#S2+dM_s*Jdw-^Ovte-u2s3 zmoUm4*kAA{(%2bv27AXvIE(p;y5y|2UxyDLR)qb<7hj05oBiu6(N-s&xyZZ?dR@6+ zZ5C+CxrhUzSCAs?442su78b^|Zu2${`!VVxb2g4L*qcpAMn!MdxL^04JgYa@;hRz@zIIdcY%o;V5H z_Ur=-%RwBtr8&Kuw#eaHY2%YoyVjJ5JwxBzqORAGuK4@V&`=%F-+c3p3^eJx)?L^K z^;;gs&QF7M8JaV5Vbc>KeWlJ{4rMk@4D`K;Uhq7-P!{medqz)~ZoV5xn|cT~Ep9i( zZs%XuM04b78T+C~_0gg*c!qh17iUW0Ky)-XI5;SRZrZe|4(uP>_hcV*!@gK{?$>C? z&MKr|jTMFN{B`BZ6=o_jGBR)m`lW7Mfajw3P*O{Py~9+{^SBuan`>G!>Qq*Rc+usL zo)`uD(W14oK&4%)?-d6`CD2WpG!?yp1IbzJsiK}On>M?77ox9SfRklqM!~MAs=e<0 z`}f28_3Pp3Q}t=Rk~@!JX~b539Vx~_ejgP|klm~`wL4bN&NT^kZ1iQ>g;NiIZD7Q# z*>_Y1ds2sPGSJPNH&=kHQPa;p7hzMHl-x0LKl%CBT*!jvr-IeSR!z1L6Yq*SeN9r?z>Uch%&@h!0M|X!orC%au~KLhTLng(}=I>WK|?@LH$d5iKYO%7!4 z*^@e;NzGE0=!H!_dPPMA>($B0$p+0JjSox0wuq@$L!fDE$8%bo!pl|!j!zf%G^Xo? zO{It;{3s)cdlx6Av8O`Zf8&y-2%U@a%H(FzO*nV43~mo|k-1n2-EE-bzrIohJ*>s| za1NtKYayTs-*u3+ds*OTNv3qz#{h=T0!_@u|kSUZp3};nql3qhY6y_Y?<7nhv8j3UA(r zZM*j}m`96>V9Vtqh(Y&HdY(ee+9l)^z;=uP?*;YNfla!Ryqz6OcA2Kh-e~#Q^c1a* z+Q-jdsXCFs%eL`}UFq}}4U*>MN7R55Y`=-A2*J3(qWH>9xV&x`+_amn3b`C-XfEzM z&Zfl%+fHI1cxHemy?O+DE`dIDGRdg(y;|Bu5%!(K%VftxbChtW!+ z^Z+fC55YjIvj9gaJxjk|i}{vA(N`cBm-?Ctq_E;XTVA$V zWr^^pAwHrx*>(I>y*@=!EeeekZ|n%mU|Q7lwHoYIEPbl5mM`45Kxfxfh)1@;LC}A! zW;+|L=-;%cP&PA9V?k6XW82zua5VNBq!-?1%YGFf*V4PJ7w_GA z(cq%V;2D|Fr}qQ~!NPJNTTWK*px0~?L5~|1z)Lt$4Xsa=U|*s-PKv!$vM-$~P7=VS zQ!@?1re4g=4kfWx&dgQ}?a7qzfs}IP(kF?nxWZio>lfm(WL&GVZhjFfBxCBb-=(7`6cT;3lH}QvmXo|FCs(2O! zl5!Eoh3w+OckHn<25SaY+A6US_rDvn5|%1EP(@2BheS79dc(~X0q@(#Nd#j%VHzAt zGkX<+i<$$ zROB|;J(Cq4pgc;LPcE*u%2ag~joC0|)RqnOQ0#}zrvXfyqZ~ig3!-pEQ(oC!gMc$G z-GI<-(QL&lhirkVfjO>`iXBGS_>?V$y+YsIq7*jO_0W|1OfXn1Ks)fE#1y?xt$qmg ze6`h8^#xn3XgT=+SofJETmIV#=M2ZX%mm-1p|E1pPL_`*(Imj^`N3>HvwfF-viG#J z=nHEDPQfzwG>o?MbarG&D)W5IVW0FEs2+k#Vbe}ojSW7ozc=H67&J9Qj6$X0sW($L z(0f!8Gci<^l5T>&Jb8V?7QL&9yJ5%x4`|n^pV159TX*aY-?ixmUw_vgTC}u)se|^y zxGwv^$!b437zMHoUQ~!oR@;@nCxG_<83UU%RoJGcFFK?iO6G#h13gaUtJ9XeO$&<5 z3iTTbwwU+vI1QeTTfuhVeCXA63iPsagkHVIF_E1gK6n;5IV^^6zV8TMe%pqrWvlKm zto<68WOB1d?>2&g{<>vHuxY=VRrQgY!m*wA;24x6 zCh#QN`kE8$-_Q>PMAws0_FuU>XK0q4qD5Xx*$2U|L4TU;7?~C7;j92mP~+&?V%_bD zr)3r0v^CjoDTCd!wI?g3M8(0VM{BD8>}HiF0wyHtWJ+m~lUP$#sl3H%m5K|zFydOD zJcE#^_fxfZf=vl7@;Dl!8PVQ`M?GBW?+aby8SL&qx+zuxB6-`@7Wt(rn*!{=h&#cw z_nGVaa6F16Uz;{GQPfGEjHy-68VhVHeL(|1Z7!wax0Kn`F4P->WsU+TVzHRf@i4g4 z0HX)*nd~c;%P^6qOVwyDrGSP%Y#zIVe)}p`mt zilI}P=RE3-vn0LS*CA1aP5;_kXv*V#+p;VC@ZA6y(`g&C-}HB?u1N*OB-QART3@IvaczPn3ox6bZqZ$xIW&RIS&|=3sZ<(Vsb`UYO*e`OdzrhS=>y_L zxz&E5PcG`X@SQa0c=2=TvHbni7H^mN@Pjqyr1ML!MX0ingZit|x9j2WmPo&SgklEr zG)UZBjOef)7Yy|TJBzIdI!?TC&OKvUsXPJxcCk^cK-Nt9c=)5gO#`1al9Oir48ayI zbTOM4#xMHOSBTb-2$azF80`rTf>xKdJ!>ObTa_&6e^Ia}t^GZv-$9ve?%CP{2DV+o zypoCC55jn?OK2~tM>wg+p{vyS#76O#pHdY_{&-C3U3-Vf>!8FD*;^V67h_(8Mr-mx zNkJI8b5}{yv;T;CN+xD8et#I{Qm7InRjZ+5gset2=0!*p%97NIi<<+RD&eqp?KS71 zo=NAVbJI1@wa_(DeUX_O7xtpsmk&{~ME<=F^mGu5DScyvvUs~#^w{G^cU7+hd$*me zLHy+>{8}|DMxSWhSKX6RP9c3KixGsB{ouV6p zkIQQug@Z6W%^@eA9v^2`a``AZ^dZ8bLiGmrEu#xf_|QKU?0LdMQCbph?*32&ds+eZN~0S< za6hx_xZ|uavR0zpP#-89*A}%8wMYWvH-ekS2B!s1Y2amhf)yhdbIDk5)wy>JIQKcg zqOJOdP3=#zipDC$F|ulyv`)oq)Co2hD*0m0aDCs-X9R3F3FKQSFVu%7HG%+Jq57dd zGGjXkeIe#@tatr}o(_6S9I$fm!pUhknjaK{177&nZNQOwgYDc$^EA>pL&uSc^B8&* z{2h~p!Cy1hOtL&gMc1d+wSWSG{Q&iER5R4i-uo$D_<_69hoXYx1e?`ewa|pK^gEKY z%CIwz5fo@hHMO?9n+|O4V@bl;A;8`(o`-HYKNrEK-(j-<1^(RRz5fp{aw*C6AtCIh z=uUo#o=tna0bk<(n`;Yu+CKyzT}i)?!2XrmaT6^MHdSgH&)EXc-G=^;kpIE23-$5a aWb%L4+F-fj%Q}Go0000vJ;6J4B6MI?8-if zEQxF(vai3Z<@5dB*UKNSd(VBI^PKZO=e(cucwT=RQ-AsyKWbE4?WXC&(dG2zx11#Z zscpj-tNV_H>yFAlp6u4bQh!V($<*P6Gp3q#PmS3}7FAGfJ(?NOqL7ieDnxblaZGsF zqZ$yJEWlYc%+Vn$;o*}J`yt*|-I1$K4T5pYzG-e*zBs2Aq6zr0zr>3H^Kb z2J+@5e^Mz=G0I8Zp~Ct8f49*tgCt^Eb;@hQu`~b4F6+eEzFUU~@aNJ0y+@CjDy-LG z2bcc+{S=zKxD%HY=?eOLg9`eB6_L%i4sj&<{2L@0YwmjC+>3gh1&`o=@1fA)^)AH> za}4@y?h|qojdvXDJ!gLI+;|vtX7?91y{?VT`a$warTwDqKPezuG|NIXPPh1TrD$Qs z!93lA&pxem!tc0qxV3eVEJePdy-7CmK9D zy1o`Q)vy1}zR&p^NOz>n)$F^ZN-@`eUti=c;ZV;%FUp9hQt+U|{lB-n84!vr{ytw> z%x1A>?-vW0u8|KFQ?9}p5bnji|Gi%*M$mwOTxZ*D`9QA6uQZ)#pf|rh46s!F`@{_- z40YSOA_n?JN&C1x*o%BQ}(0O4@pNZ+Dj4kkpPA!mwk z$ zDtvT4oprfC3U}4tXQu$;HB0K=-;NbKz~J;~puAH7{~P)ALa1O&RSBo!bu*;Z=4PsX z7cNO~_}?ngBUlW$6?UiD`PLVkKM#2Em55FrkzVdM&ZM|soS{bq7t8;*9tVtwQ2hGb zy1NV_wvo}_=kpL9YGyFp%u=fH!Q}Wi)qI2QFA-{?9jk9xz32X?yDl*_3tPITf1 zV{7d&68h)E*Y4VCF9v6glMr0RivN@U%xqbrpK@PwMcxppJ({IvvY;h#E{etD@V^zE zeL|#(HsDUHSf66^o0OYCm3jGz-V|iGO#>31-urLTU36%vkC5P8R+zQ_W;3oQ_CBCV z+4aR*`TIR-qSa?x0uTwzggK?ZpFTx~ty?e5PE>jbl}o=Z4y?&!#=!iY%6C!#dLsq3A2Z8maVarKFE2*JuLSE2y>;8+bpPVQVA zp3LGSNW(9yIsBUesEf;=1lQ(H+B5Zc9O&!|oog4?zC8H3+rCG+;Zlbbjy}i$9p3(* zwP4Ro7uIOJf%w4VIJ*T(&ZmcXt4fRquD|gd$G_@HLvgI4Hro9+-@e}cnJ=A6kHCO& zUBUnKK!vw!hN(KXymMY3EJ&18)?Q^&Q*%6gswJj<&XON5SmW>0r0p*irB+x`6aP;a zXh#_9aXnSJ|%Ttofp1Y4b-L}?$&Ei|#^xubIo`WQQ%J<)D z`YC;sg&E8T+M`3k&4QmRRCe2aDYkNV7-(JvZd(PtsYu z#-4obw(rUo9H|d>erC2(-Ql9cyZt{L`rd^rK6iyLK{qkcj2xZpx!!VZ=}H84(eYdX zD(1u@ex7dHynp15iq$&PDGB@z!r84C-dD9;wy-Kns!kCo<8SDF+@2$P0?b58kgmfZ zB2;>r^3*9R{9-!}t-TAD$X}c;%!V!*q)X4dSt zoqr~}Ru+{EnVCJ1iXA*iOlC9BrhiQlwt&3FM)CEYP3ArAeUa$%+gbf;fvkEHtW~%D z4C*$Wxo;rN?@z*w@3_7B+-=S-V2odKDTnv7zTL}t7U<|a_6Y|=4U&T2BE#A7sY5g!h@rY-c4Sf3$1nL^~`C(}JL4wN1=9GCzw$$oF$}jS?HYy)otB5~+ z-tf7%zM#U_(%^YfMrIQl_6Y`v`)DcO20j}JsufwKNNzsD#w_GatR5()qvyaoFJWPo z6;TI2e0rz?s8(+Jy5|pB#>+h)BEErKf24SL%?mVNK!+3Uo<7QDxf1hQ4C7iFou~ii#sX{kvIoXE}Ug5YTFv%p^q`k^Z_+F|1>ieN>{=Cp7 zf?Rgh-WL_*>|RF8C1uUM^OLI#!J!RFcE1Pfq)(0=)bA87DgN?+X}y!DA4|c{+Vbd7 zCVlC-xg0bOU$5i$T- ztDIQo)2j@K?=vuAZP_k?l4l0K&niD%DHWplF?R-qfS1R&cya8=y%bM^_aPrAEa;ol zqGv-)b3!YU=n)~~1MvPy1_V5_t1*|kl9L&sk{_{crhB!F?ym|gP>>Q1e=|-sYk%Go znUktbX0OFdy$v9tFK)I7I@xv~Qc7_IwfJ0^XJdb7hKZ5_bsdLzJ|(JHvj;>-axo(+ zAdAH{S!aN(45oJ6tAQj{-`y`J!N@S&j4?SYn|gddK#K5%rMa=+ z>lRYBrZFu4jMKBEIhm!B>*qWhftBVZT(C!h3Ew+$ z8N~(B!lyYk5Q^`$VaHdCymgvdJTq@e;lIF{v)sb$7ot;L2$0HJdjd? zpK_|hLkH`N&u%R-B`W^h8POH?UDVmjDhZ7#h{6=e9CMMueFT+L%Fdu+MM=GlUk|~A zA8JhbMrNpG#yu*g1jW)1psuKZyz}*c*9A=IWBWj@qE)^OkaqMO@4L&jH@5E4Nw?3G zq)3l|({$g4WGQO=wrDUREvhlmThf@)HCacC8Lrq*HAa5v{^T%o!OXchlPjq(4$BJx zUSsOWU76jhD9ds#G&vP?A5&8tIw$Fw&52e=&u(1n_UQBd>&9Jr8!WioIGq5Kgz2Cf_5ZKBiT>n(D7k8{V!E2G9U~FxrBEF$N*q!xxj?Z zt6I;>&E|c4pb@?L7R>7$=9u@@oO6%`<#Uj&yATTFw0!YUHG;VAx^92tEFa+%y5%k3 z>V*$%Xek3VqYtH(+z6#RWUPl|_8;YFq2tMvSH7$$Gv3SxM1@XTq3>b}$;w>N3p>NOL^?eD%%L+gEc5L{A7~^UuzH0J2yCPeBdop{4lu z3L7oU{c&;4i{hsQV|$5LTUjY(&UCd+JP-*c6o%5CDSP{b=!sglzYF6bW91=4qkPHE zXPVu{yuJgN?b5A$FLfl$s=UvVfSY&T)v#)J%jA0(q+AoSN!@ePk=SWzHc*=9>njWTTzHTt(D;A@B+^ugpQ6@-+tdTAl;l9mR1 z&@83LBuSMsq2=d8W8U}M@sVLK7F5x8m)cCpYFx6~caqpW$4C+N&|D2Qy*(z%`cMN2 zyJy#_tM5k!casRfPqhO$|2vWkV~EjFji65!2t^9PZn_kd3L7O=#EgY=sEgSEB~GEb z{mMDOLHuHB*>07O=il^(;M~++ox|KwDJf*6K*L7g+PA;xVn@StjJ6-!{Em;JR&RMh zU2D_J#$wc8Rhd~^zBI5)&Zb{DFD!2Bj<_Cjd4SSYygIV*I*+#=l0|M;JG!#XhZPY; z&z;nJ9`%hnn*{w@zt5i2;nb&&l-;$9coPH+J3D++_u)U4loDxRu#PRWNs4S= z3qDVeFwkLLMAirp@J~^k{=bEzuD0S|5%>JKm!wS{TL3^-*)V+p@Bv(C(j5=uUCH+u zp~gk!lJ6Y|-#s7rQ?OA%O*S}JQ|s$`E;qw|JgZJ&3m<;V9`%G+XlcX56h50qEVJq= zH_8dq{OycGw~#)7++_I^xoKTh<2N_}+lO;sr+{lhrJ_F)QEPM;EXAvTsv*r&@y`e8 zk^(X>U$Nk8YaxA9>T2b`fSz@*xhBb@bn$6J8Y7~#$kllIZ&r4a=&Ub>o*?|XX<9Ph z6Z2RglHh!DJPfRFuIHkh^w6Jp2qu)1VfzD}kDI4)$WRCV0WxjhZ zsZtJw)8uqO`;YpI<+(?y2#2$KoFR)d#xL^{G%oN(K{7S2OL%j>QlM+7XRth=>ss0+y{Sj>76vYfK`^d8_WOpm?a5f;yBdzKaMl7SRAe5xR3{#3F zBzql;Ffq+>V&aUVK;19M@M}{!F~t5%x95txSFc~Wckzunn|Y&kdSQn!89bN_n{5$q zo+Grc9d@^F(YPy&C~<*Hrr-TOMvV8*no!~KsOdu91#3Y#_aMXN0Y>tuWE<;(&JTF- z8c=Xu(X{R8#75@mG{Kf3aA4IdbrY`mj>nMQXW90N(! zxc;#QH9nvB?&+_{7_1fr#eES9w!HB=E;4Lihhgr+Wj*Gr+!vnGM?oj@`E+w2?Gi5y z~-qY%G6^cipSeOu|^!`nmb66}R#eMfs+aC|K-DT`Nj7DW+gHfUP zb&%{CksBhqj~BdOMNoo-B^At9UuqTUP|S_jw*ipxoG5{MAptj?fls-_ieP{dS^jYN zp^S%;{Y!d963t4BpT5AO94)N#+6%+A3VvucC&ey_iR~7I9oE@X9b!-tF z#X^q#8esZK;(xUcd?uNv;+Y#z75Jz$oBFN~UNT8Q03=0pGdR{`;bQsI{aAgvTY7o? ztXFrSp7d7l-l;a?IEBm+J- zmW}VyWz`U**&1g=V|{u-=hXXKu=Vo`3wWCg)tp3Bv4aW6iVNMf89zHl_sgLA z+R)Rr@5_2D6l@d%T91ep3fk8;C_L@g?cY4}uZJdgv!ETP!iia7`_w?CDe+*kjfLJk z^l`uMm~?nVwovZ_&$RI0sWu9zfxv{PUBX|x{C>z8x<&3p9S#x zYWiuecR{ma3|>4IxY|_WJ?_gThcrg=mKI_(u0xTYY#Wzm_nNNmuo%#oR;W6Ad7LV2H0d*luH%EGPBaK?G za{fVsZoqopZE4qzRc7*C<2Rlgw>dhz-qmBHw4am!`#ELF|H(Mt$|msFlb6L~@e?7g ziaM_A7WK4*U^v4A@h@do^?I0jLT{ylGSiD`(Mv4IYrYa0mq+f1pLIu3Ibc3j@8 zLwGl#M^E$DElSf*)2lQ1jIRtI}>>f=S6Zie7w?h?;1DH zx}{zMl2K~Nfue{iQi|rqfto-&r3paT9kreRVtAqkQtQ<-w1=ejJ7`C{rpl)H-#Pb3 zpqQxiz2r)ovHzxty{8AlM$1wWfHZy|R zXIm^*T=IIUYqHR{JqkXx6>fq9Ah_)hL1YzX>CuGYs}5#B5xTnh{rd1Q#_D* z7xgwjd33cx2KB}}IAoKqsS;DdEp1pmU1kXCy3yRQmIOJ;!>&51lMjumH9F%~l0}cd zEpy*yL4e(&nbmrZrUJj2O*{-fXq8{Z{~EA43J_dq>RQz(X_&?njjhl><;Cj7F_Jtw zsOg%y1~vpZTVwSo=pbgYUgoH6yVauo&g8+u@ujApG9~^Zgca1rRW@>LukFuSb&jt> zb2HMCL6<&pGX2o#)(*hD3s1hOj)Ztp0@ckS>493v3F!xHOA?}sZ<2hq@7}G{bPISI z`p18>h!&|tO3~z3S6BC91_QwSLMuA4d)S)L}R^5>~EBMbQTk(fmzKR0O7KEZi02)r*TA@poYwodByMd`gVtu!vxTI2^Q?v zcm91Vi^u^ctn*bAhOGaxv0yVB&~nKxkTWj?Ej4UUmLw9v$-Nj7RhKA*%TLRCeQrs~ z>PQ;9XDCkBwr0;Sz(&pGG4`0+c(?Fbc^-l{Tg?3PATg;Es${RvuB0Xgr2Ey;W`17k z=AVfr5;}r?Th+uEk89K>cfGlG^1_B`@!YJFQ@CWOQ!^d;S z$$}+%I{1`)`Z7qivU8Y4%cMw#E{^E6aJBkTEj3;MlUY1_h!r7Fi00|D^(pfZ3WW*l zxwF0T0b&FWFP+QHm3(F=T6+^mjJAAE{lqY%3_`dRc(h>oe(p1OP!EdQ-%-bommob= zlt1Pi)~%h%xrwjW<96^s6Cw6xir)gIg^-z!w0L4myGiPD1YkwG2On=BMf64DV*Zr; zH`U38M#&nMLba$egN(JG)gSC_CzI(-q?kFrKG*#%zv-ajEokW?-K8ycWbC{fBw1qw zI%OF^o~GG61wy%q5>l9aE~^ZyKjlRyU$&^Q=?@_%d>i9_f>> zc)*b4jap&cjhk2uXen97+7E7>rxoz3yM~t_G;duh`Tibyj?qHtIYlTfz_{xo1=_^d z7iwqRu93kj$l)1t4nIb{dN+1Y{Ngv+2Bo8|GF<;|IN@uIta%}K7m^H=Nc@f_v#7c7 zRk~nCz<_&mKw(AWWAwTI#33=Ew~i77%U}B>bjOubo}Q8De*` z1#vq&vbsL2?=HFzFe%jhvEsPrPu}H4mo`IxhqCyj|M&4(_F*<&N;ZHmhlx~|0LY} zW?q&o{Yj##r-JIMVEb>1})_)AImQXe&tJ5vcVFg z=O5ygb2YHJhPW`Vg<;;{XYa^Eg8*s-Bz!-%!H6L^vOoxB3NWkW*ladMRZ5e^I*OIU z^FX}$vlS#~hE#W?dbCoxY>~M?gI!7{A4+dqse%x!cT$Jz6U=HW2&QCMDpeA9df-{8Zj)cQhQFm|-aZAQM{EN5OOCus*Ycnw3p$zz5sR+QT1|>#iA+yGh(_He zL$Urz*(5+X{5;MSc{nkfnyl>iZK5uDHd1GA3}}r=w($43ggX3|&@a29_@KRzSi7<4 zZqa8}3r-TkkG^Ku(ox8?B@IxrTZ*@9B3VQUwZ*Stml^C@_Znzu@QsFIc0q42(g_A5 zqPv#0qR9#;M8(Oj433|WBY`5v8f<*z%g?yQ$hX>X+~|Ye1cJa^Ix#UxGubQ2w_`M- zj=NUV964UUYCRkHwO=fx#tp5`j76OkZ9RErn;SPN*v_sqAX?aN$uNJF^f0%EnIdNw zgi~1#tzXvPp-@-8jEPjm2-8)apxJNI5PPQ2tbllu3Y4G@YPb&{=JIQV9K1cw<0qU~ z_9SJzU%#?TiW$$*8?rIk=l@q63|lJ{lINOKQ3cW9XUOx1>d(+ZM`Yrc zJ7C9uxZF*2y-Tv<0^1r-jw&ke{LtoMLnlZV-fY4k284eNZDdDuNFxniX2QQMg~<5e z?%VU&!KTE+>tKS49Piu!)wk#dt9#67dbLc(SPwh zz7S!R5@7eVHG;*<(`Lb@(1=+qIIuw7(lFT;h8Z zNv$sj&L5!KKc8-BIjc?k$DgOkv3V)zO7VdHgRh)aEI&SpefSFa_Qp3%9AOmd$zn1?OZ;==4^4Hug0zzI_)p1HvnN>1HbDulZrpCQ zsS_ehOL2H>7`$dUFDy92aaQycfLjpp6Fp?T_l)d8x@3t5`x|%kqH*S6*PS1I zUU7!~WNg%U^S0}B3_+E&HTlY(<9UKZKoYKW)EfGvC*cJqeAlWrbNE6ZyDWRfpvTXk zfZ|-%6EA|JW`U$0bM$WHAcwV)7Ju*bveNoa9h@?XRP`m|Z~S>(1rqi&LPp&!Tl4C% zrxT`TGj|p%Ato|6E<_4{CCzb@3|I!WMS@n6FUxF+_*CjqK>?#Xsk-o%!{y?~0N8v7 zoO#q+%OH;-;yhh@gQfNf-wu#`l_;X;!+zy7xmKW2pc-_*veON#5QJAfsytyhPmubM z2~o^^KeHk+EmCkmxp1?@8_tu)iZH%qwP>e*JTV`2pBY>%m>^WLa2IdBS!zl)1kl4q zE{5ZBh^~-)=lSiH+SD1O%k(Bk*3qhw%MStD)R`47E;LvSLQqN7u*$2reI@lwO$k z7r{MIxJyRhQi`V8yYAeo!k2-}F*;Jbu-C6-;bwYO-jz^wtjxcd70iO*8y4IfcOQ!# z)U`-*!m?bs1+a)t9XK`{1;?VHWCNY-_HuJZ-6JgT-4Bt$CsR>h+_o`uK7T{z|_veYC*0nu3T4oPLj?^505 z8)D*e-q=w?mrNam5aF$30PM0syp_(J?0?ZCC~`{o)YYvD^aj0jQ20(NXjcLvHadi@ z?h>;32LpyFxKBWzlaB3ofIm9admqcvVY_ zpBV{YEk+sEO&^+$m8z`1n(-g;&UJq%dQu%cU8o0kOmIwxVw0t=s#=i`CAjkJagX+) zYUf!h`m;n=(?;Jus6RfefC`t$l#+IQT)|*@U54h|HN4K=pBxXm zO+IwiS+f0#ZbX!aGl$Y^qX^~}t*RzJlsQsg?IStGz|5%BLJ3EQA~W`xw7lMoN7v1o zHZS&*Y)o$s*gupC7FVZvU|4MNyy`{WV81a7)OfffjF@O)A_}xLaw|2YEGYoJgC_Uv zqcSAegMAj*nts$0!LhyfM4lt5&&7A=H_TYRDWEu|u3qhn3AwCC)&r&JSS?4z%)4SD zOSi~kQ>;^YoR1S!8uEk~APsVrV`^iYiGcxkt6Og;Sw1(g8e=;}j39DUEA(aJLzAoK ztJ=j9km`d?DH^%Y=+h z(JVVWgyN=O-M{!-6yp`s{9!5yoN@)B1!p^i36^4Cl;XKF>tXw8C+LrB$RmbKEI}B& zPFm+E(NeFy{CU=96qCxCZT zot&tCH*!NOfkcr{8~8jyY2IXQOFN|ExNI%e=5YJl+rBlG0jm5GoMl_b5@gssr~G^H z_n#)0hqp!g2Qd3}hLk7Wb|~OS+y?0r#DHka8TbaY3X4|JU*QY(*l3pNwwYb+ooj6x z*>C%nxw6;3lisw`vvd$N8$WbBfqfQmoULs2+*rA8`PIe!pzW=g)~1@(^_NZZwQH(N zprx9DCp3n9gX$}EHHHq8U`556rYGLF{?6tX0IY22WSRsN$>cH(3mC}#1gnUNq=Rnr z@%w=MmR`Kv4}rz*MW+2s{H zdW)hjkmA}EI99$=x2}ey?vGQ~w8?wOPmuFA{v+(vTXHNLW*=x-_l-*ug3t)xU)xIh z`c|_7{EDAZxTHRDgXq7mV@!QVTSD74?VuswCeAaxX)qTew+B(5$-lhqf8)P#2@o7+ zui20d0lo1(35<-6*Idef$f-wd*=F z&s`kMEUFb}XJ1uakUcIde*Q(i@ypzQGn=Eu_oALhHQ)thbPd{R(9#a=6HHH@0%l3s zqfl;oUE6dJKfNe8K$%xLR6m&svsAjjhh(TAuof{dV2Bp4)HVMqoC*)LpSSy=1q#9r z`L@l)$nHg>l=fQk`km!Ko#n*DrY?>msrosWS94;*aw(!jv0+r7((J^V7Sac`@aE5S zPN98@iR(^wOQ`Gy!$BO_Rnlq0xuPE!*Xp5~vcRXGJmtZ?u zfv)R4ega4i@<+xEWH3)j{gtVZcX_E;odkfHAB}9bNQ!oPd;(21_ek}2OL9_#@9w&A zl{BoGa`iV8)X=Ey$sQfE`}4?R=>9J)q`J51A8C(>dpCe`>g8Y;#M7KVTnn$T5C(<; zds|6<2Fpe|e3CUZU-297wz>BPUJCOl`RzR;`L^?wmZ4%OCDO-LO&s`Smsgr|K z3(*6k%p$6FWPiP{VxzgtlwkIjrZ$FPftB0&kltjYliI%dY#wrPScm_OCJ3i`=RZ3r zwGpPjL>2#BFvV^C)sr*d5_Q7O3qsWg8zE;BvhZqDe>6Ll05G9EGC_=pHdM|)GBct_ zVY|o+oD=O}y@)ibD2dhpx;0liszZz_g33bfqM0^KCGhx4s; z@u-Sp3Ea9)rLv)Qlo~ETKIZJ^Y-9f0zX5;@s|j-5&q(f!VfjjW;){>TMak{33j@!~ z8(LF?`wAyoJ;hK!htZ$wfB}&$#^i6VSbQF|wDA1ZrV#W>@x9tNb?rER^)d2MBje6J1?@N(&1p_r+v|qzeFu1N&%<3-`OyeKy(@SclZX> zg^3EXnt^rF`5iSfLEnm(yxyAiznf)A3{zbvR$xQ@}5RMVizf5)Fwr>3Ha9DCwXO+jPlDwq*q ztf^Ykd2q+#NF`Vu=mz7G`+M~1O&xLFju8lrIwArw;sBuFKua&@8ev_&4W4cKja2wY z=l>ogp+{UIxcXF70>u&rPk&d{I(U1kqQc!QA&2U(Ea2F~)$?I(C|6;NFf;B^TTAOG z=D@w#H~j&VS@r3EdNLBGs6OB=lj1Rt02*I@Pkrz`tG^YYwC4+()1 z>&e5l(WV$iA-pg8YOfS zaOk8R8wP~!FY7vRsa%m`@|r3IdW8GG+226QDxoLKykyE8K@7K;?`i%||D1OF87vN6 zrZ@cPdO!c?k) zQo*kr=SCS%gc2KxG?tk}J_{#4mFV}&yVt!JbAN$ix@m|O&9F-kq_pFue?!EZ8e%PQ zXets*9t5lh^SvHw%&aUQxipyEive>^j)!5Hf?t;c0IW`bsZ#5@r6yjCk{l-r=p*g` z!E1murh+~S7_2YjE!m0t?PbjT1P)PJycG_o#Y%|QGJeu@CRk4R6dy>~nAzmP`pd># zD#5d_X`0&9Ys%Dpe z0{PG%p{OV1@F(3gJXJ&vNIOp2o#N!FsbYZCPbcyrh|-sB6uy-a?Ig}UGqjd6*Z;k) zS#kh3@?bsWWZhYX$jr!Dxma%8Lz7J2_^XfdoCtXI4TM{oo;d`XWq8f9=x40Ge#(pI zyaKh05Z*rpx!wr;J>Y6F!YE3V1}`G-cae>yty_&eKR>-_V`{Csvdtk(4>C1IIu@Zw zxeX@+IdwpPQds^hlS^A@Pj~lI0@_1^GKa@Ev)0@vs#ou^p~&IS<7jxE*Sk2dAj;WJ zUU{Sp62{jOYriG50f(qY@-0758lu|frDv^y-s_6_H>W(Q@zQ^sC@TQeRg+BR9!dB6 ze3-|!?W-{b??rxK7=N9Fcm_Rd%DYV~I__Xu=Jq*Q41@!Nbc^#A9v?7!P`*h+5f`19 z5qzV+eG>4NWG(0&V7QPpZP~Rv`SV}`M3A6o(*+<(G-%}%i4k#A1062@dzF6bAv+L9RXHDGrK8*dE5wgg= zMAT@#0%QL|Ev~`&;l8bB_bc{g@!rpK&6Si)%L-BDsQai`>{n?FNkqP*@fGxybFkJn>o~SX;F&a-*Y5)!ogP*Tq{dB#%FW0n_w`I=@IEflj=$=d! zv32%=Br5)4+^Lu9uJ4rUqUtZW(q9I@hCM1@TzOkWz&_gxuo`j z>?FZH>tDsVb`=IomPq2_z)gRVVvDGa4)C3n6bY0Nf~VDC@?7llmc%8mK%Ie%42~Pdb_#yteNYYh5e2ZFH)E#LQUI0 z?rbZNUF&wgi>y=qq*aprZb^7JLh`|l6C9mkKtwf1TNZ};K;??~i}^Y3F1c@iO6Gh# z*bG6bRJN}%bFIN5h>2bw`Ql9ZMp>Naec2shyZWIBkN6^V*Ia6%^Al$d*SJowa9&dbVJp%bdYETp##d*LC~-(AdfY zZObCnIn$`YcX$cG{*fc`55AhLEw_cgT^-4lSCu?VOOIGdKo| z7W-;wat~6{T#%RM(XH%;)2D7&AuB9Xd&OejbVj?)jow#qDF3-F@!6OSEnwX1%Z$~! z{CT*-PwDPV2z_zQru8rxTnqT7%JNIcr!DR>ELG`_sSnocY&$@@^LiZ-;9N}vq22;g z8vP7PzWnO!V}XSi;nYT_!f2NDQGhevrNXP(#agBerY5r3Sj(3464XRLGmByh?)lIo z9)Gf1NsN0*bF(JGruN%u)$NvGfa5jRDda6R1t*Qtj4jX8WSsS>D|7S8LWp$tcmJoM;Hq|q+DkC+=MCwh}u%N`_bs3hm=}KgYXhS7kvoKRbyr&_Y4Jm#0o;Cd>?t_Jgi=xUJiAz z$^O3R70N#@HkicsfxN8cyZ?6L7MEF4@w@Vm9VEz;K_V!Org!4hsTL}HoG{a#@?tP4 zGM9dV;mgGgK0<%;l3p~c`Bx9Q+0wgc*bF3wu|+!lHOe{Qcp!Xi!1W4)kKjt|vG*>i zxE;sKW#UK%*M+@D2+=E>j@%nc23?eMPP|4_@7F(H;BY&g6US0{xmooZgJ`H4_$hOA zfTq`l+&)8&K7+F3t;ft2BWjTBmPo=wyYP1k3s2I$XPag?e9m#c<-DyN)u`KN9`1?E zQVccUEJrccjHL64Xl^8**uu#X^fN#cCZd!Uvv=(KjjM({eDDtA*Q>h7mr02I_n2!- zKH7V?ja0Owv0V?CuY7bOaa`jqRg3#%;Umt1uxXf6`~G+(hF*ISaQ(ikFde%Vh)>?x zp#tOL5&`u|Son*GyU|$EY(JEqn?uMW!+9E&B_v(OOnqO7Rg3%6=Qx86^B3)n+NYWI z`Z|pGm38uxv%NBNo8Gu%P{S@Jv5}P@jZC$d%kM!Z<}aVlRtX#c)cu_d%j6tpHc>9) z_tlqyD~1fqbH&A9&BOv3#9B$)YN#pPvG_!N`F@}OocYUJWFrovQ?fYP6_mrb0BaO* z!2gT-QQg?_9=U%?{%xJ7!BEX@pe3ZI_Bo8W>ulz)ymnXHVEZ0eY8b!%0mqaP_;t1=GmzF#9Fh0 zAM{v~0psahaG9DxM+hsm#F-1?PQpBeP#*SZW}v56PvI zlOJ&{>9gW{5qc0fV1y>Y=*5A~KUzsL_%qu&bJ`D8lH_pBSIZXBbDxE8Al0RFJQLlw zP0dsW6%3bQ1}xo8CDr4$6DnI2qvb_c2%x>W;0E?X&$i?c|HTWbvQ;FlO4Quoue%)& zDi|Oy$4ZmG)V&=ot-_0(q{ITWfS)Eea(rdgzsidn)Ykx7PbVFB4=Uxk5%Hpl%r&NW zwRKVt%)_2)VWIu}Rw6y$qo2HuZeuh0Xf-O3Y-$evn)_+y!t6-@)-x^P-M8hN66}?{ z?D@sc0anL9wn8nob?y(JM!~tg@0|Lq6$S(LL1kk4ID(%$VAaSA2E!#d`zjJDpWD_2 zr%P&H#6ew#W>W$)UXx+%7=9(Z<}ubbbi12z=hh=44dAfDQArY<<9Wga3YK}Vx{llc z!D}H+HLb|l>-J4h%&~?+0li3;l%~ZwCr-oLzh3gM+s%*u5~}evN5#8}FCFMpB?}Da z-yUpusp{d>kZJPXajs&j(W*RiL_;2QYEU1!*_APZ)1lryT%byKE~8>Iacf#?-$SYQ zj{8%n(RMY^cO}JU_DPoMJQsz(pk9Q) zkkG3~?2aRFyvfWL)GgZ`0vVdr5tuNE>siv>$IrW)MdLC01LWdD6%lX<#-0J;?&qAxYUo%wp>tEG@7_i_Yt>b%qw^A#Mh2PHAk(=v zK=+964J3*@rO$V+qZvYj=TC8P$g+tuwGjo9Q|)qtG?=f*=R0lhuNB;x57^XK;$9LY zFkWTnXsnzY9|nrQM~P%`aA{7N;MVc%+uPSVXkh%~(EDFk@nw$2NbTsfSW^`S`?uYi zN8PPQ4yhO;1J5{ht(yrB(kqnN4ro$wLA8s}Yn0=|%cab(B5P?Y2f6_KKNJ2nRe%~V zWVp}Hj0jhodBbd{iF6$G#e02>UPvp|aTlEgzFMN!nU)>h+zBQy`X@V1x}RA#vhXIn z6Pk^kvri|3dp1_Ka(*ai2fAQR-G~C=ZVxpdO&8g`6@E3Fr6lRVy1KPJno`MTBDD9b=fZbnbeIw6n1H~vbW=qC*aUi3 zxs#zL*$heUua*upNIK~ACu@n3VH@n>0B@OPW`uTpm3fJS836(MW3zZ9EZ&UWnjzs` zpCc}q{o69F2)y;~endMnBgmOl-Jg+F6O$i%8C<>9!yEjDlQW2p=H6U@wM zGE)-~Z)Zrkh|W5WDKI}*@ArmVImAVhDYAn0h0yh@KTRUR92{@*k_%4N+1c)d0Mng& zL|kMQxayF6BVA>M3JO$5+4K!Q-H`YJ@-1N=g3j{ubIQV_x-=1NJ}Vd}EiMgI*J)h8 ziZQjm=DDIST$F|7TQWE#d3~@saSskD(+ZL4=?q){?C&nc&hE%p=5GGgmnjk|^7T^u zl4X5x$Joks|8HMj8euxLq)>CY3Evy&IN1;n`nP>C+5v&!SVO7D11ApUq;wu3DwFaQ7FmWid2fqqFxohQ2L#9dEbA} z^E}`4eV*?*&w0-G^Z9)FVL8mUg->0y;@L>*qW#w|an}jA8}oF@Gv_<;Lr%L{9>BWf z@0=SK(s+{GtE2nx_1FNME$@;NKS0!}fKGq)T~Tq`2Sb58Ak=bsAZIVOt1gU^)sb56 zv_{E_dF$Z4*LtDP0`I<@Wn||c{q&INyQ%#oy-cN1%S2&-eb76fkrM(4@q>j^YLT8_ zGp2TobcxHt*KDWT5I>%PHz8>x|vO_E(FJd)>GyOf4FAYJc@@+en)2 z`fUwO%{V&ZhdIsYN4DX1d`9?lWKx0;B8z9p5-$PIqzbuP9Pi}C4RnJm?4J^p>br{7 zxlFh1w8X^a&_Y=bNyAv=hxPbCTYS}{ffNxYIoPFLJGbH5dP}C6-nETRLCm!e8XC_j zj=ZQH_J$REmtN&JzUg%EkD9E}GOcm4D?TcJ(eY7qU9`p{YoM~rsM80Xai0pWw15cz ziM@AJ=%Im>N{#cYq8^k1pdWQjcb=MiM0gwx;0QR6rdU{(Ys@Jr2#xP=RNjqo3wINy zj6Blbt`SiXAHvu*6G#co;+|PMZM*l_4;YZr0p2O#H-VY+(j7lt0vV(Z7p7fEuyilU zz|@`!eR20vgKdp+cKWLs&cW;G=w7%lmRrZGdn&9zZ#ftqsd@;@65ya(KuV{06-_=l zwLyI=T6DrL<(buBa~CopN4I^#9{`?7`H(>joOIDScuOwfq9eun^OtEI7$r5dF|UKX zSQV16IJy>W@#yonhldkSttOAzI}7&deru9t5&`4WC5W%IuPN`{)pcw<)2F&}V|+0E z7p6+xhTb_}h&FQz+~`{Qw8fKF{Jj6T^ynzM)%~*e$$|kH>MFEbfll}C#+sz8ER@Tp zPn)MFcbbTXw`5cw+8Sef<}CCmzZqh-%@zQ&8F_0)#PPB%p+G?hD-}_RH;|pGBS3kX zr<;7I_QEdh(j@e(Nt{qrn*~mZR_&vGJX$h5y`(WpG`Y~?DfvqCPRZnJn9YwiIc*{q zX+PCGfer#QR2*$0tsVRqxv|Yv0qYqH1`Ac*;k-DVPqCNYr-p$e zi~KsapZP+Q!kbrDV2nf4rqsj*D}+A@B=0WzN1l&y6Yft33fUN>KPqpjHA}N}A=GzO zy(jOZYd*;cbOxT-<1i7E*~%e~RUurX%H~XwutUx{MAJA6Y{^nu6EYgCi8AAzeqQ@w z9dM=xs%e}LKerpwtB&fbD+kWW4wUY)Gc7da+lxlhU~JQ6buGB4E;QMc&MUSjQbp;@ ztKR;7n}5}ef<%j8Lz3mPW7Px{{T@#ax}=H+h^|~88#swL!4u7wH)4V`fzl)4OaacN zliC(XAMi98FK|4*(z;=^OZ%yH*J1lBD}){pIno}-q&ijd1Q6hp4?9~wKs;6m8_s|Q z(IIhmUSRXPVJ8%Xd%*&F3m8S8=G$$i&yh&rr&Nm-Xi{u@jXH!@_RZ zgHtXgOK3$QLa%4bUpI@FC0O6&W_WB+QuRe^RmkdGu?Gq!(OYHAg0q9TkdbS! zLIBF=^mtcO7Pq0h1k3U>B+@;fxy$#ME@N=5_rPgPv3}Px5`&$Mar;}?Y6xh(4Mm8#r$p0t87(mc$}B4)WH)^P3s6mfM6?Q7 z3Kp<;JxcfZT6XbRKED$U-~P|StxQd$-oZKI_|jf%$q%$F$GmgP0G_`%#S!qf}bPL zK9KHD0m3U0os)&P5(qDe8Y3}puVb5d%By`30|bbZw5TlkTcuU2lr#-kSrOhkoRDgO zFU_&9fW6jjkR#RVy~p0v^y=|bK);2Mf_z*_o|N=h!>mxcb*)|*7qcRhII{U}0zjVL zYhLdpJHa$UvU`(1{fu9bu#%wbK*?cy`ZN*6r3PXEWyX*S)jNDDz&ii_6^um=E8GgA20JG7%B+y z&%Zcg>6+$j)$O_AXPJ{{0JY<4Fiqg&Jwv+>A!Qj!2WwlTPqNnHz7X>a5-laXAn5(g zb!d@%=xDAEZ0hIi(jmYpGPPVTNu$rD$^j32i*h{lrXF|di?kGSnyPh)Ti#RR9%zwc zPAB-R?>8xr_OvirJ(2zDV*)_~(6>W{j+)FHZ#7g#m69s}x~^LTb^QnjqXWCG1+7(T z|9EsD#*(;I;^LcB-&3C*u;wq;@^NOcyELj^w&k8y6lUXA9G)4h+2GS+r#5Ybr}34w zEPW%MoG_4H0(`H+^R6kA?k2ZLjiauG5^h{lBkP8ry=%?APH;tu4`tamQ}bF&c7Q-w zMRZ@~+19Z5XBpIGf=|*Nrxz3fQ(O1xPF#A7*5)F;%$K=v{k%5FRgi}Ixiqh>w6WD! zjN(LJSM=%M#Z(rH8V5Oc>pW85uq-5h@7k9-Z4=E$yip;qslT*FVZw_NGG zs6!RTS4$EEYKT_|n+Wc?c zSBNFl(S{a6nu{Cu;lsMC7$t}fE%33iDVcLsVaY|VM;K{^{}@?xqIxCnQr&d2uL&17 zGOID{fu&e$G;DRtD82b|;a&o4thWDb?(Js8*^mn}2B4$>`oJz2{=8<~&S3iTPZ19H zgQFbm{cJXNZZ3-Tr9gBgmZ%@i|~n zOS$ab8{)71`ZzR~yPjCT79kR2_k4PwLWbbb)yZQ_>P#=#cSq~ZwgQiPC9m*zl1&TF2iI;8A%;bVJR2sT4cQGH zZo8oh?1GSKSJHkfQ{}(OFOzQTO4!}17aBDs z;p6u9W6apTJ<9+W7t~M=!Hy~8#9h6|BEwVe^h+cPPgG2qUuxo&ho`^iD8r*q@SMriU4xkQ(G z?u$c)_cyx2?v_s){rK=b9))v$kKj<*S(9S4?aSL0!nw2GpsQVb8(6(01Vn}rI{=F2 znUW8#Xk&69zE00Uc6#{<%e1Vahk6BnpKCAFIW$=VJ4nfAT|d1t0Rj}30Jzn_NPSTZ z4*eRXUat23^L5%W&8!C^kp4EpbADyt;tn6oSyS||0pdG-GoPu#0%7n}It_u~Imm6wi*MAL^%U;PCsE6wfmL6$}eS1b>9kc$eqqN@o zorSE=PmnfAR}np;=3WwG^MY2ly4R~W%aJvEKZ>rWSfQe&GLh8$h4oFC2~V4_x_fEy!|(Q2XC0R<|H&Zo#VQ6G8pFcA`An2Lve2ohZwWn~TJen9oJ& zz|BB(UO;d0ne%8<>9K{` z_mk+W}r+04r0esM5~3X0)t;(dPiQ9##}UQNA{hIYhcV!{#^#Qu%yew8AQF^U~y zR*wQIt^M2a1(qaonJPN`v?AY-;7U;50puaVNJ?2D?2e792Q&DPM+O|HrBlVfA_|18 z$zAwH_pft?4-*7y%7fkE9E?4~(^9kEu-ChGyJN{60^V@(OIbQ6_KsN)^^eaa%|56> zCcIm+;0MdErM*0^!Gj)ABkmOI|Ly@6NMM53tr00j4?#zM^KX(`s&YG|u-e_0;8HAO5wGTNh)F(ss9V}1_r2*k6}m#xVSa2lB`I7oZtT3#or+X zn%c{?Vb`+VQ3Sa^R_GJ1RFW;u>U<=+I<*s-Z2I93@4|s{)3nYHmw&lJepV`PGj1%vBH(!;CSKBvGtngo%&Z@$gi*D7YVX49Q3Cr%nnL=kb{of0rFQVA_ z3GzEi^>Mu{HJ8+q3W6jtmYb+X{Jng@+K7;i2uGLS?j;Rsa{{hK^q=5hc delta 22600 zcmY(rc|4Tw_di~fowBbH#%=~B%D$6b#2EY7lC5M()@efa-4KPyKEsTCXQ-?d$(FT3 zw(MK>->sM4pYQK}Jp3{DTyw7Loa>zDS*~+QZn~J(bTNS!Ii;nhZ2WX=rFpHEeaNrK z?={g zsvNFV8dy9iM`HX(rVN_b8c!#m%ANRL`1h2l@I37~J;-iYF?+y#{!$5{Y*tYs$^DW> zFG3(DjYgn#B)RWP@cFmT2q24rl0;3+7Yf_zC_`{1TNUK|D=s`CuP(|f3gee(b`eZ@ z{+0%waK{?y1C7A=(VDrBUH#wdH*7wVcxc)E#jm^nqx~Ga=>o?$X_IRS5uLvzVyY9y z8NJYio_|(CpfH=ld_ObJKVJY*-Y14FL^Nr$dRYB?haxU+T9W3+8Od03p1nf?e@X~$ zTn7D5x!lFv71_?lM>bb+9I`SB3vq~e@z3w zZi+x&Hl7_KPJ4JYJK{47GrT=6=uo_n)^p{2%mtJQwcn7SjE_e;p<%A=5dQ!C8n2Gn z0e&22YKgY6CSNWz_{<1Dyw+f@8CSIYsB! z88*=0Aprj%%-Cj$mBWu+=Y!5`a6$aZ`pmfC?3Hs0WYD`}Q^A6PgAq;so7MBoJ&+$f z;|hgzVSKa>R%HU`qqy)T0ys9u!4|qW#Q^_e!a+zhjs?S%noVOk$ZcVhTp$M9240uN&5*FdcxR`UcK!7uSy`Jh;BkG4y=Z@*f~5A@=$3 zKXbp5&a2z#^+F=?G7JhC&K7jE{66&ze6Vm=>T~*JP{mo3#+dE4lXB9}^zfuxf?tef zl5|z=h%NuBIxq~N#f^V{Mypir4>IhyHqQ6=WVTL%*89}wgs8fcb4t$$o2rP*mD-%e z>S$AI`Teo284FH@Ds^is-w}@Vuf(P~aB4^rXm{ctYtIOtrq+_i1EdCOPM(wnJ6{EA zyD+lXq}`w*hJXGrw_q!Ue+WjZxq8@~&u{_MD}qD~bqo9PRtVuN{Q(2Dm_-k^iI?kX zX~_Zl@pLVOv@^TqgoFcCT`$A^{~*_D7p6x0;LTuR59HNw9Oo1m$D4WANjAQ9{i6o& zNR!ICG%?fvGyF;f=2z%llO-&NY=(|ChxFEHfkVUT;N!Ulq*-USynM@ix&8c5U&h?K z?1_ge2)$^m=-%b?RdV5@XiYDp8A+YG?-gnf9Pu_A(9oiHZi1V6B|Xyd8NYt*1nBl) zoOz8(KL!26MlxvQ;&UD=lvlT8qi5k23UGev@l>~$)2-afU-=|uc5An<#GO91=u1Ts zv=@_MWao2{LAMM|ZLJ?y9`06K7Ka$&T+IC6XhI@C8=+xeHACF3cw?BLEe~7l&i)qm^ zOZMGq10$t94+b^fj{-)(#9gjNQ&TtpZ+B4nsp3)+Le6SL`@Hx9Y1&NI>8I;c8vx!o zS~&RBpZ;%LwYhb5(t)nV+{d`)!)8YKS53BAbil)k45O}~|8a)>uvy}&+M_v}ls9Xl zjL3iOzxZ1tDhHYGZ>G9rcM%{KNLV}WJJms|)(JRfEO6KLa-~7Xy z|EBMxlDta{5L)bk*h4N`dwwd59XePNF1w$YVNVU%$0~MMd(6(-hQSkuMY=Vr zS1&cNjl1}ZD+ovN+v^fBZT2WNycv9^V*aVqBM8cydP=>+HUH+3rmT6hf*CB3D+K9_@j1~S4R&~L(4Xw ziDT_qfYYK*g!&2-OUo6XyiY9jD5QxgN|JY}XZ!(lfP7g5-%;i}3n6Kf?75&32&7mwjcp7-j z4O)1?+z`RI6f&E__QJ*9aI|@hdJnoSr_h@Cu5${qJZ9|RQLf%U7?hBhgN%K7F!bW}t>=_FDu!jj_1VQ|^8|&j?M1Y-S!>?_QKCMuR2G1AmiXt; zrlza)*_Osv1eJ@)ki-M4@b4E*-iI|eJ(_5|=WC|z$ za<&3Eb~z4YW!k4QWDvM0#tmpDwBsci)N8W@o%eb!$y8H7R&)GU3Y_86?iNZB3K{GC zDSbIGQ^Wb`0*LDFmjNqv#{H4uYn+)2z>I_+2BZFf49Bqs!EUr*MbMAd@DEn`r z^hlJWk+tMznN&p6riz^*)o5#YFizLjZt=A-$&HXGy^rm$52;-w{zNTb?-vt)j^n3y zB}zR#o@GIWHHmLiIm-y*T}%e8yp&0am_V3_lbl#W$>T4(LCecz{EECx>XXaq8lyf7 zfifl3Eb;M^f2xbVea~fTe{nm!gIEF7yM{b4C4JPa^W$4zg&G<_=(t)FLw~qoZm7fjU;rlETYN0EFnYWF7K2L z?{x==&g+l?B11;s;0L+pG%YRm#7Ebxsc}gYiqk$nw50sBECogxkt~88`k27c!)VFl$yosoOFx)Y#H74(oMLl!wh+mGW;j z6+L)Ic*%&G%O=>xL=rr2`>eM^%Eo8}$arr{0f=sc^jN%QM6Si--N51>x2-Hd^cod@ ze}V9xNBAjdyjEiL0XM!xdcT`BKax6=h#SK?n$A z^o8@qQW%Lz&_h%B!iQs$fV z0{0%B$dX}~bb}=vNkJHMp`4(1hw6xLk^D&gw`F5|+qC@P0K0JFRQerlj;G|P|F8j( zDS+2ta4#%6q_QFz%cGUKCJ!@@Xx7>347_Hkd)Y%TB8nD-k%5@A3LeA)2KT%!O*4Oy zT*HCqmED7+~{bzucBSiwc^klhH!xCjEcMFOD|p9@xmdL zA$uB^P;*Xy0_Y|ItiOPoQ@5cv(FzXW!ebd;*BUDY#GFe`nm&kc@j>2|VPSNFAl5&R zwuVw}ss$%x)P0q`(C8LMqVD?kubODWCi2myecc0D5G4(KSHR1Pw9k1~MH&Roht z{Udh;fC47KC8nk?Kwuo$$&yet+aaD<{95;g%E6i2cy{lP-`o9P`bH2oAFVqU(cC#(y(#Aw0LH&Al7+4RHM27-(|I(ftfi_-v>(eb?WC?UK-R1Mt`aF#1X=o{nl?a+ zk*d4C@q!99H!|D#j70-+5ftroXX?faF_7!)h};+U?uz)p&t%X8@{X52Oz;K>wNc$9 zlJ~hjK#HWbT9e1kPl2$=us+;TZ;xI0p8G>b8ygPlEoLl*4!&0fsP&#y+TU$+y3@yl znlt8&_<_!+1#le+06VrG)@-P@f}m$o7IRTMo)TM&!yvlGOO-8S?{#2`Mv) zgA+As?qs&JzeI@)s)S%X{Y}QMfUDux>jT`|NRIw|6rp60LO|APh@^tREXwAc2n1g{vmhTTsN zn^$?M=r$^1P6pR%t)S~Mgp!H(DQOw2WY|%MZFpPa>G@{D_)(1XLBtu=cz-Hg)Y^oP3WTY0>P)zi zb`yk2$z3IG{R;<{4fj=vQfEGl=UdaYhYLcZ>H}^*=#jm_4nwq$;XRJ@3#f+?9<(Np zl@?wSguOSD8QkNSp?ErO1*BjON5?%Cj9I(i-c7aSPj90Mo|_-24EKR$t57bdt^X5= zJ&Lh}0vb7}ylb31S&Lg#vrWvndo0mj5H>?W$v*2X!hYKIV^D*HnG7n%uc&n@0sS!n zzH{)4pk!m`FWD1p2nKiVNdqydkXcd4Tq>bL{N(X09})7ucp(nt3ckixQt=Z=dAa?C zKLVL+9AW9ERB<4iZJ%;6%$&_u9PU+LCl^9Vlq%#Ox2HEXIe+h`@Doi-k*N0NZ!v(1 znUvuoBilXo5#P!j#{>=A{|m-k1@STf-5&Yd0Nu}XjSsnE0k49gX1|2tNo7+<-v9oG zluDGv@+laP)f?7XBGqp0OJ*odocZbUFx%0dE{5P)fn#N($-dlStxt{}9hMZ@;3N89 zl;gM4##3m(?I-+sto$ujLz69MNXAH-q^q1Vk(VS2;>%)ry>49-!J2)PB9{(1QZP99 z-mm)DaYr`vjPBx9WYm!AD_E397^%K&>Wr zH|rsCzfr&@Kw;|^uZi)-2^s4fV})1`#Ddgj-epNI1*un8sK!VD$ZjXckLX?EsFgV?t&1(dfF@5&q8i$Ohn-a> z&M+(7dWuYxbO2&bC8`}c73~7WkC9BL`g&z`5{$LqE`u<6j&o-SW4bmewSVHf^wRpJ zDS}mZEoLi5m8y*WD(ll4ZafVV@FTALcSv-=587;Y2|oOm{?Nr{gA z0>Y7{!8RA3DB*04(VqI#)W}G$IIYeiwTn)=py8(;U(^wc1~t7vH1e9E_VQqEG}H#C zKQzk-!T|Bz-O^5|VahSDN|lvQv7-utH74%rVohy#8qGNvAYrh_LkZqu^cd=;h-9}Cu*9c8>YVZx@8GDTW|%)+vg^6pn(d3X|1M|F*PMC79GP1X5{)mpGzkWT ztW~@@+ljEs%*yeKgj!=@DCZEvb{YW7Jgb;emns#sd9@PcmdE)`Y0I7wTv(QDRARlZ zS9`kk_9H7V{|9+KD0CMlN5kRM)9Hf)rh4u#vJC?cFuUTx`_D_OJ2tz31i#ed$stgk z{2JL#*U**QQ$TygYt`nqzw`BZxu3awNvJl9=r(ody@#YINAFE~A!}KB^^c?^JZj+R zy~VDiB8m##U&;0l1d>l%wCVv}jVFjhp-9~u+GS>n%X>L4pkBNsRZrmmq7O%*F@*sJ zI*TQn$*s{FJOjLrD}QW5Q%D9L^5a4*M;2E&DL981;VPWA#@{5`HOND1Yuc{w*5%b) zy-_E)^17p?we2<^p2|S&AeFDpt-AuN6)~iP1XO|*BJ2tA zsP0JBLOH@kpNQ{r!k9qHK%~NA55}iD7aA~5{ z>q;yp;<0#(b*`rlw%136l)>Aqma`dwoeEv5oJ6TV{Eaz!qpv}+jdK|UarmC_t#YH$ zDB}fgzy?fiL{=AdAYqs&P_Ku4$$i%UOLQQc+6m^Gx8_V5WVr2wW&K>@i#4%l(Xm~k zM&0IR^N!<=0#d;OBf4moKql#kvhUw>*P`XN)e)>&M^#YD%(yTu^ktMI*ylPF?5|e4 zLIdAnfM3(WES5$4LJ{voF*cPpJ6oIGBWvJT$rkPtg) z1uv%?;9mAUkMpBd2=aVbXuWhaUE6ve5P$J zbjItQ>Fq?M;yjukt6Aqi*Cw~pc>3e8qci(t_m`yXR*%=r;Webg4~j%m&f@|hRM`6x z7@O_g{+0&T8qQyt9!^-+nNQ>C!c?ME+6fm>)qzR(7cS5Kn(e&Hz4g>YI1>WuB~YT2 z$@l1ir8)j=iHC4ikPzpu)VNbzRyBMxGb=^uM~*_C2aK#~rtN8~6TVraG#j+1TZ*ys z$6eFWTwfTWN!P-Q%s(dHjCZarwXB_PK5ZHB8TXw{&^lX@KHCrcvu>-`j(5|&Hb(^! z&t>d949BjX{Mlo-jO~#`IX>OAFVWZU%?-RRg5R9LycJ(H1h%F3J1^d;=)~fiq;`e5 z0wpx$!?3-o7`Fy%r^mUkpoG#Bj~6bkjy0>_*UbAI(0b7MI5oR9c-5H)^Suqm`^l)# z$_BZ7C%tSue%dd9N89xvS&Ge?$IP!<(BJ7xygn}zhF0{>z=1ayXB@0%q_2aO-z$wh z1#0Wb^=xLyxZ?n?ZpeOO-$#wDyQDhVoiP6OMHe$;^_hH{3OiZ;(hyeBMhjO7L zw*+jY`F(jlY(4k}pX(>o+@TVMY2db@j6|y@zZ+#lHA&K>_gPD*$T(=>s?)i+vq}~n zf1EP7Do{)E_a9+AmHH?%>?`$uK&Oi0+X;mxHK=sFZ_l>$+eyuxme~|OPF&zLS@hhT zU=1B&cQ8@1C=Q9{9p0`{s95nzZoX=8(IojYI|uLT_^td82EixO9e%-iQgtQXW{N>{ zwvwdIY2aL30n*xUhV)gkKD+EC;ktt47Cb!;LO(rg^y1spe-JUAWTkTB*@$(6bLnP7gi!gAQ+v`?fiv@SnR$r{ zJ8_w>B8Vi$|RW>o~bHvl-W7e|(fTfZI)Y}miB9x76 ze%$xs&BE%K{0VSqBDFS++aD_(1M5^@VQOCrG#)d6#SQK!E(a_QHGXc~1(%-uhKxLN zvp8|pLX?Z=WIKmih3t5d@b%QCwh2~nhftC*nb5#f1r$q@&SW9E=`#=pEMiE>A?(FL zalbDLeN$y}>^v#Df0-y1S(>}@oD6gI%B1wk+umBS<7P^+R+l5(+Nr)-OvGJf1fu|+ z*G~J6b@z@HW4?g;i3kNWs^KtAgN5z&Xtj3Az{SZ(4$H`YIz0{PH`W%l4}Fx6Z83(cffEpcy)*VAT|a=4;Zf-?~aYCrlJaFq+?B z&N6gq1)vFy`%+yymAH6t+Ko1Sgh;;4DSdG;`7tM>fDWtW`*6i_E3>$WyN0ya4VnU( z9!q`zit8z3Ydf{UdEP<6#|EwC$)%jP3>tn`7=U_}-ZyWg2>-YD>cqni;OQ!pJ?*s9 z!^~_rBOL4&#h})AynZ-iIvr?#^s900;d-Ub@qN+7*4{M@T(AGnInQ`$~&zX;40y5Y0S={ zZ(k>m_pkd&ct< zBBEDG*POCi{tn2 z|Kx*i^B?*9EvHh0L%xYiI|E*v#=WQCpYef%>Q&hc$3qn zZcKv=nT5;pr_N{~7-heGh7SfgK%mnXQTdH;jpgi2+L8#@G;r#>z-(Am-9cTld#a z-%9v78rcoWg(aAfA8YXp3ZFdOurw#m(ur>)9@ImWzC7|4S*vwJNqPvmH$UJl^^TvqesGjt5*oZU|#dUXh-zRK9o!wLlPyYGjSM-9EFpc_$K(tE0^V4saQG>YymxTC~H+!xs-le=sn1clFY3vHfFP} zeCD;t=y8oU1W8#`PjJy6$|SR5zVU(xmi1sLSZmMlT{*g+2EKiR;j!;*{cCpnvG_gt zy0x=1RgN2qPck^kT=8>s=={mA0PW|q6YE3mM5zo0zIxXAP5Y~j=JVULu6-7OE%M6K z!c~;Q??p|3%?i2_GUVkk8GyRO3J zq{>e~DU}KCmz7-Z+Nb<=KK!pGo<+WL&zxuU7^xat0{rtT&zPPRoknjChSc77*xci#B;w25zGGBo?1y z72dd&eZMXEBk-pTGLKrk4v`Q~5H?2m1l8a2dkZ-H6W!N3bgzd^v5*@Sjq(3up{57( zgcbDNzBzL&+vM1g7Vg?fZF=iKc&@PZ4|;Q7t8tVLu6X!C@xe4D=eOPZ3L=u4K!!WZgQsAG`?>y(japFEMXKk3@g)#ERr3O?%uAzbNsl$(Grs>8 z>V{z`Ml|<@hQ=qZL96t#Wu{DU-^@QR0R8dmKTWVUpJTVPQcrnK2Q}&+t8QP@yhX>37U~Ppt{$S@H8M zhDOuE9o21svwtA2Ejy~eN)Im=M3lA^Q|gsew>7_ z-D85^=4`Urx31f!v=O#I(1y*~u-U$S@3m+mAC%BW91=(b+aMmitS)ugGS!q35b#0I zef3sT{2?4>*712n4y>ncT&V&dxqMY84{KzBR}$ z2|Pe(Zy#V_M5%8MwkDZvj9Zu$0%oo;6EPXWPx5GA@MY_~UHZ41+O%*~F@r0;Bq+JN zA~p;%#z+sh;(Qw!q}li?vSVqSDLAr@f@*q?pGWd6T>*CXqc$0~$PMK)Ia!M|6Z?L0 zV4-M4CnnIBX-Ef8ikim|4yG&~-B&O;i`f_+7j3@1*LD0t)wh8Q@M)U@vG^IneyE8) zr-Mfu7bnUj3dq5;q^Q05kF<~+<}{|T19?&+7^Lu}^ZKL_Q9Yz#661#P`(ApnY!f<{Xs?nhoIDOZ8kn^l5kShcJMJO#pp z=P?HsDQ$2;qq})rZ*^ujDWECy$U1=xlQ=hXQ>6ZH#r90m*8n4DMDaNz%oMkd_F8dJ z^}IKAQBMs^k$ly8fsBAr4LwTvY?9BR&R%j7Y9No^w;nA=u5|>T%=TccXy7Wzab1fN z?JcVF^rn6T?fcf21JW_QruD-&awP4|tW*UM9+)aF)^cPUnF zp6;7K*1}G=mc$;e-T{}h(<0%QWWa^f9W}zdvj94uNmN{3OGMe4SXyB`Ju1f84~o|v z7F#w@|CpcnSb4xYh`QB2B!dDQ=NfdW4~YNlbp_9SlkT6d4A+0G_#$P_;$HZ{;abaH zRs~Ju>3()f?hBx)14buv7L}ztetC3qcsfd>k83^Nd-VbNHT(FL*9@n8rNYTdw^elh z5MA)bADcMjpWpAUj?Im%A6 z4nW>$r&8AT9dwo~f$ou)s=Z{98}7144G9;0;sI71``qZB71+b@;g*{!a8MjtK@9ty zK}dQ&jRcn~G^`wXE_xCq=wYAg{-P!@dD)U3Pr@K-L1O{9Vyuf8s{!9IT zY~qp1IzVUx(p7^s1bxf?J+iGGx+nKUw^)Aqa7d924IdA|xibW0i+(%}=bZi(MWFNd z*3j1w*i5a8o{rByfJZfwXN9i<|vNb*QT z?`~2+wSK&ct)sIJ_;F*!SUGdBecmR>#cSHgsW%jevLn}V*#TocK6;c}HoklAW#rHt zz3^Ee`dCogf(>fT(!|xyhw_2!Ib42KM9pb$ z?D|2vBOiz#zcoMAb|P*!L-7$0<%KoA-qmTats+bN?vRDFra^|33iQ*qP)Dcs*vY1TN*yIx@Uroyb7=X@{MTahvk(u^ z1ZXXCiI$Jfbv+<%c=tw?XYL+w@=o@aB4{t;+Mu6Bx;Wgy@6ta>0PP)~?zz*G)#IAY zd5+Ha%@RR#4ItO7CjZ6!ufr}@i+K!Dx~~MvXZvbk;Ht!HGFBtMfq0>e0xO!CMDHAW zOp$5u`-`OAU*w*HE3c@%WadED(>ZCyi*r2`=EhTL31Tf~Z!7D3P2SO}_u9m%OVSu7&(`Jlw__-v z->e%}6dM8?F~EUX;j9{)EkA45&%4hohFmFAlF~_zD;|_+&k>maiZ%KtXJ6uB-PW(Q42hEc&A%ceSca?+e4WFU z9zn=4#oqR>c`Ljt`4{1N+8{n9 zYJ|M5aCk|UR`A1~%~8`Z#``cJ4M{v~{N56AU9Ze4`J^OqLe-Ysx$>Rbm0I?c0J*fk zB}VUHp!ENh^j;p#-gb$PUv#~Wh=@rW*e6q$3|cHXSJ9-s|K;X#{pU*L?~8M{QWu1h zznG>4|IjI;gbt9c411Ep`qvi%#~`1>GF&d)H4b&Xz3AJnw*JvR;Yhy`8PReplEu~F zOVMIAdD1SY(4a*WUCsc;zEQ8*O02#x{Do_idbiKwV0F;N3qXMq)k}Z8CMharT0cg}-NIxOZIz znx9r9=}vY5VTy>g%tkICcTOaEzQ}xq3^JOXY8#PSl?GJ1IjT%<4Hbv*o!MJe87ArV$akQ+ej@uo5&%v=9Ik{2+HhUa`gFTmED_&=Hnica6vKdU+av<%oYml`KkR|mq!bM zB9Io|_(-vpBw6jwK1~pMb4%c%nNaz!NPexguV_Laij=l9m*M6E$^X$~d zoI+tT&^-CKS6Iph5!Ryn+flOK&r=0PR>iG)<+Yrhu{F73;O-A}yH;-QFGkbb=?a3? z)lA1HO+PpNzLG{4g;l%dYi1J-hca<6{>K;>zJ>yuxCYWOB0ucBhPNi0U^w+ZqJ-ps zbt6h~M)4ujB+Xr)P7i7H*}%Ldte)AFogyoOdYWev2}=Wp=c){H#Sk{{+qLT6eQAwe z|5I65+J*7M(B6-1PkO#oKr~#jfbpxY_^ck!_UKYF@ua$SX;SPR{p?LG1hKdAxqt}= zO4fe&2*Dt-gK8;oE6x1!}ssG%K4BQZ>uVo^ zWMc^pP+G5`@#B-*+w{GuQz!?a`D`)ikwr*i_yB&3+hqEY)>kwvNKf9Q{qM%Z2|2ba zjl3BPE)>?#&yr1c{vf;05ji2O4HQ|n-n;AMCj*tXeRs}Jz)4|i@{hSk zrHsQ&!Xw(jrcRtd!(w-#L_6|U=KnVDL=SN}D7}Bp!e%6u2VBV8pgr3uvFYm=fk~+p z3wA2@5U2H%#Jy=G!+5I2FLDght9N|S*PEkJ$@>No|_!D;`GA2~WW zv-`9epm>IGBfQm;AtN8&0qGOfqOFWLU%($EAKt%3_m^1xebfB>sOwE@E^i@ML}!|1 zMKd6{680c8SbQ+~P@$mmzgrX+h=%httAI`+;I;~y8BQ0rGjml@?qo+k%?xc?ajd?n z&1*h1Zst%VwkQApTL^HRjA???S_eGsd!c!d_Aa{yjB{v=o<*X$=t`H|p?h?o^XobU zP88#Tcw*Yn%n}zq%a3m?qCM&7QbBY>bd$Mpl@*O2Ec{l>#`k80p*EK=G)W8t z`Yhs2a1%P$$g#IL&U&ALhYK&4-Zi3boqzOTjq@rp z5l;7Er!t7sEaR47gak%s{F-zS1?n90o)N@*fjcXhOoIPLp%0QdHV1 z|37w9nUntjPH@Pmg6!R4S&cA0E9hjr+HC}~H!&Mcpjh~Kg9tTu@o;#=6@pj0-c5nJ zH9NF-#l~X%38PRH;qQ(D_@{(modMeF-PNPl$KD0R^gh;e!FuzluPH4eN42KJH2_jflwg2nc>C_f!mE#>k9OH-i5? zeTNQ<{z9+Q1KG2|&wdiYfZjWLS|f&sec=-p*T|s!-4}M>o7|=~ve#=TzdS~FHjDuH zBFk(7kNGbim8kZWeJRg_lr0dD4-w4Yn_PP=sTY6iuVw*-<%aJA?h&bcmjc(;lP9DF ziABN0UaZOFGF-IFB)mE#fOyCJB+IQ^4_m>>GBWH)fUhKCtmjqB?I8dTI{@0}H1n@7)^uGf)ToV2gMP8xAUdd!sdWe!V zPB3*Jqx#FP6^gN526YGj%w50Pd)N{6!GVn{yUC>@gX`>TC7`bV{paj4aM_I(dY7z> z0xBc?YyyNSyt@T7DxZzG&`As%`Otj`1eq#jO59z|zrOn-)b0=`SRle!iHD!<{#~$# z4Wb$eoN~zSuHF_E)_)yKp>H5-x_E3d$IihBr{!Q&vfaTI-Tr$$=X(P|n>W>q{>(U7 znHg_$Di{{I`F)REGxkS1{@xl6*Jqn9m~h1^k=@lop{q|!lK-1yT@?toUlDqjJPLSx zpG@v>fqJ)stbO-XJ8J!A+5)VQ3~(!8^_H6@i6)3I)_)g&LWadJftEi%Qivmz5ESOv z6uf^mYSaqtWdMD`>Hrryi0X6Q9HNJRE>(M=8VKAU1MVaR#IsHQO8i;~N6}n3#~MJR z3MuMsfG*{kB*)H^Ls~c^E!LJigp{>kt36(Bwxg zJ3A99D!E?w9mDVDx!tgGn@~rYh<}F7bG>ZgE8A|Y)vhm?wa(# zod&>Muc6SI*sgpTxIper?VsAYs3%jq1eI=XO+73a=@89s@P*dKkqj!`Dfd%TGS~fE zHQH5d?^(|V(DKe$K~jsTEqFktv1^P!S}_y_x&JOqMJRXcUl*w z-2IoD)i=8P>3nxQSKsor7rf;zD_F$R+*1wn)?>T{9-!)dTjg%SI(`fPRMF5L=>M;} zy>j^iGT|OjN-foR3Z%Fl$j65Vf5xgGxkZrEN>p}D8!+!$ci2oketHx(K0=u&;=J)k z251EOFqoE49rflw1(~pDuEUVUK9U>oD>^yAcHVujp117Q8?O?zB?OF>-q{WL(zcN& z`e!M6gT-wilZWjEF&Xx$3sU5rp{aS&y9z`)lF4``>V_q{$LV?oG?|82si+^gUHL{7 zZ(gRiV5)BHs9xi>GQxSw{7(Sdtr*C{gdWIJ=;S5;ULI?_Chn<7HZtMg>I#D70dwZ; zeiZNcS@SAt{By-8sr^a31B%c4zJn_501p&yU77+{*GzrBYe>=-<^8ceRPcgI*lqzb z_QC}TA{e+_LsV}`uRBVtl;ax%9GvDxk+x`D3vkw2p?BiM zsR-9oBPzwoaLaegtNR7zhwV2|Ljb3t1PZsoHlvA$HnxrO=)q>7O@8!Zd-2a7HPN-y zNkL&5n7+$N-mQ1<#ZjeoF}<3f)EV=&G;ARGDqd)cVK=%&Nh7QjaOnaA4_*dYrn_+J zwFc4P4bzPOe&P{L&^9f*DP-;t_U>CsXD%@;5d+m`7wDjulQj(Z#+PQ{rFeP1YZ;Lqth{u# zd3Oh8%?Vtw!2=Obl8$TB@`^qn`Hjd$G(tbzgHZj_Qv96u=$fb-*tv<#8GJQ)L^nJv84_266PS};YZ3$pjKY+p|(m{9PQq!ueGrNya>o8Q^X z>av<`Z9K$jauQtyK_tvPtZusFGHn~p-WG%OP>g*Rk{%y6inOr>?x=h?sjxNwqx&`E z#xd`genDriIm*|tCqcXFKGkRpnv7SueSEB|_6ejy`~V4DQN9E8|2v0PXj^7=L5c&= zJy&c^R(NTZguyzqDZic4m2PGh)KPuQW;ZZAwBSuIz@efD$u-%`KGm9t^aMEF+?|6r zl_AZ$p{t>Yi<@hDcZgx8$^`G5ZeqZBzVeHe`yy1+0}ODE*cw-%EGOIr6yvvu9<7?m zdsgIzTSz(8$wRXrM~6}49KS>y9=*{U&j3N*AQeVmeHHVyTugI{D^K^bh;<0imyd_B zn_kUHs^_riZkEMy1YpMK04IO90*Fjtix}F~eg^sq?Md%hlc*!B)V{Tb<+j)buvVf@ zSZZEXceZ+0ghMx2Z(wNCt?a23?r9+HhlzYEq>&byk4}F~H_k9l#GN{_DoIht0+(d_ zD(UgBjDnFJu~jLo4{m#x!)`~}mn0!p4IZXL;;EiNf_$NQ-X^sEbZ%=)v%xF-z>^kE)%}Q z1}yg`&xn~>Uv?42fj-n`n+fQOkOJ}Fv>FFAHl^VsNbB~8FExaLgeUINARWFSe6di3 z@q4XS6%c0S8G%CL?aJrmND~IQmPB`#QY(9Li)EKEKIuWG6y~>id0$+ZlTly)&eE$u zg<(AepPjfwpnG2L6dpvYkw|8CNPDq2+C(W%eO%*{*Lhgct%GItHnkhe~@i;(SwgNiPHVJiF?qr_GoH=hD>)KEj1VuB0vbwdxk?}aq#5)yZHAongl`Ov<8 z3~<|b5jDgkqHWhDjFJhPpoMo3!&JHbU3-P&D~Wd@z{U8Lw9AT+F-WqNCYa8*mm4#n zVnnWY=dybjrr6waD>+e9#g+jb)UR{ytT*yezJ=OBNHLFC`FKEl}9SG~zrdh%7}1QA+5EUGQO zr`%)dy*OW^VpwBsUSPQCvDVz)iM`-CHAQkkwDv#SmQlm{okk5+C#xx`0uy5%5&UpV z<6Ac%SjJBecBaD{>dmQ|(%gb~);m-Q;B%WLNSV_+F6%-|_P|GnqC&1{g3$x5wbrF) zjCm%#Jysc?)T>*l8!H7^v{GQ5-j|fe4T2)fms~pgpxJP|E!4C9{ClS3q&IO(pUsCe z_D$YdjiD@Vq5TAIBGQj|eP>gBLuylD*T^18Y3||sIMIa%l$J({IPWq3vcscQ3KW&rW^#|Y2Igpz$Qror`Ei1lbF8)IB z-QU}#x$pA}Ms~?u05Y4!#DJH_;T66gTKm3QLf@udZWH&`sTlrlbQ$o0Ma6p(0uz*Onfp4mEmY>;?0&r>tpFC_H%qWtVc0L+y z(rCVAWu0s`^a`YM=av!B3;pR)FD*pjI~NHO6Hn$NeX?d!mkCS(?v?euE!*N-9>@M+N<+IE&fKv&OO0i{ zk|shkO)zm%z5^1ZL;zb>ig{cmRg??icmgQEtX)x^K94J1c!f!<;tS15WQt^C(U_>0 zfha^_AurJVZlx5&yCR{F(LH%B*xf_BR8rcl$JF7T)V-BOJT{}FJB|~?2kB3LzUl1Gg=(6?2=1hg>;7wFd_)^eBaC3;9 z-{JJACKH>ubd%hx5g-l$SVswRT2TPg4&*Scd5X_FXXOlRn)!n8N%HOfOhMoKY)ugA zh9F$zu7|^T5IUM?HeOQ+8_&eClm3eL*xBZ6wM?JyB`7%jehYj3%N5L;r!v{e{Ep$K z<^u6}^gTAiSzEfEh_p=6;sNAv0=v-}1)aLR9hnAW9(g7?SqIG~`v*Rw9c&WKVfrVd$~LFaF=}&x`$JlvT**tX zt0s~80wHoSfP$yQG8m=yq%y+qeiGL$Kn`_Aq}C}AXRbiN0H2?YbyRM*rQkaO=_Fc% z&(T;Xs>|m?u`jC{RPD{7l~ClOo+YIj#bYIKhC78MABs$jG;0zg2?yW+4rDiEAW!~9THCP$f5)k_|{D;I7$+|>;&QFBk3A#);WS;gBcyYHqL z(y}5SoyA9Y4c7q^G@dpxro>WGBO>)z5U1k+zmpFIaJAsPW{Jd zLG}6HKHZYlBIJYR$=VuDCt_^@Wadd5E3BvSoLQ3wD)+JztpxhTdQ*iDld3IWsNrP# z#pmXUZ$%~;8Bky4H7-}s`*iMV$X`2^5j+w$MJBSThWn7CpK@jRK_ySn>lRT*2cr4q z6#^6Ar)&QhudjUWW2?DtRYE}QeM^p?TL7WT{}8wa#U9L3a|dImvcm1Nw0JfEh^Zt= zYO}Uki7b^zmTvzfPxb>ycYgS;9~vsaiLKnb55x%|oP-T}oXA+|vGcf~zjOL2U!ay5 zdn`DWCoS3t(8|D}M=b{;=H{qg0m9Z6-H$epyCbIV5G-R%w-#RT1fj;M7a|=XL8OtbVc@b4Ddp9d@?^f!%K0F>S8p7|&WJ5OO_0;Vn*y_Ys*n~^rx}AnWAb*&* zYBOv~8>w|KLWXE?QzU64_~*fW#m7zIygfi-je?pg_A-w7x!eFx(4)b}jLfPVgT2v; zq|BWm?0z>xRP(XS-|rvI?I=7XCWe(Zcvf+#BjnQyTA(;*S@?=7{8%ijY~io=Hv6f8 zDqELeEN;st5ws<^q_M~Ba|8?O!d#7BEbp__Gp#=`6$QL|qYQIR=akvBT|?I#{Zp3q zMiuMM%8_q1w9b|&=svP|`rNP84*0Z=l_P2ku^fo*lbPC4>yMm)A<9^vWBGd<_a z{y47>wqGjz0pH4f(!NKYm~N)aM;H$>T5CEBvmc^o+1p%tlF*X z!4d;)5vJ~cN93QalCjUOUrLJCXWLJ%Do!|KDQLw;3tUD~^UT+W@z6K?;Y+vL@0YTV z6E(=_-97vBV>~I6fTqxm6O%g6D(IUfMuTUF&^o9SU2nw{yzLo?Q-#ngC4j&6d{{xl zY}*W;07?)<$|}01R<_9G*%q|qXyhS{3dRL|=k;B!D?0w9D0 zBaIdB{0#U`Y<2eraX5R>T@6UST68}nE@TIhjHyl+?njvOIT#=xy%z-##D+4>52iIR zy;87Fxn+N{suK1?c^wr4^@?eKc{5o?Qrrsq4@8+DEF65f!z0SUZPYep#%6#=kv^sA zq8EVwP)>QE>|(on99Wj4p6^3U#=MKT9kKuDi>+dS9#R|(RhO;2#m?ZkB@ivLyCTy| zZDnkFg*Uky^?XOF#g60>R5nz7;i4p%yFcR1*IW=MFW@(RxNoTIaS1gDf`4zqHzgso zM^%!Bu7~ZI9xvY=MwOP2yU3SroRcRL6n?^Zb{8_%9#JQtzZ=yqM-=LocEOx^Pr4rV|6isi{RC%}u>$G}2> zMZ9lMiQihac(WM9D!V;?e;v~QX7{b&@z-)sb1qG*J@!dkX&yH& zigSbVXEi()r#>E#PqI4c^D*OeouL!1XXfi_=_mDp7XN|z-uCYnNo^6p$*^%eYwnkAmO+G;uP4xWT#G2j#WBS*vu&Mv7w`LU=#46bH9eZPZ zud5&TBa+VHE+jh?hfa2dqSzZ)WWFq@?+pGlOj*&O1~DOk^v z_4LY^{65|Tz=veCfdJkeAmIoE=;g@GuPzVqda-2H2lpRo`%7D5d)LHAtr@r8$hXLy5#jJIvj5{d5mhFIA0Oko8NWT zqZ=i9x?v)a(UIE;33N9vc4=_iY&hC#?I#YLR)8qEJYbp@ua`-N9>AQ}O8h=c7<(B` z@X@Xjp*kXN`^Iw;&LATBB>|JDmGu3vFnjIMz+$~&&E^xM1w-SB251*zN6b!(H+-vHJa~ISov?IG)Yp) i*q(00uix);e*AW47qtqXBK!K3=$<{+8B=XdN%}v+6pOe3 diff --git a/wp-content/plugins/wp-mail-smtp/assets/images/loaders/loading-blue.svg b/wp-content/plugins/wp-mail-smtp/assets/images/loaders/loading-blue.svg new file mode 100644 index 0000000..5519045 --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/assets/images/loaders/loading-blue.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/wp-content/plugins/wp-mail-smtp/assets/images/loaders/loading-white.svg b/wp-content/plugins/wp-mail-smtp/assets/images/loaders/loading-white.svg new file mode 100644 index 0000000..ae6fe14 --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/assets/images/loaders/loading-white.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/wp-content/plugins/wp-mail-smtp/assets/images/loaders/loading.svg b/wp-content/plugins/wp-mail-smtp/assets/images/loaders/loading.svg new file mode 100644 index 0000000..0be46bd --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/assets/images/loaders/loading.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/wp-content/plugins/wp-mail-smtp/assets/js/smtp-admin.js b/wp-content/plugins/wp-mail-smtp/assets/js/smtp-admin.js index 9fb5f4b..d42077a 100644 --- a/wp-content/plugins/wp-mail-smtp/assets/js/smtp-admin.js +++ b/wp-content/plugins/wp-mail-smtp/assets/js/smtp-admin.js @@ -296,7 +296,7 @@ WPMailSMTP.Admin.Settings = WPMailSMTP.Admin.Settings || ( function( document, w } ); // Set settings changed attribute, if any input was changed. - $( ':input:not( #wp-mail-smtp-setting-license-key )', $settingPages ).on( 'change', function() { + $( ':input:not( #wp-mail-smtp-setting-license-key, .wp-mail-smtp-not-form-input )', $settingPages ).on( 'change', function() { app.pluginSettingsChanged = true; } ); diff --git a/wp-content/plugins/wp-mail-smtp/assets/js/smtp-admin.min.js b/wp-content/plugins/wp-mail-smtp/assets/js/smtp-admin.min.js index d837d56..70c267f 100644 --- a/wp-content/plugins/wp-mail-smtp/assets/js/smtp-admin.min.js +++ b/wp-content/plugins/wp-mail-smtp/assets/js/smtp-admin.min.js @@ -1 +1 @@ -"use strict";var WPMailSMTP=window.WPMailSMTP||{};WPMailSMTP.Admin=WPMailSMTP.Admin||{},WPMailSMTP.Admin.Settings=WPMailSMTP.Admin.Settings||function(i,e,a){var s={pluginSettingsChanged:!1,init:function(){a(i).ready(s.ready)},ready:function(){s.pageHolder=a(".wp-mail-smtp-tab-settings"),a("#screen-meta-links, #screen-meta").prependTo("#wp-mail-smtp-header-temp").show(),s.bindActions()},bindActions:function(){a(".wp-mail-smtp-mailer-image",s.pageHolder).click(function(){a(this).parents(".wp-mail-smtp-mailer").find("input").trigger("click")}),a(".wp-mail-smtp-mailer input",s.pageHolder).click(function(){var t=a(this);if(t.prop("disabled"))return t.hasClass("educate")&&s.education.upgradeMailer(t),!1;a(".wp-mail-smtp-mailer",s.pageHolder).removeClass("active"),a(this).parents(".wp-mail-smtp-mailer").addClass("active"),a(".wp-mail-smtp-mailer-option",s.pageHolder).addClass("hidden").removeClass("active"),a(".wp-mail-smtp-mailer-option-"+a(this).val(),s.pageHolder).addClass("active").removeClass("hidden")}),s.mailers.smtp.bindActions(),a("#wp-mail-smtp-pro-banner-dismiss",s.pageHolder).on("click",function(){a.ajax({url:ajaxurl,dataType:"json",type:"POST",data:{action:"wp_mail_smtp_ajax",task:"pro_banner_dismiss"}}).always(function(){a("#wp-mail-smtp-pro-banner",s.pageHolder).fadeOut("fast")})}),a(".js-wp-mail-smtp-mailer-notice-dismiss",s.pageHolder).on("click",function(t){t.preventDefault();var e=a(this),i=e.parents(".inline-notice");if(e.hasClass("disabled"))return!1;a.ajax({url:ajaxurl,dataType:"json",type:"POST",data:{action:"wp_mail_smtp_ajax",task:"notice_dismiss",notice:i.data("notice"),mailer:i.data("mailer")},beforeSend:function(){e.addClass("disabled")}}).always(function(){i.fadeOut("fast",function(){e.removeClass("disabled")})})}),a("#wp-mail-smtp-debug .error-log-toggle").on("click",function(t){t.preventDefault(),a("#wp-mail-smtp-debug .error-log-toggle").find(".dashicons").toggleClass("dashicons-arrow-right-alt2 dashicons-arrow-down-alt2"),a("#wp-mail-smtp-debug .error-log").slideToggle(),a("#wp-mail-smtp-debug .error-log-note").toggle()}),a(".js-wp-mail-smtp-provider-remove",s.pageHolder).on("click",function(){return confirm(wp_mail_smtp.text_provider_remove)}),a(".wp-mail-smtp-setting-copy",s.pageHolder).click(function(t){t.preventDefault(),a("#"+a(this).data("source_id")).get(0).select(),i.execCommand("Copy");var e=a(this).find(".dashicons");e.removeClass("dashicons-admin-page").addClass("dashicons-yes-alt wp-mail-smtp-success wp-mail-smtp-animate"),setTimeout(function(){e.removeClass("dashicons-yes-alt wp-mail-smtp-success wp-mail-smtp-animate").addClass("dashicons-admin-page")},1e3)}),a("#wp-mail-smtp-notice-bar").on("click",".dismiss",function(){var t=a(this).closest("#wp-mail-smtp-notice-bar");t.addClass("out"),setTimeout(function(){t.remove()},300),a.post(ajaxurl,{action:"wp_mail_smtp_notice_bar_dismiss",nonce:wp_mail_smtp.nonce})}),s.triggerExitNotice(),s.beforeSaveChecks(),a(".js-wp-mail-smtp-setting-mailer-radio-input",s.pageHolder).on("change",this.processMailerSettingsOnChange)},education:{upgradeMailer:function(t){a.alert({backgroundDismiss:!0,escapeKey:!0,animationBounce:1,theme:"modern",type:"blue",animateFromElement:!1,draggable:!1,closeIcon:!0,useBootstrap:!1,title:wp_mail_smtp.education.upgrade_title.replace(/%name%/g,t.siblings("label").text().trim()),icon:'">'+wp_mail_smtp.education.upgrade_icon_lock+''+wp_mail_smtp.education.upgrade_bonus+wp_mail_smtp.education.upgrade_doc+"")},buttons:{confirm:{text:wp_mail_smtp.education.upgrade_button,btnClass:"btn-confirm",keys:["enter"],action:function(){e.open(wp_mail_smtp.education.upgrade_url+"&utm_content="+encodeURI(t.val()),"_blank")}}}})}},mailers:{smtp:{bindActions:function(){a("#wp-mail-smtp-setting-smtp-auth").change(function(){a("#wp-mail-smtp-setting-row-smtp-user, #wp-mail-smtp-setting-row-smtp-pass").toggleClass("inactive")}),a("#wp-mail-smtp-setting-row-smtp-encryption input").change(function(){var t=a(this),e=a("#wp-mail-smtp-setting-smtp-port",s.pageHolder);"tls"===t.val()?(e.val("587"),a("#wp-mail-smtp-setting-row-smtp-autotls").addClass("inactive")):("ssl"===t.val()?e.val("465"):e.val("25"),a("#wp-mail-smtp-setting-row-smtp-autotls").removeClass("inactive"))})}}},triggerExitNotice:function(){var t=a(".wp-mail-smtp-page-general:not( .wp-mail-smtp-tab-test )");a(e).on("beforeunload",function(){if(s.pluginSettingsChanged)return wp_mail_smtp.text_settings_not_saved}),a(":input:not( #wp-mail-smtp-setting-license-key )",t).on("change",function(){s.pluginSettingsChanged=!0}),a("form",t).on("submit",function(){s.pluginSettingsChanged=!1})},beforeSaveChecks:function(){a("form",s.pageHolder).on("submit",function(){if("mail"===a(".wp-mail-smtp-mailer input:checked",s.pageHolder).val()){var t=a(this);return a.alert({backgroundDismiss:!1,escapeKey:!1,animationBounce:1,theme:"modern",type:"orange",animateFromElement:!1,draggable:!1,closeIcon:!1,useBootstrap:!1,icon:'">'+wp_mail_smtp.default_mailer_notice.icon_alt+''+wp_mail_smtp.education.upgrade_icon_lock+''+wp_mail_smtp.education.upgrade_bonus+wp_mail_smtp.education.upgrade_doc+"")},buttons:{confirm:{text:wp_mail_smtp.education.upgrade_button,btnClass:"btn-confirm",keys:["enter"],action:function(){e.open(wp_mail_smtp.education.upgrade_url+"&utm_content="+encodeURI(t.val()),"_blank")}}}})}},mailers:{smtp:{bindActions:function(){a("#wp-mail-smtp-setting-smtp-auth").change(function(){a("#wp-mail-smtp-setting-row-smtp-user, #wp-mail-smtp-setting-row-smtp-pass").toggleClass("inactive")}),a("#wp-mail-smtp-setting-row-smtp-encryption input").change(function(){var t=a(this),e=a("#wp-mail-smtp-setting-smtp-port",s.pageHolder);"tls"===t.val()?(e.val("587"),a("#wp-mail-smtp-setting-row-smtp-autotls").addClass("inactive")):("ssl"===t.val()?e.val("465"):e.val("25"),a("#wp-mail-smtp-setting-row-smtp-autotls").removeClass("inactive"))})}}},triggerExitNotice:function(){var t=a(".wp-mail-smtp-page-general:not( .wp-mail-smtp-tab-test )");a(e).on("beforeunload",function(){if(s.pluginSettingsChanged)return wp_mail_smtp.text_settings_not_saved}),a(":input:not( #wp-mail-smtp-setting-license-key, .wp-mail-smtp-not-form-input )",t).on("change",function(){s.pluginSettingsChanged=!0}),a("form",t).on("submit",function(){s.pluginSettingsChanged=!1})},beforeSaveChecks:function(){a("form",s.pageHolder).on("submit",function(){if("mail"===a(".wp-mail-smtp-mailer input:checked",s.pageHolder).val()){var t=a(this);return a.alert({backgroundDismiss:!1,escapeKey:!1,animationBounce:1,theme:"modern",type:"orange",animateFromElement:!1,draggable:!1,closeIcon:!1,useBootstrap:!1,icon:'">'+wp_mail_smtp.default_mailer_notice.icon_alt+'\n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2020-08-20T16:39:06+03:00\n" +"POT-Creation-Date: 2020-09-17T12:40:51+03:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.4.0\n" "X-Domain: wp-mail-smtp\n" @@ -33,55 +33,39 @@ msgid "https://wpforms.com/" msgstr "" #. translators: %s - error code, returned by Google API. -#: build/wp-mail-smtp/src/Admin/Area.php:126 #: src/Admin/Area.php:126 msgid "There was an error while processing the authentication request: %s. Please try again." msgstr "" -#: build/wp-mail-smtp/src/Admin/Area.php:133 #: src/Admin/Area.php:133 msgid "There was an error while processing the authentication request. Please try again." msgstr "" -#: build/wp-mail-smtp/src/Admin/Area.php:140 #: src/Admin/Area.php:140 msgid "There was an error while processing the authentication request. Please make sure that you have Client ID and Client Secret both valid and saved." msgstr "" -#: build/wp-mail-smtp/src/Admin/Area.php:149 #: src/Admin/Area.php:149 msgid "You have successfully linked the current site with your Google API project. Now you can start sending emails through Gmail." msgstr "" #. translators: %s - Mailer anchor link. -#: build/wp-mail-smtp/src/Admin/Area.php:180 #: src/Admin/Area.php:180 msgid "Thanks for using WP Mail SMTP! To complete the plugin setup and start sending emails, please select and configure your Mailer." msgstr "" -#: build/wp-mail-smtp/src/Admin/Area.php:203 -#: build/wp-mail-smtp/src/Admin/Area.php:204 -#: build/wp-mail-smtp/src/SiteHealth.php:40 #: src/Admin/Area.php:203 #: src/Admin/Area.php:204 #: src/SiteHealth.php:40 msgid "WP Mail SMTP" msgstr "" -#: build/wp-mail-smtp/src/Admin/Area.php:214 -#: build/wp-mail-smtp/src/Admin/Area.php:215 -#: build/wp-mail-smtp/src/Admin/Area.php:862 #: src/Admin/Area.php:214 #: src/Admin/Area.php:215 #: src/Admin/Area.php:862 msgid "Settings" msgstr "" -#: build/wp-mail-smtp/src/Admin/Area.php:222 -#: build/wp-mail-smtp/src/Admin/Area.php:223 -#: build/wp-mail-smtp/src/Admin/Pages/About.php:653 -#: build/wp-mail-smtp/src/Admin/Pages/Logs.php:48 -#: build/wp-mail-smtp/src/Admin/Pages/LogsTab.php:30 #: src/Admin/Area.php:222 #: src/Admin/Area.php:223 #: src/Admin/Pages/About.php:653 @@ -90,1263 +74,1013 @@ msgstr "" msgid "Email Log" msgstr "" -#: build/wp-mail-smtp/src/Admin/Area.php:232 -#: build/wp-mail-smtp/src/Admin/Area.php:233 -#: build/wp-mail-smtp/src/Admin/Pages/About.php:106 #: src/Admin/Area.php:232 #: src/Admin/Area.php:233 #: src/Admin/Pages/About.php:106 msgid "About Us" msgstr "" -#: build/wp-mail-smtp/src/Admin/Area.php:296 #: src/Admin/Area.php:296 msgid "Are you sure you want to reset the current provider connection? You will need to immediately create a new one to be able to send emails." msgstr "" -#: build/wp-mail-smtp/src/Admin/Area.php:297 #: src/Admin/Area.php:297 msgid "Changes that you made to the settings are not saved!" msgstr "" -#: build/wp-mail-smtp/src/Admin/Area.php:299 #: src/Admin/Area.php:299 msgid "Heads up!" msgstr "" -#: build/wp-mail-smtp/src/Admin/Area.php:301 #: src/Admin/Area.php:301 msgid "

The Default (PHP) mailer is currently selected, but is not recommended because in most cases it does not resolve email delivery issues.

Please consider selecting and configuring one of the other mailers.

" msgstr "" -#: build/wp-mail-smtp/src/Admin/Area.php:304 -#: build/wp-mail-smtp/src/Admin/PageAbstract.php:83 #: src/Admin/Area.php:304 #: src/Admin/PageAbstract.php:83 msgid "Save Settings" msgstr "" -#: build/wp-mail-smtp/src/Admin/Area.php:305 #: src/Admin/Area.php:305 msgid "Cancel" msgstr "" -#: build/wp-mail-smtp/src/Admin/Area.php:306 #: src/Admin/Area.php:306 msgid "Warning icon" msgstr "" -#: build/wp-mail-smtp/src/Admin/Area.php:311 #: src/Admin/Area.php:311 msgid "%name% is a PRO Feature" msgstr "" -#: build/wp-mail-smtp/src/Admin/Area.php:312 #: src/Admin/Area.php:312 msgid "Upgrade to Pro" msgstr "" -#: build/wp-mail-smtp/src/Admin/Area.php:316 #: src/Admin/Area.php:316 msgid "Bonus: WP Mail SMTP users get $50 off regular price,
applied at checkout." msgstr "" -#: build/wp-mail-smtp/src/Admin/Area.php:325 #: src/Admin/Area.php:325 msgid "Already purchased?" msgstr "" -#: build/wp-mail-smtp/src/Admin/Area.php:394 -#: build/wp-mail-smtp/src/Admin/Area.php:401 -#: build/wp-mail-smtp/src/Admin/Pages/About.php:334 #: src/Admin/Area.php:394 #: src/Admin/Area.php:401 #: src/Admin/Pages/About.php:334 msgid "Activate" msgstr "" -#: build/wp-mail-smtp/src/Admin/Area.php:395 -#: build/wp-mail-smtp/src/Admin/Pages/About.php:326 #: src/Admin/Area.php:395 #: src/Admin/Pages/About.php:326 msgid "Activated" msgstr "" -#: build/wp-mail-smtp/src/Admin/Area.php:396 -#: build/wp-mail-smtp/src/Admin/Pages/About.php:323 #: src/Admin/Area.php:396 #: src/Admin/Pages/About.php:323 msgid "Active" msgstr "" -#: build/wp-mail-smtp/src/Admin/Area.php:397 -#: build/wp-mail-smtp/src/Admin/Pages/About.php:331 #: src/Admin/Area.php:397 #: src/Admin/Pages/About.php:331 msgid "Inactive" msgstr "" -#: build/wp-mail-smtp/src/Admin/Area.php:398 #: src/Admin/Area.php:398 msgid "Processing..." msgstr "" -#: build/wp-mail-smtp/src/Admin/Area.php:399 #: src/Admin/Area.php:399 msgid "Could not install a plugin. Please download from WordPress.org and install manually." msgstr "" -#: build/wp-mail-smtp/src/Admin/Area.php:400 #: src/Admin/Area.php:400 msgid "Install and Activate" msgstr "" -#: build/wp-mail-smtp/src/Admin/Area.php:402 #: src/Admin/Area.php:402 msgid "Download" msgstr "" #. translators: %1$s - WP.org link; %2$s - same WP.org link. -#: build/wp-mail-smtp/src/Admin/Area.php:464 #: src/Admin/Area.php:464 msgid "Please rate WP Mail SMTP ★★★★★ on WordPress.org to help us spread the word. Thank you from the WP Mail SMTP team!" msgstr "" -#: build/wp-mail-smtp/src/Admin/Area.php:803 #: src/Admin/Area.php:803 msgid "WP Mail SMTP Pro related message was successfully dismissed." msgstr "" -#: build/wp-mail-smtp/src/Admin/Area.php:822 #: src/Admin/Area.php:822 msgid "Educational notice for this mailer was successfully dismissed." msgstr "" -#: build/wp-mail-smtp/src/Admin/Area.php:861 #: src/Admin/Area.php:861 msgid "Go to WP Mail SMTP Settings page" msgstr "" -#: build/wp-mail-smtp/src/Admin/Area.php:868 #: src/Admin/Area.php:868 msgid "Go to WP Mail SMTP Lite vs Pro comparison page" msgstr "" -#: build/wp-mail-smtp/src/Admin/Area.php:869 #: src/Admin/Area.php:869 msgid "Premium Support" msgstr "" #. translators: %s - WPMailSMTP.com Upgrade page URL. -#: build/wp-mail-smtp/src/Admin/Education.php:69 #: src/Admin/Education.php:69 msgid "You’re using WP Mail SMTP Lite. To unlock more features consider upgrading to Pro." msgstr "" -#: build/wp-mail-smtp/src/Admin/Education.php:80 #: src/Admin/Education.php:80 msgid "Dismiss this message." msgstr "" -#: build/wp-mail-smtp/src/Admin/Notifications.php:441 -#: src/Admin/Notifications.php:441 +#: src/Admin/Notifications.php:442 msgid "Dismiss this message" msgstr "" -#: build/wp-mail-smtp/src/Admin/Notifications.php:444 -#: src/Admin/Notifications.php:444 +#: src/Admin/Notifications.php:445 msgid "Previous message" msgstr "" -#: build/wp-mail-smtp/src/Admin/Notifications.php:445 -#: src/Admin/Notifications.php:445 +#: src/Admin/Notifications.php:446 msgid "Next message" msgstr "" #. translators: %s - plugin current license type. -#: build/wp-mail-smtp/src/Admin/Pages/About.php:99 -#: build/wp-mail-smtp/src/Admin/Pages/About.php:552 #: src/Admin/Pages/About.php:99 #: src/Admin/Pages/About.php:552 msgid "%s vs Pro" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/About.php:173 #: src/Admin/Pages/About.php:173 msgid "Hello and welcome to WP Mail SMTP, the easiest and most popular WordPress SMTP plugin. We build software that helps your site reliably deliver emails every time." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/About.php:177 #: src/Admin/Pages/About.php:177 msgid "Email deliverability has been a well-documented problem for all WordPress websites. However as WPForms grew, we became more aware of this painful issue that affects our users and the larger WordPress community. So we decided to solve this problem and make a solution that's beginner friendly." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/About.php:180 #: src/Admin/Pages/About.php:180 msgid "Our goal is to make reliable email deliverability easy for WordPress." msgstr "" #. translators: %1$s - WPForms URL, %2$s - WPBeginner URL, %3$s - OptinMonster URL, %4$s - MonsterInsights URL, %5$s - RafflePress URL -#: build/wp-mail-smtp/src/Admin/Pages/About.php:187 #: src/Admin/Pages/About.php:187 msgid "WP Mail SMTP is brought to you by the same team that's behind the most user friendly WordPress forms, WPForms, the largest WordPress resource site, WPBeginner, the most popular lead-generation software, OptinMonster, the best WordPress analytics plugin, MonsterInsights, and the most powerful WordPress contest plugin, RafflePress." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/About.php:205 #: src/Admin/Pages/About.php:205 msgid "Yup, we know a thing or two about building awesome products that customers love." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/About.php:211 #: src/Admin/Pages/About.php:211 msgid "The WPForms Team photo" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/About.php:213 #: src/Admin/Pages/About.php:213 msgid "The WPForms Team" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/About.php:262 #: src/Admin/Pages/About.php:262 msgid "Plugin icon" msgstr "" #. translators: %s - status HTML text. -#: build/wp-mail-smtp/src/Admin/Pages/About.php:276 #: src/Admin/Pages/About.php:276 msgid "Status: %s" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/About.php:342 #: src/Admin/Pages/About.php:342 msgid "Not Installed" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/About.php:345 #: src/Admin/Pages/About.php:345 msgid "Install Plugin" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/About.php:366 #: src/Admin/Pages/About.php:366 msgid "MonsterInsights" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/About.php:367 -#: build/wp-mail-smtp/src/Admin/Pages/About.php:373 #: src/Admin/Pages/About.php:367 #: src/Admin/Pages/About.php:373 msgid "MonsterInsights makes it “effortless” to properly connect your WordPress site with Google Analytics, so you can start making data-driven decisions to grow your business." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/About.php:372 #: src/Admin/Pages/About.php:372 msgid "MonsterInsights Pro" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/About.php:380 #: src/Admin/Pages/About.php:380 msgid "OptinMonster" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/About.php:381 #: src/Admin/Pages/About.php:381 msgid "Our high-converting optin forms like Exit-Intent® popups, Fullscreen Welcome Mats, and Scroll boxes help you dramatically boost conversions and get more email subscribers." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/About.php:387 #: src/Admin/Pages/About.php:387 msgid "Contact Forms by WPForms" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/About.php:388 -#: build/wp-mail-smtp/src/Admin/Pages/About.php:394 #: src/Admin/Pages/About.php:388 #: src/Admin/Pages/About.php:394 msgid "The best WordPress contact form plugin. Drag & Drop online form builder that helps you create beautiful contact forms with just a few clicks." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/About.php:393 #: src/Admin/Pages/About.php:393 msgid "WPForms Pro" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/About.php:401 #: src/Admin/Pages/About.php:401 msgid "RafflePress" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/About.php:402 -#: build/wp-mail-smtp/src/Admin/Pages/About.php:408 #: src/Admin/Pages/About.php:402 #: src/Admin/Pages/About.php:408 msgid "Turn your visitors into brand ambassadors! Easily grow your email list, website traffic, and social media followers with powerful viral giveaways & contests." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/About.php:407 #: src/Admin/Pages/About.php:407 msgid "RafflePress Pro" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/About.php:427 #: src/Admin/Pages/About.php:427 msgid "Could not activate the plugin. Please activate it from the Plugins page." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/About.php:439 #: src/Admin/Pages/About.php:439 msgid "Plugin activated." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/About.php:456 #: src/Admin/Pages/About.php:456 msgid "Could not install the plugin." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/About.php:517 #: src/Admin/Pages/About.php:517 msgid "Plugin installed & activated." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/About.php:525 #: src/Admin/Pages/About.php:525 msgid "Plugin installed." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/About.php:560 #: src/Admin/Pages/About.php:560 msgid "Get the most out of WP Mail SMTP by upgrading to Pro and unlocking all of the powerful features." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/About.php:569 #: src/Admin/Pages/About.php:569 msgid "Feature" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/About.php:579 #: src/Admin/Pages/About.php:579 msgid "Pro" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/About.php:620 #: src/Admin/Pages/About.php:620 msgid "Get WP Mail SMTP Pro Today and Unlock all of these Powerful Features" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/About.php:627 #: src/Admin/Pages/About.php:627 msgid "Bonus: WP Mail SMTP Lite users get $50 off regular price, automatically applied at checkout." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/About.php:654 -#: build/wp-mail-smtp/src/Admin/Pages/ControlTab.php:27 #: src/Admin/Pages/About.php:654 #: src/Admin/Pages/ControlTab.php:27 msgid "Email Controls" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/About.php:655 #: src/Admin/Pages/About.php:655 -msgid "Additional Mailers" +msgid "Mailer Options" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/About.php:656 #: src/Admin/Pages/About.php:656 +msgid "WordPress Multisite" +msgstr "" + +#: src/Admin/Pages/About.php:657 msgid "Customer Support" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/About.php:677 -#: src/Admin/Pages/About.php:677 +#: src/Admin/Pages/About.php:678 msgid "Emails are not logged" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/About.php:683 -#: src/Admin/Pages/About.php:683 -msgid "Complete Email Log management inside WordPress" +#: src/Admin/Pages/About.php:684 +msgid "Access to all Email Logging options right inside WordPress" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/About.php:691 -#: src/Admin/Pages/About.php:691 +#: src/Admin/Pages/About.php:692 msgid "No controls over whether default WordPress emails are sent" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/About.php:697 -#: src/Admin/Pages/About.php:697 +#: src/Admin/Pages/About.php:698 msgid "Complete Email Controls management for most default WordPress emails" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/About.php:705 -#: src/Admin/Pages/About.php:705 -msgid "Only default list of mailers" +#: src/Admin/Pages/About.php:706 +msgid "Limited Mailers" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/About.php:711 -#: src/Admin/Pages/About.php:711 -msgid "Additional mailers: Microsoft Outlook (with Office365 support) and Amazon SES" +#: src/Admin/Pages/About.php:706 +msgid "Access is limited to standard mailer options only" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/About.php:719 -#: src/Admin/Pages/About.php:719 +#: src/Admin/Pages/About.php:712 +msgid "Additional Mailer Options" +msgstr "" + +#: src/Admin/Pages/About.php:712 +msgid "Microsoft Outlook (with Office365 support), Amazon SES and Zoho Mail" +msgstr "" + +#: src/Admin/Pages/About.php:720 +msgid "No Global Network Settings" +msgstr "" + +#: src/Admin/Pages/About.php:726 +msgid "All Global Network Settings" +msgstr "" + +#: src/Admin/Pages/About.php:726 +msgid "Optionally configure settings at the network level or manage separately for each subsite" +msgstr "" + +#: src/Admin/Pages/About.php:734 msgid "Limited Support" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/About.php:725 -#: src/Admin/Pages/About.php:725 +#: src/Admin/Pages/About.php:740 msgid "Priority Support" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/ControlTab.php:48 #: src/Admin/Pages/ControlTab.php:48 msgid "Comment Notifications" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/ControlTab.php:49 #: src/Admin/Pages/ControlTab.php:49 msgid "Manage emails sent when comments are published or awaiting moderation." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/ControlTab.php:53 #: src/Admin/Pages/ControlTab.php:53 msgid "Site Admin Email Change Notifications" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/ControlTab.php:54 #: src/Admin/Pages/ControlTab.php:54 msgid "Manage emails sent when site admin's account has been changed." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/ControlTab.php:58 #: src/Admin/Pages/ControlTab.php:58 msgid "User Change Notifications" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/ControlTab.php:59 #: src/Admin/Pages/ControlTab.php:59 msgid "Limit emails triggered by password changed/reset, email changed, and more." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/ControlTab.php:63 #: src/Admin/Pages/ControlTab.php:63 msgid "Personal Data Requests Notifications" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/ControlTab.php:64 #: src/Admin/Pages/ControlTab.php:64 msgid "Control emails for data requests and data removal actions." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/ControlTab.php:68 #: src/Admin/Pages/ControlTab.php:68 msgid "Automatic Update Notifications" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/ControlTab.php:69 #: src/Admin/Pages/ControlTab.php:69 msgid "Manage emails sent by the core automatic update process." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/ControlTab.php:73 #: src/Admin/Pages/ControlTab.php:73 msgid "New User Notifications" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/ControlTab.php:74 #: src/Admin/Pages/ControlTab.php:74 msgid "Toggle emails sent to both user and site administrator about new user accounts." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/ControlTab.php:92 #: src/Admin/Pages/ControlTab.php:92 msgid "Unlock Email Controls" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/ControlTab.php:95 #: src/Admin/Pages/ControlTab.php:95 msgid "Email Controls allows you to granularly manage emails sent by WordPress.
" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/ControlTab.php:119 -#: build/wp-mail-smtp/src/Admin/Pages/LogsTab.php:68 #: src/Admin/Pages/ControlTab.php:119 #: src/Admin/Pages/LogsTab.php:68 msgid "Upgrade to WP Mail SMTP Pro" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/LogsTab.php:53 #: src/Admin/Pages/LogsTab.php:53 msgid "Unlock Email Logging" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/LogsTab.php:56 #: src/Admin/Pages/LogsTab.php:56 msgid "Keep track of every email sent from your WordPress site with email logging.
" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/LogsTab.php:57 #: src/Admin/Pages/LogsTab.php:57 msgid "Troubleshoot sending issues, recover lost emails, and more!" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/LogsTab.php:61 #: src/Admin/Pages/LogsTab.php:61 msgid "Logs Archive Page Screenshot" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/LogsTab.php:62 #: src/Admin/Pages/LogsTab.php:62 msgid "Logs Single Page Screenshot" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/MiscTab.php:25 #: src/Admin/Pages/MiscTab.php:25 msgid "Misc" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/MiscTab.php:57 #: src/Admin/Pages/MiscTab.php:57 msgid "Do Not Send" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/MiscTab.php:66 #: src/Admin/Pages/MiscTab.php:66 msgid "Check this if you would like to stop sending all emails." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/MiscTab.php:72 #: src/Admin/Pages/MiscTab.php:72 msgid "Some plugins, like BuddyPress and Events Manager, are using their own email delivery solutions. By default, this option does not block their emails, as those plugins do not use default wp_mail() function to send emails." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/MiscTab.php:80 #: src/Admin/Pages/MiscTab.php:80 msgid "You will need to consult with their documentation to switch them to use default WordPress email delivery." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/MiscTab.php:82 #: src/Admin/Pages/MiscTab.php:82 msgid "Test emails are allowed to be sent, regardless of this option." msgstr "" #. translators: %1$s - constant that was used; %2$s - file where it was used. -#: build/wp-mail-smtp/src/Admin/Pages/MiscTab.php:87 -#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:480 #: src/Admin/Pages/MiscTab.php:87 #: src/Providers/OptionsAbstract.php:480 msgid "The value of this field was set using a constant %1$s most likely inside %2$s of your WordPress installation." msgstr "" #. translators: %s - The URL to the constants support article. -#: build/wp-mail-smtp/src/Admin/Pages/MiscTab.php:94 #: src/Admin/Pages/MiscTab.php:94 msgid "Please read this support article if you want to enable this option using constants." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/MiscTab.php:115 #: src/Admin/Pages/MiscTab.php:115 msgid "Hide Announcements" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/MiscTab.php:124 #: src/Admin/Pages/MiscTab.php:124 msgid "Check this if you would like to hide plugin announcements and update details." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/MiscTab.php:134 #: src/Admin/Pages/MiscTab.php:134 msgid "Hide Email Delivery Errors" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/MiscTab.php:150 #: src/Admin/Pages/MiscTab.php:150 msgid "Check this if you would like to hide warnings alerting of email delivery errors." msgstr "" #. translators: %s - filter that was used to disabled. -#: build/wp-mail-smtp/src/Admin/Pages/MiscTab.php:157 #: src/Admin/Pages/MiscTab.php:157 msgid "Email Delivery Errors were disabled using a %s filter." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/MiscTab.php:166 #: src/Admin/Pages/MiscTab.php:166 msgid "This is not recommended and should only be done for staging or development sites." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/MiscTab.php:181 #: src/Admin/Pages/MiscTab.php:181 msgid "Uninstall WP Mail SMTP" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/MiscTab.php:189 #: src/Admin/Pages/MiscTab.php:189 msgid "Check this if you would like to remove ALL WP Mail SMTP data upon plugin deletion. All settings will be unrecoverable." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/MiscTab.php:199 #: src/Admin/Pages/MiscTab.php:199 msgid "Allow Usage Tracking" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/MiscTab.php:207 #: src/Admin/Pages/MiscTab.php:207 msgid "By allowing us to track usage data we can better help you because we know with which WordPress configurations, themes and plugins we should test." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/MiscTab.php:257 -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:597 #: src/Admin/Pages/MiscTab.php:257 #: src/Admin/Pages/SettingsTab.php:597 msgid "Settings were successfully saved." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:37 #: src/Admin/Pages/SettingsTab.php:37 msgid "General" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:73 #: src/Admin/Pages/SettingsTab.php:73 msgid "License" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:76 #: src/Admin/Pages/SettingsTab.php:76 msgid "Your license key provides access to updates and support." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:84 #: src/Admin/Pages/SettingsTab.php:84 msgid "License Key" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:94 #: src/Admin/Pages/SettingsTab.php:94 msgid "Mail" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:101 #: src/Admin/Pages/SettingsTab.php:101 msgid "From Email" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:120 #: src/Admin/Pages/SettingsTab.php:120 msgid "Please first authorize the Gmail mailer below" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:134 #: src/Admin/Pages/SettingsTab.php:134 msgid "The email address which emails are sent from." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:135 #: src/Admin/Pages/SettingsTab.php:135 msgid "If you're using an email provider (Yahoo, Outlook.com, etc) this should be your email address for that account." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:138 #: src/Admin/Pages/SettingsTab.php:138 msgid "Please note that other plugins can change this, to prevent this use the setting below." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:158 #: src/Admin/Pages/SettingsTab.php:158 msgid "Force From Email" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:165 #: src/Admin/Pages/SettingsTab.php:165 msgid "Current provider will automatically force From Email to be the email address that you use to set up the connection below." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:167 #: src/Admin/Pages/SettingsTab.php:167 msgid "Gmail mailer will automatically force From Email to be the email address that you selected above." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:173 #: src/Admin/Pages/SettingsTab.php:173 msgid "If checked, the From Email setting above will be used for all emails, ignoring values set by other plugins." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:183 #: src/Admin/Pages/SettingsTab.php:183 msgid "From Name" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:195 #: src/Admin/Pages/SettingsTab.php:195 msgid "The name which emails are sent from." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:209 #: src/Admin/Pages/SettingsTab.php:209 msgid "Force From Name" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:214 #: src/Admin/Pages/SettingsTab.php:214 msgid "Current provider doesn't support setting and forcing From Name. Emails will be sent on behalf of the account name used to setup the connection below." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:218 #: src/Admin/Pages/SettingsTab.php:218 msgid "If checked, the From Name setting above will be used for all emails, ignoring values set by other plugins." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:228 #: src/Admin/Pages/SettingsTab.php:228 msgid "Return Path" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:237 #: src/Admin/Pages/SettingsTab.php:237 msgid "Set the return-path to match the From Email" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:241 #: src/Admin/Pages/SettingsTab.php:241 msgid "Return Path indicates where non-delivery receipts - or bounce messages - are to be sent." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:242 #: src/Admin/Pages/SettingsTab.php:242 msgid "If unchecked, bounce messages may be lost. Some providers may ignore this option." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:250 #: src/Admin/Pages/SettingsTab.php:250 msgid "Mailer" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:292 #: src/Admin/Pages/SettingsTab.php:292 msgid "Don't see what you're looking for?" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:294 #: src/Admin/Pages/SettingsTab.php:294 msgid "Suggest a Mailer" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:322 #: src/Admin/Pages/SettingsTab.php:322 msgid "Dismiss this notice" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:369 #: src/Admin/Pages/SettingsTab.php:369 msgid "You're using WP Mail SMTP Lite - no license needed. Enjoy!" msgstr "" #. translators: %s - WPMailSMTP.com upgrade URL. -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:375 #: src/Admin/Pages/SettingsTab.php:375 msgid "To unlock more features consider upgrading to PRO." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:394 #: src/Admin/Pages/SettingsTab.php:394 msgid "As a valued WP Mail SMTP Lite user you receive $50 off, automatically applied at checkout!" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:455 #: src/Admin/Pages/SettingsTab.php:455 msgid "Get WP Mail SMTP Pro and Unlock all the Powerful Features" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:459 #: src/Admin/Pages/SettingsTab.php:459 msgid "Thanks for being a loyal WP Mail SMTP user. Upgrade to WP Mail SMTP Pro to unlock more awesome features and experience why WP Mail SMTP is the most popular SMTP plugin." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:463 #: src/Admin/Pages/SettingsTab.php:463 msgid "We know that you will truly love WP Mail SMTP. It's used by over 1,000,000 websites." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:466 #: src/Admin/Pages/SettingsTab.php:466 msgid "Pro Features:" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:470 #: src/Admin/Pages/SettingsTab.php:470 msgid "Manage Notifications - control which emails your site sends" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:471 #: src/Admin/Pages/SettingsTab.php:471 msgid "Email Logging - keep track of every email sent from your site" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:472 #: src/Admin/Pages/SettingsTab.php:472 msgid "Office 365 - send emails using your Office 365 account" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:473 #: src/Admin/Pages/SettingsTab.php:473 msgid "Amazon SES - harness the power of AWS" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:474 #: src/Admin/Pages/SettingsTab.php:474 msgid "Outlook.com - send emails using your Outlook.com account" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:475 #: src/Admin/Pages/SettingsTab.php:475 msgid "Access to our world class support team" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:478 #: src/Admin/Pages/SettingsTab.php:478 msgid "White Glove Setup - sit back and relax while we handle everything for you" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:479 #: src/Admin/Pages/SettingsTab.php:479 msgid "Install WP Mail SMTP Pro plugin" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:480 #: src/Admin/Pages/SettingsTab.php:480 msgid "Set up domain name verification (DNS)" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:481 #: src/Admin/Pages/SettingsTab.php:481 msgid "Configure Mailgun service" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:482 #: src/Admin/Pages/SettingsTab.php:482 msgid "Set up WP Mail SMTP Pro plugin" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:483 #: src/Admin/Pages/SettingsTab.php:483 msgid "Test and verify email delivery" msgstr "" #. translators: %s - WPMailSMTP.com URL. -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:491 #: src/Admin/Pages/SettingsTab.php:491 msgid "Get WP Mail SMTP Pro Today and Unlock all the Powerful Features »" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/SettingsTab.php:509 #: src/Admin/Pages/SettingsTab.php:509 msgid "Bonus: WP Mail SMTP users get $50 off regular price, automatically applied at checkout." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:37 #: src/Admin/Pages/TestTab.php:37 msgid "Email Test" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:59 #: src/Admin/Pages/TestTab.php:59 msgid "Send a Test Email" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:66 #: src/Admin/Pages/TestTab.php:66 msgid "Send To" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:72 #: src/Admin/Pages/TestTab.php:72 msgid "Enter email address where test email will be sent." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:80 #: src/Admin/Pages/TestTab.php:80 msgid "HTML" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:86 -#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:276 -#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:298 #: src/Admin/Pages/TestTab.php:86 #: src/Providers/OptionsAbstract.php:276 #: src/Providers/OptionsAbstract.php:298 msgid "On" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:87 -#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:277 -#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:299 #: src/Admin/Pages/TestTab.php:87 #: src/Providers/OptionsAbstract.php:277 #: src/Providers/OptionsAbstract.php:299 msgid "Off" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:90 #: src/Admin/Pages/TestTab.php:90 msgid "Send this email in HTML or in plain text format." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:110 #: src/Admin/Pages/TestTab.php:110 msgid "You cannot send an email. Mailer is not properly configured. Please check your settings." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:114 #: src/Admin/Pages/TestTab.php:114 msgid "Send Email" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:142 #: src/Admin/Pages/TestTab.php:142 msgid "Test failed. Please use a valid email address and try to resend the test email." msgstr "" #. translators: %s - email address a test email will be sent to. -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:154 -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:160 #: src/Admin/Pages/TestTab.php:154 #: src/Admin/Pages/TestTab.php:160 msgid "Test email to %s" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:186 #: src/Admin/Pages/TestTab.php:186 msgid "Test plain text email was sent successfully!" msgstr "" #. translators: %s - "HTML" in bold. -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:190 #: src/Admin/Pages/TestTab.php:190 msgid "Test %s email was sent successfully! Please check your inbox to make sure it is delivered." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:510 #: src/Admin/Pages/TestTab.php:510 msgid "SSL certificate issue." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:511 #: src/Admin/Pages/TestTab.php:511 msgid "This means your web server cannot reliably make secure connections (make requests to HTTPS sites)." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:512 -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:560 #: src/Admin/Pages/TestTab.php:512 #: src/Admin/Pages/TestTab.php:560 msgid "Typically this error is returned when web server is not configured properly." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:515 #: src/Admin/Pages/TestTab.php:515 msgid "Contact your web hosting provider and inform them your site has an issue with SSL certificates." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:516 -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:564 #: src/Admin/Pages/TestTab.php:516 #: src/Admin/Pages/TestTab.php:564 msgid "The exact error you can provide them is in the Error log, available at the bottom of this page." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:517 -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:565 #: src/Admin/Pages/TestTab.php:517 #: src/Admin/Pages/TestTab.php:565 msgid "Ask them to resolve the issue then try again." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:528 #: src/Admin/Pages/TestTab.php:528 msgid "Could not connect to host." msgstr "" #. translators: %s - SMTP host address. -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:531 -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:556 -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:658 #: src/Admin/Pages/TestTab.php:531 #: src/Admin/Pages/TestTab.php:556 #: src/Admin/Pages/TestTab.php:658 msgid "This means your web server was unable to connect to %s." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:534 -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:559 -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:661 #: src/Admin/Pages/TestTab.php:534 #: src/Admin/Pages/TestTab.php:559 #: src/Admin/Pages/TestTab.php:661 msgid "This means your web server was unable to connect to the host server." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:535 #: src/Admin/Pages/TestTab.php:535 msgid "Typically this error is returned your web server is blocking the connections or the SMTP host denying the request." msgstr "" #. translators: %s - SMTP host address. -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:539 #: src/Admin/Pages/TestTab.php:539 msgid "Contact your web hosting provider and ask them to verify your server can connect to %s. Additionally, ask them if a firewall or security policy may be preventing the connection." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:542 #: src/Admin/Pages/TestTab.php:542 msgid "If using \"Other SMTP\" Mailer, triple check your SMTP settings including host address, email, and password." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:543 #: src/Admin/Pages/TestTab.php:543 msgid "If using \"Other SMTP\" Mailer, contact your SMTP host to confirm they are accepting outside connections with the settings you have configured (address, username, port, security, etc)." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:553 #: src/Admin/Pages/TestTab.php:553 msgid "Could not connect to your host." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:563 #: src/Admin/Pages/TestTab.php:563 msgid "Contact your web hosting provider and inform them you are having issues making outbound connections." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:575 #: src/Admin/Pages/TestTab.php:575 msgid "Could not authenticate your SMTP account." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:576 #: src/Admin/Pages/TestTab.php:576 msgid "This means we were able to connect to your SMTP host, but were not able to proceed using the email/password in the settings." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:577 #: src/Admin/Pages/TestTab.php:577 msgid "Typically this error is returned when the email or password is not correct or is not what the SMTP host is expecting." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:580 #: src/Admin/Pages/TestTab.php:580 msgid "Triple check your SMTP settings including host address, email, and password. If you have recently reset your password you will need to update the settings." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:581 -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:686 #: src/Admin/Pages/TestTab.php:581 #: src/Admin/Pages/TestTab.php:686 msgid "Contact your SMTP host to confirm you are using the correct username and password." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:582 -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:687 #: src/Admin/Pages/TestTab.php:582 #: src/Admin/Pages/TestTab.php:687 msgid "Verify with your SMTP host that your account has permissions to send emails using outside connections." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:592 #: src/Admin/Pages/TestTab.php:592 msgid "Error due to unsolicited and/or bulk e-mail." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:593 #: src/Admin/Pages/TestTab.php:593 msgid "This means the connection to your SMTP host was made successfully, but the host rejected the email." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:594 #: src/Admin/Pages/TestTab.php:594 msgid "Typically this error is returned when you are sending too many e-mails or e-mails that have been identified as spam." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:597 #: src/Admin/Pages/TestTab.php:597 msgid "Check the emails that are sending are sending individually. Example: email is not sending to 30 recipients. You can install any WordPress e-mail logging plugin to do that." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:598 #: src/Admin/Pages/TestTab.php:598 msgid "Contact your SMTP host to ask about sending/rate limits." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:599 #: src/Admin/Pages/TestTab.php:599 msgid "Verify with them your SMTP account is in good standing and your account has not been flagged." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:609 #: src/Admin/Pages/TestTab.php:609 msgid "Unauthenticated senders are not allowed." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:610 #: src/Admin/Pages/TestTab.php:610 msgid "This means the connection to your SMTP host was made successfully, but you should enable Authentication and provide correct Username and Password." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:613 #: src/Admin/Pages/TestTab.php:613 msgid "Go to WP Mail SMTP plugin Settings page." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:614 #: src/Admin/Pages/TestTab.php:614 msgid "Enable Authentication" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:615 #: src/Admin/Pages/TestTab.php:615 msgid "Enter correct SMTP Username (usually this is an email address) and Password in the appropriate fields." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:627 #: src/Admin/Pages/TestTab.php:627 msgid "Misconfigured server certificate." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:628 #: src/Admin/Pages/TestTab.php:628 msgid "This means OpenSSL on your server isn't able to verify the host certificate." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:629 #: src/Admin/Pages/TestTab.php:629 msgid "There are a few reasons why this is happening. It could be that the host certificate is misconfigured, or this server's OpenSSL is using an outdated CA bundle." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:632 #: src/Admin/Pages/TestTab.php:632 msgid "Verify that the host's SSL certificate is valid." msgstr "" #. translators: %s - URL to the PHP openssl manual -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:635 #: src/Admin/Pages/TestTab.php:635 msgid "Contact your hosting support, show them the \"full Error Log for debugging\" below and share this link with them." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:655 #: src/Admin/Pages/TestTab.php:655 msgid "Could not connect to the SMTP host." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:662 -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1048 #: src/Admin/Pages/TestTab.php:662 #: src/Admin/Pages/TestTab.php:1048 msgid "Typically this error is returned for one of the following reasons:" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:663 #: src/Admin/Pages/TestTab.php:663 msgid "SMTP settings are incorrect (wrong port, security setting, incorrect host)." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:664 -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1050 #: src/Admin/Pages/TestTab.php:664 #: src/Admin/Pages/TestTab.php:1050 msgid "Your web server is blocking the connection." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:665 #: src/Admin/Pages/TestTab.php:665 msgid "Your SMTP host is rejecting the connection." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:668 #: src/Admin/Pages/TestTab.php:668 msgid "Triple check your SMTP settings including host address, email, and password, port, and security." msgstr "" #. translators: %1$s - SMTP host address, %2$s - SMTP port, %3$s - SMTP encryption. -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:671 #: src/Admin/Pages/TestTab.php:671 msgid "Contact your web hosting provider and ask them to verify your server can connect to %1$s on port %2$s using %3$s encryption. Additionally, ask them if a firewall or security policy may be preventing the connection - many shared hosts block certain ports.
Note: this is the most common cause of this issue." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:684 #: src/Admin/Pages/TestTab.php:684 msgid "no" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:697 -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:712 -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:728 #: src/Admin/Pages/TestTab.php:697 #: src/Admin/Pages/TestTab.php:712 #: src/Admin/Pages/TestTab.php:728 msgid "Mailgun failed." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:698 #: src/Admin/Pages/TestTab.php:698 msgid "It seems that you forgot to activate your Mailgun account." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:701 #: src/Admin/Pages/TestTab.php:701 msgid "Check your inbox you used to create a Mailgun account. Click the activation link in an email from Mailgun." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:702 #: src/Admin/Pages/TestTab.php:702 msgid "If you do not see activation email, go to your Mailgun control panel and resend the activation email." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:713 #: src/Admin/Pages/TestTab.php:713 msgid "Typically this error is because there is an issue with your Mailgun settings, in many cases the API key." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:716 #: src/Admin/Pages/TestTab.php:716 msgid "Verify your API key is correct." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:717 #: src/Admin/Pages/TestTab.php:717 msgid "Go to your Mailgun account and view your API key." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:718 #: src/Admin/Pages/TestTab.php:718 msgid "Note that the API key includes the \"key\" prefix, so make sure that it is in the WP Mail SMTP Mailgun API setting." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:729 #: src/Admin/Pages/TestTab.php:729 msgid "Your Mailgun account does not have access to send emails." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:730 #: src/Admin/Pages/TestTab.php:730 msgid "Typically this error is because you have not set up and/or complete domain name verification for your Mailgun account." msgstr "" #. translators: %s - Mailgun documentation URL. -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:735 #: src/Admin/Pages/TestTab.php:735 msgid "Go to our how-to guide for setting up Mailgun with WP Mail SMTP." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:746 #: src/Admin/Pages/TestTab.php:746 msgid "Complete the steps in section \"2. Verify Your Domain\"." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:756 -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:805 -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:825 -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:851 -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:867 -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:919 -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:945 #: src/Admin/Pages/TestTab.php:756 #: src/Admin/Pages/TestTab.php:805 #: src/Admin/Pages/TestTab.php:825 @@ -1357,1083 +1091,879 @@ msgstr "" msgid "Google API Error." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:757 #: src/Admin/Pages/TestTab.php:757 msgid "You have not properly configured Gmail mailer." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:758 #: src/Admin/Pages/TestTab.php:758 msgid "Make sure that you have clicked the \"Allow plugin to send emails using your Google account\" button under Gmail settings." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:761 #: src/Admin/Pages/TestTab.php:761 msgid "Go to plugin Settings page and click the \"Allow plugin to send emails using your Google account\" button." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:762 #: src/Admin/Pages/TestTab.php:762 msgid "After the click you should be redirected to a Gmail authorization screen, where you will be asked a permission to send emails on your behalf." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:763 #: src/Admin/Pages/TestTab.php:763 msgid "Please click \"Agree\", if you see that button. If not - you will need to enable less secure apps first:" msgstr "" #. translators: %s - Google support article URL. -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:768 #: src/Admin/Pages/TestTab.php:768 msgid "if you are using regular Gmail account, please read this article to proceed." msgstr "" #. translators: %s - Google support article URL. -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:783 #: src/Admin/Pages/TestTab.php:783 msgid "if you are using G Suite, please read this article to proceed." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:806 #: src/Admin/Pages/TestTab.php:806 msgid "Typically this error is because address the email was sent to is invalid or was empty." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:809 #: src/Admin/Pages/TestTab.php:809 msgid "Check the \"Send To\" email address used and confirm it is a valid email and was not empty." msgstr "" #. translators: 1 - correct email address example. 2 - incorrect email address example. -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:811 #: src/Admin/Pages/TestTab.php:811 msgid "It should be something like this: %1$s. These are incorrect values: %2$s." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:815 #: src/Admin/Pages/TestTab.php:815 msgid "Make sure that the generated email has a TO header, useful when you are responsible for email creation." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:826 #: src/Admin/Pages/TestTab.php:826 msgid "Unfortunately, this error can be due to many different reasons." msgstr "" #. translators: %s - Blog article URL. -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:831 #: src/Admin/Pages/TestTab.php:831 msgid "Please read this article to learn more about what can cause this error and how it can be resolved." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:852 #: src/Admin/Pages/TestTab.php:852 msgid "Authentication code that Google returned to you has already been used on your previous auth attempt." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:855 #: src/Admin/Pages/TestTab.php:855 msgid "Make sure that you are not trying to manually clean up the plugin options to retry the \"Allow...\" step." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:856 #: src/Admin/Pages/TestTab.php:856 msgid "Reinstall the plugin with clean plugin data turned on on Misc page. This will remove all the plugin options and you will be safe to retry." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:857 #: src/Admin/Pages/TestTab.php:857 msgid "Make sure there is no aggressive caching on site admin area pages or try to clean cache between attempts." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:868 #: src/Admin/Pages/TestTab.php:868 msgid "There are various reasons for that, please review the steps below." msgstr "" #. translators: %s - Google G Suite Admin area URL. -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:873 #: src/Admin/Pages/TestTab.php:873 msgid "Make sure that your G Suite trial period has not expired. You can check the status here." msgstr "" #. translators: %s - Google G Suite Admin area URL. -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:886 #: src/Admin/Pages/TestTab.php:886 msgid "Make sure that Gmail app in your G Suite is actually enabled. You can check that in Apps list in G Suite Admin area." msgstr "" #. translators: %s - Google Developers Console URL. -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:899 #: src/Admin/Pages/TestTab.php:899 msgid "Make sure that you have Gmail API enabled, and you can do that here." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:922 -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:949 #: src/Admin/Pages/TestTab.php:922 #: src/Admin/Pages/TestTab.php:949 msgid "Make sure that the used Client ID/Secret correspond to a proper project that has Gmail API enabled." msgstr "" #. translators: %s - Gmail documentation URL. -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:925 #: src/Admin/Pages/TestTab.php:925 msgid "Please follow our Gmail tutorial to be sure that all the correct project and data is applied." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:946 #: src/Admin/Pages/TestTab.php:946 msgid "You may have added a new API to a project" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:950 #: src/Admin/Pages/TestTab.php:950 msgid "Try to use a separate project for your emails, so the project has only 1 Gmail API in it enabled. You will need to remove the old project and create a new one from scratch." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:960 #: src/Admin/Pages/TestTab.php:960 msgid "SMTP.com API Error." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:961 #: src/Admin/Pages/TestTab.php:961 msgid "Your Sender Name option is incorrect." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:964 #: src/Admin/Pages/TestTab.php:964 msgid "Please make sure you entered an accurate Sender Name in WP Mail SMTP plugin settings." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:974 #: src/Admin/Pages/TestTab.php:974 msgid "GuzzleHttp requirements." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:975 #: src/Admin/Pages/TestTab.php:975 msgid "GuzzleHttp requires cURL, the allow_url_fopen ini setting, or a custom HTTP handler." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:978 #: src/Admin/Pages/TestTab.php:978 msgid "Edit your php.ini file on your hosting server." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:979 #: src/Admin/Pages/TestTab.php:979 msgid "(Recommended) Enable PHP extension: cURL, by adding \"extension=curl\" to the php.ini file (without the quotation marks) OR" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:980 #: src/Admin/Pages/TestTab.php:980 msgid "(If cURL can't be enabled on your hosting server) Enable PHP setting: allow_url_fopen, by adding \"allow_url_fopen = On\" to the php.ini file (without the quotation marks)" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:981 #: src/Admin/Pages/TestTab.php:981 msgid "If you don't know how to do the above we strongly suggest contacting your hosting support and provide them the \"full Error Log for debugging\" below and these steps. They should be able to fix this issue for you." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1003 #: src/Admin/Pages/TestTab.php:1003 msgid "PCRE library issue" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1004 #: src/Admin/Pages/TestTab.php:1004 msgid "It looks like your server is running PHP version 7.4.x with an outdated PCRE library (libpcre2) that has a known issue with email address validation." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1005 #: src/Admin/Pages/TestTab.php:1005 msgid "There is a known issue with PHP version 7.4.x, when using libpcre2 library version lower than 10.33." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1008 #: src/Admin/Pages/TestTab.php:1008 msgid "Contact your web hosting provider and inform them you are having issues with libpcre2 library on PHP 7.4." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1009 #: src/Admin/Pages/TestTab.php:1009 msgid "They should be able to resolve this issue for you." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1010 #: src/Admin/Pages/TestTab.php:1010 msgid "For a quick fix, until your web hosting resolves this, you can downgrade to PHP version 7.3 on your server." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1046 #: src/Admin/Pages/TestTab.php:1046 msgid "An issue was detected." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1047 #: src/Admin/Pages/TestTab.php:1047 msgid "This means your test email was unable to be sent." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1049 #: src/Admin/Pages/TestTab.php:1049 msgid "Plugin settings are incorrect (wrong SMTP settings, invalid Mailer configuration, etc)." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1051 #: src/Admin/Pages/TestTab.php:1051 msgid "Your host is rejecting the connection." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1054 #: src/Admin/Pages/TestTab.php:1054 msgid "Triple check the plugin settings, consider reconfiguring to make sure everything is correct (eg bad copy and paste)." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1056 #: src/Admin/Pages/TestTab.php:1056 msgid "Contact your web hosting provider and ask them to verify your server can make outside connections. Additionally, ask them if a firewall or security policy may be preventing the connection - many shared hosts block certain ports.
Note: this is the most common cause of this issue." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1062 #: src/Admin/Pages/TestTab.php:1062 msgid "Try using a different mailer." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1081 #: src/Admin/Pages/TestTab.php:1081 msgid "There was a problem while sending the test email." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1091 #: src/Admin/Pages/TestTab.php:1091 msgid "Recommended next steps:" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1101 #: src/Admin/Pages/TestTab.php:1101 msgid "Need support?" msgstr "" #. translators: %s - WPMailSMTP.com account area link. -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1109 #: src/Admin/Pages/TestTab.php:1109 msgid "As a WP Mail SMTP Pro user you have access to WP Mail SMTP priority support. Please log in to your WPMailSMTP.com account and submit a support ticket." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1126 #: src/Admin/Pages/TestTab.php:1126 msgid "WP Mail SMTP is a free plugin, and the team behind WPForms maintains it to give back to the WordPress community." msgstr "" #. translators: %s - WPMailSMTP.com URL. -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1133 #: src/Admin/Pages/TestTab.php:1133 msgid "To access our world class support, please upgrade to WP Mail SMTP Pro. Along with getting expert support, you will also get Notification controls, Email Logging, and integrations for Amazon SES, Office 365, and Outlook.com." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1148 #: src/Admin/Pages/TestTab.php:1148 msgid "Additionally, you can take advantage of our White Glove Setup. Sit back and relax while we handle everything for you! If you simply don't have time or maybe you feel a bit in over your head - we got you covered." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1154 #: src/Admin/Pages/TestTab.php:1154 msgid "As a valued WP Mail SMTP user, you will get $50 off regular pricing, automatically applied at checkout!" msgstr "" #. translators: %1$s - WP Mail SMTP support policy URL, %2$s - WP Mail SMTP support forum URL, %3$s - WPMailSMTP.com URL. -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1168 #: src/Admin/Pages/TestTab.php:1168 msgid "Alternatively, we also offer limited support on the WordPress.org support forums. You can create a support thread there, but please understand that free support is not guaranteed and is limited to simple issues. If you have an urgent or complex issue, then please consider upgrading to WP Mail SMTP Pro to access our priority support ticket system." msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1189 #: src/Admin/Pages/TestTab.php:1189 msgid "Click here to view the full Error Log for debugging" msgstr "" -#: build/wp-mail-smtp/src/Admin/Pages/TestTab.php:1198 #: src/Admin/Pages/TestTab.php:1198 msgid "Please copy only the content of the error debug message above, identified with an orange left border, into the support forum topic if you experience any issues." msgstr "" -#: build/wp-mail-smtp/src/Admin/Review.php:119 #: src/Admin/Review.php:119 msgid "Are you enjoying WP Mail SMTP?" msgstr "" -#: build/wp-mail-smtp/src/Admin/Review.php:121 #: src/Admin/Review.php:121 msgid "Yes" msgstr "" -#: build/wp-mail-smtp/src/Admin/Review.php:122 #: src/Admin/Review.php:122 msgid "Not Really" msgstr "" -#: build/wp-mail-smtp/src/Admin/Review.php:126 #: src/Admin/Review.php:126 msgid "We're sorry to hear you aren't enjoying WP Mail SMTP. We would love a chance to improve. Could you take a minute and let us know what we can do better?" msgstr "" -#: build/wp-mail-smtp/src/Admin/Review.php:129 #: src/Admin/Review.php:129 msgid "Give Feedback" msgstr "" -#: build/wp-mail-smtp/src/Admin/Review.php:132 #: src/Admin/Review.php:132 msgid "No thanks" msgstr "" -#: build/wp-mail-smtp/src/Admin/Review.php:137 #: src/Admin/Review.php:137 msgid "That’s awesome! Could you please do me a BIG favor and give it a 5-star rating on WordPress to help us spread the word and boost our motivation?" msgstr "" -#: build/wp-mail-smtp/src/Admin/Review.php:138 #: src/Admin/Review.php:138 msgid "~ Jared Atchison
Lead Developer, WP Mail SMTP" msgstr "" -#: build/wp-mail-smtp/src/Admin/Review.php:141 #: src/Admin/Review.php:141 msgid "Ok, you deserve it" msgstr "" -#: build/wp-mail-smtp/src/Admin/Review.php:143 #: src/Admin/Review.php:143 msgid "Nope, maybe later" msgstr "" -#: build/wp-mail-smtp/src/Admin/Review.php:144 #: src/Admin/Review.php:144 msgid "I already did" msgstr "" #. translators: %1$s - Plugin name causing conflict; %2$s - Plugin name causing conflict. -#: build/wp-mail-smtp/src/Conflicts.php:159 #: src/Conflicts.php:159 msgid "Heads up! WP Mail SMTP has detected %1$s is activated. Please deactivate %2$s to prevent conflicts." msgstr "" #. translators: %1$s - WP Mail SMTP plugin name; %2$s - WPMailSMTP.com URL to a related doc. -#: build/wp-mail-smtp/src/Core.php:392 #: src/Core.php:392 msgid "Your site is running an outdated version of PHP that is no longer supported and may cause issues with %1$s. Read more for additional information." msgstr "" -#: build/wp-mail-smtp/src/Core.php:406 #: src/Core.php:406 msgid "Please Note: Support for PHP 5.5 will be discontinued in 2020. After this, if no further action is taken, WP Mail SMTP functionality will be disabled." msgstr "" #. translators: %s - plugin name and its version. -#: build/wp-mail-smtp/src/Core.php:440 #: src/Core.php:440 msgid "EMAILING DISABLED: The %s is currently blocking all emails from being sent." msgstr "" #. translators: %1$s - constant name; %2$s - constant value. -#: build/wp-mail-smtp/src/Core.php:451 #: src/Core.php:451 msgid "To send emails, change the value of the %1$s constant to %2$s." msgstr "" #. translators: %s - plugin Misc settings page URL. -#: build/wp-mail-smtp/src/Core.php:462 #: src/Core.php:462 msgid "To send emails, go to plugin Misc settings and disable the \"Do Not Send\" option." msgstr "" #. translators: %s - plugin name and its version. -#: build/wp-mail-smtp/src/Core.php:506 #: src/Core.php:506 msgid "EMAIL DELIVERY ERROR: the plugin %s logged this error during the last time it tried to send an email:" msgstr "" -#: build/wp-mail-smtp/src/Core.php:536 #: src/Core.php:536 msgid "Consider running an email test after fixing it." msgstr "" +#: src/Core.php:979 +msgid "Loading" +msgstr "" + #. translators: %1$s - WP Mail SMTP, %2$s - error message. -#: build/wp-mail-smtp/src/Migration.php:137 #: src/Migration.php:137 msgid "There was an error while upgrading the database. Please contact %1$s support with this information: %2$s." msgstr "" -#: build/wp-mail-smtp/src/Providers/AmazonSES/Options.php:25 +#: src/Pro/SiteHealth.php:58 +msgid "Is wpmailsmtp.com reachable?" +msgstr "" + #: src/Providers/AmazonSES/Options.php:25 msgid "Amazon SES" msgstr "" -#: build/wp-mail-smtp/src/Providers/AmazonSES/Options.php:39 #: src/Providers/AmazonSES/Options.php:39 msgid "We're sorry, the Amazon SES mailer is not available on your plan. Please upgrade to the PRO plan to unlock all these awesome features." msgstr "" -#: build/wp-mail-smtp/src/Providers/Gmail/Auth.php:182 -#: src/Providers/Gmail/Auth.php:182 +#: src/Providers/Gmail/Auth.php:184 msgid "There was an error while processing the Google authentication request. Please make sure that you have Client ID and Client Secret both valid and saved." msgstr "" -#: build/wp-mail-smtp/src/Providers/Gmail/Mailer.php:255 -#: src/Providers/Gmail/Mailer.php:255 +#: src/Providers/Gmail/Mailer.php:257 msgid "Please re-grant Google app permissions!" msgstr "" -#: build/wp-mail-smtp/src/Providers/Gmail/Mailer.php:256 -#: src/Providers/Gmail/Mailer.php:256 +#: src/Providers/Gmail/Mailer.php:258 msgid "Go to WP Mail SMTP plugin settings page. Click the “Remove Connection” button." msgstr "" -#: build/wp-mail-smtp/src/Providers/Gmail/Mailer.php:257 -#: src/Providers/Gmail/Mailer.php:257 +#: src/Providers/Gmail/Mailer.php:259 msgid "Then click the “Allow plugin to send emails using your Google account” button and re-enable access." msgstr "" -#: build/wp-mail-smtp/src/Providers/Gmail/Options.php:33 #: src/Providers/Gmail/Options.php:33 msgid "Gmail" msgstr "" #. translators: %s - URL to our Gmail doc. -#: build/wp-mail-smtp/src/Providers/Gmail/Options.php:36 #: src/Providers/Gmail/Options.php:36 msgid "Send emails using your Gmail or G Suite (formerly Google Apps) account, all while keeping your login credentials safe. Other Google SMTP methods require enabling less secure apps in your account and entering your password. However, this integration uses the Google API to improve email delivery issues while keeping your site secure.

Read our Gmail documentation to learn how to configure Gmail or G Suite." msgstr "" -#: build/wp-mail-smtp/src/Providers/Gmail/Options.php:49 #: src/Providers/Gmail/Options.php:49 msgid "The Gmail mailer works well for sites that send low numbers of emails. However, Gmail's API has rate limitations and a number of additional restrictions that can lead to challenges during setup. If you expect to send a high volume of emails, or if you find that your web host is not compatible with the Gmail API restrictions, then we recommend considering a different mailer option." msgstr "" -#: build/wp-mail-smtp/src/Providers/Gmail/Options.php:80 #: src/Providers/Gmail/Options.php:80 msgid "Client ID" msgstr "" -#: build/wp-mail-smtp/src/Providers/Gmail/Options.php:95 #: src/Providers/Gmail/Options.php:95 msgid "Client Secret" msgstr "" -#: build/wp-mail-smtp/src/Providers/Gmail/Options.php:117 #: src/Providers/Gmail/Options.php:117 msgid "Authorized redirect URI" msgstr "" -#: build/wp-mail-smtp/src/Providers/Gmail/Options.php:125 #: src/Providers/Gmail/Options.php:125 msgid "Copy URL to clipboard" msgstr "" -#: build/wp-mail-smtp/src/Providers/Gmail/Options.php:130 #: src/Providers/Gmail/Options.php:130 msgid "Please copy this URL into the \"Authorized redirect URIs\" field of your Google web application." msgstr "" -#: build/wp-mail-smtp/src/Providers/Gmail/Options.php:139 #: src/Providers/Gmail/Options.php:139 msgid "Authorization" msgstr "" -#: build/wp-mail-smtp/src/Providers/Gmail/Options.php:167 #: src/Providers/Gmail/Options.php:167 msgid "Allow plugin to send emails using your Google account" msgstr "" -#: build/wp-mail-smtp/src/Providers/Gmail/Options.php:170 #: src/Providers/Gmail/Options.php:170 msgid "Click the button above to confirm authorization." msgstr "" -#: build/wp-mail-smtp/src/Providers/Gmail/Options.php:176 #: src/Providers/Gmail/Options.php:176 msgid "Remove Connection" msgstr "" #. translators: %s - email address, as received from Google API. -#: build/wp-mail-smtp/src/Providers/Gmail/Options.php:185 #: src/Providers/Gmail/Options.php:185 msgid "Connected as %s" msgstr "" #. translators: %s - URL to Google Gmail alias documentation page. -#: build/wp-mail-smtp/src/Providers/Gmail/Options.php:195 #: src/Providers/Gmail/Options.php:195 msgid "If you want to use a different From Email address you can set-up a Google email alias. Follow these instructions and then select the From Email at the top of this page." msgstr "" -#: build/wp-mail-smtp/src/Providers/Gmail/Options.php:209 #: src/Providers/Gmail/Options.php:209 msgid "Removing the connection will give you an ability to redo the connection or link to another Google account." msgstr "" -#: build/wp-mail-smtp/src/Providers/Gmail/Options.php:217 #: src/Providers/Gmail/Options.php:217 msgid "You need to save settings with Client ID and Client Secret before you can proceed." msgstr "" -#: build/wp-mail-smtp/src/Providers/Mail/Options.php:25 #: src/Providers/Mail/Options.php:25 msgid "Default (none)" msgstr "" -#: build/wp-mail-smtp/src/Providers/Mail/Options.php:37 #: src/Providers/Mail/Options.php:37 msgid "You currently have the native WordPress option selected. Please select any other Mailer option above to continue the setup." msgstr "" -#: build/wp-mail-smtp/src/Providers/Mailgun/Mailer.php:392 -#: src/Providers/Mailgun/Mailer.php:392 +#: src/Providers/Mailgun/Mailer.php:391 msgid "Mailgun API request was successful, but it could not queue the email for delivery." msgstr "" -#: build/wp-mail-smtp/src/Providers/Mailgun/Mailer.php:393 -#: src/Providers/Mailgun/Mailer.php:393 +#: src/Providers/Mailgun/Mailer.php:392 msgid "This could point to an incorrect Domain Name in the plugin settings." msgstr "" -#: build/wp-mail-smtp/src/Providers/Mailgun/Mailer.php:394 -#: src/Providers/Mailgun/Mailer.php:394 +#: src/Providers/Mailgun/Mailer.php:393 msgid "Please check the WP Mail SMTP plugin settings and make sure the Mailgun Domain Name setting is correct." msgstr "" -#: build/wp-mail-smtp/src/Providers/Mailgun/Options.php:25 #: src/Providers/Mailgun/Options.php:25 msgid "Mailgun" msgstr "" #. translators: %1$s - opening link tag; %2$s - closing link tag; %3$s - opening link tag; %4$s - closing link tag. -#: build/wp-mail-smtp/src/Providers/Mailgun/Options.php:29 #: src/Providers/Mailgun/Options.php:29 msgid "%1$sMailgun%2$s is one of the leading transactional email services trusted by over 150,000+ businesses. They provide 5,000 free emails per month for 3 months.

Read our %3$sMailgun documentation%4$s to learn how to configure Mailgun and improve your email deliverability." msgstr "" -#: build/wp-mail-smtp/src/Providers/Mailgun/Options.php:57 #: src/Providers/Mailgun/Options.php:57 msgid "Private API Key" msgstr "" #. translators: %s - API key link. -#: build/wp-mail-smtp/src/Providers/Mailgun/Options.php:76 #: src/Providers/Mailgun/Options.php:76 msgid "Follow this link to get an API Key from Mailgun: %s." msgstr "" -#: build/wp-mail-smtp/src/Providers/Mailgun/Options.php:78 #: src/Providers/Mailgun/Options.php:78 msgid "Get a Private API Key" msgstr "" -#: build/wp-mail-smtp/src/Providers/Mailgun/Options.php:89 #: src/Providers/Mailgun/Options.php:89 msgid "Domain Name" msgstr "" #. translators: %s - Domain Name link. -#: build/wp-mail-smtp/src/Providers/Mailgun/Options.php:101 #: src/Providers/Mailgun/Options.php:101 msgid "Follow this link to get a Domain Name from Mailgun: %s." msgstr "" -#: build/wp-mail-smtp/src/Providers/Mailgun/Options.php:103 #: src/Providers/Mailgun/Options.php:103 msgid "Get a Domain Name" msgstr "" -#: build/wp-mail-smtp/src/Providers/Mailgun/Options.php:114 #: src/Providers/Mailgun/Options.php:114 msgid "Region" msgstr "" -#: build/wp-mail-smtp/src/Providers/Mailgun/Options.php:124 #: src/Providers/Mailgun/Options.php:124 msgid "US" msgstr "" -#: build/wp-mail-smtp/src/Providers/Mailgun/Options.php:133 #: src/Providers/Mailgun/Options.php:133 msgid "EU" msgstr "" -#: build/wp-mail-smtp/src/Providers/Mailgun/Options.php:137 #: src/Providers/Mailgun/Options.php:137 msgid "Define which endpoint you want to use for sending messages." msgstr "" -#: build/wp-mail-smtp/src/Providers/Mailgun/Options.php:138 #: src/Providers/Mailgun/Options.php:138 msgid "If you are operating under EU laws, you may be required to use EU region." msgstr "" #. translators: %s - URL to Mailgun.com page. -#: build/wp-mail-smtp/src/Providers/Mailgun/Options.php:143 #: src/Providers/Mailgun/Options.php:143 msgid "More information on Mailgun.com." msgstr "" -#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:198 #: src/Providers/OptionsAbstract.php:198 msgid "SMTP Host" msgstr "" -#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:212 #: src/Providers/OptionsAbstract.php:212 msgid "Encryption" msgstr "" -#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:222 #: src/Providers/OptionsAbstract.php:222 msgid "None" msgstr "" -#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:231 #: src/Providers/OptionsAbstract.php:231 msgid "SSL" msgstr "" -#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:240 #: src/Providers/OptionsAbstract.php:240 msgid "TLS" msgstr "" -#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:244 #: src/Providers/OptionsAbstract.php:244 msgid "For most servers TLS is the recommended option. If your SMTP provider offers both SSL and TLS options, we recommend using TLS." msgstr "" -#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:252 #: src/Providers/OptionsAbstract.php:252 msgid "SMTP Port" msgstr "" -#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:266 #: src/Providers/OptionsAbstract.php:266 msgid "Auto TLS" msgstr "" -#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:280 #: src/Providers/OptionsAbstract.php:280 msgid "By default TLS encryption is automatically used if the server supports it, which is recommended. In some cases, due to server misconfigurations, this can cause issues and may need to be disabled." msgstr "" -#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:288 #: src/Providers/OptionsAbstract.php:288 msgid "Authentication" msgstr "" -#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:307 #: src/Providers/OptionsAbstract.php:307 msgid "SMTP Username" msgstr "" -#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:321 #: src/Providers/OptionsAbstract.php:321 msgid "SMTP Password" msgstr "" #. translators: %s - constant name: WPMS_SMTP_PASS. -#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:333 #: src/Providers/OptionsAbstract.php:333 msgid "To change the password you need to change the value of the constant there: %s" msgstr "" #. translators: %1$s - wp-config.php file, %2$s - WPMS_ON constant name. -#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:341 #: src/Providers/OptionsAbstract.php:341 msgid "If you want to disable the use of constants, find in %1$s file the constant %2$s and turn if off:" msgstr "" -#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:351 #: src/Providers/OptionsAbstract.php:351 msgid "All the defined constants will stop working and you will be able to change all the values on this page." msgstr "" -#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:359 #: src/Providers/OptionsAbstract.php:359 msgid "The password will be stored in plain text. For improved security, we highly recommend using your site's WordPress configuration file to set your password." msgstr "" -#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:362 #: src/Providers/OptionsAbstract.php:362 msgid "Learn More" msgstr "" #. translators: %1$s - Provider name; %2$s - PHP version required by Provider; %3$s - current PHP version. -#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:422 #: src/Providers/OptionsAbstract.php:422 msgid "%1$s requires PHP %2$s to work and does not support your current PHP version %3$s. Please contact your host and request a PHP upgrade to the latest one." msgstr "" -#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:429 #: src/Providers/OptionsAbstract.php:429 msgid "Meanwhile you can switch to some other mailers." msgstr "" #. translators: %s - Provider name -#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:448 #: src/Providers/OptionsAbstract.php:448 msgid "%s requires an SSL certificate, and so is not currently compatible with your site. Please contact your host to request a SSL certificate, or check out WPBeginner's tutorial on how to set up SSL." msgstr "" -#: build/wp-mail-smtp/src/Providers/OptionsAbstract.php:461 #: src/Providers/OptionsAbstract.php:461 msgid "If you'd prefer not to set up SSL, or need an SMTP solution in the meantime, please select a different mailer option." msgstr "" -#: build/wp-mail-smtp/src/Providers/Outlook/Options.php:25 #: src/Providers/Outlook/Options.php:25 msgid "Outlook" msgstr "" -#: build/wp-mail-smtp/src/Providers/Outlook/Options.php:39 #: src/Providers/Outlook/Options.php:39 msgid "We're sorry, the Microsoft Outlook mailer is not available on your plan. Please upgrade to the PRO plan to unlock all these awesome features." msgstr "" -#: build/wp-mail-smtp/src/Providers/Pepipost/Options.php:25 #: src/Providers/Pepipost/Options.php:25 msgid "Pepipost SMTP" msgstr "" -#: build/wp-mail-smtp/src/Providers/PepipostAPI/Mailer.php:339 #: src/Providers/PepipostAPI/Mailer.php:339 msgid "General error" msgstr "" -#: build/wp-mail-smtp/src/Providers/PepipostAPI/Mailer.php:340 #: src/Providers/PepipostAPI/Mailer.php:340 msgid "Error" msgstr "" #. translators: %1$s - URL to pepipost.com site. -#: build/wp-mail-smtp/src/Providers/PepipostAPI/Options.php:32 #: src/Providers/PepipostAPI/Options.php:32 msgid "Pepipost is a transactional email service. Every month Pepipost delivers over 8 billion emails from 20,000+ customers. Their mission is to reliably send emails in the most efficient way and at the most disruptive pricing ever. Pepipost provides users 30,000 free emails the first 30 days." msgstr "" #. translators: %1$s - URL to wpmailsmtp.com doc. -#: build/wp-mail-smtp/src/Providers/PepipostAPI/Options.php:35 #: src/Providers/PepipostAPI/Options.php:35 msgid "Read our Pepipost documentation to learn how to configure Pepipost and improve your email deliverability." msgstr "" -#: build/wp-mail-smtp/src/Providers/PepipostAPI/Options.php:53 #: src/Providers/PepipostAPI/Options.php:53 msgid "Get Started with Pepipost" msgstr "" -#: build/wp-mail-smtp/src/Providers/PepipostAPI/Options.php:61 #: src/Providers/PepipostAPI/Options.php:61 msgid "Pepipost" msgstr "" -#: build/wp-mail-smtp/src/Providers/PepipostAPI/Options.php:94 -#: build/wp-mail-smtp/src/Providers/Sendgrid/Options.php:65 -#: build/wp-mail-smtp/src/Providers/Sendinblue/Options.php:84 -#: build/wp-mail-smtp/src/Providers/SMTPcom/Options.php:91 #: src/Providers/PepipostAPI/Options.php:94 #: src/Providers/Sendgrid/Options.php:65 -#: src/Providers/Sendinblue/Options.php:84 +#: src/Providers/Sendinblue/Options.php:96 #: src/Providers/SMTPcom/Options.php:91 msgid "API Key" msgstr "" #. translators: %s - link to get an API Key. -#: build/wp-mail-smtp/src/Providers/PepipostAPI/Options.php:113 -#: build/wp-mail-smtp/src/Providers/Sendinblue/Options.php:103 #: src/Providers/PepipostAPI/Options.php:113 -#: src/Providers/Sendinblue/Options.php:103 +#: src/Providers/Sendinblue/Options.php:115 msgid "Follow this link to get an API Key: %s." msgstr "" -#: build/wp-mail-smtp/src/Providers/PepipostAPI/Options.php:115 #: src/Providers/PepipostAPI/Options.php:115 msgid "Get the API Key" msgstr "" -#: build/wp-mail-smtp/src/Providers/Sendgrid/Options.php:26 #: src/Providers/Sendgrid/Options.php:26 msgid "SendGrid" msgstr "" #. translators: %1$s - opening link tag; %2$s - closing link tag; %3$s - opening link tag; %4$s - closing link tag. -#: build/wp-mail-smtp/src/Providers/Sendgrid/Options.php:30 #: src/Providers/Sendgrid/Options.php:30 msgid "%1$sSendGrid%2$s is one of the leading transactional email services, sending over 35 billion emails every month. They provide users 100 free emails per day.

Read our %3$sSendGrid documentation%4$s to learn how to set up SendGrid and improve your email deliverability." msgstr "" #. translators: %s - API key link. -#: build/wp-mail-smtp/src/Providers/Sendgrid/Options.php:84 #: src/Providers/Sendgrid/Options.php:84 msgid "Follow this link to get an API Key from SendGrid: %s." msgstr "" -#: build/wp-mail-smtp/src/Providers/Sendgrid/Options.php:86 #: src/Providers/Sendgrid/Options.php:86 msgid "Create API Key" msgstr "" #. translators: %s - SendGrid access level. -#: build/wp-mail-smtp/src/Providers/Sendgrid/Options.php:94 #: src/Providers/Sendgrid/Options.php:94 msgid "To send emails you will need only a %s access level for this API key." msgstr "" -#: build/wp-mail-smtp/src/Providers/Sendinblue/Options.php:34 -#: src/Providers/Sendinblue/Options.php:34 -msgid "Sendinblue" -msgstr "" - #. translators: %1$s - URL to sendinblue.com site. -#: build/wp-mail-smtp/src/Providers/Sendinblue/Options.php:38 -#: src/Providers/Sendinblue/Options.php:38 -msgid "Sendinblue serves 80,000+ growing companies around the world and sends over 30 million emails each day. They provide users 300 free emails per day." +#: src/Providers/Sendinblue/Options.php:32 +msgid "Sendinblue is our recommended transactional email service. Founded in 2012, they serve 80,000+ growing companies around the world and send over 30 million emails each day. They understand that transactional emails are the heart of your customer relationships. Their email deliverability experts are constantly at work optimizing the reliability and speed of their SMTP infrastructure. Sendinblue provides users 300 free emails per day." msgstr "" #. translators: %2$s - URL to wpmailsmtp.com doc. -#: build/wp-mail-smtp/src/Providers/Sendinblue/Options.php:41 -#: src/Providers/Sendinblue/Options.php:41 +#: src/Providers/Sendinblue/Options.php:35 msgid "Read our Sendinblue documentation to learn how to configure Sendinblue and improve your email deliverability." msgstr "" -#: build/wp-mail-smtp/src/Providers/Sendinblue/Options.php:105 -#: src/Providers/Sendinblue/Options.php:105 +#: src/Providers/Sendinblue/Options.php:54 +msgid "Get Sendinblue Now (Free)" +msgstr "" + +#: src/Providers/Sendinblue/Options.php:62 +msgid "Sendinblue" +msgstr "" + +#: src/Providers/Sendinblue/Options.php:117 msgid "Get v3 API Key" msgstr "" -#: build/wp-mail-smtp/src/Providers/SMTP/Options.php:25 #: src/Providers/SMTP/Options.php:25 msgid "Other SMTP" msgstr "" #. translators: %s - URL to SMTP documentation. -#: build/wp-mail-smtp/src/Providers/SMTP/Options.php:29 #: src/Providers/SMTP/Options.php:29 msgid "Use the SMTP details provided by your hosting provider or email service.

To see recommended settings for the popular services as well as troubleshooting tips, check out our SMTP documentation." msgstr "" -#: build/wp-mail-smtp/src/Providers/SMTPcom/Mailer.php:434 #: src/Providers/SMTPcom/Mailer.php:434 msgid "Api Key:" msgstr "" -#: build/wp-mail-smtp/src/Providers/SMTPcom/Mailer.php:436 #: src/Providers/SMTPcom/Mailer.php:436 msgid "Channel:" msgstr "" #. translators: %s - URL to smtp.com site. -#: build/wp-mail-smtp/src/Providers/SMTPcom/Options.php:42 #: src/Providers/SMTPcom/Options.php:42 msgid "SMTP.com is a recommended transactional email service. With a 22 years of track record of reliable email delivery, SMTP.com is a premiere solution for WordPress developers and website owners. SMTP.com has been around for almost as long as email itself. Their super simple integration interface makes it easy to get started while a powerful API and robust documentation make it a preferred choice among developers. Start a 30-day free trial with 50,000 emails." msgstr "" #. translators: %s - URL to wpmailsmtp.com doc page for stmp.com. -#: build/wp-mail-smtp/src/Providers/SMTPcom/Options.php:50 #: src/Providers/SMTPcom/Options.php:50 msgid "Read our SMTP.com documentation to learn how to configure SMTP.com and improve your email deliverability." msgstr "" -#: build/wp-mail-smtp/src/Providers/SMTPcom/Options.php:60 #: src/Providers/SMTPcom/Options.php:60 msgid "Get Started with SMTP.com" msgstr "" -#: build/wp-mail-smtp/src/Providers/SMTPcom/Options.php:68 #: src/Providers/SMTPcom/Options.php:68 msgid "SMTP.com" msgstr "" #. translators: %s - API key link. -#: build/wp-mail-smtp/src/Providers/SMTPcom/Options.php:109 #: src/Providers/SMTPcom/Options.php:109 msgid "Follow this link to get an API Key from SMTP.com: %s." msgstr "" -#: build/wp-mail-smtp/src/Providers/SMTPcom/Options.php:111 #: src/Providers/SMTPcom/Options.php:111 msgid "Get API Key" msgstr "" -#: build/wp-mail-smtp/src/Providers/SMTPcom/Options.php:122 #: src/Providers/SMTPcom/Options.php:122 msgid "Sender Name" msgstr "" #. translators: %s - Channel/Sender Name link for smtp.com documentation. -#: build/wp-mail-smtp/src/Providers/SMTPcom/Options.php:138 #: src/Providers/SMTPcom/Options.php:138 msgid "Follow this link to get a Sender Name from SMTP.com: %s." msgstr "" -#: build/wp-mail-smtp/src/Providers/SMTPcom/Options.php:140 #: src/Providers/SMTPcom/Options.php:140 msgid "Get Sender Name" msgstr "" -#: build/wp-mail-smtp/src/Providers/Zoho/Options.php:25 #: src/Providers/Zoho/Options.php:25 msgid "Zoho Mail" msgstr "" -#: build/wp-mail-smtp/src/Providers/Zoho/Options.php:41 #: src/Providers/Zoho/Options.php:41 msgid "We're sorry, the Zoho Mail mailer is not available on your plan. Please upgrade to the PRO plan to unlock all these awesome features." msgstr "" -#: build/wp-mail-smtp/src/SiteHealth.php:67 #: src/SiteHealth.php:67 msgid "Is WP Mail SMTP mailer setup complete?" msgstr "" -#: build/wp-mail-smtp/src/SiteHealth.php:72 #: src/SiteHealth.php:72 msgid "Do WP Mail SMTP DB tables exist?" msgstr "" -#: build/wp-mail-smtp/src/SiteHealth.php:98 #: src/SiteHealth.php:98 msgid "Version" msgstr "" -#: build/wp-mail-smtp/src/SiteHealth.php:102 #: src/SiteHealth.php:102 msgid "License key type" msgstr "" -#: build/wp-mail-smtp/src/SiteHealth.php:106 #: src/SiteHealth.php:106 msgid "Debug" msgstr "" -#: build/wp-mail-smtp/src/SiteHealth.php:107 #: src/SiteHealth.php:107 msgid "No debug notices found." msgstr "" -#: build/wp-mail-smtp/src/SiteHealth.php:110 #: src/SiteHealth.php:110 msgid "DB tables" msgstr "" -#: build/wp-mail-smtp/src/SiteHealth.php:112 #: src/SiteHealth.php:112 msgid "No DB tables found." msgstr "" -#: build/wp-mail-smtp/src/SiteHealth.php:123 #: src/SiteHealth.php:123 msgid "Lite install date" msgstr "" -#: build/wp-mail-smtp/src/SiteHealth.php:140 #: src/SiteHealth.php:140 msgid "None selected" msgstr "" -#: build/wp-mail-smtp/src/SiteHealth.php:160 #: src/SiteHealth.php:160 msgid "Current mailer" msgstr "" -#: build/wp-mail-smtp/src/SiteHealth.php:165 #: src/SiteHealth.php:165 msgid "WP Mail SMTP mailer setup is complete" msgstr "" -#: build/wp-mail-smtp/src/SiteHealth.php:174 #: src/SiteHealth.php:174 msgid "The WP Mail SMTP plugin mailer setup is complete. You can send a test email, to make sure it's working properly." msgstr "" -#: build/wp-mail-smtp/src/SiteHealth.php:179 #: src/SiteHealth.php:179 msgid "Test email sending" msgstr "" -#: build/wp-mail-smtp/src/SiteHealth.php:187 #: src/SiteHealth.php:187 msgid "You currently have the default mailer selected, which means that you haven’t set up SMTP yet." msgstr "" -#: build/wp-mail-smtp/src/SiteHealth.php:192 #: src/SiteHealth.php:192 msgid "WP Mail SMTP mailer setup is incomplete" msgstr "" -#: build/wp-mail-smtp/src/SiteHealth.php:198 #: src/SiteHealth.php:198 msgid "The WP Mail SMTP plugin mailer setup is incomplete. Please click on the link below to access plugin settings and configure the mailer." msgstr "" -#: build/wp-mail-smtp/src/SiteHealth.php:203 #: src/SiteHealth.php:203 msgid "Configure mailer" msgstr "" -#: build/wp-mail-smtp/src/SiteHealth.php:220 #: src/SiteHealth.php:220 msgid "WP Mail SMTP DB tables are created" msgstr "" -#: build/wp-mail-smtp/src/SiteHealth.php:226 #: src/SiteHealth.php:226 msgid "WP Mail SMTP is using custom database tables for some of its features. In order to work properly, the custom tables should be created, and it looks like they exist in your database." msgstr "" -#: build/wp-mail-smtp/src/SiteHealth.php:234 #: src/SiteHealth.php:234 msgid "WP Mail SMTP DB tables check has failed" msgstr "" #. translators: %s - the list of missing tables separated by comma. -#: build/wp-mail-smtp/src/SiteHealth.php:240 #: src/SiteHealth.php:240 msgid "Missing table: %s" msgid_plural "Missing tables: %s" msgstr[0] "" msgstr[1] "" -#: build/wp-mail-smtp/src/SiteHealth.php:243 #: src/SiteHealth.php:243 msgid "WP Mail SMTP is using custom database tables for some of its features. In order to work properly, the custom tables should be created, and it seems they are missing. Please try to re-install the WP Mail SMTP plugin. If this issue persists, please contact our support." msgstr "" #. translators: %1$s - date, \a\t - specially escaped "at", %2$s - time. -#: build/wp-mail-smtp/src/WP.php:190 #: src/WP.php:190 msgid "%1$s \\a\\t %2$s" msgstr "" -#: build/wp-mail-smtp/wp_mail_smtp.php:137 #: wp_mail_smtp.php:137 msgid "Please deactivate the free version of the WP Mail SMTP plugin before activating WP Mail SMTP Pro." msgstr "" #. translators: %1$s - WPBeginner URL for recommended WordPress hosting. -#: build/wp-mail-smtp/wp_mail_smtp.php:165 #: wp_mail_smtp.php:165 msgid "Your site is running an insecure version of PHP that is no longer supported. Please contact your web hosting provider to update your PHP version or switch to a recommended WordPress hosting company." msgstr "" #. translators: %s - WPMailSMTP.com docs URL with more details. -#: build/wp-mail-smtp/wp_mail_smtp.php:182 #: wp_mail_smtp.php:182 msgid "WP Mail SMTP plugin is disabled on your site until you fix the issue. Read more for additional information." msgstr "" - -#: src/Pro/Providers/Providers.php:157 -msgid "OK" -msgstr "" - -#: src/Pro/SiteHealth.php:58 -msgid "Is wpmailsmtp.com reachable?" -msgstr "" diff --git a/wp-content/plugins/wp-mail-smtp/assets/libs/jquery-confirm.min.css b/wp-content/plugins/wp-mail-smtp/assets/libs/jquery-confirm.min.css index bd1bc75..b66d205 100644 --- a/wp-content/plugins/wp-mail-smtp/assets/libs/jquery-confirm.min.css +++ b/wp-content/plugins/wp-mail-smtp/assets/libs/jquery-confirm.min.css @@ -1,9 +1,9 @@ -/*! - * jquery-confirm v3.3.4 (http://craftpip.github.io/jquery-confirm/) - * Author: boniface pereira - * Website: www.craftpip.com - * Contact: hey@craftpip.com - * - * Copyright 2013-2019 jquery-confirm - * Licensed under MIT (https://github.com/craftpip/jquery-confirm/blob/master/LICENSE) +/*! + * jquery-confirm v3.3.4 (http://craftpip.github.io/jquery-confirm/) + * Author: boniface pereira + * Website: www.craftpip.com + * Contact: hey@craftpip.com + * + * Copyright 2013-2019 jquery-confirm + * Licensed under MIT (https://github.com/craftpip/jquery-confirm/blob/master/LICENSE) */@-webkit-keyframes jconfirm-spin{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes jconfirm-spin{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}body[class*=jconfirm-no-scroll-]{overflow:hidden!important}.jconfirm{position:fixed;top:0;left:0;right:0;bottom:0;z-index:99999999;font-family:inherit;overflow:hidden}.jconfirm .jconfirm-bg{position:fixed;top:0;left:0;right:0;bottom:0;-webkit-transition:opacity .4s;transition:opacity .4s}.jconfirm .jconfirm-bg.jconfirm-bg-h{opacity:0!important}.jconfirm .jconfirm-scrollpane{-webkit-perspective:500px;perspective:500px;-webkit-perspective-origin:center;perspective-origin:center;display:table;width:100%;height:100%}.jconfirm .jconfirm-row{display:table-row;width:100%}.jconfirm .jconfirm-cell{display:table-cell;vertical-align:middle}.jconfirm .jconfirm-holder{max-height:100%;padding:50px 0}.jconfirm .jconfirm-box-container{-webkit-transition:-webkit-transform;transition:-webkit-transform;transition:transform;transition:transform,-webkit-transform}.jconfirm .jconfirm-box-container.jconfirm-no-transition{-webkit-transition:none!important;transition:none!important}.jconfirm .jconfirm-box{background:white;border-radius:4px;position:relative;outline:0;padding:15px 15px 0;overflow:hidden;margin-left:auto;margin-right:auto}@-webkit-keyframes type-blue{1%,100%{border-color:#3498db}50%{border-color:#5faee3}}@keyframes type-blue{1%,100%{border-color:#3498db}50%{border-color:#5faee3}}@-webkit-keyframes type-green{1%,100%{border-color:#2ecc71}50%{border-color:#54d98c}}@keyframes type-green{1%,100%{border-color:#2ecc71}50%{border-color:#54d98c}}@-webkit-keyframes type-red{1%,100%{border-color:#e74c3c}50%{border-color:#ed7669}}@keyframes type-red{1%,100%{border-color:#e74c3c}50%{border-color:#ed7669}}@-webkit-keyframes type-orange{1%,100%{border-color:#f1c40f}50%{border-color:#f4d03f}}@keyframes type-orange{1%,100%{border-color:#f1c40f}50%{border-color:#f4d03f}}@-webkit-keyframes type-purple{1%,100%{border-color:#9b59b6}50%{border-color:#b07cc6}}@keyframes type-purple{1%,100%{border-color:#9b59b6}50%{border-color:#b07cc6}}@-webkit-keyframes type-dark{1%,100%{border-color:#34495e}50%{border-color:#46627f}}@keyframes type-dark{1%,100%{border-color:#34495e}50%{border-color:#46627f}}.jconfirm .jconfirm-box.jconfirm-type-animated{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.jconfirm .jconfirm-box.jconfirm-type-blue{border-top:solid 7px #3498db;-webkit-animation-name:type-blue;animation-name:type-blue}.jconfirm .jconfirm-box.jconfirm-type-green{border-top:solid 7px #2ecc71;-webkit-animation-name:type-green;animation-name:type-green}.jconfirm .jconfirm-box.jconfirm-type-red{border-top:solid 7px #e74c3c;-webkit-animation-name:type-red;animation-name:type-red}.jconfirm .jconfirm-box.jconfirm-type-orange{border-top:solid 7px #f1c40f;-webkit-animation-name:type-orange;animation-name:type-orange}.jconfirm .jconfirm-box.jconfirm-type-purple{border-top:solid 7px #9b59b6;-webkit-animation-name:type-purple;animation-name:type-purple}.jconfirm .jconfirm-box.jconfirm-type-dark{border-top:solid 7px #34495e;-webkit-animation-name:type-dark;animation-name:type-dark}.jconfirm .jconfirm-box.loading{height:120px}.jconfirm .jconfirm-box.loading:before{content:'';position:absolute;left:0;background:white;right:0;top:0;bottom:0;border-radius:10px;z-index:1}.jconfirm .jconfirm-box.loading:after{opacity:.6;content:'';height:30px;width:30px;border:solid 3px transparent;position:absolute;left:50%;margin-left:-15px;border-radius:50%;-webkit-animation:jconfirm-spin 1s infinite linear;animation:jconfirm-spin 1s infinite linear;border-bottom-color:dodgerblue;top:50%;margin-top:-15px;z-index:2}.jconfirm .jconfirm-box div.jconfirm-closeIcon{height:20px;width:20px;position:absolute;top:10px;right:10px;cursor:pointer;opacity:.6;text-align:center;font-size:27px!important;line-height:14px!important;display:none;z-index:1}.jconfirm .jconfirm-box div.jconfirm-closeIcon:empty{display:none}.jconfirm .jconfirm-box div.jconfirm-closeIcon .fa{font-size:16px}.jconfirm .jconfirm-box div.jconfirm-closeIcon .glyphicon{font-size:16px}.jconfirm .jconfirm-box div.jconfirm-closeIcon .zmdi{font-size:16px}.jconfirm .jconfirm-box div.jconfirm-closeIcon:hover{opacity:1}.jconfirm .jconfirm-box div.jconfirm-title-c{display:block;font-size:22px;line-height:20px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default;padding-bottom:15px}.jconfirm .jconfirm-box div.jconfirm-title-c.jconfirm-hand{cursor:move}.jconfirm .jconfirm-box div.jconfirm-title-c .jconfirm-icon-c{font-size:inherit;display:inline-block;vertical-align:middle}.jconfirm .jconfirm-box div.jconfirm-title-c .jconfirm-icon-c i{vertical-align:middle}.jconfirm .jconfirm-box div.jconfirm-title-c .jconfirm-icon-c:empty{display:none}.jconfirm .jconfirm-box div.jconfirm-title-c .jconfirm-title{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:inherit;font-family:inherit;display:inline-block;vertical-align:middle}.jconfirm .jconfirm-box div.jconfirm-title-c .jconfirm-title:empty{display:none}.jconfirm .jconfirm-box div.jconfirm-content-pane{margin-bottom:15px;height:auto;-webkit-transition:height .4s ease-in;transition:height .4s ease-in;display:inline-block;width:100%;position:relative;overflow-x:hidden;overflow-y:auto}.jconfirm .jconfirm-box div.jconfirm-content-pane.no-scroll{overflow-y:hidden}.jconfirm .jconfirm-box div.jconfirm-content-pane::-webkit-scrollbar{width:3px}.jconfirm .jconfirm-box div.jconfirm-content-pane::-webkit-scrollbar-track{background:rgba(0,0,0,0.1)}.jconfirm .jconfirm-box div.jconfirm-content-pane::-webkit-scrollbar-thumb{background:#666;border-radius:3px}.jconfirm .jconfirm-box div.jconfirm-content-pane .jconfirm-content{overflow:auto}.jconfirm .jconfirm-box div.jconfirm-content-pane .jconfirm-content img{max-width:100%;height:auto}.jconfirm .jconfirm-box div.jconfirm-content-pane .jconfirm-content:empty{display:none}.jconfirm .jconfirm-box .jconfirm-buttons{padding-bottom:11px}.jconfirm .jconfirm-box .jconfirm-buttons>button{margin-bottom:4px;margin-left:2px;margin-right:2px}.jconfirm .jconfirm-box .jconfirm-buttons button{display:inline-block;padding:6px 12px;font-size:14px;font-weight:400;line-height:1.42857143;text-align:center;white-space:nowrap;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-radius:4px;min-height:1em;-webkit-transition:opacity .1s ease,background-color .1s ease,color .1s ease,background .1s ease,-webkit-box-shadow .1s ease;transition:opacity .1s ease,background-color .1s ease,color .1s ease,background .1s ease,-webkit-box-shadow .1s ease;transition:opacity .1s ease,background-color .1s ease,color .1s ease,box-shadow .1s ease,background .1s ease;transition:opacity .1s ease,background-color .1s ease,color .1s ease,box-shadow .1s ease,background .1s ease,-webkit-box-shadow .1s ease;-webkit-tap-highlight-color:transparent;border:0;background-image:none}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-blue{background-color:#3498db;color:#FFF;text-shadow:none;-webkit-transition:background .2s;transition:background .2s}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-blue:hover{background-color:#2980b9;color:#FFF}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-green{background-color:#2ecc71;color:#FFF;text-shadow:none;-webkit-transition:background .2s;transition:background .2s}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-green:hover{background-color:#27ae60;color:#FFF}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-red{background-color:#e74c3c;color:#FFF;text-shadow:none;-webkit-transition:background .2s;transition:background .2s}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-red:hover{background-color:#c0392b;color:#FFF}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-orange{background-color:#f1c40f;color:#FFF;text-shadow:none;-webkit-transition:background .2s;transition:background .2s}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-orange:hover{background-color:#f39c12;color:#FFF}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-default{background-color:#ecf0f1;color:#000;text-shadow:none;-webkit-transition:background .2s;transition:background .2s}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-default:hover{background-color:#bdc3c7;color:#000}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-purple{background-color:#9b59b6;color:#FFF;text-shadow:none;-webkit-transition:background .2s;transition:background .2s}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-purple:hover{background-color:#8e44ad;color:#FFF}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-dark{background-color:#34495e;color:#FFF;text-shadow:none;-webkit-transition:background .2s;transition:background .2s}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-dark:hover{background-color:#2c3e50;color:#FFF}.jconfirm .jconfirm-box.jconfirm-type-red .jconfirm-title-c .jconfirm-icon-c{color:#e74c3c!important}.jconfirm .jconfirm-box.jconfirm-type-blue .jconfirm-title-c .jconfirm-icon-c{color:#3498db!important}.jconfirm .jconfirm-box.jconfirm-type-green .jconfirm-title-c .jconfirm-icon-c{color:#2ecc71!important}.jconfirm .jconfirm-box.jconfirm-type-purple .jconfirm-title-c .jconfirm-icon-c{color:#9b59b6!important}.jconfirm .jconfirm-box.jconfirm-type-orange .jconfirm-title-c .jconfirm-icon-c{color:#f1c40f!important}.jconfirm .jconfirm-box.jconfirm-type-dark .jconfirm-title-c .jconfirm-icon-c{color:#34495e!important}.jconfirm .jconfirm-clear{clear:both}.jconfirm.jconfirm-rtl{direction:rtl}.jconfirm.jconfirm-rtl div.jconfirm-closeIcon{left:5px;right:auto}.jconfirm.jconfirm-white .jconfirm-bg,.jconfirm.jconfirm-light .jconfirm-bg{background-color:#444;opacity:.2}.jconfirm.jconfirm-white .jconfirm-box,.jconfirm.jconfirm-light .jconfirm-box{-webkit-box-shadow:0 2px 6px rgba(0,0,0,0.2);box-shadow:0 2px 6px rgba(0,0,0,0.2);border-radius:5px}.jconfirm.jconfirm-white .jconfirm-box .jconfirm-title-c .jconfirm-icon-c,.jconfirm.jconfirm-light .jconfirm-box .jconfirm-title-c .jconfirm-icon-c{margin-right:8px;margin-left:0}.jconfirm.jconfirm-white .jconfirm-box .jconfirm-buttons,.jconfirm.jconfirm-light .jconfirm-box .jconfirm-buttons{float:right}.jconfirm.jconfirm-white .jconfirm-box .jconfirm-buttons button,.jconfirm.jconfirm-light .jconfirm-box .jconfirm-buttons button{text-transform:uppercase;font-size:14px;font-weight:bold;text-shadow:none}.jconfirm.jconfirm-white .jconfirm-box .jconfirm-buttons button.btn-default,.jconfirm.jconfirm-light .jconfirm-box .jconfirm-buttons button.btn-default{-webkit-box-shadow:none;box-shadow:none;color:#333}.jconfirm.jconfirm-white .jconfirm-box .jconfirm-buttons button.btn-default:hover,.jconfirm.jconfirm-light .jconfirm-box .jconfirm-buttons button.btn-default:hover{background:#ddd}.jconfirm.jconfirm-white.jconfirm-rtl .jconfirm-title-c .jconfirm-icon-c,.jconfirm.jconfirm-light.jconfirm-rtl .jconfirm-title-c .jconfirm-icon-c{margin-left:8px;margin-right:0}.jconfirm.jconfirm-black .jconfirm-bg,.jconfirm.jconfirm-dark .jconfirm-bg{background-color:darkslategray;opacity:.4}.jconfirm.jconfirm-black .jconfirm-box,.jconfirm.jconfirm-dark .jconfirm-box{-webkit-box-shadow:0 2px 6px rgba(0,0,0,0.2);box-shadow:0 2px 6px rgba(0,0,0,0.2);background:#444;border-radius:5px;color:white}.jconfirm.jconfirm-black .jconfirm-box .jconfirm-title-c .jconfirm-icon-c,.jconfirm.jconfirm-dark .jconfirm-box .jconfirm-title-c .jconfirm-icon-c{margin-right:8px;margin-left:0}.jconfirm.jconfirm-black .jconfirm-box .jconfirm-buttons,.jconfirm.jconfirm-dark .jconfirm-box .jconfirm-buttons{float:right}.jconfirm.jconfirm-black .jconfirm-box .jconfirm-buttons button,.jconfirm.jconfirm-dark .jconfirm-box .jconfirm-buttons button{border:0;background-image:none;text-transform:uppercase;font-size:14px;font-weight:bold;text-shadow:none;-webkit-transition:background .1s;transition:background .1s;color:white}.jconfirm.jconfirm-black .jconfirm-box .jconfirm-buttons button.btn-default,.jconfirm.jconfirm-dark .jconfirm-box .jconfirm-buttons button.btn-default{-webkit-box-shadow:none;box-shadow:none;color:#fff;background:0}.jconfirm.jconfirm-black .jconfirm-box .jconfirm-buttons button.btn-default:hover,.jconfirm.jconfirm-dark .jconfirm-box .jconfirm-buttons button.btn-default:hover{background:#666}.jconfirm.jconfirm-black.jconfirm-rtl .jconfirm-title-c .jconfirm-icon-c,.jconfirm.jconfirm-dark.jconfirm-rtl .jconfirm-title-c .jconfirm-icon-c{margin-left:8px;margin-right:0}.jconfirm .jconfirm-box.hilight.jconfirm-hilight-shake{-webkit-animation:shake .82s cubic-bezier(0.36,0.07,0.19,0.97) both;animation:shake .82s cubic-bezier(0.36,0.07,0.19,0.97) both;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.jconfirm .jconfirm-box.hilight.jconfirm-hilight-glow{-webkit-animation:glow .82s cubic-bezier(0.36,0.07,0.19,0.97) both;animation:glow .82s cubic-bezier(0.36,0.07,0.19,0.97) both;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}@-webkit-keyframes shake{10%,90%{-webkit-transform:translate3d(-2px,0,0);transform:translate3d(-2px,0,0)}20%,80%{-webkit-transform:translate3d(4px,0,0);transform:translate3d(4px,0,0)}30%,50%,70%{-webkit-transform:translate3d(-8px,0,0);transform:translate3d(-8px,0,0)}40%,60%{-webkit-transform:translate3d(8px,0,0);transform:translate3d(8px,0,0)}}@keyframes shake{10%,90%{-webkit-transform:translate3d(-2px,0,0);transform:translate3d(-2px,0,0)}20%,80%{-webkit-transform:translate3d(4px,0,0);transform:translate3d(4px,0,0)}30%,50%,70%{-webkit-transform:translate3d(-8px,0,0);transform:translate3d(-8px,0,0)}40%,60%{-webkit-transform:translate3d(8px,0,0);transform:translate3d(8px,0,0)}}@-webkit-keyframes glow{0%,100%{-webkit-box-shadow:0 0 0 red;box-shadow:0 0 0 red}50%{-webkit-box-shadow:0 0 30px red;box-shadow:0 0 30px red}}@keyframes glow{0%,100%{-webkit-box-shadow:0 0 0 red;box-shadow:0 0 0 red}50%{-webkit-box-shadow:0 0 30px red;box-shadow:0 0 30px red}}.jconfirm{-webkit-perspective:400px;perspective:400px}.jconfirm .jconfirm-box{opacity:1;-webkit-transition-property:all;transition-property:all}.jconfirm .jconfirm-box.jconfirm-animation-top,.jconfirm .jconfirm-box.jconfirm-animation-left,.jconfirm .jconfirm-box.jconfirm-animation-right,.jconfirm .jconfirm-box.jconfirm-animation-bottom,.jconfirm .jconfirm-box.jconfirm-animation-opacity,.jconfirm .jconfirm-box.jconfirm-animation-zoom,.jconfirm .jconfirm-box.jconfirm-animation-scale,.jconfirm .jconfirm-box.jconfirm-animation-none,.jconfirm .jconfirm-box.jconfirm-animation-rotate,.jconfirm .jconfirm-box.jconfirm-animation-rotatex,.jconfirm .jconfirm-box.jconfirm-animation-rotatey,.jconfirm .jconfirm-box.jconfirm-animation-scaley,.jconfirm .jconfirm-box.jconfirm-animation-scalex{opacity:0}.jconfirm .jconfirm-box.jconfirm-animation-rotate{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.jconfirm .jconfirm-box.jconfirm-animation-rotatex{-webkit-transform:rotateX(90deg);transform:rotateX(90deg);-webkit-transform-origin:center;transform-origin:center}.jconfirm .jconfirm-box.jconfirm-animation-rotatexr{-webkit-transform:rotateX(-90deg);transform:rotateX(-90deg);-webkit-transform-origin:center;transform-origin:center}.jconfirm .jconfirm-box.jconfirm-animation-rotatey{-webkit-transform:rotatey(90deg);transform:rotatey(90deg);-webkit-transform-origin:center;transform-origin:center}.jconfirm .jconfirm-box.jconfirm-animation-rotateyr{-webkit-transform:rotatey(-90deg);transform:rotatey(-90deg);-webkit-transform-origin:center;transform-origin:center}.jconfirm .jconfirm-box.jconfirm-animation-scaley{-webkit-transform:scaley(1.5);transform:scaley(1.5);-webkit-transform-origin:center;transform-origin:center}.jconfirm .jconfirm-box.jconfirm-animation-scalex{-webkit-transform:scalex(1.5);transform:scalex(1.5);-webkit-transform-origin:center;transform-origin:center}.jconfirm .jconfirm-box.jconfirm-animation-top{-webkit-transform:translate(0px,-100px);transform:translate(0px,-100px)}.jconfirm .jconfirm-box.jconfirm-animation-left{-webkit-transform:translate(-100px,0px);transform:translate(-100px,0px)}.jconfirm .jconfirm-box.jconfirm-animation-right{-webkit-transform:translate(100px,0px);transform:translate(100px,0px)}.jconfirm .jconfirm-box.jconfirm-animation-bottom{-webkit-transform:translate(0px,100px);transform:translate(0px,100px)}.jconfirm .jconfirm-box.jconfirm-animation-zoom{-webkit-transform:scale(1.2);transform:scale(1.2)}.jconfirm .jconfirm-box.jconfirm-animation-scale{-webkit-transform:scale(0.5);transform:scale(0.5)}.jconfirm .jconfirm-box.jconfirm-animation-none{visibility:hidden}.jconfirm.jconfirm-supervan .jconfirm-bg{background-color:rgba(54,70,93,0.95)}.jconfirm.jconfirm-supervan .jconfirm-box{background-color:transparent}.jconfirm.jconfirm-supervan .jconfirm-box.jconfirm-type-blue{border:0}.jconfirm.jconfirm-supervan .jconfirm-box.jconfirm-type-green{border:0}.jconfirm.jconfirm-supervan .jconfirm-box.jconfirm-type-red{border:0}.jconfirm.jconfirm-supervan .jconfirm-box.jconfirm-type-orange{border:0}.jconfirm.jconfirm-supervan .jconfirm-box.jconfirm-type-purple{border:0}.jconfirm.jconfirm-supervan .jconfirm-box.jconfirm-type-dark{border:0}.jconfirm.jconfirm-supervan .jconfirm-box div.jconfirm-closeIcon{color:white}.jconfirm.jconfirm-supervan .jconfirm-box div.jconfirm-title-c{text-align:center;color:white;font-size:28px;font-weight:normal}.jconfirm.jconfirm-supervan .jconfirm-box div.jconfirm-title-c>*{padding-bottom:25px}.jconfirm.jconfirm-supervan .jconfirm-box div.jconfirm-title-c .jconfirm-icon-c{margin-right:8px;margin-left:0}.jconfirm.jconfirm-supervan .jconfirm-box div.jconfirm-content-pane{margin-bottom:25px}.jconfirm.jconfirm-supervan .jconfirm-box div.jconfirm-content{text-align:center;color:white}.jconfirm.jconfirm-supervan .jconfirm-box .jconfirm-buttons{text-align:center}.jconfirm.jconfirm-supervan .jconfirm-box .jconfirm-buttons button{font-size:16px;border-radius:2px;background:#303f53;text-shadow:none;border:0;color:white;padding:10px;min-width:100px}.jconfirm.jconfirm-supervan.jconfirm-rtl .jconfirm-box div.jconfirm-title-c .jconfirm-icon-c{margin-left:8px;margin-right:0}.jconfirm.jconfirm-material .jconfirm-bg{background-color:rgba(0,0,0,0.67)}.jconfirm.jconfirm-material .jconfirm-box{background-color:white;-webkit-box-shadow:0 7px 8px -4px rgba(0,0,0,0.2),0 13px 19px 2px rgba(0,0,0,0.14),0 5px 24px 4px rgba(0,0,0,0.12);box-shadow:0 7px 8px -4px rgba(0,0,0,0.2),0 13px 19px 2px rgba(0,0,0,0.14),0 5px 24px 4px rgba(0,0,0,0.12);padding:30px 25px 10px 25px}.jconfirm.jconfirm-material .jconfirm-box .jconfirm-title-c .jconfirm-icon-c{margin-right:8px;margin-left:0}.jconfirm.jconfirm-material .jconfirm-box div.jconfirm-closeIcon{color:rgba(0,0,0,0.87)}.jconfirm.jconfirm-material .jconfirm-box div.jconfirm-title-c{color:rgba(0,0,0,0.87);font-size:22px;font-weight:bold}.jconfirm.jconfirm-material .jconfirm-box div.jconfirm-content{color:rgba(0,0,0,0.87)}.jconfirm.jconfirm-material .jconfirm-box .jconfirm-buttons{text-align:right}.jconfirm.jconfirm-material .jconfirm-box .jconfirm-buttons button{text-transform:uppercase;font-weight:500}.jconfirm.jconfirm-material.jconfirm-rtl .jconfirm-title-c .jconfirm-icon-c{margin-left:8px;margin-right:0}.jconfirm.jconfirm-bootstrap .jconfirm-bg{background-color:rgba(0,0,0,0.21)}.jconfirm.jconfirm-bootstrap .jconfirm-box{background-color:white;-webkit-box-shadow:0 3px 8px 0 rgba(0,0,0,0.2);box-shadow:0 3px 8px 0 rgba(0,0,0,0.2);border:solid 1px rgba(0,0,0,0.4);padding:15px 0 0}.jconfirm.jconfirm-bootstrap .jconfirm-box .jconfirm-title-c .jconfirm-icon-c{margin-right:8px;margin-left:0}.jconfirm.jconfirm-bootstrap .jconfirm-box div.jconfirm-closeIcon{color:rgba(0,0,0,0.87)}.jconfirm.jconfirm-bootstrap .jconfirm-box div.jconfirm-title-c{color:rgba(0,0,0,0.87);font-size:22px;font-weight:bold;padding-left:15px;padding-right:15px}.jconfirm.jconfirm-bootstrap .jconfirm-box div.jconfirm-content{color:rgba(0,0,0,0.87);padding:0 15px}.jconfirm.jconfirm-bootstrap .jconfirm-box .jconfirm-buttons{text-align:right;padding:10px;margin:-5px 0 0;border-top:solid 1px #ddd;overflow:hidden;border-radius:0 0 4px 4px}.jconfirm.jconfirm-bootstrap .jconfirm-box .jconfirm-buttons button{font-weight:500}.jconfirm.jconfirm-bootstrap.jconfirm-rtl .jconfirm-title-c .jconfirm-icon-c{margin-left:8px;margin-right:0}.jconfirm.jconfirm-modern .jconfirm-bg{background-color:slategray;opacity:.6}.jconfirm.jconfirm-modern .jconfirm-box{background-color:white;-webkit-box-shadow:0 7px 8px -4px rgba(0,0,0,0.2),0 13px 19px 2px rgba(0,0,0,0.14),0 5px 24px 4px rgba(0,0,0,0.12);box-shadow:0 7px 8px -4px rgba(0,0,0,0.2),0 13px 19px 2px rgba(0,0,0,0.14),0 5px 24px 4px rgba(0,0,0,0.12);padding:30px 30px 15px}.jconfirm.jconfirm-modern .jconfirm-box div.jconfirm-closeIcon{color:rgba(0,0,0,0.87);top:15px;right:15px}.jconfirm.jconfirm-modern .jconfirm-box div.jconfirm-title-c{color:rgba(0,0,0,0.87);font-size:24px;font-weight:bold;text-align:center;margin-bottom:10px}.jconfirm.jconfirm-modern .jconfirm-box div.jconfirm-title-c .jconfirm-icon-c{-webkit-transition:-webkit-transform .5s;transition:-webkit-transform .5s;transition:transform .5s;transition:transform .5s,-webkit-transform .5s;-webkit-transform:scale(0);transform:scale(0);display:block;margin-right:0;margin-left:0;margin-bottom:10px;font-size:69px;color:#aaa}.jconfirm.jconfirm-modern .jconfirm-box div.jconfirm-content{text-align:center;font-size:15px;color:#777;margin-bottom:25px}.jconfirm.jconfirm-modern .jconfirm-box .jconfirm-buttons{text-align:center}.jconfirm.jconfirm-modern .jconfirm-box .jconfirm-buttons button{font-weight:bold;text-transform:uppercase;-webkit-transition:background .1s;transition:background .1s;padding:10px 20px}.jconfirm.jconfirm-modern .jconfirm-box .jconfirm-buttons button+button{margin-left:4px}.jconfirm.jconfirm-modern.jconfirm-open .jconfirm-box .jconfirm-title-c .jconfirm-icon-c{-webkit-transform:scale(1);transform:scale(1)} \ No newline at end of file diff --git a/wp-content/plugins/wp-mail-smtp/assets/libs/jquery-confirm.min.js b/wp-content/plugins/wp-mail-smtp/assets/libs/jquery-confirm.min.js index 4cf8123..2939dc6 100644 --- a/wp-content/plugins/wp-mail-smtp/assets/libs/jquery-confirm.min.js +++ b/wp-content/plugins/wp-mail-smtp/assets/libs/jquery-confirm.min.js @@ -1,10 +1,10 @@ -/*! - * jquery-confirm v3.3.4 (http://craftpip.github.io/jquery-confirm/) - * Author: Boniface Pereira - * Website: www.craftpip.com - * Contact: hey@craftpip.com - * - * Copyright 2013-2019 jquery-confirm - * Licensed under MIT (https://github.com/craftpip/jquery-confirm/blob/master/LICENSE) - */ +/*! + * jquery-confirm v3.3.4 (http://craftpip.github.io/jquery-confirm/) + * Author: Boniface Pereira + * Website: www.craftpip.com + * Contact: hey@craftpip.com + * + * Copyright 2013-2019 jquery-confirm + * Licensed under MIT (https://github.com/craftpip/jquery-confirm/blob/master/LICENSE) + */ (function(factory){if(typeof define==="function"&&define.amd){define(["jquery"],factory);}else{if(typeof module==="object"&&module.exports){module.exports=function(root,jQuery){if(jQuery===undefined){if(typeof window!=="undefined"){jQuery=require("jquery");}else{jQuery=require("jquery")(root);}}factory(jQuery);return jQuery;};}else{factory(jQuery);}}}(function($){var w=window;$.fn.confirm=function(options,option2){if(typeof options==="undefined"){options={};}if(typeof options==="string"){options={content:options,title:(option2)?option2:false};}$(this).each(function(){var $this=$(this);if($this.attr("jc-attached")){console.warn("jConfirm has already been attached to this element ",$this[0]);return;}$this.on("click",function(e){e.preventDefault();var jcOption=$.extend({},options);if($this.attr("data-title")){jcOption.title=$this.attr("data-title");}if($this.attr("data-content")){jcOption.content=$this.attr("data-content");}if(typeof jcOption.buttons==="undefined"){jcOption.buttons={};}jcOption["$target"]=$this;if($this.attr("href")&&Object.keys(jcOption.buttons).length===0){var buttons=$.extend(true,{},w.jconfirm.pluginDefaults.defaultButtons,(w.jconfirm.defaults||{}).defaultButtons||{});var firstBtn=Object.keys(buttons)[0];jcOption.buttons=buttons;jcOption.buttons[firstBtn].action=function(){location.href=$this.attr("href");};}jcOption.closeIcon=false;var instance=$.confirm(jcOption);});$this.attr("jc-attached",true);});return $(this);};$.confirm=function(options,option2){if(typeof options==="undefined"){options={};}if(typeof options==="string"){options={content:options,title:(option2)?option2:false};}var putDefaultButtons=!(options.buttons===false);if(typeof options.buttons!=="object"){options.buttons={};}if(Object.keys(options.buttons).length===0&&putDefaultButtons){var buttons=$.extend(true,{},w.jconfirm.pluginDefaults.defaultButtons,(w.jconfirm.defaults||{}).defaultButtons||{});options.buttons=buttons;}return w.jconfirm(options);};$.alert=function(options,option2){if(typeof options==="undefined"){options={};}if(typeof options==="string"){options={content:options,title:(option2)?option2:false};}var putDefaultButtons=!(options.buttons===false);if(typeof options.buttons!=="object"){options.buttons={};}if(Object.keys(options.buttons).length===0&&putDefaultButtons){var buttons=$.extend(true,{},w.jconfirm.pluginDefaults.defaultButtons,(w.jconfirm.defaults||{}).defaultButtons||{});var firstBtn=Object.keys(buttons)[0];options.buttons[firstBtn]=buttons[firstBtn];}return w.jconfirm(options);};$.dialog=function(options,option2){if(typeof options==="undefined"){options={};}if(typeof options==="string"){options={content:options,title:(option2)?option2:false,closeIcon:function(){}};}options.buttons={};if(typeof options.closeIcon==="undefined"){options.closeIcon=function(){};}options.confirmKeys=[13];return w.jconfirm(options);};w.jconfirm=function(options){if(typeof options==="undefined"){options={};}var pluginOptions=$.extend(true,{},w.jconfirm.pluginDefaults);if(w.jconfirm.defaults){pluginOptions=$.extend(true,pluginOptions,w.jconfirm.defaults);}pluginOptions=$.extend(true,{},pluginOptions,options);var instance=new w.Jconfirm(pluginOptions);w.jconfirm.instances.push(instance);return instance;};w.Jconfirm=function(options){$.extend(this,options);this._init();};w.Jconfirm.prototype={_init:function(){var that=this;if(!w.jconfirm.instances.length){w.jconfirm.lastFocused=$("body").find(":focus");}this._id=Math.round(Math.random()*99999);this.contentParsed=$(document.createElement("div"));if(!this.lazyOpen){setTimeout(function(){that.open();},0);}},_buildHTML:function(){var that=this;this._parseAnimation(this.animation,"o");this._parseAnimation(this.closeAnimation,"c");this._parseBgDismissAnimation(this.backgroundDismissAnimation);this._parseColumnClass(this.columnClass);this._parseTheme(this.theme);this._parseType(this.type);var template=$(this.template);template.find(".jconfirm-box").addClass(this.animationParsed).addClass(this.backgroundDismissAnimationParsed).addClass(this.typeParsed);if(this.typeAnimated){template.find(".jconfirm-box").addClass("jconfirm-type-animated");}if(this.useBootstrap){template.find(".jc-bs3-row").addClass(this.bootstrapClasses.row);template.find(".jc-bs3-row").addClass("justify-content-md-center justify-content-sm-center justify-content-xs-center justify-content-lg-center");template.find(".jconfirm-box-container").addClass(this.columnClassParsed);if(this.containerFluid){template.find(".jc-bs3-container").addClass(this.bootstrapClasses.containerFluid);}else{template.find(".jc-bs3-container").addClass(this.bootstrapClasses.container);}}else{template.find(".jconfirm-box").css("width",this.boxWidth);}if(this.titleClass){template.find(".jconfirm-title-c").addClass(this.titleClass);}template.addClass(this.themeParsed);var ariaLabel="jconfirm-box"+this._id;template.find(".jconfirm-box").attr("aria-labelledby",ariaLabel).attr("tabindex",-1);template.find(".jconfirm-content").attr("id",ariaLabel);if(this.bgOpacity!==null){template.find(".jconfirm-bg").css("opacity",this.bgOpacity);}if(this.rtl){template.addClass("jconfirm-rtl");}this.$el=template.appendTo(this.container);this.$jconfirmBoxContainer=this.$el.find(".jconfirm-box-container");this.$jconfirmBox=this.$body=this.$el.find(".jconfirm-box");this.$jconfirmBg=this.$el.find(".jconfirm-bg");this.$title=this.$el.find(".jconfirm-title");this.$titleContainer=this.$el.find(".jconfirm-title-c");this.$content=this.$el.find("div.jconfirm-content");this.$contentPane=this.$el.find(".jconfirm-content-pane");this.$icon=this.$el.find(".jconfirm-icon-c");this.$closeIcon=this.$el.find(".jconfirm-closeIcon");this.$holder=this.$el.find(".jconfirm-holder");this.$btnc=this.$el.find(".jconfirm-buttons");this.$scrollPane=this.$el.find(".jconfirm-scrollpane");that.setStartingPoint();this._contentReady=$.Deferred();this._modalReady=$.Deferred();this.$holder.css({"padding-top":this.offsetTop,"padding-bottom":this.offsetBottom,});this.setTitle();this.setIcon();this._setButtons();this._parseContent();this.initDraggable();if(this.isAjax){this.showLoading(false);}$.when(this._contentReady,this._modalReady).then(function(){if(that.isAjaxLoading){setTimeout(function(){that.isAjaxLoading=false;that.setContent();that.setTitle();that.setIcon();setTimeout(function(){that.hideLoading(false);that._updateContentMaxHeight();},100);if(typeof that.onContentReady==="function"){that.onContentReady();}},50);}else{that._updateContentMaxHeight();that.setTitle();that.setIcon();if(typeof that.onContentReady==="function"){that.onContentReady();}}if(that.autoClose){that._startCountDown();}}).then(function(){that._watchContent();});if(this.animation==="none"){this.animationSpeed=1;this.animationBounce=1;}this.$body.css(this._getCSS(this.animationSpeed,this.animationBounce));this.$contentPane.css(this._getCSS(this.animationSpeed,1));this.$jconfirmBg.css(this._getCSS(this.animationSpeed,1));this.$jconfirmBoxContainer.css(this._getCSS(this.animationSpeed,1));},_typePrefix:"jconfirm-type-",typeParsed:"",_parseType:function(type){this.typeParsed=this._typePrefix+type;},setType:function(type){var oldClass=this.typeParsed;this._parseType(type);this.$jconfirmBox.removeClass(oldClass).addClass(this.typeParsed);},themeParsed:"",_themePrefix:"jconfirm-",setTheme:function(theme){var previous=this.theme;this.theme=theme||this.theme;this._parseTheme(this.theme);if(previous){this.$el.removeClass(previous);}this.$el.addClass(this.themeParsed);this.theme=theme;},_parseTheme:function(theme){var that=this;theme=theme.split(",");$.each(theme,function(k,a){if(a.indexOf(that._themePrefix)===-1){theme[k]=that._themePrefix+$.trim(a);}});this.themeParsed=theme.join(" ").toLowerCase();},backgroundDismissAnimationParsed:"",_bgDismissPrefix:"jconfirm-hilight-",_parseBgDismissAnimation:function(bgDismissAnimation){var animation=bgDismissAnimation.split(",");var that=this;$.each(animation,function(k,a){if(a.indexOf(that._bgDismissPrefix)===-1){animation[k]=that._bgDismissPrefix+$.trim(a);}});this.backgroundDismissAnimationParsed=animation.join(" ").toLowerCase();},animationParsed:"",closeAnimationParsed:"",_animationPrefix:"jconfirm-animation-",setAnimation:function(animation){this.animation=animation||this.animation;this._parseAnimation(this.animation,"o");},_parseAnimation:function(animation,which){which=which||"o";var animations=animation.split(",");var that=this;$.each(animations,function(k,a){if(a.indexOf(that._animationPrefix)===-1){animations[k]=that._animationPrefix+$.trim(a);}});var a_string=animations.join(" ").toLowerCase();if(which==="o"){this.animationParsed=a_string;}else{this.closeAnimationParsed=a_string;}return a_string;},setCloseAnimation:function(closeAnimation){this.closeAnimation=closeAnimation||this.closeAnimation;this._parseAnimation(this.closeAnimation,"c");},setAnimationSpeed:function(speed){this.animationSpeed=speed||this.animationSpeed;},columnClassParsed:"",setColumnClass:function(colClass){if(!this.useBootstrap){console.warn("cannot set columnClass, useBootstrap is set to false");return;}this.columnClass=colClass||this.columnClass;this._parseColumnClass(this.columnClass);this.$jconfirmBoxContainer.addClass(this.columnClassParsed);},_updateContentMaxHeight:function(){var height=$(window).height()-(this.$jconfirmBox.outerHeight()-this.$contentPane.outerHeight())-(this.offsetTop+this.offsetBottom);this.$contentPane.css({"max-height":height+"px"});},setBoxWidth:function(width){if(this.useBootstrap){console.warn("cannot set boxWidth, useBootstrap is set to true");return;}this.boxWidth=width;this.$jconfirmBox.css("width",width);},_parseColumnClass:function(colClass){colClass=colClass.toLowerCase();var p;switch(colClass){case"xl":case"xlarge":p="col-md-12";break;case"l":case"large":p="col-md-8 col-md-offset-2";break;case"m":case"medium":p="col-md-6 col-md-offset-3";break;case"s":case"small":p="col-md-4 col-md-offset-4";break;case"xs":case"xsmall":p="col-md-2 col-md-offset-5";break;default:p=colClass;}this.columnClassParsed=p;},initDraggable:function(){var that=this;var $t=this.$titleContainer;this.resetDrag();if(this.draggable){$t.on("mousedown",function(e){$t.addClass("jconfirm-hand");that.mouseX=e.clientX;that.mouseY=e.clientY;that.isDrag=true;});$(window).on("mousemove."+this._id,function(e){if(that.isDrag){that.movingX=e.clientX-that.mouseX+that.initialX;that.movingY=e.clientY-that.mouseY+that.initialY;that.setDrag();}});$(window).on("mouseup."+this._id,function(){$t.removeClass("jconfirm-hand");if(that.isDrag){that.isDrag=false;that.initialX=that.movingX;that.initialY=that.movingY;}});}},resetDrag:function(){this.isDrag=false;this.initialX=0;this.initialY=0;this.movingX=0;this.movingY=0;this.mouseX=0;this.mouseY=0;this.$jconfirmBoxContainer.css("transform","translate("+0+"px, "+0+"px)");},setDrag:function(){if(!this.draggable){return;}this.alignMiddle=false;var boxWidth=this.$jconfirmBox.outerWidth();var boxHeight=this.$jconfirmBox.outerHeight();var windowWidth=$(window).width();var windowHeight=$(window).height();var that=this;var dragUpdate=1;if(that.movingX%dragUpdate===0||that.movingY%dragUpdate===0){if(that.dragWindowBorder){var leftDistance=(windowWidth/2)-boxWidth/2;var topDistance=(windowHeight/2)-boxHeight/2;topDistance-=that.dragWindowGap;leftDistance-=that.dragWindowGap;if(leftDistance+that.movingX<0){that.movingX=-leftDistance;}else{if(leftDistance-that.movingX<0){that.movingX=leftDistance;}}if(topDistance+that.movingY<0){that.movingY=-topDistance;}else{if(topDistance-that.movingY<0){that.movingY=topDistance;}}}that.$jconfirmBoxContainer.css("transform","translate("+that.movingX+"px, "+that.movingY+"px)");}},_scrollTop:function(){if(typeof pageYOffset!=="undefined"){return pageYOffset;}else{var B=document.body;var D=document.documentElement;D=(D.clientHeight)?D:B;return D.scrollTop;}},_watchContent:function(){var that=this;if(this._timer){clearInterval(this._timer);}var prevContentHeight=0;this._timer=setInterval(function(){if(that.smoothContent){var contentHeight=that.$content.outerHeight()||0;if(contentHeight!==prevContentHeight){prevContentHeight=contentHeight;}var wh=$(window).height();var total=that.offsetTop+that.offsetBottom+that.$jconfirmBox.height()-that.$contentPane.height()+that.$content.height();if(total').html(that.buttons[key].text).addClass(that.buttons[key].btnClass).prop("disabled",that.buttons[key].isDisabled).css("display",that.buttons[key].isHidden?"none":"").click(function(e){e.preventDefault();var res=that.buttons[key].action.apply(that,[that.buttons[key]]);that.onAction.apply(that,[key,that.buttons[key]]);that._stopCountDown();if(typeof res==="undefined"||res){that.close();}});that.buttons[key].el=button_element;that.buttons[key].setText=function(text){button_element.html(text);};that.buttons[key].addClass=function(className){button_element.addClass(className);};that.buttons[key].removeClass=function(className){button_element.removeClass(className);};that.buttons[key].disable=function(){that.buttons[key].isDisabled=true;button_element.prop("disabled",true);};that.buttons[key].enable=function(){that.buttons[key].isDisabled=false;button_element.prop("disabled",false);};that.buttons[key].show=function(){that.buttons[key].isHidden=false;button_element.css("display","");};that.buttons[key].hide=function(){that.buttons[key].isHidden=true;button_element.css("display","none");};that["$_"+key]=that["$$"+key]=button_element;that.$btnc.append(button_element);});if(total_buttons===0){this.$btnc.hide();}if(this.closeIcon===null&&total_buttons===0){this.closeIcon=true;}if(this.closeIcon){if(this.closeIconClass){var closeHtml='';this.$closeIcon.html(closeHtml);}this.$closeIcon.click(function(e){e.preventDefault();var buttonName=false;var shouldClose=false;var str;if(typeof that.closeIcon==="function"){str=that.closeIcon();}else{str=that.closeIcon;}if(typeof str==="string"&&typeof that.buttons[str]!=="undefined"){buttonName=str;shouldClose=false;}else{if(typeof str==="undefined"||!!(str)===true){shouldClose=true;}else{shouldClose=false;}}if(buttonName){var btnResponse=that.buttons[buttonName].action.apply(that);shouldClose=(typeof btnResponse==="undefined")||!!(btnResponse);}if(shouldClose){that.close();}});this.$closeIcon.show();}else{this.$closeIcon.hide();}},setTitle:function(string,force){force=force||false;if(typeof string!=="undefined"){if(typeof string==="string"){this.title=string;}else{if(typeof string==="function"){if(typeof string.promise==="function"){console.error("Promise was returned from title function, this is not supported.");}var response=string();if(typeof response==="string"){this.title=response;}else{this.title=false;}}else{this.title=false;}}}if(this.isAjaxLoading&&!force){return;}this.$title.html(this.title||"");this.updateTitleContainer();},setIcon:function(iconClass,force){force=force||false;if(typeof iconClass!=="undefined"){if(typeof iconClass==="string"){this.icon=iconClass;}else{if(typeof iconClass==="function"){var response=iconClass();if(typeof response==="string"){this.icon=response;}else{this.icon=false;}}else{this.icon=false;}}}if(this.isAjaxLoading&&!force){return;}this.$icon.html(this.icon?'':"");this.updateTitleContainer();},updateTitleContainer:function(){if(!this.title&&!this.icon){this.$titleContainer.hide();}else{this.$titleContainer.show();}},setContentPrepend:function(content,force){if(!content){return;}this.contentParsed.prepend(content);},setContentAppend:function(content){if(!content){return;}this.contentParsed.append(content);},setContent:function(content,force){force=!!force;var that=this;if(content){this.contentParsed.html("").append(content);}if(this.isAjaxLoading&&!force){return;}this.$content.html("");this.$content.append(this.contentParsed);setTimeout(function(){that.$body.find("input[autofocus]:visible:first").focus();},100);},loadingSpinner:false,showLoading:function(disableButtons){this.loadingSpinner=true;this.$jconfirmBox.addClass("loading");if(disableButtons){this.$btnc.find("button").prop("disabled",true);}},hideLoading:function(enableButtons){this.loadingSpinner=false;this.$jconfirmBox.removeClass("loading");if(enableButtons){this.$btnc.find("button").prop("disabled",false);}},ajaxResponse:false,contentParsed:"",isAjax:false,isAjaxLoading:false,_parseContent:function(){var that=this;var e=" ";if(typeof this.content==="function"){var res=this.content.apply(this);if(typeof res==="string"){this.content=res;}else{if(typeof res==="object"&&typeof res.always==="function"){this.isAjax=true;this.isAjaxLoading=true;res.always(function(data,status,xhr){that.ajaxResponse={data:data,status:status,xhr:xhr};that._contentReady.resolve(data,status,xhr);if(typeof that.contentLoaded==="function"){that.contentLoaded(data,status,xhr);}});this.content=e;}else{this.content=e;}}}if(typeof this.content==="string"&&this.content.substr(0,4).toLowerCase()==="url:"){this.isAjax=true;this.isAjaxLoading=true;var u=this.content.substring(4,this.content.length);$.get(u).done(function(html){that.contentParsed.html(html);}).always(function(data,status,xhr){that.ajaxResponse={data:data,status:status,xhr:xhr};that._contentReady.resolve(data,status,xhr);if(typeof that.contentLoaded==="function"){that.contentLoaded(data,status,xhr);}});}if(!this.content){this.content=e;}if(!this.isAjax){this.contentParsed.html(this.content);this.setContent();that._contentReady.resolve();}},_stopCountDown:function(){clearInterval(this.autoCloseInterval);if(this.$cd){this.$cd.remove();}},_startCountDown:function(){var that=this;var opt=this.autoClose.split("|");if(opt.length!==2){console.error("Invalid option for autoClose. example 'close|10000'");return false;}var button_key=opt[0];var time=parseInt(opt[1]);if(typeof this.buttons[button_key]==="undefined"){console.error("Invalid button key '"+button_key+"' for autoClose");return false;}var seconds=Math.ceil(time/1000);this.$cd=$(' ('+seconds+")").appendTo(this["$_"+button_key]);this.autoCloseInterval=setInterval(function(){that.$cd.html(" ("+(seconds-=1)+") ");if(seconds<=0){that["$$"+button_key].trigger("click");that._stopCountDown();}},1000);},_getKey:function(key){switch(key){case 192:return"tilde";case 13:return"enter";case 16:return"shift";case 9:return"tab";case 20:return"capslock";case 17:return"ctrl";case 91:return"win";case 18:return"alt";case 27:return"esc";case 32:return"space";}var initial=String.fromCharCode(key);if(/^[A-z0-9]+$/.test(initial)){return initial.toLowerCase();}else{return false;}},reactOnKey:function(e){var that=this;var a=$(".jconfirm");if(a.eq(a.length-1)[0]!==this.$el[0]){return false;}var key=e.which;if(this.$content.find(":input").is(":focus")&&/13|32/.test(key)){return false;}var keyChar=this._getKey(key);if(keyChar==="esc"&&this.escapeKey){if(this.escapeKey===true){this.$scrollPane.trigger("click");}else{if(typeof this.escapeKey==="string"||typeof this.escapeKey==="function"){var buttonKey;if(typeof this.escapeKey==="function"){buttonKey=this.escapeKey();}else{buttonKey=this.escapeKey;}if(buttonKey){if(typeof this.buttons[buttonKey]==="undefined"){console.warn("Invalid escapeKey, no buttons found with key "+buttonKey);}else{this["$_"+buttonKey].trigger("click");}}}}}$.each(this.buttons,function(key,button){if(button.keys.indexOf(keyChar)!==-1){that["$_"+key].trigger("click");}});},setDialogCenter:function(){console.info("setDialogCenter is deprecated, dialogs are centered with CSS3 tables");},_unwatchContent:function(){clearInterval(this._timer);},close:function(onClosePayload){var that=this;if(typeof this.onClose==="function"){this.onClose(onClosePayload);}this._unwatchContent();$(window).unbind("resize."+this._id);$(window).unbind("keyup."+this._id);$(window).unbind("jcKeyDown."+this._id);if(this.draggable){$(window).unbind("mousemove."+this._id);$(window).unbind("mouseup."+this._id);this.$titleContainer.unbind("mousedown");}that.$el.removeClass(that.loadedClass);$("body").removeClass("jconfirm-no-scroll-"+that._id);that.$jconfirmBoxContainer.removeClass("jconfirm-no-transition");setTimeout(function(){that.$body.addClass(that.closeAnimationParsed);that.$jconfirmBg.addClass("jconfirm-bg-h");var closeTimer=(that.closeAnimation==="none")?1:that.animationSpeed;setTimeout(function(){that.$el.remove();var l=w.jconfirm.instances;var i=w.jconfirm.instances.length-1;for(i;i>=0;i--){if(w.jconfirm.instances[i]._id===that._id){w.jconfirm.instances.splice(i,1);}}if(!w.jconfirm.instances.length){if(that.scrollToPreviousElement&&w.jconfirm.lastFocused&&w.jconfirm.lastFocused.length&&$.contains(document,w.jconfirm.lastFocused[0])){var $lf=w.jconfirm.lastFocused;if(that.scrollToPreviousElementAnimate){var st=$(window).scrollTop();var ot=w.jconfirm.lastFocused.offset().top;var wh=$(window).height();if(!(ot>st&&ot<(st+wh))){var scrollTo=(ot-Math.round((wh/3)));$("html, body").animate({scrollTop:scrollTo},that.animationSpeed,"swing",function(){$lf.focus();});}else{$lf.focus();}}else{$lf.focus();}w.jconfirm.lastFocused=false;}}if(typeof that.onDestroy==="function"){that.onDestroy();}},closeTimer*0.4);},50);return true;},open:function(){if(this.isOpen()){return false;}this._buildHTML();this._bindEvents();this._open();return true;},setStartingPoint:function(){var el=false;if(this.animateFromElement!==true&&this.animateFromElement){el=this.animateFromElement;w.jconfirm.lastClicked=false;}else{if(w.jconfirm.lastClicked&&this.animateFromElement===true){el=w.jconfirm.lastClicked;w.jconfirm.lastClicked=false;}else{return false;}}if(!el){return false;}var offset=el.offset();var iTop=el.outerHeight()/2;var iLeft=el.outerWidth()/2;iTop-=this.$jconfirmBox.outerHeight()/2;iLeft-=this.$jconfirmBox.outerWidth()/2;var sourceTop=offset.top+iTop;sourceTop=sourceTop-this._scrollTop();var sourceLeft=offset.left+iLeft;var wh=$(window).height()/2;var ww=$(window).width()/2;var targetH=wh-this.$jconfirmBox.outerHeight()/2;var targetW=ww-this.$jconfirmBox.outerWidth()/2;sourceTop-=targetH;sourceLeft-=targetW;if(Math.abs(sourceTop)>wh||Math.abs(sourceLeft)>ww){return false;}this.$jconfirmBoxContainer.css("transform","translate("+sourceLeft+"px, "+sourceTop+"px)");},_open:function(){var that=this;if(typeof that.onOpenBefore==="function"){that.onOpenBefore();}this.$body.removeClass(this.animationParsed);this.$jconfirmBg.removeClass("jconfirm-bg-h");this.$body.focus();that.$jconfirmBoxContainer.css("transform","translate("+0+"px, "+0+"px)");setTimeout(function(){that.$body.css(that._getCSS(that.animationSpeed,1));that.$body.css({"transition-property":that.$body.css("transition-property")+", margin"});that.$jconfirmBoxContainer.addClass("jconfirm-no-transition");that._modalReady.resolve();if(typeof that.onOpen==="function"){that.onOpen();}that.$el.addClass(that.loadedClass);},this.animationSpeed);},loadedClass:"jconfirm-open",isClosed:function(){return !this.$el||this.$el.parent().length===0;},isOpen:function(){return !this.isClosed();},toggle:function(){if(!this.isOpen()){this.open();}else{this.close();}}};w.jconfirm.instances=[];w.jconfirm.lastFocused=false;w.jconfirm.pluginDefaults={template:'
',title:"Hello",titleClass:"",type:"default",typeAnimated:true,draggable:true,dragWindowGap:15,dragWindowBorder:true,animateFromElement:true,alignMiddle:true,smoothContent:true,content:"Are you sure to continue?",buttons:{},defaultButtons:{ok:{action:function(){}},close:{action:function(){}}},contentLoaded:function(){},icon:"",lazyOpen:false,bgOpacity:null,theme:"light",animation:"scale",closeAnimation:"scale",animationSpeed:400,animationBounce:1,escapeKey:true,rtl:false,container:"body",containerFluid:false,backgroundDismiss:false,backgroundDismissAnimation:"shake",autoClose:false,closeIcon:null,closeIconClass:false,watchInterval:100,columnClass:"col-md-4 col-md-offset-4 col-sm-6 col-sm-offset-3 col-xs-10 col-xs-offset-1",boxWidth:"50%",scrollToPreviousElement:true,scrollToPreviousElementAnimate:true,useBootstrap:true,offsetTop:40,offsetBottom:40,bootstrapClasses:{container:"container",containerFluid:"container-fluid",row:"row"},onContentReady:function(){},onOpenBefore:function(){},onOpen:function(){},onClose:function(){},onDestroy:function(){},onAction:function(){}};var keyDown=false;$(window).on("keydown",function(e){if(!keyDown){var $target=$(e.target);var pass=false;if($target.closest(".jconfirm-box").length){pass=true;}if(pass){$(window).trigger("jcKeyDown");}keyDown=true;}});$(window).on("keyup",function(){keyDown=false;});w.jconfirm.lastClicked=false;$(document).on("mousedown","button, a, [jc-source]",function(){w.jconfirm.lastClicked=$(this);});})); \ No newline at end of file diff --git a/wp-content/plugins/wp-mail-smtp/readme.txt b/wp-content/plugins/wp-mail-smtp/readme.txt index fa0838e..bfa6360 100644 --- a/wp-content/plugins/wp-mail-smtp/readme.txt +++ b/wp-content/plugins/wp-mail-smtp/readme.txt @@ -3,10 +3,10 @@ Contributors: wpforms, jaredatch, smub, slaFFik Tags: smtp, wp mail smtp, wordpress smtp, gmail smtp, sendgrid smtp, mailgun smtp, mail, mailer, phpmailer, wp_mail, email, mailgun, sengrid, gmail, sendinblue, wp smtp Requires at least: 4.9 Tested up to: 5.5 -Stable tag: 2.3.1 +Stable tag: 2.4.0 Requires PHP: 5.5.0 -The most popular WordPress SMTP and PHP Mailer plugin. Trusted by over 1 million sites. +Make email delivery easy for WordPress. Connect with SMTP, Gmail, Outlook, SendGrid, Mailgun, Zoho, SES, and more. == Description == @@ -28,7 +28,7 @@ If the proper authentication isn't there, then emails either go in the SPAM fold This is a problem for a lot of WordPress sites because by default, WordPress uses the PHP mail function to send emails generated by WordPress or any contact form plugin like WPForms. -The issue is that most WordPress hosting companies don't have their servers properly configured for sending PHP emails. +The issue is that most WordPress hosting companies don't have their servers properly configured for sending PHP emails. The combination of two causes your WordPress emails to not get delivered. @@ -43,7 +43,7 @@ This helps you fix all WordPress not sending email issues. WP Mail SMTP plugin includes many different SMTP setup options: 1. SMTP.com (Recommended) -2. Sendinblue SMTP +2. Sendinblue SMTP (Recommended) 3. Mailgun SMTP 4. SendGrid SMTP 5. Gmail SMTP @@ -68,6 +68,8 @@ Read our has_access() ) { return; } @@ -97,7 +102,10 @@ class AdminBarMenu { if ( ! $this->has_access() || ( - empty( Debug::get_last() ) && + ( + empty( Debug::get_last() ) || + (bool) Options::init()->get( 'general', 'email_delivery_errors_hidden' ) + ) && empty( $this->has_notifications() ) ) ) { @@ -128,7 +136,10 @@ class AdminBarMenu { */ public function main_menu( \WP_Admin_Bar $wp_admin_bar ) { - if ( ! empty( Debug::get_last() ) ) { + if ( + ! empty( Debug::get_last() ) && + ! (bool) Options::init()->get( 'general', 'email_delivery_errors_hidden' ) + ) { $indicator = ' !'; } elseif ( ! empty( $this->has_notifications() ) ) { $count = $this->has_notifications() < 10 ? $this->has_notifications() : '!'; diff --git a/wp-content/plugins/wp-mail-smtp/src/Admin/Notifications.php b/wp-content/plugins/wp-mail-smtp/src/Admin/Notifications.php index 330e178..9dcb377 100644 --- a/wp-content/plugins/wp-mail-smtp/src/Admin/Notifications.php +++ b/wp-content/plugins/wp-mail-smtp/src/Admin/Notifications.php @@ -3,6 +3,7 @@ namespace WPMailSMTP\Admin; use WPMailSMTP\Options; +use WPMailSMTP\Tasks\Tasks; use WPMailSMTP\WP; /** @@ -238,7 +239,7 @@ class Notifications { // Update notifications using async task. if ( empty( $option['update'] ) || time() > $option['update'] + DAY_IN_SECONDS ) { - if ( empty( wp_mail_smtp()->get_tasks()->is_scheduled( 'wp_mail_smtp_admin_notifications_update' ) ) ) { + if ( empty( Tasks::is_scheduled( 'wp_mail_smtp_admin_notifications_update' ) ) ) { wp_mail_smtp()->get_tasks() ->create( 'wp_mail_smtp_admin_notifications_update' ) diff --git a/wp-content/plugins/wp-mail-smtp/src/Admin/PageInterface.php b/wp-content/plugins/wp-mail-smtp/src/Admin/PageInterface.php index 9c49ea0..86f5372 100644 --- a/wp-content/plugins/wp-mail-smtp/src/Admin/PageInterface.php +++ b/wp-content/plugins/wp-mail-smtp/src/Admin/PageInterface.php @@ -1,45 +1,45 @@ - \esc_html__( 'Email Log', 'wp-mail-smtp' ), - 'control' => \esc_html__( 'Email Controls', 'wp-mail-smtp' ), - 'mailers' => \esc_html__( 'Additional Mailers', 'wp-mail-smtp' ), - 'support' => \esc_html__( 'Customer Support', 'wp-mail-smtp' ), - ); + return [ + 'log' => \esc_html__( 'Email Log', 'wp-mail-smtp' ), + 'control' => \esc_html__( 'Email Controls', 'wp-mail-smtp' ), + 'mailers' => \esc_html__( 'Mailer Options', 'wp-mail-smtp' ), + 'multisite' => \esc_html__( 'WordPress Multisite', 'wp-mail-smtp' ), + 'support' => \esc_html__( 'Customer Support', 'wp-mail-smtp' ), + ]; } /** @@ -669,64 +670,78 @@ class About extends PageAbstract { */ private function get_license_data( $feature, $license ) { - $data = array( - 'log' => array( - 'lite' => array( + $data = [ + 'log' => [ + 'lite' => [ 'status' => 'none', - 'text' => array( + 'text' => [ '' . esc_html__( 'Emails are not logged', 'wp-mail-smtp' ) . '', - ), - ), - 'pro' => array( + ], + ], + 'pro' => [ 'status' => 'full', - 'text' => array( - '' . esc_html__( 'Complete Email Log management inside WordPress', 'wp-mail-smtp' ) . '', - ), - ), - ), - 'control' => array( - 'lite' => array( + 'text' => [ + '' . esc_html__( 'Access to all Email Logging options right inside WordPress', 'wp-mail-smtp' ) . '', + ], + ], + ], + 'control' => [ + 'lite' => [ 'status' => 'none', - 'text' => array( + 'text' => [ '' . esc_html__( 'No controls over whether default WordPress emails are sent', 'wp-mail-smtp' ) . '', - ), - ), - 'pro' => array( + ], + ], + 'pro' => [ 'status' => 'full', - 'text' => array( + 'text' => [ '' . esc_html__( 'Complete Email Controls management for most default WordPress emails', 'wp-mail-smtp' ) . '', - ), - ), - ), - 'mailers' => array( - 'lite' => array( + ], + ], + ], + 'mailers' => [ + 'lite' => [ 'status' => 'none', - 'text' => array( - '' . esc_html__( 'Only default list of mailers', 'wp-mail-smtp' ) . '', - ), - ), - 'pro' => array( + 'text' => [ + '' . esc_html__( 'Limited Mailers', 'wp-mail-smtp' ) . '
' . esc_html__( 'Access is limited to standard mailer options only', 'wp-mail-smtp' ), + ], + ], + 'pro' => [ 'status' => 'full', - 'text' => array( - '' . esc_html__( 'Additional mailers: Microsoft Outlook (with Office365 support) and Amazon SES', 'wp-mail-smtp' ) . '', - ), - ), - ), - 'support' => array( - 'lite' => array( + 'text' => [ + '' . esc_html__( 'Additional Mailer Options', 'wp-mail-smtp' ) . '
' . esc_html__( 'Microsoft Outlook (with Office365 support), Amazon SES and Zoho Mail', 'wp-mail-smtp' ), + ], + ], + ], + 'multisite' => [ + 'lite' => [ 'status' => 'none', - 'text' => array( + 'text' => [ + '' . esc_html__( 'No Global Network Settings', 'wp-mail-smtp' ) . '', + ], + ], + 'pro' => [ + 'status' => 'full', + 'text' => [ + '' . esc_html__( 'All Global Network Settings', 'wp-mail-smtp' ) . '
' . esc_html__( 'Optionally configure settings at the network level or manage separately for each subsite', 'wp-mail-smtp' ), + ], + ], + ], + 'support' => [ + 'lite' => [ + 'status' => 'none', + 'text' => [ '' . esc_html__( 'Limited Support', 'wp-mail-smtp' ) . '', - ), - ), - 'pro' => array( + ], + ], + 'pro' => [ 'status' => 'full', - 'text' => array( + 'text' => [ '' . esc_html__( 'Priority Support', 'wp-mail-smtp' ) . '', - ), - ), - ), - ); + ], + ], + ], + ]; // Wrong feature? if ( ! isset( $data[ $feature ] ) ) { diff --git a/wp-content/plugins/wp-mail-smtp/src/Admin/Pages/AuthTab.php b/wp-content/plugins/wp-mail-smtp/src/Admin/Pages/AuthTab.php index 661b108..9bda282 100644 --- a/wp-content/plugins/wp-mail-smtp/src/Admin/Pages/AuthTab.php +++ b/wp-content/plugins/wp-mail-smtp/src/Admin/Pages/AuthTab.php @@ -1,63 +1,63 @@ -get_providers()->get_auth( Options::init()->get( 'mail', 'mailer' ) ); - - if ( - $auth && - $auth instanceof AuthAbstract && - method_exists( $auth, 'process' ) - ) { - $auth->process(); - } - } - - /** - * Return nothing, as we don't need this functionality. - * - * @since 1.0.0 - */ - public function get_label() { - return ''; - } - - /** - * Return nothing, as we don't need this functionality. - * - * @since 1.0.0 - */ - public function get_title() { - return ''; - } - - /** - * Do nothing, as we don't need this functionality. - * - * @since 1.0.0 - */ - public function display() { - } -} +get_providers()->get_auth( Options::init()->get( 'mail', 'mailer' ) ); + + if ( + $auth && + $auth instanceof AuthAbstract && + method_exists( $auth, 'process' ) + ) { + $auth->process(); + } + } + + /** + * Return nothing, as we don't need this functionality. + * + * @since 1.0.0 + */ + public function get_label() { + return ''; + } + + /** + * Return nothing, as we don't need this functionality. + * + * @since 1.0.0 + */ + public function get_title() { + return ''; + } + + /** + * Do nothing, as we don't need this functionality. + * + * @since 1.0.0 + */ + public function display() { + } +} diff --git a/wp-content/plugins/wp-mail-smtp/src/Conflicts.php b/wp-content/plugins/wp-mail-smtp/src/Conflicts.php index 91c22fb..aafc759 100644 --- a/wp-content/plugins/wp-mail-smtp/src/Conflicts.php +++ b/wp-content/plugins/wp-mail-smtp/src/Conflicts.php @@ -1,184 +1,184 @@ - array( - 'name' => 'Easy WP SMTP', - ), - 'postman_start' => array( - 'name' => 'Postman SMTP', - ), - 'post_start' => array( - 'name' => 'Post SMTP Mailer/Email Log', - ), - 'mail_bank' => array( - 'name' => 'WP Mail Bank', - ), - 'SMTP_MAILER' => array( - 'name' => 'SMTP Mailer', - 'class' => true, - ), - 'GMAIL_SMTP' => array( - 'name' => 'Gmail SMTP', - 'class' => true, - ), - 'WP_Email_Smtp' => array( - 'name' => 'WP Email SMTP', - 'class' => true, - ), - 'smtpmail_include' => array( - 'name' => 'SMTP Mail', - ), - 'bwssmtp_init' => array( - 'name' => 'SMTP by BestWebSoft', - ), - 'WPSendGrid_SMTP' => array( - 'name' => 'WP SendGrid SMTP', - 'class' => true, - ), - 'sar_friendly_smtp' => array( - 'name' => 'SAR Friendly SMTP', - ), - 'WPGmail_SMTP' => array( - 'name' => 'WP Gmail SMTP', - 'class' => true, - ), - 'st_smtp_check_config' => array( - 'name' => 'Cimy Swift SMTP', - ), - 'WP_Easy_SMTP' => array( - 'name' => 'WP Easy SMTP', - 'class' => true, - ), - 'WPMailgun_SMTP' => array( - 'name' => 'WP Mailgun SMTP', - 'class' => true, - ), - 'my_smtp_wp' => array( - 'name' => 'MY SMTP WP', - ), - 'mail_booster' => array( - 'name' => 'WP Mail Booster', - ), - 'Sendgrid_Settings' => array( - 'name' => 'SendGrid', - 'class' => true, - ), - 'WPMS_php_mailer' => array( - 'name' => 'WP Mail Smtp Mailer', - ), - 'WPAmazonSES_SMTP' => array( - 'name' => 'WP Amazon SES SMTP', - 'class' => true, - ), - 'Postmark_Mail' => array( - 'name' => 'Postmark for WordPress', - 'class' => true, - ), - 'Mailgun' => array( - 'name' => 'Mailgun', - 'class' => true, - ), - 'WPSparkPost\SparkPost' => array( - 'name' => 'SparkPost', - 'class' => true, - ), - 'WPYahoo_SMTP' => array( - 'name' => 'WP Yahoo SMTP', - 'class' => true, - ), - 'wpses_init' => array( - 'name' => 'WP SES', - 'class' => true, - ), - 'TSPHPMailer' => array( - 'name' => 'turboSMTP', - ), - 'WP_SMTP' => array( - 'name' => 'WP SMTP', - 'class' => true, - ), - ); - - /** - * @var array Conflict information. - */ - protected $conflict = array(); - - /** - * Whether we have a conflict with predefined list of plugins. - * - * @since 1.5.0 - * - * @return bool - */ - public function is_detected() { - - foreach ( self::$plugins as $callback => $plugin ) { - if ( ! empty( $plugin['class'] ) ) { - $detected = \class_exists( $callback, false ); - } else { - $detected = \function_exists( $callback ); - } - - if ( $detected ) { - $this->conflict = $plugin; - break; - } - } - - return ! empty( $this->conflict ); - } - - /** - * Add a warning admin message to a user about the conflicting plugin. - * - * @since 1.5.0 - */ - public function notify() { - - if ( empty( $this->conflict ) ) { - return; - } - - WP::add_admin_notice( - \sprintf( /* translators: %1$s - Plugin name causing conflict; %2$s - Plugin name causing conflict. */ - \esc_html__( 'Heads up! WP Mail SMTP has detected %1$s is activated. Please deactivate %2$s to prevent conflicts.', 'wp-mail-smtp' ), - $this->get_conflict_name(), - $this->get_conflict_name() - ), - WP::ADMIN_NOTICE_WARNING - ); - } - - /** - * Get the conflicting plugin name is any. - * - * @since 1.5.0 - * - * @return null|string - */ - public function get_conflict_name() { - - $name = null; - - if ( ! empty( $this->conflict['name'] ) ) { - $name = $this->conflict['name']; - } - - return $name; - } -} + array( + 'name' => 'Easy WP SMTP', + ), + 'postman_start' => array( + 'name' => 'Postman SMTP', + ), + 'post_start' => array( + 'name' => 'Post SMTP Mailer/Email Log', + ), + 'mail_bank' => array( + 'name' => 'WP Mail Bank', + ), + 'SMTP_MAILER' => array( + 'name' => 'SMTP Mailer', + 'class' => true, + ), + 'GMAIL_SMTP' => array( + 'name' => 'Gmail SMTP', + 'class' => true, + ), + 'WP_Email_Smtp' => array( + 'name' => 'WP Email SMTP', + 'class' => true, + ), + 'smtpmail_include' => array( + 'name' => 'SMTP Mail', + ), + 'bwssmtp_init' => array( + 'name' => 'SMTP by BestWebSoft', + ), + 'WPSendGrid_SMTP' => array( + 'name' => 'WP SendGrid SMTP', + 'class' => true, + ), + 'sar_friendly_smtp' => array( + 'name' => 'SAR Friendly SMTP', + ), + 'WPGmail_SMTP' => array( + 'name' => 'WP Gmail SMTP', + 'class' => true, + ), + 'st_smtp_check_config' => array( + 'name' => 'Cimy Swift SMTP', + ), + 'WP_Easy_SMTP' => array( + 'name' => 'WP Easy SMTP', + 'class' => true, + ), + 'WPMailgun_SMTP' => array( + 'name' => 'WP Mailgun SMTP', + 'class' => true, + ), + 'my_smtp_wp' => array( + 'name' => 'MY SMTP WP', + ), + 'mail_booster' => array( + 'name' => 'WP Mail Booster', + ), + 'Sendgrid_Settings' => array( + 'name' => 'SendGrid', + 'class' => true, + ), + 'WPMS_php_mailer' => array( + 'name' => 'WP Mail Smtp Mailer', + ), + 'WPAmazonSES_SMTP' => array( + 'name' => 'WP Amazon SES SMTP', + 'class' => true, + ), + 'Postmark_Mail' => array( + 'name' => 'Postmark for WordPress', + 'class' => true, + ), + 'Mailgun' => array( + 'name' => 'Mailgun', + 'class' => true, + ), + 'WPSparkPost\SparkPost' => array( + 'name' => 'SparkPost', + 'class' => true, + ), + 'WPYahoo_SMTP' => array( + 'name' => 'WP Yahoo SMTP', + 'class' => true, + ), + 'wpses_init' => array( + 'name' => 'WP SES', + 'class' => true, + ), + 'TSPHPMailer' => array( + 'name' => 'turboSMTP', + ), + 'WP_SMTP' => array( + 'name' => 'WP SMTP', + 'class' => true, + ), + ); + + /** + * @var array Conflict information. + */ + protected $conflict = array(); + + /** + * Whether we have a conflict with predefined list of plugins. + * + * @since 1.5.0 + * + * @return bool + */ + public function is_detected() { + + foreach ( self::$plugins as $callback => $plugin ) { + if ( ! empty( $plugin['class'] ) ) { + $detected = \class_exists( $callback, false ); + } else { + $detected = \function_exists( $callback ); + } + + if ( $detected ) { + $this->conflict = $plugin; + break; + } + } + + return ! empty( $this->conflict ); + } + + /** + * Add a warning admin message to a user about the conflicting plugin. + * + * @since 1.5.0 + */ + public function notify() { + + if ( empty( $this->conflict ) ) { + return; + } + + WP::add_admin_notice( + \sprintf( /* translators: %1$s - Plugin name causing conflict; %2$s - Plugin name causing conflict. */ + \esc_html__( 'Heads up! WP Mail SMTP has detected %1$s is activated. Please deactivate %2$s to prevent conflicts.', 'wp-mail-smtp' ), + $this->get_conflict_name(), + $this->get_conflict_name() + ), + WP::ADMIN_NOTICE_WARNING + ); + } + + /** + * Get the conflicting plugin name is any. + * + * @since 1.5.0 + * + * @return null|string + */ + public function get_conflict_name() { + + $name = null; + + if ( ! empty( $this->conflict['name'] ) ) { + $name = $this->conflict['name']; + } + + return $name; + } +} diff --git a/wp-content/plugins/wp-mail-smtp/src/Core.php b/wp-content/plugins/wp-mail-smtp/src/Core.php index f3a5fcf..b67ca93 100644 --- a/wp-content/plugins/wp-mail-smtp/src/Core.php +++ b/wp-content/plugins/wp-mail-smtp/src/Core.php @@ -953,4 +953,29 @@ class Core { return $notifications; } + + /** + * Prepare the HTML output for a plugin loader/spinner. + * + * @since 2.4.0 + * + * @param string $color The color of the loader ('', 'blue' or 'white'), where '' is default orange. + * @param string $size The size of the loader ('lg', 'md', 'sm'). + * + * @return string + */ + public function prepare_loader( $color = '', $size = 'md' ) { + + $svg_name = 'loading'; + + if ( in_array( $color, [ 'blue', 'white' ], true ) ) { + $svg_name .= '-' . $color; + } + + if ( ! in_array( $size, [ 'lg', 'md', 'sm' ], true ) ) { + $size = 'md'; + } + + return '' . esc_html__( 'Loading', 'wp-mail-smtp' ) . ''; + } } diff --git a/wp-content/plugins/wp-mail-smtp/src/Geo.php b/wp-content/plugins/wp-mail-smtp/src/Geo.php index ed80c90..5d953f1 100644 --- a/wp-content/plugins/wp-mail-smtp/src/Geo.php +++ b/wp-content/plugins/wp-mail-smtp/src/Geo.php @@ -50,15 +50,15 @@ class Geo { * @since 1.6.0 Added new geo API endpoint, provided by WPForms. * @since 2.0.0 Updated the WPForms geo API endpoint to v3. * - * @param string $ip + * @param string $ip The IP address. * * @return array Empty array for localhost. */ public static function get_location_by_ip( $ip ) { // Check for a non-local IP. - if ( empty( $ip ) || in_array( $ip, array( '127.0.0.1', '::1' ), true ) ) { - return array(); + if ( empty( $ip ) || in_array( $ip, [ '127.0.0.1', '::1' ], true ) ) { + return []; } $request = wp_remote_get( 'https://geo.wpforms.com/v3/geolocate/json/' . $ip ); @@ -66,14 +66,14 @@ class Geo { if ( ! is_wp_error( $request ) ) { $request = json_decode( wp_remote_retrieve_body( $request ), true ); if ( ! empty( $request['latitude'] ) && ! empty( $request['longitude'] ) ) { - $data = array( + $data = [ 'latitude' => sanitize_text_field( $request['latitude'] ), 'longitude' => sanitize_text_field( $request['longitude'] ), - 'city' => sanitize_text_field( $request['city'] ), - 'region' => sanitize_text_field( $request['region_name'] ), - 'country' => sanitize_text_field( $request['country_iso'] ), - 'postal' => sanitize_text_field( $request['zip_code'] ), - ); + 'city' => isset( $request['city'] ) ? sanitize_text_field( $request['city'] ) : '', + 'region' => isset( $request['region_name'] ) ? sanitize_text_field( $request['region_name'] ) : '', + 'country' => isset( $request['country_iso'] ) ? sanitize_text_field( $request['country_iso'] ) : '', + 'postal' => isset( $request['zip_code'] ) ? sanitize_text_field( $request['zip_code'] ) : '', + ]; return $data; } @@ -87,14 +87,14 @@ class Geo { if ( ! empty( $request['latitude'] ) && ! empty( $request['longitude'] ) ) { - $data = array( + $data = [ 'latitude' => sanitize_text_field( $request['latitude'] ), 'longitude' => sanitize_text_field( $request['longitude'] ), - 'city' => sanitize_text_field( $request['city'] ), - 'region' => sanitize_text_field( $request['region'] ), - 'country' => sanitize_text_field( $request['country'] ), - 'postal' => sanitize_text_field( $request['postal'] ), - ); + 'city' => isset( $request['city'] ) ? sanitize_text_field( $request['city'] ) : '', + 'region' => isset( $request['region'] ) ? sanitize_text_field( $request['region'] ) : '', + 'country' => isset( $request['country'] ) ? sanitize_text_field( $request['country'] ) : '', + 'postal' => isset( $request['postal'] ) ? sanitize_text_field( $request['postal'] ) : '', + ]; return $data; } @@ -108,20 +108,20 @@ class Geo { if ( ! empty( $request['data']['geo']['latitude'] ) && ! empty( $request['data']['geo']['longitude'] ) ) { - $data = array( + $data = [ 'latitude' => sanitize_text_field( $request['data']['geo']['latitude'] ), 'longitude' => sanitize_text_field( $request['data']['geo']['longitude'] ), - 'city' => sanitize_text_field( $request['data']['geo']['city'] ), - 'region' => sanitize_text_field( $request['data']['geo']['region_name'] ), - 'country' => sanitize_text_field( $request['data']['geo']['country_code'] ), - 'postal' => sanitize_text_field( $request['data']['geo']['postal_code'] ), - ); + 'city' => isset( $request['data']['geo']['city'] ) ? sanitize_text_field( $request['data']['geo']['city'] ) : '', + 'region' => isset( $request['data']['geo']['region_name'] ) ? sanitize_text_field( $request['data']['geo']['region_name'] ) : '', + 'country' => isset( $request['data']['geo']['country_code'] ) ? sanitize_text_field( $request['data']['geo']['country_code'] ) : '', + 'postal' => isset( $request['data']['geo']['postal_code'] ) ? sanitize_text_field( $request['data']['geo']['postal_code'] ) : '', + ]; return $data; } } - return array(); + return []; } /** diff --git a/wp-content/plugins/wp-mail-smtp/src/MailCatcher.php b/wp-content/plugins/wp-mail-smtp/src/MailCatcher.php index 4706646..d644bf1 100644 --- a/wp-content/plugins/wp-mail-smtp/src/MailCatcher.php +++ b/wp-content/plugins/wp-mail-smtp/src/MailCatcher.php @@ -166,4 +166,16 @@ class MailCatcher extends \PHPMailer implements MailCatcherInterface { return $this->LE; // phpcs:ignore } + + /** + * Create a unique ID to use for multipart email boundaries. + * + * @since 2.4.0 + * + * @return string + */ + public function generate_id() { + + return $this->generateId(); + } } diff --git a/wp-content/plugins/wp-mail-smtp/src/MailCatcherInterface.php b/wp-content/plugins/wp-mail-smtp/src/MailCatcherInterface.php index 653c804..b2fd531 100644 --- a/wp-content/plugins/wp-mail-smtp/src/MailCatcherInterface.php +++ b/wp-content/plugins/wp-mail-smtp/src/MailCatcherInterface.php @@ -30,4 +30,13 @@ interface MailCatcherInterface { * @return string */ public function get_line_ending(); + + /** + * Create a unique ID to use for multipart email boundaries. + * + * @since 2.4.0 + * + * @return string + */ + public function generate_id(); } diff --git a/wp-content/plugins/wp-mail-smtp/src/MailCatcherV6.php b/wp-content/plugins/wp-mail-smtp/src/MailCatcherV6.php index 8709a10..94176be 100644 --- a/wp-content/plugins/wp-mail-smtp/src/MailCatcherV6.php +++ b/wp-content/plugins/wp-mail-smtp/src/MailCatcherV6.php @@ -146,4 +146,16 @@ class MailCatcherV6 extends \PHPMailer\PHPMailer\PHPMailer implements MailCatche return static::$LE; // phpcs:ignore } + + /** + * Create a unique ID to use for multipart email boundaries. + * + * @since 2.4.0 + * + * @return string + */ + public function generate_id() { + + return $this->generateId(); + } } diff --git a/wp-content/plugins/wp-mail-smtp/src/Options.php b/wp-content/plugins/wp-mail-smtp/src/Options.php index b7ab7f9..6d91e17 100644 --- a/wp-content/plugins/wp-mail-smtp/src/Options.php +++ b/wp-content/plugins/wp-mail-smtp/src/Options.php @@ -23,8 +23,6 @@ class Options { * @since 1.8.0 Added Pepipost API. * @since 2.0.0 Added SMTP.com API. * - * @since - * * @var array Map of all the default options of the plugin. */ private static $map = [ @@ -62,7 +60,6 @@ class Options { 'client_id', 'client_secret', 'region', - 'emails_pending', ], 'mailgun' => [ 'api_key', @@ -99,6 +96,8 @@ class Options { * That's where plugin options are saved in wp_options table. * * @since 1.0.0 + * + * @var string */ const META_KEY = 'wp_mail_smtp'; @@ -126,7 +125,7 @@ class Options { * * One-liner: * Options::init()->get('smtp', 'host'); - * Options::init()->is_pepipost_active(); + * Options::init()->is_mailer_active( 'pepipost' ); * * Or multiple-usage: * $options = new Options(); @@ -329,10 +328,6 @@ class Options { $value = $group === 'mailgun' ? 'US' : $value; break; - case 'emails_pending': - $value = array(); - break; - case 'auth': case 'autotls': $value = in_array( $group, array( 'smtp', 'pepipost' ), true ) ? false : true; @@ -921,7 +916,6 @@ class Options { case 'access_token': // gmail/outlook/zoho, is an array. case 'user_details': // outlook/zoho, is an array. - case 'emails_pending': // amazonses, array(). // These options don't support constants. $options[ $mailer ][ $option_name ] = $option_value; break; @@ -996,12 +990,21 @@ class Options { /** * Check whether the site is using Pepipost SMTP or not. * + * @deprecated 2.4.0 + * * @since 1.0.0 * * @return bool */ public function is_pepipost_active() { - return apply_filters( 'wp_mail_smtp_options_is_pepipost_active', $this->get( 'mail', 'mailer' ) === 'pepipost' ); + + _deprecated_function( + __METHOD__, + '2.4.0', + 'WPMailSMTP\Options::is_mailer_active()' + ); + + return apply_filters( 'wp_mail_smtp_options_is_pepipost_active', $this->is_mailer_active( 'pepipost' ) ); } /** diff --git a/wp-content/plugins/wp-mail-smtp/src/Providers/AmazonSES/Options.php b/wp-content/plugins/wp-mail-smtp/src/Providers/AmazonSES/Options.php index 0266633..25c49a4 100644 --- a/wp-content/plugins/wp-mail-smtp/src/Providers/AmazonSES/Options.php +++ b/wp-content/plugins/wp-mail-smtp/src/Providers/AmazonSES/Options.php @@ -1,44 +1,44 @@ - wp_mail_smtp()->assets_url . '/images/providers/aws.svg', - 'slug' => 'amazonses', - 'title' => esc_html__( 'Amazon SES', 'wp-mail-smtp' ), - 'disabled' => true, - ) - ); - } - - /** - * @inheritdoc - */ - public function display_options() { - - ?> - -

- -

- - wp_mail_smtp()->assets_url . '/images/providers/aws.svg', + 'slug' => 'amazonses', + 'title' => esc_html__( 'Amazon SES', 'wp-mail-smtp' ), + 'disabled' => true, + ) + ); + } + + /** + * @inheritdoc + */ + public function display_options() { + + ?> + +

+ +

+ + plugin_path . '/vendor/autoload.php'; - } - - /** - * Get the url, that users will be redirected back to finish the OAuth process. - * - * @since 1.0.0 - * - * @return string - */ - public static function get_plugin_auth_url() { - - return add_query_arg( 'tab', 'auth', wp_mail_smtp()->get_admin()->get_admin_page_url() ); - } - - /** - * Update auth code in our DB. - * - * @since 1.0.0 - * - * @param string $code - */ - protected function update_auth_code( $code ) { - - $options = new PluginOptions(); - $all = $options->get_all(); - - // To save in DB. - $all[ $this->mailer_slug ]['auth_code'] = $code; - - // To save in currently retrieved options array. - $this->options['auth_code'] = $code; - - $options->set( $all ); - } - - /** - * Update access token in our DB. - * - * @since 1.0.0 - * - * @param mixed $token - */ - protected function update_access_token( $token ) { - - $options = new PluginOptions(); - $all = $options->get_all(); - - // To save in DB. - $all[ $this->mailer_slug ]['access_token'] = $token; - - // To save in currently retrieved options array. - $this->options['access_token'] = $token; - - $options->set( $all ); - } - - /** - * Update refresh token in our DB. - * - * @since 1.0.0 - * - * @param mixed $token - */ - protected function update_refresh_token( $token ) { - - $options = new PluginOptions(); - $all = $options->get_all(); - - // To save in DB. - $all[ $this->mailer_slug ]['refresh_token'] = $token; - - // To save in currently retrieved options array. - $this->options['refresh_token'] = $token; - - $options->set( $all ); - } - - /** - * @inheritdoc - */ - public function is_clients_saved() { - - return ! empty( $this->options['client_id'] ) && ! empty( $this->options['client_secret'] ); - } - - /** - * @inheritdoc - */ - public function is_auth_required() { - - return empty( $this->options['access_token'] ) || empty( $this->options['refresh_token'] ); - } -} +plugin_path . '/vendor/autoload.php'; + } + + /** + * Get the url, that users will be redirected back to finish the OAuth process. + * + * @since 1.0.0 + * + * @return string + */ + public static function get_plugin_auth_url() { + + return add_query_arg( 'tab', 'auth', wp_mail_smtp()->get_admin()->get_admin_page_url() ); + } + + /** + * Update auth code in our DB. + * + * @since 1.0.0 + * + * @param string $code + */ + protected function update_auth_code( $code ) { + + $options = new PluginOptions(); + $all = $options->get_all(); + + // To save in DB. + $all[ $this->mailer_slug ]['auth_code'] = $code; + + // To save in currently retrieved options array. + $this->options['auth_code'] = $code; + + $options->set( $all ); + } + + /** + * Update access token in our DB. + * + * @since 1.0.0 + * + * @param mixed $token + */ + protected function update_access_token( $token ) { + + $options = new PluginOptions(); + $all = $options->get_all(); + + // To save in DB. + $all[ $this->mailer_slug ]['access_token'] = $token; + + // To save in currently retrieved options array. + $this->options['access_token'] = $token; + + $options->set( $all ); + } + + /** + * Update refresh token in our DB. + * + * @since 1.0.0 + * + * @param mixed $token + */ + protected function update_refresh_token( $token ) { + + $options = new PluginOptions(); + $all = $options->get_all(); + + // To save in DB. + $all[ $this->mailer_slug ]['refresh_token'] = $token; + + // To save in currently retrieved options array. + $this->options['refresh_token'] = $token; + + $options->set( $all ); + } + + /** + * @inheritdoc + */ + public function is_clients_saved() { + + return ! empty( $this->options['client_id'] ) && ! empty( $this->options['client_secret'] ); + } + + /** + * @inheritdoc + */ + public function is_auth_required() { + + return empty( $this->options['access_token'] ) || empty( $this->options['refresh_token'] ); + } +} diff --git a/wp-content/plugins/wp-mail-smtp/src/Providers/AuthInterface.php b/wp-content/plugins/wp-mail-smtp/src/Providers/AuthInterface.php index 24369ab..9802c85 100644 --- a/wp-content/plugins/wp-mail-smtp/src/Providers/AuthInterface.php +++ b/wp-content/plugins/wp-mail-smtp/src/Providers/AuthInterface.php @@ -1,30 +1,30 @@ -include_vendor_lib(); - $client = new \Google_Client( + $client = new Google_Client( array( 'client_id' => $this->options['client_id'], 'client_secret' => $this->options['client_secret'], @@ -99,7 +101,7 @@ class Auth extends AuthAbstract { $client->setApprovalPrompt( 'force' ); $client->setIncludeGrantedScopes( true ); // We request only the sending capability, as it's what we only need to do. - $client->setScopes( array( \Google_Service_Gmail::MAIL_GOOGLE_COM ) ); + $client->setScopes( array( Google_Service_Gmail::MAIL_GOOGLE_COM ) ); $client->setRedirectUri( self::get_plugin_auth_url() ); // Apply custom options to the client. @@ -224,13 +226,13 @@ class Auth extends AuthAbstract { if ( ! empty( $code ) && ( - $scope === \Google_Service_Gmail::MAIL_GOOGLE_COM . ' ' . \Google_Service_Gmail::GMAIL_SEND || - $scope === \Google_Service_Gmail::GMAIL_SEND . ' ' . \Google_Service_Gmail::MAIL_GOOGLE_COM || - $scope === \Google_Service_Gmail::GMAIL_SEND || - $scope === \Google_Service_Gmail::MAIL_GOOGLE_COM + $scope === Google_Service_Gmail::MAIL_GOOGLE_COM . ' ' . Google_Service_Gmail::GMAIL_SEND || + $scope === Google_Service_Gmail::GMAIL_SEND . ' ' . Google_Service_Gmail::MAIL_GOOGLE_COM || + $scope === Google_Service_Gmail::GMAIL_SEND || + $scope === Google_Service_Gmail::MAIL_GOOGLE_COM ) ) { - // Save the auth code. So \Google_Client can reuse it to retrieve the access token. + // Save the auth code. So Google_Client can reuse it to retrieve the access token. $this->update_auth_code( $code ); } else { wp_safe_redirect( @@ -264,8 +266,8 @@ class Auth extends AuthAbstract { if ( ! empty( $this->client ) && - class_exists( 'Google_Client', false ) && - $this->client instanceof \Google_Client + class_exists( 'WPMailSMTP\Vendor\Google_Client', false ) && + $this->client instanceof Google_Client ) { return filter_var( $this->client->createAuthUrl(), FILTER_SANITIZE_URL ); } @@ -282,7 +284,7 @@ class Auth extends AuthAbstract { */ public function get_user_info() { - $gmail = new \Google_Service_Gmail( $this->get_client() ); + $gmail = new Google_Service_Gmail( $this->get_client() ); try { $email = $gmail->users->getProfile( 'me' )->getEmailAddress(); @@ -306,20 +308,18 @@ class Auth extends AuthAbstract { return $this->aliases; } - $gmail = new \Google_Service_Gmail( $this->get_client() ); + $gmail = new Google_Service_Gmail( $this->get_client() ); try { $response = $gmail->users_settings_sendAs->listUsersSettingsSendAs( 'me' ); // phpcs:ignore // phpcs:disable - if ( isset( $response->sendAs ) ) { - $this->aliases = array_map( - function( $sendAsObject ) { - return $sendAsObject->sendAsEmail; - }, - $response->sendAs - ); - } + $this->aliases = array_map( + function( $sendAsObject ) { + return $sendAsObject['sendAsEmail']; + }, + (array) $response->getSendAs() + ); // phpcs:enable } catch ( \Exception $exception ) { diff --git a/wp-content/plugins/wp-mail-smtp/src/Providers/Gmail/Mailer.php b/wp-content/plugins/wp-mail-smtp/src/Providers/Gmail/Mailer.php index b3fcb23..4d29406 100644 --- a/wp-content/plugins/wp-mail-smtp/src/Providers/Gmail/Mailer.php +++ b/wp-content/plugins/wp-mail-smtp/src/Providers/Gmail/Mailer.php @@ -5,6 +5,8 @@ namespace WPMailSMTP\Providers\Gmail; use WPMailSMTP\Debug; use WPMailSMTP\MailCatcherInterface; use WPMailSMTP\Providers\MailerAbstract; +use WPMailSMTP\Vendor\Google_Service_Gmail; +use WPMailSMTP\Vendor\Google_Service_Gmail_Message; /** * Class Mailer. @@ -28,7 +30,7 @@ class Mailer extends MailerAbstract { * * @since 1.0.0 * - * @var \Google_Service_Gmail_Message + * @var Google_Service_Gmail_Message */ protected $message; @@ -76,7 +78,7 @@ class Mailer extends MailerAbstract { require_once wp_mail_smtp()->plugin_path . '/vendor/autoload.php'; $auth = new Auth(); - $message = new \Google_Service_Gmail_Message(); + $message = new Google_Service_Gmail_Message(); // Set the authorized Gmail email address as the "from email" if the set email is not on the list of aliases. $possible_from_emails = $auth->get_user_possible_send_from_addresses(); @@ -103,7 +105,7 @@ class Mailer extends MailerAbstract { $message->setRaw( $base64 ); - $service = new \Google_Service_Gmail( $auth->get_client() ); + $service = new Google_Service_Gmail( $auth->get_client() ); $response = $service->users_messages->send( 'me', $message ); $this->process_response( $response ); @@ -123,7 +125,7 @@ class Mailer extends MailerAbstract { * @since 1.0.0 * @since 1.5.0 Added action "wp_mail_smtp_providers_gmail_mailer_process_response" with $response. * - * @param \Google_Service_Gmail_Message $response Instance of Gmail response. + * @param Google_Service_Gmail_Message $response Instance of Gmail response. */ protected function process_response( $response ) { diff --git a/wp-content/plugins/wp-mail-smtp/src/Providers/Loader.php b/wp-content/plugins/wp-mail-smtp/src/Providers/Loader.php index d2a5df6..42b767b 100644 --- a/wp-content/plugins/wp-mail-smtp/src/Providers/Loader.php +++ b/wp-content/plugins/wp-mail-smtp/src/Providers/Loader.php @@ -25,8 +25,8 @@ class Loader { protected $providers = array( 'mail' => 'WPMailSMTP\Providers\Mail\\', 'smtpcom' => 'WPMailSMTP\Providers\SMTPcom\\', - 'pepipostapi' => 'WPMailSMTP\Providers\PepipostAPI\\', 'sendinblue' => 'WPMailSMTP\Providers\Sendinblue\\', + 'pepipostapi' => 'WPMailSMTP\Providers\PepipostAPI\\', 'mailgun' => 'WPMailSMTP\Providers\Mailgun\\', 'sendgrid' => 'WPMailSMTP\Providers\Sendgrid\\', 'amazonses' => 'WPMailSMTP\Providers\AmazonSES\\', @@ -53,7 +53,7 @@ class Loader { */ public function get_providers() { - if ( ! Options::init()->is_pepipost_active() ) { + if ( ! Options::init()->is_mailer_active( 'pepipost' ) ) { unset( $this->providers['pepipost'] ); } diff --git a/wp-content/plugins/wp-mail-smtp/src/Providers/Mail/Mailer.php b/wp-content/plugins/wp-mail-smtp/src/Providers/Mail/Mailer.php index 072c6db..51654bf 100644 --- a/wp-content/plugins/wp-mail-smtp/src/Providers/Mail/Mailer.php +++ b/wp-content/plugins/wp-mail-smtp/src/Providers/Mail/Mailer.php @@ -1,49 +1,49 @@ -Server:'; - - $disabled_functions = ini_get( 'disable_functions' ); - $disabled = (array) explode( ',', trim( $disabled_functions ) ); - - $mail_text[] = 'PHP.mail(): ' . ( in_array( 'mail', $disabled, true ) || ! function_exists( 'mail' ) ? 'No' : 'Yes' ); - if ( function_exists( 'apache_get_modules' ) ) { - $modules = apache_get_modules(); - $mail_text[] = 'Apache.mod_security: ' . ( in_array( 'mod_security', $modules, true ) || in_array( 'mod_security2', $modules, true ) ? 'Yes' : 'No' ); - } - if ( function_exists( 'selinux_is_enabled' ) ) { - $mail_text[] = 'OS.SELinux: ' . ( selinux_is_enabled() ? 'Yes' : 'No' ); - } - if ( function_exists( 'grsecurity_is_enabled' ) ) { - $mail_text[] = 'OS.grsecurity: ' . ( grsecurity_is_enabled() ? 'Yes' : 'No' ); - } - - return implode( '
', $mail_text ); - } - - /** - * @inheritdoc - */ - public function is_mailer_complete() { - - return true; - } -} +Server:'; + + $disabled_functions = ini_get( 'disable_functions' ); + $disabled = (array) explode( ',', trim( $disabled_functions ) ); + + $mail_text[] = 'PHP.mail(): ' . ( in_array( 'mail', $disabled, true ) || ! function_exists( 'mail' ) ? 'No' : 'Yes' ); + if ( function_exists( 'apache_get_modules' ) ) { + $modules = apache_get_modules(); + $mail_text[] = 'Apache.mod_security: ' . ( in_array( 'mod_security', $modules, true ) || in_array( 'mod_security2', $modules, true ) ? 'Yes' : 'No' ); + } + if ( function_exists( 'selinux_is_enabled' ) ) { + $mail_text[] = 'OS.SELinux: ' . ( selinux_is_enabled() ? 'Yes' : 'No' ); + } + if ( function_exists( 'grsecurity_is_enabled' ) ) { + $mail_text[] = 'OS.grsecurity: ' . ( grsecurity_is_enabled() ? 'Yes' : 'No' ); + } + + return implode( '
', $mail_text ); + } + + /** + * @inheritdoc + */ + public function is_mailer_complete() { + + return true; + } +} diff --git a/wp-content/plugins/wp-mail-smtp/src/Providers/Mail/Options.php b/wp-content/plugins/wp-mail-smtp/src/Providers/Mail/Options.php index f5eda44..2cfc04c 100644 --- a/wp-content/plugins/wp-mail-smtp/src/Providers/Mail/Options.php +++ b/wp-content/plugins/wp-mail-smtp/src/Providers/Mail/Options.php @@ -1,42 +1,42 @@ - wp_mail_smtp()->assets_url . '/images/providers/php.svg', - 'slug' => 'mail', - 'title' => esc_html__( 'Default (none)', 'wp-mail-smtp' ), - ) - ); - } - - /** - * @inheritdoc - */ - public function display_options() { - ?> - -
- -
- - wp_mail_smtp()->assets_url . '/images/providers/php.svg', + 'slug' => 'mail', + 'title' => esc_html__( 'Default (none)', 'wp-mail-smtp' ), + ) + ); + } + + /** + * @inheritdoc + */ + public function display_options() { + ?> + +
+ +
+ + phpmailer->generate_id(); // Iterate through pre-built params and build a payload. foreach ( $this->body as $key => $value ) { diff --git a/wp-content/plugins/wp-mail-smtp/src/Providers/Outlook/Options.php b/wp-content/plugins/wp-mail-smtp/src/Providers/Outlook/Options.php index 57f9e81..9dcfcb6 100644 --- a/wp-content/plugins/wp-mail-smtp/src/Providers/Outlook/Options.php +++ b/wp-content/plugins/wp-mail-smtp/src/Providers/Outlook/Options.php @@ -1,44 +1,44 @@ - wp_mail_smtp()->assets_url . '/images/providers/microsoft.svg', - 'slug' => 'outlook', - 'title' => esc_html__( 'Outlook', 'wp-mail-smtp' ), - 'disabled' => true, - ) - ); - } - - /** - * @inheritdoc - */ - public function display_options() { - - ?> - -

- -

- - wp_mail_smtp()->assets_url . '/images/providers/microsoft.svg', + 'slug' => 'outlook', + 'title' => esc_html__( 'Outlook', 'wp-mail-smtp' ), + 'disabled' => true, + ) + ); + } + + /** + * @inheritdoc + */ + public function display_options() { + + ?> + +

+ +

+ + options->get_group( $this->mailer ); - - // Host and Port are the only really required options. - if ( - ! empty( $options['host'] ) && - ! empty( $options['port'] ) - ) { - return true; - } - - return false; - } -} +options->get_group( $this->mailer ); + + // Host and Port are the only really required options. + if ( + ! empty( $options['host'] ) && + ! empty( $options['port'] ) + ) { + return true; + } + + return false; + } +} diff --git a/wp-content/plugins/wp-mail-smtp/src/Providers/SMTP/Mailer.php b/wp-content/plugins/wp-mail-smtp/src/Providers/SMTP/Mailer.php index 22e1f48..348f7ca 100644 --- a/wp-content/plugins/wp-mail-smtp/src/Providers/SMTP/Mailer.php +++ b/wp-content/plugins/wp-mail-smtp/src/Providers/SMTP/Mailer.php @@ -1,32 +1,32 @@ -options->get_group( $this->mailer ); - - // Host and Port are the only really required options. - if ( - ! empty( $options['host'] ) && - ! empty( $options['port'] ) - ) { - return true; - } - - return false; - } -} +options->get_group( $this->mailer ); + + // Host and Port are the only really required options. + if ( + ! empty( $options['host'] ) && + ! empty( $options['port'] ) + ) { + return true; + } + + return false; + } +} diff --git a/wp-content/plugins/wp-mail-smtp/src/Providers/Sendinblue/Api.php b/wp-content/plugins/wp-mail-smtp/src/Providers/Sendinblue/Api.php index 6bb197c..2ccf6bd 100644 --- a/wp-content/plugins/wp-mail-smtp/src/Providers/Sendinblue/Api.php +++ b/wp-content/plugins/wp-mail-smtp/src/Providers/Sendinblue/Api.php @@ -1,93 +1,98 @@ -options = \WPMailSMTP\Options::init()->get_group( Options::SLUG ); - } - - /** - * Configure API key authorization: api-key. - * - * @since 1.6.0 - * - * @return \SendinBlue\Client\Configuration - */ - protected function get_api_config() { - - return \SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey( 'api-key', isset( $this->options['api_key'] ) ? $this->options['api_key'] : '' ); - } - - /** - * Get the mailer client instance for Account API. - * - * @since 1.6.0 - */ - public function get_account_client() { - - // Include the library. - require_once wp_mail_smtp()->plugin_path . '/vendor/autoload.php'; - - return new \SendinBlue\Client\Api\AccountApi( null, $this->get_api_config() ); - } - - /** - * Get the mailer client instance for Sender API. - * - * @since 1.6.0 - */ - public function get_sender_client() { - - // Include the library. - require_once wp_mail_smtp()->plugin_path . '/vendor/autoload.php'; - - return new \SendinBlue\Client\Api\SendersApi( null, $this->get_api_config() ); - } - - /** - * Get the mailer client instance for SMTP API. - * - * @since 1.6.0 - */ - public function get_smtp_client() { - - // Include the library. - require_once wp_mail_smtp()->plugin_path . '/vendor/autoload.php'; - - return new \SendinBlue\Client\Api\SMTPApi( null, $this->get_api_config() ); - } - - /** - * Whether the mailer is ready to be used in API calls. - * - * @since 1.6.0 - * - * @return bool - */ - public function is_ready() { - - return ! empty( $this->options['api_key'] ); - } -} +options = \WPMailSMTP\Options::init()->get_group( Options::SLUG ); + } + + /** + * Configure API key authorization: api-key. + * + * @since 1.6.0 + * + * @return Configuration + */ + protected function get_api_config() { + + return Configuration::getDefaultConfiguration()->setApiKey( 'api-key', isset( $this->options['api_key'] ) ? $this->options['api_key'] : '' ); + } + + /** + * Get the mailer client instance for Account API. + * + * @since 1.6.0 + */ + public function get_account_client() { + + // Include the library. + require_once wp_mail_smtp()->plugin_path . '/vendor/autoload.php'; + + return new AccountApi( null, $this->get_api_config() ); + } + + /** + * Get the mailer client instance for Sender API. + * + * @since 1.6.0 + */ + public function get_sender_client() { + + // Include the library. + require_once wp_mail_smtp()->plugin_path . '/vendor/autoload.php'; + + return new SendersApi( null, $this->get_api_config() ); + } + + /** + * Get the mailer client instance for SMTP API. + * + * @since 1.6.0 + */ + public function get_smtp_client() { + + // Include the library. + require_once wp_mail_smtp()->plugin_path . '/vendor/autoload.php'; + + return new SMTPApi( null, $this->get_api_config() ); + } + + /** + * Whether the mailer is ready to be used in API calls. + * + * @since 1.6.0 + * + * @return bool + */ + public function is_ready() { + + return ! empty( $this->options['api_key'] ); + } +} diff --git a/wp-content/plugins/wp-mail-smtp/src/Providers/Sendinblue/Mailer.php b/wp-content/plugins/wp-mail-smtp/src/Providers/Sendinblue/Mailer.php index 501d7a0..8567ee9 100644 --- a/wp-content/plugins/wp-mail-smtp/src/Providers/Sendinblue/Mailer.php +++ b/wp-content/plugins/wp-mail-smtp/src/Providers/Sendinblue/Mailer.php @@ -5,6 +5,9 @@ namespace WPMailSMTP\Providers\Sendinblue; use WPMailSMTP\Debug; use WPMailSMTP\MailCatcherInterface; use WPMailSMTP\Providers\MailerAbstract; +use WPMailSMTP\Vendor\SendinBlue\Client\ApiException; +use WPMailSMTP\Vendor\SendinBlue\Client\Model\CreateSmtpEmail; +use WPMailSMTP\Vendor\SendinBlue\Client\Model\SendSmtpEmail; use WPMailSMTP\WP; /** @@ -286,11 +289,11 @@ class Mailer extends MailerAbstract { * * @since 1.6.0 * - * @return \SendinBlue\Client\Model\SendSmtpEmail + * @return SendSmtpEmail */ public function get_body() { - return new \SendinBlue\Client\Model\SendSmtpEmail( $this->body ); + return new SendSmtpEmail( $this->body ); } /** @@ -306,7 +309,7 @@ class Mailer extends MailerAbstract { $response = $api->get_smtp_client()->sendTransacEmail( $this->get_body() ); $this->process_response( $response ); - } catch ( \SendinBlue\Client\ApiException $e ) { + } catch ( ApiException $e ) { $error = json_decode( $e->getResponseBody() ); if ( json_last_error() === JSON_ERROR_NONE && ! empty( $error ) ) { @@ -330,7 +333,7 @@ class Mailer extends MailerAbstract { * * @since 1.6.0 * - * @param \SendinBlue\Client\Model\CreateSmtpEmail $response + * @param CreateSmtpEmail $response The Sendinblue Email object. */ protected function process_response( $response ) { @@ -348,7 +351,7 @@ class Mailer extends MailerAbstract { $is_sent = false; - if ( $this->response instanceof \SendinBlue\Client\Model\CreateSmtpEmail ) { + if ( $this->response instanceof CreateSmtpEmail ) { $is_sent = $this->response->valid(); } diff --git a/wp-content/plugins/wp-mail-smtp/src/Providers/Sendinblue/Options.php b/wp-content/plugins/wp-mail-smtp/src/Providers/Sendinblue/Options.php index 866adb9..5ee71c2 100644 --- a/wp-content/plugins/wp-mail-smtp/src/Providers/Sendinblue/Options.php +++ b/wp-content/plugins/wp-mail-smtp/src/Providers/Sendinblue/Options.php @@ -27,30 +27,41 @@ class Options extends OptionsAbstract { */ public function __construct() { + $description = sprintf( + wp_kses( /* translators: %1$s - URL to sendinblue.com site. */ + __( '
Sendinblue is our recommended transactional email service. Founded in 2012, they serve 80,000+ growing companies around the world and send over 30 million emails each day. They understand that transactional emails are the heart of your customer relationships. Their email deliverability experts are constantly at work optimizing the reliability and speed of their SMTP infrastructure. Sendinblue provides users 300 free emails per day.', 'wp-mail-smtp' ) . + '

' . + /* translators: %2$s - URL to wpmailsmtp.com doc. */ + __( 'Read our Sendinblue documentation to learn how to configure Sendinblue and improve your email deliverability.', 'wp-mail-smtp' ), + [ + 'strong' => true, + 'br' => true, + 'a' => [ + 'href' => true, + 'rel' => true, + 'target' => true, + ], + ] + ), + 'https://wpmailsmtp.com/go/sendinblue/', + 'https://wpmailsmtp.com/docs/how-to-set-up-the-sendinblue-mailer-in-wp-mail-smtp' + ); + + $api_key = PluginOptions::init()->get( self::SLUG, 'api_key' ); + + if ( empty( $api_key ) ) { + $description .= '

' . + esc_html__( 'Get Sendinblue Now (Free)', 'wp-mail-smtp' ) . + '

'; + } + parent::__construct( [ 'logo_url' => wp_mail_smtp()->assets_url . '/images/providers/sendinblue.svg', 'slug' => self::SLUG, 'title' => esc_html__( 'Sendinblue', 'wp-mail-smtp' ), 'php' => '5.6', - 'description' => sprintf( - wp_kses( /* translators: %1$s - URL to sendinblue.com site. */ - __( 'Sendinblue serves 80,000+ growing companies around the world and sends over 30 million emails each day. They provide users 300 free emails per day.', 'wp-mail-smtp' ) . - '

' . - /* translators: %2$s - URL to wpmailsmtp.com doc. */ - __( 'Read our Sendinblue documentation to learn how to configure Sendinblue and improve your email deliverability.', 'wp-mail-smtp' ), - [ - 'br' => true, - 'a' => [ - 'href' => true, - 'rel' => true, - 'target' => true, - ], - ] - ), - 'https://wpmailsmtp.com/go/sendinblue/', - 'https://wpmailsmtp.com/docs/how-to-set-up-the-sendinblue-mailer-in-wp-mail-smtp' - ), + 'description' => $description, 'supports' => [ 'from_email' => true, 'from_name' => true, @@ -58,6 +69,7 @@ class Options extends OptionsAbstract { 'from_email_force' => true, 'from_name_force' => true, ], + 'recommended' => true, ] ); } diff --git a/wp-content/plugins/wp-mail-smtp/src/Tasks/Task.php b/wp-content/plugins/wp-mail-smtp/src/Tasks/Task.php index 15d1bf6..910089d 100644 --- a/wp-content/plugins/wp-mail-smtp/src/Tasks/Task.php +++ b/wp-content/plugins/wp-mail-smtp/src/Tasks/Task.php @@ -186,7 +186,7 @@ class Task { $action_id = null; // No processing if ActionScheduler is not usable. - if ( ! wp_mail_smtp()->get_tasks()->is_usable() ) { + if ( ! Tasks::is_usable() ) { return $action_id; } diff --git a/wp-content/plugins/wp-mail-smtp/src/Tasks/Tasks.php b/wp-content/plugins/wp-mail-smtp/src/Tasks/Tasks.php index 1b17fab..8692aa5 100644 --- a/wp-content/plugins/wp-mail-smtp/src/Tasks/Tasks.php +++ b/wp-content/plugins/wp-mail-smtp/src/Tasks/Tasks.php @@ -27,7 +27,7 @@ class Tasks { add_action( 'admin_menu', array( $this, 'admin_hide_as_menu' ), PHP_INT_MAX ); // Skip tasks registration if Action Scheduler is not usable yet. - if ( ! $this->is_usable() ) { + if ( ! self::is_usable() ) { return; } @@ -126,7 +126,7 @@ class Tasks { * * @return bool */ - public function is_usable() { + public static function is_usable() { // No tasks if ActionScheduler wasn't loaded. if ( ! class_exists( 'ActionScheduler_DataController' ) ) { @@ -145,7 +145,7 @@ class Tasks { * * @return bool */ - public function is_scheduled( $hook ) { + public static function is_scheduled( $hook ) { if ( ! function_exists( 'as_next_scheduled_action' ) ) { return false; diff --git a/wp-content/plugins/wp-mail-smtp/src/Upgrade.php b/wp-content/plugins/wp-mail-smtp/src/Upgrade.php index cea152a..f8dec84 100644 --- a/wp-content/plugins/wp-mail-smtp/src/Upgrade.php +++ b/wp-content/plugins/wp-mail-smtp/src/Upgrade.php @@ -1,71 +1,71 @@ -upgrades(); - - if ( empty( $upgrades ) ) { - return; - } - - // Run any available upgrades. - foreach ( $upgrades as $upgrade ) { - $this->{$upgrade}(); - } - - // Update version post upgrade(s). - update_option( 'wp_mail_smtp_version', WPMS_PLUGIN_VER ); - } - - /** - * Whether we need to perform an upgrade. - * - * @since 1.1.0 - * - * @return array - */ - protected function upgrades() { - - $version = get_option( 'wp_mail_smtp_version' ); - $upgrades = array(); - - // Version 1.1.0 upgrade; prior to this the option was not available. - if ( empty( $version ) ) { - $upgrades[] = 'v110_upgrade'; - } - - return $upgrades; - } - - /** - * Upgrade routine for v1.1.0. - * - * Set SMTPAutoTLS to true. - * - * @since 1.1.0 - */ - public function v110_upgrade() { - - $values = Options::init()->get_all(); - - // Enable SMTPAutoTLS option. - $values['smtp']['autotls'] = true; - - Options::init()->set( $values ); - } -} +upgrades(); + + if ( empty( $upgrades ) ) { + return; + } + + // Run any available upgrades. + foreach ( $upgrades as $upgrade ) { + $this->{$upgrade}(); + } + + // Update version post upgrade(s). + update_option( 'wp_mail_smtp_version', WPMS_PLUGIN_VER ); + } + + /** + * Whether we need to perform an upgrade. + * + * @since 1.1.0 + * + * @return array + */ + protected function upgrades() { + + $version = get_option( 'wp_mail_smtp_version' ); + $upgrades = array(); + + // Version 1.1.0 upgrade; prior to this the option was not available. + if ( empty( $version ) ) { + $upgrades[] = 'v110_upgrade'; + } + + return $upgrades; + } + + /** + * Upgrade routine for v1.1.0. + * + * Set SMTPAutoTLS to true. + * + * @since 1.1.0 + */ + public function v110_upgrade() { + + $values = Options::init()->get_all(); + + // Enable SMTPAutoTLS option. + $values['smtp']['autotls'] = true; + + Options::init()->set( $values ); + } +} diff --git a/wp-content/plugins/wp-mail-smtp/src/UsageTracking/SendUsageTask.php b/wp-content/plugins/wp-mail-smtp/src/UsageTracking/SendUsageTask.php index f1af123..df99609 100644 --- a/wp-content/plugins/wp-mail-smtp/src/UsageTracking/SendUsageTask.php +++ b/wp-content/plugins/wp-mail-smtp/src/UsageTracking/SendUsageTask.php @@ -25,7 +25,7 @@ class SendUsageTask extends Task { * * @var string */ - const TRACK_URL = 'https://usage.wpmailsmtp.com/v1/smtptrack'; + const TRACK_URL = 'https://wpmailsmtpusage.com/v1/smtptrack'; /** * Class constructor. diff --git a/wp-content/plugins/wp-mail-smtp/uninstall.php b/wp-content/plugins/wp-mail-smtp/uninstall.php index 0be6dfc..fa17e9e 100644 --- a/wp-content/plugins/wp-mail-smtp/uninstall.php +++ b/wp-content/plugins/wp-mail-smtp/uninstall.php @@ -51,7 +51,11 @@ $am_announcement_params = [ * Disable Action Schedule Queue Runner, to prevent a fatal error on the shutdown WP hook. */ if ( class_exists( 'ActionScheduler_QueueRunner' ) ) { - ActionScheduler_QueueRunner::instance()->unhook_dispatch_async_request(); + $as_queue_runner = \ActionScheduler_QueueRunner::instance(); + + if ( method_exists( $as_queue_runner, 'unhook_dispatch_async_request' ) ) { + $as_queue_runner->unhook_dispatch_async_request(); + } } // WP MS uninstall process. diff --git a/wp-content/plugins/wp-mail-smtp/vendor/autoload.php b/wp-content/plugins/wp-mail-smtp/vendor/autoload.php index 08a0004..dc59286 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/autoload.php +++ b/wp-content/plugins/wp-mail-smtp/vendor/autoload.php @@ -4,4 +4,4 @@ require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInitecc5aee58cbc7fae6cdc39ef5e9f1f73::getLoader(); +return ComposerAutoloaderInit4505233c9771255f4bcd3288908993ad::getLoader(); diff --git a/wp-content/plugins/wp-mail-smtp/vendor/composer/ClassLoader.php b/wp-content/plugins/wp-mail-smtp/vendor/composer/ClassLoader.php index fce8549..03b9bb9 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/composer/ClassLoader.php +++ b/wp-content/plugins/wp-mail-smtp/vendor/composer/ClassLoader.php @@ -60,7 +60,7 @@ class ClassLoader public function getPrefixes() { if (!empty($this->prefixesPsr0)) { - return call_user_func_array('array_merge', $this->prefixesPsr0); + return call_user_func_array('array_merge', array_values($this->prefixesPsr0)); } return array(); diff --git a/wp-content/plugins/wp-mail-smtp/vendor/composer/autoload_classmap.php b/wp-content/plugins/wp-mail-smtp/vendor/composer/autoload_classmap.php index b6d8155..fcfca5c 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/composer/autoload_classmap.php +++ b/wp-content/plugins/wp-mail-smtp/vendor/composer/autoload_classmap.php @@ -6,6 +6,524 @@ $vendorDir = dirname(dirname(__FILE__)); $baseDir = dirname($vendorDir); return array( - 'Google_Service_Exception' => $vendorDir . '/google/apiclient/src/Google/Service/Exception.php', - 'Google_Service_Resource' => $vendorDir . '/google/apiclient/src/Google/Service/Resource.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\AccessToken' => $baseDir . '/vendor_prefixed/google/auth/src/AccessToken.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\ApplicationDefaultCredentials' => $baseDir . '/vendor_prefixed/google/auth/src/ApplicationDefaultCredentials.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\CacheTrait' => $baseDir . '/vendor_prefixed/google/auth/src/CacheTrait.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\Cache\\InvalidArgumentException' => $baseDir . '/vendor_prefixed/google/auth/src/Cache/InvalidArgumentException.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\Cache\\Item' => $baseDir . '/vendor_prefixed/google/auth/src/Cache/Item.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\Cache\\MemoryCacheItemPool' => $baseDir . '/vendor_prefixed/google/auth/src/Cache/MemoryCacheItemPool.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\Cache\\SysVCacheItemPool' => $baseDir . '/vendor_prefixed/google/auth/src/Cache/SysVCacheItemPool.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\CredentialsLoader' => $baseDir . '/vendor_prefixed/google/auth/src/CredentialsLoader.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\Credentials\\AppIdentityCredentials' => $baseDir . '/vendor_prefixed/google/auth/src/Credentials/AppIdentityCredentials.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\Credentials\\GCECredentials' => $baseDir . '/vendor_prefixed/google/auth/src/Credentials/GCECredentials.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\Credentials\\IAMCredentials' => $baseDir . '/vendor_prefixed/google/auth/src/Credentials/IAMCredentials.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\Credentials\\InsecureCredentials' => $baseDir . '/vendor_prefixed/google/auth/src/Credentials/InsecureCredentials.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\Credentials\\ServiceAccountCredentials' => $baseDir . '/vendor_prefixed/google/auth/src/Credentials/ServiceAccountCredentials.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\Credentials\\ServiceAccountJwtAccessCredentials' => $baseDir . '/vendor_prefixed/google/auth/src/Credentials/ServiceAccountJwtAccessCredentials.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\Credentials\\UserRefreshCredentials' => $baseDir . '/vendor_prefixed/google/auth/src/Credentials/UserRefreshCredentials.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\FetchAuthTokenCache' => $baseDir . '/vendor_prefixed/google/auth/src/FetchAuthTokenCache.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\FetchAuthTokenInterface' => $baseDir . '/vendor_prefixed/google/auth/src/FetchAuthTokenInterface.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\GCECache' => $baseDir . '/vendor_prefixed/google/auth/src/GCECache.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\GetQuotaProjectInterface' => $baseDir . '/vendor_prefixed/google/auth/src/GetQuotaProjectInterface.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\HttpHandler\\Guzzle5HttpHandler' => $baseDir . '/vendor_prefixed/google/auth/src/HttpHandler/Guzzle5HttpHandler.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\HttpHandler\\Guzzle6HttpHandler' => $baseDir . '/vendor_prefixed/google/auth/src/HttpHandler/Guzzle6HttpHandler.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\HttpHandler\\Guzzle7HttpHandler' => $baseDir . '/vendor_prefixed/google/auth/src/HttpHandler/Guzzle7HttpHandler.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\HttpHandler\\HttpClientCache' => $baseDir . '/vendor_prefixed/google/auth/src/HttpHandler/HttpClientCache.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\HttpHandler\\HttpHandlerFactory' => $baseDir . '/vendor_prefixed/google/auth/src/HttpHandler/HttpHandlerFactory.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\Iam' => $baseDir . '/vendor_prefixed/google/auth/src/Iam.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\Middleware\\AuthTokenMiddleware' => $baseDir . '/vendor_prefixed/google/auth/src/Middleware/AuthTokenMiddleware.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\Middleware\\ScopedAccessTokenMiddleware' => $baseDir . '/vendor_prefixed/google/auth/src/Middleware/ScopedAccessTokenMiddleware.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\Middleware\\SimpleMiddleware' => $baseDir . '/vendor_prefixed/google/auth/src/Middleware/SimpleMiddleware.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\OAuth2' => $baseDir . '/vendor_prefixed/google/auth/src/OAuth2.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\ProjectIdProviderInterface' => $baseDir . '/vendor_prefixed/google/auth/src/ProjectIdProviderInterface.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\ServiceAccountSignerTrait' => $baseDir . '/vendor_prefixed/google/auth/src/ServiceAccountSignerTrait.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\SignBlobInterface' => $baseDir . '/vendor_prefixed/google/auth/src/SignBlobInterface.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\Subscriber\\AuthTokenSubscriber' => $baseDir . '/vendor_prefixed/google/auth/src/Subscriber/AuthTokenSubscriber.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\Subscriber\\ScopedAccessTokenSubscriber' => $baseDir . '/vendor_prefixed/google/auth/src/Subscriber/ScopedAccessTokenSubscriber.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\Subscriber\\SimpleSubscriber' => $baseDir . '/vendor_prefixed/google/auth/src/Subscriber/SimpleSubscriber.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\UpdateMetadataInterface' => $baseDir . '/vendor_prefixed/google/auth/src/UpdateMetadataInterface.php', + 'WPMailSMTP\\Vendor\\Google_AccessToken_Revoke' => $baseDir . '/vendor_prefixed/google/apiclient/src/Google/AccessToken/Revoke.php', + 'WPMailSMTP\\Vendor\\Google_AccessToken_Verify' => $baseDir . '/vendor_prefixed/google/apiclient/src/Google/AccessToken/Verify.php', + 'WPMailSMTP\\Vendor\\Google_AuthHandler_AuthHandlerFactory' => $baseDir . '/vendor_prefixed/google/apiclient/src/Google/AuthHandler/AuthHandlerFactory.php', + 'WPMailSMTP\\Vendor\\Google_AuthHandler_Guzzle5AuthHandler' => $baseDir . '/vendor_prefixed/google/apiclient/src/Google/AuthHandler/Guzzle5AuthHandler.php', + 'WPMailSMTP\\Vendor\\Google_AuthHandler_Guzzle6AuthHandler' => $baseDir . '/vendor_prefixed/google/apiclient/src/Google/AuthHandler/Guzzle6AuthHandler.php', + 'WPMailSMTP\\Vendor\\Google_AuthHandler_Guzzle7AuthHandler' => $baseDir . '/vendor_prefixed/google/apiclient/src/Google/AuthHandler/Guzzle7AuthHandler.php', + 'WPMailSMTP\\Vendor\\Google_Client' => $baseDir . '/vendor_prefixed/google/apiclient/src/Google/Client.php', + 'WPMailSMTP\\Vendor\\Google_Collection' => $baseDir . '/vendor_prefixed/google/apiclient/src/Google/Collection.php', + 'WPMailSMTP\\Vendor\\Google_Exception' => $baseDir . '/vendor_prefixed/google/apiclient/src/Google/Exception.php', + 'WPMailSMTP\\Vendor\\Google_Http_Batch' => $baseDir . '/vendor_prefixed/google/apiclient/src/Google/Http/Batch.php', + 'WPMailSMTP\\Vendor\\Google_Http_MediaFileUpload' => $baseDir . '/vendor_prefixed/google/apiclient/src/Google/Http/MediaFileUpload.php', + 'WPMailSMTP\\Vendor\\Google_Http_REST' => $baseDir . '/vendor_prefixed/google/apiclient/src/Google/Http/REST.php', + 'WPMailSMTP\\Vendor\\Google_Model' => $baseDir . '/vendor_prefixed/google/apiclient/src/Google/Model.php', + 'WPMailSMTP\\Vendor\\Google_Service' => $baseDir . '/vendor_prefixed/google/apiclient/src/Google/Service.php', + 'WPMailSMTP\\Vendor\\Google_Service_Exception' => $baseDir . '/vendor_prefixed/google/apiclient/src/Google/Service/Exception.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_AutoForwarding' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/AutoForwarding.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_BatchDeleteMessagesRequest' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/BatchDeleteMessagesRequest.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_BatchModifyMessagesRequest' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/BatchModifyMessagesRequest.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_Delegate' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Delegate.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_Draft' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Draft.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_Filter' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Filter.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_FilterAction' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/FilterAction.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_FilterCriteria' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/FilterCriteria.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_ForwardingAddress' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ForwardingAddress.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_History' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/History.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_HistoryLabelAdded' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/HistoryLabelAdded.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_HistoryLabelRemoved' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/HistoryLabelRemoved.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_HistoryMessageAdded' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/HistoryMessageAdded.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_HistoryMessageDeleted' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/HistoryMessageDeleted.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_ImapSettings' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ImapSettings.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_Label' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Label.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_LabelColor' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/LabelColor.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_LanguageSettings' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/LanguageSettings.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_ListDelegatesResponse' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListDelegatesResponse.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_ListDraftsResponse' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListDraftsResponse.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_ListFiltersResponse' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListFiltersResponse.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_ListForwardingAddressesResponse' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListForwardingAddressesResponse.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_ListHistoryResponse' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListHistoryResponse.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_ListLabelsResponse' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListLabelsResponse.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_ListMessagesResponse' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListMessagesResponse.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_ListSendAsResponse' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListSendAsResponse.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_ListSmimeInfoResponse' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListSmimeInfoResponse.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_ListThreadsResponse' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListThreadsResponse.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_Message' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Message.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_MessagePart' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/MessagePart.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_MessagePartBody' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/MessagePartBody.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_MessagePartHeader' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/MessagePartHeader.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_ModifyMessageRequest' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ModifyMessageRequest.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_ModifyThreadRequest' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ModifyThreadRequest.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_PopSettings' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/PopSettings.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_Profile' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Profile.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_Users' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/Users.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_UsersDrafts' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersDrafts.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_UsersHistory' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersHistory.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_UsersLabels' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersLabels.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_UsersMessages' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersMessages.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_UsersMessagesAttachments' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersMessagesAttachments.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_UsersSettings' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettings.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_UsersSettingsDelegates' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsDelegates.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_UsersSettingsFilters' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsFilters.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_UsersSettingsForwardingAddresses' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsForwardingAddresses.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_UsersSettingsSendAs' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsSendAs.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_UsersSettingsSendAsSmimeInfo' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsSendAsSmimeInfo.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_UsersThreads' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersThreads.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_SendAs' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/SendAs.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_SmimeInfo' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/SmimeInfo.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_SmtpMsa' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/SmtpMsa.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_Thread' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Thread.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_VacationSettings' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/VacationSettings.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_WatchRequest' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/WatchRequest.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_WatchResponse' => $baseDir . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/WatchResponse.php', + 'WPMailSMTP\\Vendor\\Google_Service_Resource' => $baseDir . '/vendor_prefixed/google/apiclient/src/Google/Service/Resource.php', + 'WPMailSMTP\\Vendor\\Google_Task_Composer' => $baseDir . '/vendor_prefixed/google/apiclient/src/Google/Task/Composer.php', + 'WPMailSMTP\\Vendor\\Google_Task_Exception' => $baseDir . '/vendor_prefixed/google/apiclient/src/Google/Task/Exception.php', + 'WPMailSMTP\\Vendor\\Google_Task_Retryable' => $baseDir . '/vendor_prefixed/google/apiclient/src/Google/Task/Retryable.php', + 'WPMailSMTP\\Vendor\\Google_Task_Runner' => $baseDir . '/vendor_prefixed/google/apiclient/src/Google/Task/Runner.php', + 'WPMailSMTP\\Vendor\\Google_Utils_UriTemplate' => $baseDir . '/vendor_prefixed/google/apiclient/src/Google/Utils/UriTemplate.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Client' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Client.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\ClientInterface' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/ClientInterface.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Cookie\\CookieJar' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Cookie/CookieJar.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Cookie\\CookieJarInterface' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Cookie\\FileCookieJar' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Cookie\\SessionCookieJar' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Cookie\\SetCookie' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Cookie/SetCookie.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Exception\\BadResponseException' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Exception/BadResponseException.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Exception\\ClientException' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Exception/ClientException.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Exception\\ConnectException' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Exception/ConnectException.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Exception\\GuzzleException' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Exception/GuzzleException.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Exception\\InvalidArgumentException' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Exception/InvalidArgumentException.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Exception\\RequestException' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Exception/RequestException.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Exception\\SeekException' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Exception/SeekException.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Exception\\ServerException' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Exception/ServerException.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Exception\\TooManyRedirectsException' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Exception/TooManyRedirectsException.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Exception\\TransferException' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Exception/TransferException.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\HandlerStack' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/HandlerStack.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Handler\\CurlFactory' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Handler/CurlFactory.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Handler\\CurlFactoryInterface' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Handler\\CurlHandler' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Handler/CurlHandler.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Handler\\CurlMultiHandler' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Handler\\EasyHandle' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Handler/EasyHandle.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Handler\\MockHandler' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Handler/MockHandler.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Handler\\Proxy' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Handler/Proxy.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Handler\\StreamHandler' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Handler/StreamHandler.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\MessageFormatter' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/MessageFormatter.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Middleware' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Middleware.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Pool' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Pool.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\PrepareBodyMiddleware' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\AggregateException' => $baseDir . '/vendor_prefixed/guzzlehttp/promises/src/AggregateException.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\CancellationException' => $baseDir . '/vendor_prefixed/guzzlehttp/promises/src/CancellationException.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\Coroutine' => $baseDir . '/vendor_prefixed/guzzlehttp/promises/src/Coroutine.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\EachPromise' => $baseDir . '/vendor_prefixed/guzzlehttp/promises/src/EachPromise.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\FulfilledPromise' => $baseDir . '/vendor_prefixed/guzzlehttp/promises/src/FulfilledPromise.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\Promise' => $baseDir . '/vendor_prefixed/guzzlehttp/promises/src/Promise.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\PromiseInterface' => $baseDir . '/vendor_prefixed/guzzlehttp/promises/src/PromiseInterface.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\PromisorInterface' => $baseDir . '/vendor_prefixed/guzzlehttp/promises/src/PromisorInterface.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\RejectedPromise' => $baseDir . '/vendor_prefixed/guzzlehttp/promises/src/RejectedPromise.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\RejectionException' => $baseDir . '/vendor_prefixed/guzzlehttp/promises/src/RejectionException.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\TaskQueue' => $baseDir . '/vendor_prefixed/guzzlehttp/promises/src/TaskQueue.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\TaskQueueInterface' => $baseDir . '/vendor_prefixed/guzzlehttp/promises/src/TaskQueueInterface.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\AppendStream' => $baseDir . '/vendor_prefixed/guzzlehttp/psr7/src/AppendStream.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\BufferStream' => $baseDir . '/vendor_prefixed/guzzlehttp/psr7/src/BufferStream.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\CachingStream' => $baseDir . '/vendor_prefixed/guzzlehttp/psr7/src/CachingStream.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\DroppingStream' => $baseDir . '/vendor_prefixed/guzzlehttp/psr7/src/DroppingStream.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\FnStream' => $baseDir . '/vendor_prefixed/guzzlehttp/psr7/src/FnStream.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\InflateStream' => $baseDir . '/vendor_prefixed/guzzlehttp/psr7/src/InflateStream.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\LazyOpenStream' => $baseDir . '/vendor_prefixed/guzzlehttp/psr7/src/LazyOpenStream.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\LimitStream' => $baseDir . '/vendor_prefixed/guzzlehttp/psr7/src/LimitStream.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\MessageTrait' => $baseDir . '/vendor_prefixed/guzzlehttp/psr7/src/MessageTrait.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\MultipartStream' => $baseDir . '/vendor_prefixed/guzzlehttp/psr7/src/MultipartStream.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\NoSeekStream' => $baseDir . '/vendor_prefixed/guzzlehttp/psr7/src/NoSeekStream.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\PumpStream' => $baseDir . '/vendor_prefixed/guzzlehttp/psr7/src/PumpStream.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\Request' => $baseDir . '/vendor_prefixed/guzzlehttp/psr7/src/Request.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\Response' => $baseDir . '/vendor_prefixed/guzzlehttp/psr7/src/Response.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\Rfc7230' => $baseDir . '/vendor_prefixed/guzzlehttp/psr7/src/Rfc7230.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\ServerRequest' => $baseDir . '/vendor_prefixed/guzzlehttp/psr7/src/ServerRequest.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\Stream' => $baseDir . '/vendor_prefixed/guzzlehttp/psr7/src/Stream.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\StreamDecoratorTrait' => $baseDir . '/vendor_prefixed/guzzlehttp/psr7/src/StreamDecoratorTrait.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\StreamWrapper' => $baseDir . '/vendor_prefixed/guzzlehttp/psr7/src/StreamWrapper.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\UploadedFile' => $baseDir . '/vendor_prefixed/guzzlehttp/psr7/src/UploadedFile.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\Uri' => $baseDir . '/vendor_prefixed/guzzlehttp/psr7/src/Uri.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\UriNormalizer' => $baseDir . '/vendor_prefixed/guzzlehttp/psr7/src/UriNormalizer.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\UriResolver' => $baseDir . '/vendor_prefixed/guzzlehttp/psr7/src/UriResolver.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\RedirectMiddleware' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/RedirectMiddleware.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\RequestOptions' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/RequestOptions.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\RetryMiddleware' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/RetryMiddleware.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\TransferStats' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/TransferStats.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\UriTemplate' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/UriTemplate.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Utils' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/Utils.php', + 'WPMailSMTP\\Vendor\\Monolog\\ErrorHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/ErrorHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Formatter\\ChromePHPFormatter' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/ChromePHPFormatter.php', + 'WPMailSMTP\\Vendor\\Monolog\\Formatter\\ElasticaFormatter' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/ElasticaFormatter.php', + 'WPMailSMTP\\Vendor\\Monolog\\Formatter\\FlowdockFormatter' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/FlowdockFormatter.php', + 'WPMailSMTP\\Vendor\\Monolog\\Formatter\\FluentdFormatter' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php', + 'WPMailSMTP\\Vendor\\Monolog\\Formatter\\FormatterInterface' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/FormatterInterface.php', + 'WPMailSMTP\\Vendor\\Monolog\\Formatter\\GelfMessageFormatter' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/GelfMessageFormatter.php', + 'WPMailSMTP\\Vendor\\Monolog\\Formatter\\HtmlFormatter' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/HtmlFormatter.php', + 'WPMailSMTP\\Vendor\\Monolog\\Formatter\\JsonFormatter' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php', + 'WPMailSMTP\\Vendor\\Monolog\\Formatter\\LineFormatter' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/LineFormatter.php', + 'WPMailSMTP\\Vendor\\Monolog\\Formatter\\LogglyFormatter' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/LogglyFormatter.php', + 'WPMailSMTP\\Vendor\\Monolog\\Formatter\\LogstashFormatter' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/LogstashFormatter.php', + 'WPMailSMTP\\Vendor\\Monolog\\Formatter\\MongoDBFormatter' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/MongoDBFormatter.php', + 'WPMailSMTP\\Vendor\\Monolog\\Formatter\\NormalizerFormatter' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php', + 'WPMailSMTP\\Vendor\\Monolog\\Formatter\\ScalarFormatter' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/ScalarFormatter.php', + 'WPMailSMTP\\Vendor\\Monolog\\Formatter\\WildfireFormatter' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/WildfireFormatter.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\AbstractHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/AbstractHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\AbstractProcessingHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\AbstractSyslogHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/AbstractSyslogHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\AmqpHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/AmqpHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\BrowserConsoleHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/BrowserConsoleHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\BufferHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/BufferHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\ChromePHPHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/ChromePHPHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\CouchDBHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/CouchDBHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\CubeHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/CubeHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\Curl\\Util' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/Curl/Util.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\DeduplicationHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/DeduplicationHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\DoctrineCouchDBHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/DoctrineCouchDBHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\DynamoDbHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/DynamoDbHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\ElasticSearchHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/ElasticSearchHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\ErrorLogHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/ErrorLogHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\FilterHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FilterHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\FingersCrossedHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\FingersCrossed\\ActivationStrategyInterface' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FingersCrossed/ActivationStrategyInterface.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\FingersCrossed\\ChannelLevelActivationStrategy' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FingersCrossed/ChannelLevelActivationStrategy.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\FingersCrossed\\ErrorLevelActivationStrategy' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FingersCrossed/ErrorLevelActivationStrategy.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\FirePHPHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FirePHPHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\FleepHookHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FleepHookHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\FlowdockHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FlowdockHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\FormattableHandlerInterface' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FormattableHandlerInterface.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\FormattableHandlerTrait' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FormattableHandlerTrait.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\GelfHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/GelfHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\GroupHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/GroupHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\HandlerInterface' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/HandlerInterface.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\HandlerWrapper' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/HandlerWrapper.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\HipChatHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/HipChatHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\IFTTTHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/IFTTTHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\InsightOpsHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/InsightOpsHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\LogEntriesHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/LogEntriesHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\LogglyHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/LogglyHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\MailHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/MailHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\MandrillHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/MandrillHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\MissingExtensionException' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/MissingExtensionException.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\MongoDBHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/MongoDBHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\NativeMailerHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/NativeMailerHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\NewRelicHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\NullHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/NullHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\PHPConsoleHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/PHPConsoleHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\ProcessableHandlerInterface' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/ProcessableHandlerInterface.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\ProcessableHandlerTrait' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/ProcessableHandlerTrait.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\PsrHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/PsrHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\PushoverHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/PushoverHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\RavenHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/RavenHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\RedisHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/RedisHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\RollbarHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/RollbarHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\RotatingFileHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\SamplingHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SamplingHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\SlackHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SlackHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\SlackWebhookHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\Slack\\SlackRecord' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/Slack/SlackRecord.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\SlackbotHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SlackbotHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\SocketHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SocketHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\StreamHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/StreamHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\SwiftMailerHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SwiftMailerHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\SyslogHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SyslogHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\SyslogUdpHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SyslogUdpHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\SyslogUdp\\UdpSocket' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SyslogUdp/UdpSocket.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\TestHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/TestHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\WhatFailureGroupHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/WhatFailureGroupHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\ZendMonitorHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/ZendMonitorHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Logger' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Logger.php', + 'WPMailSMTP\\Vendor\\Monolog\\Processor\\GitProcessor' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Processor/GitProcessor.php', + 'WPMailSMTP\\Vendor\\Monolog\\Processor\\IntrospectionProcessor' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Processor/IntrospectionProcessor.php', + 'WPMailSMTP\\Vendor\\Monolog\\Processor\\MemoryPeakUsageProcessor' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Processor/MemoryPeakUsageProcessor.php', + 'WPMailSMTP\\Vendor\\Monolog\\Processor\\MemoryProcessor' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Processor/MemoryProcessor.php', + 'WPMailSMTP\\Vendor\\Monolog\\Processor\\MemoryUsageProcessor' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Processor/MemoryUsageProcessor.php', + 'WPMailSMTP\\Vendor\\Monolog\\Processor\\MercurialProcessor' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Processor/MercurialProcessor.php', + 'WPMailSMTP\\Vendor\\Monolog\\Processor\\ProcessIdProcessor' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Processor/ProcessIdProcessor.php', + 'WPMailSMTP\\Vendor\\Monolog\\Processor\\ProcessorInterface' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Processor/ProcessorInterface.php', + 'WPMailSMTP\\Vendor\\Monolog\\Processor\\PsrLogMessageProcessor' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.php', + 'WPMailSMTP\\Vendor\\Monolog\\Processor\\TagProcessor' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Processor/TagProcessor.php', + 'WPMailSMTP\\Vendor\\Monolog\\Processor\\UidProcessor' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Processor/UidProcessor.php', + 'WPMailSMTP\\Vendor\\Monolog\\Processor\\WebProcessor' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Processor/WebProcessor.php', + 'WPMailSMTP\\Vendor\\Monolog\\Registry' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Registry.php', + 'WPMailSMTP\\Vendor\\Monolog\\ResettableInterface' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/ResettableInterface.php', + 'WPMailSMTP\\Vendor\\Monolog\\SignalHandler' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/SignalHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Utils' => $baseDir . '/vendor_prefixed/monolog/monolog/src/Monolog/Utils.php', + 'WPMailSMTP\\Vendor\\Psr\\Cache\\CacheException' => $baseDir . '/vendor_prefixed/psr/cache/src/CacheException.php', + 'WPMailSMTP\\Vendor\\Psr\\Cache\\CacheItemInterface' => $baseDir . '/vendor_prefixed/psr/cache/src/CacheItemInterface.php', + 'WPMailSMTP\\Vendor\\Psr\\Cache\\CacheItemPoolInterface' => $baseDir . '/vendor_prefixed/psr/cache/src/CacheItemPoolInterface.php', + 'WPMailSMTP\\Vendor\\Psr\\Cache\\InvalidArgumentException' => $baseDir . '/vendor_prefixed/psr/cache/src/InvalidArgumentException.php', + 'WPMailSMTP\\Vendor\\Psr\\Http\\Message\\MessageInterface' => $baseDir . '/vendor_prefixed/psr/http-message/src/MessageInterface.php', + 'WPMailSMTP\\Vendor\\Psr\\Http\\Message\\RequestInterface' => $baseDir . '/vendor_prefixed/psr/http-message/src/RequestInterface.php', + 'WPMailSMTP\\Vendor\\Psr\\Http\\Message\\ResponseInterface' => $baseDir . '/vendor_prefixed/psr/http-message/src/ResponseInterface.php', + 'WPMailSMTP\\Vendor\\Psr\\Http\\Message\\ServerRequestInterface' => $baseDir . '/vendor_prefixed/psr/http-message/src/ServerRequestInterface.php', + 'WPMailSMTP\\Vendor\\Psr\\Http\\Message\\StreamInterface' => $baseDir . '/vendor_prefixed/psr/http-message/src/StreamInterface.php', + 'WPMailSMTP\\Vendor\\Psr\\Http\\Message\\UploadedFileInterface' => $baseDir . '/vendor_prefixed/psr/http-message/src/UploadedFileInterface.php', + 'WPMailSMTP\\Vendor\\Psr\\Http\\Message\\UriInterface' => $baseDir . '/vendor_prefixed/psr/http-message/src/UriInterface.php', + 'WPMailSMTP\\Vendor\\Psr\\Log\\AbstractLogger' => $baseDir . '/vendor_prefixed/psr/log/Psr/Log/AbstractLogger.php', + 'WPMailSMTP\\Vendor\\Psr\\Log\\InvalidArgumentException' => $baseDir . '/vendor_prefixed/psr/log/Psr/Log/InvalidArgumentException.php', + 'WPMailSMTP\\Vendor\\Psr\\Log\\LogLevel' => $baseDir . '/vendor_prefixed/psr/log/Psr/Log/LogLevel.php', + 'WPMailSMTP\\Vendor\\Psr\\Log\\LoggerAwareInterface' => $baseDir . '/vendor_prefixed/psr/log/Psr/Log/LoggerAwareInterface.php', + 'WPMailSMTP\\Vendor\\Psr\\Log\\LoggerAwareTrait' => $baseDir . '/vendor_prefixed/psr/log/Psr/Log/LoggerAwareTrait.php', + 'WPMailSMTP\\Vendor\\Psr\\Log\\LoggerInterface' => $baseDir . '/vendor_prefixed/psr/log/Psr/Log/LoggerInterface.php', + 'WPMailSMTP\\Vendor\\Psr\\Log\\LoggerTrait' => $baseDir . '/vendor_prefixed/psr/log/Psr/Log/LoggerTrait.php', + 'WPMailSMTP\\Vendor\\Psr\\Log\\NullLogger' => $baseDir . '/vendor_prefixed/psr/log/Psr/Log/NullLogger.php', + 'WPMailSMTP\\Vendor\\Psr\\Log\\Test\\DummyTest' => $baseDir . '/vendor_prefixed/psr/log/Psr/Log/Test/DummyTest.php', + 'WPMailSMTP\\Vendor\\Psr\\Log\\Test\\LoggerInterfaceTest' => $baseDir . '/vendor_prefixed/psr/log/Psr/Log/Test/LoggerInterfaceTest.php', + 'WPMailSMTP\\Vendor\\Psr\\Log\\Test\\TestLogger' => $baseDir . '/vendor_prefixed/psr/log/Psr/Log/Test/TestLogger.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\ApiException' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/ApiException.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\AccountApi' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/AccountApi.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\AttributesApi' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/AttributesApi.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\ContactsApi' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/ContactsApi.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\EmailCampaignsApi' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/EmailCampaignsApi.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\FoldersApi' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/FoldersApi.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\ListsApi' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/ListsApi.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\ProcessApi' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/ProcessApi.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\ResellerApi' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/ResellerApi.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\SMSCampaignsApi' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/SMSCampaignsApi.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\SMTPApi' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/SMTPApi.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\SendersApi' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/SendersApi.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\TransactionalSMSApi' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/TransactionalSMSApi.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\WebhooksApi' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/WebhooksApi.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Configuration' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Configuration.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\HeaderSelector' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/HeaderSelector.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\AbTestCampaignResult' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/AbTestCampaignResult.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\AddChildDomain' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/AddChildDomain.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\AddContactToList' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/AddContactToList.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\AddCredits' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/AddCredits.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateAttribute' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateAttribute.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateAttributeEnumeration' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateAttributeEnumeration.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateChild' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateChild.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateContact' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateContact.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateDoiContact' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateDoiContact.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateEmailCampaign' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateEmailCampaign.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateEmailCampaignRecipients' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateEmailCampaignRecipients.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateEmailCampaignSender' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateEmailCampaignSender.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateList' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateList.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateModel' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateModel.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateReseller' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateReseller.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateSender' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSender.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateSenderIps' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSenderIps.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateSenderModel' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSenderModel.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateSmsCampaign' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSmsCampaign.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateSmsCampaignRecipients' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSmsCampaignRecipients.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateSmtpEmail' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSmtpEmail.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateSmtpTemplate' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSmtpTemplate.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateSmtpTemplateSender' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSmtpTemplateSender.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateUpdateContactModel' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateUpdateContactModel.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateUpdateFolder' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateUpdateFolder.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateWebhook' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateWebhook.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreatedProcessId' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreatedProcessId.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\DeleteHardbounces' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/DeleteHardbounces.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\EmailExportRecipients' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/EmailExportRecipients.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/ErrorModel.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAccount' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAccount.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAccountMarketingAutomation' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAccountMarketingAutomation.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAccountPlan' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAccountPlan.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAccountRelay' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAccountRelay.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAccountRelayData' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAccountRelayData.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAggregatedReport' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAggregatedReport.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAttributes' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAttributes.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAttributesAttributes' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAttributesAttributes.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAttributesEnumeration' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAttributesEnumeration.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetCampaignOverview' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetCampaignOverview.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetCampaignRecipients' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetCampaignRecipients.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetCampaignStats' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetCampaignStats.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildAccountCreationStatus' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildAccountCreationStatus.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildDomain' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildDomain.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildDomains' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildDomains.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildInfo' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildInfo.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildInfoApiKeys' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildInfoApiKeys.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildInfoApiKeysV2' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildInfoApiKeysV2.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildInfoApiKeysV3' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildInfoApiKeysV3.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildInfoCredits' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildInfoCredits.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildInfoStatistics' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildInfoStatistics.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildrenList' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildrenList.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetClient' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetClient.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetContactCampaignStats' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStats.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetContactCampaignStatsClicked' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsClicked.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetContactCampaignStatsOpened' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsOpened.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetContactCampaignStatsTransacAttributes' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsTransacAttributes.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetContactCampaignStatsUnsubscriptions' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsUnsubscriptions.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetContactDetails' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContactDetails.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetContacts' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContacts.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetDeviceBrowserStats' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetDeviceBrowserStats.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetEmailCampaign' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetEmailCampaign.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetEmailCampaigns' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetEmailCampaigns.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetEmailEventReport' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetEmailEventReport.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetEmailEventReportEvents' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetEmailEventReportEvents.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedCampaignOverview' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedCampaignOverview.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedCampaignOverviewSender' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedCampaignOverviewSender.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedCampaignStats' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedCampaignStats.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedClient' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedClient.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedClientAddress' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedClientAddress.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetails' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetails.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatistics' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatistics.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatisticsClicked' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsClicked.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatisticsLinks' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsLinks.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatisticsMessagesSent' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsMessagesSent.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatisticsOpened' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsOpened.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatisticsUnsubscriptions' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptions.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedList' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedList.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedListCampaignStats' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedListCampaignStats.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetFolder' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetFolder.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetFolderLists' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetFolderLists.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetFolders' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetFolders.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetIp' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetIp.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetIpFromSender' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetIpFromSender.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetIps' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetIps.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetIpsFromSender' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetIpsFromSender.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetList' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetList.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetLists' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetLists.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetProcess' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetProcess.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetProcesses' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetProcesses.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetReports' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetReports.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetReportsReports' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetReportsReports.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSendersList' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSendersList.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSendersListIps' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSendersListIps.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSendersListSenders' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSendersListSenders.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSharedTemplateUrl' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSharedTemplateUrl.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmsCampaign' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaign.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmsCampaignOverview' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaignOverview.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmsCampaignStats' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaignStats.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmsCampaigns' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaigns.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmsEventReport' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmsEventReport.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmsEventReportEvents' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmsEventReportEvents.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmtpTemplateOverview' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmtpTemplateOverview.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmtpTemplateOverviewSender' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmtpTemplateOverviewSender.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmtpTemplates' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmtpTemplates.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSsoToken' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSsoToken.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetStatsByBrowser' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetStatsByBrowser.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetStatsByDevice' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetStatsByDevice.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetStatsByDomain' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetStatsByDomain.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacAggregatedSmsReport' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacAggregatedSmsReport.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacBlockedContacts' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacBlockedContacts.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacBlockedContactsContacts' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacBlockedContactsContacts.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacBlockedContactsReason' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacBlockedContactsReason.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacEmailContent' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailContent.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacEmailContentEvents' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailContentEvents.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacEmailsList' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailsList.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacEmailsListTransactionalEmails' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailsListTransactionalEmails.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacSmsReport' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacSmsReport.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacSmsReportReports' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacSmsReportReports.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetWebhook' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetWebhook.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetWebhooks' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetWebhooks.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ManageIp' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/ManageIp.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ModelInterface' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/ModelInterface.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\PostContactInfo' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/PostContactInfo.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\PostContactInfoContacts' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/PostContactInfoContacts.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\PostSendFailed' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/PostSendFailed.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\PostSendSmsTestFailed' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/PostSendSmsTestFailed.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RemainingCreditModel' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RemainingCreditModel.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RemainingCreditModelChild' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RemainingCreditModelChild.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RemainingCreditModelReseller' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RemainingCreditModelReseller.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RemoveContactFromList' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RemoveContactFromList.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RemoveCredits' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RemoveCredits.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RequestContactExport' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RequestContactExport.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RequestContactExportCustomContactFilter' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RequestContactExportCustomContactFilter.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RequestContactImport' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RequestContactImport.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RequestContactImportNewList' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RequestContactImportNewList.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RequestSMSRecipientExport' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RequestSMSRecipientExport.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendEmail' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendEmail.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendEmailAttachment' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendEmailAttachment.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendReport' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendReport.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendReportEmail' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendReportEmail.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendSms' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSms.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendSmtpEmail' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmail.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendSmtpEmailAttachment' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailAttachment.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendSmtpEmailBcc' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailBcc.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendSmtpEmailCc' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailCc.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendSmtpEmailReplyTo' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailReplyTo.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendSmtpEmailSender' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailSender.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendSmtpEmailTo' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailTo.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendTemplateEmail' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendTemplateEmail.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendTestEmail' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendTestEmail.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendTestSms' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendTestSms.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendTransacSms' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendTransacSms.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateAttribute' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateAttribute.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateAttributeEnumeration' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateAttributeEnumeration.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateCampaignStatus' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateCampaignStatus.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateChild' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateChild.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateChildAccountStatus' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateChildAccountStatus.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateChildDomain' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateChildDomain.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateContact' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateContact.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateEmailCampaign' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateEmailCampaign.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateEmailCampaignRecipients' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateEmailCampaignRecipients.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateEmailCampaignSender' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateEmailCampaignSender.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateList' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateList.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateSender' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateSender.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateSmsCampaign' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateSmsCampaign.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateSmtpTemplate' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateSmtpTemplate.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateSmtpTemplateSender' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateSmtpTemplateSender.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateWebhook' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateWebhook.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UploadImageToGallery' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UploadImageToGallery.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\ObjectSerializer' => $baseDir . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/ObjectSerializer.php', + 'WPMailSMTP\\Vendor\\Symfony\\Polyfill\\Intl\\Idn\\Idn' => $baseDir . '/vendor_prefixed/symfony/polyfill-intl-idn/Idn.php', + 'WPMailSMTP\\Vendor\\Symfony\\Polyfill\\Mbstring\\Mbstring' => $baseDir . '/vendor_prefixed/symfony/polyfill-mbstring/Mbstring.php', + 'WPMailSMTP\\Vendor\\Symfony\\Polyfill\\Php72\\Php72' => $baseDir . '/vendor_prefixed/symfony/polyfill-php72/Php72.php', + 'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\AES' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/AES.php', + 'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\Base' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/Base.php', + 'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\Blowfish' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/Blowfish.php', + 'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\DES' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/DES.php', + 'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\Hash' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/Hash.php', + 'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\RC2' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/RC2.php', + 'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\RC4' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/RC4.php', + 'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\RSA' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/RSA.php', + 'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\Random' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/Random.php', + 'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\Rijndael' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php', + 'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\TripleDES' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/TripleDES.php', + 'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\Twofish' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php', + 'WPMailSMTP\\Vendor\\phpseclib\\File\\ANSI' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/File/ANSI.php', + 'WPMailSMTP\\Vendor\\phpseclib\\File\\ASN1' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/File/ASN1.php', + 'WPMailSMTP\\Vendor\\phpseclib\\File\\ASN1\\Element' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/File/ASN1/Element.php', + 'WPMailSMTP\\Vendor\\phpseclib\\File\\X509' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/File/X509.php', + 'WPMailSMTP\\Vendor\\phpseclib\\Math\\BigInteger' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Math/BigInteger.php', + 'WPMailSMTP\\Vendor\\phpseclib\\Net\\SCP' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Net/SCP.php', + 'WPMailSMTP\\Vendor\\phpseclib\\Net\\SFTP' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Net/SFTP.php', + 'WPMailSMTP\\Vendor\\phpseclib\\Net\\SFTP\\Stream' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Net/SFTP/Stream.php', + 'WPMailSMTP\\Vendor\\phpseclib\\Net\\SSH1' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Net/SSH1.php', + 'WPMailSMTP\\Vendor\\phpseclib\\Net\\SSH2' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Net/SSH2.php', + 'WPMailSMTP\\Vendor\\phpseclib\\System\\SSH\\Agent' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/System/SSH/Agent.php', + 'WPMailSMTP\\Vendor\\phpseclib\\System\\SSH\\Agent\\Identity' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/System/SSH/Agent/Identity.php', ); diff --git a/wp-content/plugins/wp-mail-smtp/vendor/composer/autoload_files.php b/wp-content/plugins/wp-mail-smtp/vendor/composer/autoload_files.php index 4cbdc4c..ee0c5d1 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/composer/autoload_files.php +++ b/wp-content/plugins/wp-mail-smtp/vendor/composer/autoload_files.php @@ -7,11 +7,11 @@ $baseDir = dirname($vendorDir); return array( '7b11c4dc42b3b3023073cb14e519683c' => $vendorDir . '/ralouphie/getallheaders/src/getallheaders.php', - 'a0edc8309cc5e1d60e3047b5df6b7052' => $vendorDir . '/guzzlehttp/psr7/src/functions_include.php', - 'c964ee0ededf28c96ebd9db5099ef910' => $vendorDir . '/guzzlehttp/promises/src/functions_include.php', - '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => $vendorDir . '/symfony/polyfill-mbstring/bootstrap.php', - '25072dd6e2470089de65ae7bf11d3109' => $vendorDir . '/symfony/polyfill-php72/bootstrap.php', - 'f598d06aa772fa33d905e87be6398fb1' => $vendorDir . '/symfony/polyfill-intl-idn/bootstrap.php', - '37a3dc5111fe8f707ab4c132ef1dbc62' => $vendorDir . '/guzzlehttp/guzzle/src/functions_include.php', - 'decc78cc4436b1292c6c0d151b19445c' => $vendorDir . '/phpseclib/phpseclib/phpseclib/bootstrap.php', + '840b8504e40a63aaa679ca25c0b2a1cc' => $baseDir . '/vendor_prefixed/guzzlehttp/psr7/src/functions_include.php', + 'e3e111437f37e10e6bcab5eacc08fb6f' => $baseDir . '/vendor_prefixed/guzzlehttp/promises/src/functions_include.php', + '2bb094e40611cb5eccea789f32aff634' => $baseDir . '/vendor_prefixed/symfony/polyfill-mbstring/bootstrap.php', + '1fd84176824b5a44e7bd8da85eca7e14' => $baseDir . '/vendor_prefixed/symfony/polyfill-php72/bootstrap.php', + '606299e0d90ec13f1e6b53164b8387df' => $baseDir . '/vendor_prefixed/symfony/polyfill-intl-idn/bootstrap.php', + '6fe0d6ea1deb6acc74bbe64573a83e1c' => $baseDir . '/vendor_prefixed/guzzlehttp/guzzle/src/functions_include.php', + '3ed0dcebed83aa26dfe4c549d730cf2e' => $baseDir . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/bootstrap.php', ); diff --git a/wp-content/plugins/wp-mail-smtp/vendor/composer/autoload_namespaces.php b/wp-content/plugins/wp-mail-smtp/vendor/composer/autoload_namespaces.php index aed9f84..b7fc012 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/composer/autoload_namespaces.php +++ b/wp-content/plugins/wp-mail-smtp/vendor/composer/autoload_namespaces.php @@ -6,6 +6,4 @@ $vendorDir = dirname(dirname(__FILE__)); $baseDir = dirname($vendorDir); return array( - 'Google_Service_' => array($vendorDir . '/google/apiclient-services/src'), - 'Google_' => array($vendorDir . '/google/apiclient/src'), ); diff --git a/wp-content/plugins/wp-mail-smtp/vendor/composer/autoload_psr4.php b/wp-content/plugins/wp-mail-smtp/vendor/composer/autoload_psr4.php index 0ed3ba5..7e0f83a 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/composer/autoload_psr4.php +++ b/wp-content/plugins/wp-mail-smtp/vendor/composer/autoload_psr4.php @@ -6,21 +6,9 @@ $vendorDir = dirname(dirname(__FILE__)); $baseDir = dirname($vendorDir); return array( - 'phpseclib\\' => array($vendorDir . '/phpseclib/phpseclib/phpseclib'), 'Wikimedia\\Composer\\' => array($vendorDir . '/wikimedia/composer-merge-plugin/src'), 'WPMailSMTP\\' => array($baseDir . '/src'), - 'Symfony\\Polyfill\\Php72\\' => array($vendorDir . '/symfony/polyfill-php72'), - 'Symfony\\Polyfill\\Mbstring\\' => array($vendorDir . '/symfony/polyfill-mbstring'), - 'Symfony\\Polyfill\\Intl\\Idn\\' => array($vendorDir . '/symfony/polyfill-intl-idn'), - 'SendinBlue\\Client\\' => array($vendorDir . '/sendinblue/api-v3-sdk/lib'), - 'Psr\\Log\\' => array($vendorDir . '/psr/log/Psr/Log'), - 'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-message/src'), - 'Psr\\Cache\\' => array($vendorDir . '/psr/cache/src'), - 'Monolog\\' => array($vendorDir . '/monolog/monolog/src/Monolog'), - 'GuzzleHttp\\Psr7\\' => array($vendorDir . '/guzzlehttp/psr7/src'), - 'GuzzleHttp\\Promise\\' => array($vendorDir . '/guzzlehttp/promises/src'), - 'GuzzleHttp\\' => array($vendorDir . '/guzzlehttp/guzzle/src'), - 'Google\\Auth\\' => array($vendorDir . '/google/auth/src'), + 'InstituteWeb\\ComposerScripts\\' => array($vendorDir . '/instituteweb/composer-scripts/src'), 'Firebase\\JWT\\' => array($vendorDir . '/firebase/php-jwt/src'), 'Composer\\Installers\\' => array($vendorDir . '/composer/installers/src/Composer/Installers'), ); diff --git a/wp-content/plugins/wp-mail-smtp/vendor/composer/autoload_real.php b/wp-content/plugins/wp-mail-smtp/vendor/composer/autoload_real.php index f57c0ae..a6672d2 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/composer/autoload_real.php +++ b/wp-content/plugins/wp-mail-smtp/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInitecc5aee58cbc7fae6cdc39ef5e9f1f73 +class ComposerAutoloaderInit4505233c9771255f4bcd3288908993ad { private static $loader; @@ -22,15 +22,15 @@ class ComposerAutoloaderInitecc5aee58cbc7fae6cdc39ef5e9f1f73 return self::$loader; } - spl_autoload_register(array('ComposerAutoloaderInitecc5aee58cbc7fae6cdc39ef5e9f1f73', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInit4505233c9771255f4bcd3288908993ad', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(); - spl_autoload_unregister(array('ComposerAutoloaderInitecc5aee58cbc7fae6cdc39ef5e9f1f73', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInit4505233c9771255f4bcd3288908993ad', 'loadClassLoader')); $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); if ($useStaticLoader) { require_once __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInitecc5aee58cbc7fae6cdc39ef5e9f1f73::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInit4505233c9771255f4bcd3288908993ad::getInitializer($loader)); } else { $map = require __DIR__ . '/autoload_namespaces.php'; foreach ($map as $namespace => $path) { @@ -51,19 +51,19 @@ class ComposerAutoloaderInitecc5aee58cbc7fae6cdc39ef5e9f1f73 $loader->register(true); if ($useStaticLoader) { - $includeFiles = Composer\Autoload\ComposerStaticInitecc5aee58cbc7fae6cdc39ef5e9f1f73::$files; + $includeFiles = Composer\Autoload\ComposerStaticInit4505233c9771255f4bcd3288908993ad::$files; } else { $includeFiles = require __DIR__ . '/autoload_files.php'; } foreach ($includeFiles as $fileIdentifier => $file) { - composerRequireecc5aee58cbc7fae6cdc39ef5e9f1f73($fileIdentifier, $file); + composerRequire4505233c9771255f4bcd3288908993ad($fileIdentifier, $file); } return $loader; } } -function composerRequireecc5aee58cbc7fae6cdc39ef5e9f1f73($fileIdentifier, $file) +function composerRequire4505233c9771255f4bcd3288908993ad($fileIdentifier, $file) { if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { require $file; diff --git a/wp-content/plugins/wp-mail-smtp/vendor/composer/autoload_static.php b/wp-content/plugins/wp-mail-smtp/vendor/composer/autoload_static.php index 4b924d9..eca5ec8 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/composer/autoload_static.php +++ b/wp-content/plugins/wp-mail-smtp/vendor/composer/autoload_static.php @@ -4,52 +4,28 @@ namespace Composer\Autoload; -class ComposerStaticInitecc5aee58cbc7fae6cdc39ef5e9f1f73 +class ComposerStaticInit4505233c9771255f4bcd3288908993ad { public static $files = array ( '7b11c4dc42b3b3023073cb14e519683c' => __DIR__ . '/..' . '/ralouphie/getallheaders/src/getallheaders.php', - 'a0edc8309cc5e1d60e3047b5df6b7052' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/functions_include.php', - 'c964ee0ededf28c96ebd9db5099ef910' => __DIR__ . '/..' . '/guzzlehttp/promises/src/functions_include.php', - '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php', - '25072dd6e2470089de65ae7bf11d3109' => __DIR__ . '/..' . '/symfony/polyfill-php72/bootstrap.php', - 'f598d06aa772fa33d905e87be6398fb1' => __DIR__ . '/..' . '/symfony/polyfill-intl-idn/bootstrap.php', - '37a3dc5111fe8f707ab4c132ef1dbc62' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/functions_include.php', - 'decc78cc4436b1292c6c0d151b19445c' => __DIR__ . '/..' . '/phpseclib/phpseclib/phpseclib/bootstrap.php', + '840b8504e40a63aaa679ca25c0b2a1cc' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/psr7/src/functions_include.php', + 'e3e111437f37e10e6bcab5eacc08fb6f' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/promises/src/functions_include.php', + '2bb094e40611cb5eccea789f32aff634' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/polyfill-mbstring/bootstrap.php', + '1fd84176824b5a44e7bd8da85eca7e14' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/polyfill-php72/bootstrap.php', + '606299e0d90ec13f1e6b53164b8387df' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/polyfill-intl-idn/bootstrap.php', + '6fe0d6ea1deb6acc74bbe64573a83e1c' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/functions_include.php', + '3ed0dcebed83aa26dfe4c549d730cf2e' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/bootstrap.php', ); public static $prefixLengthsPsr4 = array ( - 'p' => - array ( - 'phpseclib\\' => 10, - ), 'W' => array ( 'Wikimedia\\Composer\\' => 19, 'WPMailSMTP\\' => 11, ), - 'S' => + 'I' => array ( - 'Symfony\\Polyfill\\Php72\\' => 23, - 'Symfony\\Polyfill\\Mbstring\\' => 26, - 'Symfony\\Polyfill\\Intl\\Idn\\' => 26, - 'SendinBlue\\Client\\' => 18, - ), - 'P' => - array ( - 'Psr\\Log\\' => 8, - 'Psr\\Http\\Message\\' => 17, - 'Psr\\Cache\\' => 10, - ), - 'M' => - array ( - 'Monolog\\' => 8, - ), - 'G' => - array ( - 'GuzzleHttp\\Psr7\\' => 16, - 'GuzzleHttp\\Promise\\' => 19, - 'GuzzleHttp\\' => 11, - 'Google\\Auth\\' => 12, + 'InstituteWeb\\ComposerScripts\\' => 29, ), 'F' => array ( @@ -62,10 +38,6 @@ class ComposerStaticInitecc5aee58cbc7fae6cdc39ef5e9f1f73 ); public static $prefixDirsPsr4 = array ( - 'phpseclib\\' => - array ( - 0 => __DIR__ . '/..' . '/phpseclib/phpseclib/phpseclib', - ), 'Wikimedia\\Composer\\' => array ( 0 => __DIR__ . '/..' . '/wikimedia/composer-merge-plugin/src', @@ -74,53 +46,9 @@ class ComposerStaticInitecc5aee58cbc7fae6cdc39ef5e9f1f73 array ( 0 => __DIR__ . '/../..' . '/src', ), - 'Symfony\\Polyfill\\Php72\\' => + 'InstituteWeb\\ComposerScripts\\' => array ( - 0 => __DIR__ . '/..' . '/symfony/polyfill-php72', - ), - 'Symfony\\Polyfill\\Mbstring\\' => - array ( - 0 => __DIR__ . '/..' . '/symfony/polyfill-mbstring', - ), - 'Symfony\\Polyfill\\Intl\\Idn\\' => - array ( - 0 => __DIR__ . '/..' . '/symfony/polyfill-intl-idn', - ), - 'SendinBlue\\Client\\' => - array ( - 0 => __DIR__ . '/..' . '/sendinblue/api-v3-sdk/lib', - ), - 'Psr\\Log\\' => - array ( - 0 => __DIR__ . '/..' . '/psr/log/Psr/Log', - ), - 'Psr\\Http\\Message\\' => - array ( - 0 => __DIR__ . '/..' . '/psr/http-message/src', - ), - 'Psr\\Cache\\' => - array ( - 0 => __DIR__ . '/..' . '/psr/cache/src', - ), - 'Monolog\\' => - array ( - 0 => __DIR__ . '/..' . '/monolog/monolog/src/Monolog', - ), - 'GuzzleHttp\\Psr7\\' => - array ( - 0 => __DIR__ . '/..' . '/guzzlehttp/psr7/src', - ), - 'GuzzleHttp\\Promise\\' => - array ( - 0 => __DIR__ . '/..' . '/guzzlehttp/promises/src', - ), - 'GuzzleHttp\\' => - array ( - 0 => __DIR__ . '/..' . '/guzzlehttp/guzzle/src', - ), - 'Google\\Auth\\' => - array ( - 0 => __DIR__ . '/..' . '/google/auth/src', + 0 => __DIR__ . '/..' . '/instituteweb/composer-scripts/src', ), 'Firebase\\JWT\\' => array ( @@ -132,32 +60,535 @@ class ComposerStaticInitecc5aee58cbc7fae6cdc39ef5e9f1f73 ), ); - public static $prefixesPsr0 = array ( - 'G' => - array ( - 'Google_Service_' => - array ( - 0 => __DIR__ . '/..' . '/google/apiclient-services/src', - ), - 'Google_' => - array ( - 0 => __DIR__ . '/..' . '/google/apiclient/src', - ), - ), - ); - public static $classMap = array ( - 'Google_Service_Exception' => __DIR__ . '/..' . '/google/apiclient/src/Google/Service/Exception.php', - 'Google_Service_Resource' => __DIR__ . '/..' . '/google/apiclient/src/Google/Service/Resource.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\AccessToken' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/AccessToken.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\ApplicationDefaultCredentials' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/ApplicationDefaultCredentials.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\CacheTrait' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/CacheTrait.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\Cache\\InvalidArgumentException' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/Cache/InvalidArgumentException.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\Cache\\Item' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/Cache/Item.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\Cache\\MemoryCacheItemPool' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/Cache/MemoryCacheItemPool.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\Cache\\SysVCacheItemPool' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/Cache/SysVCacheItemPool.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\CredentialsLoader' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/CredentialsLoader.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\Credentials\\AppIdentityCredentials' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/Credentials/AppIdentityCredentials.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\Credentials\\GCECredentials' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/Credentials/GCECredentials.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\Credentials\\IAMCredentials' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/Credentials/IAMCredentials.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\Credentials\\InsecureCredentials' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/Credentials/InsecureCredentials.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\Credentials\\ServiceAccountCredentials' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/Credentials/ServiceAccountCredentials.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\Credentials\\ServiceAccountJwtAccessCredentials' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/Credentials/ServiceAccountJwtAccessCredentials.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\Credentials\\UserRefreshCredentials' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/Credentials/UserRefreshCredentials.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\FetchAuthTokenCache' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/FetchAuthTokenCache.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\FetchAuthTokenInterface' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/FetchAuthTokenInterface.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\GCECache' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/GCECache.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\GetQuotaProjectInterface' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/GetQuotaProjectInterface.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\HttpHandler\\Guzzle5HttpHandler' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/HttpHandler/Guzzle5HttpHandler.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\HttpHandler\\Guzzle6HttpHandler' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/HttpHandler/Guzzle6HttpHandler.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\HttpHandler\\Guzzle7HttpHandler' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/HttpHandler/Guzzle7HttpHandler.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\HttpHandler\\HttpClientCache' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/HttpHandler/HttpClientCache.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\HttpHandler\\HttpHandlerFactory' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/HttpHandler/HttpHandlerFactory.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\Iam' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/Iam.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\Middleware\\AuthTokenMiddleware' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/Middleware/AuthTokenMiddleware.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\Middleware\\ScopedAccessTokenMiddleware' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/Middleware/ScopedAccessTokenMiddleware.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\Middleware\\SimpleMiddleware' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/Middleware/SimpleMiddleware.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\OAuth2' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/OAuth2.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\ProjectIdProviderInterface' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/ProjectIdProviderInterface.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\ServiceAccountSignerTrait' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/ServiceAccountSignerTrait.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\SignBlobInterface' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/SignBlobInterface.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\Subscriber\\AuthTokenSubscriber' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/Subscriber/AuthTokenSubscriber.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\Subscriber\\ScopedAccessTokenSubscriber' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/Subscriber/ScopedAccessTokenSubscriber.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\Subscriber\\SimpleSubscriber' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/Subscriber/SimpleSubscriber.php', + 'WPMailSMTP\\Vendor\\Google\\Auth\\UpdateMetadataInterface' => __DIR__ . '/../..' . '/vendor_prefixed/google/auth/src/UpdateMetadataInterface.php', + 'WPMailSMTP\\Vendor\\Google_AccessToken_Revoke' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient/src/Google/AccessToken/Revoke.php', + 'WPMailSMTP\\Vendor\\Google_AccessToken_Verify' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient/src/Google/AccessToken/Verify.php', + 'WPMailSMTP\\Vendor\\Google_AuthHandler_AuthHandlerFactory' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient/src/Google/AuthHandler/AuthHandlerFactory.php', + 'WPMailSMTP\\Vendor\\Google_AuthHandler_Guzzle5AuthHandler' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient/src/Google/AuthHandler/Guzzle5AuthHandler.php', + 'WPMailSMTP\\Vendor\\Google_AuthHandler_Guzzle6AuthHandler' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient/src/Google/AuthHandler/Guzzle6AuthHandler.php', + 'WPMailSMTP\\Vendor\\Google_AuthHandler_Guzzle7AuthHandler' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient/src/Google/AuthHandler/Guzzle7AuthHandler.php', + 'WPMailSMTP\\Vendor\\Google_Client' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient/src/Google/Client.php', + 'WPMailSMTP\\Vendor\\Google_Collection' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient/src/Google/Collection.php', + 'WPMailSMTP\\Vendor\\Google_Exception' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient/src/Google/Exception.php', + 'WPMailSMTP\\Vendor\\Google_Http_Batch' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient/src/Google/Http/Batch.php', + 'WPMailSMTP\\Vendor\\Google_Http_MediaFileUpload' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient/src/Google/Http/MediaFileUpload.php', + 'WPMailSMTP\\Vendor\\Google_Http_REST' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient/src/Google/Http/REST.php', + 'WPMailSMTP\\Vendor\\Google_Model' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient/src/Google/Model.php', + 'WPMailSMTP\\Vendor\\Google_Service' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient/src/Google/Service.php', + 'WPMailSMTP\\Vendor\\Google_Service_Exception' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient/src/Google/Service/Exception.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_AutoForwarding' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/AutoForwarding.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_BatchDeleteMessagesRequest' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/BatchDeleteMessagesRequest.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_BatchModifyMessagesRequest' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/BatchModifyMessagesRequest.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_Delegate' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Delegate.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_Draft' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Draft.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_Filter' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Filter.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_FilterAction' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/FilterAction.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_FilterCriteria' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/FilterCriteria.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_ForwardingAddress' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ForwardingAddress.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_History' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/History.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_HistoryLabelAdded' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/HistoryLabelAdded.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_HistoryLabelRemoved' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/HistoryLabelRemoved.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_HistoryMessageAdded' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/HistoryMessageAdded.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_HistoryMessageDeleted' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/HistoryMessageDeleted.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_ImapSettings' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ImapSettings.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_Label' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Label.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_LabelColor' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/LabelColor.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_LanguageSettings' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/LanguageSettings.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_ListDelegatesResponse' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListDelegatesResponse.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_ListDraftsResponse' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListDraftsResponse.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_ListFiltersResponse' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListFiltersResponse.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_ListForwardingAddressesResponse' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListForwardingAddressesResponse.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_ListHistoryResponse' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListHistoryResponse.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_ListLabelsResponse' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListLabelsResponse.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_ListMessagesResponse' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListMessagesResponse.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_ListSendAsResponse' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListSendAsResponse.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_ListSmimeInfoResponse' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListSmimeInfoResponse.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_ListThreadsResponse' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListThreadsResponse.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_Message' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Message.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_MessagePart' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/MessagePart.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_MessagePartBody' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/MessagePartBody.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_MessagePartHeader' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/MessagePartHeader.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_ModifyMessageRequest' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ModifyMessageRequest.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_ModifyThreadRequest' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ModifyThreadRequest.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_PopSettings' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/PopSettings.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_Profile' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Profile.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_Users' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/Users.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_UsersDrafts' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersDrafts.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_UsersHistory' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersHistory.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_UsersLabels' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersLabels.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_UsersMessages' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersMessages.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_UsersMessagesAttachments' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersMessagesAttachments.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_UsersSettings' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettings.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_UsersSettingsDelegates' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsDelegates.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_UsersSettingsFilters' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsFilters.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_UsersSettingsForwardingAddresses' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsForwardingAddresses.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_UsersSettingsSendAs' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsSendAs.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_UsersSettingsSendAsSmimeInfo' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsSendAsSmimeInfo.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_Resource_UsersThreads' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersThreads.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_SendAs' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/SendAs.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_SmimeInfo' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/SmimeInfo.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_SmtpMsa' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/SmtpMsa.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_Thread' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Thread.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_VacationSettings' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/VacationSettings.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_WatchRequest' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/WatchRequest.php', + 'WPMailSMTP\\Vendor\\Google_Service_Gmail_WatchResponse' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/WatchResponse.php', + 'WPMailSMTP\\Vendor\\Google_Service_Resource' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient/src/Google/Service/Resource.php', + 'WPMailSMTP\\Vendor\\Google_Task_Composer' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient/src/Google/Task/Composer.php', + 'WPMailSMTP\\Vendor\\Google_Task_Exception' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient/src/Google/Task/Exception.php', + 'WPMailSMTP\\Vendor\\Google_Task_Retryable' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient/src/Google/Task/Retryable.php', + 'WPMailSMTP\\Vendor\\Google_Task_Runner' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient/src/Google/Task/Runner.php', + 'WPMailSMTP\\Vendor\\Google_Utils_UriTemplate' => __DIR__ . '/../..' . '/vendor_prefixed/google/apiclient/src/Google/Utils/UriTemplate.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Client' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Client.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\ClientInterface' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/ClientInterface.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Cookie\\CookieJar' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Cookie/CookieJar.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Cookie\\CookieJarInterface' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Cookie\\FileCookieJar' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Cookie\\SessionCookieJar' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Cookie\\SetCookie' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Cookie/SetCookie.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Exception\\BadResponseException' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Exception/BadResponseException.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Exception\\ClientException' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Exception/ClientException.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Exception\\ConnectException' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Exception/ConnectException.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Exception\\GuzzleException' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Exception/GuzzleException.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Exception\\InvalidArgumentException' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Exception/InvalidArgumentException.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Exception\\RequestException' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Exception/RequestException.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Exception\\SeekException' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Exception/SeekException.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Exception\\ServerException' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Exception/ServerException.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Exception\\TooManyRedirectsException' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Exception/TooManyRedirectsException.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Exception\\TransferException' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Exception/TransferException.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\HandlerStack' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/HandlerStack.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Handler\\CurlFactory' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Handler/CurlFactory.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Handler\\CurlFactoryInterface' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Handler\\CurlHandler' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Handler/CurlHandler.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Handler\\CurlMultiHandler' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Handler\\EasyHandle' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Handler/EasyHandle.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Handler\\MockHandler' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Handler/MockHandler.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Handler\\Proxy' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Handler/Proxy.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Handler\\StreamHandler' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Handler/StreamHandler.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\MessageFormatter' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/MessageFormatter.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Middleware' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Middleware.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Pool' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Pool.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\PrepareBodyMiddleware' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\AggregateException' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/promises/src/AggregateException.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\CancellationException' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/promises/src/CancellationException.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\Coroutine' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/promises/src/Coroutine.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\EachPromise' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/promises/src/EachPromise.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\FulfilledPromise' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/promises/src/FulfilledPromise.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\Promise' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/promises/src/Promise.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\PromiseInterface' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/promises/src/PromiseInterface.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\PromisorInterface' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/promises/src/PromisorInterface.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\RejectedPromise' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/promises/src/RejectedPromise.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\RejectionException' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/promises/src/RejectionException.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\TaskQueue' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/promises/src/TaskQueue.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\TaskQueueInterface' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/promises/src/TaskQueueInterface.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\AppendStream' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/psr7/src/AppendStream.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\BufferStream' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/psr7/src/BufferStream.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\CachingStream' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/psr7/src/CachingStream.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\DroppingStream' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/psr7/src/DroppingStream.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\FnStream' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/psr7/src/FnStream.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\InflateStream' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/psr7/src/InflateStream.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\LazyOpenStream' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/psr7/src/LazyOpenStream.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\LimitStream' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/psr7/src/LimitStream.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\MessageTrait' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/psr7/src/MessageTrait.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\MultipartStream' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/psr7/src/MultipartStream.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\NoSeekStream' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/psr7/src/NoSeekStream.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\PumpStream' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/psr7/src/PumpStream.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\Request' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/psr7/src/Request.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\Response' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/psr7/src/Response.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\Rfc7230' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/psr7/src/Rfc7230.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\ServerRequest' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/psr7/src/ServerRequest.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\Stream' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/psr7/src/Stream.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\StreamDecoratorTrait' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/psr7/src/StreamDecoratorTrait.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\StreamWrapper' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/psr7/src/StreamWrapper.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\UploadedFile' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/psr7/src/UploadedFile.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\Uri' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/psr7/src/Uri.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\UriNormalizer' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/psr7/src/UriNormalizer.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Psr7\\UriResolver' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/psr7/src/UriResolver.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\RedirectMiddleware' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/RedirectMiddleware.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\RequestOptions' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/RequestOptions.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\RetryMiddleware' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/RetryMiddleware.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\TransferStats' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/TransferStats.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\UriTemplate' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/UriTemplate.php', + 'WPMailSMTP\\Vendor\\GuzzleHttp\\Utils' => __DIR__ . '/../..' . '/vendor_prefixed/guzzlehttp/guzzle/src/Utils.php', + 'WPMailSMTP\\Vendor\\Monolog\\ErrorHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/ErrorHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Formatter\\ChromePHPFormatter' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/ChromePHPFormatter.php', + 'WPMailSMTP\\Vendor\\Monolog\\Formatter\\ElasticaFormatter' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/ElasticaFormatter.php', + 'WPMailSMTP\\Vendor\\Monolog\\Formatter\\FlowdockFormatter' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/FlowdockFormatter.php', + 'WPMailSMTP\\Vendor\\Monolog\\Formatter\\FluentdFormatter' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php', + 'WPMailSMTP\\Vendor\\Monolog\\Formatter\\FormatterInterface' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/FormatterInterface.php', + 'WPMailSMTP\\Vendor\\Monolog\\Formatter\\GelfMessageFormatter' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/GelfMessageFormatter.php', + 'WPMailSMTP\\Vendor\\Monolog\\Formatter\\HtmlFormatter' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/HtmlFormatter.php', + 'WPMailSMTP\\Vendor\\Monolog\\Formatter\\JsonFormatter' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php', + 'WPMailSMTP\\Vendor\\Monolog\\Formatter\\LineFormatter' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/LineFormatter.php', + 'WPMailSMTP\\Vendor\\Monolog\\Formatter\\LogglyFormatter' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/LogglyFormatter.php', + 'WPMailSMTP\\Vendor\\Monolog\\Formatter\\LogstashFormatter' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/LogstashFormatter.php', + 'WPMailSMTP\\Vendor\\Monolog\\Formatter\\MongoDBFormatter' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/MongoDBFormatter.php', + 'WPMailSMTP\\Vendor\\Monolog\\Formatter\\NormalizerFormatter' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php', + 'WPMailSMTP\\Vendor\\Monolog\\Formatter\\ScalarFormatter' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/ScalarFormatter.php', + 'WPMailSMTP\\Vendor\\Monolog\\Formatter\\WildfireFormatter' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/WildfireFormatter.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\AbstractHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/AbstractHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\AbstractProcessingHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\AbstractSyslogHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/AbstractSyslogHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\AmqpHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/AmqpHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\BrowserConsoleHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/BrowserConsoleHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\BufferHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/BufferHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\ChromePHPHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/ChromePHPHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\CouchDBHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/CouchDBHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\CubeHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/CubeHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\Curl\\Util' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/Curl/Util.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\DeduplicationHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/DeduplicationHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\DoctrineCouchDBHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/DoctrineCouchDBHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\DynamoDbHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/DynamoDbHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\ElasticSearchHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/ElasticSearchHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\ErrorLogHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/ErrorLogHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\FilterHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FilterHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\FingersCrossedHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\FingersCrossed\\ActivationStrategyInterface' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FingersCrossed/ActivationStrategyInterface.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\FingersCrossed\\ChannelLevelActivationStrategy' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FingersCrossed/ChannelLevelActivationStrategy.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\FingersCrossed\\ErrorLevelActivationStrategy' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FingersCrossed/ErrorLevelActivationStrategy.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\FirePHPHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FirePHPHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\FleepHookHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FleepHookHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\FlowdockHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FlowdockHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\FormattableHandlerInterface' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FormattableHandlerInterface.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\FormattableHandlerTrait' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FormattableHandlerTrait.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\GelfHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/GelfHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\GroupHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/GroupHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\HandlerInterface' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/HandlerInterface.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\HandlerWrapper' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/HandlerWrapper.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\HipChatHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/HipChatHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\IFTTTHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/IFTTTHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\InsightOpsHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/InsightOpsHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\LogEntriesHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/LogEntriesHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\LogglyHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/LogglyHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\MailHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/MailHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\MandrillHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/MandrillHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\MissingExtensionException' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/MissingExtensionException.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\MongoDBHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/MongoDBHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\NativeMailerHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/NativeMailerHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\NewRelicHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\NullHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/NullHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\PHPConsoleHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/PHPConsoleHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\ProcessableHandlerInterface' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/ProcessableHandlerInterface.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\ProcessableHandlerTrait' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/ProcessableHandlerTrait.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\PsrHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/PsrHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\PushoverHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/PushoverHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\RavenHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/RavenHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\RedisHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/RedisHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\RollbarHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/RollbarHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\RotatingFileHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\SamplingHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SamplingHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\SlackHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SlackHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\SlackWebhookHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\Slack\\SlackRecord' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/Slack/SlackRecord.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\SlackbotHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SlackbotHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\SocketHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SocketHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\StreamHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/StreamHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\SwiftMailerHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SwiftMailerHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\SyslogHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SyslogHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\SyslogUdpHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SyslogUdpHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\SyslogUdp\\UdpSocket' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SyslogUdp/UdpSocket.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\TestHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/TestHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\WhatFailureGroupHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/WhatFailureGroupHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Handler\\ZendMonitorHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Handler/ZendMonitorHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Logger' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Logger.php', + 'WPMailSMTP\\Vendor\\Monolog\\Processor\\GitProcessor' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Processor/GitProcessor.php', + 'WPMailSMTP\\Vendor\\Monolog\\Processor\\IntrospectionProcessor' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Processor/IntrospectionProcessor.php', + 'WPMailSMTP\\Vendor\\Monolog\\Processor\\MemoryPeakUsageProcessor' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Processor/MemoryPeakUsageProcessor.php', + 'WPMailSMTP\\Vendor\\Monolog\\Processor\\MemoryProcessor' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Processor/MemoryProcessor.php', + 'WPMailSMTP\\Vendor\\Monolog\\Processor\\MemoryUsageProcessor' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Processor/MemoryUsageProcessor.php', + 'WPMailSMTP\\Vendor\\Monolog\\Processor\\MercurialProcessor' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Processor/MercurialProcessor.php', + 'WPMailSMTP\\Vendor\\Monolog\\Processor\\ProcessIdProcessor' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Processor/ProcessIdProcessor.php', + 'WPMailSMTP\\Vendor\\Monolog\\Processor\\ProcessorInterface' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Processor/ProcessorInterface.php', + 'WPMailSMTP\\Vendor\\Monolog\\Processor\\PsrLogMessageProcessor' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.php', + 'WPMailSMTP\\Vendor\\Monolog\\Processor\\TagProcessor' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Processor/TagProcessor.php', + 'WPMailSMTP\\Vendor\\Monolog\\Processor\\UidProcessor' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Processor/UidProcessor.php', + 'WPMailSMTP\\Vendor\\Monolog\\Processor\\WebProcessor' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Processor/WebProcessor.php', + 'WPMailSMTP\\Vendor\\Monolog\\Registry' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Registry.php', + 'WPMailSMTP\\Vendor\\Monolog\\ResettableInterface' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/ResettableInterface.php', + 'WPMailSMTP\\Vendor\\Monolog\\SignalHandler' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/SignalHandler.php', + 'WPMailSMTP\\Vendor\\Monolog\\Utils' => __DIR__ . '/../..' . '/vendor_prefixed/monolog/monolog/src/Monolog/Utils.php', + 'WPMailSMTP\\Vendor\\Psr\\Cache\\CacheException' => __DIR__ . '/../..' . '/vendor_prefixed/psr/cache/src/CacheException.php', + 'WPMailSMTP\\Vendor\\Psr\\Cache\\CacheItemInterface' => __DIR__ . '/../..' . '/vendor_prefixed/psr/cache/src/CacheItemInterface.php', + 'WPMailSMTP\\Vendor\\Psr\\Cache\\CacheItemPoolInterface' => __DIR__ . '/../..' . '/vendor_prefixed/psr/cache/src/CacheItemPoolInterface.php', + 'WPMailSMTP\\Vendor\\Psr\\Cache\\InvalidArgumentException' => __DIR__ . '/../..' . '/vendor_prefixed/psr/cache/src/InvalidArgumentException.php', + 'WPMailSMTP\\Vendor\\Psr\\Http\\Message\\MessageInterface' => __DIR__ . '/../..' . '/vendor_prefixed/psr/http-message/src/MessageInterface.php', + 'WPMailSMTP\\Vendor\\Psr\\Http\\Message\\RequestInterface' => __DIR__ . '/../..' . '/vendor_prefixed/psr/http-message/src/RequestInterface.php', + 'WPMailSMTP\\Vendor\\Psr\\Http\\Message\\ResponseInterface' => __DIR__ . '/../..' . '/vendor_prefixed/psr/http-message/src/ResponseInterface.php', + 'WPMailSMTP\\Vendor\\Psr\\Http\\Message\\ServerRequestInterface' => __DIR__ . '/../..' . '/vendor_prefixed/psr/http-message/src/ServerRequestInterface.php', + 'WPMailSMTP\\Vendor\\Psr\\Http\\Message\\StreamInterface' => __DIR__ . '/../..' . '/vendor_prefixed/psr/http-message/src/StreamInterface.php', + 'WPMailSMTP\\Vendor\\Psr\\Http\\Message\\UploadedFileInterface' => __DIR__ . '/../..' . '/vendor_prefixed/psr/http-message/src/UploadedFileInterface.php', + 'WPMailSMTP\\Vendor\\Psr\\Http\\Message\\UriInterface' => __DIR__ . '/../..' . '/vendor_prefixed/psr/http-message/src/UriInterface.php', + 'WPMailSMTP\\Vendor\\Psr\\Log\\AbstractLogger' => __DIR__ . '/../..' . '/vendor_prefixed/psr/log/Psr/Log/AbstractLogger.php', + 'WPMailSMTP\\Vendor\\Psr\\Log\\InvalidArgumentException' => __DIR__ . '/../..' . '/vendor_prefixed/psr/log/Psr/Log/InvalidArgumentException.php', + 'WPMailSMTP\\Vendor\\Psr\\Log\\LogLevel' => __DIR__ . '/../..' . '/vendor_prefixed/psr/log/Psr/Log/LogLevel.php', + 'WPMailSMTP\\Vendor\\Psr\\Log\\LoggerAwareInterface' => __DIR__ . '/../..' . '/vendor_prefixed/psr/log/Psr/Log/LoggerAwareInterface.php', + 'WPMailSMTP\\Vendor\\Psr\\Log\\LoggerAwareTrait' => __DIR__ . '/../..' . '/vendor_prefixed/psr/log/Psr/Log/LoggerAwareTrait.php', + 'WPMailSMTP\\Vendor\\Psr\\Log\\LoggerInterface' => __DIR__ . '/../..' . '/vendor_prefixed/psr/log/Psr/Log/LoggerInterface.php', + 'WPMailSMTP\\Vendor\\Psr\\Log\\LoggerTrait' => __DIR__ . '/../..' . '/vendor_prefixed/psr/log/Psr/Log/LoggerTrait.php', + 'WPMailSMTP\\Vendor\\Psr\\Log\\NullLogger' => __DIR__ . '/../..' . '/vendor_prefixed/psr/log/Psr/Log/NullLogger.php', + 'WPMailSMTP\\Vendor\\Psr\\Log\\Test\\DummyTest' => __DIR__ . '/../..' . '/vendor_prefixed/psr/log/Psr/Log/Test/DummyTest.php', + 'WPMailSMTP\\Vendor\\Psr\\Log\\Test\\LoggerInterfaceTest' => __DIR__ . '/../..' . '/vendor_prefixed/psr/log/Psr/Log/Test/LoggerInterfaceTest.php', + 'WPMailSMTP\\Vendor\\Psr\\Log\\Test\\TestLogger' => __DIR__ . '/../..' . '/vendor_prefixed/psr/log/Psr/Log/Test/TestLogger.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\ApiException' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/ApiException.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\AccountApi' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/AccountApi.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\AttributesApi' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/AttributesApi.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\ContactsApi' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/ContactsApi.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\EmailCampaignsApi' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/EmailCampaignsApi.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\FoldersApi' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/FoldersApi.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\ListsApi' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/ListsApi.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\ProcessApi' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/ProcessApi.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\ResellerApi' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/ResellerApi.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\SMSCampaignsApi' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/SMSCampaignsApi.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\SMTPApi' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/SMTPApi.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\SendersApi' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/SendersApi.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\TransactionalSMSApi' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/TransactionalSMSApi.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Api\\WebhooksApi' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/WebhooksApi.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Configuration' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Configuration.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\HeaderSelector' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/HeaderSelector.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\AbTestCampaignResult' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/AbTestCampaignResult.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\AddChildDomain' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/AddChildDomain.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\AddContactToList' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/AddContactToList.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\AddCredits' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/AddCredits.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateAttribute' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateAttribute.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateAttributeEnumeration' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateAttributeEnumeration.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateChild' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateChild.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateContact' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateContact.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateDoiContact' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateDoiContact.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateEmailCampaign' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateEmailCampaign.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateEmailCampaignRecipients' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateEmailCampaignRecipients.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateEmailCampaignSender' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateEmailCampaignSender.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateList' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateList.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateModel' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateModel.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateReseller' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateReseller.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateSender' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSender.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateSenderIps' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSenderIps.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateSenderModel' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSenderModel.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateSmsCampaign' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSmsCampaign.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateSmsCampaignRecipients' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSmsCampaignRecipients.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateSmtpEmail' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSmtpEmail.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateSmtpTemplate' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSmtpTemplate.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateSmtpTemplateSender' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSmtpTemplateSender.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateUpdateContactModel' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateUpdateContactModel.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateUpdateFolder' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateUpdateFolder.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateWebhook' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateWebhook.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreatedProcessId' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreatedProcessId.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\DeleteHardbounces' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/DeleteHardbounces.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\EmailExportRecipients' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/EmailExportRecipients.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/ErrorModel.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAccount' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAccount.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAccountMarketingAutomation' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAccountMarketingAutomation.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAccountPlan' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAccountPlan.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAccountRelay' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAccountRelay.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAccountRelayData' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAccountRelayData.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAggregatedReport' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAggregatedReport.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAttributes' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAttributes.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAttributesAttributes' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAttributesAttributes.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAttributesEnumeration' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAttributesEnumeration.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetCampaignOverview' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetCampaignOverview.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetCampaignRecipients' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetCampaignRecipients.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetCampaignStats' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetCampaignStats.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildAccountCreationStatus' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildAccountCreationStatus.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildDomain' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildDomain.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildDomains' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildDomains.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildInfo' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildInfo.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildInfoApiKeys' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildInfoApiKeys.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildInfoApiKeysV2' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildInfoApiKeysV2.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildInfoApiKeysV3' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildInfoApiKeysV3.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildInfoCredits' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildInfoCredits.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildInfoStatistics' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildInfoStatistics.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildrenList' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildrenList.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetClient' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetClient.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetContactCampaignStats' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStats.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetContactCampaignStatsClicked' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsClicked.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetContactCampaignStatsOpened' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsOpened.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetContactCampaignStatsTransacAttributes' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsTransacAttributes.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetContactCampaignStatsUnsubscriptions' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsUnsubscriptions.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetContactDetails' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContactDetails.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetContacts' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContacts.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetDeviceBrowserStats' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetDeviceBrowserStats.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetEmailCampaign' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetEmailCampaign.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetEmailCampaigns' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetEmailCampaigns.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetEmailEventReport' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetEmailEventReport.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetEmailEventReportEvents' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetEmailEventReportEvents.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedCampaignOverview' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedCampaignOverview.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedCampaignOverviewSender' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedCampaignOverviewSender.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedCampaignStats' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedCampaignStats.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedClient' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedClient.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedClientAddress' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedClientAddress.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetails' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetails.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatistics' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatistics.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatisticsClicked' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsClicked.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatisticsLinks' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsLinks.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatisticsMessagesSent' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsMessagesSent.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatisticsOpened' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsOpened.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatisticsUnsubscriptions' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptions.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedList' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedList.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedListCampaignStats' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedListCampaignStats.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetFolder' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetFolder.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetFolderLists' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetFolderLists.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetFolders' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetFolders.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetIp' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetIp.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetIpFromSender' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetIpFromSender.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetIps' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetIps.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetIpsFromSender' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetIpsFromSender.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetList' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetList.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetLists' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetLists.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetProcess' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetProcess.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetProcesses' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetProcesses.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetReports' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetReports.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetReportsReports' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetReportsReports.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSendersList' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSendersList.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSendersListIps' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSendersListIps.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSendersListSenders' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSendersListSenders.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSharedTemplateUrl' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSharedTemplateUrl.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmsCampaign' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaign.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmsCampaignOverview' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaignOverview.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmsCampaignStats' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaignStats.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmsCampaigns' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaigns.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmsEventReport' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmsEventReport.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmsEventReportEvents' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmsEventReportEvents.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmtpTemplateOverview' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmtpTemplateOverview.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmtpTemplateOverviewSender' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmtpTemplateOverviewSender.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmtpTemplates' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmtpTemplates.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSsoToken' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSsoToken.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetStatsByBrowser' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetStatsByBrowser.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetStatsByDevice' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetStatsByDevice.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetStatsByDomain' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetStatsByDomain.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacAggregatedSmsReport' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacAggregatedSmsReport.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacBlockedContacts' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacBlockedContacts.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacBlockedContactsContacts' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacBlockedContactsContacts.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacBlockedContactsReason' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacBlockedContactsReason.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacEmailContent' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailContent.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacEmailContentEvents' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailContentEvents.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacEmailsList' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailsList.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacEmailsListTransactionalEmails' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailsListTransactionalEmails.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacSmsReport' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacSmsReport.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacSmsReportReports' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacSmsReportReports.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetWebhook' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetWebhook.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetWebhooks' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetWebhooks.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ManageIp' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/ManageIp.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ModelInterface' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/ModelInterface.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\PostContactInfo' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/PostContactInfo.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\PostContactInfoContacts' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/PostContactInfoContacts.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\PostSendFailed' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/PostSendFailed.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\PostSendSmsTestFailed' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/PostSendSmsTestFailed.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RemainingCreditModel' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RemainingCreditModel.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RemainingCreditModelChild' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RemainingCreditModelChild.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RemainingCreditModelReseller' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RemainingCreditModelReseller.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RemoveContactFromList' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RemoveContactFromList.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RemoveCredits' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RemoveCredits.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RequestContactExport' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RequestContactExport.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RequestContactExportCustomContactFilter' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RequestContactExportCustomContactFilter.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RequestContactImport' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RequestContactImport.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RequestContactImportNewList' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RequestContactImportNewList.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RequestSMSRecipientExport' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RequestSMSRecipientExport.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendEmail' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendEmail.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendEmailAttachment' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendEmailAttachment.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendReport' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendReport.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendReportEmail' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendReportEmail.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendSms' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSms.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendSmtpEmail' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmail.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendSmtpEmailAttachment' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailAttachment.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendSmtpEmailBcc' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailBcc.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendSmtpEmailCc' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailCc.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendSmtpEmailReplyTo' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailReplyTo.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendSmtpEmailSender' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailSender.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendSmtpEmailTo' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailTo.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendTemplateEmail' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendTemplateEmail.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendTestEmail' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendTestEmail.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendTestSms' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendTestSms.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendTransacSms' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendTransacSms.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateAttribute' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateAttribute.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateAttributeEnumeration' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateAttributeEnumeration.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateCampaignStatus' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateCampaignStatus.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateChild' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateChild.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateChildAccountStatus' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateChildAccountStatus.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateChildDomain' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateChildDomain.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateContact' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateContact.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateEmailCampaign' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateEmailCampaign.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateEmailCampaignRecipients' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateEmailCampaignRecipients.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateEmailCampaignSender' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateEmailCampaignSender.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateList' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateList.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateSender' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateSender.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateSmsCampaign' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateSmsCampaign.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateSmtpTemplate' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateSmtpTemplate.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateSmtpTemplateSender' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateSmtpTemplateSender.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateWebhook' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateWebhook.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UploadImageToGallery' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UploadImageToGallery.php', + 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\ObjectSerializer' => __DIR__ . '/../..' . '/vendor_prefixed/sendinblue/api-v3-sdk/lib/ObjectSerializer.php', + 'WPMailSMTP\\Vendor\\Symfony\\Polyfill\\Intl\\Idn\\Idn' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/polyfill-intl-idn/Idn.php', + 'WPMailSMTP\\Vendor\\Symfony\\Polyfill\\Mbstring\\Mbstring' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/polyfill-mbstring/Mbstring.php', + 'WPMailSMTP\\Vendor\\Symfony\\Polyfill\\Php72\\Php72' => __DIR__ . '/../..' . '/vendor_prefixed/symfony/polyfill-php72/Php72.php', + 'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\AES' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/AES.php', + 'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\Base' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/Base.php', + 'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\Blowfish' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/Blowfish.php', + 'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\DES' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/DES.php', + 'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\Hash' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/Hash.php', + 'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\RC2' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/RC2.php', + 'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\RC4' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/RC4.php', + 'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\RSA' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/RSA.php', + 'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\Random' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/Random.php', + 'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\Rijndael' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php', + 'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\TripleDES' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/TripleDES.php', + 'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\Twofish' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php', + 'WPMailSMTP\\Vendor\\phpseclib\\File\\ANSI' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/File/ANSI.php', + 'WPMailSMTP\\Vendor\\phpseclib\\File\\ASN1' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/File/ASN1.php', + 'WPMailSMTP\\Vendor\\phpseclib\\File\\ASN1\\Element' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/File/ASN1/Element.php', + 'WPMailSMTP\\Vendor\\phpseclib\\File\\X509' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/File/X509.php', + 'WPMailSMTP\\Vendor\\phpseclib\\Math\\BigInteger' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Math/BigInteger.php', + 'WPMailSMTP\\Vendor\\phpseclib\\Net\\SCP' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Net/SCP.php', + 'WPMailSMTP\\Vendor\\phpseclib\\Net\\SFTP' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Net/SFTP.php', + 'WPMailSMTP\\Vendor\\phpseclib\\Net\\SFTP\\Stream' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Net/SFTP/Stream.php', + 'WPMailSMTP\\Vendor\\phpseclib\\Net\\SSH1' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Net/SSH1.php', + 'WPMailSMTP\\Vendor\\phpseclib\\Net\\SSH2' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/Net/SSH2.php', + 'WPMailSMTP\\Vendor\\phpseclib\\System\\SSH\\Agent' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/System/SSH/Agent.php', + 'WPMailSMTP\\Vendor\\phpseclib\\System\\SSH\\Agent\\Identity' => __DIR__ . '/../..' . '/vendor_prefixed/phpseclib/phpseclib/phpseclib/System/SSH/Agent/Identity.php', ); public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInitecc5aee58cbc7fae6cdc39ef5e9f1f73::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInitecc5aee58cbc7fae6cdc39ef5e9f1f73::$prefixDirsPsr4; - $loader->prefixesPsr0 = ComposerStaticInitecc5aee58cbc7fae6cdc39ef5e9f1f73::$prefixesPsr0; - $loader->classMap = ComposerStaticInitecc5aee58cbc7fae6cdc39ef5e9f1f73::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInit4505233c9771255f4bcd3288908993ad::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInit4505233c9771255f4bcd3288908993ad::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInit4505233c9771255f4bcd3288908993ad::$classMap; }, null, ClassLoader::class); } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail.php deleted file mode 100644 index 7d139b4..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail.php +++ /dev/null @@ -1,1232 +0,0 @@ - - * The Gmail API lets you view and manage Gmail mailbox data like threads, - * messages, and labels.

- * - *

- * For more information about this service, see the API - * Documentation - *

- * - * @author Google, Inc. - */ -class Google_Service_Gmail extends Google_Service -{ - /** Read, compose, send, and permanently delete all your email from Gmail. */ - const MAIL_GOOGLE_COM = - "https://mail.google.com/"; - /** Manage drafts and send emails when you interact with the add-on. */ - const GMAIL_ADDONS_CURRENT_ACTION_COMPOSE = - "https://www.googleapis.com/auth/gmail.addons.current.action.compose"; - /** View your email messages when you interact with the add-on. */ - const GMAIL_ADDONS_CURRENT_MESSAGE_ACTION = - "https://www.googleapis.com/auth/gmail.addons.current.message.action"; - /** View your email message metadata when the add-on is running. */ - const GMAIL_ADDONS_CURRENT_MESSAGE_METADATA = - "https://www.googleapis.com/auth/gmail.addons.current.message.metadata"; - /** View your email messages when the add-on is running. */ - const GMAIL_ADDONS_CURRENT_MESSAGE_READONLY = - "https://www.googleapis.com/auth/gmail.addons.current.message.readonly"; - /** Manage drafts and send emails. */ - const GMAIL_COMPOSE = - "https://www.googleapis.com/auth/gmail.compose"; - /** Insert mail into your mailbox. */ - const GMAIL_INSERT = - "https://www.googleapis.com/auth/gmail.insert"; - /** Manage mailbox labels. */ - const GMAIL_LABELS = - "https://www.googleapis.com/auth/gmail.labels"; - /** View your email message metadata such as labels and headers, but not the email body. */ - const GMAIL_METADATA = - "https://www.googleapis.com/auth/gmail.metadata"; - /** View and modify but not delete your email. */ - const GMAIL_MODIFY = - "https://www.googleapis.com/auth/gmail.modify"; - /** View your email messages and settings. */ - const GMAIL_READONLY = - "https://www.googleapis.com/auth/gmail.readonly"; - /** Send email on your behalf. */ - const GMAIL_SEND = - "https://www.googleapis.com/auth/gmail.send"; - /** Manage your basic mail settings. */ - const GMAIL_SETTINGS_BASIC = - "https://www.googleapis.com/auth/gmail.settings.basic"; - /** Manage your sensitive mail settings, including who can manage your mail. */ - const GMAIL_SETTINGS_SHARING = - "https://www.googleapis.com/auth/gmail.settings.sharing"; - - public $users; - public $users_drafts; - public $users_history; - public $users_labels; - public $users_messages; - public $users_messages_attachments; - public $users_settings; - public $users_settings_delegates; - public $users_settings_filters; - public $users_settings_forwardingAddresses; - public $users_settings_sendAs; - public $users_settings_sendAs_smimeInfo; - public $users_threads; - - /** - * Constructs the internal representation of the Gmail service. - * - * @param Google_Client $client The client used to deliver requests. - * @param string $rootUrl The root URL used for requests to the service. - */ - public function __construct(Google_Client $client, $rootUrl = null) - { - parent::__construct($client); - $this->rootUrl = $rootUrl ?: 'https://www.googleapis.com/'; - $this->servicePath = ''; - $this->batchPath = 'batch/gmail/v1'; - $this->version = 'v1'; - $this->serviceName = 'gmail'; - - $this->users = new Google_Service_Gmail_Resource_Users( - $this, - $this->serviceName, - 'users', - array( - 'methods' => array( - 'getProfile' => array( - 'path' => 'gmail/v1/users/{userId}/profile', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'stop' => array( - 'path' => 'gmail/v1/users/{userId}/stop', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'watch' => array( - 'path' => 'gmail/v1/users/{userId}/watch', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->users_drafts = new Google_Service_Gmail_Resource_UsersDrafts( - $this, - $this->serviceName, - 'drafts', - array( - 'methods' => array( - 'create' => array( - 'path' => 'gmail/v1/users/{userId}/drafts', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'gmail/v1/users/{userId}/drafts/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'gmail/v1/users/{userId}/drafts/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'format' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ),'list' => array( - 'path' => 'gmail/v1/users/{userId}/drafts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'q' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'includeSpamTrash' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'send' => array( - 'path' => 'gmail/v1/users/{userId}/drafts/send', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'gmail/v1/users/{userId}/drafts/{id}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->users_history = new Google_Service_Gmail_Resource_UsersHistory( - $this, - $this->serviceName, - 'history', - array( - 'methods' => array( - 'list' => array( - 'path' => 'gmail/v1/users/{userId}/history', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'historyTypes' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'startHistoryId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'labelId' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ), - ) - ) - ); - $this->users_labels = new Google_Service_Gmail_Resource_UsersLabels( - $this, - $this->serviceName, - 'labels', - array( - 'methods' => array( - 'create' => array( - 'path' => 'gmail/v1/users/{userId}/labels', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'gmail/v1/users/{userId}/labels/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'gmail/v1/users/{userId}/labels/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'gmail/v1/users/{userId}/labels', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'gmail/v1/users/{userId}/labels/{id}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'gmail/v1/users/{userId}/labels/{id}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->users_messages = new Google_Service_Gmail_Resource_UsersMessages( - $this, - $this->serviceName, - 'messages', - array( - 'methods' => array( - 'batchDelete' => array( - 'path' => 'gmail/v1/users/{userId}/messages/batchDelete', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'batchModify' => array( - 'path' => 'gmail/v1/users/{userId}/messages/batchModify', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'gmail/v1/users/{userId}/messages/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'gmail/v1/users/{userId}/messages/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'format' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'metadataHeaders' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ),'import' => array( - 'path' => 'gmail/v1/users/{userId}/messages/import', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'processForCalendar' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'deleted' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'internalDateSource' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'neverMarkSpam' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'insert' => array( - 'path' => 'gmail/v1/users/{userId}/messages', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'internalDateSource' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'deleted' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'list' => array( - 'path' => 'gmail/v1/users/{userId}/messages', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'labelIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'q' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'includeSpamTrash' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - ), - ),'modify' => array( - 'path' => 'gmail/v1/users/{userId}/messages/{id}/modify', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'send' => array( - 'path' => 'gmail/v1/users/{userId}/messages/send', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'trash' => array( - 'path' => 'gmail/v1/users/{userId}/messages/{id}/trash', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'untrash' => array( - 'path' => 'gmail/v1/users/{userId}/messages/{id}/untrash', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->users_messages_attachments = new Google_Service_Gmail_Resource_UsersMessagesAttachments( - $this, - $this->serviceName, - 'attachments', - array( - 'methods' => array( - 'get' => array( - 'path' => 'gmail/v1/users/{userId}/messages/{messageId}/attachments/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'messageId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->users_settings = new Google_Service_Gmail_Resource_UsersSettings( - $this, - $this->serviceName, - 'settings', - array( - 'methods' => array( - 'getAutoForwarding' => array( - 'path' => 'gmail/v1/users/{userId}/settings/autoForwarding', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'getImap' => array( - 'path' => 'gmail/v1/users/{userId}/settings/imap', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'getLanguage' => array( - 'path' => 'gmail/v1/users/{userId}/settings/language', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'getPop' => array( - 'path' => 'gmail/v1/users/{userId}/settings/pop', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'getVacation' => array( - 'path' => 'gmail/v1/users/{userId}/settings/vacation', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'updateAutoForwarding' => array( - 'path' => 'gmail/v1/users/{userId}/settings/autoForwarding', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'updateImap' => array( - 'path' => 'gmail/v1/users/{userId}/settings/imap', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'updateLanguage' => array( - 'path' => 'gmail/v1/users/{userId}/settings/language', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'updatePop' => array( - 'path' => 'gmail/v1/users/{userId}/settings/pop', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'updateVacation' => array( - 'path' => 'gmail/v1/users/{userId}/settings/vacation', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->users_settings_delegates = new Google_Service_Gmail_Resource_UsersSettingsDelegates( - $this, - $this->serviceName, - 'delegates', - array( - 'methods' => array( - 'create' => array( - 'path' => 'gmail/v1/users/{userId}/settings/delegates', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'gmail/v1/users/{userId}/settings/delegates/{delegateEmail}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'delegateEmail' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'gmail/v1/users/{userId}/settings/delegates/{delegateEmail}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'delegateEmail' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'gmail/v1/users/{userId}/settings/delegates', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->users_settings_filters = new Google_Service_Gmail_Resource_UsersSettingsFilters( - $this, - $this->serviceName, - 'filters', - array( - 'methods' => array( - 'create' => array( - 'path' => 'gmail/v1/users/{userId}/settings/filters', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'gmail/v1/users/{userId}/settings/filters/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'gmail/v1/users/{userId}/settings/filters/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'gmail/v1/users/{userId}/settings/filters', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->users_settings_forwardingAddresses = new Google_Service_Gmail_Resource_UsersSettingsForwardingAddresses( - $this, - $this->serviceName, - 'forwardingAddresses', - array( - 'methods' => array( - 'create' => array( - 'path' => 'gmail/v1/users/{userId}/settings/forwardingAddresses', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'gmail/v1/users/{userId}/settings/forwardingAddresses/{forwardingEmail}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'forwardingEmail' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'gmail/v1/users/{userId}/settings/forwardingAddresses/{forwardingEmail}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'forwardingEmail' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'gmail/v1/users/{userId}/settings/forwardingAddresses', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->users_settings_sendAs = new Google_Service_Gmail_Resource_UsersSettingsSendAs( - $this, - $this->serviceName, - 'sendAs', - array( - 'methods' => array( - 'create' => array( - 'path' => 'gmail/v1/users/{userId}/settings/sendAs', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sendAsEmail' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sendAsEmail' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'gmail/v1/users/{userId}/settings/sendAs', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sendAsEmail' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sendAsEmail' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'verify' => array( - 'path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/verify', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sendAsEmail' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->users_settings_sendAs_smimeInfo = new Google_Service_Gmail_Resource_UsersSettingsSendAsSmimeInfo( - $this, - $this->serviceName, - 'smimeInfo', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sendAsEmail' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sendAsEmail' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sendAsEmail' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sendAsEmail' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'setDefault' => array( - 'path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}/setDefault', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sendAsEmail' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->users_threads = new Google_Service_Gmail_Resource_UsersThreads( - $this, - $this->serviceName, - 'threads', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'gmail/v1/users/{userId}/threads/{id}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'gmail/v1/users/{userId}/threads/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'format' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'metadataHeaders' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ),'list' => array( - 'path' => 'gmail/v1/users/{userId}/threads', - 'httpMethod' => 'GET', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'includeSpamTrash' => array( - 'location' => 'query', - 'type' => 'boolean', - ), - 'q' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'labelIds' => array( - 'location' => 'query', - 'type' => 'string', - 'repeated' => true, - ), - ), - ),'modify' => array( - 'path' => 'gmail/v1/users/{userId}/threads/{id}/modify', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'trash' => array( - 'path' => 'gmail/v1/users/{userId}/threads/{id}/trash', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'untrash' => array( - 'path' => 'gmail/v1/users/{userId}/threads/{id}/untrash', - 'httpMethod' => 'POST', - 'parameters' => array( - 'userId' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/AutoForwarding.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/AutoForwarding.php deleted file mode 100644 index 86afef2..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/AutoForwarding.php +++ /dev/null @@ -1,48 +0,0 @@ -disposition = $disposition; - } - public function getDisposition() - { - return $this->disposition; - } - public function setEmailAddress($emailAddress) - { - $this->emailAddress = $emailAddress; - } - public function getEmailAddress() - { - return $this->emailAddress; - } - public function setEnabled($enabled) - { - $this->enabled = $enabled; - } - public function getEnabled() - { - return $this->enabled; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/BatchModifyMessagesRequest.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/BatchModifyMessagesRequest.php deleted file mode 100644 index 911c221..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/BatchModifyMessagesRequest.php +++ /dev/null @@ -1,49 +0,0 @@ -addLabelIds = $addLabelIds; - } - public function getAddLabelIds() - { - return $this->addLabelIds; - } - public function setIds($ids) - { - $this->ids = $ids; - } - public function getIds() - { - return $this->ids; - } - public function setRemoveLabelIds($removeLabelIds) - { - $this->removeLabelIds = $removeLabelIds; - } - public function getRemoveLabelIds() - { - return $this->removeLabelIds; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Filter.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Filter.php deleted file mode 100644 index ee40b18..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Filter.php +++ /dev/null @@ -1,62 +0,0 @@ -action = $action; - } - /** - * @return Google_Service_Gmail_FilterAction - */ - public function getAction() - { - return $this->action; - } - /** - * @param Google_Service_Gmail_FilterCriteria - */ - public function setCriteria(Google_Service_Gmail_FilterCriteria $criteria) - { - $this->criteria = $criteria; - } - /** - * @return Google_Service_Gmail_FilterCriteria - */ - public function getCriteria() - { - return $this->criteria; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/FilterAction.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/FilterAction.php deleted file mode 100644 index e11c467..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/FilterAction.php +++ /dev/null @@ -1,49 +0,0 @@ -addLabelIds = $addLabelIds; - } - public function getAddLabelIds() - { - return $this->addLabelIds; - } - public function setForward($forward) - { - $this->forward = $forward; - } - public function getForward() - { - return $this->forward; - } - public function setRemoveLabelIds($removeLabelIds) - { - $this->removeLabelIds = $removeLabelIds; - } - public function getRemoveLabelIds() - { - return $this->removeLabelIds; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/FilterCriteria.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/FilterCriteria.php deleted file mode 100644 index 1b26c4d..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/FilterCriteria.php +++ /dev/null @@ -1,102 +0,0 @@ -excludeChats = $excludeChats; - } - public function getExcludeChats() - { - return $this->excludeChats; - } - public function setFrom($from) - { - $this->from = $from; - } - public function getFrom() - { - return $this->from; - } - public function setHasAttachment($hasAttachment) - { - $this->hasAttachment = $hasAttachment; - } - public function getHasAttachment() - { - return $this->hasAttachment; - } - public function setNegatedQuery($negatedQuery) - { - $this->negatedQuery = $negatedQuery; - } - public function getNegatedQuery() - { - return $this->negatedQuery; - } - public function setQuery($query) - { - $this->query = $query; - } - public function getQuery() - { - return $this->query; - } - public function setSize($size) - { - $this->size = $size; - } - public function getSize() - { - return $this->size; - } - public function setSizeComparison($sizeComparison) - { - $this->sizeComparison = $sizeComparison; - } - public function getSizeComparison() - { - return $this->sizeComparison; - } - public function setSubject($subject) - { - $this->subject = $subject; - } - public function getSubject() - { - return $this->subject; - } - public function setTo($to) - { - $this->to = $to; - } - public function getTo() - { - return $this->to; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ForwardingAddress.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ForwardingAddress.php deleted file mode 100644 index f2ea60e..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ForwardingAddress.php +++ /dev/null @@ -1,39 +0,0 @@ -forwardingEmail = $forwardingEmail; - } - public function getForwardingEmail() - { - return $this->forwardingEmail; - } - public function setVerificationStatus($verificationStatus) - { - $this->verificationStatus = $verificationStatus; - } - public function getVerificationStatus() - { - return $this->verificationStatus; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/History.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/History.php deleted file mode 100644 index 35b65fa..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/History.php +++ /dev/null @@ -1,111 +0,0 @@ -id = $id; - } - public function getId() - { - return $this->id; - } - /** - * @param Google_Service_Gmail_HistoryLabelAdded - */ - public function setLabelsAdded($labelsAdded) - { - $this->labelsAdded = $labelsAdded; - } - /** - * @return Google_Service_Gmail_HistoryLabelAdded - */ - public function getLabelsAdded() - { - return $this->labelsAdded; - } - /** - * @param Google_Service_Gmail_HistoryLabelRemoved - */ - public function setLabelsRemoved($labelsRemoved) - { - $this->labelsRemoved = $labelsRemoved; - } - /** - * @return Google_Service_Gmail_HistoryLabelRemoved - */ - public function getLabelsRemoved() - { - return $this->labelsRemoved; - } - /** - * @param Google_Service_Gmail_Message - */ - public function setMessages($messages) - { - $this->messages = $messages; - } - /** - * @return Google_Service_Gmail_Message - */ - public function getMessages() - { - return $this->messages; - } - /** - * @param Google_Service_Gmail_HistoryMessageAdded - */ - public function setMessagesAdded($messagesAdded) - { - $this->messagesAdded = $messagesAdded; - } - /** - * @return Google_Service_Gmail_HistoryMessageAdded - */ - public function getMessagesAdded() - { - return $this->messagesAdded; - } - /** - * @param Google_Service_Gmail_HistoryMessageDeleted - */ - public function setMessagesDeleted($messagesDeleted) - { - $this->messagesDeleted = $messagesDeleted; - } - /** - * @return Google_Service_Gmail_HistoryMessageDeleted - */ - public function getMessagesDeleted() - { - return $this->messagesDeleted; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/HistoryLabelAdded.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/HistoryLabelAdded.php deleted file mode 100644 index 8292377..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/HistoryLabelAdded.php +++ /dev/null @@ -1,47 +0,0 @@ -labelIds = $labelIds; - } - public function getLabelIds() - { - return $this->labelIds; - } - /** - * @param Google_Service_Gmail_Message - */ - public function setMessage(Google_Service_Gmail_Message $message) - { - $this->message = $message; - } - /** - * @return Google_Service_Gmail_Message - */ - public function getMessage() - { - return $this->message; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/HistoryLabelRemoved.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/HistoryLabelRemoved.php deleted file mode 100644 index 873f6da..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/HistoryLabelRemoved.php +++ /dev/null @@ -1,47 +0,0 @@ -labelIds = $labelIds; - } - public function getLabelIds() - { - return $this->labelIds; - } - /** - * @param Google_Service_Gmail_Message - */ - public function setMessage(Google_Service_Gmail_Message $message) - { - $this->message = $message; - } - /** - * @return Google_Service_Gmail_Message - */ - public function getMessage() - { - return $this->message; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ImapSettings.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ImapSettings.php deleted file mode 100644 index df939b7..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ImapSettings.php +++ /dev/null @@ -1,57 +0,0 @@ -autoExpunge = $autoExpunge; - } - public function getAutoExpunge() - { - return $this->autoExpunge; - } - public function setEnabled($enabled) - { - $this->enabled = $enabled; - } - public function getEnabled() - { - return $this->enabled; - } - public function setExpungeBehavior($expungeBehavior) - { - $this->expungeBehavior = $expungeBehavior; - } - public function getExpungeBehavior() - { - return $this->expungeBehavior; - } - public function setMaxFolderSize($maxFolderSize) - { - $this->maxFolderSize = $maxFolderSize; - } - public function getMaxFolderSize() - { - return $this->maxFolderSize; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Label.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Label.php deleted file mode 100644 index f428a93..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Label.php +++ /dev/null @@ -1,118 +0,0 @@ -color = $color; - } - /** - * @return Google_Service_Gmail_LabelColor - */ - public function getColor() - { - return $this->color; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setLabelListVisibility($labelListVisibility) - { - $this->labelListVisibility = $labelListVisibility; - } - public function getLabelListVisibility() - { - return $this->labelListVisibility; - } - public function setMessageListVisibility($messageListVisibility) - { - $this->messageListVisibility = $messageListVisibility; - } - public function getMessageListVisibility() - { - return $this->messageListVisibility; - } - public function setMessagesTotal($messagesTotal) - { - $this->messagesTotal = $messagesTotal; - } - public function getMessagesTotal() - { - return $this->messagesTotal; - } - public function setMessagesUnread($messagesUnread) - { - $this->messagesUnread = $messagesUnread; - } - public function getMessagesUnread() - { - return $this->messagesUnread; - } - public function setName($name) - { - $this->name = $name; - } - public function getName() - { - return $this->name; - } - public function setThreadsTotal($threadsTotal) - { - $this->threadsTotal = $threadsTotal; - } - public function getThreadsTotal() - { - return $this->threadsTotal; - } - public function setThreadsUnread($threadsUnread) - { - $this->threadsUnread = $threadsUnread; - } - public function getThreadsUnread() - { - return $this->threadsUnread; - } - public function setType($type) - { - $this->type = $type; - } - public function getType() - { - return $this->type; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ListDraftsResponse.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ListDraftsResponse.php deleted file mode 100644 index dbfce46..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ListDraftsResponse.php +++ /dev/null @@ -1,56 +0,0 @@ -drafts = $drafts; - } - /** - * @return Google_Service_Gmail_Draft - */ - public function getDrafts() - { - return $this->drafts; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setResultSizeEstimate($resultSizeEstimate) - { - $this->resultSizeEstimate = $resultSizeEstimate; - } - public function getResultSizeEstimate() - { - return $this->resultSizeEstimate; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ListHistoryResponse.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ListHistoryResponse.php deleted file mode 100644 index a0d7d67..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ListHistoryResponse.php +++ /dev/null @@ -1,56 +0,0 @@ -history = $history; - } - /** - * @return Google_Service_Gmail_History - */ - public function getHistory() - { - return $this->history; - } - public function setHistoryId($historyId) - { - $this->historyId = $historyId; - } - public function getHistoryId() - { - return $this->historyId; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ListLabelsResponse.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ListLabelsResponse.php deleted file mode 100644 index 9075e9c..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ListLabelsResponse.php +++ /dev/null @@ -1,38 +0,0 @@ -labels = $labels; - } - /** - * @return Google_Service_Gmail_Label - */ - public function getLabels() - { - return $this->labels; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ListMessagesResponse.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ListMessagesResponse.php deleted file mode 100644 index e246fe1..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ListMessagesResponse.php +++ /dev/null @@ -1,56 +0,0 @@ -messages = $messages; - } - /** - * @return Google_Service_Gmail_Message - */ - public function getMessages() - { - return $this->messages; - } - public function setNextPageToken($nextPageToken) - { - $this->nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setResultSizeEstimate($resultSizeEstimate) - { - $this->resultSizeEstimate = $resultSizeEstimate; - } - public function getResultSizeEstimate() - { - return $this->resultSizeEstimate; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ListThreadsResponse.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ListThreadsResponse.php deleted file mode 100644 index 347a39c..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ListThreadsResponse.php +++ /dev/null @@ -1,56 +0,0 @@ -nextPageToken = $nextPageToken; - } - public function getNextPageToken() - { - return $this->nextPageToken; - } - public function setResultSizeEstimate($resultSizeEstimate) - { - $this->resultSizeEstimate = $resultSizeEstimate; - } - public function getResultSizeEstimate() - { - return $this->resultSizeEstimate; - } - /** - * @param Google_Service_Gmail_Thread - */ - public function setThreads($threads) - { - $this->threads = $threads; - } - /** - * @return Google_Service_Gmail_Thread - */ - public function getThreads() - { - return $this->threads; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Message.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Message.php deleted file mode 100644 index b5d0bc8..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Message.php +++ /dev/null @@ -1,110 +0,0 @@ -historyId = $historyId; - } - public function getHistoryId() - { - return $this->historyId; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setInternalDate($internalDate) - { - $this->internalDate = $internalDate; - } - public function getInternalDate() - { - return $this->internalDate; - } - public function setLabelIds($labelIds) - { - $this->labelIds = $labelIds; - } - public function getLabelIds() - { - return $this->labelIds; - } - /** - * @param Google_Service_Gmail_MessagePart - */ - public function setPayload(Google_Service_Gmail_MessagePart $payload) - { - $this->payload = $payload; - } - /** - * @return Google_Service_Gmail_MessagePart - */ - public function getPayload() - { - return $this->payload; - } - public function setRaw($raw) - { - $this->raw = $raw; - } - public function getRaw() - { - return $this->raw; - } - public function setSizeEstimate($sizeEstimate) - { - $this->sizeEstimate = $sizeEstimate; - } - public function getSizeEstimate() - { - return $this->sizeEstimate; - } - public function setSnippet($snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } - public function setThreadId($threadId) - { - $this->threadId = $threadId; - } - public function getThreadId() - { - return $this->threadId; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/MessagePart.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/MessagePart.php deleted file mode 100644 index e8270e1..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/MessagePart.php +++ /dev/null @@ -1,97 +0,0 @@ -body = $body; - } - /** - * @return Google_Service_Gmail_MessagePartBody - */ - public function getBody() - { - return $this->body; - } - public function setFilename($filename) - { - $this->filename = $filename; - } - public function getFilename() - { - return $this->filename; - } - /** - * @param Google_Service_Gmail_MessagePartHeader - */ - public function setHeaders($headers) - { - $this->headers = $headers; - } - /** - * @return Google_Service_Gmail_MessagePartHeader - */ - public function getHeaders() - { - return $this->headers; - } - public function setMimeType($mimeType) - { - $this->mimeType = $mimeType; - } - public function getMimeType() - { - return $this->mimeType; - } - public function setPartId($partId) - { - $this->partId = $partId; - } - public function getPartId() - { - return $this->partId; - } - /** - * @param Google_Service_Gmail_MessagePart - */ - public function setParts($parts) - { - $this->parts = $parts; - } - /** - * @return Google_Service_Gmail_MessagePart - */ - public function getParts() - { - return $this->parts; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/MessagePartBody.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/MessagePartBody.php deleted file mode 100644 index 89323ef..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/MessagePartBody.php +++ /dev/null @@ -1,48 +0,0 @@ -attachmentId = $attachmentId; - } - public function getAttachmentId() - { - return $this->attachmentId; - } - public function setData($data) - { - $this->data = $data; - } - public function getData() - { - return $this->data; - } - public function setSize($size) - { - $this->size = $size; - } - public function getSize() - { - return $this->size; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ModifyMessageRequest.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ModifyMessageRequest.php deleted file mode 100644 index 7f37a47..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ModifyMessageRequest.php +++ /dev/null @@ -1,40 +0,0 @@ -addLabelIds = $addLabelIds; - } - public function getAddLabelIds() - { - return $this->addLabelIds; - } - public function setRemoveLabelIds($removeLabelIds) - { - $this->removeLabelIds = $removeLabelIds; - } - public function getRemoveLabelIds() - { - return $this->removeLabelIds; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ModifyThreadRequest.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ModifyThreadRequest.php deleted file mode 100644 index a8fec01..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ModifyThreadRequest.php +++ /dev/null @@ -1,40 +0,0 @@ -addLabelIds = $addLabelIds; - } - public function getAddLabelIds() - { - return $this->addLabelIds; - } - public function setRemoveLabelIds($removeLabelIds) - { - $this->removeLabelIds = $removeLabelIds; - } - public function getRemoveLabelIds() - { - return $this->removeLabelIds; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Profile.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Profile.php deleted file mode 100644 index 7dda18c..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Profile.php +++ /dev/null @@ -1,57 +0,0 @@ -emailAddress = $emailAddress; - } - public function getEmailAddress() - { - return $this->emailAddress; - } - public function setHistoryId($historyId) - { - $this->historyId = $historyId; - } - public function getHistoryId() - { - return $this->historyId; - } - public function setMessagesTotal($messagesTotal) - { - $this->messagesTotal = $messagesTotal; - } - public function getMessagesTotal() - { - return $this->messagesTotal; - } - public function setThreadsTotal($threadsTotal) - { - $this->threadsTotal = $threadsTotal; - } - public function getThreadsTotal() - { - return $this->threadsTotal; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/Users.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/Users.php deleted file mode 100644 index a68aa6d..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/Users.php +++ /dev/null @@ -1,71 +0,0 @@ - - * $gmailService = new Google_Service_Gmail(...); - * $users = $gmailService->users; - * - */ -class Google_Service_Gmail_Resource_Users extends Google_Service_Resource -{ - /** - * Gets the current user's Gmail profile. (users.getProfile) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Profile - */ - public function getProfile($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('getProfile', array($params), "Google_Service_Gmail_Profile"); - } - /** - * Stop receiving push notifications for the given user mailbox. (users.stop) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param array $optParams Optional parameters. - */ - public function stop($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('stop', array($params)); - } - /** - * Set up or update a push notification watch on the given user mailbox. - * (users.watch) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param Google_Service_Gmail_WatchRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_WatchResponse - */ - public function watch($userId, Google_Service_Gmail_WatchRequest $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('watch', array($params), "Google_Service_Gmail_WatchResponse"); - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersDrafts.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersDrafts.php deleted file mode 100644 index c662801..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersDrafts.php +++ /dev/null @@ -1,130 +0,0 @@ - - * $gmailService = new Google_Service_Gmail(...); - * $drafts = $gmailService->drafts; - * - */ -class Google_Service_Gmail_Resource_UsersDrafts extends Google_Service_Resource -{ - /** - * Creates a new draft with the `DRAFT` label. (drafts.create) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param Google_Service_Gmail_Draft $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Draft - */ - public function create($userId, Google_Service_Gmail_Draft $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Gmail_Draft"); - } - /** - * Immediately and permanently deletes the specified draft. Does not simply - * trash it. (drafts.delete) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param string $id The ID of the draft to delete. - * @param array $optParams Optional parameters. - */ - public function delete($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets the specified draft. (drafts.get) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param string $id The ID of the draft to retrieve. - * @param array $optParams Optional parameters. - * - * @opt_param string format The format to return the draft in. - * @return Google_Service_Gmail_Draft - */ - public function get($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Gmail_Draft"); - } - /** - * Lists the drafts in the user's mailbox. (drafts.listUsersDrafts) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param array $optParams Optional parameters. - * - * @opt_param string pageToken Page token to retrieve a specific page of results - * in the list. - * @opt_param string maxResults Maximum number of drafts to return. - * @opt_param string q Only return draft messages matching the specified query. - * Supports the same query format as the Gmail search box. For example, - * `"from:someuser@example.com rfc822msgid: is:unread"`. - * @opt_param bool includeSpamTrash Include drafts from `SPAM` and `TRASH` in - * the results. - * @return Google_Service_Gmail_ListDraftsResponse - */ - public function listUsersDrafts($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Gmail_ListDraftsResponse"); - } - /** - * Sends the specified, existing draft to the recipients in the `To`, `Cc`, and - * `Bcc` headers. (drafts.send) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param Google_Service_Gmail_Draft $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Message - */ - public function send($userId, Google_Service_Gmail_Draft $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('send', array($params), "Google_Service_Gmail_Message"); - } - /** - * Replaces a draft's content. (drafts.update) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param string $id The ID of the draft to update. - * @param Google_Service_Gmail_Draft $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Draft - */ - public function update($userId, $id, Google_Service_Gmail_Draft $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Gmail_Draft"); - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersHistory.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersHistory.php deleted file mode 100644 index dea402c..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersHistory.php +++ /dev/null @@ -1,61 +0,0 @@ - - * $gmailService = new Google_Service_Gmail(...); - * $history = $gmailService->history; - * - */ -class Google_Service_Gmail_Resource_UsersHistory extends Google_Service_Resource -{ - /** - * Lists the history of all changes to the given mailbox. History results are - * returned in chronological order (increasing `historyId`). - * (history.listUsersHistory) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param array $optParams Optional parameters. - * - * @opt_param string historyTypes History types to be returned by the function - * @opt_param string startHistoryId Required. Returns history records after the - * specified `startHistoryId`. The supplied `startHistoryId` should be obtained - * from the `historyId` of a message, thread, or previous `list` response. - * History IDs increase chronologically but are not contiguous with random gaps - * in between valid IDs. Supplying an invalid or out of date `startHistoryId` - * typically returns an `HTTP 404` error code. A `historyId` is typically valid - * for at least a week, but in some rare circumstances may be valid for only a - * few hours. If you receive an `HTTP 404` error response, your application - * should perform a full sync. If you receive no `nextPageToken` in the - * response, there are no updates to retrieve and you can store the returned - * `historyId` for a future request. - * @opt_param string labelId Only return messages with a label matching the ID. - * @opt_param string pageToken Page token to retrieve a specific page of results - * in the list. - * @opt_param string maxResults The maximum number of history records to return. - * @return Google_Service_Gmail_ListHistoryResponse - */ - public function listUsersHistory($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Gmail_ListHistoryResponse"); - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersLabels.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersLabels.php deleted file mode 100644 index 0d9868f..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersLabels.php +++ /dev/null @@ -1,119 +0,0 @@ - - * $gmailService = new Google_Service_Gmail(...); - * $labels = $gmailService->labels; - * - */ -class Google_Service_Gmail_Resource_UsersLabels extends Google_Service_Resource -{ - /** - * Creates a new label. (labels.create) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param Google_Service_Gmail_Label $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Label - */ - public function create($userId, Google_Service_Gmail_Label $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Gmail_Label"); - } - /** - * Immediately and permanently deletes the specified label and removes it from - * any messages and threads that it is applied to. (labels.delete) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param string $id The ID of the label to delete. - * @param array $optParams Optional parameters. - */ - public function delete($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets the specified label. (labels.get) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param string $id The ID of the label to retrieve. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Label - */ - public function get($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Gmail_Label"); - } - /** - * Lists all labels in the user's mailbox. (labels.listUsersLabels) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_ListLabelsResponse - */ - public function listUsersLabels($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Gmail_ListLabelsResponse"); - } - /** - * Patch the specified label. (labels.patch) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param string $id The ID of the label to update. - * @param Google_Service_Gmail_Label $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Label - */ - public function patch($userId, $id, Google_Service_Gmail_Label $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Gmail_Label"); - } - /** - * Updates the specified label. (labels.update) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param string $id The ID of the label to update. - * @param Google_Service_Gmail_Label $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Label - */ - public function update($userId, $id, Google_Service_Gmail_Label $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Gmail_Label"); - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersMessages.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersMessages.php deleted file mode 100644 index c4325b2..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersMessages.php +++ /dev/null @@ -1,229 +0,0 @@ - - * $gmailService = new Google_Service_Gmail(...); - * $messages = $gmailService->messages; - * - */ -class Google_Service_Gmail_Resource_UsersMessages extends Google_Service_Resource -{ - /** - * Deletes many messages by message ID. Provides no guarantees that messages - * were not already deleted or even existed at all. (messages.batchDelete) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param Google_Service_Gmail_BatchDeleteMessagesRequest $postBody - * @param array $optParams Optional parameters. - */ - public function batchDelete($userId, Google_Service_Gmail_BatchDeleteMessagesRequest $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('batchDelete', array($params)); - } - /** - * Modifies the labels on the specified messages. (messages.batchModify) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param Google_Service_Gmail_BatchModifyMessagesRequest $postBody - * @param array $optParams Optional parameters. - */ - public function batchModify($userId, Google_Service_Gmail_BatchModifyMessagesRequest $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('batchModify', array($params)); - } - /** - * Immediately and permanently deletes the specified message. This operation - * cannot be undone. Prefer `messages.trash` instead. (messages.delete) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param string $id The ID of the message to delete. - * @param array $optParams Optional parameters. - */ - public function delete($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets the specified message. (messages.get) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param string $id The ID of the message to retrieve. - * @param array $optParams Optional parameters. - * - * @opt_param string format The format to return the message in. - * @opt_param string metadataHeaders When given and format is `METADATA`, only - * include headers specified. - * @return Google_Service_Gmail_Message - */ - public function get($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Gmail_Message"); - } - /** - * Imports a message into only this user's mailbox, with standard email delivery - * scanning and classification similar to receiving via SMTP. Does not send a - * message. (messages.import) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param Google_Service_Gmail_Message $postBody - * @param array $optParams Optional parameters. - * - * @opt_param bool processForCalendar Process calendar invites in the email and - * add any extracted meetings to the Google Calendar for this user. - * @opt_param bool deleted Mark the email as permanently deleted (not TRASH) and - * only visible in Google Vault to a Vault administrator. Only used for G Suite - * accounts. - * @opt_param string internalDateSource Source for Gmail's internal date of the - * message. - * @opt_param bool neverMarkSpam Ignore the Gmail spam classifier decision and - * never mark this email as SPAM in the mailbox. - * @return Google_Service_Gmail_Message - */ - public function import($userId, Google_Service_Gmail_Message $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('import', array($params), "Google_Service_Gmail_Message"); - } - /** - * Directly inserts a message into only this user's mailbox similar to `IMAP - * APPEND`, bypassing most scanning and classification. Does not send a message. - * (messages.insert) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param Google_Service_Gmail_Message $postBody - * @param array $optParams Optional parameters. - * - * @opt_param string internalDateSource Source for Gmail's internal date of the - * message. - * @opt_param bool deleted Mark the email as permanently deleted (not TRASH) and - * only visible in Google Vault to a Vault administrator. Only used for G Suite - * accounts. - * @return Google_Service_Gmail_Message - */ - public function insert($userId, Google_Service_Gmail_Message $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Gmail_Message"); - } - /** - * Lists the messages in the user's mailbox. (messages.listUsersMessages) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param array $optParams Optional parameters. - * - * @opt_param string labelIds Only return messages with labels that match all of - * the specified label IDs. - * @opt_param string pageToken Page token to retrieve a specific page of results - * in the list. - * @opt_param string q Only return messages matching the specified query. - * Supports the same query format as the Gmail search box. For example, - * `"from:someuser@example.com rfc822msgid: is:unread"`. Parameter cannot be - * used when accessing the api using the gmail.metadata scope. - * @opt_param string maxResults Maximum number of messages to return. - * @opt_param bool includeSpamTrash Include messages from `SPAM` and `TRASH` in - * the results. - * @return Google_Service_Gmail_ListMessagesResponse - */ - public function listUsersMessages($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Gmail_ListMessagesResponse"); - } - /** - * Modifies the labels on the specified message. (messages.modify) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param string $id The ID of the message to modify. - * @param Google_Service_Gmail_ModifyMessageRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Message - */ - public function modify($userId, $id, Google_Service_Gmail_ModifyMessageRequest $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('modify', array($params), "Google_Service_Gmail_Message"); - } - /** - * Sends the specified message to the recipients in the `To`, `Cc`, and `Bcc` - * headers. (messages.send) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param Google_Service_Gmail_Message $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Message - */ - public function send($userId, Google_Service_Gmail_Message $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('send', array($params), "Google_Service_Gmail_Message"); - } - /** - * Moves the specified message to the trash. (messages.trash) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param string $id The ID of the message to Trash. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Message - */ - public function trash($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('trash', array($params), "Google_Service_Gmail_Message"); - } - /** - * Removes the specified message from the trash. (messages.untrash) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param string $id The ID of the message to remove from Trash. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Message - */ - public function untrash($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('untrash', array($params), "Google_Service_Gmail_Message"); - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettings.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettings.php deleted file mode 100644 index c68bd9f..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettings.php +++ /dev/null @@ -1,184 +0,0 @@ - - * $gmailService = new Google_Service_Gmail(...); - * $settings = $gmailService->settings; - * - */ -class Google_Service_Gmail_Resource_UsersSettings extends Google_Service_Resource -{ - /** - * Gets the auto-forwarding setting for the specified account. - * (settings.getAutoForwarding) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_AutoForwarding - */ - public function getAutoForwarding($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('getAutoForwarding', array($params), "Google_Service_Gmail_AutoForwarding"); - } - /** - * Gets IMAP settings. (settings.getImap) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_ImapSettings - */ - public function getImap($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('getImap', array($params), "Google_Service_Gmail_ImapSettings"); - } - /** - * Gets language settings. (settings.getLanguage) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_LanguageSettings - */ - public function getLanguage($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('getLanguage', array($params), "Google_Service_Gmail_LanguageSettings"); - } - /** - * Gets POP settings. (settings.getPop) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_PopSettings - */ - public function getPop($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('getPop', array($params), "Google_Service_Gmail_PopSettings"); - } - /** - * Gets vacation responder settings. (settings.getVacation) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_VacationSettings - */ - public function getVacation($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('getVacation', array($params), "Google_Service_Gmail_VacationSettings"); - } - /** - * Updates the auto-forwarding setting for the specified account. A verified - * forwarding address must be specified when auto-forwarding is enabled. - * - * This method is only available to service account clients that have been - * delegated domain-wide authority. (settings.updateAutoForwarding) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param Google_Service_Gmail_AutoForwarding $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_AutoForwarding - */ - public function updateAutoForwarding($userId, Google_Service_Gmail_AutoForwarding $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('updateAutoForwarding', array($params), "Google_Service_Gmail_AutoForwarding"); - } - /** - * Updates IMAP settings. (settings.updateImap) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param Google_Service_Gmail_ImapSettings $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_ImapSettings - */ - public function updateImap($userId, Google_Service_Gmail_ImapSettings $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('updateImap', array($params), "Google_Service_Gmail_ImapSettings"); - } - /** - * Updates language settings. - * - * If successful, the return object contains the `displayLanguage` that was - * saved for the user, which may differ from the value passed into the request. - * This is because the requested `displayLanguage` may not be directly supported - * by Gmail but have a close variant that is, and so the variant may be chosen - * and saved instead. (settings.updateLanguage) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param Google_Service_Gmail_LanguageSettings $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_LanguageSettings - */ - public function updateLanguage($userId, Google_Service_Gmail_LanguageSettings $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('updateLanguage', array($params), "Google_Service_Gmail_LanguageSettings"); - } - /** - * Updates POP settings. (settings.updatePop) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param Google_Service_Gmail_PopSettings $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_PopSettings - */ - public function updatePop($userId, Google_Service_Gmail_PopSettings $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('updatePop', array($params), "Google_Service_Gmail_PopSettings"); - } - /** - * Updates vacation responder settings. (settings.updateVacation) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param Google_Service_Gmail_VacationSettings $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_VacationSettings - */ - public function updateVacation($userId, Google_Service_Gmail_VacationSettings $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('updateVacation', array($params), "Google_Service_Gmail_VacationSettings"); - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsDelegates.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsDelegates.php deleted file mode 100644 index 756cb98..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsDelegates.php +++ /dev/null @@ -1,119 +0,0 @@ - - * $gmailService = new Google_Service_Gmail(...); - * $delegates = $gmailService->delegates; - * - */ -class Google_Service_Gmail_Resource_UsersSettingsDelegates extends Google_Service_Resource -{ - /** - * Adds a delegate with its verification status set directly to `accepted`, - * without sending any verification email. The delegate user must be a member - * of the same G Suite organization as the delegator user. - * - * Gmail imposes limitations on the number of delegates and delegators each user - * in a G Suite organization can have. These limits depend on your organization, - * but in general each user can have up to 25 delegates and up to 10 delegators. - * - * Note that a delegate user must be referred to by their primary email address, - * and not an email alias. - * - * Also note that when a new delegate is created, there may be up to a one - * minute delay before the new delegate is available for use. - * - * This method is only available to service account clients that have been - * delegated domain-wide authority. (delegates.create) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param Google_Service_Gmail_Delegate $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Delegate - */ - public function create($userId, Google_Service_Gmail_Delegate $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Gmail_Delegate"); - } - /** - * Removes the specified delegate (which can be of any verification status), and - * revokes any verification that may have been required for using it. - * - * Note that a delegate user must be referred to by their primary email address, - * and not an email alias. - * - * This method is only available to service account clients that have been - * delegated domain-wide authority. (delegates.delete) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param string $delegateEmail The email address of the user to be removed as a - * delegate. - * @param array $optParams Optional parameters. - */ - public function delete($userId, $delegateEmail, $optParams = array()) - { - $params = array('userId' => $userId, 'delegateEmail' => $delegateEmail); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets the specified delegate. - * - * Note that a delegate user must be referred to by their primary email address, - * and not an email alias. - * - * This method is only available to service account clients that have been - * delegated domain-wide authority. (delegates.get) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param string $delegateEmail The email address of the user whose delegate - * relationship is to be retrieved. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Delegate - */ - public function get($userId, $delegateEmail, $optParams = array()) - { - $params = array('userId' => $userId, 'delegateEmail' => $delegateEmail); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Gmail_Delegate"); - } - /** - * Lists the delegates for the specified account. - * - * This method is only available to service account clients that have been - * delegated domain-wide authority. (delegates.listUsersSettingsDelegates) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_ListDelegatesResponse - */ - public function listUsersSettingsDelegates($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Gmail_ListDelegatesResponse"); - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsFilters.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsFilters.php deleted file mode 100644 index d142bc2..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsFilters.php +++ /dev/null @@ -1,86 +0,0 @@ - - * $gmailService = new Google_Service_Gmail(...); - * $filters = $gmailService->filters; - * - */ -class Google_Service_Gmail_Resource_UsersSettingsFilters extends Google_Service_Resource -{ - /** - * Creates a filter. (filters.create) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param Google_Service_Gmail_Filter $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Filter - */ - public function create($userId, Google_Service_Gmail_Filter $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Gmail_Filter"); - } - /** - * Deletes a filter. (filters.delete) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param string $id The ID of the filter to be deleted. - * @param array $optParams Optional parameters. - */ - public function delete($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets a filter. (filters.get) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param string $id The ID of the filter to be fetched. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Filter - */ - public function get($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Gmail_Filter"); - } - /** - * Lists the message filters of a Gmail user. (filters.listUsersSettingsFilters) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_ListFiltersResponse - */ - public function listUsersSettingsFilters($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Gmail_ListFiltersResponse"); - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsForwardingAddresses.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsForwardingAddresses.php deleted file mode 100644 index 59f5540..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsForwardingAddresses.php +++ /dev/null @@ -1,97 +0,0 @@ - - * $gmailService = new Google_Service_Gmail(...); - * $forwardingAddresses = $gmailService->forwardingAddresses; - * - */ -class Google_Service_Gmail_Resource_UsersSettingsForwardingAddresses extends Google_Service_Resource -{ - /** - * Creates a forwarding address. If ownership verification is required, a - * message will be sent to the recipient and the resource's verification status - * will be set to `pending`; otherwise, the resource will be created with - * verification status set to `accepted`. - * - * This method is only available to service account clients that have been - * delegated domain-wide authority. (forwardingAddresses.create) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param Google_Service_Gmail_ForwardingAddress $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_ForwardingAddress - */ - public function create($userId, Google_Service_Gmail_ForwardingAddress $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Gmail_ForwardingAddress"); - } - /** - * Deletes the specified forwarding address and revokes any verification that - * may have been required. - * - * This method is only available to service account clients that have been - * delegated domain-wide authority. (forwardingAddresses.delete) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param string $forwardingEmail The forwarding address to be deleted. - * @param array $optParams Optional parameters. - */ - public function delete($userId, $forwardingEmail, $optParams = array()) - { - $params = array('userId' => $userId, 'forwardingEmail' => $forwardingEmail); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets the specified forwarding address. (forwardingAddresses.get) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param string $forwardingEmail The forwarding address to be retrieved. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_ForwardingAddress - */ - public function get($userId, $forwardingEmail, $optParams = array()) - { - $params = array('userId' => $userId, 'forwardingEmail' => $forwardingEmail); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Gmail_ForwardingAddress"); - } - /** - * Lists the forwarding addresses for the specified account. - * (forwardingAddresses.listUsersSettingsForwardingAddresses) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_ListForwardingAddressesResponse - */ - public function listUsersSettingsForwardingAddresses($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Gmail_ListForwardingAddressesResponse"); - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsSendAs.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsSendAs.php deleted file mode 100644 index a14a6c1..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsSendAs.php +++ /dev/null @@ -1,157 +0,0 @@ - - * $gmailService = new Google_Service_Gmail(...); - * $sendAs = $gmailService->sendAs; - * - */ -class Google_Service_Gmail_Resource_UsersSettingsSendAs extends Google_Service_Resource -{ - /** - * Creates a custom "from" send-as alias. If an SMTP MSA is specified, Gmail - * will attempt to connect to the SMTP service to validate the configuration - * before creating the alias. If ownership verification is required for the - * alias, a message will be sent to the email address and the resource's - * verification status will be set to `pending`; otherwise, the resource will be - * created with verification status set to `accepted`. If a signature is - * provided, Gmail will sanitize the HTML before saving it with the alias. - * - * This method is only available to service account clients that have been - * delegated domain-wide authority. (sendAs.create) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param Google_Service_Gmail_SendAs $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_SendAs - */ - public function create($userId, Google_Service_Gmail_SendAs $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('create', array($params), "Google_Service_Gmail_SendAs"); - } - /** - * Deletes the specified send-as alias. Revokes any verification that may have - * been required for using it. - * - * This method is only available to service account clients that have been - * delegated domain-wide authority. (sendAs.delete) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param string $sendAsEmail The send-as alias to be deleted. - * @param array $optParams Optional parameters. - */ - public function delete($userId, $sendAsEmail, $optParams = array()) - { - $params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets the specified send-as alias. Fails with an HTTP 404 error if the - * specified address is not a member of the collection. (sendAs.get) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param string $sendAsEmail The send-as alias to be retrieved. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_SendAs - */ - public function get($userId, $sendAsEmail, $optParams = array()) - { - $params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Gmail_SendAs"); - } - /** - * Lists the send-as aliases for the specified account. The result includes the - * primary send-as address associated with the account as well as any custom - * "from" aliases. (sendAs.listUsersSettingsSendAs) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_ListSendAsResponse - */ - public function listUsersSettingsSendAs($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Gmail_ListSendAsResponse"); - } - /** - * Patch the specified send-as alias. (sendAs.patch) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param string $sendAsEmail The send-as alias to be updated. - * @param Google_Service_Gmail_SendAs $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_SendAs - */ - public function patch($userId, $sendAsEmail, Google_Service_Gmail_SendAs $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('patch', array($params), "Google_Service_Gmail_SendAs"); - } - /** - * Updates a send-as alias. If a signature is provided, Gmail will sanitize the - * HTML before saving it with the alias. - * - * Addresses other than the primary address for the account can only be updated - * by service account clients that have been delegated domain-wide authority. - * (sendAs.update) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param string $sendAsEmail The send-as alias to be updated. - * @param Google_Service_Gmail_SendAs $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_SendAs - */ - public function update($userId, $sendAsEmail, Google_Service_Gmail_SendAs $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('update', array($params), "Google_Service_Gmail_SendAs"); - } - /** - * Sends a verification email to the specified send-as alias address. The - * verification status must be `pending`. - * - * This method is only available to service account clients that have been - * delegated domain-wide authority. (sendAs.verify) - * - * @param string $userId User's email address. The special value "me" can be - * used to indicate the authenticated user. - * @param string $sendAsEmail The send-as alias to be verified. - * @param array $optParams Optional parameters. - */ - public function verify($userId, $sendAsEmail, $optParams = array()) - { - $params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail); - $params = array_merge($params, $optParams); - return $this->call('verify', array($params)); - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsSendAsSmimeInfo.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsSendAsSmimeInfo.php deleted file mode 100644 index 6517ef6..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsSendAsSmimeInfo.php +++ /dev/null @@ -1,115 +0,0 @@ - - * $gmailService = new Google_Service_Gmail(...); - * $smimeInfo = $gmailService->smimeInfo; - * - */ -class Google_Service_Gmail_Resource_UsersSettingsSendAsSmimeInfo extends Google_Service_Resource -{ - /** - * Deletes the specified S/MIME config for the specified send-as alias. - * (smimeInfo.delete) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param string $sendAsEmail The email address that appears in the "From:" - * header for mail sent using this alias. - * @param string $id The immutable ID for the SmimeInfo. - * @param array $optParams Optional parameters. - */ - public function delete($userId, $sendAsEmail, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets the specified S/MIME config for the specified send-as alias. - * (smimeInfo.get) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param string $sendAsEmail The email address that appears in the "From:" - * header for mail sent using this alias. - * @param string $id The immutable ID for the SmimeInfo. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_SmimeInfo - */ - public function get($userId, $sendAsEmail, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Gmail_SmimeInfo"); - } - /** - * Insert (upload) the given S/MIME config for the specified send-as alias. Note - * that pkcs12 format is required for the key. (smimeInfo.insert) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param string $sendAsEmail The email address that appears in the "From:" - * header for mail sent using this alias. - * @param Google_Service_Gmail_SmimeInfo $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_SmimeInfo - */ - public function insert($userId, $sendAsEmail, Google_Service_Gmail_SmimeInfo $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('insert', array($params), "Google_Service_Gmail_SmimeInfo"); - } - /** - * Lists S/MIME configs for the specified send-as alias. - * (smimeInfo.listUsersSettingsSendAsSmimeInfo) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param string $sendAsEmail The email address that appears in the "From:" - * header for mail sent using this alias. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_ListSmimeInfoResponse - */ - public function listUsersSettingsSendAsSmimeInfo($userId, $sendAsEmail, $optParams = array()) - { - $params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Gmail_ListSmimeInfoResponse"); - } - /** - * Sets the default S/MIME config for the specified send-as alias. - * (smimeInfo.setDefault) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param string $sendAsEmail The email address that appears in the "From:" - * header for mail sent using this alias. - * @param string $id The immutable ID for the SmimeInfo. - * @param array $optParams Optional parameters. - */ - public function setDefault($userId, $sendAsEmail, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('setDefault', array($params)); - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersThreads.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersThreads.php deleted file mode 100644 index e844b60..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersThreads.php +++ /dev/null @@ -1,135 +0,0 @@ - - * $gmailService = new Google_Service_Gmail(...); - * $threads = $gmailService->threads; - * - */ -class Google_Service_Gmail_Resource_UsersThreads extends Google_Service_Resource -{ - /** - * Immediately and permanently deletes the specified thread. This operation - * cannot be undone. Prefer `threads.trash` instead. (threads.delete) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param string $id ID of the Thread to delete. - * @param array $optParams Optional parameters. - */ - public function delete($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('delete', array($params)); - } - /** - * Gets the specified thread. (threads.get) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param string $id The ID of the thread to retrieve. - * @param array $optParams Optional parameters. - * - * @opt_param string format The format to return the messages in. - * @opt_param string metadataHeaders When given and format is METADATA, only - * include headers specified. - * @return Google_Service_Gmail_Thread - */ - public function get($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Gmail_Thread"); - } - /** - * Lists the threads in the user's mailbox. (threads.listUsersThreads) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param array $optParams Optional parameters. - * - * @opt_param string maxResults Maximum number of threads to return. - * @opt_param bool includeSpamTrash Include threads from `SPAM` and `TRASH` in - * the results. - * @opt_param string q Only return threads matching the specified query. - * Supports the same query format as the Gmail search box. For example, - * `"from:someuser@example.com rfc822msgid: is:unread"`. Parameter cannot be - * used when accessing the api using the gmail.metadata scope. - * @opt_param string pageToken Page token to retrieve a specific page of results - * in the list. - * @opt_param string labelIds Only return threads with labels that match all of - * the specified label IDs. - * @return Google_Service_Gmail_ListThreadsResponse - */ - public function listUsersThreads($userId, $optParams = array()) - { - $params = array('userId' => $userId); - $params = array_merge($params, $optParams); - return $this->call('list', array($params), "Google_Service_Gmail_ListThreadsResponse"); - } - /** - * Modifies the labels applied to the thread. This applies to all messages in - * the thread. (threads.modify) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param string $id The ID of the thread to modify. - * @param Google_Service_Gmail_ModifyThreadRequest $postBody - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Thread - */ - public function modify($userId, $id, Google_Service_Gmail_ModifyThreadRequest $postBody, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody); - $params = array_merge($params, $optParams); - return $this->call('modify', array($params), "Google_Service_Gmail_Thread"); - } - /** - * Moves the specified thread to the trash. (threads.trash) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param string $id The ID of the thread to Trash. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Thread - */ - public function trash($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('trash', array($params), "Google_Service_Gmail_Thread"); - } - /** - * Removes the specified thread from the trash. (threads.untrash) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param string $id The ID of the thread to remove from Trash. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_Thread - */ - public function untrash($userId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('untrash', array($params), "Google_Service_Gmail_Thread"); - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/SendAs.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/SendAs.php deleted file mode 100644 index 82f96cd..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/SendAs.php +++ /dev/null @@ -1,109 +0,0 @@ -displayName = $displayName; - } - public function getDisplayName() - { - return $this->displayName; - } - public function setIsDefault($isDefault) - { - $this->isDefault = $isDefault; - } - public function getIsDefault() - { - return $this->isDefault; - } - public function setIsPrimary($isPrimary) - { - $this->isPrimary = $isPrimary; - } - public function getIsPrimary() - { - return $this->isPrimary; - } - public function setReplyToAddress($replyToAddress) - { - $this->replyToAddress = $replyToAddress; - } - public function getReplyToAddress() - { - return $this->replyToAddress; - } - public function setSendAsEmail($sendAsEmail) - { - $this->sendAsEmail = $sendAsEmail; - } - public function getSendAsEmail() - { - return $this->sendAsEmail; - } - public function setSignature($signature) - { - $this->signature = $signature; - } - public function getSignature() - { - return $this->signature; - } - /** - * @param Google_Service_Gmail_SmtpMsa - */ - public function setSmtpMsa(Google_Service_Gmail_SmtpMsa $smtpMsa) - { - $this->smtpMsa = $smtpMsa; - } - /** - * @return Google_Service_Gmail_SmtpMsa - */ - public function getSmtpMsa() - { - return $this->smtpMsa; - } - public function setTreatAsAlias($treatAsAlias) - { - $this->treatAsAlias = $treatAsAlias; - } - public function getTreatAsAlias() - { - return $this->treatAsAlias; - } - public function setVerificationStatus($verificationStatus) - { - $this->verificationStatus = $verificationStatus; - } - public function getVerificationStatus() - { - return $this->verificationStatus; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/SmimeInfo.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/SmimeInfo.php deleted file mode 100644 index 0e21802..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/SmimeInfo.php +++ /dev/null @@ -1,84 +0,0 @@ -encryptedKeyPassword = $encryptedKeyPassword; - } - public function getEncryptedKeyPassword() - { - return $this->encryptedKeyPassword; - } - public function setExpiration($expiration) - { - $this->expiration = $expiration; - } - public function getExpiration() - { - return $this->expiration; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - public function setIsDefault($isDefault) - { - $this->isDefault = $isDefault; - } - public function getIsDefault() - { - return $this->isDefault; - } - public function setIssuerCn($issuerCn) - { - $this->issuerCn = $issuerCn; - } - public function getIssuerCn() - { - return $this->issuerCn; - } - public function setPem($pem) - { - $this->pem = $pem; - } - public function getPem() - { - return $this->pem; - } - public function setPkcs12($pkcs12) - { - $this->pkcs12 = $pkcs12; - } - public function getPkcs12() - { - return $this->pkcs12; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/SmtpMsa.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/SmtpMsa.php deleted file mode 100644 index c019138..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/SmtpMsa.php +++ /dev/null @@ -1,66 +0,0 @@ -host = $host; - } - public function getHost() - { - return $this->host; - } - public function setPassword($password) - { - $this->password = $password; - } - public function getPassword() - { - return $this->password; - } - public function setPort($port) - { - $this->port = $port; - } - public function getPort() - { - return $this->port; - } - public function setSecurityMode($securityMode) - { - $this->securityMode = $securityMode; - } - public function getSecurityMode() - { - return $this->securityMode; - } - public function setUsername($username) - { - $this->username = $username; - } - public function getUsername() - { - return $this->username; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Thread.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Thread.php deleted file mode 100644 index 74a0f0a..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Thread.php +++ /dev/null @@ -1,65 +0,0 @@ -historyId = $historyId; - } - public function getHistoryId() - { - return $this->historyId; - } - public function setId($id) - { - $this->id = $id; - } - public function getId() - { - return $this->id; - } - /** - * @param Google_Service_Gmail_Message - */ - public function setMessages($messages) - { - $this->messages = $messages; - } - /** - * @return Google_Service_Gmail_Message - */ - public function getMessages() - { - return $this->messages; - } - public function setSnippet($snippet) - { - $this->snippet = $snippet; - } - public function getSnippet() - { - return $this->snippet; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/VacationSettings.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/VacationSettings.php deleted file mode 100644 index 1e990db..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/VacationSettings.php +++ /dev/null @@ -1,93 +0,0 @@ -enableAutoReply = $enableAutoReply; - } - public function getEnableAutoReply() - { - return $this->enableAutoReply; - } - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - public function getEndTime() - { - return $this->endTime; - } - public function setResponseBodyHtml($responseBodyHtml) - { - $this->responseBodyHtml = $responseBodyHtml; - } - public function getResponseBodyHtml() - { - return $this->responseBodyHtml; - } - public function setResponseBodyPlainText($responseBodyPlainText) - { - $this->responseBodyPlainText = $responseBodyPlainText; - } - public function getResponseBodyPlainText() - { - return $this->responseBodyPlainText; - } - public function setResponseSubject($responseSubject) - { - $this->responseSubject = $responseSubject; - } - public function getResponseSubject() - { - return $this->responseSubject; - } - public function setRestrictToContacts($restrictToContacts) - { - $this->restrictToContacts = $restrictToContacts; - } - public function getRestrictToContacts() - { - return $this->restrictToContacts; - } - public function setRestrictToDomain($restrictToDomain) - { - $this->restrictToDomain = $restrictToDomain; - } - public function getRestrictToDomain() - { - return $this->restrictToDomain; - } - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } - public function getStartTime() - { - return $this->startTime; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/WatchRequest.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/WatchRequest.php deleted file mode 100644 index 5fa9144..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/WatchRequest.php +++ /dev/null @@ -1,49 +0,0 @@ -labelFilterAction = $labelFilterAction; - } - public function getLabelFilterAction() - { - return $this->labelFilterAction; - } - public function setLabelIds($labelIds) - { - $this->labelIds = $labelIds; - } - public function getLabelIds() - { - return $this->labelIds; - } - public function setTopicName($topicName) - { - $this->topicName = $topicName; - } - public function getTopicName() - { - return $this->topicName; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/AccessToken/Revoke.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/AccessToken/Revoke.php deleted file mode 100644 index 29eb3fb..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/AccessToken/Revoke.php +++ /dev/null @@ -1,78 +0,0 @@ -http = $http; - } - - /** - * Revoke an OAuth2 access token or refresh token. This method will revoke the current access - * token, if a token isn't provided. - * - * @param string|array $token The token (access token or a refresh token) that should be revoked. - * @return boolean Returns True if the revocation was successful, otherwise False. - */ - public function revokeToken($token) - { - if (is_array($token)) { - if (isset($token['refresh_token'])) { - $token = $token['refresh_token']; - } else { - $token = $token['access_token']; - } - } - - $body = Psr7\stream_for(http_build_query(array('token' => $token))); - $request = new Request( - 'POST', - Google_Client::OAUTH2_REVOKE_URI, - [ - 'Cache-Control' => 'no-store', - 'Content-Type' => 'application/x-www-form-urlencoded', - ], - $body - ); - - $httpHandler = HttpHandlerFactory::build($this->http); - - $response = $httpHandler($request); - - return $response->getStatusCode() == 200; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/AccessToken/Verify.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/AccessToken/Verify.php deleted file mode 100644 index bc0afcb..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/AccessToken/Verify.php +++ /dev/null @@ -1,273 +0,0 @@ -http = $http; - $this->cache = $cache; - $this->jwt = $jwt ?: $this->getJwtService(); - } - - /** - * Verifies an id token and returns the authenticated apiLoginTicket. - * Throws an exception if the id token is not valid. - * The audience parameter can be used to control which id tokens are - * accepted. By default, the id token must have been issued to this OAuth2 client. - * - * @param $audience - * @return array the token payload, if successful - */ - public function verifyIdToken($idToken, $audience = null) - { - if (empty($idToken)) { - throw new LogicException('id_token cannot be null'); - } - - // set phpseclib constants if applicable - $this->setPhpsecConstants(); - - // Check signature - $certs = $this->getFederatedSignOnCerts(); - foreach ($certs as $cert) { - $bigIntClass = $this->getBigIntClass(); - $rsaClass = $this->getRsaClass(); - $modulus = new $bigIntClass($this->jwt->urlsafeB64Decode($cert['n']), 256); - $exponent = new $bigIntClass($this->jwt->urlsafeB64Decode($cert['e']), 256); - - $rsa = new $rsaClass(); - $rsa->loadKey(array('n' => $modulus, 'e' => $exponent)); - - try { - $payload = $this->jwt->decode( - $idToken, - $rsa->getPublicKey(), - array('RS256') - ); - - if (property_exists($payload, 'aud')) { - if ($audience && $payload->aud != $audience) { - return false; - } - } - - // support HTTP and HTTPS issuers - // @see https://developers.google.com/identity/sign-in/web/backend-auth - $issuers = array(self::OAUTH2_ISSUER, self::OAUTH2_ISSUER_HTTPS); - if (!isset($payload->iss) || !in_array($payload->iss, $issuers)) { - return false; - } - - return (array) $payload; - } catch (ExpiredException $e) { - return false; - } catch (ExpiredExceptionV3 $e) { - return false; - } catch (SignatureInvalidException $e) { - // continue - } catch (DomainException $e) { - // continue - } - } - - return false; - } - - private function getCache() - { - return $this->cache; - } - - /** - * Retrieve and cache a certificates file. - * - * @param $url string location - * @throws Google_Exception - * @return array certificates - */ - private function retrieveCertsFromLocation($url) - { - // If we're retrieving a local file, just grab it. - if (0 !== strpos($url, 'http')) { - if (!$file = file_get_contents($url)) { - throw new Google_Exception( - "Failed to retrieve verification certificates: '" . - $url . "'." - ); - } - - return json_decode($file, true); - } - - $response = $this->http->get($url); - - if ($response->getStatusCode() == 200) { - return json_decode((string) $response->getBody(), true); - } - throw new Google_Exception( - sprintf( - 'Failed to retrieve verification certificates: "%s".', - $response->getBody()->getContents() - ), - $response->getStatusCode() - ); - } - - // Gets federated sign-on certificates to use for verifying identity tokens. - // Returns certs as array structure, where keys are key ids, and values - // are PEM encoded certificates. - private function getFederatedSignOnCerts() - { - $certs = null; - if ($cache = $this->getCache()) { - $cacheItem = $cache->getItem('federated_signon_certs_v3'); - $certs = $cacheItem->get(); - } - - - if (!$certs) { - $certs = $this->retrieveCertsFromLocation( - self::FEDERATED_SIGNON_CERT_URL - ); - - if ($cache) { - $cacheItem->expiresAt(new DateTime('+1 hour')); - $cacheItem->set($certs); - $cache->save($cacheItem); - } - } - - if (!isset($certs['keys'])) { - throw new InvalidArgumentException( - 'federated sign-on certs expects "keys" to be set' - ); - } - - return $certs['keys']; - } - - private function getJwtService() - { - $jwtClass = 'JWT'; - if (class_exists('\Firebase\JWT\JWT')) { - $jwtClass = 'Firebase\JWT\JWT'; - } - - if (property_exists($jwtClass, 'leeway') && $jwtClass::$leeway < 1) { - // Ensures JWT leeway is at least 1 - // @see https://github.com/google/google-api-php-client/issues/827 - $jwtClass::$leeway = 1; - } - - return new $jwtClass; - } - - private function getRsaClass() - { - if (class_exists('phpseclib\Crypt\RSA')) { - return 'phpseclib\Crypt\RSA'; - } - - return 'Crypt_RSA'; - } - - private function getBigIntClass() - { - if (class_exists('phpseclib\Math\BigInteger')) { - return 'phpseclib\Math\BigInteger'; - } - - return 'Math_BigInteger'; - } - - private function getOpenSslConstant() - { - if (class_exists('phpseclib\Crypt\RSA')) { - return 'phpseclib\Crypt\RSA::MODE_OPENSSL'; - } - - if (class_exists('Crypt_RSA')) { - return 'CRYPT_RSA_MODE_OPENSSL'; - } - - throw new \Exception('Cannot find RSA class'); - } - - /** - * phpseclib calls "phpinfo" by default, which requires special - * whitelisting in the AppEngine VM environment. This function - * sets constants to bypass the need for phpseclib to check phpinfo - * - * @see phpseclib/Math/BigInteger - * @see https://github.com/GoogleCloudPlatform/getting-started-php/issues/85 - */ - private function setPhpsecConstants() - { - if (filter_var(getenv('GAE_VM'), FILTER_VALIDATE_BOOLEAN)) { - if (!defined('MATH_BIGINTEGER_OPENSSL_ENABLED')) { - define('MATH_BIGINTEGER_OPENSSL_ENABLED', true); - } - if (!defined('CRYPT_RSA_MODE')) { - define('CRYPT_RSA_MODE', constant($this->getOpenSslConstant())); - } - } - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/AuthHandler/AuthHandlerFactory.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/AuthHandler/AuthHandlerFactory.php deleted file mode 100644 index f1a3229..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/AuthHandler/AuthHandlerFactory.php +++ /dev/null @@ -1,42 +0,0 @@ -cache = $cache; - $this->cacheConfig = $cacheConfig; - } - - public function attachCredentials( - ClientInterface $http, - CredentialsLoader $credentials, - callable $tokenCallback = null - ) { - // use the provided cache - if ($this->cache) { - $credentials = new FetchAuthTokenCache( - $credentials, - $this->cacheConfig, - $this->cache - ); - } - // if we end up needing to make an HTTP request to retrieve credentials, we - // can use our existing one, but we need to throw exceptions so the error - // bubbles up. - $authHttp = $this->createAuthHttp($http); - $authHttpHandler = HttpHandlerFactory::build($authHttp); - $subscriber = new AuthTokenSubscriber( - $credentials, - $authHttpHandler, - $tokenCallback - ); - - $http->setDefaultOption('auth', 'google_auth'); - $http->getEmitter()->attach($subscriber); - - return $http; - } - - public function attachToken(ClientInterface $http, array $token, array $scopes) - { - $tokenFunc = function ($scopes) use ($token) { - return $token['access_token']; - }; - - $subscriber = new ScopedAccessTokenSubscriber( - $tokenFunc, - $scopes, - $this->cacheConfig, - $this->cache - ); - - $http->setDefaultOption('auth', 'scoped'); - $http->getEmitter()->attach($subscriber); - - return $http; - } - - public function attachKey(ClientInterface $http, $key) - { - $subscriber = new SimpleSubscriber(['key' => $key]); - - $http->setDefaultOption('auth', 'simple'); - $http->getEmitter()->attach($subscriber); - - return $http; - } - - private function createAuthHttp(ClientInterface $http) - { - return new Client( - [ - 'base_url' => $http->getBaseUrl(), - 'defaults' => [ - 'exceptions' => true, - 'verify' => $http->getDefaultOption('verify'), - 'proxy' => $http->getDefaultOption('proxy'), - ] - ] - ); - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/AuthHandler/Guzzle6AuthHandler.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/AuthHandler/Guzzle6AuthHandler.php deleted file mode 100644 index fcdfb3b..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/AuthHandler/Guzzle6AuthHandler.php +++ /dev/null @@ -1,106 +0,0 @@ -cache = $cache; - $this->cacheConfig = $cacheConfig; - } - - public function attachCredentials( - ClientInterface $http, - CredentialsLoader $credentials, - callable $tokenCallback = null - ) { - // use the provided cache - if ($this->cache) { - $credentials = new FetchAuthTokenCache( - $credentials, - $this->cacheConfig, - $this->cache - ); - } - // if we end up needing to make an HTTP request to retrieve credentials, we - // can use our existing one, but we need to throw exceptions so the error - // bubbles up. - $authHttp = $this->createAuthHttp($http); - $authHttpHandler = HttpHandlerFactory::build($authHttp); - $middleware = new AuthTokenMiddleware( - $credentials, - $authHttpHandler, - $tokenCallback - ); - - $config = $http->getConfig(); - $config['handler']->remove('google_auth'); - $config['handler']->push($middleware, 'google_auth'); - $config['auth'] = 'google_auth'; - $http = new Client($config); - - return $http; - } - - public function attachToken(ClientInterface $http, array $token, array $scopes) - { - $tokenFunc = function ($scopes) use ($token) { - return $token['access_token']; - }; - - $middleware = new ScopedAccessTokenMiddleware( - $tokenFunc, - $scopes, - $this->cacheConfig, - $this->cache - ); - - $config = $http->getConfig(); - $config['handler']->remove('google_auth'); - $config['handler']->push($middleware, 'google_auth'); - $config['auth'] = 'scoped'; - $http = new Client($config); - - return $http; - } - - public function attachKey(ClientInterface $http, $key) - { - $middleware = new SimpleMiddleware(['key' => $key]); - - $config = $http->getConfig(); - $config['handler']->remove('google_auth'); - $config['handler']->push($middleware, 'google_auth'); - $config['auth'] = 'simple'; - $http = new Client($config); - - return $http; - } - - private function createAuthHttp(ClientInterface $http) - { - return new Client( - [ - 'base_uri' => $http->getConfig('base_uri'), - 'exceptions' => true, - 'verify' => $http->getConfig('verify'), - 'proxy' => $http->getConfig('proxy'), - ] - ); - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Client.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Client.php deleted file mode 100644 index 6f1fcfd..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Client.php +++ /dev/null @@ -1,1185 +0,0 @@ -config = array_merge( - [ - 'application_name' => '', - - // Don't change these unless you're working against a special development - // or testing environment. - 'base_path' => self::API_BASE_PATH, - - // https://developers.google.com/console - 'client_id' => '', - 'client_secret' => '', - 'redirect_uri' => null, - 'state' => null, - - // Simple API access key, also from the API console. Ensure you get - // a Server key, and not a Browser key. - 'developer_key' => '', - - // For use with Google Cloud Platform - // fetch the ApplicationDefaultCredentials, if applicable - // @see https://developers.google.com/identity/protocols/application-default-credentials - 'use_application_default_credentials' => false, - 'signing_key' => null, - 'signing_algorithm' => null, - 'subject' => null, - - // Other OAuth2 parameters. - 'hd' => '', - 'prompt' => '', - 'openid.realm' => '', - 'include_granted_scopes' => null, - 'login_hint' => '', - 'request_visible_actions' => '', - 'access_type' => 'online', - 'approval_prompt' => 'auto', - - // Task Runner retry configuration - // @see Google_Task_Runner - 'retry' => array(), - 'retry_map' => null, - - // cache config for downstream auth caching - 'cache_config' => [], - - // function to be called when an access token is fetched - // follows the signature function ($cacheKey, $accessToken) - 'token_callback' => null, - - // Service class used in Google_Client::verifyIdToken. - // Explicitly pass this in to avoid setting JWT::$leeway - 'jwt' => null, - - // Setting api_format_v2 will return more detailed error messages - // from certain APIs. - 'api_format_v2' => false - ], - $config - ); - } - - /** - * Get a string containing the version of the library. - * - * @return string - */ - public function getLibraryVersion() - { - return self::LIBVER; - } - - /** - * For backwards compatibility - * alias for fetchAccessTokenWithAuthCode - * - * @param $code string code from accounts.google.com - * @return array access token - * @deprecated - */ - public function authenticate($code) - { - return $this->fetchAccessTokenWithAuthCode($code); - } - - /** - * Attempt to exchange a code for an valid authentication token. - * Helper wrapped around the OAuth 2.0 implementation. - * - * @param $code string code from accounts.google.com - * @return array access token - */ - public function fetchAccessTokenWithAuthCode($code) - { - if (strlen($code) == 0) { - throw new InvalidArgumentException("Invalid code"); - } - - $auth = $this->getOAuth2Service(); - $auth->setCode($code); - $auth->setRedirectUri($this->getRedirectUri()); - - $httpHandler = HttpHandlerFactory::build($this->getHttpClient()); - $creds = $auth->fetchAuthToken($httpHandler); - if ($creds && isset($creds['access_token'])) { - $creds['created'] = time(); - $this->setAccessToken($creds); - } - - return $creds; - } - - /** - * For backwards compatibility - * alias for fetchAccessTokenWithAssertion - * - * @return array access token - * @deprecated - */ - public function refreshTokenWithAssertion() - { - return $this->fetchAccessTokenWithAssertion(); - } - - /** - * Fetches a fresh access token with a given assertion token. - * @param ClientInterface $authHttp optional. - * @return array access token - */ - public function fetchAccessTokenWithAssertion(ClientInterface $authHttp = null) - { - if (!$this->isUsingApplicationDefaultCredentials()) { - throw new DomainException( - 'set the JSON service account credentials using' - . ' Google_Client::setAuthConfig or set the path to your JSON file' - . ' with the "GOOGLE_APPLICATION_CREDENTIALS" environment variable' - . ' and call Google_Client::useApplicationDefaultCredentials to' - . ' refresh a token with assertion.' - ); - } - - $this->getLogger()->log( - 'info', - 'OAuth2 access token refresh with Signed JWT assertion grants.' - ); - - $credentials = $this->createApplicationDefaultCredentials(); - - $httpHandler = HttpHandlerFactory::build($authHttp); - $creds = $credentials->fetchAuthToken($httpHandler); - if ($creds && isset($creds['access_token'])) { - $creds['created'] = time(); - $this->setAccessToken($creds); - } - - return $creds; - } - - /** - * For backwards compatibility - * alias for fetchAccessTokenWithRefreshToken - * - * @param string $refreshToken - * @return array access token - */ - public function refreshToken($refreshToken) - { - return $this->fetchAccessTokenWithRefreshToken($refreshToken); - } - - /** - * Fetches a fresh OAuth 2.0 access token with the given refresh token. - * @param string $refreshToken - * @return array access token - */ - public function fetchAccessTokenWithRefreshToken($refreshToken = null) - { - if (null === $refreshToken) { - if (!isset($this->token['refresh_token'])) { - throw new LogicException( - 'refresh token must be passed in or set as part of setAccessToken' - ); - } - $refreshToken = $this->token['refresh_token']; - } - $this->getLogger()->info('OAuth2 access token refresh'); - $auth = $this->getOAuth2Service(); - $auth->setRefreshToken($refreshToken); - - $httpHandler = HttpHandlerFactory::build($this->getHttpClient()); - $creds = $auth->fetchAuthToken($httpHandler); - if ($creds && isset($creds['access_token'])) { - $creds['created'] = time(); - if (!isset($creds['refresh_token'])) { - $creds['refresh_token'] = $refreshToken; - } - $this->setAccessToken($creds); - } - - return $creds; - } - - /** - * Create a URL to obtain user authorization. - * The authorization endpoint allows the user to first - * authenticate, and then grant/deny the access request. - * @param string|array $scope The scope is expressed as an array or list of space-delimited strings. - * @return string - */ - public function createAuthUrl($scope = null) - { - if (empty($scope)) { - $scope = $this->prepareScopes(); - } - if (is_array($scope)) { - $scope = implode(' ', $scope); - } - - // only accept one of prompt or approval_prompt - $approvalPrompt = $this->config['prompt'] - ? null - : $this->config['approval_prompt']; - - // include_granted_scopes should be string "true", string "false", or null - $includeGrantedScopes = $this->config['include_granted_scopes'] === null - ? null - : var_export($this->config['include_granted_scopes'], true); - - $params = array_filter( - [ - 'access_type' => $this->config['access_type'], - 'approval_prompt' => $approvalPrompt, - 'hd' => $this->config['hd'], - 'include_granted_scopes' => $includeGrantedScopes, - 'login_hint' => $this->config['login_hint'], - 'openid.realm' => $this->config['openid.realm'], - 'prompt' => $this->config['prompt'], - 'response_type' => 'code', - 'scope' => $scope, - 'state' => $this->config['state'], - ] - ); - - // If the list of scopes contains plus.login, add request_visible_actions - // to auth URL. - $rva = $this->config['request_visible_actions']; - if (strlen($rva) > 0 && false !== strpos($scope, 'plus.login')) { - $params['request_visible_actions'] = $rva; - } - - $auth = $this->getOAuth2Service(); - - return (string) $auth->buildFullAuthorizationUri($params); - } - - /** - * Adds auth listeners to the HTTP client based on the credentials - * set in the Google API Client object - * - * @param GuzzleHttp\ClientInterface $http the http client object. - * @return GuzzleHttp\ClientInterface the http client object - */ - public function authorize(ClientInterface $http = null) - { - $credentials = null; - $token = null; - $scopes = null; - if (null === $http) { - $http = $this->getHttpClient(); - } - - // These conditionals represent the decision tree for authentication - // 1. Check for Application Default Credentials - // 2. Check for API Key - // 3a. Check for an Access Token - // 3b. If access token exists but is expired, try to refresh it - if ($this->isUsingApplicationDefaultCredentials()) { - $credentials = $this->createApplicationDefaultCredentials(); - } elseif ($token = $this->getAccessToken()) { - $scopes = $this->prepareScopes(); - // add refresh subscriber to request a new token - if (isset($token['refresh_token']) && $this->isAccessTokenExpired()) { - $credentials = $this->createUserRefreshCredentials( - $scopes, - $token['refresh_token'] - ); - } - } - - $authHandler = $this->getAuthHandler(); - - if ($credentials) { - $callback = $this->config['token_callback']; - $http = $authHandler->attachCredentials($http, $credentials, $callback); - } elseif ($token) { - $http = $authHandler->attachToken($http, $token, (array) $scopes); - } elseif ($key = $this->config['developer_key']) { - $http = $authHandler->attachKey($http, $key); - } - - return $http; - } - - /** - * Set the configuration to use application default credentials for - * authentication - * - * @see https://developers.google.com/identity/protocols/application-default-credentials - * @param boolean $useAppCreds - */ - public function useApplicationDefaultCredentials($useAppCreds = true) - { - $this->config['use_application_default_credentials'] = $useAppCreds; - } - - /** - * To prevent useApplicationDefaultCredentials from inappropriately being - * called in a conditional - * - * @see https://developers.google.com/identity/protocols/application-default-credentials - */ - public function isUsingApplicationDefaultCredentials() - { - return $this->config['use_application_default_credentials']; - } - - /** - * Set the access token used for requests. - * - * Note that at the time requests are sent, tokens are cached. A token will be - * cached for each combination of service and authentication scopes. If a - * cache pool is not provided, creating a new instance of the client will - * allow modification of access tokens. If a persistent cache pool is - * provided, in order to change the access token, you must clear the cached - * token by calling `$client->getCache()->clear()`. (Use caution in this case, - * as calling `clear()` will remove all cache items, including any items not - * related to Google API PHP Client.) - * - * @param string|array $token - * @throws InvalidArgumentException - */ - public function setAccessToken($token) - { - if (is_string($token)) { - if ($json = json_decode($token, true)) { - $token = $json; - } else { - // assume $token is just the token string - $token = array( - 'access_token' => $token, - ); - } - } - if ($token == null) { - throw new InvalidArgumentException('invalid json token'); - } - if (!isset($token['access_token'])) { - throw new InvalidArgumentException("Invalid token format"); - } - $this->token = $token; - } - - public function getAccessToken() - { - return $this->token; - } - - /** - * @return string|null - */ - public function getRefreshToken() - { - if (isset($this->token['refresh_token'])) { - return $this->token['refresh_token']; - } - - return null; - } - - /** - * Returns if the access_token is expired. - * @return bool Returns True if the access_token is expired. - */ - public function isAccessTokenExpired() - { - if (!$this->token) { - return true; - } - - $created = 0; - if (isset($this->token['created'])) { - $created = $this->token['created']; - } elseif (isset($this->token['id_token'])) { - // check the ID token for "iat" - // signature verification is not required here, as we are just - // using this for convenience to save a round trip request - // to the Google API server - $idToken = $this->token['id_token']; - if (substr_count($idToken, '.') == 2) { - $parts = explode('.', $idToken); - $payload = json_decode(base64_decode($parts[1]), true); - if ($payload && isset($payload['iat'])) { - $created = $payload['iat']; - } - } - } - - // If the token is set to expire in the next 30 seconds. - return ($created + ($this->token['expires_in'] - 30)) < time(); - } - - /** - * @deprecated See UPGRADING.md for more information - */ - public function getAuth() - { - throw new BadMethodCallException( - 'This function no longer exists. See UPGRADING.md for more information' - ); - } - - /** - * @deprecated See UPGRADING.md for more information - */ - public function setAuth($auth) - { - throw new BadMethodCallException( - 'This function no longer exists. See UPGRADING.md for more information' - ); - } - - /** - * Set the OAuth 2.0 Client ID. - * @param string $clientId - */ - public function setClientId($clientId) - { - $this->config['client_id'] = $clientId; - } - - public function getClientId() - { - return $this->config['client_id']; - } - - /** - * Set the OAuth 2.0 Client Secret. - * @param string $clientSecret - */ - public function setClientSecret($clientSecret) - { - $this->config['client_secret'] = $clientSecret; - } - - public function getClientSecret() - { - return $this->config['client_secret']; - } - - /** - * Set the OAuth 2.0 Redirect URI. - * @param string $redirectUri - */ - public function setRedirectUri($redirectUri) - { - $this->config['redirect_uri'] = $redirectUri; - } - - public function getRedirectUri() - { - return $this->config['redirect_uri']; - } - - /** - * Set OAuth 2.0 "state" parameter to achieve per-request customization. - * @see http://tools.ietf.org/html/draft-ietf-oauth-v2-22#section-3.1.2.2 - * @param string $state - */ - public function setState($state) - { - $this->config['state'] = $state; - } - - /** - * @param string $accessType Possible values for access_type include: - * {@code "offline"} to request offline access from the user. - * {@code "online"} to request online access from the user. - */ - public function setAccessType($accessType) - { - $this->config['access_type'] = $accessType; - } - - /** - * @param string $approvalPrompt Possible values for approval_prompt include: - * {@code "force"} to force the approval UI to appear. - * {@code "auto"} to request auto-approval when possible. (This is the default value) - */ - public function setApprovalPrompt($approvalPrompt) - { - $this->config['approval_prompt'] = $approvalPrompt; - } - - /** - * Set the login hint, email address or sub id. - * @param string $loginHint - */ - public function setLoginHint($loginHint) - { - $this->config['login_hint'] = $loginHint; - } - - /** - * Set the application name, this is included in the User-Agent HTTP header. - * @param string $applicationName - */ - public function setApplicationName($applicationName) - { - $this->config['application_name'] = $applicationName; - } - - /** - * If 'plus.login' is included in the list of requested scopes, you can use - * this method to define types of app activities that your app will write. - * You can find a list of available types here: - * @link https://developers.google.com/+/api/moment-types - * - * @param array $requestVisibleActions Array of app activity types - */ - public function setRequestVisibleActions($requestVisibleActions) - { - if (is_array($requestVisibleActions)) { - $requestVisibleActions = implode(" ", $requestVisibleActions); - } - $this->config['request_visible_actions'] = $requestVisibleActions; - } - - /** - * Set the developer key to use, these are obtained through the API Console. - * @see http://code.google.com/apis/console-help/#generatingdevkeys - * @param string $developerKey - */ - public function setDeveloperKey($developerKey) - { - $this->config['developer_key'] = $developerKey; - } - - /** - * Set the hd (hosted domain) parameter streamlines the login process for - * Google Apps hosted accounts. By including the domain of the user, you - * restrict sign-in to accounts at that domain. - * @param $hd string - the domain to use. - */ - public function setHostedDomain($hd) - { - $this->config['hd'] = $hd; - } - - /** - * Set the prompt hint. Valid values are none, consent and select_account. - * If no value is specified and the user has not previously authorized - * access, then the user is shown a consent screen. - * @param $prompt string - * {@code "none"} Do not display any authentication or consent screens. Must not be specified with other values. - * {@code "consent"} Prompt the user for consent. - * {@code "select_account"} Prompt the user to select an account. - */ - public function setPrompt($prompt) - { - $this->config['prompt'] = $prompt; - } - - /** - * openid.realm is a parameter from the OpenID 2.0 protocol, not from OAuth - * 2.0. It is used in OpenID 2.0 requests to signify the URL-space for which - * an authentication request is valid. - * @param $realm string - the URL-space to use. - */ - public function setOpenidRealm($realm) - { - $this->config['openid.realm'] = $realm; - } - - /** - * If this is provided with the value true, and the authorization request is - * granted, the authorization will include any previous authorizations - * granted to this user/application combination for other scopes. - * @param $include boolean - the URL-space to use. - */ - public function setIncludeGrantedScopes($include) - { - $this->config['include_granted_scopes'] = $include; - } - - /** - * sets function to be called when an access token is fetched - * @param callable $tokenCallback - function ($cacheKey, $accessToken) - */ - public function setTokenCallback(callable $tokenCallback) - { - $this->config['token_callback'] = $tokenCallback; - } - - /** - * Revoke an OAuth2 access token or refresh token. This method will revoke the current access - * token, if a token isn't provided. - * - * @param string|array|null $token The token (access token or a refresh token) that should be revoked. - * @return boolean Returns True if the revocation was successful, otherwise False. - */ - public function revokeToken($token = null) - { - $tokenRevoker = new Google_AccessToken_Revoke( - $this->getHttpClient() - ); - - return $tokenRevoker->revokeToken($token ?: $this->getAccessToken()); - } - - /** - * Verify an id_token. This method will verify the current id_token, if one - * isn't provided. - * - * @throws LogicException If no token was provided and no token was set using `setAccessToken`. - * @throws UnexpectedValueException If the token is not a valid JWT. - * @param string|null $idToken The token (id_token) that should be verified. - * @return array|false Returns the token payload as an array if the verification was - * successful, false otherwise. - */ - public function verifyIdToken($idToken = null) - { - $tokenVerifier = new Google_AccessToken_Verify( - $this->getHttpClient(), - $this->getCache(), - $this->config['jwt'] - ); - - if (null === $idToken) { - $token = $this->getAccessToken(); - if (!isset($token['id_token'])) { - throw new LogicException( - 'id_token must be passed in or set as part of setAccessToken' - ); - } - $idToken = $token['id_token']; - } - - return $tokenVerifier->verifyIdToken( - $idToken, - $this->getClientId() - ); - } - - /** - * Set the scopes to be requested. Must be called before createAuthUrl(). - * Will remove any previously configured scopes. - * @param string|array $scope_or_scopes, ie: array('https://www.googleapis.com/auth/plus.login', - * 'https://www.googleapis.com/auth/moderator') - */ - public function setScopes($scope_or_scopes) - { - $this->requestedScopes = array(); - $this->addScope($scope_or_scopes); - } - - /** - * This functions adds a scope to be requested as part of the OAuth2.0 flow. - * Will append any scopes not previously requested to the scope parameter. - * A single string will be treated as a scope to request. An array of strings - * will each be appended. - * @param $scope_or_scopes string|array e.g. "profile" - */ - public function addScope($scope_or_scopes) - { - if (is_string($scope_or_scopes) && !in_array($scope_or_scopes, $this->requestedScopes)) { - $this->requestedScopes[] = $scope_or_scopes; - } else if (is_array($scope_or_scopes)) { - foreach ($scope_or_scopes as $scope) { - $this->addScope($scope); - } - } - } - - /** - * Returns the list of scopes requested by the client - * @return array the list of scopes - * - */ - public function getScopes() - { - return $this->requestedScopes; - } - - /** - * @return string|null - * @visible For Testing - */ - public function prepareScopes() - { - if (empty($this->requestedScopes)) { - return null; - } - - return implode(' ', $this->requestedScopes); - } - - /** - * Helper method to execute deferred HTTP requests. - * - * @param $request Psr\Http\Message\RequestInterface|Google_Http_Batch - * @throws Google_Exception - * @return object of the type of the expected class or Psr\Http\Message\ResponseInterface. - */ - public function execute(RequestInterface $request, $expectedClass = null) - { - $request = $request - ->withHeader( - 'User-Agent', - sprintf( - '%s %s%s', - $this->config['application_name'], - self::USER_AGENT_SUFFIX, - $this->getLibraryVersion() - ) - ) - ->withHeader( - 'x-goog-api-client', - sprintf( - 'gl-php/%s gdcl/%s', - phpversion(), - $this->getLibraryVersion() - ) - ); - - if ($this->config['api_format_v2']) { - $request = $request->withHeader( - 'X-GOOG-API-FORMAT-VERSION', - 2 - ); - } - - // call the authorize method - // this is where most of the grunt work is done - $http = $this->authorize(); - - return Google_Http_REST::execute( - $http, - $request, - $expectedClass, - $this->config['retry'], - $this->config['retry_map'] - ); - } - - /** - * Declare whether batch calls should be used. This may increase throughput - * by making multiple requests in one connection. - * - * @param boolean $useBatch True if the batch support should - * be enabled. Defaults to False. - */ - public function setUseBatch($useBatch) - { - // This is actually an alias for setDefer. - $this->setDefer($useBatch); - } - - /** - * Are we running in Google AppEngine? - * return bool - */ - public function isAppEngine() - { - return (isset($_SERVER['SERVER_SOFTWARE']) && - strpos($_SERVER['SERVER_SOFTWARE'], 'Google App Engine') !== false); - } - - public function setConfig($name, $value) - { - $this->config[$name] = $value; - } - - public function getConfig($name, $default = null) - { - return isset($this->config[$name]) ? $this->config[$name] : $default; - } - - /** - * For backwards compatibility - * alias for setAuthConfig - * - * @param string $file the configuration file - * @throws Google_Exception - * @deprecated - */ - public function setAuthConfigFile($file) - { - $this->setAuthConfig($file); - } - - /** - * Set the auth config from new or deprecated JSON config. - * This structure should match the file downloaded from - * the "Download JSON" button on in the Google Developer - * Console. - * @param string|array $config the configuration json - * @throws Google_Exception - */ - public function setAuthConfig($config) - { - if (is_string($config)) { - if (!file_exists($config)) { - throw new InvalidArgumentException(sprintf('file "%s" does not exist', $config)); - } - - $json = file_get_contents($config); - - if (!$config = json_decode($json, true)) { - throw new LogicException('invalid json for auth config'); - } - } - - $key = isset($config['installed']) ? 'installed' : 'web'; - if (isset($config['type']) && $config['type'] == 'service_account') { - // application default credentials - $this->useApplicationDefaultCredentials(); - - // set the information from the config - $this->setClientId($config['client_id']); - $this->config['client_email'] = $config['client_email']; - $this->config['signing_key'] = $config['private_key']; - $this->config['signing_algorithm'] = 'HS256'; - } elseif (isset($config[$key])) { - // old-style - $this->setClientId($config[$key]['client_id']); - $this->setClientSecret($config[$key]['client_secret']); - if (isset($config[$key]['redirect_uris'])) { - $this->setRedirectUri($config[$key]['redirect_uris'][0]); - } - } else { - // new-style - $this->setClientId($config['client_id']); - $this->setClientSecret($config['client_secret']); - if (isset($config['redirect_uris'])) { - $this->setRedirectUri($config['redirect_uris'][0]); - } - } - } - - /** - * Use when the service account has been delegated domain wide access. - * - * @param string $subject an email address account to impersonate - */ - public function setSubject($subject) - { - $this->config['subject'] = $subject; - } - - /** - * Declare whether making API calls should make the call immediately, or - * return a request which can be called with ->execute(); - * - * @param boolean $defer True if calls should not be executed right away. - */ - public function setDefer($defer) - { - $this->deferExecution = $defer; - } - - /** - * Whether or not to return raw requests - * @return boolean - */ - public function shouldDefer() - { - return $this->deferExecution; - } - - /** - * @return Google\Auth\OAuth2 implementation - */ - public function getOAuth2Service() - { - if (!isset($this->auth)) { - $this->auth = $this->createOAuth2Service(); - } - - return $this->auth; - } - - /** - * create a default google auth object - */ - protected function createOAuth2Service() - { - $auth = new OAuth2( - [ - 'clientId' => $this->getClientId(), - 'clientSecret' => $this->getClientSecret(), - 'authorizationUri' => self::OAUTH2_AUTH_URL, - 'tokenCredentialUri' => self::OAUTH2_TOKEN_URI, - 'redirectUri' => $this->getRedirectUri(), - 'issuer' => $this->config['client_id'], - 'signingKey' => $this->config['signing_key'], - 'signingAlgorithm' => $this->config['signing_algorithm'], - ] - ); - - return $auth; - } - - /** - * Set the Cache object - * @param Psr\Cache\CacheItemPoolInterface $cache - */ - public function setCache(CacheItemPoolInterface $cache) - { - $this->cache = $cache; - } - - /** - * @return Psr\Cache\CacheItemPoolInterface Cache implementation - */ - public function getCache() - { - if (!$this->cache) { - $this->cache = $this->createDefaultCache(); - } - - return $this->cache; - } - - /** - * @param array $cacheConfig - */ - public function setCacheConfig(array $cacheConfig) - { - $this->config['cache_config'] = $cacheConfig; - } - - /** - * Set the Logger object - * @param Psr\Log\LoggerInterface $logger - */ - public function setLogger(LoggerInterface $logger) - { - $this->logger = $logger; - } - - /** - * @return Psr\Log\LoggerInterface implementation - */ - public function getLogger() - { - if (!isset($this->logger)) { - $this->logger = $this->createDefaultLogger(); - } - - return $this->logger; - } - - protected function createDefaultLogger() - { - $logger = new Logger('google-api-php-client'); - if ($this->isAppEngine()) { - $handler = new MonologSyslogHandler('app', LOG_USER, Logger::NOTICE); - } else { - $handler = new MonologStreamHandler('php://stderr', Logger::NOTICE); - } - $logger->pushHandler($handler); - - return $logger; - } - - protected function createDefaultCache() - { - return new MemoryCacheItemPool; - } - - /** - * Set the Http Client object - * @param GuzzleHttp\ClientInterface $http - */ - public function setHttpClient(ClientInterface $http) - { - $this->http = $http; - } - - /** - * @return GuzzleHttp\ClientInterface implementation - */ - public function getHttpClient() - { - if (null === $this->http) { - $this->http = $this->createDefaultHttpClient(); - } - - return $this->http; - } - - /** - * Set the API format version. - * - * `true` will use V2, which may return more useful error messages. - * - * @param bool $value - */ - public function setApiFormatV2($value) - { - $this->config['api_format_v2'] = (bool) $value; - } - - protected function createDefaultHttpClient() - { - $options = ['exceptions' => false]; - - $version = ClientInterface::VERSION; - if ('5' === $version[0]) { - $options = [ - 'base_url' => $this->config['base_path'], - 'defaults' => $options, - ]; - if ($this->isAppEngine()) { - // set StreamHandler on AppEngine by default - $options['handler'] = new StreamHandler(); - $options['defaults']['verify'] = '/etc/ca-certificates.crt'; - } - } else { - // guzzle 6 - $options['base_uri'] = $this->config['base_path']; - } - - return new Client($options); - } - - private function createApplicationDefaultCredentials() - { - $scopes = $this->prepareScopes(); - $sub = $this->config['subject']; - $signingKey = $this->config['signing_key']; - - // create credentials using values supplied in setAuthConfig - if ($signingKey) { - $serviceAccountCredentials = array( - 'client_id' => $this->config['client_id'], - 'client_email' => $this->config['client_email'], - 'private_key' => $signingKey, - 'type' => 'service_account', - ); - $credentials = CredentialsLoader::makeCredentials($scopes, $serviceAccountCredentials); - } else { - $credentials = ApplicationDefaultCredentials::getCredentials($scopes); - } - - // for service account domain-wide authority (impersonating a user) - // @see https://developers.google.com/identity/protocols/OAuth2ServiceAccount - if ($sub) { - if (!$credentials instanceof ServiceAccountCredentials) { - throw new DomainException('domain-wide authority requires service account credentials'); - } - - $credentials->setSub($sub); - } - - return $credentials; - } - - protected function getAuthHandler() - { - // Be very careful using the cache, as the underlying auth library's cache - // implementation is naive, and the cache keys do not account for user - // sessions. - // - // @see https://github.com/google/google-api-php-client/issues/821 - return Google_AuthHandler_AuthHandlerFactory::build( - $this->getCache(), - $this->config['cache_config'] - ); - } - - private function createUserRefreshCredentials($scope, $refreshToken) - { - $creds = array_filter( - array( - 'client_id' => $this->getClientId(), - 'client_secret' => $this->getClientSecret(), - 'refresh_token' => $refreshToken, - ) - ); - - return new UserRefreshCredentials($scope, $creds); - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Collection.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Collection.php deleted file mode 100644 index df8d444..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Collection.php +++ /dev/null @@ -1,100 +0,0 @@ -{$this->collection_key}) - && is_array($this->{$this->collection_key})) { - reset($this->{$this->collection_key}); - } - } - - public function current() - { - $this->coerceType($this->key()); - if (is_array($this->{$this->collection_key})) { - return current($this->{$this->collection_key}); - } - } - - public function key() - { - if (isset($this->{$this->collection_key}) - && is_array($this->{$this->collection_key})) { - return key($this->{$this->collection_key}); - } - } - - public function next() - { - return next($this->{$this->collection_key}); - } - - public function valid() - { - $key = $this->key(); - return $key !== null && $key !== false; - } - - public function count() - { - if (!isset($this->{$this->collection_key})) { - return 0; - } - return count($this->{$this->collection_key}); - } - - public function offsetExists($offset) - { - if (!is_numeric($offset)) { - return parent::offsetExists($offset); - } - return isset($this->{$this->collection_key}[$offset]); - } - - public function offsetGet($offset) - { - if (!is_numeric($offset)) { - return parent::offsetGet($offset); - } - $this->coerceType($offset); - return $this->{$this->collection_key}[$offset]; - } - - public function offsetSet($offset, $value) - { - if (!is_numeric($offset)) { - return parent::offsetSet($offset, $value); - } - $this->{$this->collection_key}[$offset] = $value; - } - - public function offsetUnset($offset) - { - if (!is_numeric($offset)) { - return parent::offsetUnset($offset); - } - unset($this->{$this->collection_key}[$offset]); - } - - private function coerceType($offset) - { - $keyType = $this->keyType($this->collection_key); - if ($keyType && !is_object($this->{$this->collection_key}[$offset])) { - $this->{$this->collection_key}[$offset] = - new $keyType($this->{$this->collection_key}[$offset]); - } - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Http/Batch.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Http/Batch.php deleted file mode 100644 index a808f69..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Http/Batch.php +++ /dev/null @@ -1,253 +0,0 @@ -client = $client; - $this->boundary = $boundary ?: mt_rand(); - $this->rootUrl = rtrim($rootUrl ?: $this->client->getConfig('base_path'), '/'); - $this->batchPath = $batchPath ?: self::BATCH_PATH; - } - - public function add(RequestInterface $request, $key = false) - { - if (false == $key) { - $key = mt_rand(); - } - - $this->requests[$key] = $request; - } - - public function execute() - { - $body = ''; - $classes = array(); - $batchHttpTemplate = <<requests as $key => $request) { - $firstLine = sprintf( - '%s %s HTTP/%s', - $request->getMethod(), - $request->getRequestTarget(), - $request->getProtocolVersion() - ); - - $content = (string) $request->getBody(); - - $headers = ''; - foreach ($request->getHeaders() as $name => $values) { - $headers .= sprintf("%s:%s\r\n", $name, implode(', ', $values)); - } - - $body .= sprintf( - $batchHttpTemplate, - $this->boundary, - $key, - $firstLine, - $headers, - $content ? "\n".$content : '' - ); - - $classes['response-' . $key] = $request->getHeaderLine('X-Php-Expected-Class'); - } - - $body .= "--{$this->boundary}--"; - $body = trim($body); - $url = $this->rootUrl . '/' . $this->batchPath; - $headers = array( - 'Content-Type' => sprintf('multipart/mixed; boundary=%s', $this->boundary), - 'Content-Length' => strlen($body), - ); - - $request = new Request( - 'POST', - $url, - $headers, - $body - ); - - $response = $this->client->execute($request); - - return $this->parseResponse($response, $classes); - } - - public function parseResponse(ResponseInterface $response, $classes = array()) - { - $contentType = $response->getHeaderLine('content-type'); - $contentType = explode(';', $contentType); - $boundary = false; - foreach ($contentType as $part) { - $part = explode('=', $part, 2); - if (isset($part[0]) && 'boundary' == trim($part[0])) { - $boundary = $part[1]; - } - } - - $body = (string) $response->getBody(); - if (!empty($body)) { - $body = str_replace("--$boundary--", "--$boundary", $body); - $parts = explode("--$boundary", $body); - $responses = array(); - $requests = array_values($this->requests); - - foreach ($parts as $i => $part) { - $part = trim($part); - if (!empty($part)) { - list($rawHeaders, $part) = explode("\r\n\r\n", $part, 2); - $headers = $this->parseRawHeaders($rawHeaders); - - $status = substr($part, 0, strpos($part, "\n")); - $status = explode(" ", $status); - $status = $status[1]; - - list($partHeaders, $partBody) = $this->parseHttpResponse($part, false); - $response = new Response( - $status, - $partHeaders, - Psr7\stream_for($partBody) - ); - - // Need content id. - $key = $headers['content-id']; - - try { - $response = Google_Http_REST::decodeHttpResponse($response, $requests[$i-1]); - } catch (Google_Service_Exception $e) { - // Store the exception as the response, so successful responses - // can be processed. - $response = $e; - } - - $responses[$key] = $response; - } - } - - return $responses; - } - - return null; - } - - private function parseRawHeaders($rawHeaders) - { - $headers = array(); - $responseHeaderLines = explode("\r\n", $rawHeaders); - foreach ($responseHeaderLines as $headerLine) { - if ($headerLine && strpos($headerLine, ':') !== false) { - list($header, $value) = explode(': ', $headerLine, 2); - $header = strtolower($header); - if (isset($headers[$header])) { - $headers[$header] .= "\n" . $value; - } else { - $headers[$header] = $value; - } - } - } - return $headers; - } - - /** - * Used by the IO lib and also the batch processing. - * - * @param $respData - * @param $headerSize - * @return array - */ - private function parseHttpResponse($respData, $headerSize) - { - // check proxy header - foreach (self::$CONNECTION_ESTABLISHED_HEADERS as $established_header) { - if (stripos($respData, $established_header) !== false) { - // existed, remove it - $respData = str_ireplace($established_header, '', $respData); - // Subtract the proxy header size unless the cURL bug prior to 7.30.0 - // is present which prevented the proxy header size from being taken into - // account. - // @TODO look into this - // if (!$this->needsQuirk()) { - // $headerSize -= strlen($established_header); - // } - break; - } - } - - if ($headerSize) { - $responseBody = substr($respData, $headerSize); - $responseHeaders = substr($respData, 0, $headerSize); - } else { - $responseSegments = explode("\r\n\r\n", $respData, 2); - $responseHeaders = $responseSegments[0]; - $responseBody = isset($responseSegments[1]) ? $responseSegments[1] : - null; - } - - $responseHeaders = $this->parseRawHeaders($responseHeaders); - - return array($responseHeaders, $responseBody); - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Http/MediaFileUpload.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Http/MediaFileUpload.php deleted file mode 100644 index f4ee976..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Http/MediaFileUpload.php +++ /dev/null @@ -1,353 +0,0 @@ -client = $client; - $this->request = $request; - $this->mimeType = $mimeType; - $this->data = $data; - $this->resumable = $resumable; - $this->chunkSize = $chunkSize; - $this->progress = 0; - - $this->process(); - } - - /** - * Set the size of the file that is being uploaded. - * @param $size - int file size in bytes - */ - public function setFileSize($size) - { - $this->size = $size; - } - - /** - * Return the progress on the upload - * @return int progress in bytes uploaded. - */ - public function getProgress() - { - return $this->progress; - } - - /** - * Send the next part of the file to upload. - * @param [$chunk] the next set of bytes to send. If false will used $data passed - * at construct time. - */ - public function nextChunk($chunk = false) - { - $resumeUri = $this->getResumeUri(); - - if (false == $chunk) { - $chunk = substr($this->data, $this->progress, $this->chunkSize); - } - - $lastBytePos = $this->progress + strlen($chunk) - 1; - $headers = array( - 'content-range' => "bytes $this->progress-$lastBytePos/$this->size", - 'content-length' => strlen($chunk), - 'expect' => '', - ); - - $request = new Request( - 'PUT', - $resumeUri, - $headers, - Psr7\stream_for($chunk) - ); - - return $this->makePutRequest($request); - } - - /** - * Return the HTTP result code from the last call made. - * @return int code - */ - public function getHttpResultCode() - { - return $this->httpResultCode; - } - - /** - * Sends a PUT-Request to google drive and parses the response, - * setting the appropiate variables from the response() - * - * @param Google_Http_Request $httpRequest the Reuqest which will be send - * - * @return false|mixed false when the upload is unfinished or the decoded http response - * - */ - private function makePutRequest(RequestInterface $request) - { - $response = $this->client->execute($request); - $this->httpResultCode = $response->getStatusCode(); - - if (308 == $this->httpResultCode) { - // Track the amount uploaded. - $range = $response->getHeaderLine('range'); - if ($range) { - $range_array = explode('-', $range); - $this->progress = $range_array[1] + 1; - } - - // Allow for changing upload URLs. - $location = $response->getHeaderLine('location'); - if ($location) { - $this->resumeUri = $location; - } - - // No problems, but upload not complete. - return false; - } - - return Google_Http_REST::decodeHttpResponse($response, $this->request); - } - - /** - * Resume a previously unfinished upload - * @param $resumeUri the resume-URI of the unfinished, resumable upload. - */ - public function resume($resumeUri) - { - $this->resumeUri = $resumeUri; - $headers = array( - 'content-range' => "bytes */$this->size", - 'content-length' => 0, - ); - $httpRequest = new Request( - 'PUT', - $this->resumeUri, - $headers - ); - - return $this->makePutRequest($httpRequest); - } - - /** - * @return Psr\Http\Message\RequestInterface $request - * @visible for testing - */ - private function process() - { - $this->transformToUploadUrl(); - $request = $this->request; - - $postBody = ''; - $contentType = false; - - $meta = (string) $request->getBody(); - $meta = is_string($meta) ? json_decode($meta, true) : $meta; - - $uploadType = $this->getUploadType($meta); - $request = $request->withUri( - Uri::withQueryValue($request->getUri(), 'uploadType', $uploadType) - ); - - $mimeType = $this->mimeType ?: $request->getHeaderLine('content-type'); - - if (self::UPLOAD_RESUMABLE_TYPE == $uploadType) { - $contentType = $mimeType; - $postBody = is_string($meta) ? $meta : json_encode($meta); - } else if (self::UPLOAD_MEDIA_TYPE == $uploadType) { - $contentType = $mimeType; - $postBody = $this->data; - } else if (self::UPLOAD_MULTIPART_TYPE == $uploadType) { - // This is a multipart/related upload. - $boundary = $this->boundary ?: mt_rand(); - $boundary = str_replace('"', '', $boundary); - $contentType = 'multipart/related; boundary=' . $boundary; - $related = "--$boundary\r\n"; - $related .= "Content-Type: application/json; charset=UTF-8\r\n"; - $related .= "\r\n" . json_encode($meta) . "\r\n"; - $related .= "--$boundary\r\n"; - $related .= "Content-Type: $mimeType\r\n"; - $related .= "Content-Transfer-Encoding: base64\r\n"; - $related .= "\r\n" . base64_encode($this->data) . "\r\n"; - $related .= "--$boundary--"; - $postBody = $related; - } - - $request = $request->withBody(Psr7\stream_for($postBody)); - - if (isset($contentType) && $contentType) { - $request = $request->withHeader('content-type', $contentType); - } - - return $this->request = $request; - } - - /** - * Valid upload types: - * - resumable (UPLOAD_RESUMABLE_TYPE) - * - media (UPLOAD_MEDIA_TYPE) - * - multipart (UPLOAD_MULTIPART_TYPE) - * @param $meta - * @return string - * @visible for testing - */ - public function getUploadType($meta) - { - if ($this->resumable) { - return self::UPLOAD_RESUMABLE_TYPE; - } - - if (false == $meta && $this->data) { - return self::UPLOAD_MEDIA_TYPE; - } - - return self::UPLOAD_MULTIPART_TYPE; - } - - public function getResumeUri() - { - if (null === $this->resumeUri) { - $this->resumeUri = $this->fetchResumeUri(); - } - - return $this->resumeUri; - } - - private function fetchResumeUri() - { - $body = $this->request->getBody(); - if ($body) { - $headers = array( - 'content-type' => 'application/json; charset=UTF-8', - 'content-length' => $body->getSize(), - 'x-upload-content-type' => $this->mimeType, - 'x-upload-content-length' => $this->size, - 'expect' => '', - ); - foreach ($headers as $key => $value) { - $this->request = $this->request->withHeader($key, $value); - } - } - - $response = $this->client->execute($this->request, false); - $location = $response->getHeaderLine('location'); - $code = $response->getStatusCode(); - - if (200 == $code && true == $location) { - return $location; - } - - $message = $code; - $body = json_decode((string) $this->request->getBody(), true); - if (isset($body['error']['errors'])) { - $message .= ': '; - foreach ($body['error']['errors'] as $error) { - $message .= "{$error['domain']}, {$error['message']};"; - } - $message = rtrim($message, ';'); - } - - $error = "Failed to start the resumable upload (HTTP {$message})"; - $this->client->getLogger()->error($error); - - throw new Google_Exception($error); - } - - private function transformToUploadUrl() - { - $parts = parse_url((string) $this->request->getUri()); - if (!isset($parts['path'])) { - $parts['path'] = ''; - } - $parts['path'] = '/upload' . $parts['path']; - $uri = Uri::fromParts($parts); - $this->request = $this->request->withUri($uri); - } - - public function setChunkSize($chunkSize) - { - $this->chunkSize = $chunkSize; - } - - public function getRequest() - { - return $this->request; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Http/REST.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Http/REST.php deleted file mode 100644 index c2156a2..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Http/REST.php +++ /dev/null @@ -1,182 +0,0 @@ -getMethod(), (string) $request->getUri()), - array(get_class(), 'doExecute'), - array($client, $request, $expectedClass) - ); - - if (null !== $retryMap) { - $runner->setRetryMap($retryMap); - } - - return $runner->run(); - } - - /** - * Executes a Psr\Http\Message\RequestInterface - * - * @param Google_Client $client - * @param Psr\Http\Message\RequestInterface $request - * @return array decoded result - * @throws Google_Service_Exception on server side error (ie: not authenticated, - * invalid or malformed post body, invalid url) - */ - public static function doExecute(ClientInterface $client, RequestInterface $request, $expectedClass = null) - { - try { - $httpHandler = HttpHandlerFactory::build($client); - $response = $httpHandler($request); - } catch (RequestException $e) { - // if Guzzle throws an exception, catch it and handle the response - if (!$e->hasResponse()) { - throw $e; - } - - $response = $e->getResponse(); - // specific checking for Guzzle 5: convert to PSR7 response - if ($response instanceof \GuzzleHttp\Message\ResponseInterface) { - $response = new Response( - $response->getStatusCode(), - $response->getHeaders() ?: [], - $response->getBody(), - $response->getProtocolVersion(), - $response->getReasonPhrase() - ); - } - } - - return self::decodeHttpResponse($response, $request, $expectedClass); - } - - /** - * Decode an HTTP Response. - * @static - * @throws Google_Service_Exception - * @param Psr\Http\Message\RequestInterface $response The http response to be decoded. - * @param Psr\Http\Message\ResponseInterface $response - * @return mixed|null - */ - public static function decodeHttpResponse( - ResponseInterface $response, - RequestInterface $request = null, - $expectedClass = null - ) { - $code = $response->getStatusCode(); - - // retry strategy - if (intVal($code) >= 400) { - // if we errored out, it should be safe to grab the response body - $body = (string) $response->getBody(); - - // Check if we received errors, and add those to the Exception for convenience - throw new Google_Service_Exception($body, $code, null, self::getResponseErrors($body)); - } - - // Ensure we only pull the entire body into memory if the request is not - // of media type - $body = self::decodeBody($response, $request); - - if ($expectedClass = self::determineExpectedClass($expectedClass, $request)) { - $json = json_decode($body, true); - - return new $expectedClass($json); - } - - return $response; - } - - private static function decodeBody(ResponseInterface $response, RequestInterface $request = null) - { - if (self::isAltMedia($request)) { - // don't decode the body, it's probably a really long string - return ''; - } - - return (string) $response->getBody(); - } - - private static function determineExpectedClass($expectedClass, RequestInterface $request = null) - { - // "false" is used to explicitly prevent an expected class from being returned - if (false === $expectedClass) { - return null; - } - - // if we don't have a request, we just use what's passed in - if (null === $request) { - return $expectedClass; - } - - // return what we have in the request header if one was not supplied - return $expectedClass ?: $request->getHeaderLine('X-Php-Expected-Class'); - } - - private static function getResponseErrors($body) - { - $json = json_decode($body, true); - - if (isset($json['error']['errors'])) { - return $json['error']['errors']; - } - - return null; - } - - private static function isAltMedia(RequestInterface $request = null) - { - if ($request && $qs = $request->getUri()->getQuery()) { - parse_str($qs, $query); - if (isset($query['alt']) && $query['alt'] == 'media') { - return true; - } - } - - return false; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Model.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Model.php deleted file mode 100644 index 1826260..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Model.php +++ /dev/null @@ -1,317 +0,0 @@ -mapTypes($array); - } - $this->gapiInit(); - } - - /** - * Getter that handles passthrough access to the data array, and lazy object creation. - * @param string $key Property name. - * @return mixed The value if any, or null. - */ - public function __get($key) - { - $keyType = $this->keyType($key); - $keyDataType = $this->dataType($key); - if ($keyType && !isset($this->processed[$key])) { - if (isset($this->modelData[$key])) { - $val = $this->modelData[$key]; - } elseif ($keyDataType == 'array' || $keyDataType == 'map') { - $val = array(); - } else { - $val = null; - } - - if ($this->isAssociativeArray($val)) { - if ($keyDataType && 'map' == $keyDataType) { - foreach ($val as $arrayKey => $arrayItem) { - $this->modelData[$key][$arrayKey] = - new $keyType($arrayItem); - } - } else { - $this->modelData[$key] = new $keyType($val); - } - } else if (is_array($val)) { - $arrayObject = array(); - foreach ($val as $arrayIndex => $arrayItem) { - $arrayObject[$arrayIndex] = new $keyType($arrayItem); - } - $this->modelData[$key] = $arrayObject; - } - $this->processed[$key] = true; - } - - return isset($this->modelData[$key]) ? $this->modelData[$key] : null; - } - - /** - * Initialize this object's properties from an array. - * - * @param array $array Used to seed this object's properties. - * @return void - */ - protected function mapTypes($array) - { - // Hard initialise simple types, lazy load more complex ones. - foreach ($array as $key => $val) { - if ($keyType = $this->keyType($key)) { - $dataType = $this->dataType($key); - if ($dataType == 'array' || $dataType == 'map') { - $this->$key = array(); - foreach ($val as $itemKey => $itemVal) { - if ($itemVal instanceof $keyType) { - $this->{$key}[$itemKey] = $itemVal; - } else { - $this->{$key}[$itemKey] = new $keyType($itemVal); - } - } - } elseif ($val instanceof $keyType) { - $this->$key = $val; - } else { - $this->$key = new $keyType($val); - } - unset($array[$key]); - } elseif (property_exists($this, $key)) { - $this->$key = $val; - unset($array[$key]); - } elseif (property_exists($this, $camelKey = $this->camelCase($key))) { - // This checks if property exists as camelCase, leaving it in array as snake_case - // in case of backwards compatibility issues. - $this->$camelKey = $val; - } - } - $this->modelData = $array; - } - - /** - * Blank initialiser to be used in subclasses to do post-construction initialisation - this - * avoids the need for subclasses to have to implement the variadics handling in their - * constructors. - */ - protected function gapiInit() - { - return; - } - - /** - * Create a simplified object suitable for straightforward - * conversion to JSON. This is relatively expensive - * due to the usage of reflection, but shouldn't be called - * a whole lot, and is the most straightforward way to filter. - */ - public function toSimpleObject() - { - $object = new stdClass(); - - // Process all other data. - foreach ($this->modelData as $key => $val) { - $result = $this->getSimpleValue($val); - if ($result !== null) { - $object->$key = $this->nullPlaceholderCheck($result); - } - } - - // Process all public properties. - $reflect = new ReflectionObject($this); - $props = $reflect->getProperties(ReflectionProperty::IS_PUBLIC); - foreach ($props as $member) { - $name = $member->getName(); - $result = $this->getSimpleValue($this->$name); - if ($result !== null) { - $name = $this->getMappedName($name); - $object->$name = $this->nullPlaceholderCheck($result); - } - } - - return $object; - } - - /** - * Handle different types of values, primarily - * other objects and map and array data types. - */ - private function getSimpleValue($value) - { - if ($value instanceof Google_Model) { - return $value->toSimpleObject(); - } else if (is_array($value)) { - $return = array(); - foreach ($value as $key => $a_value) { - $a_value = $this->getSimpleValue($a_value); - if ($a_value !== null) { - $key = $this->getMappedName($key); - $return[$key] = $this->nullPlaceholderCheck($a_value); - } - } - return $return; - } - return $value; - } - - /** - * Check whether the value is the null placeholder and return true null. - */ - private function nullPlaceholderCheck($value) - { - if ($value === self::NULL_VALUE) { - return null; - } - return $value; - } - - /** - * If there is an internal name mapping, use that. - */ - private function getMappedName($key) - { - if (isset($this->internal_gapi_mappings, $this->internal_gapi_mappings[$key])) { - $key = $this->internal_gapi_mappings[$key]; - } - return $key; - } - - /** - * Returns true only if the array is associative. - * @param array $array - * @return bool True if the array is associative. - */ - protected function isAssociativeArray($array) - { - if (!is_array($array)) { - return false; - } - $keys = array_keys($array); - foreach ($keys as $key) { - if (is_string($key)) { - return true; - } - } - return false; - } - - /** - * Verify if $obj is an array. - * @throws Google_Exception Thrown if $obj isn't an array. - * @param array $obj Items that should be validated. - * @param string $method Method expecting an array as an argument. - */ - public function assertIsArray($obj, $method) - { - if ($obj && !is_array($obj)) { - throw new Google_Exception( - "Incorrect parameter type passed to $method(). Expected an array." - ); - } - } - - public function offsetExists($offset) - { - return isset($this->$offset) || isset($this->modelData[$offset]); - } - - public function offsetGet($offset) - { - return isset($this->$offset) ? - $this->$offset : - $this->__get($offset); - } - - public function offsetSet($offset, $value) - { - if (property_exists($this, $offset)) { - $this->$offset = $value; - } else { - $this->modelData[$offset] = $value; - $this->processed[$offset] = true; - } - } - - public function offsetUnset($offset) - { - unset($this->modelData[$offset]); - } - - protected function keyType($key) - { - $keyType = $key . "Type"; - - // ensure keyType is a valid class - if (property_exists($this, $keyType) && class_exists($this->$keyType)) { - return $this->$keyType; - } - } - - protected function dataType($key) - { - $dataType = $key . "DataType"; - - if (property_exists($this, $dataType)) { - return $this->$dataType; - } - } - - public function __isset($key) - { - return isset($this->modelData[$key]); - } - - public function __unset($key) - { - unset($this->modelData[$key]); - } - - /** - * Convert a string to camelCase - * @param string $value - * @return string - */ - private function camelCase($value) - { - $value = ucwords(str_replace(array('-', '_'), ' ', $value)); - $value = str_replace(' ', '', $value); - $value[0] = strtolower($value[0]); - return $value; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Service.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Service.php deleted file mode 100644 index d3fd3b4..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Service.php +++ /dev/null @@ -1,56 +0,0 @@ -client = $client; - } - - /** - * Return the associated Google_Client class. - * @return Google_Client - */ - public function getClient() - { - return $this->client; - } - - /** - * Create a new HTTP Batch handler for this service - * - * @return Google_Http_Batch - */ - public function createBatch() - { - return new Google_Http_Batch( - $this->client, - false, - $this->rootUrl, - $this->batchPath - ); - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Service/Exception.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Service/Exception.php deleted file mode 100644 index abfd3f7..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Service/Exception.php +++ /dev/null @@ -1,68 +0,0 @@ -= 0) { - parent::__construct($message, $code, $previous); - } else { - parent::__construct($message, $code); - } - - $this->errors = $errors; - } - - /** - * An example of the possible errors returned. - * - * { - * "domain": "global", - * "reason": "authError", - * "message": "Invalid Credentials", - * "locationType": "header", - * "location": "Authorization", - * } - * - * @return [{string, string}] List of errors return in an HTTP response or []. - */ - public function getErrors() - { - return $this->errors; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Service/Resource.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Service/Resource.php deleted file mode 100644 index 77070fc..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Service/Resource.php +++ /dev/null @@ -1,302 +0,0 @@ - array('type' => 'string', 'location' => 'query'), - 'fields' => array('type' => 'string', 'location' => 'query'), - 'trace' => array('type' => 'string', 'location' => 'query'), - 'userIp' => array('type' => 'string', 'location' => 'query'), - 'quotaUser' => array('type' => 'string', 'location' => 'query'), - 'data' => array('type' => 'string', 'location' => 'body'), - 'mimeType' => array('type' => 'string', 'location' => 'header'), - 'uploadType' => array('type' => 'string', 'location' => 'query'), - 'mediaUpload' => array('type' => 'complex', 'location' => 'query'), - 'prettyPrint' => array('type' => 'string', 'location' => 'query'), - ); - - /** @var string $rootUrl */ - private $rootUrl; - - /** @var Google_Client $client */ - private $client; - - /** @var string $serviceName */ - private $serviceName; - - /** @var string $servicePath */ - private $servicePath; - - /** @var string $resourceName */ - private $resourceName; - - /** @var array $methods */ - private $methods; - - public function __construct($service, $serviceName, $resourceName, $resource) - { - $this->rootUrl = $service->rootUrl; - $this->client = $service->getClient(); - $this->servicePath = $service->servicePath; - $this->serviceName = $serviceName; - $this->resourceName = $resourceName; - $this->methods = is_array($resource) && isset($resource['methods']) ? - $resource['methods'] : - array($resourceName => $resource); - } - - /** - * TODO: This function needs simplifying. - * @param $name - * @param $arguments - * @param $expectedClass - optional, the expected class name - * @return Google_Http_Request|expectedClass - * @throws Google_Exception - */ - public function call($name, $arguments, $expectedClass = null) - { - if (! isset($this->methods[$name])) { - $this->client->getLogger()->error( - 'Service method unknown', - array( - 'service' => $this->serviceName, - 'resource' => $this->resourceName, - 'method' => $name - ) - ); - - throw new Google_Exception( - "Unknown function: " . - "{$this->serviceName}->{$this->resourceName}->{$name}()" - ); - } - $method = $this->methods[$name]; - $parameters = $arguments[0]; - - // postBody is a special case since it's not defined in the discovery - // document as parameter, but we abuse the param entry for storing it. - $postBody = null; - if (isset($parameters['postBody'])) { - if ($parameters['postBody'] instanceof Google_Model) { - // In the cases the post body is an existing object, we want - // to use the smart method to create a simple object for - // for JSONification. - $parameters['postBody'] = $parameters['postBody']->toSimpleObject(); - } else if (is_object($parameters['postBody'])) { - // If the post body is another kind of object, we will try and - // wrangle it into a sensible format. - $parameters['postBody'] = - $this->convertToArrayAndStripNulls($parameters['postBody']); - } - $postBody = (array) $parameters['postBody']; - unset($parameters['postBody']); - } - - // TODO: optParams here probably should have been - // handled already - this may well be redundant code. - if (isset($parameters['optParams'])) { - $optParams = $parameters['optParams']; - unset($parameters['optParams']); - $parameters = array_merge($parameters, $optParams); - } - - if (!isset($method['parameters'])) { - $method['parameters'] = array(); - } - - $method['parameters'] = array_merge( - $this->stackParameters, - $method['parameters'] - ); - - foreach ($parameters as $key => $val) { - if ($key != 'postBody' && ! isset($method['parameters'][$key])) { - $this->client->getLogger()->error( - 'Service parameter unknown', - array( - 'service' => $this->serviceName, - 'resource' => $this->resourceName, - 'method' => $name, - 'parameter' => $key - ) - ); - throw new Google_Exception("($name) unknown parameter: '$key'"); - } - } - - foreach ($method['parameters'] as $paramName => $paramSpec) { - if (isset($paramSpec['required']) && - $paramSpec['required'] && - ! isset($parameters[$paramName]) - ) { - $this->client->getLogger()->error( - 'Service parameter missing', - array( - 'service' => $this->serviceName, - 'resource' => $this->resourceName, - 'method' => $name, - 'parameter' => $paramName - ) - ); - throw new Google_Exception("($name) missing required param: '$paramName'"); - } - if (isset($parameters[$paramName])) { - $value = $parameters[$paramName]; - $parameters[$paramName] = $paramSpec; - $parameters[$paramName]['value'] = $value; - unset($parameters[$paramName]['required']); - } else { - // Ensure we don't pass nulls. - unset($parameters[$paramName]); - } - } - - $this->client->getLogger()->info( - 'Service Call', - array( - 'service' => $this->serviceName, - 'resource' => $this->resourceName, - 'method' => $name, - 'arguments' => $parameters, - ) - ); - - // build the service uri - $url = $this->createRequestUri( - $method['path'], - $parameters - ); - - // NOTE: because we're creating the request by hand, - // and because the service has a rootUrl property - // the "base_uri" of the Http Client is not accounted for - $request = new Request( - $method['httpMethod'], - $url, - ['content-type' => 'application/json'], - $postBody ? json_encode($postBody) : '' - ); - - // support uploads - if (isset($parameters['data'])) { - $mimeType = isset($parameters['mimeType']) - ? $parameters['mimeType']['value'] - : 'application/octet-stream'; - $data = $parameters['data']['value']; - $upload = new Google_Http_MediaFileUpload($this->client, $request, $mimeType, $data); - - // pull down the modified request - $request = $upload->getRequest(); - } - - // if this is a media type, we will return the raw response - // rather than using an expected class - if (isset($parameters['alt']) && $parameters['alt']['value'] == 'media') { - $expectedClass = null; - } - - // if the client is marked for deferring, rather than - // execute the request, return the response - if ($this->client->shouldDefer()) { - // @TODO find a better way to do this - $request = $request - ->withHeader('X-Php-Expected-Class', $expectedClass); - - return $request; - } - - return $this->client->execute($request, $expectedClass); - } - - protected function convertToArrayAndStripNulls($o) - { - $o = (array) $o; - foreach ($o as $k => $v) { - if ($v === null) { - unset($o[$k]); - } elseif (is_object($v) || is_array($v)) { - $o[$k] = $this->convertToArrayAndStripNulls($o[$k]); - } - } - return $o; - } - - /** - * Parse/expand request parameters and create a fully qualified - * request uri. - * @static - * @param string $restPath - * @param array $params - * @return string $requestUrl - */ - public function createRequestUri($restPath, $params) - { - // Override the default servicePath address if the $restPath use a / - if ('/' == substr($restPath, 0, 1)) { - $requestUrl = substr($restPath, 1); - } else { - $requestUrl = $this->servicePath . $restPath; - } - - // code for leading slash - if ($this->rootUrl) { - if ('/' !== substr($this->rootUrl, -1) && '/' !== substr($requestUrl, 0, 1)) { - $requestUrl = '/' . $requestUrl; - } - $requestUrl = $this->rootUrl . $requestUrl; - } - $uriTemplateVars = array(); - $queryVars = array(); - foreach ($params as $paramName => $paramSpec) { - if ($paramSpec['type'] == 'boolean') { - $paramSpec['value'] = $paramSpec['value'] ? 'true' : 'false'; - } - if ($paramSpec['location'] == 'path') { - $uriTemplateVars[$paramName] = $paramSpec['value']; - } else if ($paramSpec['location'] == 'query') { - if (is_array($paramSpec['value'])) { - foreach ($paramSpec['value'] as $value) { - $queryVars[] = $paramName . '=' . rawurlencode(rawurldecode($value)); - } - } else { - $queryVars[] = $paramName . '=' . rawurlencode(rawurldecode($paramSpec['value'])); - } - } - } - - if (count($uriTemplateVars)) { - $uriTemplateParser = new Google_Utils_UriTemplate(); - $requestUrl = $uriTemplateParser->parse($requestUrl, $uriTemplateVars); - } - - if (count($queryVars)) { - $requestUrl .= '?' . implode('&', $queryVars); - } - - return $requestUrl; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Task/Runner.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Task/Runner.php deleted file mode 100644 index 2f25e99..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Task/Runner.php +++ /dev/null @@ -1,281 +0,0 @@ - self::TASK_RETRY_ALWAYS, - '503' => self::TASK_RETRY_ALWAYS, - 'rateLimitExceeded' => self::TASK_RETRY_ALWAYS, - 'userRateLimitExceeded' => self::TASK_RETRY_ALWAYS, - 6 => self::TASK_RETRY_ALWAYS, // CURLE_COULDNT_RESOLVE_HOST - 7 => self::TASK_RETRY_ALWAYS, // CURLE_COULDNT_CONNECT - 28 => self::TASK_RETRY_ALWAYS, // CURLE_OPERATION_TIMEOUTED - 35 => self::TASK_RETRY_ALWAYS, // CURLE_SSL_CONNECT_ERROR - 52 => self::TASK_RETRY_ALWAYS // CURLE_GOT_NOTHING - ]; - - /** - * Creates a new task runner with exponential backoff support. - * - * @param array $config The task runner config - * @param string $name The name of the current task (used for logging) - * @param callable $action The task to run and possibly retry - * @param array $arguments The task arguments - * @throws Google_Task_Exception when misconfigured - */ - public function __construct( - $config, - $name, - $action, - array $arguments = array() - ) { - if (isset($config['initial_delay'])) { - if ($config['initial_delay'] < 0) { - throw new Google_Task_Exception( - 'Task configuration `initial_delay` must not be negative.' - ); - } - - $this->delay = $config['initial_delay']; - } - - if (isset($config['max_delay'])) { - if ($config['max_delay'] <= 0) { - throw new Google_Task_Exception( - 'Task configuration `max_delay` must be greater than 0.' - ); - } - - $this->maxDelay = $config['max_delay']; - } - - if (isset($config['factor'])) { - if ($config['factor'] <= 0) { - throw new Google_Task_Exception( - 'Task configuration `factor` must be greater than 0.' - ); - } - - $this->factor = $config['factor']; - } - - if (isset($config['jitter'])) { - if ($config['jitter'] <= 0) { - throw new Google_Task_Exception( - 'Task configuration `jitter` must be greater than 0.' - ); - } - - $this->jitter = $config['jitter']; - } - - if (isset($config['retries'])) { - if ($config['retries'] < 0) { - throw new Google_Task_Exception( - 'Task configuration `retries` must not be negative.' - ); - } - $this->maxAttempts += $config['retries']; - } - - if (!is_callable($action)) { - throw new Google_Task_Exception( - 'Task argument `$action` must be a valid callable.' - ); - } - - $this->action = $action; - $this->arguments = $arguments; - } - - /** - * Checks if a retry can be attempted. - * - * @return boolean - */ - public function canAttempt() - { - return $this->attempts < $this->maxAttempts; - } - - /** - * Runs the task and (if applicable) automatically retries when errors occur. - * - * @return mixed - * @throws Google_Task_Retryable on failure when no retries are available. - */ - public function run() - { - while ($this->attempt()) { - try { - return call_user_func_array($this->action, $this->arguments); - } catch (Google_Service_Exception $exception) { - $allowedRetries = $this->allowedRetries( - $exception->getCode(), - $exception->getErrors() - ); - - if (!$this->canAttempt() || !$allowedRetries) { - throw $exception; - } - - if ($allowedRetries > 0) { - $this->maxAttempts = min( - $this->maxAttempts, - $this->attempts + $allowedRetries - ); - } - } - } - } - - /** - * Runs a task once, if possible. This is useful for bypassing the `run()` - * loop. - * - * NOTE: If this is not the first attempt, this function will sleep in - * accordance to the backoff configurations before running the task. - * - * @return boolean - */ - public function attempt() - { - if (!$this->canAttempt()) { - return false; - } - - if ($this->attempts > 0) { - $this->backOff(); - } - - $this->attempts++; - return true; - } - - /** - * Sleeps in accordance to the backoff configurations. - */ - private function backOff() - { - $delay = $this->getDelay(); - - usleep($delay * 1000000); - } - - /** - * Gets the delay (in seconds) for the current backoff period. - * - * @return float - */ - private function getDelay() - { - $jitter = $this->getJitter(); - $factor = $this->attempts > 1 ? $this->factor + $jitter : 1 + abs($jitter); - - return $this->delay = min($this->maxDelay, $this->delay * $factor); - } - - /** - * Gets the current jitter (random number between -$this->jitter and - * $this->jitter). - * - * @return float - */ - private function getJitter() - { - return $this->jitter * 2 * mt_rand() / mt_getrandmax() - $this->jitter; - } - - /** - * Gets the number of times the associated task can be retried. - * - * NOTE: -1 is returned if the task can be retried indefinitely - * - * @return integer - */ - public function allowedRetries($code, $errors = array()) - { - if (isset($this->retryMap[$code])) { - return $this->retryMap[$code]; - } - - if ( - !empty($errors) && - isset($errors[0]['reason'], $this->retryMap[$errors[0]['reason']]) - ) { - return $this->retryMap[$errors[0]['reason']]; - } - - return 0; - } - - public function setRetryMap($retryMap) - { - $this->retryMap = $retryMap; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Utils/UriTemplate.php b/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Utils/UriTemplate.php deleted file mode 100644 index e59fe9f..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Utils/UriTemplate.php +++ /dev/null @@ -1,333 +0,0 @@ - "reserved", - "/" => "segments", - "." => "dotprefix", - "#" => "fragment", - ";" => "semicolon", - "?" => "form", - "&" => "continuation" - ); - - /** - * @var reserved array - * These are the characters which should not be URL encoded in reserved - * strings. - */ - private $reserved = array( - "=", ",", "!", "@", "|", ":", "/", "?", "#", - "[", "]",'$', "&", "'", "(", ")", "*", "+", ";" - ); - private $reservedEncoded = array( - "%3D", "%2C", "%21", "%40", "%7C", "%3A", "%2F", "%3F", - "%23", "%5B", "%5D", "%24", "%26", "%27", "%28", "%29", - "%2A", "%2B", "%3B" - ); - - public function parse($string, array $parameters) - { - return $this->resolveNextSection($string, $parameters); - } - - /** - * This function finds the first matching {...} block and - * executes the replacement. It then calls itself to find - * subsequent blocks, if any. - */ - private function resolveNextSection($string, $parameters) - { - $start = strpos($string, "{"); - if ($start === false) { - return $string; - } - $end = strpos($string, "}"); - if ($end === false) { - return $string; - } - $string = $this->replace($string, $start, $end, $parameters); - return $this->resolveNextSection($string, $parameters); - } - - private function replace($string, $start, $end, $parameters) - { - // We know a data block will have {} round it, so we can strip that. - $data = substr($string, $start + 1, $end - $start - 1); - - // If the first character is one of the reserved operators, it effects - // the processing of the stream. - if (isset($this->operators[$data[0]])) { - $op = $this->operators[$data[0]]; - $data = substr($data, 1); - $prefix = ""; - $prefix_on_missing = false; - - switch ($op) { - case "reserved": - // Reserved means certain characters should not be URL encoded - $data = $this->replaceVars($data, $parameters, ",", null, true); - break; - case "fragment": - // Comma separated with fragment prefix. Bare values only. - $prefix = "#"; - $prefix_on_missing = true; - $data = $this->replaceVars($data, $parameters, ",", null, true); - break; - case "segments": - // Slash separated data. Bare values only. - $prefix = "/"; - $data =$this->replaceVars($data, $parameters, "/"); - break; - case "dotprefix": - // Dot separated data. Bare values only. - $prefix = "."; - $prefix_on_missing = true; - $data = $this->replaceVars($data, $parameters, "."); - break; - case "semicolon": - // Semicolon prefixed and separated. Uses the key name - $prefix = ";"; - $data = $this->replaceVars($data, $parameters, ";", "=", false, true, false); - break; - case "form": - // Standard URL format. Uses the key name - $prefix = "?"; - $data = $this->replaceVars($data, $parameters, "&", "="); - break; - case "continuation": - // Standard URL, but with leading ampersand. Uses key name. - $prefix = "&"; - $data = $this->replaceVars($data, $parameters, "&", "="); - break; - } - - // Add the initial prefix character if data is valid. - if ($data || ($data !== false && $prefix_on_missing)) { - $data = $prefix . $data; - } - - } else { - // If no operator we replace with the defaults. - $data = $this->replaceVars($data, $parameters); - } - // This is chops out the {...} and replaces with the new section. - return substr($string, 0, $start) . $data . substr($string, $end + 1); - } - - private function replaceVars( - $section, - $parameters, - $sep = ",", - $combine = null, - $reserved = false, - $tag_empty = false, - $combine_on_empty = true - ) { - if (strpos($section, ",") === false) { - // If we only have a single value, we can immediately process. - return $this->combine( - $section, - $parameters, - $sep, - $combine, - $reserved, - $tag_empty, - $combine_on_empty - ); - } else { - // If we have multiple values, we need to split and loop over them. - // Each is treated individually, then glued together with the - // separator character. - $vars = explode(",", $section); - return $this->combineList( - $vars, - $sep, - $parameters, - $combine, - $reserved, - false, // Never emit empty strings in multi-param replacements - $combine_on_empty - ); - } - } - - public function combine( - $key, - $parameters, - $sep, - $combine, - $reserved, - $tag_empty, - $combine_on_empty - ) { - $length = false; - $explode = false; - $skip_final_combine = false; - $value = false; - - // Check for length restriction. - if (strpos($key, ":") !== false) { - list($key, $length) = explode(":", $key); - } - - // Check for explode parameter. - if ($key[strlen($key) - 1] == "*") { - $explode = true; - $key = substr($key, 0, -1); - $skip_final_combine = true; - } - - // Define the list separator. - $list_sep = $explode ? $sep : ","; - - if (isset($parameters[$key])) { - $data_type = $this->getDataType($parameters[$key]); - switch ($data_type) { - case self::TYPE_SCALAR: - $value = $this->getValue($parameters[$key], $length); - break; - case self::TYPE_LIST: - $values = array(); - foreach ($parameters[$key] as $pkey => $pvalue) { - $pvalue = $this->getValue($pvalue, $length); - if ($combine && $explode) { - $values[$pkey] = $key . $combine . $pvalue; - } else { - $values[$pkey] = $pvalue; - } - } - $value = implode($list_sep, $values); - if ($value == '') { - return ''; - } - break; - case self::TYPE_MAP: - $values = array(); - foreach ($parameters[$key] as $pkey => $pvalue) { - $pvalue = $this->getValue($pvalue, $length); - if ($explode) { - $pkey = $this->getValue($pkey, $length); - $values[] = $pkey . "=" . $pvalue; // Explode triggers = combine. - } else { - $values[] = $pkey; - $values[] = $pvalue; - } - } - $value = implode($list_sep, $values); - if ($value == '') { - return false; - } - break; - } - } else if ($tag_empty) { - // If we are just indicating empty values with their key name, return that. - return $key; - } else { - // Otherwise we can skip this variable due to not being defined. - return false; - } - - if ($reserved) { - $value = str_replace($this->reservedEncoded, $this->reserved, $value); - } - - // If we do not need to include the key name, we just return the raw - // value. - if (!$combine || $skip_final_combine) { - return $value; - } - - // Else we combine the key name: foo=bar, if value is not the empty string. - return $key . ($value != '' || $combine_on_empty ? $combine . $value : ''); - } - - /** - * Return the type of a passed in value - */ - private function getDataType($data) - { - if (is_array($data)) { - reset($data); - if (key($data) !== 0) { - return self::TYPE_MAP; - } - return self::TYPE_LIST; - } - return self::TYPE_SCALAR; - } - - /** - * Utility function that merges multiple combine calls - * for multi-key templates. - */ - private function combineList( - $vars, - $sep, - $parameters, - $combine, - $reserved, - $tag_empty, - $combine_on_empty - ) { - $ret = array(); - foreach ($vars as $var) { - $response = $this->combine( - $var, - $parameters, - $sep, - $combine, - $reserved, - $tag_empty, - $combine_on_empty - ); - if ($response === false) { - continue; - } - $ret[] = $response; - } - return implode($sep, $ret); - } - - /** - * Utility function to encode and trim values - */ - private function getValue($value, $length) - { - if ($length) { - $value = substr($value, 0, $length); - } - $value = rawurlencode($value); - return $value; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/COPYING b/wp-content/plugins/wp-mail-smtp/vendor/google/auth/COPYING deleted file mode 100644 index b5d5055..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/COPYING +++ /dev/null @@ -1,202 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2015 Google Inc. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/LICENSE b/wp-content/plugins/wp-mail-smtp/vendor/google/auth/LICENSE deleted file mode 100644 index a148ba5..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/LICENSE +++ /dev/null @@ -1,203 +0,0 @@ -Apache License -Version 2.0, January 2004 -http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - -"License" shall mean the terms and conditions for use, reproduction, -and distribution as defined by Sections 1 through 9 of this document. - -"Licensor" shall mean the copyright owner or entity authorized by -the copyright owner that is granting the License. - -"Legal Entity" shall mean the union of the acting entity and all -other entities that control, are controlled by, or are under common -control with that entity. For the purposes of this definition, -"control" means (i) the power, direct or indirect, to cause the -direction or management of such entity, whether by contract or -otherwise, or (ii) ownership of fifty percent (50%) or more of the -outstanding shares, or (iii) beneficial ownership of such entity. - -"You" (or "Your") shall mean an individual or Legal Entity -exercising permissions granted by this License. - -"Source" form shall mean the preferred form for making modifications, -including but not limited to software source code, documentation -source, and configuration files. - -"Object" form shall mean any form resulting from mechanical -transformation or translation of a Source form, including but -not limited to compiled object code, generated documentation, -and conversions to other media types. - -"Work" shall mean the work of authorship, whether in Source or -Object form, made available under the License, as indicated by a -copyright notice that is included in or attached to the work -(an example is provided in the Appendix below). - -"Derivative Works" shall mean any work, whether in Source or Object -form, that is based on (or derived from) the Work and for which the -editorial revisions, annotations, elaborations, or other modifications -represent, as a whole, an original work of authorship. For the purposes -of this License, Derivative Works shall not include works that remain -separable from, or merely link (or bind by name) to the interfaces of, -the Work and Derivative Works thereof. - -"Contribution" shall mean any work of authorship, including -the original version of the Work and any modifications or additions -to that Work or Derivative Works thereof, that is intentionally -submitted to Licensor for inclusion in the Work by the copyright owner -or by an individual or Legal Entity authorized to submit on behalf of -the copyright owner. For the purposes of this definition, "submitted" -means any form of electronic, verbal, or written communication sent -to the Licensor or its representatives, including but not limited to -communication on electronic mailing lists, source code control systems, -and issue tracking systems that are managed by, or on behalf of, the -Licensor for the purpose of discussing and improving the Work, but -excluding communication that is conspicuously marked or otherwise -designated in writing by the copyright owner as "Not a Contribution." - -"Contributor" shall mean Licensor and any individual or Legal Entity -on behalf of whom a Contribution has been received by Licensor and -subsequently incorporated within the Work. - -2. Grant of Copyright License. Subject to the terms and conditions of -this License, each Contributor hereby grants to You a perpetual, -worldwide, non-exclusive, no-charge, royalty-free, irrevocable -copyright license to reproduce, prepare Derivative Works of, -publicly display, publicly perform, sublicense, and distribute the -Work and such Derivative Works in Source or Object form. - -3. Grant of Patent License. Subject to the terms and conditions of -this License, each Contributor hereby grants to You a perpetual, -worldwide, non-exclusive, no-charge, royalty-free, irrevocable -(except as stated in this section) patent license to make, have made, -use, offer to sell, sell, import, and otherwise transfer the Work, -where such license applies only to those patent claims licensable -by such Contributor that are necessarily infringed by their -Contribution(s) alone or by combination of their Contribution(s) -with the Work to which such Contribution(s) was submitted. If You -institute patent litigation against any entity (including a -cross-claim or counterclaim in a lawsuit) alleging that the Work -or a Contribution incorporated within the Work constitutes direct -or contributory patent infringement, then any patent licenses -granted to You under this License for that Work shall terminate -as of the date such litigation is filed. - -4. Redistribution. You may reproduce and distribute copies of the -Work or Derivative Works thereof in any medium, with or without -modifications, and in Source or Object form, provided that You -meet the following conditions: - -(a) You must give any other recipients of the Work or -Derivative Works a copy of this License; and - -(b) You must cause any modified files to carry prominent notices -stating that You changed the files; and - -(c) You must retain, in the Source form of any Derivative Works -that You distribute, all copyright, patent, trademark, and -attribution notices from the Source form of the Work, -excluding those notices that do not pertain to any part of -the Derivative Works; and - -(d) If the Work includes a "NOTICE" text file as part of its -distribution, then any Derivative Works that You distribute must -include a readable copy of the attribution notices contained -within such NOTICE file, excluding those notices that do not -pertain to any part of the Derivative Works, in at least one -of the following places: within a NOTICE text file distributed -as part of the Derivative Works; within the Source form or -documentation, if provided along with the Derivative Works; or, -within a display generated by the Derivative Works, if and -wherever such third-party notices normally appear. The contents -of the NOTICE file are for informational purposes only and -do not modify the License. You may add Your own attribution -notices within Derivative Works that You distribute, alongside -or as an addendum to the NOTICE text from the Work, provided -that such additional attribution notices cannot be construed -as modifying the License. - -You may add Your own copyright statement to Your modifications and -may provide additional or different license terms and conditions -for use, reproduction, or distribution of Your modifications, or -for any such Derivative Works as a whole, provided Your use, -reproduction, and distribution of the Work otherwise complies with -the conditions stated in this License. - -5. Submission of Contributions. Unless You explicitly state otherwise, -any Contribution intentionally submitted for inclusion in the Work -by You to the Licensor shall be under the terms and conditions of -this License, without any additional terms or conditions. -Notwithstanding the above, nothing herein shall supersede or modify -the terms of any separate license agreement you may have executed -with Licensor regarding such Contributions. - -6. Trademarks. This License does not grant permission to use the trade -names, trademarks, service marks, or product names of the Licensor, -except as required for reasonable and customary use in describing the -origin of the Work and reproducing the content of the NOTICE file. - -7. Disclaimer of Warranty. Unless required by applicable law or -agreed to in writing, Licensor provides the Work (and each -Contributor provides its Contributions) on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or -implied, including, without limitation, any warranties or conditions -of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A -PARTICULAR PURPOSE. You are solely responsible for determining the -appropriateness of using or redistributing the Work and assume any -risks associated with Your exercise of permissions under this License. - -8. Limitation of Liability. In no event and under no legal theory, -whether in tort (including negligence), contract, or otherwise, -unless required by applicable law (such as deliberate and grossly -negligent acts) or agreed to in writing, shall any Contributor be -liable to You for damages, including any direct, indirect, special, -incidental, or consequential damages of any character arising as a -result of this License or out of the use or inability to use the -Work (including but not limited to damages for loss of goodwill, -work stoppage, computer failure or malfunction, or any and all -other commercial damages or losses), even if such Contributor -has been advised of the possibility of such damages. - -9. Accepting Warranty or Additional Liability. While redistributing -the Work or Derivative Works thereof, You may choose to offer, -and charge a fee for, acceptance of support, warranty, indemnity, -or other liability obligations and/or rights consistent with this -License. However, in accepting such obligations, You may act only -on Your own behalf and on Your sole responsibility, not on behalf -of any other Contributor, and only if You agree to indemnify, -defend, and hold each Contributor harmless for any liability -incurred by, or claims asserted against, such Contributor by reason -of your accepting any such warranty or additional liability. - -END OF TERMS AND CONDITIONS - -APPENDIX: How to apply the Apache License to your work. - -To apply the Apache License to your work, attach the following -boilerplate notice, with the fields enclosed by brackets "[]" -replaced with your own identifying information. (Don't include -the brackets!) The text should be enclosed in the appropriate -comment syntax for the file format. We also recommend that a -file or class name and description of purpose be included on the -same "printed page" as the copyright notice for easier -identification within third-party archives. - -Copyright [yyyy] [name of copyright owner] - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/HttpHandler/Guzzle5HttpHandler.php b/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/HttpHandler/Guzzle5HttpHandler.php deleted file mode 100644 index 18ba027..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/HttpHandler/Guzzle5HttpHandler.php +++ /dev/null @@ -1,126 +0,0 @@ -client = $client; - } - - /** - * Accepts a PSR-7 Request and an array of options and returns a PSR-7 response. - * - * @param RequestInterface $request - * @param array $options - * @return ResponseInterface - */ - public function __invoke(RequestInterface $request, array $options = []) - { - $response = $this->client->send( - $this->createGuzzle5Request($request, $options) - ); - - return $this->createPsr7Response($response); - } - - /** - * Accepts a PSR-7 request and an array of options and returns a PromiseInterface - * - * @param RequestInterface $request - * @param array $options - * @return Promise - */ - public function async(RequestInterface $request, array $options = []) - { - if (!class_exists('GuzzleHttp\Promise\Promise')) { - throw new Exception('Install guzzlehttp/promises to use async with Guzzle 5'); - } - - $futureResponse = $this->client->send( - $this->createGuzzle5Request( - $request, - ['future' => true] + $options - ) - ); - - $promise = new Promise( - function () use ($futureResponse) { - try { - $futureResponse->wait(); - } catch (Exception $e) { - // The promise is already delivered when the exception is - // thrown, so don't rethrow it. - } - }, - [$futureResponse, 'cancel'] - ); - - $futureResponse->then([$promise, 'resolve'], [$promise, 'reject']); - - return $promise->then( - function (Guzzle5ResponseInterface $response) { - // Adapt the Guzzle 5 Response to a PSR-7 Response. - return $this->createPsr7Response($response); - }, - function (Exception $e) { - return new RejectedPromise($e); - } - ); - } - - private function createGuzzle5Request(RequestInterface $request, array $options) - { - return $this->client->createRequest( - $request->getMethod(), - $request->getUri(), - array_merge_recursive([ - 'headers' => $request->getHeaders(), - 'body' => $request->getBody(), - ], $options) - ); - } - - private function createPsr7Response(Guzzle5ResponseInterface $response) - { - return new Response( - $response->getStatusCode(), - $response->getHeaders() ?: [], - $response->getBody(), - $response->getProtocolVersion(), - $response->getReasonPhrase() - ); - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php b/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php deleted file mode 100644 index 427d896..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php +++ /dev/null @@ -1,27 +0,0 @@ -maxHandles = $maxHandles; - } - - public function create(RequestInterface $request, array $options) - { - if (isset($options['curl']['body_as_string'])) { - $options['_body_as_string'] = $options['curl']['body_as_string']; - unset($options['curl']['body_as_string']); - } - - $easy = new EasyHandle; - $easy->request = $request; - $easy->options = $options; - $conf = $this->getDefaultConf($easy); - $this->applyMethod($easy, $conf); - $this->applyHandlerOptions($easy, $conf); - $this->applyHeaders($easy, $conf); - unset($conf['_headers']); - - // Add handler options from the request configuration options - if (isset($options['curl'])) { - $conf = array_replace($conf, $options['curl']); - } - - $conf[CURLOPT_HEADERFUNCTION] = $this->createHeaderFn($easy); - $easy->handle = $this->handles - ? array_pop($this->handles) - : curl_init(); - curl_setopt_array($easy->handle, $conf); - - return $easy; - } - - public function release(EasyHandle $easy) - { - $resource = $easy->handle; - unset($easy->handle); - - if (count($this->handles) >= $this->maxHandles) { - curl_close($resource); - } else { - // Remove all callback functions as they can hold onto references - // and are not cleaned up by curl_reset. Using curl_setopt_array - // does not work for some reason, so removing each one - // individually. - curl_setopt($resource, CURLOPT_HEADERFUNCTION, null); - curl_setopt($resource, CURLOPT_READFUNCTION, null); - curl_setopt($resource, CURLOPT_WRITEFUNCTION, null); - curl_setopt($resource, CURLOPT_PROGRESSFUNCTION, null); - curl_reset($resource); - $this->handles[] = $resource; - } - } - - /** - * Completes a cURL transaction, either returning a response promise or a - * rejected promise. - * - * @param callable $handler - * @param EasyHandle $easy - * @param CurlFactoryInterface $factory Dictates how the handle is released - * - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public static function finish( - callable $handler, - EasyHandle $easy, - CurlFactoryInterface $factory - ) { - if (isset($easy->options['on_stats'])) { - self::invokeStats($easy); - } - - if (!$easy->response || $easy->errno) { - return self::finishError($handler, $easy, $factory); - } - - // Return the response if it is present and there is no error. - $factory->release($easy); - - // Rewind the body of the response if possible. - $body = $easy->response->getBody(); - if ($body->isSeekable()) { - $body->rewind(); - } - - return new FulfilledPromise($easy->response); - } - - private static function invokeStats(EasyHandle $easy) - { - $curlStats = curl_getinfo($easy->handle); - $curlStats['appconnect_time'] = curl_getinfo($easy->handle, CURLINFO_APPCONNECT_TIME); - $stats = new TransferStats( - $easy->request, - $easy->response, - $curlStats['total_time'], - $easy->errno, - $curlStats - ); - call_user_func($easy->options['on_stats'], $stats); - } - - private static function finishError( - callable $handler, - EasyHandle $easy, - CurlFactoryInterface $factory - ) { - // Get error information and release the handle to the factory. - $ctx = [ - 'errno' => $easy->errno, - 'error' => curl_error($easy->handle), - 'appconnect_time' => curl_getinfo($easy->handle, CURLINFO_APPCONNECT_TIME), - ] + curl_getinfo($easy->handle); - $ctx[self::CURL_VERSION_STR] = curl_version()['version']; - $factory->release($easy); - - // Retry when nothing is present or when curl failed to rewind. - if (empty($easy->options['_err_message']) - && (!$easy->errno || $easy->errno == 65) - ) { - return self::retryFailedRewind($handler, $easy, $ctx); - } - - return self::createRejection($easy, $ctx); - } - - private static function createRejection(EasyHandle $easy, array $ctx) - { - static $connectionErrors = [ - CURLE_OPERATION_TIMEOUTED => true, - CURLE_COULDNT_RESOLVE_HOST => true, - CURLE_COULDNT_CONNECT => true, - CURLE_SSL_CONNECT_ERROR => true, - CURLE_GOT_NOTHING => true, - ]; - - // If an exception was encountered during the onHeaders event, then - // return a rejected promise that wraps that exception. - if ($easy->onHeadersException) { - return \GuzzleHttp\Promise\rejection_for( - new RequestException( - 'An error was encountered during the on_headers event', - $easy->request, - $easy->response, - $easy->onHeadersException, - $ctx - ) - ); - } - if (version_compare($ctx[self::CURL_VERSION_STR], self::LOW_CURL_VERSION_NUMBER)) { - $message = sprintf( - 'cURL error %s: %s (%s)', - $ctx['errno'], - $ctx['error'], - 'see https://curl.haxx.se/libcurl/c/libcurl-errors.html' - ); - } else { - $message = sprintf( - 'cURL error %s: %s (%s) for %s', - $ctx['errno'], - $ctx['error'], - 'see https://curl.haxx.se/libcurl/c/libcurl-errors.html', - $easy->request->getUri() - ); - } - - // Create a connection exception if it was a specific error code. - $error = isset($connectionErrors[$easy->errno]) - ? new ConnectException($message, $easy->request, null, $ctx) - : new RequestException($message, $easy->request, $easy->response, null, $ctx); - - return \GuzzleHttp\Promise\rejection_for($error); - } - - private function getDefaultConf(EasyHandle $easy) - { - $conf = [ - '_headers' => $easy->request->getHeaders(), - CURLOPT_CUSTOMREQUEST => $easy->request->getMethod(), - CURLOPT_URL => (string) $easy->request->getUri()->withFragment(''), - CURLOPT_RETURNTRANSFER => false, - CURLOPT_HEADER => false, - CURLOPT_CONNECTTIMEOUT => 150, - ]; - - if (defined('CURLOPT_PROTOCOLS')) { - $conf[CURLOPT_PROTOCOLS] = CURLPROTO_HTTP | CURLPROTO_HTTPS; - } - - $version = $easy->request->getProtocolVersion(); - if ($version == 1.1) { - $conf[CURLOPT_HTTP_VERSION] = CURL_HTTP_VERSION_1_1; - } elseif ($version == 2.0) { - $conf[CURLOPT_HTTP_VERSION] = CURL_HTTP_VERSION_2_0; - } else { - $conf[CURLOPT_HTTP_VERSION] = CURL_HTTP_VERSION_1_0; - } - - return $conf; - } - - private function applyMethod(EasyHandle $easy, array &$conf) - { - $body = $easy->request->getBody(); - $size = $body->getSize(); - - if ($size === null || $size > 0) { - $this->applyBody($easy->request, $easy->options, $conf); - return; - } - - $method = $easy->request->getMethod(); - if ($method === 'PUT' || $method === 'POST') { - // See http://tools.ietf.org/html/rfc7230#section-3.3.2 - if (!$easy->request->hasHeader('Content-Length')) { - $conf[CURLOPT_HTTPHEADER][] = 'Content-Length: 0'; - } - } elseif ($method === 'HEAD') { - $conf[CURLOPT_NOBODY] = true; - unset( - $conf[CURLOPT_WRITEFUNCTION], - $conf[CURLOPT_READFUNCTION], - $conf[CURLOPT_FILE], - $conf[CURLOPT_INFILE] - ); - } - } - - private function applyBody(RequestInterface $request, array $options, array &$conf) - { - $size = $request->hasHeader('Content-Length') - ? (int) $request->getHeaderLine('Content-Length') - : null; - - // Send the body as a string if the size is less than 1MB OR if the - // [curl][body_as_string] request value is set. - if (($size !== null && $size < 1000000) || - !empty($options['_body_as_string']) - ) { - $conf[CURLOPT_POSTFIELDS] = (string) $request->getBody(); - // Don't duplicate the Content-Length header - $this->removeHeader('Content-Length', $conf); - $this->removeHeader('Transfer-Encoding', $conf); - } else { - $conf[CURLOPT_UPLOAD] = true; - if ($size !== null) { - $conf[CURLOPT_INFILESIZE] = $size; - $this->removeHeader('Content-Length', $conf); - } - $body = $request->getBody(); - if ($body->isSeekable()) { - $body->rewind(); - } - $conf[CURLOPT_READFUNCTION] = function ($ch, $fd, $length) use ($body) { - return $body->read($length); - }; - } - - // If the Expect header is not present, prevent curl from adding it - if (!$request->hasHeader('Expect')) { - $conf[CURLOPT_HTTPHEADER][] = 'Expect:'; - } - - // cURL sometimes adds a content-type by default. Prevent this. - if (!$request->hasHeader('Content-Type')) { - $conf[CURLOPT_HTTPHEADER][] = 'Content-Type:'; - } - } - - private function applyHeaders(EasyHandle $easy, array &$conf) - { - foreach ($conf['_headers'] as $name => $values) { - foreach ($values as $value) { - $value = (string) $value; - if ($value === '') { - // cURL requires a special format for empty headers. - // See https://github.com/guzzle/guzzle/issues/1882 for more details. - $conf[CURLOPT_HTTPHEADER][] = "$name;"; - } else { - $conf[CURLOPT_HTTPHEADER][] = "$name: $value"; - } - } - } - - // Remove the Accept header if one was not set - if (!$easy->request->hasHeader('Accept')) { - $conf[CURLOPT_HTTPHEADER][] = 'Accept:'; - } - } - - /** - * Remove a header from the options array. - * - * @param string $name Case-insensitive header to remove - * @param array $options Array of options to modify - */ - private function removeHeader($name, array &$options) - { - foreach (array_keys($options['_headers']) as $key) { - if (!strcasecmp($key, $name)) { - unset($options['_headers'][$key]); - return; - } - } - } - - private function applyHandlerOptions(EasyHandle $easy, array &$conf) - { - $options = $easy->options; - if (isset($options['verify'])) { - if ($options['verify'] === false) { - unset($conf[CURLOPT_CAINFO]); - $conf[CURLOPT_SSL_VERIFYHOST] = 0; - $conf[CURLOPT_SSL_VERIFYPEER] = false; - } else { - $conf[CURLOPT_SSL_VERIFYHOST] = 2; - $conf[CURLOPT_SSL_VERIFYPEER] = true; - if (is_string($options['verify'])) { - // Throw an error if the file/folder/link path is not valid or doesn't exist. - if (!file_exists($options['verify'])) { - throw new \InvalidArgumentException( - "SSL CA bundle not found: {$options['verify']}" - ); - } - // If it's a directory or a link to a directory use CURLOPT_CAPATH. - // If not, it's probably a file, or a link to a file, so use CURLOPT_CAINFO. - if (is_dir($options['verify']) || - (is_link($options['verify']) && is_dir(readlink($options['verify'])))) { - $conf[CURLOPT_CAPATH] = $options['verify']; - } else { - $conf[CURLOPT_CAINFO] = $options['verify']; - } - } - } - } - - if (!empty($options['decode_content'])) { - $accept = $easy->request->getHeaderLine('Accept-Encoding'); - if ($accept) { - $conf[CURLOPT_ENCODING] = $accept; - } else { - $conf[CURLOPT_ENCODING] = ''; - // Don't let curl send the header over the wire - $conf[CURLOPT_HTTPHEADER][] = 'Accept-Encoding:'; - } - } - - if (isset($options['sink'])) { - $sink = $options['sink']; - if (!is_string($sink)) { - $sink = \GuzzleHttp\Psr7\stream_for($sink); - } elseif (!is_dir(dirname($sink))) { - // Ensure that the directory exists before failing in curl. - throw new \RuntimeException(sprintf( - 'Directory %s does not exist for sink value of %s', - dirname($sink), - $sink - )); - } else { - $sink = new LazyOpenStream($sink, 'w+'); - } - $easy->sink = $sink; - $conf[CURLOPT_WRITEFUNCTION] = function ($ch, $write) use ($sink) { - return $sink->write($write); - }; - } else { - // Use a default temp stream if no sink was set. - $conf[CURLOPT_FILE] = fopen('php://temp', 'w+'); - $easy->sink = Psr7\stream_for($conf[CURLOPT_FILE]); - } - $timeoutRequiresNoSignal = false; - if (isset($options['timeout'])) { - $timeoutRequiresNoSignal |= $options['timeout'] < 1; - $conf[CURLOPT_TIMEOUT_MS] = $options['timeout'] * 1000; - } - - // CURL default value is CURL_IPRESOLVE_WHATEVER - if (isset($options['force_ip_resolve'])) { - if ('v4' === $options['force_ip_resolve']) { - $conf[CURLOPT_IPRESOLVE] = CURL_IPRESOLVE_V4; - } elseif ('v6' === $options['force_ip_resolve']) { - $conf[CURLOPT_IPRESOLVE] = CURL_IPRESOLVE_V6; - } - } - - if (isset($options['connect_timeout'])) { - $timeoutRequiresNoSignal |= $options['connect_timeout'] < 1; - $conf[CURLOPT_CONNECTTIMEOUT_MS] = $options['connect_timeout'] * 1000; - } - - if ($timeoutRequiresNoSignal && strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') { - $conf[CURLOPT_NOSIGNAL] = true; - } - - if (isset($options['proxy'])) { - if (!is_array($options['proxy'])) { - $conf[CURLOPT_PROXY] = $options['proxy']; - } else { - $scheme = $easy->request->getUri()->getScheme(); - if (isset($options['proxy'][$scheme])) { - $host = $easy->request->getUri()->getHost(); - if (!isset($options['proxy']['no']) || - !\GuzzleHttp\is_host_in_noproxy($host, $options['proxy']['no']) - ) { - $conf[CURLOPT_PROXY] = $options['proxy'][$scheme]; - } - } - } - } - - if (isset($options['cert'])) { - $cert = $options['cert']; - if (is_array($cert)) { - $conf[CURLOPT_SSLCERTPASSWD] = $cert[1]; - $cert = $cert[0]; - } - if (!file_exists($cert)) { - throw new \InvalidArgumentException( - "SSL certificate not found: {$cert}" - ); - } - $conf[CURLOPT_SSLCERT] = $cert; - } - - if (isset($options['ssl_key'])) { - if (is_array($options['ssl_key'])) { - if (count($options['ssl_key']) === 2) { - list($sslKey, $conf[CURLOPT_SSLKEYPASSWD]) = $options['ssl_key']; - } else { - list($sslKey) = $options['ssl_key']; - } - } - - $sslKey = isset($sslKey) ? $sslKey: $options['ssl_key']; - - if (!file_exists($sslKey)) { - throw new \InvalidArgumentException( - "SSL private key not found: {$sslKey}" - ); - } - $conf[CURLOPT_SSLKEY] = $sslKey; - } - - if (isset($options['progress'])) { - $progress = $options['progress']; - if (!is_callable($progress)) { - throw new \InvalidArgumentException( - 'progress client option must be callable' - ); - } - $conf[CURLOPT_NOPROGRESS] = false; - $conf[CURLOPT_PROGRESSFUNCTION] = function () use ($progress) { - $args = func_get_args(); - // PHP 5.5 pushed the handle onto the start of the args - if (is_resource($args[0])) { - array_shift($args); - } - call_user_func_array($progress, $args); - }; - } - - if (!empty($options['debug'])) { - $conf[CURLOPT_STDERR] = \GuzzleHttp\debug_resource($options['debug']); - $conf[CURLOPT_VERBOSE] = true; - } - } - - /** - * This function ensures that a response was set on a transaction. If one - * was not set, then the request is retried if possible. This error - * typically means you are sending a payload, curl encountered a - * "Connection died, retrying a fresh connect" error, tried to rewind the - * stream, and then encountered a "necessary data rewind wasn't possible" - * error, causing the request to be sent through curl_multi_info_read() - * without an error status. - */ - private static function retryFailedRewind( - callable $handler, - EasyHandle $easy, - array $ctx - ) { - try { - // Only rewind if the body has been read from. - $body = $easy->request->getBody(); - if ($body->tell() > 0) { - $body->rewind(); - } - } catch (\RuntimeException $e) { - $ctx['error'] = 'The connection unexpectedly failed without ' - . 'providing an error. The request would have been retried, ' - . 'but attempting to rewind the request body failed. ' - . 'Exception: ' . $e; - return self::createRejection($easy, $ctx); - } - - // Retry no more than 3 times before giving up. - if (!isset($easy->options['_curl_retries'])) { - $easy->options['_curl_retries'] = 1; - } elseif ($easy->options['_curl_retries'] == 2) { - $ctx['error'] = 'The cURL request was retried 3 times ' - . 'and did not succeed. The most likely reason for the failure ' - . 'is that cURL was unable to rewind the body of the request ' - . 'and subsequent retries resulted in the same error. Turn on ' - . 'the debug option to see what went wrong. See ' - . 'https://bugs.php.net/bug.php?id=47204 for more information.'; - return self::createRejection($easy, $ctx); - } else { - $easy->options['_curl_retries']++; - } - - return $handler($easy->request, $easy->options); - } - - private function createHeaderFn(EasyHandle $easy) - { - if (isset($easy->options['on_headers'])) { - $onHeaders = $easy->options['on_headers']; - - if (!is_callable($onHeaders)) { - throw new \InvalidArgumentException('on_headers must be callable'); - } - } else { - $onHeaders = null; - } - - return function ($ch, $h) use ( - $onHeaders, - $easy, - &$startingResponse - ) { - $value = trim($h); - if ($value === '') { - $startingResponse = true; - $easy->createResponse(); - if ($onHeaders !== null) { - try { - $onHeaders($easy->response); - } catch (\Exception $e) { - // Associate the exception with the handle and trigger - // a curl header write error by returning 0. - $easy->onHeadersException = $e; - return -1; - } - } - } elseif ($startingResponse) { - $startingResponse = false; - $easy->headers = [$value]; - } else { - $easy->headers[] = $value; - } - return strlen($h); - }; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Handler/MockHandler.php b/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Handler/MockHandler.php deleted file mode 100644 index 5b312bc..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Handler/MockHandler.php +++ /dev/null @@ -1,195 +0,0 @@ -onFulfilled = $onFulfilled; - $this->onRejected = $onRejected; - - if ($queue) { - call_user_func_array([$this, 'append'], $queue); - } - } - - public function __invoke(RequestInterface $request, array $options) - { - if (!$this->queue) { - throw new \OutOfBoundsException('Mock queue is empty'); - } - - if (isset($options['delay']) && is_numeric($options['delay'])) { - usleep($options['delay'] * 1000); - } - - $this->lastRequest = $request; - $this->lastOptions = $options; - $response = array_shift($this->queue); - - if (isset($options['on_headers'])) { - if (!is_callable($options['on_headers'])) { - throw new \InvalidArgumentException('on_headers must be callable'); - } - try { - $options['on_headers']($response); - } catch (\Exception $e) { - $msg = 'An error was encountered during the on_headers event'; - $response = new RequestException($msg, $request, $response, $e); - } - } - - if (is_callable($response)) { - $response = call_user_func($response, $request, $options); - } - - $response = $response instanceof \Exception - ? \GuzzleHttp\Promise\rejection_for($response) - : \GuzzleHttp\Promise\promise_for($response); - - return $response->then( - function ($value) use ($request, $options) { - $this->invokeStats($request, $options, $value); - if ($this->onFulfilled) { - call_user_func($this->onFulfilled, $value); - } - if (isset($options['sink'])) { - $contents = (string) $value->getBody(); - $sink = $options['sink']; - - if (is_resource($sink)) { - fwrite($sink, $contents); - } elseif (is_string($sink)) { - file_put_contents($sink, $contents); - } elseif ($sink instanceof \Psr\Http\Message\StreamInterface) { - $sink->write($contents); - } - } - - return $value; - }, - function ($reason) use ($request, $options) { - $this->invokeStats($request, $options, null, $reason); - if ($this->onRejected) { - call_user_func($this->onRejected, $reason); - } - return \GuzzleHttp\Promise\rejection_for($reason); - } - ); - } - - /** - * Adds one or more variadic requests, exceptions, callables, or promises - * to the queue. - */ - public function append() - { - foreach (func_get_args() as $value) { - if ($value instanceof ResponseInterface - || $value instanceof \Exception - || $value instanceof PromiseInterface - || is_callable($value) - ) { - $this->queue[] = $value; - } else { - throw new \InvalidArgumentException('Expected a response or ' - . 'exception. Found ' . \GuzzleHttp\describe_type($value)); - } - } - } - - /** - * Get the last received request. - * - * @return RequestInterface - */ - public function getLastRequest() - { - return $this->lastRequest; - } - - /** - * Get the last received request options. - * - * @return array - */ - public function getLastOptions() - { - return $this->lastOptions; - } - - /** - * Returns the number of remaining items in the queue. - * - * @return int - */ - public function count() - { - return count($this->queue); - } - - public function reset() - { - $this->queue = []; - } - - private function invokeStats( - RequestInterface $request, - array $options, - ResponseInterface $response = null, - $reason = null - ) { - if (isset($options['on_stats'])) { - $transferTime = isset($options['transfer_time']) ? $options['transfer_time'] : 0; - $stats = new TransferStats($request, $response, $transferTime, $reason); - call_user_func($options['on_stats'], $stats); - } - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php b/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php deleted file mode 100644 index a15734a..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php +++ /dev/null @@ -1,545 +0,0 @@ -withoutHeader('Expect'); - - // Append a content-length header if body size is zero to match - // cURL's behavior. - if (0 === $request->getBody()->getSize()) { - $request = $request->withHeader('Content-Length', '0'); - } - - return $this->createResponse( - $request, - $options, - $this->createStream($request, $options), - $startTime - ); - } catch (\InvalidArgumentException $e) { - throw $e; - } catch (\Exception $e) { - // Determine if the error was a networking error. - $message = $e->getMessage(); - // This list can probably get more comprehensive. - if (strpos($message, 'getaddrinfo') // DNS lookup failed - || strpos($message, 'Connection refused') - || strpos($message, "couldn't connect to host") // error on HHVM - || strpos($message, "connection attempt failed") - ) { - $e = new ConnectException($e->getMessage(), $request, $e); - } - $e = RequestException::wrapException($request, $e); - $this->invokeStats($options, $request, $startTime, null, $e); - - return \GuzzleHttp\Promise\rejection_for($e); - } - } - - private function invokeStats( - array $options, - RequestInterface $request, - $startTime, - ResponseInterface $response = null, - $error = null - ) { - if (isset($options['on_stats'])) { - $stats = new TransferStats( - $request, - $response, - Utils::currentTime() - $startTime, - $error, - [] - ); - call_user_func($options['on_stats'], $stats); - } - } - - private function createResponse( - RequestInterface $request, - array $options, - $stream, - $startTime - ) { - $hdrs = $this->lastHeaders; - $this->lastHeaders = []; - $parts = explode(' ', array_shift($hdrs), 3); - $ver = explode('/', $parts[0])[1]; - $status = $parts[1]; - $reason = isset($parts[2]) ? $parts[2] : null; - $headers = \GuzzleHttp\headers_from_lines($hdrs); - list($stream, $headers) = $this->checkDecode($options, $headers, $stream); - $stream = Psr7\stream_for($stream); - $sink = $stream; - - if (strcasecmp('HEAD', $request->getMethod())) { - $sink = $this->createSink($stream, $options); - } - - $response = new Psr7\Response($status, $headers, $sink, $ver, $reason); - - if (isset($options['on_headers'])) { - try { - $options['on_headers']($response); - } catch (\Exception $e) { - $msg = 'An error was encountered during the on_headers event'; - $ex = new RequestException($msg, $request, $response, $e); - return \GuzzleHttp\Promise\rejection_for($ex); - } - } - - // Do not drain when the request is a HEAD request because they have - // no body. - if ($sink !== $stream) { - $this->drain( - $stream, - $sink, - $response->getHeaderLine('Content-Length') - ); - } - - $this->invokeStats($options, $request, $startTime, $response, null); - - return new FulfilledPromise($response); - } - - private function createSink(StreamInterface $stream, array $options) - { - if (!empty($options['stream'])) { - return $stream; - } - - $sink = isset($options['sink']) - ? $options['sink'] - : fopen('php://temp', 'r+'); - - return is_string($sink) - ? new Psr7\LazyOpenStream($sink, 'w+') - : Psr7\stream_for($sink); - } - - private function checkDecode(array $options, array $headers, $stream) - { - // Automatically decode responses when instructed. - if (!empty($options['decode_content'])) { - $normalizedKeys = \GuzzleHttp\normalize_header_keys($headers); - if (isset($normalizedKeys['content-encoding'])) { - $encoding = $headers[$normalizedKeys['content-encoding']]; - if ($encoding[0] === 'gzip' || $encoding[0] === 'deflate') { - $stream = new Psr7\InflateStream( - Psr7\stream_for($stream) - ); - $headers['x-encoded-content-encoding'] - = $headers[$normalizedKeys['content-encoding']]; - // Remove content-encoding header - unset($headers[$normalizedKeys['content-encoding']]); - // Fix content-length header - if (isset($normalizedKeys['content-length'])) { - $headers['x-encoded-content-length'] - = $headers[$normalizedKeys['content-length']]; - - $length = (int) $stream->getSize(); - if ($length === 0) { - unset($headers[$normalizedKeys['content-length']]); - } else { - $headers[$normalizedKeys['content-length']] = [$length]; - } - } - } - } - } - - return [$stream, $headers]; - } - - /** - * Drains the source stream into the "sink" client option. - * - * @param StreamInterface $source - * @param StreamInterface $sink - * @param string $contentLength Header specifying the amount of - * data to read. - * - * @return StreamInterface - * @throws \RuntimeException when the sink option is invalid. - */ - private function drain( - StreamInterface $source, - StreamInterface $sink, - $contentLength - ) { - // If a content-length header is provided, then stop reading once - // that number of bytes has been read. This can prevent infinitely - // reading from a stream when dealing with servers that do not honor - // Connection: Close headers. - Psr7\copy_to_stream( - $source, - $sink, - (strlen($contentLength) > 0 && (int) $contentLength > 0) ? (int) $contentLength : -1 - ); - - $sink->seek(0); - $source->close(); - - return $sink; - } - - /** - * Create a resource and check to ensure it was created successfully - * - * @param callable $callback Callable that returns stream resource - * - * @return resource - * @throws \RuntimeException on error - */ - private function createResource(callable $callback) - { - $errors = null; - set_error_handler(function ($_, $msg, $file, $line) use (&$errors) { - $errors[] = [ - 'message' => $msg, - 'file' => $file, - 'line' => $line - ]; - return true; - }); - - $resource = $callback(); - restore_error_handler(); - - if (!$resource) { - $message = 'Error creating resource: '; - foreach ($errors as $err) { - foreach ($err as $key => $value) { - $message .= "[$key] $value" . PHP_EOL; - } - } - throw new \RuntimeException(trim($message)); - } - - return $resource; - } - - private function createStream(RequestInterface $request, array $options) - { - static $methods; - if (!$methods) { - $methods = array_flip(get_class_methods(__CLASS__)); - } - - // HTTP/1.1 streams using the PHP stream wrapper require a - // Connection: close header - if ($request->getProtocolVersion() == '1.1' - && !$request->hasHeader('Connection') - ) { - $request = $request->withHeader('Connection', 'close'); - } - - // Ensure SSL is verified by default - if (!isset($options['verify'])) { - $options['verify'] = true; - } - - $params = []; - $context = $this->getDefaultContext($request); - - if (isset($options['on_headers']) && !is_callable($options['on_headers'])) { - throw new \InvalidArgumentException('on_headers must be callable'); - } - - if (!empty($options)) { - foreach ($options as $key => $value) { - $method = "add_{$key}"; - if (isset($methods[$method])) { - $this->{$method}($request, $context, $value, $params); - } - } - } - - if (isset($options['stream_context'])) { - if (!is_array($options['stream_context'])) { - throw new \InvalidArgumentException('stream_context must be an array'); - } - $context = array_replace_recursive( - $context, - $options['stream_context'] - ); - } - - // Microsoft NTLM authentication only supported with curl handler - if (isset($options['auth']) - && is_array($options['auth']) - && isset($options['auth'][2]) - && 'ntlm' == $options['auth'][2] - ) { - throw new \InvalidArgumentException('Microsoft NTLM authentication only supported with curl handler'); - } - - $uri = $this->resolveHost($request, $options); - - $context = $this->createResource( - function () use ($context, $params) { - return stream_context_create($context, $params); - } - ); - - return $this->createResource( - function () use ($uri, &$http_response_header, $context, $options) { - $resource = fopen((string) $uri, 'r', null, $context); - $this->lastHeaders = $http_response_header; - - if (isset($options['read_timeout'])) { - $readTimeout = $options['read_timeout']; - $sec = (int) $readTimeout; - $usec = ($readTimeout - $sec) * 100000; - stream_set_timeout($resource, $sec, $usec); - } - - return $resource; - } - ); - } - - private function resolveHost(RequestInterface $request, array $options) - { - $uri = $request->getUri(); - - if (isset($options['force_ip_resolve']) && !filter_var($uri->getHost(), FILTER_VALIDATE_IP)) { - if ('v4' === $options['force_ip_resolve']) { - $records = dns_get_record($uri->getHost(), DNS_A); - if (!isset($records[0]['ip'])) { - throw new ConnectException( - sprintf( - "Could not resolve IPv4 address for host '%s'", - $uri->getHost() - ), - $request - ); - } - $uri = $uri->withHost($records[0]['ip']); - } elseif ('v6' === $options['force_ip_resolve']) { - $records = dns_get_record($uri->getHost(), DNS_AAAA); - if (!isset($records[0]['ipv6'])) { - throw new ConnectException( - sprintf( - "Could not resolve IPv6 address for host '%s'", - $uri->getHost() - ), - $request - ); - } - $uri = $uri->withHost('[' . $records[0]['ipv6'] . ']'); - } - } - - return $uri; - } - - private function getDefaultContext(RequestInterface $request) - { - $headers = ''; - foreach ($request->getHeaders() as $name => $value) { - foreach ($value as $val) { - $headers .= "$name: $val\r\n"; - } - } - - $context = [ - 'http' => [ - 'method' => $request->getMethod(), - 'header' => $headers, - 'protocol_version' => $request->getProtocolVersion(), - 'ignore_errors' => true, - 'follow_location' => 0, - ], - ]; - - $body = (string) $request->getBody(); - - if (!empty($body)) { - $context['http']['content'] = $body; - // Prevent the HTTP handler from adding a Content-Type header. - if (!$request->hasHeader('Content-Type')) { - $context['http']['header'] .= "Content-Type:\r\n"; - } - } - - $context['http']['header'] = rtrim($context['http']['header']); - - return $context; - } - - private function add_proxy(RequestInterface $request, &$options, $value, &$params) - { - if (!is_array($value)) { - $options['http']['proxy'] = $value; - } else { - $scheme = $request->getUri()->getScheme(); - if (isset($value[$scheme])) { - if (!isset($value['no']) - || !\GuzzleHttp\is_host_in_noproxy( - $request->getUri()->getHost(), - $value['no'] - ) - ) { - $options['http']['proxy'] = $value[$scheme]; - } - } - } - } - - private function add_timeout(RequestInterface $request, &$options, $value, &$params) - { - if ($value > 0) { - $options['http']['timeout'] = $value; - } - } - - private function add_verify(RequestInterface $request, &$options, $value, &$params) - { - if ($value === true) { - // PHP 5.6 or greater will find the system cert by default. When - // < 5.6, use the Guzzle bundled cacert. - if (PHP_VERSION_ID < 50600) { - $options['ssl']['cafile'] = \GuzzleHttp\default_ca_bundle(); - } - } elseif (is_string($value)) { - $options['ssl']['cafile'] = $value; - if (!file_exists($value)) { - throw new \RuntimeException("SSL CA bundle not found: $value"); - } - } elseif ($value === false) { - $options['ssl']['verify_peer'] = false; - $options['ssl']['verify_peer_name'] = false; - return; - } else { - throw new \InvalidArgumentException('Invalid verify request option'); - } - - $options['ssl']['verify_peer'] = true; - $options['ssl']['verify_peer_name'] = true; - $options['ssl']['allow_self_signed'] = false; - } - - private function add_cert(RequestInterface $request, &$options, $value, &$params) - { - if (is_array($value)) { - $options['ssl']['passphrase'] = $value[1]; - $value = $value[0]; - } - - if (!file_exists($value)) { - throw new \RuntimeException("SSL certificate not found: {$value}"); - } - - $options['ssl']['local_cert'] = $value; - } - - private function add_progress(RequestInterface $request, &$options, $value, &$params) - { - $this->addNotification( - $params, - function ($code, $a, $b, $c, $transferred, $total) use ($value) { - if ($code == STREAM_NOTIFY_PROGRESS) { - $value($total, $transferred, null, null); - } - } - ); - } - - private function add_debug(RequestInterface $request, &$options, $value, &$params) - { - if ($value === false) { - return; - } - - static $map = [ - STREAM_NOTIFY_CONNECT => 'CONNECT', - STREAM_NOTIFY_AUTH_REQUIRED => 'AUTH_REQUIRED', - STREAM_NOTIFY_AUTH_RESULT => 'AUTH_RESULT', - STREAM_NOTIFY_MIME_TYPE_IS => 'MIME_TYPE_IS', - STREAM_NOTIFY_FILE_SIZE_IS => 'FILE_SIZE_IS', - STREAM_NOTIFY_REDIRECTED => 'REDIRECTED', - STREAM_NOTIFY_PROGRESS => 'PROGRESS', - STREAM_NOTIFY_FAILURE => 'FAILURE', - STREAM_NOTIFY_COMPLETED => 'COMPLETED', - STREAM_NOTIFY_RESOLVE => 'RESOLVE', - ]; - static $args = ['severity', 'message', 'message_code', - 'bytes_transferred', 'bytes_max']; - - $value = \GuzzleHttp\debug_resource($value); - $ident = $request->getMethod() . ' ' . $request->getUri()->withFragment(''); - $this->addNotification( - $params, - function () use ($ident, $value, $map, $args) { - $passed = func_get_args(); - $code = array_shift($passed); - fprintf($value, '<%s> [%s] ', $ident, $map[$code]); - foreach (array_filter($passed) as $i => $v) { - fwrite($value, $args[$i] . ': "' . $v . '" '); - } - fwrite($value, "\n"); - } - ); - } - - private function addNotification(array &$params, callable $notify) - { - // Wrap the existing function if needed. - if (!isset($params['notification'])) { - $params['notification'] = $notify; - } else { - $params['notification'] = $this->callArray([ - $params['notification'], - $notify - ]); - } - } - - private function callArray(array $functions) - { - return function () use ($functions) { - $args = func_get_args(); - foreach ($functions as $fn) { - call_user_func_array($fn, $args); - } - }; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/MessageFormatter.php b/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/MessageFormatter.php deleted file mode 100644 index dc36bb5..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/MessageFormatter.php +++ /dev/null @@ -1,185 +0,0 @@ ->>>>>>>\n{request}\n<<<<<<<<\n{response}\n--------\n{error}"; - const SHORT = '[{ts}] "{method} {target} HTTP/{version}" {code}'; - - /** @var string Template used to format log messages */ - private $template; - - /** - * @param string $template Log message template - */ - public function __construct($template = self::CLF) - { - $this->template = $template ?: self::CLF; - } - - /** - * Returns a formatted message string. - * - * @param RequestInterface $request Request that was sent - * @param ResponseInterface $response Response that was received - * @param \Exception $error Exception that was received - * - * @return string - */ - public function format( - RequestInterface $request, - ResponseInterface $response = null, - \Exception $error = null - ) { - $cache = []; - - return preg_replace_callback( - '/{\s*([A-Za-z_\-\.0-9]+)\s*}/', - function (array $matches) use ($request, $response, $error, &$cache) { - if (isset($cache[$matches[1]])) { - return $cache[$matches[1]]; - } - - $result = ''; - switch ($matches[1]) { - case 'request': - $result = Psr7\str($request); - break; - case 'response': - $result = $response ? Psr7\str($response) : ''; - break; - case 'req_headers': - $result = trim($request->getMethod() - . ' ' . $request->getRequestTarget()) - . ' HTTP/' . $request->getProtocolVersion() . "\r\n" - . $this->headers($request); - break; - case 'res_headers': - $result = $response ? - sprintf( - 'HTTP/%s %d %s', - $response->getProtocolVersion(), - $response->getStatusCode(), - $response->getReasonPhrase() - ) . "\r\n" . $this->headers($response) - : 'NULL'; - break; - case 'req_body': - $result = $request->getBody(); - break; - case 'res_body': - $result = $response ? $response->getBody() : 'NULL'; - break; - case 'ts': - case 'date_iso_8601': - $result = gmdate('c'); - break; - case 'date_common_log': - $result = date('d/M/Y:H:i:s O'); - break; - case 'method': - $result = $request->getMethod(); - break; - case 'version': - $result = $request->getProtocolVersion(); - break; - case 'uri': - case 'url': - $result = $request->getUri(); - break; - case 'target': - $result = $request->getRequestTarget(); - break; - case 'req_version': - $result = $request->getProtocolVersion(); - break; - case 'res_version': - $result = $response - ? $response->getProtocolVersion() - : 'NULL'; - break; - case 'host': - $result = $request->getHeaderLine('Host'); - break; - case 'hostname': - $result = gethostname(); - break; - case 'code': - $result = $response ? $response->getStatusCode() : 'NULL'; - break; - case 'phrase': - $result = $response ? $response->getReasonPhrase() : 'NULL'; - break; - case 'error': - $result = $error ? $error->getMessage() : 'NULL'; - break; - default: - // handle prefixed dynamic headers - if (strpos($matches[1], 'req_header_') === 0) { - $result = $request->getHeaderLine(substr($matches[1], 11)); - } elseif (strpos($matches[1], 'res_header_') === 0) { - $result = $response - ? $response->getHeaderLine(substr($matches[1], 11)) - : 'NULL'; - } - } - - $cache[$matches[1]] = $result; - return $result; - }, - $this->template - ); - } - - /** - * Get headers from message as string - * - * @return string - */ - private function headers(MessageInterface $message) - { - $result = ''; - foreach ($message->getHeaders() as $name => $values) { - $result .= $name . ': ' . implode(', ', $values) . "\r\n"; - } - - return trim($result); - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php b/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php deleted file mode 100644 index e4644b7..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php +++ /dev/null @@ -1,255 +0,0 @@ - 5, - 'protocols' => ['http', 'https'], - 'strict' => false, - 'referer' => false, - 'track_redirects' => false, - ]; - - /** @var callable */ - private $nextHandler; - - /** - * @param callable $nextHandler Next handler to invoke. - */ - public function __construct(callable $nextHandler) - { - $this->nextHandler = $nextHandler; - } - - /** - * @param RequestInterface $request - * @param array $options - * - * @return PromiseInterface - */ - public function __invoke(RequestInterface $request, array $options) - { - $fn = $this->nextHandler; - - if (empty($options['allow_redirects'])) { - return $fn($request, $options); - } - - if ($options['allow_redirects'] === true) { - $options['allow_redirects'] = self::$defaultSettings; - } elseif (!is_array($options['allow_redirects'])) { - throw new \InvalidArgumentException('allow_redirects must be true, false, or array'); - } else { - // Merge the default settings with the provided settings - $options['allow_redirects'] += self::$defaultSettings; - } - - if (empty($options['allow_redirects']['max'])) { - return $fn($request, $options); - } - - return $fn($request, $options) - ->then(function (ResponseInterface $response) use ($request, $options) { - return $this->checkRedirect($request, $options, $response); - }); - } - - /** - * @param RequestInterface $request - * @param array $options - * @param ResponseInterface $response - * - * @return ResponseInterface|PromiseInterface - */ - public function checkRedirect( - RequestInterface $request, - array $options, - ResponseInterface $response - ) { - if (substr($response->getStatusCode(), 0, 1) != '3' - || !$response->hasHeader('Location') - ) { - return $response; - } - - $this->guardMax($request, $options); - $nextRequest = $this->modifyRequest($request, $options, $response); - - if (isset($options['allow_redirects']['on_redirect'])) { - call_user_func( - $options['allow_redirects']['on_redirect'], - $request, - $response, - $nextRequest->getUri() - ); - } - - /** @var PromiseInterface|ResponseInterface $promise */ - $promise = $this($nextRequest, $options); - - // Add headers to be able to track history of redirects. - if (!empty($options['allow_redirects']['track_redirects'])) { - return $this->withTracking( - $promise, - (string) $nextRequest->getUri(), - $response->getStatusCode() - ); - } - - return $promise; - } - - /** - * Enable tracking on promise. - * - * @return PromiseInterface - */ - private function withTracking(PromiseInterface $promise, $uri, $statusCode) - { - return $promise->then( - function (ResponseInterface $response) use ($uri, $statusCode) { - // Note that we are pushing to the front of the list as this - // would be an earlier response than what is currently present - // in the history header. - $historyHeader = $response->getHeader(self::HISTORY_HEADER); - $statusHeader = $response->getHeader(self::STATUS_HISTORY_HEADER); - array_unshift($historyHeader, $uri); - array_unshift($statusHeader, $statusCode); - return $response->withHeader(self::HISTORY_HEADER, $historyHeader) - ->withHeader(self::STATUS_HISTORY_HEADER, $statusHeader); - } - ); - } - - /** - * Check for too many redirects - * - * @return void - * - * @throws TooManyRedirectsException Too many redirects. - */ - private function guardMax(RequestInterface $request, array &$options) - { - $current = isset($options['__redirect_count']) - ? $options['__redirect_count'] - : 0; - $options['__redirect_count'] = $current + 1; - $max = $options['allow_redirects']['max']; - - if ($options['__redirect_count'] > $max) { - throw new TooManyRedirectsException( - "Will not follow more than {$max} redirects", - $request - ); - } - } - - /** - * @param RequestInterface $request - * @param array $options - * @param ResponseInterface $response - * - * @return RequestInterface - */ - public function modifyRequest( - RequestInterface $request, - array $options, - ResponseInterface $response - ) { - // Request modifications to apply. - $modify = []; - $protocols = $options['allow_redirects']['protocols']; - - // Use a GET request if this is an entity enclosing request and we are - // not forcing RFC compliance, but rather emulating what all browsers - // would do. - $statusCode = $response->getStatusCode(); - if ($statusCode == 303 || - ($statusCode <= 302 && !$options['allow_redirects']['strict']) - ) { - $modify['method'] = 'GET'; - $modify['body'] = ''; - } - - $uri = $this->redirectUri($request, $response, $protocols); - if (isset($options['idn_conversion']) && ($options['idn_conversion'] !== false)) { - $idnOptions = ($options['idn_conversion'] === true) ? IDNA_DEFAULT : $options['idn_conversion']; - $uri = Utils::idnUriConvert($uri, $idnOptions); - } - - $modify['uri'] = $uri; - Psr7\rewind_body($request); - - // Add the Referer header if it is told to do so and only - // add the header if we are not redirecting from https to http. - if ($options['allow_redirects']['referer'] - && $modify['uri']->getScheme() === $request->getUri()->getScheme() - ) { - $uri = $request->getUri()->withUserInfo(''); - $modify['set_headers']['Referer'] = (string) $uri; - } else { - $modify['remove_headers'][] = 'Referer'; - } - - // Remove Authorization header if host is different. - if ($request->getUri()->getHost() !== $modify['uri']->getHost()) { - $modify['remove_headers'][] = 'Authorization'; - } - - return Psr7\modify_request($request, $modify); - } - - /** - * Set the appropriate URL on the request based on the location header - * - * @param RequestInterface $request - * @param ResponseInterface $response - * @param array $protocols - * - * @return UriInterface - */ - private function redirectUri( - RequestInterface $request, - ResponseInterface $response, - array $protocols - ) { - $location = Psr7\UriResolver::resolve( - $request->getUri(), - new Psr7\Uri($response->getHeaderLine('Location')) - ); - - // Ensure that the redirect URI is allowed based on the protocols. - if (!in_array($location->getScheme(), $protocols)) { - throw new BadResponseException( - sprintf( - 'Redirect URI, %s, does not use one of the allowed redirect protocols: %s', - $location, - implode(', ', $protocols) - ), - $request, - $response - ); - } - - return $location; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/promises/src/AggregateException.php b/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/promises/src/AggregateException.php deleted file mode 100644 index 6a5690c..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/promises/src/AggregateException.php +++ /dev/null @@ -1,16 +0,0 @@ - 'Continue', - 101 => 'Switching Protocols', - 102 => 'Processing', - 200 => 'OK', - 201 => 'Created', - 202 => 'Accepted', - 203 => 'Non-Authoritative Information', - 204 => 'No Content', - 205 => 'Reset Content', - 206 => 'Partial Content', - 207 => 'Multi-status', - 208 => 'Already Reported', - 300 => 'Multiple Choices', - 301 => 'Moved Permanently', - 302 => 'Found', - 303 => 'See Other', - 304 => 'Not Modified', - 305 => 'Use Proxy', - 306 => 'Switch Proxy', - 307 => 'Temporary Redirect', - 400 => 'Bad Request', - 401 => 'Unauthorized', - 402 => 'Payment Required', - 403 => 'Forbidden', - 404 => 'Not Found', - 405 => 'Method Not Allowed', - 406 => 'Not Acceptable', - 407 => 'Proxy Authentication Required', - 408 => 'Request Time-out', - 409 => 'Conflict', - 410 => 'Gone', - 411 => 'Length Required', - 412 => 'Precondition Failed', - 413 => 'Request Entity Too Large', - 414 => 'Request-URI Too Large', - 415 => 'Unsupported Media Type', - 416 => 'Requested range not satisfiable', - 417 => 'Expectation Failed', - 418 => 'I\'m a teapot', - 422 => 'Unprocessable Entity', - 423 => 'Locked', - 424 => 'Failed Dependency', - 425 => 'Unordered Collection', - 426 => 'Upgrade Required', - 428 => 'Precondition Required', - 429 => 'Too Many Requests', - 431 => 'Request Header Fields Too Large', - 451 => 'Unavailable For Legal Reasons', - 500 => 'Internal Server Error', - 501 => 'Not Implemented', - 502 => 'Bad Gateway', - 503 => 'Service Unavailable', - 504 => 'Gateway Time-out', - 505 => 'HTTP Version not supported', - 506 => 'Variant Also Negotiates', - 507 => 'Insufficient Storage', - 508 => 'Loop Detected', - 511 => 'Network Authentication Required', - ]; - - /** @var string */ - private $reasonPhrase = ''; - - /** @var int */ - private $statusCode = 200; - - /** - * @param int $status Status code - * @param array $headers Response headers - * @param string|null|resource|StreamInterface $body Response body - * @param string $version Protocol version - * @param string|null $reason Reason phrase (when empty a default will be used based on the status code) - */ - public function __construct( - $status = 200, - array $headers = [], - $body = null, - $version = '1.1', - $reason = null - ) { - $this->assertStatusCodeIsInteger($status); - $status = (int) $status; - $this->assertStatusCodeRange($status); - - $this->statusCode = $status; - - if ($body !== '' && $body !== null) { - $this->stream = stream_for($body); - } - - $this->setHeaders($headers); - if ($reason == '' && isset(self::$phrases[$this->statusCode])) { - $this->reasonPhrase = self::$phrases[$this->statusCode]; - } else { - $this->reasonPhrase = (string) $reason; - } - - $this->protocol = $version; - } - - public function getStatusCode() - { - return $this->statusCode; - } - - public function getReasonPhrase() - { - return $this->reasonPhrase; - } - - public function withStatus($code, $reasonPhrase = '') - { - $this->assertStatusCodeIsInteger($code); - $code = (int) $code; - $this->assertStatusCodeRange($code); - - $new = clone $this; - $new->statusCode = $code; - if ($reasonPhrase == '' && isset(self::$phrases[$new->statusCode])) { - $reasonPhrase = self::$phrases[$new->statusCode]; - } - $new->reasonPhrase = $reasonPhrase; - return $new; - } - - private function assertStatusCodeIsInteger($statusCode) - { - if (filter_var($statusCode, FILTER_VALIDATE_INT) === false) { - throw new \InvalidArgumentException('Status code must be an integer value.'); - } - } - - private function assertStatusCodeRange($statusCode) - { - if ($statusCode < 100 || $statusCode >= 600) { - throw new \InvalidArgumentException('Status code must be an integer value between 1xx and 5xx.'); - } - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/functions_include.php b/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/functions_include.php deleted file mode 100644 index 96a4a83..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/functions_include.php +++ /dev/null @@ -1,6 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog; - -use Psr\Log\LoggerInterface; -use Psr\Log\LogLevel; -use Monolog\Handler\AbstractHandler; - -/** - * Monolog error handler - * - * A facility to enable logging of runtime errors, exceptions and fatal errors. - * - * Quick setup: ErrorHandler::register($logger); - * - * @author Jordi Boggiano - */ -class ErrorHandler -{ - private $logger; - - private $previousExceptionHandler; - private $uncaughtExceptionLevel; - - private $previousErrorHandler; - private $errorLevelMap; - private $handleOnlyReportedErrors; - - private $hasFatalErrorHandler; - private $fatalLevel; - private $reservedMemory; - private $lastFatalTrace; - private static $fatalErrors = array(E_ERROR, E_PARSE, E_CORE_ERROR, E_COMPILE_ERROR, E_USER_ERROR); - - public function __construct(LoggerInterface $logger) - { - $this->logger = $logger; - } - - /** - * Registers a new ErrorHandler for a given Logger - * - * By default it will handle errors, exceptions and fatal errors - * - * @param LoggerInterface $logger - * @param array|false $errorLevelMap an array of E_* constant to LogLevel::* constant mapping, or false to disable error handling - * @param int|false $exceptionLevel a LogLevel::* constant, or false to disable exception handling - * @param int|false $fatalLevel a LogLevel::* constant, or false to disable fatal error handling - * @return ErrorHandler - */ - public static function register(LoggerInterface $logger, $errorLevelMap = array(), $exceptionLevel = null, $fatalLevel = null) - { - //Forces the autoloader to run for LogLevel. Fixes an autoload issue at compile-time on PHP5.3. See https://github.com/Seldaek/monolog/pull/929 - class_exists('\\Psr\\Log\\LogLevel', true); - - $handler = new static($logger); - if ($errorLevelMap !== false) { - $handler->registerErrorHandler($errorLevelMap); - } - if ($exceptionLevel !== false) { - $handler->registerExceptionHandler($exceptionLevel); - } - if ($fatalLevel !== false) { - $handler->registerFatalHandler($fatalLevel); - } - - return $handler; - } - - public function registerExceptionHandler($level = null, $callPrevious = true) - { - $prev = set_exception_handler(array($this, 'handleException')); - $this->uncaughtExceptionLevel = $level; - if ($callPrevious && $prev) { - $this->previousExceptionHandler = $prev; - } - } - - public function registerErrorHandler(array $levelMap = array(), $callPrevious = true, $errorTypes = -1, $handleOnlyReportedErrors = true) - { - $prev = set_error_handler(array($this, 'handleError'), $errorTypes); - $this->errorLevelMap = array_replace($this->defaultErrorLevelMap(), $levelMap); - if ($callPrevious) { - $this->previousErrorHandler = $prev ?: true; - } - - $this->handleOnlyReportedErrors = $handleOnlyReportedErrors; - } - - public function registerFatalHandler($level = null, $reservedMemorySize = 20) - { - register_shutdown_function(array($this, 'handleFatalError')); - - $this->reservedMemory = str_repeat(' ', 1024 * $reservedMemorySize); - $this->fatalLevel = $level; - $this->hasFatalErrorHandler = true; - } - - protected function defaultErrorLevelMap() - { - return array( - E_ERROR => LogLevel::CRITICAL, - E_WARNING => LogLevel::WARNING, - E_PARSE => LogLevel::ALERT, - E_NOTICE => LogLevel::NOTICE, - E_CORE_ERROR => LogLevel::CRITICAL, - E_CORE_WARNING => LogLevel::WARNING, - E_COMPILE_ERROR => LogLevel::ALERT, - E_COMPILE_WARNING => LogLevel::WARNING, - E_USER_ERROR => LogLevel::ERROR, - E_USER_WARNING => LogLevel::WARNING, - E_USER_NOTICE => LogLevel::NOTICE, - E_STRICT => LogLevel::NOTICE, - E_RECOVERABLE_ERROR => LogLevel::ERROR, - E_DEPRECATED => LogLevel::NOTICE, - E_USER_DEPRECATED => LogLevel::NOTICE, - ); - } - - /** - * @private - */ - public function handleException($e) - { - $this->logger->log( - $this->uncaughtExceptionLevel === null ? LogLevel::ERROR : $this->uncaughtExceptionLevel, - sprintf('Uncaught Exception %s: "%s" at %s line %s', Utils::getClass($e), $e->getMessage(), $e->getFile(), $e->getLine()), - array('exception' => $e) - ); - - if ($this->previousExceptionHandler) { - call_user_func($this->previousExceptionHandler, $e); - } - - exit(255); - } - - /** - * @private - */ - public function handleError($code, $message, $file = '', $line = 0, $context = array()) - { - if ($this->handleOnlyReportedErrors && !(error_reporting() & $code)) { - return; - } - - // fatal error codes are ignored if a fatal error handler is present as well to avoid duplicate log entries - if (!$this->hasFatalErrorHandler || !in_array($code, self::$fatalErrors, true)) { - $level = isset($this->errorLevelMap[$code]) ? $this->errorLevelMap[$code] : LogLevel::CRITICAL; - $this->logger->log($level, self::codeToString($code).': '.$message, array('code' => $code, 'message' => $message, 'file' => $file, 'line' => $line)); - } else { - // http://php.net/manual/en/function.debug-backtrace.php - // As of 5.3.6, DEBUG_BACKTRACE_IGNORE_ARGS option was added. - // Any version less than 5.3.6 must use the DEBUG_BACKTRACE_IGNORE_ARGS constant value '2'. - $trace = debug_backtrace((PHP_VERSION_ID < 50306) ? 2 : DEBUG_BACKTRACE_IGNORE_ARGS); - array_shift($trace); // Exclude handleError from trace - $this->lastFatalTrace = $trace; - } - - if ($this->previousErrorHandler === true) { - return false; - } elseif ($this->previousErrorHandler) { - return call_user_func($this->previousErrorHandler, $code, $message, $file, $line, $context); - } - } - - /** - * @private - */ - public function handleFatalError() - { - $this->reservedMemory = null; - - $lastError = error_get_last(); - if ($lastError && in_array($lastError['type'], self::$fatalErrors, true)) { - $this->logger->log( - $this->fatalLevel === null ? LogLevel::ALERT : $this->fatalLevel, - 'Fatal Error ('.self::codeToString($lastError['type']).'): '.$lastError['message'], - array('code' => $lastError['type'], 'message' => $lastError['message'], 'file' => $lastError['file'], 'line' => $lastError['line'], 'trace' => $this->lastFatalTrace) - ); - - if ($this->logger instanceof Logger) { - foreach ($this->logger->getHandlers() as $handler) { - if ($handler instanceof AbstractHandler) { - $handler->close(); - } - } - } - } - } - - private static function codeToString($code) - { - switch ($code) { - case E_ERROR: - return 'E_ERROR'; - case E_WARNING: - return 'E_WARNING'; - case E_PARSE: - return 'E_PARSE'; - case E_NOTICE: - return 'E_NOTICE'; - case E_CORE_ERROR: - return 'E_CORE_ERROR'; - case E_CORE_WARNING: - return 'E_CORE_WARNING'; - case E_COMPILE_ERROR: - return 'E_COMPILE_ERROR'; - case E_COMPILE_WARNING: - return 'E_COMPILE_WARNING'; - case E_USER_ERROR: - return 'E_USER_ERROR'; - case E_USER_WARNING: - return 'E_USER_WARNING'; - case E_USER_NOTICE: - return 'E_USER_NOTICE'; - case E_STRICT: - return 'E_STRICT'; - case E_RECOVERABLE_ERROR: - return 'E_RECOVERABLE_ERROR'; - case E_DEPRECATED: - return 'E_DEPRECATED'; - case E_USER_DEPRECATED: - return 'E_USER_DEPRECATED'; - } - - return 'Unknown PHP error'; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/AbstractSyslogHandler.php b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/AbstractSyslogHandler.php deleted file mode 100644 index 8c76aca..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/AbstractSyslogHandler.php +++ /dev/null @@ -1,101 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\Logger; -use Monolog\Formatter\LineFormatter; - -/** - * Common syslog functionality - */ -abstract class AbstractSyslogHandler extends AbstractProcessingHandler -{ - protected $facility; - - /** - * Translates Monolog log levels to syslog log priorities. - */ - protected $logLevels = array( - Logger::DEBUG => LOG_DEBUG, - Logger::INFO => LOG_INFO, - Logger::NOTICE => LOG_NOTICE, - Logger::WARNING => LOG_WARNING, - Logger::ERROR => LOG_ERR, - Logger::CRITICAL => LOG_CRIT, - Logger::ALERT => LOG_ALERT, - Logger::EMERGENCY => LOG_EMERG, - ); - - /** - * List of valid log facility names. - */ - protected $facilities = array( - 'auth' => LOG_AUTH, - 'authpriv' => LOG_AUTHPRIV, - 'cron' => LOG_CRON, - 'daemon' => LOG_DAEMON, - 'kern' => LOG_KERN, - 'lpr' => LOG_LPR, - 'mail' => LOG_MAIL, - 'news' => LOG_NEWS, - 'syslog' => LOG_SYSLOG, - 'user' => LOG_USER, - 'uucp' => LOG_UUCP, - ); - - /** - * @param mixed $facility - * @param int $level The minimum logging level at which this handler will be triggered - * @param bool $bubble Whether the messages that are handled can bubble up the stack or not - */ - public function __construct($facility = LOG_USER, $level = Logger::DEBUG, $bubble = true) - { - parent::__construct($level, $bubble); - - if (!defined('PHP_WINDOWS_VERSION_BUILD')) { - $this->facilities['local0'] = LOG_LOCAL0; - $this->facilities['local1'] = LOG_LOCAL1; - $this->facilities['local2'] = LOG_LOCAL2; - $this->facilities['local3'] = LOG_LOCAL3; - $this->facilities['local4'] = LOG_LOCAL4; - $this->facilities['local5'] = LOG_LOCAL5; - $this->facilities['local6'] = LOG_LOCAL6; - $this->facilities['local7'] = LOG_LOCAL7; - } else { - $this->facilities['local0'] = 128; // LOG_LOCAL0 - $this->facilities['local1'] = 136; // LOG_LOCAL1 - $this->facilities['local2'] = 144; // LOG_LOCAL2 - $this->facilities['local3'] = 152; // LOG_LOCAL3 - $this->facilities['local4'] = 160; // LOG_LOCAL4 - $this->facilities['local5'] = 168; // LOG_LOCAL5 - $this->facilities['local6'] = 176; // LOG_LOCAL6 - $this->facilities['local7'] = 184; // LOG_LOCAL7 - } - - // convert textual description of facility to syslog constant - if (array_key_exists(strtolower($facility), $this->facilities)) { - $facility = $this->facilities[strtolower($facility)]; - } elseif (!in_array($facility, array_values($this->facilities), true)) { - throw new \UnexpectedValueException('Unknown facility value "'.$facility.'" given'); - } - - $this->facility = $facility; - } - - /** - * {@inheritdoc} - */ - protected function getDefaultFormatter() - { - return new LineFormatter('%channel%.%level_name%: %message% %context% %extra%'); - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/CouchDBHandler.php b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/CouchDBHandler.php deleted file mode 100644 index cc98697..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/CouchDBHandler.php +++ /dev/null @@ -1,72 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\Formatter\JsonFormatter; -use Monolog\Logger; - -/** - * CouchDB handler - * - * @author Markus Bachmann - */ -class CouchDBHandler extends AbstractProcessingHandler -{ - private $options; - - public function __construct(array $options = array(), $level = Logger::DEBUG, $bubble = true) - { - $this->options = array_merge(array( - 'host' => 'localhost', - 'port' => 5984, - 'dbname' => 'logger', - 'username' => null, - 'password' => null, - ), $options); - - parent::__construct($level, $bubble); - } - - /** - * {@inheritDoc} - */ - protected function write(array $record) - { - $basicAuth = null; - if ($this->options['username']) { - $basicAuth = sprintf('%s:%s@', $this->options['username'], $this->options['password']); - } - - $url = 'http://'.$basicAuth.$this->options['host'].':'.$this->options['port'].'/'.$this->options['dbname']; - $context = stream_context_create(array( - 'http' => array( - 'method' => 'POST', - 'content' => $record['formatted'], - 'ignore_errors' => true, - 'max_redirects' => 0, - 'header' => 'Content-type: application/json', - ), - )); - - if (false === @file_get_contents($url, null, $context)) { - throw new \RuntimeException(sprintf('Could not connect to %s', $url)); - } - } - - /** - * {@inheritDoc} - */ - protected function getDefaultFormatter() - { - return new JsonFormatter(JsonFormatter::BATCH_MODE_JSON, false); - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/Curl/Util.php b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/Curl/Util.php deleted file mode 100644 index 48d30b3..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/Curl/Util.php +++ /dev/null @@ -1,57 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler\Curl; - -class Util -{ - private static $retriableErrorCodes = array( - CURLE_COULDNT_RESOLVE_HOST, - CURLE_COULDNT_CONNECT, - CURLE_HTTP_NOT_FOUND, - CURLE_READ_ERROR, - CURLE_OPERATION_TIMEOUTED, - CURLE_HTTP_POST_ERROR, - CURLE_SSL_CONNECT_ERROR, - ); - - /** - * Executes a CURL request with optional retries and exception on failure - * - * @param resource $ch curl handler - * @throws \RuntimeException - */ - public static function execute($ch, $retries = 5, $closeAfterDone = true) - { - while ($retries--) { - if (curl_exec($ch) === false) { - $curlErrno = curl_errno($ch); - - if (false === in_array($curlErrno, self::$retriableErrorCodes, true) || !$retries) { - $curlError = curl_error($ch); - - if ($closeAfterDone) { - curl_close($ch); - } - - throw new \RuntimeException(sprintf('Curl error (code %s): %s', $curlErrno, $curlError)); - } - - continue; - } - - if ($closeAfterDone) { - curl_close($ch); - } - break; - } - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/ZendMonitorHandler.php b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/ZendMonitorHandler.php deleted file mode 100644 index a20aeae..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/ZendMonitorHandler.php +++ /dev/null @@ -1,101 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog\Handler; - -use Monolog\Formatter\NormalizerFormatter; -use Monolog\Logger; - -/** - * Handler sending logs to Zend Monitor - * - * @author Christian Bergau - * @author Jason Davis - */ -class ZendMonitorHandler extends AbstractProcessingHandler -{ - /** - * Monolog level / ZendMonitor Custom Event priority map - * - * @var array - */ - protected $levelMap = array(); - - /** - * Construct - * - * @param int $level - * @param bool $bubble - * @throws MissingExtensionException - */ - public function __construct($level = Logger::DEBUG, $bubble = true) - { - if (!function_exists('zend_monitor_custom_event')) { - throw new MissingExtensionException( - 'You must have Zend Server installed with Zend Monitor enabled in order to use this handler' - ); - } - //zend monitor constants are not defined if zend monitor is not enabled. - $this->levelMap = array( - Logger::DEBUG => \ZEND_MONITOR_EVENT_SEVERITY_INFO, - Logger::INFO => \ZEND_MONITOR_EVENT_SEVERITY_INFO, - Logger::NOTICE => \ZEND_MONITOR_EVENT_SEVERITY_INFO, - Logger::WARNING => \ZEND_MONITOR_EVENT_SEVERITY_WARNING, - Logger::ERROR => \ZEND_MONITOR_EVENT_SEVERITY_ERROR, - Logger::CRITICAL => \ZEND_MONITOR_EVENT_SEVERITY_ERROR, - Logger::ALERT => \ZEND_MONITOR_EVENT_SEVERITY_ERROR, - Logger::EMERGENCY => \ZEND_MONITOR_EVENT_SEVERITY_ERROR, - ); - parent::__construct($level, $bubble); - } - - /** - * {@inheritdoc} - */ - protected function write(array $record) - { - $this->writeZendMonitorCustomEvent( - Logger::getLevelName($record['level']), - $record['message'], - $record['formatted'], - $this->levelMap[$record['level']] - ); - } - - /** - * Write to Zend Monitor Events - * @param string $type Text displayed in "Class Name (custom)" field - * @param string $message Text displayed in "Error String" - * @param mixed $formatted Displayed in Custom Variables tab - * @param int $severity Set the event severity level (-1,0,1) - */ - protected function writeZendMonitorCustomEvent($type, $message, $formatted, $severity) - { - zend_monitor_custom_event($type, $message, $formatted, $severity); - } - - /** - * {@inheritdoc} - */ - public function getDefaultFormatter() - { - return new NormalizerFormatter(); - } - - /** - * Get the level map - * - * @return array - */ - public function getLevelMap() - { - return $this->levelMap; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/SignalHandler.php b/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/SignalHandler.php deleted file mode 100644 index d87018f..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/SignalHandler.php +++ /dev/null @@ -1,115 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Monolog; - -use Psr\Log\LoggerInterface; -use Psr\Log\LogLevel; -use ReflectionExtension; - -/** - * Monolog POSIX signal handler - * - * @author Robert Gust-Bardon - */ -class SignalHandler -{ - private $logger; - - private $previousSignalHandler = array(); - private $signalLevelMap = array(); - private $signalRestartSyscalls = array(); - - public function __construct(LoggerInterface $logger) - { - $this->logger = $logger; - } - - public function registerSignalHandler($signo, $level = LogLevel::CRITICAL, $callPrevious = true, $restartSyscalls = true, $async = true) - { - if (!extension_loaded('pcntl') || !function_exists('pcntl_signal')) { - return $this; - } - - if ($callPrevious) { - if (function_exists('pcntl_signal_get_handler')) { - $handler = pcntl_signal_get_handler($signo); - if ($handler === false) { - return $this; - } - $this->previousSignalHandler[$signo] = $handler; - } else { - $this->previousSignalHandler[$signo] = true; - } - } else { - unset($this->previousSignalHandler[$signo]); - } - $this->signalLevelMap[$signo] = $level; - $this->signalRestartSyscalls[$signo] = $restartSyscalls; - - if (function_exists('pcntl_async_signals') && $async !== null) { - pcntl_async_signals($async); - } - - pcntl_signal($signo, array($this, 'handleSignal'), $restartSyscalls); - - return $this; - } - - public function handleSignal($signo, array $siginfo = null) - { - static $signals = array(); - - if (!$signals && extension_loaded('pcntl')) { - $pcntl = new ReflectionExtension('pcntl'); - $constants = $pcntl->getConstants(); - if (!$constants) { - // HHVM 3.24.2 returns an empty array. - $constants = get_defined_constants(true); - $constants = $constants['Core']; - } - foreach ($constants as $name => $value) { - if (substr($name, 0, 3) === 'SIG' && $name[3] !== '_' && is_int($value)) { - $signals[$value] = $name; - } - } - unset($constants); - } - - $level = isset($this->signalLevelMap[$signo]) ? $this->signalLevelMap[$signo] : LogLevel::CRITICAL; - $signal = isset($signals[$signo]) ? $signals[$signo] : $signo; - $context = isset($siginfo) ? $siginfo : array(); - $this->logger->log($level, sprintf('Program received signal %s', $signal), $context); - - if (!isset($this->previousSignalHandler[$signo])) { - return; - } - - if ($this->previousSignalHandler[$signo] === true || $this->previousSignalHandler[$signo] === SIG_DFL) { - if (extension_loaded('pcntl') && function_exists('pcntl_signal') && function_exists('pcntl_sigprocmask') && function_exists('pcntl_signal_dispatch') - && extension_loaded('posix') && function_exists('posix_getpid') && function_exists('posix_kill')) { - $restartSyscalls = isset($this->signalRestartSyscalls[$signo]) ? $this->signalRestartSyscalls[$signo] : true; - pcntl_signal($signo, SIG_DFL, $restartSyscalls); - pcntl_sigprocmask(SIG_UNBLOCK, array($signo), $oldset); - posix_kill(posix_getpid(), $signo); - pcntl_signal_dispatch(); - pcntl_sigprocmask(SIG_SETMASK, $oldset); - pcntl_signal($signo, array($this, 'handleSignal'), $restartSyscalls); - } - } elseif (is_callable($this->previousSignalHandler[$signo])) { - if (PHP_VERSION_ID >= 70100) { - $this->previousSignalHandler[$signo]($signo, $siginfo); - } else { - $this->previousSignalHandler[$signo]($signo); - } - } - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/phpseclib/phpseclib/phpseclib/bootstrap.php b/wp-content/plugins/wp-mail-smtp/vendor/phpseclib/phpseclib/phpseclib/bootstrap.php deleted file mode 100644 index 0da0999..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/phpseclib/phpseclib/phpseclib/bootstrap.php +++ /dev/null @@ -1,16 +0,0 @@ -client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); - $this->headerSelector = $selector ?: new HeaderSelector(); - } - - /** - * @return Configuration - */ - public function getConfig() - { - return $this->config; - } - - /** - * Operation addCredits - * - * Add Email and/or SMS credits to a specific child account - * - * @param string $childAuthKey auth key of reseller's child (required) - * @param \SendinBlue\Client\Model\AddCredits $addCredits Values to post to add credit to a specific child account (required) - * - * @throws \SendinBlue\Client\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SendinBlue\Client\Model\RemainingCreditModel - */ - public function addCredits($childAuthKey, $addCredits) - { - list($response) = $this->addCreditsWithHttpInfo($childAuthKey, $addCredits); - return $response; - } - - /** - * Operation addCreditsWithHttpInfo - * - * Add Email and/or SMS credits to a specific child account - * - * @param string $childAuthKey auth key of reseller's child (required) - * @param \SendinBlue\Client\Model\AddCredits $addCredits Values to post to add credit to a specific child account (required) - * - * @throws \SendinBlue\Client\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SendinBlue\Client\Model\RemainingCreditModel, HTTP status code, HTTP response headers (array of strings) - */ - public function addCreditsWithHttpInfo($childAuthKey, $addCredits) - { - $returnType = '\SendinBlue\Client\Model\RemainingCreditModel'; - $request = $this->addCreditsRequest($childAuthKey, $addCredits); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\RemainingCreditModel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation addCreditsAsync - * - * Add Email and/or SMS credits to a specific child account - * - * @param string $childAuthKey auth key of reseller's child (required) - * @param \SendinBlue\Client\Model\AddCredits $addCredits Values to post to add credit to a specific child account (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function addCreditsAsync($childAuthKey, $addCredits) - { - return $this->addCreditsAsyncWithHttpInfo($childAuthKey, $addCredits) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation addCreditsAsyncWithHttpInfo - * - * Add Email and/or SMS credits to a specific child account - * - * @param string $childAuthKey auth key of reseller's child (required) - * @param \SendinBlue\Client\Model\AddCredits $addCredits Values to post to add credit to a specific child account (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function addCreditsAsyncWithHttpInfo($childAuthKey, $addCredits) - { - $returnType = '\SendinBlue\Client\Model\RemainingCreditModel'; - $request = $this->addCreditsRequest($childAuthKey, $addCredits); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'addCredits' - * - * @param string $childAuthKey auth key of reseller's child (required) - * @param \SendinBlue\Client\Model\AddCredits $addCredits Values to post to add credit to a specific child account (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - protected function addCreditsRequest($childAuthKey, $addCredits) - { - // verify the required parameter 'childAuthKey' is set - if ($childAuthKey === null || (is_array($childAuthKey) && count($childAuthKey) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $childAuthKey when calling addCredits' - ); - } - // verify the required parameter 'addCredits' is set - if ($addCredits === null || (is_array($addCredits) && count($addCredits) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $addCredits when calling addCredits' - ); - } - - $resourcePath = '/reseller/children/{childAuthKey}/credits/add'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - - // path params - if ($childAuthKey !== null) { - $resourcePath = str_replace( - '{' . 'childAuthKey' . '}', - ObjectSerializer::toPathValue($childAuthKey), - $resourcePath - ); - } - - // body params - $_tempBody = null; - if (isset($addCredits)) { - $_tempBody = $addCredits; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($_tempBody)) { - // $_tempBody is the method argument, if present - $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { - // \stdClass has no __toString(), so we should encode it manually - if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); - } - // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); - } - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('api-key'); - if ($apiKey !== null) { - $headers['api-key'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('partner-key'); - if ($apiKey !== null) { - $headers['partner-key'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation associateIpToChild - * - * Associate a dedicated IP to the child - * - * @param string $childAuthKey auth key of reseller's child (required) - * @param \SendinBlue\Client\Model\ManageIp $ip IP to associate (required) - * - * @throws \SendinBlue\Client\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return void - */ - public function associateIpToChild($childAuthKey, $ip) - { - $this->associateIpToChildWithHttpInfo($childAuthKey, $ip); - } - - /** - * Operation associateIpToChildWithHttpInfo - * - * Associate a dedicated IP to the child - * - * @param string $childAuthKey auth key of reseller's child (required) - * @param \SendinBlue\Client\Model\ManageIp $ip IP to associate (required) - * - * @throws \SendinBlue\Client\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of null, HTTP status code, HTTP response headers (array of strings) - */ - public function associateIpToChildWithHttpInfo($childAuthKey, $ip) - { - $returnType = ''; - $request = $this->associateIpToChildRequest($childAuthKey, $ip); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation associateIpToChildAsync - * - * Associate a dedicated IP to the child - * - * @param string $childAuthKey auth key of reseller's child (required) - * @param \SendinBlue\Client\Model\ManageIp $ip IP to associate (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function associateIpToChildAsync($childAuthKey, $ip) - { - return $this->associateIpToChildAsyncWithHttpInfo($childAuthKey, $ip) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation associateIpToChildAsyncWithHttpInfo - * - * Associate a dedicated IP to the child - * - * @param string $childAuthKey auth key of reseller's child (required) - * @param \SendinBlue\Client\Model\ManageIp $ip IP to associate (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function associateIpToChildAsyncWithHttpInfo($childAuthKey, $ip) - { - $returnType = ''; - $request = $this->associateIpToChildRequest($childAuthKey, $ip); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - return [null, $response->getStatusCode(), $response->getHeaders()]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'associateIpToChild' - * - * @param string $childAuthKey auth key of reseller's child (required) - * @param \SendinBlue\Client\Model\ManageIp $ip IP to associate (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - protected function associateIpToChildRequest($childAuthKey, $ip) - { - // verify the required parameter 'childAuthKey' is set - if ($childAuthKey === null || (is_array($childAuthKey) && count($childAuthKey) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $childAuthKey when calling associateIpToChild' - ); - } - // verify the required parameter 'ip' is set - if ($ip === null || (is_array($ip) && count($ip) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $ip when calling associateIpToChild' - ); - } - - $resourcePath = '/reseller/children/{childAuthKey}/ips/associate'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - - // path params - if ($childAuthKey !== null) { - $resourcePath = str_replace( - '{' . 'childAuthKey' . '}', - ObjectSerializer::toPathValue($childAuthKey), - $resourcePath - ); - } - - // body params - $_tempBody = null; - if (isset($ip)) { - $_tempBody = $ip; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($_tempBody)) { - // $_tempBody is the method argument, if present - $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { - // \stdClass has no __toString(), so we should encode it manually - if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); - } - // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); - } - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('api-key'); - if ($apiKey !== null) { - $headers['api-key'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('partner-key'); - if ($apiKey !== null) { - $headers['partner-key'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation createChildDomain - * - * Creates a domain for a child account - * - * @param string $childAuthKey auth key of reseller's child (required) - * @param \SendinBlue\Client\Model\AddChildDomain $addChildDomain Sender domain to add for a specific child account. This will not be displayed to the parent account. (required) - * - * @throws \SendinBlue\Client\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return void - */ - public function createChildDomain($childAuthKey, $addChildDomain) - { - $this->createChildDomainWithHttpInfo($childAuthKey, $addChildDomain); - } - - /** - * Operation createChildDomainWithHttpInfo - * - * Creates a domain for a child account - * - * @param string $childAuthKey auth key of reseller's child (required) - * @param \SendinBlue\Client\Model\AddChildDomain $addChildDomain Sender domain to add for a specific child account. This will not be displayed to the parent account. (required) - * - * @throws \SendinBlue\Client\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of null, HTTP status code, HTTP response headers (array of strings) - */ - public function createChildDomainWithHttpInfo($childAuthKey, $addChildDomain) - { - $returnType = ''; - $request = $this->createChildDomainRequest($childAuthKey, $addChildDomain); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation createChildDomainAsync - * - * Creates a domain for a child account - * - * @param string $childAuthKey auth key of reseller's child (required) - * @param \SendinBlue\Client\Model\AddChildDomain $addChildDomain Sender domain to add for a specific child account. This will not be displayed to the parent account. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createChildDomainAsync($childAuthKey, $addChildDomain) - { - return $this->createChildDomainAsyncWithHttpInfo($childAuthKey, $addChildDomain) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation createChildDomainAsyncWithHttpInfo - * - * Creates a domain for a child account - * - * @param string $childAuthKey auth key of reseller's child (required) - * @param \SendinBlue\Client\Model\AddChildDomain $addChildDomain Sender domain to add for a specific child account. This will not be displayed to the parent account. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createChildDomainAsyncWithHttpInfo($childAuthKey, $addChildDomain) - { - $returnType = ''; - $request = $this->createChildDomainRequest($childAuthKey, $addChildDomain); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - return [null, $response->getStatusCode(), $response->getHeaders()]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'createChildDomain' - * - * @param string $childAuthKey auth key of reseller's child (required) - * @param \SendinBlue\Client\Model\AddChildDomain $addChildDomain Sender domain to add for a specific child account. This will not be displayed to the parent account. (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - protected function createChildDomainRequest($childAuthKey, $addChildDomain) - { - // verify the required parameter 'childAuthKey' is set - if ($childAuthKey === null || (is_array($childAuthKey) && count($childAuthKey) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $childAuthKey when calling createChildDomain' - ); - } - // verify the required parameter 'addChildDomain' is set - if ($addChildDomain === null || (is_array($addChildDomain) && count($addChildDomain) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $addChildDomain when calling createChildDomain' - ); - } - - $resourcePath = '/reseller/children/{childAuthKey}/domains'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - - // path params - if ($childAuthKey !== null) { - $resourcePath = str_replace( - '{' . 'childAuthKey' . '}', - ObjectSerializer::toPathValue($childAuthKey), - $resourcePath - ); - } - - // body params - $_tempBody = null; - if (isset($addChildDomain)) { - $_tempBody = $addChildDomain; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($_tempBody)) { - // $_tempBody is the method argument, if present - $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { - // \stdClass has no __toString(), so we should encode it manually - if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); - } - // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); - } - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('api-key'); - if ($apiKey !== null) { - $headers['api-key'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('partner-key'); - if ($apiKey !== null) { - $headers['partner-key'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation createResellerChild - * - * Creates a reseller child - * - * @param \SendinBlue\Client\Model\CreateChild $resellerChild reseller child to add (optional) - * - * @throws \SendinBlue\Client\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SendinBlue\Client\Model\CreateReseller - */ - public function createResellerChild($resellerChild = null) - { - list($response) = $this->createResellerChildWithHttpInfo($resellerChild); - return $response; - } - - /** - * Operation createResellerChildWithHttpInfo - * - * Creates a reseller child - * - * @param \SendinBlue\Client\Model\CreateChild $resellerChild reseller child to add (optional) - * - * @throws \SendinBlue\Client\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SendinBlue\Client\Model\CreateReseller, HTTP status code, HTTP response headers (array of strings) - */ - public function createResellerChildWithHttpInfo($resellerChild = null) - { - $returnType = '\SendinBlue\Client\Model\CreateReseller'; - $request = $this->createResellerChildRequest($resellerChild); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 201: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\CreateReseller', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation createResellerChildAsync - * - * Creates a reseller child - * - * @param \SendinBlue\Client\Model\CreateChild $resellerChild reseller child to add (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createResellerChildAsync($resellerChild = null) - { - return $this->createResellerChildAsyncWithHttpInfo($resellerChild) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation createResellerChildAsyncWithHttpInfo - * - * Creates a reseller child - * - * @param \SendinBlue\Client\Model\CreateChild $resellerChild reseller child to add (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function createResellerChildAsyncWithHttpInfo($resellerChild = null) - { - $returnType = '\SendinBlue\Client\Model\CreateReseller'; - $request = $this->createResellerChildRequest($resellerChild); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'createResellerChild' - * - * @param \SendinBlue\Client\Model\CreateChild $resellerChild reseller child to add (optional) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - protected function createResellerChildRequest($resellerChild = null) - { - - $resourcePath = '/reseller/children'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - - - // body params - $_tempBody = null; - if (isset($resellerChild)) { - $_tempBody = $resellerChild; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($_tempBody)) { - // $_tempBody is the method argument, if present - $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { - // \stdClass has no __toString(), so we should encode it manually - if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); - } - // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); - } - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('api-key'); - if ($apiKey !== null) { - $headers['api-key'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('partner-key'); - if ($apiKey !== null) { - $headers['partner-key'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation deleteChildDomain - * - * Deletes the sender domain of the reseller child based on the childAuthKey and domainName passed - * - * @param string $childAuthKey auth key of reseller's child (required) - * @param string $domainName Pass the existing domain that needs to be deleted (required) - * - * @throws \SendinBlue\Client\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return void - */ - public function deleteChildDomain($childAuthKey, $domainName) - { - $this->deleteChildDomainWithHttpInfo($childAuthKey, $domainName); - } - - /** - * Operation deleteChildDomainWithHttpInfo - * - * Deletes the sender domain of the reseller child based on the childAuthKey and domainName passed - * - * @param string $childAuthKey auth key of reseller's child (required) - * @param string $domainName Pass the existing domain that needs to be deleted (required) - * - * @throws \SendinBlue\Client\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of null, HTTP status code, HTTP response headers (array of strings) - */ - public function deleteChildDomainWithHttpInfo($childAuthKey, $domainName) - { - $returnType = ''; - $request = $this->deleteChildDomainRequest($childAuthKey, $domainName); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation deleteChildDomainAsync - * - * Deletes the sender domain of the reseller child based on the childAuthKey and domainName passed - * - * @param string $childAuthKey auth key of reseller's child (required) - * @param string $domainName Pass the existing domain that needs to be deleted (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function deleteChildDomainAsync($childAuthKey, $domainName) - { - return $this->deleteChildDomainAsyncWithHttpInfo($childAuthKey, $domainName) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation deleteChildDomainAsyncWithHttpInfo - * - * Deletes the sender domain of the reseller child based on the childAuthKey and domainName passed - * - * @param string $childAuthKey auth key of reseller's child (required) - * @param string $domainName Pass the existing domain that needs to be deleted (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function deleteChildDomainAsyncWithHttpInfo($childAuthKey, $domainName) - { - $returnType = ''; - $request = $this->deleteChildDomainRequest($childAuthKey, $domainName); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - return [null, $response->getStatusCode(), $response->getHeaders()]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'deleteChildDomain' - * - * @param string $childAuthKey auth key of reseller's child (required) - * @param string $domainName Pass the existing domain that needs to be deleted (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - protected function deleteChildDomainRequest($childAuthKey, $domainName) - { - // verify the required parameter 'childAuthKey' is set - if ($childAuthKey === null || (is_array($childAuthKey) && count($childAuthKey) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $childAuthKey when calling deleteChildDomain' - ); - } - // verify the required parameter 'domainName' is set - if ($domainName === null || (is_array($domainName) && count($domainName) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $domainName when calling deleteChildDomain' - ); - } - - $resourcePath = '/reseller/children/{childAuthKey}/domains/{domainName}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - - // path params - if ($childAuthKey !== null) { - $resourcePath = str_replace( - '{' . 'childAuthKey' . '}', - ObjectSerializer::toPathValue($childAuthKey), - $resourcePath - ); - } - // path params - if ($domainName !== null) { - $resourcePath = str_replace( - '{' . 'domainName' . '}', - ObjectSerializer::toPathValue($domainName), - $resourcePath - ); - } - - // body params - $_tempBody = null; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($_tempBody)) { - // $_tempBody is the method argument, if present - $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { - // \stdClass has no __toString(), so we should encode it manually - if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); - } - // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); - } - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('api-key'); - if ($apiKey !== null) { - $headers['api-key'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('partner-key'); - if ($apiKey !== null) { - $headers['partner-key'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'DELETE', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation deleteResellerChild - * - * Deletes a single reseller child based on the childAuthKey supplied - * - * @param string $childAuthKey auth key of reseller's child (required) - * - * @throws \SendinBlue\Client\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return void - */ - public function deleteResellerChild($childAuthKey) - { - $this->deleteResellerChildWithHttpInfo($childAuthKey); - } - - /** - * Operation deleteResellerChildWithHttpInfo - * - * Deletes a single reseller child based on the childAuthKey supplied - * - * @param string $childAuthKey auth key of reseller's child (required) - * - * @throws \SendinBlue\Client\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of null, HTTP status code, HTTP response headers (array of strings) - */ - public function deleteResellerChildWithHttpInfo($childAuthKey) - { - $returnType = ''; - $request = $this->deleteResellerChildRequest($childAuthKey); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation deleteResellerChildAsync - * - * Deletes a single reseller child based on the childAuthKey supplied - * - * @param string $childAuthKey auth key of reseller's child (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function deleteResellerChildAsync($childAuthKey) - { - return $this->deleteResellerChildAsyncWithHttpInfo($childAuthKey) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation deleteResellerChildAsyncWithHttpInfo - * - * Deletes a single reseller child based on the childAuthKey supplied - * - * @param string $childAuthKey auth key of reseller's child (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function deleteResellerChildAsyncWithHttpInfo($childAuthKey) - { - $returnType = ''; - $request = $this->deleteResellerChildRequest($childAuthKey); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - return [null, $response->getStatusCode(), $response->getHeaders()]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'deleteResellerChild' - * - * @param string $childAuthKey auth key of reseller's child (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - protected function deleteResellerChildRequest($childAuthKey) - { - // verify the required parameter 'childAuthKey' is set - if ($childAuthKey === null || (is_array($childAuthKey) && count($childAuthKey) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $childAuthKey when calling deleteResellerChild' - ); - } - - $resourcePath = '/reseller/children/{childAuthKey}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - - // path params - if ($childAuthKey !== null) { - $resourcePath = str_replace( - '{' . 'childAuthKey' . '}', - ObjectSerializer::toPathValue($childAuthKey), - $resourcePath - ); - } - - // body params - $_tempBody = null; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($_tempBody)) { - // $_tempBody is the method argument, if present - $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { - // \stdClass has no __toString(), so we should encode it manually - if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); - } - // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); - } - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('api-key'); - if ($apiKey !== null) { - $headers['api-key'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('partner-key'); - if ($apiKey !== null) { - $headers['partner-key'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'DELETE', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation dissociateIpFromChild - * - * Dissociate a dedicated IP to the child - * - * @param string $childAuthKey auth key of reseller's child (required) - * @param \SendinBlue\Client\Model\ManageIp $ip IP to dissociate (required) - * - * @throws \SendinBlue\Client\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return void - */ - public function dissociateIpFromChild($childAuthKey, $ip) - { - $this->dissociateIpFromChildWithHttpInfo($childAuthKey, $ip); - } - - /** - * Operation dissociateIpFromChildWithHttpInfo - * - * Dissociate a dedicated IP to the child - * - * @param string $childAuthKey auth key of reseller's child (required) - * @param \SendinBlue\Client\Model\ManageIp $ip IP to dissociate (required) - * - * @throws \SendinBlue\Client\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of null, HTTP status code, HTTP response headers (array of strings) - */ - public function dissociateIpFromChildWithHttpInfo($childAuthKey, $ip) - { - $returnType = ''; - $request = $this->dissociateIpFromChildRequest($childAuthKey, $ip); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation dissociateIpFromChildAsync - * - * Dissociate a dedicated IP to the child - * - * @param string $childAuthKey auth key of reseller's child (required) - * @param \SendinBlue\Client\Model\ManageIp $ip IP to dissociate (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function dissociateIpFromChildAsync($childAuthKey, $ip) - { - return $this->dissociateIpFromChildAsyncWithHttpInfo($childAuthKey, $ip) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation dissociateIpFromChildAsyncWithHttpInfo - * - * Dissociate a dedicated IP to the child - * - * @param string $childAuthKey auth key of reseller's child (required) - * @param \SendinBlue\Client\Model\ManageIp $ip IP to dissociate (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function dissociateIpFromChildAsyncWithHttpInfo($childAuthKey, $ip) - { - $returnType = ''; - $request = $this->dissociateIpFromChildRequest($childAuthKey, $ip); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - return [null, $response->getStatusCode(), $response->getHeaders()]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'dissociateIpFromChild' - * - * @param string $childAuthKey auth key of reseller's child (required) - * @param \SendinBlue\Client\Model\ManageIp $ip IP to dissociate (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - protected function dissociateIpFromChildRequest($childAuthKey, $ip) - { - // verify the required parameter 'childAuthKey' is set - if ($childAuthKey === null || (is_array($childAuthKey) && count($childAuthKey) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $childAuthKey when calling dissociateIpFromChild' - ); - } - // verify the required parameter 'ip' is set - if ($ip === null || (is_array($ip) && count($ip) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $ip when calling dissociateIpFromChild' - ); - } - - $resourcePath = '/reseller/children/{childAuthKey}/ips/dissociate'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - - // path params - if ($childAuthKey !== null) { - $resourcePath = str_replace( - '{' . 'childAuthKey' . '}', - ObjectSerializer::toPathValue($childAuthKey), - $resourcePath - ); - } - - // body params - $_tempBody = null; - if (isset($ip)) { - $_tempBody = $ip; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($_tempBody)) { - // $_tempBody is the method argument, if present - $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { - // \stdClass has no __toString(), so we should encode it manually - if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); - } - // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); - } - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('api-key'); - if ($apiKey !== null) { - $headers['api-key'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('partner-key'); - if ($apiKey !== null) { - $headers['partner-key'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getChildAccountCreationStatus - * - * Returns the status of reseller's child account creation, whether it is successfully created (exists) or not based on the childAuthKey supplied - * - * @param string $childAuthKey auth key of reseller's child (required) - * - * @throws \SendinBlue\Client\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SendinBlue\Client\Model\GetChildAccountCreationStatus - */ - public function getChildAccountCreationStatus($childAuthKey) - { - list($response) = $this->getChildAccountCreationStatusWithHttpInfo($childAuthKey); - return $response; - } - - /** - * Operation getChildAccountCreationStatusWithHttpInfo - * - * Returns the status of reseller's child account creation, whether it is successfully created (exists) or not based on the childAuthKey supplied - * - * @param string $childAuthKey auth key of reseller's child (required) - * - * @throws \SendinBlue\Client\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SendinBlue\Client\Model\GetChildAccountCreationStatus, HTTP status code, HTTP response headers (array of strings) - */ - public function getChildAccountCreationStatusWithHttpInfo($childAuthKey) - { - $returnType = '\SendinBlue\Client\Model\GetChildAccountCreationStatus'; - $request = $this->getChildAccountCreationStatusRequest($childAuthKey); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\GetChildAccountCreationStatus', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation getChildAccountCreationStatusAsync - * - * Returns the status of reseller's child account creation, whether it is successfully created (exists) or not based on the childAuthKey supplied - * - * @param string $childAuthKey auth key of reseller's child (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getChildAccountCreationStatusAsync($childAuthKey) - { - return $this->getChildAccountCreationStatusAsyncWithHttpInfo($childAuthKey) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation getChildAccountCreationStatusAsyncWithHttpInfo - * - * Returns the status of reseller's child account creation, whether it is successfully created (exists) or not based on the childAuthKey supplied - * - * @param string $childAuthKey auth key of reseller's child (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getChildAccountCreationStatusAsyncWithHttpInfo($childAuthKey) - { - $returnType = '\SendinBlue\Client\Model\GetChildAccountCreationStatus'; - $request = $this->getChildAccountCreationStatusRequest($childAuthKey); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'getChildAccountCreationStatus' - * - * @param string $childAuthKey auth key of reseller's child (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - protected function getChildAccountCreationStatusRequest($childAuthKey) - { - // verify the required parameter 'childAuthKey' is set - if ($childAuthKey === null || (is_array($childAuthKey) && count($childAuthKey) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $childAuthKey when calling getChildAccountCreationStatus' - ); - } - - $resourcePath = '/reseller/children/{childAuthKey}/accountCreationStatus'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - - // path params - if ($childAuthKey !== null) { - $resourcePath = str_replace( - '{' . 'childAuthKey' . '}', - ObjectSerializer::toPathValue($childAuthKey), - $resourcePath - ); - } - - // body params - $_tempBody = null; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($_tempBody)) { - // $_tempBody is the method argument, if present - $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { - // \stdClass has no __toString(), so we should encode it manually - if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); - } - // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); - } - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('api-key'); - if ($apiKey !== null) { - $headers['api-key'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('partner-key'); - if ($apiKey !== null) { - $headers['partner-key'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getChildDomains - * - * Gets all the sender domains of a specific child account - * - * @param string $childAuthKey auth key of reseller's child (required) - * - * @throws \SendinBlue\Client\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SendinBlue\Client\Model\GetChildDomains - */ - public function getChildDomains($childAuthKey) - { - list($response) = $this->getChildDomainsWithHttpInfo($childAuthKey); - return $response; - } - - /** - * Operation getChildDomainsWithHttpInfo - * - * Gets all the sender domains of a specific child account - * - * @param string $childAuthKey auth key of reseller's child (required) - * - * @throws \SendinBlue\Client\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SendinBlue\Client\Model\GetChildDomains, HTTP status code, HTTP response headers (array of strings) - */ - public function getChildDomainsWithHttpInfo($childAuthKey) - { - $returnType = '\SendinBlue\Client\Model\GetChildDomains'; - $request = $this->getChildDomainsRequest($childAuthKey); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\GetChildDomains', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation getChildDomainsAsync - * - * Gets all the sender domains of a specific child account - * - * @param string $childAuthKey auth key of reseller's child (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getChildDomainsAsync($childAuthKey) - { - return $this->getChildDomainsAsyncWithHttpInfo($childAuthKey) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation getChildDomainsAsyncWithHttpInfo - * - * Gets all the sender domains of a specific child account - * - * @param string $childAuthKey auth key of reseller's child (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getChildDomainsAsyncWithHttpInfo($childAuthKey) - { - $returnType = '\SendinBlue\Client\Model\GetChildDomains'; - $request = $this->getChildDomainsRequest($childAuthKey); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'getChildDomains' - * - * @param string $childAuthKey auth key of reseller's child (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - protected function getChildDomainsRequest($childAuthKey) - { - // verify the required parameter 'childAuthKey' is set - if ($childAuthKey === null || (is_array($childAuthKey) && count($childAuthKey) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $childAuthKey when calling getChildDomains' - ); - } - - $resourcePath = '/reseller/children/{childAuthKey}/domains'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - - // path params - if ($childAuthKey !== null) { - $resourcePath = str_replace( - '{' . 'childAuthKey' . '}', - ObjectSerializer::toPathValue($childAuthKey), - $resourcePath - ); - } - - // body params - $_tempBody = null; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($_tempBody)) { - // $_tempBody is the method argument, if present - $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { - // \stdClass has no __toString(), so we should encode it manually - if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); - } - // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); - } - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('api-key'); - if ($apiKey !== null) { - $headers['api-key'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('partner-key'); - if ($apiKey !== null) { - $headers['partner-key'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getChildInfo - * - * Gets the info about a specific child account - * - * @param string $childAuthKey auth key of reseller's child (required) - * - * @throws \SendinBlue\Client\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SendinBlue\Client\Model\GetChildInfo - */ - public function getChildInfo($childAuthKey) - { - list($response) = $this->getChildInfoWithHttpInfo($childAuthKey); - return $response; - } - - /** - * Operation getChildInfoWithHttpInfo - * - * Gets the info about a specific child account - * - * @param string $childAuthKey auth key of reseller's child (required) - * - * @throws \SendinBlue\Client\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SendinBlue\Client\Model\GetChildInfo, HTTP status code, HTTP response headers (array of strings) - */ - public function getChildInfoWithHttpInfo($childAuthKey) - { - $returnType = '\SendinBlue\Client\Model\GetChildInfo'; - $request = $this->getChildInfoRequest($childAuthKey); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\GetChildInfo', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation getChildInfoAsync - * - * Gets the info about a specific child account - * - * @param string $childAuthKey auth key of reseller's child (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getChildInfoAsync($childAuthKey) - { - return $this->getChildInfoAsyncWithHttpInfo($childAuthKey) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation getChildInfoAsyncWithHttpInfo - * - * Gets the info about a specific child account - * - * @param string $childAuthKey auth key of reseller's child (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getChildInfoAsyncWithHttpInfo($childAuthKey) - { - $returnType = '\SendinBlue\Client\Model\GetChildInfo'; - $request = $this->getChildInfoRequest($childAuthKey); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'getChildInfo' - * - * @param string $childAuthKey auth key of reseller's child (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - protected function getChildInfoRequest($childAuthKey) - { - // verify the required parameter 'childAuthKey' is set - if ($childAuthKey === null || (is_array($childAuthKey) && count($childAuthKey) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $childAuthKey when calling getChildInfo' - ); - } - - $resourcePath = '/reseller/children/{childAuthKey}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - - // path params - if ($childAuthKey !== null) { - $resourcePath = str_replace( - '{' . 'childAuthKey' . '}', - ObjectSerializer::toPathValue($childAuthKey), - $resourcePath - ); - } - - // body params - $_tempBody = null; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($_tempBody)) { - // $_tempBody is the method argument, if present - $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { - // \stdClass has no __toString(), so we should encode it manually - if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); - } - // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); - } - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('api-key'); - if ($apiKey !== null) { - $headers['api-key'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('partner-key'); - if ($apiKey !== null) { - $headers['partner-key'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getResellerChilds - * - * Gets the list of all reseller's children accounts - * - * @param int $limit Number of documents for child accounts information per page (optional, default to 10) - * @param int $offset Index of the first document in the page (optional, default to 0) - * - * @throws \SendinBlue\Client\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SendinBlue\Client\Model\GetChildrenList - */ - public function getResellerChilds($limit = '10', $offset = '0') - { - list($response) = $this->getResellerChildsWithHttpInfo($limit, $offset); - return $response; - } - - /** - * Operation getResellerChildsWithHttpInfo - * - * Gets the list of all reseller's children accounts - * - * @param int $limit Number of documents for child accounts information per page (optional, default to 10) - * @param int $offset Index of the first document in the page (optional, default to 0) - * - * @throws \SendinBlue\Client\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SendinBlue\Client\Model\GetChildrenList, HTTP status code, HTTP response headers (array of strings) - */ - public function getResellerChildsWithHttpInfo($limit = '10', $offset = '0') - { - $returnType = '\SendinBlue\Client\Model\GetChildrenList'; - $request = $this->getResellerChildsRequest($limit, $offset); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\GetChildrenList', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation getResellerChildsAsync - * - * Gets the list of all reseller's children accounts - * - * @param int $limit Number of documents for child accounts information per page (optional, default to 10) - * @param int $offset Index of the first document in the page (optional, default to 0) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getResellerChildsAsync($limit = '10', $offset = '0') - { - return $this->getResellerChildsAsyncWithHttpInfo($limit, $offset) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation getResellerChildsAsyncWithHttpInfo - * - * Gets the list of all reseller's children accounts - * - * @param int $limit Number of documents for child accounts information per page (optional, default to 10) - * @param int $offset Index of the first document in the page (optional, default to 0) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getResellerChildsAsyncWithHttpInfo($limit = '10', $offset = '0') - { - $returnType = '\SendinBlue\Client\Model\GetChildrenList'; - $request = $this->getResellerChildsRequest($limit, $offset); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'getResellerChilds' - * - * @param int $limit Number of documents for child accounts information per page (optional, default to 10) - * @param int $offset Index of the first document in the page (optional, default to 0) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - protected function getResellerChildsRequest($limit = '10', $offset = '0') - { - if ($limit !== null && $limit > 20) { - throw new \InvalidArgumentException('invalid value for "$limit" when calling ResellerApi.getResellerChilds, must be smaller than or equal to 20.'); - } - - - $resourcePath = '/reseller/children'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - // query params - if ($limit !== null) { - $queryParams['limit'] = ObjectSerializer::toQueryValue($limit); - } - // query params - if ($offset !== null) { - $queryParams['offset'] = ObjectSerializer::toQueryValue($offset); - } - - - // body params - $_tempBody = null; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($_tempBody)) { - // $_tempBody is the method argument, if present - $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { - // \stdClass has no __toString(), so we should encode it manually - if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); - } - // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); - } - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('api-key'); - if ($apiKey !== null) { - $headers['api-key'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('partner-key'); - if ($apiKey !== null) { - $headers['partner-key'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation getSsoToken - * - * Get session token to access Sendinblue (SSO) - * - * @param string $childAuthKey auth key of reseller's child (required) - * - * @throws \SendinBlue\Client\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SendinBlue\Client\Model\GetSsoToken - */ - public function getSsoToken($childAuthKey) - { - list($response) = $this->getSsoTokenWithHttpInfo($childAuthKey); - return $response; - } - - /** - * Operation getSsoTokenWithHttpInfo - * - * Get session token to access Sendinblue (SSO) - * - * @param string $childAuthKey auth key of reseller's child (required) - * - * @throws \SendinBlue\Client\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SendinBlue\Client\Model\GetSsoToken, HTTP status code, HTTP response headers (array of strings) - */ - public function getSsoTokenWithHttpInfo($childAuthKey) - { - $returnType = '\SendinBlue\Client\Model\GetSsoToken'; - $request = $this->getSsoTokenRequest($childAuthKey); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\GetSsoToken', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation getSsoTokenAsync - * - * Get session token to access Sendinblue (SSO) - * - * @param string $childAuthKey auth key of reseller's child (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getSsoTokenAsync($childAuthKey) - { - return $this->getSsoTokenAsyncWithHttpInfo($childAuthKey) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation getSsoTokenAsyncWithHttpInfo - * - * Get session token to access Sendinblue (SSO) - * - * @param string $childAuthKey auth key of reseller's child (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getSsoTokenAsyncWithHttpInfo($childAuthKey) - { - $returnType = '\SendinBlue\Client\Model\GetSsoToken'; - $request = $this->getSsoTokenRequest($childAuthKey); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'getSsoToken' - * - * @param string $childAuthKey auth key of reseller's child (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - protected function getSsoTokenRequest($childAuthKey) - { - // verify the required parameter 'childAuthKey' is set - if ($childAuthKey === null || (is_array($childAuthKey) && count($childAuthKey) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $childAuthKey when calling getSsoToken' - ); - } - - $resourcePath = '/reseller/children/{childAuthKey}/auth'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - - // path params - if ($childAuthKey !== null) { - $resourcePath = str_replace( - '{' . 'childAuthKey' . '}', - ObjectSerializer::toPathValue($childAuthKey), - $resourcePath - ); - } - - // body params - $_tempBody = null; - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($_tempBody)) { - // $_tempBody is the method argument, if present - $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { - // \stdClass has no __toString(), so we should encode it manually - if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); - } - // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); - } - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('api-key'); - if ($apiKey !== null) { - $headers['api-key'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('partner-key'); - if ($apiKey !== null) { - $headers['partner-key'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation removeCredits - * - * Remove Email and/or SMS credits from a specific child account - * - * @param string $childAuthKey auth key of reseller's child (required) - * @param \SendinBlue\Client\Model\RemoveCredits $removeCredits Values to post to remove email or SMS credits from a specific child account (required) - * - * @throws \SendinBlue\Client\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return \SendinBlue\Client\Model\RemainingCreditModel - */ - public function removeCredits($childAuthKey, $removeCredits) - { - list($response) = $this->removeCreditsWithHttpInfo($childAuthKey, $removeCredits); - return $response; - } - - /** - * Operation removeCreditsWithHttpInfo - * - * Remove Email and/or SMS credits from a specific child account - * - * @param string $childAuthKey auth key of reseller's child (required) - * @param \SendinBlue\Client\Model\RemoveCredits $removeCredits Values to post to remove email or SMS credits from a specific child account (required) - * - * @throws \SendinBlue\Client\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of \SendinBlue\Client\Model\RemainingCreditModel, HTTP status code, HTTP response headers (array of strings) - */ - public function removeCreditsWithHttpInfo($childAuthKey, $removeCredits) - { - $returnType = '\SendinBlue\Client\Model\RemainingCreditModel'; - $request = $this->removeCreditsRequest($childAuthKey, $removeCredits); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\RemainingCreditModel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation removeCreditsAsync - * - * Remove Email and/or SMS credits from a specific child account - * - * @param string $childAuthKey auth key of reseller's child (required) - * @param \SendinBlue\Client\Model\RemoveCredits $removeCredits Values to post to remove email or SMS credits from a specific child account (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function removeCreditsAsync($childAuthKey, $removeCredits) - { - return $this->removeCreditsAsyncWithHttpInfo($childAuthKey, $removeCredits) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation removeCreditsAsyncWithHttpInfo - * - * Remove Email and/or SMS credits from a specific child account - * - * @param string $childAuthKey auth key of reseller's child (required) - * @param \SendinBlue\Client\Model\RemoveCredits $removeCredits Values to post to remove email or SMS credits from a specific child account (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function removeCreditsAsyncWithHttpInfo($childAuthKey, $removeCredits) - { - $returnType = '\SendinBlue\Client\Model\RemainingCreditModel'; - $request = $this->removeCreditsRequest($childAuthKey, $removeCredits); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'removeCredits' - * - * @param string $childAuthKey auth key of reseller's child (required) - * @param \SendinBlue\Client\Model\RemoveCredits $removeCredits Values to post to remove email or SMS credits from a specific child account (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - protected function removeCreditsRequest($childAuthKey, $removeCredits) - { - // verify the required parameter 'childAuthKey' is set - if ($childAuthKey === null || (is_array($childAuthKey) && count($childAuthKey) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $childAuthKey when calling removeCredits' - ); - } - // verify the required parameter 'removeCredits' is set - if ($removeCredits === null || (is_array($removeCredits) && count($removeCredits) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $removeCredits when calling removeCredits' - ); - } - - $resourcePath = '/reseller/children/{childAuthKey}/credits/remove'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - - // path params - if ($childAuthKey !== null) { - $resourcePath = str_replace( - '{' . 'childAuthKey' . '}', - ObjectSerializer::toPathValue($childAuthKey), - $resourcePath - ); - } - - // body params - $_tempBody = null; - if (isset($removeCredits)) { - $_tempBody = $removeCredits; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($_tempBody)) { - // $_tempBody is the method argument, if present - $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { - // \stdClass has no __toString(), so we should encode it manually - if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); - } - // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); - } - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('api-key'); - if ($apiKey !== null) { - $headers['api-key'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('partner-key'); - if ($apiKey !== null) { - $headers['partner-key'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation updateChildAccountStatus - * - * Updates infos of reseller's child account status based on the childAuthKey supplied - * - * @param string $childAuthKey auth key of reseller's child (required) - * @param \SendinBlue\Client\Model\UpdateChildAccountStatus $updateChildAccountStatus values to update in child account status (required) - * - * @throws \SendinBlue\Client\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return void - */ - public function updateChildAccountStatus($childAuthKey, $updateChildAccountStatus) - { - $this->updateChildAccountStatusWithHttpInfo($childAuthKey, $updateChildAccountStatus); - } - - /** - * Operation updateChildAccountStatusWithHttpInfo - * - * Updates infos of reseller's child account status based on the childAuthKey supplied - * - * @param string $childAuthKey auth key of reseller's child (required) - * @param \SendinBlue\Client\Model\UpdateChildAccountStatus $updateChildAccountStatus values to update in child account status (required) - * - * @throws \SendinBlue\Client\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of null, HTTP status code, HTTP response headers (array of strings) - */ - public function updateChildAccountStatusWithHttpInfo($childAuthKey, $updateChildAccountStatus) - { - $returnType = ''; - $request = $this->updateChildAccountStatusRequest($childAuthKey, $updateChildAccountStatus); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation updateChildAccountStatusAsync - * - * Updates infos of reseller's child account status based on the childAuthKey supplied - * - * @param string $childAuthKey auth key of reseller's child (required) - * @param \SendinBlue\Client\Model\UpdateChildAccountStatus $updateChildAccountStatus values to update in child account status (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function updateChildAccountStatusAsync($childAuthKey, $updateChildAccountStatus) - { - return $this->updateChildAccountStatusAsyncWithHttpInfo($childAuthKey, $updateChildAccountStatus) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation updateChildAccountStatusAsyncWithHttpInfo - * - * Updates infos of reseller's child account status based on the childAuthKey supplied - * - * @param string $childAuthKey auth key of reseller's child (required) - * @param \SendinBlue\Client\Model\UpdateChildAccountStatus $updateChildAccountStatus values to update in child account status (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function updateChildAccountStatusAsyncWithHttpInfo($childAuthKey, $updateChildAccountStatus) - { - $returnType = ''; - $request = $this->updateChildAccountStatusRequest($childAuthKey, $updateChildAccountStatus); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - return [null, $response->getStatusCode(), $response->getHeaders()]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'updateChildAccountStatus' - * - * @param string $childAuthKey auth key of reseller's child (required) - * @param \SendinBlue\Client\Model\UpdateChildAccountStatus $updateChildAccountStatus values to update in child account status (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - protected function updateChildAccountStatusRequest($childAuthKey, $updateChildAccountStatus) - { - // verify the required parameter 'childAuthKey' is set - if ($childAuthKey === null || (is_array($childAuthKey) && count($childAuthKey) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $childAuthKey when calling updateChildAccountStatus' - ); - } - // verify the required parameter 'updateChildAccountStatus' is set - if ($updateChildAccountStatus === null || (is_array($updateChildAccountStatus) && count($updateChildAccountStatus) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $updateChildAccountStatus when calling updateChildAccountStatus' - ); - } - - $resourcePath = '/reseller/children/{childAuthKey}/accountStatus'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - - // path params - if ($childAuthKey !== null) { - $resourcePath = str_replace( - '{' . 'childAuthKey' . '}', - ObjectSerializer::toPathValue($childAuthKey), - $resourcePath - ); - } - - // body params - $_tempBody = null; - if (isset($updateChildAccountStatus)) { - $_tempBody = $updateChildAccountStatus; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($_tempBody)) { - // $_tempBody is the method argument, if present - $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { - // \stdClass has no __toString(), so we should encode it manually - if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); - } - // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); - } - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('api-key'); - if ($apiKey !== null) { - $headers['api-key'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('partner-key'); - if ($apiKey !== null) { - $headers['partner-key'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'PUT', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation updateChildDomain - * - * Updates the sender domain of reseller's child based on the childAuthKey and domainName passed - * - * @param string $childAuthKey auth key of reseller's child (required) - * @param string $domainName Pass the existing domain that needs to be updated (required) - * @param \SendinBlue\Client\Model\UpdateChildDomain $updateChildDomain value to update for sender domain (required) - * - * @throws \SendinBlue\Client\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return void - */ - public function updateChildDomain($childAuthKey, $domainName, $updateChildDomain) - { - $this->updateChildDomainWithHttpInfo($childAuthKey, $domainName, $updateChildDomain); - } - - /** - * Operation updateChildDomainWithHttpInfo - * - * Updates the sender domain of reseller's child based on the childAuthKey and domainName passed - * - * @param string $childAuthKey auth key of reseller's child (required) - * @param string $domainName Pass the existing domain that needs to be updated (required) - * @param \SendinBlue\Client\Model\UpdateChildDomain $updateChildDomain value to update for sender domain (required) - * - * @throws \SendinBlue\Client\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of null, HTTP status code, HTTP response headers (array of strings) - */ - public function updateChildDomainWithHttpInfo($childAuthKey, $domainName, $updateChildDomain) - { - $returnType = ''; - $request = $this->updateChildDomainRequest($childAuthKey, $domainName, $updateChildDomain); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation updateChildDomainAsync - * - * Updates the sender domain of reseller's child based on the childAuthKey and domainName passed - * - * @param string $childAuthKey auth key of reseller's child (required) - * @param string $domainName Pass the existing domain that needs to be updated (required) - * @param \SendinBlue\Client\Model\UpdateChildDomain $updateChildDomain value to update for sender domain (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function updateChildDomainAsync($childAuthKey, $domainName, $updateChildDomain) - { - return $this->updateChildDomainAsyncWithHttpInfo($childAuthKey, $domainName, $updateChildDomain) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation updateChildDomainAsyncWithHttpInfo - * - * Updates the sender domain of reseller's child based on the childAuthKey and domainName passed - * - * @param string $childAuthKey auth key of reseller's child (required) - * @param string $domainName Pass the existing domain that needs to be updated (required) - * @param \SendinBlue\Client\Model\UpdateChildDomain $updateChildDomain value to update for sender domain (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function updateChildDomainAsyncWithHttpInfo($childAuthKey, $domainName, $updateChildDomain) - { - $returnType = ''; - $request = $this->updateChildDomainRequest($childAuthKey, $domainName, $updateChildDomain); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - return [null, $response->getStatusCode(), $response->getHeaders()]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'updateChildDomain' - * - * @param string $childAuthKey auth key of reseller's child (required) - * @param string $domainName Pass the existing domain that needs to be updated (required) - * @param \SendinBlue\Client\Model\UpdateChildDomain $updateChildDomain value to update for sender domain (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - protected function updateChildDomainRequest($childAuthKey, $domainName, $updateChildDomain) - { - // verify the required parameter 'childAuthKey' is set - if ($childAuthKey === null || (is_array($childAuthKey) && count($childAuthKey) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $childAuthKey when calling updateChildDomain' - ); - } - // verify the required parameter 'domainName' is set - if ($domainName === null || (is_array($domainName) && count($domainName) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $domainName when calling updateChildDomain' - ); - } - // verify the required parameter 'updateChildDomain' is set - if ($updateChildDomain === null || (is_array($updateChildDomain) && count($updateChildDomain) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $updateChildDomain when calling updateChildDomain' - ); - } - - $resourcePath = '/reseller/children/{childAuthKey}/domains/{domainName}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - - // path params - if ($childAuthKey !== null) { - $resourcePath = str_replace( - '{' . 'childAuthKey' . '}', - ObjectSerializer::toPathValue($childAuthKey), - $resourcePath - ); - } - // path params - if ($domainName !== null) { - $resourcePath = str_replace( - '{' . 'domainName' . '}', - ObjectSerializer::toPathValue($domainName), - $resourcePath - ); - } - - // body params - $_tempBody = null; - if (isset($updateChildDomain)) { - $_tempBody = $updateChildDomain; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($_tempBody)) { - // $_tempBody is the method argument, if present - $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { - // \stdClass has no __toString(), so we should encode it manually - if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); - } - // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); - } - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('api-key'); - if ($apiKey !== null) { - $headers['api-key'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('partner-key'); - if ($apiKey !== null) { - $headers['partner-key'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'PUT', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Operation updateResellerChild - * - * Updates infos of reseller's child based on the childAuthKey supplied - * - * @param string $childAuthKey auth key of reseller's child (required) - * @param \SendinBlue\Client\Model\UpdateChild $resellerChild values to update in child profile (required) - * - * @throws \SendinBlue\Client\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return void - */ - public function updateResellerChild($childAuthKey, $resellerChild) - { - $this->updateResellerChildWithHttpInfo($childAuthKey, $resellerChild); - } - - /** - * Operation updateResellerChildWithHttpInfo - * - * Updates infos of reseller's child based on the childAuthKey supplied - * - * @param string $childAuthKey auth key of reseller's child (required) - * @param \SendinBlue\Client\Model\UpdateChild $resellerChild values to update in child profile (required) - * - * @throws \SendinBlue\Client\ApiException on non-2xx response - * @throws \InvalidArgumentException - * @return array of null, HTTP status code, HTTP response headers (array of strings) - */ - public function updateResellerChildWithHttpInfo($childAuthKey, $resellerChild) - { - $returnType = ''; - $request = $this->updateResellerChildRequest($childAuthKey, $resellerChild); - - try { - $options = $this->createHttpClientOption(); - try { - $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); - } - - $statusCode = $response->getStatusCode(); - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { - switch ($e->getCode()) { - case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 403: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; - } - throw $e; - } - } - - /** - * Operation updateResellerChildAsync - * - * Updates infos of reseller's child based on the childAuthKey supplied - * - * @param string $childAuthKey auth key of reseller's child (required) - * @param \SendinBlue\Client\Model\UpdateChild $resellerChild values to update in child profile (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function updateResellerChildAsync($childAuthKey, $resellerChild) - { - return $this->updateResellerChildAsyncWithHttpInfo($childAuthKey, $resellerChild) - ->then( - function ($response) { - return $response[0]; - } - ); - } - - /** - * Operation updateResellerChildAsyncWithHttpInfo - * - * Updates infos of reseller's child based on the childAuthKey supplied - * - * @param string $childAuthKey auth key of reseller's child (required) - * @param \SendinBlue\Client\Model\UpdateChild $resellerChild values to update in child profile (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function updateResellerChildAsyncWithHttpInfo($childAuthKey, $resellerChild) - { - $returnType = ''; - $request = $this->updateResellerChildRequest($childAuthKey, $resellerChild); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - return [null, $response->getStatusCode(), $response->getHeaders()]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); - } - - /** - * Create request for operation 'updateResellerChild' - * - * @param string $childAuthKey auth key of reseller's child (required) - * @param \SendinBlue\Client\Model\UpdateChild $resellerChild values to update in child profile (required) - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - protected function updateResellerChildRequest($childAuthKey, $resellerChild) - { - // verify the required parameter 'childAuthKey' is set - if ($childAuthKey === null || (is_array($childAuthKey) && count($childAuthKey) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $childAuthKey when calling updateResellerChild' - ); - } - // verify the required parameter 'resellerChild' is set - if ($resellerChild === null || (is_array($resellerChild) && count($resellerChild) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $resellerChild when calling updateResellerChild' - ); - } - - $resourcePath = '/reseller/children/{childAuthKey}'; - $formParams = []; - $queryParams = []; - $headerParams = []; - $httpBody = ''; - $multipart = false; - - - // path params - if ($childAuthKey !== null) { - $resourcePath = str_replace( - '{' . 'childAuthKey' . '}', - ObjectSerializer::toPathValue($childAuthKey), - $resourcePath - ); - } - - // body params - $_tempBody = null; - if (isset($resellerChild)) { - $_tempBody = $resellerChild; - } - - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); - } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); - } - - // for model (json/xml) - if (isset($_tempBody)) { - // $_tempBody is the method argument, if present - $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { - // \stdClass has no __toString(), so we should encode it manually - if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); - } - // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); - } - } - } elseif (count($formParams) > 0) { - if ($multipart) { - $multipartContents = []; - foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; - } - // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - - } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - - } else { - // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); - } - } - - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('api-key'); - if ($apiKey !== null) { - $headers['api-key'] = $apiKey; - } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('partner-key'); - if ($apiKey !== null) { - $headers['partner-key'] = $apiKey; - } - - $defaultHeaders = []; - if ($this->config->getUserAgent()) { - $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); - } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'PUT', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); - } - - /** - * Create http client option - * - * @throws \RuntimeException on file opening failure - * @return array of http client options - */ - protected function createHttpClientOption() - { - $options = []; - if ($this->config->getDebug()) { - $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); - if (!$options[RequestOptions::DEBUG]) { - throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); - } - } - - return $options; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php b/wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php deleted file mode 100644 index a22eca5..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php +++ /dev/null @@ -1,1397 +0,0 @@ - 'a', - 'B' => 'b', - 'C' => 'c', - 'D' => 'd', - 'E' => 'e', - 'F' => 'f', - 'G' => 'g', - 'H' => 'h', - 'I' => 'i', - 'J' => 'j', - 'K' => 'k', - 'L' => 'l', - 'M' => 'm', - 'N' => 'n', - 'O' => 'o', - 'P' => 'p', - 'Q' => 'q', - 'R' => 'r', - 'S' => 's', - 'T' => 't', - 'U' => 'u', - 'V' => 'v', - 'W' => 'w', - 'X' => 'x', - 'Y' => 'y', - 'Z' => 'z', - 'À' => 'à', - 'Á' => 'á', - 'Â' => 'â', - 'Ã' => 'ã', - 'Ä' => 'ä', - 'Å' => 'å', - 'Æ' => 'æ', - 'Ç' => 'ç', - 'È' => 'è', - 'É' => 'é', - 'Ê' => 'ê', - 'Ë' => 'ë', - 'Ì' => 'ì', - 'Í' => 'í', - 'Î' => 'î', - 'Ï' => 'ï', - 'Ð' => 'ð', - 'Ñ' => 'ñ', - 'Ò' => 'ò', - 'Ó' => 'ó', - 'Ô' => 'ô', - 'Õ' => 'õ', - 'Ö' => 'ö', - 'Ø' => 'ø', - 'Ù' => 'ù', - 'Ú' => 'ú', - 'Û' => 'û', - 'Ü' => 'ü', - 'Ý' => 'ý', - 'Þ' => 'þ', - 'Ā' => 'ā', - 'Ă' => 'ă', - 'Ą' => 'ą', - 'Ć' => 'ć', - 'Ĉ' => 'ĉ', - 'Ċ' => 'ċ', - 'Č' => 'č', - 'Ď' => 'ď', - 'Đ' => 'đ', - 'Ē' => 'ē', - 'Ĕ' => 'ĕ', - 'Ė' => 'ė', - 'Ę' => 'ę', - 'Ě' => 'ě', - 'Ĝ' => 'ĝ', - 'Ğ' => 'ğ', - 'Ġ' => 'ġ', - 'Ģ' => 'ģ', - 'Ĥ' => 'ĥ', - 'Ħ' => 'ħ', - 'Ĩ' => 'ĩ', - 'Ī' => 'ī', - 'Ĭ' => 'ĭ', - 'Į' => 'į', - 'İ' => 'i', - 'IJ' => 'ij', - 'Ĵ' => 'ĵ', - 'Ķ' => 'ķ', - 'Ĺ' => 'ĺ', - 'Ļ' => 'ļ', - 'Ľ' => 'ľ', - 'Ŀ' => 'ŀ', - 'Ł' => 'ł', - 'Ń' => 'ń', - 'Ņ' => 'ņ', - 'Ň' => 'ň', - 'Ŋ' => 'ŋ', - 'Ō' => 'ō', - 'Ŏ' => 'ŏ', - 'Ő' => 'ő', - 'Œ' => 'œ', - 'Ŕ' => 'ŕ', - 'Ŗ' => 'ŗ', - 'Ř' => 'ř', - 'Ś' => 'ś', - 'Ŝ' => 'ŝ', - 'Ş' => 'ş', - 'Š' => 'š', - 'Ţ' => 'ţ', - 'Ť' => 'ť', - 'Ŧ' => 'ŧ', - 'Ũ' => 'ũ', - 'Ū' => 'ū', - 'Ŭ' => 'ŭ', - 'Ů' => 'ů', - 'Ű' => 'ű', - 'Ų' => 'ų', - 'Ŵ' => 'ŵ', - 'Ŷ' => 'ŷ', - 'Ÿ' => 'ÿ', - 'Ź' => 'ź', - 'Ż' => 'ż', - 'Ž' => 'ž', - 'Ɓ' => 'ɓ', - 'Ƃ' => 'ƃ', - 'Ƅ' => 'ƅ', - 'Ɔ' => 'ɔ', - 'Ƈ' => 'ƈ', - 'Ɖ' => 'ɖ', - 'Ɗ' => 'ɗ', - 'Ƌ' => 'ƌ', - 'Ǝ' => 'ǝ', - 'Ə' => 'ə', - 'Ɛ' => 'ɛ', - 'Ƒ' => 'ƒ', - 'Ɠ' => 'ɠ', - 'Ɣ' => 'ɣ', - 'Ɩ' => 'ɩ', - 'Ɨ' => 'ɨ', - 'Ƙ' => 'ƙ', - 'Ɯ' => 'ɯ', - 'Ɲ' => 'ɲ', - 'Ɵ' => 'ɵ', - 'Ơ' => 'ơ', - 'Ƣ' => 'ƣ', - 'Ƥ' => 'ƥ', - 'Ʀ' => 'ʀ', - 'Ƨ' => 'ƨ', - 'Ʃ' => 'ʃ', - 'Ƭ' => 'ƭ', - 'Ʈ' => 'ʈ', - 'Ư' => 'ư', - 'Ʊ' => 'ʊ', - 'Ʋ' => 'ʋ', - 'Ƴ' => 'ƴ', - 'Ƶ' => 'ƶ', - 'Ʒ' => 'ʒ', - 'Ƹ' => 'ƹ', - 'Ƽ' => 'ƽ', - 'DŽ' => 'dž', - 'Dž' => 'dž', - 'LJ' => 'lj', - 'Lj' => 'lj', - 'NJ' => 'nj', - 'Nj' => 'nj', - 'Ǎ' => 'ǎ', - 'Ǐ' => 'ǐ', - 'Ǒ' => 'ǒ', - 'Ǔ' => 'ǔ', - 'Ǖ' => 'ǖ', - 'Ǘ' => 'ǘ', - 'Ǚ' => 'ǚ', - 'Ǜ' => 'ǜ', - 'Ǟ' => 'ǟ', - 'Ǡ' => 'ǡ', - 'Ǣ' => 'ǣ', - 'Ǥ' => 'ǥ', - 'Ǧ' => 'ǧ', - 'Ǩ' => 'ǩ', - 'Ǫ' => 'ǫ', - 'Ǭ' => 'ǭ', - 'Ǯ' => 'ǯ', - 'DZ' => 'dz', - 'Dz' => 'dz', - 'Ǵ' => 'ǵ', - 'Ƕ' => 'ƕ', - 'Ƿ' => 'ƿ', - 'Ǹ' => 'ǹ', - 'Ǻ' => 'ǻ', - 'Ǽ' => 'ǽ', - 'Ǿ' => 'ǿ', - 'Ȁ' => 'ȁ', - 'Ȃ' => 'ȃ', - 'Ȅ' => 'ȅ', - 'Ȇ' => 'ȇ', - 'Ȉ' => 'ȉ', - 'Ȋ' => 'ȋ', - 'Ȍ' => 'ȍ', - 'Ȏ' => 'ȏ', - 'Ȑ' => 'ȑ', - 'Ȓ' => 'ȓ', - 'Ȕ' => 'ȕ', - 'Ȗ' => 'ȗ', - 'Ș' => 'ș', - 'Ț' => 'ț', - 'Ȝ' => 'ȝ', - 'Ȟ' => 'ȟ', - 'Ƞ' => 'ƞ', - 'Ȣ' => 'ȣ', - 'Ȥ' => 'ȥ', - 'Ȧ' => 'ȧ', - 'Ȩ' => 'ȩ', - 'Ȫ' => 'ȫ', - 'Ȭ' => 'ȭ', - 'Ȯ' => 'ȯ', - 'Ȱ' => 'ȱ', - 'Ȳ' => 'ȳ', - 'Ⱥ' => 'ⱥ', - 'Ȼ' => 'ȼ', - 'Ƚ' => 'ƚ', - 'Ⱦ' => 'ⱦ', - 'Ɂ' => 'ɂ', - 'Ƀ' => 'ƀ', - 'Ʉ' => 'ʉ', - 'Ʌ' => 'ʌ', - 'Ɇ' => 'ɇ', - 'Ɉ' => 'ɉ', - 'Ɋ' => 'ɋ', - 'Ɍ' => 'ɍ', - 'Ɏ' => 'ɏ', - 'Ͱ' => 'ͱ', - 'Ͳ' => 'ͳ', - 'Ͷ' => 'ͷ', - 'Ϳ' => 'ϳ', - 'Ά' => 'ά', - 'Έ' => 'έ', - 'Ή' => 'ή', - 'Ί' => 'ί', - 'Ό' => 'ό', - 'Ύ' => 'ύ', - 'Ώ' => 'ώ', - 'Α' => 'α', - 'Β' => 'β', - 'Γ' => 'γ', - 'Δ' => 'δ', - 'Ε' => 'ε', - 'Ζ' => 'ζ', - 'Η' => 'η', - 'Θ' => 'θ', - 'Ι' => 'ι', - 'Κ' => 'κ', - 'Λ' => 'λ', - 'Μ' => 'μ', - 'Ν' => 'ν', - 'Ξ' => 'ξ', - 'Ο' => 'ο', - 'Π' => 'π', - 'Ρ' => 'ρ', - 'Σ' => 'σ', - 'Τ' => 'τ', - 'Υ' => 'υ', - 'Φ' => 'φ', - 'Χ' => 'χ', - 'Ψ' => 'ψ', - 'Ω' => 'ω', - 'Ϊ' => 'ϊ', - 'Ϋ' => 'ϋ', - 'Ϗ' => 'ϗ', - 'Ϙ' => 'ϙ', - 'Ϛ' => 'ϛ', - 'Ϝ' => 'ϝ', - 'Ϟ' => 'ϟ', - 'Ϡ' => 'ϡ', - 'Ϣ' => 'ϣ', - 'Ϥ' => 'ϥ', - 'Ϧ' => 'ϧ', - 'Ϩ' => 'ϩ', - 'Ϫ' => 'ϫ', - 'Ϭ' => 'ϭ', - 'Ϯ' => 'ϯ', - 'ϴ' => 'θ', - 'Ϸ' => 'ϸ', - 'Ϲ' => 'ϲ', - 'Ϻ' => 'ϻ', - 'Ͻ' => 'ͻ', - 'Ͼ' => 'ͼ', - 'Ͽ' => 'ͽ', - 'Ѐ' => 'ѐ', - 'Ё' => 'ё', - 'Ђ' => 'ђ', - 'Ѓ' => 'ѓ', - 'Є' => 'є', - 'Ѕ' => 'ѕ', - 'І' => 'і', - 'Ї' => 'ї', - 'Ј' => 'ј', - 'Љ' => 'љ', - 'Њ' => 'њ', - 'Ћ' => 'ћ', - 'Ќ' => 'ќ', - 'Ѝ' => 'ѝ', - 'Ў' => 'ў', - 'Џ' => 'џ', - 'А' => 'а', - 'Б' => 'б', - 'В' => 'в', - 'Г' => 'г', - 'Д' => 'д', - 'Е' => 'е', - 'Ж' => 'ж', - 'З' => 'з', - 'И' => 'и', - 'Й' => 'й', - 'К' => 'к', - 'Л' => 'л', - 'М' => 'м', - 'Н' => 'н', - 'О' => 'о', - 'П' => 'п', - 'Р' => 'р', - 'С' => 'с', - 'Т' => 'т', - 'У' => 'у', - 'Ф' => 'ф', - 'Х' => 'х', - 'Ц' => 'ц', - 'Ч' => 'ч', - 'Ш' => 'ш', - 'Щ' => 'щ', - 'Ъ' => 'ъ', - 'Ы' => 'ы', - 'Ь' => 'ь', - 'Э' => 'э', - 'Ю' => 'ю', - 'Я' => 'я', - 'Ѡ' => 'ѡ', - 'Ѣ' => 'ѣ', - 'Ѥ' => 'ѥ', - 'Ѧ' => 'ѧ', - 'Ѩ' => 'ѩ', - 'Ѫ' => 'ѫ', - 'Ѭ' => 'ѭ', - 'Ѯ' => 'ѯ', - 'Ѱ' => 'ѱ', - 'Ѳ' => 'ѳ', - 'Ѵ' => 'ѵ', - 'Ѷ' => 'ѷ', - 'Ѹ' => 'ѹ', - 'Ѻ' => 'ѻ', - 'Ѽ' => 'ѽ', - 'Ѿ' => 'ѿ', - 'Ҁ' => 'ҁ', - 'Ҋ' => 'ҋ', - 'Ҍ' => 'ҍ', - 'Ҏ' => 'ҏ', - 'Ґ' => 'ґ', - 'Ғ' => 'ғ', - 'Ҕ' => 'ҕ', - 'Җ' => 'җ', - 'Ҙ' => 'ҙ', - 'Қ' => 'қ', - 'Ҝ' => 'ҝ', - 'Ҟ' => 'ҟ', - 'Ҡ' => 'ҡ', - 'Ң' => 'ң', - 'Ҥ' => 'ҥ', - 'Ҧ' => 'ҧ', - 'Ҩ' => 'ҩ', - 'Ҫ' => 'ҫ', - 'Ҭ' => 'ҭ', - 'Ү' => 'ү', - 'Ұ' => 'ұ', - 'Ҳ' => 'ҳ', - 'Ҵ' => 'ҵ', - 'Ҷ' => 'ҷ', - 'Ҹ' => 'ҹ', - 'Һ' => 'һ', - 'Ҽ' => 'ҽ', - 'Ҿ' => 'ҿ', - 'Ӏ' => 'ӏ', - 'Ӂ' => 'ӂ', - 'Ӄ' => 'ӄ', - 'Ӆ' => 'ӆ', - 'Ӈ' => 'ӈ', - 'Ӊ' => 'ӊ', - 'Ӌ' => 'ӌ', - 'Ӎ' => 'ӎ', - 'Ӑ' => 'ӑ', - 'Ӓ' => 'ӓ', - 'Ӕ' => 'ӕ', - 'Ӗ' => 'ӗ', - 'Ә' => 'ә', - 'Ӛ' => 'ӛ', - 'Ӝ' => 'ӝ', - 'Ӟ' => 'ӟ', - 'Ӡ' => 'ӡ', - 'Ӣ' => 'ӣ', - 'Ӥ' => 'ӥ', - 'Ӧ' => 'ӧ', - 'Ө' => 'ө', - 'Ӫ' => 'ӫ', - 'Ӭ' => 'ӭ', - 'Ӯ' => 'ӯ', - 'Ӱ' => 'ӱ', - 'Ӳ' => 'ӳ', - 'Ӵ' => 'ӵ', - 'Ӷ' => 'ӷ', - 'Ӹ' => 'ӹ', - 'Ӻ' => 'ӻ', - 'Ӽ' => 'ӽ', - 'Ӿ' => 'ӿ', - 'Ԁ' => 'ԁ', - 'Ԃ' => 'ԃ', - 'Ԅ' => 'ԅ', - 'Ԇ' => 'ԇ', - 'Ԉ' => 'ԉ', - 'Ԋ' => 'ԋ', - 'Ԍ' => 'ԍ', - 'Ԏ' => 'ԏ', - 'Ԑ' => 'ԑ', - 'Ԓ' => 'ԓ', - 'Ԕ' => 'ԕ', - 'Ԗ' => 'ԗ', - 'Ԙ' => 'ԙ', - 'Ԛ' => 'ԛ', - 'Ԝ' => 'ԝ', - 'Ԟ' => 'ԟ', - 'Ԡ' => 'ԡ', - 'Ԣ' => 'ԣ', - 'Ԥ' => 'ԥ', - 'Ԧ' => 'ԧ', - 'Ԩ' => 'ԩ', - 'Ԫ' => 'ԫ', - 'Ԭ' => 'ԭ', - 'Ԯ' => 'ԯ', - 'Ա' => 'ա', - 'Բ' => 'բ', - 'Գ' => 'գ', - 'Դ' => 'դ', - 'Ե' => 'ե', - 'Զ' => 'զ', - 'Է' => 'է', - 'Ը' => 'ը', - 'Թ' => 'թ', - 'Ժ' => 'ժ', - 'Ի' => 'ի', - 'Լ' => 'լ', - 'Խ' => 'խ', - 'Ծ' => 'ծ', - 'Կ' => 'կ', - 'Հ' => 'հ', - 'Ձ' => 'ձ', - 'Ղ' => 'ղ', - 'Ճ' => 'ճ', - 'Մ' => 'մ', - 'Յ' => 'յ', - 'Ն' => 'ն', - 'Շ' => 'շ', - 'Ո' => 'ո', - 'Չ' => 'չ', - 'Պ' => 'պ', - 'Ջ' => 'ջ', - 'Ռ' => 'ռ', - 'Ս' => 'ս', - 'Վ' => 'վ', - 'Տ' => 'տ', - 'Ր' => 'ր', - 'Ց' => 'ց', - 'Ւ' => 'ւ', - 'Փ' => 'փ', - 'Ք' => 'ք', - 'Օ' => 'օ', - 'Ֆ' => 'ֆ', - 'Ⴀ' => 'ⴀ', - 'Ⴁ' => 'ⴁ', - 'Ⴂ' => 'ⴂ', - 'Ⴃ' => 'ⴃ', - 'Ⴄ' => 'ⴄ', - 'Ⴅ' => 'ⴅ', - 'Ⴆ' => 'ⴆ', - 'Ⴇ' => 'ⴇ', - 'Ⴈ' => 'ⴈ', - 'Ⴉ' => 'ⴉ', - 'Ⴊ' => 'ⴊ', - 'Ⴋ' => 'ⴋ', - 'Ⴌ' => 'ⴌ', - 'Ⴍ' => 'ⴍ', - 'Ⴎ' => 'ⴎ', - 'Ⴏ' => 'ⴏ', - 'Ⴐ' => 'ⴐ', - 'Ⴑ' => 'ⴑ', - 'Ⴒ' => 'ⴒ', - 'Ⴓ' => 'ⴓ', - 'Ⴔ' => 'ⴔ', - 'Ⴕ' => 'ⴕ', - 'Ⴖ' => 'ⴖ', - 'Ⴗ' => 'ⴗ', - 'Ⴘ' => 'ⴘ', - 'Ⴙ' => 'ⴙ', - 'Ⴚ' => 'ⴚ', - 'Ⴛ' => 'ⴛ', - 'Ⴜ' => 'ⴜ', - 'Ⴝ' => 'ⴝ', - 'Ⴞ' => 'ⴞ', - 'Ⴟ' => 'ⴟ', - 'Ⴠ' => 'ⴠ', - 'Ⴡ' => 'ⴡ', - 'Ⴢ' => 'ⴢ', - 'Ⴣ' => 'ⴣ', - 'Ⴤ' => 'ⴤ', - 'Ⴥ' => 'ⴥ', - 'Ⴧ' => 'ⴧ', - 'Ⴭ' => 'ⴭ', - 'Ꭰ' => 'ꭰ', - 'Ꭱ' => 'ꭱ', - 'Ꭲ' => 'ꭲ', - 'Ꭳ' => 'ꭳ', - 'Ꭴ' => 'ꭴ', - 'Ꭵ' => 'ꭵ', - 'Ꭶ' => 'ꭶ', - 'Ꭷ' => 'ꭷ', - 'Ꭸ' => 'ꭸ', - 'Ꭹ' => 'ꭹ', - 'Ꭺ' => 'ꭺ', - 'Ꭻ' => 'ꭻ', - 'Ꭼ' => 'ꭼ', - 'Ꭽ' => 'ꭽ', - 'Ꭾ' => 'ꭾ', - 'Ꭿ' => 'ꭿ', - 'Ꮀ' => 'ꮀ', - 'Ꮁ' => 'ꮁ', - 'Ꮂ' => 'ꮂ', - 'Ꮃ' => 'ꮃ', - 'Ꮄ' => 'ꮄ', - 'Ꮅ' => 'ꮅ', - 'Ꮆ' => 'ꮆ', - 'Ꮇ' => 'ꮇ', - 'Ꮈ' => 'ꮈ', - 'Ꮉ' => 'ꮉ', - 'Ꮊ' => 'ꮊ', - 'Ꮋ' => 'ꮋ', - 'Ꮌ' => 'ꮌ', - 'Ꮍ' => 'ꮍ', - 'Ꮎ' => 'ꮎ', - 'Ꮏ' => 'ꮏ', - 'Ꮐ' => 'ꮐ', - 'Ꮑ' => 'ꮑ', - 'Ꮒ' => 'ꮒ', - 'Ꮓ' => 'ꮓ', - 'Ꮔ' => 'ꮔ', - 'Ꮕ' => 'ꮕ', - 'Ꮖ' => 'ꮖ', - 'Ꮗ' => 'ꮗ', - 'Ꮘ' => 'ꮘ', - 'Ꮙ' => 'ꮙ', - 'Ꮚ' => 'ꮚ', - 'Ꮛ' => 'ꮛ', - 'Ꮜ' => 'ꮜ', - 'Ꮝ' => 'ꮝ', - 'Ꮞ' => 'ꮞ', - 'Ꮟ' => 'ꮟ', - 'Ꮠ' => 'ꮠ', - 'Ꮡ' => 'ꮡ', - 'Ꮢ' => 'ꮢ', - 'Ꮣ' => 'ꮣ', - 'Ꮤ' => 'ꮤ', - 'Ꮥ' => 'ꮥ', - 'Ꮦ' => 'ꮦ', - 'Ꮧ' => 'ꮧ', - 'Ꮨ' => 'ꮨ', - 'Ꮩ' => 'ꮩ', - 'Ꮪ' => 'ꮪ', - 'Ꮫ' => 'ꮫ', - 'Ꮬ' => 'ꮬ', - 'Ꮭ' => 'ꮭ', - 'Ꮮ' => 'ꮮ', - 'Ꮯ' => 'ꮯ', - 'Ꮰ' => 'ꮰ', - 'Ꮱ' => 'ꮱ', - 'Ꮲ' => 'ꮲ', - 'Ꮳ' => 'ꮳ', - 'Ꮴ' => 'ꮴ', - 'Ꮵ' => 'ꮵ', - 'Ꮶ' => 'ꮶ', - 'Ꮷ' => 'ꮷ', - 'Ꮸ' => 'ꮸ', - 'Ꮹ' => 'ꮹ', - 'Ꮺ' => 'ꮺ', - 'Ꮻ' => 'ꮻ', - 'Ꮼ' => 'ꮼ', - 'Ꮽ' => 'ꮽ', - 'Ꮾ' => 'ꮾ', - 'Ꮿ' => 'ꮿ', - 'Ᏸ' => 'ᏸ', - 'Ᏹ' => 'ᏹ', - 'Ᏺ' => 'ᏺ', - 'Ᏻ' => 'ᏻ', - 'Ᏼ' => 'ᏼ', - 'Ᏽ' => 'ᏽ', - 'Ა' => 'ა', - 'Ბ' => 'ბ', - 'Გ' => 'გ', - 'Დ' => 'დ', - 'Ე' => 'ე', - 'Ვ' => 'ვ', - 'Ზ' => 'ზ', - 'Თ' => 'თ', - 'Ი' => 'ი', - 'Კ' => 'კ', - 'Ლ' => 'ლ', - 'Მ' => 'მ', - 'Ნ' => 'ნ', - 'Ო' => 'ო', - 'Პ' => 'პ', - 'Ჟ' => 'ჟ', - 'Რ' => 'რ', - 'Ს' => 'ს', - 'Ტ' => 'ტ', - 'Უ' => 'უ', - 'Ფ' => 'ფ', - 'Ქ' => 'ქ', - 'Ღ' => 'ღ', - 'Ყ' => 'ყ', - 'Შ' => 'შ', - 'Ჩ' => 'ჩ', - 'Ც' => 'ც', - 'Ძ' => 'ძ', - 'Წ' => 'წ', - 'Ჭ' => 'ჭ', - 'Ხ' => 'ხ', - 'Ჯ' => 'ჯ', - 'Ჰ' => 'ჰ', - 'Ჱ' => 'ჱ', - 'Ჲ' => 'ჲ', - 'Ჳ' => 'ჳ', - 'Ჴ' => 'ჴ', - 'Ჵ' => 'ჵ', - 'Ჶ' => 'ჶ', - 'Ჷ' => 'ჷ', - 'Ჸ' => 'ჸ', - 'Ჹ' => 'ჹ', - 'Ჺ' => 'ჺ', - 'Ჽ' => 'ჽ', - 'Ჾ' => 'ჾ', - 'Ჿ' => 'ჿ', - 'Ḁ' => 'ḁ', - 'Ḃ' => 'ḃ', - 'Ḅ' => 'ḅ', - 'Ḇ' => 'ḇ', - 'Ḉ' => 'ḉ', - 'Ḋ' => 'ḋ', - 'Ḍ' => 'ḍ', - 'Ḏ' => 'ḏ', - 'Ḑ' => 'ḑ', - 'Ḓ' => 'ḓ', - 'Ḕ' => 'ḕ', - 'Ḗ' => 'ḗ', - 'Ḙ' => 'ḙ', - 'Ḛ' => 'ḛ', - 'Ḝ' => 'ḝ', - 'Ḟ' => 'ḟ', - 'Ḡ' => 'ḡ', - 'Ḣ' => 'ḣ', - 'Ḥ' => 'ḥ', - 'Ḧ' => 'ḧ', - 'Ḩ' => 'ḩ', - 'Ḫ' => 'ḫ', - 'Ḭ' => 'ḭ', - 'Ḯ' => 'ḯ', - 'Ḱ' => 'ḱ', - 'Ḳ' => 'ḳ', - 'Ḵ' => 'ḵ', - 'Ḷ' => 'ḷ', - 'Ḹ' => 'ḹ', - 'Ḻ' => 'ḻ', - 'Ḽ' => 'ḽ', - 'Ḿ' => 'ḿ', - 'Ṁ' => 'ṁ', - 'Ṃ' => 'ṃ', - 'Ṅ' => 'ṅ', - 'Ṇ' => 'ṇ', - 'Ṉ' => 'ṉ', - 'Ṋ' => 'ṋ', - 'Ṍ' => 'ṍ', - 'Ṏ' => 'ṏ', - 'Ṑ' => 'ṑ', - 'Ṓ' => 'ṓ', - 'Ṕ' => 'ṕ', - 'Ṗ' => 'ṗ', - 'Ṙ' => 'ṙ', - 'Ṛ' => 'ṛ', - 'Ṝ' => 'ṝ', - 'Ṟ' => 'ṟ', - 'Ṡ' => 'ṡ', - 'Ṣ' => 'ṣ', - 'Ṥ' => 'ṥ', - 'Ṧ' => 'ṧ', - 'Ṩ' => 'ṩ', - 'Ṫ' => 'ṫ', - 'Ṭ' => 'ṭ', - 'Ṯ' => 'ṯ', - 'Ṱ' => 'ṱ', - 'Ṳ' => 'ṳ', - 'Ṵ' => 'ṵ', - 'Ṷ' => 'ṷ', - 'Ṹ' => 'ṹ', - 'Ṻ' => 'ṻ', - 'Ṽ' => 'ṽ', - 'Ṿ' => 'ṿ', - 'Ẁ' => 'ẁ', - 'Ẃ' => 'ẃ', - 'Ẅ' => 'ẅ', - 'Ẇ' => 'ẇ', - 'Ẉ' => 'ẉ', - 'Ẋ' => 'ẋ', - 'Ẍ' => 'ẍ', - 'Ẏ' => 'ẏ', - 'Ẑ' => 'ẑ', - 'Ẓ' => 'ẓ', - 'Ẕ' => 'ẕ', - 'ẞ' => 'ß', - 'Ạ' => 'ạ', - 'Ả' => 'ả', - 'Ấ' => 'ấ', - 'Ầ' => 'ầ', - 'Ẩ' => 'ẩ', - 'Ẫ' => 'ẫ', - 'Ậ' => 'ậ', - 'Ắ' => 'ắ', - 'Ằ' => 'ằ', - 'Ẳ' => 'ẳ', - 'Ẵ' => 'ẵ', - 'Ặ' => 'ặ', - 'Ẹ' => 'ẹ', - 'Ẻ' => 'ẻ', - 'Ẽ' => 'ẽ', - 'Ế' => 'ế', - 'Ề' => 'ề', - 'Ể' => 'ể', - 'Ễ' => 'ễ', - 'Ệ' => 'ệ', - 'Ỉ' => 'ỉ', - 'Ị' => 'ị', - 'Ọ' => 'ọ', - 'Ỏ' => 'ỏ', - 'Ố' => 'ố', - 'Ồ' => 'ồ', - 'Ổ' => 'ổ', - 'Ỗ' => 'ỗ', - 'Ộ' => 'ộ', - 'Ớ' => 'ớ', - 'Ờ' => 'ờ', - 'Ở' => 'ở', - 'Ỡ' => 'ỡ', - 'Ợ' => 'ợ', - 'Ụ' => 'ụ', - 'Ủ' => 'ủ', - 'Ứ' => 'ứ', - 'Ừ' => 'ừ', - 'Ử' => 'ử', - 'Ữ' => 'ữ', - 'Ự' => 'ự', - 'Ỳ' => 'ỳ', - 'Ỵ' => 'ỵ', - 'Ỷ' => 'ỷ', - 'Ỹ' => 'ỹ', - 'Ỻ' => 'ỻ', - 'Ỽ' => 'ỽ', - 'Ỿ' => 'ỿ', - 'Ἀ' => 'ἀ', - 'Ἁ' => 'ἁ', - 'Ἂ' => 'ἂ', - 'Ἃ' => 'ἃ', - 'Ἄ' => 'ἄ', - 'Ἅ' => 'ἅ', - 'Ἆ' => 'ἆ', - 'Ἇ' => 'ἇ', - 'Ἐ' => 'ἐ', - 'Ἑ' => 'ἑ', - 'Ἒ' => 'ἒ', - 'Ἓ' => 'ἓ', - 'Ἔ' => 'ἔ', - 'Ἕ' => 'ἕ', - 'Ἠ' => 'ἠ', - 'Ἡ' => 'ἡ', - 'Ἢ' => 'ἢ', - 'Ἣ' => 'ἣ', - 'Ἤ' => 'ἤ', - 'Ἥ' => 'ἥ', - 'Ἦ' => 'ἦ', - 'Ἧ' => 'ἧ', - 'Ἰ' => 'ἰ', - 'Ἱ' => 'ἱ', - 'Ἲ' => 'ἲ', - 'Ἳ' => 'ἳ', - 'Ἴ' => 'ἴ', - 'Ἵ' => 'ἵ', - 'Ἶ' => 'ἶ', - 'Ἷ' => 'ἷ', - 'Ὀ' => 'ὀ', - 'Ὁ' => 'ὁ', - 'Ὂ' => 'ὂ', - 'Ὃ' => 'ὃ', - 'Ὄ' => 'ὄ', - 'Ὅ' => 'ὅ', - 'Ὑ' => 'ὑ', - 'Ὓ' => 'ὓ', - 'Ὕ' => 'ὕ', - 'Ὗ' => 'ὗ', - 'Ὠ' => 'ὠ', - 'Ὡ' => 'ὡ', - 'Ὢ' => 'ὢ', - 'Ὣ' => 'ὣ', - 'Ὤ' => 'ὤ', - 'Ὥ' => 'ὥ', - 'Ὦ' => 'ὦ', - 'Ὧ' => 'ὧ', - 'ᾈ' => 'ᾀ', - 'ᾉ' => 'ᾁ', - 'ᾊ' => 'ᾂ', - 'ᾋ' => 'ᾃ', - 'ᾌ' => 'ᾄ', - 'ᾍ' => 'ᾅ', - 'ᾎ' => 'ᾆ', - 'ᾏ' => 'ᾇ', - 'ᾘ' => 'ᾐ', - 'ᾙ' => 'ᾑ', - 'ᾚ' => 'ᾒ', - 'ᾛ' => 'ᾓ', - 'ᾜ' => 'ᾔ', - 'ᾝ' => 'ᾕ', - 'ᾞ' => 'ᾖ', - 'ᾟ' => 'ᾗ', - 'ᾨ' => 'ᾠ', - 'ᾩ' => 'ᾡ', - 'ᾪ' => 'ᾢ', - 'ᾫ' => 'ᾣ', - 'ᾬ' => 'ᾤ', - 'ᾭ' => 'ᾥ', - 'ᾮ' => 'ᾦ', - 'ᾯ' => 'ᾧ', - 'Ᾰ' => 'ᾰ', - 'Ᾱ' => 'ᾱ', - 'Ὰ' => 'ὰ', - 'Ά' => 'ά', - 'ᾼ' => 'ᾳ', - 'Ὲ' => 'ὲ', - 'Έ' => 'έ', - 'Ὴ' => 'ὴ', - 'Ή' => 'ή', - 'ῌ' => 'ῃ', - 'Ῐ' => 'ῐ', - 'Ῑ' => 'ῑ', - 'Ὶ' => 'ὶ', - 'Ί' => 'ί', - 'Ῠ' => 'ῠ', - 'Ῡ' => 'ῡ', - 'Ὺ' => 'ὺ', - 'Ύ' => 'ύ', - 'Ῥ' => 'ῥ', - 'Ὸ' => 'ὸ', - 'Ό' => 'ό', - 'Ὼ' => 'ὼ', - 'Ώ' => 'ώ', - 'ῼ' => 'ῳ', - 'Ω' => 'ω', - 'K' => 'k', - 'Å' => 'å', - 'Ⅎ' => 'ⅎ', - 'Ⅰ' => 'ⅰ', - 'Ⅱ' => 'ⅱ', - 'Ⅲ' => 'ⅲ', - 'Ⅳ' => 'ⅳ', - 'Ⅴ' => 'ⅴ', - 'Ⅵ' => 'ⅵ', - 'Ⅶ' => 'ⅶ', - 'Ⅷ' => 'ⅷ', - 'Ⅸ' => 'ⅸ', - 'Ⅹ' => 'ⅹ', - 'Ⅺ' => 'ⅺ', - 'Ⅻ' => 'ⅻ', - 'Ⅼ' => 'ⅼ', - 'Ⅽ' => 'ⅽ', - 'Ⅾ' => 'ⅾ', - 'Ⅿ' => 'ⅿ', - 'Ↄ' => 'ↄ', - 'Ⓐ' => 'ⓐ', - 'Ⓑ' => 'ⓑ', - 'Ⓒ' => 'ⓒ', - 'Ⓓ' => 'ⓓ', - 'Ⓔ' => 'ⓔ', - 'Ⓕ' => 'ⓕ', - 'Ⓖ' => 'ⓖ', - 'Ⓗ' => 'ⓗ', - 'Ⓘ' => 'ⓘ', - 'Ⓙ' => 'ⓙ', - 'Ⓚ' => 'ⓚ', - 'Ⓛ' => 'ⓛ', - 'Ⓜ' => 'ⓜ', - 'Ⓝ' => 'ⓝ', - 'Ⓞ' => 'ⓞ', - 'Ⓟ' => 'ⓟ', - 'Ⓠ' => 'ⓠ', - 'Ⓡ' => 'ⓡ', - 'Ⓢ' => 'ⓢ', - 'Ⓣ' => 'ⓣ', - 'Ⓤ' => 'ⓤ', - 'Ⓥ' => 'ⓥ', - 'Ⓦ' => 'ⓦ', - 'Ⓧ' => 'ⓧ', - 'Ⓨ' => 'ⓨ', - 'Ⓩ' => 'ⓩ', - 'Ⰰ' => 'ⰰ', - 'Ⰱ' => 'ⰱ', - 'Ⰲ' => 'ⰲ', - 'Ⰳ' => 'ⰳ', - 'Ⰴ' => 'ⰴ', - 'Ⰵ' => 'ⰵ', - 'Ⰶ' => 'ⰶ', - 'Ⰷ' => 'ⰷ', - 'Ⰸ' => 'ⰸ', - 'Ⰹ' => 'ⰹ', - 'Ⰺ' => 'ⰺ', - 'Ⰻ' => 'ⰻ', - 'Ⰼ' => 'ⰼ', - 'Ⰽ' => 'ⰽ', - 'Ⰾ' => 'ⰾ', - 'Ⰿ' => 'ⰿ', - 'Ⱀ' => 'ⱀ', - 'Ⱁ' => 'ⱁ', - 'Ⱂ' => 'ⱂ', - 'Ⱃ' => 'ⱃ', - 'Ⱄ' => 'ⱄ', - 'Ⱅ' => 'ⱅ', - 'Ⱆ' => 'ⱆ', - 'Ⱇ' => 'ⱇ', - 'Ⱈ' => 'ⱈ', - 'Ⱉ' => 'ⱉ', - 'Ⱊ' => 'ⱊ', - 'Ⱋ' => 'ⱋ', - 'Ⱌ' => 'ⱌ', - 'Ⱍ' => 'ⱍ', - 'Ⱎ' => 'ⱎ', - 'Ⱏ' => 'ⱏ', - 'Ⱐ' => 'ⱐ', - 'Ⱑ' => 'ⱑ', - 'Ⱒ' => 'ⱒ', - 'Ⱓ' => 'ⱓ', - 'Ⱔ' => 'ⱔ', - 'Ⱕ' => 'ⱕ', - 'Ⱖ' => 'ⱖ', - 'Ⱗ' => 'ⱗ', - 'Ⱘ' => 'ⱘ', - 'Ⱙ' => 'ⱙ', - 'Ⱚ' => 'ⱚ', - 'Ⱛ' => 'ⱛ', - 'Ⱜ' => 'ⱜ', - 'Ⱝ' => 'ⱝ', - 'Ⱞ' => 'ⱞ', - 'Ⱡ' => 'ⱡ', - 'Ɫ' => 'ɫ', - 'Ᵽ' => 'ᵽ', - 'Ɽ' => 'ɽ', - 'Ⱨ' => 'ⱨ', - 'Ⱪ' => 'ⱪ', - 'Ⱬ' => 'ⱬ', - 'Ɑ' => 'ɑ', - 'Ɱ' => 'ɱ', - 'Ɐ' => 'ɐ', - 'Ɒ' => 'ɒ', - 'Ⱳ' => 'ⱳ', - 'Ⱶ' => 'ⱶ', - 'Ȿ' => 'ȿ', - 'Ɀ' => 'ɀ', - 'Ⲁ' => 'ⲁ', - 'Ⲃ' => 'ⲃ', - 'Ⲅ' => 'ⲅ', - 'Ⲇ' => 'ⲇ', - 'Ⲉ' => 'ⲉ', - 'Ⲋ' => 'ⲋ', - 'Ⲍ' => 'ⲍ', - 'Ⲏ' => 'ⲏ', - 'Ⲑ' => 'ⲑ', - 'Ⲓ' => 'ⲓ', - 'Ⲕ' => 'ⲕ', - 'Ⲗ' => 'ⲗ', - 'Ⲙ' => 'ⲙ', - 'Ⲛ' => 'ⲛ', - 'Ⲝ' => 'ⲝ', - 'Ⲟ' => 'ⲟ', - 'Ⲡ' => 'ⲡ', - 'Ⲣ' => 'ⲣ', - 'Ⲥ' => 'ⲥ', - 'Ⲧ' => 'ⲧ', - 'Ⲩ' => 'ⲩ', - 'Ⲫ' => 'ⲫ', - 'Ⲭ' => 'ⲭ', - 'Ⲯ' => 'ⲯ', - 'Ⲱ' => 'ⲱ', - 'Ⲳ' => 'ⲳ', - 'Ⲵ' => 'ⲵ', - 'Ⲷ' => 'ⲷ', - 'Ⲹ' => 'ⲹ', - 'Ⲻ' => 'ⲻ', - 'Ⲽ' => 'ⲽ', - 'Ⲿ' => 'ⲿ', - 'Ⳁ' => 'ⳁ', - 'Ⳃ' => 'ⳃ', - 'Ⳅ' => 'ⳅ', - 'Ⳇ' => 'ⳇ', - 'Ⳉ' => 'ⳉ', - 'Ⳋ' => 'ⳋ', - 'Ⳍ' => 'ⳍ', - 'Ⳏ' => 'ⳏ', - 'Ⳑ' => 'ⳑ', - 'Ⳓ' => 'ⳓ', - 'Ⳕ' => 'ⳕ', - 'Ⳗ' => 'ⳗ', - 'Ⳙ' => 'ⳙ', - 'Ⳛ' => 'ⳛ', - 'Ⳝ' => 'ⳝ', - 'Ⳟ' => 'ⳟ', - 'Ⳡ' => 'ⳡ', - 'Ⳣ' => 'ⳣ', - 'Ⳬ' => 'ⳬ', - 'Ⳮ' => 'ⳮ', - 'Ⳳ' => 'ⳳ', - 'Ꙁ' => 'ꙁ', - 'Ꙃ' => 'ꙃ', - 'Ꙅ' => 'ꙅ', - 'Ꙇ' => 'ꙇ', - 'Ꙉ' => 'ꙉ', - 'Ꙋ' => 'ꙋ', - 'Ꙍ' => 'ꙍ', - 'Ꙏ' => 'ꙏ', - 'Ꙑ' => 'ꙑ', - 'Ꙓ' => 'ꙓ', - 'Ꙕ' => 'ꙕ', - 'Ꙗ' => 'ꙗ', - 'Ꙙ' => 'ꙙ', - 'Ꙛ' => 'ꙛ', - 'Ꙝ' => 'ꙝ', - 'Ꙟ' => 'ꙟ', - 'Ꙡ' => 'ꙡ', - 'Ꙣ' => 'ꙣ', - 'Ꙥ' => 'ꙥ', - 'Ꙧ' => 'ꙧ', - 'Ꙩ' => 'ꙩ', - 'Ꙫ' => 'ꙫ', - 'Ꙭ' => 'ꙭ', - 'Ꚁ' => 'ꚁ', - 'Ꚃ' => 'ꚃ', - 'Ꚅ' => 'ꚅ', - 'Ꚇ' => 'ꚇ', - 'Ꚉ' => 'ꚉ', - 'Ꚋ' => 'ꚋ', - 'Ꚍ' => 'ꚍ', - 'Ꚏ' => 'ꚏ', - 'Ꚑ' => 'ꚑ', - 'Ꚓ' => 'ꚓ', - 'Ꚕ' => 'ꚕ', - 'Ꚗ' => 'ꚗ', - 'Ꚙ' => 'ꚙ', - 'Ꚛ' => 'ꚛ', - 'Ꜣ' => 'ꜣ', - 'Ꜥ' => 'ꜥ', - 'Ꜧ' => 'ꜧ', - 'Ꜩ' => 'ꜩ', - 'Ꜫ' => 'ꜫ', - 'Ꜭ' => 'ꜭ', - 'Ꜯ' => 'ꜯ', - 'Ꜳ' => 'ꜳ', - 'Ꜵ' => 'ꜵ', - 'Ꜷ' => 'ꜷ', - 'Ꜹ' => 'ꜹ', - 'Ꜻ' => 'ꜻ', - 'Ꜽ' => 'ꜽ', - 'Ꜿ' => 'ꜿ', - 'Ꝁ' => 'ꝁ', - 'Ꝃ' => 'ꝃ', - 'Ꝅ' => 'ꝅ', - 'Ꝇ' => 'ꝇ', - 'Ꝉ' => 'ꝉ', - 'Ꝋ' => 'ꝋ', - 'Ꝍ' => 'ꝍ', - 'Ꝏ' => 'ꝏ', - 'Ꝑ' => 'ꝑ', - 'Ꝓ' => 'ꝓ', - 'Ꝕ' => 'ꝕ', - 'Ꝗ' => 'ꝗ', - 'Ꝙ' => 'ꝙ', - 'Ꝛ' => 'ꝛ', - 'Ꝝ' => 'ꝝ', - 'Ꝟ' => 'ꝟ', - 'Ꝡ' => 'ꝡ', - 'Ꝣ' => 'ꝣ', - 'Ꝥ' => 'ꝥ', - 'Ꝧ' => 'ꝧ', - 'Ꝩ' => 'ꝩ', - 'Ꝫ' => 'ꝫ', - 'Ꝭ' => 'ꝭ', - 'Ꝯ' => 'ꝯ', - 'Ꝺ' => 'ꝺ', - 'Ꝼ' => 'ꝼ', - 'Ᵹ' => 'ᵹ', - 'Ꝿ' => 'ꝿ', - 'Ꞁ' => 'ꞁ', - 'Ꞃ' => 'ꞃ', - 'Ꞅ' => 'ꞅ', - 'Ꞇ' => 'ꞇ', - 'Ꞌ' => 'ꞌ', - 'Ɥ' => 'ɥ', - 'Ꞑ' => 'ꞑ', - 'Ꞓ' => 'ꞓ', - 'Ꞗ' => 'ꞗ', - 'Ꞙ' => 'ꞙ', - 'Ꞛ' => 'ꞛ', - 'Ꞝ' => 'ꞝ', - 'Ꞟ' => 'ꞟ', - 'Ꞡ' => 'ꞡ', - 'Ꞣ' => 'ꞣ', - 'Ꞥ' => 'ꞥ', - 'Ꞧ' => 'ꞧ', - 'Ꞩ' => 'ꞩ', - 'Ɦ' => 'ɦ', - 'Ɜ' => 'ɜ', - 'Ɡ' => 'ɡ', - 'Ɬ' => 'ɬ', - 'Ɪ' => 'ɪ', - 'Ʞ' => 'ʞ', - 'Ʇ' => 'ʇ', - 'Ʝ' => 'ʝ', - 'Ꭓ' => 'ꭓ', - 'Ꞵ' => 'ꞵ', - 'Ꞷ' => 'ꞷ', - 'Ꞹ' => 'ꞹ', - 'Ꞻ' => 'ꞻ', - 'Ꞽ' => 'ꞽ', - 'Ꞿ' => 'ꞿ', - 'Ꟃ' => 'ꟃ', - 'Ꞔ' => 'ꞔ', - 'Ʂ' => 'ʂ', - 'Ᶎ' => 'ᶎ', - 'Ꟈ' => 'ꟈ', - 'Ꟊ' => 'ꟊ', - 'Ꟶ' => 'ꟶ', - 'A' => 'a', - 'B' => 'b', - 'C' => 'c', - 'D' => 'd', - 'E' => 'e', - 'F' => 'f', - 'G' => 'g', - 'H' => 'h', - 'I' => 'i', - 'J' => 'j', - 'K' => 'k', - 'L' => 'l', - 'M' => 'm', - 'N' => 'n', - 'O' => 'o', - 'P' => 'p', - 'Q' => 'q', - 'R' => 'r', - 'S' => 's', - 'T' => 't', - 'U' => 'u', - 'V' => 'v', - 'W' => 'w', - 'X' => 'x', - 'Y' => 'y', - 'Z' => 'z', - '𐐀' => '𐐨', - '𐐁' => '𐐩', - '𐐂' => '𐐪', - '𐐃' => '𐐫', - '𐐄' => '𐐬', - '𐐅' => '𐐭', - '𐐆' => '𐐮', - '𐐇' => '𐐯', - '𐐈' => '𐐰', - '𐐉' => '𐐱', - '𐐊' => '𐐲', - '𐐋' => '𐐳', - '𐐌' => '𐐴', - '𐐍' => '𐐵', - '𐐎' => '𐐶', - '𐐏' => '𐐷', - '𐐐' => '𐐸', - '𐐑' => '𐐹', - '𐐒' => '𐐺', - '𐐓' => '𐐻', - '𐐔' => '𐐼', - '𐐕' => '𐐽', - '𐐖' => '𐐾', - '𐐗' => '𐐿', - '𐐘' => '𐑀', - '𐐙' => '𐑁', - '𐐚' => '𐑂', - '𐐛' => '𐑃', - '𐐜' => '𐑄', - '𐐝' => '𐑅', - '𐐞' => '𐑆', - '𐐟' => '𐑇', - '𐐠' => '𐑈', - '𐐡' => '𐑉', - '𐐢' => '𐑊', - '𐐣' => '𐑋', - '𐐤' => '𐑌', - '𐐥' => '𐑍', - '𐐦' => '𐑎', - '𐐧' => '𐑏', - '𐒰' => '𐓘', - '𐒱' => '𐓙', - '𐒲' => '𐓚', - '𐒳' => '𐓛', - '𐒴' => '𐓜', - '𐒵' => '𐓝', - '𐒶' => '𐓞', - '𐒷' => '𐓟', - '𐒸' => '𐓠', - '𐒹' => '𐓡', - '𐒺' => '𐓢', - '𐒻' => '𐓣', - '𐒼' => '𐓤', - '𐒽' => '𐓥', - '𐒾' => '𐓦', - '𐒿' => '𐓧', - '𐓀' => '𐓨', - '𐓁' => '𐓩', - '𐓂' => '𐓪', - '𐓃' => '𐓫', - '𐓄' => '𐓬', - '𐓅' => '𐓭', - '𐓆' => '𐓮', - '𐓇' => '𐓯', - '𐓈' => '𐓰', - '𐓉' => '𐓱', - '𐓊' => '𐓲', - '𐓋' => '𐓳', - '𐓌' => '𐓴', - '𐓍' => '𐓵', - '𐓎' => '𐓶', - '𐓏' => '𐓷', - '𐓐' => '𐓸', - '𐓑' => '𐓹', - '𐓒' => '𐓺', - '𐓓' => '𐓻', - '𐲀' => '𐳀', - '𐲁' => '𐳁', - '𐲂' => '𐳂', - '𐲃' => '𐳃', - '𐲄' => '𐳄', - '𐲅' => '𐳅', - '𐲆' => '𐳆', - '𐲇' => '𐳇', - '𐲈' => '𐳈', - '𐲉' => '𐳉', - '𐲊' => '𐳊', - '𐲋' => '𐳋', - '𐲌' => '𐳌', - '𐲍' => '𐳍', - '𐲎' => '𐳎', - '𐲏' => '𐳏', - '𐲐' => '𐳐', - '𐲑' => '𐳑', - '𐲒' => '𐳒', - '𐲓' => '𐳓', - '𐲔' => '𐳔', - '𐲕' => '𐳕', - '𐲖' => '𐳖', - '𐲗' => '𐳗', - '𐲘' => '𐳘', - '𐲙' => '𐳙', - '𐲚' => '𐳚', - '𐲛' => '𐳛', - '𐲜' => '𐳜', - '𐲝' => '𐳝', - '𐲞' => '𐳞', - '𐲟' => '𐳟', - '𐲠' => '𐳠', - '𐲡' => '𐳡', - '𐲢' => '𐳢', - '𐲣' => '𐳣', - '𐲤' => '𐳤', - '𐲥' => '𐳥', - '𐲦' => '𐳦', - '𐲧' => '𐳧', - '𐲨' => '𐳨', - '𐲩' => '𐳩', - '𐲪' => '𐳪', - '𐲫' => '𐳫', - '𐲬' => '𐳬', - '𐲭' => '𐳭', - '𐲮' => '𐳮', - '𐲯' => '𐳯', - '𐲰' => '𐳰', - '𐲱' => '𐳱', - '𐲲' => '𐳲', - '𑢠' => '𑣀', - '𑢡' => '𑣁', - '𑢢' => '𑣂', - '𑢣' => '𑣃', - '𑢤' => '𑣄', - '𑢥' => '𑣅', - '𑢦' => '𑣆', - '𑢧' => '𑣇', - '𑢨' => '𑣈', - '𑢩' => '𑣉', - '𑢪' => '𑣊', - '𑢫' => '𑣋', - '𑢬' => '𑣌', - '𑢭' => '𑣍', - '𑢮' => '𑣎', - '𑢯' => '𑣏', - '𑢰' => '𑣐', - '𑢱' => '𑣑', - '𑢲' => '𑣒', - '𑢳' => '𑣓', - '𑢴' => '𑣔', - '𑢵' => '𑣕', - '𑢶' => '𑣖', - '𑢷' => '𑣗', - '𑢸' => '𑣘', - '𑢹' => '𑣙', - '𑢺' => '𑣚', - '𑢻' => '𑣛', - '𑢼' => '𑣜', - '𑢽' => '𑣝', - '𑢾' => '𑣞', - '𑢿' => '𑣟', - '𖹀' => '𖹠', - '𖹁' => '𖹡', - '𖹂' => '𖹢', - '𖹃' => '𖹣', - '𖹄' => '𖹤', - '𖹅' => '𖹥', - '𖹆' => '𖹦', - '𖹇' => '𖹧', - '𖹈' => '𖹨', - '𖹉' => '𖹩', - '𖹊' => '𖹪', - '𖹋' => '𖹫', - '𖹌' => '𖹬', - '𖹍' => '𖹭', - '𖹎' => '𖹮', - '𖹏' => '𖹯', - '𖹐' => '𖹰', - '𖹑' => '𖹱', - '𖹒' => '𖹲', - '𖹓' => '𖹳', - '𖹔' => '𖹴', - '𖹕' => '𖹵', - '𖹖' => '𖹶', - '𖹗' => '𖹷', - '𖹘' => '𖹸', - '𖹙' => '𖹹', - '𖹚' => '𖹺', - '𖹛' => '𖹻', - '𖹜' => '𖹼', - '𖹝' => '𖹽', - '𖹞' => '𖹾', - '𖹟' => '𖹿', - '𞤀' => '𞤢', - '𞤁' => '𞤣', - '𞤂' => '𞤤', - '𞤃' => '𞤥', - '𞤄' => '𞤦', - '𞤅' => '𞤧', - '𞤆' => '𞤨', - '𞤇' => '𞤩', - '𞤈' => '𞤪', - '𞤉' => '𞤫', - '𞤊' => '𞤬', - '𞤋' => '𞤭', - '𞤌' => '𞤮', - '𞤍' => '𞤯', - '𞤎' => '𞤰', - '𞤏' => '𞤱', - '𞤐' => '𞤲', - '𞤑' => '𞤳', - '𞤒' => '𞤴', - '𞤓' => '𞤵', - '𞤔' => '𞤶', - '𞤕' => '𞤷', - '𞤖' => '𞤸', - '𞤗' => '𞤹', - '𞤘' => '𞤺', - '𞤙' => '𞤻', - '𞤚' => '𞤼', - '𞤛' => '𞤽', - '𞤜' => '𞤾', - '𞤝' => '𞤿', - '𞤞' => '𞥀', - '𞤟' => '𞥁', - '𞤠' => '𞥂', - '𞤡' => '𞥃', -); diff --git a/wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-mbstring/Resources/unidata/titleCaseRegexp.php b/wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-mbstring/Resources/unidata/titleCaseRegexp.php deleted file mode 100644 index 2a8f6e7..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-mbstring/Resources/unidata/titleCaseRegexp.php +++ /dev/null @@ -1,5 +0,0 @@ - 'A', - 'b' => 'B', - 'c' => 'C', - 'd' => 'D', - 'e' => 'E', - 'f' => 'F', - 'g' => 'G', - 'h' => 'H', - 'i' => 'I', - 'j' => 'J', - 'k' => 'K', - 'l' => 'L', - 'm' => 'M', - 'n' => 'N', - 'o' => 'O', - 'p' => 'P', - 'q' => 'Q', - 'r' => 'R', - 's' => 'S', - 't' => 'T', - 'u' => 'U', - 'v' => 'V', - 'w' => 'W', - 'x' => 'X', - 'y' => 'Y', - 'z' => 'Z', - 'µ' => 'Μ', - 'à' => 'À', - 'á' => 'Á', - 'â' => 'Â', - 'ã' => 'Ã', - 'ä' => 'Ä', - 'å' => 'Å', - 'æ' => 'Æ', - 'ç' => 'Ç', - 'è' => 'È', - 'é' => 'É', - 'ê' => 'Ê', - 'ë' => 'Ë', - 'ì' => 'Ì', - 'í' => 'Í', - 'î' => 'Î', - 'ï' => 'Ï', - 'ð' => 'Ð', - 'ñ' => 'Ñ', - 'ò' => 'Ò', - 'ó' => 'Ó', - 'ô' => 'Ô', - 'õ' => 'Õ', - 'ö' => 'Ö', - 'ø' => 'Ø', - 'ù' => 'Ù', - 'ú' => 'Ú', - 'û' => 'Û', - 'ü' => 'Ü', - 'ý' => 'Ý', - 'þ' => 'Þ', - 'ÿ' => 'Ÿ', - 'ā' => 'Ā', - 'ă' => 'Ă', - 'ą' => 'Ą', - 'ć' => 'Ć', - 'ĉ' => 'Ĉ', - 'ċ' => 'Ċ', - 'č' => 'Č', - 'ď' => 'Ď', - 'đ' => 'Đ', - 'ē' => 'Ē', - 'ĕ' => 'Ĕ', - 'ė' => 'Ė', - 'ę' => 'Ę', - 'ě' => 'Ě', - 'ĝ' => 'Ĝ', - 'ğ' => 'Ğ', - 'ġ' => 'Ġ', - 'ģ' => 'Ģ', - 'ĥ' => 'Ĥ', - 'ħ' => 'Ħ', - 'ĩ' => 'Ĩ', - 'ī' => 'Ī', - 'ĭ' => 'Ĭ', - 'į' => 'Į', - 'ı' => 'I', - 'ij' => 'IJ', - 'ĵ' => 'Ĵ', - 'ķ' => 'Ķ', - 'ĺ' => 'Ĺ', - 'ļ' => 'Ļ', - 'ľ' => 'Ľ', - 'ŀ' => 'Ŀ', - 'ł' => 'Ł', - 'ń' => 'Ń', - 'ņ' => 'Ņ', - 'ň' => 'Ň', - 'ŋ' => 'Ŋ', - 'ō' => 'Ō', - 'ŏ' => 'Ŏ', - 'ő' => 'Ő', - 'œ' => 'Œ', - 'ŕ' => 'Ŕ', - 'ŗ' => 'Ŗ', - 'ř' => 'Ř', - 'ś' => 'Ś', - 'ŝ' => 'Ŝ', - 'ş' => 'Ş', - 'š' => 'Š', - 'ţ' => 'Ţ', - 'ť' => 'Ť', - 'ŧ' => 'Ŧ', - 'ũ' => 'Ũ', - 'ū' => 'Ū', - 'ŭ' => 'Ŭ', - 'ů' => 'Ů', - 'ű' => 'Ű', - 'ų' => 'Ų', - 'ŵ' => 'Ŵ', - 'ŷ' => 'Ŷ', - 'ź' => 'Ź', - 'ż' => 'Ż', - 'ž' => 'Ž', - 'ſ' => 'S', - 'ƀ' => 'Ƀ', - 'ƃ' => 'Ƃ', - 'ƅ' => 'Ƅ', - 'ƈ' => 'Ƈ', - 'ƌ' => 'Ƌ', - 'ƒ' => 'Ƒ', - 'ƕ' => 'Ƕ', - 'ƙ' => 'Ƙ', - 'ƚ' => 'Ƚ', - 'ƞ' => 'Ƞ', - 'ơ' => 'Ơ', - 'ƣ' => 'Ƣ', - 'ƥ' => 'Ƥ', - 'ƨ' => 'Ƨ', - 'ƭ' => 'Ƭ', - 'ư' => 'Ư', - 'ƴ' => 'Ƴ', - 'ƶ' => 'Ƶ', - 'ƹ' => 'Ƹ', - 'ƽ' => 'Ƽ', - 'ƿ' => 'Ƿ', - 'Dž' => 'DŽ', - 'dž' => 'DŽ', - 'Lj' => 'LJ', - 'lj' => 'LJ', - 'Nj' => 'NJ', - 'nj' => 'NJ', - 'ǎ' => 'Ǎ', - 'ǐ' => 'Ǐ', - 'ǒ' => 'Ǒ', - 'ǔ' => 'Ǔ', - 'ǖ' => 'Ǖ', - 'ǘ' => 'Ǘ', - 'ǚ' => 'Ǚ', - 'ǜ' => 'Ǜ', - 'ǝ' => 'Ǝ', - 'ǟ' => 'Ǟ', - 'ǡ' => 'Ǡ', - 'ǣ' => 'Ǣ', - 'ǥ' => 'Ǥ', - 'ǧ' => 'Ǧ', - 'ǩ' => 'Ǩ', - 'ǫ' => 'Ǫ', - 'ǭ' => 'Ǭ', - 'ǯ' => 'Ǯ', - 'Dz' => 'DZ', - 'dz' => 'DZ', - 'ǵ' => 'Ǵ', - 'ǹ' => 'Ǹ', - 'ǻ' => 'Ǻ', - 'ǽ' => 'Ǽ', - 'ǿ' => 'Ǿ', - 'ȁ' => 'Ȁ', - 'ȃ' => 'Ȃ', - 'ȅ' => 'Ȅ', - 'ȇ' => 'Ȇ', - 'ȉ' => 'Ȉ', - 'ȋ' => 'Ȋ', - 'ȍ' => 'Ȍ', - 'ȏ' => 'Ȏ', - 'ȑ' => 'Ȑ', - 'ȓ' => 'Ȓ', - 'ȕ' => 'Ȕ', - 'ȗ' => 'Ȗ', - 'ș' => 'Ș', - 'ț' => 'Ț', - 'ȝ' => 'Ȝ', - 'ȟ' => 'Ȟ', - 'ȣ' => 'Ȣ', - 'ȥ' => 'Ȥ', - 'ȧ' => 'Ȧ', - 'ȩ' => 'Ȩ', - 'ȫ' => 'Ȫ', - 'ȭ' => 'Ȭ', - 'ȯ' => 'Ȯ', - 'ȱ' => 'Ȱ', - 'ȳ' => 'Ȳ', - 'ȼ' => 'Ȼ', - 'ȿ' => 'Ȿ', - 'ɀ' => 'Ɀ', - 'ɂ' => 'Ɂ', - 'ɇ' => 'Ɇ', - 'ɉ' => 'Ɉ', - 'ɋ' => 'Ɋ', - 'ɍ' => 'Ɍ', - 'ɏ' => 'Ɏ', - 'ɐ' => 'Ɐ', - 'ɑ' => 'Ɑ', - 'ɒ' => 'Ɒ', - 'ɓ' => 'Ɓ', - 'ɔ' => 'Ɔ', - 'ɖ' => 'Ɖ', - 'ɗ' => 'Ɗ', - 'ə' => 'Ə', - 'ɛ' => 'Ɛ', - 'ɜ' => 'Ɜ', - 'ɠ' => 'Ɠ', - 'ɡ' => 'Ɡ', - 'ɣ' => 'Ɣ', - 'ɥ' => 'Ɥ', - 'ɦ' => 'Ɦ', - 'ɨ' => 'Ɨ', - 'ɩ' => 'Ɩ', - 'ɪ' => 'Ɪ', - 'ɫ' => 'Ɫ', - 'ɬ' => 'Ɬ', - 'ɯ' => 'Ɯ', - 'ɱ' => 'Ɱ', - 'ɲ' => 'Ɲ', - 'ɵ' => 'Ɵ', - 'ɽ' => 'Ɽ', - 'ʀ' => 'Ʀ', - 'ʂ' => 'Ʂ', - 'ʃ' => 'Ʃ', - 'ʇ' => 'Ʇ', - 'ʈ' => 'Ʈ', - 'ʉ' => 'Ʉ', - 'ʊ' => 'Ʊ', - 'ʋ' => 'Ʋ', - 'ʌ' => 'Ʌ', - 'ʒ' => 'Ʒ', - 'ʝ' => 'Ʝ', - 'ʞ' => 'Ʞ', - 'ͅ' => 'Ι', - 'ͱ' => 'Ͱ', - 'ͳ' => 'Ͳ', - 'ͷ' => 'Ͷ', - 'ͻ' => 'Ͻ', - 'ͼ' => 'Ͼ', - 'ͽ' => 'Ͽ', - 'ά' => 'Ά', - 'έ' => 'Έ', - 'ή' => 'Ή', - 'ί' => 'Ί', - 'α' => 'Α', - 'β' => 'Β', - 'γ' => 'Γ', - 'δ' => 'Δ', - 'ε' => 'Ε', - 'ζ' => 'Ζ', - 'η' => 'Η', - 'θ' => 'Θ', - 'ι' => 'Ι', - 'κ' => 'Κ', - 'λ' => 'Λ', - 'μ' => 'Μ', - 'ν' => 'Ν', - 'ξ' => 'Ξ', - 'ο' => 'Ο', - 'π' => 'Π', - 'ρ' => 'Ρ', - 'ς' => 'Σ', - 'σ' => 'Σ', - 'τ' => 'Τ', - 'υ' => 'Υ', - 'φ' => 'Φ', - 'χ' => 'Χ', - 'ψ' => 'Ψ', - 'ω' => 'Ω', - 'ϊ' => 'Ϊ', - 'ϋ' => 'Ϋ', - 'ό' => 'Ό', - 'ύ' => 'Ύ', - 'ώ' => 'Ώ', - 'ϐ' => 'Β', - 'ϑ' => 'Θ', - 'ϕ' => 'Φ', - 'ϖ' => 'Π', - 'ϗ' => 'Ϗ', - 'ϙ' => 'Ϙ', - 'ϛ' => 'Ϛ', - 'ϝ' => 'Ϝ', - 'ϟ' => 'Ϟ', - 'ϡ' => 'Ϡ', - 'ϣ' => 'Ϣ', - 'ϥ' => 'Ϥ', - 'ϧ' => 'Ϧ', - 'ϩ' => 'Ϩ', - 'ϫ' => 'Ϫ', - 'ϭ' => 'Ϭ', - 'ϯ' => 'Ϯ', - 'ϰ' => 'Κ', - 'ϱ' => 'Ρ', - 'ϲ' => 'Ϲ', - 'ϳ' => 'Ϳ', - 'ϵ' => 'Ε', - 'ϸ' => 'Ϸ', - 'ϻ' => 'Ϻ', - 'а' => 'А', - 'б' => 'Б', - 'в' => 'В', - 'г' => 'Г', - 'д' => 'Д', - 'е' => 'Е', - 'ж' => 'Ж', - 'з' => 'З', - 'и' => 'И', - 'й' => 'Й', - 'к' => 'К', - 'л' => 'Л', - 'м' => 'М', - 'н' => 'Н', - 'о' => 'О', - 'п' => 'П', - 'р' => 'Р', - 'с' => 'С', - 'т' => 'Т', - 'у' => 'У', - 'ф' => 'Ф', - 'х' => 'Х', - 'ц' => 'Ц', - 'ч' => 'Ч', - 'ш' => 'Ш', - 'щ' => 'Щ', - 'ъ' => 'Ъ', - 'ы' => 'Ы', - 'ь' => 'Ь', - 'э' => 'Э', - 'ю' => 'Ю', - 'я' => 'Я', - 'ѐ' => 'Ѐ', - 'ё' => 'Ё', - 'ђ' => 'Ђ', - 'ѓ' => 'Ѓ', - 'є' => 'Є', - 'ѕ' => 'Ѕ', - 'і' => 'І', - 'ї' => 'Ї', - 'ј' => 'Ј', - 'љ' => 'Љ', - 'њ' => 'Њ', - 'ћ' => 'Ћ', - 'ќ' => 'Ќ', - 'ѝ' => 'Ѝ', - 'ў' => 'Ў', - 'џ' => 'Џ', - 'ѡ' => 'Ѡ', - 'ѣ' => 'Ѣ', - 'ѥ' => 'Ѥ', - 'ѧ' => 'Ѧ', - 'ѩ' => 'Ѩ', - 'ѫ' => 'Ѫ', - 'ѭ' => 'Ѭ', - 'ѯ' => 'Ѯ', - 'ѱ' => 'Ѱ', - 'ѳ' => 'Ѳ', - 'ѵ' => 'Ѵ', - 'ѷ' => 'Ѷ', - 'ѹ' => 'Ѹ', - 'ѻ' => 'Ѻ', - 'ѽ' => 'Ѽ', - 'ѿ' => 'Ѿ', - 'ҁ' => 'Ҁ', - 'ҋ' => 'Ҋ', - 'ҍ' => 'Ҍ', - 'ҏ' => 'Ҏ', - 'ґ' => 'Ґ', - 'ғ' => 'Ғ', - 'ҕ' => 'Ҕ', - 'җ' => 'Җ', - 'ҙ' => 'Ҙ', - 'қ' => 'Қ', - 'ҝ' => 'Ҝ', - 'ҟ' => 'Ҟ', - 'ҡ' => 'Ҡ', - 'ң' => 'Ң', - 'ҥ' => 'Ҥ', - 'ҧ' => 'Ҧ', - 'ҩ' => 'Ҩ', - 'ҫ' => 'Ҫ', - 'ҭ' => 'Ҭ', - 'ү' => 'Ү', - 'ұ' => 'Ұ', - 'ҳ' => 'Ҳ', - 'ҵ' => 'Ҵ', - 'ҷ' => 'Ҷ', - 'ҹ' => 'Ҹ', - 'һ' => 'Һ', - 'ҽ' => 'Ҽ', - 'ҿ' => 'Ҿ', - 'ӂ' => 'Ӂ', - 'ӄ' => 'Ӄ', - 'ӆ' => 'Ӆ', - 'ӈ' => 'Ӈ', - 'ӊ' => 'Ӊ', - 'ӌ' => 'Ӌ', - 'ӎ' => 'Ӎ', - 'ӏ' => 'Ӏ', - 'ӑ' => 'Ӑ', - 'ӓ' => 'Ӓ', - 'ӕ' => 'Ӕ', - 'ӗ' => 'Ӗ', - 'ә' => 'Ә', - 'ӛ' => 'Ӛ', - 'ӝ' => 'Ӝ', - 'ӟ' => 'Ӟ', - 'ӡ' => 'Ӡ', - 'ӣ' => 'Ӣ', - 'ӥ' => 'Ӥ', - 'ӧ' => 'Ӧ', - 'ө' => 'Ө', - 'ӫ' => 'Ӫ', - 'ӭ' => 'Ӭ', - 'ӯ' => 'Ӯ', - 'ӱ' => 'Ӱ', - 'ӳ' => 'Ӳ', - 'ӵ' => 'Ӵ', - 'ӷ' => 'Ӷ', - 'ӹ' => 'Ӹ', - 'ӻ' => 'Ӻ', - 'ӽ' => 'Ӽ', - 'ӿ' => 'Ӿ', - 'ԁ' => 'Ԁ', - 'ԃ' => 'Ԃ', - 'ԅ' => 'Ԅ', - 'ԇ' => 'Ԇ', - 'ԉ' => 'Ԉ', - 'ԋ' => 'Ԋ', - 'ԍ' => 'Ԍ', - 'ԏ' => 'Ԏ', - 'ԑ' => 'Ԑ', - 'ԓ' => 'Ԓ', - 'ԕ' => 'Ԕ', - 'ԗ' => 'Ԗ', - 'ԙ' => 'Ԙ', - 'ԛ' => 'Ԛ', - 'ԝ' => 'Ԝ', - 'ԟ' => 'Ԟ', - 'ԡ' => 'Ԡ', - 'ԣ' => 'Ԣ', - 'ԥ' => 'Ԥ', - 'ԧ' => 'Ԧ', - 'ԩ' => 'Ԩ', - 'ԫ' => 'Ԫ', - 'ԭ' => 'Ԭ', - 'ԯ' => 'Ԯ', - 'ա' => 'Ա', - 'բ' => 'Բ', - 'գ' => 'Գ', - 'դ' => 'Դ', - 'ե' => 'Ե', - 'զ' => 'Զ', - 'է' => 'Է', - 'ը' => 'Ը', - 'թ' => 'Թ', - 'ժ' => 'Ժ', - 'ի' => 'Ի', - 'լ' => 'Լ', - 'խ' => 'Խ', - 'ծ' => 'Ծ', - 'կ' => 'Կ', - 'հ' => 'Հ', - 'ձ' => 'Ձ', - 'ղ' => 'Ղ', - 'ճ' => 'Ճ', - 'մ' => 'Մ', - 'յ' => 'Յ', - 'ն' => 'Ն', - 'շ' => 'Շ', - 'ո' => 'Ո', - 'չ' => 'Չ', - 'պ' => 'Պ', - 'ջ' => 'Ջ', - 'ռ' => 'Ռ', - 'ս' => 'Ս', - 'վ' => 'Վ', - 'տ' => 'Տ', - 'ր' => 'Ր', - 'ց' => 'Ց', - 'ւ' => 'Ւ', - 'փ' => 'Փ', - 'ք' => 'Ք', - 'օ' => 'Օ', - 'ֆ' => 'Ֆ', - 'ა' => 'Ა', - 'ბ' => 'Ბ', - 'გ' => 'Გ', - 'დ' => 'Დ', - 'ე' => 'Ე', - 'ვ' => 'Ვ', - 'ზ' => 'Ზ', - 'თ' => 'Თ', - 'ი' => 'Ი', - 'კ' => 'Კ', - 'ლ' => 'Ლ', - 'მ' => 'Მ', - 'ნ' => 'Ნ', - 'ო' => 'Ო', - 'პ' => 'Პ', - 'ჟ' => 'Ჟ', - 'რ' => 'Რ', - 'ს' => 'Ს', - 'ტ' => 'Ტ', - 'უ' => 'Უ', - 'ფ' => 'Ფ', - 'ქ' => 'Ქ', - 'ღ' => 'Ღ', - 'ყ' => 'Ყ', - 'შ' => 'Შ', - 'ჩ' => 'Ჩ', - 'ც' => 'Ც', - 'ძ' => 'Ძ', - 'წ' => 'Წ', - 'ჭ' => 'Ჭ', - 'ხ' => 'Ხ', - 'ჯ' => 'Ჯ', - 'ჰ' => 'Ჰ', - 'ჱ' => 'Ჱ', - 'ჲ' => 'Ჲ', - 'ჳ' => 'Ჳ', - 'ჴ' => 'Ჴ', - 'ჵ' => 'Ჵ', - 'ჶ' => 'Ჶ', - 'ჷ' => 'Ჷ', - 'ჸ' => 'Ჸ', - 'ჹ' => 'Ჹ', - 'ჺ' => 'Ჺ', - 'ჽ' => 'Ჽ', - 'ჾ' => 'Ჾ', - 'ჿ' => 'Ჿ', - 'ᏸ' => 'Ᏸ', - 'ᏹ' => 'Ᏹ', - 'ᏺ' => 'Ᏺ', - 'ᏻ' => 'Ᏻ', - 'ᏼ' => 'Ᏼ', - 'ᏽ' => 'Ᏽ', - 'ᲀ' => 'В', - 'ᲁ' => 'Д', - 'ᲂ' => 'О', - 'ᲃ' => 'С', - 'ᲄ' => 'Т', - 'ᲅ' => 'Т', - 'ᲆ' => 'Ъ', - 'ᲇ' => 'Ѣ', - 'ᲈ' => 'Ꙋ', - 'ᵹ' => 'Ᵹ', - 'ᵽ' => 'Ᵽ', - 'ᶎ' => 'Ᶎ', - 'ḁ' => 'Ḁ', - 'ḃ' => 'Ḃ', - 'ḅ' => 'Ḅ', - 'ḇ' => 'Ḇ', - 'ḉ' => 'Ḉ', - 'ḋ' => 'Ḋ', - 'ḍ' => 'Ḍ', - 'ḏ' => 'Ḏ', - 'ḑ' => 'Ḑ', - 'ḓ' => 'Ḓ', - 'ḕ' => 'Ḕ', - 'ḗ' => 'Ḗ', - 'ḙ' => 'Ḙ', - 'ḛ' => 'Ḛ', - 'ḝ' => 'Ḝ', - 'ḟ' => 'Ḟ', - 'ḡ' => 'Ḡ', - 'ḣ' => 'Ḣ', - 'ḥ' => 'Ḥ', - 'ḧ' => 'Ḧ', - 'ḩ' => 'Ḩ', - 'ḫ' => 'Ḫ', - 'ḭ' => 'Ḭ', - 'ḯ' => 'Ḯ', - 'ḱ' => 'Ḱ', - 'ḳ' => 'Ḳ', - 'ḵ' => 'Ḵ', - 'ḷ' => 'Ḷ', - 'ḹ' => 'Ḹ', - 'ḻ' => 'Ḻ', - 'ḽ' => 'Ḽ', - 'ḿ' => 'Ḿ', - 'ṁ' => 'Ṁ', - 'ṃ' => 'Ṃ', - 'ṅ' => 'Ṅ', - 'ṇ' => 'Ṇ', - 'ṉ' => 'Ṉ', - 'ṋ' => 'Ṋ', - 'ṍ' => 'Ṍ', - 'ṏ' => 'Ṏ', - 'ṑ' => 'Ṑ', - 'ṓ' => 'Ṓ', - 'ṕ' => 'Ṕ', - 'ṗ' => 'Ṗ', - 'ṙ' => 'Ṙ', - 'ṛ' => 'Ṛ', - 'ṝ' => 'Ṝ', - 'ṟ' => 'Ṟ', - 'ṡ' => 'Ṡ', - 'ṣ' => 'Ṣ', - 'ṥ' => 'Ṥ', - 'ṧ' => 'Ṧ', - 'ṩ' => 'Ṩ', - 'ṫ' => 'Ṫ', - 'ṭ' => 'Ṭ', - 'ṯ' => 'Ṯ', - 'ṱ' => 'Ṱ', - 'ṳ' => 'Ṳ', - 'ṵ' => 'Ṵ', - 'ṷ' => 'Ṷ', - 'ṹ' => 'Ṹ', - 'ṻ' => 'Ṻ', - 'ṽ' => 'Ṽ', - 'ṿ' => 'Ṿ', - 'ẁ' => 'Ẁ', - 'ẃ' => 'Ẃ', - 'ẅ' => 'Ẅ', - 'ẇ' => 'Ẇ', - 'ẉ' => 'Ẉ', - 'ẋ' => 'Ẋ', - 'ẍ' => 'Ẍ', - 'ẏ' => 'Ẏ', - 'ẑ' => 'Ẑ', - 'ẓ' => 'Ẓ', - 'ẕ' => 'Ẕ', - 'ẛ' => 'Ṡ', - 'ạ' => 'Ạ', - 'ả' => 'Ả', - 'ấ' => 'Ấ', - 'ầ' => 'Ầ', - 'ẩ' => 'Ẩ', - 'ẫ' => 'Ẫ', - 'ậ' => 'Ậ', - 'ắ' => 'Ắ', - 'ằ' => 'Ằ', - 'ẳ' => 'Ẳ', - 'ẵ' => 'Ẵ', - 'ặ' => 'Ặ', - 'ẹ' => 'Ẹ', - 'ẻ' => 'Ẻ', - 'ẽ' => 'Ẽ', - 'ế' => 'Ế', - 'ề' => 'Ề', - 'ể' => 'Ể', - 'ễ' => 'Ễ', - 'ệ' => 'Ệ', - 'ỉ' => 'Ỉ', - 'ị' => 'Ị', - 'ọ' => 'Ọ', - 'ỏ' => 'Ỏ', - 'ố' => 'Ố', - 'ồ' => 'Ồ', - 'ổ' => 'Ổ', - 'ỗ' => 'Ỗ', - 'ộ' => 'Ộ', - 'ớ' => 'Ớ', - 'ờ' => 'Ờ', - 'ở' => 'Ở', - 'ỡ' => 'Ỡ', - 'ợ' => 'Ợ', - 'ụ' => 'Ụ', - 'ủ' => 'Ủ', - 'ứ' => 'Ứ', - 'ừ' => 'Ừ', - 'ử' => 'Ử', - 'ữ' => 'Ữ', - 'ự' => 'Ự', - 'ỳ' => 'Ỳ', - 'ỵ' => 'Ỵ', - 'ỷ' => 'Ỷ', - 'ỹ' => 'Ỹ', - 'ỻ' => 'Ỻ', - 'ỽ' => 'Ỽ', - 'ỿ' => 'Ỿ', - 'ἀ' => 'Ἀ', - 'ἁ' => 'Ἁ', - 'ἂ' => 'Ἂ', - 'ἃ' => 'Ἃ', - 'ἄ' => 'Ἄ', - 'ἅ' => 'Ἅ', - 'ἆ' => 'Ἆ', - 'ἇ' => 'Ἇ', - 'ἐ' => 'Ἐ', - 'ἑ' => 'Ἑ', - 'ἒ' => 'Ἒ', - 'ἓ' => 'Ἓ', - 'ἔ' => 'Ἔ', - 'ἕ' => 'Ἕ', - 'ἠ' => 'Ἠ', - 'ἡ' => 'Ἡ', - 'ἢ' => 'Ἢ', - 'ἣ' => 'Ἣ', - 'ἤ' => 'Ἤ', - 'ἥ' => 'Ἥ', - 'ἦ' => 'Ἦ', - 'ἧ' => 'Ἧ', - 'ἰ' => 'Ἰ', - 'ἱ' => 'Ἱ', - 'ἲ' => 'Ἲ', - 'ἳ' => 'Ἳ', - 'ἴ' => 'Ἴ', - 'ἵ' => 'Ἵ', - 'ἶ' => 'Ἶ', - 'ἷ' => 'Ἷ', - 'ὀ' => 'Ὀ', - 'ὁ' => 'Ὁ', - 'ὂ' => 'Ὂ', - 'ὃ' => 'Ὃ', - 'ὄ' => 'Ὄ', - 'ὅ' => 'Ὅ', - 'ὑ' => 'Ὑ', - 'ὓ' => 'Ὓ', - 'ὕ' => 'Ὕ', - 'ὗ' => 'Ὗ', - 'ὠ' => 'Ὠ', - 'ὡ' => 'Ὡ', - 'ὢ' => 'Ὢ', - 'ὣ' => 'Ὣ', - 'ὤ' => 'Ὤ', - 'ὥ' => 'Ὥ', - 'ὦ' => 'Ὦ', - 'ὧ' => 'Ὧ', - 'ὰ' => 'Ὰ', - 'ά' => 'Ά', - 'ὲ' => 'Ὲ', - 'έ' => 'Έ', - 'ὴ' => 'Ὴ', - 'ή' => 'Ή', - 'ὶ' => 'Ὶ', - 'ί' => 'Ί', - 'ὸ' => 'Ὸ', - 'ό' => 'Ό', - 'ὺ' => 'Ὺ', - 'ύ' => 'Ύ', - 'ὼ' => 'Ὼ', - 'ώ' => 'Ώ', - 'ᾀ' => 'ᾈ', - 'ᾁ' => 'ᾉ', - 'ᾂ' => 'ᾊ', - 'ᾃ' => 'ᾋ', - 'ᾄ' => 'ᾌ', - 'ᾅ' => 'ᾍ', - 'ᾆ' => 'ᾎ', - 'ᾇ' => 'ᾏ', - 'ᾐ' => 'ᾘ', - 'ᾑ' => 'ᾙ', - 'ᾒ' => 'ᾚ', - 'ᾓ' => 'ᾛ', - 'ᾔ' => 'ᾜ', - 'ᾕ' => 'ᾝ', - 'ᾖ' => 'ᾞ', - 'ᾗ' => 'ᾟ', - 'ᾠ' => 'ᾨ', - 'ᾡ' => 'ᾩ', - 'ᾢ' => 'ᾪ', - 'ᾣ' => 'ᾫ', - 'ᾤ' => 'ᾬ', - 'ᾥ' => 'ᾭ', - 'ᾦ' => 'ᾮ', - 'ᾧ' => 'ᾯ', - 'ᾰ' => 'Ᾰ', - 'ᾱ' => 'Ᾱ', - 'ᾳ' => 'ᾼ', - 'ι' => 'Ι', - 'ῃ' => 'ῌ', - 'ῐ' => 'Ῐ', - 'ῑ' => 'Ῑ', - 'ῠ' => 'Ῠ', - 'ῡ' => 'Ῡ', - 'ῥ' => 'Ῥ', - 'ῳ' => 'ῼ', - 'ⅎ' => 'Ⅎ', - 'ⅰ' => 'Ⅰ', - 'ⅱ' => 'Ⅱ', - 'ⅲ' => 'Ⅲ', - 'ⅳ' => 'Ⅳ', - 'ⅴ' => 'Ⅴ', - 'ⅵ' => 'Ⅵ', - 'ⅶ' => 'Ⅶ', - 'ⅷ' => 'Ⅷ', - 'ⅸ' => 'Ⅸ', - 'ⅹ' => 'Ⅹ', - 'ⅺ' => 'Ⅺ', - 'ⅻ' => 'Ⅻ', - 'ⅼ' => 'Ⅼ', - 'ⅽ' => 'Ⅽ', - 'ⅾ' => 'Ⅾ', - 'ⅿ' => 'Ⅿ', - 'ↄ' => 'Ↄ', - 'ⓐ' => 'Ⓐ', - 'ⓑ' => 'Ⓑ', - 'ⓒ' => 'Ⓒ', - 'ⓓ' => 'Ⓓ', - 'ⓔ' => 'Ⓔ', - 'ⓕ' => 'Ⓕ', - 'ⓖ' => 'Ⓖ', - 'ⓗ' => 'Ⓗ', - 'ⓘ' => 'Ⓘ', - 'ⓙ' => 'Ⓙ', - 'ⓚ' => 'Ⓚ', - 'ⓛ' => 'Ⓛ', - 'ⓜ' => 'Ⓜ', - 'ⓝ' => 'Ⓝ', - 'ⓞ' => 'Ⓞ', - 'ⓟ' => 'Ⓟ', - 'ⓠ' => 'Ⓠ', - 'ⓡ' => 'Ⓡ', - 'ⓢ' => 'Ⓢ', - 'ⓣ' => 'Ⓣ', - 'ⓤ' => 'Ⓤ', - 'ⓥ' => 'Ⓥ', - 'ⓦ' => 'Ⓦ', - 'ⓧ' => 'Ⓧ', - 'ⓨ' => 'Ⓨ', - 'ⓩ' => 'Ⓩ', - 'ⰰ' => 'Ⰰ', - 'ⰱ' => 'Ⰱ', - 'ⰲ' => 'Ⰲ', - 'ⰳ' => 'Ⰳ', - 'ⰴ' => 'Ⰴ', - 'ⰵ' => 'Ⰵ', - 'ⰶ' => 'Ⰶ', - 'ⰷ' => 'Ⰷ', - 'ⰸ' => 'Ⰸ', - 'ⰹ' => 'Ⰹ', - 'ⰺ' => 'Ⰺ', - 'ⰻ' => 'Ⰻ', - 'ⰼ' => 'Ⰼ', - 'ⰽ' => 'Ⰽ', - 'ⰾ' => 'Ⰾ', - 'ⰿ' => 'Ⰿ', - 'ⱀ' => 'Ⱀ', - 'ⱁ' => 'Ⱁ', - 'ⱂ' => 'Ⱂ', - 'ⱃ' => 'Ⱃ', - 'ⱄ' => 'Ⱄ', - 'ⱅ' => 'Ⱅ', - 'ⱆ' => 'Ⱆ', - 'ⱇ' => 'Ⱇ', - 'ⱈ' => 'Ⱈ', - 'ⱉ' => 'Ⱉ', - 'ⱊ' => 'Ⱊ', - 'ⱋ' => 'Ⱋ', - 'ⱌ' => 'Ⱌ', - 'ⱍ' => 'Ⱍ', - 'ⱎ' => 'Ⱎ', - 'ⱏ' => 'Ⱏ', - 'ⱐ' => 'Ⱐ', - 'ⱑ' => 'Ⱑ', - 'ⱒ' => 'Ⱒ', - 'ⱓ' => 'Ⱓ', - 'ⱔ' => 'Ⱔ', - 'ⱕ' => 'Ⱕ', - 'ⱖ' => 'Ⱖ', - 'ⱗ' => 'Ⱗ', - 'ⱘ' => 'Ⱘ', - 'ⱙ' => 'Ⱙ', - 'ⱚ' => 'Ⱚ', - 'ⱛ' => 'Ⱛ', - 'ⱜ' => 'Ⱜ', - 'ⱝ' => 'Ⱝ', - 'ⱞ' => 'Ⱞ', - 'ⱡ' => 'Ⱡ', - 'ⱥ' => 'Ⱥ', - 'ⱦ' => 'Ⱦ', - 'ⱨ' => 'Ⱨ', - 'ⱪ' => 'Ⱪ', - 'ⱬ' => 'Ⱬ', - 'ⱳ' => 'Ⱳ', - 'ⱶ' => 'Ⱶ', - 'ⲁ' => 'Ⲁ', - 'ⲃ' => 'Ⲃ', - 'ⲅ' => 'Ⲅ', - 'ⲇ' => 'Ⲇ', - 'ⲉ' => 'Ⲉ', - 'ⲋ' => 'Ⲋ', - 'ⲍ' => 'Ⲍ', - 'ⲏ' => 'Ⲏ', - 'ⲑ' => 'Ⲑ', - 'ⲓ' => 'Ⲓ', - 'ⲕ' => 'Ⲕ', - 'ⲗ' => 'Ⲗ', - 'ⲙ' => 'Ⲙ', - 'ⲛ' => 'Ⲛ', - 'ⲝ' => 'Ⲝ', - 'ⲟ' => 'Ⲟ', - 'ⲡ' => 'Ⲡ', - 'ⲣ' => 'Ⲣ', - 'ⲥ' => 'Ⲥ', - 'ⲧ' => 'Ⲧ', - 'ⲩ' => 'Ⲩ', - 'ⲫ' => 'Ⲫ', - 'ⲭ' => 'Ⲭ', - 'ⲯ' => 'Ⲯ', - 'ⲱ' => 'Ⲱ', - 'ⲳ' => 'Ⲳ', - 'ⲵ' => 'Ⲵ', - 'ⲷ' => 'Ⲷ', - 'ⲹ' => 'Ⲹ', - 'ⲻ' => 'Ⲻ', - 'ⲽ' => 'Ⲽ', - 'ⲿ' => 'Ⲿ', - 'ⳁ' => 'Ⳁ', - 'ⳃ' => 'Ⳃ', - 'ⳅ' => 'Ⳅ', - 'ⳇ' => 'Ⳇ', - 'ⳉ' => 'Ⳉ', - 'ⳋ' => 'Ⳋ', - 'ⳍ' => 'Ⳍ', - 'ⳏ' => 'Ⳏ', - 'ⳑ' => 'Ⳑ', - 'ⳓ' => 'Ⳓ', - 'ⳕ' => 'Ⳕ', - 'ⳗ' => 'Ⳗ', - 'ⳙ' => 'Ⳙ', - 'ⳛ' => 'Ⳛ', - 'ⳝ' => 'Ⳝ', - 'ⳟ' => 'Ⳟ', - 'ⳡ' => 'Ⳡ', - 'ⳣ' => 'Ⳣ', - 'ⳬ' => 'Ⳬ', - 'ⳮ' => 'Ⳮ', - 'ⳳ' => 'Ⳳ', - 'ⴀ' => 'Ⴀ', - 'ⴁ' => 'Ⴁ', - 'ⴂ' => 'Ⴂ', - 'ⴃ' => 'Ⴃ', - 'ⴄ' => 'Ⴄ', - 'ⴅ' => 'Ⴅ', - 'ⴆ' => 'Ⴆ', - 'ⴇ' => 'Ⴇ', - 'ⴈ' => 'Ⴈ', - 'ⴉ' => 'Ⴉ', - 'ⴊ' => 'Ⴊ', - 'ⴋ' => 'Ⴋ', - 'ⴌ' => 'Ⴌ', - 'ⴍ' => 'Ⴍ', - 'ⴎ' => 'Ⴎ', - 'ⴏ' => 'Ⴏ', - 'ⴐ' => 'Ⴐ', - 'ⴑ' => 'Ⴑ', - 'ⴒ' => 'Ⴒ', - 'ⴓ' => 'Ⴓ', - 'ⴔ' => 'Ⴔ', - 'ⴕ' => 'Ⴕ', - 'ⴖ' => 'Ⴖ', - 'ⴗ' => 'Ⴗ', - 'ⴘ' => 'Ⴘ', - 'ⴙ' => 'Ⴙ', - 'ⴚ' => 'Ⴚ', - 'ⴛ' => 'Ⴛ', - 'ⴜ' => 'Ⴜ', - 'ⴝ' => 'Ⴝ', - 'ⴞ' => 'Ⴞ', - 'ⴟ' => 'Ⴟ', - 'ⴠ' => 'Ⴠ', - 'ⴡ' => 'Ⴡ', - 'ⴢ' => 'Ⴢ', - 'ⴣ' => 'Ⴣ', - 'ⴤ' => 'Ⴤ', - 'ⴥ' => 'Ⴥ', - 'ⴧ' => 'Ⴧ', - 'ⴭ' => 'Ⴭ', - 'ꙁ' => 'Ꙁ', - 'ꙃ' => 'Ꙃ', - 'ꙅ' => 'Ꙅ', - 'ꙇ' => 'Ꙇ', - 'ꙉ' => 'Ꙉ', - 'ꙋ' => 'Ꙋ', - 'ꙍ' => 'Ꙍ', - 'ꙏ' => 'Ꙏ', - 'ꙑ' => 'Ꙑ', - 'ꙓ' => 'Ꙓ', - 'ꙕ' => 'Ꙕ', - 'ꙗ' => 'Ꙗ', - 'ꙙ' => 'Ꙙ', - 'ꙛ' => 'Ꙛ', - 'ꙝ' => 'Ꙝ', - 'ꙟ' => 'Ꙟ', - 'ꙡ' => 'Ꙡ', - 'ꙣ' => 'Ꙣ', - 'ꙥ' => 'Ꙥ', - 'ꙧ' => 'Ꙧ', - 'ꙩ' => 'Ꙩ', - 'ꙫ' => 'Ꙫ', - 'ꙭ' => 'Ꙭ', - 'ꚁ' => 'Ꚁ', - 'ꚃ' => 'Ꚃ', - 'ꚅ' => 'Ꚅ', - 'ꚇ' => 'Ꚇ', - 'ꚉ' => 'Ꚉ', - 'ꚋ' => 'Ꚋ', - 'ꚍ' => 'Ꚍ', - 'ꚏ' => 'Ꚏ', - 'ꚑ' => 'Ꚑ', - 'ꚓ' => 'Ꚓ', - 'ꚕ' => 'Ꚕ', - 'ꚗ' => 'Ꚗ', - 'ꚙ' => 'Ꚙ', - 'ꚛ' => 'Ꚛ', - 'ꜣ' => 'Ꜣ', - 'ꜥ' => 'Ꜥ', - 'ꜧ' => 'Ꜧ', - 'ꜩ' => 'Ꜩ', - 'ꜫ' => 'Ꜫ', - 'ꜭ' => 'Ꜭ', - 'ꜯ' => 'Ꜯ', - 'ꜳ' => 'Ꜳ', - 'ꜵ' => 'Ꜵ', - 'ꜷ' => 'Ꜷ', - 'ꜹ' => 'Ꜹ', - 'ꜻ' => 'Ꜻ', - 'ꜽ' => 'Ꜽ', - 'ꜿ' => 'Ꜿ', - 'ꝁ' => 'Ꝁ', - 'ꝃ' => 'Ꝃ', - 'ꝅ' => 'Ꝅ', - 'ꝇ' => 'Ꝇ', - 'ꝉ' => 'Ꝉ', - 'ꝋ' => 'Ꝋ', - 'ꝍ' => 'Ꝍ', - 'ꝏ' => 'Ꝏ', - 'ꝑ' => 'Ꝑ', - 'ꝓ' => 'Ꝓ', - 'ꝕ' => 'Ꝕ', - 'ꝗ' => 'Ꝗ', - 'ꝙ' => 'Ꝙ', - 'ꝛ' => 'Ꝛ', - 'ꝝ' => 'Ꝝ', - 'ꝟ' => 'Ꝟ', - 'ꝡ' => 'Ꝡ', - 'ꝣ' => 'Ꝣ', - 'ꝥ' => 'Ꝥ', - 'ꝧ' => 'Ꝧ', - 'ꝩ' => 'Ꝩ', - 'ꝫ' => 'Ꝫ', - 'ꝭ' => 'Ꝭ', - 'ꝯ' => 'Ꝯ', - 'ꝺ' => 'Ꝺ', - 'ꝼ' => 'Ꝼ', - 'ꝿ' => 'Ꝿ', - 'ꞁ' => 'Ꞁ', - 'ꞃ' => 'Ꞃ', - 'ꞅ' => 'Ꞅ', - 'ꞇ' => 'Ꞇ', - 'ꞌ' => 'Ꞌ', - 'ꞑ' => 'Ꞑ', - 'ꞓ' => 'Ꞓ', - 'ꞔ' => 'Ꞔ', - 'ꞗ' => 'Ꞗ', - 'ꞙ' => 'Ꞙ', - 'ꞛ' => 'Ꞛ', - 'ꞝ' => 'Ꞝ', - 'ꞟ' => 'Ꞟ', - 'ꞡ' => 'Ꞡ', - 'ꞣ' => 'Ꞣ', - 'ꞥ' => 'Ꞥ', - 'ꞧ' => 'Ꞧ', - 'ꞩ' => 'Ꞩ', - 'ꞵ' => 'Ꞵ', - 'ꞷ' => 'Ꞷ', - 'ꞹ' => 'Ꞹ', - 'ꞻ' => 'Ꞻ', - 'ꞽ' => 'Ꞽ', - 'ꞿ' => 'Ꞿ', - 'ꟃ' => 'Ꟃ', - 'ꟈ' => 'Ꟈ', - 'ꟊ' => 'Ꟊ', - 'ꟶ' => 'Ꟶ', - 'ꭓ' => 'Ꭓ', - 'ꭰ' => 'Ꭰ', - 'ꭱ' => 'Ꭱ', - 'ꭲ' => 'Ꭲ', - 'ꭳ' => 'Ꭳ', - 'ꭴ' => 'Ꭴ', - 'ꭵ' => 'Ꭵ', - 'ꭶ' => 'Ꭶ', - 'ꭷ' => 'Ꭷ', - 'ꭸ' => 'Ꭸ', - 'ꭹ' => 'Ꭹ', - 'ꭺ' => 'Ꭺ', - 'ꭻ' => 'Ꭻ', - 'ꭼ' => 'Ꭼ', - 'ꭽ' => 'Ꭽ', - 'ꭾ' => 'Ꭾ', - 'ꭿ' => 'Ꭿ', - 'ꮀ' => 'Ꮀ', - 'ꮁ' => 'Ꮁ', - 'ꮂ' => 'Ꮂ', - 'ꮃ' => 'Ꮃ', - 'ꮄ' => 'Ꮄ', - 'ꮅ' => 'Ꮅ', - 'ꮆ' => 'Ꮆ', - 'ꮇ' => 'Ꮇ', - 'ꮈ' => 'Ꮈ', - 'ꮉ' => 'Ꮉ', - 'ꮊ' => 'Ꮊ', - 'ꮋ' => 'Ꮋ', - 'ꮌ' => 'Ꮌ', - 'ꮍ' => 'Ꮍ', - 'ꮎ' => 'Ꮎ', - 'ꮏ' => 'Ꮏ', - 'ꮐ' => 'Ꮐ', - 'ꮑ' => 'Ꮑ', - 'ꮒ' => 'Ꮒ', - 'ꮓ' => 'Ꮓ', - 'ꮔ' => 'Ꮔ', - 'ꮕ' => 'Ꮕ', - 'ꮖ' => 'Ꮖ', - 'ꮗ' => 'Ꮗ', - 'ꮘ' => 'Ꮘ', - 'ꮙ' => 'Ꮙ', - 'ꮚ' => 'Ꮚ', - 'ꮛ' => 'Ꮛ', - 'ꮜ' => 'Ꮜ', - 'ꮝ' => 'Ꮝ', - 'ꮞ' => 'Ꮞ', - 'ꮟ' => 'Ꮟ', - 'ꮠ' => 'Ꮠ', - 'ꮡ' => 'Ꮡ', - 'ꮢ' => 'Ꮢ', - 'ꮣ' => 'Ꮣ', - 'ꮤ' => 'Ꮤ', - 'ꮥ' => 'Ꮥ', - 'ꮦ' => 'Ꮦ', - 'ꮧ' => 'Ꮧ', - 'ꮨ' => 'Ꮨ', - 'ꮩ' => 'Ꮩ', - 'ꮪ' => 'Ꮪ', - 'ꮫ' => 'Ꮫ', - 'ꮬ' => 'Ꮬ', - 'ꮭ' => 'Ꮭ', - 'ꮮ' => 'Ꮮ', - 'ꮯ' => 'Ꮯ', - 'ꮰ' => 'Ꮰ', - 'ꮱ' => 'Ꮱ', - 'ꮲ' => 'Ꮲ', - 'ꮳ' => 'Ꮳ', - 'ꮴ' => 'Ꮴ', - 'ꮵ' => 'Ꮵ', - 'ꮶ' => 'Ꮶ', - 'ꮷ' => 'Ꮷ', - 'ꮸ' => 'Ꮸ', - 'ꮹ' => 'Ꮹ', - 'ꮺ' => 'Ꮺ', - 'ꮻ' => 'Ꮻ', - 'ꮼ' => 'Ꮼ', - 'ꮽ' => 'Ꮽ', - 'ꮾ' => 'Ꮾ', - 'ꮿ' => 'Ꮿ', - 'a' => 'A', - 'b' => 'B', - 'c' => 'C', - 'd' => 'D', - 'e' => 'E', - 'f' => 'F', - 'g' => 'G', - 'h' => 'H', - 'i' => 'I', - 'j' => 'J', - 'k' => 'K', - 'l' => 'L', - 'm' => 'M', - 'n' => 'N', - 'o' => 'O', - 'p' => 'P', - 'q' => 'Q', - 'r' => 'R', - 's' => 'S', - 't' => 'T', - 'u' => 'U', - 'v' => 'V', - 'w' => 'W', - 'x' => 'X', - 'y' => 'Y', - 'z' => 'Z', - '𐐨' => '𐐀', - '𐐩' => '𐐁', - '𐐪' => '𐐂', - '𐐫' => '𐐃', - '𐐬' => '𐐄', - '𐐭' => '𐐅', - '𐐮' => '𐐆', - '𐐯' => '𐐇', - '𐐰' => '𐐈', - '𐐱' => '𐐉', - '𐐲' => '𐐊', - '𐐳' => '𐐋', - '𐐴' => '𐐌', - '𐐵' => '𐐍', - '𐐶' => '𐐎', - '𐐷' => '𐐏', - '𐐸' => '𐐐', - '𐐹' => '𐐑', - '𐐺' => '𐐒', - '𐐻' => '𐐓', - '𐐼' => '𐐔', - '𐐽' => '𐐕', - '𐐾' => '𐐖', - '𐐿' => '𐐗', - '𐑀' => '𐐘', - '𐑁' => '𐐙', - '𐑂' => '𐐚', - '𐑃' => '𐐛', - '𐑄' => '𐐜', - '𐑅' => '𐐝', - '𐑆' => '𐐞', - '𐑇' => '𐐟', - '𐑈' => '𐐠', - '𐑉' => '𐐡', - '𐑊' => '𐐢', - '𐑋' => '𐐣', - '𐑌' => '𐐤', - '𐑍' => '𐐥', - '𐑎' => '𐐦', - '𐑏' => '𐐧', - '𐓘' => '𐒰', - '𐓙' => '𐒱', - '𐓚' => '𐒲', - '𐓛' => '𐒳', - '𐓜' => '𐒴', - '𐓝' => '𐒵', - '𐓞' => '𐒶', - '𐓟' => '𐒷', - '𐓠' => '𐒸', - '𐓡' => '𐒹', - '𐓢' => '𐒺', - '𐓣' => '𐒻', - '𐓤' => '𐒼', - '𐓥' => '𐒽', - '𐓦' => '𐒾', - '𐓧' => '𐒿', - '𐓨' => '𐓀', - '𐓩' => '𐓁', - '𐓪' => '𐓂', - '𐓫' => '𐓃', - '𐓬' => '𐓄', - '𐓭' => '𐓅', - '𐓮' => '𐓆', - '𐓯' => '𐓇', - '𐓰' => '𐓈', - '𐓱' => '𐓉', - '𐓲' => '𐓊', - '𐓳' => '𐓋', - '𐓴' => '𐓌', - '𐓵' => '𐓍', - '𐓶' => '𐓎', - '𐓷' => '𐓏', - '𐓸' => '𐓐', - '𐓹' => '𐓑', - '𐓺' => '𐓒', - '𐓻' => '𐓓', - '𐳀' => '𐲀', - '𐳁' => '𐲁', - '𐳂' => '𐲂', - '𐳃' => '𐲃', - '𐳄' => '𐲄', - '𐳅' => '𐲅', - '𐳆' => '𐲆', - '𐳇' => '𐲇', - '𐳈' => '𐲈', - '𐳉' => '𐲉', - '𐳊' => '𐲊', - '𐳋' => '𐲋', - '𐳌' => '𐲌', - '𐳍' => '𐲍', - '𐳎' => '𐲎', - '𐳏' => '𐲏', - '𐳐' => '𐲐', - '𐳑' => '𐲑', - '𐳒' => '𐲒', - '𐳓' => '𐲓', - '𐳔' => '𐲔', - '𐳕' => '𐲕', - '𐳖' => '𐲖', - '𐳗' => '𐲗', - '𐳘' => '𐲘', - '𐳙' => '𐲙', - '𐳚' => '𐲚', - '𐳛' => '𐲛', - '𐳜' => '𐲜', - '𐳝' => '𐲝', - '𐳞' => '𐲞', - '𐳟' => '𐲟', - '𐳠' => '𐲠', - '𐳡' => '𐲡', - '𐳢' => '𐲢', - '𐳣' => '𐲣', - '𐳤' => '𐲤', - '𐳥' => '𐲥', - '𐳦' => '𐲦', - '𐳧' => '𐲧', - '𐳨' => '𐲨', - '𐳩' => '𐲩', - '𐳪' => '𐲪', - '𐳫' => '𐲫', - '𐳬' => '𐲬', - '𐳭' => '𐲭', - '𐳮' => '𐲮', - '𐳯' => '𐲯', - '𐳰' => '𐲰', - '𐳱' => '𐲱', - '𐳲' => '𐲲', - '𑣀' => '𑢠', - '𑣁' => '𑢡', - '𑣂' => '𑢢', - '𑣃' => '𑢣', - '𑣄' => '𑢤', - '𑣅' => '𑢥', - '𑣆' => '𑢦', - '𑣇' => '𑢧', - '𑣈' => '𑢨', - '𑣉' => '𑢩', - '𑣊' => '𑢪', - '𑣋' => '𑢫', - '𑣌' => '𑢬', - '𑣍' => '𑢭', - '𑣎' => '𑢮', - '𑣏' => '𑢯', - '𑣐' => '𑢰', - '𑣑' => '𑢱', - '𑣒' => '𑢲', - '𑣓' => '𑢳', - '𑣔' => '𑢴', - '𑣕' => '𑢵', - '𑣖' => '𑢶', - '𑣗' => '𑢷', - '𑣘' => '𑢸', - '𑣙' => '𑢹', - '𑣚' => '𑢺', - '𑣛' => '𑢻', - '𑣜' => '𑢼', - '𑣝' => '𑢽', - '𑣞' => '𑢾', - '𑣟' => '𑢿', - '𖹠' => '𖹀', - '𖹡' => '𖹁', - '𖹢' => '𖹂', - '𖹣' => '𖹃', - '𖹤' => '𖹄', - '𖹥' => '𖹅', - '𖹦' => '𖹆', - '𖹧' => '𖹇', - '𖹨' => '𖹈', - '𖹩' => '𖹉', - '𖹪' => '𖹊', - '𖹫' => '𖹋', - '𖹬' => '𖹌', - '𖹭' => '𖹍', - '𖹮' => '𖹎', - '𖹯' => '𖹏', - '𖹰' => '𖹐', - '𖹱' => '𖹑', - '𖹲' => '𖹒', - '𖹳' => '𖹓', - '𖹴' => '𖹔', - '𖹵' => '𖹕', - '𖹶' => '𖹖', - '𖹷' => '𖹗', - '𖹸' => '𖹘', - '𖹹' => '𖹙', - '𖹺' => '𖹚', - '𖹻' => '𖹛', - '𖹼' => '𖹜', - '𖹽' => '𖹝', - '𖹾' => '𖹞', - '𖹿' => '𖹟', - '𞤢' => '𞤀', - '𞤣' => '𞤁', - '𞤤' => '𞤂', - '𞤥' => '𞤃', - '𞤦' => '𞤄', - '𞤧' => '𞤅', - '𞤨' => '𞤆', - '𞤩' => '𞤇', - '𞤪' => '𞤈', - '𞤫' => '𞤉', - '𞤬' => '𞤊', - '𞤭' => '𞤋', - '𞤮' => '𞤌', - '𞤯' => '𞤍', - '𞤰' => '𞤎', - '𞤱' => '𞤏', - '𞤲' => '𞤐', - '𞤳' => '𞤑', - '𞤴' => '𞤒', - '𞤵' => '𞤓', - '𞤶' => '𞤔', - '𞤷' => '𞤕', - '𞤸' => '𞤖', - '𞤹' => '𞤗', - '𞤺' => '𞤘', - '𞤻' => '𞤙', - '𞤼' => '𞤚', - '𞤽' => '𞤛', - '𞤾' => '𞤜', - '𞤿' => '𞤝', - '𞥀' => '𞤞', - '𞥁' => '𞤟', - '𞥂' => '𞤠', - '𞥃' => '𞤡', -); diff --git a/wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-php72/Php72.php b/wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-php72/Php72.php deleted file mode 100644 index 9b3edc7..0000000 --- a/wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-php72/Php72.php +++ /dev/null @@ -1,217 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Polyfill\Php72; - -/** - * @author Nicolas Grekas - * @author Dariusz Rumiński - * - * @internal - */ -final class Php72 -{ - private static $hashMask; - - public static function utf8_encode($s) - { - $s .= $s; - $len = \strlen($s); - - for ($i = $len >> 1, $j = 0; $i < $len; ++$i, ++$j) { - switch (true) { - case $s[$i] < "\x80": $s[$j] = $s[$i]; break; - case $s[$i] < "\xC0": $s[$j] = "\xC2"; $s[++$j] = $s[$i]; break; - default: $s[$j] = "\xC3"; $s[++$j] = \chr(\ord($s[$i]) - 64); break; - } - } - - return substr($s, 0, $j); - } - - public static function utf8_decode($s) - { - $s = (string) $s; - $len = \strlen($s); - - for ($i = 0, $j = 0; $i < $len; ++$i, ++$j) { - switch ($s[$i] & "\xF0") { - case "\xC0": - case "\xD0": - $c = (\ord($s[$i] & "\x1F") << 6) | \ord($s[++$i] & "\x3F"); - $s[$j] = $c < 256 ? \chr($c) : '?'; - break; - - case "\xF0": - ++$i; - // no break - - case "\xE0": - $s[$j] = '?'; - $i += 2; - break; - - default: - $s[$j] = $s[$i]; - } - } - - return substr($s, 0, $j); - } - - public static function php_os_family() - { - if ('\\' === \DIRECTORY_SEPARATOR) { - return 'Windows'; - } - - $map = array( - 'Darwin' => 'Darwin', - 'DragonFly' => 'BSD', - 'FreeBSD' => 'BSD', - 'NetBSD' => 'BSD', - 'OpenBSD' => 'BSD', - 'Linux' => 'Linux', - 'SunOS' => 'Solaris', - ); - - return isset($map[PHP_OS]) ? $map[PHP_OS] : 'Unknown'; - } - - public static function spl_object_id($object) - { - if (null === self::$hashMask) { - self::initHashMask(); - } - if (null === $hash = spl_object_hash($object)) { - return; - } - - // On 32-bit systems, PHP_INT_SIZE is 4, - return self::$hashMask ^ hexdec(substr($hash, 16 - (\PHP_INT_SIZE * 2 - 1), (\PHP_INT_SIZE * 2 - 1))); - } - - public static function sapi_windows_vt100_support($stream, $enable = null) - { - if (!\is_resource($stream)) { - trigger_error('sapi_windows_vt100_support() expects parameter 1 to be resource, '.\gettype($stream).' given', E_USER_WARNING); - - return false; - } - - $meta = stream_get_meta_data($stream); - - if ('STDIO' !== $meta['stream_type']) { - trigger_error('sapi_windows_vt100_support() was not able to analyze the specified stream', E_USER_WARNING); - - return false; - } - - // We cannot actually disable vt100 support if it is set - if (false === $enable || !self::stream_isatty($stream)) { - return false; - } - - // The native function does not apply to stdin - $meta = array_map('strtolower', $meta); - $stdin = 'php://stdin' === $meta['uri'] || 'php://fd/0' === $meta['uri']; - - return !$stdin - && (false !== getenv('ANSICON') - || 'ON' === getenv('ConEmuANSI') - || 'xterm' === getenv('TERM') - || 'Hyper' === getenv('TERM_PROGRAM')); - } - - public static function stream_isatty($stream) - { - if (!\is_resource($stream)) { - trigger_error('stream_isatty() expects parameter 1 to be resource, '.\gettype($stream).' given', E_USER_WARNING); - - return false; - } - - if ('\\' === \DIRECTORY_SEPARATOR) { - $stat = @fstat($stream); - // Check if formatted mode is S_IFCHR - return $stat ? 0020000 === ($stat['mode'] & 0170000) : false; - } - - return \function_exists('posix_isatty') && @posix_isatty($stream); - } - - private static function initHashMask() - { - $obj = (object) array(); - self::$hashMask = -1; - - // check if we are nested in an output buffering handler to prevent a fatal error with ob_start() below - $obFuncs = array('ob_clean', 'ob_end_clean', 'ob_flush', 'ob_end_flush', 'ob_get_contents', 'ob_get_flush'); - foreach (debug_backtrace(\PHP_VERSION_ID >= 50400 ? DEBUG_BACKTRACE_IGNORE_ARGS : false) as $frame) { - if (isset($frame['function'][0]) && !isset($frame['class']) && 'o' === $frame['function'][0] && \in_array($frame['function'], $obFuncs)) { - $frame['line'] = 0; - break; - } - } - if (!empty($frame['line'])) { - ob_start(); - debug_zval_dump($obj); - self::$hashMask = (int) substr(ob_get_clean(), 17); - } - - self::$hashMask ^= hexdec(substr(spl_object_hash($obj), 16 - (\PHP_INT_SIZE * 2 - 1), (\PHP_INT_SIZE * 2 - 1))); - } - - public static function mb_chr($code, $encoding = null) - { - if (0x80 > $code %= 0x200000) { - $s = \chr($code); - } elseif (0x800 > $code) { - $s = \chr(0xC0 | $code >> 6).\chr(0x80 | $code & 0x3F); - } elseif (0x10000 > $code) { - $s = \chr(0xE0 | $code >> 12).\chr(0x80 | $code >> 6 & 0x3F).\chr(0x80 | $code & 0x3F); - } else { - $s = \chr(0xF0 | $code >> 18).\chr(0x80 | $code >> 12 & 0x3F).\chr(0x80 | $code >> 6 & 0x3F).\chr(0x80 | $code & 0x3F); - } - - if ('UTF-8' !== $encoding) { - $s = mb_convert_encoding($s, $encoding, 'UTF-8'); - } - - return $s; - } - - public static function mb_ord($s, $encoding = null) - { - if (null == $encoding) { - $s = mb_convert_encoding($s, 'UTF-8'); - } elseif ('UTF-8' !== $encoding) { - $s = mb_convert_encoding($s, 'UTF-8', $encoding); - } - - if (1 === \strlen($s)) { - return \ord($s); - } - - $code = ($s = unpack('C*', substr($s, 0, 4))) ? $s[1] : 0; - if (0xF0 <= $code) { - return (($code - 0xF0) << 18) + (($s[2] - 0x80) << 12) + (($s[3] - 0x80) << 6) + $s[4] - 0x80; - } - if (0xE0 <= $code) { - return (($code - 0xE0) << 12) + (($s[2] - 0x80) << 6) + $s[3] - 0x80; - } - if (0xC0 <= $code) { - return (($code - 0xC0) << 6) + $s[2] - 0x80; - } - - return $code; - } -} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail.php new file mode 100644 index 0000000..9104fa8 --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail.php @@ -0,0 +1,105 @@ + + * The Gmail API lets you view and manage Gmail mailbox data like threads, + * messages, and labels.

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Google_Service_Gmail extends \WPMailSMTP\Vendor\Google_Service +{ + /** Read, compose, send, and permanently delete all your email from Gmail. */ + const MAIL_GOOGLE_COM = "https://mail.google.com/"; + /** Manage drafts and send emails when you interact with the add-on. */ + const GMAIL_ADDONS_CURRENT_ACTION_COMPOSE = "https://www.googleapis.com/auth/gmail.addons.current.action.compose"; + /** View your email messages when you interact with the add-on. */ + const GMAIL_ADDONS_CURRENT_MESSAGE_ACTION = "https://www.googleapis.com/auth/gmail.addons.current.message.action"; + /** View your email message metadata when the add-on is running. */ + const GMAIL_ADDONS_CURRENT_MESSAGE_METADATA = "https://www.googleapis.com/auth/gmail.addons.current.message.metadata"; + /** View your email messages when the add-on is running. */ + const GMAIL_ADDONS_CURRENT_MESSAGE_READONLY = "https://www.googleapis.com/auth/gmail.addons.current.message.readonly"; + /** Manage drafts and send emails. */ + const GMAIL_COMPOSE = "https://www.googleapis.com/auth/gmail.compose"; + /** Insert mail into your mailbox. */ + const GMAIL_INSERT = "https://www.googleapis.com/auth/gmail.insert"; + /** Manage mailbox labels. */ + const GMAIL_LABELS = "https://www.googleapis.com/auth/gmail.labels"; + /** View your email message metadata such as labels and headers, but not the email body. */ + const GMAIL_METADATA = "https://www.googleapis.com/auth/gmail.metadata"; + /** View and modify but not delete your email. */ + const GMAIL_MODIFY = "https://www.googleapis.com/auth/gmail.modify"; + /** View your email messages and settings. */ + const GMAIL_READONLY = "https://www.googleapis.com/auth/gmail.readonly"; + /** Send email on your behalf. */ + const GMAIL_SEND = "https://www.googleapis.com/auth/gmail.send"; + /** Manage your basic mail settings. */ + const GMAIL_SETTINGS_BASIC = "https://www.googleapis.com/auth/gmail.settings.basic"; + /** Manage your sensitive mail settings, including who can manage your mail. */ + const GMAIL_SETTINGS_SHARING = "https://www.googleapis.com/auth/gmail.settings.sharing"; + public $users; + public $users_drafts; + public $users_history; + public $users_labels; + public $users_messages; + public $users_messages_attachments; + public $users_settings; + public $users_settings_delegates; + public $users_settings_filters; + public $users_settings_forwardingAddresses; + public $users_settings_sendAs; + public $users_settings_sendAs_smimeInfo; + public $users_threads; + /** + * Constructs the internal representation of the Gmail service. + * + * @param Google_Client $client The client used to deliver requests. + * @param string $rootUrl The root URL used for requests to the service. + */ + public function __construct(\WPMailSMTP\Vendor\Google_Client $client, $rootUrl = null) + { + parent::__construct($client); + $this->rootUrl = $rootUrl ?: 'https://gmail.googleapis.com/'; + $this->servicePath = ''; + $this->batchPath = 'batch'; + $this->version = 'v1'; + $this->serviceName = 'gmail'; + $this->users = new \WPMailSMTP\Vendor\Google_Service_Gmail_Resource_Users($this, $this->serviceName, 'users', array('methods' => array('getProfile' => array('path' => 'gmail/v1/users/{userId}/profile', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'stop' => array('path' => 'gmail/v1/users/{userId}/stop', 'httpMethod' => 'POST', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'watch' => array('path' => 'gmail/v1/users/{userId}/watch', 'httpMethod' => 'POST', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true)))))); + $this->users_drafts = new \WPMailSMTP\Vendor\Google_Service_Gmail_Resource_UsersDrafts($this, $this->serviceName, 'drafts', array('methods' => array('create' => array('path' => 'gmail/v1/users/{userId}/drafts', 'httpMethod' => 'POST', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'delete' => array('path' => 'gmail/v1/users/{userId}/drafts/{id}', 'httpMethod' => 'DELETE', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'id' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'get' => array('path' => 'gmail/v1/users/{userId}/drafts/{id}', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'id' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'format' => array('location' => 'query', 'type' => 'string'))), 'list' => array('path' => 'gmail/v1/users/{userId}/drafts', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'q' => array('location' => 'query', 'type' => 'string'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'includeSpamTrash' => array('location' => 'query', 'type' => 'boolean'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))), 'send' => array('path' => 'gmail/v1/users/{userId}/drafts/send', 'httpMethod' => 'POST', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'update' => array('path' => 'gmail/v1/users/{userId}/drafts/{id}', 'httpMethod' => 'PUT', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'id' => array('location' => 'path', 'type' => 'string', 'required' => \true)))))); + $this->users_history = new \WPMailSMTP\Vendor\Google_Service_Gmail_Resource_UsersHistory($this, $this->serviceName, 'history', array('methods' => array('list' => array('path' => 'gmail/v1/users/{userId}/history', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'labelId' => array('location' => 'query', 'type' => 'string'), 'historyTypes' => array('location' => 'query', 'type' => 'string', 'repeated' => \true), 'startHistoryId' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'pageToken' => array('location' => 'query', 'type' => 'string')))))); + $this->users_labels = new \WPMailSMTP\Vendor\Google_Service_Gmail_Resource_UsersLabels($this, $this->serviceName, 'labels', array('methods' => array('create' => array('path' => 'gmail/v1/users/{userId}/labels', 'httpMethod' => 'POST', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'delete' => array('path' => 'gmail/v1/users/{userId}/labels/{id}', 'httpMethod' => 'DELETE', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'id' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'get' => array('path' => 'gmail/v1/users/{userId}/labels/{id}', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'id' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'list' => array('path' => 'gmail/v1/users/{userId}/labels', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'patch' => array('path' => 'gmail/v1/users/{userId}/labels/{id}', 'httpMethod' => 'PATCH', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'id' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'update' => array('path' => 'gmail/v1/users/{userId}/labels/{id}', 'httpMethod' => 'PUT', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'id' => array('location' => 'path', 'type' => 'string', 'required' => \true)))))); + $this->users_messages = new \WPMailSMTP\Vendor\Google_Service_Gmail_Resource_UsersMessages($this, $this->serviceName, 'messages', array('methods' => array('batchDelete' => array('path' => 'gmail/v1/users/{userId}/messages/batchDelete', 'httpMethod' => 'POST', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'batchModify' => array('path' => 'gmail/v1/users/{userId}/messages/batchModify', 'httpMethod' => 'POST', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'delete' => array('path' => 'gmail/v1/users/{userId}/messages/{id}', 'httpMethod' => 'DELETE', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'id' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'get' => array('path' => 'gmail/v1/users/{userId}/messages/{id}', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'id' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'metadataHeaders' => array('location' => 'query', 'type' => 'string', 'repeated' => \true), 'format' => array('location' => 'query', 'type' => 'string'))), 'import' => array('path' => 'gmail/v1/users/{userId}/messages/import', 'httpMethod' => 'POST', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'neverMarkSpam' => array('location' => 'query', 'type' => 'boolean'), 'processForCalendar' => array('location' => 'query', 'type' => 'boolean'), 'deleted' => array('location' => 'query', 'type' => 'boolean'), 'internalDateSource' => array('location' => 'query', 'type' => 'string'))), 'insert' => array('path' => 'gmail/v1/users/{userId}/messages', 'httpMethod' => 'POST', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'deleted' => array('location' => 'query', 'type' => 'boolean'), 'internalDateSource' => array('location' => 'query', 'type' => 'string'))), 'list' => array('path' => 'gmail/v1/users/{userId}/messages', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'q' => array('location' => 'query', 'type' => 'string'), 'includeSpamTrash' => array('location' => 'query', 'type' => 'boolean'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'labelIds' => array('location' => 'query', 'type' => 'string', 'repeated' => \true), 'pageToken' => array('location' => 'query', 'type' => 'string'))), 'modify' => array('path' => 'gmail/v1/users/{userId}/messages/{id}/modify', 'httpMethod' => 'POST', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'id' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'send' => array('path' => 'gmail/v1/users/{userId}/messages/send', 'httpMethod' => 'POST', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'trash' => array('path' => 'gmail/v1/users/{userId}/messages/{id}/trash', 'httpMethod' => 'POST', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'id' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'untrash' => array('path' => 'gmail/v1/users/{userId}/messages/{id}/untrash', 'httpMethod' => 'POST', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'id' => array('location' => 'path', 'type' => 'string', 'required' => \true)))))); + $this->users_messages_attachments = new \WPMailSMTP\Vendor\Google_Service_Gmail_Resource_UsersMessagesAttachments($this, $this->serviceName, 'attachments', array('methods' => array('get' => array('path' => 'gmail/v1/users/{userId}/messages/{messageId}/attachments/{id}', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'messageId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'id' => array('location' => 'path', 'type' => 'string', 'required' => \true)))))); + $this->users_settings = new \WPMailSMTP\Vendor\Google_Service_Gmail_Resource_UsersSettings($this, $this->serviceName, 'settings', array('methods' => array('getAutoForwarding' => array('path' => 'gmail/v1/users/{userId}/settings/autoForwarding', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'getImap' => array('path' => 'gmail/v1/users/{userId}/settings/imap', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'getLanguage' => array('path' => 'gmail/v1/users/{userId}/settings/language', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'getPop' => array('path' => 'gmail/v1/users/{userId}/settings/pop', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'getVacation' => array('path' => 'gmail/v1/users/{userId}/settings/vacation', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'updateAutoForwarding' => array('path' => 'gmail/v1/users/{userId}/settings/autoForwarding', 'httpMethod' => 'PUT', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'updateImap' => array('path' => 'gmail/v1/users/{userId}/settings/imap', 'httpMethod' => 'PUT', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'updateLanguage' => array('path' => 'gmail/v1/users/{userId}/settings/language', 'httpMethod' => 'PUT', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'updatePop' => array('path' => 'gmail/v1/users/{userId}/settings/pop', 'httpMethod' => 'PUT', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'updateVacation' => array('path' => 'gmail/v1/users/{userId}/settings/vacation', 'httpMethod' => 'PUT', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true)))))); + $this->users_settings_delegates = new \WPMailSMTP\Vendor\Google_Service_Gmail_Resource_UsersSettingsDelegates($this, $this->serviceName, 'delegates', array('methods' => array('create' => array('path' => 'gmail/v1/users/{userId}/settings/delegates', 'httpMethod' => 'POST', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'delete' => array('path' => 'gmail/v1/users/{userId}/settings/delegates/{delegateEmail}', 'httpMethod' => 'DELETE', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'delegateEmail' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'get' => array('path' => 'gmail/v1/users/{userId}/settings/delegates/{delegateEmail}', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'delegateEmail' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'list' => array('path' => 'gmail/v1/users/{userId}/settings/delegates', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true)))))); + $this->users_settings_filters = new \WPMailSMTP\Vendor\Google_Service_Gmail_Resource_UsersSettingsFilters($this, $this->serviceName, 'filters', array('methods' => array('create' => array('path' => 'gmail/v1/users/{userId}/settings/filters', 'httpMethod' => 'POST', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'delete' => array('path' => 'gmail/v1/users/{userId}/settings/filters/{id}', 'httpMethod' => 'DELETE', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'id' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'get' => array('path' => 'gmail/v1/users/{userId}/settings/filters/{id}', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'id' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'list' => array('path' => 'gmail/v1/users/{userId}/settings/filters', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true)))))); + $this->users_settings_forwardingAddresses = new \WPMailSMTP\Vendor\Google_Service_Gmail_Resource_UsersSettingsForwardingAddresses($this, $this->serviceName, 'forwardingAddresses', array('methods' => array('create' => array('path' => 'gmail/v1/users/{userId}/settings/forwardingAddresses', 'httpMethod' => 'POST', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'delete' => array('path' => 'gmail/v1/users/{userId}/settings/forwardingAddresses/{forwardingEmail}', 'httpMethod' => 'DELETE', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'forwardingEmail' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'get' => array('path' => 'gmail/v1/users/{userId}/settings/forwardingAddresses/{forwardingEmail}', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'forwardingEmail' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'list' => array('path' => 'gmail/v1/users/{userId}/settings/forwardingAddresses', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true)))))); + $this->users_settings_sendAs = new \WPMailSMTP\Vendor\Google_Service_Gmail_Resource_UsersSettingsSendAs($this, $this->serviceName, 'sendAs', array('methods' => array('create' => array('path' => 'gmail/v1/users/{userId}/settings/sendAs', 'httpMethod' => 'POST', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'delete' => array('path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}', 'httpMethod' => 'DELETE', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'sendAsEmail' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'get' => array('path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'sendAsEmail' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'list' => array('path' => 'gmail/v1/users/{userId}/settings/sendAs', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'patch' => array('path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}', 'httpMethod' => 'PATCH', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'sendAsEmail' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'update' => array('path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}', 'httpMethod' => 'PUT', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'sendAsEmail' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'verify' => array('path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/verify', 'httpMethod' => 'POST', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'sendAsEmail' => array('location' => 'path', 'type' => 'string', 'required' => \true)))))); + $this->users_settings_sendAs_smimeInfo = new \WPMailSMTP\Vendor\Google_Service_Gmail_Resource_UsersSettingsSendAsSmimeInfo($this, $this->serviceName, 'smimeInfo', array('methods' => array('delete' => array('path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}', 'httpMethod' => 'DELETE', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'sendAsEmail' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'id' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'get' => array('path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'sendAsEmail' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'id' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'insert' => array('path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo', 'httpMethod' => 'POST', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'sendAsEmail' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'list' => array('path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'sendAsEmail' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'setDefault' => array('path' => 'gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}/setDefault', 'httpMethod' => 'POST', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'sendAsEmail' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'id' => array('location' => 'path', 'type' => 'string', 'required' => \true)))))); + $this->users_threads = new \WPMailSMTP\Vendor\Google_Service_Gmail_Resource_UsersThreads($this, $this->serviceName, 'threads', array('methods' => array('delete' => array('path' => 'gmail/v1/users/{userId}/threads/{id}', 'httpMethod' => 'DELETE', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'id' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'get' => array('path' => 'gmail/v1/users/{userId}/threads/{id}', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'id' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'metadataHeaders' => array('location' => 'query', 'type' => 'string', 'repeated' => \true), 'format' => array('location' => 'query', 'type' => 'string'))), 'list' => array('path' => 'gmail/v1/users/{userId}/threads', 'httpMethod' => 'GET', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'q' => array('location' => 'query', 'type' => 'string'), 'labelIds' => array('location' => 'query', 'type' => 'string', 'repeated' => \true), 'includeSpamTrash' => array('location' => 'query', 'type' => 'boolean'))), 'modify' => array('path' => 'gmail/v1/users/{userId}/threads/{id}/modify', 'httpMethod' => 'POST', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'id' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'trash' => array('path' => 'gmail/v1/users/{userId}/threads/{id}/trash', 'httpMethod' => 'POST', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'id' => array('location' => 'path', 'type' => 'string', 'required' => \true))), 'untrash' => array('path' => 'gmail/v1/users/{userId}/threads/{id}/untrash', 'httpMethod' => 'POST', 'parameters' => array('userId' => array('location' => 'path', 'type' => 'string', 'required' => \true), 'id' => array('location' => 'path', 'type' => 'string', 'required' => \true)))))); + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/AutoForwarding.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/AutoForwarding.php new file mode 100644 index 0000000..0a1ff75 --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/AutoForwarding.php @@ -0,0 +1,49 @@ +disposition = $disposition; + } + public function getDisposition() + { + return $this->disposition; + } + public function setEmailAddress($emailAddress) + { + $this->emailAddress = $emailAddress; + } + public function getEmailAddress() + { + return $this->emailAddress; + } + public function setEnabled($enabled) + { + $this->enabled = $enabled; + } + public function getEnabled() + { + return $this->enabled; + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/BatchDeleteMessagesRequest.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/BatchDeleteMessagesRequest.php similarity index 65% rename from wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/BatchDeleteMessagesRequest.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/BatchDeleteMessagesRequest.php index 136acf6..dfa7def 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/BatchDeleteMessagesRequest.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/BatchDeleteMessagesRequest.php @@ -1,4 +1,7 @@ ids = $ids; - } - public function getIds() - { - return $this->ids; - } + protected $collection_key = 'ids'; + public $ids; + public function setIds($ids) + { + $this->ids = $ids; + } + public function getIds() + { + return $this->ids; + } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/BatchModifyMessagesRequest.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/BatchModifyMessagesRequest.php new file mode 100644 index 0000000..b3d11b7 --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/BatchModifyMessagesRequest.php @@ -0,0 +1,50 @@ +addLabelIds = $addLabelIds; + } + public function getAddLabelIds() + { + return $this->addLabelIds; + } + public function setIds($ids) + { + $this->ids = $ids; + } + public function getIds() + { + return $this->ids; + } + public function setRemoveLabelIds($removeLabelIds) + { + $this->removeLabelIds = $removeLabelIds; + } + public function getRemoveLabelIds() + { + return $this->removeLabelIds; + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Delegate.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Delegate.php similarity index 50% rename from wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Delegate.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Delegate.php index 72d6a4d..7961e26 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Delegate.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Delegate.php @@ -1,4 +1,7 @@ delegateEmail = $delegateEmail; - } - public function getDelegateEmail() - { - return $this->delegateEmail; - } - public function setVerificationStatus($verificationStatus) - { - $this->verificationStatus = $verificationStatus; - } - public function getVerificationStatus() - { - return $this->verificationStatus; - } + public $delegateEmail; + public $verificationStatus; + public function setDelegateEmail($delegateEmail) + { + $this->delegateEmail = $delegateEmail; + } + public function getDelegateEmail() + { + return $this->delegateEmail; + } + public function setVerificationStatus($verificationStatus) + { + $this->verificationStatus = $verificationStatus; + } + public function getVerificationStatus() + { + return $this->verificationStatus; + } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Draft.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Draft.php new file mode 100644 index 0000000..b40ea58 --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Draft.php @@ -0,0 +1,47 @@ +id = $id; + } + public function getId() + { + return $this->id; + } + /** + * @param Google_Service_Gmail_Message + */ + public function setMessage(\WPMailSMTP\Vendor\Google_Service_Gmail_Message $message) + { + $this->message = $message; + } + /** + * @return Google_Service_Gmail_Message + */ + public function getMessage() + { + return $this->message; + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Filter.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Filter.php new file mode 100644 index 0000000..df9da2b --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Filter.php @@ -0,0 +1,63 @@ +action = $action; + } + /** + * @return Google_Service_Gmail_FilterAction + */ + public function getAction() + { + return $this->action; + } + /** + * @param Google_Service_Gmail_FilterCriteria + */ + public function setCriteria(\WPMailSMTP\Vendor\Google_Service_Gmail_FilterCriteria $criteria) + { + $this->criteria = $criteria; + } + /** + * @return Google_Service_Gmail_FilterCriteria + */ + public function getCriteria() + { + return $this->criteria; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/FilterAction.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/FilterAction.php new file mode 100644 index 0000000..b158c59 --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/FilterAction.php @@ -0,0 +1,50 @@ +addLabelIds = $addLabelIds; + } + public function getAddLabelIds() + { + return $this->addLabelIds; + } + public function setForward($forward) + { + $this->forward = $forward; + } + public function getForward() + { + return $this->forward; + } + public function setRemoveLabelIds($removeLabelIds) + { + $this->removeLabelIds = $removeLabelIds; + } + public function getRemoveLabelIds() + { + return $this->removeLabelIds; + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/FilterCriteria.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/FilterCriteria.php new file mode 100644 index 0000000..da908de --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/FilterCriteria.php @@ -0,0 +1,103 @@ +excludeChats = $excludeChats; + } + public function getExcludeChats() + { + return $this->excludeChats; + } + public function setFrom($from) + { + $this->from = $from; + } + public function getFrom() + { + return $this->from; + } + public function setHasAttachment($hasAttachment) + { + $this->hasAttachment = $hasAttachment; + } + public function getHasAttachment() + { + return $this->hasAttachment; + } + public function setNegatedQuery($negatedQuery) + { + $this->negatedQuery = $negatedQuery; + } + public function getNegatedQuery() + { + return $this->negatedQuery; + } + public function setQuery($query) + { + $this->query = $query; + } + public function getQuery() + { + return $this->query; + } + public function setSize($size) + { + $this->size = $size; + } + public function getSize() + { + return $this->size; + } + public function setSizeComparison($sizeComparison) + { + $this->sizeComparison = $sizeComparison; + } + public function getSizeComparison() + { + return $this->sizeComparison; + } + public function setSubject($subject) + { + $this->subject = $subject; + } + public function getSubject() + { + return $this->subject; + } + public function setTo($to) + { + $this->to = $to; + } + public function getTo() + { + return $this->to; + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ForwardingAddress.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ForwardingAddress.php new file mode 100644 index 0000000..0e7050d --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ForwardingAddress.php @@ -0,0 +1,40 @@ +forwardingEmail = $forwardingEmail; + } + public function getForwardingEmail() + { + return $this->forwardingEmail; + } + public function setVerificationStatus($verificationStatus) + { + $this->verificationStatus = $verificationStatus; + } + public function getVerificationStatus() + { + return $this->verificationStatus; + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/History.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/History.php new file mode 100644 index 0000000..9c858ec --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/History.php @@ -0,0 +1,112 @@ +id = $id; + } + public function getId() + { + return $this->id; + } + /** + * @param Google_Service_Gmail_HistoryLabelAdded + */ + public function setLabelsAdded($labelsAdded) + { + $this->labelsAdded = $labelsAdded; + } + /** + * @return Google_Service_Gmail_HistoryLabelAdded + */ + public function getLabelsAdded() + { + return $this->labelsAdded; + } + /** + * @param Google_Service_Gmail_HistoryLabelRemoved + */ + public function setLabelsRemoved($labelsRemoved) + { + $this->labelsRemoved = $labelsRemoved; + } + /** + * @return Google_Service_Gmail_HistoryLabelRemoved + */ + public function getLabelsRemoved() + { + return $this->labelsRemoved; + } + /** + * @param Google_Service_Gmail_Message + */ + public function setMessages($messages) + { + $this->messages = $messages; + } + /** + * @return Google_Service_Gmail_Message + */ + public function getMessages() + { + return $this->messages; + } + /** + * @param Google_Service_Gmail_HistoryMessageAdded + */ + public function setMessagesAdded($messagesAdded) + { + $this->messagesAdded = $messagesAdded; + } + /** + * @return Google_Service_Gmail_HistoryMessageAdded + */ + public function getMessagesAdded() + { + return $this->messagesAdded; + } + /** + * @param Google_Service_Gmail_HistoryMessageDeleted + */ + public function setMessagesDeleted($messagesDeleted) + { + $this->messagesDeleted = $messagesDeleted; + } + /** + * @return Google_Service_Gmail_HistoryMessageDeleted + */ + public function getMessagesDeleted() + { + return $this->messagesDeleted; + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/HistoryLabelAdded.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/HistoryLabelAdded.php new file mode 100644 index 0000000..22d8f4a --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/HistoryLabelAdded.php @@ -0,0 +1,48 @@ +labelIds = $labelIds; + } + public function getLabelIds() + { + return $this->labelIds; + } + /** + * @param Google_Service_Gmail_Message + */ + public function setMessage(\WPMailSMTP\Vendor\Google_Service_Gmail_Message $message) + { + $this->message = $message; + } + /** + * @return Google_Service_Gmail_Message + */ + public function getMessage() + { + return $this->message; + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/HistoryLabelRemoved.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/HistoryLabelRemoved.php new file mode 100644 index 0000000..2ae21ac --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/HistoryLabelRemoved.php @@ -0,0 +1,48 @@ +labelIds = $labelIds; + } + public function getLabelIds() + { + return $this->labelIds; + } + /** + * @param Google_Service_Gmail_Message + */ + public function setMessage(\WPMailSMTP\Vendor\Google_Service_Gmail_Message $message) + { + $this->message = $message; + } + /** + * @return Google_Service_Gmail_Message + */ + public function getMessage() + { + return $this->message; + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/HistoryMessageAdded.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/HistoryMessageAdded.php similarity index 52% rename from wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/HistoryMessageAdded.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/HistoryMessageAdded.php index 5f86357..3e65d20 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/HistoryMessageAdded.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/HistoryMessageAdded.php @@ -1,4 +1,7 @@ message = $message; - } - /** - * @return Google_Service_Gmail_Message - */ - public function getMessage() - { - return $this->message; - } + protected $messageType = 'Google_Service_Gmail_Message'; + protected $messageDataType = ''; + /** + * @param Google_Service_Gmail_Message + */ + public function setMessage(\WPMailSMTP\Vendor\Google_Service_Gmail_Message $message) + { + $this->message = $message; + } + /** + * @return Google_Service_Gmail_Message + */ + public function getMessage() + { + return $this->message; + } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/HistoryMessageDeleted.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/HistoryMessageDeleted.php similarity index 52% rename from wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/HistoryMessageDeleted.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/HistoryMessageDeleted.php index 0afa797..68a45e1 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/HistoryMessageDeleted.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/HistoryMessageDeleted.php @@ -1,4 +1,7 @@ message = $message; - } - /** - * @return Google_Service_Gmail_Message - */ - public function getMessage() - { - return $this->message; - } + protected $messageType = 'Google_Service_Gmail_Message'; + protected $messageDataType = ''; + /** + * @param Google_Service_Gmail_Message + */ + public function setMessage(\WPMailSMTP\Vendor\Google_Service_Gmail_Message $message) + { + $this->message = $message; + } + /** + * @return Google_Service_Gmail_Message + */ + public function getMessage() + { + return $this->message; + } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ImapSettings.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ImapSettings.php new file mode 100644 index 0000000..a2aac62 --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ImapSettings.php @@ -0,0 +1,58 @@ +autoExpunge = $autoExpunge; + } + public function getAutoExpunge() + { + return $this->autoExpunge; + } + public function setEnabled($enabled) + { + $this->enabled = $enabled; + } + public function getEnabled() + { + return $this->enabled; + } + public function setExpungeBehavior($expungeBehavior) + { + $this->expungeBehavior = $expungeBehavior; + } + public function getExpungeBehavior() + { + return $this->expungeBehavior; + } + public function setMaxFolderSize($maxFolderSize) + { + $this->maxFolderSize = $maxFolderSize; + } + public function getMaxFolderSize() + { + return $this->maxFolderSize; + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Label.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Label.php new file mode 100644 index 0000000..206613b --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Label.php @@ -0,0 +1,119 @@ +color = $color; + } + /** + * @return Google_Service_Gmail_LabelColor + */ + public function getColor() + { + return $this->color; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setLabelListVisibility($labelListVisibility) + { + $this->labelListVisibility = $labelListVisibility; + } + public function getLabelListVisibility() + { + return $this->labelListVisibility; + } + public function setMessageListVisibility($messageListVisibility) + { + $this->messageListVisibility = $messageListVisibility; + } + public function getMessageListVisibility() + { + return $this->messageListVisibility; + } + public function setMessagesTotal($messagesTotal) + { + $this->messagesTotal = $messagesTotal; + } + public function getMessagesTotal() + { + return $this->messagesTotal; + } + public function setMessagesUnread($messagesUnread) + { + $this->messagesUnread = $messagesUnread; + } + public function getMessagesUnread() + { + return $this->messagesUnread; + } + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setThreadsTotal($threadsTotal) + { + $this->threadsTotal = $threadsTotal; + } + public function getThreadsTotal() + { + return $this->threadsTotal; + } + public function setThreadsUnread($threadsUnread) + { + $this->threadsUnread = $threadsUnread; + } + public function getThreadsUnread() + { + return $this->threadsUnread; + } + public function setType($type) + { + $this->type = $type; + } + public function getType() + { + return $this->type; + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/LabelColor.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/LabelColor.php similarity index 52% rename from wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/LabelColor.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/LabelColor.php index 10c3187..33ca445 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/LabelColor.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/LabelColor.php @@ -1,4 +1,7 @@ backgroundColor = $backgroundColor; - } - public function getBackgroundColor() - { - return $this->backgroundColor; - } - public function setTextColor($textColor) - { - $this->textColor = $textColor; - } - public function getTextColor() - { - return $this->textColor; - } + public $backgroundColor; + public $textColor; + public function setBackgroundColor($backgroundColor) + { + $this->backgroundColor = $backgroundColor; + } + public function getBackgroundColor() + { + return $this->backgroundColor; + } + public function setTextColor($textColor) + { + $this->textColor = $textColor; + } + public function getTextColor() + { + return $this->textColor; + } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/LanguageSettings.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/LanguageSettings.php similarity index 63% rename from wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/LanguageSettings.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/LanguageSettings.php index 077bd85..d5adf60 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/LanguageSettings.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/LanguageSettings.php @@ -1,4 +1,7 @@ displayLanguage = $displayLanguage; - } - public function getDisplayLanguage() - { - return $this->displayLanguage; - } + public $displayLanguage; + public function setDisplayLanguage($displayLanguage) + { + $this->displayLanguage = $displayLanguage; + } + public function getDisplayLanguage() + { + return $this->displayLanguage; + } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ListDelegatesResponse.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListDelegatesResponse.php similarity index 51% rename from wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ListDelegatesResponse.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListDelegatesResponse.php index b0f19c1..1dbd675 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ListDelegatesResponse.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListDelegatesResponse.php @@ -1,4 +1,7 @@ delegates = $delegates; - } - /** - * @return Google_Service_Gmail_Delegate - */ - public function getDelegates() - { - return $this->delegates; - } + protected $collection_key = 'delegates'; + protected $delegatesType = 'Google_Service_Gmail_Delegate'; + protected $delegatesDataType = 'array'; + /** + * @param Google_Service_Gmail_Delegate + */ + public function setDelegates($delegates) + { + $this->delegates = $delegates; + } + /** + * @return Google_Service_Gmail_Delegate + */ + public function getDelegates() + { + return $this->delegates; + } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListDraftsResponse.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListDraftsResponse.php new file mode 100644 index 0000000..3b659b0 --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListDraftsResponse.php @@ -0,0 +1,57 @@ +drafts = $drafts; + } + /** + * @return Google_Service_Gmail_Draft + */ + public function getDrafts() + { + return $this->drafts; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setResultSizeEstimate($resultSizeEstimate) + { + $this->resultSizeEstimate = $resultSizeEstimate; + } + public function getResultSizeEstimate() + { + return $this->resultSizeEstimate; + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ListFiltersResponse.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListFiltersResponse.php similarity index 52% rename from wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ListFiltersResponse.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListFiltersResponse.php index 589d782..8f32a86 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ListFiltersResponse.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListFiltersResponse.php @@ -1,4 +1,7 @@ filter = $filter; - } - /** - * @return Google_Service_Gmail_Filter - */ - public function getFilter() - { - return $this->filter; - } + protected $collection_key = 'filter'; + protected $filterType = 'Google_Service_Gmail_Filter'; + protected $filterDataType = 'array'; + /** + * @param Google_Service_Gmail_Filter + */ + public function setFilter($filter) + { + $this->filter = $filter; + } + /** + * @return Google_Service_Gmail_Filter + */ + public function getFilter() + { + return $this->filter; + } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ListForwardingAddressesResponse.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListForwardingAddressesResponse.php similarity index 51% rename from wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ListForwardingAddressesResponse.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListForwardingAddressesResponse.php index 477f861..d69ae9b 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ListForwardingAddressesResponse.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListForwardingAddressesResponse.php @@ -1,4 +1,7 @@ forwardingAddresses = $forwardingAddresses; - } - /** - * @return Google_Service_Gmail_ForwardingAddress - */ - public function getForwardingAddresses() - { - return $this->forwardingAddresses; - } + protected $collection_key = 'forwardingAddresses'; + protected $forwardingAddressesType = 'Google_Service_Gmail_ForwardingAddress'; + protected $forwardingAddressesDataType = 'array'; + /** + * @param Google_Service_Gmail_ForwardingAddress + */ + public function setForwardingAddresses($forwardingAddresses) + { + $this->forwardingAddresses = $forwardingAddresses; + } + /** + * @return Google_Service_Gmail_ForwardingAddress + */ + public function getForwardingAddresses() + { + return $this->forwardingAddresses; + } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListHistoryResponse.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListHistoryResponse.php new file mode 100644 index 0000000..338e960 --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListHistoryResponse.php @@ -0,0 +1,57 @@ +history = $history; + } + /** + * @return Google_Service_Gmail_History + */ + public function getHistory() + { + return $this->history; + } + public function setHistoryId($historyId) + { + $this->historyId = $historyId; + } + public function getHistoryId() + { + return $this->historyId; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ListSmimeInfoResponse.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListLabelsResponse.php similarity index 54% rename from wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ListSmimeInfoResponse.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListLabelsResponse.php index 277907a..f4538bc 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ListSmimeInfoResponse.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListLabelsResponse.php @@ -1,4 +1,7 @@ smimeInfo = $smimeInfo; - } - /** - * @return Google_Service_Gmail_SmimeInfo - */ - public function getSmimeInfo() - { - return $this->smimeInfo; - } + protected $collection_key = 'labels'; + protected $labelsType = 'Google_Service_Gmail_Label'; + protected $labelsDataType = 'array'; + /** + * @param Google_Service_Gmail_Label + */ + public function setLabels($labels) + { + $this->labels = $labels; + } + /** + * @return Google_Service_Gmail_Label + */ + public function getLabels() + { + return $this->labels; + } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListMessagesResponse.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListMessagesResponse.php new file mode 100644 index 0000000..fc302f7 --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListMessagesResponse.php @@ -0,0 +1,57 @@ +messages = $messages; + } + /** + * @return Google_Service_Gmail_Message + */ + public function getMessages() + { + return $this->messages; + } + public function setNextPageToken($nextPageToken) + { + $this->nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setResultSizeEstimate($resultSizeEstimate) + { + $this->resultSizeEstimate = $resultSizeEstimate; + } + public function getResultSizeEstimate() + { + return $this->resultSizeEstimate; + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ListSendAsResponse.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListSendAsResponse.php similarity index 52% rename from wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ListSendAsResponse.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListSendAsResponse.php index 6048c42..ea9800d 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/ListSendAsResponse.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListSendAsResponse.php @@ -1,4 +1,7 @@ sendAs = $sendAs; - } - /** - * @return Google_Service_Gmail_SendAs - */ - public function getSendAs() - { - return $this->sendAs; - } + protected $collection_key = 'sendAs'; + protected $sendAsType = 'Google_Service_Gmail_SendAs'; + protected $sendAsDataType = 'array'; + /** + * @param Google_Service_Gmail_SendAs + */ + public function setSendAs($sendAs) + { + $this->sendAs = $sendAs; + } + /** + * @return Google_Service_Gmail_SendAs + */ + public function getSendAs() + { + return $this->sendAs; + } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Draft.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListSmimeInfoResponse.php similarity index 51% rename from wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Draft.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListSmimeInfoResponse.php index b2f9cc6..f2c99ad 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Draft.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListSmimeInfoResponse.php @@ -1,4 +1,7 @@ id = $id; - } - public function getId() - { - return $this->id; - } - /** - * @param Google_Service_Gmail_Message - */ - public function setMessage(Google_Service_Gmail_Message $message) - { - $this->message = $message; - } - /** - * @return Google_Service_Gmail_Message - */ - public function getMessage() - { - return $this->message; - } + protected $collection_key = 'smimeInfo'; + protected $smimeInfoType = 'Google_Service_Gmail_SmimeInfo'; + protected $smimeInfoDataType = 'array'; + /** + * @param Google_Service_Gmail_SmimeInfo + */ + public function setSmimeInfo($smimeInfo) + { + $this->smimeInfo = $smimeInfo; + } + /** + * @return Google_Service_Gmail_SmimeInfo + */ + public function getSmimeInfo() + { + return $this->smimeInfo; + } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListThreadsResponse.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListThreadsResponse.php new file mode 100644 index 0000000..6fa8bec --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ListThreadsResponse.php @@ -0,0 +1,57 @@ +nextPageToken = $nextPageToken; + } + public function getNextPageToken() + { + return $this->nextPageToken; + } + public function setResultSizeEstimate($resultSizeEstimate) + { + $this->resultSizeEstimate = $resultSizeEstimate; + } + public function getResultSizeEstimate() + { + return $this->resultSizeEstimate; + } + /** + * @param Google_Service_Gmail_Thread + */ + public function setThreads($threads) + { + $this->threads = $threads; + } + /** + * @return Google_Service_Gmail_Thread + */ + public function getThreads() + { + return $this->threads; + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Message.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Message.php new file mode 100644 index 0000000..4ea0def --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Message.php @@ -0,0 +1,111 @@ +historyId = $historyId; + } + public function getHistoryId() + { + return $this->historyId; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setInternalDate($internalDate) + { + $this->internalDate = $internalDate; + } + public function getInternalDate() + { + return $this->internalDate; + } + public function setLabelIds($labelIds) + { + $this->labelIds = $labelIds; + } + public function getLabelIds() + { + return $this->labelIds; + } + /** + * @param Google_Service_Gmail_MessagePart + */ + public function setPayload(\WPMailSMTP\Vendor\Google_Service_Gmail_MessagePart $payload) + { + $this->payload = $payload; + } + /** + * @return Google_Service_Gmail_MessagePart + */ + public function getPayload() + { + return $this->payload; + } + public function setRaw($raw) + { + $this->raw = $raw; + } + public function getRaw() + { + return $this->raw; + } + public function setSizeEstimate($sizeEstimate) + { + $this->sizeEstimate = $sizeEstimate; + } + public function getSizeEstimate() + { + return $this->sizeEstimate; + } + public function setSnippet($snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } + public function setThreadId($threadId) + { + $this->threadId = $threadId; + } + public function getThreadId() + { + return $this->threadId; + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/MessagePart.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/MessagePart.php new file mode 100644 index 0000000..2b554f5 --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/MessagePart.php @@ -0,0 +1,98 @@ +body = $body; + } + /** + * @return Google_Service_Gmail_MessagePartBody + */ + public function getBody() + { + return $this->body; + } + public function setFilename($filename) + { + $this->filename = $filename; + } + public function getFilename() + { + return $this->filename; + } + /** + * @param Google_Service_Gmail_MessagePartHeader + */ + public function setHeaders($headers) + { + $this->headers = $headers; + } + /** + * @return Google_Service_Gmail_MessagePartHeader + */ + public function getHeaders() + { + return $this->headers; + } + public function setMimeType($mimeType) + { + $this->mimeType = $mimeType; + } + public function getMimeType() + { + return $this->mimeType; + } + public function setPartId($partId) + { + $this->partId = $partId; + } + public function getPartId() + { + return $this->partId; + } + /** + * @param Google_Service_Gmail_MessagePart + */ + public function setParts($parts) + { + $this->parts = $parts; + } + /** + * @return Google_Service_Gmail_MessagePart + */ + public function getParts() + { + return $this->parts; + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/MessagePartBody.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/MessagePartBody.php new file mode 100644 index 0000000..2abd12d --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/MessagePartBody.php @@ -0,0 +1,49 @@ +attachmentId = $attachmentId; + } + public function getAttachmentId() + { + return $this->attachmentId; + } + public function setData($data) + { + $this->data = $data; + } + public function getData() + { + return $this->data; + } + public function setSize($size) + { + $this->size = $size; + } + public function getSize() + { + return $this->size; + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/MessagePartHeader.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/MessagePartHeader.php similarity index 57% rename from wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/MessagePartHeader.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/MessagePartHeader.php index 8789faf..82c12ee 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/MessagePartHeader.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/MessagePartHeader.php @@ -1,4 +1,7 @@ name = $name; - } - public function getName() - { - return $this->name; - } - public function setValue($value) - { - $this->value = $value; - } - public function getValue() - { - return $this->value; - } + public $name; + public $value; + public function setName($name) + { + $this->name = $name; + } + public function getName() + { + return $this->name; + } + public function setValue($value) + { + $this->value = $value; + } + public function getValue() + { + return $this->value; + } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ModifyMessageRequest.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ModifyMessageRequest.php new file mode 100644 index 0000000..e78bcdf --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ModifyMessageRequest.php @@ -0,0 +1,41 @@ +addLabelIds = $addLabelIds; + } + public function getAddLabelIds() + { + return $this->addLabelIds; + } + public function setRemoveLabelIds($removeLabelIds) + { + $this->removeLabelIds = $removeLabelIds; + } + public function getRemoveLabelIds() + { + return $this->removeLabelIds; + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ModifyThreadRequest.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ModifyThreadRequest.php new file mode 100644 index 0000000..8cb1bb9 --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/ModifyThreadRequest.php @@ -0,0 +1,41 @@ +addLabelIds = $addLabelIds; + } + public function getAddLabelIds() + { + return $this->addLabelIds; + } + public function setRemoveLabelIds($removeLabelIds) + { + $this->removeLabelIds = $removeLabelIds; + } + public function getRemoveLabelIds() + { + return $this->removeLabelIds; + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/PopSettings.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/PopSettings.php similarity index 52% rename from wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/PopSettings.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/PopSettings.php index 6069dc8..e662d32 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/PopSettings.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/PopSettings.php @@ -1,4 +1,7 @@ accessWindow = $accessWindow; - } - public function getAccessWindow() - { - return $this->accessWindow; - } - public function setDisposition($disposition) - { - $this->disposition = $disposition; - } - public function getDisposition() - { - return $this->disposition; - } + public $accessWindow; + public $disposition; + public function setAccessWindow($accessWindow) + { + $this->accessWindow = $accessWindow; + } + public function getAccessWindow() + { + return $this->accessWindow; + } + public function setDisposition($disposition) + { + $this->disposition = $disposition; + } + public function getDisposition() + { + return $this->disposition; + } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Profile.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Profile.php new file mode 100644 index 0000000..884d8c1 --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Profile.php @@ -0,0 +1,58 @@ +emailAddress = $emailAddress; + } + public function getEmailAddress() + { + return $this->emailAddress; + } + public function setHistoryId($historyId) + { + $this->historyId = $historyId; + } + public function getHistoryId() + { + return $this->historyId; + } + public function setMessagesTotal($messagesTotal) + { + $this->messagesTotal = $messagesTotal; + } + public function getMessagesTotal() + { + return $this->messagesTotal; + } + public function setThreadsTotal($threadsTotal) + { + $this->threadsTotal = $threadsTotal; + } + public function getThreadsTotal() + { + return $this->threadsTotal; + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/Users.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/Users.php new file mode 100644 index 0000000..346011f --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/Users.php @@ -0,0 +1,73 @@ + + * $gmailService = new Google_Service_Gmail(...); + * $users = $gmailService->users; + * + */ +class Google_Service_Gmail_Resource_Users extends \WPMailSMTP\Vendor\Google_Service_Resource +{ + /** + * Gets the current user's Gmail profile. (users.getProfile) + * + * @param string $userId The user's email address. The special value `me` can be + * used to indicate the authenticated user. + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Profile + */ + public function getProfile($userId, $optParams = array()) + { + $params = array('userId' => $userId); + $params = \array_merge($params, $optParams); + return $this->call('getProfile', array($params), "Google_Service_Gmail_Profile"); + } + /** + * Stop receiving push notifications for the given user mailbox. (users.stop) + * + * @param string $userId The user's email address. The special value `me` can be + * used to indicate the authenticated user. + * @param array $optParams Optional parameters. + */ + public function stop($userId, $optParams = array()) + { + $params = array('userId' => $userId); + $params = \array_merge($params, $optParams); + return $this->call('stop', array($params)); + } + /** + * Set up or update a push notification watch on the given user mailbox. + * (users.watch) + * + * @param string $userId The user's email address. The special value `me` can be + * used to indicate the authenticated user. + * @param Google_Service_Gmail_WatchRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_WatchResponse + */ + public function watch($userId, \WPMailSMTP\Vendor\Google_Service_Gmail_WatchRequest $postBody, $optParams = array()) + { + $params = array('userId' => $userId, 'postBody' => $postBody); + $params = \array_merge($params, $optParams); + return $this->call('watch', array($params), "Google_Service_Gmail_WatchResponse"); + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersDrafts.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersDrafts.php new file mode 100644 index 0000000..d1cce03 --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersDrafts.php @@ -0,0 +1,132 @@ + + * $gmailService = new Google_Service_Gmail(...); + * $drafts = $gmailService->drafts; + * + */ +class Google_Service_Gmail_Resource_UsersDrafts extends \WPMailSMTP\Vendor\Google_Service_Resource +{ + /** + * Creates a new draft with the `DRAFT` label. (drafts.create) + * + * @param string $userId The user's email address. The special value `me` can be + * used to indicate the authenticated user. + * @param Google_Service_Gmail_Draft $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Draft + */ + public function create($userId, \WPMailSMTP\Vendor\Google_Service_Gmail_Draft $postBody, $optParams = array()) + { + $params = array('userId' => $userId, 'postBody' => $postBody); + $params = \array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Gmail_Draft"); + } + /** + * Immediately and permanently deletes the specified draft. Does not simply + * trash it. (drafts.delete) + * + * @param string $userId The user's email address. The special value `me` can be + * used to indicate the authenticated user. + * @param string $id The ID of the draft to delete. + * @param array $optParams Optional parameters. + */ + public function delete($userId, $id, $optParams = array()) + { + $params = array('userId' => $userId, 'id' => $id); + $params = \array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Gets the specified draft. (drafts.get) + * + * @param string $userId The user's email address. The special value `me` can be + * used to indicate the authenticated user. + * @param string $id The ID of the draft to retrieve. + * @param array $optParams Optional parameters. + * + * @opt_param string format The format to return the draft in. + * @return Google_Service_Gmail_Draft + */ + public function get($userId, $id, $optParams = array()) + { + $params = array('userId' => $userId, 'id' => $id); + $params = \array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Gmail_Draft"); + } + /** + * Lists the drafts in the user's mailbox. (drafts.listUsersDrafts) + * + * @param string $userId The user's email address. The special value `me` can be + * used to indicate the authenticated user. + * @param array $optParams Optional parameters. + * + * @opt_param string q Only return draft messages matching the specified query. + * Supports the same query format as the Gmail search box. For example, + * `"from:someuser@example.com rfc822msgid: is:unread"`. + * @opt_param string pageToken Page token to retrieve a specific page of results + * in the list. + * @opt_param bool includeSpamTrash Include drafts from `SPAM` and `TRASH` in + * the results. + * @opt_param string maxResults Maximum number of drafts to return. + * @return Google_Service_Gmail_ListDraftsResponse + */ + public function listUsersDrafts($userId, $optParams = array()) + { + $params = array('userId' => $userId); + $params = \array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Gmail_ListDraftsResponse"); + } + /** + * Sends the specified, existing draft to the recipients in the `To`, `Cc`, and + * `Bcc` headers. (drafts.send) + * + * @param string $userId The user's email address. The special value `me` can be + * used to indicate the authenticated user. + * @param Google_Service_Gmail_Draft $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Message + */ + public function send($userId, \WPMailSMTP\Vendor\Google_Service_Gmail_Draft $postBody, $optParams = array()) + { + $params = array('userId' => $userId, 'postBody' => $postBody); + $params = \array_merge($params, $optParams); + return $this->call('send', array($params), "Google_Service_Gmail_Message"); + } + /** + * Replaces a draft's content. (drafts.update) + * + * @param string $userId The user's email address. The special value `me` can be + * used to indicate the authenticated user. + * @param string $id The ID of the draft to update. + * @param Google_Service_Gmail_Draft $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Draft + */ + public function update($userId, $id, \WPMailSMTP\Vendor\Google_Service_Gmail_Draft $postBody, $optParams = array()) + { + $params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody); + $params = \array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Gmail_Draft"); + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersHistory.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersHistory.php new file mode 100644 index 0000000..1933c3a --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersHistory.php @@ -0,0 +1,63 @@ + + * $gmailService = new Google_Service_Gmail(...); + * $history = $gmailService->history; + * + */ +class Google_Service_Gmail_Resource_UsersHistory extends \WPMailSMTP\Vendor\Google_Service_Resource +{ + /** + * Lists the history of all changes to the given mailbox. History results are + * returned in chronological order (increasing `historyId`). + * (history.listUsersHistory) + * + * @param string $userId The user's email address. The special value `me` can be + * used to indicate the authenticated user. + * @param array $optParams Optional parameters. + * + * @opt_param string labelId Only return messages with a label matching the ID. + * @opt_param string historyTypes History types to be returned by the function + * @opt_param string startHistoryId Required. Returns history records after the + * specified `startHistoryId`. The supplied `startHistoryId` should be obtained + * from the `historyId` of a message, thread, or previous `list` response. + * History IDs increase chronologically but are not contiguous with random gaps + * in between valid IDs. Supplying an invalid or out of date `startHistoryId` + * typically returns an `HTTP 404` error code. A `historyId` is typically valid + * for at least a week, but in some rare circumstances may be valid for only a + * few hours. If you receive an `HTTP 404` error response, your application + * should perform a full sync. If you receive no `nextPageToken` in the + * response, there are no updates to retrieve and you can store the returned + * `historyId` for a future request. + * @opt_param string maxResults The maximum number of history records to return. + * @opt_param string pageToken Page token to retrieve a specific page of results + * in the list. + * @return Google_Service_Gmail_ListHistoryResponse + */ + public function listUsersHistory($userId, $optParams = array()) + { + $params = array('userId' => $userId); + $params = \array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Gmail_ListHistoryResponse"); + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersLabels.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersLabels.php new file mode 100644 index 0000000..e365a9b --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersLabels.php @@ -0,0 +1,121 @@ + + * $gmailService = new Google_Service_Gmail(...); + * $labels = $gmailService->labels; + * + */ +class Google_Service_Gmail_Resource_UsersLabels extends \WPMailSMTP\Vendor\Google_Service_Resource +{ + /** + * Creates a new label. (labels.create) + * + * @param string $userId The user's email address. The special value `me` can be + * used to indicate the authenticated user. + * @param Google_Service_Gmail_Label $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Label + */ + public function create($userId, \WPMailSMTP\Vendor\Google_Service_Gmail_Label $postBody, $optParams = array()) + { + $params = array('userId' => $userId, 'postBody' => $postBody); + $params = \array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Gmail_Label"); + } + /** + * Immediately and permanently deletes the specified label and removes it from + * any messages and threads that it is applied to. (labels.delete) + * + * @param string $userId The user's email address. The special value `me` can be + * used to indicate the authenticated user. + * @param string $id The ID of the label to delete. + * @param array $optParams Optional parameters. + */ + public function delete($userId, $id, $optParams = array()) + { + $params = array('userId' => $userId, 'id' => $id); + $params = \array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Gets the specified label. (labels.get) + * + * @param string $userId The user's email address. The special value `me` can be + * used to indicate the authenticated user. + * @param string $id The ID of the label to retrieve. + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Label + */ + public function get($userId, $id, $optParams = array()) + { + $params = array('userId' => $userId, 'id' => $id); + $params = \array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Gmail_Label"); + } + /** + * Lists all labels in the user's mailbox. (labels.listUsersLabels) + * + * @param string $userId The user's email address. The special value `me` can be + * used to indicate the authenticated user. + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_ListLabelsResponse + */ + public function listUsersLabels($userId, $optParams = array()) + { + $params = array('userId' => $userId); + $params = \array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Gmail_ListLabelsResponse"); + } + /** + * Patch the specified label. (labels.patch) + * + * @param string $userId The user's email address. The special value `me` can be + * used to indicate the authenticated user. + * @param string $id The ID of the label to update. + * @param Google_Service_Gmail_Label $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Label + */ + public function patch($userId, $id, \WPMailSMTP\Vendor\Google_Service_Gmail_Label $postBody, $optParams = array()) + { + $params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody); + $params = \array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Gmail_Label"); + } + /** + * Updates the specified label. (labels.update) + * + * @param string $userId The user's email address. The special value `me` can be + * used to indicate the authenticated user. + * @param string $id The ID of the label to update. + * @param Google_Service_Gmail_Label $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Label + */ + public function update($userId, $id, \WPMailSMTP\Vendor\Google_Service_Gmail_Label $postBody, $optParams = array()) + { + $params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody); + $params = \array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Gmail_Label"); + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersMessages.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersMessages.php new file mode 100644 index 0000000..f48772d --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersMessages.php @@ -0,0 +1,232 @@ + + * $gmailService = new Google_Service_Gmail(...); + * $messages = $gmailService->messages; + * + */ +class Google_Service_Gmail_Resource_UsersMessages extends \WPMailSMTP\Vendor\Google_Service_Resource +{ + /** + * Deletes many messages by message ID. Provides no guarantees that messages + * were not already deleted or even existed at all. (messages.batchDelete) + * + * @param string $userId The user's email address. The special value `me` can be + * used to indicate the authenticated user. + * @param Google_Service_Gmail_BatchDeleteMessagesRequest $postBody + * @param array $optParams Optional parameters. + */ + public function batchDelete($userId, \WPMailSMTP\Vendor\Google_Service_Gmail_BatchDeleteMessagesRequest $postBody, $optParams = array()) + { + $params = array('userId' => $userId, 'postBody' => $postBody); + $params = \array_merge($params, $optParams); + return $this->call('batchDelete', array($params)); + } + /** + * Modifies the labels on the specified messages. (messages.batchModify) + * + * @param string $userId The user's email address. The special value `me` can be + * used to indicate the authenticated user. + * @param Google_Service_Gmail_BatchModifyMessagesRequest $postBody + * @param array $optParams Optional parameters. + */ + public function batchModify($userId, \WPMailSMTP\Vendor\Google_Service_Gmail_BatchModifyMessagesRequest $postBody, $optParams = array()) + { + $params = array('userId' => $userId, 'postBody' => $postBody); + $params = \array_merge($params, $optParams); + return $this->call('batchModify', array($params)); + } + /** + * Immediately and permanently deletes the specified message. This operation + * cannot be undone. Prefer `messages.trash` instead. (messages.delete) + * + * @param string $userId The user's email address. The special value `me` can be + * used to indicate the authenticated user. + * @param string $id The ID of the message to delete. + * @param array $optParams Optional parameters. + */ + public function delete($userId, $id, $optParams = array()) + { + $params = array('userId' => $userId, 'id' => $id); + $params = \array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Gets the specified message. (messages.get) + * + * @param string $userId The user's email address. The special value `me` can be + * used to indicate the authenticated user. + * @param string $id The ID of the message to retrieve. + * @param array $optParams Optional parameters. + * + * @opt_param string metadataHeaders When given and format is `METADATA`, only + * include headers specified. + * @opt_param string format The format to return the message in. + * @return Google_Service_Gmail_Message + */ + public function get($userId, $id, $optParams = array()) + { + $params = array('userId' => $userId, 'id' => $id); + $params = \array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Gmail_Message"); + } + /** + * Imports a message into only this user's mailbox, with standard email delivery + * scanning and classification similar to receiving via SMTP. Does not send a + * message. Note: This function doesn't trigger forwarding rules or filters set + * up by the user. (messages.import) + * + * @param string $userId The user's email address. The special value `me` can be + * used to indicate the authenticated user. + * @param Google_Service_Gmail_Message $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool neverMarkSpam Ignore the Gmail spam classifier decision and + * never mark this email as SPAM in the mailbox. + * @opt_param bool processForCalendar Process calendar invites in the email and + * add any extracted meetings to the Google Calendar for this user. + * @opt_param bool deleted Mark the email as permanently deleted (not TRASH) and + * only visible in Google Vault to a Vault administrator. Only used for G Suite + * accounts. + * @opt_param string internalDateSource Source for Gmail's internal date of the + * message. + * @return Google_Service_Gmail_Message + */ + public function import($userId, \WPMailSMTP\Vendor\Google_Service_Gmail_Message $postBody, $optParams = array()) + { + $params = array('userId' => $userId, 'postBody' => $postBody); + $params = \array_merge($params, $optParams); + return $this->call('import', array($params), "Google_Service_Gmail_Message"); + } + /** + * Directly inserts a message into only this user's mailbox similar to `IMAP + * APPEND`, bypassing most scanning and classification. Does not send a message. + * (messages.insert) + * + * @param string $userId The user's email address. The special value `me` can be + * used to indicate the authenticated user. + * @param Google_Service_Gmail_Message $postBody + * @param array $optParams Optional parameters. + * + * @opt_param bool deleted Mark the email as permanently deleted (not TRASH) and + * only visible in Google Vault to a Vault administrator. Only used for G Suite + * accounts. + * @opt_param string internalDateSource Source for Gmail's internal date of the + * message. + * @return Google_Service_Gmail_Message + */ + public function insert($userId, \WPMailSMTP\Vendor\Google_Service_Gmail_Message $postBody, $optParams = array()) + { + $params = array('userId' => $userId, 'postBody' => $postBody); + $params = \array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Gmail_Message"); + } + /** + * Lists the messages in the user's mailbox. (messages.listUsersMessages) + * + * @param string $userId The user's email address. The special value `me` can be + * used to indicate the authenticated user. + * @param array $optParams Optional parameters. + * + * @opt_param string q Only return messages matching the specified query. + * Supports the same query format as the Gmail search box. For example, + * `"from:someuser@example.com rfc822msgid: is:unread"`. Parameter cannot be + * used when accessing the api using the gmail.metadata scope. + * @opt_param bool includeSpamTrash Include messages from `SPAM` and `TRASH` in + * the results. + * @opt_param string maxResults Maximum number of messages to return. + * @opt_param string labelIds Only return messages with labels that match all of + * the specified label IDs. + * @opt_param string pageToken Page token to retrieve a specific page of results + * in the list. + * @return Google_Service_Gmail_ListMessagesResponse + */ + public function listUsersMessages($userId, $optParams = array()) + { + $params = array('userId' => $userId); + $params = \array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Gmail_ListMessagesResponse"); + } + /** + * Modifies the labels on the specified message. (messages.modify) + * + * @param string $userId The user's email address. The special value `me` can be + * used to indicate the authenticated user. + * @param string $id The ID of the message to modify. + * @param Google_Service_Gmail_ModifyMessageRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Message + */ + public function modify($userId, $id, \WPMailSMTP\Vendor\Google_Service_Gmail_ModifyMessageRequest $postBody, $optParams = array()) + { + $params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody); + $params = \array_merge($params, $optParams); + return $this->call('modify', array($params), "Google_Service_Gmail_Message"); + } + /** + * Sends the specified message to the recipients in the `To`, `Cc`, and `Bcc` + * headers. (messages.send) + * + * @param string $userId The user's email address. The special value `me` can be + * used to indicate the authenticated user. + * @param Google_Service_Gmail_Message $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Message + */ + public function send($userId, \WPMailSMTP\Vendor\Google_Service_Gmail_Message $postBody, $optParams = array()) + { + $params = array('userId' => $userId, 'postBody' => $postBody); + $params = \array_merge($params, $optParams); + return $this->call('send', array($params), "Google_Service_Gmail_Message"); + } + /** + * Moves the specified message to the trash. (messages.trash) + * + * @param string $userId The user's email address. The special value `me` can be + * used to indicate the authenticated user. + * @param string $id The ID of the message to Trash. + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Message + */ + public function trash($userId, $id, $optParams = array()) + { + $params = array('userId' => $userId, 'id' => $id); + $params = \array_merge($params, $optParams); + return $this->call('trash', array($params), "Google_Service_Gmail_Message"); + } + /** + * Removes the specified message from the trash. (messages.untrash) + * + * @param string $userId The user's email address. The special value `me` can be + * used to indicate the authenticated user. + * @param string $id The ID of the message to remove from Trash. + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Message + */ + public function untrash($userId, $id, $optParams = array()) + { + $params = array('userId' => $userId, 'id' => $id); + $params = \array_merge($params, $optParams); + return $this->call('untrash', array($params), "Google_Service_Gmail_Message"); + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersMessagesAttachments.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersMessagesAttachments.php similarity index 50% rename from wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersMessagesAttachments.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersMessagesAttachments.php index bd131fd..742f195 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersMessagesAttachments.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersMessagesAttachments.php @@ -1,4 +1,7 @@ attachments; * */ -class Google_Service_Gmail_Resource_UsersMessagesAttachments extends Google_Service_Resource +class Google_Service_Gmail_Resource_UsersMessagesAttachments extends \WPMailSMTP\Vendor\Google_Service_Resource { - /** - * Gets the specified message attachment. (attachments.get) - * - * @param string $userId The user's email address. The special value `me` can be - * used to indicate the authenticated user. - * @param string $messageId The ID of the message containing the attachment. - * @param string $id The ID of the attachment. - * @param array $optParams Optional parameters. - * @return Google_Service_Gmail_MessagePartBody - */ - public function get($userId, $messageId, $id, $optParams = array()) - { - $params = array('userId' => $userId, 'messageId' => $messageId, 'id' => $id); - $params = array_merge($params, $optParams); - return $this->call('get', array($params), "Google_Service_Gmail_MessagePartBody"); - } + /** + * Gets the specified message attachment. (attachments.get) + * + * @param string $userId The user's email address. The special value `me` can be + * used to indicate the authenticated user. + * @param string $messageId The ID of the message containing the attachment. + * @param string $id The ID of the attachment. + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_MessagePartBody + */ + public function get($userId, $messageId, $id, $optParams = array()) + { + $params = array('userId' => $userId, 'messageId' => $messageId, 'id' => $id); + $params = \array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Gmail_MessagePartBody"); + } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettings.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettings.php new file mode 100644 index 0000000..b6b4a4b --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettings.php @@ -0,0 +1,184 @@ + + * $gmailService = new Google_Service_Gmail(...); + * $settings = $gmailService->settings; + * + */ +class Google_Service_Gmail_Resource_UsersSettings extends \WPMailSMTP\Vendor\Google_Service_Resource +{ + /** + * Gets the auto-forwarding setting for the specified account. + * (settings.getAutoForwarding) + * + * @param string $userId User's email address. The special value "me" can be + * used to indicate the authenticated user. + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_AutoForwarding + */ + public function getAutoForwarding($userId, $optParams = array()) + { + $params = array('userId' => $userId); + $params = \array_merge($params, $optParams); + return $this->call('getAutoForwarding', array($params), "Google_Service_Gmail_AutoForwarding"); + } + /** + * Gets IMAP settings. (settings.getImap) + * + * @param string $userId User's email address. The special value "me" can be + * used to indicate the authenticated user. + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_ImapSettings + */ + public function getImap($userId, $optParams = array()) + { + $params = array('userId' => $userId); + $params = \array_merge($params, $optParams); + return $this->call('getImap', array($params), "Google_Service_Gmail_ImapSettings"); + } + /** + * Gets language settings. (settings.getLanguage) + * + * @param string $userId User's email address. The special value "me" can be + * used to indicate the authenticated user. + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_LanguageSettings + */ + public function getLanguage($userId, $optParams = array()) + { + $params = array('userId' => $userId); + $params = \array_merge($params, $optParams); + return $this->call('getLanguage', array($params), "Google_Service_Gmail_LanguageSettings"); + } + /** + * Gets POP settings. (settings.getPop) + * + * @param string $userId User's email address. The special value "me" can be + * used to indicate the authenticated user. + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_PopSettings + */ + public function getPop($userId, $optParams = array()) + { + $params = array('userId' => $userId); + $params = \array_merge($params, $optParams); + return $this->call('getPop', array($params), "Google_Service_Gmail_PopSettings"); + } + /** + * Gets vacation responder settings. (settings.getVacation) + * + * @param string $userId User's email address. The special value "me" can be + * used to indicate the authenticated user. + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_VacationSettings + */ + public function getVacation($userId, $optParams = array()) + { + $params = array('userId' => $userId); + $params = \array_merge($params, $optParams); + return $this->call('getVacation', array($params), "Google_Service_Gmail_VacationSettings"); + } + /** + * Updates the auto-forwarding setting for the specified account. A verified + * forwarding address must be specified when auto-forwarding is enabled. This + * method is only available to service account clients that have been delegated + * domain-wide authority. (settings.updateAutoForwarding) + * + * @param string $userId User's email address. The special value "me" can be + * used to indicate the authenticated user. + * @param Google_Service_Gmail_AutoForwarding $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_AutoForwarding + */ + public function updateAutoForwarding($userId, \WPMailSMTP\Vendor\Google_Service_Gmail_AutoForwarding $postBody, $optParams = array()) + { + $params = array('userId' => $userId, 'postBody' => $postBody); + $params = \array_merge($params, $optParams); + return $this->call('updateAutoForwarding', array($params), "Google_Service_Gmail_AutoForwarding"); + } + /** + * Updates IMAP settings. (settings.updateImap) + * + * @param string $userId User's email address. The special value "me" can be + * used to indicate the authenticated user. + * @param Google_Service_Gmail_ImapSettings $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_ImapSettings + */ + public function updateImap($userId, \WPMailSMTP\Vendor\Google_Service_Gmail_ImapSettings $postBody, $optParams = array()) + { + $params = array('userId' => $userId, 'postBody' => $postBody); + $params = \array_merge($params, $optParams); + return $this->call('updateImap', array($params), "Google_Service_Gmail_ImapSettings"); + } + /** + * Updates language settings. If successful, the return object contains the + * `displayLanguage` that was saved for the user, which may differ from the + * value passed into the request. This is because the requested + * `displayLanguage` may not be directly supported by Gmail but have a close + * variant that is, and so the variant may be chosen and saved instead. + * (settings.updateLanguage) + * + * @param string $userId User's email address. The special value "me" can be + * used to indicate the authenticated user. + * @param Google_Service_Gmail_LanguageSettings $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_LanguageSettings + */ + public function updateLanguage($userId, \WPMailSMTP\Vendor\Google_Service_Gmail_LanguageSettings $postBody, $optParams = array()) + { + $params = array('userId' => $userId, 'postBody' => $postBody); + $params = \array_merge($params, $optParams); + return $this->call('updateLanguage', array($params), "Google_Service_Gmail_LanguageSettings"); + } + /** + * Updates POP settings. (settings.updatePop) + * + * @param string $userId User's email address. The special value "me" can be + * used to indicate the authenticated user. + * @param Google_Service_Gmail_PopSettings $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_PopSettings + */ + public function updatePop($userId, \WPMailSMTP\Vendor\Google_Service_Gmail_PopSettings $postBody, $optParams = array()) + { + $params = array('userId' => $userId, 'postBody' => $postBody); + $params = \array_merge($params, $optParams); + return $this->call('updatePop', array($params), "Google_Service_Gmail_PopSettings"); + } + /** + * Updates vacation responder settings. (settings.updateVacation) + * + * @param string $userId User's email address. The special value "me" can be + * used to indicate the authenticated user. + * @param Google_Service_Gmail_VacationSettings $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_VacationSettings + */ + public function updateVacation($userId, \WPMailSMTP\Vendor\Google_Service_Gmail_VacationSettings $postBody, $optParams = array()) + { + $params = array('userId' => $userId, 'postBody' => $postBody); + $params = \array_merge($params, $optParams); + return $this->call('updateVacation', array($params), "Google_Service_Gmail_VacationSettings"); + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsDelegates.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsDelegates.php new file mode 100644 index 0000000..795ccb5 --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsDelegates.php @@ -0,0 +1,109 @@ + + * $gmailService = new Google_Service_Gmail(...); + * $delegates = $gmailService->delegates; + * + */ +class Google_Service_Gmail_Resource_UsersSettingsDelegates extends \WPMailSMTP\Vendor\Google_Service_Resource +{ + /** + * Adds a delegate with its verification status set directly to `accepted`, + * without sending any verification email. The delegate user must be a member of + * the same G Suite organization as the delegator user. Gmail imposes + * limitations on the number of delegates and delegators each user in a G Suite + * organization can have. These limits depend on your organization, but in + * general each user can have up to 25 delegates and up to 10 delegators. Note + * that a delegate user must be referred to by their primary email address, and + * not an email alias. Also note that when a new delegate is created, there may + * be up to a one minute delay before the new delegate is available for use. + * This method is only available to service account clients that have been + * delegated domain-wide authority. (delegates.create) + * + * @param string $userId User's email address. The special value "me" can be + * used to indicate the authenticated user. + * @param Google_Service_Gmail_Delegate $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Delegate + */ + public function create($userId, \WPMailSMTP\Vendor\Google_Service_Gmail_Delegate $postBody, $optParams = array()) + { + $params = array('userId' => $userId, 'postBody' => $postBody); + $params = \array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Gmail_Delegate"); + } + /** + * Removes the specified delegate (which can be of any verification status), and + * revokes any verification that may have been required for using it. Note that + * a delegate user must be referred to by their primary email address, and not + * an email alias. This method is only available to service account clients that + * have been delegated domain-wide authority. (delegates.delete) + * + * @param string $userId User's email address. The special value "me" can be + * used to indicate the authenticated user. + * @param string $delegateEmail The email address of the user to be removed as a + * delegate. + * @param array $optParams Optional parameters. + */ + public function delete($userId, $delegateEmail, $optParams = array()) + { + $params = array('userId' => $userId, 'delegateEmail' => $delegateEmail); + $params = \array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Gets the specified delegate. Note that a delegate user must be referred to by + * their primary email address, and not an email alias. This method is only + * available to service account clients that have been delegated domain-wide + * authority. (delegates.get) + * + * @param string $userId User's email address. The special value "me" can be + * used to indicate the authenticated user. + * @param string $delegateEmail The email address of the user whose delegate + * relationship is to be retrieved. + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Delegate + */ + public function get($userId, $delegateEmail, $optParams = array()) + { + $params = array('userId' => $userId, 'delegateEmail' => $delegateEmail); + $params = \array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Gmail_Delegate"); + } + /** + * Lists the delegates for the specified account. This method is only available + * to service account clients that have been delegated domain-wide authority. + * (delegates.listUsersSettingsDelegates) + * + * @param string $userId User's email address. The special value "me" can be + * used to indicate the authenticated user. + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_ListDelegatesResponse + */ + public function listUsersSettingsDelegates($userId, $optParams = array()) + { + $params = array('userId' => $userId); + $params = \array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Gmail_ListDelegatesResponse"); + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsFilters.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsFilters.php new file mode 100644 index 0000000..49bd1b3 --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsFilters.php @@ -0,0 +1,88 @@ + + * $gmailService = new Google_Service_Gmail(...); + * $filters = $gmailService->filters; + * + */ +class Google_Service_Gmail_Resource_UsersSettingsFilters extends \WPMailSMTP\Vendor\Google_Service_Resource +{ + /** + * Creates a filter. (filters.create) + * + * @param string $userId User's email address. The special value "me" can be + * used to indicate the authenticated user. + * @param Google_Service_Gmail_Filter $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Filter + */ + public function create($userId, \WPMailSMTP\Vendor\Google_Service_Gmail_Filter $postBody, $optParams = array()) + { + $params = array('userId' => $userId, 'postBody' => $postBody); + $params = \array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Gmail_Filter"); + } + /** + * Deletes a filter. (filters.delete) + * + * @param string $userId User's email address. The special value "me" can be + * used to indicate the authenticated user. + * @param string $id The ID of the filter to be deleted. + * @param array $optParams Optional parameters. + */ + public function delete($userId, $id, $optParams = array()) + { + $params = array('userId' => $userId, 'id' => $id); + $params = \array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Gets a filter. (filters.get) + * + * @param string $userId User's email address. The special value "me" can be + * used to indicate the authenticated user. + * @param string $id The ID of the filter to be fetched. + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Filter + */ + public function get($userId, $id, $optParams = array()) + { + $params = array('userId' => $userId, 'id' => $id); + $params = \array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Gmail_Filter"); + } + /** + * Lists the message filters of a Gmail user. (filters.listUsersSettingsFilters) + * + * @param string $userId User's email address. The special value "me" can be + * used to indicate the authenticated user. + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_ListFiltersResponse + */ + public function listUsersSettingsFilters($userId, $optParams = array()) + { + $params = array('userId' => $userId); + $params = \array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Gmail_ListFiltersResponse"); + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsForwardingAddresses.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsForwardingAddresses.php new file mode 100644 index 0000000..10a5cc5 --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsForwardingAddresses.php @@ -0,0 +1,97 @@ + + * $gmailService = new Google_Service_Gmail(...); + * $forwardingAddresses = $gmailService->forwardingAddresses; + * + */ +class Google_Service_Gmail_Resource_UsersSettingsForwardingAddresses extends \WPMailSMTP\Vendor\Google_Service_Resource +{ + /** + * Creates a forwarding address. If ownership verification is required, a + * message will be sent to the recipient and the resource's verification status + * will be set to `pending`; otherwise, the resource will be created with + * verification status set to `accepted`. This method is only available to + * service account clients that have been delegated domain-wide authority. + * (forwardingAddresses.create) + * + * @param string $userId User's email address. The special value "me" can be + * used to indicate the authenticated user. + * @param Google_Service_Gmail_ForwardingAddress $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_ForwardingAddress + */ + public function create($userId, \WPMailSMTP\Vendor\Google_Service_Gmail_ForwardingAddress $postBody, $optParams = array()) + { + $params = array('userId' => $userId, 'postBody' => $postBody); + $params = \array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Gmail_ForwardingAddress"); + } + /** + * Deletes the specified forwarding address and revokes any verification that + * may have been required. This method is only available to service account + * clients that have been delegated domain-wide authority. + * (forwardingAddresses.delete) + * + * @param string $userId User's email address. The special value "me" can be + * used to indicate the authenticated user. + * @param string $forwardingEmail The forwarding address to be deleted. + * @param array $optParams Optional parameters. + */ + public function delete($userId, $forwardingEmail, $optParams = array()) + { + $params = array('userId' => $userId, 'forwardingEmail' => $forwardingEmail); + $params = \array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Gets the specified forwarding address. (forwardingAddresses.get) + * + * @param string $userId User's email address. The special value "me" can be + * used to indicate the authenticated user. + * @param string $forwardingEmail The forwarding address to be retrieved. + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_ForwardingAddress + */ + public function get($userId, $forwardingEmail, $optParams = array()) + { + $params = array('userId' => $userId, 'forwardingEmail' => $forwardingEmail); + $params = \array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Gmail_ForwardingAddress"); + } + /** + * Lists the forwarding addresses for the specified account. + * (forwardingAddresses.listUsersSettingsForwardingAddresses) + * + * @param string $userId User's email address. The special value "me" can be + * used to indicate the authenticated user. + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_ListForwardingAddressesResponse + */ + public function listUsersSettingsForwardingAddresses($userId, $optParams = array()) + { + $params = array('userId' => $userId); + $params = \array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Gmail_ListForwardingAddressesResponse"); + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsSendAs.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsSendAs.php new file mode 100644 index 0000000..6ae901c --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsSendAs.php @@ -0,0 +1,153 @@ + + * $gmailService = new Google_Service_Gmail(...); + * $sendAs = $gmailService->sendAs; + * + */ +class Google_Service_Gmail_Resource_UsersSettingsSendAs extends \WPMailSMTP\Vendor\Google_Service_Resource +{ + /** + * Creates a custom "from" send-as alias. If an SMTP MSA is specified, Gmail + * will attempt to connect to the SMTP service to validate the configuration + * before creating the alias. If ownership verification is required for the + * alias, a message will be sent to the email address and the resource's + * verification status will be set to `pending`; otherwise, the resource will be + * created with verification status set to `accepted`. If a signature is + * provided, Gmail will sanitize the HTML before saving it with the alias. This + * method is only available to service account clients that have been delegated + * domain-wide authority. (sendAs.create) + * + * @param string $userId User's email address. The special value "me" can be + * used to indicate the authenticated user. + * @param Google_Service_Gmail_SendAs $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_SendAs + */ + public function create($userId, \WPMailSMTP\Vendor\Google_Service_Gmail_SendAs $postBody, $optParams = array()) + { + $params = array('userId' => $userId, 'postBody' => $postBody); + $params = \array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_Gmail_SendAs"); + } + /** + * Deletes the specified send-as alias. Revokes any verification that may have + * been required for using it. This method is only available to service account + * clients that have been delegated domain-wide authority. (sendAs.delete) + * + * @param string $userId User's email address. The special value "me" can be + * used to indicate the authenticated user. + * @param string $sendAsEmail The send-as alias to be deleted. + * @param array $optParams Optional parameters. + */ + public function delete($userId, $sendAsEmail, $optParams = array()) + { + $params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail); + $params = \array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Gets the specified send-as alias. Fails with an HTTP 404 error if the + * specified address is not a member of the collection. (sendAs.get) + * + * @param string $userId User's email address. The special value "me" can be + * used to indicate the authenticated user. + * @param string $sendAsEmail The send-as alias to be retrieved. + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_SendAs + */ + public function get($userId, $sendAsEmail, $optParams = array()) + { + $params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail); + $params = \array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Gmail_SendAs"); + } + /** + * Lists the send-as aliases for the specified account. The result includes the + * primary send-as address associated with the account as well as any custom + * "from" aliases. (sendAs.listUsersSettingsSendAs) + * + * @param string $userId User's email address. The special value "me" can be + * used to indicate the authenticated user. + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_ListSendAsResponse + */ + public function listUsersSettingsSendAs($userId, $optParams = array()) + { + $params = array('userId' => $userId); + $params = \array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Gmail_ListSendAsResponse"); + } + /** + * Patch the specified send-as alias. (sendAs.patch) + * + * @param string $userId User's email address. The special value "me" can be + * used to indicate the authenticated user. + * @param string $sendAsEmail The send-as alias to be updated. + * @param Google_Service_Gmail_SendAs $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_SendAs + */ + public function patch($userId, $sendAsEmail, \WPMailSMTP\Vendor\Google_Service_Gmail_SendAs $postBody, $optParams = array()) + { + $params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail, 'postBody' => $postBody); + $params = \array_merge($params, $optParams); + return $this->call('patch', array($params), "Google_Service_Gmail_SendAs"); + } + /** + * Updates a send-as alias. If a signature is provided, Gmail will sanitize the + * HTML before saving it with the alias. Addresses other than the primary + * address for the account can only be updated by service account clients that + * have been delegated domain-wide authority. (sendAs.update) + * + * @param string $userId User's email address. The special value "me" can be + * used to indicate the authenticated user. + * @param string $sendAsEmail The send-as alias to be updated. + * @param Google_Service_Gmail_SendAs $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_SendAs + */ + public function update($userId, $sendAsEmail, \WPMailSMTP\Vendor\Google_Service_Gmail_SendAs $postBody, $optParams = array()) + { + $params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail, 'postBody' => $postBody); + $params = \array_merge($params, $optParams); + return $this->call('update', array($params), "Google_Service_Gmail_SendAs"); + } + /** + * Sends a verification email to the specified send-as alias address. The + * verification status must be `pending`. This method is only available to + * service account clients that have been delegated domain-wide authority. + * (sendAs.verify) + * + * @param string $userId User's email address. The special value "me" can be + * used to indicate the authenticated user. + * @param string $sendAsEmail The send-as alias to be verified. + * @param array $optParams Optional parameters. + */ + public function verify($userId, $sendAsEmail, $optParams = array()) + { + $params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail); + $params = \array_merge($params, $optParams); + return $this->call('verify', array($params)); + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsSendAsSmimeInfo.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsSendAsSmimeInfo.php new file mode 100644 index 0000000..7c2ae54 --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersSettingsSendAsSmimeInfo.php @@ -0,0 +1,117 @@ + + * $gmailService = new Google_Service_Gmail(...); + * $smimeInfo = $gmailService->smimeInfo; + * + */ +class Google_Service_Gmail_Resource_UsersSettingsSendAsSmimeInfo extends \WPMailSMTP\Vendor\Google_Service_Resource +{ + /** + * Deletes the specified S/MIME config for the specified send-as alias. + * (smimeInfo.delete) + * + * @param string $userId The user's email address. The special value `me` can be + * used to indicate the authenticated user. + * @param string $sendAsEmail The email address that appears in the "From:" + * header for mail sent using this alias. + * @param string $id The immutable ID for the SmimeInfo. + * @param array $optParams Optional parameters. + */ + public function delete($userId, $sendAsEmail, $id, $optParams = array()) + { + $params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail, 'id' => $id); + $params = \array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Gets the specified S/MIME config for the specified send-as alias. + * (smimeInfo.get) + * + * @param string $userId The user's email address. The special value `me` can be + * used to indicate the authenticated user. + * @param string $sendAsEmail The email address that appears in the "From:" + * header for mail sent using this alias. + * @param string $id The immutable ID for the SmimeInfo. + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_SmimeInfo + */ + public function get($userId, $sendAsEmail, $id, $optParams = array()) + { + $params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail, 'id' => $id); + $params = \array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Gmail_SmimeInfo"); + } + /** + * Insert (upload) the given S/MIME config for the specified send-as alias. Note + * that pkcs12 format is required for the key. (smimeInfo.insert) + * + * @param string $userId The user's email address. The special value `me` can be + * used to indicate the authenticated user. + * @param string $sendAsEmail The email address that appears in the "From:" + * header for mail sent using this alias. + * @param Google_Service_Gmail_SmimeInfo $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_SmimeInfo + */ + public function insert($userId, $sendAsEmail, \WPMailSMTP\Vendor\Google_Service_Gmail_SmimeInfo $postBody, $optParams = array()) + { + $params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail, 'postBody' => $postBody); + $params = \array_merge($params, $optParams); + return $this->call('insert', array($params), "Google_Service_Gmail_SmimeInfo"); + } + /** + * Lists S/MIME configs for the specified send-as alias. + * (smimeInfo.listUsersSettingsSendAsSmimeInfo) + * + * @param string $userId The user's email address. The special value `me` can be + * used to indicate the authenticated user. + * @param string $sendAsEmail The email address that appears in the "From:" + * header for mail sent using this alias. + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_ListSmimeInfoResponse + */ + public function listUsersSettingsSendAsSmimeInfo($userId, $sendAsEmail, $optParams = array()) + { + $params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail); + $params = \array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Gmail_ListSmimeInfoResponse"); + } + /** + * Sets the default S/MIME config for the specified send-as alias. + * (smimeInfo.setDefault) + * + * @param string $userId The user's email address. The special value `me` can be + * used to indicate the authenticated user. + * @param string $sendAsEmail The email address that appears in the "From:" + * header for mail sent using this alias. + * @param string $id The immutable ID for the SmimeInfo. + * @param array $optParams Optional parameters. + */ + public function setDefault($userId, $sendAsEmail, $id, $optParams = array()) + { + $params = array('userId' => $userId, 'sendAsEmail' => $sendAsEmail, 'id' => $id); + $params = \array_merge($params, $optParams); + return $this->call('setDefault', array($params)); + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersThreads.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersThreads.php new file mode 100644 index 0000000..3bb6b5d --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Resource/UsersThreads.php @@ -0,0 +1,137 @@ + + * $gmailService = new Google_Service_Gmail(...); + * $threads = $gmailService->threads; + * + */ +class Google_Service_Gmail_Resource_UsersThreads extends \WPMailSMTP\Vendor\Google_Service_Resource +{ + /** + * Immediately and permanently deletes the specified thread. This operation + * cannot be undone. Prefer `threads.trash` instead. (threads.delete) + * + * @param string $userId The user's email address. The special value `me` can be + * used to indicate the authenticated user. + * @param string $id ID of the Thread to delete. + * @param array $optParams Optional parameters. + */ + public function delete($userId, $id, $optParams = array()) + { + $params = array('userId' => $userId, 'id' => $id); + $params = \array_merge($params, $optParams); + return $this->call('delete', array($params)); + } + /** + * Gets the specified thread. (threads.get) + * + * @param string $userId The user's email address. The special value `me` can be + * used to indicate the authenticated user. + * @param string $id The ID of the thread to retrieve. + * @param array $optParams Optional parameters. + * + * @opt_param string metadataHeaders When given and format is METADATA, only + * include headers specified. + * @opt_param string format The format to return the messages in. + * @return Google_Service_Gmail_Thread + */ + public function get($userId, $id, $optParams = array()) + { + $params = array('userId' => $userId, 'id' => $id); + $params = \array_merge($params, $optParams); + return $this->call('get', array($params), "Google_Service_Gmail_Thread"); + } + /** + * Lists the threads in the user's mailbox. (threads.listUsersThreads) + * + * @param string $userId The user's email address. The special value `me` can be + * used to indicate the authenticated user. + * @param array $optParams Optional parameters. + * + * @opt_param string maxResults Maximum number of threads to return. + * @opt_param string pageToken Page token to retrieve a specific page of results + * in the list. + * @opt_param string q Only return threads matching the specified query. + * Supports the same query format as the Gmail search box. For example, + * `"from:someuser@example.com rfc822msgid: is:unread"`. Parameter cannot be + * used when accessing the api using the gmail.metadata scope. + * @opt_param string labelIds Only return threads with labels that match all of + * the specified label IDs. + * @opt_param bool includeSpamTrash Include threads from `SPAM` and `TRASH` in + * the results. + * @return Google_Service_Gmail_ListThreadsResponse + */ + public function listUsersThreads($userId, $optParams = array()) + { + $params = array('userId' => $userId); + $params = \array_merge($params, $optParams); + return $this->call('list', array($params), "Google_Service_Gmail_ListThreadsResponse"); + } + /** + * Modifies the labels applied to the thread. This applies to all messages in + * the thread. (threads.modify) + * + * @param string $userId The user's email address. The special value `me` can be + * used to indicate the authenticated user. + * @param string $id The ID of the thread to modify. + * @param Google_Service_Gmail_ModifyThreadRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Thread + */ + public function modify($userId, $id, \WPMailSMTP\Vendor\Google_Service_Gmail_ModifyThreadRequest $postBody, $optParams = array()) + { + $params = array('userId' => $userId, 'id' => $id, 'postBody' => $postBody); + $params = \array_merge($params, $optParams); + return $this->call('modify', array($params), "Google_Service_Gmail_Thread"); + } + /** + * Moves the specified thread to the trash. (threads.trash) + * + * @param string $userId The user's email address. The special value `me` can be + * used to indicate the authenticated user. + * @param string $id The ID of the thread to Trash. + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Thread + */ + public function trash($userId, $id, $optParams = array()) + { + $params = array('userId' => $userId, 'id' => $id); + $params = \array_merge($params, $optParams); + return $this->call('trash', array($params), "Google_Service_Gmail_Thread"); + } + /** + * Removes the specified thread from the trash. (threads.untrash) + * + * @param string $userId The user's email address. The special value `me` can be + * used to indicate the authenticated user. + * @param string $id The ID of the thread to remove from Trash. + * @param array $optParams Optional parameters. + * @return Google_Service_Gmail_Thread + */ + public function untrash($userId, $id, $optParams = array()) + { + $params = array('userId' => $userId, 'id' => $id); + $params = \array_merge($params, $optParams); + return $this->call('untrash', array($params), "Google_Service_Gmail_Thread"); + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/SendAs.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/SendAs.php new file mode 100644 index 0000000..eec2742 --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/SendAs.php @@ -0,0 +1,110 @@ +displayName = $displayName; + } + public function getDisplayName() + { + return $this->displayName; + } + public function setIsDefault($isDefault) + { + $this->isDefault = $isDefault; + } + public function getIsDefault() + { + return $this->isDefault; + } + public function setIsPrimary($isPrimary) + { + $this->isPrimary = $isPrimary; + } + public function getIsPrimary() + { + return $this->isPrimary; + } + public function setReplyToAddress($replyToAddress) + { + $this->replyToAddress = $replyToAddress; + } + public function getReplyToAddress() + { + return $this->replyToAddress; + } + public function setSendAsEmail($sendAsEmail) + { + $this->sendAsEmail = $sendAsEmail; + } + public function getSendAsEmail() + { + return $this->sendAsEmail; + } + public function setSignature($signature) + { + $this->signature = $signature; + } + public function getSignature() + { + return $this->signature; + } + /** + * @param Google_Service_Gmail_SmtpMsa + */ + public function setSmtpMsa(\WPMailSMTP\Vendor\Google_Service_Gmail_SmtpMsa $smtpMsa) + { + $this->smtpMsa = $smtpMsa; + } + /** + * @return Google_Service_Gmail_SmtpMsa + */ + public function getSmtpMsa() + { + return $this->smtpMsa; + } + public function setTreatAsAlias($treatAsAlias) + { + $this->treatAsAlias = $treatAsAlias; + } + public function getTreatAsAlias() + { + return $this->treatAsAlias; + } + public function setVerificationStatus($verificationStatus) + { + $this->verificationStatus = $verificationStatus; + } + public function getVerificationStatus() + { + return $this->verificationStatus; + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/SmimeInfo.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/SmimeInfo.php new file mode 100644 index 0000000..5ec67f9 --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/SmimeInfo.php @@ -0,0 +1,85 @@ +encryptedKeyPassword = $encryptedKeyPassword; + } + public function getEncryptedKeyPassword() + { + return $this->encryptedKeyPassword; + } + public function setExpiration($expiration) + { + $this->expiration = $expiration; + } + public function getExpiration() + { + return $this->expiration; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + public function setIsDefault($isDefault) + { + $this->isDefault = $isDefault; + } + public function getIsDefault() + { + return $this->isDefault; + } + public function setIssuerCn($issuerCn) + { + $this->issuerCn = $issuerCn; + } + public function getIssuerCn() + { + return $this->issuerCn; + } + public function setPem($pem) + { + $this->pem = $pem; + } + public function getPem() + { + return $this->pem; + } + public function setPkcs12($pkcs12) + { + $this->pkcs12 = $pkcs12; + } + public function getPkcs12() + { + return $this->pkcs12; + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/SmtpMsa.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/SmtpMsa.php new file mode 100644 index 0000000..357aa80 --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/SmtpMsa.php @@ -0,0 +1,67 @@ +host = $host; + } + public function getHost() + { + return $this->host; + } + public function setPassword($password) + { + $this->password = $password; + } + public function getPassword() + { + return $this->password; + } + public function setPort($port) + { + $this->port = $port; + } + public function getPort() + { + return $this->port; + } + public function setSecurityMode($securityMode) + { + $this->securityMode = $securityMode; + } + public function getSecurityMode() + { + return $this->securityMode; + } + public function setUsername($username) + { + $this->username = $username; + } + public function getUsername() + { + return $this->username; + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Thread.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Thread.php new file mode 100644 index 0000000..07b1a1a --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/Thread.php @@ -0,0 +1,66 @@ +historyId = $historyId; + } + public function getHistoryId() + { + return $this->historyId; + } + public function setId($id) + { + $this->id = $id; + } + public function getId() + { + return $this->id; + } + /** + * @param Google_Service_Gmail_Message + */ + public function setMessages($messages) + { + $this->messages = $messages; + } + /** + * @return Google_Service_Gmail_Message + */ + public function getMessages() + { + return $this->messages; + } + public function setSnippet($snippet) + { + $this->snippet = $snippet; + } + public function getSnippet() + { + return $this->snippet; + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/VacationSettings.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/VacationSettings.php new file mode 100644 index 0000000..c6c3ba7 --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/VacationSettings.php @@ -0,0 +1,94 @@ +enableAutoReply = $enableAutoReply; + } + public function getEnableAutoReply() + { + return $this->enableAutoReply; + } + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + public function getEndTime() + { + return $this->endTime; + } + public function setResponseBodyHtml($responseBodyHtml) + { + $this->responseBodyHtml = $responseBodyHtml; + } + public function getResponseBodyHtml() + { + return $this->responseBodyHtml; + } + public function setResponseBodyPlainText($responseBodyPlainText) + { + $this->responseBodyPlainText = $responseBodyPlainText; + } + public function getResponseBodyPlainText() + { + return $this->responseBodyPlainText; + } + public function setResponseSubject($responseSubject) + { + $this->responseSubject = $responseSubject; + } + public function getResponseSubject() + { + return $this->responseSubject; + } + public function setRestrictToContacts($restrictToContacts) + { + $this->restrictToContacts = $restrictToContacts; + } + public function getRestrictToContacts() + { + return $this->restrictToContacts; + } + public function setRestrictToDomain($restrictToDomain) + { + $this->restrictToDomain = $restrictToDomain; + } + public function getRestrictToDomain() + { + return $this->restrictToDomain; + } + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + public function getStartTime() + { + return $this->startTime; + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/WatchRequest.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/WatchRequest.php new file mode 100644 index 0000000..48afc65 --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/WatchRequest.php @@ -0,0 +1,50 @@ +labelFilterAction = $labelFilterAction; + } + public function getLabelFilterAction() + { + return $this->labelFilterAction; + } + public function setLabelIds($labelIds) + { + $this->labelIds = $labelIds; + } + public function getLabelIds() + { + return $this->labelIds; + } + public function setTopicName($topicName) + { + $this->topicName = $topicName; + } + public function getTopicName() + { + return $this->topicName; + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/WatchResponse.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/WatchResponse.php similarity index 53% rename from wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/WatchResponse.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/WatchResponse.php index d7dc3bf..359fb9f 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/src/Google/Service/Gmail/WatchResponse.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient-services/src/Google/Service/Gmail/WatchResponse.php @@ -1,4 +1,7 @@ expiration = $expiration; - } - public function getExpiration() - { - return $this->expiration; - } - public function setHistoryId($historyId) - { - $this->historyId = $historyId; - } - public function getHistoryId() - { - return $this->historyId; - } + public $expiration; + public $historyId; + public function setExpiration($expiration) + { + $this->expiration = $expiration; + } + public function getExpiration() + { + return $this->expiration; + } + public function setHistoryId($historyId) + { + $this->historyId = $historyId; + } + public function getHistoryId() + { + return $this->historyId; + } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/LICENSE b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/LICENSE similarity index 100% rename from wp-content/plugins/wp-mail-smtp/vendor/google/apiclient-services/LICENSE rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/LICENSE diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/AccessToken/Revoke.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/AccessToken/Revoke.php new file mode 100644 index 0000000..76268ab --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/AccessToken/Revoke.php @@ -0,0 +1,64 @@ +http = $http; + } + /** + * Revoke an OAuth2 access token or refresh token. This method will revoke the current access + * token, if a token isn't provided. + * + * @param string|array $token The token (access token or a refresh token) that should be revoked. + * @return boolean Returns True if the revocation was successful, otherwise False. + */ + public function revokeToken($token) + { + if (\is_array($token)) { + if (isset($token['refresh_token'])) { + $token = $token['refresh_token']; + } else { + $token = $token['access_token']; + } + } + $body = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\stream_for(\http_build_query(array('token' => $token))); + $request = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('POST', \WPMailSMTP\Vendor\Google_Client::OAUTH2_REVOKE_URI, ['Cache-Control' => 'no-store', 'Content-Type' => 'application/x-www-form-urlencoded'], $body); + $httpHandler = \WPMailSMTP\Vendor\Google\Auth\HttpHandler\HttpHandlerFactory::build($this->http); + $response = $httpHandler($request); + return $response->getStatusCode() == 200; + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/AccessToken/Verify.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/AccessToken/Verify.php new file mode 100644 index 0000000..a160a36 --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/AccessToken/Verify.php @@ -0,0 +1,218 @@ +http = $http; + $this->cache = $cache; + $this->jwt = $jwt ?: $this->getJwtService(); + } + /** + * Verifies an id token and returns the authenticated apiLoginTicket. + * Throws an exception if the id token is not valid. + * The audience parameter can be used to control which id tokens are + * accepted. By default, the id token must have been issued to this OAuth2 client. + * + * @param string $idToken the ID token in JWT format + * @param string $audience Optional. The audience to verify against JWt "aud" + * @return array the token payload, if successful + */ + public function verifyIdToken($idToken, $audience = null) + { + if (empty($idToken)) { + throw new \LogicException('id_token cannot be null'); + } + // set phpseclib constants if applicable + $this->setPhpsecConstants(); + // Check signature + $certs = $this->getFederatedSignOnCerts(); + foreach ($certs as $cert) { + $bigIntClass = $this->getBigIntClass(); + $rsaClass = $this->getRsaClass(); + $modulus = new $bigIntClass($this->jwt->urlsafeB64Decode($cert['n']), 256); + $exponent = new $bigIntClass($this->jwt->urlsafeB64Decode($cert['e']), 256); + $rsa = new $rsaClass(); + $rsa->loadKey(array('n' => $modulus, 'e' => $exponent)); + try { + $payload = $this->jwt->decode($idToken, $rsa->getPublicKey(), array('RS256')); + if (\property_exists($payload, 'aud')) { + if ($audience && $payload->aud != $audience) { + return \false; + } + } + // support HTTP and HTTPS issuers + // @see https://developers.google.com/identity/sign-in/web/backend-auth + $issuers = array(self::OAUTH2_ISSUER, self::OAUTH2_ISSUER_HTTPS); + if (!isset($payload->iss) || !\in_array($payload->iss, $issuers)) { + return \false; + } + return (array) $payload; + } catch (\WPMailSMTP\Vendor\ExpiredException $e) { + return \false; + } catch (\WPMailSMTP\Vendor\Firebase\JWT\ExpiredException $e) { + return \false; + } catch (\WPMailSMTP\Vendor\Firebase\JWT\SignatureInvalidException $e) { + // continue + } catch (\DomainException $e) { + // continue + } + } + return \false; + } + private function getCache() + { + return $this->cache; + } + /** + * Retrieve and cache a certificates file. + * + * @param $url string location + * @throws Google_Exception + * @return array certificates + */ + private function retrieveCertsFromLocation($url) + { + // If we're retrieving a local file, just grab it. + if (0 !== \strpos($url, 'http')) { + if (!($file = \file_get_contents($url))) { + throw new \WPMailSMTP\Vendor\Google_Exception("Failed to retrieve verification certificates: '" . $url . "'."); + } + return \json_decode($file, \true); + } + $response = $this->http->get($url); + if ($response->getStatusCode() == 200) { + return \json_decode((string) $response->getBody(), \true); + } + throw new \WPMailSMTP\Vendor\Google_Exception(\sprintf('Failed to retrieve verification certificates: "%s".', $response->getBody()->getContents()), $response->getStatusCode()); + } + // Gets federated sign-on certificates to use for verifying identity tokens. + // Returns certs as array structure, where keys are key ids, and values + // are PEM encoded certificates. + private function getFederatedSignOnCerts() + { + $certs = null; + if ($cache = $this->getCache()) { + $cacheItem = $cache->getItem('federated_signon_certs_v3'); + $certs = $cacheItem->get(); + } + if (!$certs) { + $certs = $this->retrieveCertsFromLocation(self::FEDERATED_SIGNON_CERT_URL); + if ($cache) { + $cacheItem->expiresAt(new \DateTime('+1 hour')); + $cacheItem->set($certs); + $cache->save($cacheItem); + } + } + if (!isset($certs['keys'])) { + throw new \InvalidArgumentException('federated sign-on certs expects "keys" to be set'); + } + return $certs['keys']; + } + private function getJwtService() + { + $jwtClass = 'JWT'; + if (\class_exists('WPMailSMTP\\Vendor\\Firebase\\JWT\\JWT')) { + $jwtClass = 'WPMailSMTP\\Vendor\\Firebase\\JWT\\JWT'; + } + if (\property_exists($jwtClass, 'leeway') && $jwtClass::$leeway < 1) { + // Ensures JWT leeway is at least 1 + // @see https://github.com/google/google-api-php-client/issues/827 + $jwtClass::$leeway = 1; + } + return new $jwtClass(); + } + private function getRsaClass() + { + if (\class_exists('WPMailSMTP\\Vendor\\phpseclib\\Crypt\\RSA')) { + return 'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\RSA'; + } + return 'Crypt_RSA'; + } + private function getBigIntClass() + { + if (\class_exists('WPMailSMTP\\Vendor\\phpseclib\\Math\\BigInteger')) { + return 'WPMailSMTP\\Vendor\\phpseclib\\Math\\BigInteger'; + } + return 'Math_BigInteger'; + } + private function getOpenSslConstant() + { + if (\class_exists('WPMailSMTP\\Vendor\\phpseclib\\Crypt\\RSA')) { + return 'WPMailSMTP\\Vendor\\phpseclib\\Crypt\\RSA::MODE_OPENSSL'; + } + if (\class_exists('WPMailSMTP\\Vendor\\Crypt_RSA')) { + return 'CRYPT_RSA_MODE_OPENSSL'; + } + throw new \Exception('Cannot find RSA class'); + } + /** + * phpseclib calls "phpinfo" by default, which requires special + * whitelisting in the AppEngine VM environment. This function + * sets constants to bypass the need for phpseclib to check phpinfo + * + * @see phpseclib/Math/BigInteger + * @see https://github.com/GoogleCloudPlatform/getting-started-php/issues/85 + */ + private function setPhpsecConstants() + { + if (\filter_var(\getenv('GAE_VM'), \FILTER_VALIDATE_BOOLEAN)) { + if (!\defined('WPMailSMTP\\Vendor\\MATH_BIGINTEGER_OPENSSL_ENABLED')) { + \define('WPMailSMTP\\Vendor\\MATH_BIGINTEGER_OPENSSL_ENABLED', \true); + } + if (!\defined('WPMailSMTP\\Vendor\\CRYPT_RSA_MODE')) { + \define('WPMailSMTP\\Vendor\\CRYPT_RSA_MODE', \constant($this->getOpenSslConstant())); + } + } + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/AuthHandler/AuthHandlerFactory.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/AuthHandler/AuthHandlerFactory.php new file mode 100644 index 0000000..356ff8c --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/AuthHandler/AuthHandlerFactory.php @@ -0,0 +1,49 @@ +cache = $cache; + $this->cacheConfig = $cacheConfig; + } + public function attachCredentials(\WPMailSMTP\Vendor\GuzzleHttp\ClientInterface $http, \WPMailSMTP\Vendor\Google\Auth\CredentialsLoader $credentials, callable $tokenCallback = null) + { + // use the provided cache + if ($this->cache) { + $credentials = new \WPMailSMTP\Vendor\Google\Auth\FetchAuthTokenCache($credentials, $this->cacheConfig, $this->cache); + } + // if we end up needing to make an HTTP request to retrieve credentials, we + // can use our existing one, but we need to throw exceptions so the error + // bubbles up. + $authHttp = $this->createAuthHttp($http); + $authHttpHandler = \WPMailSMTP\Vendor\Google\Auth\HttpHandler\HttpHandlerFactory::build($authHttp); + $subscriber = new \WPMailSMTP\Vendor\Google\Auth\Subscriber\AuthTokenSubscriber($credentials, $authHttpHandler, $tokenCallback); + $http->setDefaultOption('auth', 'google_auth'); + $http->getEmitter()->attach($subscriber); + return $http; + } + public function attachToken(\WPMailSMTP\Vendor\GuzzleHttp\ClientInterface $http, array $token, array $scopes) + { + $tokenFunc = function ($scopes) use($token) { + return $token['access_token']; + }; + $subscriber = new \WPMailSMTP\Vendor\Google\Auth\Subscriber\ScopedAccessTokenSubscriber($tokenFunc, $scopes, $this->cacheConfig, $this->cache); + $http->setDefaultOption('auth', 'scoped'); + $http->getEmitter()->attach($subscriber); + return $http; + } + public function attachKey(\WPMailSMTP\Vendor\GuzzleHttp\ClientInterface $http, $key) + { + $subscriber = new \WPMailSMTP\Vendor\Google\Auth\Subscriber\SimpleSubscriber(['key' => $key]); + $http->setDefaultOption('auth', 'simple'); + $http->getEmitter()->attach($subscriber); + return $http; + } + private function createAuthHttp(\WPMailSMTP\Vendor\GuzzleHttp\ClientInterface $http) + { + return new \WPMailSMTP\Vendor\GuzzleHttp\Client(['base_url' => $http->getBaseUrl(), 'defaults' => ['exceptions' => \true, 'verify' => $http->getDefaultOption('verify'), 'proxy' => $http->getDefaultOption('proxy')]]); + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/AuthHandler/Guzzle6AuthHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/AuthHandler/Guzzle6AuthHandler.php new file mode 100644 index 0000000..4d53169 --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/AuthHandler/Guzzle6AuthHandler.php @@ -0,0 +1,72 @@ +cache = $cache; + $this->cacheConfig = $cacheConfig; + } + public function attachCredentials(\WPMailSMTP\Vendor\GuzzleHttp\ClientInterface $http, \WPMailSMTP\Vendor\Google\Auth\CredentialsLoader $credentials, callable $tokenCallback = null) + { + // use the provided cache + if ($this->cache) { + $credentials = new \WPMailSMTP\Vendor\Google\Auth\FetchAuthTokenCache($credentials, $this->cacheConfig, $this->cache); + } + // if we end up needing to make an HTTP request to retrieve credentials, we + // can use our existing one, but we need to throw exceptions so the error + // bubbles up. + $authHttp = $this->createAuthHttp($http); + $authHttpHandler = \WPMailSMTP\Vendor\Google\Auth\HttpHandler\HttpHandlerFactory::build($authHttp); + $middleware = new \WPMailSMTP\Vendor\Google\Auth\Middleware\AuthTokenMiddleware($credentials, $authHttpHandler, $tokenCallback); + $config = $http->getConfig(); + $config['handler']->remove('google_auth'); + $config['handler']->push($middleware, 'google_auth'); + $config['auth'] = 'google_auth'; + $http = new \WPMailSMTP\Vendor\GuzzleHttp\Client($config); + return $http; + } + public function attachToken(\WPMailSMTP\Vendor\GuzzleHttp\ClientInterface $http, array $token, array $scopes) + { + $tokenFunc = function ($scopes) use($token) { + return $token['access_token']; + }; + $middleware = new \WPMailSMTP\Vendor\Google\Auth\Middleware\ScopedAccessTokenMiddleware($tokenFunc, $scopes, $this->cacheConfig, $this->cache); + $config = $http->getConfig(); + $config['handler']->remove('google_auth'); + $config['handler']->push($middleware, 'google_auth'); + $config['auth'] = 'scoped'; + $http = new \WPMailSMTP\Vendor\GuzzleHttp\Client($config); + return $http; + } + public function attachKey(\WPMailSMTP\Vendor\GuzzleHttp\ClientInterface $http, $key) + { + $middleware = new \WPMailSMTP\Vendor\Google\Auth\Middleware\SimpleMiddleware(['key' => $key]); + $config = $http->getConfig(); + $config['handler']->remove('google_auth'); + $config['handler']->push($middleware, 'google_auth'); + $config['auth'] = 'simple'; + $http = new \WPMailSMTP\Vendor\GuzzleHttp\Client($config); + return $http; + } + private function createAuthHttp(\WPMailSMTP\Vendor\GuzzleHttp\ClientInterface $http) + { + return new \WPMailSMTP\Vendor\GuzzleHttp\Client(['base_uri' => $http->getConfig('base_uri'), 'exceptions' => \true, 'verify' => $http->getConfig('verify'), 'proxy' => $http->getConfig('proxy')]); + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/AuthHandler/Guzzle7AuthHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/AuthHandler/Guzzle7AuthHandler.php new file mode 100644 index 0000000..f8c5483 --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/AuthHandler/Guzzle7AuthHandler.php @@ -0,0 +1,25 @@ +config = \array_merge([ + 'application_name' => '', + // Don't change these unless you're working against a special development + // or testing environment. + 'base_path' => self::API_BASE_PATH, + // https://developers.google.com/console + 'client_id' => '', + 'client_secret' => '', + // Path to JSON credentials or an array representing those credentials + // @see Google_Client::setAuthConfig + 'credentials' => null, + // @see Google_Client::setScopes + 'scopes' => null, + // Sets X-Goog-User-Project, which specifies a user project to bill + // for access charges associated with the request + 'quota_project' => null, + 'redirect_uri' => null, + 'state' => null, + // Simple API access key, also from the API console. Ensure you get + // a Server key, and not a Browser key. + 'developer_key' => '', + // For use with Google Cloud Platform + // fetch the ApplicationDefaultCredentials, if applicable + // @see https://developers.google.com/identity/protocols/application-default-credentials + 'use_application_default_credentials' => \false, + 'signing_key' => null, + 'signing_algorithm' => null, + 'subject' => null, + // Other OAuth2 parameters. + 'hd' => '', + 'prompt' => '', + 'openid.realm' => '', + 'include_granted_scopes' => null, + 'login_hint' => '', + 'request_visible_actions' => '', + 'access_type' => 'online', + 'approval_prompt' => 'auto', + // Task Runner retry configuration + // @see Google_Task_Runner + 'retry' => array(), + 'retry_map' => null, + // cache config for downstream auth caching + 'cache_config' => [], + // function to be called when an access token is fetched + // follows the signature function ($cacheKey, $accessToken) + 'token_callback' => null, + // Service class used in Google_Client::verifyIdToken. + // Explicitly pass this in to avoid setting JWT::$leeway + 'jwt' => null, + // Setting api_format_v2 will return more detailed error messages + // from certain APIs. + 'api_format_v2' => \false, + ], $config); + if (!\is_null($this->config['credentials'])) { + $this->setAuthConfig($this->config['credentials']); + unset($this->config['credentials']); + } + if (!\is_null($this->config['scopes'])) { + $this->setScopes($this->config['scopes']); + unset($this->config['scopes']); + } + } + /** + * Get a string containing the version of the library. + * + * @return string + */ + public function getLibraryVersion() + { + return self::LIBVER; + } + /** + * For backwards compatibility + * alias for fetchAccessTokenWithAuthCode + * + * @param $code string code from accounts.google.com + * @return array access token + * @deprecated + */ + public function authenticate($code) + { + return $this->fetchAccessTokenWithAuthCode($code); + } + /** + * Attempt to exchange a code for an valid authentication token. + * Helper wrapped around the OAuth 2.0 implementation. + * + * @param $code string code from accounts.google.com + * @return array access token + */ + public function fetchAccessTokenWithAuthCode($code) + { + if (\strlen($code) == 0) { + throw new \InvalidArgumentException("Invalid code"); + } + $auth = $this->getOAuth2Service(); + $auth->setCode($code); + $auth->setRedirectUri($this->getRedirectUri()); + $httpHandler = \WPMailSMTP\Vendor\Google\Auth\HttpHandler\HttpHandlerFactory::build($this->getHttpClient()); + $creds = $auth->fetchAuthToken($httpHandler); + if ($creds && isset($creds['access_token'])) { + $creds['created'] = \time(); + $this->setAccessToken($creds); + } + return $creds; + } + /** + * For backwards compatibility + * alias for fetchAccessTokenWithAssertion + * + * @return array access token + * @deprecated + */ + public function refreshTokenWithAssertion() + { + return $this->fetchAccessTokenWithAssertion(); + } + /** + * Fetches a fresh access token with a given assertion token. + * @param ClientInterface $authHttp optional. + * @return array access token + */ + public function fetchAccessTokenWithAssertion(\WPMailSMTP\Vendor\GuzzleHttp\ClientInterface $authHttp = null) + { + if (!$this->isUsingApplicationDefaultCredentials()) { + throw new \DomainException('set the JSON service account credentials using' . ' Google_Client::setAuthConfig or set the path to your JSON file' . ' with the "GOOGLE_APPLICATION_CREDENTIALS" environment variable' . ' and call Google_Client::useApplicationDefaultCredentials to' . ' refresh a token with assertion.'); + } + $this->getLogger()->log('info', 'OAuth2 access token refresh with Signed JWT assertion grants.'); + $credentials = $this->createApplicationDefaultCredentials(); + $httpHandler = \WPMailSMTP\Vendor\Google\Auth\HttpHandler\HttpHandlerFactory::build($authHttp); + $creds = $credentials->fetchAuthToken($httpHandler); + if ($creds && isset($creds['access_token'])) { + $creds['created'] = \time(); + $this->setAccessToken($creds); + } + return $creds; + } + /** + * For backwards compatibility + * alias for fetchAccessTokenWithRefreshToken + * + * @param string $refreshToken + * @return array access token + */ + public function refreshToken($refreshToken) + { + return $this->fetchAccessTokenWithRefreshToken($refreshToken); + } + /** + * Fetches a fresh OAuth 2.0 access token with the given refresh token. + * @param string $refreshToken + * @return array access token + */ + public function fetchAccessTokenWithRefreshToken($refreshToken = null) + { + if (null === $refreshToken) { + if (!isset($this->token['refresh_token'])) { + throw new \LogicException('refresh token must be passed in or set as part of setAccessToken'); + } + $refreshToken = $this->token['refresh_token']; + } + $this->getLogger()->info('OAuth2 access token refresh'); + $auth = $this->getOAuth2Service(); + $auth->setRefreshToken($refreshToken); + $httpHandler = \WPMailSMTP\Vendor\Google\Auth\HttpHandler\HttpHandlerFactory::build($this->getHttpClient()); + $creds = $auth->fetchAuthToken($httpHandler); + if ($creds && isset($creds['access_token'])) { + $creds['created'] = \time(); + if (!isset($creds['refresh_token'])) { + $creds['refresh_token'] = $refreshToken; + } + $this->setAccessToken($creds); + } + return $creds; + } + /** + * Create a URL to obtain user authorization. + * The authorization endpoint allows the user to first + * authenticate, and then grant/deny the access request. + * @param string|array $scope The scope is expressed as an array or list of space-delimited strings. + * @return string + */ + public function createAuthUrl($scope = null) + { + if (empty($scope)) { + $scope = $this->prepareScopes(); + } + if (\is_array($scope)) { + $scope = \implode(' ', $scope); + } + // only accept one of prompt or approval_prompt + $approvalPrompt = $this->config['prompt'] ? null : $this->config['approval_prompt']; + // include_granted_scopes should be string "true", string "false", or null + $includeGrantedScopes = $this->config['include_granted_scopes'] === null ? null : \var_export($this->config['include_granted_scopes'], \true); + $params = \array_filter(['access_type' => $this->config['access_type'], 'approval_prompt' => $approvalPrompt, 'hd' => $this->config['hd'], 'include_granted_scopes' => $includeGrantedScopes, 'login_hint' => $this->config['login_hint'], 'openid.realm' => $this->config['openid.realm'], 'prompt' => $this->config['prompt'], 'response_type' => 'code', 'scope' => $scope, 'state' => $this->config['state']]); + // If the list of scopes contains plus.login, add request_visible_actions + // to auth URL. + $rva = $this->config['request_visible_actions']; + if (\strlen($rva) > 0 && \false !== \strpos($scope, 'plus.login')) { + $params['request_visible_actions'] = $rva; + } + $auth = $this->getOAuth2Service(); + return (string) $auth->buildFullAuthorizationUri($params); + } + /** + * Adds auth listeners to the HTTP client based on the credentials + * set in the Google API Client object + * + * @param GuzzleHttp\ClientInterface $http the http client object. + * @return GuzzleHttp\ClientInterface the http client object + */ + public function authorize(\WPMailSMTP\Vendor\GuzzleHttp\ClientInterface $http = null) + { + $credentials = null; + $token = null; + $scopes = null; + if (null === $http) { + $http = $this->getHttpClient(); + } + // These conditionals represent the decision tree for authentication + // 1. Check for Application Default Credentials + // 2. Check for API Key + // 3a. Check for an Access Token + // 3b. If access token exists but is expired, try to refresh it + if ($this->isUsingApplicationDefaultCredentials()) { + $credentials = $this->createApplicationDefaultCredentials(); + } elseif ($token = $this->getAccessToken()) { + $scopes = $this->prepareScopes(); + // add refresh subscriber to request a new token + if (isset($token['refresh_token']) && $this->isAccessTokenExpired()) { + $credentials = $this->createUserRefreshCredentials($scopes, $token['refresh_token']); + } + } + $authHandler = $this->getAuthHandler(); + if ($credentials) { + $callback = $this->config['token_callback']; + $http = $authHandler->attachCredentials($http, $credentials, $callback); + } elseif ($token) { + $http = $authHandler->attachToken($http, $token, (array) $scopes); + } elseif ($key = $this->config['developer_key']) { + $http = $authHandler->attachKey($http, $key); + } + return $http; + } + /** + * Set the configuration to use application default credentials for + * authentication + * + * @see https://developers.google.com/identity/protocols/application-default-credentials + * @param boolean $useAppCreds + */ + public function useApplicationDefaultCredentials($useAppCreds = \true) + { + $this->config['use_application_default_credentials'] = $useAppCreds; + } + /** + * To prevent useApplicationDefaultCredentials from inappropriately being + * called in a conditional + * + * @see https://developers.google.com/identity/protocols/application-default-credentials + */ + public function isUsingApplicationDefaultCredentials() + { + return $this->config['use_application_default_credentials']; + } + /** + * Set the access token used for requests. + * + * Note that at the time requests are sent, tokens are cached. A token will be + * cached for each combination of service and authentication scopes. If a + * cache pool is not provided, creating a new instance of the client will + * allow modification of access tokens. If a persistent cache pool is + * provided, in order to change the access token, you must clear the cached + * token by calling `$client->getCache()->clear()`. (Use caution in this case, + * as calling `clear()` will remove all cache items, including any items not + * related to Google API PHP Client.) + * + * @param string|array $token + * @throws InvalidArgumentException + */ + public function setAccessToken($token) + { + if (\is_string($token)) { + if ($json = \json_decode($token, \true)) { + $token = $json; + } else { + // assume $token is just the token string + $token = array('access_token' => $token); + } + } + if ($token == null) { + throw new \InvalidArgumentException('invalid json token'); + } + if (!isset($token['access_token'])) { + throw new \InvalidArgumentException("Invalid token format"); + } + $this->token = $token; + } + public function getAccessToken() + { + return $this->token; + } + /** + * @return string|null + */ + public function getRefreshToken() + { + if (isset($this->token['refresh_token'])) { + return $this->token['refresh_token']; + } + return null; + } + /** + * Returns if the access_token is expired. + * @return bool Returns True if the access_token is expired. + */ + public function isAccessTokenExpired() + { + if (!$this->token) { + return \true; + } + $created = 0; + if (isset($this->token['created'])) { + $created = $this->token['created']; + } elseif (isset($this->token['id_token'])) { + // check the ID token for "iat" + // signature verification is not required here, as we are just + // using this for convenience to save a round trip request + // to the Google API server + $idToken = $this->token['id_token']; + if (\substr_count($idToken, '.') == 2) { + $parts = \explode('.', $idToken); + $payload = \json_decode(\base64_decode($parts[1]), \true); + if ($payload && isset($payload['iat'])) { + $created = $payload['iat']; + } + } + } + // If the token is set to expire in the next 30 seconds. + return $created + ($this->token['expires_in'] - 30) < \time(); + } + /** + * @deprecated See UPGRADING.md for more information + */ + public function getAuth() + { + throw new \BadMethodCallException('This function no longer exists. See UPGRADING.md for more information'); + } + /** + * @deprecated See UPGRADING.md for more information + */ + public function setAuth($auth) + { + throw new \BadMethodCallException('This function no longer exists. See UPGRADING.md for more information'); + } + /** + * Set the OAuth 2.0 Client ID. + * @param string $clientId + */ + public function setClientId($clientId) + { + $this->config['client_id'] = $clientId; + } + public function getClientId() + { + return $this->config['client_id']; + } + /** + * Set the OAuth 2.0 Client Secret. + * @param string $clientSecret + */ + public function setClientSecret($clientSecret) + { + $this->config['client_secret'] = $clientSecret; + } + public function getClientSecret() + { + return $this->config['client_secret']; + } + /** + * Set the OAuth 2.0 Redirect URI. + * @param string $redirectUri + */ + public function setRedirectUri($redirectUri) + { + $this->config['redirect_uri'] = $redirectUri; + } + public function getRedirectUri() + { + return $this->config['redirect_uri']; + } + /** + * Set OAuth 2.0 "state" parameter to achieve per-request customization. + * @see http://tools.ietf.org/html/draft-ietf-oauth-v2-22#section-3.1.2.2 + * @param string $state + */ + public function setState($state) + { + $this->config['state'] = $state; + } + /** + * @param string $accessType Possible values for access_type include: + * {@code "offline"} to request offline access from the user. + * {@code "online"} to request online access from the user. + */ + public function setAccessType($accessType) + { + $this->config['access_type'] = $accessType; + } + /** + * @param string $approvalPrompt Possible values for approval_prompt include: + * {@code "force"} to force the approval UI to appear. + * {@code "auto"} to request auto-approval when possible. (This is the default value) + */ + public function setApprovalPrompt($approvalPrompt) + { + $this->config['approval_prompt'] = $approvalPrompt; + } + /** + * Set the login hint, email address or sub id. + * @param string $loginHint + */ + public function setLoginHint($loginHint) + { + $this->config['login_hint'] = $loginHint; + } + /** + * Set the application name, this is included in the User-Agent HTTP header. + * @param string $applicationName + */ + public function setApplicationName($applicationName) + { + $this->config['application_name'] = $applicationName; + } + /** + * If 'plus.login' is included in the list of requested scopes, you can use + * this method to define types of app activities that your app will write. + * You can find a list of available types here: + * @link https://developers.google.com/+/api/moment-types + * + * @param array $requestVisibleActions Array of app activity types + */ + public function setRequestVisibleActions($requestVisibleActions) + { + if (\is_array($requestVisibleActions)) { + $requestVisibleActions = \implode(" ", $requestVisibleActions); + } + $this->config['request_visible_actions'] = $requestVisibleActions; + } + /** + * Set the developer key to use, these are obtained through the API Console. + * @see http://code.google.com/apis/console-help/#generatingdevkeys + * @param string $developerKey + */ + public function setDeveloperKey($developerKey) + { + $this->config['developer_key'] = $developerKey; + } + /** + * Set the hd (hosted domain) parameter streamlines the login process for + * Google Apps hosted accounts. By including the domain of the user, you + * restrict sign-in to accounts at that domain. + * @param $hd string - the domain to use. + */ + public function setHostedDomain($hd) + { + $this->config['hd'] = $hd; + } + /** + * Set the prompt hint. Valid values are none, consent and select_account. + * If no value is specified and the user has not previously authorized + * access, then the user is shown a consent screen. + * @param $prompt string + * {@code "none"} Do not display any authentication or consent screens. Must not be specified with other values. + * {@code "consent"} Prompt the user for consent. + * {@code "select_account"} Prompt the user to select an account. + */ + public function setPrompt($prompt) + { + $this->config['prompt'] = $prompt; + } + /** + * openid.realm is a parameter from the OpenID 2.0 protocol, not from OAuth + * 2.0. It is used in OpenID 2.0 requests to signify the URL-space for which + * an authentication request is valid. + * @param $realm string - the URL-space to use. + */ + public function setOpenidRealm($realm) + { + $this->config['openid.realm'] = $realm; + } + /** + * If this is provided with the value true, and the authorization request is + * granted, the authorization will include any previous authorizations + * granted to this user/application combination for other scopes. + * @param $include boolean - the URL-space to use. + */ + public function setIncludeGrantedScopes($include) + { + $this->config['include_granted_scopes'] = $include; + } + /** + * sets function to be called when an access token is fetched + * @param callable $tokenCallback - function ($cacheKey, $accessToken) + */ + public function setTokenCallback(callable $tokenCallback) + { + $this->config['token_callback'] = $tokenCallback; + } + /** + * Revoke an OAuth2 access token or refresh token. This method will revoke the current access + * token, if a token isn't provided. + * + * @param string|array|null $token The token (access token or a refresh token) that should be revoked. + * @return boolean Returns True if the revocation was successful, otherwise False. + */ + public function revokeToken($token = null) + { + $tokenRevoker = new \WPMailSMTP\Vendor\Google_AccessToken_Revoke($this->getHttpClient()); + return $tokenRevoker->revokeToken($token ?: $this->getAccessToken()); + } + /** + * Verify an id_token. This method will verify the current id_token, if one + * isn't provided. + * + * @throws LogicException If no token was provided and no token was set using `setAccessToken`. + * @throws UnexpectedValueException If the token is not a valid JWT. + * @param string|null $idToken The token (id_token) that should be verified. + * @return array|false Returns the token payload as an array if the verification was + * successful, false otherwise. + */ + public function verifyIdToken($idToken = null) + { + $tokenVerifier = new \WPMailSMTP\Vendor\Google_AccessToken_Verify($this->getHttpClient(), $this->getCache(), $this->config['jwt']); + if (null === $idToken) { + $token = $this->getAccessToken(); + if (!isset($token['id_token'])) { + throw new \LogicException('id_token must be passed in or set as part of setAccessToken'); + } + $idToken = $token['id_token']; + } + return $tokenVerifier->verifyIdToken($idToken, $this->getClientId()); + } + /** + * Set the scopes to be requested. Must be called before createAuthUrl(). + * Will remove any previously configured scopes. + * @param string|array $scope_or_scopes, ie: + * array( + * 'https://www.googleapis.com/auth/plus.login', + * 'https://www.googleapis.com/auth/moderator' + * ); + */ + public function setScopes($scope_or_scopes) + { + $this->requestedScopes = array(); + $this->addScope($scope_or_scopes); + } + /** + * This functions adds a scope to be requested as part of the OAuth2.0 flow. + * Will append any scopes not previously requested to the scope parameter. + * A single string will be treated as a scope to request. An array of strings + * will each be appended. + * @param $scope_or_scopes string|array e.g. "profile" + */ + public function addScope($scope_or_scopes) + { + if (\is_string($scope_or_scopes) && !\in_array($scope_or_scopes, $this->requestedScopes)) { + $this->requestedScopes[] = $scope_or_scopes; + } else { + if (\is_array($scope_or_scopes)) { + foreach ($scope_or_scopes as $scope) { + $this->addScope($scope); + } + } + } + } + /** + * Returns the list of scopes requested by the client + * @return array the list of scopes + * + */ + public function getScopes() + { + return $this->requestedScopes; + } + /** + * @return string|null + * @visible For Testing + */ + public function prepareScopes() + { + if (empty($this->requestedScopes)) { + return null; + } + return \implode(' ', $this->requestedScopes); + } + /** + * Helper method to execute deferred HTTP requests. + * + * @param $request Psr\Http\Message\RequestInterface|Google_Http_Batch + * @param string $expectedClass + * @throws Google_Exception + * @return object of the type of the expected class or Psr\Http\Message\ResponseInterface. + */ + public function execute(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, $expectedClass = null) + { + $request = $request->withHeader('User-Agent', \sprintf('%s %s%s', $this->config['application_name'], self::USER_AGENT_SUFFIX, $this->getLibraryVersion()))->withHeader('x-goog-api-client', \sprintf('gl-php/%s gdcl/%s', \phpversion(), $this->getLibraryVersion())); + if ($this->config['api_format_v2']) { + $request = $request->withHeader('X-GOOG-API-FORMAT-VERSION', 2); + } + // call the authorize method + // this is where most of the grunt work is done + $http = $this->authorize(); + return \WPMailSMTP\Vendor\Google_Http_REST::execute($http, $request, $expectedClass, $this->config['retry'], $this->config['retry_map']); + } + /** + * Declare whether batch calls should be used. This may increase throughput + * by making multiple requests in one connection. + * + * @param boolean $useBatch True if the batch support should + * be enabled. Defaults to False. + */ + public function setUseBatch($useBatch) + { + // This is actually an alias for setDefer. + $this->setDefer($useBatch); + } + /** + * Are we running in Google AppEngine? + * return bool + */ + public function isAppEngine() + { + return isset($_SERVER['SERVER_SOFTWARE']) && \strpos($_SERVER['SERVER_SOFTWARE'], 'Google App Engine') !== \false; + } + public function setConfig($name, $value) + { + $this->config[$name] = $value; + } + public function getConfig($name, $default = null) + { + return isset($this->config[$name]) ? $this->config[$name] : $default; + } + /** + * For backwards compatibility + * alias for setAuthConfig + * + * @param string $file the configuration file + * @throws Google_Exception + * @deprecated + */ + public function setAuthConfigFile($file) + { + $this->setAuthConfig($file); + } + /** + * Set the auth config from new or deprecated JSON config. + * This structure should match the file downloaded from + * the "Download JSON" button on in the Google Developer + * Console. + * @param string|array $config the configuration json + * @throws Google_Exception + */ + public function setAuthConfig($config) + { + if (\is_string($config)) { + if (!\file_exists($config)) { + throw new \InvalidArgumentException(\sprintf('file "%s" does not exist', $config)); + } + $json = \file_get_contents($config); + if (!($config = \json_decode($json, \true))) { + throw new \LogicException('invalid json for auth config'); + } + } + $key = isset($config['installed']) ? 'installed' : 'web'; + if (isset($config['type']) && $config['type'] == 'service_account') { + // application default credentials + $this->useApplicationDefaultCredentials(); + // set the information from the config + $this->setClientId($config['client_id']); + $this->config['client_email'] = $config['client_email']; + $this->config['signing_key'] = $config['private_key']; + $this->config['signing_algorithm'] = 'HS256'; + } elseif (isset($config[$key])) { + // old-style + $this->setClientId($config[$key]['client_id']); + $this->setClientSecret($config[$key]['client_secret']); + if (isset($config[$key]['redirect_uris'])) { + $this->setRedirectUri($config[$key]['redirect_uris'][0]); + } + } else { + // new-style + $this->setClientId($config['client_id']); + $this->setClientSecret($config['client_secret']); + if (isset($config['redirect_uris'])) { + $this->setRedirectUri($config['redirect_uris'][0]); + } + } + } + /** + * Use when the service account has been delegated domain wide access. + * + * @param string $subject an email address account to impersonate + */ + public function setSubject($subject) + { + $this->config['subject'] = $subject; + } + /** + * Declare whether making API calls should make the call immediately, or + * return a request which can be called with ->execute(); + * + * @param boolean $defer True if calls should not be executed right away. + */ + public function setDefer($defer) + { + $this->deferExecution = $defer; + } + /** + * Whether or not to return raw requests + * @return boolean + */ + public function shouldDefer() + { + return $this->deferExecution; + } + /** + * @return Google\Auth\OAuth2 implementation + */ + public function getOAuth2Service() + { + if (!isset($this->auth)) { + $this->auth = $this->createOAuth2Service(); + } + return $this->auth; + } + /** + * create a default google auth object + */ + protected function createOAuth2Service() + { + $auth = new \WPMailSMTP\Vendor\Google\Auth\OAuth2(['clientId' => $this->getClientId(), 'clientSecret' => $this->getClientSecret(), 'authorizationUri' => self::OAUTH2_AUTH_URL, 'tokenCredentialUri' => self::OAUTH2_TOKEN_URI, 'redirectUri' => $this->getRedirectUri(), 'issuer' => $this->config['client_id'], 'signingKey' => $this->config['signing_key'], 'signingAlgorithm' => $this->config['signing_algorithm']]); + return $auth; + } + /** + * Set the Cache object + * @param Psr\Cache\CacheItemPoolInterface $cache + */ + public function setCache(\WPMailSMTP\Vendor\Psr\Cache\CacheItemPoolInterface $cache) + { + $this->cache = $cache; + } + /** + * @return Psr\Cache\CacheItemPoolInterface Cache implementation + */ + public function getCache() + { + if (!$this->cache) { + $this->cache = $this->createDefaultCache(); + } + return $this->cache; + } + /** + * @param array $cacheConfig + */ + public function setCacheConfig(array $cacheConfig) + { + $this->config['cache_config'] = $cacheConfig; + } + /** + * Set the Logger object + * @param Psr\Log\LoggerInterface $logger + */ + public function setLogger(\WPMailSMTP\Vendor\Psr\Log\LoggerInterface $logger) + { + $this->logger = $logger; + } + /** + * @return Psr\Log\LoggerInterface implementation + */ + public function getLogger() + { + if (!isset($this->logger)) { + $this->logger = $this->createDefaultLogger(); + } + return $this->logger; + } + protected function createDefaultLogger() + { + $logger = new \WPMailSMTP\Vendor\Monolog\Logger('google-api-php-client'); + if ($this->isAppEngine()) { + $handler = new \WPMailSMTP\Vendor\Monolog\Handler\SyslogHandler('app', \LOG_USER, \WPMailSMTP\Vendor\Monolog\Logger::NOTICE); + } else { + $handler = new \WPMailSMTP\Vendor\Monolog\Handler\StreamHandler('php://stderr', \WPMailSMTP\Vendor\Monolog\Logger::NOTICE); + } + $logger->pushHandler($handler); + return $logger; + } + protected function createDefaultCache() + { + return new \WPMailSMTP\Vendor\Google\Auth\Cache\MemoryCacheItemPool(); + } + /** + * Set the Http Client object + * @param GuzzleHttp\ClientInterface $http + */ + public function setHttpClient(\WPMailSMTP\Vendor\GuzzleHttp\ClientInterface $http) + { + $this->http = $http; + } + /** + * @return GuzzleHttp\ClientInterface implementation + */ + public function getHttpClient() + { + if (null === $this->http) { + $this->http = $this->createDefaultHttpClient(); + } + return $this->http; + } + /** + * Set the API format version. + * + * `true` will use V2, which may return more useful error messages. + * + * @param bool $value + */ + public function setApiFormatV2($value) + { + $this->config['api_format_v2'] = (bool) $value; + } + protected function createDefaultHttpClient() + { + $guzzleVersion = null; + if (\defined('\\WPMailSMTP\\Vendor\\GuzzleHttp\\ClientInterface::MAJOR_VERSION')) { + $guzzleVersion = \WPMailSMTP\Vendor\GuzzleHttp\ClientInterface::MAJOR_VERSION; + } elseif (\defined('\\WPMailSMTP\\Vendor\\GuzzleHttp\\ClientInterface::VERSION')) { + $guzzleVersion = (int) \substr(\WPMailSMTP\Vendor\GuzzleHttp\ClientInterface::VERSION, 0, 1); + } + $options = ['exceptions' => \false]; + if (5 === $guzzleVersion) { + $options = ['base_url' => $this->config['base_path'], 'defaults' => $options]; + if ($this->isAppEngine()) { + // set StreamHandler on AppEngine by default + $options['handler'] = new \WPMailSMTP\Vendor\GuzzleHttp\Ring\Client\StreamHandler(); + $options['defaults']['verify'] = '/etc/ca-certificates.crt'; + } + } elseif (6 === $guzzleVersion || 7 === $guzzleVersion) { + // guzzle 6 or 7 + $options['base_uri'] = $this->config['base_path']; + } else { + throw new \LogicException('Could not find supported version of Guzzle.'); + } + return new \WPMailSMTP\Vendor\GuzzleHttp\Client($options); + } + private function createApplicationDefaultCredentials() + { + $scopes = $this->prepareScopes(); + $sub = $this->config['subject']; + $signingKey = $this->config['signing_key']; + // create credentials using values supplied in setAuthConfig + if ($signingKey) { + $serviceAccountCredentials = array('client_id' => $this->config['client_id'], 'client_email' => $this->config['client_email'], 'private_key' => $signingKey, 'type' => 'service_account', 'quota_project' => $this->config['quota_project']); + $credentials = \WPMailSMTP\Vendor\Google\Auth\CredentialsLoader::makeCredentials($scopes, $serviceAccountCredentials); + } else { + $credentials = \WPMailSMTP\Vendor\Google\Auth\ApplicationDefaultCredentials::getCredentials($scopes, null, null, null, $this->config['quota_project']); + } + // for service account domain-wide authority (impersonating a user) + // @see https://developers.google.com/identity/protocols/OAuth2ServiceAccount + if ($sub) { + if (!$credentials instanceof \WPMailSMTP\Vendor\Google\Auth\Credentials\ServiceAccountCredentials) { + throw new \DomainException('domain-wide authority requires service account credentials'); + } + $credentials->setSub($sub); + } + return $credentials; + } + protected function getAuthHandler() + { + // Be very careful using the cache, as the underlying auth library's cache + // implementation is naive, and the cache keys do not account for user + // sessions. + // + // @see https://github.com/google/google-api-php-client/issues/821 + return \WPMailSMTP\Vendor\Google_AuthHandler_AuthHandlerFactory::build($this->getCache(), $this->config['cache_config']); + } + private function createUserRefreshCredentials($scope, $refreshToken) + { + $creds = \array_filter(array('client_id' => $this->getClientId(), 'client_secret' => $this->getClientSecret(), 'refresh_token' => $refreshToken)); + return new \WPMailSMTP\Vendor\Google\Auth\Credentials\UserRefreshCredentials($scope, $creds); + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Collection.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Collection.php new file mode 100644 index 0000000..75c3360 --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Collection.php @@ -0,0 +1,87 @@ +{$this->collection_key}) && \is_array($this->{$this->collection_key})) { + \reset($this->{$this->collection_key}); + } + } + public function current() + { + $this->coerceType($this->key()); + if (\is_array($this->{$this->collection_key})) { + return \current($this->{$this->collection_key}); + } + } + public function key() + { + if (isset($this->{$this->collection_key}) && \is_array($this->{$this->collection_key})) { + return \key($this->{$this->collection_key}); + } + } + public function next() + { + return \next($this->{$this->collection_key}); + } + public function valid() + { + $key = $this->key(); + return $key !== null && $key !== \false; + } + public function count() + { + if (!isset($this->{$this->collection_key})) { + return 0; + } + return \count($this->{$this->collection_key}); + } + public function offsetExists($offset) + { + if (!\is_numeric($offset)) { + return parent::offsetExists($offset); + } + return isset($this->{$this->collection_key}[$offset]); + } + public function offsetGet($offset) + { + if (!\is_numeric($offset)) { + return parent::offsetGet($offset); + } + $this->coerceType($offset); + return $this->{$this->collection_key}[$offset]; + } + public function offsetSet($offset, $value) + { + if (!\is_numeric($offset)) { + return parent::offsetSet($offset, $value); + } + $this->{$this->collection_key}[$offset] = $value; + } + public function offsetUnset($offset) + { + if (!\is_numeric($offset)) { + return parent::offsetUnset($offset); + } + unset($this->{$this->collection_key}[$offset]); + } + private function coerceType($offset) + { + $keyType = $this->keyType($this->collection_key); + if ($keyType && !\is_object($this->{$this->collection_key}[$offset])) { + $this->{$this->collection_key}[$offset] = new $keyType($this->{$this->collection_key}[$offset]); + } + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Exception.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Exception.php similarity index 89% rename from wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Exception.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Exception.php index af80269..89b3098 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Exception.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Exception.php @@ -1,4 +1,7 @@ client = $client; + $this->boundary = $boundary ?: \mt_rand(); + $this->rootUrl = \rtrim($rootUrl ?: $this->client->getConfig('base_path'), '/'); + $this->batchPath = $batchPath ?: self::BATCH_PATH; + } + public function add(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, $key = \false) + { + if (\false == $key) { + $key = \mt_rand(); + } + $this->requests[$key] = $request; + } + public function execute() + { + $body = ''; + $classes = array(); + $batchHttpTemplate = <<requests as $key => $request) { + $firstLine = \sprintf('%s %s HTTP/%s', $request->getMethod(), $request->getRequestTarget(), $request->getProtocolVersion()); + $content = (string) $request->getBody(); + $headers = ''; + foreach ($request->getHeaders() as $name => $values) { + $headers .= \sprintf("%s:%s\r\n", $name, \implode(', ', $values)); + } + $body .= \sprintf($batchHttpTemplate, $this->boundary, $key, $firstLine, $headers, $content ? "\n" . $content : ''); + $classes['response-' . $key] = $request->getHeaderLine('X-Php-Expected-Class'); + } + $body .= "--{$this->boundary}--"; + $body = \trim($body); + $url = $this->rootUrl . '/' . $this->batchPath; + $headers = array('Content-Type' => \sprintf('multipart/mixed; boundary=%s', $this->boundary), 'Content-Length' => \strlen($body)); + $request = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('POST', $url, $headers, $body); + $response = $this->client->execute($request); + return $this->parseResponse($response, $classes); + } + public function parseResponse(\WPMailSMTP\Vendor\Psr\Http\Message\ResponseInterface $response, $classes = array()) + { + $contentType = $response->getHeaderLine('content-type'); + $contentType = \explode(';', $contentType); + $boundary = \false; + foreach ($contentType as $part) { + $part = \explode('=', $part, 2); + if (isset($part[0]) && 'boundary' == \trim($part[0])) { + $boundary = $part[1]; + } + } + $body = (string) $response->getBody(); + if (!empty($body)) { + $body = \str_replace("--{$boundary}--", "--{$boundary}", $body); + $parts = \explode("--{$boundary}", $body); + $responses = array(); + $requests = \array_values($this->requests); + foreach ($parts as $i => $part) { + $part = \trim($part); + if (!empty($part)) { + list($rawHeaders, $part) = \explode("\r\n\r\n", $part, 2); + $headers = $this->parseRawHeaders($rawHeaders); + $status = \substr($part, 0, \strpos($part, "\n")); + $status = \explode(" ", $status); + $status = $status[1]; + list($partHeaders, $partBody) = $this->parseHttpResponse($part, \false); + $response = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Response($status, $partHeaders, \WPMailSMTP\Vendor\GuzzleHttp\Psr7\stream_for($partBody)); + // Need content id. + $key = $headers['content-id']; + try { + $response = \WPMailSMTP\Vendor\Google_Http_REST::decodeHttpResponse($response, $requests[$i - 1]); + } catch (\WPMailSMTP\Vendor\Google_Service_Exception $e) { + // Store the exception as the response, so successful responses + // can be processed. + $response = $e; + } + $responses[$key] = $response; + } + } + return $responses; + } + return null; + } + private function parseRawHeaders($rawHeaders) + { + $headers = array(); + $responseHeaderLines = \explode("\r\n", $rawHeaders); + foreach ($responseHeaderLines as $headerLine) { + if ($headerLine && \strpos($headerLine, ':') !== \false) { + list($header, $value) = \explode(': ', $headerLine, 2); + $header = \strtolower($header); + if (isset($headers[$header])) { + $headers[$header] .= "\n" . $value; + } else { + $headers[$header] = $value; + } + } + } + return $headers; + } + /** + * Used by the IO lib and also the batch processing. + * + * @param $respData + * @param $headerSize + * @return array + */ + private function parseHttpResponse($respData, $headerSize) + { + // check proxy header + foreach (self::$CONNECTION_ESTABLISHED_HEADERS as $established_header) { + if (\stripos($respData, $established_header) !== \false) { + // existed, remove it + $respData = \str_ireplace($established_header, '', $respData); + // Subtract the proxy header size unless the cURL bug prior to 7.30.0 + // is present which prevented the proxy header size from being taken into + // account. + // @TODO look into this + // if (!$this->needsQuirk()) { + // $headerSize -= strlen($established_header); + // } + break; + } + } + if ($headerSize) { + $responseBody = \substr($respData, $headerSize); + $responseHeaders = \substr($respData, 0, $headerSize); + } else { + $responseSegments = \explode("\r\n\r\n", $respData, 2); + $responseHeaders = $responseSegments[0]; + $responseBody = isset($responseSegments[1]) ? $responseSegments[1] : null; + } + $responseHeaders = $this->parseRawHeaders($responseHeaders); + return array($responseHeaders, $responseBody); + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Http/MediaFileUpload.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Http/MediaFileUpload.php new file mode 100644 index 0000000..42da15a --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Http/MediaFileUpload.php @@ -0,0 +1,277 @@ +client = $client; + $this->request = $request; + $this->mimeType = $mimeType; + $this->data = $data; + $this->resumable = $resumable; + $this->chunkSize = $chunkSize; + $this->progress = 0; + $this->process(); + } + /** + * Set the size of the file that is being uploaded. + * @param $size - int file size in bytes + */ + public function setFileSize($size) + { + $this->size = $size; + } + /** + * Return the progress on the upload + * @return int progress in bytes uploaded. + */ + public function getProgress() + { + return $this->progress; + } + /** + * Send the next part of the file to upload. + * @param string|bool $chunk Optional. The next set of bytes to send. If false will + * use $data passed at construct time. + */ + public function nextChunk($chunk = \false) + { + $resumeUri = $this->getResumeUri(); + if (\false == $chunk) { + $chunk = \substr($this->data, $this->progress, $this->chunkSize); + } + $lastBytePos = $this->progress + \strlen($chunk) - 1; + $headers = array('content-range' => "bytes {$this->progress}-{$lastBytePos}/{$this->size}", 'content-length' => \strlen($chunk), 'expect' => ''); + $request = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('PUT', $resumeUri, $headers, \WPMailSMTP\Vendor\GuzzleHttp\Psr7\stream_for($chunk)); + return $this->makePutRequest($request); + } + /** + * Return the HTTP result code from the last call made. + * @return int code + */ + public function getHttpResultCode() + { + return $this->httpResultCode; + } + /** + * Sends a PUT-Request to google drive and parses the response, + * setting the appropiate variables from the response() + * + * @param Google_Http_Request $httpRequest the Reuqest which will be send + * + * @return false|mixed false when the upload is unfinished or the decoded http response + * + */ + private function makePutRequest(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request) + { + $response = $this->client->execute($request); + $this->httpResultCode = $response->getStatusCode(); + if (308 == $this->httpResultCode) { + // Track the amount uploaded. + $range = $response->getHeaderLine('range'); + if ($range) { + $range_array = \explode('-', $range); + $this->progress = $range_array[1] + 1; + } + // Allow for changing upload URLs. + $location = $response->getHeaderLine('location'); + if ($location) { + $this->resumeUri = $location; + } + // No problems, but upload not complete. + return \false; + } + return \WPMailSMTP\Vendor\Google_Http_REST::decodeHttpResponse($response, $this->request); + } + /** + * Resume a previously unfinished upload + * @param $resumeUri the resume-URI of the unfinished, resumable upload. + */ + public function resume($resumeUri) + { + $this->resumeUri = $resumeUri; + $headers = array('content-range' => "bytes */{$this->size}", 'content-length' => 0); + $httpRequest = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('PUT', $this->resumeUri, $headers); + return $this->makePutRequest($httpRequest); + } + /** + * @return Psr\Http\Message\RequestInterface $request + * @visible for testing + */ + private function process() + { + $this->transformToUploadUrl(); + $request = $this->request; + $postBody = ''; + $contentType = \false; + $meta = (string) $request->getBody(); + $meta = \is_string($meta) ? \json_decode($meta, \true) : $meta; + $uploadType = $this->getUploadType($meta); + $request = $request->withUri(\WPMailSMTP\Vendor\GuzzleHttp\Psr7\Uri::withQueryValue($request->getUri(), 'uploadType', $uploadType)); + $mimeType = $this->mimeType ?: $request->getHeaderLine('content-type'); + if (self::UPLOAD_RESUMABLE_TYPE == $uploadType) { + $contentType = $mimeType; + $postBody = \is_string($meta) ? $meta : \json_encode($meta); + } else { + if (self::UPLOAD_MEDIA_TYPE == $uploadType) { + $contentType = $mimeType; + $postBody = $this->data; + } else { + if (self::UPLOAD_MULTIPART_TYPE == $uploadType) { + // This is a multipart/related upload. + $boundary = $this->boundary ?: \mt_rand(); + $boundary = \str_replace('"', '', $boundary); + $contentType = 'multipart/related; boundary=' . $boundary; + $related = "--{$boundary}\r\n"; + $related .= "Content-Type: application/json; charset=UTF-8\r\n"; + $related .= "\r\n" . \json_encode($meta) . "\r\n"; + $related .= "--{$boundary}\r\n"; + $related .= "Content-Type: {$mimeType}\r\n"; + $related .= "Content-Transfer-Encoding: base64\r\n"; + $related .= "\r\n" . \base64_encode($this->data) . "\r\n"; + $related .= "--{$boundary}--"; + $postBody = $related; + } + } + } + $request = $request->withBody(\WPMailSMTP\Vendor\GuzzleHttp\Psr7\stream_for($postBody)); + if (isset($contentType) && $contentType) { + $request = $request->withHeader('content-type', $contentType); + } + return $this->request = $request; + } + /** + * Valid upload types: + * - resumable (UPLOAD_RESUMABLE_TYPE) + * - media (UPLOAD_MEDIA_TYPE) + * - multipart (UPLOAD_MULTIPART_TYPE) + * @param $meta + * @return string + * @visible for testing + */ + public function getUploadType($meta) + { + if ($this->resumable) { + return self::UPLOAD_RESUMABLE_TYPE; + } + if (\false == $meta && $this->data) { + return self::UPLOAD_MEDIA_TYPE; + } + return self::UPLOAD_MULTIPART_TYPE; + } + public function getResumeUri() + { + if (null === $this->resumeUri) { + $this->resumeUri = $this->fetchResumeUri(); + } + return $this->resumeUri; + } + private function fetchResumeUri() + { + $body = $this->request->getBody(); + if ($body) { + $headers = array('content-type' => 'application/json; charset=UTF-8', 'content-length' => $body->getSize(), 'x-upload-content-type' => $this->mimeType, 'x-upload-content-length' => $this->size, 'expect' => ''); + foreach ($headers as $key => $value) { + $this->request = $this->request->withHeader($key, $value); + } + } + $response = $this->client->execute($this->request, \false); + $location = $response->getHeaderLine('location'); + $code = $response->getStatusCode(); + if (200 == $code && \true == $location) { + return $location; + } + $message = $code; + $body = \json_decode((string) $this->request->getBody(), \true); + if (isset($body['error']['errors'])) { + $message .= ': '; + foreach ($body['error']['errors'] as $error) { + $message .= "{$error['domain']}, {$error['message']};"; + } + $message = \rtrim($message, ';'); + } + $error = "Failed to start the resumable upload (HTTP {$message})"; + $this->client->getLogger()->error($error); + throw new \WPMailSMTP\Vendor\Google_Exception($error); + } + private function transformToUploadUrl() + { + $parts = \parse_url((string) $this->request->getUri()); + if (!isset($parts['path'])) { + $parts['path'] = ''; + } + $parts['path'] = '/upload' . $parts['path']; + $uri = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Uri::fromParts($parts); + $this->request = $this->request->withUri($uri); + } + public function setChunkSize($chunkSize) + { + $this->chunkSize = $chunkSize; + } + public function getRequest() + { + return $this->request; + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Http/REST.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Http/REST.php new file mode 100644 index 0000000..515604f --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Http/REST.php @@ -0,0 +1,148 @@ +getMethod(), (string) $request->getUri()), array(\get_class(), 'doExecute'), array($client, $request, $expectedClass)); + if (null !== $retryMap) { + $runner->setRetryMap($retryMap); + } + return $runner->run(); + } + /** + * Executes a Psr\Http\Message\RequestInterface + * + * @param Google_Client $client + * @param Psr\Http\Message\RequestInterface $request + * @param string $expectedClass + * @return array decoded result + * @throws Google_Service_Exception on server side error (ie: not authenticated, + * invalid or malformed post body, invalid url) + */ + public static function doExecute(\WPMailSMTP\Vendor\GuzzleHttp\ClientInterface $client, \WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, $expectedClass = null) + { + try { + $httpHandler = \WPMailSMTP\Vendor\Google\Auth\HttpHandler\HttpHandlerFactory::build($client); + $response = $httpHandler($request); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + // if Guzzle throws an exception, catch it and handle the response + if (!$e->hasResponse()) { + throw $e; + } + $response = $e->getResponse(); + // specific checking for Guzzle 5: convert to PSR7 response + if ($response instanceof \WPMailSMTP\Vendor\GuzzleHttp\Message\ResponseInterface) { + $response = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Response($response->getStatusCode(), $response->getHeaders() ?: [], $response->getBody(), $response->getProtocolVersion(), $response->getReasonPhrase()); + } + } + return self::decodeHttpResponse($response, $request, $expectedClass); + } + /** + * Decode an HTTP Response. + * @static + * @throws Google_Service_Exception + * @param Psr\Http\Message\RequestInterface $response The http response to be decoded. + * @param Psr\Http\Message\ResponseInterface $response + * @param string $expectedClass + * @return mixed|null + */ + public static function decodeHttpResponse(\WPMailSMTP\Vendor\Psr\Http\Message\ResponseInterface $response, \WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request = null, $expectedClass = null) + { + $code = $response->getStatusCode(); + // retry strategy + if (\intVal($code) >= 400) { + // if we errored out, it should be safe to grab the response body + $body = (string) $response->getBody(); + // Check if we received errors, and add those to the Exception for convenience + throw new \WPMailSMTP\Vendor\Google_Service_Exception($body, $code, null, self::getResponseErrors($body)); + } + // Ensure we only pull the entire body into memory if the request is not + // of media type + $body = self::decodeBody($response, $request); + if ($expectedClass = self::determineExpectedClass($expectedClass, $request)) { + $json = \json_decode($body, \true); + $expectedClass = 'WPMailSMTP\\Vendor\\' . $expectedClass; + return new $expectedClass($json); + } + return $response; + } + private static function decodeBody(\WPMailSMTP\Vendor\Psr\Http\Message\ResponseInterface $response, \WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request = null) + { + if (self::isAltMedia($request)) { + // don't decode the body, it's probably a really long string + return ''; + } + return (string) $response->getBody(); + } + private static function determineExpectedClass($expectedClass, \WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request = null) + { + // "false" is used to explicitly prevent an expected class from being returned + if (\false === $expectedClass) { + return null; + } + // if we don't have a request, we just use what's passed in + if (null === $request) { + return $expectedClass; + } + // return what we have in the request header if one was not supplied + return $expectedClass ?: $request->getHeaderLine('X-Php-Expected-Class'); + } + private static function getResponseErrors($body) + { + $json = \json_decode($body, \true); + if (isset($json['error']['errors'])) { + return $json['error']['errors']; + } + return null; + } + private static function isAltMedia(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request = null) + { + if ($request && ($qs = $request->getUri()->getQuery())) { + \parse_str($qs, $query); + if (isset($query['alt']) && $query['alt'] == 'media') { + return \true; + } + } + return \false; + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Model.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Model.php new file mode 100644 index 0000000..d4e4763 --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Model.php @@ -0,0 +1,292 @@ +mapTypes($array); + } + $this->gapiInit(); + } + /** + * Getter that handles passthrough access to the data array, and lazy object creation. + * @param string $key Property name. + * @return mixed The value if any, or null. + */ + public function __get($key) + { + $keyType = $this->keyType($key); + $keyDataType = $this->dataType($key); + if ($keyType && !isset($this->processed[$key])) { + if (isset($this->modelData[$key])) { + $val = $this->modelData[$key]; + } elseif ($keyDataType == 'array' || $keyDataType == 'map') { + $val = array(); + } else { + $val = null; + } + if ($this->isAssociativeArray($val)) { + if ($keyDataType && 'map' == $keyDataType) { + foreach ($val as $arrayKey => $arrayItem) { + $this->modelData[$key][$arrayKey] = new $keyType($arrayItem); + } + } else { + $this->modelData[$key] = new $keyType($val); + } + } else { + if (\is_array($val)) { + $arrayObject = array(); + foreach ($val as $arrayIndex => $arrayItem) { + $arrayObject[$arrayIndex] = new $keyType($arrayItem); + } + $this->modelData[$key] = $arrayObject; + } + } + $this->processed[$key] = \true; + } + return isset($this->modelData[$key]) ? $this->modelData[$key] : null; + } + /** + * Initialize this object's properties from an array. + * + * @param array $array Used to seed this object's properties. + * @return void + */ + protected function mapTypes($array) + { + // Hard initialise simple types, lazy load more complex ones. + foreach ($array as $key => $val) { + if ($keyType = $this->keyType($key)) { + $dataType = $this->dataType($key); + if ($dataType == 'array' || $dataType == 'map') { + $this->{$key} = array(); + foreach ($val as $itemKey => $itemVal) { + if ($itemVal instanceof $keyType) { + $this->{$key}[$itemKey] = $itemVal; + } else { + $this->{$key}[$itemKey] = new $keyType($itemVal); + } + } + } elseif ($val instanceof $keyType) { + $this->{$key} = $val; + } else { + $this->{$key} = new $keyType($val); + } + unset($array[$key]); + } elseif (\property_exists($this, $key)) { + $this->{$key} = $val; + unset($array[$key]); + } elseif (\property_exists($this, $camelKey = $this->camelCase($key))) { + // This checks if property exists as camelCase, leaving it in array as snake_case + // in case of backwards compatibility issues. + $this->{$camelKey} = $val; + } + } + $this->modelData = $array; + } + /** + * Blank initialiser to be used in subclasses to do post-construction initialisation - this + * avoids the need for subclasses to have to implement the variadics handling in their + * constructors. + */ + protected function gapiInit() + { + return; + } + /** + * Create a simplified object suitable for straightforward + * conversion to JSON. This is relatively expensive + * due to the usage of reflection, but shouldn't be called + * a whole lot, and is the most straightforward way to filter. + */ + public function toSimpleObject() + { + $object = new \stdClass(); + // Process all other data. + foreach ($this->modelData as $key => $val) { + $result = $this->getSimpleValue($val); + if ($result !== null) { + $object->{$key} = $this->nullPlaceholderCheck($result); + } + } + // Process all public properties. + $reflect = new \ReflectionObject($this); + $props = $reflect->getProperties(\ReflectionProperty::IS_PUBLIC); + foreach ($props as $member) { + $name = $member->getName(); + $result = $this->getSimpleValue($this->{$name}); + if ($result !== null) { + $name = $this->getMappedName($name); + $object->{$name} = $this->nullPlaceholderCheck($result); + } + } + return $object; + } + /** + * Handle different types of values, primarily + * other objects and map and array data types. + */ + private function getSimpleValue($value) + { + if ($value instanceof \WPMailSMTP\Vendor\Google_Model) { + return $value->toSimpleObject(); + } else { + if (\is_array($value)) { + $return = array(); + foreach ($value as $key => $a_value) { + $a_value = $this->getSimpleValue($a_value); + if ($a_value !== null) { + $key = $this->getMappedName($key); + $return[$key] = $this->nullPlaceholderCheck($a_value); + } + } + return $return; + } + } + return $value; + } + /** + * Check whether the value is the null placeholder and return true null. + */ + private function nullPlaceholderCheck($value) + { + if ($value === self::NULL_VALUE) { + return null; + } + return $value; + } + /** + * If there is an internal name mapping, use that. + */ + private function getMappedName($key) + { + if (isset($this->internal_gapi_mappings, $this->internal_gapi_mappings[$key])) { + $key = $this->internal_gapi_mappings[$key]; + } + return $key; + } + /** + * Returns true only if the array is associative. + * @param array $array + * @return bool True if the array is associative. + */ + protected function isAssociativeArray($array) + { + if (!\is_array($array)) { + return \false; + } + $keys = \array_keys($array); + foreach ($keys as $key) { + if (\is_string($key)) { + return \true; + } + } + return \false; + } + /** + * Verify if $obj is an array. + * @throws Google_Exception Thrown if $obj isn't an array. + * @param array $obj Items that should be validated. + * @param string $method Method expecting an array as an argument. + */ + public function assertIsArray($obj, $method) + { + if ($obj && !\is_array($obj)) { + throw new \WPMailSMTP\Vendor\Google_Exception("Incorrect parameter type passed to {$method}(). Expected an array."); + } + } + public function offsetExists($offset) + { + return isset($this->{$offset}) || isset($this->modelData[$offset]); + } + public function offsetGet($offset) + { + return isset($this->{$offset}) ? $this->{$offset} : $this->__get($offset); + } + public function offsetSet($offset, $value) + { + if (\property_exists($this, $offset)) { + $this->{$offset} = $value; + } else { + $this->modelData[$offset] = $value; + $this->processed[$offset] = \true; + } + } + public function offsetUnset($offset) + { + unset($this->modelData[$offset]); + } + protected function keyType($key) + { + $keyType = $key . "Type"; + // ensure keyType is a valid class + if (\property_exists($this, $keyType) && \class_exists($this->{$keyType})) { + return $this->{$keyType}; + } + } + protected function dataType($key) + { + $dataType = $key . "DataType"; + if (\property_exists($this, $dataType)) { + return $this->{$dataType}; + } + } + public function __isset($key) + { + return isset($this->modelData[$key]); + } + public function __unset($key) + { + unset($this->modelData[$key]); + } + /** + * Convert a string to camelCase + * @param string $value + * @return string + */ + private function camelCase($value) + { + $value = \ucwords(\str_replace(array('-', '_'), ' ', $value)); + $value = \str_replace(' ', '', $value); + $value[0] = \strtolower($value[0]); + return $value; + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Service.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Service.php new file mode 100644 index 0000000..0dcf111 --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Service.php @@ -0,0 +1,50 @@ +client = $client; + } + /** + * Return the associated Google_Client class. + * @return Google_Client + */ + public function getClient() + { + return $this->client; + } + /** + * Create a new HTTP Batch handler for this service + * + * @return Google_Http_Batch + */ + public function createBatch() + { + return new \WPMailSMTP\Vendor\Google_Http_Batch($this->client, \false, $this->rootUrl, $this->batchPath); + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Service/Exception.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Service/Exception.php new file mode 100644 index 0000000..c43ce59 --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Service/Exception.php @@ -0,0 +1,62 @@ += 0) { + parent::__construct($message, $code, $previous); + } else { + parent::__construct($message, $code); + } + $this->errors = $errors; + } + /** + * An example of the possible errors returned. + * + * { + * "domain": "global", + * "reason": "authError", + * "message": "Invalid Credentials", + * "locationType": "header", + * "location": "Authorization", + * } + * + * @return [{string, string}] List of errors return in an HTTP response or []. + */ + public function getErrors() + { + return $this->errors; + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Service/Resource.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Service/Resource.php new file mode 100644 index 0000000..1e6a10f --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Service/Resource.php @@ -0,0 +1,212 @@ + array('type' => 'string', 'location' => 'query'), 'fields' => array('type' => 'string', 'location' => 'query'), 'trace' => array('type' => 'string', 'location' => 'query'), 'userIp' => array('type' => 'string', 'location' => 'query'), 'quotaUser' => array('type' => 'string', 'location' => 'query'), 'data' => array('type' => 'string', 'location' => 'body'), 'mimeType' => array('type' => 'string', 'location' => 'header'), 'uploadType' => array('type' => 'string', 'location' => 'query'), 'mediaUpload' => array('type' => 'complex', 'location' => 'query'), 'prettyPrint' => array('type' => 'string', 'location' => 'query')); + /** @var string $rootUrl */ + private $rootUrl; + /** @var Google_Client $client */ + private $client; + /** @var string $serviceName */ + private $serviceName; + /** @var string $servicePath */ + private $servicePath; + /** @var string $resourceName */ + private $resourceName; + /** @var array $methods */ + private $methods; + public function __construct($service, $serviceName, $resourceName, $resource) + { + $this->rootUrl = $service->rootUrl; + $this->client = $service->getClient(); + $this->servicePath = $service->servicePath; + $this->serviceName = $serviceName; + $this->resourceName = $resourceName; + $this->methods = \is_array($resource) && isset($resource['methods']) ? $resource['methods'] : array($resourceName => $resource); + } + /** + * TODO: This function needs simplifying. + * @param $name + * @param $arguments + * @param $expectedClass - optional, the expected class name + * @return Google_Http_Request|expectedClass + * @throws Google_Exception + */ + public function call($name, $arguments, $expectedClass = null) + { + if (!isset($this->methods[$name])) { + $this->client->getLogger()->error('Service method unknown', array('service' => $this->serviceName, 'resource' => $this->resourceName, 'method' => $name)); + throw new \WPMailSMTP\Vendor\Google_Exception("Unknown function: " . "{$this->serviceName}->{$this->resourceName}->{$name}()"); + } + $method = $this->methods[$name]; + $parameters = $arguments[0]; + // postBody is a special case since it's not defined in the discovery + // document as parameter, but we abuse the param entry for storing it. + $postBody = null; + if (isset($parameters['postBody'])) { + if ($parameters['postBody'] instanceof \WPMailSMTP\Vendor\Google_Model) { + // In the cases the post body is an existing object, we want + // to use the smart method to create a simple object for + // for JSONification. + $parameters['postBody'] = $parameters['postBody']->toSimpleObject(); + } else { + if (\is_object($parameters['postBody'])) { + // If the post body is another kind of object, we will try and + // wrangle it into a sensible format. + $parameters['postBody'] = $this->convertToArrayAndStripNulls($parameters['postBody']); + } + } + $postBody = (array) $parameters['postBody']; + unset($parameters['postBody']); + } + // TODO: optParams here probably should have been + // handled already - this may well be redundant code. + if (isset($parameters['optParams'])) { + $optParams = $parameters['optParams']; + unset($parameters['optParams']); + $parameters = \array_merge($parameters, $optParams); + } + if (!isset($method['parameters'])) { + $method['parameters'] = array(); + } + $method['parameters'] = \array_merge($this->stackParameters, $method['parameters']); + foreach ($parameters as $key => $val) { + if ($key != 'postBody' && !isset($method['parameters'][$key])) { + $this->client->getLogger()->error('Service parameter unknown', array('service' => $this->serviceName, 'resource' => $this->resourceName, 'method' => $name, 'parameter' => $key)); + throw new \WPMailSMTP\Vendor\Google_Exception("({$name}) unknown parameter: '{$key}'"); + } + } + foreach ($method['parameters'] as $paramName => $paramSpec) { + if (isset($paramSpec['required']) && $paramSpec['required'] && !isset($parameters[$paramName])) { + $this->client->getLogger()->error('Service parameter missing', array('service' => $this->serviceName, 'resource' => $this->resourceName, 'method' => $name, 'parameter' => $paramName)); + throw new \WPMailSMTP\Vendor\Google_Exception("({$name}) missing required param: '{$paramName}'"); + } + if (isset($parameters[$paramName])) { + $value = $parameters[$paramName]; + $parameters[$paramName] = $paramSpec; + $parameters[$paramName]['value'] = $value; + unset($parameters[$paramName]['required']); + } else { + // Ensure we don't pass nulls. + unset($parameters[$paramName]); + } + } + $this->client->getLogger()->info('Service Call', array('service' => $this->serviceName, 'resource' => $this->resourceName, 'method' => $name, 'arguments' => $parameters)); + // build the service uri + $url = $this->createRequestUri($method['path'], $parameters); + // NOTE: because we're creating the request by hand, + // and because the service has a rootUrl property + // the "base_uri" of the Http Client is not accounted for + $request = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request($method['httpMethod'], $url, ['content-type' => 'application/json'], $postBody ? \json_encode($postBody) : ''); + // support uploads + if (isset($parameters['data'])) { + $mimeType = isset($parameters['mimeType']) ? $parameters['mimeType']['value'] : 'application/octet-stream'; + $data = $parameters['data']['value']; + $upload = new \WPMailSMTP\Vendor\Google_Http_MediaFileUpload($this->client, $request, $mimeType, $data); + // pull down the modified request + $request = $upload->getRequest(); + } + // if this is a media type, we will return the raw response + // rather than using an expected class + if (isset($parameters['alt']) && $parameters['alt']['value'] == 'media') { + $expectedClass = null; + } + // if the client is marked for deferring, rather than + // execute the request, return the response + if ($this->client->shouldDefer()) { + // @TODO find a better way to do this + $request = $request->withHeader('X-Php-Expected-Class', $expectedClass); + return $request; + } + return $this->client->execute($request, $expectedClass); + } + protected function convertToArrayAndStripNulls($o) + { + $o = (array) $o; + foreach ($o as $k => $v) { + if ($v === null) { + unset($o[$k]); + } elseif (\is_object($v) || \is_array($v)) { + $o[$k] = $this->convertToArrayAndStripNulls($o[$k]); + } + } + return $o; + } + /** + * Parse/expand request parameters and create a fully qualified + * request uri. + * @static + * @param string $restPath + * @param array $params + * @return string $requestUrl + */ + public function createRequestUri($restPath, $params) + { + // Override the default servicePath address if the $restPath use a / + if ('/' == \substr($restPath, 0, 1)) { + $requestUrl = \substr($restPath, 1); + } else { + $requestUrl = $this->servicePath . $restPath; + } + // code for leading slash + if ($this->rootUrl) { + if ('/' !== \substr($this->rootUrl, -1) && '/' !== \substr($requestUrl, 0, 1)) { + $requestUrl = '/' . $requestUrl; + } + $requestUrl = $this->rootUrl . $requestUrl; + } + $uriTemplateVars = array(); + $queryVars = array(); + foreach ($params as $paramName => $paramSpec) { + if ($paramSpec['type'] == 'boolean') { + $paramSpec['value'] = $paramSpec['value'] ? 'true' : 'false'; + } + if ($paramSpec['location'] == 'path') { + $uriTemplateVars[$paramName] = $paramSpec['value']; + } else { + if ($paramSpec['location'] == 'query') { + if (\is_array($paramSpec['value'])) { + foreach ($paramSpec['value'] as $value) { + $queryVars[] = $paramName . '=' . \rawurlencode(\rawurldecode($value)); + } + } else { + $queryVars[] = $paramName . '=' . \rawurlencode(\rawurldecode($paramSpec['value'])); + } + } + } + } + if (\count($uriTemplateVars)) { + $uriTemplateParser = new \WPMailSMTP\Vendor\Google_Utils_UriTemplate(); + $requestUrl = $uriTemplateParser->parse($requestUrl, $uriTemplateVars); + } + if (\count($queryVars)) { + $requestUrl .= '?' . \implode('&', $queryVars); + } + return $requestUrl; + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Task/Composer.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Task/Composer.php new file mode 100644 index 0000000..fe5d317 --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Task/Composer.php @@ -0,0 +1,71 @@ +getComposer(); + $extra = $composer->getPackage()->getExtra(); + $servicesToKeep = isset($extra['google/apiclient-services']) ? $extra['google/apiclient-services'] : []; + if ($servicesToKeep) { + $serviceDir = \sprintf('%s/google/apiclient-services/src/Google/Service', $composer->getConfig()->get('vendor-dir')); + self::verifyServicesToKeep($serviceDir, $servicesToKeep); + $finder = self::getServicesToRemove($serviceDir, $servicesToKeep); + $filesystem = $filesystem ?: new \WPMailSMTP\Vendor\Symfony\Component\Filesystem\Filesystem(); + if (0 !== ($count = \count($finder))) { + $event->getIO()->write(\sprintf('Removing %s google services', $count)); + foreach ($finder as $file) { + $realpath = $file->getRealPath(); + $filesystem->remove($realpath); + $filesystem->remove($realpath . '.php'); + } + } + } + } + /** + * @throws InvalidArgumentException when the service doesn't exist + */ + private static function verifyServicesToKeep($serviceDir, array $servicesToKeep) + { + $finder = (new \WPMailSMTP\Vendor\Symfony\Component\Finder\Finder())->directories()->depth('== 0'); + foreach ($servicesToKeep as $service) { + if (!\preg_match('/^[a-zA-Z0-9]*$/', $service)) { + throw new \InvalidArgumentException(\sprintf('Invalid Google service name "%s"', $service)); + } + try { + $finder->in($serviceDir . '/' . $service); + } catch (\InvalidArgumentException $e) { + throw new \InvalidArgumentException(\sprintf('Google service "%s" does not exist or was removed previously', $service)); + } + } + } + private static function getServicesToRemove($serviceDir, array $servicesToKeep) + { + // find all files in the current directory + return (new \WPMailSMTP\Vendor\Symfony\Component\Finder\Finder())->directories()->depth('== 0')->in($serviceDir)->exclude($servicesToKeep); + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Task/Exception.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Task/Exception.php similarity index 85% rename from wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Task/Exception.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Task/Exception.php index 5422e6f..2c3a331 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/Task/Exception.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Task/Exception.php @@ -1,4 +1,7 @@ self::TASK_RETRY_ALWAYS, + '503' => self::TASK_RETRY_ALWAYS, + 'rateLimitExceeded' => self::TASK_RETRY_ALWAYS, + 'userRateLimitExceeded' => self::TASK_RETRY_ALWAYS, + 6 => self::TASK_RETRY_ALWAYS, + // CURLE_COULDNT_RESOLVE_HOST + 7 => self::TASK_RETRY_ALWAYS, + // CURLE_COULDNT_CONNECT + 28 => self::TASK_RETRY_ALWAYS, + // CURLE_OPERATION_TIMEOUTED + 35 => self::TASK_RETRY_ALWAYS, + // CURLE_SSL_CONNECT_ERROR + 52 => self::TASK_RETRY_ALWAYS, + ]; + /** + * Creates a new task runner with exponential backoff support. + * + * @param array $config The task runner config + * @param string $name The name of the current task (used for logging) + * @param callable $action The task to run and possibly retry + * @param array $arguments The task arguments + * @throws Google_Task_Exception when misconfigured + */ + public function __construct($config, $name, $action, array $arguments = array()) + { + if (isset($config['initial_delay'])) { + if ($config['initial_delay'] < 0) { + throw new \WPMailSMTP\Vendor\Google_Task_Exception('Task configuration `initial_delay` must not be negative.'); + } + $this->delay = $config['initial_delay']; + } + if (isset($config['max_delay'])) { + if ($config['max_delay'] <= 0) { + throw new \WPMailSMTP\Vendor\Google_Task_Exception('Task configuration `max_delay` must be greater than 0.'); + } + $this->maxDelay = $config['max_delay']; + } + if (isset($config['factor'])) { + if ($config['factor'] <= 0) { + throw new \WPMailSMTP\Vendor\Google_Task_Exception('Task configuration `factor` must be greater than 0.'); + } + $this->factor = $config['factor']; + } + if (isset($config['jitter'])) { + if ($config['jitter'] <= 0) { + throw new \WPMailSMTP\Vendor\Google_Task_Exception('Task configuration `jitter` must be greater than 0.'); + } + $this->jitter = $config['jitter']; + } + if (isset($config['retries'])) { + if ($config['retries'] < 0) { + throw new \WPMailSMTP\Vendor\Google_Task_Exception('Task configuration `retries` must not be negative.'); + } + $this->maxAttempts += $config['retries']; + } + if (!\is_callable($action)) { + throw new \WPMailSMTP\Vendor\Google_Task_Exception('Task argument `$action` must be a valid callable.'); + } + $this->action = $action; + $this->arguments = $arguments; + } + /** + * Checks if a retry can be attempted. + * + * @return boolean + */ + public function canAttempt() + { + return $this->attempts < $this->maxAttempts; + } + /** + * Runs the task and (if applicable) automatically retries when errors occur. + * + * @return mixed + * @throws Google_Task_Retryable on failure when no retries are available. + */ + public function run() + { + while ($this->attempt()) { + try { + return \call_user_func_array($this->action, $this->arguments); + } catch (\WPMailSMTP\Vendor\Google_Service_Exception $exception) { + $allowedRetries = $this->allowedRetries($exception->getCode(), $exception->getErrors()); + if (!$this->canAttempt() || !$allowedRetries) { + throw $exception; + } + if ($allowedRetries > 0) { + $this->maxAttempts = \min($this->maxAttempts, $this->attempts + $allowedRetries); + } + } + } + } + /** + * Runs a task once, if possible. This is useful for bypassing the `run()` + * loop. + * + * NOTE: If this is not the first attempt, this function will sleep in + * accordance to the backoff configurations before running the task. + * + * @return boolean + */ + public function attempt() + { + if (!$this->canAttempt()) { + return \false; + } + if ($this->attempts > 0) { + $this->backOff(); + } + $this->attempts++; + return \true; + } + /** + * Sleeps in accordance to the backoff configurations. + */ + private function backOff() + { + $delay = $this->getDelay(); + \usleep($delay * 1000000); + } + /** + * Gets the delay (in seconds) for the current backoff period. + * + * @return float + */ + private function getDelay() + { + $jitter = $this->getJitter(); + $factor = $this->attempts > 1 ? $this->factor + $jitter : 1 + \abs($jitter); + return $this->delay = \min($this->maxDelay, $this->delay * $factor); + } + /** + * Gets the current jitter (random number between -$this->jitter and + * $this->jitter). + * + * @return float + */ + private function getJitter() + { + return $this->jitter * 2 * \mt_rand() / \mt_getrandmax() - $this->jitter; + } + /** + * Gets the number of times the associated task can be retried. + * + * NOTE: -1 is returned if the task can be retried indefinitely + * + * @return integer + */ + public function allowedRetries($code, $errors = array()) + { + if (isset($this->retryMap[$code])) { + return $this->retryMap[$code]; + } + if (!empty($errors) && isset($errors[0]['reason'], $this->retryMap[$errors[0]['reason']])) { + return $this->retryMap[$errors[0]['reason']]; + } + return 0; + } + public function setRetryMap($retryMap) + { + $this->retryMap = $retryMap; + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Utils/UriTemplate.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Utils/UriTemplate.php new file mode 100644 index 0000000..727f223 --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/Utils/UriTemplate.php @@ -0,0 +1,266 @@ + "reserved", "/" => "segments", "." => "dotprefix", "#" => "fragment", ";" => "semicolon", "?" => "form", "&" => "continuation"); + /** + * @var reserved array + * These are the characters which should not be URL encoded in reserved + * strings. + */ + private $reserved = array("=", ",", "!", "@", "|", ":", "/", "?", "#", "[", "]", '$', "&", "'", "(", ")", "*", "+", ";"); + private $reservedEncoded = array("%3D", "%2C", "%21", "%40", "%7C", "%3A", "%2F", "%3F", "%23", "%5B", "%5D", "%24", "%26", "%27", "%28", "%29", "%2A", "%2B", "%3B"); + public function parse($string, array $parameters) + { + return $this->resolveNextSection($string, $parameters); + } + /** + * This function finds the first matching {...} block and + * executes the replacement. It then calls itself to find + * subsequent blocks, if any. + */ + private function resolveNextSection($string, $parameters) + { + $start = \strpos($string, "{"); + if ($start === \false) { + return $string; + } + $end = \strpos($string, "}"); + if ($end === \false) { + return $string; + } + $string = $this->replace($string, $start, $end, $parameters); + return $this->resolveNextSection($string, $parameters); + } + private function replace($string, $start, $end, $parameters) + { + // We know a data block will have {} round it, so we can strip that. + $data = \substr($string, $start + 1, $end - $start - 1); + // If the first character is one of the reserved operators, it effects + // the processing of the stream. + if (isset($this->operators[$data[0]])) { + $op = $this->operators[$data[0]]; + $data = \substr($data, 1); + $prefix = ""; + $prefix_on_missing = \false; + switch ($op) { + case "reserved": + // Reserved means certain characters should not be URL encoded + $data = $this->replaceVars($data, $parameters, ",", null, \true); + break; + case "fragment": + // Comma separated with fragment prefix. Bare values only. + $prefix = "#"; + $prefix_on_missing = \true; + $data = $this->replaceVars($data, $parameters, ",", null, \true); + break; + case "segments": + // Slash separated data. Bare values only. + $prefix = "/"; + $data = $this->replaceVars($data, $parameters, "/"); + break; + case "dotprefix": + // Dot separated data. Bare values only. + $prefix = "."; + $prefix_on_missing = \true; + $data = $this->replaceVars($data, $parameters, "."); + break; + case "semicolon": + // Semicolon prefixed and separated. Uses the key name + $prefix = ";"; + $data = $this->replaceVars($data, $parameters, ";", "=", \false, \true, \false); + break; + case "form": + // Standard URL format. Uses the key name + $prefix = "?"; + $data = $this->replaceVars($data, $parameters, "&", "="); + break; + case "continuation": + // Standard URL, but with leading ampersand. Uses key name. + $prefix = "&"; + $data = $this->replaceVars($data, $parameters, "&", "="); + break; + } + // Add the initial prefix character if data is valid. + if ($data || $data !== \false && $prefix_on_missing) { + $data = $prefix . $data; + } + } else { + // If no operator we replace with the defaults. + $data = $this->replaceVars($data, $parameters); + } + // This is chops out the {...} and replaces with the new section. + return \substr($string, 0, $start) . $data . \substr($string, $end + 1); + } + private function replaceVars($section, $parameters, $sep = ",", $combine = null, $reserved = \false, $tag_empty = \false, $combine_on_empty = \true) + { + if (\strpos($section, ",") === \false) { + // If we only have a single value, we can immediately process. + return $this->combine($section, $parameters, $sep, $combine, $reserved, $tag_empty, $combine_on_empty); + } else { + // If we have multiple values, we need to split and loop over them. + // Each is treated individually, then glued together with the + // separator character. + $vars = \explode(",", $section); + return $this->combineList( + $vars, + $sep, + $parameters, + $combine, + $reserved, + \false, + // Never emit empty strings in multi-param replacements + $combine_on_empty + ); + } + } + public function combine($key, $parameters, $sep, $combine, $reserved, $tag_empty, $combine_on_empty) + { + $length = \false; + $explode = \false; + $skip_final_combine = \false; + $value = \false; + // Check for length restriction. + if (\strpos($key, ":") !== \false) { + list($key, $length) = \explode(":", $key); + } + // Check for explode parameter. + if ($key[\strlen($key) - 1] == "*") { + $explode = \true; + $key = \substr($key, 0, -1); + $skip_final_combine = \true; + } + // Define the list separator. + $list_sep = $explode ? $sep : ","; + if (isset($parameters[$key])) { + $data_type = $this->getDataType($parameters[$key]); + switch ($data_type) { + case self::TYPE_SCALAR: + $value = $this->getValue($parameters[$key], $length); + break; + case self::TYPE_LIST: + $values = array(); + foreach ($parameters[$key] as $pkey => $pvalue) { + $pvalue = $this->getValue($pvalue, $length); + if ($combine && $explode) { + $values[$pkey] = $key . $combine . $pvalue; + } else { + $values[$pkey] = $pvalue; + } + } + $value = \implode($list_sep, $values); + if ($value == '') { + return ''; + } + break; + case self::TYPE_MAP: + $values = array(); + foreach ($parameters[$key] as $pkey => $pvalue) { + $pvalue = $this->getValue($pvalue, $length); + if ($explode) { + $pkey = $this->getValue($pkey, $length); + $values[] = $pkey . "=" . $pvalue; + // Explode triggers = combine. + } else { + $values[] = $pkey; + $values[] = $pvalue; + } + } + $value = \implode($list_sep, $values); + if ($value == '') { + return \false; + } + break; + } + } else { + if ($tag_empty) { + // If we are just indicating empty values with their key name, return that. + return $key; + } else { + // Otherwise we can skip this variable due to not being defined. + return \false; + } + } + if ($reserved) { + $value = \str_replace($this->reservedEncoded, $this->reserved, $value); + } + // If we do not need to include the key name, we just return the raw + // value. + if (!$combine || $skip_final_combine) { + return $value; + } + // Else we combine the key name: foo=bar, if value is not the empty string. + return $key . ($value != '' || $combine_on_empty ? $combine . $value : ''); + } + /** + * Return the type of a passed in value + */ + private function getDataType($data) + { + if (\is_array($data)) { + \reset($data); + if (\key($data) !== 0) { + return self::TYPE_MAP; + } + return self::TYPE_LIST; + } + return self::TYPE_SCALAR; + } + /** + * Utility function that merges multiple combine calls + * for multi-key templates. + */ + private function combineList($vars, $sep, $parameters, $combine, $reserved, $tag_empty, $combine_on_empty) + { + $ret = array(); + foreach ($vars as $var) { + $response = $this->combine($var, $parameters, $sep, $combine, $reserved, $tag_empty, $combine_on_empty); + if ($response === \false) { + continue; + } + $ret[] = $response; + } + return \implode($sep, $ret); + } + /** + * Utility function to encode and trim values + */ + private function getValue($value, $length) + { + if ($length) { + $value = \substr($value, 0, $length); + } + $value = \rawurlencode($value); + return $value; + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/autoload.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/autoload.php similarity index 54% rename from wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/autoload.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/autoload.php index 8b49301..85dfb7a 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/apiclient/src/Google/autoload.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/apiclient/src/Google/autoload.php @@ -1,21 +1,19 @@ 3) { + if (\count($classPath) > 3) { // Maximum class file path depth in this project is 3. - $classPath = array_slice($classPath, 0, 3); + $classPath = \array_slice($classPath, 0, 3); } - $filePath = dirname(__FILE__) . '/src/' . implode('/', $classPath) . '.php'; - if (file_exists($filePath)) { + $filePath = \dirname(__FILE__) . '/src/' . \implode('/', $classPath) . '.php'; + if (\file_exists($filePath)) { require_once $filePath; } } - -spl_autoload_register('oauth2client_php_autoload'); +\spl_autoload_register('oauth2client_php_autoload'); diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/AccessToken.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/AccessToken.php similarity index 64% rename from wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/AccessToken.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/AccessToken.php index 1352e93..1060261 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/AccessToken.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/AccessToken.php @@ -1,4 +1,5 @@ httpHandler = $httpHandler - ?: HttpHandlerFactory::build(HttpClientCache::getHttpClient()); - $this->cache = $cache ?: new MemoryCacheItemPool(); + public function __construct(callable $httpHandler = null, \WPMailSMTP\Vendor\Psr\Cache\CacheItemPoolInterface $cache = null) + { + $this->httpHandler = $httpHandler ?: \WPMailSMTP\Vendor\Google\Auth\HttpHandler\HttpHandlerFactory::build(\WPMailSMTP\Vendor\Google\Auth\HttpHandler\HttpClientCache::getHttpClient()); + $this->cache = $cache ?: new \WPMailSMTP\Vendor\Google\Auth\Cache\MemoryCacheItemPool(); } - /** * Verifies an id token and returns the authenticated apiLoginTicket. * Throws an exception if the id token is not valid. @@ -105,52 +97,42 @@ class AccessToken */ public function verify($token, array $options = []) { - $audience = isset($options['audience']) - ? $options['audience'] - : null; - $issuer = isset($options['issuer']) - ? $options['issuer'] - : null; - $certsLocation = isset($options['certsLocation']) - ? $options['certsLocation'] - : self::FEDERATED_SIGNON_CERT_URL; - $cacheKey = isset($options['cacheKey']) - ? $options['cacheKey'] - : $this->getCacheKeyFromCertLocation($certsLocation); - $throwException = isset($options['throwException']) - ? $options['throwException'] - : false; // for backwards compatibility - + $audience = isset($options['audience']) ? $options['audience'] : null; + $issuer = isset($options['issuer']) ? $options['issuer'] : null; + $certsLocation = isset($options['certsLocation']) ? $options['certsLocation'] : self::FEDERATED_SIGNON_CERT_URL; + $cacheKey = isset($options['cacheKey']) ? $options['cacheKey'] : $this->getCacheKeyFromCertLocation($certsLocation); + $throwException = isset($options['throwException']) ? $options['throwException'] : \false; + // for backwards compatibility // Check signature against each available cert. $certs = $this->getCerts($certsLocation, $cacheKey, $options); $alg = $this->determineAlg($certs); - if (!in_array($alg, ['RS256', 'ES256'])) { - throw new InvalidArgumentException( - 'unrecognized "alg" in certs, expected ES256 or RS256' - ); + if (!\in_array($alg, ['RS256', 'ES256'])) { + throw new \InvalidArgumentException('unrecognized "alg" in certs, expected ES256 or RS256'); } try { if ($alg == 'RS256') { return $this->verifyRs256($token, $certs, $audience, $issuer); } return $this->verifyEs256($token, $certs, $audience, $issuer); - } catch (ExpiredException $e) { // firebase/php-jwt 3+ - } catch (\ExpiredException $e) { // firebase/php-jwt 2 - } catch (SignatureInvalidException $e) { // firebase/php-jwt 3+ - } catch (\SignatureInvalidException $e) { // firebase/php-jwt 2 - } catch (InvalidTokenException $e) { // simplejwt - } catch (DomainException $e) { - } catch (InvalidArgumentException $e) { - } catch (UnexpectedValueException $e) { + } catch (\WPMailSMTP\Vendor\Firebase\JWT\ExpiredException $e) { + // firebase/php-jwt 3+ + } catch (\WPMailSMTP\Vendor\ExpiredException $e) { + // firebase/php-jwt 2 + } catch (\WPMailSMTP\Vendor\Firebase\JWT\SignatureInvalidException $e) { + // firebase/php-jwt 3+ + } catch (\WPMailSMTP\Vendor\SignatureInvalidException $e) { + // firebase/php-jwt 2 + } catch (\WPMailSMTP\Vendor\SimpleJWT\InvalidTokenException $e) { + // simplejwt + } catch (\WPMailSMTP\Vendor\Google\Auth\DomainException $e) { + } catch (\InvalidArgumentException $e) { + } catch (\UnexpectedValueException $e) { } - if ($throwException) { throw $e; } - - return false; + return \false; } - /** * Identifies the expected algorithm to verify by looking at the "alg" key * of the provided certs. @@ -164,21 +146,15 @@ class AccessToken $alg = null; foreach ($certs as $cert) { if (empty($cert['alg'])) { - throw new InvalidArgumentException( - 'certs expects "alg" to be set' - ); + throw new \InvalidArgumentException('certs expects "alg" to be set'); } $alg = $alg ?: $cert['alg']; - if ($alg != $cert['alg']) { - throw new InvalidArgumentException( - 'More than one alg detected in certs' - ); + throw new \InvalidArgumentException('More than one alg detected in certs'); } } return $alg; } - /** * Verifies an ES256-signed JWT. * @@ -194,31 +170,25 @@ class AccessToken private function verifyEs256($token, array $certs, $audience = null, $issuer = null) { $this->checkSimpleJwt(); - - $jwkset = new KeySet(); + $jwkset = new \WPMailSMTP\Vendor\SimpleJWT\Keys\KeySet(); foreach ($certs as $cert) { - $jwkset->add(KeyFactory::create($cert, 'php')); + $jwkset->add(\WPMailSMTP\Vendor\SimpleJWT\Keys\KeyFactory::create($cert, 'php')); } - // Validate the signature using the key set and ES256 algorithm. $jwt = $this->callSimpleJwtDecode([$token, $jwkset, 'ES256']); $payload = $jwt->getClaims(); - if (isset($payload['aud'])) { if ($audience && $payload['aud'] != $audience) { - throw new UnexpectedValueException('Audience does not match'); + throw new \UnexpectedValueException('Audience does not match'); } } - // @see https://cloud.google.com/iap/docs/signed-headers-howto#verifying_the_jwt_payload $issuer = $issuer ?: self::IAP_ISSUER; if (!isset($payload['iss']) || $payload['iss'] !== $issuer) { - throw new UnexpectedValueException('Issuer does not match'); + throw new \UnexpectedValueException('Issuer does not match'); } - return $payload; } - /** * Verifies an RS256-signed JWT. * @@ -237,51 +207,30 @@ class AccessToken $keys = []; foreach ($certs as $cert) { if (empty($cert['kid'])) { - throw new InvalidArgumentException( - 'certs expects "kid" to be set' - ); + throw new \InvalidArgumentException('certs expects "kid" to be set'); } if (empty($cert['n']) || empty($cert['e'])) { - throw new InvalidArgumentException( - 'RSA certs expects "n" and "e" to be set' - ); + throw new \InvalidArgumentException('RSA certs expects "n" and "e" to be set'); } - $rsa = new RSA(); - $rsa->loadKey([ - 'n' => new BigInteger($this->callJwtStatic('urlsafeB64Decode', [ - $cert['n'], - ]), 256), - 'e' => new BigInteger($this->callJwtStatic('urlsafeB64Decode', [ - $cert['e'] - ]), 256), - ]); - + $rsa = new \WPMailSMTP\Vendor\phpseclib\Crypt\RSA(); + $rsa->loadKey(['n' => new \WPMailSMTP\Vendor\phpseclib\Math\BigInteger($this->callJwtStatic('urlsafeB64Decode', [$cert['n']]), 256), 'e' => new \WPMailSMTP\Vendor\phpseclib\Math\BigInteger($this->callJwtStatic('urlsafeB64Decode', [$cert['e']]), 256)]); // create an array of key IDs to certs for the JWT library - $keys[$cert['kid']] = $rsa->getPublicKey(); + $keys[$cert['kid']] = $rsa->getPublicKey(); } - - $payload = $this->callJwtStatic('decode', [ - $token, - $keys, - ['RS256'] - ]); - - if (property_exists($payload, 'aud')) { + $payload = $this->callJwtStatic('decode', [$token, $keys, ['RS256']]); + if (\property_exists($payload, 'aud')) { if ($audience && $payload->aud != $audience) { - throw new UnexpectedValueException('Audience does not match'); + throw new \UnexpectedValueException('Audience does not match'); } } - // support HTTP and HTTPS issuers // @see https://developers.google.com/identity/sign-in/web/backend-auth $issuers = $issuer ? [$issuer] : [self::OAUTH2_ISSUER, self::OAUTH2_ISSUER_HTTPS]; - if (!isset($payload->iss) || !in_array($payload->iss, $issuers)) { - throw new UnexpectedValueException('Issuer does not match'); + if (!isset($payload->iss) || !\in_array($payload->iss, $issuers)) { + throw new \UnexpectedValueException('Issuer does not match'); } - return (array) $payload; } - /** * Revoke an OAuth2 access token or refresh token. This method will revoke the current access * token, if a token isn't provided. @@ -292,27 +241,19 @@ class AccessToken */ public function revoke($token, array $options = []) { - if (is_array($token)) { + if (\is_array($token)) { if (isset($token['refresh_token'])) { $token = $token['refresh_token']; } else { $token = $token['access_token']; } } - - $body = Psr7\stream_for(http_build_query(['token' => $token])); - $request = new Request('POST', self::OAUTH2_REVOKE_URI, [ - 'Cache-Control' => 'no-store', - 'Content-Type' => 'application/x-www-form-urlencoded', - ], $body); - + $body = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\stream_for(\http_build_query(['token' => $token])); + $request = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('POST', self::OAUTH2_REVOKE_URI, ['Cache-Control' => 'no-store', 'Content-Type' => 'application/x-www-form-urlencoded'], $body); $httpHandler = $this->httpHandler; - $response = $httpHandler($request, $options); - return $response->getStatusCode() == 200; } - /** * Gets federated sign-on certificates to use for verifying identity tokens. * Returns certs as array structure, where keys are key ids, and values @@ -328,36 +269,26 @@ class AccessToken { $cacheItem = $this->cache->getItem($cacheKey); $certs = $cacheItem ? $cacheItem->get() : null; - - $gotNewCerts = false; + $gotNewCerts = \false; if (!$certs) { $certs = $this->retrieveCertsFromLocation($location, $options); - - $gotNewCerts = true; + $gotNewCerts = \true; } - if (!isset($certs['keys'])) { if ($location !== self::IAP_CERT_URL) { - throw new InvalidArgumentException( - 'federated sign-on certs expects "keys" to be set' - ); + throw new \InvalidArgumentException('federated sign-on certs expects "keys" to be set'); } - throw new InvalidArgumentException( - 'certs expects "keys" to be set' - ); + throw new \InvalidArgumentException('certs expects "keys" to be set'); } - // Push caching off until after verifying certs are in a valid format. // Don't want to cache bad data. if ($gotNewCerts) { - $cacheItem->expiresAt(new DateTime('+1 hour')); + $cacheItem->expiresAt(new \DateTime('+1 hour')); $cacheItem->set($certs); $this->cache->save($cacheItem); } - return $certs['keys']; } - /** * Retrieve and cache a certificates file. * @@ -370,50 +301,36 @@ class AccessToken private function retrieveCertsFromLocation($url, array $options = []) { // If we're retrieving a local file, just grab it. - if (strpos($url, 'http') !== 0) { - if (!file_exists($url)) { - throw new InvalidArgumentException(sprintf( - 'Failed to retrieve verification certificates from path: %s.', - $url - )); + if (\strpos($url, 'http') !== 0) { + if (!\file_exists($url)) { + throw new \InvalidArgumentException(\sprintf('Failed to retrieve verification certificates from path: %s.', $url)); } - - return json_decode(file_get_contents($url), true); + return \json_decode(\file_get_contents($url), \true); } - $httpHandler = $this->httpHandler; - $response = $httpHandler(new Request('GET', $url), $options); - + $response = $httpHandler(new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $url), $options); if ($response->getStatusCode() == 200) { - return json_decode((string) $response->getBody(), true); + return \json_decode((string) $response->getBody(), \true); } - - throw new RuntimeException(sprintf( - 'Failed to retrieve verification certificates: "%s".', - $response->getBody()->getContents() - ), $response->getStatusCode()); + throw new \RuntimeException(\sprintf('Failed to retrieve verification certificates: "%s".', $response->getBody()->getContents()), $response->getStatusCode()); } - private function checkAndInitializePhpsec() { // @codeCoverageIgnoreStart - if (!class_exists('phpseclib\Crypt\RSA')) { - throw new RuntimeException('Please require phpseclib/phpseclib v2 to use this utility.'); + if (!\class_exists('WPMailSMTP\\Vendor\\phpseclib\\Crypt\\RSA')) { + throw new \RuntimeException('Please require phpseclib/phpseclib v2 to use this utility.'); } // @codeCoverageIgnoreEnd - $this->setPhpsecConstants(); } - private function checkSimpleJwt() { // @codeCoverageIgnoreStart - if (!class_exists('SimpleJWT\JWT')) { - throw new RuntimeException('Please require kelvinmo/simplejwt ^0.2 to use this utility.'); + if (!\class_exists('WPMailSMTP\\Vendor\\SimpleJWT\\JWT')) { + throw new \RuntimeException('Please require kelvinmo/simplejwt ^0.2 to use this utility.'); } // @codeCoverageIgnoreEnd } - /** * phpseclib calls "phpinfo" by default, which requires special * whitelisting in the AppEngine VM environment. This function @@ -425,16 +342,15 @@ class AccessToken */ private function setPhpsecConstants() { - if (filter_var(getenv('GAE_VM'), FILTER_VALIDATE_BOOLEAN)) { - if (!defined('MATH_BIGINTEGER_OPENSSL_ENABLED')) { - define('MATH_BIGINTEGER_OPENSSL_ENABLED', true); + if (\filter_var(\getenv('GAE_VM'), \FILTER_VALIDATE_BOOLEAN)) { + if (!\defined('WPMailSMTP\\Vendor\\MATH_BIGINTEGER_OPENSSL_ENABLED')) { + \define('WPMailSMTP\\Vendor\\MATH_BIGINTEGER_OPENSSL_ENABLED', \true); } - if (!defined('CRYPT_RSA_MODE')) { - define('CRYPT_RSA_MODE', RSA::MODE_OPENSSL); + if (!\defined('WPMailSMTP\\Vendor\\CRYPT_RSA_MODE')) { + \define('WPMailSMTP\\Vendor\\CRYPT_RSA_MODE', \WPMailSMTP\Vendor\phpseclib\Crypt\RSA::MODE_OPENSSL); } } } - /** * Provide a hook to mock calls to the JWT static methods. * @@ -444,12 +360,9 @@ class AccessToken */ protected function callJwtStatic($method, array $args = []) { - $class = class_exists('Firebase\JWT\JWT') - ? 'Firebase\JWT\JWT' - : 'JWT'; - return call_user_func_array([$class, $method], $args); + $class = \class_exists('WPMailSMTP\\Vendor\\Firebase\\JWT\\JWT') ? 'Firebase\\JWT\\JWT' : 'JWT'; + return \call_user_func_array([$class, $method], $args); } - /** * Provide a hook to mock calls to the JWT static methods. * @@ -458,9 +371,8 @@ class AccessToken */ protected function callSimpleJwtDecode(array $args = []) { - return call_user_func_array(['SimpleJWT\JWT', 'decode'], $args); + return \call_user_func_array(['SimpleJWT\\JWT', 'decode'], $args); } - /** * Generate a cache key based on the cert location using sha1 with the * exception of using "federated_signon_certs_v3" to preserve BC. @@ -470,10 +382,7 @@ class AccessToken */ private function getCacheKeyFromCertLocation($certsLocation) { - $key = $certsLocation === self::FEDERATED_SIGNON_CERT_URL - ? 'federated_signon_certs_v3' - : sha1($certsLocation); - + $key = $certsLocation === self::FEDERATED_SIGNON_CERT_URL ? 'federated_signon_certs_v3' : \sha1($certsLocation); return 'google_auth_certs_cache|' . $key; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/ApplicationDefaultCredentials.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/ApplicationDefaultCredentials.php similarity index 57% rename from wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/ApplicationDefaultCredentials.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/ApplicationDefaultCredentials.php index add1c93..b5d4755 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/ApplicationDefaultCredentials.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/ApplicationDefaultCredentials.php @@ -1,4 +1,5 @@ onGce($httpHandler); + } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Cache/InvalidArgumentException.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/Cache/InvalidArgumentException.php similarity index 76% rename from wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Cache/InvalidArgumentException.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/Cache/InvalidArgumentException.php index 331e561..e5aa66a 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Cache/InvalidArgumentException.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/Cache/InvalidArgumentException.php @@ -1,4 +1,5 @@ key = $key; } - /** * {@inheritdoc} */ @@ -59,7 +53,6 @@ final class Item implements CacheItemInterface { return $this->key; } - /** * {@inheritdoc} */ @@ -67,34 +60,28 @@ final class Item implements CacheItemInterface { return $this->isHit() ? $this->value : null; } - /** * {@inheritdoc} */ public function isHit() { if (!$this->isHit) { - return false; + return \false; } - if ($this->expiration === null) { - return true; + return \true; } - return $this->currentTime()->getTimestamp() < $this->expiration->getTimestamp(); } - /** * {@inheritdoc} */ public function set($value) { - $this->isHit = true; + $this->isHit = \true; $this->value = $value; - return $this; } - /** * {@inheritdoc} */ @@ -102,46 +89,30 @@ final class Item implements CacheItemInterface { if ($this->isValidExpiration($expiration)) { $this->expiration = $expiration; - return $this; } - - $implementationMessage = interface_exists('DateTimeInterface') - ? 'implement interface DateTimeInterface' - : 'be an instance of DateTime'; - - $error = sprintf( - 'Argument 1 passed to %s::expiresAt() must %s, %s given', - get_class($this), - $implementationMessage, - gettype($expiration) - ); - + $implementationMessage = \interface_exists('DateTimeInterface') ? 'implement interface DateTimeInterface' : 'be an instance of DateTime'; + $error = \sprintf('Argument 1 passed to %s::expiresAt() must %s, %s given', \get_class($this), $implementationMessage, \gettype($expiration)); $this->handleError($error); } - /** * {@inheritdoc} */ public function expiresAfter($time) { - if (is_int($time)) { + if (\is_int($time)) { $this->expiration = $this->currentTime()->add(new \DateInterval("PT{$time}S")); } elseif ($time instanceof \DateInterval) { $this->expiration = $this->currentTime()->add($time); } elseif ($time === null) { $this->expiration = $time; } else { - $message = 'Argument 1 passed to %s::expiresAfter() must be an ' . - 'instance of DateInterval or of the type integer, %s given'; - $error = sprintf($message, get_class($this), gettype($time)); - + $message = 'Argument 1 passed to %s::expiresAfter() must be an ' . 'instance of DateInterval or of the type integer, %s given'; + $error = \sprintf($message, \get_class($this), \gettype($time)); $this->handleError($error); } - return $this; } - /** * Handles an error. * @@ -150,13 +121,11 @@ final class Item implements CacheItemInterface */ private function handleError($error) { - if (class_exists('TypeError')) { + if (\class_exists('TypeError')) { throw new \TypeError($error); } - - trigger_error($error, E_USER_ERROR); + \trigger_error($error, \E_USER_ERROR); } - /** * Determines if an expiration is valid based on the rules defined by PSR6. * @@ -166,23 +135,19 @@ final class Item implements CacheItemInterface private function isValidExpiration($expiration) { if ($expiration === null) { - return true; + return \true; } - // We test for two types here due to the fact the DateTimeInterface // was not introduced until PHP 5.5. Checking for the DateTime type as // well allows us to support 5.4. if ($expiration instanceof \DateTimeInterface) { - return true; + return \true; } - if ($expiration instanceof \DateTime) { - return true; + return \true; } - - return false; + return \false; } - protected function currentTime() { return new \DateTime('now', new \DateTimeZone('UTC')); diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Cache/MemoryCacheItemPool.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/Cache/MemoryCacheItemPool.php similarity index 72% rename from wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Cache/MemoryCacheItemPool.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/Cache/MemoryCacheItemPool.php index 0af2930..3c92bb9 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Cache/MemoryCacheItemPool.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/Cache/MemoryCacheItemPool.php @@ -1,4 +1,5 @@ getItems([$key])); + return \current($this->getItems([$key])); } - /** * {@inheritdoc} */ public function getItems(array $keys = []) { $items = []; - foreach ($keys as $key) { - $items[$key] = $this->hasItem($key) ? clone $this->items[$key] : new Item($key); + $items[$key] = $this->hasItem($key) ? clone $this->items[$key] : new \WPMailSMTP\Vendor\Google\Auth\Cache\Item($key); } - return $items; } - /** * {@inheritdoc} */ public function hasItem($key) { $this->isValidKey($key); - return isset($this->items[$key]) && $this->items[$key]->isHit(); } - /** * {@inheritdoc} */ @@ -74,10 +65,8 @@ final class MemoryCacheItemPool implements CacheItemPoolInterface { $this->items = []; $this->deferredItems = []; - - return true; + return \true; } - /** * {@inheritdoc} */ @@ -85,41 +74,33 @@ final class MemoryCacheItemPool implements CacheItemPoolInterface { return $this->deleteItems([$key]); } - /** * {@inheritdoc} */ public function deleteItems(array $keys) { - array_walk($keys, [$this, 'isValidKey']); - + \array_walk($keys, [$this, 'isValidKey']); foreach ($keys as $key) { unset($this->items[$key]); } - - return true; + return \true; } - /** * {@inheritdoc} */ - public function save(CacheItemInterface $item) + public function save(\WPMailSMTP\Vendor\Psr\Cache\CacheItemInterface $item) { $this->items[$item->getKey()] = $item; - - return true; + return \true; } - /** * {@inheritdoc} */ - public function saveDeferred(CacheItemInterface $item) + public function saveDeferred(\WPMailSMTP\Vendor\Psr\Cache\CacheItemInterface $item) { $this->deferredItems[$item->getKey()] = $item; - - return true; + return \true; } - /** * {@inheritdoc} */ @@ -128,12 +109,9 @@ final class MemoryCacheItemPool implements CacheItemPoolInterface foreach ($this->deferredItems as $item) { $this->save($item); } - $this->deferredItems = []; - - return true; + return \true; } - /** * Determines if the provided key is valid. * @@ -144,11 +122,9 @@ final class MemoryCacheItemPool implements CacheItemPoolInterface private function isValidKey($key) { $invalidCharacters = '{}()/\\\\@:'; - - if (!is_string($key) || preg_match("#[$invalidCharacters]#", $key)) { - throw new InvalidArgumentException('The provided key is not valid: ' . var_export($key, true)); + if (!\is_string($key) || \preg_match("#[{$invalidCharacters}]#", $key)) { + throw new \WPMailSMTP\Vendor\Google\Auth\Cache\InvalidArgumentException('The provided key is not valid: ' . \var_export($key, \true)); } - - return true; + return \true; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Cache/SysVCacheItemPool.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/Cache/SysVCacheItemPool.php similarity index 69% rename from wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Cache/SysVCacheItemPool.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/Cache/SysVCacheItemPool.php index 1834cf1..0115c54 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Cache/SysVCacheItemPool.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/Cache/SysVCacheItemPool.php @@ -1,4 +1,5 @@ options = $options + [ - 'variableKey' => self::VAR_KEY, - 'proj' => self::DEFAULT_PROJ, - 'memsize' => self::DEFAULT_MEMSIZE, - 'perm' => self::DEFAULT_PERM - ]; + $this->options = $options + ['variableKey' => self::VAR_KEY, 'proj' => self::DEFAULT_PROJ, 'memsize' => self::DEFAULT_MEMSIZE, 'perm' => self::DEFAULT_PERM]; $this->items = []; $this->deferredItems = []; - $this->sysvKey = ftok(__FILE__, $this->options['proj']); + $this->sysvKey = \ftok(__FILE__, $this->options['proj']); } - public function getItem($key) { $this->loadItems(); - return current($this->getItems([$key])); + return \current($this->getItems([$key])); } - /** * {@inheritdoc} */ @@ -104,13 +86,10 @@ class SysVCacheItemPool implements CacheItemPoolInterface $this->loadItems(); $items = []; foreach ($keys as $key) { - $items[$key] = $this->hasItem($key) ? - clone $this->items[$key] : - new Item($key); + $items[$key] = $this->hasItem($key) ? clone $this->items[$key] : new \WPMailSMTP\Vendor\Google\Auth\Cache\Item($key); } return $items; } - /** * {@inheritdoc} */ @@ -119,7 +98,6 @@ class SysVCacheItemPool implements CacheItemPoolInterface $this->loadItems(); return isset($this->items[$key]) && $this->items[$key]->isHit(); } - /** * {@inheritdoc} */ @@ -129,7 +107,6 @@ class SysVCacheItemPool implements CacheItemPoolInterface $this->deferredItems = []; return $this->saveCurrentItems(); } - /** * {@inheritdoc} */ @@ -137,7 +114,6 @@ class SysVCacheItemPool implements CacheItemPoolInterface { return $this->deleteItems([$key]); } - /** * {@inheritdoc} */ @@ -146,49 +122,43 @@ class SysVCacheItemPool implements CacheItemPoolInterface if (!$this->hasLoadedItems) { $this->loadItems(); } - foreach ($keys as $key) { unset($this->items[$key]); } return $this->saveCurrentItems(); } - /** * {@inheritdoc} */ - public function save(CacheItemInterface $item) + public function save(\WPMailSMTP\Vendor\Psr\Cache\CacheItemInterface $item) { if (!$this->hasLoadedItems) { $this->loadItems(); } - $this->items[$item->getKey()] = $item; return $this->saveCurrentItems(); } - /** * {@inheritdoc} */ - public function saveDeferred(CacheItemInterface $item) + public function saveDeferred(\WPMailSMTP\Vendor\Psr\Cache\CacheItemInterface $item) { $this->deferredItems[$item->getKey()] = $item; - return true; + return \true; } - /** * {@inheritdoc} */ public function commit() { foreach ($this->deferredItems as $item) { - if ($this->save($item) === false) { - return false; + if ($this->save($item) === \false) { + return \false; } } $this->deferredItems = []; - return true; + return \true; } - /** * Save the current items. * @@ -196,23 +166,14 @@ class SysVCacheItemPool implements CacheItemPoolInterface */ private function saveCurrentItems() { - $shmid = shm_attach( - $this->sysvKey, - $this->options['memsize'], - $this->options['perm'] - ); - if ($shmid !== false) { - $ret = shm_put_var( - $shmid, - $this->options['variableKey'], - $this->items - ); - shm_detach($shmid); + $shmid = \shm_attach($this->sysvKey, $this->options['memsize'], $this->options['perm']); + if ($shmid !== \false) { + $ret = \shm_put_var($shmid, $this->options['variableKey'], $this->items); + \shm_detach($shmid); return $ret; } - return false; + return \false; } - /** * Load the items from the shared memory. * @@ -220,22 +181,18 @@ class SysVCacheItemPool implements CacheItemPoolInterface */ private function loadItems() { - $shmid = shm_attach( - $this->sysvKey, - $this->options['memsize'], - $this->options['perm'] - ); - if ($shmid !== false) { - $data = @shm_get_var($shmid, $this->options['variableKey']); + $shmid = \shm_attach($this->sysvKey, $this->options['memsize'], $this->options['perm']); + if ($shmid !== \false) { + $data = @\shm_get_var($shmid, $this->options['variableKey']); if (!empty($data)) { $this->items = $data; } else { $this->items = []; } - shm_detach($shmid); - $this->hasLoadedItems = true; - return true; + \shm_detach($shmid); + $this->hasLoadedItems = \true; + return \true; } - return false; + return \false; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/CacheTrait.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/CacheTrait.php similarity index 80% rename from wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/CacheTrait.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/CacheTrait.php index 217ce8e..e08c7f3 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/CacheTrait.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/CacheTrait.php @@ -1,4 +1,5 @@ cache)) { + if (\is_null($this->cache)) { return; } - $key = $this->getFullCacheKey($k); - if (is_null($key)) { + if (\is_null($key)) { return; } - $cacheItem = $this->cache->getItem($key); if ($cacheItem->isHit()) { return $cacheItem->get(); } } - /** * Saves the value in the cache when that is available. */ private function setCachedValue($k, $v) { - if (is_null($this->cache)) { + if (\is_null($this->cache)) { return; } - $key = $this->getFullCacheKey($k); - if (is_null($key)) { + if (\is_null($key)) { return; } - $cacheItem = $this->cache->getItem($key); $cacheItem->set($v); $cacheItem->expiresAfter($this->cacheConfig['lifetime']); return $this->cache->save($cacheItem); } - private function getFullCacheKey($key) { - if (is_null($key)) { + if (\is_null($key)) { return; } - $key = $this->cacheConfig['prefix'] . $key; - // ensure we do not have illegal characters - $key = preg_replace('|[^a-zA-Z0-9_\.!]|', '', $key); - + $key = \preg_replace('|[^a-zA-Z0-9_\\.!]|', '', $key); // Hash keys if they exceed $maxKeyLength (defaults to 64) - if ($this->maxKeyLength && strlen($key) > $this->maxKeyLength) { - $key = substr(hash('sha256', $key), 0, $this->maxKeyLength); + if ($this->maxKeyLength && \strlen($key) > $this->maxKeyLength) { + $key = \substr(\hash('sha256', $key), 0, $this->maxKeyLength); } - return $key; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Credentials/AppIdentityCredentials.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/Credentials/AppIdentityCredentials.php similarity index 74% rename from wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Credentials/AppIdentityCredentials.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/Credentials/AppIdentityCredentials.php index 829344d..8ecdf64 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Credentials/AppIdentityCredentials.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/Credentials/AppIdentityCredentials.php @@ -1,4 +1,5 @@ get('volumes?q=Henry+David+Thoreau&country=US'); * ``` */ -class AppIdentityCredentials extends CredentialsLoader implements - SignBlobInterface, - ProjectIdProviderInterface +class AppIdentityCredentials extends \WPMailSMTP\Vendor\Google\Auth\CredentialsLoader implements \WPMailSMTP\Vendor\Google\Auth\SignBlobInterface, \WPMailSMTP\Vendor\Google\Auth\ProjectIdProviderInterface { /** * Result of fetchAuthToken. @@ -64,19 +61,16 @@ class AppIdentityCredentials extends CredentialsLoader implements * @var array */ protected $lastReceivedToken; - /** * Array of OAuth2 scopes to be requested. * * @var array */ private $scope; - /** * @var string */ private $clientName; - /** * @param array $scope One or more scopes. */ @@ -84,7 +78,6 @@ class AppIdentityCredentials extends CredentialsLoader implements { $this->scope = $scope; } - /** * Determines if this an App Engine instance, by accessing the * SERVER_SOFTWARE environment variable (prod) or the APPENGINE_RUNTIME @@ -94,19 +87,16 @@ class AppIdentityCredentials extends CredentialsLoader implements */ public static function onAppEngine() { - $appEngineProduction = isset($_SERVER['SERVER_SOFTWARE']) && - 0 === strpos($_SERVER['SERVER_SOFTWARE'], 'Google App Engine'); + $appEngineProduction = isset($_SERVER['SERVER_SOFTWARE']) && 0 === \strpos($_SERVER['SERVER_SOFTWARE'], 'Google App Engine'); if ($appEngineProduction) { - return true; + return \true; } - $appEngineDevAppServer = isset($_SERVER['APPENGINE_RUNTIME']) && - $_SERVER['APPENGINE_RUNTIME'] == 'php'; + $appEngineDevAppServer = isset($_SERVER['APPENGINE_RUNTIME']) && $_SERVER['APPENGINE_RUNTIME'] == 'php'; if ($appEngineDevAppServer) { - return true; + return \true; } - return false; + return \false; } - /** * Implements FetchAuthTokenInterface#fetchAuthToken. * @@ -127,16 +117,12 @@ class AppIdentityCredentials extends CredentialsLoader implements } catch (\Exception $e) { return []; } - // AppIdentityService expects an array when multiple scopes are supplied - $scope = is_array($this->scope) ? $this->scope : explode(' ', $this->scope); - - $token = AppIdentityService::getAccessToken($scope); + $scope = \is_array($this->scope) ? $this->scope : \explode(' ', $this->scope); + $token = \WPMailSMTP\Vendor\google\appengine\api\app_identity\AppIdentityService::getAccessToken($scope); $this->lastReceivedToken = $token; - return $token; } - /** * Sign a string using AppIdentityService. * @@ -146,13 +132,11 @@ class AppIdentityCredentials extends CredentialsLoader implements * @return string The signature, base64-encoded. * @throws \Exception If AppEngine SDK or mock is not available. */ - public function signBlob($stringToSign, $forceOpenSsl = false) + public function signBlob($stringToSign, $forceOpenSsl = \false) { $this->checkAppEngineContext(); - - return base64_encode(AppIdentityService::signForApp($stringToSign)['signature']); + return \base64_encode(\WPMailSMTP\Vendor\google\appengine\api\app_identity\AppIdentityService::signForApp($stringToSign)['signature']); } - /** * Get the project ID from AppIdentityService. * @@ -168,10 +152,8 @@ class AppIdentityCredentials extends CredentialsLoader implements } catch (\Exception $e) { return null; } - - return AppIdentityService::getApplicationId(); + return \WPMailSMTP\Vendor\google\appengine\api\app_identity\AppIdentityService::getApplicationId(); } - /** * Get the client name from AppIdentityService. * @@ -184,29 +166,21 @@ class AppIdentityCredentials extends CredentialsLoader implements public function getClientName(callable $httpHandler = null) { $this->checkAppEngineContext(); - if (!$this->clientName) { - $this->clientName = AppIdentityService::getServiceAccountName(); + $this->clientName = \WPMailSMTP\Vendor\google\appengine\api\app_identity\AppIdentityService::getServiceAccountName(); } - return $this->clientName; } - /** * @return array|null */ public function getLastReceivedToken() { if ($this->lastReceivedToken) { - return [ - 'access_token' => $this->lastReceivedToken['access_token'], - 'expires_at' => $this->lastReceivedToken['expiration_time'], - ]; + return ['access_token' => $this->lastReceivedToken['access_token'], 'expires_at' => $this->lastReceivedToken['expiration_time']]; } - return null; } - /** * Caching is handled by the underlying AppIdentityService, return empty string * to prevent caching. @@ -217,14 +191,10 @@ class AppIdentityCredentials extends CredentialsLoader implements { return ''; } - private function checkAppEngineContext() { - if (!self::onAppEngine() || !class_exists('google\appengine\api\app_identity\AppIdentityService')) { - throw new \Exception( - 'This class must be run in App Engine, or you must include the AppIdentityService ' - . 'mock class defined in tests/mocks/AppIdentityService.php' - ); + if (!self::onAppEngine() || !\class_exists('WPMailSMTP\\Vendor\\google\\appengine\\api\\app_identity\\AppIdentityService')) { + throw new \Exception('This class must be run in App Engine, or you must include the AppIdentityService ' . 'mock class defined in tests/mocks/AppIdentityService.php'); } } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Credentials/GCECredentials.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/Credentials/GCECredentials.php similarity index 72% rename from wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Credentials/GCECredentials.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/Credentials/GCECredentials.php index 837f2a1..30282c7 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Credentials/GCECredentials.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/Credentials/GCECredentials.php @@ -1,4 +1,5 @@ get('myproject/taskqueues/myqueue'); */ -class GCECredentials extends CredentialsLoader implements - SignBlobInterface, - ProjectIdProviderInterface, - GetQuotaProjectInterface +class GCECredentials extends \WPMailSMTP\Vendor\Google\Auth\CredentialsLoader implements \WPMailSMTP\Vendor\Google\Auth\SignBlobInterface, \WPMailSMTP\Vendor\Google\Auth\ProjectIdProviderInterface, \WPMailSMTP\Vendor\Google\Auth\GetQuotaProjectInterface { // phpcs:disable const cacheKey = 'GOOGLE_AUTH_PHP_GCE'; // phpcs:enable - /** * The metadata IP address on appengine instances. * @@ -71,32 +66,26 @@ class GCECredentials extends CredentialsLoader implements * when not on Compute Engine. */ const METADATA_IP = '169.254.169.254'; - /** * The metadata path of the default token. */ const TOKEN_URI_PATH = 'v1/instance/service-accounts/default/token'; - /** * The metadata path of the default id token. */ const ID_TOKEN_URI_PATH = 'v1/instance/service-accounts/default/identity'; - /** * The metadata path of the client ID. */ const CLIENT_ID_URI_PATH = 'v1/instance/service-accounts/default/email'; - /** * The metadata path of the project ID. */ const PROJECT_ID_URI_PATH = 'v1/project/project-id'; - /** * The header whose presence indicates GCE presence. */ const FLAVOR_HEADER = 'Metadata-Flavor'; - /** * Note: the explicit `timeout` and `tries` below is a workaround. The underlying * issue is that resolving an unknown host on some networks will take @@ -109,56 +98,46 @@ class GCECredentials extends CredentialsLoader implements */ const MAX_COMPUTE_PING_TRIES = 3; const COMPUTE_PING_CONNECTION_TIMEOUT_S = 0.5; - /** * Flag used to ensure that the onGCE test is only done once;. * * @var bool */ - private $hasCheckedOnGce = false; - + private $hasCheckedOnGce = \false; /** * Flag that stores the value of the onGCE check. * * @var bool */ - private $isOnGce = false; - + private $isOnGce = \false; /** * Result of fetchAuthToken. */ protected $lastReceivedToken; - /** * @var string|null */ private $clientName; - /** * @var string|null */ private $projectId; - /** * @var Iam|null */ private $iam; - /** * @var string */ private $tokenUri; - /** * @var string */ private $targetAudience; - /** * @var string|null */ private $quotaProject; - /** * @param Iam $iam [optional] An IAM instance. * @param string|array $scope [optional] the scope of the access request, @@ -167,39 +146,26 @@ class GCECredentials extends CredentialsLoader implements * @param string $quotaProject [optional] Specifies a project to bill for access * charges associated with the request. */ - public function __construct(Iam $iam = null, $scope = null, $targetAudience = null, $quotaProject = null) + public function __construct(\WPMailSMTP\Vendor\Google\Auth\Iam $iam = null, $scope = null, $targetAudience = null, $quotaProject = null) { $this->iam = $iam; - if ($scope && $targetAudience) { - throw new InvalidArgumentException( - 'Scope and targetAudience cannot both be supplied' - ); + throw new \InvalidArgumentException('Scope and targetAudience cannot both be supplied'); } - $tokenUri = self::getTokenUri(); if ($scope) { - if (is_string($scope)) { - $scope = explode(' ', $scope); + if (\is_string($scope)) { + $scope = \explode(' ', $scope); } - - $scope = implode(',', $scope); - - $tokenUri = $tokenUri . '?scopes='. $scope; + $scope = \implode(',', $scope); + $tokenUri = $tokenUri . '?scopes=' . $scope; } elseif ($targetAudience) { - $tokenUri = sprintf( - 'http://%s/computeMetadata/%s?audience=%s', - self::METADATA_IP, - self::ID_TOKEN_URI_PATH, - $targetAudience - ); + $tokenUri = \sprintf('http://%s/computeMetadata/%s?audience=%s', self::METADATA_IP, self::ID_TOKEN_URI_PATH, $targetAudience); $this->targetAudience = $targetAudience; } - $this->tokenUri = $tokenUri; $this->quotaProject = $quotaProject; } - /** * The full uri for accessing the default token. * @@ -208,10 +174,8 @@ class GCECredentials extends CredentialsLoader implements public static function getTokenUri() { $base = 'http://' . self::METADATA_IP . '/computeMetadata/'; - return $base . self::TOKEN_URI_PATH; } - /** * The full uri for accessing the default service account. * @@ -220,10 +184,8 @@ class GCECredentials extends CredentialsLoader implements public static function getClientNameUri() { $base = 'http://' . self::METADATA_IP . '/computeMetadata/'; - return $base . self::CLIENT_ID_URI_PATH; } - /** * The full uri for accessing the default project ID. * @@ -232,10 +194,8 @@ class GCECredentials extends CredentialsLoader implements private static function getProjectIdUri() { $base = 'http://' . self::METADATA_IP . '/computeMetadata/'; - return $base . self::PROJECT_ID_URI_PATH; } - /** * Determines if this an App Engine Flexible instance, by accessing the * GAE_INSTANCE environment variable. @@ -244,9 +204,8 @@ class GCECredentials extends CredentialsLoader implements */ public static function onAppEngineFlexible() { - return substr(getenv('GAE_INSTANCE'), 0, 4) === 'aef-'; + return \substr(\getenv('GAE_INSTANCE'), 0, 4) === 'aef-'; } - /** * Determines if this a GCE instance, by accessing the expected metadata * host. @@ -257,9 +216,7 @@ class GCECredentials extends CredentialsLoader implements */ public static function onGce(callable $httpHandler = null) { - $httpHandler = $httpHandler - ?: HttpHandlerFactory::build(HttpClientCache::getHttpClient()); - + $httpHandler = $httpHandler ?: \WPMailSMTP\Vendor\Google\Auth\HttpHandler\HttpHandlerFactory::build(\WPMailSMTP\Vendor\Google\Auth\HttpHandler\HttpClientCache::getHttpClient()); $checkUri = 'http://' . self::METADATA_IP; for ($i = 1; $i <= self::MAX_COMPUTE_PING_TRIES; $i++) { try { @@ -271,25 +228,16 @@ class GCECredentials extends CredentialsLoader implements // could lead to false negatives in the event that we are on GCE, but // the metadata resolution was particularly slow. The latter case is // "unlikely". - $resp = $httpHandler( - new Request( - 'GET', - $checkUri, - [self::FLAVOR_HEADER => 'Google'] - ), - ['timeout' => self::COMPUTE_PING_CONNECTION_TIMEOUT_S] - ); - + $resp = $httpHandler(new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $checkUri, [self::FLAVOR_HEADER => 'Google']), ['timeout' => self::COMPUTE_PING_CONNECTION_TIMEOUT_S]); return $resp->getHeaderLine(self::FLAVOR_HEADER) == 'Google'; - } catch (ClientException $e) { - } catch (ServerException $e) { - } catch (RequestException $e) { - } catch (ConnectException $e) { + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\ClientException $e) { + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\ServerException $e) { + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\ConnectException $e) { } } - return false; + return \false; } - /** * Implements FetchAuthTokenInterface#fetchAuthToken. * @@ -311,34 +259,27 @@ class GCECredentials extends CredentialsLoader implements */ public function fetchAuthToken(callable $httpHandler = null) { - $httpHandler = $httpHandler - ?: HttpHandlerFactory::build(HttpClientCache::getHttpClient()); - + $httpHandler = $httpHandler ?: \WPMailSMTP\Vendor\Google\Auth\HttpHandler\HttpHandlerFactory::build(\WPMailSMTP\Vendor\Google\Auth\HttpHandler\HttpClientCache::getHttpClient()); if (!$this->hasCheckedOnGce) { $this->isOnGce = self::onGce($httpHandler); - $this->hasCheckedOnGce = true; + $this->hasCheckedOnGce = \true; } if (!$this->isOnGce) { - return array(); // return an empty array with no access token + return array(); + // return an empty array with no access token } - $response = $this->getFromMetadata($httpHandler, $this->tokenUri); - if ($this->targetAudience) { return ['id_token' => $response]; } - - if (null === $json = json_decode($response, true)) { + if (null === ($json = \json_decode($response, \true))) { throw new \Exception('Invalid JSON response'); } - // store this so we can retrieve it later $this->lastReceivedToken = $json; - $this->lastReceivedToken['expires_at'] = time() + $json['expires_in']; - + $this->lastReceivedToken['expires_at'] = \time() + $json['expires_in']; return $json; } - /** * @return string */ @@ -346,22 +287,16 @@ class GCECredentials extends CredentialsLoader implements { return self::cacheKey; } - /** * @return array|null */ public function getLastReceivedToken() { if ($this->lastReceivedToken) { - return [ - 'access_token' => $this->lastReceivedToken['access_token'], - 'expires_at' => $this->lastReceivedToken['expires_at'], - ]; + return ['access_token' => $this->lastReceivedToken['access_token'], 'expires_at' => $this->lastReceivedToken['expires_at']]; } - return null; } - /** * Get the client name from GCE metadata. * @@ -375,24 +310,17 @@ class GCECredentials extends CredentialsLoader implements if ($this->clientName) { return $this->clientName; } - - $httpHandler = $httpHandler - ?: HttpHandlerFactory::build(HttpClientCache::getHttpClient()); - + $httpHandler = $httpHandler ?: \WPMailSMTP\Vendor\Google\Auth\HttpHandler\HttpHandlerFactory::build(\WPMailSMTP\Vendor\Google\Auth\HttpHandler\HttpClientCache::getHttpClient()); if (!$this->hasCheckedOnGce) { $this->isOnGce = self::onGce($httpHandler); - $this->hasCheckedOnGce = true; + $this->hasCheckedOnGce = \true; } - if (!$this->isOnGce) { return ''; } - $this->clientName = $this->getFromMetadata($httpHandler, self::getClientNameUri()); - return $this->clientName; } - /** * Sign a string using the default service account private key. * @@ -405,24 +333,17 @@ class GCECredentials extends CredentialsLoader implements * type. * @return string */ - public function signBlob($stringToSign, $forceOpenSsl = false) + public function signBlob($stringToSign, $forceOpenSsl = \false) { - $httpHandler = HttpHandlerFactory::build(HttpClientCache::getHttpClient()); - + $httpHandler = \WPMailSMTP\Vendor\Google\Auth\HttpHandler\HttpHandlerFactory::build(\WPMailSMTP\Vendor\Google\Auth\HttpHandler\HttpClientCache::getHttpClient()); // Providing a signer is useful for testing, but it's undocumented // because it's not something a user would generally need to do. - $signer = $this->iam ?: new Iam($httpHandler); - + $signer = $this->iam ?: new \WPMailSMTP\Vendor\Google\Auth\Iam($httpHandler); $email = $this->getClientName($httpHandler); - $previousToken = $this->getLastReceivedToken(); - $accessToken = $previousToken - ? $previousToken['access_token'] - : $this->fetchAuthToken($httpHandler)['access_token']; - + $accessToken = $previousToken ? $previousToken['access_token'] : $this->fetchAuthToken($httpHandler)['access_token']; return $signer->signBlob($email, $accessToken, $stringToSign); } - /** * Fetch the default Project ID from compute engine. * @@ -436,23 +357,17 @@ class GCECredentials extends CredentialsLoader implements if ($this->projectId) { return $this->projectId; } - - $httpHandler = $httpHandler - ?: HttpHandlerFactory::build(HttpClientCache::getHttpClient()); - + $httpHandler = $httpHandler ?: \WPMailSMTP\Vendor\Google\Auth\HttpHandler\HttpHandlerFactory::build(\WPMailSMTP\Vendor\Google\Auth\HttpHandler\HttpClientCache::getHttpClient()); if (!$this->hasCheckedOnGce) { $this->isOnGce = self::onGce($httpHandler); - $this->hasCheckedOnGce = true; + $this->hasCheckedOnGce = \true; } - if (!$this->isOnGce) { return null; } - $this->projectId = $this->getFromMetadata($httpHandler, self::getProjectIdUri()); return $this->projectId; } - /** * Fetch the value of a GCE metadata server URI. * @@ -462,17 +377,9 @@ class GCECredentials extends CredentialsLoader implements */ private function getFromMetadata(callable $httpHandler, $uri) { - $resp = $httpHandler( - new Request( - 'GET', - $uri, - [self::FLAVOR_HEADER => 'Google'] - ) - ); - + $resp = $httpHandler(new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $uri, [self::FLAVOR_HEADER => 'Google'])); return (string) $resp->getBody(); } - /** * Get the quota project used for this API request * diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Credentials/IAMCredentials.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/Credentials/IAMCredentials.php similarity index 81% rename from wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Credentials/IAMCredentials.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/Credentials/IAMCredentials.php index 5f055d8..7cf62a1 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Credentials/IAMCredentials.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/Credentials/IAMCredentials.php @@ -1,4 +1,5 @@ selector = $selector; $this->token = $token; } - /** * export a callback function which updates runtime metadata. * @@ -65,7 +56,6 @@ class IAMCredentials { return array($this, 'updateMetadata'); } - /** * Updates metadata with the appropriate header metadata. * @@ -77,15 +67,11 @@ class IAMCredentials * * @return array updated metadata hashmap */ - public function updateMetadata( - $metadata, - $unusedAuthUri = null, - callable $httpHandler = null - ) { + public function updateMetadata($metadata, $unusedAuthUri = null, callable $httpHandler = null) + { $metadata_copy = $metadata; $metadata_copy[self::SELECTOR_KEY] = $this->selector; $metadata_copy[self::TOKEN_KEY] = $this->token; - return $metadata_copy; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Credentials/InsecureCredentials.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/Credentials/InsecureCredentials.php similarity index 86% rename from wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Credentials/InsecureCredentials.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/Credentials/InsecureCredentials.php index dae894f..4b27a4d 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Credentials/InsecureCredentials.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/Credentials/InsecureCredentials.php @@ -1,4 +1,5 @@ '' - ]; - + private $token = ['access_token' => '']; /** * Fetches the auth token. In this case it returns an empty string. * @@ -45,7 +41,6 @@ class InsecureCredentials implements FetchAuthTokenInterface { return $this->token; } - /** * Returns the cache key. In this case it returns a null value, disabling * caching. @@ -56,7 +51,6 @@ class InsecureCredentials implements FetchAuthTokenInterface { return null; } - /** * Fetches the last received token. In this case, it returns the same empty string * auth token. diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Credentials/ServiceAccountCredentials.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/Credentials/ServiceAccountCredentials.php similarity index 71% rename from wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Credentials/ServiceAccountCredentials.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/Credentials/ServiceAccountCredentials.php index 7d5096b..ae5ce91 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Credentials/ServiceAccountCredentials.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/Credentials/ServiceAccountCredentials.php @@ -1,4 +1,5 @@ get('myproject/taskqueues/myqueue'); */ -class ServiceAccountCredentials extends CredentialsLoader implements - GetQuotaProjectInterface, - SignBlobInterface, - ProjectIdProviderInterface +class ServiceAccountCredentials extends \WPMailSMTP\Vendor\Google\Auth\CredentialsLoader implements \WPMailSMTP\Vendor\Google\Auth\GetQuotaProjectInterface, \WPMailSMTP\Vendor\Google\Auth\SignBlobInterface, \WPMailSMTP\Vendor\Google\Auth\ProjectIdProviderInterface { use ServiceAccountSignerTrait; - /** * The OAuth2 instance used to conduct authorization. * * @var OAuth2 */ protected $auth; - /** * The quota project associated with the JSON credentials * * @var string */ protected $quotaProject; - /* * @var string|null */ protected $projectId; - /** * Create a new ServiceAccountCredentials. * @@ -95,59 +87,36 @@ class ServiceAccountCredentials extends CredentialsLoader implements * the service account has been delegated domain wide access. * @param string $targetAudience The audience for the ID token. */ - public function __construct( - $scope, - $jsonKey, - $sub = null, - $targetAudience = null - ) { - if (is_string($jsonKey)) { - if (!file_exists($jsonKey)) { + public function __construct($scope, $jsonKey, $sub = null, $targetAudience = null) + { + if (\is_string($jsonKey)) { + if (!\file_exists($jsonKey)) { throw new \InvalidArgumentException('file does not exist'); } - $jsonKeyStream = file_get_contents($jsonKey); - if (!$jsonKey = json_decode($jsonKeyStream, true)) { + $jsonKeyStream = \file_get_contents($jsonKey); + if (!($jsonKey = \json_decode($jsonKeyStream, \true))) { throw new \LogicException('invalid json for auth config'); } } - if (!array_key_exists('client_email', $jsonKey)) { - throw new \InvalidArgumentException( - 'json key is missing the client_email field' - ); + if (!\array_key_exists('client_email', $jsonKey)) { + throw new \InvalidArgumentException('json key is missing the client_email field'); } - if (!array_key_exists('private_key', $jsonKey)) { - throw new \InvalidArgumentException( - 'json key is missing the private_key field' - ); + if (!\array_key_exists('private_key', $jsonKey)) { + throw new \InvalidArgumentException('json key is missing the private_key field'); } - if (array_key_exists('quota_project', $jsonKey)) { - $this->quotaProject = (string) $jsonKey['quota_project']; + if (\array_key_exists('quota_project_id', $jsonKey)) { + $this->quotaProject = (string) $jsonKey['quota_project_id']; } if ($scope && $targetAudience) { - throw new InvalidArgumentException( - 'Scope and targetAudience cannot both be supplied' - ); + throw new \InvalidArgumentException('Scope and targetAudience cannot both be supplied'); } $additionalClaims = []; if ($targetAudience) { $additionalClaims = ['target_audience' => $targetAudience]; } - $this->auth = new OAuth2([ - 'audience' => self::TOKEN_CREDENTIAL_URI, - 'issuer' => $jsonKey['client_email'], - 'scope' => $scope, - 'signingAlgorithm' => 'RS256', - 'signingKey' => $jsonKey['private_key'], - 'sub' => $sub, - 'tokenCredentialUri' => self::TOKEN_CREDENTIAL_URI, - 'additionalClaims' => $additionalClaims, - ]); - - $this->projectId = isset($jsonKey['project_id']) - ? $jsonKey['project_id'] - : null; + $this->auth = new \WPMailSMTP\Vendor\Google\Auth\OAuth2(['audience' => self::TOKEN_CREDENTIAL_URI, 'issuer' => $jsonKey['client_email'], 'scope' => $scope, 'signingAlgorithm' => 'RS256', 'signingKey' => $jsonKey['private_key'], 'sub' => $sub, 'tokenCredentialUri' => self::TOKEN_CREDENTIAL_URI, 'additionalClaims' => $additionalClaims]); + $this->projectId = isset($jsonKey['project_id']) ? $jsonKey['project_id'] : null; } - /** * @param callable $httpHandler * @@ -161,7 +130,6 @@ class ServiceAccountCredentials extends CredentialsLoader implements { return $this->auth->fetchAuthToken($httpHandler); } - /** * @return string */ @@ -171,10 +139,8 @@ class ServiceAccountCredentials extends CredentialsLoader implements if ($sub = $this->auth->getSub()) { $key .= ':' . $sub; } - return $key; } - /** * @return array */ @@ -182,7 +148,6 @@ class ServiceAccountCredentials extends CredentialsLoader implements { return $this->auth->getLastReceivedToken(); } - /** * Get the project ID from the service account keyfile. * @@ -195,7 +160,6 @@ class ServiceAccountCredentials extends CredentialsLoader implements { return $this->projectId; } - /** * Updates metadata with the authorization token. * @@ -204,27 +168,18 @@ class ServiceAccountCredentials extends CredentialsLoader implements * @param callable $httpHandler callback which delivers psr7 request * @return array updated metadata hashmap */ - public function updateMetadata( - $metadata, - $authUri = null, - callable $httpHandler = null - ) { + public function updateMetadata($metadata, $authUri = null, callable $httpHandler = null) + { // scope exists. use oauth implementation $scope = $this->auth->getScope(); - if (!is_null($scope)) { + if (!\is_null($scope)) { return parent::updateMetadata($metadata, $authUri, $httpHandler); } - // no scope found. create jwt with the auth uri - $credJson = array( - 'private_key' => $this->auth->getSigningKey(), - 'client_email' => $this->auth->getIssuer(), - ); - $jwtCreds = new ServiceAccountJwtAccessCredentials($credJson); - + $credJson = array('private_key' => $this->auth->getSigningKey(), 'client_email' => $this->auth->getIssuer()); + $jwtCreds = new \WPMailSMTP\Vendor\Google\Auth\Credentials\ServiceAccountJwtAccessCredentials($credJson); return $jwtCreds->updateMetadata($metadata, $authUri, $httpHandler); } - /** * @param string $sub an email address account to impersonate, in situations when * the service account has been delegated domain wide access. @@ -233,7 +188,6 @@ class ServiceAccountCredentials extends CredentialsLoader implements { $this->auth->setSub($sub); } - /** * Get the client name from the keyfile. * @@ -246,7 +200,6 @@ class ServiceAccountCredentials extends CredentialsLoader implements { return $this->auth->getIssuer(); } - /** * Get the quota project used for this API request * diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Credentials/ServiceAccountJwtAccessCredentials.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/Credentials/ServiceAccountJwtAccessCredentials.php similarity index 70% rename from wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Credentials/ServiceAccountJwtAccessCredentials.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/Credentials/ServiceAccountJwtAccessCredentials.php index 0943ee7..0c8ed99 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Credentials/ServiceAccountJwtAccessCredentials.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/Credentials/ServiceAccountJwtAccessCredentials.php @@ -1,4 +1,5 @@ quotaProject = (string) $jsonKey['quota_project']; + if (\array_key_exists('quota_project_id', $jsonKey)) { + $this->quotaProject = (string) $jsonKey['quota_project_id']; } - $this->auth = new OAuth2([ - 'issuer' => $jsonKey['client_email'], - 'sub' => $jsonKey['client_email'], - 'signingAlgorithm' => 'RS256', - 'signingKey' => $jsonKey['private_key'], - ]); - - $this->projectId = isset($jsonKey['project_id']) - ? $jsonKey['project_id'] - : null; + $this->auth = new \WPMailSMTP\Vendor\Google\Auth\OAuth2(['issuer' => $jsonKey['client_email'], 'sub' => $jsonKey['client_email'], 'signingAlgorithm' => 'RS256', 'signingKey' => $jsonKey['private_key']]); + $this->projectId = isset($jsonKey['project_id']) ? $jsonKey['project_id'] : null; } - /** * Updates metadata with the authorization token. * @@ -102,20 +82,14 @@ class ServiceAccountJwtAccessCredentials extends CredentialsLoader implements * @param callable $httpHandler callback which delivers psr7 request * @return array updated metadata hashmap */ - public function updateMetadata( - $metadata, - $authUri = null, - callable $httpHandler = null - ) { + public function updateMetadata($metadata, $authUri = null, callable $httpHandler = null) + { if (empty($authUri)) { return $metadata; } - $this->auth->setAudience($authUri); - return parent::updateMetadata($metadata, $authUri, $httpHandler); } - /** * Implements FetchAuthTokenInterface#fetchAuthToken. * @@ -131,12 +105,9 @@ class ServiceAccountJwtAccessCredentials extends CredentialsLoader implements if (empty($audience)) { return null; } - $access_token = $this->auth->toJwt(); - return array('access_token' => $access_token); } - /** * @return string */ @@ -144,7 +115,6 @@ class ServiceAccountJwtAccessCredentials extends CredentialsLoader implements { return $this->auth->getCacheKey(); } - /** * @return array */ @@ -152,7 +122,6 @@ class ServiceAccountJwtAccessCredentials extends CredentialsLoader implements { return $this->auth->getLastReceivedToken(); } - /** * Get the project ID from the service account keyfile. * @@ -165,7 +134,6 @@ class ServiceAccountJwtAccessCredentials extends CredentialsLoader implements { return $this->projectId; } - /** * Get the client name from the keyfile. * @@ -178,7 +146,6 @@ class ServiceAccountJwtAccessCredentials extends CredentialsLoader implements { return $this->auth->getIssuer(); } - /** * Get the quota project used for this API request * diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Credentials/UserRefreshCredentials.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/Credentials/UserRefreshCredentials.php similarity index 65% rename from wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Credentials/UserRefreshCredentials.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/Credentials/UserRefreshCredentials.php index 720ef08..0902377 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Credentials/UserRefreshCredentials.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/Credentials/UserRefreshCredentials.php @@ -1,4 +1,5 @@ auth = new OAuth2([ - 'clientId' => $jsonKey['client_id'], - 'clientSecret' => $jsonKey['client_secret'], - 'refresh_token' => $jsonKey['refresh_token'], - 'scope' => $scope, - 'tokenCredentialUri' => self::TOKEN_CREDENTIAL_URI, - ]); - if (array_key_exists('quota_project', $jsonKey)) { - $this->quotaProject = (string) $jsonKey['quota_project']; + $this->auth = new \WPMailSMTP\Vendor\Google\Auth\OAuth2(['clientId' => $jsonKey['client_id'], 'clientSecret' => $jsonKey['client_secret'], 'refresh_token' => $jsonKey['refresh_token'], 'scope' => $scope, 'tokenCredentialUri' => self::TOKEN_CREDENTIAL_URI]); + if (\array_key_exists('quota_project_id', $jsonKey)) { + $this->quotaProject = (string) $jsonKey['quota_project_id']; } } - /** * @param callable $httpHandler * @@ -109,7 +91,6 @@ class UserRefreshCredentials extends CredentialsLoader implements GetQuotaProjec { return $this->auth->fetchAuthToken($httpHandler); } - /** * @return string */ @@ -117,7 +98,6 @@ class UserRefreshCredentials extends CredentialsLoader implements GetQuotaProjec { return $this->auth->getClientId() . ':' . $this->auth->getCacheKey(); } - /** * @return array */ @@ -125,7 +105,6 @@ class UserRefreshCredentials extends CredentialsLoader implements GetQuotaProjec { return $this->auth->getLastReceivedToken(); } - /** * Get the quota project used for this API request * diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/CredentialsLoader.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/CredentialsLoader.php similarity index 66% rename from wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/CredentialsLoader.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/CredentialsLoader.php index 7cc5aa9..5f6e6fc 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/CredentialsLoader.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/CredentialsLoader.php @@ -1,4 +1,5 @@ setDefaultOption('auth', 'google_auth'); - $subscriber = new Subscriber\AuthTokenSubscriber( - $fetcher, - $httpHandler, - $tokenCallback - ); + $subscriber = new \WPMailSMTP\Vendor\Google\Auth\Subscriber\AuthTokenSubscriber($fetcher, $httpHandler, $tokenCallback); $client->getEmitter()->attach($subscriber); return $client; } - - $middleware = new Middleware\AuthTokenMiddleware( - $fetcher, - $httpHandler, - $tokenCallback - ); - $stack = \GuzzleHttp\HandlerStack::create(); + $middleware = new \WPMailSMTP\Vendor\Google\Auth\Middleware\AuthTokenMiddleware($fetcher, $httpHandler, $tokenCallback); + $stack = \WPMailSMTP\Vendor\GuzzleHttp\HandlerStack::create(); $stack->push($middleware); - - return new \GuzzleHttp\Client([ - 'handler' => $stack, - 'auth' => 'google_auth', - ] + $httpClientOptions); + return new \WPMailSMTP\Vendor\GuzzleHttp\Client(['handler' => $stack, 'auth' => 'google_auth'] + $httpClientOptions); } - /** * Create a new instance of InsecureCredentials. * @@ -197,19 +164,18 @@ abstract class CredentialsLoader implements FetchAuthTokenInterface */ public static function makeInsecureCredentials() { - return new InsecureCredentials(); + return new \WPMailSMTP\Vendor\Google\Auth\Credentials\InsecureCredentials(); } - /** * export a callback function which updates runtime metadata. * * @return array updateMetadata function + * @deprecated */ public function getUpdateMetadataFunc() { return array($this, 'updateMetadata'); } - /** * Updates metadata with the authorization token. * @@ -218,18 +184,18 @@ abstract class CredentialsLoader implements FetchAuthTokenInterface * @param callable $httpHandler callback which delivers psr7 request * @return array updated metadata hashmap */ - public function updateMetadata( - $metadata, - $authUri = null, - callable $httpHandler = null - ) { + public function updateMetadata($metadata, $authUri = null, callable $httpHandler = null) + { + if (isset($metadata[self::AUTH_METADATA_KEY])) { + // Auth metadata has already been set + return $metdadata; + } $result = $this->fetchAuthToken($httpHandler); if (!isset($result['access_token'])) { return $metadata; } $metadata_copy = $metadata; $metadata_copy[self::AUTH_METADATA_KEY] = array('Bearer ' . $result['access_token']); - return $metadata_copy; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/FetchAuthTokenCache.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/FetchAuthTokenCache.php similarity index 62% rename from wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/FetchAuthTokenCache.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/FetchAuthTokenCache.php index 2bc84d6..4debee7 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/FetchAuthTokenCache.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/FetchAuthTokenCache.php @@ -1,4 +1,5 @@ fetcher = $fetcher; $this->cache = $cache; - $this->cacheConfig = array_merge([ - 'lifetime' => 1500, - 'prefix' => '', - ], (array) $cacheConfig); + $this->cacheConfig = \array_merge(['lifetime' => 1500, 'prefix' => ''], (array) $cacheConfig); } - /** * Implements FetchAuthTokenInterface#fetchAuthToken. * @@ -84,28 +68,23 @@ class FetchAuthTokenCache implements // TODO: correct caching; enable the cache to be cleared. $cacheKey = $this->fetcher->getCacheKey(); $cached = $this->getCachedValue($cacheKey); - if (is_array($cached)) { + if (\is_array($cached)) { if (empty($cached['expires_at'])) { // If there is no expiration data, assume token is not expired. // (for JwtAccess and ID tokens) return $cached; } - if (time() < $cached['expires_at']) { + if (\time() < $cached['expires_at']) { // access token is not expired return $cached; } } - $auth_token = $this->fetcher->fetchAuthToken($httpHandler); - - if (isset($auth_token['access_token']) || - isset($auth_token['id_token'])) { + if (isset($auth_token['access_token']) || isset($auth_token['id_token'])) { $this->setCachedValue($cacheKey, $auth_token); } - return $auth_token; } - /** * @return string */ @@ -113,7 +92,6 @@ class FetchAuthTokenCache implements { return $this->getFullCacheKey($this->fetcher->getCacheKey()); } - /** * @return array|null */ @@ -121,7 +99,6 @@ class FetchAuthTokenCache implements { return $this->fetcher->getLastReceivedToken(); } - /** * Get the client name from the fetcher. * @@ -132,7 +109,6 @@ class FetchAuthTokenCache implements { return $this->fetcher->getClientName($httpHandler); } - /** * Sign a blob using the fetcher. * @@ -144,18 +120,13 @@ class FetchAuthTokenCache implements * @throws \RuntimeException If the fetcher does not implement * `Google\Auth\SignBlobInterface`. */ - public function signBlob($stringToSign, $forceOpenSsl = false) + public function signBlob($stringToSign, $forceOpenSsl = \false) { - if (!$this->fetcher instanceof SignBlobInterface) { - throw new \RuntimeException( - 'Credentials fetcher does not implement ' . - 'Google\Auth\SignBlobInterface' - ); + if (!$this->fetcher instanceof \WPMailSMTP\Vendor\Google\Auth\SignBlobInterface) { + throw new \RuntimeException('Credentials fetcher does not implement ' . 'Google\\Auth\\SignBlobInterface'); } - return $this->fetcher->signBlob($stringToSign, $forceOpenSsl); } - /** * Get the quota project used for this API request from the credentials * fetcher. @@ -164,11 +135,10 @@ class FetchAuthTokenCache implements */ public function getQuotaProject() { - if ($this->fetcher instanceof GetQuotaProjectInterface) { + if ($this->fetcher instanceof \WPMailSMTP\Vendor\Google\Auth\GetQuotaProjectInterface) { return $this->fetcher->getQuotaProject(); } } - /* * Get the Project ID from the fetcher. * @@ -179,13 +149,32 @@ class FetchAuthTokenCache implements */ public function getProjectId(callable $httpHandler = null) { - if (!$this->fetcher instanceof ProjectIdProviderInterface) { - throw new \RuntimeException( - 'Credentials fetcher does not implement ' . - 'Google\Auth\ProvidesProjectIdInterface' - ); + if (!$this->fetcher instanceof \WPMailSMTP\Vendor\Google\Auth\ProjectIdProviderInterface) { + throw new \RuntimeException('Credentials fetcher does not implement ' . 'Google\\Auth\\ProvidesProjectIdInterface'); } - return $this->fetcher->getProjectId($httpHandler); } + /** + * Updates metadata with the authorization token. + * + * @param array $metadata metadata hashmap + * @param string $authUri optional auth uri + * @param callable $httpHandler callback which delivers psr7 request + * @return array updated metadata hashmap + * @throws \RuntimeException If the fetcher does not implement + * `Google\Auth\UpdateMetadataInterface`. + */ + public function updateMetadata($metadata, $authUri = null, callable $httpHandler = null) + { + if (!$this->fetcher instanceof \WPMailSMTP\Vendor\Google\Auth\UpdateMetadataInterface) { + throw new \RuntimeException('Credentials fetcher does not implement ' . 'Google\\Auth\\UpdateMetadataInterface'); + } + // Set the `Authentication` header from the cache, so it is not set + // again by the fetcher + $result = $this->fetchAuthToken($httpHandler); + if (isset($result['access_token'])) { + $metadata[self::AUTH_METADATA_KEY] = ['Bearer ' . $result['access_token']]; + } + return $this->fetcher->updateMetadata($metadata, $authUri, $httpHandler); + } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/FetchAuthTokenInterface.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/FetchAuthTokenInterface.php similarity index 97% rename from wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/FetchAuthTokenInterface.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/FetchAuthTokenInterface.php index 4bf4d27..4224480 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/FetchAuthTokenInterface.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/FetchAuthTokenInterface.php @@ -1,4 +1,5 @@ cache = $cache; + $this->cacheConfig = \array_merge(['lifetime' => 1500, 'prefix' => ''], (array) $cacheConfig); + } + /** + * Caches the result of onGce so the metadata server is not called multiple + * times. + * + * @param callable $httpHandler callback which delivers psr7 request + * @return bool True if this a GCEInstance, false otherwise + */ + public function onGce(callable $httpHandler = null) + { + if (\is_null($this->cache)) { + return \WPMailSMTP\Vendor\Google\Auth\Credentials\GCECredentials::onGce($httpHandler); + } + $cacheKey = self::GCE_CACHE_KEY; + $onGce = $this->getCachedValue($cacheKey); + if (\is_null($onGce)) { + $onGce = \WPMailSMTP\Vendor\Google\Auth\Credentials\GCECredentials::onGce($httpHandler); + $this->setCachedValue($cacheKey, $onGce); + } + return $onGce; + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/GetQuotaProjectInterface.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/GetQuotaProjectInterface.php similarity index 95% rename from wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/GetQuotaProjectInterface.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/GetQuotaProjectInterface.php index 517f062..da6c332 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/GetQuotaProjectInterface.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/GetQuotaProjectInterface.php @@ -1,4 +1,5 @@ client = $client; + } + /** + * Accepts a PSR-7 Request and an array of options and returns a PSR-7 response. + * + * @param RequestInterface $request + * @param array $options + * @return ResponseInterface + */ + public function __invoke(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, array $options = []) + { + $response = $this->client->send($this->createGuzzle5Request($request, $options)); + return $this->createPsr7Response($response); + } + /** + * Accepts a PSR-7 request and an array of options and returns a PromiseInterface + * + * @param RequestInterface $request + * @param array $options + * @return Promise + */ + public function async(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, array $options = []) + { + if (!\class_exists('WPMailSMTP\\Vendor\\GuzzleHttp\\Promise\\Promise')) { + throw new \Exception('Install guzzlehttp/promises to use async with Guzzle 5'); + } + $futureResponse = $this->client->send($this->createGuzzle5Request($request, ['future' => \true] + $options)); + $promise = new \WPMailSMTP\Vendor\GuzzleHttp\Promise\Promise(function () use($futureResponse) { + try { + $futureResponse->wait(); + } catch (\Exception $e) { + // The promise is already delivered when the exception is + // thrown, so don't rethrow it. + } + }, [$futureResponse, 'cancel']); + $futureResponse->then([$promise, 'resolve'], [$promise, 'reject']); + return $promise->then(function (\WPMailSMTP\Vendor\GuzzleHttp\Message\ResponseInterface $response) { + // Adapt the Guzzle 5 Response to a PSR-7 Response. + return $this->createPsr7Response($response); + }, function (\Exception $e) { + return new \WPMailSMTP\Vendor\GuzzleHttp\Promise\RejectedPromise($e); + }); + } + private function createGuzzle5Request(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, array $options) + { + return $this->client->createRequest($request->getMethod(), $request->getUri(), \array_merge_recursive(['headers' => $request->getHeaders(), 'body' => $request->getBody()], $options)); + } + private function createPsr7Response(\WPMailSMTP\Vendor\GuzzleHttp\Message\ResponseInterface $response) + { + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Response($response->getStatusCode(), $response->getHeaders() ?: [], $response->getBody(), $response->getProtocolVersion(), $response->getReasonPhrase()); + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/HttpHandler/Guzzle6HttpHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/HttpHandler/Guzzle6HttpHandler.php similarity index 72% rename from wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/HttpHandler/Guzzle6HttpHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/HttpHandler/Guzzle6HttpHandler.php index aaa7b43..5f3fe30 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/HttpHandler/Guzzle6HttpHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/HttpHandler/Guzzle6HttpHandler.php @@ -1,4 +1,5 @@ client = $client; } - /** * Accepts a PSR-7 request and an array of options and returns a PSR-7 response. * @@ -42,11 +40,10 @@ class Guzzle6HttpHandler * @param array $options * @return ResponseInterface */ - public function __invoke(RequestInterface $request, array $options = []) + public function __invoke(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, array $options = []) { return $this->client->send($request, $options); } - /** * Accepts a PSR-7 request and an array of options and returns a PromiseInterface * @@ -55,7 +52,7 @@ class Guzzle6HttpHandler * * @return \GuzzleHttp\Promise\PromiseInterface */ - public function async(RequestInterface $request, array $options = []) + public function async(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, array $options = []) { return $this->client->sendAsync($request, $options); } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/HttpHandler/Guzzle7HttpHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/HttpHandler/Guzzle7HttpHandler.php similarity index 80% rename from wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/HttpHandler/Guzzle7HttpHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/HttpHandler/Guzzle7HttpHandler.php index e84f660..3690d42 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/HttpHandler/Guzzle7HttpHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/HttpHandler/Guzzle7HttpHandler.php @@ -1,4 +1,5 @@ httpHandler = $httpHandler - ?: HttpHandlerFactory::build(HttpClientCache::getHttpClient()); + $this->httpHandler = $httpHandler ?: \WPMailSMTP\Vendor\Google\Auth\HttpHandler\HttpHandlerFactory::build(\WPMailSMTP\Vendor\Google\Auth\HttpHandler\HttpClientCache::getHttpClient()); } - /** * Sign a string using the IAM signBlob API. * @@ -64,36 +59,20 @@ class Iam public function signBlob($email, $accessToken, $stringToSign, array $delegates = []) { $httpHandler = $this->httpHandler; - $name = sprintf(self::SERVICE_ACCOUNT_NAME, $email); - $uri = self::IAM_API_ROOT . '/' . sprintf(self::SIGN_BLOB_PATH, $name); - + $name = \sprintf(self::SERVICE_ACCOUNT_NAME, $email); + $uri = self::IAM_API_ROOT . '/' . \sprintf(self::SIGN_BLOB_PATH, $name); if ($delegates) { foreach ($delegates as &$delegate) { - $delegate = sprintf(self::SERVICE_ACCOUNT_NAME, $delegate); + $delegate = \sprintf(self::SERVICE_ACCOUNT_NAME, $delegate); } } else { $delegates = [$name]; } - - $body = [ - 'delegates' => $delegates, - 'payload' => base64_encode($stringToSign), - ]; - - $headers = [ - 'Authorization' => 'Bearer ' . $accessToken - ]; - - $request = new Psr7\Request( - 'POST', - $uri, - $headers, - Psr7\stream_for(json_encode($body)) - ); - + $body = ['delegates' => $delegates, 'payload' => \base64_encode($stringToSign)]; + $headers = ['Authorization' => 'Bearer ' . $accessToken]; + $request = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('POST', $uri, $headers, \WPMailSMTP\Vendor\GuzzleHttp\Psr7\stream_for(\json_encode($body))); $res = $httpHandler($request); - $body = json_decode((string) $res->getBody(), true); - + $body = \json_decode((string) $res->getBody(), \true); return $body['signedBlob']; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Middleware/AuthTokenMiddleware.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/Middleware/AuthTokenMiddleware.php similarity index 78% rename from wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Middleware/AuthTokenMiddleware.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/Middleware/AuthTokenMiddleware.php index 02bb174..b06cbac 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Middleware/AuthTokenMiddleware.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/Middleware/AuthTokenMiddleware.php @@ -1,4 +1,5 @@ fetcher = $fetcher; $this->httpHandler = $httpHandler; $this->tokenCallback = $tokenCallback; } - /** * Updates the request with an Authorization header when auth is 'google_auth'. * @@ -93,25 +85,18 @@ class AuthTokenMiddleware */ public function __invoke(callable $handler) { - return function (RequestInterface $request, array $options) use ($handler) { + return function (\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, array $options) use($handler) { // Requests using "auth"="google_auth" will be authorized. if (!isset($options['auth']) || $options['auth'] !== 'google_auth') { return $handler($request, $options); } - $request = $request->withHeader('authorization', 'Bearer ' . $this->fetchToken()); - if ($quotaProject = $this->getQuotaProject()) { - $request = $request->withHeader( - GetQuotaProjectInterface::X_GOOG_USER_PROJECT_HEADER, - $quotaProject - ); + $request = $request->withHeader(\WPMailSMTP\Vendor\Google\Auth\GetQuotaProjectInterface::X_GOOG_USER_PROJECT_HEADER, $quotaProject); } - return $handler($request, $options); }; } - /** * Call fetcher to fetch the token. * @@ -120,28 +105,20 @@ class AuthTokenMiddleware private function fetchToken() { $auth_tokens = $this->fetcher->fetchAuthToken($this->httpHandler); - - if (array_key_exists('access_token', $auth_tokens)) { + if (\array_key_exists('access_token', $auth_tokens)) { // notify the callback if applicable if ($this->tokenCallback) { - call_user_func( - $this->tokenCallback, - $this->fetcher->getCacheKey(), - $auth_tokens['access_token'] - ); + \call_user_func($this->tokenCallback, $this->fetcher->getCacheKey(), $auth_tokens['access_token']); } - return $auth_tokens['access_token']; } - - if (array_key_exists('id_token', $auth_tokens)) { + if (\array_key_exists('id_token', $auth_tokens)) { return $auth_tokens['id_token']; } } - private function getQuotaProject() { - if ($this->fetcher instanceof GetQuotaProjectInterface) { + if ($this->fetcher instanceof \WPMailSMTP\Vendor\Google\Auth\GetQuotaProjectInterface) { return $this->fetcher->getQuotaProject(); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Middleware/ScopedAccessTokenMiddleware.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/Middleware/ScopedAccessTokenMiddleware.php similarity index 80% rename from wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Middleware/ScopedAccessTokenMiddleware.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/Middleware/ScopedAccessTokenMiddleware.php index ecbb659..2eeaa22 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Middleware/ScopedAccessTokenMiddleware.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/Middleware/ScopedAccessTokenMiddleware.php @@ -1,4 +1,5 @@ tokenFunc = $tokenFunc; - if (!(is_string($scopes) || is_array($scopes))) { - throw new \InvalidArgumentException( - 'wants scope should be string or array' - ); + if (!(\is_string($scopes) || \is_array($scopes))) { + throw new \InvalidArgumentException('wants scope should be string or array'); } $this->scopes = $scopes; - - if (!is_null($cache)) { + if (!\is_null($cache)) { $this->cache = $cache; - $this->cacheConfig = array_merge([ - 'lifetime' => self::DEFAULT_CACHE_LIFETIME, - 'prefix' => '', - ], $cacheConfig); + $this->cacheConfig = \array_merge(['lifetime' => self::DEFAULT_CACHE_LIFETIME, 'prefix' => ''], $cacheConfig); } } - /** * Updates the request with an Authorization header when auth is 'scoped'. * @@ -124,34 +106,28 @@ class ScopedAccessTokenMiddleware */ public function __invoke(callable $handler) { - return function (RequestInterface $request, array $options) use ($handler) { + return function (\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, array $options) use($handler) { // Requests using "auth"="scoped" will be authorized. if (!isset($options['auth']) || $options['auth'] !== 'scoped') { return $handler($request, $options); } - $request = $request->withHeader('authorization', 'Bearer ' . $this->fetchToken()); - return $handler($request, $options); }; } - /** * @return string */ private function getCacheKey() { $key = null; - - if (is_string($this->scopes)) { + if (\is_string($this->scopes)) { $key .= $this->scopes; - } elseif (is_array($this->scopes)) { - $key .= implode(':', $this->scopes); + } elseif (\is_array($this->scopes)) { + $key .= \implode(':', $this->scopes); } - return $key; } - /** * Determine if token is available in the cache, if not call tokenFunc to * fetch it. @@ -162,14 +138,11 @@ class ScopedAccessTokenMiddleware { $cacheKey = $this->getCacheKey(); $cached = $this->getCachedValue($cacheKey); - if (!empty($cached)) { return $cached; } - - $token = call_user_func($this->tokenFunc, $this->scopes); + $token = \call_user_func($this->tokenFunc, $this->scopes); $this->setCachedValue($cacheKey, $token); - return $token; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Middleware/SimpleMiddleware.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/Middleware/SimpleMiddleware.php similarity index 79% rename from wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Middleware/SimpleMiddleware.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/Middleware/SimpleMiddleware.php index 5104542..1a82844 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Middleware/SimpleMiddleware.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/Middleware/SimpleMiddleware.php @@ -1,4 +1,5 @@ config = array_merge(['key' => null], $config); + $this->config = \array_merge(['key' => null], $config); } - /** * Updates the request query with the developer key if auth is set to simple. * @@ -75,17 +71,15 @@ class SimpleMiddleware */ public function __invoke(callable $handler) { - return function (RequestInterface $request, array $options) use ($handler) { + return function (\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, array $options) use($handler) { // Requests using "auth"="scoped" will be authorized. if (!isset($options['auth']) || $options['auth'] !== 'simple') { return $handler($request, $options); } - - $query = Psr7\parse_query($request->getUri()->getQuery()); - $params = array_merge($query, $this->config); - $uri = $request->getUri()->withQuery(Psr7\build_query($params)); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\parse_query($request->getUri()->getQuery()); + $params = \array_merge($query, $this->config); + $uri = $request->getUri()->withQuery(\WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($params)); $request = $request->withUri($uri); - return $handler($request, $options); }; } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/OAuth2.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/OAuth2.php similarity index 79% rename from wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/OAuth2.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/OAuth2.php index e5a6063..a29335a 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/OAuth2.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/OAuth2.php @@ -1,4 +1,5 @@ self::DEFAULT_EXPIRY_SECONDS, - 'extensionParams' => [], - 'authorizationUri' => null, - 'redirectUri' => null, - 'tokenCredentialUri' => null, - 'state' => null, - 'username' => null, - 'password' => null, - 'clientId' => null, - 'clientSecret' => null, - 'issuer' => null, - 'sub' => null, - 'audience' => null, - 'signingKey' => null, - 'signingKeyId' => null, - 'signingAlgorithm' => null, - 'scope' => null, - 'additionalClaims' => [], - ], $config); - + $opts = \array_merge(['expiry' => self::DEFAULT_EXPIRY_SECONDS, 'extensionParams' => [], 'authorizationUri' => null, 'redirectUri' => null, 'tokenCredentialUri' => null, 'state' => null, 'username' => null, 'password' => null, 'clientId' => null, 'clientSecret' => null, 'issuer' => null, 'sub' => null, 'audience' => null, 'signingKey' => null, 'signingKeyId' => null, 'signingAlgorithm' => null, 'scope' => null, 'additionalClaims' => []], $config); $this->setAuthorizationUri($opts['authorizationUri']); $this->setRedirectUri($opts['redirectUri']); $this->setTokenCredentialUri($opts['tokenCredentialUri']); @@ -363,7 +305,6 @@ class OAuth2 implements FetchAuthTokenInterface $this->setAdditionalClaims($opts['additionalClaims']); $this->updateToken($opts); } - /** * Verifies the idToken if present. * @@ -391,21 +332,18 @@ class OAuth2 implements FetchAuthTokenInterface public function verifyIdToken($publicKey = null, $allowed_algs = array()) { $idToken = $this->getIdToken(); - if (is_null($idToken)) { + if (\is_null($idToken)) { return null; } - $resp = $this->jwtDecode($idToken, $publicKey, $allowed_algs); - if (!property_exists($resp, 'aud')) { + if (!\property_exists($resp, 'aud')) { throw new \DomainException('No audience found the id token'); } if ($resp->aud != $this->getAudience()) { throw new \DomainException('Wrong audience present in the id token'); } - return $resp; } - /** * Obtains the encoded jwt from the instance data. * @@ -414,45 +352,29 @@ class OAuth2 implements FetchAuthTokenInterface */ public function toJwt(array $config = []) { - if (is_null($this->getSigningKey())) { + if (\is_null($this->getSigningKey())) { throw new \DomainException('No signing key available'); } - if (is_null($this->getSigningAlgorithm())) { + if (\is_null($this->getSigningAlgorithm())) { throw new \DomainException('No signing algorithm specified'); } - $now = time(); - - $opts = array_merge([ - 'skew' => self::DEFAULT_SKEW_SECONDS, - ], $config); - - $assertion = [ - 'iss' => $this->getIssuer(), - 'aud' => $this->getAudience(), - 'exp' => ($now + $this->getExpiry()), - 'iat' => ($now - $opts['skew']), - ]; + $now = \time(); + $opts = \array_merge(['skew' => self::DEFAULT_SKEW_SECONDS], $config); + $assertion = ['iss' => $this->getIssuer(), 'aud' => $this->getAudience(), 'exp' => $now + $this->getExpiry(), 'iat' => $now - $opts['skew']]; foreach ($assertion as $k => $v) { - if (is_null($v)) { + if (\is_null($v)) { throw new \DomainException($k . ' should not be null'); } } - if (!(is_null($this->getScope()))) { + if (!\is_null($this->getScope())) { $assertion['scope'] = $this->getScope(); } - if (!(is_null($this->getSub()))) { + if (!\is_null($this->getSub())) { $assertion['sub'] = $this->getSub(); } $assertion += $this->getAdditionalClaims(); - - return $this->jwtEncode( - $assertion, - $this->getSigningKey(), - $this->getSigningAlgorithm(), - $this->getSigningKeyId() - ); + return $this->jwtEncode($assertion, $this->getSigningKey(), $this->getSigningAlgorithm(), $this->getSigningKeyId()); } - /** * Generates a request for token credentials. * @@ -461,10 +383,9 @@ class OAuth2 implements FetchAuthTokenInterface public function generateCredentialsRequest() { $uri = $this->getTokenCredentialUri(); - if (is_null($uri)) { + if (\is_null($uri)) { throw new \DomainException('No token credential URI was set.'); } - $grantType = $this->getGrantType(); $params = array('grant_type' => $grantType); switch ($grantType) { @@ -486,31 +407,20 @@ class OAuth2 implements FetchAuthTokenInterface $params['assertion'] = $this->toJwt(); break; default: - if (!is_null($this->getRedirectUri())) { + if (!\is_null($this->getRedirectUri())) { # Grant type was supposed to be 'authorization_code', as there # is a redirect URI. throw new \DomainException('Missing authorization code'); } unset($params['grant_type']); - if (!is_null($grantType)) { + if (!\is_null($grantType)) { $params['grant_type'] = $grantType; } - $params = array_merge($params, $this->getExtensionParams()); + $params = \array_merge($params, $this->getExtensionParams()); } - - $headers = [ - 'Cache-Control' => 'no-store', - 'Content-Type' => 'application/x-www-form-urlencoded', - ]; - - return new Request( - 'POST', - $uri, - $headers, - Psr7\build_query($params) - ); + $headers = ['Cache-Control' => 'no-store', 'Content-Type' => 'application/x-www-form-urlencoded']; + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('POST', $uri, $headers, \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($params)); } - /** * Fetches the auth tokens based on the current state. * @@ -519,17 +429,14 @@ class OAuth2 implements FetchAuthTokenInterface */ public function fetchAuthToken(callable $httpHandler = null) { - if (is_null($httpHandler)) { - $httpHandler = HttpHandlerFactory::build(HttpClientCache::getHttpClient()); + if (\is_null($httpHandler)) { + $httpHandler = \WPMailSMTP\Vendor\Google\Auth\HttpHandler\HttpHandlerFactory::build(\WPMailSMTP\Vendor\Google\Auth\HttpHandler\HttpClientCache::getHttpClient()); } - $response = $httpHandler($this->generateCredentialsRequest()); $credentials = $this->parseTokenResponse($response); $this->updateToken($credentials); - return $credentials; } - /** * Obtains a key that can used to cache the results of #fetchAuthToken. * @@ -539,18 +446,15 @@ class OAuth2 implements FetchAuthTokenInterface */ public function getCacheKey() { - if (is_array($this->scope)) { - return implode(':', $this->scope); + if (\is_array($this->scope)) { + return \implode(':', $this->scope); } - if ($this->audience) { return $this->audience; } - // If scope has not set, return null to indicate no caching. return null; } - /** * Parses the fetched tokens. * @@ -558,26 +462,20 @@ class OAuth2 implements FetchAuthTokenInterface * @return array the tokens parsed from the response body. * @throws \Exception */ - public function parseTokenResponse(ResponseInterface $resp) + public function parseTokenResponse(\WPMailSMTP\Vendor\Psr\Http\Message\ResponseInterface $resp) { - $body = (string)$resp->getBody(); - if ($resp->hasHeader('Content-Type') && - $resp->getHeaderLine('Content-Type') == 'application/x-www-form-urlencoded' - ) { + $body = (string) $resp->getBody(); + if ($resp->hasHeader('Content-Type') && $resp->getHeaderLine('Content-Type') == 'application/x-www-form-urlencoded') { $res = array(); - parse_str($body, $res); - + \parse_str($body, $res); return $res; } - // Assume it's JSON; if it's not throw an exception - if (null === $res = json_decode($body, true)) { + if (null === ($res = \json_decode($body, \true))) { throw new \Exception('Invalid JSON response'); } - return $res; } - /** * Updates an OAuth 2.0 client. * @@ -614,33 +512,23 @@ class OAuth2 implements FetchAuthTokenInterface */ public function updateToken(array $config) { - $opts = array_merge([ - 'extensionParams' => [], - 'access_token' => null, - 'id_token' => null, - 'expires_in' => null, - 'expires_at' => null, - 'issued_at' => null, - ], $config); - + $opts = \array_merge(['extensionParams' => [], 'access_token' => null, 'id_token' => null, 'expires_in' => null, 'expires_at' => null, 'issued_at' => null], $config); $this->setExpiresAt($opts['expires_at']); $this->setExpiresIn($opts['expires_in']); // By default, the token is issued at `Time.now` when `expiresIn` is set, // but this can be used to supply a more precise time. - if (!is_null($opts['issued_at'])) { + if (!\is_null($opts['issued_at'])) { $this->setIssuedAt($opts['issued_at']); } - $this->setAccessToken($opts['access_token']); $this->setIdToken($opts['id_token']); // The refresh token should only be updated if a value is explicitly // passed in, as some access token responses do not include a refresh // token. - if (array_key_exists('refresh_token', $opts)) { + if (\array_key_exists('refresh_token', $opts)) { $this->setRefreshToken($opts['refresh_token']); } } - /** * Builds the authorization Uri that the user should be redirected to. * @@ -650,53 +538,29 @@ class OAuth2 implements FetchAuthTokenInterface */ public function buildFullAuthorizationUri(array $config = []) { - if (is_null($this->getAuthorizationUri())) { - throw new InvalidArgumentException( - 'requires an authorizationUri to have been set' - ); + if (\is_null($this->getAuthorizationUri())) { + throw new \InvalidArgumentException('requires an authorizationUri to have been set'); } - - $params = array_merge([ - 'response_type' => 'code', - 'access_type' => 'offline', - 'client_id' => $this->clientId, - 'redirect_uri' => $this->redirectUri, - 'state' => $this->state, - 'scope' => $this->getScope(), - ], $config); - + $params = \array_merge(['response_type' => 'code', 'access_type' => 'offline', 'client_id' => $this->clientId, 'redirect_uri' => $this->redirectUri, 'state' => $this->state, 'scope' => $this->getScope()], $config); // Validate the auth_params - if (is_null($params['client_id'])) { - throw new InvalidArgumentException( - 'missing the required client identifier' - ); + if (\is_null($params['client_id'])) { + throw new \InvalidArgumentException('missing the required client identifier'); } - if (is_null($params['redirect_uri'])) { - throw new InvalidArgumentException('missing the required redirect URI'); + if (\is_null($params['redirect_uri'])) { + throw new \InvalidArgumentException('missing the required redirect URI'); } if (!empty($params['prompt']) && !empty($params['approval_prompt'])) { - throw new InvalidArgumentException( - 'prompt and approval_prompt are mutually exclusive' - ); + throw new \InvalidArgumentException('prompt and approval_prompt are mutually exclusive'); } - // Construct the uri object; return it if it is valid. $result = clone $this->authorizationUri; - $existingParams = Psr7\parse_query($result->getQuery()); - - $result = $result->withQuery( - Psr7\build_query(array_merge($existingParams, $params)) - ); - + $existingParams = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\parse_query($result->getQuery()); + $result = $result->withQuery(\WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query(\array_merge($existingParams, $params))); if ($result->getScheme() != 'https') { - throw new InvalidArgumentException( - 'Authorization endpoint must be protected by TLS' - ); + throw new \InvalidArgumentException('Authorization endpoint must be protected by TLS'); } - return $result; } - /** * Sets the authorization server's HTTP endpoint capable of authenticating * the end-user and obtaining authorization. @@ -707,7 +571,6 @@ class OAuth2 implements FetchAuthTokenInterface { $this->authorizationUri = $this->coerceUri($uri); } - /** * Gets the authorization server's HTTP endpoint capable of authenticating * the end-user and obtaining authorization. @@ -718,7 +581,6 @@ class OAuth2 implements FetchAuthTokenInterface { return $this->authorizationUri; } - /** * Gets the authorization server's HTTP endpoint capable of issuing tokens * and refreshing expired tokens. @@ -729,7 +591,6 @@ class OAuth2 implements FetchAuthTokenInterface { return $this->tokenCredentialUri; } - /** * Sets the authorization server's HTTP endpoint capable of issuing tokens * and refreshing expired tokens. @@ -740,7 +601,6 @@ class OAuth2 implements FetchAuthTokenInterface { $this->tokenCredentialUri = $this->coerceUri($uri); } - /** * Gets the redirection URI used in the initial request. * @@ -750,7 +610,6 @@ class OAuth2 implements FetchAuthTokenInterface { return $this->redirectUri; } - /** * Sets the redirection URI used in the initial request. * @@ -758,24 +617,20 @@ class OAuth2 implements FetchAuthTokenInterface */ public function setRedirectUri($uri) { - if (is_null($uri)) { + if (\is_null($uri)) { $this->redirectUri = null; - return; } // redirect URI must be absolute if (!$this->isAbsoluteUri($uri)) { // "postmessage" is a reserved URI string in Google-land // @see https://developers.google.com/identity/sign-in/web/server-side-flow - if ('postmessage' !== (string)$uri) { - throw new InvalidArgumentException( - 'Redirect URI must be absolute' - ); + if ('postmessage' !== (string) $uri) { + throw new \InvalidArgumentException('Redirect URI must be absolute'); } } - $this->redirectUri = (string)$uri; + $this->redirectUri = (string) $uri; } - /** * Gets the scope of the access requests as a space-delimited String. * @@ -783,13 +638,11 @@ class OAuth2 implements FetchAuthTokenInterface */ public function getScope() { - if (is_null($this->scope)) { + if (\is_null($this->scope)) { return $this->scope; } - - return implode(' ', $this->scope); + return \implode(' ', $this->scope); } - /** * Sets the scope of the access request, expressed either as an Array or as * a space-delimited String. @@ -799,27 +652,22 @@ class OAuth2 implements FetchAuthTokenInterface */ public function setScope($scope) { - if (is_null($scope)) { + if (\is_null($scope)) { $this->scope = null; - } elseif (is_string($scope)) { - $this->scope = explode(' ', $scope); - } elseif (is_array($scope)) { + } elseif (\is_string($scope)) { + $this->scope = \explode(' ', $scope); + } elseif (\is_array($scope)) { foreach ($scope as $s) { - $pos = strpos($s, ' '); - if ($pos !== false) { - throw new InvalidArgumentException( - 'array scope values should not contain spaces' - ); + $pos = \strpos($s, ' '); + if ($pos !== \false) { + throw new \InvalidArgumentException('array scope values should not contain spaces'); } } $this->scope = $scope; } else { - throw new InvalidArgumentException( - 'scopes should be a string or array of strings' - ); + throw new \InvalidArgumentException('scopes should be a string or array of strings'); } } - /** * Gets the current grant type. * @@ -827,31 +675,25 @@ class OAuth2 implements FetchAuthTokenInterface */ public function getGrantType() { - if (!is_null($this->grantType)) { + if (!\is_null($this->grantType)) { return $this->grantType; } - // Returns the inferred grant type, based on the current object instance // state. - if (!is_null($this->code)) { + if (!\is_null($this->code)) { return 'authorization_code'; } - - if (!is_null($this->refreshToken)) { + if (!\is_null($this->refreshToken)) { return 'refresh_token'; } - - if (!is_null($this->username) && !is_null($this->password)) { + if (!\is_null($this->username) && !\is_null($this->password)) { return 'password'; } - - if (!is_null($this->issuer) && !is_null($this->signingKey)) { + if (!\is_null($this->issuer) && !\is_null($this->signingKey)) { return self::JWT_URN; } - return null; } - /** * Sets the current grant type. * @@ -860,19 +702,16 @@ class OAuth2 implements FetchAuthTokenInterface */ public function setGrantType($grantType) { - if (in_array($grantType, self::$knownGrantTypes)) { + if (\in_array($grantType, self::$knownGrantTypes)) { $this->grantType = $grantType; } else { // validate URI if (!$this->isAbsoluteUri($grantType)) { - throw new InvalidArgumentException( - 'invalid grant type' - ); + throw new \InvalidArgumentException('invalid grant type'); } - $this->grantType = (string)$grantType; + $this->grantType = (string) $grantType; } } - /** * Gets an arbitrary string designed to allow the client to maintain state. * @@ -882,7 +721,6 @@ class OAuth2 implements FetchAuthTokenInterface { return $this->state; } - /** * Sets an arbitrary string designed to allow the client to maintain state. * @@ -892,7 +730,6 @@ class OAuth2 implements FetchAuthTokenInterface { $this->state = $state; } - /** * Gets the authorization code issued to this client. */ @@ -900,7 +737,6 @@ class OAuth2 implements FetchAuthTokenInterface { return $this->code; } - /** * Sets the authorization code issued to this client. * @@ -910,7 +746,6 @@ class OAuth2 implements FetchAuthTokenInterface { $this->code = $code; } - /** * Gets the resource owner's username. */ @@ -918,7 +753,6 @@ class OAuth2 implements FetchAuthTokenInterface { return $this->username; } - /** * Sets the resource owner's username. * @@ -928,7 +762,6 @@ class OAuth2 implements FetchAuthTokenInterface { $this->username = $username; } - /** * Gets the resource owner's password. */ @@ -936,7 +769,6 @@ class OAuth2 implements FetchAuthTokenInterface { return $this->password; } - /** * Sets the resource owner's password. * @@ -946,7 +778,6 @@ class OAuth2 implements FetchAuthTokenInterface { $this->password = $password; } - /** * Sets a unique identifier issued to the client to identify itself to the * authorization server. @@ -955,7 +786,6 @@ class OAuth2 implements FetchAuthTokenInterface { return $this->clientId; } - /** * Sets a unique identifier issued to the client to identify itself to the * authorization server. @@ -966,7 +796,6 @@ class OAuth2 implements FetchAuthTokenInterface { $this->clientId = $clientId; } - /** * Gets a shared symmetric secret issued by the authorization server, which * is used to authenticate the client. @@ -975,7 +804,6 @@ class OAuth2 implements FetchAuthTokenInterface { return $this->clientSecret; } - /** * Sets a shared symmetric secret issued by the authorization server, which * is used to authenticate the client. @@ -986,7 +814,6 @@ class OAuth2 implements FetchAuthTokenInterface { $this->clientSecret = $clientSecret; } - /** * Gets the Issuer ID when using assertion profile. */ @@ -994,7 +821,6 @@ class OAuth2 implements FetchAuthTokenInterface { return $this->issuer; } - /** * Sets the Issuer ID when using assertion profile. * @@ -1004,7 +830,6 @@ class OAuth2 implements FetchAuthTokenInterface { $this->issuer = $issuer; } - /** * Gets the target sub when issuing assertions. */ @@ -1012,7 +837,6 @@ class OAuth2 implements FetchAuthTokenInterface { return $this->sub; } - /** * Sets the target sub when issuing assertions. * @@ -1022,7 +846,6 @@ class OAuth2 implements FetchAuthTokenInterface { $this->sub = $sub; } - /** * Gets the target audience when issuing assertions. */ @@ -1030,7 +853,6 @@ class OAuth2 implements FetchAuthTokenInterface { return $this->audience; } - /** * Sets the target audience when issuing assertions. * @@ -1040,7 +862,6 @@ class OAuth2 implements FetchAuthTokenInterface { $this->audience = $audience; } - /** * Gets the signing key when using an assertion profile. */ @@ -1048,7 +869,6 @@ class OAuth2 implements FetchAuthTokenInterface { return $this->signingKey; } - /** * Sets the signing key when using an assertion profile. * @@ -1058,7 +878,6 @@ class OAuth2 implements FetchAuthTokenInterface { $this->signingKey = $signingKey; } - /** * Gets the signing key id when using an assertion profile. * @@ -1068,7 +887,6 @@ class OAuth2 implements FetchAuthTokenInterface { return $this->signingKeyId; } - /** * Sets the signing key id when using an assertion profile. * @@ -1078,7 +896,6 @@ class OAuth2 implements FetchAuthTokenInterface { $this->signingKeyId = $signingKeyId; } - /** * Gets the signing algorithm when using an assertion profile. * @@ -1088,7 +905,6 @@ class OAuth2 implements FetchAuthTokenInterface { return $this->signingAlgorithm; } - /** * Sets the signing algorithm when using an assertion profile. * @@ -1096,15 +912,14 @@ class OAuth2 implements FetchAuthTokenInterface */ public function setSigningAlgorithm($signingAlgorithm) { - if (is_null($signingAlgorithm)) { + if (\is_null($signingAlgorithm)) { $this->signingAlgorithm = null; - } elseif (!in_array($signingAlgorithm, self::$knownSigningAlgorithms)) { - throw new InvalidArgumentException('unknown signing algorithm'); + } elseif (!\in_array($signingAlgorithm, self::$knownSigningAlgorithms)) { + throw new \InvalidArgumentException('unknown signing algorithm'); } else { $this->signingAlgorithm = $signingAlgorithm; } } - /** * Gets the set of parameters used by extension when using an extension * grant type. @@ -1113,7 +928,6 @@ class OAuth2 implements FetchAuthTokenInterface { return $this->extensionParams; } - /** * Sets the set of parameters used by extension when using an extension * grant type. @@ -1124,7 +938,6 @@ class OAuth2 implements FetchAuthTokenInterface { $this->extensionParams = $extensionParams; } - /** * Gets the number of seconds assertions are valid for. */ @@ -1132,7 +945,6 @@ class OAuth2 implements FetchAuthTokenInterface { return $this->expiry; } - /** * Sets the number of seconds assertions are valid for. * @@ -1142,7 +954,6 @@ class OAuth2 implements FetchAuthTokenInterface { $this->expiry = $expiry; } - /** * Gets the lifetime of the access token in seconds. */ @@ -1150,7 +961,6 @@ class OAuth2 implements FetchAuthTokenInterface { return $this->expiresIn; } - /** * Sets the lifetime of the access token in seconds. * @@ -1158,15 +968,14 @@ class OAuth2 implements FetchAuthTokenInterface */ public function setExpiresIn($expiresIn) { - if (is_null($expiresIn)) { + if (\is_null($expiresIn)) { $this->expiresIn = null; $this->issuedAt = null; } else { - $this->issuedAt = time(); - $this->expiresIn = (int)$expiresIn; + $this->issuedAt = \time(); + $this->expiresIn = (int) $expiresIn; } } - /** * Gets the time the current access token expires at. * @@ -1174,17 +983,14 @@ class OAuth2 implements FetchAuthTokenInterface */ public function getExpiresAt() { - if (!is_null($this->expiresAt)) { + if (!\is_null($this->expiresAt)) { return $this->expiresAt; } - - if (!is_null($this->issuedAt) && !is_null($this->expiresIn)) { + if (!\is_null($this->issuedAt) && !\is_null($this->expiresIn)) { return $this->issuedAt + $this->expiresIn; } - return null; } - /** * Returns true if the acccess token has expired. * @@ -1193,11 +999,9 @@ class OAuth2 implements FetchAuthTokenInterface public function isExpired() { $expiration = $this->getExpiresAt(); - $now = time(); - - return !is_null($expiration) && $now >= $expiration; + $now = \time(); + return !\is_null($expiration) && $now >= $expiration; } - /** * Sets the time the current access token expires at. * @@ -1207,7 +1011,6 @@ class OAuth2 implements FetchAuthTokenInterface { $this->expiresAt = $expiresAt; } - /** * Gets the time the current access token was issued at. */ @@ -1215,7 +1018,6 @@ class OAuth2 implements FetchAuthTokenInterface { return $this->issuedAt; } - /** * Sets the time the current access token was issued at. * @@ -1225,7 +1027,6 @@ class OAuth2 implements FetchAuthTokenInterface { $this->issuedAt = $issuedAt; } - /** * Gets the current access token. */ @@ -1233,7 +1034,6 @@ class OAuth2 implements FetchAuthTokenInterface { return $this->accessToken; } - /** * Sets the current access token. * @@ -1243,7 +1043,6 @@ class OAuth2 implements FetchAuthTokenInterface { $this->accessToken = $accessToken; } - /** * Gets the current ID token. */ @@ -1251,7 +1050,6 @@ class OAuth2 implements FetchAuthTokenInterface { return $this->idToken; } - /** * Sets the current ID token. * @@ -1261,7 +1059,6 @@ class OAuth2 implements FetchAuthTokenInterface { $this->idToken = $idToken; } - /** * Gets the refresh token associated with the current access token. */ @@ -1269,7 +1066,6 @@ class OAuth2 implements FetchAuthTokenInterface { return $this->refreshToken; } - /** * Sets the refresh token associated with the current access token. * @@ -1279,7 +1075,6 @@ class OAuth2 implements FetchAuthTokenInterface { $this->refreshToken = $refreshToken; } - /** * Sets additional claims to be included in the JWT token * @@ -1289,7 +1084,6 @@ class OAuth2 implements FetchAuthTokenInterface { $this->additionalClaims = $additionalClaims; } - /** * Gets the additional claims to be included in the JWT token. * @@ -1299,7 +1093,6 @@ class OAuth2 implements FetchAuthTokenInterface { return $this->additionalClaims; } - /** * The expiration of the last received token. * @@ -1308,15 +1101,10 @@ class OAuth2 implements FetchAuthTokenInterface public function getLastReceivedToken() { if ($token = $this->getAccessToken()) { - return [ - 'access_token' => $token, - 'expires_at' => $this->getExpiresAt(), - ]; + return ['access_token' => $token, 'expires_at' => $this->getExpiresAt()]; } - return null; } - /** * Get the client ID. * @@ -1330,7 +1118,6 @@ class OAuth2 implements FetchAuthTokenInterface { return $this->getClientId(); } - /** * @todo handle uri as array * @@ -1339,13 +1126,11 @@ class OAuth2 implements FetchAuthTokenInterface */ private function coerceUri($uri) { - if (is_null($uri)) { + if (\is_null($uri)) { return; } - - return Psr7\uri_for($uri); + return \WPMailSMTP\Vendor\GuzzleHttp\Psr7\uri_for($uri); } - /** * @param string $idToken * @param string|array|null $publicKey @@ -1354,27 +1139,18 @@ class OAuth2 implements FetchAuthTokenInterface */ private function jwtDecode($idToken, $publicKey, $allowedAlgs) { - if (class_exists('Firebase\JWT\JWT')) { - return \Firebase\JWT\JWT::decode($idToken, $publicKey, $allowedAlgs); + if (\class_exists('WPMailSMTP\\Vendor\\Firebase\\JWT\\JWT')) { + return \WPMailSMTP\Vendor\Firebase\JWT\JWT::decode($idToken, $publicKey, $allowedAlgs); } - - return \JWT::decode($idToken, $publicKey, $allowedAlgs); + return \WPMailSMTP\Vendor\JWT::decode($idToken, $publicKey, $allowedAlgs); } - private function jwtEncode($assertion, $signingKey, $signingAlgorithm, $signingKeyId = null) { - if (class_exists('Firebase\JWT\JWT')) { - return \Firebase\JWT\JWT::encode( - $assertion, - $signingKey, - $signingAlgorithm, - $signingKeyId - ); + if (\class_exists('WPMailSMTP\\Vendor\\Firebase\\JWT\\JWT')) { + return \WPMailSMTP\Vendor\Firebase\JWT\JWT::encode($assertion, $signingKey, $signingAlgorithm, $signingKeyId); } - - return \JWT::encode($assertion, $signingKey, $signingAlgorithm, $signingKeyId); + return \WPMailSMTP\Vendor\JWT::encode($assertion, $signingKey, $signingAlgorithm, $signingKeyId); } - /** * Determines if the URI is absolute based on its scheme and host or path * (RFC 3986). @@ -1385,10 +1161,8 @@ class OAuth2 implements FetchAuthTokenInterface private function isAbsoluteUri($uri) { $uri = $this->coerceUri($uri); - return $uri->getScheme() && ($uri->getHost() || $uri->getPath()); } - /** * @param array $params * @return array @@ -1397,12 +1171,10 @@ class OAuth2 implements FetchAuthTokenInterface { $clientId = $this->getClientId(); $clientSecret = $this->getClientSecret(); - if ($clientId && $clientSecret) { $params['client_id'] = $clientId; $params['client_secret'] = $clientSecret; } - return $params; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/ProjectIdProviderInterface.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/ProjectIdProviderInterface.php similarity index 95% rename from wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/ProjectIdProviderInterface.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/ProjectIdProviderInterface.php index 0a41f78..6790cd8 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/ProjectIdProviderInterface.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/ProjectIdProviderInterface.php @@ -1,4 +1,5 @@ auth->getSigningKey(); - $signedString = ''; - if (class_exists('\\phpseclib\\Crypt\\RSA') && !$forceOpenssl) { - $rsa = new RSA; + if (\class_exists('WPMailSMTP\\Vendor\\phpseclib\\Crypt\\RSA') && !$forceOpenssl) { + $rsa = new \WPMailSMTP\Vendor\phpseclib\Crypt\RSA(); $rsa->loadKey($privateKey); - $rsa->setSignatureMode(RSA::SIGNATURE_PKCS1); + $rsa->setSignatureMode(\WPMailSMTP\Vendor\phpseclib\Crypt\RSA::SIGNATURE_PKCS1); $rsa->setHash('sha256'); - $signedString = $rsa->sign($stringToSign); - } elseif (extension_loaded('openssl')) { - openssl_sign($stringToSign, $signedString, $privateKey, 'sha256WithRSAEncryption'); + } elseif (\extension_loaded('openssl')) { + \openssl_sign($stringToSign, $signedString, $privateKey, 'sha256WithRSAEncryption'); } else { // @codeCoverageIgnoreStart throw new \RuntimeException('OpenSSL is not installed.'); } // @codeCoverageIgnoreEnd - - return base64_encode($signedString); + return \base64_encode($signedString); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/SignBlobInterface.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/SignBlobInterface.php similarity index 87% rename from wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/SignBlobInterface.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/SignBlobInterface.php index 5f2c944..06e43df 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/SignBlobInterface.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/SignBlobInterface.php @@ -1,4 +1,5 @@ ' */ -class AuthTokenSubscriber implements SubscriberInterface +class AuthTokenSubscriber implements \WPMailSMTP\Vendor\GuzzleHttp\Event\SubscriberInterface { /** * @var callable */ private $httpHandler; - /** * @var FetchAuthTokenInterface */ private $fetcher; - /** * @var callable */ private $tokenCallback; - /** * Creates a new AuthTokenSubscriber. * @@ -58,24 +54,19 @@ class AuthTokenSubscriber implements SubscriberInterface * @param callable $httpHandler (optional) http client to fetch the token. * @param callable $tokenCallback (optional) function to be called when a new token is fetched. */ - public function __construct( - FetchAuthTokenInterface $fetcher, - callable $httpHandler = null, - callable $tokenCallback = null - ) { + public function __construct(\WPMailSMTP\Vendor\Google\Auth\FetchAuthTokenInterface $fetcher, callable $httpHandler = null, callable $tokenCallback = null) + { $this->fetcher = $fetcher; $this->httpHandler = $httpHandler; $this->tokenCallback = $tokenCallback; } - /** * @return array */ public function getEvents() { - return ['before' => ['onBefore', RequestEvents::SIGN_REQUEST]]; + return ['before' => ['onBefore', \WPMailSMTP\Vendor\GuzzleHttp\Event\RequestEvents::SIGN_REQUEST]]; } - /** * Updates the request with an Authorization header when auth is 'fetched_auth_token'. * @@ -100,36 +91,29 @@ class AuthTokenSubscriber implements SubscriberInterface * * @param BeforeEvent $event */ - public function onBefore(BeforeEvent $event) + public function onBefore(\WPMailSMTP\Vendor\GuzzleHttp\Event\BeforeEvent $event) { // Requests using "auth"="google_auth" will be authorized. $request = $event->getRequest(); if ($request->getConfig()['auth'] != 'google_auth') { return; } - // Fetch the auth token. $auth_tokens = $this->fetcher->fetchAuthToken($this->httpHandler); - if (array_key_exists('access_token', $auth_tokens)) { + if (\array_key_exists('access_token', $auth_tokens)) { $request->setHeader('authorization', 'Bearer ' . $auth_tokens['access_token']); - // notify the callback if applicable if ($this->tokenCallback) { - call_user_func($this->tokenCallback, $this->fetcher->getCacheKey(), $auth_tokens['access_token']); + \call_user_func($this->tokenCallback, $this->fetcher->getCacheKey(), $auth_tokens['access_token']); } } - if ($quotaProject = $this->getQuotaProject()) { - $request->setHeader( - GetQuotaProjectInterface::X_GOOG_USER_PROJECT_HEADER, - $quotaProject - ); + $request->setHeader(\WPMailSMTP\Vendor\Google\Auth\GetQuotaProjectInterface::X_GOOG_USER_PROJECT_HEADER, $quotaProject); } } - private function getQuotaProject() { - if ($this->fetcher instanceof GetQuotaProjectInterface) { + if ($this->fetcher instanceof \WPMailSMTP\Vendor\Google\Auth\GetQuotaProjectInterface) { return $this->fetcher->getQuotaProject(); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Subscriber/ScopedAccessTokenSubscriber.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/Subscriber/ScopedAccessTokenSubscriber.php similarity index 75% rename from wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Subscriber/ScopedAccessTokenSubscriber.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/Subscriber/ScopedAccessTokenSubscriber.php index a52dcce..c9bc8f6 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Subscriber/ScopedAccessTokenSubscriber.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/Subscriber/ScopedAccessTokenSubscriber.php @@ -1,4 +1,5 @@ ' */ -class ScopedAccessTokenSubscriber implements SubscriberInterface +class ScopedAccessTokenSubscriber implements \WPMailSMTP\Vendor\GuzzleHttp\Event\SubscriberInterface { use CacheTrait; - const DEFAULT_CACHE_LIFETIME = 1500; - /** * @var CacheItemPoolInterface */ private $cache; - /** * @var callable The access token generator function */ private $tokenFunc; - /** * @var array|string The scopes used to generate the token */ private $scopes; - /** * @var array */ private $cacheConfig; - /** * Creates a new ScopedAccessTokenSubscriber. * @@ -69,37 +62,25 @@ class ScopedAccessTokenSubscriber implements SubscriberInterface * @param array $cacheConfig configuration for the cache when it's present * @param CacheItemPoolInterface $cache an implementation of CacheItemPoolInterface */ - public function __construct( - callable $tokenFunc, - $scopes, - array $cacheConfig = null, - CacheItemPoolInterface $cache = null - ) { + public function __construct(callable $tokenFunc, $scopes, array $cacheConfig = null, \WPMailSMTP\Vendor\Psr\Cache\CacheItemPoolInterface $cache = null) + { $this->tokenFunc = $tokenFunc; - if (!(is_string($scopes) || is_array($scopes))) { - throw new \InvalidArgumentException( - 'wants scope should be string or array' - ); + if (!(\is_string($scopes) || \is_array($scopes))) { + throw new \InvalidArgumentException('wants scope should be string or array'); } $this->scopes = $scopes; - - if (!is_null($cache)) { + if (!\is_null($cache)) { $this->cache = $cache; - $this->cacheConfig = array_merge([ - 'lifetime' => self::DEFAULT_CACHE_LIFETIME, - 'prefix' => '', - ], $cacheConfig); + $this->cacheConfig = \array_merge(['lifetime' => self::DEFAULT_CACHE_LIFETIME, 'prefix' => ''], $cacheConfig); } } - /** * @return array */ public function getEvents() { - return ['before' => ['onBefore', RequestEvents::SIGN_REQUEST]]; + return ['before' => ['onBefore', \WPMailSMTP\Vendor\GuzzleHttp\Event\RequestEvents::SIGN_REQUEST]]; } - /** * Updates the request with an Authorization header when auth is 'scoped'. * @@ -130,7 +111,7 @@ class ScopedAccessTokenSubscriber implements SubscriberInterface * * @param BeforeEvent $event */ - public function onBefore(BeforeEvent $event) + public function onBefore(\WPMailSMTP\Vendor\GuzzleHttp\Event\BeforeEvent $event) { // Requests using "auth"="scoped" will be authorized. $request = $event->getRequest(); @@ -140,23 +121,19 @@ class ScopedAccessTokenSubscriber implements SubscriberInterface $auth_header = 'Bearer ' . $this->fetchToken(); $request->setHeader('authorization', $auth_header); } - /** * @return string */ private function getCacheKey() { $key = null; - - if (is_string($this->scopes)) { + if (\is_string($this->scopes)) { $key .= $this->scopes; - } elseif (is_array($this->scopes)) { - $key .= implode(':', $this->scopes); + } elseif (\is_array($this->scopes)) { + $key .= \implode(':', $this->scopes); } - return $key; } - /** * Determine if token is available in the cache, if not call tokenFunc to * fetch it. @@ -167,14 +144,11 @@ class ScopedAccessTokenSubscriber implements SubscriberInterface { $cacheKey = $this->getCacheKey(); $cached = $this->getCachedValue($cacheKey); - if (!empty($cached)) { return $cached; } - - $token = call_user_func($this->tokenFunc, $this->scopes); + $token = \call_user_func($this->tokenFunc, $this->scopes); $this->setCachedValue($cacheKey, $token); - return $token; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Subscriber/SimpleSubscriber.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/Subscriber/SimpleSubscriber.php similarity index 80% rename from wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Subscriber/SimpleSubscriber.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/Subscriber/SimpleSubscriber.php index a881eb1..d7e5155 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/google/auth/src/Subscriber/SimpleSubscriber.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/Subscriber/SimpleSubscriber.php @@ -1,4 +1,5 @@ config = array_merge([], $config); + $this->config = \array_merge([], $config); } - /** * @return array */ public function getEvents() { - return ['before' => ['onBefore', RequestEvents::SIGN_REQUEST]]; + return ['before' => ['onBefore', \WPMailSMTP\Vendor\GuzzleHttp\Event\RequestEvents::SIGN_REQUEST]]; } - /** * Updates the request query with the developer key if auth is set to simple. * @@ -81,7 +76,7 @@ class SimpleSubscriber implements SubscriberInterface * * @param BeforeEvent $event */ - public function onBefore(BeforeEvent $event) + public function onBefore(\WPMailSMTP\Vendor\GuzzleHttp\Event\BeforeEvent $event) { // Requests using "auth"="simple" with the developer key. $request = $event->getRequest(); diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/UpdateMetadataInterface.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/UpdateMetadataInterface.php new file mode 100644 index 0000000..5a4f5cd --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/google/auth/src/UpdateMetadataInterface.php @@ -0,0 +1,36 @@ +configureDefaults($config); } - /** * @param string $method * @param array $args @@ -83,18 +79,13 @@ class Client implements ClientInterface */ public function __call($method, $args) { - if (count($args) < 1) { + if (\count($args) < 1) { throw new \InvalidArgumentException('Magic request methods require a URI and optional options array'); } - $uri = $args[0]; $opts = isset($args[1]) ? $args[1] : []; - - return substr($method, -5) === 'Async' - ? $this->requestAsync(substr($method, 0, -5), $uri, $opts) - : $this->request($method, $uri, $opts); + return \substr($method, -5) === 'Async' ? $this->requestAsync(\substr($method, 0, -5), $uri, $opts) : $this->request($method, $uri, $opts); } - /** * Asynchronously send an HTTP request. * @@ -103,17 +94,12 @@ class Client implements ClientInterface * * @return Promise\PromiseInterface */ - public function sendAsync(RequestInterface $request, array $options = []) + public function sendAsync(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, array $options = []) { // Merge the base URI into the request URI if needed. $options = $this->prepareDefaults($options); - - return $this->transfer( - $request->withUri($this->buildUri($request->getUri(), $options), $request->hasHeader('Host')), - $options - ); + return $this->transfer($request->withUri($this->buildUri($request->getUri(), $options), $request->hasHeader('Host')), $options); } - /** * Send an HTTP request. * @@ -123,12 +109,11 @@ class Client implements ClientInterface * @return ResponseInterface * @throws GuzzleException */ - public function send(RequestInterface $request, array $options = []) + public function send(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, array $options = []) { - $options[RequestOptions::SYNCHRONOUS] = true; + $options[\WPMailSMTP\Vendor\GuzzleHttp\RequestOptions::SYNCHRONOUS] = \true; return $this->sendAsync($request, $options)->wait(); } - /** * Create and send an asynchronous HTTP request. * @@ -152,16 +137,14 @@ class Client implements ClientInterface $version = isset($options['version']) ? $options['version'] : '1.1'; // Merge the URI into the base URI. $uri = $this->buildUri($uri, $options); - if (is_array($body)) { + if (\is_array($body)) { $this->invalidBody(); } - $request = new Psr7\Request($method, $uri, $headers, $body, $version); + $request = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request($method, $uri, $headers, $body, $version); // Remove the option so that they are not doubly-applied. unset($options['headers'], $options['body'], $options['version']); - return $this->transfer($request, $options); } - /** * Create and send an HTTP request. * @@ -178,10 +161,9 @@ class Client implements ClientInterface */ public function request($method, $uri = '', array $options = []) { - $options[RequestOptions::SYNCHRONOUS] = true; + $options[\WPMailSMTP\Vendor\GuzzleHttp\RequestOptions::SYNCHRONOUS] = \true; return $this->requestAsync($method, $uri, $options)->wait(); } - /** * Get a client configuration option. * @@ -195,11 +177,8 @@ class Client implements ClientInterface */ public function getConfig($option = null) { - return $option === null - ? $this->config - : (isset($this->config[$option]) ? $this->config[$option] : null); + return $option === null ? $this->config : (isset($this->config[$option]) ? $this->config[$option] : null); } - /** * @param string|null $uri * @@ -208,20 +187,16 @@ class Client implements ClientInterface private function buildUri($uri, array $config) { // for BC we accept null which would otherwise fail in uri_for - $uri = Psr7\uri_for($uri === null ? '' : $uri); - + $uri = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\uri_for($uri === null ? '' : $uri); if (isset($config['base_uri'])) { - $uri = Psr7\UriResolver::resolve(Psr7\uri_for($config['base_uri']), $uri); + $uri = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\UriResolver::resolve(\WPMailSMTP\Vendor\GuzzleHttp\Psr7\uri_for($config['base_uri']), $uri); } - - if (isset($config['idn_conversion']) && ($config['idn_conversion'] !== false)) { - $idnOptions = ($config['idn_conversion'] === true) ? IDNA_DEFAULT : $config['idn_conversion']; - $uri = Utils::idnUriConvert($uri, $idnOptions); + if (isset($config['idn_conversion']) && $config['idn_conversion'] !== \false) { + $idnOptions = $config['idn_conversion'] === \true ? \IDNA_DEFAULT : $config['idn_conversion']; + $uri = \WPMailSMTP\Vendor\GuzzleHttp\Utils::idnUriConvert($uri, $idnOptions); } - return $uri->getScheme() === '' && $uri->getHost() !== '' ? $uri->withScheme('http') : $uri; } - /** * Configures the default options for a client. * @@ -230,53 +205,38 @@ class Client implements ClientInterface */ private function configureDefaults(array $config) { - $defaults = [ - 'allow_redirects' => RedirectMiddleware::$defaultSettings, - 'http_errors' => true, - 'decode_content' => true, - 'verify' => true, - 'cookies' => false, - 'idn_conversion' => true, - ]; - + $defaults = ['allow_redirects' => \WPMailSMTP\Vendor\GuzzleHttp\RedirectMiddleware::$defaultSettings, 'http_errors' => \true, 'decode_content' => \true, 'verify' => \true, 'cookies' => \false, 'idn_conversion' => \true]; // Use the standard Linux HTTP_PROXY and HTTPS_PROXY if set. - // We can only trust the HTTP_PROXY environment variable in a CLI // process due to the fact that PHP has no reliable mechanism to // get environment variables that start with "HTTP_". - if (php_sapi_name() === 'cli' && getenv('HTTP_PROXY')) { - $defaults['proxy']['http'] = getenv('HTTP_PROXY'); + if (\php_sapi_name() === 'cli' && \getenv('HTTP_PROXY')) { + $defaults['proxy']['http'] = \getenv('HTTP_PROXY'); } - - if ($proxy = getenv('HTTPS_PROXY')) { + if ($proxy = \getenv('HTTPS_PROXY')) { $defaults['proxy']['https'] = $proxy; } - - if ($noProxy = getenv('NO_PROXY')) { - $cleanedNoProxy = str_replace(' ', '', $noProxy); - $defaults['proxy']['no'] = explode(',', $cleanedNoProxy); + if ($noProxy = \getenv('NO_PROXY')) { + $cleanedNoProxy = \str_replace(' ', '', $noProxy); + $defaults['proxy']['no'] = \explode(',', $cleanedNoProxy); } - $this->config = $config + $defaults; - - if (!empty($config['cookies']) && $config['cookies'] === true) { - $this->config['cookies'] = new CookieJar(); + if (!empty($config['cookies']) && $config['cookies'] === \true) { + $this->config['cookies'] = new \WPMailSMTP\Vendor\GuzzleHttp\Cookie\CookieJar(); } - // Add the default user-agent header. if (!isset($this->config['headers'])) { $this->config['headers'] = ['User-Agent' => default_user_agent()]; } else { // Add the User-Agent header if one was not already set. - foreach (array_keys($this->config['headers']) as $name) { - if (strtolower($name) === 'user-agent') { + foreach (\array_keys($this->config['headers']) as $name) { + if (\strtolower($name) === 'user-agent') { return; } } $this->config['headers']['User-Agent'] = default_user_agent(); } } - /** * Merges default options into the array. * @@ -287,38 +247,32 @@ class Client implements ClientInterface private function prepareDefaults(array $options) { $defaults = $this->config; - if (!empty($defaults['headers'])) { // Default headers are only added if they are not present. $defaults['_conditional'] = $defaults['headers']; unset($defaults['headers']); } - // Special handling for headers is required as they are added as // conditional headers and as headers passed to a request ctor. - if (array_key_exists('headers', $options)) { + if (\array_key_exists('headers', $options)) { // Allows default headers to be unset. if ($options['headers'] === null) { $defaults['_conditional'] = []; unset($options['headers']); - } elseif (!is_array($options['headers'])) { + } elseif (!\is_array($options['headers'])) { throw new \InvalidArgumentException('headers must be an array'); } } - // Shallow merge defaults underneath options. $result = $options + $defaults; - // Remove null values. foreach ($result as $k => $v) { if ($v === null) { unset($result[$k]); } } - return $result; } - /** * Transfers the given request and applies request options. * @@ -329,31 +283,27 @@ class Client implements ClientInterface * * @return Promise\PromiseInterface */ - private function transfer(RequestInterface $request, array $options) + private function transfer(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, array $options) { // save_to -> sink if (isset($options['save_to'])) { $options['sink'] = $options['save_to']; unset($options['save_to']); } - // exceptions -> http_errors if (isset($options['exceptions'])) { $options['http_errors'] = $options['exceptions']; unset($options['exceptions']); } - $request = $this->applyOptions($request, $options); /** @var HandlerStack $handler */ $handler = $options['handler']; - try { - return Promise\promise_for($handler($request, $options)); + return \WPMailSMTP\Vendor\GuzzleHttp\Promise\promise_for($handler($request, $options)); } catch (\Exception $e) { - return Promise\rejection_for($e); + return \WPMailSMTP\Vendor\GuzzleHttp\Promise\rejection_for($e); } } - /** * Applies the array of request options to a request. * @@ -362,112 +312,91 @@ class Client implements ClientInterface * * @return RequestInterface */ - private function applyOptions(RequestInterface $request, array &$options) + private function applyOptions(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, array &$options) { - $modify = [ - 'set_headers' => [], - ]; - + $modify = ['set_headers' => []]; if (isset($options['headers'])) { $modify['set_headers'] = $options['headers']; unset($options['headers']); } - if (isset($options['form_params'])) { if (isset($options['multipart'])) { - throw new \InvalidArgumentException('You cannot use ' - . 'form_params and multipart at the same time. Use the ' - . 'form_params option if you want to send application/' - . 'x-www-form-urlencoded requests, and the multipart ' - . 'option to send multipart/form-data requests.'); + throw new \InvalidArgumentException('You cannot use ' . 'form_params and multipart at the same time. Use the ' . 'form_params option if you want to send application/' . 'x-www-form-urlencoded requests, and the multipart ' . 'option to send multipart/form-data requests.'); } - $options['body'] = http_build_query($options['form_params'], '', '&'); + $options['body'] = \http_build_query($options['form_params'], '', '&'); unset($options['form_params']); // Ensure that we don't have the header in different case and set the new value. - $options['_conditional'] = Psr7\_caseless_remove(['Content-Type'], $options['_conditional']); + $options['_conditional'] = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\_caseless_remove(['Content-Type'], $options['_conditional']); $options['_conditional']['Content-Type'] = 'application/x-www-form-urlencoded'; } - if (isset($options['multipart'])) { - $options['body'] = new Psr7\MultipartStream($options['multipart']); + $options['body'] = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($options['multipart']); unset($options['multipart']); } - if (isset($options['json'])) { - $options['body'] = \GuzzleHttp\json_encode($options['json']); + $options['body'] = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($options['json']); unset($options['json']); // Ensure that we don't have the header in different case and set the new value. - $options['_conditional'] = Psr7\_caseless_remove(['Content-Type'], $options['_conditional']); + $options['_conditional'] = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\_caseless_remove(['Content-Type'], $options['_conditional']); $options['_conditional']['Content-Type'] = 'application/json'; } - - if (!empty($options['decode_content']) - && $options['decode_content'] !== true - ) { + if (!empty($options['decode_content']) && $options['decode_content'] !== \true) { // Ensure that we don't have the header in different case and set the new value. - $options['_conditional'] = Psr7\_caseless_remove(['Accept-Encoding'], $options['_conditional']); + $options['_conditional'] = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\_caseless_remove(['Accept-Encoding'], $options['_conditional']); $modify['set_headers']['Accept-Encoding'] = $options['decode_content']; } - if (isset($options['body'])) { - if (is_array($options['body'])) { + if (\is_array($options['body'])) { $this->invalidBody(); } - $modify['body'] = Psr7\stream_for($options['body']); + $modify['body'] = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\stream_for($options['body']); unset($options['body']); } - - if (!empty($options['auth']) && is_array($options['auth'])) { + if (!empty($options['auth']) && \is_array($options['auth'])) { $value = $options['auth']; - $type = isset($value[2]) ? strtolower($value[2]) : 'basic'; + $type = isset($value[2]) ? \strtolower($value[2]) : 'basic'; switch ($type) { case 'basic': // Ensure that we don't have the header in different case and set the new value. - $modify['set_headers'] = Psr7\_caseless_remove(['Authorization'], $modify['set_headers']); - $modify['set_headers']['Authorization'] = 'Basic ' - . base64_encode("$value[0]:$value[1]"); + $modify['set_headers'] = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\_caseless_remove(['Authorization'], $modify['set_headers']); + $modify['set_headers']['Authorization'] = 'Basic ' . \base64_encode("{$value[0]}:{$value[1]}"); break; case 'digest': // @todo: Do not rely on curl - $options['curl'][CURLOPT_HTTPAUTH] = CURLAUTH_DIGEST; - $options['curl'][CURLOPT_USERPWD] = "$value[0]:$value[1]"; + $options['curl'][\CURLOPT_HTTPAUTH] = \CURLAUTH_DIGEST; + $options['curl'][\CURLOPT_USERPWD] = "{$value[0]}:{$value[1]}"; break; case 'ntlm': - $options['curl'][CURLOPT_HTTPAUTH] = CURLAUTH_NTLM; - $options['curl'][CURLOPT_USERPWD] = "$value[0]:$value[1]"; + $options['curl'][\CURLOPT_HTTPAUTH] = \CURLAUTH_NTLM; + $options['curl'][\CURLOPT_USERPWD] = "{$value[0]}:{$value[1]}"; break; } } - if (isset($options['query'])) { $value = $options['query']; - if (is_array($value)) { - $value = http_build_query($value, null, '&', PHP_QUERY_RFC3986); + if (\is_array($value)) { + $value = \http_build_query($value, null, '&', \PHP_QUERY_RFC3986); } - if (!is_string($value)) { + if (!\is_string($value)) { throw new \InvalidArgumentException('query must be a string or array'); } $modify['query'] = $value; unset($options['query']); } - // Ensure that sink is not an invalid value. if (isset($options['sink'])) { // TODO: Add more sink validation? - if (is_bool($options['sink'])) { + if (\is_bool($options['sink'])) { throw new \InvalidArgumentException('sink must not be a boolean'); } } - - $request = Psr7\modify_request($request, $modify); - if ($request->getBody() instanceof Psr7\MultipartStream) { + $request = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\modify_request($request, $modify); + if ($request->getBody() instanceof \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream) { // Use a multipart/form-data POST if a Content-Type is not set. // Ensure that we don't have the header in different case and set the new value. - $options['_conditional'] = Psr7\_caseless_remove(['Content-Type'], $options['_conditional']); - $options['_conditional']['Content-Type'] = 'multipart/form-data; boundary=' - . $request->getBody()->getBoundary(); + $options['_conditional'] = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\_caseless_remove(['Content-Type'], $options['_conditional']); + $options['_conditional']['Content-Type'] = 'multipart/form-data; boundary=' . $request->getBody()->getBoundary(); } - // Merge in conditional headers if they are not present. if (isset($options['_conditional'])) { // Build up the changes so it's in a single clone of the message. @@ -477,14 +406,12 @@ class Client implements ClientInterface $modify['set_headers'][$k] = $v; } } - $request = Psr7\modify_request($request, $modify); + $request = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\modify_request($request, $modify); // Don't pass this internal value along to middleware/handlers. unset($options['_conditional']); } - return $request; } - /** * Throw Exception with pre-set message. * @return void @@ -492,10 +419,6 @@ class Client implements ClientInterface */ private function invalidBody() { - throw new \InvalidArgumentException('Passing in the "body" request ' - . 'option as an array to send a POST request has been deprecated. ' - . 'Please use the "form_params" request option to send a ' - . 'application/x-www-form-urlencoded request, or the "multipart" ' - . 'request option to send a multipart/form-data request.'); + throw new \InvalidArgumentException('Passing in the "body" request ' . 'option as an array to send a POST request has been deprecated. ' . 'Please use the "form_params" request option to send a ' . 'application/x-www-form-urlencoded request, or the "multipart" ' . 'request option to send a multipart/form-data request.'); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/ClientInterface.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/ClientInterface.php similarity index 81% rename from wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/ClientInterface.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/ClientInterface.php index 638b75d..343be06 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/ClientInterface.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/ClientInterface.php @@ -1,12 +1,12 @@ strictMode = $strictMode; - foreach ($cookieArray as $cookie) { - if (!($cookie instanceof SetCookie)) { - $cookie = new SetCookie($cookie); + if (!$cookie instanceof \WPMailSMTP\Vendor\GuzzleHttp\Cookie\SetCookie) { + $cookie = new \WPMailSMTP\Vendor\GuzzleHttp\Cookie\SetCookie($cookie); } $this->setCookie($cookie); } } - /** * Create a new Cookie jar from an associative array and domain. * @@ -46,17 +42,10 @@ class CookieJar implements CookieJarInterface { $cookieJar = new self(); foreach ($cookies as $name => $value) { - $cookieJar->setCookie(new SetCookie([ - 'Domain' => $domain, - 'Name' => $name, - 'Value' => $value, - 'Discard' => true - ])); + $cookieJar->setCookie(new \WPMailSMTP\Vendor\GuzzleHttp\Cookie\SetCookie(['Domain' => $domain, 'Name' => $name, 'Value' => $value, 'Discard' => \true])); } - return $cookieJar; } - /** * @deprecated */ @@ -64,7 +53,6 @@ class CookieJar implements CookieJarInterface { return $value; } - /** * Evaluate if this cookie should be persisted to storage * that survives between requests. @@ -73,19 +61,15 @@ class CookieJar implements CookieJarInterface * @param bool $allowSessionCookies If we should persist session cookies * @return bool */ - public static function shouldPersist( - SetCookie $cookie, - $allowSessionCookies = false - ) { + public static function shouldPersist(\WPMailSMTP\Vendor\GuzzleHttp\Cookie\SetCookie $cookie, $allowSessionCookies = \false) + { if ($cookie->getExpires() || $allowSessionCookies) { if (!$cookie->getDiscard()) { - return true; + return \true; } } - - return false; + return \false; } - /** * Finds and returns the cookie based on the name * @@ -95,156 +79,118 @@ class CookieJar implements CookieJarInterface public function getCookieByName($name) { // don't allow a non string name - if ($name === null || !is_scalar($name)) { + if ($name === null || !\is_scalar($name)) { return null; } foreach ($this->cookies as $cookie) { - if ($cookie->getName() !== null && strcasecmp($cookie->getName(), $name) === 0) { + if ($cookie->getName() !== null && \strcasecmp($cookie->getName(), $name) === 0) { return $cookie; } } - return null; } - public function toArray() { - return array_map(function (SetCookie $cookie) { + return \array_map(function (\WPMailSMTP\Vendor\GuzzleHttp\Cookie\SetCookie $cookie) { return $cookie->toArray(); }, $this->getIterator()->getArrayCopy()); } - public function clear($domain = null, $path = null, $name = null) { if (!$domain) { $this->cookies = []; return; } elseif (!$path) { - $this->cookies = array_filter( - $this->cookies, - function (SetCookie $cookie) use ($domain) { - return !$cookie->matchesDomain($domain); - } - ); + $this->cookies = \array_filter($this->cookies, function (\WPMailSMTP\Vendor\GuzzleHttp\Cookie\SetCookie $cookie) use($domain) { + return !$cookie->matchesDomain($domain); + }); } elseif (!$name) { - $this->cookies = array_filter( - $this->cookies, - function (SetCookie $cookie) use ($path, $domain) { - return !($cookie->matchesPath($path) && - $cookie->matchesDomain($domain)); - } - ); + $this->cookies = \array_filter($this->cookies, function (\WPMailSMTP\Vendor\GuzzleHttp\Cookie\SetCookie $cookie) use($path, $domain) { + return !($cookie->matchesPath($path) && $cookie->matchesDomain($domain)); + }); } else { - $this->cookies = array_filter( - $this->cookies, - function (SetCookie $cookie) use ($path, $domain, $name) { - return !($cookie->getName() == $name && - $cookie->matchesPath($path) && - $cookie->matchesDomain($domain)); - } - ); + $this->cookies = \array_filter($this->cookies, function (\WPMailSMTP\Vendor\GuzzleHttp\Cookie\SetCookie $cookie) use($path, $domain, $name) { + return !($cookie->getName() == $name && $cookie->matchesPath($path) && $cookie->matchesDomain($domain)); + }); } } - public function clearSessionCookies() { - $this->cookies = array_filter( - $this->cookies, - function (SetCookie $cookie) { - return !$cookie->getDiscard() && $cookie->getExpires(); - } - ); + $this->cookies = \array_filter($this->cookies, function (\WPMailSMTP\Vendor\GuzzleHttp\Cookie\SetCookie $cookie) { + return !$cookie->getDiscard() && $cookie->getExpires(); + }); } - - public function setCookie(SetCookie $cookie) + public function setCookie(\WPMailSMTP\Vendor\GuzzleHttp\Cookie\SetCookie $cookie) { // If the name string is empty (but not 0), ignore the set-cookie // string entirely. $name = $cookie->getName(); if (!$name && $name !== '0') { - return false; + return \false; } - // Only allow cookies with set and valid domain, name, value $result = $cookie->validate(); - if ($result !== true) { + if ($result !== \true) { if ($this->strictMode) { throw new \RuntimeException('Invalid cookie: ' . $result); } else { $this->removeCookieIfEmpty($cookie); - return false; + return \false; } } - // Resolve conflicts with previously set cookies foreach ($this->cookies as $i => $c) { - // Two cookies are identical, when their path, and domain are // identical. - if ($c->getPath() != $cookie->getPath() || - $c->getDomain() != $cookie->getDomain() || - $c->getName() != $cookie->getName() - ) { + if ($c->getPath() != $cookie->getPath() || $c->getDomain() != $cookie->getDomain() || $c->getName() != $cookie->getName()) { continue; } - // The previously set cookie is a discard cookie and this one is // not so allow the new cookie to be set if (!$cookie->getDiscard() && $c->getDiscard()) { unset($this->cookies[$i]); continue; } - // If the new cookie's expiration is further into the future, then // replace the old cookie if ($cookie->getExpires() > $c->getExpires()) { unset($this->cookies[$i]); continue; } - // If the value has changed, we better change it if ($cookie->getValue() !== $c->getValue()) { unset($this->cookies[$i]); continue; } - // The cookie exists, so no need to continue - return false; + return \false; } - $this->cookies[] = $cookie; - - return true; + return \true; } - public function count() { - return count($this->cookies); + return \count($this->cookies); } - public function getIterator() { - return new \ArrayIterator(array_values($this->cookies)); + return new \ArrayIterator(\array_values($this->cookies)); } - - public function extractCookies( - RequestInterface $request, - ResponseInterface $response - ) { + public function extractCookies(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, \WPMailSMTP\Vendor\Psr\Http\Message\ResponseInterface $response) + { if ($cookieHeader = $response->getHeader('Set-Cookie')) { foreach ($cookieHeader as $cookie) { - $sc = SetCookie::fromString($cookie); + $sc = \WPMailSMTP\Vendor\GuzzleHttp\Cookie\SetCookie::fromString($cookie); if (!$sc->getDomain()) { $sc->setDomain($request->getUri()->getHost()); } - if (0 !== strpos($sc->getPath(), '/')) { + if (0 !== \strpos($sc->getPath(), '/')) { $sc->setPath($this->getCookiePathFromRequest($request)); } $this->setCookie($sc); } } } - /** * Computes cookie path following RFC 6265 section 5.1.4 * @@ -253,64 +199,48 @@ class CookieJar implements CookieJarInterface * @param RequestInterface $request * @return string */ - private function getCookiePathFromRequest(RequestInterface $request) + private function getCookiePathFromRequest(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request) { $uriPath = $request->getUri()->getPath(); - if ('' === $uriPath) { + if ('' === $uriPath) { return '/'; } - if (0 !== strpos($uriPath, '/')) { + if (0 !== \strpos($uriPath, '/')) { return '/'; } if ('/' === $uriPath) { return '/'; } - if (0 === $lastSlashPos = strrpos($uriPath, '/')) { + if (0 === ($lastSlashPos = \strrpos($uriPath, '/'))) { return '/'; } - - return substr($uriPath, 0, $lastSlashPos); + return \substr($uriPath, 0, $lastSlashPos); } - - public function withCookieHeader(RequestInterface $request) + public function withCookieHeader(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request) { $values = []; $uri = $request->getUri(); $scheme = $uri->getScheme(); $host = $uri->getHost(); $path = $uri->getPath() ?: '/'; - foreach ($this->cookies as $cookie) { - if ($cookie->matchesPath($path) && - $cookie->matchesDomain($host) && - !$cookie->isExpired() && - (!$cookie->getSecure() || $scheme === 'https') - ) { - $values[] = $cookie->getName() . '=' - . $cookie->getValue(); + if ($cookie->matchesPath($path) && $cookie->matchesDomain($host) && !$cookie->isExpired() && (!$cookie->getSecure() || $scheme === 'https')) { + $values[] = $cookie->getName() . '=' . $cookie->getValue(); } } - - return $values - ? $request->withHeader('Cookie', implode('; ', $values)) - : $request; + return $values ? $request->withHeader('Cookie', \implode('; ', $values)) : $request; } - /** * If a cookie already exists and the server asks to set it again with a * null value, the cookie must be deleted. * * @param SetCookie $cookie */ - private function removeCookieIfEmpty(SetCookie $cookie) + private function removeCookieIfEmpty(\WPMailSMTP\Vendor\GuzzleHttp\Cookie\SetCookie $cookie) { $cookieValue = $cookie->getValue(); if ($cookieValue === null || $cookieValue === '') { - $this->clear( - $cookie->getDomain(), - $cookie->getPath(), - $cookie->getName() - ); + $this->clear($cookie->getDomain(), $cookie->getPath(), $cookie->getName()); } } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php index 6ee1188..1fe61d6 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php @@ -1,9 +1,9 @@ filename = $cookieFile; $this->storeSessionCookies = $storeSessionCookies; - - if (file_exists($cookieFile)) { + if (\file_exists($cookieFile)) { $this->load($cookieFile); } } - /** * Saves the file when shutting down */ @@ -39,7 +36,6 @@ class FileCookieJar extends CookieJar { $this->save($this->filename); } - /** * Saves the cookies to a file. * @@ -51,17 +47,15 @@ class FileCookieJar extends CookieJar $json = []; foreach ($this as $cookie) { /** @var SetCookie $cookie */ - if (CookieJar::shouldPersist($cookie, $this->storeSessionCookies)) { + if (\WPMailSMTP\Vendor\GuzzleHttp\Cookie\CookieJar::shouldPersist($cookie, $this->storeSessionCookies)) { $json[] = $cookie->toArray(); } } - - $jsonStr = \GuzzleHttp\json_encode($json); - if (false === file_put_contents($filename, $jsonStr, LOCK_EX)) { + $jsonStr = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($json); + if (\false === \file_put_contents($filename, $jsonStr, \LOCK_EX)) { throw new \RuntimeException("Unable to save file {$filename}"); } } - /** * Load cookies from a JSON formatted file. * @@ -72,19 +66,18 @@ class FileCookieJar extends CookieJar */ public function load($filename) { - $json = file_get_contents($filename); - if (false === $json) { + $json = \file_get_contents($filename); + if (\false === $json) { throw new \RuntimeException("Unable to load file {$filename}"); } elseif ($json === '') { return; } - - $data = \GuzzleHttp\json_decode($json, true); - if (is_array($data)) { - foreach (json_decode($json, true) as $cookie) { - $this->setCookie(new SetCookie($cookie)); + $data = \WPMailSMTP\Vendor\GuzzleHttp\json_decode($json, \true); + if (\is_array($data)) { + foreach (\json_decode($json, \true) as $cookie) { + $this->setCookie(new \WPMailSMTP\Vendor\GuzzleHttp\Cookie\SetCookie($cookie)); } - } elseif (strlen($data)) { + } elseif (\strlen($data)) { throw new \RuntimeException("Invalid cookie file: {$filename}"); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php similarity index 73% rename from wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php index 0224a24..a3fe4ac 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php @@ -1,17 +1,16 @@ sessionKey = $sessionKey; $this->storeSessionCookies = $storeSessionCookies; $this->load(); } - /** * Saves cookies to session when shutting down */ @@ -35,7 +33,6 @@ class SessionCookieJar extends CookieJar { $this->save(); } - /** * Save cookies to the client session */ @@ -44,14 +41,12 @@ class SessionCookieJar extends CookieJar $json = []; foreach ($this as $cookie) { /** @var SetCookie $cookie */ - if (CookieJar::shouldPersist($cookie, $this->storeSessionCookies)) { + if (\WPMailSMTP\Vendor\GuzzleHttp\Cookie\CookieJar::shouldPersist($cookie, $this->storeSessionCookies)) { $json[] = $cookie->toArray(); } } - - $_SESSION[$this->sessionKey] = json_encode($json); + $_SESSION[$this->sessionKey] = \json_encode($json); } - /** * Load the contents of the client session into the data array */ @@ -60,12 +55,12 @@ class SessionCookieJar extends CookieJar if (!isset($_SESSION[$this->sessionKey])) { return; } - $data = json_decode($_SESSION[$this->sessionKey], true); - if (is_array($data)) { + $data = \json_decode($_SESSION[$this->sessionKey], \true); + if (\is_array($data)) { foreach ($data as $cookie) { - $this->setCookie(new SetCookie($cookie)); + $this->setCookie(new \WPMailSMTP\Vendor\GuzzleHttp\Cookie\SetCookie($cookie)); } - } elseif (strlen($data)) { + } elseif (\strlen($data)) { throw new \RuntimeException("Invalid cookie data"); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Cookie/SetCookie.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Cookie/SetCookie.php similarity index 76% rename from wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Cookie/SetCookie.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Cookie/SetCookie.php index 3d776a7..651b343 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Cookie/SetCookie.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Cookie/SetCookie.php @@ -1,5 +1,6 @@ null, - 'Value' => null, - 'Domain' => null, - 'Path' => '/', - 'Max-Age' => null, - 'Expires' => null, - 'Secure' => false, - 'Discard' => false, - 'HttpOnly' => false - ]; - + private static $defaults = ['Name' => null, 'Value' => null, 'Domain' => null, 'Path' => '/', 'Max-Age' => null, 'Expires' => null, 'Secure' => \false, 'Discard' => \false, 'HttpOnly' => \false]; /** @var array Cookie data */ private $data; - /** * Create a new SetCookie object from a string * @@ -34,27 +23,23 @@ class SetCookie // Create the default return array $data = self::$defaults; // Explode the cookie string using a series of semicolons - $pieces = array_filter(array_map('trim', explode(';', $cookie))); + $pieces = \array_filter(\array_map('trim', \explode(';', $cookie))); // The name of the cookie (first kvp) must exist and include an equal sign. - if (empty($pieces[0]) || !strpos($pieces[0], '=')) { + if (empty($pieces[0]) || !\strpos($pieces[0], '=')) { return new self($data); } - // Add the cookie pieces into the parsed data array foreach ($pieces as $part) { - $cookieParts = explode('=', $part, 2); - $key = trim($cookieParts[0]); - $value = isset($cookieParts[1]) - ? trim($cookieParts[1], " \n\r\t\0\x0B") - : true; - + $cookieParts = \explode('=', $part, 2); + $key = \trim($cookieParts[0]); + $value = isset($cookieParts[1]) ? \trim($cookieParts[1], " \n\r\t\0\v") : \true; // Only check for non-cookies when cookies have been found if (empty($data['Name'])) { $data['Name'] = $key; $data['Value'] = $value; } else { - foreach (array_keys(self::$defaults) as $search) { - if (!strcasecmp($search, $key)) { + foreach (\array_keys(self::$defaults) as $search) { + if (!\strcasecmp($search, $key)) { $data[$search] = $value; continue 2; } @@ -62,46 +47,40 @@ class SetCookie $data[$key] = $value; } } - return new self($data); } - /** * @param array $data Array of cookie data provided by a Cookie parser */ public function __construct(array $data = []) { - $this->data = array_replace(self::$defaults, $data); + $this->data = \array_replace(self::$defaults, $data); // Extract the Expires value and turn it into a UNIX timestamp if needed if (!$this->getExpires() && $this->getMaxAge()) { // Calculate the Expires date - $this->setExpires(time() + $this->getMaxAge()); - } elseif ($this->getExpires() && !is_numeric($this->getExpires())) { + $this->setExpires(\time() + $this->getMaxAge()); + } elseif ($this->getExpires() && !\is_numeric($this->getExpires())) { $this->setExpires($this->getExpires()); } } - public function __toString() { $str = $this->data['Name'] . '=' . $this->data['Value'] . '; '; foreach ($this->data as $k => $v) { - if ($k !== 'Name' && $k !== 'Value' && $v !== null && $v !== false) { + if ($k !== 'Name' && $k !== 'Value' && $v !== null && $v !== \false) { if ($k === 'Expires') { - $str .= 'Expires=' . gmdate('D, d M Y H:i:s \G\M\T', $v) . '; '; + $str .= 'Expires=' . \gmdate('D, d M Y H:i:s \\G\\M\\T', $v) . '; '; } else { - $str .= ($v === true ? $k : "{$k}={$v}") . '; '; + $str .= ($v === \true ? $k : "{$k}={$v}") . '; '; } } } - - return rtrim($str, '; '); + return \rtrim($str, '; '); } - public function toArray() { return $this->data; } - /** * Get the cookie name * @@ -111,7 +90,6 @@ class SetCookie { return $this->data['Name']; } - /** * Set the cookie name * @@ -121,7 +99,6 @@ class SetCookie { $this->data['Name'] = $name; } - /** * Get the cookie value * @@ -131,7 +108,6 @@ class SetCookie { return $this->data['Value']; } - /** * Set the cookie value * @@ -141,7 +117,6 @@ class SetCookie { $this->data['Value'] = $value; } - /** * Get the domain * @@ -151,7 +126,6 @@ class SetCookie { return $this->data['Domain']; } - /** * Set the domain of the cookie * @@ -161,7 +135,6 @@ class SetCookie { $this->data['Domain'] = $domain; } - /** * Get the path * @@ -171,7 +144,6 @@ class SetCookie { return $this->data['Path']; } - /** * Set the path of the cookie * @@ -181,7 +153,6 @@ class SetCookie { $this->data['Path'] = $path; } - /** * Maximum lifetime of the cookie in seconds * @@ -191,7 +162,6 @@ class SetCookie { return $this->data['Max-Age']; } - /** * Set the max-age of the cookie * @@ -201,7 +171,6 @@ class SetCookie { $this->data['Max-Age'] = $maxAge; } - /** * The UNIX timestamp when the cookie Expires * @@ -211,7 +180,6 @@ class SetCookie { return $this->data['Expires']; } - /** * Set the unix timestamp for which the cookie will expire * @@ -219,11 +187,8 @@ class SetCookie */ public function setExpires($timestamp) { - $this->data['Expires'] = is_numeric($timestamp) - ? (int) $timestamp - : strtotime($timestamp); + $this->data['Expires'] = \is_numeric($timestamp) ? (int) $timestamp : \strtotime($timestamp); } - /** * Get whether or not this is a secure cookie * @@ -233,7 +198,6 @@ class SetCookie { return $this->data['Secure']; } - /** * Set whether or not the cookie is secure * @@ -243,7 +207,6 @@ class SetCookie { $this->data['Secure'] = $secure; } - /** * Get whether or not this is a session cookie * @@ -253,7 +216,6 @@ class SetCookie { return $this->data['Discard']; } - /** * Set whether or not this is a session cookie * @@ -263,7 +225,6 @@ class SetCookie { $this->data['Discard'] = $discard; } - /** * Get whether or not this is an HTTP only cookie * @@ -273,7 +234,6 @@ class SetCookie { return $this->data['HttpOnly']; } - /** * Set whether or not this is an HTTP only cookie * @@ -283,7 +243,6 @@ class SetCookie { $this->data['HttpOnly'] = $httpOnly; } - /** * Check if the cookie matches a path value. * @@ -304,26 +263,21 @@ class SetCookie public function matchesPath($requestPath) { $cookiePath = $this->getPath(); - // Match on exact matches or when path is the default empty "/" if ($cookiePath === '/' || $cookiePath == $requestPath) { - return true; + return \true; } - // Ensure that the cookie-path is a prefix of the request path. - if (0 !== strpos($requestPath, $cookiePath)) { - return false; + if (0 !== \strpos($requestPath, $cookiePath)) { + return \false; } - // Match if the last character of the cookie-path is "/" - if (substr($cookiePath, -1, 1) === '/') { - return true; + if (\substr($cookiePath, -1, 1) === '/') { + return \true; } - // Match if the first character not included in cookie path is "/" - return substr($requestPath, strlen($cookiePath), 1) === '/'; + return \substr($requestPath, \strlen($cookiePath), 1) === '/'; } - /** * Check if the cookie matches a domain value * @@ -335,22 +289,18 @@ class SetCookie { // Remove the leading '.' as per spec in RFC 6265. // http://tools.ietf.org/html/rfc6265#section-5.2.3 - $cookieDomain = ltrim($this->getDomain(), '.'); - + $cookieDomain = \ltrim($this->getDomain(), '.'); // Domain not set or exact match. - if (!$cookieDomain || !strcasecmp($domain, $cookieDomain)) { - return true; + if (!$cookieDomain || !\strcasecmp($domain, $cookieDomain)) { + return \true; } - // Matching the subdomain according to RFC 6265. // http://tools.ietf.org/html/rfc6265#section-5.1.3 - if (filter_var($domain, FILTER_VALIDATE_IP)) { - return false; + if (\filter_var($domain, \FILTER_VALIDATE_IP)) { + return \false; } - - return (bool) preg_match('/\.' . preg_quote($cookieDomain, '/') . '$/', $domain); + return (bool) \preg_match('/\\.' . \preg_quote($cookieDomain, '/') . '$/', $domain); } - /** * Check if the cookie is expired * @@ -358,9 +308,8 @@ class SetCookie */ public function isExpired() { - return $this->getExpires() !== null && time() > $this->getExpires(); + return $this->getExpires() !== null && \time() > $this->getExpires(); } - /** * Check if the cookie is valid according to RFC 6265 * @@ -370,34 +319,25 @@ class SetCookie { // Names must not be empty, but can be 0 $name = $this->getName(); - if (empty($name) && !is_numeric($name)) { + if (empty($name) && !\is_numeric($name)) { return 'The cookie name must not be empty'; } - // Check if any of the invalid characters are present in the cookie name - if (preg_match( - '/[\x00-\x20\x22\x28-\x29\x2c\x2f\x3a-\x40\x5c\x7b\x7d\x7f]/', - $name - )) { - return 'Cookie name must not contain invalid characters: ASCII ' - . 'Control characters (0-31;127), space, tab and the ' - . 'following characters: ()<>@,;:\"/?={}'; + if (\preg_match('/[\\x00-\\x20\\x22\\x28-\\x29\\x2c\\x2f\\x3a-\\x40\\x5c\\x7b\\x7d\\x7f]/', $name)) { + return 'Cookie name must not contain invalid characters: ASCII ' . 'Control characters (0-31;127), space, tab and the ' . 'following characters: ()<>@,;:\\"/?={}'; } - // Value must not be empty, but can be 0 $value = $this->getValue(); - if (empty($value) && !is_numeric($value)) { + if (empty($value) && !\is_numeric($value)) { return 'The cookie value must not be empty'; } - // Domains must not be empty, but can be 0 // A "0" is not a valid internet domain, but may be used as server name // in a private network. $domain = $this->getDomain(); - if (empty($domain) && !is_numeric($domain)) { + if (empty($domain) && !\is_numeric($domain)) { return 'The cookie domain must not be empty'; } - - return true; + return \true; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Exception/BadResponseException.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Exception/BadResponseException.php new file mode 100644 index 0000000..2875027 --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Exception/BadResponseException.php @@ -0,0 +1,19 @@ +getStatusCode() - : 0; + $code = $response && !$response instanceof \WPMailSMTP\Vendor\GuzzleHttp\Promise\PromiseInterface ? $response->getStatusCode() : 0; parent::__construct($message, $code, $previous); $this->request = $request; $this->response = $response; $this->handlerContext = $handlerContext; } - /** * Wrap non-RequestExceptions with a RequestException * @@ -45,13 +34,10 @@ class RequestException extends TransferException * * @return RequestException */ - public static function wrapException(RequestInterface $request, \Exception $e) + public static function wrapException(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, \Exception $e) { - return $e instanceof RequestException - ? $e - : new RequestException($e->getMessage(), $request, null, $e); + return $e instanceof \WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException ? $e : new \WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException($e->getMessage(), $request, null, $e); } - /** * Factory method to create a new exception with a normalized error message * @@ -62,57 +48,33 @@ class RequestException extends TransferException * * @return self */ - public static function create( - RequestInterface $request, - ResponseInterface $response = null, - \Exception $previous = null, - array $ctx = [] - ) { + public static function create(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, \WPMailSMTP\Vendor\Psr\Http\Message\ResponseInterface $response = null, \Exception $previous = null, array $ctx = []) + { if (!$response) { - return new self( - 'Error completing request', - $request, - null, - $previous, - $ctx - ); + return new self('Error completing request', $request, null, $previous, $ctx); } - - $level = (int) floor($response->getStatusCode() / 100); + $level = (int) \floor($response->getStatusCode() / 100); if ($level === 4) { $label = 'Client error'; - $className = ClientException::class; + $className = \WPMailSMTP\Vendor\GuzzleHttp\Exception\ClientException::class; } elseif ($level === 5) { $label = 'Server error'; - $className = ServerException::class; + $className = \WPMailSMTP\Vendor\GuzzleHttp\Exception\ServerException::class; } else { $label = 'Unsuccessful request'; $className = __CLASS__; } - $uri = $request->getUri(); $uri = static::obfuscateUri($uri); - // Client Error: `GET /` resulted in a `404 Not Found` response: // ... (truncated) - $message = sprintf( - '%s: `%s %s` resulted in a `%s %s` response', - $label, - $request->getMethod(), - $uri, - $response->getStatusCode(), - $response->getReasonPhrase() - ); - + $message = \sprintf('%s: `%s %s` resulted in a `%s %s` response', $label, $request->getMethod(), $uri, $response->getStatusCode(), $response->getReasonPhrase()); $summary = static::getResponseBodySummary($response); - if ($summary !== null) { $message .= ":\n{$summary}\n"; } - return new $className($message, $request, $response, $previous, $ctx); } - /** * Get a short summary of the response * @@ -122,11 +84,10 @@ class RequestException extends TransferException * * @return string|null */ - public static function getResponseBodySummary(ResponseInterface $response) + public static function getResponseBodySummary(\WPMailSMTP\Vendor\Psr\Http\Message\ResponseInterface $response) { - return \GuzzleHttp\Psr7\get_message_body_summary($response); + return \WPMailSMTP\Vendor\GuzzleHttp\Psr7\get_message_body_summary($response); } - /** * Obfuscates URI if there is a username and a password present * @@ -134,17 +95,14 @@ class RequestException extends TransferException * * @return UriInterface */ - private static function obfuscateUri(UriInterface $uri) + private static function obfuscateUri(\WPMailSMTP\Vendor\Psr\Http\Message\UriInterface $uri) { $userInfo = $uri->getUserInfo(); - - if (false !== ($pos = strpos($userInfo, ':'))) { - return $uri->withUserInfo(substr($userInfo, 0, $pos), '***'); + if (\false !== ($pos = \strpos($userInfo, ':'))) { + return $uri->withUserInfo(\substr($userInfo, 0, $pos), '***'); } - return $uri; } - /** * Get the request that caused the exception * @@ -154,7 +112,6 @@ class RequestException extends TransferException { return $this->request; } - /** * Get the associated response * @@ -164,7 +121,6 @@ class RequestException extends TransferException { return $this->response; } - /** * Check if a response was received * @@ -174,7 +130,6 @@ class RequestException extends TransferException { return $this->response !== null; } - /** * Get contextual information about the error from the underlying handler. * diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Exception/SeekException.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Exception/SeekException.php similarity index 52% rename from wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Exception/SeekException.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Exception/SeekException.php index a77c289..dfdbdfe 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Exception/SeekException.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Exception/SeekException.php @@ -1,22 +1,20 @@ stream = $stream; $msg = $msg ?: 'Could not seek the stream to position ' . $pos; parent::__construct($msg); } - /** * @return StreamInterface */ diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Exception/ServerException.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Exception/ServerException.php new file mode 100644 index 0000000..0613939 --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Exception/ServerException.php @@ -0,0 +1,10 @@ +maxHandles = $maxHandles; + } + public function create(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, array $options) + { + if (isset($options['curl']['body_as_string'])) { + $options['_body_as_string'] = $options['curl']['body_as_string']; + unset($options['curl']['body_as_string']); + } + $easy = new \WPMailSMTP\Vendor\GuzzleHttp\Handler\EasyHandle(); + $easy->request = $request; + $easy->options = $options; + $conf = $this->getDefaultConf($easy); + $this->applyMethod($easy, $conf); + $this->applyHandlerOptions($easy, $conf); + $this->applyHeaders($easy, $conf); + unset($conf['_headers']); + // Add handler options from the request configuration options + if (isset($options['curl'])) { + $conf = \array_replace($conf, $options['curl']); + } + $conf[\CURLOPT_HEADERFUNCTION] = $this->createHeaderFn($easy); + $easy->handle = $this->handles ? \array_pop($this->handles) : \curl_init(); + \curl_setopt_array($easy->handle, $conf); + return $easy; + } + public function release(\WPMailSMTP\Vendor\GuzzleHttp\Handler\EasyHandle $easy) + { + $resource = $easy->handle; + unset($easy->handle); + if (\count($this->handles) >= $this->maxHandles) { + \curl_close($resource); + } else { + // Remove all callback functions as they can hold onto references + // and are not cleaned up by curl_reset. Using curl_setopt_array + // does not work for some reason, so removing each one + // individually. + \curl_setopt($resource, \CURLOPT_HEADERFUNCTION, null); + \curl_setopt($resource, \CURLOPT_READFUNCTION, null); + \curl_setopt($resource, \CURLOPT_WRITEFUNCTION, null); + \curl_setopt($resource, \CURLOPT_PROGRESSFUNCTION, null); + \curl_reset($resource); + $this->handles[] = $resource; + } + } + /** + * Completes a cURL transaction, either returning a response promise or a + * rejected promise. + * + * @param callable $handler + * @param EasyHandle $easy + * @param CurlFactoryInterface $factory Dictates how the handle is released + * + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public static function finish(callable $handler, \WPMailSMTP\Vendor\GuzzleHttp\Handler\EasyHandle $easy, \WPMailSMTP\Vendor\GuzzleHttp\Handler\CurlFactoryInterface $factory) + { + if (isset($easy->options['on_stats'])) { + self::invokeStats($easy); + } + if (!$easy->response || $easy->errno) { + return self::finishError($handler, $easy, $factory); + } + // Return the response if it is present and there is no error. + $factory->release($easy); + // Rewind the body of the response if possible. + $body = $easy->response->getBody(); + if ($body->isSeekable()) { + $body->rewind(); + } + return new \WPMailSMTP\Vendor\GuzzleHttp\Promise\FulfilledPromise($easy->response); + } + private static function invokeStats(\WPMailSMTP\Vendor\GuzzleHttp\Handler\EasyHandle $easy) + { + $curlStats = \curl_getinfo($easy->handle); + $curlStats['appconnect_time'] = \curl_getinfo($easy->handle, \CURLINFO_APPCONNECT_TIME); + $stats = new \WPMailSMTP\Vendor\GuzzleHttp\TransferStats($easy->request, $easy->response, $curlStats['total_time'], $easy->errno, $curlStats); + \call_user_func($easy->options['on_stats'], $stats); + } + private static function finishError(callable $handler, \WPMailSMTP\Vendor\GuzzleHttp\Handler\EasyHandle $easy, \WPMailSMTP\Vendor\GuzzleHttp\Handler\CurlFactoryInterface $factory) + { + // Get error information and release the handle to the factory. + $ctx = ['errno' => $easy->errno, 'error' => \curl_error($easy->handle), 'appconnect_time' => \curl_getinfo($easy->handle, \CURLINFO_APPCONNECT_TIME)] + \curl_getinfo($easy->handle); + $ctx[self::CURL_VERSION_STR] = \curl_version()['version']; + $factory->release($easy); + // Retry when nothing is present or when curl failed to rewind. + if (empty($easy->options['_err_message']) && (!$easy->errno || $easy->errno == 65)) { + return self::retryFailedRewind($handler, $easy, $ctx); + } + return self::createRejection($easy, $ctx); + } + private static function createRejection(\WPMailSMTP\Vendor\GuzzleHttp\Handler\EasyHandle $easy, array $ctx) + { + static $connectionErrors = [\CURLE_OPERATION_TIMEOUTED => \true, \CURLE_COULDNT_RESOLVE_HOST => \true, \CURLE_COULDNT_CONNECT => \true, \CURLE_SSL_CONNECT_ERROR => \true, \CURLE_GOT_NOTHING => \true]; + // If an exception was encountered during the onHeaders event, then + // return a rejected promise that wraps that exception. + if ($easy->onHeadersException) { + return \WPMailSMTP\Vendor\GuzzleHttp\Promise\rejection_for(new \WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException('An error was encountered during the on_headers event', $easy->request, $easy->response, $easy->onHeadersException, $ctx)); + } + if (\version_compare($ctx[self::CURL_VERSION_STR], self::LOW_CURL_VERSION_NUMBER)) { + $message = \sprintf('cURL error %s: %s (%s)', $ctx['errno'], $ctx['error'], 'see https://curl.haxx.se/libcurl/c/libcurl-errors.html'); + } else { + $message = \sprintf('cURL error %s: %s (%s) for %s', $ctx['errno'], $ctx['error'], 'see https://curl.haxx.se/libcurl/c/libcurl-errors.html', $easy->request->getUri()); + } + // Create a connection exception if it was a specific error code. + $error = isset($connectionErrors[$easy->errno]) ? new \WPMailSMTP\Vendor\GuzzleHttp\Exception\ConnectException($message, $easy->request, null, $ctx) : new \WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException($message, $easy->request, $easy->response, null, $ctx); + return \WPMailSMTP\Vendor\GuzzleHttp\Promise\rejection_for($error); + } + private function getDefaultConf(\WPMailSMTP\Vendor\GuzzleHttp\Handler\EasyHandle $easy) + { + $conf = ['_headers' => $easy->request->getHeaders(), \CURLOPT_CUSTOMREQUEST => $easy->request->getMethod(), \CURLOPT_URL => (string) $easy->request->getUri()->withFragment(''), \CURLOPT_RETURNTRANSFER => \false, \CURLOPT_HEADER => \false, \CURLOPT_CONNECTTIMEOUT => 150]; + if (\defined('CURLOPT_PROTOCOLS')) { + $conf[\CURLOPT_PROTOCOLS] = \CURLPROTO_HTTP | \CURLPROTO_HTTPS; + } + $version = $easy->request->getProtocolVersion(); + if ($version == 1.1) { + $conf[\CURLOPT_HTTP_VERSION] = \CURL_HTTP_VERSION_1_1; + } elseif ($version == 2.0) { + $conf[\CURLOPT_HTTP_VERSION] = \CURL_HTTP_VERSION_2_0; + } else { + $conf[\CURLOPT_HTTP_VERSION] = \CURL_HTTP_VERSION_1_0; + } + return $conf; + } + private function applyMethod(\WPMailSMTP\Vendor\GuzzleHttp\Handler\EasyHandle $easy, array &$conf) + { + $body = $easy->request->getBody(); + $size = $body->getSize(); + if ($size === null || $size > 0) { + $this->applyBody($easy->request, $easy->options, $conf); + return; + } + $method = $easy->request->getMethod(); + if ($method === 'PUT' || $method === 'POST') { + // See http://tools.ietf.org/html/rfc7230#section-3.3.2 + if (!$easy->request->hasHeader('Content-Length')) { + $conf[\CURLOPT_HTTPHEADER][] = 'Content-Length: 0'; + } + } elseif ($method === 'HEAD') { + $conf[\CURLOPT_NOBODY] = \true; + unset($conf[\CURLOPT_WRITEFUNCTION], $conf[\CURLOPT_READFUNCTION], $conf[\CURLOPT_FILE], $conf[\CURLOPT_INFILE]); + } + } + private function applyBody(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, array $options, array &$conf) + { + $size = $request->hasHeader('Content-Length') ? (int) $request->getHeaderLine('Content-Length') : null; + // Send the body as a string if the size is less than 1MB OR if the + // [curl][body_as_string] request value is set. + if ($size !== null && $size < 1000000 || !empty($options['_body_as_string'])) { + $conf[\CURLOPT_POSTFIELDS] = (string) $request->getBody(); + // Don't duplicate the Content-Length header + $this->removeHeader('Content-Length', $conf); + $this->removeHeader('Transfer-Encoding', $conf); + } else { + $conf[\CURLOPT_UPLOAD] = \true; + if ($size !== null) { + $conf[\CURLOPT_INFILESIZE] = $size; + $this->removeHeader('Content-Length', $conf); + } + $body = $request->getBody(); + if ($body->isSeekable()) { + $body->rewind(); + } + $conf[\CURLOPT_READFUNCTION] = function ($ch, $fd, $length) use($body) { + return $body->read($length); + }; + } + // If the Expect header is not present, prevent curl from adding it + if (!$request->hasHeader('Expect')) { + $conf[\CURLOPT_HTTPHEADER][] = 'Expect:'; + } + // cURL sometimes adds a content-type by default. Prevent this. + if (!$request->hasHeader('Content-Type')) { + $conf[\CURLOPT_HTTPHEADER][] = 'Content-Type:'; + } + } + private function applyHeaders(\WPMailSMTP\Vendor\GuzzleHttp\Handler\EasyHandle $easy, array &$conf) + { + foreach ($conf['_headers'] as $name => $values) { + foreach ($values as $value) { + $value = (string) $value; + if ($value === '') { + // cURL requires a special format for empty headers. + // See https://github.com/guzzle/guzzle/issues/1882 for more details. + $conf[\CURLOPT_HTTPHEADER][] = "{$name};"; + } else { + $conf[\CURLOPT_HTTPHEADER][] = "{$name}: {$value}"; + } + } + } + // Remove the Accept header if one was not set + if (!$easy->request->hasHeader('Accept')) { + $conf[\CURLOPT_HTTPHEADER][] = 'Accept:'; + } + } + /** + * Remove a header from the options array. + * + * @param string $name Case-insensitive header to remove + * @param array $options Array of options to modify + */ + private function removeHeader($name, array &$options) + { + foreach (\array_keys($options['_headers']) as $key) { + if (!\strcasecmp($key, $name)) { + unset($options['_headers'][$key]); + return; + } + } + } + private function applyHandlerOptions(\WPMailSMTP\Vendor\GuzzleHttp\Handler\EasyHandle $easy, array &$conf) + { + $options = $easy->options; + if (isset($options['verify'])) { + if ($options['verify'] === \false) { + unset($conf[\CURLOPT_CAINFO]); + $conf[\CURLOPT_SSL_VERIFYHOST] = 0; + $conf[\CURLOPT_SSL_VERIFYPEER] = \false; + } else { + $conf[\CURLOPT_SSL_VERIFYHOST] = 2; + $conf[\CURLOPT_SSL_VERIFYPEER] = \true; + if (\is_string($options['verify'])) { + // Throw an error if the file/folder/link path is not valid or doesn't exist. + if (!\file_exists($options['verify'])) { + throw new \InvalidArgumentException("SSL CA bundle not found: {$options['verify']}"); + } + // If it's a directory or a link to a directory use CURLOPT_CAPATH. + // If not, it's probably a file, or a link to a file, so use CURLOPT_CAINFO. + if (\is_dir($options['verify']) || \is_link($options['verify']) && \is_dir(\readlink($options['verify']))) { + $conf[\CURLOPT_CAPATH] = $options['verify']; + } else { + $conf[\CURLOPT_CAINFO] = $options['verify']; + } + } + } + } + if (!empty($options['decode_content'])) { + $accept = $easy->request->getHeaderLine('Accept-Encoding'); + if ($accept) { + $conf[\CURLOPT_ENCODING] = $accept; + } else { + $conf[\CURLOPT_ENCODING] = ''; + // Don't let curl send the header over the wire + $conf[\CURLOPT_HTTPHEADER][] = 'Accept-Encoding:'; + } + } + if (isset($options['sink'])) { + $sink = $options['sink']; + if (!\is_string($sink)) { + $sink = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\stream_for($sink); + } elseif (!\is_dir(\dirname($sink))) { + // Ensure that the directory exists before failing in curl. + throw new \RuntimeException(\sprintf('Directory %s does not exist for sink value of %s', \dirname($sink), $sink)); + } else { + $sink = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\LazyOpenStream($sink, 'w+'); + } + $easy->sink = $sink; + $conf[\CURLOPT_WRITEFUNCTION] = function ($ch, $write) use($sink) { + return $sink->write($write); + }; + } else { + // Use a default temp stream if no sink was set. + $conf[\CURLOPT_FILE] = \fopen('php://temp', 'w+'); + $easy->sink = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\stream_for($conf[\CURLOPT_FILE]); + } + $timeoutRequiresNoSignal = \false; + if (isset($options['timeout'])) { + $timeoutRequiresNoSignal |= $options['timeout'] < 1; + $conf[\CURLOPT_TIMEOUT_MS] = $options['timeout'] * 1000; + } + // CURL default value is CURL_IPRESOLVE_WHATEVER + if (isset($options['force_ip_resolve'])) { + if ('v4' === $options['force_ip_resolve']) { + $conf[\CURLOPT_IPRESOLVE] = \CURL_IPRESOLVE_V4; + } elseif ('v6' === $options['force_ip_resolve']) { + $conf[\CURLOPT_IPRESOLVE] = \CURL_IPRESOLVE_V6; + } + } + if (isset($options['connect_timeout'])) { + $timeoutRequiresNoSignal |= $options['connect_timeout'] < 1; + $conf[\CURLOPT_CONNECTTIMEOUT_MS] = $options['connect_timeout'] * 1000; + } + if ($timeoutRequiresNoSignal && \strtoupper(\substr(\PHP_OS, 0, 3)) !== 'WIN') { + $conf[\CURLOPT_NOSIGNAL] = \true; + } + if (isset($options['proxy'])) { + if (!\is_array($options['proxy'])) { + $conf[\CURLOPT_PROXY] = $options['proxy']; + } else { + $scheme = $easy->request->getUri()->getScheme(); + if (isset($options['proxy'][$scheme])) { + $host = $easy->request->getUri()->getHost(); + if (!isset($options['proxy']['no']) || !\WPMailSMTP\Vendor\GuzzleHttp\is_host_in_noproxy($host, $options['proxy']['no'])) { + $conf[\CURLOPT_PROXY] = $options['proxy'][$scheme]; + } + } + } + } + if (isset($options['cert'])) { + $cert = $options['cert']; + if (\is_array($cert)) { + $conf[\CURLOPT_SSLCERTPASSWD] = $cert[1]; + $cert = $cert[0]; + } + if (!\file_exists($cert)) { + throw new \InvalidArgumentException("SSL certificate not found: {$cert}"); + } + $conf[\CURLOPT_SSLCERT] = $cert; + } + if (isset($options['ssl_key'])) { + if (\is_array($options['ssl_key'])) { + if (\count($options['ssl_key']) === 2) { + list($sslKey, $conf[\CURLOPT_SSLKEYPASSWD]) = $options['ssl_key']; + } else { + list($sslKey) = $options['ssl_key']; + } + } + $sslKey = isset($sslKey) ? $sslKey : $options['ssl_key']; + if (!\file_exists($sslKey)) { + throw new \InvalidArgumentException("SSL private key not found: {$sslKey}"); + } + $conf[\CURLOPT_SSLKEY] = $sslKey; + } + if (isset($options['progress'])) { + $progress = $options['progress']; + if (!\is_callable($progress)) { + throw new \InvalidArgumentException('progress client option must be callable'); + } + $conf[\CURLOPT_NOPROGRESS] = \false; + $conf[\CURLOPT_PROGRESSFUNCTION] = function () use($progress) { + $args = \func_get_args(); + // PHP 5.5 pushed the handle onto the start of the args + if (\is_resource($args[0])) { + \array_shift($args); + } + \call_user_func_array($progress, $args); + }; + } + if (!empty($options['debug'])) { + $conf[\CURLOPT_STDERR] = \WPMailSMTP\Vendor\GuzzleHttp\debug_resource($options['debug']); + $conf[\CURLOPT_VERBOSE] = \true; + } + } + /** + * This function ensures that a response was set on a transaction. If one + * was not set, then the request is retried if possible. This error + * typically means you are sending a payload, curl encountered a + * "Connection died, retrying a fresh connect" error, tried to rewind the + * stream, and then encountered a "necessary data rewind wasn't possible" + * error, causing the request to be sent through curl_multi_info_read() + * without an error status. + */ + private static function retryFailedRewind(callable $handler, \WPMailSMTP\Vendor\GuzzleHttp\Handler\EasyHandle $easy, array $ctx) + { + try { + // Only rewind if the body has been read from. + $body = $easy->request->getBody(); + if ($body->tell() > 0) { + $body->rewind(); + } + } catch (\RuntimeException $e) { + $ctx['error'] = 'The connection unexpectedly failed without ' . 'providing an error. The request would have been retried, ' . 'but attempting to rewind the request body failed. ' . 'Exception: ' . $e; + return self::createRejection($easy, $ctx); + } + // Retry no more than 3 times before giving up. + if (!isset($easy->options['_curl_retries'])) { + $easy->options['_curl_retries'] = 1; + } elseif ($easy->options['_curl_retries'] == 2) { + $ctx['error'] = 'The cURL request was retried 3 times ' . 'and did not succeed. The most likely reason for the failure ' . 'is that cURL was unable to rewind the body of the request ' . 'and subsequent retries resulted in the same error. Turn on ' . 'the debug option to see what went wrong. See ' . 'https://bugs.php.net/bug.php?id=47204 for more information.'; + return self::createRejection($easy, $ctx); + } else { + $easy->options['_curl_retries']++; + } + return $handler($easy->request, $easy->options); + } + private function createHeaderFn(\WPMailSMTP\Vendor\GuzzleHttp\Handler\EasyHandle $easy) + { + if (isset($easy->options['on_headers'])) { + $onHeaders = $easy->options['on_headers']; + if (!\is_callable($onHeaders)) { + throw new \InvalidArgumentException('on_headers must be callable'); + } + } else { + $onHeaders = null; + } + return function ($ch, $h) use($onHeaders, $easy, &$startingResponse) { + $value = \trim($h); + if ($value === '') { + $startingResponse = \true; + $easy->createResponse(); + if ($onHeaders !== null) { + try { + $onHeaders($easy->response); + } catch (\Exception $e) { + // Associate the exception with the handle and trigger + // a curl header write error by returning 0. + $easy->onHeadersException = $e; + return -1; + } + } + } elseif ($startingResponse) { + $startingResponse = \false; + $easy->headers = [$value]; + } else { + $easy->headers[] = $value; + } + return \strlen($h); + }; + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php similarity index 63% rename from wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php index b0fc236..b250f4f 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php @@ -1,8 +1,8 @@ factory = isset($options['handle_factory']) - ? $options['handle_factory'] - : new CurlFactory(3); + $this->factory = isset($options['handle_factory']) ? $options['handle_factory'] : new \WPMailSMTP\Vendor\GuzzleHttp\Handler\CurlFactory(3); } - - public function __invoke(RequestInterface $request, array $options) + public function __invoke(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, array $options) { if (isset($options['delay'])) { - usleep($options['delay'] * 1000); + \usleep($options['delay'] * 1000); } - $easy = $this->factory->create($request, $options); - curl_exec($easy->handle); - $easy->errno = curl_errno($easy->handle); - - return CurlFactory::finish($this, $easy, $this->factory); + \curl_exec($easy->handle); + $easy->errno = \curl_errno($easy->handle); + return \WPMailSMTP\Vendor\GuzzleHttp\Handler\CurlFactory::finish($this, $easy, $this->factory); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php similarity index 66% rename from wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php index 564c95f..72c4507 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php @@ -1,11 +1,11 @@ factory = isset($options['handle_factory']) - ? $options['handle_factory'] : new CurlFactory(50); - + $this->factory = isset($options['handle_factory']) ? $options['handle_factory'] : new \WPMailSMTP\Vendor\GuzzleHttp\Handler\CurlFactory(50); if (isset($options['select_timeout'])) { $this->selectTimeout = $options['select_timeout']; - } elseif ($selectTimeout = getenv('GUZZLE_CURL_SELECT_TIMEOUT')) { + } elseif ($selectTimeout = \getenv('GUZZLE_CURL_SELECT_TIMEOUT')) { $this->selectTimeout = $selectTimeout; } else { $this->selectTimeout = 1; } - $this->options = isset($options['options']) ? $options['options'] : []; } - public function __get($name) { if ($name === '_mh') { - $this->_mh = curl_multi_init(); - + $this->_mh = \curl_multi_init(); foreach ($this->options as $option => $value) { // A warning is raised in case of a wrong option. - curl_multi_setopt($this->_mh, $option, $value); + \curl_multi_setopt($this->_mh, $option, $value); } - // Further calls to _mh will return the value directly, without entering the // __get() method at all. return $this->_mh; } - throw new \BadMethodCallException(); } - public function __destruct() { if (isset($this->_mh)) { - curl_multi_close($this->_mh); + \curl_multi_close($this->_mh); unset($this->_mh); } } - - public function __invoke(RequestInterface $request, array $options) + public function __invoke(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, array $options) { $easy = $this->factory->create($request, $options); $id = (int) $easy->handle; - - $promise = new Promise( - [$this, 'execute'], - function () use ($id) { - return $this->cancel($id); - } - ); - + $promise = new \WPMailSMTP\Vendor\GuzzleHttp\Promise\Promise([$this, 'execute'], function () use($id) { + return $this->cancel($id); + }); $this->addRequest(['easy' => $easy, 'deferred' => $promise]); - return $promise; } - /** * Ticks the curl event loop. */ @@ -102,62 +85,50 @@ class CurlMultiHandler { // Add any delayed handles if needed. if ($this->delays) { - $currentTime = Utils::currentTime(); + $currentTime = \WPMailSMTP\Vendor\GuzzleHttp\Utils::currentTime(); foreach ($this->delays as $id => $delay) { if ($currentTime >= $delay) { unset($this->delays[$id]); - curl_multi_add_handle( - $this->_mh, - $this->handles[$id]['easy']->handle - ); + \curl_multi_add_handle($this->_mh, $this->handles[$id]['easy']->handle); } } } - // Step through the task queue which may add additional requests. - P\queue()->run(); - - if ($this->active && - curl_multi_select($this->_mh, $this->selectTimeout) === -1 - ) { + \WPMailSMTP\Vendor\GuzzleHttp\Promise\queue()->run(); + if ($this->active && \curl_multi_select($this->_mh, $this->selectTimeout) === -1) { // Perform a usleep if a select returns -1. // See: https://bugs.php.net/bug.php?id=61141 - usleep(250); + \usleep(250); + } + while (\curl_multi_exec($this->_mh, $this->active) === \CURLM_CALL_MULTI_PERFORM) { } - - while (curl_multi_exec($this->_mh, $this->active) === CURLM_CALL_MULTI_PERFORM); - $this->processMessages(); } - /** * Runs until all outstanding connections have completed. */ public function execute() { - $queue = P\queue(); - + $queue = \WPMailSMTP\Vendor\GuzzleHttp\Promise\queue(); while ($this->handles || !$queue->isEmpty()) { // If there are no transfers, then sleep for the next delay if (!$this->active && $this->delays) { - usleep($this->timeToNext()); + \usleep($this->timeToNext()); } $this->tick(); } } - private function addRequest(array $entry) { $easy = $entry['easy']; $id = (int) $easy->handle; $this->handles[$id] = $entry; if (empty($easy->options['delay'])) { - curl_multi_add_handle($this->_mh, $easy->handle); + \curl_multi_add_handle($this->_mh, $easy->handle); } else { - $this->delays[$id] = Utils::currentTime() + ($easy->options['delay'] / 1000); + $this->delays[$id] = \WPMailSMTP\Vendor\GuzzleHttp\Utils::currentTime() + $easy->options['delay'] / 1000; } } - /** * Cancels a handle from sending and removes references to it. * @@ -169,51 +140,38 @@ class CurlMultiHandler { // Cannot cancel if it has been processed. if (!isset($this->handles[$id])) { - return false; + return \false; } - $handle = $this->handles[$id]['easy']->handle; unset($this->delays[$id], $this->handles[$id]); - curl_multi_remove_handle($this->_mh, $handle); - curl_close($handle); - - return true; + \curl_multi_remove_handle($this->_mh, $handle); + \curl_close($handle); + return \true; } - private function processMessages() { - while ($done = curl_multi_info_read($this->_mh)) { + while ($done = \curl_multi_info_read($this->_mh)) { $id = (int) $done['handle']; - curl_multi_remove_handle($this->_mh, $done['handle']); - + \curl_multi_remove_handle($this->_mh, $done['handle']); if (!isset($this->handles[$id])) { // Probably was cancelled. continue; } - $entry = $this->handles[$id]; unset($this->handles[$id], $this->delays[$id]); $entry['easy']->errno = $done['result']; - $entry['deferred']->resolve( - CurlFactory::finish( - $this, - $entry['easy'], - $this->factory - ) - ); + $entry['deferred']->resolve(\WPMailSMTP\Vendor\GuzzleHttp\Handler\CurlFactory::finish($this, $entry['easy'], $this->factory)); } } - private function timeToNext() { - $currentTime = Utils::currentTime(); - $nextTime = PHP_INT_MAX; + $currentTime = \WPMailSMTP\Vendor\GuzzleHttp\Utils::currentTime(); + $nextTime = \PHP_INT_MAX; foreach ($this->delays as $time) { if ($time < $nextTime) { $nextTime = $time; } } - - return max(0, $nextTime - $currentTime) * 1000000; + return \max(0, $nextTime - $currentTime) * 1000000; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Handler/EasyHandle.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Handler/EasyHandle.php similarity index 60% rename from wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Handler/EasyHandle.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Handler/EasyHandle.php index 7754e91..cd23ea8 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Handler/EasyHandle.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Handler/EasyHandle.php @@ -1,11 +1,11 @@ headers)) { throw new \RuntimeException('No headers have been received'); } - // HTTP-version SP status-code SP reason-phrase - $startLine = explode(' ', array_shift($this->headers), 3); - $headers = \GuzzleHttp\headers_from_lines($this->headers); - $normalizedKeys = \GuzzleHttp\normalize_header_keys($headers); - - if (!empty($this->options['decode_content']) - && isset($normalizedKeys['content-encoding']) - ) { - $headers['x-encoded-content-encoding'] - = $headers[$normalizedKeys['content-encoding']]; + $startLine = \explode(' ', \array_shift($this->headers), 3); + $headers = \WPMailSMTP\Vendor\GuzzleHttp\headers_from_lines($this->headers); + $normalizedKeys = \WPMailSMTP\Vendor\GuzzleHttp\normalize_header_keys($headers); + if (!empty($this->options['decode_content']) && isset($normalizedKeys['content-encoding'])) { + $headers['x-encoded-content-encoding'] = $headers[$normalizedKeys['content-encoding']]; unset($headers[$normalizedKeys['content-encoding']]); if (isset($normalizedKeys['content-length'])) { - $headers['x-encoded-content-length'] - = $headers[$normalizedKeys['content-length']]; - + $headers['x-encoded-content-length'] = $headers[$normalizedKeys['content-length']]; $bodyLength = (int) $this->sink->getSize(); if ($bodyLength) { $headers[$normalizedKeys['content-length']] = $bodyLength; @@ -71,22 +56,12 @@ final class EasyHandle } } } - // Attach a response to the easy handle with the parsed headers. - $this->response = new Response( - $startLine[1], - $headers, - $this->sink, - substr($startLine[0], 5), - isset($startLine[2]) ? (string) $startLine[2] : null - ); + $this->response = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Response($startLine[1], $headers, $this->sink, \substr($startLine[0], 5), isset($startLine[2]) ? (string) $startLine[2] : null); } - public function __get($name) { - $msg = $name === 'handle' - ? 'The EasyHandle has been released' - : 'Invalid property: ' . $name; + $msg = $name === 'handle' ? 'The EasyHandle has been released' : 'Invalid property: ' . $name; throw new \BadMethodCallException($msg); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Handler/MockHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Handler/MockHandler.php new file mode 100644 index 0000000..c1f6cf5 --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Handler/MockHandler.php @@ -0,0 +1,157 @@ +onFulfilled = $onFulfilled; + $this->onRejected = $onRejected; + if ($queue) { + \call_user_func_array([$this, 'append'], $queue); + } + } + public function __invoke(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, array $options) + { + if (!$this->queue) { + throw new \OutOfBoundsException('Mock queue is empty'); + } + if (isset($options['delay']) && \is_numeric($options['delay'])) { + \usleep($options['delay'] * 1000); + } + $this->lastRequest = $request; + $this->lastOptions = $options; + $response = \array_shift($this->queue); + if (isset($options['on_headers'])) { + if (!\is_callable($options['on_headers'])) { + throw new \InvalidArgumentException('on_headers must be callable'); + } + try { + $options['on_headers']($response); + } catch (\Exception $e) { + $msg = 'An error was encountered during the on_headers event'; + $response = new \WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException($msg, $request, $response, $e); + } + } + if (\is_callable($response)) { + $response = \call_user_func($response, $request, $options); + } + $response = $response instanceof \Exception ? \WPMailSMTP\Vendor\GuzzleHttp\Promise\rejection_for($response) : \WPMailSMTP\Vendor\GuzzleHttp\Promise\promise_for($response); + return $response->then(function ($value) use($request, $options) { + $this->invokeStats($request, $options, $value); + if ($this->onFulfilled) { + \call_user_func($this->onFulfilled, $value); + } + if (isset($options['sink'])) { + $contents = (string) $value->getBody(); + $sink = $options['sink']; + if (\is_resource($sink)) { + \fwrite($sink, $contents); + } elseif (\is_string($sink)) { + \file_put_contents($sink, $contents); + } elseif ($sink instanceof \WPMailSMTP\Vendor\Psr\Http\Message\StreamInterface) { + $sink->write($contents); + } + } + return $value; + }, function ($reason) use($request, $options) { + $this->invokeStats($request, $options, null, $reason); + if ($this->onRejected) { + \call_user_func($this->onRejected, $reason); + } + return \WPMailSMTP\Vendor\GuzzleHttp\Promise\rejection_for($reason); + }); + } + /** + * Adds one or more variadic requests, exceptions, callables, or promises + * to the queue. + */ + public function append() + { + foreach (\func_get_args() as $value) { + if ($value instanceof \WPMailSMTP\Vendor\Psr\Http\Message\ResponseInterface || $value instanceof \Exception || $value instanceof \WPMailSMTP\Vendor\GuzzleHttp\Promise\PromiseInterface || \is_callable($value)) { + $this->queue[] = $value; + } else { + throw new \InvalidArgumentException('Expected a response or ' . 'exception. Found ' . \WPMailSMTP\Vendor\GuzzleHttp\describe_type($value)); + } + } + } + /** + * Get the last received request. + * + * @return RequestInterface + */ + public function getLastRequest() + { + return $this->lastRequest; + } + /** + * Get the last received request options. + * + * @return array + */ + public function getLastOptions() + { + return $this->lastOptions; + } + /** + * Returns the number of remaining items in the queue. + * + * @return int + */ + public function count() + { + return \count($this->queue); + } + public function reset() + { + $this->queue = []; + } + private function invokeStats(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, array $options, \WPMailSMTP\Vendor\Psr\Http\Message\ResponseInterface $response = null, $reason = null) + { + if (isset($options['on_stats'])) { + $transferTime = isset($options['transfer_time']) ? $options['transfer_time'] : 0; + $stats = new \WPMailSMTP\Vendor\GuzzleHttp\TransferStats($request, $response, $transferTime, $reason); + \call_user_func($options['on_stats'], $stats); + } + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Handler/Proxy.php similarity index 53% rename from wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Handler/Proxy.php index f8b00be..8e77f6d 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Handler/Proxy.php @@ -1,9 +1,9 @@ withoutHeader('Expect'); + // Append a content-length header if body size is zero to match + // cURL's behavior. + if (0 === $request->getBody()->getSize()) { + $request = $request->withHeader('Content-Length', '0'); + } + return $this->createResponse($request, $options, $this->createStream($request, $options), $startTime); + } catch (\InvalidArgumentException $e) { + throw $e; + } catch (\Exception $e) { + // Determine if the error was a networking error. + $message = $e->getMessage(); + // This list can probably get more comprehensive. + if (\strpos($message, 'getaddrinfo') || \strpos($message, 'Connection refused') || \strpos($message, "couldn't connect to host") || \strpos($message, "connection attempt failed")) { + $e = new \WPMailSMTP\Vendor\GuzzleHttp\Exception\ConnectException($e->getMessage(), $request, $e); + } + $e = \WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException::wrapException($request, $e); + $this->invokeStats($options, $request, $startTime, null, $e); + return \WPMailSMTP\Vendor\GuzzleHttp\Promise\rejection_for($e); + } + } + private function invokeStats(array $options, \WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, $startTime, \WPMailSMTP\Vendor\Psr\Http\Message\ResponseInterface $response = null, $error = null) + { + if (isset($options['on_stats'])) { + $stats = new \WPMailSMTP\Vendor\GuzzleHttp\TransferStats($request, $response, \WPMailSMTP\Vendor\GuzzleHttp\Utils::currentTime() - $startTime, $error, []); + \call_user_func($options['on_stats'], $stats); + } + } + private function createResponse(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, array $options, $stream, $startTime) + { + $hdrs = $this->lastHeaders; + $this->lastHeaders = []; + $parts = \explode(' ', \array_shift($hdrs), 3); + $ver = \explode('/', $parts[0])[1]; + $status = $parts[1]; + $reason = isset($parts[2]) ? $parts[2] : null; + $headers = \WPMailSMTP\Vendor\GuzzleHttp\headers_from_lines($hdrs); + list($stream, $headers) = $this->checkDecode($options, $headers, $stream); + $stream = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\stream_for($stream); + $sink = $stream; + if (\strcasecmp('HEAD', $request->getMethod())) { + $sink = $this->createSink($stream, $options); + } + $response = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Response($status, $headers, $sink, $ver, $reason); + if (isset($options['on_headers'])) { + try { + $options['on_headers']($response); + } catch (\Exception $e) { + $msg = 'An error was encountered during the on_headers event'; + $ex = new \WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException($msg, $request, $response, $e); + return \WPMailSMTP\Vendor\GuzzleHttp\Promise\rejection_for($ex); + } + } + // Do not drain when the request is a HEAD request because they have + // no body. + if ($sink !== $stream) { + $this->drain($stream, $sink, $response->getHeaderLine('Content-Length')); + } + $this->invokeStats($options, $request, $startTime, $response, null); + return new \WPMailSMTP\Vendor\GuzzleHttp\Promise\FulfilledPromise($response); + } + private function createSink(\WPMailSMTP\Vendor\Psr\Http\Message\StreamInterface $stream, array $options) + { + if (!empty($options['stream'])) { + return $stream; + } + $sink = isset($options['sink']) ? $options['sink'] : \fopen('php://temp', 'r+'); + return \is_string($sink) ? new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\LazyOpenStream($sink, 'w+') : \WPMailSMTP\Vendor\GuzzleHttp\Psr7\stream_for($sink); + } + private function checkDecode(array $options, array $headers, $stream) + { + // Automatically decode responses when instructed. + if (!empty($options['decode_content'])) { + $normalizedKeys = \WPMailSMTP\Vendor\GuzzleHttp\normalize_header_keys($headers); + if (isset($normalizedKeys['content-encoding'])) { + $encoding = $headers[$normalizedKeys['content-encoding']]; + if ($encoding[0] === 'gzip' || $encoding[0] === 'deflate') { + $stream = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\InflateStream(\WPMailSMTP\Vendor\GuzzleHttp\Psr7\stream_for($stream)); + $headers['x-encoded-content-encoding'] = $headers[$normalizedKeys['content-encoding']]; + // Remove content-encoding header + unset($headers[$normalizedKeys['content-encoding']]); + // Fix content-length header + if (isset($normalizedKeys['content-length'])) { + $headers['x-encoded-content-length'] = $headers[$normalizedKeys['content-length']]; + $length = (int) $stream->getSize(); + if ($length === 0) { + unset($headers[$normalizedKeys['content-length']]); + } else { + $headers[$normalizedKeys['content-length']] = [$length]; + } + } + } + } + } + return [$stream, $headers]; + } + /** + * Drains the source stream into the "sink" client option. + * + * @param StreamInterface $source + * @param StreamInterface $sink + * @param string $contentLength Header specifying the amount of + * data to read. + * + * @return StreamInterface + * @throws \RuntimeException when the sink option is invalid. + */ + private function drain(\WPMailSMTP\Vendor\Psr\Http\Message\StreamInterface $source, \WPMailSMTP\Vendor\Psr\Http\Message\StreamInterface $sink, $contentLength) + { + // If a content-length header is provided, then stop reading once + // that number of bytes has been read. This can prevent infinitely + // reading from a stream when dealing with servers that do not honor + // Connection: Close headers. + \WPMailSMTP\Vendor\GuzzleHttp\Psr7\copy_to_stream($source, $sink, \strlen($contentLength) > 0 && (int) $contentLength > 0 ? (int) $contentLength : -1); + $sink->seek(0); + $source->close(); + return $sink; + } + /** + * Create a resource and check to ensure it was created successfully + * + * @param callable $callback Callable that returns stream resource + * + * @return resource + * @throws \RuntimeException on error + */ + private function createResource(callable $callback) + { + $errors = null; + \set_error_handler(function ($_, $msg, $file, $line) use(&$errors) { + $errors[] = ['message' => $msg, 'file' => $file, 'line' => $line]; + return \true; + }); + $resource = $callback(); + \restore_error_handler(); + if (!$resource) { + $message = 'Error creating resource: '; + foreach ($errors as $err) { + foreach ($err as $key => $value) { + $message .= "[{$key}] {$value}" . \PHP_EOL; + } + } + throw new \RuntimeException(\trim($message)); + } + return $resource; + } + private function createStream(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, array $options) + { + static $methods; + if (!$methods) { + $methods = \array_flip(\get_class_methods(__CLASS__)); + } + // HTTP/1.1 streams using the PHP stream wrapper require a + // Connection: close header + if ($request->getProtocolVersion() == '1.1' && !$request->hasHeader('Connection')) { + $request = $request->withHeader('Connection', 'close'); + } + // Ensure SSL is verified by default + if (!isset($options['verify'])) { + $options['verify'] = \true; + } + $params = []; + $context = $this->getDefaultContext($request); + if (isset($options['on_headers']) && !\is_callable($options['on_headers'])) { + throw new \InvalidArgumentException('on_headers must be callable'); + } + if (!empty($options)) { + foreach ($options as $key => $value) { + $method = "add_{$key}"; + if (isset($methods[$method])) { + $this->{$method}($request, $context, $value, $params); + } + } + } + if (isset($options['stream_context'])) { + if (!\is_array($options['stream_context'])) { + throw new \InvalidArgumentException('stream_context must be an array'); + } + $context = \array_replace_recursive($context, $options['stream_context']); + } + // Microsoft NTLM authentication only supported with curl handler + if (isset($options['auth']) && \is_array($options['auth']) && isset($options['auth'][2]) && 'ntlm' == $options['auth'][2]) { + throw new \InvalidArgumentException('Microsoft NTLM authentication only supported with curl handler'); + } + $uri = $this->resolveHost($request, $options); + $context = $this->createResource(function () use($context, $params) { + return \stream_context_create($context, $params); + }); + return $this->createResource(function () use($uri, &$http_response_header, $context, $options) { + $resource = \fopen((string) $uri, 'r', null, $context); + $this->lastHeaders = $http_response_header; + if (isset($options['read_timeout'])) { + $readTimeout = $options['read_timeout']; + $sec = (int) $readTimeout; + $usec = ($readTimeout - $sec) * 100000; + \stream_set_timeout($resource, $sec, $usec); + } + return $resource; + }); + } + private function resolveHost(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, array $options) + { + $uri = $request->getUri(); + if (isset($options['force_ip_resolve']) && !\filter_var($uri->getHost(), \FILTER_VALIDATE_IP)) { + if ('v4' === $options['force_ip_resolve']) { + $records = \dns_get_record($uri->getHost(), \DNS_A); + if (!isset($records[0]['ip'])) { + throw new \WPMailSMTP\Vendor\GuzzleHttp\Exception\ConnectException(\sprintf("Could not resolve IPv4 address for host '%s'", $uri->getHost()), $request); + } + $uri = $uri->withHost($records[0]['ip']); + } elseif ('v6' === $options['force_ip_resolve']) { + $records = \dns_get_record($uri->getHost(), \DNS_AAAA); + if (!isset($records[0]['ipv6'])) { + throw new \WPMailSMTP\Vendor\GuzzleHttp\Exception\ConnectException(\sprintf("Could not resolve IPv6 address for host '%s'", $uri->getHost()), $request); + } + $uri = $uri->withHost('[' . $records[0]['ipv6'] . ']'); + } + } + return $uri; + } + private function getDefaultContext(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request) + { + $headers = ''; + foreach ($request->getHeaders() as $name => $value) { + foreach ($value as $val) { + $headers .= "{$name}: {$val}\r\n"; + } + } + $context = ['http' => ['method' => $request->getMethod(), 'header' => $headers, 'protocol_version' => $request->getProtocolVersion(), 'ignore_errors' => \true, 'follow_location' => 0]]; + $body = (string) $request->getBody(); + if (!empty($body)) { + $context['http']['content'] = $body; + // Prevent the HTTP handler from adding a Content-Type header. + if (!$request->hasHeader('Content-Type')) { + $context['http']['header'] .= "Content-Type:\r\n"; + } + } + $context['http']['header'] = \rtrim($context['http']['header']); + return $context; + } + private function add_proxy(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, &$options, $value, &$params) + { + if (!\is_array($value)) { + $options['http']['proxy'] = $value; + } else { + $scheme = $request->getUri()->getScheme(); + if (isset($value[$scheme])) { + if (!isset($value['no']) || !\WPMailSMTP\Vendor\GuzzleHttp\is_host_in_noproxy($request->getUri()->getHost(), $value['no'])) { + $options['http']['proxy'] = $value[$scheme]; + } + } + } + } + private function add_timeout(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, &$options, $value, &$params) + { + if ($value > 0) { + $options['http']['timeout'] = $value; + } + } + private function add_verify(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, &$options, $value, &$params) + { + if ($value === \true) { + // PHP 5.6 or greater will find the system cert by default. When + // < 5.6, use the Guzzle bundled cacert. + if (\PHP_VERSION_ID < 50600) { + $options['ssl']['cafile'] = \WPMailSMTP\Vendor\GuzzleHttp\default_ca_bundle(); + } + } elseif (\is_string($value)) { + $options['ssl']['cafile'] = $value; + if (!\file_exists($value)) { + throw new \RuntimeException("SSL CA bundle not found: {$value}"); + } + } elseif ($value === \false) { + $options['ssl']['verify_peer'] = \false; + $options['ssl']['verify_peer_name'] = \false; + return; + } else { + throw new \InvalidArgumentException('Invalid verify request option'); + } + $options['ssl']['verify_peer'] = \true; + $options['ssl']['verify_peer_name'] = \true; + $options['ssl']['allow_self_signed'] = \false; + } + private function add_cert(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, &$options, $value, &$params) + { + if (\is_array($value)) { + $options['ssl']['passphrase'] = $value[1]; + $value = $value[0]; + } + if (!\file_exists($value)) { + throw new \RuntimeException("SSL certificate not found: {$value}"); + } + $options['ssl']['local_cert'] = $value; + } + private function add_progress(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, &$options, $value, &$params) + { + $this->addNotification($params, function ($code, $a, $b, $c, $transferred, $total) use($value) { + if ($code == \STREAM_NOTIFY_PROGRESS) { + $value($total, $transferred, null, null); + } + }); + } + private function add_debug(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, &$options, $value, &$params) + { + if ($value === \false) { + return; + } + static $map = [\STREAM_NOTIFY_CONNECT => 'CONNECT', \STREAM_NOTIFY_AUTH_REQUIRED => 'AUTH_REQUIRED', \STREAM_NOTIFY_AUTH_RESULT => 'AUTH_RESULT', \STREAM_NOTIFY_MIME_TYPE_IS => 'MIME_TYPE_IS', \STREAM_NOTIFY_FILE_SIZE_IS => 'FILE_SIZE_IS', \STREAM_NOTIFY_REDIRECTED => 'REDIRECTED', \STREAM_NOTIFY_PROGRESS => 'PROGRESS', \STREAM_NOTIFY_FAILURE => 'FAILURE', \STREAM_NOTIFY_COMPLETED => 'COMPLETED', \STREAM_NOTIFY_RESOLVE => 'RESOLVE']; + static $args = ['severity', 'message', 'message_code', 'bytes_transferred', 'bytes_max']; + $value = \WPMailSMTP\Vendor\GuzzleHttp\debug_resource($value); + $ident = $request->getMethod() . ' ' . $request->getUri()->withFragment(''); + $this->addNotification($params, function () use($ident, $value, $map, $args) { + $passed = \func_get_args(); + $code = \array_shift($passed); + \fprintf($value, '<%s> [%s] ', $ident, $map[$code]); + foreach (\array_filter($passed) as $i => $v) { + \fwrite($value, $args[$i] . ': "' . $v . '" '); + } + \fwrite($value, "\n"); + }); + } + private function addNotification(array &$params, callable $notify) + { + // Wrap the existing function if needed. + if (!isset($params['notification'])) { + $params['notification'] = $notify; + } else { + $params['notification'] = $this->callArray([$params['notification'], $notify]); + } + } + private function callArray(array $functions) + { + return function () use($functions) { + $args = \func_get_args(); + foreach ($functions as $fn) { + \call_user_func_array($fn, $args); + } + }; + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/HandlerStack.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/HandlerStack.php similarity index 77% rename from wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/HandlerStack.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/HandlerStack.php index 6a49cc0..42dae95 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/HandlerStack.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/HandlerStack.php @@ -1,10 +1,10 @@ push(Middleware::httpErrors(), 'http_errors'); - $stack->push(Middleware::redirect(), 'allow_redirects'); - $stack->push(Middleware::cookies(), 'cookies'); - $stack->push(Middleware::prepareBody(), 'prepare_body'); - + $stack->push(\WPMailSMTP\Vendor\GuzzleHttp\Middleware::httpErrors(), 'http_errors'); + $stack->push(\WPMailSMTP\Vendor\GuzzleHttp\Middleware::redirect(), 'allow_redirects'); + $stack->push(\WPMailSMTP\Vendor\GuzzleHttp\Middleware::cookies(), 'cookies'); + $stack->push(\WPMailSMTP\Vendor\GuzzleHttp\Middleware::prepareBody(), 'prepare_body'); return $stack; } - /** * @param callable $handler Underlying HTTP handler. */ @@ -55,7 +50,6 @@ class HandlerStack { $this->handler = $handler; } - /** * Invokes the handler stack as a composed handler * @@ -64,13 +58,11 @@ class HandlerStack * * @return ResponseInterface|PromiseInterface */ - public function __invoke(RequestInterface $request, array $options) + public function __invoke(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, array $options) { $handler = $this->resolve(); - return $handler($request, $options); } - /** * Dumps a string representation of the stack. * @@ -83,23 +75,19 @@ class HandlerStack if ($this->handler) { $stack[] = "0) Handler: " . $this->debugCallable($this->handler); } - $result = ''; - foreach (array_reverse($this->stack) as $tuple) { + foreach (\array_reverse($this->stack) as $tuple) { $depth++; $str = "{$depth}) Name: '{$tuple[1]}', "; $str .= "Function: " . $this->debugCallable($tuple[0]); $result = "> {$str}\n{$result}"; $stack[] = $str; } - - foreach (array_keys($stack) as $k) { + foreach (\array_keys($stack) as $k) { $result .= "< {$stack[$k]}\n"; } - return $result; } - /** * Set the HTTP handler that actually returns a promise. * @@ -111,7 +99,6 @@ class HandlerStack $this->handler = $handler; $this->cached = null; } - /** * Returns true if the builder has a handler. * @@ -121,7 +108,6 @@ class HandlerStack { return (bool) $this->handler; } - /** * Unshift a middleware to the bottom of the stack. * @@ -130,10 +116,9 @@ class HandlerStack */ public function unshift(callable $middleware, $name = null) { - array_unshift($this->stack, [$middleware, $name]); + \array_unshift($this->stack, [$middleware, $name]); $this->cached = null; } - /** * Push a middleware to the top of the stack. * @@ -145,7 +130,6 @@ class HandlerStack $this->stack[] = [$middleware, $name]; $this->cached = null; } - /** * Add a middleware before another middleware by name. * @@ -155,9 +139,8 @@ class HandlerStack */ public function before($findName, callable $middleware, $withName = '') { - $this->splice($findName, $withName, $middleware, true); + $this->splice($findName, $withName, $middleware, \true); } - /** * Add a middleware after another middleware by name. * @@ -167,9 +150,8 @@ class HandlerStack */ public function after($findName, callable $middleware, $withName = '') { - $this->splice($findName, $withName, $middleware, false); + $this->splice($findName, $withName, $middleware, \false); } - /** * Remove a middleware by instance or name from the stack. * @@ -178,15 +160,11 @@ class HandlerStack public function remove($remove) { $this->cached = null; - $idx = is_callable($remove) ? 0 : 1; - $this->stack = array_values(array_filter( - $this->stack, - function ($tuple) use ($idx, $remove) { - return $tuple[$idx] !== $remove; - } - )); + $idx = \is_callable($remove) ? 0 : 1; + $this->stack = \array_values(\array_filter($this->stack, function ($tuple) use($idx, $remove) { + return $tuple[$idx] !== $remove; + })); } - /** * Compose the middleware and handler into a single callable function. * @@ -198,17 +176,13 @@ class HandlerStack if (!($prev = $this->handler)) { throw new \LogicException('No handler has been specified'); } - - foreach (array_reverse($this->stack) as $fn) { + foreach (\array_reverse($this->stack) as $fn) { $prev = $fn[0]($prev); } - $this->cached = $prev; } - return $this->cached; } - /** * @param string $name * @return int @@ -220,10 +194,8 @@ class HandlerStack return $k; } } - - throw new \InvalidArgumentException("Middleware not found: $name"); + throw new \InvalidArgumentException("Middleware not found: {$name}"); } - /** * Splices a function into the middleware list at a specific position. * @@ -237,22 +209,20 @@ class HandlerStack $this->cached = null; $idx = $this->findByName($findName); $tuple = [$middleware, $withName]; - if ($before) { if ($idx === 0) { - array_unshift($this->stack, $tuple); + \array_unshift($this->stack, $tuple); } else { $replacement = [$tuple, $this->stack[$idx]]; - array_splice($this->stack, $idx, 1, $replacement); + \array_splice($this->stack, $idx, 1, $replacement); } - } elseif ($idx === count($this->stack) - 1) { + } elseif ($idx === \count($this->stack) - 1) { $this->stack[] = $tuple; } else { $replacement = [$this->stack[$idx], $tuple]; - array_splice($this->stack, $idx, 1, $replacement); + \array_splice($this->stack, $idx, 1, $replacement); } } - /** * Provides a debug string for a given callable. * @@ -262,16 +232,12 @@ class HandlerStack */ private function debugCallable($fn) { - if (is_string($fn)) { + if (\is_string($fn)) { return "callable({$fn})"; } - - if (is_array($fn)) { - return is_string($fn[0]) - ? "callable({$fn[0]}::{$fn[1]})" - : "callable(['" . get_class($fn[0]) . "', '{$fn[1]}'])"; + if (\is_array($fn)) { + return \is_string($fn[0]) ? "callable({$fn[0]}::{$fn[1]})" : "callable(['" . \get_class($fn[0]) . "', '{$fn[1]}'])"; } - - return 'callable(' . spl_object_hash($fn) . ')'; + return 'callable(' . \spl_object_hash($fn) . ')'; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/MessageFormatter.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/MessageFormatter.php new file mode 100644 index 0000000..b6ecc68 --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/MessageFormatter.php @@ -0,0 +1,156 @@ +>>>>>>>\n{request}\n<<<<<<<<\n{response}\n--------\n{error}"; + const SHORT = '[{ts}] "{method} {target} HTTP/{version}" {code}'; + /** @var string Template used to format log messages */ + private $template; + /** + * @param string $template Log message template + */ + public function __construct($template = self::CLF) + { + $this->template = $template ?: self::CLF; + } + /** + * Returns a formatted message string. + * + * @param RequestInterface $request Request that was sent + * @param ResponseInterface $response Response that was received + * @param \Exception $error Exception that was received + * + * @return string + */ + public function format(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, \WPMailSMTP\Vendor\Psr\Http\Message\ResponseInterface $response = null, \Exception $error = null) + { + $cache = []; + return \preg_replace_callback('/{\\s*([A-Za-z_\\-\\.0-9]+)\\s*}/', function (array $matches) use($request, $response, $error, &$cache) { + if (isset($cache[$matches[1]])) { + return $cache[$matches[1]]; + } + $result = ''; + switch ($matches[1]) { + case 'request': + $result = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\str($request); + break; + case 'response': + $result = $response ? \WPMailSMTP\Vendor\GuzzleHttp\Psr7\str($response) : ''; + break; + case 'req_headers': + $result = \trim($request->getMethod() . ' ' . $request->getRequestTarget()) . ' HTTP/' . $request->getProtocolVersion() . "\r\n" . $this->headers($request); + break; + case 'res_headers': + $result = $response ? \sprintf('HTTP/%s %d %s', $response->getProtocolVersion(), $response->getStatusCode(), $response->getReasonPhrase()) . "\r\n" . $this->headers($response) : 'NULL'; + break; + case 'req_body': + $result = $request->getBody(); + break; + case 'res_body': + $result = $response ? $response->getBody() : 'NULL'; + break; + case 'ts': + case 'date_iso_8601': + $result = \gmdate('c'); + break; + case 'date_common_log': + $result = \date('d/M/Y:H:i:s O'); + break; + case 'method': + $result = $request->getMethod(); + break; + case 'version': + $result = $request->getProtocolVersion(); + break; + case 'uri': + case 'url': + $result = $request->getUri(); + break; + case 'target': + $result = $request->getRequestTarget(); + break; + case 'req_version': + $result = $request->getProtocolVersion(); + break; + case 'res_version': + $result = $response ? $response->getProtocolVersion() : 'NULL'; + break; + case 'host': + $result = $request->getHeaderLine('Host'); + break; + case 'hostname': + $result = \gethostname(); + break; + case 'code': + $result = $response ? $response->getStatusCode() : 'NULL'; + break; + case 'phrase': + $result = $response ? $response->getReasonPhrase() : 'NULL'; + break; + case 'error': + $result = $error ? $error->getMessage() : 'NULL'; + break; + default: + // handle prefixed dynamic headers + if (\strpos($matches[1], 'req_header_') === 0) { + $result = $request->getHeaderLine(\substr($matches[1], 11)); + } elseif (\strpos($matches[1], 'res_header_') === 0) { + $result = $response ? $response->getHeaderLine(\substr($matches[1], 11)) : 'NULL'; + } + } + $cache[$matches[1]] = $result; + return $result; + }, $this->template); + } + /** + * Get headers from message as string + * + * @return string + */ + private function headers(\WPMailSMTP\Vendor\Psr\Http\Message\MessageInterface $message) + { + $result = ''; + foreach ($message->getHeaders() as $name => $values) { + $result .= $name . ': ' . \implode(', ', $values) . "\r\n"; + } + return \trim($result); + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Middleware.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Middleware.php similarity index 56% rename from wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Middleware.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Middleware.php index bffc197..5665345 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Middleware.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Middleware.php @@ -1,13 +1,13 @@ withCookieHeader($request); - return $handler($request, $options) - ->then( - function ($response) use ($cookieJar, $request) { - $cookieJar->extractCookies($request, $response); - return $response; - } - ); + return $handler($request, $options)->then(function ($response) use($cookieJar, $request) { + $cookieJar->extractCookies($request, $response); + return $response; + }); }; }; } - /** * Middleware that throws exceptions for 4xx or 5xx responses when the * "http_error" request option is set to true. @@ -52,23 +48,20 @@ final class Middleware public static function httpErrors() { return function (callable $handler) { - return function ($request, array $options) use ($handler) { + return function ($request, array $options) use($handler) { if (empty($options['http_errors'])) { return $handler($request, $options); } - return $handler($request, $options)->then( - function (ResponseInterface $response) use ($request) { - $code = $response->getStatusCode(); - if ($code < 400) { - return $response; - } - throw RequestException::create($request, $response); + return $handler($request, $options)->then(function (\WPMailSMTP\Vendor\Psr\Http\Message\ResponseInterface $response) use($request) { + $code = $response->getStatusCode(); + if ($code < 400) { + return $response; } - ); + throw \WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException::create($request, $response); + }); }; }; } - /** * Middleware that pushes history data to an ArrayAccess container. * @@ -79,36 +72,21 @@ final class Middleware */ public static function history(&$container) { - if (!is_array($container) && !$container instanceof \ArrayAccess) { + if (!\is_array($container) && !$container instanceof \ArrayAccess) { throw new \InvalidArgumentException('history container must be an array or object implementing ArrayAccess'); } - - return function (callable $handler) use (&$container) { - return function ($request, array $options) use ($handler, &$container) { - return $handler($request, $options)->then( - function ($value) use ($request, &$container, $options) { - $container[] = [ - 'request' => $request, - 'response' => $value, - 'error' => null, - 'options' => $options - ]; - return $value; - }, - function ($reason) use ($request, &$container, $options) { - $container[] = [ - 'request' => $request, - 'response' => null, - 'error' => $reason, - 'options' => $options - ]; - return \GuzzleHttp\Promise\rejection_for($reason); - } - ); + return function (callable $handler) use(&$container) { + return function ($request, array $options) use($handler, &$container) { + return $handler($request, $options)->then(function ($value) use($request, &$container, $options) { + $container[] = ['request' => $request, 'response' => $value, 'error' => null, 'options' => $options]; + return $value; + }, function ($reason) use($request, &$container, $options) { + $container[] = ['request' => $request, 'response' => null, 'error' => $reason, 'options' => $options]; + return \WPMailSMTP\Vendor\GuzzleHttp\Promise\rejection_for($reason); + }); }; }; } - /** * Middleware that invokes a callback before and after sending a request. * @@ -124,8 +102,8 @@ final class Middleware */ public static function tap(callable $before = null, callable $after = null) { - return function (callable $handler) use ($before, $after) { - return function ($request, array $options) use ($handler, $before, $after) { + return function (callable $handler) use($before, $after) { + return function ($request, array $options) use($handler, $before, $after) { if ($before) { $before($request, $options); } @@ -137,7 +115,6 @@ final class Middleware }; }; } - /** * Middleware that handles request redirects. * @@ -146,10 +123,9 @@ final class Middleware public static function redirect() { return function (callable $handler) { - return new RedirectMiddleware($handler); + return new \WPMailSMTP\Vendor\GuzzleHttp\RedirectMiddleware($handler); }; } - /** * Middleware that retries requests based on the boolean result of * invoking the provided "decider" function. @@ -167,11 +143,10 @@ final class Middleware */ public static function retry(callable $decider, callable $delay = null) { - return function (callable $handler) use ($decider, $delay) { - return new RetryMiddleware($decider, $handler, $delay); + return function (callable $handler) use($decider, $delay) { + return new \WPMailSMTP\Vendor\GuzzleHttp\RetryMiddleware($decider, $handler, $delay); }; } - /** * Middleware that logs requests, responses, and errors using a message * formatter. @@ -182,29 +157,23 @@ final class Middleware * * @return callable Returns a function that accepts the next handler. */ - public static function log(LoggerInterface $logger, MessageFormatter $formatter, $logLevel = 'info' /* \Psr\Log\LogLevel::INFO */) + public static function log(\WPMailSMTP\Vendor\Psr\Log\LoggerInterface $logger, \WPMailSMTP\Vendor\GuzzleHttp\MessageFormatter $formatter, $logLevel = 'info') { - return function (callable $handler) use ($logger, $formatter, $logLevel) { - return function ($request, array $options) use ($handler, $logger, $formatter, $logLevel) { - return $handler($request, $options)->then( - function ($response) use ($logger, $request, $formatter, $logLevel) { - $message = $formatter->format($request, $response); - $logger->log($logLevel, $message); - return $response; - }, - function ($reason) use ($logger, $request, $formatter) { - $response = $reason instanceof RequestException - ? $reason->getResponse() - : null; - $message = $formatter->format($request, $response, $reason); - $logger->notice($message); - return \GuzzleHttp\Promise\rejection_for($reason); - } - ); + return function (callable $handler) use($logger, $formatter, $logLevel) { + return function ($request, array $options) use($handler, $logger, $formatter, $logLevel) { + return $handler($request, $options)->then(function ($response) use($logger, $request, $formatter, $logLevel) { + $message = $formatter->format($request, $response); + $logger->log($logLevel, $message); + return $response; + }, function ($reason) use($logger, $request, $formatter) { + $response = $reason instanceof \WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException ? $reason->getResponse() : null; + $message = $formatter->format($request, $response, $reason); + $logger->notice($message); + return \WPMailSMTP\Vendor\GuzzleHttp\Promise\rejection_for($reason); + }); }; }; } - /** * This middleware adds a default content-type if possible, a default * content-length or transfer-encoding header, and the expect header. @@ -214,10 +183,9 @@ final class Middleware public static function prepareBody() { return function (callable $handler) { - return new PrepareBodyMiddleware($handler); + return new \WPMailSMTP\Vendor\GuzzleHttp\PrepareBodyMiddleware($handler); }; } - /** * Middleware that applies a map function to the request before passing to * the next handler. @@ -228,13 +196,12 @@ final class Middleware */ public static function mapRequest(callable $fn) { - return function (callable $handler) use ($fn) { - return function ($request, array $options) use ($handler, $fn) { + return function (callable $handler) use($fn) { + return function ($request, array $options) use($handler, $fn) { return $handler($fn($request), $options); }; }; } - /** * Middleware that applies a map function to the resolved promise's * response. @@ -245,8 +212,8 @@ final class Middleware */ public static function mapResponse(callable $fn) { - return function (callable $handler) use ($fn) { - return function ($request, array $options) use ($handler, $fn) { + return function (callable $handler) use($fn) { + return function ($request, array $options) use($handler, $fn) { return $handler($request, $options)->then($fn); }; }; diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Pool.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Pool.php similarity index 70% rename from wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Pool.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Pool.php index 5838db4..3bcce5d 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Pool.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Pool.php @@ -1,11 +1,11 @@ $rfn) { - if ($rfn instanceof RequestInterface) { - yield $key => $client->sendAsync($rfn, $opts); - } elseif (is_callable($rfn)) { - yield $key => $rfn($opts); + if ($rfn instanceof \WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface) { + (yield $key => $client->sendAsync($rfn, $opts)); + } elseif (\is_callable($rfn)) { + (yield $key => $rfn($opts)); } else { - throw new \InvalidArgumentException('Each value yielded by ' - . 'the iterator must be a Psr7\Http\Message\RequestInterface ' - . 'or a callable that returns a promise that fulfills ' - . 'with a Psr7\Message\Http\ResponseInterface object.'); + throw new \InvalidArgumentException('Each value yielded by ' . 'the iterator must be a Psr7\\Http\\Message\\RequestInterface ' . 'or a callable that returns a promise that fulfills ' . 'with a Psr7\\Message\\Http\\ResponseInterface object.'); } } }; - - $this->each = new EachPromise($requests(), $config); + $this->each = new \WPMailSMTP\Vendor\GuzzleHttp\Promise\EachPromise($requests(), $config); } - /** * Get promise * @@ -79,7 +68,6 @@ class Pool implements PromisorInterface { return $this->each->promise(); } - /** * Sends multiple requests concurrently and returns an array of responses * and exceptions that uses the same ordering as the provided requests. @@ -97,21 +85,16 @@ class Pool implements PromisorInterface * in the same order that the requests were sent. * @throws \InvalidArgumentException if the event format is incorrect. */ - public static function batch( - ClientInterface $client, - $requests, - array $options = [] - ) { + public static function batch(\WPMailSMTP\Vendor\GuzzleHttp\ClientInterface $client, $requests, array $options = []) + { $res = []; self::cmpCallback($options, 'fulfilled', $res); self::cmpCallback($options, 'rejected', $res); $pool = new static($client, $requests, $options); $pool->promise()->wait(); - ksort($res); - + \ksort($res); return $res; } - /** * Execute callback(s) * @@ -120,12 +103,12 @@ class Pool implements PromisorInterface private static function cmpCallback(array &$options, $name, array &$results) { if (!isset($options[$name])) { - $options[$name] = function ($v, $k) use (&$results) { + $options[$name] = function ($v, $k) use(&$results) { $results[$k] = $v; }; } else { $currentFn = $options[$name]; - $options[$name] = function ($v, $k) use (&$results, $currentFn) { + $options[$name] = function ($v, $k) use(&$results, $currentFn) { $currentFn($v, $k); $results[$k] = $v; }; diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php similarity index 75% rename from wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php index 568a1e9..eaf112a 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php @@ -1,10 +1,10 @@ nextHandler = $nextHandler; } - /** * @param RequestInterface $request * @param array $options * * @return PromiseInterface */ - public function __invoke(RequestInterface $request, array $options) + public function __invoke(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, array $options) { $fn = $this->nextHandler; - // Don't do anything if the request has no body. if ($request->getBody()->getSize() === 0) { return $fn($request, $options); } - $modify = []; - // Add a default content-type if possible. if (!$request->hasHeader('Content-Type')) { if ($uri = $request->getBody()->getMetadata('uri')) { - if ($type = Psr7\mimetype_from_filename($uri)) { + if ($type = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\mimetype_from_filename($uri)) { $modify['set_headers']['Content-Type'] = $type; } } } - // Add a default content-length or transfer-encoding header. - if (!$request->hasHeader('Content-Length') - && !$request->hasHeader('Transfer-Encoding') - ) { + if (!$request->hasHeader('Content-Length') && !$request->hasHeader('Transfer-Encoding')) { $size = $request->getBody()->getSize(); if ($size !== null) { $modify['set_headers']['Content-Length'] = $size; @@ -59,51 +51,39 @@ class PrepareBodyMiddleware $modify['set_headers']['Transfer-Encoding'] = 'chunked'; } } - // Add the expect header if needed. $this->addExpectHeader($request, $options, $modify); - - return $fn(Psr7\modify_request($request, $modify), $options); + return $fn(\WPMailSMTP\Vendor\GuzzleHttp\Psr7\modify_request($request, $modify), $options); } - /** * Add expect header * * @return void */ - private function addExpectHeader( - RequestInterface $request, - array $options, - array &$modify - ) { + private function addExpectHeader(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, array $options, array &$modify) + { // Determine if the Expect header should be used if ($request->hasHeader('Expect')) { return; } - $expect = isset($options['expect']) ? $options['expect'] : null; - // Return if disabled or if you're not using HTTP/1.1 or HTTP/2.0 - if ($expect === false || $request->getProtocolVersion() < 1.1) { + if ($expect === \false || $request->getProtocolVersion() < 1.1) { return; } - // The expect header is unconditionally enabled - if ($expect === true) { + if ($expect === \true) { $modify['set_headers']['Expect'] = '100-Continue'; return; } - // By default, send the expect header when the payload is > 1mb if ($expect === null) { $expect = 1048576; } - // Always add if the body cannot be rewound, the size cannot be // determined, or the size is greater than the cutoff threshold $body = $request->getBody(); $size = $body->getSize(); - if ($size === null || $size >= (int) $expect || !$body->isSeekable()) { $modify['set_headers']['Expect'] = '100-Continue'; } diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/RedirectMiddleware.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/RedirectMiddleware.php new file mode 100644 index 0000000..b35288c --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/RedirectMiddleware.php @@ -0,0 +1,177 @@ + 5, 'protocols' => ['http', 'https'], 'strict' => \false, 'referer' => \false, 'track_redirects' => \false]; + /** @var callable */ + private $nextHandler; + /** + * @param callable $nextHandler Next handler to invoke. + */ + public function __construct(callable $nextHandler) + { + $this->nextHandler = $nextHandler; + } + /** + * @param RequestInterface $request + * @param array $options + * + * @return PromiseInterface + */ + public function __invoke(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, array $options) + { + $fn = $this->nextHandler; + if (empty($options['allow_redirects'])) { + return $fn($request, $options); + } + if ($options['allow_redirects'] === \true) { + $options['allow_redirects'] = self::$defaultSettings; + } elseif (!\is_array($options['allow_redirects'])) { + throw new \InvalidArgumentException('allow_redirects must be true, false, or array'); + } else { + // Merge the default settings with the provided settings + $options['allow_redirects'] += self::$defaultSettings; + } + if (empty($options['allow_redirects']['max'])) { + return $fn($request, $options); + } + return $fn($request, $options)->then(function (\WPMailSMTP\Vendor\Psr\Http\Message\ResponseInterface $response) use($request, $options) { + return $this->checkRedirect($request, $options, $response); + }); + } + /** + * @param RequestInterface $request + * @param array $options + * @param ResponseInterface $response + * + * @return ResponseInterface|PromiseInterface + */ + public function checkRedirect(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, array $options, \WPMailSMTP\Vendor\Psr\Http\Message\ResponseInterface $response) + { + if (\substr($response->getStatusCode(), 0, 1) != '3' || !$response->hasHeader('Location')) { + return $response; + } + $this->guardMax($request, $options); + $nextRequest = $this->modifyRequest($request, $options, $response); + if (isset($options['allow_redirects']['on_redirect'])) { + \call_user_func($options['allow_redirects']['on_redirect'], $request, $response, $nextRequest->getUri()); + } + /** @var PromiseInterface|ResponseInterface $promise */ + $promise = $this($nextRequest, $options); + // Add headers to be able to track history of redirects. + if (!empty($options['allow_redirects']['track_redirects'])) { + return $this->withTracking($promise, (string) $nextRequest->getUri(), $response->getStatusCode()); + } + return $promise; + } + /** + * Enable tracking on promise. + * + * @return PromiseInterface + */ + private function withTracking(\WPMailSMTP\Vendor\GuzzleHttp\Promise\PromiseInterface $promise, $uri, $statusCode) + { + return $promise->then(function (\WPMailSMTP\Vendor\Psr\Http\Message\ResponseInterface $response) use($uri, $statusCode) { + // Note that we are pushing to the front of the list as this + // would be an earlier response than what is currently present + // in the history header. + $historyHeader = $response->getHeader(self::HISTORY_HEADER); + $statusHeader = $response->getHeader(self::STATUS_HISTORY_HEADER); + \array_unshift($historyHeader, $uri); + \array_unshift($statusHeader, $statusCode); + return $response->withHeader(self::HISTORY_HEADER, $historyHeader)->withHeader(self::STATUS_HISTORY_HEADER, $statusHeader); + }); + } + /** + * Check for too many redirects + * + * @return void + * + * @throws TooManyRedirectsException Too many redirects. + */ + private function guardMax(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, array &$options) + { + $current = isset($options['__redirect_count']) ? $options['__redirect_count'] : 0; + $options['__redirect_count'] = $current + 1; + $max = $options['allow_redirects']['max']; + if ($options['__redirect_count'] > $max) { + throw new \WPMailSMTP\Vendor\GuzzleHttp\Exception\TooManyRedirectsException("Will not follow more than {$max} redirects", $request); + } + } + /** + * @param RequestInterface $request + * @param array $options + * @param ResponseInterface $response + * + * @return RequestInterface + */ + public function modifyRequest(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, array $options, \WPMailSMTP\Vendor\Psr\Http\Message\ResponseInterface $response) + { + // Request modifications to apply. + $modify = []; + $protocols = $options['allow_redirects']['protocols']; + // Use a GET request if this is an entity enclosing request and we are + // not forcing RFC compliance, but rather emulating what all browsers + // would do. + $statusCode = $response->getStatusCode(); + if ($statusCode == 303 || $statusCode <= 302 && !$options['allow_redirects']['strict']) { + $modify['method'] = 'GET'; + $modify['body'] = ''; + } + $uri = $this->redirectUri($request, $response, $protocols); + if (isset($options['idn_conversion']) && $options['idn_conversion'] !== \false) { + $idnOptions = $options['idn_conversion'] === \true ? \IDNA_DEFAULT : $options['idn_conversion']; + $uri = \WPMailSMTP\Vendor\GuzzleHttp\Utils::idnUriConvert($uri, $idnOptions); + } + $modify['uri'] = $uri; + \WPMailSMTP\Vendor\GuzzleHttp\Psr7\rewind_body($request); + // Add the Referer header if it is told to do so and only + // add the header if we are not redirecting from https to http. + if ($options['allow_redirects']['referer'] && $modify['uri']->getScheme() === $request->getUri()->getScheme()) { + $uri = $request->getUri()->withUserInfo(''); + $modify['set_headers']['Referer'] = (string) $uri; + } else { + $modify['remove_headers'][] = 'Referer'; + } + // Remove Authorization header if host is different. + if ($request->getUri()->getHost() !== $modify['uri']->getHost()) { + $modify['remove_headers'][] = 'Authorization'; + } + return \WPMailSMTP\Vendor\GuzzleHttp\Psr7\modify_request($request, $modify); + } + /** + * Set the appropriate URL on the request based on the location header + * + * @param RequestInterface $request + * @param ResponseInterface $response + * @param array $protocols + * + * @return UriInterface + */ + private function redirectUri(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, \WPMailSMTP\Vendor\Psr\Http\Message\ResponseInterface $response, array $protocols) + { + $location = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\UriResolver::resolve($request->getUri(), new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Uri($response->getHeaderLine('Location'))); + // Ensure that the redirect URI is allowed based on the protocols. + if (!\in_array($location->getScheme(), $protocols)) { + throw new \WPMailSMTP\Vendor\GuzzleHttp\Exception\BadResponseException(\sprintf('Redirect URI, %s, does not use one of the allowed redirect protocols: %s', $location, \implode(', ', $protocols)), $request, $response); + } + return $location; + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/RequestOptions.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/RequestOptions.php similarity index 99% rename from wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/RequestOptions.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/RequestOptions.php index 355f658..efb7e38 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/RequestOptions.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/RequestOptions.php @@ -1,5 +1,6 @@ decider = $decider; $this->nextHandler = $nextHandler; $this->delay = $delay ?: __CLASS__ . '::exponentialDelay'; } - /** * Default exponential backoff delay function. * @@ -51,78 +44,56 @@ class RetryMiddleware */ public static function exponentialDelay($retries) { - return (int) pow(2, $retries - 1) * 1000; + return (int) \pow(2, $retries - 1) * 1000; } - /** * @param RequestInterface $request * @param array $options * * @return PromiseInterface */ - public function __invoke(RequestInterface $request, array $options) + public function __invoke(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, array $options) { if (!isset($options['retries'])) { $options['retries'] = 0; } - $fn = $this->nextHandler; - return $fn($request, $options) - ->then( - $this->onFulfilled($request, $options), - $this->onRejected($request, $options) - ); + return $fn($request, $options)->then($this->onFulfilled($request, $options), $this->onRejected($request, $options)); } - /** * Execute fulfilled closure * * @return mixed */ - private function onFulfilled(RequestInterface $req, array $options) + private function onFulfilled(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $req, array $options) { - return function ($value) use ($req, $options) { - if (!call_user_func( - $this->decider, - $options['retries'], - $req, - $value, - null - )) { + return function ($value) use($req, $options) { + if (!\call_user_func($this->decider, $options['retries'], $req, $value, null)) { return $value; } return $this->doRetry($req, $options, $value); }; } - /** * Execute rejected closure * * @return callable */ - private function onRejected(RequestInterface $req, array $options) + private function onRejected(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $req, array $options) { - return function ($reason) use ($req, $options) { - if (!call_user_func( - $this->decider, - $options['retries'], - $req, - null, - $reason - )) { - return \GuzzleHttp\Promise\rejection_for($reason); + return function ($reason) use($req, $options) { + if (!\call_user_func($this->decider, $options['retries'], $req, null, $reason)) { + return \WPMailSMTP\Vendor\GuzzleHttp\Promise\rejection_for($reason); } return $this->doRetry($req, $options); }; } - /** * @return self */ - private function doRetry(RequestInterface $request, array $options, ResponseInterface $response = null) + private function doRetry(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, array $options, \WPMailSMTP\Vendor\Psr\Http\Message\ResponseInterface $response = null) { - $options['delay'] = call_user_func($this->delay, ++$options['retries'], $response); - + $options['delay'] = \call_user_func($this->delay, ++$options['retries'], $response); return $this($request, $options); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/TransferStats.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/TransferStats.php similarity index 83% rename from wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/TransferStats.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/TransferStats.php index 87fb3c0..199bf5a 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/TransferStats.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/TransferStats.php @@ -1,10 +1,10 @@ request = $request; $this->response = $response; $this->transferTime = $transferTime; $this->handlerErrorData = $handlerErrorData; $this->handlerStats = $handlerStats; } - /** * @return RequestInterface */ @@ -45,7 +38,6 @@ final class TransferStats { return $this->request; } - /** * Returns the response that was received (if any). * @@ -55,7 +47,6 @@ final class TransferStats { return $this->response; } - /** * Returns true if a response was received. * @@ -65,7 +56,6 @@ final class TransferStats { return $this->response !== null; } - /** * Gets handler specific error data. * @@ -79,7 +69,6 @@ final class TransferStats { return $this->handlerErrorData; } - /** * Get the effective URI the request was sent to. * @@ -89,7 +78,6 @@ final class TransferStats { return $this->request->getUri(); } - /** * Get the estimated time the request was being transferred by the handler. * @@ -99,7 +87,6 @@ final class TransferStats { return $this->transferTime; } - /** * Gets an array of all of the handler specific transfer data. * @@ -109,7 +96,6 @@ final class TransferStats { return $this->handlerStats; } - /** * Get a specific handler statistic from the handler by name. * @@ -119,8 +105,6 @@ final class TransferStats */ public function getHandlerStat($stat) { - return isset($this->handlerStats[$stat]) - ? $this->handlerStats[$stat] - : null; + return isset($this->handlerStats[$stat]) ? $this->handlerStats[$stat] : null; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/UriTemplate.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/UriTemplate.php similarity index 68% rename from wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/UriTemplate.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/UriTemplate.php index 96dcfd0..c1bd547 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/UriTemplate.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/UriTemplate.php @@ -1,5 +1,6 @@ ['prefix' => '', 'joiner' => ',', 'query' => false], - '+' => ['prefix' => '', 'joiner' => ',', 'query' => false], - '#' => ['prefix' => '#', 'joiner' => ',', 'query' => false], - '.' => ['prefix' => '.', 'joiner' => '.', 'query' => false], - '/' => ['prefix' => '/', 'joiner' => '/', 'query' => false], - ';' => ['prefix' => ';', 'joiner' => ';', 'query' => true], - '?' => ['prefix' => '?', 'joiner' => '&', 'query' => true], - '&' => ['prefix' => '&', 'joiner' => '&', 'query' => true] - ]; - + private static $operatorHash = ['' => ['prefix' => '', 'joiner' => ',', 'query' => \false], '+' => ['prefix' => '', 'joiner' => ',', 'query' => \false], '#' => ['prefix' => '#', 'joiner' => ',', 'query' => \false], '.' => ['prefix' => '.', 'joiner' => '.', 'query' => \false], '/' => ['prefix' => '/', 'joiner' => '/', 'query' => \false], ';' => ['prefix' => ';', 'joiner' => ';', 'query' => \true], '?' => ['prefix' => '?', 'joiner' => '&', 'query' => \true], '&' => ['prefix' => '&', 'joiner' => '&', 'query' => \true]]; /** @var array Delimiters */ - private static $delims = [':', '/', '?', '#', '[', ']', '@', '!', '$', - '&', '\'', '(', ')', '*', '+', ',', ';', '=']; - + private static $delims = [':', '/', '?', '#', '[', ']', '@', '!', '$', '&', '\'', '(', ')', '*', '+', ',', ';', '=']; /** @var array Percent encoded delimiters */ - private static $delimsPct = ['%3A', '%2F', '%3F', '%23', '%5B', '%5D', - '%40', '%21', '%24', '%26', '%27', '%28', '%29', '%2A', '%2B', '%2C', - '%3B', '%3D']; - + private static $delimsPct = ['%3A', '%2F', '%3F', '%23', '%5B', '%5D', '%40', '%21', '%24', '%26', '%27', '%28', '%29', '%2A', '%2B', '%2C', '%3B', '%3D']; public function expand($template, array $variables) { - if (false === strpos($template, '{')) { + if (\false === \strpos($template, '{')) { return $template; } - $this->template = $template; $this->variables = $variables; - - return preg_replace_callback( - '/\{([^\}]+)\}/', - [$this, 'expandMatch'], - $this->template - ); + return \preg_replace_callback('/\\{([^\\}]+)\\}/', [$this, 'expandMatch'], $this->template); } - /** * Parse an expression into parts * @@ -61,34 +38,30 @@ class UriTemplate private function parseExpression($expression) { $result = []; - if (isset(self::$operatorHash[$expression[0]])) { $result['operator'] = $expression[0]; - $expression = substr($expression, 1); + $expression = \substr($expression, 1); } else { $result['operator'] = ''; } - - foreach (explode(',', $expression) as $value) { - $value = trim($value); + foreach (\explode(',', $expression) as $value) { + $value = \trim($value); $varspec = []; - if ($colonPos = strpos($value, ':')) { - $varspec['value'] = substr($value, 0, $colonPos); + if ($colonPos = \strpos($value, ':')) { + $varspec['value'] = \substr($value, 0, $colonPos); $varspec['modifier'] = ':'; - $varspec['position'] = (int) substr($value, $colonPos + 1); - } elseif (substr($value, -1) === '*') { + $varspec['position'] = (int) \substr($value, $colonPos + 1); + } elseif (\substr($value, -1) === '*') { $varspec['modifier'] = '*'; - $varspec['value'] = substr($value, 0, -1); + $varspec['value'] = \substr($value, 0, -1); } else { $varspec['value'] = (string) $value; $varspec['modifier'] = ''; } $result['values'][] = $varspec; } - return $result; } - /** * Process an expansion * @@ -99,51 +72,40 @@ class UriTemplate private function expandMatch(array $matches) { static $rfc1738to3986 = ['+' => '%20', '%7e' => '~']; - $replacements = []; $parsed = self::parseExpression($matches[1]); $prefix = self::$operatorHash[$parsed['operator']]['prefix']; $joiner = self::$operatorHash[$parsed['operator']]['joiner']; $useQuery = self::$operatorHash[$parsed['operator']]['query']; - foreach ($parsed['values'] as $value) { if (!isset($this->variables[$value['value']])) { continue; } - $variable = $this->variables[$value['value']]; $actuallyUseQuery = $useQuery; $expanded = ''; - - if (is_array($variable)) { + if (\is_array($variable)) { $isAssoc = $this->isAssoc($variable); $kvp = []; foreach ($variable as $key => $var) { if ($isAssoc) { - $key = rawurlencode($key); - $isNestedArray = is_array($var); + $key = \rawurlencode($key); + $isNestedArray = \is_array($var); } else { - $isNestedArray = false; + $isNestedArray = \false; } - if (!$isNestedArray) { - $var = rawurlencode($var); - if ($parsed['operator'] === '+' || - $parsed['operator'] === '#' - ) { + $var = \rawurlencode($var); + if ($parsed['operator'] === '+' || $parsed['operator'] === '#') { $var = $this->decodeReserved($var); } } - if ($value['modifier'] === '*') { if ($isAssoc) { if ($isNestedArray) { // Nested arrays must allow for deeply nested // structures. - $var = strtr( - http_build_query([$key => $var]), - $rfc1738to3986 - ); + $var = \strtr(\http_build_query([$key => $var]), $rfc1738to3986); } else { $var = $key . '=' . $var; } @@ -151,18 +113,16 @@ class UriTemplate $var = $value['value'] . '=' . $var; } } - $kvp[$key] = $var; } - if (empty($variable)) { - $actuallyUseQuery = false; + $actuallyUseQuery = \false; } elseif ($value['modifier'] === '*') { - $expanded = implode($joiner, $kvp); + $expanded = \implode($joiner, $kvp); if ($isAssoc) { // Don't prepend the value name when using the explode // modifier with an associative array. - $actuallyUseQuery = false; + $actuallyUseQuery = \false; } } else { if ($isAssoc) { @@ -174,18 +134,17 @@ class UriTemplate $v = $k . ',' . $v; } } - $expanded = implode(',', $kvp); + $expanded = \implode(',', $kvp); } } else { if ($value['modifier'] === ':') { - $variable = substr($variable, 0, $value['position']); + $variable = \substr($variable, 0, $value['position']); } - $expanded = rawurlencode($variable); + $expanded = \rawurlencode($variable); if ($parsed['operator'] === '+' || $parsed['operator'] === '#') { $expanded = $this->decodeReserved($expanded); } } - if ($actuallyUseQuery) { if (!$expanded && $joiner !== '&') { $expanded = $value['value']; @@ -193,18 +152,14 @@ class UriTemplate $expanded = $value['value'] . '=' . $expanded; } } - $replacements[] = $expanded; } - - $ret = implode($joiner, $replacements); + $ret = \implode($joiner, $replacements); if ($ret && $prefix) { return $prefix . $ret; } - return $ret; } - /** * Determines if an array is associative. * @@ -219,9 +174,8 @@ class UriTemplate */ private function isAssoc(array $array) { - return $array && array_keys($array)[0] !== 0; + return $array && \array_keys($array)[0] !== 0; } - /** * Removes percent encoding on reserved characters (used with + and # * modifiers). @@ -232,6 +186,6 @@ class UriTemplate */ private function decodeReserved($string) { - return str_replace(self::$delimsPct, self::$delims, $string); + return \str_replace(self::$delimsPct, self::$delims, $string); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Utils.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Utils.php similarity index 56% rename from wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Utils.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Utils.php index c698acb..f0e655f 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/Utils.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/Utils.php @@ -1,10 +1,10 @@ getHost()) { $asciiHost = self::idnToAsci($uri->getHost(), $options, $info); - if ($asciiHost === false) { + if ($asciiHost === \false) { $errorBitSet = isset($info['errors']) ? $info['errors'] : 0; - - $errorConstants = array_filter(array_keys(get_defined_constants()), function ($name) { - return substr($name, 0, 11) === 'IDNA_ERROR_'; + $errorConstants = \array_filter(\array_keys(\get_defined_constants()), function ($name) { + return \substr($name, 0, 11) === 'IDNA_ERROR_'; }); - $errors = []; foreach ($errorConstants as $errorConstant) { - if ($errorBitSet & constant($errorConstant)) { + if ($errorBitSet & \constant($errorConstant)) { $errors[] = $errorConstant; } } - $errorMessage = 'IDN conversion failed'; if ($errors) { - $errorMessage .= ' (errors: ' . implode(', ', $errors) . ')'; + $errorMessage .= ' (errors: ' . \implode(', ', $errors) . ')'; } - - throw new InvalidArgumentException($errorMessage); + throw new \WPMailSMTP\Vendor\GuzzleHttp\Exception\InvalidArgumentException($errorMessage); } else { if ($uri->getHost() !== $asciiHost) { // Replace URI only if the ASCII version is different @@ -59,10 +54,8 @@ final class Utils } } } - return $uri; } - /** * @param string $domain * @param int $options @@ -75,18 +68,15 @@ final class Utils if (\preg_match('%^[ -~]+$%', $domain) === 1) { return $domain; } - - if (\extension_loaded('intl') && defined('INTL_IDNA_VARIANT_UTS46')) { - return \idn_to_ascii($domain, $options, INTL_IDNA_VARIANT_UTS46, $info); + if (\extension_loaded('intl') && \defined('INTL_IDNA_VARIANT_UTS46')) { + return \idn_to_ascii($domain, $options, \INTL_IDNA_VARIANT_UTS46, $info); } - /* * The Idn class is marked as @internal. Verify that class and method exists. */ - if (method_exists(Idn::class, 'idn_to_ascii')) { - return Idn::idn_to_ascii($domain, $options, Idn::INTL_IDNA_VARIANT_UTS46, $info); + if (\method_exists(\WPMailSMTP\Vendor\Symfony\Polyfill\Intl\Idn\Idn::class, 'idn_to_ascii')) { + return \WPMailSMTP\Vendor\Symfony\Polyfill\Intl\Idn\Idn::idn_to_ascii($domain, $options, \WPMailSMTP\Vendor\Symfony\Polyfill\Intl\Idn\Idn::INTL_IDNA_VARIANT_UTS46, $info); } - throw new \RuntimeException('ext-intl or symfony/polyfill-intl-idn not loaded or too old'); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/functions.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/functions.php similarity index 70% rename from wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/functions.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/functions.php index c2afd8c..70bf4c0 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/functions.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/guzzle/src/functions.php @@ -1,11 +1,11 @@ expand($template, $variables); } - /** * Debug function used to describe the provided value type and class. * @@ -40,19 +37,18 @@ function uri_template($template, array $variables) */ function describe_type($input) { - switch (gettype($input)) { + switch (\gettype($input)) { case 'object': - return 'object(' . get_class($input) . ')'; + return 'object(' . \get_class($input) . ')'; case 'array': - return 'array(' . count($input) . ')'; + return 'array(' . \count($input) . ')'; default: - ob_start(); - var_dump($input); + \ob_start(); + \var_dump($input); // normalize float vs double - return str_replace('double(', 'float(', rtrim(ob_get_clean())); + return \str_replace('double(', 'float(', \rtrim(\ob_get_clean())); } } - /** * Parses an array of header lines into an associative array of headers. * @@ -63,17 +59,12 @@ function describe_type($input) function headers_from_lines($lines) { $headers = []; - foreach ($lines as $line) { - $parts = explode(':', $line, 2); - $headers[trim($parts[0])][] = isset($parts[1]) - ? trim($parts[1]) - : null; + $parts = \explode(':', $line, 2); + $headers[\trim($parts[0])][] = isset($parts[1]) ? \trim($parts[1]) : null; } - return $headers; } - /** * Returns a debug stream based on the provided variable. * @@ -83,15 +74,13 @@ function headers_from_lines($lines) */ function debug_resource($value = null) { - if (is_resource($value)) { + if (\is_resource($value)) { return $value; - } elseif (defined('STDOUT')) { - return STDOUT; + } elseif (\defined('STDOUT')) { + return \STDOUT; } - - return fopen('php://output', 'w'); + return \fopen('php://output', 'w'); } - /** * Chooses and creates a default handler to use based on the environment. * @@ -103,26 +92,20 @@ function debug_resource($value = null) function choose_handler() { $handler = null; - if (function_exists('curl_multi_exec') && function_exists('curl_exec')) { - $handler = Proxy::wrapSync(new CurlMultiHandler(), new CurlHandler()); - } elseif (function_exists('curl_exec')) { - $handler = new CurlHandler(); - } elseif (function_exists('curl_multi_exec')) { - $handler = new CurlMultiHandler(); + if (\function_exists('curl_multi_exec') && \function_exists('curl_exec')) { + $handler = \WPMailSMTP\Vendor\GuzzleHttp\Handler\Proxy::wrapSync(new \WPMailSMTP\Vendor\GuzzleHttp\Handler\CurlMultiHandler(), new \WPMailSMTP\Vendor\GuzzleHttp\Handler\CurlHandler()); + } elseif (\function_exists('curl_exec')) { + $handler = new \WPMailSMTP\Vendor\GuzzleHttp\Handler\CurlHandler(); + } elseif (\function_exists('curl_multi_exec')) { + $handler = new \WPMailSMTP\Vendor\GuzzleHttp\Handler\CurlMultiHandler(); } - - if (ini_get('allow_url_fopen')) { - $handler = $handler - ? Proxy::wrapStreaming($handler, new StreamHandler()) - : new StreamHandler(); + if (\ini_get('allow_url_fopen')) { + $handler = $handler ? \WPMailSMTP\Vendor\GuzzleHttp\Handler\Proxy::wrapStreaming($handler, new \WPMailSMTP\Vendor\GuzzleHttp\Handler\StreamHandler()) : new \WPMailSMTP\Vendor\GuzzleHttp\Handler\StreamHandler(); } elseif (!$handler) { - throw new \RuntimeException('GuzzleHttp requires cURL, the ' - . 'allow_url_fopen ini setting, or a custom HTTP handler.'); + throw new \RuntimeException('GuzzleHttp requires cURL, the ' . 'allow_url_fopen ini setting, or a custom HTTP handler.'); } - return $handler; } - /** * Get the default User-Agent string to use with Guzzle * @@ -131,18 +114,15 @@ function choose_handler() function default_user_agent() { static $defaultAgent = ''; - if (!$defaultAgent) { - $defaultAgent = 'GuzzleHttp/' . Client::VERSION; - if (extension_loaded('curl') && function_exists('curl_version')) { + $defaultAgent = 'GuzzleHttp/' . \WPMailSMTP\Vendor\GuzzleHttp\Client::VERSION; + if (\extension_loaded('curl') && \function_exists('curl_version')) { $defaultAgent .= ' curl/' . \curl_version()['version']; } - $defaultAgent .= ' PHP/' . PHP_VERSION; + $defaultAgent .= ' PHP/' . \PHP_VERSION; } - return $defaultAgent; } - /** * Returns the default cacert bundle for the current system. * @@ -177,27 +157,21 @@ function default_ca_bundle() 'C:\\windows\\system32\\curl-ca-bundle.crt', 'C:\\windows\\curl-ca-bundle.crt', ]; - if ($cached) { return $cached; } - - if ($ca = ini_get('openssl.cafile')) { + if ($ca = \ini_get('openssl.cafile')) { return $cached = $ca; } - - if ($ca = ini_get('curl.cainfo')) { + if ($ca = \ini_get('curl.cainfo')) { return $cached = $ca; } - foreach ($cafiles as $filename) { - if (file_exists($filename)) { + if (\file_exists($filename)) { return $cached = $filename; } } - - throw new \RuntimeException( - <<< EOT + throw new \RuntimeException(<<generator = $generatorFn(); - $this->result = new Promise(function () { + $this->result = new \WPMailSMTP\Vendor\GuzzleHttp\Promise\Promise(function () { while (isset($this->currentPromise)) { $this->currentPromise->wait(); } }); $this->nextCoroutine($this->generator->current()); } - - public function then( - callable $onFulfilled = null, - callable $onRejected = null - ) { + public function then(callable $onFulfilled = null, callable $onRejected = null) + { return $this->result->then($onFulfilled, $onRejected); } - public function otherwise(callable $onRejected) { return $this->result->otherwise($onRejected); } - - public function wait($unwrap = true) + public function wait($unwrap = \true) { return $this->result->wait($unwrap); } - public function getState() { return $this->result->getState(); } - public function resolve($value) { $this->result->resolve($value); } - public function reject($reason) { $this->result->reject($reason); } - public function cancel() { $this->currentPromise->cancel(); $this->result->cancel(); } - private function nextCoroutine($yielded) { - $this->currentPromise = promise_for($yielded) - ->then([$this, '_handleSuccess'], [$this, '_handleFailure']); + $this->currentPromise = promise_for($yielded)->then([$this, '_handleSuccess'], [$this, '_handleFailure']); } - /** * @internal */ @@ -125,13 +110,12 @@ final class Coroutine implements PromiseInterface } else { $this->result->resolve($value); } - } catch (Exception $exception) { + } catch (\Exception $exception) { $this->result->reject($exception); - } catch (Throwable $throwable) { + } catch (\Throwable $throwable) { $this->result->reject($throwable); } } - /** * @internal */ @@ -142,9 +126,9 @@ final class Coroutine implements PromiseInterface $nextYield = $this->generator->throw(exception_for($reason)); // The throw was caught, so keep iterating on the coroutine $this->nextCoroutine($nextYield); - } catch (Exception $exception) { + } catch (\Exception $exception) { $this->result->reject($exception); - } catch (Throwable $throwable) { + } catch (\Throwable $throwable) { $this->result->reject($throwable); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/promises/src/EachPromise.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/promises/src/EachPromise.php similarity index 75% rename from wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/promises/src/EachPromise.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/promises/src/EachPromise.php index d0ddf60..8292688 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/promises/src/EachPromise.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/promises/src/EachPromise.php @@ -1,32 +1,26 @@ iterable = iter_for($iterable); - if (isset($config['concurrency'])) { $this->concurrency = $config['concurrency']; } - if (isset($config['fulfilled'])) { $this->onFulfilled = $config['fulfilled']; } - if (isset($config['rejected'])) { $this->onRejected = $config['rejected']; } } - public function promise() { if ($this->aggregate) { return $this->aggregate; } - try { $this->createPromise(); $this->iterable->rewind(); @@ -80,53 +69,45 @@ class EachPromise implements PromisorInterface } catch (\Exception $e) { $this->aggregate->reject($e); } - return $this->aggregate; } - private function createPromise() { - $this->mutex = false; - $this->aggregate = new Promise(function () { - reset($this->pending); + $this->mutex = \false; + $this->aggregate = new \WPMailSMTP\Vendor\GuzzleHttp\Promise\Promise(function () { + \reset($this->pending); if (empty($this->pending) && !$this->iterable->valid()) { $this->aggregate->resolve(null); return; } - // Consume a potentially fluctuating list of promises while // ensuring that indexes are maintained (precluding array_shift). - while ($promise = current($this->pending)) { - next($this->pending); + while ($promise = \current($this->pending)) { + \next($this->pending); $promise->wait(); - if ($this->aggregate->getState() !== PromiseInterface::PENDING) { + if ($this->aggregate->getState() !== \WPMailSMTP\Vendor\GuzzleHttp\Promise\PromiseInterface::PENDING) { return; } } }); - // Clear the references when the promise is resolved. $clearFn = function () { $this->iterable = $this->concurrency = $this->pending = null; $this->onFulfilled = $this->onRejected = null; }; - $this->aggregate->then($clearFn, $clearFn); } - private function refillPending() { if (!$this->concurrency) { // Add all pending promises. - while ($this->addPending() && $this->advanceIterator()); + while ($this->addPending() && $this->advanceIterator()) { + } return; } - // Add only up to N pending promises. - $concurrency = is_callable($this->concurrency) - ? call_user_func($this->concurrency, count($this->pending)) - : $this->concurrency; - $concurrency = max($concurrency - count($this->pending), 0); + $concurrency = \is_callable($this->concurrency) ? \call_user_func($this->concurrency, \count($this->pending)) : $this->concurrency; + $concurrency = \max($concurrency - \count($this->pending), 0); // Concurrency may be set to 0 to disallow new promises. if (!$concurrency) { return; @@ -137,76 +118,58 @@ class EachPromise implements PromisorInterface // not advance the iterator after adding the first promise. This // helps work around issues with generators that might not have the // next value to yield until promise callbacks are called. - while (--$concurrency - && $this->advanceIterator() - && $this->addPending()); + while (--$concurrency && $this->advanceIterator() && $this->addPending()) { + } } - private function addPending() { if (!$this->iterable || !$this->iterable->valid()) { - return false; + return \false; } - $promise = promise_for($this->iterable->current()); $idx = $this->iterable->key(); - - $this->pending[$idx] = $promise->then( - function ($value) use ($idx) { - if ($this->onFulfilled) { - call_user_func( - $this->onFulfilled, $value, $idx, $this->aggregate - ); - } - $this->step($idx); - }, - function ($reason) use ($idx) { - if ($this->onRejected) { - call_user_func( - $this->onRejected, $reason, $idx, $this->aggregate - ); - } - $this->step($idx); + $this->pending[$idx] = $promise->then(function ($value) use($idx) { + if ($this->onFulfilled) { + \call_user_func($this->onFulfilled, $value, $idx, $this->aggregate); } - ); - - return true; + $this->step($idx); + }, function ($reason) use($idx) { + if ($this->onRejected) { + \call_user_func($this->onRejected, $reason, $idx, $this->aggregate); + } + $this->step($idx); + }); + return \true; } - private function advanceIterator() { // Place a lock on the iterator so that we ensure to not recurse, // preventing fatal generator errors. if ($this->mutex) { - return false; + return \false; } - - $this->mutex = true; - + $this->mutex = \true; try { $this->iterable->next(); - $this->mutex = false; - return true; + $this->mutex = \false; + return \true; } catch (\Throwable $e) { $this->aggregate->reject($e); - $this->mutex = false; - return false; + $this->mutex = \false; + return \false; } catch (\Exception $e) { $this->aggregate->reject($e); - $this->mutex = false; - return false; + $this->mutex = \false; + return \false; } } - private function step($idx) { // If the promise was already resolved, then ignore this step. - if ($this->aggregate->getState() !== PromiseInterface::PENDING) { + if ($this->aggregate->getState() !== \WPMailSMTP\Vendor\GuzzleHttp\Promise\PromiseInterface::PENDING) { return; } - unset($this->pending[$idx]); - // Only refill pending promises if we are not locked, preventing the // EachPromise to recursively invoke the provided iterator, which // cause a fatal error: "Cannot resume an already running generator" @@ -215,15 +178,13 @@ class EachPromise implements PromisorInterface $this->refillPending(); } } - private function checkIfFinished() { if (!$this->pending && !$this->iterable->valid()) { // Resolve the promise if there's nothing left to do. $this->aggregate->resolve(null); - return true; + return \true; } - - return false; + return \false; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/promises/src/FulfilledPromise.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/promises/src/FulfilledPromise.php similarity index 70% rename from wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/promises/src/FulfilledPromise.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/promises/src/FulfilledPromise.php index dbbeeb9..c994da3 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/promises/src/FulfilledPromise.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/promises/src/FulfilledPromise.php @@ -1,5 +1,6 @@ value = $value; } - - public function then( - callable $onFulfilled = null, - callable $onRejected = null - ) { + public function then(callable $onFulfilled = null, callable $onRejected = null) + { // Return itself if there is no onFulfilled function. if (!$onFulfilled) { return $this; } - $queue = queue(); - $p = new Promise([$queue, 'run']); + $p = new \WPMailSMTP\Vendor\GuzzleHttp\Promise\Promise([$queue, 'run']); $value = $this->value; - $queue->add(static function () use ($p, $value, $onFulfilled) { + $queue->add(static function () use($p, $value, $onFulfilled) { if ($p->getState() === self::PENDING) { try { $p->resolve($onFulfilled($value)); @@ -44,37 +38,30 @@ class FulfilledPromise implements PromiseInterface } } }); - return $p; } - public function otherwise(callable $onRejected) { return $this->then(null, $onRejected); } - - public function wait($unwrap = true, $defaultDelivery = null) + public function wait($unwrap = \true, $defaultDelivery = null) { return $unwrap ? $this->value : null; } - public function getState() { return self::FULFILLED; } - public function resolve($value) { if ($value !== $this->value) { throw new \LogicException("Cannot resolve a fulfilled promise"); } } - public function reject($reason) { throw new \LogicException("Cannot reject a fulfilled promise"); } - public function cancel() { // pass diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/promises/src/Promise.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/promises/src/Promise.php similarity index 73% rename from wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/promises/src/Promise.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/promises/src/Promise.php index 844ada0..581ee44 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/promises/src/Promise.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/promises/src/Promise.php @@ -1,12 +1,13 @@ waitFn = $waitFn; $this->cancelFn = $cancelFn; } - - public function then( - callable $onFulfilled = null, - callable $onRejected = null - ) { + public function then(callable $onFulfilled = null, callable $onRejected = null) + { if ($this->state === self::PENDING) { - $p = new Promise(null, [$this, 'cancel']); + $p = new \WPMailSMTP\Vendor\GuzzleHttp\Promise\Promise(null, [$this, 'cancel']); $this->handlers[] = [$p, $onFulfilled, $onRejected]; $p->waitList = $this->waitList; $p->waitList[] = $this; return $p; } - // Return a fulfilled promise and immediately invoke any callbacks. if ($this->state === self::FULFILLED) { - return $onFulfilled - ? promise_for($this->result)->then($onFulfilled) - : promise_for($this->result); + return $onFulfilled ? promise_for($this->result)->then($onFulfilled) : promise_for($this->result); } - // It's either cancelled or rejected, so return a rejected promise // and immediately invoke any callbacks. $rejection = rejection_for($this->result); return $onRejected ? $rejection->then(null, $onRejected) : $rejection; } - public function otherwise(callable $onRejected) { return $this->then(null, $onRejected); } - - public function wait($unwrap = true) + public function wait($unwrap = \true) { $this->waitIfPending(); - - $inner = $this->result instanceof PromiseInterface - ? $this->result->wait($unwrap) - : $this->result; - + $inner = $this->result instanceof \WPMailSMTP\Vendor\GuzzleHttp\Promise\PromiseInterface ? $this->result->wait($unwrap) : $this->result; if ($unwrap) { - if ($this->result instanceof PromiseInterface - || $this->state === self::FULFILLED - ) { + if ($this->result instanceof \WPMailSMTP\Vendor\GuzzleHttp\Promise\PromiseInterface || $this->state === self::FULFILLED) { return $inner; } else { // It's rejected so "unwrap" and throw an exception. @@ -76,20 +59,16 @@ class Promise implements PromiseInterface } } } - public function getState() { return $this->state; } - public function cancel() { if ($this->state !== self::PENDING) { return; } - $this->waitFn = $this->waitList = null; - if ($this->cancelFn) { $fn = $this->cancelFn; $this->cancelFn = null; @@ -101,23 +80,19 @@ class Promise implements PromiseInterface $this->reject($e); } } - // Reject the promise only if it wasn't rejected in a then callback. if ($this->state === self::PENDING) { - $this->reject(new CancellationException('Promise has been cancelled')); + $this->reject(new \WPMailSMTP\Vendor\GuzzleHttp\Promise\CancellationException('Promise has been cancelled')); } } - public function resolve($value) { $this->settle(self::FULFILLED, $value); } - public function reject($reason) { $this->settle(self::REJECTED, $reason); } - private function settle($state, $value) { if ($this->state !== self::PENDING) { @@ -125,15 +100,11 @@ class Promise implements PromiseInterface if ($state === $this->state && $value === $this->result) { return; } - throw $this->state === $state - ? new \LogicException("The promise is already {$state}.") - : new \LogicException("Cannot change a {$this->state} promise to {$state}"); + throw $this->state === $state ? new \LogicException("The promise is already {$state}.") : new \LogicException("Cannot change a {$this->state} promise to {$state}"); } - if ($value === $this) { throw new \LogicException('Cannot fulfill or reject a promise with itself'); } - // Clear out the state of the promise but stash the handlers. $this->state = $state; $this->result = $value; @@ -141,43 +112,35 @@ class Promise implements PromiseInterface $this->handlers = null; $this->waitList = $this->waitFn = null; $this->cancelFn = null; - if (!$handlers) { return; } - // If the value was not a settled promise or a thenable, then resolve // it in the task queue using the correct ID. - if (!method_exists($value, 'then')) { + if (!\method_exists($value, 'then')) { $id = $state === self::FULFILLED ? 1 : 2; // It's a success, so resolve the handlers in the queue. - queue()->add(static function () use ($id, $value, $handlers) { + queue()->add(static function () use($id, $value, $handlers) { foreach ($handlers as $handler) { self::callHandler($id, $value, $handler); } }); - } elseif ($value instanceof Promise - && $value->getState() === self::PENDING - ) { + } elseif ($value instanceof \WPMailSMTP\Vendor\GuzzleHttp\Promise\Promise && $value->getState() === self::PENDING) { // We can just merge our handlers onto the next promise. - $value->handlers = array_merge($value->handlers, $handlers); + $value->handlers = \array_merge($value->handlers, $handlers); } else { // Resolve the handlers when the forwarded promise is resolved. - $value->then( - static function ($value) use ($handlers) { - foreach ($handlers as $handler) { - self::callHandler(1, $value, $handler); - } - }, - static function ($reason) use ($handlers) { - foreach ($handlers as $handler) { - self::callHandler(2, $reason, $handler); - } + $value->then(static function ($value) use($handlers) { + foreach ($handlers as $handler) { + self::callHandler(1, $value, $handler); } - ); + }, static function ($reason) use($handlers) { + foreach ($handlers as $handler) { + self::callHandler(2, $reason, $handler); + } + }); } } - /** * Call a stack of handlers using a specific callback index and value. * @@ -191,13 +154,11 @@ class Promise implements PromiseInterface { /** @var PromiseInterface $promise */ $promise = $handler[0]; - // The promise may have been cancelled or resolved before placing // this thunk in the queue. if ($promise->getState() !== self::PENDING) { return; } - try { if (isset($handler[$index])) { $promise->resolve($handler[$index]($value)); @@ -214,7 +175,6 @@ class Promise implements PromiseInterface $promise->reject($reason); } } - private function waitIfPending() { if ($this->state !== self::PENDING) { @@ -225,25 +185,19 @@ class Promise implements PromiseInterface $this->invokeWaitList(); } else { // If there's not wait function, then reject the promise. - $this->reject('Cannot wait on a promise that has ' - . 'no internal wait function. You must provide a wait ' - . 'function when constructing the promise to be able to ' - . 'wait on a promise.'); + $this->reject('Cannot wait on a promise that has ' . 'no internal wait function. You must provide a wait ' . 'function when constructing the promise to be able to ' . 'wait on a promise.'); } - queue()->run(); - if ($this->state === self::PENDING) { $this->reject('Invoking the wait callback did not resolve the promise'); } } - private function invokeWaitFn() { try { $wfn = $this->waitFn; $this->waitFn = null; - $wfn(true); + $wfn(\true); } catch (\Exception $reason) { if ($this->state === self::PENDING) { // The promise has not been resolved yet, so reject the promise @@ -256,21 +210,18 @@ class Promise implements PromiseInterface } } } - private function invokeWaitList() { $waitList = $this->waitList; $this->waitList = null; - foreach ($waitList as $result) { - while (true) { + while (\true) { $result->waitIfPending(); - - if ($result->result instanceof Promise) { + if ($result->result instanceof \WPMailSMTP\Vendor\GuzzleHttp\Promise\Promise) { $result = $result->result; } else { - if ($result->result instanceof PromiseInterface) { - $result->result->wait(false); + if ($result->result instanceof \WPMailSMTP\Vendor\GuzzleHttp\Promise\PromiseInterface) { + $result->result->wait(\false); } break; } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/promises/src/PromiseInterface.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/promises/src/PromiseInterface.php similarity index 93% rename from wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/promises/src/PromiseInterface.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/promises/src/PromiseInterface.php index 8f5f4b9..de948aa 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/promises/src/PromiseInterface.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/promises/src/PromiseInterface.php @@ -1,5 +1,6 @@ reason = $reason; } - - public function then( - callable $onFulfilled = null, - callable $onRejected = null - ) { + public function then(callable $onFulfilled = null, callable $onRejected = null) + { // If there's no onRejected callback then just return self. if (!$onRejected) { return $this; } - $queue = queue(); $reason = $this->reason; - $p = new Promise([$queue, 'run']); - $queue->add(static function () use ($p, $reason, $onRejected) { + $p = new \WPMailSMTP\Vendor\GuzzleHttp\Promise\Promise([$queue, 'run']); + $queue->add(static function () use($p, $reason, $onRejected) { if ($p->getState() === self::PENDING) { try { // Return a resolved promise if onRejected does not throw. @@ -47,39 +41,32 @@ class RejectedPromise implements PromiseInterface } } }); - return $p; } - public function otherwise(callable $onRejected) { return $this->then(null, $onRejected); } - - public function wait($unwrap = true, $defaultDelivery = null) + public function wait($unwrap = \true, $defaultDelivery = null) { if ($unwrap) { throw exception_for($this->reason); } } - public function getState() { return self::REJECTED; } - public function resolve($value) { throw new \LogicException("Cannot resolve a rejected promise"); } - public function reject($reason) { if ($reason !== $this->reason) { throw new \LogicException("Cannot reject a rejected promise"); } } - public function cancel() { // pass diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/promises/src/RejectionException.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/promises/src/RejectionException.php similarity index 78% rename from wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/promises/src/RejectionException.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/promises/src/RejectionException.php index 07c1136..c8e677d 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/promises/src/RejectionException.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/promises/src/RejectionException.php @@ -1,5 +1,6 @@ reason = $reason; - $message = 'The promise was rejected'; - if ($description) { $message .= ' with reason: ' . $description; - } elseif (is_string($reason) - || (is_object($reason) && method_exists($reason, '__toString')) - ) { + } elseif (\is_string($reason) || \is_object($reason) && \method_exists($reason, '__toString')) { $message .= ' with reason: ' . $this->reason; } elseif ($reason instanceof \JsonSerializable) { - $message .= ' with reason: ' - . json_encode($this->reason, JSON_PRETTY_PRINT); + $message .= ' with reason: ' . \json_encode($this->reason, \JSON_PRETTY_PRINT); } - parent::__construct($message); } - /** * Returns the rejection reason. * diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/promises/src/TaskQueue.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/promises/src/TaskQueue.php similarity index 75% rename from wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/promises/src/TaskQueue.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/promises/src/TaskQueue.php index 6e8a2a0..3d2ace8 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/promises/src/TaskQueue.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/promises/src/TaskQueue.php @@ -1,5 +1,6 @@ run(); */ -class TaskQueue implements TaskQueueInterface +class TaskQueue implements \WPMailSMTP\Vendor\GuzzleHttp\Promise\TaskQueueInterface { - private $enableShutdown = true; + private $enableShutdown = \true; private $queue = []; - - public function __construct($withShutdown = true) + public function __construct($withShutdown = \true) { if ($withShutdown) { - register_shutdown_function(function () { + \register_shutdown_function(function () { if ($this->enableShutdown) { // Only run the tasks if an E_ERROR didn't occur. - $err = error_get_last(); - if (!$err || ($err['type'] ^ E_ERROR)) { + $err = \error_get_last(); + if (!$err || $err['type'] ^ \E_ERROR) { $this->run(); } } }); } } - public function isEmpty() { return !$this->queue; } - public function add(callable $task) { $this->queue[] = $task; } - public function run() { /** @var callable $task */ - while ($task = array_shift($this->queue)) { + while ($task = \array_shift($this->queue)) { $task(); } } - /** * The task queue will be run and exhausted by default when the process * exits IFF the exit is not the result of a PHP E_ERROR error. @@ -61,6 +57,6 @@ class TaskQueue implements TaskQueueInterface */ public function disableShutdown() { - $this->enableShutdown = false; + $this->enableShutdown = \false; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/promises/src/TaskQueueInterface.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/promises/src/TaskQueueInterface.php similarity index 90% rename from wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/promises/src/TaskQueueInterface.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/promises/src/TaskQueueInterface.php index ac8306e..a401bae 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/promises/src/TaskQueueInterface.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/promises/src/TaskQueueInterface.php @@ -1,5 +1,6 @@ add(function () use ($task, $promise) { + $promise = new \WPMailSMTP\Vendor\GuzzleHttp\Promise\Promise([$queue, 'run']); + $queue->add(function () use($task, $promise) { try { $promise->resolve($task()); } catch (\Throwable $e) { @@ -52,10 +50,8 @@ function task(callable $task) $promise->reject($e); } }); - return $promise; } - /** * Creates a promise for a value if the value is not a promise. * @@ -65,22 +61,19 @@ function task(callable $task) */ function promise_for($value) { - if ($value instanceof PromiseInterface) { + if ($value instanceof \WPMailSMTP\Vendor\GuzzleHttp\Promise\PromiseInterface) { return $value; } - // Return a Guzzle promise that shadows the given promise. - if (method_exists($value, 'then')) { - $wfn = method_exists($value, 'wait') ? [$value, 'wait'] : null; - $cfn = method_exists($value, 'cancel') ? [$value, 'cancel'] : null; - $promise = new Promise($wfn, $cfn); + if (\method_exists($value, 'then')) { + $wfn = \method_exists($value, 'wait') ? [$value, 'wait'] : null; + $cfn = \method_exists($value, 'cancel') ? [$value, 'cancel'] : null; + $promise = new \WPMailSMTP\Vendor\GuzzleHttp\Promise\Promise($wfn, $cfn); $value->then([$promise, 'resolve'], [$promise, 'reject']); return $promise; } - - return new FulfilledPromise($value); + return new \WPMailSMTP\Vendor\GuzzleHttp\Promise\FulfilledPromise($value); } - /** * Creates a rejected promise for a reason if the reason is not a promise. If * the provided reason is a promise, then it is returned as-is. @@ -91,13 +84,11 @@ function promise_for($value) */ function rejection_for($reason) { - if ($reason instanceof PromiseInterface) { + if ($reason instanceof \WPMailSMTP\Vendor\GuzzleHttp\Promise\PromiseInterface) { return $reason; } - - return new RejectedPromise($reason); + return new \WPMailSMTP\Vendor\GuzzleHttp\Promise\RejectedPromise($reason); } - /** * Create an exception for a rejected promise value. * @@ -107,11 +98,8 @@ function rejection_for($reason) */ function exception_for($reason) { - return $reason instanceof \Exception || $reason instanceof \Throwable - ? $reason - : new RejectionException($reason); + return $reason instanceof \Exception || $reason instanceof \Throwable ? $reason : new \WPMailSMTP\Vendor\GuzzleHttp\Promise\RejectionException($reason); } - /** * Returns an iterator for the given value. * @@ -123,13 +111,12 @@ function iter_for($value) { if ($value instanceof \Iterator) { return $value; - } elseif (is_array($value)) { + } elseif (\is_array($value)) { return new \ArrayIterator($value); } else { return new \ArrayIterator([$value]); } } - /** * Synchronously waits on a promise to resolve and returns an inspection state * array. @@ -144,22 +131,18 @@ function iter_for($value) * * @return array */ -function inspect(PromiseInterface $promise) +function inspect(\WPMailSMTP\Vendor\GuzzleHttp\Promise\PromiseInterface $promise) { try { - return [ - 'state' => PromiseInterface::FULFILLED, - 'value' => $promise->wait() - ]; - } catch (RejectionException $e) { - return ['state' => PromiseInterface::REJECTED, 'reason' => $e->getReason()]; + return ['state' => \WPMailSMTP\Vendor\GuzzleHttp\Promise\PromiseInterface::FULFILLED, 'value' => $promise->wait()]; + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Promise\RejectionException $e) { + return ['state' => \WPMailSMTP\Vendor\GuzzleHttp\Promise\PromiseInterface::REJECTED, 'reason' => $e->getReason()]; } catch (\Throwable $e) { - return ['state' => PromiseInterface::REJECTED, 'reason' => $e]; + return ['state' => \WPMailSMTP\Vendor\GuzzleHttp\Promise\PromiseInterface::REJECTED, 'reason' => $e]; } catch (\Exception $e) { - return ['state' => PromiseInterface::REJECTED, 'reason' => $e]; + return ['state' => \WPMailSMTP\Vendor\GuzzleHttp\Promise\PromiseInterface::REJECTED, 'reason' => $e]; } } - /** * Waits on all of the provided promises, but does not unwrap rejected promises * as thrown exception. @@ -177,10 +160,8 @@ function inspect_all($promises) foreach ($promises as $key => $promise) { $results[$key] = inspect($promise); } - return $results; } - /** * Waits on all of the provided promises and returns the fulfilled values. * @@ -200,10 +181,8 @@ function unwrap($promises) foreach ($promises as $key => $promise) { $results[$key] = $promise->wait(); } - return $results; } - /** * Given an array of promises, return a promise that is fulfilled when all the * items in the array are fulfilled. @@ -219,20 +198,15 @@ function unwrap($promises) function all($promises) { $results = []; - return each( - $promises, - function ($value, $idx) use (&$results) { - $results[$idx] = $value; - }, - function ($reason, $idx, Promise $aggregate) { - $aggregate->reject($reason); - } - )->then(function () use (&$results) { - ksort($results); + return \each($promises, function ($value, $idx) use(&$results) { + $results[$idx] = $value; + }, function ($reason, $idx, \WPMailSMTP\Vendor\GuzzleHttp\Promise\Promise $aggregate) { + $aggregate->reject($reason); + })->then(function () use(&$results) { + \ksort($results); return $results; }); } - /** * Initiate a competitive race between multiple promises or values (values will * become immediately fulfilled promises). @@ -253,35 +227,24 @@ function some($count, $promises) { $results = []; $rejections = []; - - return each( - $promises, - function ($value, $idx, PromiseInterface $p) use (&$results, $count) { - if ($p->getState() !== PromiseInterface::PENDING) { - return; - } - $results[$idx] = $value; - if (count($results) >= $count) { - $p->resolve(null); - } - }, - function ($reason) use (&$rejections) { - $rejections[] = $reason; + return \each($promises, function ($value, $idx, \WPMailSMTP\Vendor\GuzzleHttp\Promise\PromiseInterface $p) use(&$results, $count) { + if ($p->getState() !== \WPMailSMTP\Vendor\GuzzleHttp\Promise\PromiseInterface::PENDING) { + return; } - )->then( - function () use (&$results, &$rejections, $count) { - if (count($results) !== $count) { - throw new AggregateException( - 'Not enough promises to fulfill count', - $rejections - ); - } - ksort($results); - return array_values($results); + $results[$idx] = $value; + if (\count($results) >= $count) { + $p->resolve(null); } - ); + }, function ($reason) use(&$rejections) { + $rejections[] = $reason; + })->then(function () use(&$results, &$rejections, $count) { + if (\count($results) !== $count) { + throw new \WPMailSMTP\Vendor\GuzzleHttp\Promise\AggregateException('Not enough promises to fulfill count', $rejections); + } + \ksort($results); + return \array_values($results); + }); } - /** * Like some(), with 1 as count. However, if the promise fulfills, the * fulfillment value is not an array of 1 but the value directly. @@ -292,9 +255,10 @@ function some($count, $promises) */ function any($promises) { - return some(1, $promises)->then(function ($values) { return $values[0]; }); + return some(1, $promises)->then(function ($values) { + return $values[0]; + }); } - /** * Returns a promise that is fulfilled when all of the provided promises have * been fulfilled or rejected. @@ -309,21 +273,15 @@ function any($promises) function settle($promises) { $results = []; - - return each( - $promises, - function ($value, $idx) use (&$results) { - $results[$idx] = ['state' => PromiseInterface::FULFILLED, 'value' => $value]; - }, - function ($reason, $idx) use (&$results) { - $results[$idx] = ['state' => PromiseInterface::REJECTED, 'reason' => $reason]; - } - )->then(function () use (&$results) { - ksort($results); + return \each($promises, function ($value, $idx) use(&$results) { + $results[$idx] = ['state' => \WPMailSMTP\Vendor\GuzzleHttp\Promise\PromiseInterface::FULFILLED, 'value' => $value]; + }, function ($reason, $idx) use(&$results) { + $results[$idx] = ['state' => \WPMailSMTP\Vendor\GuzzleHttp\Promise\PromiseInterface::REJECTED, 'reason' => $reason]; + })->then(function () use(&$results) { + \ksort($results); return $results; }); } - /** * Given an iterator that yields promises or values, returns a promise that is * fulfilled with a null value when the iterator has been consumed or the @@ -343,17 +301,10 @@ function settle($promises) * * @return PromiseInterface */ -function each( - $iterable, - callable $onFulfilled = null, - callable $onRejected = null -) { - return (new EachPromise($iterable, [ - 'fulfilled' => $onFulfilled, - 'rejected' => $onRejected - ]))->promise(); +function each($iterable, callable $onFulfilled = null, callable $onRejected = null) +{ + return (new \WPMailSMTP\Vendor\GuzzleHttp\Promise\EachPromise($iterable, ['fulfilled' => $onFulfilled, 'rejected' => $onRejected]))->promise(); } - /** * Like each, but only allows a certain number of outstanding promises at any * given time. @@ -369,19 +320,10 @@ function each( * * @return PromiseInterface */ -function each_limit( - $iterable, - $concurrency, - callable $onFulfilled = null, - callable $onRejected = null -) { - return (new EachPromise($iterable, [ - 'fulfilled' => $onFulfilled, - 'rejected' => $onRejected, - 'concurrency' => $concurrency - ]))->promise(); +function each_limit($iterable, $concurrency, callable $onFulfilled = null, callable $onRejected = null) +{ + return (new \WPMailSMTP\Vendor\GuzzleHttp\Promise\EachPromise($iterable, ['fulfilled' => $onFulfilled, 'rejected' => $onRejected, 'concurrency' => $concurrency]))->promise(); } - /** * Like each_limit, but ensures that no promise in the given $iterable argument * is rejected. If any promise is rejected, then the aggregate promise is @@ -393,21 +335,12 @@ function each_limit( * * @return PromiseInterface */ -function each_limit_all( - $iterable, - $concurrency, - callable $onFulfilled = null -) { - return each_limit( - $iterable, - $concurrency, - $onFulfilled, - function ($reason, $idx, PromiseInterface $aggregate) { - $aggregate->reject($reason); - } - ); +function each_limit_all($iterable, $concurrency, callable $onFulfilled = null) +{ + return each_limit($iterable, $concurrency, $onFulfilled, function ($reason, $idx, \WPMailSMTP\Vendor\GuzzleHttp\Promise\PromiseInterface $aggregate) { + $aggregate->reject($reason); + }); } - /** * Returns true if a promise is fulfilled. * @@ -415,11 +348,10 @@ function each_limit_all( * * @return bool */ -function is_fulfilled(PromiseInterface $promise) +function is_fulfilled(\WPMailSMTP\Vendor\GuzzleHttp\Promise\PromiseInterface $promise) { - return $promise->getState() === PromiseInterface::FULFILLED; + return $promise->getState() === \WPMailSMTP\Vendor\GuzzleHttp\Promise\PromiseInterface::FULFILLED; } - /** * Returns true if a promise is rejected. * @@ -427,11 +359,10 @@ function is_fulfilled(PromiseInterface $promise) * * @return bool */ -function is_rejected(PromiseInterface $promise) +function is_rejected(\WPMailSMTP\Vendor\GuzzleHttp\Promise\PromiseInterface $promise) { - return $promise->getState() === PromiseInterface::REJECTED; + return $promise->getState() === \WPMailSMTP\Vendor\GuzzleHttp\Promise\PromiseInterface::REJECTED; } - /** * Returns true if a promise is fulfilled or rejected. * @@ -439,11 +370,10 @@ function is_rejected(PromiseInterface $promise) * * @return bool */ -function is_settled(PromiseInterface $promise) +function is_settled(\WPMailSMTP\Vendor\GuzzleHttp\Promise\PromiseInterface $promise) { - return $promise->getState() !== PromiseInterface::PENDING; + return $promise->getState() !== \WPMailSMTP\Vendor\GuzzleHttp\Promise\PromiseInterface::PENDING; } - /** * @see Coroutine * @@ -453,5 +383,5 @@ function is_settled(PromiseInterface $promise) */ function coroutine(callable $generatorFn) { - return new Coroutine($generatorFn); + return new \WPMailSMTP\Vendor\GuzzleHttp\Promise\Coroutine($generatorFn); } diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/promises/src/functions_include.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/promises/src/functions_include.php new file mode 100644 index 0000000..1e54915 --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/promises/src/functions_include.php @@ -0,0 +1,8 @@ +addStream($stream); } } - public function __toString() { try { @@ -37,7 +34,6 @@ class AppendStream implements StreamInterface return ''; } } - /** * Add a stream to the AppendStream * @@ -45,25 +41,21 @@ class AppendStream implements StreamInterface * * @throws \InvalidArgumentException if the stream is not readable */ - public function addStream(StreamInterface $stream) + public function addStream(\WPMailSMTP\Vendor\Psr\Http\Message\StreamInterface $stream) { if (!$stream->isReadable()) { throw new \InvalidArgumentException('Each stream must be readable'); } - // The stream is only seekable if all streams are seekable if (!$stream->isSeekable()) { - $this->seekable = false; + $this->seekable = \false; } - $this->streams[] = $stream; } - public function getContents() { return copy_to_string($this); } - /** * Closes each attached stream. * @@ -72,15 +64,12 @@ class AppendStream implements StreamInterface public function close() { $this->pos = $this->current = 0; - $this->seekable = true; - + $this->seekable = \true; foreach ($this->streams as $stream) { $stream->close(); } - $this->streams = []; } - /** * Detaches each attached stream. * @@ -91,20 +80,16 @@ class AppendStream implements StreamInterface public function detach() { $this->pos = $this->current = 0; - $this->seekable = true; - + $this->seekable = \true; foreach ($this->streams as $stream) { $stream->detach(); } - $this->streams = []; } - public function tell() { return $this->pos; } - /** * Tries to calculate the size by adding the size of each stream. * @@ -116,7 +101,6 @@ class AppendStream implements StreamInterface public function getSize() { $size = 0; - foreach ($this->streams as $stream) { $s = $stream->getSize(); if ($s === null) { @@ -124,56 +108,45 @@ class AppendStream implements StreamInterface } $size += $s; } - return $size; } - public function eof() { - return !$this->streams || - ($this->current >= count($this->streams) - 1 && - $this->streams[$this->current]->eof()); + return !$this->streams || $this->current >= \count($this->streams) - 1 && $this->streams[$this->current]->eof(); } - public function rewind() { $this->seek(0); } - /** * Attempts to seek to the given position. Only supports SEEK_SET. * * {@inheritdoc} */ - public function seek($offset, $whence = SEEK_SET) + public function seek($offset, $whence = \SEEK_SET) { if (!$this->seekable) { throw new \RuntimeException('This AppendStream is not seekable'); - } elseif ($whence !== SEEK_SET) { + } elseif ($whence !== \SEEK_SET) { throw new \RuntimeException('The AppendStream can only seek with SEEK_SET'); } - $this->pos = $this->current = 0; - // Rewind each stream foreach ($this->streams as $i => $stream) { try { $stream->rewind(); } catch (\Exception $e) { - throw new \RuntimeException('Unable to seek stream ' - . $i . ' of the AppendStream', 0, $e); + throw new \RuntimeException('Unable to seek stream ' . $i . ' of the AppendStream', 0, $e); } } - // Seek to the actual position by reading from each stream while ($this->pos < $offset && !$this->eof()) { - $result = $this->read(min(8096, $offset - $this->pos)); + $result = $this->read(\min(8096, $offset - $this->pos)); if ($result === '') { break; } } } - /** * Reads from all of the appended streams until the length is met or EOF. * @@ -182,58 +155,46 @@ class AppendStream implements StreamInterface public function read($length) { $buffer = ''; - $total = count($this->streams) - 1; + $total = \count($this->streams) - 1; $remaining = $length; - $progressToNext = false; - + $progressToNext = \false; while ($remaining > 0) { - // Progress to the next stream if needed. if ($progressToNext || $this->streams[$this->current]->eof()) { - $progressToNext = false; + $progressToNext = \false; if ($this->current === $total) { break; } $this->current++; } - $result = $this->streams[$this->current]->read($remaining); - // Using a loose comparison here to match on '', false, and null if ($result == null) { - $progressToNext = true; + $progressToNext = \true; continue; } - $buffer .= $result; - $remaining = $length - strlen($buffer); + $remaining = $length - \strlen($buffer); } - - $this->pos += strlen($buffer); - + $this->pos += \strlen($buffer); return $buffer; } - public function isReadable() { - return true; + return \true; } - public function isWritable() { - return false; + return \false; } - public function isSeekable() { return $this->seekable; } - public function write($string) { throw new \RuntimeException('Cannot write to an AppendStream'); } - public function getMetadata($key = null) { return $key ? null : []; diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/BufferStream.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/BufferStream.php similarity index 78% rename from wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/BufferStream.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/BufferStream.php index af4d4c2..bd94a63 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/BufferStream.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/BufferStream.php @@ -1,8 +1,8 @@ hwm = $hwm; } - public function __toString() { return $this->getContents(); } - public function getContents() { $buffer = $this->buffer; $this->buffer = ''; - return $buffer; } - public function close() { $this->buffer = ''; } - public function detach() { $this->close(); } - public function getSize() { - return strlen($this->buffer); + return \strlen($this->buffer); } - public function isReadable() { - return true; + return \true; } - public function isWritable() { - return true; + return \true; } - public function isSeekable() { - return false; + return \false; } - public function rewind() { $this->seek(0); } - - public function seek($offset, $whence = SEEK_SET) + public function seek($offset, $whence = \SEEK_SET) { throw new \RuntimeException('Cannot seek a BufferStream'); } - public function eof() { - return strlen($this->buffer) === 0; + return \strlen($this->buffer) === 0; } - public function tell() { throw new \RuntimeException('Cannot determine the position of a BufferStream'); } - /** * Reads data from the buffer. */ public function read($length) { - $currentLength = strlen($this->buffer); - + $currentLength = \strlen($this->buffer); if ($length >= $currentLength) { // No need to slice the buffer because we don't have enough data. $result = $this->buffer; $this->buffer = ''; } else { // Slice up the result to provide a subset of the buffer. - $result = substr($this->buffer, 0, $length); - $this->buffer = substr($this->buffer, $length); + $result = \substr($this->buffer, 0, $length); + $this->buffer = \substr($this->buffer, $length); } - return $result; } - /** * Writes data to the buffer. */ public function write($string) { $this->buffer .= $string; - // TODO: What should happen here? - if (strlen($this->buffer) >= $this->hwm) { - return false; + if (\strlen($this->buffer) >= $this->hwm) { + return \false; } - - return strlen($string); + return \strlen($string); } - public function getMetadata($key = null) { if ($key == 'hwm') { return $this->hwm; } - return $key ? null : []; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/CachingStream.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/CachingStream.php similarity index 72% rename from wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/CachingStream.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/CachingStream.php index ed68f08..ed2dd05 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/CachingStream.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/CachingStream.php @@ -1,53 +1,45 @@ remoteStream = $stream; - $this->stream = $target ?: new Stream(fopen('php://temp', 'r+')); + $this->stream = $target ?: new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Stream(\fopen('php://temp', 'r+')); } - public function getSize() { - return max($this->stream->getSize(), $this->remoteStream->getSize()); + return \max($this->stream->getSize(), $this->remoteStream->getSize()); } - public function rewind() { $this->seek(0); } - - public function seek($offset, $whence = SEEK_SET) + public function seek($offset, $whence = \SEEK_SET) { - if ($whence == SEEK_SET) { + if ($whence == \SEEK_SET) { $byte = $offset; - } elseif ($whence == SEEK_CUR) { + } elseif ($whence == \SEEK_CUR) { $byte = $offset + $this->tell(); - } elseif ($whence == SEEK_END) { + } elseif ($whence == \SEEK_END) { $size = $this->remoteStream->getSize(); if ($size === null) { $size = $this->cacheEntireStream(); @@ -56,9 +48,7 @@ class CachingStream implements StreamInterface } else { throw new \InvalidArgumentException('Invalid whence'); } - $diff = $byte - $this->stream->getSize(); - if ($diff > 0) { // Read the remoteStream until we have read in at least the amount // of bytes requested, or we reach the end of the file. @@ -71,55 +61,44 @@ class CachingStream implements StreamInterface $this->stream->seek($byte); } } - public function read($length) { // Perform a regular read on any previously read data from the buffer $data = $this->stream->read($length); - $remaining = $length - strlen($data); - + $remaining = $length - \strlen($data); // More data was requested so read from the remote stream if ($remaining) { // If data was written to the buffer in a position that would have // been filled from the remote stream, then we must skip bytes on // the remote stream to emulate overwriting bytes from that // position. This mimics the behavior of other PHP stream wrappers. - $remoteData = $this->remoteStream->read( - $remaining + $this->skipReadBytes - ); - + $remoteData = $this->remoteStream->read($remaining + $this->skipReadBytes); if ($this->skipReadBytes) { - $len = strlen($remoteData); - $remoteData = substr($remoteData, $this->skipReadBytes); - $this->skipReadBytes = max(0, $this->skipReadBytes - $len); + $len = \strlen($remoteData); + $remoteData = \substr($remoteData, $this->skipReadBytes); + $this->skipReadBytes = \max(0, $this->skipReadBytes - $len); } - $data .= $remoteData; $this->stream->write($remoteData); } - return $data; } - public function write($string) { // When appending to the end of the currently read stream, you'll want // to skip bytes from being read from the remote stream to emulate // other stream wrappers. Basically replacing bytes of data of a fixed // length. - $overflow = (strlen($string) + $this->tell()) - $this->remoteStream->tell(); + $overflow = \strlen($string) + $this->tell() - $this->remoteStream->tell(); if ($overflow > 0) { $this->skipReadBytes += $overflow; } - return $this->stream->write($string); } - public function eof() { return $this->stream->eof() && $this->remoteStream->eof(); } - /** * Close both the remote stream and buffer stream */ @@ -127,12 +106,10 @@ class CachingStream implements StreamInterface { $this->remoteStream->close() && $this->stream->close(); } - private function cacheEntireStream() { - $target = new FnStream(['write' => 'strlen']); + $target = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\FnStream(['write' => 'strlen']); copy_to_stream($this, $target); - return $this->tell(); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/DroppingStream.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/DroppingStream.php similarity index 66% rename from wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/DroppingStream.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/DroppingStream.php index 8935c80..cc3053d 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/DroppingStream.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/DroppingStream.php @@ -1,42 +1,36 @@ stream = $stream; $this->maxLength = $maxLength; } - public function write($string) { $diff = $this->maxLength - $this->stream->getSize(); - // Begin returning 0 when the underlying stream is too large. if ($diff <= 0) { return 0; } - // Write the stream or a subset of the stream if needed. - if (strlen($string) < $diff) { + if (\strlen($string) < $diff) { return $this->stream->write($string); } - - return $this->stream->write(substr($string, 0, $diff)); + return $this->stream->write(\substr($string, 0, $diff)); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/FnStream.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/FnStream.php similarity index 61% rename from wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/FnStream.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/FnStream.php index 73daea6..c0a21e9 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/FnStream.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/FnStream.php @@ -1,57 +1,48 @@ methods = $methods; - // Create the functions on the class foreach ($methods as $name => $fn) { $this->{'_fn_' . $name} = $fn; } } - /** * Lazily determine which methods are not implemented. * @throws \BadMethodCallException */ public function __get($name) { - throw new \BadMethodCallException(str_replace('_fn_', '', $name) - . '() is not implemented in the FnStream'); + throw new \BadMethodCallException(\str_replace('_fn_', '', $name) . '() is not implemented in the FnStream'); } - /** * The close method is called on the underlying stream only if possible. */ public function __destruct() { if (isset($this->_fn_close)) { - call_user_func($this->_fn_close); + \call_user_func($this->_fn_close); } } - /** * An unserialize would allow the __destruct to run when the unserialized value goes out of scope. * @throws \LogicException @@ -60,7 +51,6 @@ class FnStream implements StreamInterface { throw new \LogicException('FnStream should never be unserialized'); } - /** * Adds custom functionality to an underlying stream by intercepting * specific method calls. @@ -70,89 +60,73 @@ class FnStream implements StreamInterface * * @return FnStream */ - public static function decorate(StreamInterface $stream, array $methods) + public static function decorate(\WPMailSMTP\Vendor\Psr\Http\Message\StreamInterface $stream, array $methods) { // If any of the required methods were not provided, then simply // proxy to the decorated stream. - foreach (array_diff(self::$slots, array_keys($methods)) as $diff) { + foreach (\array_diff(self::$slots, \array_keys($methods)) as $diff) { $methods[$diff] = [$stream, $diff]; } - return new self($methods); } - public function __toString() { - return call_user_func($this->_fn___toString); + return \call_user_func($this->_fn___toString); } - public function close() { - return call_user_func($this->_fn_close); + return \call_user_func($this->_fn_close); } - public function detach() { - return call_user_func($this->_fn_detach); + return \call_user_func($this->_fn_detach); } - public function getSize() { - return call_user_func($this->_fn_getSize); + return \call_user_func($this->_fn_getSize); } - public function tell() { - return call_user_func($this->_fn_tell); + return \call_user_func($this->_fn_tell); } - public function eof() { - return call_user_func($this->_fn_eof); + return \call_user_func($this->_fn_eof); } - public function isSeekable() { - return call_user_func($this->_fn_isSeekable); + return \call_user_func($this->_fn_isSeekable); } - public function rewind() { - call_user_func($this->_fn_rewind); + \call_user_func($this->_fn_rewind); } - - public function seek($offset, $whence = SEEK_SET) + public function seek($offset, $whence = \SEEK_SET) { - call_user_func($this->_fn_seek, $offset, $whence); + \call_user_func($this->_fn_seek, $offset, $whence); } - public function isWritable() { - return call_user_func($this->_fn_isWritable); + return \call_user_func($this->_fn_isWritable); } - public function write($string) { - return call_user_func($this->_fn_write, $string); + return \call_user_func($this->_fn_write, $string); } - public function isReadable() { - return call_user_func($this->_fn_isReadable); + return \call_user_func($this->_fn_isReadable); } - public function read($length) { - return call_user_func($this->_fn_read, $length); + return \call_user_func($this->_fn_read, $length); } - public function getContents() { - return call_user_func($this->_fn_getContents); + return \call_user_func($this->_fn_getContents); } - public function getMetadata($key = null) { - return call_user_func($this->_fn_getMetadata, $key); + return \call_user_func($this->_fn_getMetadata, $key); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/InflateStream.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/InflateStream.php similarity index 52% rename from wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/InflateStream.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/InflateStream.php index 5e4f602..dfcea28 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/InflateStream.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/InflateStream.php @@ -1,8 +1,8 @@ read(10); $filenameHeaderLength = $this->getLengthOfPossibleFilenameHeader($stream, $header); // Skip the header, that is 10 + length of filename + 1 (nil) bytes - $stream = new LimitStream($stream, -1, 10 + $filenameHeaderLength); - $resource = StreamWrapper::getResource($stream); - stream_filter_append($resource, 'zlib.inflate', STREAM_FILTER_READ); - $this->stream = $stream->isSeekable() ? new Stream($resource) : new NoSeekStream(new Stream($resource)); + $stream = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\LimitStream($stream, -1, 10 + $filenameHeaderLength); + $resource = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\StreamWrapper::getResource($stream); + \stream_filter_append($resource, 'zlib.inflate', \STREAM_FILTER_READ); + $this->stream = $stream->isSeekable() ? new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Stream($resource) : new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\NoSeekStream(new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Stream($resource)); } - /** * @param StreamInterface $stream * @param $header * @return int */ - private function getLengthOfPossibleFilenameHeader(StreamInterface $stream, $header) + private function getLengthOfPossibleFilenameHeader(\WPMailSMTP\Vendor\Psr\Http\Message\StreamInterface $stream, $header) { $filename_header_length = 0; - - if (substr(bin2hex($header), 6, 2) === '08') { + if (\substr(\bin2hex($header), 6, 2) === '08') { // we have a filename, read until nil $filename_header_length = 1; - while ($stream->read(1) !== chr(0)) { + while ($stream->read(1) !== \chr(0)) { $filename_header_length++; } } - return $filename_header_length; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/LazyOpenStream.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/LazyOpenStream.php similarity index 80% rename from wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/LazyOpenStream.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/LazyOpenStream.php index 02cec3a..7ef6c46 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/LazyOpenStream.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/LazyOpenStream.php @@ -1,22 +1,19 @@ filename = $filename; $this->mode = $mode; } - /** * Creates the underlying stream lazily when required. * diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/LimitStream.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/LimitStream.php similarity index 80% rename from wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/LimitStream.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/LimitStream.php index e4f239e..4867bd4 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/LimitStream.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/LimitStream.php @@ -1,22 +1,18 @@ stream = $stream; $this->setLimit($limit); $this->setOffset($offset); } - public function eof() { // Always return true if the underlying stream is EOF if ($this->stream->eof()) { - return true; + return \true; } - // No limit and the underlying stream is not at EOF if ($this->limit == -1) { - return false; + return \false; } - return $this->stream->tell() >= $this->offset + $this->limit; } - /** * Returns the size of the limited subset of data * {@inheritdoc} @@ -60,35 +49,26 @@ class LimitStream implements StreamInterface } elseif ($this->limit == -1) { return $length - $this->offset; } else { - return min($this->limit, $length - $this->offset); + return \min($this->limit, $length - $this->offset); } } - /** * Allow for a bounded seek on the read limited stream * {@inheritdoc} */ - public function seek($offset, $whence = SEEK_SET) + public function seek($offset, $whence = \SEEK_SET) { - if ($whence !== SEEK_SET || $offset < 0) { - throw new \RuntimeException(sprintf( - 'Cannot seek to offset %s with whence %s', - $offset, - $whence - )); + if ($whence !== \SEEK_SET || $offset < 0) { + throw new \RuntimeException(\sprintf('Cannot seek to offset %s with whence %s', $offset, $whence)); } - $offset += $this->offset; - if ($this->limit !== -1) { if ($offset > $this->offset + $this->limit) { $offset = $this->offset + $this->limit; } } - $this->stream->seek($offset); } - /** * Give a relative tell() * {@inheritdoc} @@ -97,7 +77,6 @@ class LimitStream implements StreamInterface { return $this->stream->tell() - $this->offset; } - /** * Set the offset to start limiting from * @@ -108,21 +87,18 @@ class LimitStream implements StreamInterface public function setOffset($offset) { $current = $this->stream->tell(); - if ($current !== $offset) { // If the stream cannot seek to the offset position, then read to it if ($this->stream->isSeekable()) { $this->stream->seek($offset); } elseif ($current > $offset) { - throw new \RuntimeException("Could not seek to stream offset $offset"); + throw new \RuntimeException("Could not seek to stream offset {$offset}"); } else { $this->stream->read($offset - $current); } } - $this->offset = $offset; } - /** * Set the limit of bytes that the decorator allows to be read from the * stream. @@ -134,22 +110,19 @@ class LimitStream implements StreamInterface { $this->limit = $limit; } - public function read($length) { if ($this->limit == -1) { return $this->stream->read($length); } - // Check if the current position is less than the total allowed // bytes + original offset - $remaining = ($this->offset + $this->limit) - $this->stream->tell(); + $remaining = $this->offset + $this->limit - $this->stream->tell(); if ($remaining > 0) { // Only return the amount of requested data, ensuring that the byte // limit is not exceeded - return $this->stream->read(min($remaining, $length)); + return $this->stream->read(\min($remaining, $length)); } - return ''; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/MessageTrait.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/MessageTrait.php similarity index 75% rename from wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/MessageTrait.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/MessageTrait.php index a7966d1..0bbc220 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/MessageTrait.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/MessageTrait.php @@ -1,8 +1,8 @@ array of values */ private $headers = []; - /** @var array Map of lowercase header name => original name at registration */ - private $headerNames = []; - + private $headerNames = []; /** @var string */ private $protocol = '1.1'; - /** @var StreamInterface */ private $stream; - public function getProtocolVersion() { return $this->protocol; } - public function withProtocolVersion($version) { if ($this->protocol === $version) { return $this; } - $new = clone $this; $new->protocol = $version; return $new; } - public function getHeaders() { return $this->headers; } - public function hasHeader($header) { - return isset($this->headerNames[strtolower($header)]); + return isset($this->headerNames[\strtolower($header)]); } - public function getHeader($header) { - $header = strtolower($header); - + $header = \strtolower($header); if (!isset($this->headerNames[$header])) { return []; } - $header = $this->headerNames[$header]; - return $this->headers[$header]; } - public function getHeaderLine($header) { - return implode(', ', $this->getHeader($header)); + return \implode(', ', $this->getHeader($header)); } - public function withHeader($header, $value) { $this->assertHeader($header); $value = $this->normalizeHeaderValue($value); - $normalized = strtolower($header); - + $normalized = \strtolower($header); $new = clone $this; if (isset($new->headerNames[$normalized])) { unset($new->headers[$new->headerNames[$normalized]]); } $new->headerNames[$normalized] = $header; $new->headers[$header] = $value; - return $new; } - public function withAddedHeader($header, $value) { $this->assertHeader($header); $value = $this->normalizeHeaderValue($value); - $normalized = strtolower($header); - + $normalized = \strtolower($header); $new = clone $this; if (isset($new->headerNames[$normalized])) { $header = $this->headerNames[$normalized]; - $new->headers[$header] = array_merge($this->headers[$header], $value); + $new->headers[$header] = \array_merge($this->headers[$header], $value); } else { $new->headerNames[$normalized] = $header; $new->headers[$header] = $value; } - return $new; } - public function withoutHeader($header) { - $normalized = strtolower($header); - + $normalized = \strtolower($header); if (!isset($this->headerNames[$normalized])) { return $this; } - $header = $this->headerNames[$normalized]; - $new = clone $this; unset($new->headers[$header], $new->headerNames[$normalized]); - return $new; } - public function getBody() { if (!$this->stream) { $this->stream = stream_for(''); } - return $this->stream; } - - public function withBody(StreamInterface $body) + public function withBody(\WPMailSMTP\Vendor\Psr\Http\Message\StreamInterface $body) { if ($body === $this->stream) { return $this; } - $new = clone $this; $new->stream = $body; return $new; } - private function setHeaders(array $headers) { $this->headerNames = $this->headers = []; foreach ($headers as $header => $value) { - if (is_int($header)) { + if (\is_int($header)) { // Numeric array keys are converted to int by PHP but having a header name '123' is not forbidden by the spec // and also allowed in withHeader(). So we need to cast it to string again for the following assertion to pass. $header = (string) $header; } $this->assertHeader($header); $value = $this->normalizeHeaderValue($value); - $normalized = strtolower($header); + $normalized = \strtolower($header); if (isset($this->headerNames[$normalized])) { $header = $this->headerNames[$normalized]; - $this->headers[$header] = array_merge($this->headers[$header], $value); + $this->headers[$header] = \array_merge($this->headers[$header], $value); } else { $this->headerNames[$normalized] = $header; $this->headers[$header] = $value; } } } - private function normalizeHeaderValue($value) { - if (!is_array($value)) { + if (!\is_array($value)) { return $this->trimHeaderValues([$value]); } - - if (count($value) === 0) { + if (\count($value) === 0) { throw new \InvalidArgumentException('Header value can not be an empty array.'); } - return $this->trimHeaderValues($value); } - /** * Trims whitespace from the header values. * @@ -185,27 +152,18 @@ trait MessageTrait */ private function trimHeaderValues(array $values) { - return array_map(function ($value) { - if (!is_scalar($value) && null !== $value) { - throw new \InvalidArgumentException(sprintf( - 'Header value must be scalar or null but %s provided.', - is_object($value) ? get_class($value) : gettype($value) - )); + return \array_map(function ($value) { + if (!\is_scalar($value) && null !== $value) { + throw new \InvalidArgumentException(\sprintf('Header value must be scalar or null but %s provided.', \is_object($value) ? \get_class($value) : \gettype($value))); } - - return trim((string) $value, " \t"); + return \trim((string) $value, " \t"); }, $values); } - private function assertHeader($header) { - if (!is_string($header)) { - throw new \InvalidArgumentException(sprintf( - 'Header name must be a string but %s provided.', - is_object($header) ? get_class($header) : gettype($header) - )); + if (!\is_string($header)) { + throw new \InvalidArgumentException(\sprintf('Header name must be a string but %s provided.', \is_object($header) ? \get_class($header) : \gettype($header))); } - if ($header === '') { throw new \InvalidArgumentException('Header name can not be empty.'); } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/MultipartStream.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/MultipartStream.php similarity index 73% rename from wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/MultipartStream.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/MultipartStream.php index c0fd584..725ff58 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/MultipartStream.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/MultipartStream.php @@ -1,18 +1,16 @@ boundary = $boundary ?: sha1(uniqid('', true)); + $this->boundary = $boundary ?: \sha1(\uniqid('', \true)); $this->stream = $this->createStream($elements); } - /** * Get the boundary * @@ -40,12 +37,10 @@ class MultipartStream implements StreamInterface { return $this->boundary; } - public function isWritable() { - return false; + return \false; } - /** * Get the headers needed before transferring the content of a POST file */ @@ -55,71 +50,50 @@ class MultipartStream implements StreamInterface foreach ($headers as $key => $value) { $str .= "{$key}: {$value}\r\n"; } - - return "--{$this->boundary}\r\n" . trim($str) . "\r\n\r\n"; + return "--{$this->boundary}\r\n" . \trim($str) . "\r\n\r\n"; } - /** * Create the aggregate stream that will be used to upload the POST data */ protected function createStream(array $elements) { - $stream = new AppendStream(); - + $stream = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\AppendStream(); foreach ($elements as $element) { $this->addElement($stream, $element); } - // Add the trailing boundary with CRLF $stream->addStream(stream_for("--{$this->boundary}--\r\n")); - return $stream; } - - private function addElement(AppendStream $stream, array $element) + private function addElement(\WPMailSMTP\Vendor\GuzzleHttp\Psr7\AppendStream $stream, array $element) { foreach (['contents', 'name'] as $key) { - if (!array_key_exists($key, $element)) { + if (!\array_key_exists($key, $element)) { throw new \InvalidArgumentException("A '{$key}' key is required"); } } - $element['contents'] = stream_for($element['contents']); - if (empty($element['filename'])) { $uri = $element['contents']->getMetadata('uri'); - if (substr($uri, 0, 6) !== 'php://') { + if (\substr($uri, 0, 6) !== 'php://') { $element['filename'] = $uri; } } - - list($body, $headers) = $this->createElement( - $element['name'], - $element['contents'], - isset($element['filename']) ? $element['filename'] : null, - isset($element['headers']) ? $element['headers'] : [] - ); - + list($body, $headers) = $this->createElement($element['name'], $element['contents'], isset($element['filename']) ? $element['filename'] : null, isset($element['headers']) ? $element['headers'] : []); $stream->addStream(stream_for($this->getHeaders($headers))); $stream->addStream($body); $stream->addStream(stream_for("\r\n")); } - /** * @return array */ - private function createElement($name, StreamInterface $stream, $filename, array $headers) + private function createElement($name, \WPMailSMTP\Vendor\Psr\Http\Message\StreamInterface $stream, $filename, array $headers) { // Set a default content-disposition header if one was no provided $disposition = $this->getHeader($headers, 'content-disposition'); if (!$disposition) { - $headers['Content-Disposition'] = ($filename === '0' || $filename) - ? sprintf('form-data; name="%s"; filename="%s"', - $name, - basename($filename)) - : "form-data; name=\"{$name}\""; + $headers['Content-Disposition'] = $filename === '0' || $filename ? \sprintf('form-data; name="%s"; filename="%s"', $name, \basename($filename)) : "form-data; name=\"{$name}\""; } - // Set a default content-length header if one was no provided $length = $this->getHeader($headers, 'content-length'); if (!$length) { @@ -127,7 +101,6 @@ class MultipartStream implements StreamInterface $headers['Content-Length'] = (string) $length; } } - // Set a default Content-Type if one was not supplied $type = $this->getHeader($headers, 'content-type'); if (!$type && ($filename === '0' || $filename)) { @@ -135,19 +108,16 @@ class MultipartStream implements StreamInterface $headers['Content-Type'] = $type; } } - return [$stream, $headers]; } - private function getHeader(array $headers, $key) { - $lowercaseHeader = strtolower($key); + $lowercaseHeader = \strtolower($key); foreach ($headers as $k => $v) { - if (strtolower($k) === $lowercaseHeader) { + if (\strtolower($k) === $lowercaseHeader) { return $v; } } - return null; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/NoSeekStream.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/NoSeekStream.php new file mode 100644 index 0000000..b21ae78 --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/NoSeekStream.php @@ -0,0 +1,20 @@ +source = $source; $this->size = isset($options['size']) ? $options['size'] : null; $this->metadata = isset($options['metadata']) ? $options['metadata'] : []; - $this->buffer = new BufferStream(); + $this->buffer = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\BufferStream(); } - public function __toString() { try { @@ -56,109 +50,90 @@ class PumpStream implements StreamInterface return ''; } } - public function close() { $this->detach(); } - public function detach() { - $this->tellPos = false; + $this->tellPos = \false; $this->source = null; } - public function getSize() { return $this->size; } - public function tell() { return $this->tellPos; } - public function eof() { return !$this->source; } - public function isSeekable() { - return false; + return \false; } - public function rewind() { $this->seek(0); } - - public function seek($offset, $whence = SEEK_SET) + public function seek($offset, $whence = \SEEK_SET) { throw new \RuntimeException('Cannot seek a PumpStream'); } - public function isWritable() { - return false; + return \false; } - public function write($string) { throw new \RuntimeException('Cannot write to a PumpStream'); } - public function isReadable() { - return true; + return \true; } - public function read($length) { $data = $this->buffer->read($length); - $readLen = strlen($data); + $readLen = \strlen($data); $this->tellPos += $readLen; $remaining = $length - $readLen; - if ($remaining) { $this->pump($remaining); $data .= $this->buffer->read($remaining); - $this->tellPos += strlen($data) - $readLen; + $this->tellPos += \strlen($data) - $readLen; } - return $data; } - public function getContents() { $result = ''; while (!$this->eof()) { $result .= $this->read(1000000); } - return $result; } - public function getMetadata($key = null) { if (!$key) { return $this->metadata; } - return isset($this->metadata[$key]) ? $this->metadata[$key] : null; } - private function pump($length) { if ($this->source) { do { - $data = call_user_func($this->source, $length); - if ($data === false || $data === null) { + $data = \call_user_func($this->source, $length); + if ($data === \false || $data === null) { $this->source = null; return; } $this->buffer->write($data); - $length -= strlen($data); + $length -= \strlen($data); } while ($length > 0); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/Request.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/Request.php similarity index 74% rename from wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/Request.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/Request.php index 59f337d..e90e309 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/Request.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/Request.php @@ -1,27 +1,23 @@ assertMethod($method); - if (!($uri instanceof UriInterface)) { - $uri = new Uri($uri); + if (!$uri instanceof \WPMailSMTP\Vendor\Psr\Http\Message\UriInterface) { + $uri = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Uri($uri); } - - $this->method = strtoupper($method); + $this->method = \strtoupper($method); $this->uri = $uri; $this->setHeaders($headers); $this->protocol = $version; - if (!isset($this->headerNames['host'])) { $this->updateHostFromUri(); } - if ($body !== '' && $body !== null) { $this->stream = stream_for($body); } } - public function getRequestTarget() { if ($this->requestTarget !== null) { return $this->requestTarget; } - $target = $this->uri->getPath(); if ($target == '') { $target = '/'; @@ -68,69 +54,53 @@ class Request implements RequestInterface if ($this->uri->getQuery() != '') { $target .= '?' . $this->uri->getQuery(); } - return $target; } - public function withRequestTarget($requestTarget) { - if (preg_match('#\s#', $requestTarget)) { - throw new InvalidArgumentException( - 'Invalid request target provided; cannot contain whitespace' - ); + if (\preg_match('#\\s#', $requestTarget)) { + throw new \InvalidArgumentException('Invalid request target provided; cannot contain whitespace'); } - $new = clone $this; $new->requestTarget = $requestTarget; return $new; } - public function getMethod() { return $this->method; } - public function withMethod($method) { $this->assertMethod($method); $new = clone $this; - $new->method = strtoupper($method); + $new->method = \strtoupper($method); return $new; } - public function getUri() { return $this->uri; } - - public function withUri(UriInterface $uri, $preserveHost = false) + public function withUri(\WPMailSMTP\Vendor\Psr\Http\Message\UriInterface $uri, $preserveHost = \false) { if ($uri === $this->uri) { return $this; } - $new = clone $this; $new->uri = $uri; - if (!$preserveHost || !isset($this->headerNames['host'])) { $new->updateHostFromUri(); } - return $new; } - private function updateHostFromUri() { $host = $this->uri->getHost(); - if ($host == '') { return; } - if (($port = $this->uri->getPort()) !== null) { $host .= ':' . $port; } - if (isset($this->headerNames['host'])) { $header = $this->headerNames['host']; } else { @@ -141,10 +111,9 @@ class Request implements RequestInterface // See: http://tools.ietf.org/html/rfc7230#section-5.4 $this->headers = [$header => [$host]] + $this->headers; } - private function assertMethod($method) { - if (!is_string($method) || $method === '') { + if (!\is_string($method) || $method === '') { throw new \InvalidArgumentException('Method must be a non-empty string.'); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/Response.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/Response.php new file mode 100644 index 0000000..5193458 --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/Response.php @@ -0,0 +1,76 @@ + 'Continue', 101 => 'Switching Protocols', 102 => 'Processing', 200 => 'OK', 201 => 'Created', 202 => 'Accepted', 203 => 'Non-Authoritative Information', 204 => 'No Content', 205 => 'Reset Content', 206 => 'Partial Content', 207 => 'Multi-status', 208 => 'Already Reported', 300 => 'Multiple Choices', 301 => 'Moved Permanently', 302 => 'Found', 303 => 'See Other', 304 => 'Not Modified', 305 => 'Use Proxy', 306 => 'Switch Proxy', 307 => 'Temporary Redirect', 400 => 'Bad Request', 401 => 'Unauthorized', 402 => 'Payment Required', 403 => 'Forbidden', 404 => 'Not Found', 405 => 'Method Not Allowed', 406 => 'Not Acceptable', 407 => 'Proxy Authentication Required', 408 => 'Request Time-out', 409 => 'Conflict', 410 => 'Gone', 411 => 'Length Required', 412 => 'Precondition Failed', 413 => 'Request Entity Too Large', 414 => 'Request-URI Too Large', 415 => 'Unsupported Media Type', 416 => 'Requested range not satisfiable', 417 => 'Expectation Failed', 418 => 'I\'m a teapot', 422 => 'Unprocessable Entity', 423 => 'Locked', 424 => 'Failed Dependency', 425 => 'Unordered Collection', 426 => 'Upgrade Required', 428 => 'Precondition Required', 429 => 'Too Many Requests', 431 => 'Request Header Fields Too Large', 451 => 'Unavailable For Legal Reasons', 500 => 'Internal Server Error', 501 => 'Not Implemented', 502 => 'Bad Gateway', 503 => 'Service Unavailable', 504 => 'Gateway Time-out', 505 => 'HTTP Version not supported', 506 => 'Variant Also Negotiates', 507 => 'Insufficient Storage', 508 => 'Loop Detected', 511 => 'Network Authentication Required']; + /** @var string */ + private $reasonPhrase = ''; + /** @var int */ + private $statusCode = 200; + /** + * @param int $status Status code + * @param array $headers Response headers + * @param string|null|resource|StreamInterface $body Response body + * @param string $version Protocol version + * @param string|null $reason Reason phrase (when empty a default will be used based on the status code) + */ + public function __construct($status = 200, array $headers = [], $body = null, $version = '1.1', $reason = null) + { + $this->assertStatusCodeIsInteger($status); + $status = (int) $status; + $this->assertStatusCodeRange($status); + $this->statusCode = $status; + if ($body !== '' && $body !== null) { + $this->stream = stream_for($body); + } + $this->setHeaders($headers); + if ($reason == '' && isset(self::$phrases[$this->statusCode])) { + $this->reasonPhrase = self::$phrases[$this->statusCode]; + } else { + $this->reasonPhrase = (string) $reason; + } + $this->protocol = $version; + } + public function getStatusCode() + { + return $this->statusCode; + } + public function getReasonPhrase() + { + return $this->reasonPhrase; + } + public function withStatus($code, $reasonPhrase = '') + { + $this->assertStatusCodeIsInteger($code); + $code = (int) $code; + $this->assertStatusCodeRange($code); + $new = clone $this; + $new->statusCode = $code; + if ($reasonPhrase == '' && isset(self::$phrases[$new->statusCode])) { + $reasonPhrase = self::$phrases[$new->statusCode]; + } + $new->reasonPhrase = $reasonPhrase; + return $new; + } + private function assertStatusCodeIsInteger($statusCode) + { + if (\filter_var($statusCode, \FILTER_VALIDATE_INT) === \false) { + throw new \InvalidArgumentException('Status code must be an integer value.'); + } + } + private function assertStatusCodeRange($statusCode) + { + if ($statusCode < 100 || $statusCode >= 600) { + throw new \InvalidArgumentException('Status code must be an integer value between 1xx and 5xx.'); + } + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/Rfc7230.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/Rfc7230.php similarity index 77% rename from wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/Rfc7230.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/Rfc7230.php index 505e474..0926356 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/Rfc7230.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/Rfc7230.php @@ -1,6 +1,6 @@ @,;:\\\"/[\]?={}\x01-\x20\x7F]++):[ \t]*+((?:[ \t]*+[\x21-\x7E\x80-\xFF]++)*+)[ \t]*+\r?\n)m"; + const HEADER_REGEX = "(^([^()<>@,;:\\\"/[\\]?={}\1- ]++):[ \t]*+((?:[ \t]*+[!-~-]++)*+)[ \t]*+\r?\n)m"; const HEADER_FOLD_REGEX = "(\r?\n[ \t]++)"; } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/ServerRequest.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/ServerRequest.php similarity index 75% rename from wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/ServerRequest.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/ServerRequest.php index 1a09a6c..98f70a4 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/ServerRequest.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/ServerRequest.php @@ -1,13 +1,12 @@ serverParams = $serverParams; - parent::__construct($method, $uri, $headers, $body, $version); } - /** * Return an UploadedFile instance array. * @@ -85,23 +70,20 @@ class ServerRequest extends Request implements ServerRequestInterface public static function normalizeFiles(array $files) { $normalized = []; - foreach ($files as $key => $value) { - if ($value instanceof UploadedFileInterface) { + if ($value instanceof \WPMailSMTP\Vendor\Psr\Http\Message\UploadedFileInterface) { $normalized[$key] = $value; - } elseif (is_array($value) && isset($value['tmp_name'])) { + } elseif (\is_array($value) && isset($value['tmp_name'])) { $normalized[$key] = self::createUploadedFileFromSpec($value); - } elseif (is_array($value)) { + } elseif (\is_array($value)) { $normalized[$key] = self::normalizeFiles($value); continue; } else { - throw new InvalidArgumentException('Invalid value in files specification'); + throw new \InvalidArgumentException('Invalid value in files specification'); } } - return $normalized; } - /** * Create and return an UploadedFile instance from a $_FILES specification. * @@ -113,19 +95,11 @@ class ServerRequest extends Request implements ServerRequestInterface */ private static function createUploadedFileFromSpec(array $value) { - if (is_array($value['tmp_name'])) { + if (\is_array($value['tmp_name'])) { return self::normalizeNestedFileSpec($value); } - - return new UploadedFile( - $value['tmp_name'], - (int) $value['size'], - (int) $value['error'], - $value['name'], - $value['type'] - ); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\UploadedFile($value['tmp_name'], (int) $value['size'], (int) $value['error'], $value['name'], $value['type']); } - /** * Normalize an array of file specifications. * @@ -138,21 +112,12 @@ class ServerRequest extends Request implements ServerRequestInterface private static function normalizeNestedFileSpec(array $files = []) { $normalizedFiles = []; - - foreach (array_keys($files['tmp_name']) as $key) { - $spec = [ - 'tmp_name' => $files['tmp_name'][$key], - 'size' => $files['size'][$key], - 'error' => $files['error'][$key], - 'name' => $files['name'][$key], - 'type' => $files['type'][$key], - ]; + foreach (\array_keys($files['tmp_name']) as $key) { + $spec = ['tmp_name' => $files['tmp_name'][$key], 'size' => $files['size'][$key], 'error' => $files['error'][$key], 'name' => $files['name'][$key], 'type' => $files['type'][$key]]; $normalizedFiles[$key] = self::createUploadedFileFromSpec($spec); } - return $normalizedFiles; } - /** * Return a ServerRequest populated with superglobals: * $_GET @@ -166,34 +131,24 @@ class ServerRequest extends Request implements ServerRequestInterface public static function fromGlobals() { $method = isset($_SERVER['REQUEST_METHOD']) ? $_SERVER['REQUEST_METHOD'] : 'GET'; - $headers = getallheaders(); + $headers = \getallheaders(); $uri = self::getUriFromGlobals(); - $body = new CachingStream(new LazyOpenStream('php://input', 'r+')); - $protocol = isset($_SERVER['SERVER_PROTOCOL']) ? str_replace('HTTP/', '', $_SERVER['SERVER_PROTOCOL']) : '1.1'; - - $serverRequest = new ServerRequest($method, $uri, $headers, $body, $protocol, $_SERVER); - - return $serverRequest - ->withCookieParams($_COOKIE) - ->withQueryParams($_GET) - ->withParsedBody($_POST) - ->withUploadedFiles(self::normalizeFiles($_FILES)); + $body = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\CachingStream(new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\LazyOpenStream('php://input', 'r+')); + $protocol = isset($_SERVER['SERVER_PROTOCOL']) ? \str_replace('HTTP/', '', $_SERVER['SERVER_PROTOCOL']) : '1.1'; + $serverRequest = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\ServerRequest($method, $uri, $headers, $body, $protocol, $_SERVER); + return $serverRequest->withCookieParams($_COOKIE)->withQueryParams($_GET)->withParsedBody($_POST)->withUploadedFiles(self::normalizeFiles($_FILES)); } - private static function extractHostAndPortFromAuthority($authority) { - $uri = 'http://'.$authority; - $parts = parse_url($uri); - if (false === $parts) { + $uri = 'http://' . $authority; + $parts = \parse_url($uri); + if (\false === $parts) { return [null, null]; } - $host = isset($parts['host']) ? $parts['host'] : null; $port = isset($parts['port']) ? $parts['port'] : null; - return [$host, $port]; } - /** * Get a Uri populated with values from $_SERVER. * @@ -201,19 +156,16 @@ class ServerRequest extends Request implements ServerRequestInterface */ public static function getUriFromGlobals() { - $uri = new Uri(''); - + $uri = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Uri(''); $uri = $uri->withScheme(!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' ? 'https' : 'http'); - - $hasPort = false; + $hasPort = \false; if (isset($_SERVER['HTTP_HOST'])) { list($host, $port) = self::extractHostAndPortFromAuthority($_SERVER['HTTP_HOST']); if ($host !== null) { $uri = $uri->withHost($host); } - if ($port !== null) { - $hasPort = true; + $hasPort = \true; $uri = $uri->withPort($port); } } elseif (isset($_SERVER['SERVER_NAME'])) { @@ -221,29 +173,23 @@ class ServerRequest extends Request implements ServerRequestInterface } elseif (isset($_SERVER['SERVER_ADDR'])) { $uri = $uri->withHost($_SERVER['SERVER_ADDR']); } - if (!$hasPort && isset($_SERVER['SERVER_PORT'])) { $uri = $uri->withPort($_SERVER['SERVER_PORT']); } - - $hasQuery = false; + $hasQuery = \false; if (isset($_SERVER['REQUEST_URI'])) { - $requestUriParts = explode('?', $_SERVER['REQUEST_URI'], 2); + $requestUriParts = \explode('?', $_SERVER['REQUEST_URI'], 2); $uri = $uri->withPath($requestUriParts[0]); if (isset($requestUriParts[1])) { - $hasQuery = true; + $hasQuery = \true; $uri = $uri->withQuery($requestUriParts[1]); } } - if (!$hasQuery && isset($_SERVER['QUERY_STRING'])) { $uri = $uri->withQuery($_SERVER['QUERY_STRING']); } - return $uri; } - - /** * {@inheritdoc} */ @@ -251,7 +197,6 @@ class ServerRequest extends Request implements ServerRequestInterface { return $this->serverParams; } - /** * {@inheritdoc} */ @@ -259,7 +204,6 @@ class ServerRequest extends Request implements ServerRequestInterface { return $this->uploadedFiles; } - /** * {@inheritdoc} */ @@ -267,10 +211,8 @@ class ServerRequest extends Request implements ServerRequestInterface { $new = clone $this; $new->uploadedFiles = $uploadedFiles; - return $new; } - /** * {@inheritdoc} */ @@ -278,7 +220,6 @@ class ServerRequest extends Request implements ServerRequestInterface { return $this->cookieParams; } - /** * {@inheritdoc} */ @@ -286,10 +227,8 @@ class ServerRequest extends Request implements ServerRequestInterface { $new = clone $this; $new->cookieParams = $cookies; - return $new; } - /** * {@inheritdoc} */ @@ -297,7 +236,6 @@ class ServerRequest extends Request implements ServerRequestInterface { return $this->queryParams; } - /** * {@inheritdoc} */ @@ -305,10 +243,8 @@ class ServerRequest extends Request implements ServerRequestInterface { $new = clone $this; $new->queryParams = $query; - return $new; } - /** * {@inheritdoc} */ @@ -316,7 +252,6 @@ class ServerRequest extends Request implements ServerRequestInterface { return $this->parsedBody; } - /** * {@inheritdoc} */ @@ -324,10 +259,8 @@ class ServerRequest extends Request implements ServerRequestInterface { $new = clone $this; $new->parsedBody = $data; - return $new; } - /** * {@inheritdoc} */ @@ -335,19 +268,16 @@ class ServerRequest extends Request implements ServerRequestInterface { return $this->attributes; } - /** * {@inheritdoc} */ public function getAttribute($attribute, $default = null) { - if (false === array_key_exists($attribute, $this->attributes)) { + if (\false === \array_key_exists($attribute, $this->attributes)) { return $default; } - return $this->attributes[$attribute]; } - /** * {@inheritdoc} */ @@ -355,22 +285,18 @@ class ServerRequest extends Request implements ServerRequestInterface { $new = clone $this; $new->attributes[$attribute] = $value; - return $new; } - /** * {@inheritdoc} */ public function withoutAttribute($attribute) { - if (false === array_key_exists($attribute, $this->attributes)) { + if (\false === \array_key_exists($attribute, $this->attributes)) { return $this; } - $new = clone $this; unset($new->attributes[$attribute]); - return $new; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/Stream.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/Stream.php similarity index 75% rename from wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/Stream.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/Stream.php index d9e7409..f060f66 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/Stream.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/Stream.php @@ -1,14 +1,14 @@ size = $options['size']; } - - $this->customMetadata = isset($options['metadata']) - ? $options['metadata'] - : []; - + $this->customMetadata = isset($options['metadata']) ? $options['metadata'] : []; $this->stream = $stream; - $meta = stream_get_meta_data($this->stream); + $meta = \stream_get_meta_data($this->stream); $this->seekable = $meta['seekable']; - $this->readable = (bool)preg_match(self::READABLE_MODES, $meta['mode']); - $this->writable = (bool)preg_match(self::WRITABLE_MODES, $meta['mode']); + $this->readable = (bool) \preg_match(self::READABLE_MODES, $meta['mode']); + $this->writable = (bool) \preg_match(self::WRITABLE_MODES, $meta['mode']); $this->uri = $this->getMetadata('uri'); } - /** * Closes the stream when the destructed */ @@ -72,140 +64,112 @@ class Stream implements StreamInterface { $this->close(); } - public function __toString() { try { $this->seek(0); - return (string) stream_get_contents($this->stream); + return (string) \stream_get_contents($this->stream); } catch (\Exception $e) { return ''; } } - public function getContents() { if (!isset($this->stream)) { throw new \RuntimeException('Stream is detached'); } - - $contents = stream_get_contents($this->stream); - - if ($contents === false) { + $contents = \stream_get_contents($this->stream); + if ($contents === \false) { throw new \RuntimeException('Unable to read stream contents'); } - return $contents; } - public function close() { if (isset($this->stream)) { - if (is_resource($this->stream)) { - fclose($this->stream); + if (\is_resource($this->stream)) { + \fclose($this->stream); } $this->detach(); } } - public function detach() { if (!isset($this->stream)) { return null; } - $result = $this->stream; unset($this->stream); $this->size = $this->uri = null; - $this->readable = $this->writable = $this->seekable = false; - + $this->readable = $this->writable = $this->seekable = \false; return $result; } - public function getSize() { if ($this->size !== null) { return $this->size; } - if (!isset($this->stream)) { return null; } - // Clear the stat cache if the stream has a URI if ($this->uri) { - clearstatcache(true, $this->uri); + \clearstatcache(\true, $this->uri); } - - $stats = fstat($this->stream); + $stats = \fstat($this->stream); if (isset($stats['size'])) { $this->size = $stats['size']; return $this->size; } - return null; } - public function isReadable() { return $this->readable; } - public function isWritable() { return $this->writable; } - public function isSeekable() { return $this->seekable; } - public function eof() { if (!isset($this->stream)) { throw new \RuntimeException('Stream is detached'); } - - return feof($this->stream); + return \feof($this->stream); } - public function tell() { if (!isset($this->stream)) { throw new \RuntimeException('Stream is detached'); } - - $result = ftell($this->stream); - - if ($result === false) { + $result = \ftell($this->stream); + if ($result === \false) { throw new \RuntimeException('Unable to determine stream position'); } - return $result; } - public function rewind() { $this->seek(0); } - - public function seek($offset, $whence = SEEK_SET) + public function seek($offset, $whence = \SEEK_SET) { $whence = (int) $whence; - if (!isset($this->stream)) { throw new \RuntimeException('Stream is detached'); } if (!$this->seekable) { throw new \RuntimeException('Stream is not seekable'); } - if (fseek($this->stream, $offset, $whence) === -1) { - throw new \RuntimeException('Unable to seek to stream position ' - . $offset . ' with whence ' . var_export($whence, true)); + if (\fseek($this->stream, $offset, $whence) === -1) { + throw new \RuntimeException('Unable to seek to stream position ' . $offset . ' with whence ' . \var_export($whence, \true)); } } - public function read($length) { if (!isset($this->stream)) { @@ -217,19 +181,15 @@ class Stream implements StreamInterface if ($length < 0) { throw new \RuntimeException('Length parameter cannot be negative'); } - if (0 === $length) { return ''; } - - $string = fread($this->stream, $length); - if (false === $string) { + $string = \fread($this->stream, $length); + if (\false === $string) { throw new \RuntimeException('Unable to read from stream'); } - return $string; } - public function write($string) { if (!isset($this->stream)) { @@ -238,30 +198,24 @@ class Stream implements StreamInterface if (!$this->writable) { throw new \RuntimeException('Cannot write to a non-writable stream'); } - // We can't know the size after writing anything $this->size = null; - $result = fwrite($this->stream, $string); - - if ($result === false) { + $result = \fwrite($this->stream, $string); + if ($result === \false) { throw new \RuntimeException('Unable to write to stream'); } - return $result; } - public function getMetadata($key = null) { if (!isset($this->stream)) { return $key ? null : []; } elseif (!$key) { - return $this->customMetadata + stream_get_meta_data($this->stream); + return $this->customMetadata + \stream_get_meta_data($this->stream); } elseif (isset($this->customMetadata[$key])) { return $this->customMetadata[$key]; } - - $meta = stream_get_meta_data($this->stream); - + $meta = \stream_get_meta_data($this->stream); return isset($meta[$key]) ? $meta[$key] : null; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/StreamDecoratorTrait.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/StreamDecoratorTrait.php similarity index 84% rename from wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/StreamDecoratorTrait.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/StreamDecoratorTrait.php index daec6f5..6e82ca1 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/StreamDecoratorTrait.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/StreamDecoratorTrait.php @@ -1,8 +1,8 @@ stream = $stream; } - /** * Magic method used to create a new stream if streams are not added in * the constructor of a decorator (e.g., LazyOpenStream). @@ -31,10 +30,8 @@ trait StreamDecoratorTrait $this->stream = $this->createStream(); return $this->stream; } - - throw new \UnexpectedValueException("$name not found on class"); + throw new \UnexpectedValueException("{$name} not found on class"); } - public function __toString() { try { @@ -44,17 +41,14 @@ trait StreamDecoratorTrait return $this->getContents(); } catch (\Exception $e) { // Really, PHP? https://bugs.php.net/bug.php?id=53648 - trigger_error('StreamDecorator::__toString exception: ' - . (string) $e, E_USER_ERROR); + \trigger_error('StreamDecorator::__toString exception: ' . (string) $e, \E_USER_ERROR); return ''; } } - public function getContents() { return copy_to_string($this); } - /** * Allow decorators to implement custom methods * @@ -65,77 +59,62 @@ trait StreamDecoratorTrait */ public function __call($method, array $args) { - $result = call_user_func_array([$this->stream, $method], $args); - + $result = \call_user_func_array([$this->stream, $method], $args); // Always return the wrapped object if the result is a return $this return $result === $this->stream ? $this : $result; } - public function close() { $this->stream->close(); } - public function getMetadata($key = null) { return $this->stream->getMetadata($key); } - public function detach() { return $this->stream->detach(); } - public function getSize() { return $this->stream->getSize(); } - public function eof() { return $this->stream->eof(); } - public function tell() { return $this->stream->tell(); } - public function isReadable() { return $this->stream->isReadable(); } - public function isWritable() { return $this->stream->isWritable(); } - public function isSeekable() { return $this->stream->isSeekable(); } - public function rewind() { $this->seek(0); } - - public function seek($offset, $whence = SEEK_SET) + public function seek($offset, $whence = \SEEK_SET) { $this->stream->seek($offset, $whence); } - public function read($length) { return $this->stream->read($length); } - public function write($string) { return $this->stream->write($string); } - /** * Implement in subclasses to dynamically create streams when requested. * diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/StreamWrapper.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/StreamWrapper.php similarity index 53% rename from wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/StreamWrapper.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/StreamWrapper.php index 0f3a285..7f3b9a0 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/StreamWrapper.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/StreamWrapper.php @@ -1,8 +1,8 @@ isReadable()) { $mode = $stream->isWritable() ? 'r+' : 'r'; } elseif ($stream->isWritable()) { $mode = 'w'; } else { - throw new \InvalidArgumentException('The stream must be readable, ' - . 'writable, or both.'); + throw new \InvalidArgumentException('The stream must be readable, ' . 'writable, or both.'); } - - return fopen('guzzle://stream', $mode, null, self::createStreamContext($stream)); + return \fopen('guzzle://stream', $mode, null, self::createStreamContext($stream)); } - /** * Creates a stream context that can be used to open a stream as a php stream resource. * @@ -48,114 +41,62 @@ class StreamWrapper * * @return resource */ - public static function createStreamContext(StreamInterface $stream) + public static function createStreamContext(\WPMailSMTP\Vendor\Psr\Http\Message\StreamInterface $stream) { - return stream_context_create([ - 'guzzle' => ['stream' => $stream] - ]); + return \stream_context_create(['guzzle' => ['stream' => $stream]]); } - /** * Registers the stream wrapper if needed */ public static function register() { - if (!in_array('guzzle', stream_get_wrappers())) { - stream_wrapper_register('guzzle', __CLASS__); + if (!\in_array('guzzle', \stream_get_wrappers())) { + \stream_wrapper_register('guzzle', __CLASS__); } } - public function stream_open($path, $mode, $options, &$opened_path) { - $options = stream_context_get_options($this->context); - + $options = \stream_context_get_options($this->context); if (!isset($options['guzzle']['stream'])) { - return false; + return \false; } - $this->mode = $mode; $this->stream = $options['guzzle']['stream']; - - return true; + return \true; } - public function stream_read($count) { return $this->stream->read($count); } - public function stream_write($data) { return (int) $this->stream->write($data); } - public function stream_tell() { return $this->stream->tell(); } - public function stream_eof() { return $this->stream->eof(); } - public function stream_seek($offset, $whence) { $this->stream->seek($offset, $whence); - - return true; + return \true; } - public function stream_cast($cast_as) { - $stream = clone($this->stream); - + $stream = clone $this->stream; return $stream->detach(); } - public function stream_stat() { - static $modeMap = [ - 'r' => 33060, - 'rb' => 33060, - 'r+' => 33206, - 'w' => 33188, - 'wb' => 33188 - ]; - - return [ - 'dev' => 0, - 'ino' => 0, - 'mode' => $modeMap[$this->mode], - 'nlink' => 0, - 'uid' => 0, - 'gid' => 0, - 'rdev' => 0, - 'size' => $this->stream->getSize() ?: 0, - 'atime' => 0, - 'mtime' => 0, - 'ctime' => 0, - 'blksize' => 0, - 'blocks' => 0 - ]; + static $modeMap = ['r' => 33060, 'rb' => 33060, 'r+' => 33206, 'w' => 33188, 'wb' => 33188]; + return ['dev' => 0, 'ino' => 0, 'mode' => $modeMap[$this->mode], 'nlink' => 0, 'uid' => 0, 'gid' => 0, 'rdev' => 0, 'size' => $this->stream->getSize() ?: 0, 'atime' => 0, 'mtime' => 0, 'ctime' => 0, 'blksize' => 0, 'blocks' => 0]; } - public function url_stat($path, $flags) { - return [ - 'dev' => 0, - 'ino' => 0, - 'mode' => 0, - 'nlink' => 0, - 'uid' => 0, - 'gid' => 0, - 'rdev' => 0, - 'size' => 0, - 'atime' => 0, - 'mtime' => 0, - 'ctime' => 0, - 'blksize' => 0, - 'blocks' => 0 - ]; + return ['dev' => 0, 'ino' => 0, 'mode' => 0, 'nlink' => 0, 'uid' => 0, 'gid' => 0, 'rdev' => 0, 'size' => 0, 'atime' => 0, 'mtime' => 0, 'ctime' => 0, 'blksize' => 0, 'blocks' => 0]; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/UploadedFile.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/UploadedFile.php similarity index 58% rename from wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/UploadedFile.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/UploadedFile.php index e62bd5c..109fa88 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/UploadedFile.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/UploadedFile.php @@ -1,62 +1,45 @@ setError($errorStatus); $this->setSize($size); $this->setClientFilename($clientFilename); $this->setClientMediaType($clientMediaType); - if ($this->isOk()) { $this->setStreamOrFile($streamOrFile); } } - /** * Depending on the value set file or stream variable * @@ -89,103 +65,79 @@ class UploadedFile implements UploadedFileInterface */ private function setStreamOrFile($streamOrFile) { - if (is_string($streamOrFile)) { + if (\is_string($streamOrFile)) { $this->file = $streamOrFile; - } elseif (is_resource($streamOrFile)) { - $this->stream = new Stream($streamOrFile); - } elseif ($streamOrFile instanceof StreamInterface) { + } elseif (\is_resource($streamOrFile)) { + $this->stream = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Stream($streamOrFile); + } elseif ($streamOrFile instanceof \WPMailSMTP\Vendor\Psr\Http\Message\StreamInterface) { $this->stream = $streamOrFile; } else { - throw new InvalidArgumentException( - 'Invalid stream or file provided for UploadedFile' - ); + throw new \InvalidArgumentException('Invalid stream or file provided for UploadedFile'); } } - /** * @param int $error * @throws InvalidArgumentException */ private function setError($error) { - if (false === is_int($error)) { - throw new InvalidArgumentException( - 'Upload file error status must be an integer' - ); + if (\false === \is_int($error)) { + throw new \InvalidArgumentException('Upload file error status must be an integer'); } - - if (false === in_array($error, UploadedFile::$errors)) { - throw new InvalidArgumentException( - 'Invalid error status for UploadedFile' - ); + if (\false === \in_array($error, \WPMailSMTP\Vendor\GuzzleHttp\Psr7\UploadedFile::$errors)) { + throw new \InvalidArgumentException('Invalid error status for UploadedFile'); } - $this->error = $error; } - /** * @param int $size * @throws InvalidArgumentException */ private function setSize($size) { - if (false === is_int($size)) { - throw new InvalidArgumentException( - 'Upload file size must be an integer' - ); + if (\false === \is_int($size)) { + throw new \InvalidArgumentException('Upload file size must be an integer'); } - $this->size = $size; } - /** * @param mixed $param * @return boolean */ private function isStringOrNull($param) { - return in_array(gettype($param), ['string', 'NULL']); + return \in_array(\gettype($param), ['string', 'NULL']); } - /** * @param mixed $param * @return boolean */ private function isStringNotEmpty($param) { - return is_string($param) && false === empty($param); + return \is_string($param) && \false === empty($param); } - /** * @param string|null $clientFilename * @throws InvalidArgumentException */ private function setClientFilename($clientFilename) { - if (false === $this->isStringOrNull($clientFilename)) { - throw new InvalidArgumentException( - 'Upload file client filename must be a string or null' - ); + if (\false === $this->isStringOrNull($clientFilename)) { + throw new \InvalidArgumentException('Upload file client filename must be a string or null'); } - $this->clientFilename = $clientFilename; } - /** * @param string|null $clientMediaType * @throws InvalidArgumentException */ private function setClientMediaType($clientMediaType) { - if (false === $this->isStringOrNull($clientMediaType)) { - throw new InvalidArgumentException( - 'Upload file client media type must be a string or null' - ); + if (\false === $this->isStringOrNull($clientMediaType)) { + throw new \InvalidArgumentException('Upload file client media type must be a string or null'); } - $this->clientMediaType = $clientMediaType; } - /** * Return true if there is no upload error * @@ -193,9 +145,8 @@ class UploadedFile implements UploadedFileInterface */ private function isOk() { - return $this->error === UPLOAD_ERR_OK; + return $this->error === \UPLOAD_ERR_OK; } - /** * @return boolean */ @@ -203,21 +154,18 @@ class UploadedFile implements UploadedFileInterface { return $this->moved; } - /** * @throws RuntimeException if is moved or not ok */ private function validateActive() { - if (false === $this->isOk()) { - throw new RuntimeException('Cannot retrieve stream due to upload error'); + if (\false === $this->isOk()) { + throw new \RuntimeException('Cannot retrieve stream due to upload error'); } - if ($this->isMoved()) { - throw new RuntimeException('Cannot retrieve stream after it has already been moved'); + throw new \RuntimeException('Cannot retrieve stream after it has already been moved'); } } - /** * {@inheritdoc} * @throws RuntimeException if the upload was not successful. @@ -225,14 +173,11 @@ class UploadedFile implements UploadedFileInterface public function getStream() { $this->validateActive(); - - if ($this->stream instanceof StreamInterface) { + if ($this->stream instanceof \WPMailSMTP\Vendor\Psr\Http\Message\StreamInterface) { return $this->stream; } - - return new LazyOpenStream($this->file, 'r+'); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\LazyOpenStream($this->file, 'r+'); } - /** * {@inheritdoc} * @@ -247,33 +192,19 @@ class UploadedFile implements UploadedFileInterface public function moveTo($targetPath) { $this->validateActive(); - - if (false === $this->isStringNotEmpty($targetPath)) { - throw new InvalidArgumentException( - 'Invalid path provided for move operation; must be a non-empty string' - ); + if (\false === $this->isStringNotEmpty($targetPath)) { + throw new \InvalidArgumentException('Invalid path provided for move operation; must be a non-empty string'); } - if ($this->file) { - $this->moved = php_sapi_name() == 'cli' - ? rename($this->file, $targetPath) - : move_uploaded_file($this->file, $targetPath); + $this->moved = \php_sapi_name() == 'cli' ? \rename($this->file, $targetPath) : \move_uploaded_file($this->file, $targetPath); } else { - copy_to_stream( - $this->getStream(), - new LazyOpenStream($targetPath, 'w') - ); - - $this->moved = true; + copy_to_stream($this->getStream(), new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\LazyOpenStream($targetPath, 'w')); + $this->moved = \true; } - - if (false === $this->moved) { - throw new RuntimeException( - sprintf('Uploaded file could not be moved to %s', $targetPath) - ); + if (\false === $this->moved) { + throw new \RuntimeException(\sprintf('Uploaded file could not be moved to %s', $targetPath)); } } - /** * {@inheritdoc} * @@ -283,7 +214,6 @@ class UploadedFile implements UploadedFileInterface { return $this->size; } - /** * {@inheritdoc} * @@ -294,7 +224,6 @@ class UploadedFile implements UploadedFileInterface { return $this->error; } - /** * {@inheritdoc} * @@ -305,7 +234,6 @@ class UploadedFile implements UploadedFileInterface { return $this->clientFilename; } - /** * {@inheritdoc} */ diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/Uri.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/Uri.php similarity index 73% rename from wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/Uri.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/Uri.php index 825a25e..bf9d90d 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/Uri.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/Uri.php @@ -1,8 +1,8 @@ 80, - 'https' => 443, - 'ftp' => 21, - 'gopher' => 70, - 'nntp' => 119, - 'news' => 119, - 'telnet' => 23, - 'tn3270' => 23, - 'imap' => 143, - 'pop' => 110, - 'ldap' => 389, - ]; - - private static $charUnreserved = 'a-zA-Z0-9_\-\.~'; - private static $charSubDelims = '!\$&\'\(\)\*\+,;='; + private static $defaultPorts = ['http' => 80, 'https' => 443, 'ftp' => 21, 'gopher' => 70, 'nntp' => 119, 'news' => 119, 'telnet' => 23, 'tn3270' => 23, 'imap' => 143, 'pop' => 110, 'ldap' => 389]; + private static $charUnreserved = 'a-zA-Z0-9_\\-\\.~'; + private static $charSubDelims = '!\\$&\'\\(\\)\\*\\+,;='; private static $replaceQuery = ['=' => '%3D', '&' => '%26']; - /** @var string Uri scheme. */ private $scheme = ''; - /** @var string Uri user info. */ private $userInfo = ''; - /** @var string Uri host. */ private $host = ''; - /** @var int|null Uri port. */ private $port; - /** @var string Uri path. */ private $path = ''; - /** @var string Uri query string. */ private $query = ''; - /** @var string Uri fragment. */ private $fragment = ''; - /** * @param string $uri URI to parse */ @@ -66,25 +44,17 @@ class Uri implements UriInterface { // weak type check to also accept null until we can add scalar type hints if ($uri != '') { - $parts = parse_url($uri); - if ($parts === false) { - throw new \InvalidArgumentException("Unable to parse URI: $uri"); + $parts = \parse_url($uri); + if ($parts === \false) { + throw new \InvalidArgumentException("Unable to parse URI: {$uri}"); } $this->applyParts($parts); } } - public function __toString() { - return self::composeComponents( - $this->scheme, - $this->getAuthority(), - $this->path, - $this->query, - $this->fragment - ); + return self::composeComponents($this->scheme, $this->getAuthority(), $this->path, $this->query, $this->fragment); } - /** * Composes a URI reference string from its various components. * @@ -114,29 +84,22 @@ class Uri implements UriInterface public static function composeComponents($scheme, $authority, $path, $query, $fragment) { $uri = ''; - // weak type checks to also accept null until we can add scalar type hints if ($scheme != '') { $uri .= $scheme . ':'; } - - if ($authority != ''|| $scheme === 'file') { + if ($authority != '' || $scheme === 'file') { $uri .= '//' . $authority; } - $uri .= $path; - if ($query != '') { $uri .= '?' . $query; } - if ($fragment != '') { $uri .= '#' . $fragment; } - return $uri; } - /** * Whether the URI has the default port of the current scheme. * @@ -147,12 +110,10 @@ class Uri implements UriInterface * * @return bool */ - public static function isDefaultPort(UriInterface $uri) + public static function isDefaultPort(\WPMailSMTP\Vendor\Psr\Http\Message\UriInterface $uri) { - return $uri->getPort() === null - || (isset(self::$defaultPorts[$uri->getScheme()]) && $uri->getPort() === self::$defaultPorts[$uri->getScheme()]); + return $uri->getPort() === null || isset(self::$defaultPorts[$uri->getScheme()]) && $uri->getPort() === self::$defaultPorts[$uri->getScheme()]; } - /** * Whether the URI is absolute, i.e. it has a scheme. * @@ -171,11 +132,10 @@ class Uri implements UriInterface * @see Uri::isRelativePathReference * @link https://tools.ietf.org/html/rfc3986#section-4 */ - public static function isAbsolute(UriInterface $uri) + public static function isAbsolute(\WPMailSMTP\Vendor\Psr\Http\Message\UriInterface $uri) { return $uri->getScheme() !== ''; } - /** * Whether the URI is a network-path reference. * @@ -186,11 +146,10 @@ class Uri implements UriInterface * @return bool * @link https://tools.ietf.org/html/rfc3986#section-4.2 */ - public static function isNetworkPathReference(UriInterface $uri) + public static function isNetworkPathReference(\WPMailSMTP\Vendor\Psr\Http\Message\UriInterface $uri) { return $uri->getScheme() === '' && $uri->getAuthority() !== ''; } - /** * Whether the URI is a absolute-path reference. * @@ -201,14 +160,10 @@ class Uri implements UriInterface * @return bool * @link https://tools.ietf.org/html/rfc3986#section-4.2 */ - public static function isAbsolutePathReference(UriInterface $uri) + public static function isAbsolutePathReference(\WPMailSMTP\Vendor\Psr\Http\Message\UriInterface $uri) { - return $uri->getScheme() === '' - && $uri->getAuthority() === '' - && isset($uri->getPath()[0]) - && $uri->getPath()[0] === '/'; + return $uri->getScheme() === '' && $uri->getAuthority() === '' && isset($uri->getPath()[0]) && $uri->getPath()[0] === '/'; } - /** * Whether the URI is a relative-path reference. * @@ -219,13 +174,10 @@ class Uri implements UriInterface * @return bool * @link https://tools.ietf.org/html/rfc3986#section-4.2 */ - public static function isRelativePathReference(UriInterface $uri) + public static function isRelativePathReference(\WPMailSMTP\Vendor\Psr\Http\Message\UriInterface $uri) { - return $uri->getScheme() === '' - && $uri->getAuthority() === '' - && (!isset($uri->getPath()[0]) || $uri->getPath()[0] !== '/'); + return $uri->getScheme() === '' && $uri->getAuthority() === '' && (!isset($uri->getPath()[0]) || $uri->getPath()[0] !== '/'); } - /** * Whether the URI is a same-document reference. * @@ -239,20 +191,14 @@ class Uri implements UriInterface * @return bool * @link https://tools.ietf.org/html/rfc3986#section-4.4 */ - public static function isSameDocumentReference(UriInterface $uri, UriInterface $base = null) + public static function isSameDocumentReference(\WPMailSMTP\Vendor\Psr\Http\Message\UriInterface $uri, \WPMailSMTP\Vendor\Psr\Http\Message\UriInterface $base = null) { if ($base !== null) { - $uri = UriResolver::resolve($base, $uri); - - return ($uri->getScheme() === $base->getScheme()) - && ($uri->getAuthority() === $base->getAuthority()) - && ($uri->getPath() === $base->getPath()) - && ($uri->getQuery() === $base->getQuery()); + $uri = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\UriResolver::resolve($base, $uri); + return $uri->getScheme() === $base->getScheme() && $uri->getAuthority() === $base->getAuthority() && $uri->getPath() === $base->getPath() && $uri->getQuery() === $base->getQuery(); } - return $uri->getScheme() === '' && $uri->getAuthority() === '' && $uri->getPath() === '' && $uri->getQuery() === ''; } - /** * Removes dot segments from a path and returns the new path. * @@ -265,9 +211,8 @@ class Uri implements UriInterface */ public static function removeDotSegments($path) { - return UriResolver::removeDotSegments($path); + return \WPMailSMTP\Vendor\GuzzleHttp\Psr7\UriResolver::removeDotSegments($path); } - /** * Converts the relative URI into a new URI that is resolved against the base URI. * @@ -279,15 +224,13 @@ class Uri implements UriInterface * @deprecated since version 1.4. Use UriResolver::resolve instead. * @see UriResolver::resolve */ - public static function resolve(UriInterface $base, $rel) + public static function resolve(\WPMailSMTP\Vendor\Psr\Http\Message\UriInterface $base, $rel) { - if (!($rel instanceof UriInterface)) { + if (!$rel instanceof \WPMailSMTP\Vendor\Psr\Http\Message\UriInterface) { $rel = new self($rel); } - - return UriResolver::resolve($base, $rel); + return \WPMailSMTP\Vendor\GuzzleHttp\Psr7\UriResolver::resolve($base, $rel); } - /** * Creates a new URI with a specific query string value removed. * @@ -299,13 +242,11 @@ class Uri implements UriInterface * * @return UriInterface */ - public static function withoutQueryValue(UriInterface $uri, $key) + public static function withoutQueryValue(\WPMailSMTP\Vendor\Psr\Http\Message\UriInterface $uri, $key) { $result = self::getFilteredQueryString($uri, [$key]); - - return $uri->withQuery(implode('&', $result)); + return $uri->withQuery(\implode('&', $result)); } - /** * Creates a new URI with a specific query string value. * @@ -321,15 +262,12 @@ class Uri implements UriInterface * * @return UriInterface */ - public static function withQueryValue(UriInterface $uri, $key, $value) + public static function withQueryValue(\WPMailSMTP\Vendor\Psr\Http\Message\UriInterface $uri, $key, $value) { $result = self::getFilteredQueryString($uri, [$key]); - $result[] = self::generateQueryString($key, $value); - - return $uri->withQuery(implode('&', $result)); + return $uri->withQuery(\implode('&', $result)); } - /** * Creates a new URI with multiple specific query string values. * @@ -340,17 +278,14 @@ class Uri implements UriInterface * * @return UriInterface */ - public static function withQueryValues(UriInterface $uri, array $keyValueArray) + public static function withQueryValues(\WPMailSMTP\Vendor\Psr\Http\Message\UriInterface $uri, array $keyValueArray) { - $result = self::getFilteredQueryString($uri, array_keys($keyValueArray)); - + $result = self::getFilteredQueryString($uri, \array_keys($keyValueArray)); foreach ($keyValueArray as $key => $value) { $result[] = self::generateQueryString($key, $value); } - - return $uri->withQuery(implode('&', $result)); + return $uri->withQuery(\implode('&', $result)); } - /** * Creates a URI from a hash of `parse_url` components. * @@ -366,167 +301,127 @@ class Uri implements UriInterface $uri = new self(); $uri->applyParts($parts); $uri->validateState(); - return $uri; } - public function getScheme() { return $this->scheme; } - public function getAuthority() { $authority = $this->host; if ($this->userInfo !== '') { $authority = $this->userInfo . '@' . $authority; } - if ($this->port !== null) { $authority .= ':' . $this->port; } - return $authority; } - public function getUserInfo() { return $this->userInfo; } - public function getHost() { return $this->host; } - public function getPort() { return $this->port; } - public function getPath() { return $this->path; } - public function getQuery() { return $this->query; } - public function getFragment() { return $this->fragment; } - public function withScheme($scheme) { $scheme = $this->filterScheme($scheme); - if ($this->scheme === $scheme) { return $this; } - $new = clone $this; $new->scheme = $scheme; $new->removeDefaultPort(); $new->validateState(); - return $new; } - public function withUserInfo($user, $password = null) { $info = $this->filterUserInfoComponent($user); if ($password !== null) { $info .= ':' . $this->filterUserInfoComponent($password); } - if ($this->userInfo === $info) { return $this; } - $new = clone $this; $new->userInfo = $info; $new->validateState(); - return $new; } - public function withHost($host) { $host = $this->filterHost($host); - if ($this->host === $host) { return $this; } - $new = clone $this; $new->host = $host; $new->validateState(); - return $new; } - public function withPort($port) { $port = $this->filterPort($port); - if ($this->port === $port) { return $this; } - $new = clone $this; $new->port = $port; $new->removeDefaultPort(); $new->validateState(); - return $new; } - public function withPath($path) { $path = $this->filterPath($path); - if ($this->path === $path) { return $this; } - $new = clone $this; $new->path = $path; $new->validateState(); - return $new; } - public function withQuery($query) { $query = $this->filterQueryAndFragment($query); - if ($this->query === $query) { return $this; } - $new = clone $this; $new->query = $query; - return $new; } - public function withFragment($fragment) { $fragment = $this->filterQueryAndFragment($fragment); - if ($this->fragment === $fragment) { return $this; } - $new = clone $this; $new->fragment = $fragment; - return $new; } - /** * Apply parse_url parts to a URI. * @@ -534,34 +429,18 @@ class Uri implements UriInterface */ private function applyParts(array $parts) { - $this->scheme = isset($parts['scheme']) - ? $this->filterScheme($parts['scheme']) - : ''; - $this->userInfo = isset($parts['user']) - ? $this->filterUserInfoComponent($parts['user']) - : ''; - $this->host = isset($parts['host']) - ? $this->filterHost($parts['host']) - : ''; - $this->port = isset($parts['port']) - ? $this->filterPort($parts['port']) - : null; - $this->path = isset($parts['path']) - ? $this->filterPath($parts['path']) - : ''; - $this->query = isset($parts['query']) - ? $this->filterQueryAndFragment($parts['query']) - : ''; - $this->fragment = isset($parts['fragment']) - ? $this->filterQueryAndFragment($parts['fragment']) - : ''; + $this->scheme = isset($parts['scheme']) ? $this->filterScheme($parts['scheme']) : ''; + $this->userInfo = isset($parts['user']) ? $this->filterUserInfoComponent($parts['user']) : ''; + $this->host = isset($parts['host']) ? $this->filterHost($parts['host']) : ''; + $this->port = isset($parts['port']) ? $this->filterPort($parts['port']) : null; + $this->path = isset($parts['path']) ? $this->filterPath($parts['path']) : ''; + $this->query = isset($parts['query']) ? $this->filterQueryAndFragment($parts['query']) : ''; + $this->fragment = isset($parts['fragment']) ? $this->filterQueryAndFragment($parts['fragment']) : ''; if (isset($parts['pass'])) { $this->userInfo .= ':' . $this->filterUserInfoComponent($parts['pass']); } - $this->removeDefaultPort(); } - /** * @param string $scheme * @@ -571,13 +450,11 @@ class Uri implements UriInterface */ private function filterScheme($scheme) { - if (!is_string($scheme)) { + if (!\is_string($scheme)) { throw new \InvalidArgumentException('Scheme must be a string'); } - - return strtolower($scheme); + return \strtolower($scheme); } - /** * @param string $component * @@ -587,17 +464,11 @@ class Uri implements UriInterface */ private function filterUserInfoComponent($component) { - if (!is_string($component)) { + if (!\is_string($component)) { throw new \InvalidArgumentException('User info must be a string'); } - - return preg_replace_callback( - '/(?:[^%' . self::$charUnreserved . self::$charSubDelims . ']+|%(?![A-Fa-f0-9]{2}))/', - [$this, 'rawurlencodeMatchZero'], - $component - ); + return \preg_replace_callback('/(?:[^%' . self::$charUnreserved . self::$charSubDelims . ']+|%(?![A-Fa-f0-9]{2}))/', [$this, 'rawurlencodeMatchZero'], $component); } - /** * @param string $host * @@ -607,13 +478,11 @@ class Uri implements UriInterface */ private function filterHost($host) { - if (!is_string($host)) { + if (!\is_string($host)) { throw new \InvalidArgumentException('Host must be a string'); } - - return strtolower($host); + return \strtolower($host); } - /** * @param int|null $port * @@ -626,38 +495,29 @@ class Uri implements UriInterface if ($port === null) { return null; } - $port = (int) $port; if (0 > $port || 0xffff < $port) { - throw new \InvalidArgumentException( - sprintf('Invalid port: %d. Must be between 0 and 65535', $port) - ); + throw new \InvalidArgumentException(\sprintf('Invalid port: %d. Must be between 0 and 65535', $port)); } - return $port; } - /** * @param UriInterface $uri * @param array $keys * * @return array */ - private static function getFilteredQueryString(UriInterface $uri, array $keys) + private static function getFilteredQueryString(\WPMailSMTP\Vendor\Psr\Http\Message\UriInterface $uri, array $keys) { $current = $uri->getQuery(); - if ($current === '') { return []; } - - $decodedKeys = array_map('rawurldecode', $keys); - - return array_filter(explode('&', $current), function ($part) use ($decodedKeys) { - return !in_array(rawurldecode(explode('=', $part)[0]), $decodedKeys, true); + $decodedKeys = \array_map('rawurldecode', $keys); + return \array_filter(\explode('&', $current), function ($part) use($decodedKeys) { + return !\in_array(\rawurldecode(\explode('=', $part)[0]), $decodedKeys, \true); }); } - /** * @param string $key * @param string|null $value @@ -669,22 +529,18 @@ class Uri implements UriInterface // Query string separators ("=", "&") within the key or value need to be encoded // (while preventing double-encoding) before setting the query string. All other // chars that need percent-encoding will be encoded by withQuery(). - $queryString = strtr($key, self::$replaceQuery); - + $queryString = \strtr($key, self::$replaceQuery); if ($value !== null) { - $queryString .= '=' . strtr($value, self::$replaceQuery); + $queryString .= '=' . \strtr($value, self::$replaceQuery); } - return $queryString; } - private function removeDefaultPort() { if ($this->port !== null && self::isDefaultPort($this)) { $this->port = null; } } - /** * Filters the path of a URI * @@ -696,17 +552,11 @@ class Uri implements UriInterface */ private function filterPath($path) { - if (!is_string($path)) { + if (!\is_string($path)) { throw new \InvalidArgumentException('Path must be a string'); } - - return preg_replace_callback( - '/(?:[^' . self::$charUnreserved . self::$charSubDelims . '%:@\/]++|%(?![A-Fa-f0-9]{2}))/', - [$this, 'rawurlencodeMatchZero'], - $path - ); + return \preg_replace_callback('/(?:[^' . self::$charUnreserved . self::$charSubDelims . '%:@\\/]++|%(?![A-Fa-f0-9]{2}))/', [$this, 'rawurlencodeMatchZero'], $path); } - /** * Filters the query string or fragment of a URI. * @@ -718,42 +568,30 @@ class Uri implements UriInterface */ private function filterQueryAndFragment($str) { - if (!is_string($str)) { + if (!\is_string($str)) { throw new \InvalidArgumentException('Query and fragment must be a string'); } - - return preg_replace_callback( - '/(?:[^' . self::$charUnreserved . self::$charSubDelims . '%:@\/\?]++|%(?![A-Fa-f0-9]{2}))/', - [$this, 'rawurlencodeMatchZero'], - $str - ); + return \preg_replace_callback('/(?:[^' . self::$charUnreserved . self::$charSubDelims . '%:@\\/\\?]++|%(?![A-Fa-f0-9]{2}))/', [$this, 'rawurlencodeMatchZero'], $str); } - private function rawurlencodeMatchZero(array $match) { - return rawurlencode($match[0]); + return \rawurlencode($match[0]); } - private function validateState() { if ($this->host === '' && ($this->scheme === 'http' || $this->scheme === 'https')) { $this->host = self::HTTP_DEFAULT_HOST; } - if ($this->getAuthority() === '') { - if (0 === strpos($this->path, '//')) { + if (0 === \strpos($this->path, '//')) { throw new \InvalidArgumentException('The path of a URI without an authority must not start with two slashes "//"'); } - if ($this->scheme === '' && false !== strpos(explode('/', $this->path, 2)[0], ':')) { + if ($this->scheme === '' && \false !== \strpos(\explode('/', $this->path, 2)[0], ':')) { throw new \InvalidArgumentException('A relative URI must not have a path beginning with a segment containing a colon'); } } elseif (isset($this->path[0]) && $this->path[0] !== '/') { - @trigger_error( - 'The path of a URI with an authority must start with a slash "/" or be empty. Automagically fixing the URI ' . - 'by adding a leading slash to the path is deprecated since version 1.4 and will throw an exception instead.', - E_USER_DEPRECATED - ); - $this->path = '/'. $this->path; + @\trigger_error('The path of a URI with an authority must start with a slash "/" or be empty. Automagically fixing the URI ' . 'by adding a leading slash to the path is deprecated since version 1.4 and will throw an exception instead.', \E_USER_DEPRECATED); + $this->path = '/' . $this->path; //throw new \InvalidArgumentException('The path of a URI with an authority must start with a slash "/" or be empty'); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/UriNormalizer.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/UriNormalizer.php similarity index 79% rename from wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/UriNormalizer.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/UriNormalizer.php index 384c29e..48e4424 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/UriNormalizer.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/UriNormalizer.php @@ -1,8 +1,8 @@ getPath() === '' && - ($uri->getScheme() === 'http' || $uri->getScheme() === 'https') - ) { + if ($flags & self::CONVERT_EMPTY_PATH && $uri->getPath() === '' && ($uri->getScheme() === 'http' || $uri->getScheme() === 'https')) { $uri = $uri->withPath('/'); } - if ($flags & self::REMOVE_DEFAULT_HOST && $uri->getScheme() === 'file' && $uri->getHost() === 'localhost') { $uri = $uri->withHost(''); } - - if ($flags & self::REMOVE_DEFAULT_PORT && $uri->getPort() !== null && Uri::isDefaultPort($uri)) { + if ($flags & self::REMOVE_DEFAULT_PORT && $uri->getPort() !== null && \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Uri::isDefaultPort($uri)) { $uri = $uri->withPort(null); } - - if ($flags & self::REMOVE_DOT_SEGMENTS && !Uri::isRelativePathReference($uri)) { - $uri = $uri->withPath(UriResolver::removeDotSegments($uri->getPath())); + if ($flags & self::REMOVE_DOT_SEGMENTS && !\WPMailSMTP\Vendor\GuzzleHttp\Psr7\Uri::isRelativePathReference($uri)) { + $uri = $uri->withPath(\WPMailSMTP\Vendor\GuzzleHttp\Psr7\UriResolver::removeDotSegments($uri->getPath())); } - if ($flags & self::REMOVE_DUPLICATE_SLASHES) { - $uri = $uri->withPath(preg_replace('#//++#', '/', $uri->getPath())); + $uri = $uri->withPath(\preg_replace('#//++#', '/', $uri->getPath())); } - if ($flags & self::SORT_QUERY_PARAMETERS && $uri->getQuery() !== '') { - $queryKeyValues = explode('&', $uri->getQuery()); - sort($queryKeyValues); - $uri = $uri->withQuery(implode('&', $queryKeyValues)); + $queryKeyValues = \explode('&', $uri->getQuery()); + \sort($queryKeyValues); + $uri = $uri->withQuery(\implode('&', $queryKeyValues)); } - return $uri; } - /** * Whether two URIs can be considered equivalent. * @@ -172,43 +152,26 @@ final class UriNormalizer * @return bool * @link https://tools.ietf.org/html/rfc3986#section-6.1 */ - public static function isEquivalent(UriInterface $uri1, UriInterface $uri2, $normalizations = self::PRESERVING_NORMALIZATIONS) + public static function isEquivalent(\WPMailSMTP\Vendor\Psr\Http\Message\UriInterface $uri1, \WPMailSMTP\Vendor\Psr\Http\Message\UriInterface $uri2, $normalizations = self::PRESERVING_NORMALIZATIONS) { return (string) self::normalize($uri1, $normalizations) === (string) self::normalize($uri2, $normalizations); } - - private static function capitalizePercentEncoding(UriInterface $uri) + private static function capitalizePercentEncoding(\WPMailSMTP\Vendor\Psr\Http\Message\UriInterface $uri) { $regex = '/(?:%[A-Fa-f0-9]{2})++/'; - $callback = function (array $match) { - return strtoupper($match[0]); + return \strtoupper($match[0]); }; - - return - $uri->withPath( - preg_replace_callback($regex, $callback, $uri->getPath()) - )->withQuery( - preg_replace_callback($regex, $callback, $uri->getQuery()) - ); + return $uri->withPath(\preg_replace_callback($regex, $callback, $uri->getPath()))->withQuery(\preg_replace_callback($regex, $callback, $uri->getQuery())); } - - private static function decodeUnreservedCharacters(UriInterface $uri) + private static function decodeUnreservedCharacters(\WPMailSMTP\Vendor\Psr\Http\Message\UriInterface $uri) { $regex = '/%(?:2D|2E|5F|7E|3[0-9]|[46][1-9A-F]|[57][0-9A])/i'; - $callback = function (array $match) { - return rawurldecode($match[0]); + return \rawurldecode($match[0]); }; - - return - $uri->withPath( - preg_replace_callback($regex, $callback, $uri->getPath()) - )->withQuery( - preg_replace_callback($regex, $callback, $uri->getQuery()) - ); + return $uri->withPath(\preg_replace_callback($regex, $callback, $uri->getPath()))->withQuery(\preg_replace_callback($regex, $callback, $uri->getQuery())); } - private function __construct() { // cannot be instantiated diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/UriResolver.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/UriResolver.php similarity index 77% rename from wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/UriResolver.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/UriResolver.php index c1cb8a2..a566fe5 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/UriResolver.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/UriResolver.php @@ -1,8 +1,8 @@ getScheme() != '') { return $rel->withPath(self::removeDotSegments($rel->getPath())); } - if ($rel->getAuthority() != '') { $targetAuthority = $rel->getAuthority(); $targetPath = self::removeDotSegments($rel->getPath()); @@ -86,11 +79,11 @@ final class UriResolver if ($targetAuthority != '' && $base->getPath() === '') { $targetPath = '/' . $rel->getPath(); } else { - $lastSlashPos = strrpos($base->getPath(), '/'); - if ($lastSlashPos === false) { + $lastSlashPos = \strrpos($base->getPath(), '/'); + if ($lastSlashPos === \false) { $targetPath = $rel->getPath(); } else { - $targetPath = substr($base->getPath(), 0, $lastSlashPos + 1) . $rel->getPath(); + $targetPath = \substr($base->getPath(), 0, $lastSlashPos + 1) . $rel->getPath(); } } } @@ -98,16 +91,8 @@ final class UriResolver $targetQuery = $rel->getQuery(); } } - - return new Uri(Uri::composeComponents( - $base->getScheme(), - $targetAuthority, - $targetPath, - $targetQuery, - $rel->getFragment() - )); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Uri(\WPMailSMTP\Vendor\GuzzleHttp\Psr7\Uri::composeComponents($base->getScheme(), $targetAuthority, $targetPath, $targetQuery, $rel->getFragment())); } - /** * Returns the target URI as a relative reference from the base URI. * @@ -134,57 +119,46 @@ final class UriResolver * * @return UriInterface The relative URI reference */ - public static function relativize(UriInterface $base, UriInterface $target) + public static function relativize(\WPMailSMTP\Vendor\Psr\Http\Message\UriInterface $base, \WPMailSMTP\Vendor\Psr\Http\Message\UriInterface $target) { - if ($target->getScheme() !== '' && - ($base->getScheme() !== $target->getScheme() || $target->getAuthority() === '' && $base->getAuthority() !== '') - ) { + if ($target->getScheme() !== '' && ($base->getScheme() !== $target->getScheme() || $target->getAuthority() === '' && $base->getAuthority() !== '')) { return $target; } - - if (Uri::isRelativePathReference($target)) { + if (\WPMailSMTP\Vendor\GuzzleHttp\Psr7\Uri::isRelativePathReference($target)) { // As the target is already highly relative we return it as-is. It would be possible to resolve // the target with `$target = self::resolve($base, $target);` and then try make it more relative // by removing a duplicate query. But let's not do that automatically. return $target; } - if ($target->getAuthority() !== '' && $base->getAuthority() !== $target->getAuthority()) { return $target->withScheme(''); } - // We must remove the path before removing the authority because if the path starts with two slashes, the URI // would turn invalid. And we also cannot set a relative path before removing the authority, as that is also // invalid. $emptyPathUri = $target->withScheme('')->withPath('')->withUserInfo('')->withPort(null)->withHost(''); - if ($base->getPath() !== $target->getPath()) { return $emptyPathUri->withPath(self::getRelativePath($base, $target)); } - if ($base->getQuery() === $target->getQuery()) { // Only the target fragment is left. And it must be returned even if base and target fragment are the same. return $emptyPathUri->withQuery(''); } - // If the base URI has a query but the target has none, we cannot return an empty path reference as it would // inherit the base query component when resolving. if ($target->getQuery() === '') { - $segments = explode('/', $target->getPath()); - $lastSegment = end($segments); - + $segments = \explode('/', $target->getPath()); + $lastSegment = \end($segments); return $emptyPathUri->withPath($lastSegment === '' ? './' : $lastSegment); } - return $emptyPathUri; } - - private static function getRelativePath(UriInterface $base, UriInterface $target) + private static function getRelativePath(\WPMailSMTP\Vendor\Psr\Http\Message\UriInterface $base, \WPMailSMTP\Vendor\Psr\Http\Message\UriInterface $target) { - $sourceSegments = explode('/', $base->getPath()); - $targetSegments = explode('/', $target->getPath()); - array_pop($sourceSegments); - $targetLastSegment = array_pop($targetSegments); + $sourceSegments = \explode('/', $base->getPath()); + $targetSegments = \explode('/', $target->getPath()); + \array_pop($sourceSegments); + $targetLastSegment = \array_pop($targetSegments); foreach ($sourceSegments as $i => $segment) { if (isset($targetSegments[$i]) && $segment === $targetSegments[$i]) { unset($sourceSegments[$i], $targetSegments[$i]); @@ -193,25 +167,22 @@ final class UriResolver } } $targetSegments[] = $targetLastSegment; - $relativePath = str_repeat('../', count($sourceSegments)) . implode('/', $targetSegments); - + $relativePath = \str_repeat('../', \count($sourceSegments)) . \implode('/', $targetSegments); // A reference to am empty last segment or an empty first sub-segment must be prefixed with "./". // This also applies to a segment with a colon character (e.g., "file:colon") that cannot be used // as the first segment of a relative-path reference, as it would be mistaken for a scheme name. - if ('' === $relativePath || false !== strpos(explode('/', $relativePath, 2)[0], ':')) { - $relativePath = "./$relativePath"; + if ('' === $relativePath || \false !== \strpos(\explode('/', $relativePath, 2)[0], ':')) { + $relativePath = "./{$relativePath}"; } elseif ('/' === $relativePath[0]) { if ($base->getAuthority() != '' && $base->getPath() === '') { // In this case an extra slash is added by resolve() automatically. So we must not add one here. - $relativePath = ".$relativePath"; + $relativePath = ".{$relativePath}"; } else { - $relativePath = "./$relativePath"; + $relativePath = "./{$relativePath}"; } } - return $relativePath; } - private function __construct() { // cannot be instantiated diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/functions.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/functions.php similarity index 57% rename from wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/functions.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/functions.php index 8e6dafe..8e36ea0 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/psr7/src/functions.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/functions.php @@ -1,13 +1,13 @@ getMethod() . ' ' - . $message->getRequestTarget()) - . ' HTTP/' . $message->getProtocolVersion(); + if ($message instanceof \WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface) { + $msg = \trim($message->getMethod() . ' ' . $message->getRequestTarget()) . ' HTTP/' . $message->getProtocolVersion(); if (!$message->hasHeader('host')) { $msg .= "\r\nHost: " . $message->getUri()->getHost(); } - } elseif ($message instanceof ResponseInterface) { - $msg = 'HTTP/' . $message->getProtocolVersion() . ' ' - . $message->getStatusCode() . ' ' - . $message->getReasonPhrase(); + } elseif ($message instanceof \WPMailSMTP\Vendor\Psr\Http\Message\ResponseInterface) { + $msg = 'HTTP/' . $message->getProtocolVersion() . ' ' . $message->getStatusCode() . ' ' . $message->getReasonPhrase(); } else { throw new \InvalidArgumentException('Unknown message type'); } - foreach ($message->getHeaders() as $name => $values) { - $msg .= "\r\n{$name}: " . implode(', ', $values); + $msg .= "\r\n{$name}: " . \implode(', ', $values); } - return "{$msg}\r\n\r\n" . $message->getBody(); } - /** * Returns a UriInterface for the given value. * @@ -53,15 +46,13 @@ function str(MessageInterface $message) */ function uri_for($uri) { - if ($uri instanceof UriInterface) { + if ($uri instanceof \WPMailSMTP\Vendor\Psr\Http\Message\UriInterface) { return $uri; - } elseif (is_string($uri)) { - return new Uri($uri); + } elseif (\is_string($uri)) { + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Uri($uri); } - throw new \InvalidArgumentException('URI must be a string or UriInterface'); } - /** * Create a new stream based on the input type. * @@ -77,45 +68,41 @@ function uri_for($uri) */ function stream_for($resource = '', array $options = []) { - if (is_scalar($resource)) { - $stream = fopen('php://temp', 'r+'); + if (\is_scalar($resource)) { + $stream = \fopen('php://temp', 'r+'); if ($resource !== '') { - fwrite($stream, $resource); - fseek($stream, 0); + \fwrite($stream, $resource); + \fseek($stream, 0); } - return new Stream($stream, $options); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Stream($stream, $options); } - - switch (gettype($resource)) { + switch (\gettype($resource)) { case 'resource': - return new Stream($resource, $options); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Stream($resource, $options); case 'object': - if ($resource instanceof StreamInterface) { + if ($resource instanceof \WPMailSMTP\Vendor\Psr\Http\Message\StreamInterface) { return $resource; } elseif ($resource instanceof \Iterator) { - return new PumpStream(function () use ($resource) { + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\PumpStream(function () use($resource) { if (!$resource->valid()) { - return false; + return \false; } $result = $resource->current(); $resource->next(); return $result; }, $options); - } elseif (method_exists($resource, '__toString')) { + } elseif (\method_exists($resource, '__toString')) { return stream_for((string) $resource, $options); } break; case 'NULL': - return new Stream(fopen('php://temp', 'r+'), $options); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Stream(\fopen('php://temp', 'r+'), $options); } - - if (is_callable($resource)) { - return new PumpStream($resource, $options); + if (\is_callable($resource)) { + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\PumpStream($resource, $options); } - - throw new \InvalidArgumentException('Invalid resource type: ' . gettype($resource)); + throw new \InvalidArgumentException('Invalid resource type: ' . \gettype($resource)); } - /** * Parse an array of header values containing ";" separated data into an * array of associative arrays representing the header key value pair @@ -130,16 +117,15 @@ function parse_header($header) { static $trimmed = "\"' \n\t\r"; $params = $matches = []; - foreach (normalize_header($header) as $val) { $part = []; - foreach (preg_split('/;(?=([^"]*"[^"]*")*[^"]*$)/', $val) as $kvp) { - if (preg_match_all('/<[^>]+>|[^=]+/', $kvp, $matches)) { + foreach (\preg_split('/;(?=([^"]*"[^"]*")*[^"]*$)/', $val) as $kvp) { + if (\preg_match_all('/<[^>]+>|[^=]+/', $kvp, $matches)) { $m = $matches[0]; if (isset($m[1])) { - $part[trim($m[0], $trimmed)] = trim($m[1], $trimmed); + $part[\trim($m[0], $trimmed)] = \trim($m[1], $trimmed); } else { - $part[] = trim($m[0], $trimmed); + $part[] = \trim($m[0], $trimmed); } } } @@ -147,10 +133,8 @@ function parse_header($header) $params[] = $part; } } - return $params; } - /** * Converts an array of header values that may contain comma separated * headers into an array of headers with no comma separated values. @@ -161,26 +145,23 @@ function parse_header($header) */ function normalize_header($header) { - if (!is_array($header)) { - return array_map('trim', explode(',', $header)); + if (!\is_array($header)) { + return \array_map('trim', \explode(',', $header)); } - $result = []; foreach ($header as $value) { foreach ((array) $value as $v) { - if (strpos($v, ',') === false) { + if (\strpos($v, ',') === \false) { $result[] = $v; continue; } - foreach (preg_split('/,(?=([^"]*"[^"]*")*[^"]*$)/', $v) as $vv) { - $result[] = trim($vv); + foreach (\preg_split('/,(?=([^"]*"[^"]*")*[^"]*$)/', $v) as $vv) { + $result[] = \trim($vv); } } } - return $result; } - /** * Clone and modify a request with the given changes. * @@ -198,73 +179,43 @@ function normalize_header($header) * * @return RequestInterface */ -function modify_request(RequestInterface $request, array $changes) +function modify_request(\WPMailSMTP\Vendor\Psr\Http\Message\RequestInterface $request, array $changes) { if (!$changes) { return $request; } - $headers = $request->getHeaders(); - if (!isset($changes['uri'])) { $uri = $request->getUri(); } else { // Remove the host header if one is on the URI if ($host = $changes['uri']->getHost()) { $changes['set_headers']['Host'] = $host; - if ($port = $changes['uri']->getPort()) { $standardPorts = ['http' => 80, 'https' => 443]; $scheme = $changes['uri']->getScheme(); if (isset($standardPorts[$scheme]) && $port != $standardPorts[$scheme]) { - $changes['set_headers']['Host'] .= ':'.$port; + $changes['set_headers']['Host'] .= ':' . $port; } } } $uri = $changes['uri']; } - if (!empty($changes['remove_headers'])) { $headers = _caseless_remove($changes['remove_headers'], $headers); } - if (!empty($changes['set_headers'])) { - $headers = _caseless_remove(array_keys($changes['set_headers']), $headers); + $headers = _caseless_remove(\array_keys($changes['set_headers']), $headers); $headers = $changes['set_headers'] + $headers; } - if (isset($changes['query'])) { $uri = $uri->withQuery($changes['query']); } - - if ($request instanceof ServerRequestInterface) { - return (new ServerRequest( - isset($changes['method']) ? $changes['method'] : $request->getMethod(), - $uri, - $headers, - isset($changes['body']) ? $changes['body'] : $request->getBody(), - isset($changes['version']) - ? $changes['version'] - : $request->getProtocolVersion(), - $request->getServerParams() - )) - ->withParsedBody($request->getParsedBody()) - ->withQueryParams($request->getQueryParams()) - ->withCookieParams($request->getCookieParams()) - ->withUploadedFiles($request->getUploadedFiles()); + if ($request instanceof \WPMailSMTP\Vendor\Psr\Http\Message\ServerRequestInterface) { + return (new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\ServerRequest(isset($changes['method']) ? $changes['method'] : $request->getMethod(), $uri, $headers, isset($changes['body']) ? $changes['body'] : $request->getBody(), isset($changes['version']) ? $changes['version'] : $request->getProtocolVersion(), $request->getServerParams()))->withParsedBody($request->getParsedBody())->withQueryParams($request->getQueryParams())->withCookieParams($request->getCookieParams())->withUploadedFiles($request->getUploadedFiles()); } - - return new Request( - isset($changes['method']) ? $changes['method'] : $request->getMethod(), - $uri, - $headers, - isset($changes['body']) ? $changes['body'] : $request->getBody(), - isset($changes['version']) - ? $changes['version'] - : $request->getProtocolVersion() - ); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request(isset($changes['method']) ? $changes['method'] : $request->getMethod(), $uri, $headers, isset($changes['body']) ? $changes['body'] : $request->getBody(), isset($changes['version']) ? $changes['version'] : $request->getProtocolVersion()); } - /** * Attempts to rewind a message body and throws an exception on failure. * @@ -275,15 +226,13 @@ function modify_request(RequestInterface $request, array $changes) * * @throws \RuntimeException */ -function rewind_body(MessageInterface $message) +function rewind_body(\WPMailSMTP\Vendor\Psr\Http\Message\MessageInterface $message) { $body = $message->getBody(); - if ($body->tell()) { $body->rewind(); } } - /** * Safely opens a PHP stream resource using a filename. * @@ -299,26 +248,17 @@ function rewind_body(MessageInterface $message) function try_fopen($filename, $mode) { $ex = null; - set_error_handler(function () use ($filename, $mode, &$ex) { - $ex = new \RuntimeException(sprintf( - 'Unable to open %s using mode %s: %s', - $filename, - $mode, - func_get_args()[1] - )); + \set_error_handler(function () use($filename, $mode, &$ex) { + $ex = new \RuntimeException(\sprintf('Unable to open %s using mode %s: %s', $filename, $mode, \func_get_args()[1])); }); - - $handle = fopen($filename, $mode); - restore_error_handler(); - + $handle = \fopen($filename, $mode); + \restore_error_handler(); if ($ex) { /** @var $ex \RuntimeException */ throw $ex; } - return $handle; } - /** * Copy the contents of a stream into a string until the given number of * bytes have been read. @@ -329,10 +269,9 @@ function try_fopen($filename, $mode) * @return string * @throws \RuntimeException on error. */ -function copy_to_string(StreamInterface $stream, $maxLen = -1) +function copy_to_string(\WPMailSMTP\Vendor\Psr\Http\Message\StreamInterface $stream, $maxLen = -1) { $buffer = ''; - if ($maxLen === -1) { while (!$stream->eof()) { $buf = $stream->read(1048576); @@ -344,7 +283,6 @@ function copy_to_string(StreamInterface $stream, $maxLen = -1) } return $buffer; } - $len = 0; while (!$stream->eof() && $len < $maxLen) { $buf = $stream->read($maxLen - $len); @@ -353,12 +291,10 @@ function copy_to_string(StreamInterface $stream, $maxLen = -1) break; } $buffer .= $buf; - $len = strlen($buffer); + $len = \strlen($buffer); } - return $buffer; } - /** * Copy the contents of a stream into another stream until the given number * of bytes have been read. @@ -370,13 +306,9 @@ function copy_to_string(StreamInterface $stream, $maxLen = -1) * * @throws \RuntimeException on error. */ -function copy_to_stream( - StreamInterface $source, - StreamInterface $dest, - $maxLen = -1 -) { +function copy_to_stream(\WPMailSMTP\Vendor\Psr\Http\Message\StreamInterface $source, \WPMailSMTP\Vendor\Psr\Http\Message\StreamInterface $dest, $maxLen = -1) +{ $bufferSize = 8192; - if ($maxLen === -1) { while (!$source->eof()) { if (!$dest->write($source->read($bufferSize))) { @@ -386,8 +318,8 @@ function copy_to_stream( } else { $remaining = $maxLen; while ($remaining > 0 && !$source->eof()) { - $buf = $source->read(min($bufferSize, $remaining)); - $len = strlen($buf); + $buf = $source->read(\min($bufferSize, $remaining)); + $len = \strlen($buf); if (!$len) { break; } @@ -396,7 +328,6 @@ function copy_to_stream( } } } - /** * Calculate a hash of a Stream * @@ -407,28 +338,20 @@ function copy_to_stream( * @return string Returns the hash of the stream * @throws \RuntimeException on error. */ -function hash( - StreamInterface $stream, - $algo, - $rawOutput = false -) { +function hash(\WPMailSMTP\Vendor\Psr\Http\Message\StreamInterface $stream, $algo, $rawOutput = \false) +{ $pos = $stream->tell(); - if ($pos > 0) { $stream->rewind(); } - - $ctx = hash_init($algo); + $ctx = \hash_init($algo); while (!$stream->eof()) { - hash_update($ctx, $stream->read(1048576)); + \hash_update($ctx, $stream->read(1048576)); } - - $out = hash_final($ctx, (bool) $rawOutput); + $out = \hash_final($ctx, (bool) $rawOutput); $stream->seek($pos); - return $out; } - /** * Read a line from the stream up to the maximum allowed buffer length * @@ -437,11 +360,10 @@ function hash( * * @return string */ -function readline(StreamInterface $stream, $maxLength = null) +function readline(\WPMailSMTP\Vendor\Psr\Http\Message\StreamInterface $stream, $maxLength = null) { $buffer = ''; $size = 0; - while (!$stream->eof()) { // Using a loose equality here to match on '' and false. if (null == ($byte = $stream->read(1))) { @@ -453,10 +375,8 @@ function readline(StreamInterface $stream, $maxLength = null) break; } } - return $buffer; } - /** * Parses a request message string into a request object. * @@ -468,23 +388,14 @@ function parse_request($message) { $data = _parse_message($message); $matches = []; - if (!preg_match('/^[\S]+\s+([a-zA-Z]+:\/\/|\/).*/', $data['start-line'], $matches)) { + if (!\preg_match('/^[\\S]+\\s+([a-zA-Z]+:\\/\\/|\\/).*/', $data['start-line'], $matches)) { throw new \InvalidArgumentException('Invalid request string'); } - $parts = explode(' ', $data['start-line'], 3); - $version = isset($parts[2]) ? explode('/', $parts[2])[1] : '1.1'; - - $request = new Request( - $parts[0], - $matches[1] === '/' ? _parse_request_uri($parts[1], $data['headers']) : $parts[1], - $data['headers'], - $data['body'], - $version - ); - + $parts = \explode(' ', $data['start-line'], 3); + $version = isset($parts[2]) ? \explode('/', $parts[2])[1] : '1.1'; + $request = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request($parts[0], $matches[1] === '/' ? _parse_request_uri($parts[1], $data['headers']) : $parts[1], $data['headers'], $data['body'], $version); return $matches[1] === '/' ? $request : $request->withRequestTarget($parts[1]); } - /** * Parses a response message string into a response object. * @@ -498,20 +409,12 @@ function parse_response($message) // According to https://tools.ietf.org/html/rfc7230#section-3.1.2 the space // between status-code and reason-phrase is required. But browsers accept // responses without space and reason as well. - if (!preg_match('/^HTTP\/.* [0-9]{3}( .*|$)/', $data['start-line'])) { + if (!\preg_match('/^HTTP\\/.* [0-9]{3}( .*|$)/', $data['start-line'])) { throw new \InvalidArgumentException('Invalid response string: ' . $data['start-line']); } - $parts = explode(' ', $data['start-line'], 3); - - return new Response( - $parts[1], - $data['headers'], - $data['body'], - explode('/', $parts[0])[1], - isset($parts[2]) ? $parts[2] : null - ); + $parts = \explode(' ', $data['start-line'], 3); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Response($parts[1], $data['headers'], $data['body'], \explode('/', $parts[0])[1], isset($parts[2]) ? $parts[2] : null); } - /** * Parse a query string into an associative array. * @@ -525,43 +428,40 @@ function parse_response($message) * * @return array */ -function parse_query($str, $urlEncoding = true) +function parse_query($str, $urlEncoding = \true) { $result = []; - if ($str === '') { return $result; } - - if ($urlEncoding === true) { + if ($urlEncoding === \true) { $decoder = function ($value) { - return rawurldecode(str_replace('+', ' ', $value)); + return \rawurldecode(\str_replace('+', ' ', $value)); }; - } elseif ($urlEncoding === PHP_QUERY_RFC3986) { + } elseif ($urlEncoding === \PHP_QUERY_RFC3986) { $decoder = 'rawurldecode'; - } elseif ($urlEncoding === PHP_QUERY_RFC1738) { + } elseif ($urlEncoding === \PHP_QUERY_RFC1738) { $decoder = 'urldecode'; } else { - $decoder = function ($str) { return $str; }; + $decoder = function ($str) { + return $str; + }; } - - foreach (explode('&', $str) as $kvp) { - $parts = explode('=', $kvp, 2); + foreach (\explode('&', $str) as $kvp) { + $parts = \explode('=', $kvp, 2); $key = $decoder($parts[0]); $value = isset($parts[1]) ? $decoder($parts[1]) : null; if (!isset($result[$key])) { $result[$key] = $value; } else { - if (!is_array($result[$key])) { + if (!\is_array($result[$key])) { $result[$key] = [$result[$key]]; } $result[$key][] = $value; } } - return $result; } - /** * Build a query string from an array of key value pairs. * @@ -575,26 +475,26 @@ function parse_query($str, $urlEncoding = true) * to encode using RFC1738. * @return string */ -function build_query(array $params, $encoding = PHP_QUERY_RFC3986) +function build_query(array $params, $encoding = \PHP_QUERY_RFC3986) { if (!$params) { return ''; } - - if ($encoding === false) { - $encoder = function ($str) { return $str; }; - } elseif ($encoding === PHP_QUERY_RFC3986) { + if ($encoding === \false) { + $encoder = function ($str) { + return $str; + }; + } elseif ($encoding === \PHP_QUERY_RFC3986) { $encoder = 'rawurlencode'; - } elseif ($encoding === PHP_QUERY_RFC1738) { + } elseif ($encoding === \PHP_QUERY_RFC1738) { $encoder = 'urlencode'; } else { throw new \InvalidArgumentException('Invalid type'); } - $qs = ''; foreach ($params as $k => $v) { $k = $encoder($k); - if (!is_array($v)) { + if (!\is_array($v)) { $qs .= $k; if ($v !== null) { $qs .= '=' . $encoder($v); @@ -610,10 +510,8 @@ function build_query(array $params, $encoding = PHP_QUERY_RFC3986) } } } - - return $qs ? (string) substr($qs, 0, -1) : ''; + return $qs ? (string) \substr($qs, 0, -1) : ''; } - /** * Determines the mimetype of a file by looking at its extension. * @@ -623,9 +521,8 @@ function build_query(array $params, $encoding = PHP_QUERY_RFC3986) */ function mimetype_from_filename($filename) { - return mimetype_from_extension(pathinfo($filename, PATHINFO_EXTENSION)); + return mimetype_from_extension(\pathinfo($filename, \PATHINFO_EXTENSION)); } - /** * Maps a file extensions to a mimetype. * @@ -636,117 +533,10 @@ function mimetype_from_filename($filename) */ function mimetype_from_extension($extension) { - static $mimetypes = [ - '3gp' => 'video/3gpp', - '7z' => 'application/x-7z-compressed', - 'aac' => 'audio/x-aac', - 'ai' => 'application/postscript', - 'aif' => 'audio/x-aiff', - 'asc' => 'text/plain', - 'asf' => 'video/x-ms-asf', - 'atom' => 'application/atom+xml', - 'avi' => 'video/x-msvideo', - 'bmp' => 'image/bmp', - 'bz2' => 'application/x-bzip2', - 'cer' => 'application/pkix-cert', - 'crl' => 'application/pkix-crl', - 'crt' => 'application/x-x509-ca-cert', - 'css' => 'text/css', - 'csv' => 'text/csv', - 'cu' => 'application/cu-seeme', - 'deb' => 'application/x-debian-package', - 'doc' => 'application/msword', - 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', - 'dvi' => 'application/x-dvi', - 'eot' => 'application/vnd.ms-fontobject', - 'eps' => 'application/postscript', - 'epub' => 'application/epub+zip', - 'etx' => 'text/x-setext', - 'flac' => 'audio/flac', - 'flv' => 'video/x-flv', - 'gif' => 'image/gif', - 'gz' => 'application/gzip', - 'htm' => 'text/html', - 'html' => 'text/html', - 'ico' => 'image/x-icon', - 'ics' => 'text/calendar', - 'ini' => 'text/plain', - 'iso' => 'application/x-iso9660-image', - 'jar' => 'application/java-archive', - 'jpe' => 'image/jpeg', - 'jpeg' => 'image/jpeg', - 'jpg' => 'image/jpeg', - 'js' => 'text/javascript', - 'json' => 'application/json', - 'latex' => 'application/x-latex', - 'log' => 'text/plain', - 'm4a' => 'audio/mp4', - 'm4v' => 'video/mp4', - 'mid' => 'audio/midi', - 'midi' => 'audio/midi', - 'mov' => 'video/quicktime', - 'mkv' => 'video/x-matroska', - 'mp3' => 'audio/mpeg', - 'mp4' => 'video/mp4', - 'mp4a' => 'audio/mp4', - 'mp4v' => 'video/mp4', - 'mpe' => 'video/mpeg', - 'mpeg' => 'video/mpeg', - 'mpg' => 'video/mpeg', - 'mpg4' => 'video/mp4', - 'oga' => 'audio/ogg', - 'ogg' => 'audio/ogg', - 'ogv' => 'video/ogg', - 'ogx' => 'application/ogg', - 'pbm' => 'image/x-portable-bitmap', - 'pdf' => 'application/pdf', - 'pgm' => 'image/x-portable-graymap', - 'png' => 'image/png', - 'pnm' => 'image/x-portable-anymap', - 'ppm' => 'image/x-portable-pixmap', - 'ppt' => 'application/vnd.ms-powerpoint', - 'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation', - 'ps' => 'application/postscript', - 'qt' => 'video/quicktime', - 'rar' => 'application/x-rar-compressed', - 'ras' => 'image/x-cmu-raster', - 'rss' => 'application/rss+xml', - 'rtf' => 'application/rtf', - 'sgm' => 'text/sgml', - 'sgml' => 'text/sgml', - 'svg' => 'image/svg+xml', - 'swf' => 'application/x-shockwave-flash', - 'tar' => 'application/x-tar', - 'tif' => 'image/tiff', - 'tiff' => 'image/tiff', - 'torrent' => 'application/x-bittorrent', - 'ttf' => 'application/x-font-ttf', - 'txt' => 'text/plain', - 'wav' => 'audio/x-wav', - 'webm' => 'video/webm', - 'webp' => 'image/webp', - 'wma' => 'audio/x-ms-wma', - 'wmv' => 'video/x-ms-wmv', - 'woff' => 'application/x-font-woff', - 'wsdl' => 'application/wsdl+xml', - 'xbm' => 'image/x-xbitmap', - 'xls' => 'application/vnd.ms-excel', - 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', - 'xml' => 'application/xml', - 'xpm' => 'image/x-xpixmap', - 'xwd' => 'image/x-xwindowdump', - 'yaml' => 'text/yaml', - 'yml' => 'text/yaml', - 'zip' => 'application/zip', - ]; - - $extension = strtolower($extension); - - return isset($mimetypes[$extension]) - ? $mimetypes[$extension] - : null; + static $mimetypes = ['3gp' => 'video/3gpp', '7z' => 'application/x-7z-compressed', 'aac' => 'audio/x-aac', 'ai' => 'application/postscript', 'aif' => 'audio/x-aiff', 'asc' => 'text/plain', 'asf' => 'video/x-ms-asf', 'atom' => 'application/atom+xml', 'avi' => 'video/x-msvideo', 'bmp' => 'image/bmp', 'bz2' => 'application/x-bzip2', 'cer' => 'application/pkix-cert', 'crl' => 'application/pkix-crl', 'crt' => 'application/x-x509-ca-cert', 'css' => 'text/css', 'csv' => 'text/csv', 'cu' => 'application/cu-seeme', 'deb' => 'application/x-debian-package', 'doc' => 'application/msword', 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'dvi' => 'application/x-dvi', 'eot' => 'application/vnd.ms-fontobject', 'eps' => 'application/postscript', 'epub' => 'application/epub+zip', 'etx' => 'text/x-setext', 'flac' => 'audio/flac', 'flv' => 'video/x-flv', 'gif' => 'image/gif', 'gz' => 'application/gzip', 'htm' => 'text/html', 'html' => 'text/html', 'ico' => 'image/x-icon', 'ics' => 'text/calendar', 'ini' => 'text/plain', 'iso' => 'application/x-iso9660-image', 'jar' => 'application/java-archive', 'jpe' => 'image/jpeg', 'jpeg' => 'image/jpeg', 'jpg' => 'image/jpeg', 'js' => 'text/javascript', 'json' => 'application/json', 'latex' => 'application/x-latex', 'log' => 'text/plain', 'm4a' => 'audio/mp4', 'm4v' => 'video/mp4', 'mid' => 'audio/midi', 'midi' => 'audio/midi', 'mov' => 'video/quicktime', 'mkv' => 'video/x-matroska', 'mp3' => 'audio/mpeg', 'mp4' => 'video/mp4', 'mp4a' => 'audio/mp4', 'mp4v' => 'video/mp4', 'mpe' => 'video/mpeg', 'mpeg' => 'video/mpeg', 'mpg' => 'video/mpeg', 'mpg4' => 'video/mp4', 'oga' => 'audio/ogg', 'ogg' => 'audio/ogg', 'ogv' => 'video/ogg', 'ogx' => 'application/ogg', 'pbm' => 'image/x-portable-bitmap', 'pdf' => 'application/pdf', 'pgm' => 'image/x-portable-graymap', 'png' => 'image/png', 'pnm' => 'image/x-portable-anymap', 'ppm' => 'image/x-portable-pixmap', 'ppt' => 'application/vnd.ms-powerpoint', 'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 'ps' => 'application/postscript', 'qt' => 'video/quicktime', 'rar' => 'application/x-rar-compressed', 'ras' => 'image/x-cmu-raster', 'rss' => 'application/rss+xml', 'rtf' => 'application/rtf', 'sgm' => 'text/sgml', 'sgml' => 'text/sgml', 'svg' => 'image/svg+xml', 'swf' => 'application/x-shockwave-flash', 'tar' => 'application/x-tar', 'tif' => 'image/tiff', 'tiff' => 'image/tiff', 'torrent' => 'application/x-bittorrent', 'ttf' => 'application/x-font-ttf', 'txt' => 'text/plain', 'wav' => 'audio/x-wav', 'webm' => 'video/webm', 'webp' => 'image/webp', 'wma' => 'audio/x-ms-wma', 'wmv' => 'video/x-ms-wmv', 'woff' => 'application/x-font-woff', 'wsdl' => 'application/wsdl+xml', 'xbm' => 'image/x-xbitmap', 'xls' => 'application/vnd.ms-excel', 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'xml' => 'application/xml', 'xpm' => 'image/x-xpixmap', 'xwd' => 'image/x-xwindowdump', 'yaml' => 'text/yaml', 'yml' => 'text/yaml', 'zip' => 'application/zip']; + $extension = \strtolower($extension); + return isset($mimetypes[$extension]) ? $mimetypes[$extension] : null; } - /** * Parses an HTTP message into an associative array. * @@ -764,56 +554,39 @@ function _parse_message($message) if (!$message) { throw new \InvalidArgumentException('Invalid message'); } - - $message = ltrim($message, "\r\n"); - - $messageParts = preg_split("/\r?\n\r?\n/", $message, 2); - - if ($messageParts === false || count($messageParts) !== 2) { + $message = \ltrim($message, "\r\n"); + $messageParts = \preg_split("/\r?\n\r?\n/", $message, 2); + if ($messageParts === \false || \count($messageParts) !== 2) { throw new \InvalidArgumentException('Invalid message: Missing header delimiter'); } - list($rawHeaders, $body) = $messageParts; - $rawHeaders .= "\r\n"; // Put back the delimiter we split previously - $headerParts = preg_split("/\r?\n/", $rawHeaders, 2); - - if ($headerParts === false || count($headerParts) !== 2) { + $rawHeaders .= "\r\n"; + // Put back the delimiter we split previously + $headerParts = \preg_split("/\r?\n/", $rawHeaders, 2); + if ($headerParts === \false || \count($headerParts) !== 2) { throw new \InvalidArgumentException('Invalid message: Missing status line'); } - list($startLine, $rawHeaders) = $headerParts; - - if (preg_match("/(?:^HTTP\/|^[A-Z]+ \S+ HTTP\/)(\d+(?:\.\d+)?)/i", $startLine, $matches) && $matches[1] === '1.0') { + if (\preg_match("/(?:^HTTP\\/|^[A-Z]+ \\S+ HTTP\\/)(\\d+(?:\\.\\d+)?)/i", $startLine, $matches) && $matches[1] === '1.0') { // Header folding is deprecated for HTTP/1.1, but allowed in HTTP/1.0 - $rawHeaders = preg_replace(Rfc7230::HEADER_FOLD_REGEX, ' ', $rawHeaders); + $rawHeaders = \preg_replace(\WPMailSMTP\Vendor\GuzzleHttp\Psr7\Rfc7230::HEADER_FOLD_REGEX, ' ', $rawHeaders); } - /** @var array[] $headerLines */ - $count = preg_match_all(Rfc7230::HEADER_REGEX, $rawHeaders, $headerLines, PREG_SET_ORDER); - + $count = \preg_match_all(\WPMailSMTP\Vendor\GuzzleHttp\Psr7\Rfc7230::HEADER_REGEX, $rawHeaders, $headerLines, \PREG_SET_ORDER); // If these aren't the same, then one line didn't match and there's an invalid header. - if ($count !== substr_count($rawHeaders, "\n")) { + if ($count !== \substr_count($rawHeaders, "\n")) { // Folding is deprecated, see https://tools.ietf.org/html/rfc7230#section-3.2.4 - if (preg_match(Rfc7230::HEADER_FOLD_REGEX, $rawHeaders)) { + if (\preg_match(\WPMailSMTP\Vendor\GuzzleHttp\Psr7\Rfc7230::HEADER_FOLD_REGEX, $rawHeaders)) { throw new \InvalidArgumentException('Invalid header syntax: Obsolete line folding'); } - throw new \InvalidArgumentException('Invalid header syntax'); } - $headers = []; - foreach ($headerLines as $headerLine) { $headers[$headerLine[1]][] = $headerLine[2]; } - - return [ - 'start-line' => $startLine, - 'headers' => $headers, - 'body' => $body, - ]; + return ['start-line' => $startLine, 'headers' => $headers, 'body' => $body]; } - /** * Constructs a URI for an HTTP request message. * @@ -825,21 +598,17 @@ function _parse_message($message) */ function _parse_request_uri($path, array $headers) { - $hostKey = array_filter(array_keys($headers), function ($k) { - return strtolower($k) === 'host'; + $hostKey = \array_filter(\array_keys($headers), function ($k) { + return \strtolower($k) === 'host'; }); - // If no host is found, then a full URI cannot be constructed. if (!$hostKey) { return $path; } - - $host = $headers[reset($hostKey)][0]; - $scheme = substr($host, -4) === ':443' ? 'https' : 'http'; - - return $scheme . '://' . $host . '/' . ltrim($path, '/'); + $host = $headers[\reset($hostKey)][0]; + $scheme = \substr($host, -4) === ':443' ? 'https' : 'http'; + return $scheme . '://' . $host . '/' . \ltrim($path, '/'); } - /** * Get a short summary of the message body * @@ -850,50 +619,39 @@ function _parse_request_uri($path, array $headers) * * @return null|string */ -function get_message_body_summary(MessageInterface $message, $truncateAt = 120) +function get_message_body_summary(\WPMailSMTP\Vendor\Psr\Http\Message\MessageInterface $message, $truncateAt = 120) { $body = $message->getBody(); - if (!$body->isSeekable() || !$body->isReadable()) { return null; } - $size = $body->getSize(); - if ($size === 0) { return null; } - $summary = $body->read($truncateAt); $body->rewind(); - if ($size > $truncateAt) { $summary .= ' (truncated...)'; } - // Matches any printable character, including unicode characters: // letters, marks, numbers, punctuation, spacing, and separators. - if (preg_match('/[^\pL\pM\pN\pP\pS\pZ\n\r\t]/', $summary)) { + if (\preg_match('/[^\\pL\\pM\\pN\\pP\\pS\\pZ\\n\\r\\t]/', $summary)) { return null; } - return $summary; } - /** @internal */ function _caseless_remove($keys, array $data) { $result = []; - foreach ($keys as &$key) { - $key = strtolower($key); + $key = \strtolower($key); } - foreach ($data as $k => $v) { - if (!in_array(strtolower($k), $keys)) { + if (!\in_array(\strtolower($k), $keys)) { $result[$k] = $v; } } - return $result; } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/functions_include.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/functions_include.php similarity index 52% rename from wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/functions_include.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/functions_include.php index a93393a..f558af7 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/guzzlehttp/guzzle/src/functions_include.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/guzzlehttp/psr7/src/functions_include.php @@ -1,6 +1,8 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ +namespace WPMailSMTP\Vendor\Monolog; + +use WPMailSMTP\Vendor\Psr\Log\LoggerInterface; +use WPMailSMTP\Vendor\Psr\Log\LogLevel; +use WPMailSMTP\Vendor\Monolog\Handler\AbstractHandler; +/** + * Monolog error handler + * + * A facility to enable logging of runtime errors, exceptions and fatal errors. + * + * Quick setup: ErrorHandler::register($logger); + * + * @author Jordi Boggiano + */ +class ErrorHandler +{ + private $logger; + private $previousExceptionHandler; + private $uncaughtExceptionLevel; + private $previousErrorHandler; + private $errorLevelMap; + private $handleOnlyReportedErrors; + private $hasFatalErrorHandler; + private $fatalLevel; + private $reservedMemory; + private $lastFatalTrace; + private static $fatalErrors = array(\E_ERROR, \E_PARSE, \E_CORE_ERROR, \E_COMPILE_ERROR, \E_USER_ERROR); + public function __construct(\WPMailSMTP\Vendor\Psr\Log\LoggerInterface $logger) + { + $this->logger = $logger; + } + /** + * Registers a new ErrorHandler for a given Logger + * + * By default it will handle errors, exceptions and fatal errors + * + * @param LoggerInterface $logger + * @param array|false $errorLevelMap an array of E_* constant to LogLevel::* constant mapping, or false to disable error handling + * @param int|false $exceptionLevel a LogLevel::* constant, or false to disable exception handling + * @param int|false $fatalLevel a LogLevel::* constant, or false to disable fatal error handling + * @return ErrorHandler + */ + public static function register(\WPMailSMTP\Vendor\Psr\Log\LoggerInterface $logger, $errorLevelMap = array(), $exceptionLevel = null, $fatalLevel = null) + { + //Forces the autoloader to run for LogLevel. Fixes an autoload issue at compile-time on PHP5.3. See https://github.com/Seldaek/monolog/pull/929 + \class_exists('WPMailSMTP\\Vendor\\Psr\\Log\\LogLevel', \true); + $handler = new static($logger); + if ($errorLevelMap !== \false) { + $handler->registerErrorHandler($errorLevelMap); + } + if ($exceptionLevel !== \false) { + $handler->registerExceptionHandler($exceptionLevel); + } + if ($fatalLevel !== \false) { + $handler->registerFatalHandler($fatalLevel); + } + return $handler; + } + public function registerExceptionHandler($level = null, $callPrevious = \true) + { + $prev = \set_exception_handler(array($this, 'handleException')); + $this->uncaughtExceptionLevel = $level; + if ($callPrevious && $prev) { + $this->previousExceptionHandler = $prev; + } + } + public function registerErrorHandler(array $levelMap = array(), $callPrevious = \true, $errorTypes = -1, $handleOnlyReportedErrors = \true) + { + $prev = \set_error_handler(array($this, 'handleError'), $errorTypes); + $this->errorLevelMap = \array_replace($this->defaultErrorLevelMap(), $levelMap); + if ($callPrevious) { + $this->previousErrorHandler = $prev ?: \true; + } + $this->handleOnlyReportedErrors = $handleOnlyReportedErrors; + } + public function registerFatalHandler($level = null, $reservedMemorySize = 20) + { + \register_shutdown_function(array($this, 'handleFatalError')); + $this->reservedMemory = \str_repeat(' ', 1024 * $reservedMemorySize); + $this->fatalLevel = $level; + $this->hasFatalErrorHandler = \true; + } + protected function defaultErrorLevelMap() + { + return array(\E_ERROR => \WPMailSMTP\Vendor\Psr\Log\LogLevel::CRITICAL, \E_WARNING => \WPMailSMTP\Vendor\Psr\Log\LogLevel::WARNING, \E_PARSE => \WPMailSMTP\Vendor\Psr\Log\LogLevel::ALERT, \E_NOTICE => \WPMailSMTP\Vendor\Psr\Log\LogLevel::NOTICE, \E_CORE_ERROR => \WPMailSMTP\Vendor\Psr\Log\LogLevel::CRITICAL, \E_CORE_WARNING => \WPMailSMTP\Vendor\Psr\Log\LogLevel::WARNING, \E_COMPILE_ERROR => \WPMailSMTP\Vendor\Psr\Log\LogLevel::ALERT, \E_COMPILE_WARNING => \WPMailSMTP\Vendor\Psr\Log\LogLevel::WARNING, \E_USER_ERROR => \WPMailSMTP\Vendor\Psr\Log\LogLevel::ERROR, \E_USER_WARNING => \WPMailSMTP\Vendor\Psr\Log\LogLevel::WARNING, \E_USER_NOTICE => \WPMailSMTP\Vendor\Psr\Log\LogLevel::NOTICE, \E_STRICT => \WPMailSMTP\Vendor\Psr\Log\LogLevel::NOTICE, \E_RECOVERABLE_ERROR => \WPMailSMTP\Vendor\Psr\Log\LogLevel::ERROR, \E_DEPRECATED => \WPMailSMTP\Vendor\Psr\Log\LogLevel::NOTICE, \E_USER_DEPRECATED => \WPMailSMTP\Vendor\Psr\Log\LogLevel::NOTICE); + } + /** + * @private + */ + public function handleException($e) + { + $this->logger->log($this->uncaughtExceptionLevel === null ? \WPMailSMTP\Vendor\Psr\Log\LogLevel::ERROR : $this->uncaughtExceptionLevel, \sprintf('Uncaught Exception %s: "%s" at %s line %s', \WPMailSMTP\Vendor\Monolog\Utils::getClass($e), $e->getMessage(), $e->getFile(), $e->getLine()), array('exception' => $e)); + if ($this->previousExceptionHandler) { + \call_user_func($this->previousExceptionHandler, $e); + } + exit(255); + } + /** + * @private + */ + public function handleError($code, $message, $file = '', $line = 0, $context = array()) + { + if ($this->handleOnlyReportedErrors && !(\error_reporting() & $code)) { + return; + } + // fatal error codes are ignored if a fatal error handler is present as well to avoid duplicate log entries + if (!$this->hasFatalErrorHandler || !\in_array($code, self::$fatalErrors, \true)) { + $level = isset($this->errorLevelMap[$code]) ? $this->errorLevelMap[$code] : \WPMailSMTP\Vendor\Psr\Log\LogLevel::CRITICAL; + $this->logger->log($level, self::codeToString($code) . ': ' . $message, array('code' => $code, 'message' => $message, 'file' => $file, 'line' => $line)); + } else { + // http://php.net/manual/en/function.debug-backtrace.php + // As of 5.3.6, DEBUG_BACKTRACE_IGNORE_ARGS option was added. + // Any version less than 5.3.6 must use the DEBUG_BACKTRACE_IGNORE_ARGS constant value '2'. + $trace = \debug_backtrace(\PHP_VERSION_ID < 50306 ? 2 : \DEBUG_BACKTRACE_IGNORE_ARGS); + \array_shift($trace); + // Exclude handleError from trace + $this->lastFatalTrace = $trace; + } + if ($this->previousErrorHandler === \true) { + return \false; + } elseif ($this->previousErrorHandler) { + return \call_user_func($this->previousErrorHandler, $code, $message, $file, $line, $context); + } + } + /** + * @private + */ + public function handleFatalError() + { + $this->reservedMemory = null; + $lastError = \error_get_last(); + if ($lastError && \in_array($lastError['type'], self::$fatalErrors, \true)) { + $this->logger->log($this->fatalLevel === null ? \WPMailSMTP\Vendor\Psr\Log\LogLevel::ALERT : $this->fatalLevel, 'Fatal Error (' . self::codeToString($lastError['type']) . '): ' . $lastError['message'], array('code' => $lastError['type'], 'message' => $lastError['message'], 'file' => $lastError['file'], 'line' => $lastError['line'], 'trace' => $this->lastFatalTrace)); + if ($this->logger instanceof \WPMailSMTP\Vendor\Monolog\Logger) { + foreach ($this->logger->getHandlers() as $handler) { + if ($handler instanceof \WPMailSMTP\Vendor\Monolog\Handler\AbstractHandler) { + $handler->close(); + } + } + } + } + } + private static function codeToString($code) + { + switch ($code) { + case \E_ERROR: + return 'E_ERROR'; + case \E_WARNING: + return 'E_WARNING'; + case \E_PARSE: + return 'E_PARSE'; + case \E_NOTICE: + return 'E_NOTICE'; + case \E_CORE_ERROR: + return 'E_CORE_ERROR'; + case \E_CORE_WARNING: + return 'E_CORE_WARNING'; + case \E_COMPILE_ERROR: + return 'E_COMPILE_ERROR'; + case \E_COMPILE_WARNING: + return 'E_COMPILE_WARNING'; + case \E_USER_ERROR: + return 'E_USER_ERROR'; + case \E_USER_WARNING: + return 'E_USER_WARNING'; + case \E_USER_NOTICE: + return 'E_USER_NOTICE'; + case \E_STRICT: + return 'E_STRICT'; + case \E_RECOVERABLE_ERROR: + return 'E_RECOVERABLE_ERROR'; + case \E_DEPRECATED: + return 'E_DEPRECATED'; + case \E_USER_DEPRECATED: + return 'E_USER_DEPRECATED'; + } + return 'Unknown PHP error'; + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/ChromePHPFormatter.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/ChromePHPFormatter.php similarity index 58% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/ChromePHPFormatter.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/ChromePHPFormatter.php index 9beda1e..f12fb6c 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/ChromePHPFormatter.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/ChromePHPFormatter.php @@ -8,32 +8,20 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Formatter; -namespace Monolog\Formatter; - -use Monolog\Logger; - +use WPMailSMTP\Vendor\Monolog\Logger; /** * Formats a log message according to the ChromePHP array format * * @author Christophe Coevoet */ -class ChromePHPFormatter implements FormatterInterface +class ChromePHPFormatter implements \WPMailSMTP\Vendor\Monolog\Formatter\FormatterInterface { /** * Translates Monolog log levels to Wildfire levels. */ - private $logLevels = array( - Logger::DEBUG => 'log', - Logger::INFO => 'info', - Logger::NOTICE => 'info', - Logger::WARNING => 'warn', - Logger::ERROR => 'error', - Logger::CRITICAL => 'error', - Logger::ALERT => 'error', - Logger::EMERGENCY => 'error', - ); - + private $logLevels = array(\WPMailSMTP\Vendor\Monolog\Logger::DEBUG => 'log', \WPMailSMTP\Vendor\Monolog\Logger::INFO => 'info', \WPMailSMTP\Vendor\Monolog\Logger::NOTICE => 'info', \WPMailSMTP\Vendor\Monolog\Logger::WARNING => 'warn', \WPMailSMTP\Vendor\Monolog\Logger::ERROR => 'error', \WPMailSMTP\Vendor\Monolog\Logger::CRITICAL => 'error', \WPMailSMTP\Vendor\Monolog\Logger::ALERT => 'error', \WPMailSMTP\Vendor\Monolog\Logger::EMERGENCY => 'error'); /** * {@inheritdoc} */ @@ -42,10 +30,9 @@ class ChromePHPFormatter implements FormatterInterface // Retrieve the line and file if set and remove them from the formatted extra $backtrace = 'unknown'; if (isset($record['extra']['file'], $record['extra']['line'])) { - $backtrace = $record['extra']['file'].' : '.$record['extra']['line']; + $backtrace = $record['extra']['file'] . ' : ' . $record['extra']['line']; unset($record['extra']['file'], $record['extra']['line']); } - $message = array('message' => $record['message']); if ($record['context']) { $message['context'] = $record['context']; @@ -53,26 +40,17 @@ class ChromePHPFormatter implements FormatterInterface if ($record['extra']) { $message['extra'] = $record['extra']; } - if (count($message) === 1) { - $message = reset($message); + if (\count($message) === 1) { + $message = \reset($message); } - - return array( - $record['channel'], - $message, - $backtrace, - $this->logLevels[$record['level']], - ); + return array($record['channel'], $message, $backtrace, $this->logLevels[$record['level']]); } - public function formatBatch(array $records) { $formatted = array(); - foreach ($records as $record) { $formatted[] = $this->format($record); } - return $formatted; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/ElasticaFormatter.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/ElasticaFormatter.php similarity index 84% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/ElasticaFormatter.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/ElasticaFormatter.php index 4c556cf..2ed25a0 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/ElasticaFormatter.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/ElasticaFormatter.php @@ -8,28 +8,24 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Formatter; -namespace Monolog\Formatter; - -use Elastica\Document; - +use WPMailSMTP\Vendor\Elastica\Document; /** * Format a log message into an Elastica Document * * @author Jelle Vink */ -class ElasticaFormatter extends NormalizerFormatter +class ElasticaFormatter extends \WPMailSMTP\Vendor\Monolog\Formatter\NormalizerFormatter { /** * @var string Elastic search index name */ protected $index; - /** * @var string Elastic search document type */ protected $type; - /** * @param string $index Elastic Search index name * @param string $type Elastic Search document type @@ -37,22 +33,18 @@ class ElasticaFormatter extends NormalizerFormatter public function __construct($index, $type) { // elasticsearch requires a ISO 8601 format date with optional millisecond precision. - parent::__construct('Y-m-d\TH:i:s.uP'); - + parent::__construct('Y-m-d\\TH:i:s.uP'); $this->index = $index; $this->type = $type; } - /** * {@inheritdoc} */ public function format(array $record) { $record = parent::format($record); - return $this->getDocument($record); } - /** * Getter index * @return string @@ -61,7 +53,6 @@ class ElasticaFormatter extends NormalizerFormatter { return $this->index; } - /** * Getter type * @return string @@ -70,7 +61,6 @@ class ElasticaFormatter extends NormalizerFormatter { return $this->type; } - /** * Convert a log message into an Elastica Document * @@ -79,11 +69,10 @@ class ElasticaFormatter extends NormalizerFormatter */ protected function getDocument($record) { - $document = new Document(); + $document = new \WPMailSMTP\Vendor\Elastica\Document(); $document->setData($record); $document->setType($this->type); $document->setIndex($this->index); - return $document; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/FlowdockFormatter.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/FlowdockFormatter.php similarity index 59% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/FlowdockFormatter.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/FlowdockFormatter.php index 5094af3..70d082d 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/FlowdockFormatter.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/FlowdockFormatter.php @@ -8,26 +8,23 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - -namespace Monolog\Formatter; +namespace WPMailSMTP\Vendor\Monolog\Formatter; /** * formats the record to be used in the FlowdockHandler * * @author Dominik Liebler */ -class FlowdockFormatter implements FormatterInterface +class FlowdockFormatter implements \WPMailSMTP\Vendor\Monolog\Formatter\FormatterInterface { /** * @var string */ private $source; - /** * @var string */ private $sourceEmail; - /** * @param string $source * @param string $sourceEmail @@ -37,55 +34,30 @@ class FlowdockFormatter implements FormatterInterface $this->source = $source; $this->sourceEmail = $sourceEmail; } - /** * {@inheritdoc} */ public function format(array $record) { - $tags = array( - '#logs', - '#' . strtolower($record['level_name']), - '#' . $record['channel'], - ); - + $tags = array('#logs', '#' . \strtolower($record['level_name']), '#' . $record['channel']); foreach ($record['extra'] as $value) { $tags[] = '#' . $value; } - - $subject = sprintf( - 'in %s: %s - %s', - $this->source, - $record['level_name'], - $this->getShortMessage($record['message']) - ); - - $record['flowdock'] = array( - 'source' => $this->source, - 'from_address' => $this->sourceEmail, - 'subject' => $subject, - 'content' => $record['message'], - 'tags' => $tags, - 'project' => $this->source, - ); - + $subject = \sprintf('in %s: %s - %s', $this->source, $record['level_name'], $this->getShortMessage($record['message'])); + $record['flowdock'] = array('source' => $this->source, 'from_address' => $this->sourceEmail, 'subject' => $subject, 'content' => $record['message'], 'tags' => $tags, 'project' => $this->source); return $record; } - /** * {@inheritdoc} */ public function formatBatch(array $records) { $formatted = array(); - foreach ($records as $record) { $formatted[] = $this->format($record); } - return $formatted; } - /** * @param string $message * @@ -94,23 +66,19 @@ class FlowdockFormatter implements FormatterInterface public function getShortMessage($message) { static $hasMbString; - if (null === $hasMbString) { - $hasMbString = function_exists('mb_strlen'); + $hasMbString = \function_exists('mb_strlen'); } - $maxLength = 45; - if ($hasMbString) { - if (mb_strlen($message, 'UTF-8') > $maxLength) { - $message = mb_substr($message, 0, $maxLength - 4, 'UTF-8') . ' ...'; + if (\mb_strlen($message, 'UTF-8') > $maxLength) { + $message = \mb_substr($message, 0, $maxLength - 4, 'UTF-8') . ' ...'; } } else { - if (strlen($message) > $maxLength) { - $message = substr($message, 0, $maxLength - 4) . ' ...'; + if (\strlen($message) > $maxLength) { + $message = \substr($message, 0, $maxLength - 4) . ' ...'; } } - return $message; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php similarity index 72% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php index f8ead47..7a6c9cc 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php @@ -8,11 +8,9 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Formatter; -namespace Monolog\Formatter; - -use Monolog\Utils; - +use WPMailSMTP\Vendor\Monolog\Utils; /** * Class FluentdFormatter * @@ -34,55 +32,42 @@ use Monolog\Utils; * * @author Andrius Putna */ -class FluentdFormatter implements FormatterInterface +class FluentdFormatter implements \WPMailSMTP\Vendor\Monolog\Formatter\FormatterInterface { /** * @var bool $levelTag should message level be a part of the fluentd tag */ - protected $levelTag = false; - - public function __construct($levelTag = false) + protected $levelTag = \false; + public function __construct($levelTag = \false) { - if (!function_exists('json_encode')) { + if (!\function_exists('json_encode')) { throw new \RuntimeException('PHP\'s json extension is required to use Monolog\'s FluentdUnixFormatter'); } - $this->levelTag = (bool) $levelTag; } - public function isUsingLevelsInTag() { return $this->levelTag; } - public function format(array $record) { $tag = $record['channel']; if ($this->levelTag) { - $tag .= '.' . strtolower($record['level_name']); + $tag .= '.' . \strtolower($record['level_name']); } - - $message = array( - 'message' => $record['message'], - 'context' => $record['context'], - 'extra' => $record['extra'], - ); - + $message = array('message' => $record['message'], 'context' => $record['context'], 'extra' => $record['extra']); if (!$this->levelTag) { $message['level'] = $record['level']; $message['level_name'] = $record['level_name']; } - - return Utils::jsonEncode(array($tag, $record['datetime']->getTimestamp(), $message)); + return \WPMailSMTP\Vendor\Monolog\Utils::jsonEncode(array($tag, $record['datetime']->getTimestamp(), $message)); } - public function formatBatch(array $records) { $message = ''; foreach ($records as $record) { $message .= $this->format($record); } - return $message; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/FormatterInterface.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/FormatterInterface.php similarity index 94% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/FormatterInterface.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/FormatterInterface.php index b5de751..89fbea5 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/FormatterInterface.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/FormatterInterface.php @@ -8,8 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - -namespace Monolog\Formatter; +namespace WPMailSMTP\Vendor\Monolog\Formatter; /** * Interface for formatters @@ -25,7 +24,6 @@ interface FormatterInterface * @return mixed The formatted record */ public function format(array $record); - /** * Formats a set of log records. * diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/GelfMessageFormatter.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/GelfMessageFormatter.php similarity index 61% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/GelfMessageFormatter.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/GelfMessageFormatter.php index 2c1b0e8..24c2ee6 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/GelfMessageFormatter.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/GelfMessageFormatter.php @@ -8,92 +8,63 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Formatter; -namespace Monolog\Formatter; - -use Monolog\Logger; -use Gelf\Message; - +use WPMailSMTP\Vendor\Monolog\Logger; +use WPMailSMTP\Vendor\Gelf\Message; /** * Serializes a log message to GELF * @see http://www.graylog2.org/about/gelf * * @author Matt Lehner */ -class GelfMessageFormatter extends NormalizerFormatter +class GelfMessageFormatter extends \WPMailSMTP\Vendor\Monolog\Formatter\NormalizerFormatter { const DEFAULT_MAX_LENGTH = 32766; - /** * @var string the name of the system for the Gelf log message */ protected $systemName; - /** * @var string a prefix for 'extra' fields from the Monolog record (optional) */ protected $extraPrefix; - /** * @var string a prefix for 'context' fields from the Monolog record (optional) */ protected $contextPrefix; - /** * @var int max length per field */ protected $maxLength; - /** * Translates Monolog log levels to Graylog2 log priorities. */ - private $logLevels = array( - Logger::DEBUG => 7, - Logger::INFO => 6, - Logger::NOTICE => 5, - Logger::WARNING => 4, - Logger::ERROR => 3, - Logger::CRITICAL => 2, - Logger::ALERT => 1, - Logger::EMERGENCY => 0, - ); - + private $logLevels = array(\WPMailSMTP\Vendor\Monolog\Logger::DEBUG => 7, \WPMailSMTP\Vendor\Monolog\Logger::INFO => 6, \WPMailSMTP\Vendor\Monolog\Logger::NOTICE => 5, \WPMailSMTP\Vendor\Monolog\Logger::WARNING => 4, \WPMailSMTP\Vendor\Monolog\Logger::ERROR => 3, \WPMailSMTP\Vendor\Monolog\Logger::CRITICAL => 2, \WPMailSMTP\Vendor\Monolog\Logger::ALERT => 1, \WPMailSMTP\Vendor\Monolog\Logger::EMERGENCY => 0); public function __construct($systemName = null, $extraPrefix = null, $contextPrefix = 'ctxt_', $maxLength = null) { parent::__construct('U.u'); - - $this->systemName = $systemName ?: gethostname(); - + $this->systemName = $systemName ?: \gethostname(); $this->extraPrefix = $extraPrefix; $this->contextPrefix = $contextPrefix; - $this->maxLength = is_null($maxLength) ? self::DEFAULT_MAX_LENGTH : $maxLength; + $this->maxLength = \is_null($maxLength) ? self::DEFAULT_MAX_LENGTH : $maxLength; } - /** * {@inheritdoc} */ public function format(array $record) { $record = parent::format($record); - if (!isset($record['datetime'], $record['message'], $record['level'])) { - throw new \InvalidArgumentException('The record should at least contain datetime, message and level keys, '.var_export($record, true).' given'); + throw new \InvalidArgumentException('The record should at least contain datetime, message and level keys, ' . \var_export($record, \true) . ' given'); } - - $message = new Message(); - $message - ->setTimestamp($record['datetime']) - ->setShortMessage((string) $record['message']) - ->setHost($this->systemName) - ->setLevel($this->logLevels[$record['level']]); - - // message length + system name length + 200 for padding / metadata - $len = 200 + strlen((string) $record['message']) + strlen($this->systemName); - + $message = new \WPMailSMTP\Vendor\Gelf\Message(); + $message->setTimestamp($record['datetime'])->setShortMessage((string) $record['message'])->setHost($this->systemName)->setLevel($this->logLevels[$record['level']]); + // message length + system name length + 200 for padding / metadata + $len = 200 + \strlen((string) $record['message']) + \strlen($this->systemName); if ($len > $this->maxLength) { - $message->setShortMessage(substr($record['message'], 0, $this->maxLength)); + $message->setShortMessage(\substr($record['message'], 0, $this->maxLength)); } - if (isset($record['channel'])) { $message->setFacility($record['channel']); } @@ -105,34 +76,30 @@ class GelfMessageFormatter extends NormalizerFormatter $message->setFile($record['extra']['file']); unset($record['extra']['file']); } - foreach ($record['extra'] as $key => $val) { - $val = is_scalar($val) || null === $val ? $val : $this->toJson($val); - $len = strlen($this->extraPrefix . $key . $val); + $val = \is_scalar($val) || null === $val ? $val : $this->toJson($val); + $len = \strlen($this->extraPrefix . $key . $val); if ($len > $this->maxLength) { - $message->setAdditional($this->extraPrefix . $key, substr($val, 0, $this->maxLength)); + $message->setAdditional($this->extraPrefix . $key, \substr($val, 0, $this->maxLength)); break; } $message->setAdditional($this->extraPrefix . $key, $val); } - foreach ($record['context'] as $key => $val) { - $val = is_scalar($val) || null === $val ? $val : $this->toJson($val); - $len = strlen($this->contextPrefix . $key . $val); + $val = \is_scalar($val) || null === $val ? $val : $this->toJson($val); + $len = \strlen($this->contextPrefix . $key . $val); if ($len > $this->maxLength) { - $message->setAdditional($this->contextPrefix . $key, substr($val, 0, $this->maxLength)); + $message->setAdditional($this->contextPrefix . $key, \substr($val, 0, $this->maxLength)); break; } $message->setAdditional($this->contextPrefix . $key, $val); } - if (null === $message->getFile() && isset($record['context']['exception']['file'])) { - if (preg_match("/^(.+):([0-9]+)$/", $record['context']['exception']['file'], $matches)) { + if (\preg_match("/^(.+):([0-9]+)\$/", $record['context']['exception']['file'], $matches)) { $message->setFile($matches[1]); $message->setLine($matches[2]); } } - return $message; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/HtmlFormatter.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/HtmlFormatter.php similarity index 64% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/HtmlFormatter.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/HtmlFormatter.php index 9e8d2d0..c7fbc3e 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/HtmlFormatter.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/HtmlFormatter.php @@ -1,4 +1,5 @@ */ -class HtmlFormatter extends NormalizerFormatter +class HtmlFormatter extends \WPMailSMTP\Vendor\Monolog\Formatter\NormalizerFormatter { /** * Translates Monolog log levels to html color priorities. */ - protected $logLevels = array( - Logger::DEBUG => '#cccccc', - Logger::INFO => '#468847', - Logger::NOTICE => '#3a87ad', - Logger::WARNING => '#c09853', - Logger::ERROR => '#f0ad4e', - Logger::CRITICAL => '#FF7708', - Logger::ALERT => '#C12A19', - Logger::EMERGENCY => '#000000', - ); - + protected $logLevels = array(\WPMailSMTP\Vendor\Monolog\Logger::DEBUG => '#cccccc', \WPMailSMTP\Vendor\Monolog\Logger::INFO => '#468847', \WPMailSMTP\Vendor\Monolog\Logger::NOTICE => '#3a87ad', \WPMailSMTP\Vendor\Monolog\Logger::WARNING => '#c09853', \WPMailSMTP\Vendor\Monolog\Logger::ERROR => '#f0ad4e', \WPMailSMTP\Vendor\Monolog\Logger::CRITICAL => '#FF7708', \WPMailSMTP\Vendor\Monolog\Logger::ALERT => '#C12A19', \WPMailSMTP\Vendor\Monolog\Logger::EMERGENCY => '#000000'); /** * @param string $dateFormat The format of the timestamp: one supported by DateTime::format */ @@ -43,7 +32,6 @@ class HtmlFormatter extends NormalizerFormatter { parent::__construct($dateFormat); } - /** * Creates an HTML table row * @@ -52,16 +40,14 @@ class HtmlFormatter extends NormalizerFormatter * @param bool $escapeTd false if td content must not be html escaped * @return string */ - protected function addRow($th, $td = ' ', $escapeTd = true) + protected function addRow($th, $td = ' ', $escapeTd = \true) { - $th = htmlspecialchars($th, ENT_NOQUOTES, 'UTF-8'); + $th = \htmlspecialchars($th, \ENT_NOQUOTES, 'UTF-8'); if ($escapeTd) { - $td = '
'.htmlspecialchars($td, ENT_NOQUOTES, 'UTF-8').'
'; + $td = '
' . \htmlspecialchars($td, \ENT_NOQUOTES, 'UTF-8') . '
'; } - - return "\n$th:\n".$td."\n"; + return "\n{$th}:\n" . $td . "\n"; } - /** * Create a HTML h1 tag * @@ -71,11 +57,9 @@ class HtmlFormatter extends NormalizerFormatter */ protected function addTitle($title, $level) { - $title = htmlspecialchars($title, ENT_NOQUOTES, 'UTF-8'); - - return '

'.$title.'

'; + $title = \htmlspecialchars($title, \ENT_NOQUOTES, 'UTF-8'); + return '

' . $title . '

'; } - /** * Formats a log record. * @@ -86,7 +70,6 @@ class HtmlFormatter extends NormalizerFormatter { $output = $this->addTitle($record['level_name'], $record['level']); $output .= ''; - $output .= $this->addRow('Message', (string) $record['message']); $output .= $this->addRow('Time', $record['datetime']->format($this->dateFormat)); $output .= $this->addRow('Channel', $record['channel']); @@ -96,7 +79,7 @@ class HtmlFormatter extends NormalizerFormatter $embeddedTable .= $this->addRow($key, $this->convertToString($value)); } $embeddedTable .= '
'; - $output .= $this->addRow('Context', $embeddedTable, false); + $output .= $this->addRow('Context', $embeddedTable, \false); } if ($record['extra']) { $embeddedTable = ''; @@ -104,12 +87,10 @@ class HtmlFormatter extends NormalizerFormatter $embeddedTable .= $this->addRow($key, $this->convertToString($value)); } $embeddedTable .= '
'; - $output .= $this->addRow('Extra', $embeddedTable, false); + $output .= $this->addRow('Extra', $embeddedTable, \false); } - - return $output.''; + return $output . ''; } - /** * Formats a set of log records. * @@ -122,21 +103,17 @@ class HtmlFormatter extends NormalizerFormatter foreach ($records as $record) { $message .= $this->format($record); } - return $message; } - protected function convertToString($data) { - if (null === $data || is_scalar($data)) { + if (null === $data || \is_scalar($data)) { return (string) $data; } - $data = $this->normalize($data); - if (version_compare(PHP_VERSION, '5.4.0', '>=')) { - return Utils::jsonEncode($data, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE, true); + if (\version_compare(\PHP_VERSION, '5.4.0', '>=')) { + return \WPMailSMTP\Vendor\Monolog\Utils::jsonEncode($data, \JSON_PRETTY_PRINT | \JSON_UNESCAPED_SLASHES | \JSON_UNESCAPED_UNICODE, \true); } - - return str_replace('\\/', '/', Utils::jsonEncode($data, null, true)); + return \str_replace('\\/', '/', \WPMailSMTP\Vendor\Monolog\Utils::jsonEncode($data, null, \true)); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php similarity index 75% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php index 86966b0..3085b3f 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php @@ -8,13 +8,11 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - -namespace Monolog\Formatter; +namespace WPMailSMTP\Vendor\Monolog\Formatter; use Exception; -use Monolog\Utils; +use WPMailSMTP\Vendor\Monolog\Utils; use Throwable; - /** * Encodes whatever record data is passed to it as json * @@ -22,29 +20,25 @@ use Throwable; * * @author Jordi Boggiano */ -class JsonFormatter extends NormalizerFormatter +class JsonFormatter extends \WPMailSMTP\Vendor\Monolog\Formatter\NormalizerFormatter { const BATCH_MODE_JSON = 1; const BATCH_MODE_NEWLINES = 2; - protected $batchMode; protected $appendNewline; - /** * @var bool */ - protected $includeStacktraces = false; - + protected $includeStacktraces = \false; /** * @param int $batchMode * @param bool $appendNewline */ - public function __construct($batchMode = self::BATCH_MODE_JSON, $appendNewline = true) + public function __construct($batchMode = self::BATCH_MODE_JSON, $appendNewline = \true) { $this->batchMode = $batchMode; $this->appendNewline = $appendNewline; } - /** * The batch mode option configures the formatting style for * multiple records. By default, multiple records will be @@ -58,7 +52,6 @@ class JsonFormatter extends NormalizerFormatter { return $this->batchMode; } - /** * True if newlines are appended to every formatted record * @@ -68,15 +61,13 @@ class JsonFormatter extends NormalizerFormatter { return $this->appendNewline; } - /** * {@inheritdoc} */ public function format(array $record) { - return $this->toJson($this->normalize($record), true) . ($this->appendNewline ? "\n" : ''); + return $this->toJson($this->normalize($record), \true) . ($this->appendNewline ? "\n" : ''); } - /** * {@inheritdoc} */ @@ -85,21 +76,18 @@ class JsonFormatter extends NormalizerFormatter switch ($this->batchMode) { case static::BATCH_MODE_NEWLINES: return $this->formatBatchNewlines($records); - case static::BATCH_MODE_JSON: default: return $this->formatBatchJson($records); } } - /** * @param bool $include */ - public function includeStacktraces($include = true) + public function includeStacktraces($include = \true) { $this->includeStacktraces = $include; } - /** * Return a JSON-encoded array of records. * @@ -108,9 +96,8 @@ class JsonFormatter extends NormalizerFormatter */ protected function formatBatchJson(array $records) { - return $this->toJson($this->normalize($records), true); + return $this->toJson($this->normalize($records), \true); } - /** * Use new lines to separate records instead of a * JSON-encoded array. @@ -121,17 +108,14 @@ class JsonFormatter extends NormalizerFormatter protected function formatBatchNewlines(array $records) { $instance = $this; - $oldNewline = $this->appendNewline; - $this->appendNewline = false; - array_walk($records, function (&$value, $key) use ($instance) { + $this->appendNewline = \false; + \array_walk($records, function (&$value, $key) use($instance) { $value = $instance->format($value); }); $this->appendNewline = $oldNewline; - - return implode("\n", $records); + return \implode("\n", $records); } - /** * Normalizes given $data. * @@ -144,34 +128,26 @@ class JsonFormatter extends NormalizerFormatter if ($depth > 9) { return 'Over 9 levels deep, aborting normalization'; } - - if (is_array($data)) { + if (\is_array($data)) { $normalized = array(); - $count = 1; foreach ($data as $key => $value) { if ($count++ > 1000) { - $normalized['...'] = 'Over 1000 items ('.count($data).' total), aborting normalization'; + $normalized['...'] = 'Over 1000 items (' . \count($data) . ' total), aborting normalization'; break; } - - $normalized[$key] = $this->normalize($value, $depth+1); + $normalized[$key] = $this->normalize($value, $depth + 1); } - return $normalized; } - - if ($data instanceof Exception || $data instanceof Throwable) { + if ($data instanceof \Exception || $data instanceof \Throwable) { return $this->normalizeException($data); } - - if (is_resource($data)) { + if (\is_resource($data)) { return parent::normalize($data); } - return $data; } - /** * Normalizes given exception with or without its own stack trace based on * `includeStacktraces` property. @@ -183,30 +159,21 @@ class JsonFormatter extends NormalizerFormatter protected function normalizeException($e) { // TODO 2.0 only check for Throwable - if (!$e instanceof Exception && !$e instanceof Throwable) { - throw new \InvalidArgumentException('Exception/Throwable expected, got '.gettype($e).' / '.Utils::getClass($e)); + if (!$e instanceof \Exception && !$e instanceof \Throwable) { + throw new \InvalidArgumentException('Exception/Throwable expected, got ' . \gettype($e) . ' / ' . \WPMailSMTP\Vendor\Monolog\Utils::getClass($e)); } - - $data = array( - 'class' => Utils::getClass($e), - 'message' => $e->getMessage(), - 'code' => (int) $e->getCode(), - 'file' => $e->getFile().':'.$e->getLine(), - ); - + $data = array('class' => \WPMailSMTP\Vendor\Monolog\Utils::getClass($e), 'message' => $e->getMessage(), 'code' => (int) $e->getCode(), 'file' => $e->getFile() . ':' . $e->getLine()); if ($this->includeStacktraces) { $trace = $e->getTrace(); foreach ($trace as $frame) { if (isset($frame['file'])) { - $data['trace'][] = $frame['file'].':'.$frame['line']; + $data['trace'][] = $frame['file'] . ':' . $frame['line']; } } } - if ($previous = $e->getPrevious()) { $data['previous'] = $this->normalizeException($previous); } - return $data; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/LineFormatter.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/LineFormatter.php similarity index 60% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/LineFormatter.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/LineFormatter.php index acc1fd3..4a5330e 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/LineFormatter.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/LineFormatter.php @@ -8,11 +8,9 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Formatter; -namespace Monolog\Formatter; - -use Monolog\Utils; - +use WPMailSMTP\Vendor\Monolog\Utils; /** * Formats incoming records into a one-line string * @@ -21,161 +19,132 @@ use Monolog\Utils; * @author Jordi Boggiano * @author Christophe Coevoet */ -class LineFormatter extends NormalizerFormatter +class LineFormatter extends \WPMailSMTP\Vendor\Monolog\Formatter\NormalizerFormatter { const SIMPLE_FORMAT = "[%datetime%] %channel%.%level_name%: %message% %context% %extra%\n"; - protected $format; protected $allowInlineLineBreaks; protected $ignoreEmptyContextAndExtra; protected $includeStacktraces; - /** * @param string $format The format of the message * @param string $dateFormat The format of the timestamp: one supported by DateTime::format * @param bool $allowInlineLineBreaks Whether to allow inline line breaks in log entries * @param bool $ignoreEmptyContextAndExtra */ - public function __construct($format = null, $dateFormat = null, $allowInlineLineBreaks = false, $ignoreEmptyContextAndExtra = false) + public function __construct($format = null, $dateFormat = null, $allowInlineLineBreaks = \false, $ignoreEmptyContextAndExtra = \false) { $this->format = $format ?: static::SIMPLE_FORMAT; $this->allowInlineLineBreaks = $allowInlineLineBreaks; $this->ignoreEmptyContextAndExtra = $ignoreEmptyContextAndExtra; parent::__construct($dateFormat); } - - public function includeStacktraces($include = true) + public function includeStacktraces($include = \true) { $this->includeStacktraces = $include; if ($this->includeStacktraces) { - $this->allowInlineLineBreaks = true; + $this->allowInlineLineBreaks = \true; } } - - public function allowInlineLineBreaks($allow = true) + public function allowInlineLineBreaks($allow = \true) { $this->allowInlineLineBreaks = $allow; } - - public function ignoreEmptyContextAndExtra($ignore = true) + public function ignoreEmptyContextAndExtra($ignore = \true) { $this->ignoreEmptyContextAndExtra = $ignore; } - /** * {@inheritdoc} */ public function format(array $record) { $vars = parent::format($record); - $output = $this->format; - foreach ($vars['extra'] as $var => $val) { - if (false !== strpos($output, '%extra.'.$var.'%')) { - $output = str_replace('%extra.'.$var.'%', $this->stringify($val), $output); + if (\false !== \strpos($output, '%extra.' . $var . '%')) { + $output = \str_replace('%extra.' . $var . '%', $this->stringify($val), $output); unset($vars['extra'][$var]); } } - - foreach ($vars['context'] as $var => $val) { - if (false !== strpos($output, '%context.'.$var.'%')) { - $output = str_replace('%context.'.$var.'%', $this->stringify($val), $output); + if (\false !== \strpos($output, '%context.' . $var . '%')) { + $output = \str_replace('%context.' . $var . '%', $this->stringify($val), $output); unset($vars['context'][$var]); } } - if ($this->ignoreEmptyContextAndExtra) { if (empty($vars['context'])) { unset($vars['context']); - $output = str_replace('%context%', '', $output); + $output = \str_replace('%context%', '', $output); } - if (empty($vars['extra'])) { unset($vars['extra']); - $output = str_replace('%extra%', '', $output); + $output = \str_replace('%extra%', '', $output); } } - foreach ($vars as $var => $val) { - if (false !== strpos($output, '%'.$var.'%')) { - $output = str_replace('%'.$var.'%', $this->stringify($val), $output); + if (\false !== \strpos($output, '%' . $var . '%')) { + $output = \str_replace('%' . $var . '%', $this->stringify($val), $output); } } - // remove leftover %extra.xxx% and %context.xxx% if any - if (false !== strpos($output, '%')) { - $output = preg_replace('/%(?:extra|context)\..+?%/', '', $output); + if (\false !== \strpos($output, '%')) { + $output = \preg_replace('/%(?:extra|context)\\..+?%/', '', $output); } - return $output; } - public function formatBatch(array $records) { $message = ''; foreach ($records as $record) { $message .= $this->format($record); } - return $message; } - public function stringify($value) { return $this->replaceNewlines($this->convertToString($value)); } - protected function normalizeException($e) { // TODO 2.0 only check for Throwable if (!$e instanceof \Exception && !$e instanceof \Throwable) { - throw new \InvalidArgumentException('Exception/Throwable expected, got '.gettype($e).' / '.Utils::getClass($e)); + throw new \InvalidArgumentException('Exception/Throwable expected, got ' . \gettype($e) . ' / ' . \WPMailSMTP\Vendor\Monolog\Utils::getClass($e)); } - $previousText = ''; if ($previous = $e->getPrevious()) { do { - $previousText .= ', '.Utils::getClass($previous).'(code: '.$previous->getCode().'): '.$previous->getMessage().' at '.$previous->getFile().':'.$previous->getLine(); + $previousText .= ', ' . \WPMailSMTP\Vendor\Monolog\Utils::getClass($previous) . '(code: ' . $previous->getCode() . '): ' . $previous->getMessage() . ' at ' . $previous->getFile() . ':' . $previous->getLine(); } while ($previous = $previous->getPrevious()); } - - $str = '[object] ('.Utils::getClass($e).'(code: '.$e->getCode().'): '.$e->getMessage().' at '.$e->getFile().':'.$e->getLine().$previousText.')'; + $str = '[object] (' . \WPMailSMTP\Vendor\Monolog\Utils::getClass($e) . '(code: ' . $e->getCode() . '): ' . $e->getMessage() . ' at ' . $e->getFile() . ':' . $e->getLine() . $previousText . ')'; if ($this->includeStacktraces) { - $str .= "\n[stacktrace]\n".$e->getTraceAsString()."\n"; + $str .= "\n[stacktrace]\n" . $e->getTraceAsString() . "\n"; } - return $str; } - protected function convertToString($data) { - if (null === $data || is_bool($data)) { - return var_export($data, true); + if (null === $data || \is_bool($data)) { + return \var_export($data, \true); } - - if (is_scalar($data)) { + if (\is_scalar($data)) { return (string) $data; } - - if (version_compare(PHP_VERSION, '5.4.0', '>=')) { - return $this->toJson($data, true); + if (\version_compare(\PHP_VERSION, '5.4.0', '>=')) { + return $this->toJson($data, \true); } - - return str_replace('\\/', '/', $this->toJson($data, true)); + return \str_replace('\\/', '/', $this->toJson($data, \true)); } - protected function replaceNewlines($str) { if ($this->allowInlineLineBreaks) { - if (0 === strpos($str, '{')) { - return str_replace(array('\r', '\n'), array("\r", "\n"), $str); + if (0 === \strpos($str, '{')) { + return \str_replace(array('\\r', '\\n'), array("\r", "\n"), $str); } - return $str; } - - return str_replace(array("\r\n", "\r", "\n"), ' ', $str); + return \str_replace(array("\r\n", "\r", "\n"), ' ', $str); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/LogglyFormatter.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/LogglyFormatter.php similarity index 80% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/LogglyFormatter.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/LogglyFormatter.php index 401859b..bccbac2 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/LogglyFormatter.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/LogglyFormatter.php @@ -8,15 +8,14 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - -namespace Monolog\Formatter; +namespace WPMailSMTP\Vendor\Monolog\Formatter; /** * Encodes message information into JSON in a format compatible with Loggly. * * @author Adam Pancutt */ -class LogglyFormatter extends JsonFormatter +class LogglyFormatter extends \WPMailSMTP\Vendor\Monolog\Formatter\JsonFormatter { /** * Overrides the default batch mode to new lines for compatibility with the @@ -24,11 +23,10 @@ class LogglyFormatter extends JsonFormatter * * @param int $batchMode */ - public function __construct($batchMode = self::BATCH_MODE_NEWLINES, $appendNewline = false) + public function __construct($batchMode = self::BATCH_MODE_NEWLINES, $appendNewline = \false) { parent::__construct($batchMode, $appendNewline); } - /** * Appends the 'timestamp' parameter for indexing by Loggly. * @@ -37,11 +35,10 @@ class LogglyFormatter extends JsonFormatter */ public function format(array $record) { - if (isset($record["datetime"]) && ($record["datetime"] instanceof \DateTime)) { - $record["timestamp"] = $record["datetime"]->format("Y-m-d\TH:i:s.uO"); + if (isset($record["datetime"]) && $record["datetime"] instanceof \DateTime) { + $record["timestamp"] = $record["datetime"]->format("Y-m-d\\TH:i:s.uO"); // TODO 2.0 unset the 'datetime' parameter, retained for BC } - return parent::format($record); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/LogstashFormatter.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/LogstashFormatter.php similarity index 88% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/LogstashFormatter.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/LogstashFormatter.php index 8f83bec..57295cd 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/LogstashFormatter.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/LogstashFormatter.php @@ -8,8 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - -namespace Monolog\Formatter; +namespace WPMailSMTP\Vendor\Monolog\Formatter; /** * Serializes a log message to Logstash Event Format @@ -19,36 +18,30 @@ namespace Monolog\Formatter; * * @author Tim Mower */ -class LogstashFormatter extends NormalizerFormatter +class LogstashFormatter extends \WPMailSMTP\Vendor\Monolog\Formatter\NormalizerFormatter { const V0 = 0; const V1 = 1; - /** * @var string the name of the system for the Logstash log message, used to fill the @source field */ protected $systemName; - /** * @var string an application name for the Logstash log message, used to fill the @type field */ protected $applicationName; - /** * @var string a prefix for 'extra' fields from the Monolog record (optional) */ protected $extraPrefix; - /** * @var string a prefix for 'context' fields from the Monolog record (optional) */ protected $contextPrefix; - /** * @var int logstash format version to use */ protected $version; - /** * @param string $applicationName the application that sends the data, used as the "type" field of logstash * @param string $systemName the system/machine name, used as the "source" field of logstash, defaults to the hostname of the machine @@ -59,41 +52,32 @@ class LogstashFormatter extends NormalizerFormatter public function __construct($applicationName, $systemName = null, $extraPrefix = null, $contextPrefix = 'ctxt_', $version = self::V0) { // logstash requires a ISO 8601 format date with optional millisecond precision. - parent::__construct('Y-m-d\TH:i:s.uP'); - - $this->systemName = $systemName ?: gethostname(); + parent::__construct('Y-m-d\\TH:i:s.uP'); + $this->systemName = $systemName ?: \gethostname(); $this->applicationName = $applicationName; $this->extraPrefix = $extraPrefix; $this->contextPrefix = $contextPrefix; $this->version = $version; } - /** * {@inheritdoc} */ public function format(array $record) { $record = parent::format($record); - if ($this->version === self::V1) { $message = $this->formatV1($record); } else { $message = $this->formatV0($record); } - return $this->toJson($message) . "\n"; } - protected function formatV0(array $record) { if (empty($record['datetime'])) { - $record['datetime'] = gmdate('c'); + $record['datetime'] = \gmdate('c'); } - $message = array( - '@timestamp' => $record['datetime'], - '@source' => $this->systemName, - '@fields' => array(), - ); + $message = array('@timestamp' => $record['datetime'], '@source' => $this->systemName, '@fields' => array()); if (isset($record['message'])) { $message['@message'] = $record['message']; } @@ -123,20 +107,14 @@ class LogstashFormatter extends NormalizerFormatter $message['@fields'][$this->contextPrefix . $key] = $val; } } - return $message; } - protected function formatV1(array $record) { if (empty($record['datetime'])) { - $record['datetime'] = gmdate('c'); + $record['datetime'] = \gmdate('c'); } - $message = array( - '@timestamp' => $record['datetime'], - '@version' => 1, - 'host' => $this->systemName, - ); + $message = array('@timestamp' => $record['datetime'], '@version' => 1, 'host' => $this->systemName); if (isset($record['message'])) { $message['message'] = $record['message']; } @@ -160,7 +138,6 @@ class LogstashFormatter extends NormalizerFormatter $message[$this->contextPrefix . $key] = $val; } } - return $message; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/MongoDBFormatter.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/MongoDBFormatter.php similarity index 76% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/MongoDBFormatter.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/MongoDBFormatter.php index bd9e4c0..1d23041 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/MongoDBFormatter.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/MongoDBFormatter.php @@ -8,31 +8,27 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Formatter; -namespace Monolog\Formatter; - -use Monolog\Utils; - +use WPMailSMTP\Vendor\Monolog\Utils; /** * Formats a record for use with the MongoDBHandler. * * @author Florian Plattner */ -class MongoDBFormatter implements FormatterInterface +class MongoDBFormatter implements \WPMailSMTP\Vendor\Monolog\Formatter\FormatterInterface { private $exceptionTraceAsString; private $maxNestingLevel; - /** * @param int $maxNestingLevel 0 means infinite nesting, the $record itself is level 1, $record['context'] is 2 * @param bool $exceptionTraceAsString set to false to log exception traces as a sub documents instead of strings */ - public function __construct($maxNestingLevel = 3, $exceptionTraceAsString = true) + public function __construct($maxNestingLevel = 3, $exceptionTraceAsString = \true) { - $this->maxNestingLevel = max($maxNestingLevel, 0); + $this->maxNestingLevel = \max($maxNestingLevel, 0); $this->exceptionTraceAsString = (bool) $exceptionTraceAsString; } - /** * {@inheritDoc} */ @@ -40,7 +36,6 @@ class MongoDBFormatter implements FormatterInterface { return $this->formatArray($record); } - /** * {@inheritDoc} */ @@ -49,10 +44,8 @@ class MongoDBFormatter implements FormatterInterface foreach ($records as $key => $record) { $records[$key] = $this->format($record); } - return $records; } - protected function formatArray(array $record, $nestingLevel = 0) { if ($this->maxNestingLevel == 0 || $nestingLevel <= $this->maxNestingLevel) { @@ -61,45 +54,33 @@ class MongoDBFormatter implements FormatterInterface $record[$name] = $this->formatDate($value, $nestingLevel + 1); } elseif ($value instanceof \Exception) { $record[$name] = $this->formatException($value, $nestingLevel + 1); - } elseif (is_array($value)) { + } elseif (\is_array($value)) { $record[$name] = $this->formatArray($value, $nestingLevel + 1); - } elseif (is_object($value)) { + } elseif (\is_object($value)) { $record[$name] = $this->formatObject($value, $nestingLevel + 1); } } } else { $record = '[...]'; } - return $record; } - protected function formatObject($value, $nestingLevel) { - $objectVars = get_object_vars($value); - $objectVars['class'] = Utils::getClass($value); - + $objectVars = \get_object_vars($value); + $objectVars['class'] = \WPMailSMTP\Vendor\Monolog\Utils::getClass($value); return $this->formatArray($objectVars, $nestingLevel); } - protected function formatException(\Exception $exception, $nestingLevel) { - $formattedException = array( - 'class' => Utils::getClass($exception), - 'message' => $exception->getMessage(), - 'code' => (int) $exception->getCode(), - 'file' => $exception->getFile() . ':' . $exception->getLine(), - ); - - if ($this->exceptionTraceAsString === true) { + $formattedException = array('class' => \WPMailSMTP\Vendor\Monolog\Utils::getClass($exception), 'message' => $exception->getMessage(), 'code' => (int) $exception->getCode(), 'file' => $exception->getFile() . ':' . $exception->getLine()); + if ($this->exceptionTraceAsString === \true) { $formattedException['trace'] = $exception->getTraceAsString(); } else { $formattedException['trace'] = $exception->getTrace(); } - return $this->formatArray($formattedException, $nestingLevel); } - protected function formatDate(\DateTime $value, $nestingLevel) { return new \MongoDate($value->getTimestamp()); diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php similarity index 65% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php index 3a01f2c..af9be95 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php @@ -8,34 +8,29 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - -namespace Monolog\Formatter; +namespace WPMailSMTP\Vendor\Monolog\Formatter; use Exception; -use Monolog\Utils; - +use WPMailSMTP\Vendor\Monolog\Utils; /** * Normalizes incoming records to remove objects/resources so it's easier to dump to various targets * * @author Jordi Boggiano */ -class NormalizerFormatter implements FormatterInterface +class NormalizerFormatter implements \WPMailSMTP\Vendor\Monolog\Formatter\FormatterInterface { const SIMPLE_DATE = "Y-m-d H:i:s"; - protected $dateFormat; - /** * @param string $dateFormat The format of the timestamp: one supported by DateTime::format */ public function __construct($dateFormat = null) { $this->dateFormat = $dateFormat ?: static::SIMPLE_DATE; - if (!function_exists('json_encode')) { + if (!\function_exists('json_encode')) { throw new \RuntimeException('PHP\'s json extension is required to use Monolog\'s NormalizerFormatter'); } } - /** * {@inheritdoc} */ @@ -43,7 +38,6 @@ class NormalizerFormatter implements FormatterInterface { return $this->normalize($record); } - /** * {@inheritdoc} */ @@ -52,119 +46,91 @@ class NormalizerFormatter implements FormatterInterface foreach ($records as $key => $record) { $records[$key] = $this->format($record); } - return $records; } - protected function normalize($data, $depth = 0) { if ($depth > 9) { return 'Over 9 levels deep, aborting normalization'; } - - if (null === $data || is_scalar($data)) { - if (is_float($data)) { - if (is_infinite($data)) { + if (null === $data || \is_scalar($data)) { + if (\is_float($data)) { + if (\is_infinite($data)) { return ($data > 0 ? '' : '-') . 'INF'; } - if (is_nan($data)) { + if (\is_nan($data)) { return 'NaN'; } } - return $data; } - - if (is_array($data)) { + if (\is_array($data)) { $normalized = array(); - $count = 1; foreach ($data as $key => $value) { if ($count++ > 1000) { - $normalized['...'] = 'Over 1000 items ('.count($data).' total), aborting normalization'; + $normalized['...'] = 'Over 1000 items (' . \count($data) . ' total), aborting normalization'; break; } - - $normalized[$key] = $this->normalize($value, $depth+1); + $normalized[$key] = $this->normalize($value, $depth + 1); } - return $normalized; } - if ($data instanceof \DateTime) { return $data->format($this->dateFormat); } - - if (is_object($data)) { + if (\is_object($data)) { // TODO 2.0 only check for Throwable - if ($data instanceof Exception || (PHP_VERSION_ID > 70000 && $data instanceof \Throwable)) { + if ($data instanceof \Exception || \PHP_VERSION_ID > 70000 && $data instanceof \Throwable) { return $this->normalizeException($data); } - // non-serializable objects that implement __toString stringified - if (method_exists($data, '__toString') && !$data instanceof \JsonSerializable) { + if (\method_exists($data, '__toString') && !$data instanceof \JsonSerializable) { $value = $data->__toString(); } else { // the rest is json-serialized in some way - $value = $this->toJson($data, true); + $value = $this->toJson($data, \true); } - - return sprintf("[object] (%s: %s)", Utils::getClass($data), $value); + return \sprintf("[object] (%s: %s)", \WPMailSMTP\Vendor\Monolog\Utils::getClass($data), $value); } - - if (is_resource($data)) { - return sprintf('[resource] (%s)', get_resource_type($data)); + if (\is_resource($data)) { + return \sprintf('[resource] (%s)', \get_resource_type($data)); } - - return '[unknown('.gettype($data).')]'; + return '[unknown(' . \gettype($data) . ')]'; } - protected function normalizeException($e) { // TODO 2.0 only check for Throwable - if (!$e instanceof Exception && !$e instanceof \Throwable) { - throw new \InvalidArgumentException('Exception/Throwable expected, got '.gettype($e).' / '.Utils::getClass($e)); + if (!$e instanceof \Exception && !$e instanceof \Throwable) { + throw new \InvalidArgumentException('Exception/Throwable expected, got ' . \gettype($e) . ' / ' . \WPMailSMTP\Vendor\Monolog\Utils::getClass($e)); } - - $data = array( - 'class' => Utils::getClass($e), - 'message' => $e->getMessage(), - 'code' => (int) $e->getCode(), - 'file' => $e->getFile().':'.$e->getLine(), - ); - + $data = array('class' => \WPMailSMTP\Vendor\Monolog\Utils::getClass($e), 'message' => $e->getMessage(), 'code' => (int) $e->getCode(), 'file' => $e->getFile() . ':' . $e->getLine()); if ($e instanceof \SoapFault) { if (isset($e->faultcode)) { $data['faultcode'] = $e->faultcode; } - if (isset($e->faultactor)) { $data['faultactor'] = $e->faultactor; } - if (isset($e->detail)) { - if (is_string($e->detail)) { + if (\is_string($e->detail)) { $data['detail'] = $e->detail; - } elseif (is_object($e->detail) || is_array($e->detail)) { - $data['detail'] = $this->toJson($e->detail, true); + } elseif (\is_object($e->detail) || \is_array($e->detail)) { + $data['detail'] = $this->toJson($e->detail, \true); } } } - $trace = $e->getTrace(); foreach ($trace as $frame) { if (isset($frame['file'])) { - $data['trace'][] = $frame['file'].':'.$frame['line']; + $data['trace'][] = $frame['file'] . ':' . $frame['line']; } } - if ($previous = $e->getPrevious()) { $data['previous'] = $this->normalizeException($previous); } - return $data; } - /** * Return the JSON representation of a value * @@ -173,8 +139,8 @@ class NormalizerFormatter implements FormatterInterface * @throws \RuntimeException if encoding fails and errors are not ignored * @return string */ - protected function toJson($data, $ignoreErrors = false) + protected function toJson($data, $ignoreErrors = \false) { - return Utils::jsonEncode($data, null, $ignoreErrors); + return \WPMailSMTP\Vendor\Monolog\Utils::jsonEncode($data, null, $ignoreErrors); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/ScalarFormatter.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/ScalarFormatter.php similarity index 76% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/ScalarFormatter.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/ScalarFormatter.php index 5d345d5..584b9c2 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/ScalarFormatter.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/ScalarFormatter.php @@ -8,8 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - -namespace Monolog\Formatter; +namespace WPMailSMTP\Vendor\Monolog\Formatter; /** * Formats data into an associative array of scalar values. @@ -17,7 +16,7 @@ namespace Monolog\Formatter; * * @author Andrew Lawson */ -class ScalarFormatter extends NormalizerFormatter +class ScalarFormatter extends \WPMailSMTP\Vendor\Monolog\Formatter\NormalizerFormatter { /** * {@inheritdoc} @@ -27,10 +26,8 @@ class ScalarFormatter extends NormalizerFormatter foreach ($record as $key => $value) { $record[$key] = $this->normalizeValue($value); } - return $record; } - /** * @param mixed $value * @return mixed @@ -38,11 +35,9 @@ class ScalarFormatter extends NormalizerFormatter protected function normalizeValue($value) { $normalized = $this->normalize($value); - - if (is_array($normalized) || is_object($normalized)) { - return $this->toJson($normalized, true); + if (\is_array($normalized) || \is_object($normalized)) { + return $this->toJson($normalized, \true); } - return $normalized; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/WildfireFormatter.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/WildfireFormatter.php similarity index 62% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/WildfireFormatter.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/WildfireFormatter.php index 65dba99..c3133df 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Formatter/WildfireFormatter.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Formatter/WildfireFormatter.php @@ -8,11 +8,9 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Formatter; -namespace Monolog\Formatter; - -use Monolog\Logger; - +use WPMailSMTP\Vendor\Monolog\Logger; /** * Serializes a log message according to Wildfire's header requirements * @@ -20,24 +18,13 @@ use Monolog\Logger; * @author Christophe Coevoet * @author Kirill chEbba Chebunin */ -class WildfireFormatter extends NormalizerFormatter +class WildfireFormatter extends \WPMailSMTP\Vendor\Monolog\Formatter\NormalizerFormatter { const TABLE = 'table'; - /** * Translates Monolog log levels to Wildfire levels. */ - private $logLevels = array( - Logger::DEBUG => 'LOG', - Logger::INFO => 'INFO', - Logger::NOTICE => 'INFO', - Logger::WARNING => 'WARN', - Logger::ERROR => 'ERROR', - Logger::CRITICAL => 'ERROR', - Logger::ALERT => 'ERROR', - Logger::EMERGENCY => 'ERROR', - ); - + private $logLevels = array(\WPMailSMTP\Vendor\Monolog\Logger::DEBUG => 'LOG', \WPMailSMTP\Vendor\Monolog\Logger::INFO => 'INFO', \WPMailSMTP\Vendor\Monolog\Logger::NOTICE => 'INFO', \WPMailSMTP\Vendor\Monolog\Logger::WARNING => 'WARN', \WPMailSMTP\Vendor\Monolog\Logger::ERROR => 'ERROR', \WPMailSMTP\Vendor\Monolog\Logger::CRITICAL => 'ERROR', \WPMailSMTP\Vendor\Monolog\Logger::ALERT => 'ERROR', \WPMailSMTP\Vendor\Monolog\Logger::EMERGENCY => 'ERROR'); /** * {@inheritdoc} */ @@ -53,61 +40,42 @@ class WildfireFormatter extends NormalizerFormatter $line = $record['extra']['line']; unset($record['extra']['line']); } - $record = $this->normalize($record); $message = array('message' => $record['message']); - $handleError = false; + $handleError = \false; if ($record['context']) { $message['context'] = $record['context']; - $handleError = true; + $handleError = \true; } if ($record['extra']) { $message['extra'] = $record['extra']; - $handleError = true; + $handleError = \true; } - if (count($message) === 1) { - $message = reset($message); + if (\count($message) === 1) { + $message = \reset($message); } - if (isset($record['context'][self::TABLE])) { - $type = 'TABLE'; - $label = $record['channel'] .': '. $record['message']; + $type = 'TABLE'; + $label = $record['channel'] . ': ' . $record['message']; $message = $record['context'][self::TABLE]; } else { - $type = $this->logLevels[$record['level']]; + $type = $this->logLevels[$record['level']]; $label = $record['channel']; } - // Create JSON object describing the appearance of the message in the console - $json = $this->toJson(array( - array( - 'Type' => $type, - 'File' => $file, - 'Line' => $line, - 'Label' => $label, - ), - $message, - ), $handleError); - + $json = $this->toJson(array(array('Type' => $type, 'File' => $file, 'Line' => $line, 'Label' => $label), $message), $handleError); // The message itself is a serialization of the above JSON object + it's length - return sprintf( - '%s|%s|', - strlen($json), - $json - ); + return \sprintf('%s|%s|', \strlen($json), $json); } - public function formatBatch(array $records) { throw new \BadMethodCallException('Batch formatting does not make sense for the WildfireFormatter'); } - protected function normalize($data, $depth = 0) { - if (is_object($data) && !$data instanceof \DateTime) { + if (\is_object($data) && !$data instanceof \DateTime) { return $data; } - return parent::normalize($data, $depth); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/AbstractHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/AbstractHandler.php similarity index 76% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/AbstractHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/AbstractHandler.php index cdd9f7d..3679b7e 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/AbstractHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/AbstractHandler.php @@ -8,40 +8,35 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler; -namespace Monolog\Handler; - -use Monolog\Formatter\FormatterInterface; -use Monolog\Formatter\LineFormatter; -use Monolog\Logger; -use Monolog\ResettableInterface; - +use WPMailSMTP\Vendor\Monolog\Formatter\FormatterInterface; +use WPMailSMTP\Vendor\Monolog\Formatter\LineFormatter; +use WPMailSMTP\Vendor\Monolog\Logger; +use WPMailSMTP\Vendor\Monolog\ResettableInterface; /** * Base Handler class providing the Handler structure * * @author Jordi Boggiano */ -abstract class AbstractHandler implements HandlerInterface, ResettableInterface +abstract class AbstractHandler implements \WPMailSMTP\Vendor\Monolog\Handler\HandlerInterface, \WPMailSMTP\Vendor\Monolog\ResettableInterface { - protected $level = Logger::DEBUG; - protected $bubble = true; - + protected $level = \WPMailSMTP\Vendor\Monolog\Logger::DEBUG; + protected $bubble = \true; /** * @var FormatterInterface */ protected $formatter; protected $processors = array(); - /** * @param int|string $level The minimum logging level at which this handler will be triggered * @param bool $bubble Whether the messages that are handled can bubble up the stack or not */ - public function __construct($level = Logger::DEBUG, $bubble = true) + public function __construct($level = \WPMailSMTP\Vendor\Monolog\Logger::DEBUG, $bubble = \true) { $this->setLevel($level); $this->bubble = $bubble; } - /** * {@inheritdoc} */ @@ -49,7 +44,6 @@ abstract class AbstractHandler implements HandlerInterface, ResettableInterface { return $record['level'] >= $this->level; } - /** * {@inheritdoc} */ @@ -59,7 +53,6 @@ abstract class AbstractHandler implements HandlerInterface, ResettableInterface $this->handle($record); } } - /** * Closes the handler. * @@ -68,20 +61,17 @@ abstract class AbstractHandler implements HandlerInterface, ResettableInterface public function close() { } - /** * {@inheritdoc} */ public function pushProcessor($callback) { - if (!is_callable($callback)) { - throw new \InvalidArgumentException('Processors must be valid callables (callback or object with an __invoke method), '.var_export($callback, true).' given'); + if (!\is_callable($callback)) { + throw new \InvalidArgumentException('Processors must be valid callables (callback or object with an __invoke method), ' . \var_export($callback, \true) . ' given'); } - array_unshift($this->processors, $callback); - + \array_unshift($this->processors, $callback); return $this; } - /** * {@inheritdoc} */ @@ -90,20 +80,16 @@ abstract class AbstractHandler implements HandlerInterface, ResettableInterface if (!$this->processors) { throw new \LogicException('You tried to pop from an empty processor stack.'); } - - return array_shift($this->processors); + return \array_shift($this->processors); } - /** * {@inheritdoc} */ - public function setFormatter(FormatterInterface $formatter) + public function setFormatter(\WPMailSMTP\Vendor\Monolog\Formatter\FormatterInterface $formatter) { $this->formatter = $formatter; - return $this; } - /** * {@inheritdoc} */ @@ -112,10 +98,8 @@ abstract class AbstractHandler implements HandlerInterface, ResettableInterface if (!$this->formatter) { $this->formatter = $this->getDefaultFormatter(); } - return $this->formatter; } - /** * Sets minimum logging level at which this handler will be triggered. * @@ -124,11 +108,9 @@ abstract class AbstractHandler implements HandlerInterface, ResettableInterface */ public function setLevel($level) { - $this->level = Logger::toMonologLevel($level); - + $this->level = \WPMailSMTP\Vendor\Monolog\Logger::toMonologLevel($level); return $this; } - /** * Gets minimum logging level at which this handler will be triggered. * @@ -138,7 +120,6 @@ abstract class AbstractHandler implements HandlerInterface, ResettableInterface { return $this->level; } - /** * Sets the bubbling behavior. * @@ -149,10 +130,8 @@ abstract class AbstractHandler implements HandlerInterface, ResettableInterface public function setBubble($bubble) { $this->bubble = $bubble; - return $this; } - /** * Gets the bubbling behavior. * @@ -163,7 +142,6 @@ abstract class AbstractHandler implements HandlerInterface, ResettableInterface { return $this->bubble; } - public function __destruct() { try { @@ -174,16 +152,14 @@ abstract class AbstractHandler implements HandlerInterface, ResettableInterface // do nothing } } - public function reset() { foreach ($this->processors as $processor) { - if ($processor instanceof ResettableInterface) { + if ($processor instanceof \WPMailSMTP\Vendor\Monolog\ResettableInterface) { $processor->reset(); } } } - /** * Gets the default formatter. * @@ -191,6 +167,6 @@ abstract class AbstractHandler implements HandlerInterface, ResettableInterface */ protected function getDefaultFormatter() { - return new LineFormatter(); + return new \WPMailSMTP\Vendor\Monolog\Formatter\LineFormatter(); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php similarity index 76% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php index e1e8953..5bccefe 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php @@ -8,11 +8,9 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler; -namespace Monolog\Handler; - -use Monolog\ResettableInterface; - +use WPMailSMTP\Vendor\Monolog\ResettableInterface; /** * Base Handler class providing the Handler structure * @@ -21,7 +19,7 @@ use Monolog\ResettableInterface; * @author Jordi Boggiano * @author Christophe Coevoet */ -abstract class AbstractProcessingHandler extends AbstractHandler +abstract class AbstractProcessingHandler extends \WPMailSMTP\Vendor\Monolog\Handler\AbstractHandler { /** * {@inheritdoc} @@ -29,26 +27,20 @@ abstract class AbstractProcessingHandler extends AbstractHandler public function handle(array $record) { if (!$this->isHandling($record)) { - return false; + return \false; } - $record = $this->processRecord($record); - $record['formatted'] = $this->getFormatter()->format($record); - $this->write($record); - - return false === $this->bubble; + return \false === $this->bubble; } - /** * Writes the record down to the log of the implementing handler * * @param array $record * @return void */ - abstract protected function write(array $record); - + protected abstract function write(array $record); /** * Processes a record. * @@ -59,10 +51,9 @@ abstract class AbstractProcessingHandler extends AbstractHandler { if ($this->processors) { foreach ($this->processors as $processor) { - $record = call_user_func($processor, $record); + $record = \call_user_func($processor, $record); } } - return $record; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/AbstractSyslogHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/AbstractSyslogHandler.php new file mode 100644 index 0000000..fd3b3bd --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/AbstractSyslogHandler.php @@ -0,0 +1,79 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ +namespace WPMailSMTP\Vendor\Monolog\Handler; + +use WPMailSMTP\Vendor\Monolog\Logger; +use WPMailSMTP\Vendor\Monolog\Formatter\LineFormatter; +/** + * Common syslog functionality + */ +abstract class AbstractSyslogHandler extends \WPMailSMTP\Vendor\Monolog\Handler\AbstractProcessingHandler +{ + protected $facility; + /** + * Translates Monolog log levels to syslog log priorities. + */ + protected $logLevels = array(\WPMailSMTP\Vendor\Monolog\Logger::DEBUG => \LOG_DEBUG, \WPMailSMTP\Vendor\Monolog\Logger::INFO => \LOG_INFO, \WPMailSMTP\Vendor\Monolog\Logger::NOTICE => \LOG_NOTICE, \WPMailSMTP\Vendor\Monolog\Logger::WARNING => \LOG_WARNING, \WPMailSMTP\Vendor\Monolog\Logger::ERROR => \LOG_ERR, \WPMailSMTP\Vendor\Monolog\Logger::CRITICAL => \LOG_CRIT, \WPMailSMTP\Vendor\Monolog\Logger::ALERT => \LOG_ALERT, \WPMailSMTP\Vendor\Monolog\Logger::EMERGENCY => \LOG_EMERG); + /** + * List of valid log facility names. + */ + protected $facilities = array('auth' => \LOG_AUTH, 'authpriv' => \LOG_AUTHPRIV, 'cron' => \LOG_CRON, 'daemon' => \LOG_DAEMON, 'kern' => \LOG_KERN, 'lpr' => \LOG_LPR, 'mail' => \LOG_MAIL, 'news' => \LOG_NEWS, 'syslog' => \LOG_SYSLOG, 'user' => \LOG_USER, 'uucp' => \LOG_UUCP); + /** + * @param mixed $facility + * @param int $level The minimum logging level at which this handler will be triggered + * @param bool $bubble Whether the messages that are handled can bubble up the stack or not + */ + public function __construct($facility = \LOG_USER, $level = \WPMailSMTP\Vendor\Monolog\Logger::DEBUG, $bubble = \true) + { + parent::__construct($level, $bubble); + if (!\defined('PHP_WINDOWS_VERSION_BUILD')) { + $this->facilities['local0'] = \LOG_LOCAL0; + $this->facilities['local1'] = \LOG_LOCAL1; + $this->facilities['local2'] = \LOG_LOCAL2; + $this->facilities['local3'] = \LOG_LOCAL3; + $this->facilities['local4'] = \LOG_LOCAL4; + $this->facilities['local5'] = \LOG_LOCAL5; + $this->facilities['local6'] = \LOG_LOCAL6; + $this->facilities['local7'] = \LOG_LOCAL7; + } else { + $this->facilities['local0'] = 128; + // LOG_LOCAL0 + $this->facilities['local1'] = 136; + // LOG_LOCAL1 + $this->facilities['local2'] = 144; + // LOG_LOCAL2 + $this->facilities['local3'] = 152; + // LOG_LOCAL3 + $this->facilities['local4'] = 160; + // LOG_LOCAL4 + $this->facilities['local5'] = 168; + // LOG_LOCAL5 + $this->facilities['local6'] = 176; + // LOG_LOCAL6 + $this->facilities['local7'] = 184; + // LOG_LOCAL7 + } + // convert textual description of facility to syslog constant + if (\array_key_exists(\strtolower($facility), $this->facilities)) { + $facility = $this->facilities[\strtolower($facility)]; + } elseif (!\in_array($facility, \array_values($this->facilities), \true)) { + throw new \UnexpectedValueException('Unknown facility value "' . $facility . '" given'); + } + $this->facility = $facility; + } + /** + * {@inheritdoc} + */ + protected function getDefaultFormatter() + { + return new \WPMailSMTP\Vendor\Monolog\Formatter\LineFormatter('%channel%.%level_name%: %message% %context% %extra%'); + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/AmqpHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/AmqpHandler.php similarity index 58% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/AmqpHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/AmqpHandler.php index e5a46bc..aa18d5c 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/AmqpHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/AmqpHandler.php @@ -8,47 +8,41 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler; -namespace Monolog\Handler; - -use Monolog\Logger; -use Monolog\Formatter\JsonFormatter; -use PhpAmqpLib\Message\AMQPMessage; -use PhpAmqpLib\Channel\AMQPChannel; +use WPMailSMTP\Vendor\Monolog\Logger; +use WPMailSMTP\Vendor\Monolog\Formatter\JsonFormatter; +use WPMailSMTP\Vendor\PhpAmqpLib\Message\AMQPMessage; +use WPMailSMTP\Vendor\PhpAmqpLib\Channel\AMQPChannel; use AMQPExchange; - -class AmqpHandler extends AbstractProcessingHandler +class AmqpHandler extends \WPMailSMTP\Vendor\Monolog\Handler\AbstractProcessingHandler { /** * @var AMQPExchange|AMQPChannel $exchange */ protected $exchange; - /** * @var string */ protected $exchangeName; - /** * @param AMQPExchange|AMQPChannel $exchange AMQPExchange (php AMQP ext) or PHP AMQP lib channel, ready for use * @param string $exchangeName * @param int $level * @param bool $bubble Whether the messages that are handled can bubble up the stack or not */ - public function __construct($exchange, $exchangeName = 'log', $level = Logger::DEBUG, $bubble = true) + public function __construct($exchange, $exchangeName = 'log', $level = \WPMailSMTP\Vendor\Monolog\Logger::DEBUG, $bubble = \true) { - if ($exchange instanceof AMQPExchange) { + if ($exchange instanceof \AMQPExchange) { $exchange->setName($exchangeName); - } elseif ($exchange instanceof AMQPChannel) { + } elseif ($exchange instanceof \WPMailSMTP\Vendor\PhpAmqpLib\Channel\AMQPChannel) { $this->exchangeName = $exchangeName; } else { - throw new \InvalidArgumentException('PhpAmqpLib\Channel\AMQPChannel or AMQPExchange instance required'); + throw new \InvalidArgumentException('PhpAmqpLib\\Channel\\AMQPChannel or AMQPExchange instance required'); } $this->exchange = $exchange; - parent::__construct($level, $bubble); } - /** * {@inheritDoc} */ @@ -56,55 +50,31 @@ class AmqpHandler extends AbstractProcessingHandler { $data = $record["formatted"]; $routingKey = $this->getRoutingKey($record); - - if ($this->exchange instanceof AMQPExchange) { - $this->exchange->publish( - $data, - $routingKey, - 0, - array( - 'delivery_mode' => 2, - 'content_type' => 'application/json', - ) - ); + if ($this->exchange instanceof \AMQPExchange) { + $this->exchange->publish($data, $routingKey, 0, array('delivery_mode' => 2, 'content_type' => 'application/json')); } else { - $this->exchange->basic_publish( - $this->createAmqpMessage($data), - $this->exchangeName, - $routingKey - ); + $this->exchange->basic_publish($this->createAmqpMessage($data), $this->exchangeName, $routingKey); } } - /** * {@inheritDoc} */ public function handleBatch(array $records) { - if ($this->exchange instanceof AMQPExchange) { + if ($this->exchange instanceof \AMQPExchange) { parent::handleBatch($records); - return; } - foreach ($records as $record) { if (!$this->isHandling($record)) { continue; } - $record = $this->processRecord($record); $data = $this->getFormatter()->format($record); - - $this->exchange->batch_basic_publish( - $this->createAmqpMessage($data), - $this->exchangeName, - $this->getRoutingKey($record) - ); + $this->exchange->batch_basic_publish($this->createAmqpMessage($data), $this->exchangeName, $this->getRoutingKey($record)); } - $this->exchange->publish_batch(); } - /** * Gets the routing key for the AMQP exchange * @@ -113,36 +83,27 @@ class AmqpHandler extends AbstractProcessingHandler */ protected function getRoutingKey(array $record) { - $routingKey = sprintf( + $routingKey = \sprintf( '%s.%s', // TODO 2.0 remove substr call - substr($record['level_name'], 0, 4), + \substr($record['level_name'], 0, 4), $record['channel'] ); - - return strtolower($routingKey); + return \strtolower($routingKey); } - /** * @param string $data * @return AMQPMessage */ private function createAmqpMessage($data) { - return new AMQPMessage( - (string) $data, - array( - 'delivery_mode' => 2, - 'content_type' => 'application/json', - ) - ); + return new \WPMailSMTP\Vendor\PhpAmqpLib\Message\AMQPMessage((string) $data, array('delivery_mode' => 2, 'content_type' => 'application/json')); } - /** * {@inheritDoc} */ protected function getDefaultFormatter() { - return new JsonFormatter(JsonFormatter::BATCH_MODE_JSON, false); + return new \WPMailSMTP\Vendor\Monolog\Formatter\JsonFormatter(\WPMailSMTP\Vendor\Monolog\Formatter\JsonFormatter::BATCH_MODE_JSON, \false); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/BrowserConsoleHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/BrowserConsoleHandler.php similarity index 71% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/BrowserConsoleHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/BrowserConsoleHandler.php index 68feb48..1572000 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/BrowserConsoleHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/BrowserConsoleHandler.php @@ -8,21 +8,18 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler; -namespace Monolog\Handler; - -use Monolog\Formatter\LineFormatter; - +use WPMailSMTP\Vendor\Monolog\Formatter\LineFormatter; /** * Handler sending logs to browser's javascript console with no browser extension required * * @author Olivier Poitrey */ -class BrowserConsoleHandler extends AbstractProcessingHandler +class BrowserConsoleHandler extends \WPMailSMTP\Vendor\Monolog\Handler\AbstractProcessingHandler { - protected static $initialized = false; + protected static $initialized = \false; protected static $records = array(); - /** * {@inheritDoc} * @@ -34,9 +31,8 @@ class BrowserConsoleHandler extends AbstractProcessingHandler */ protected function getDefaultFormatter() { - return new LineFormatter('[[%channel%]]{macro: autolabel} [[%level_name%]]{font-weight: bold} %message%'); + return new \WPMailSMTP\Vendor\Monolog\Formatter\LineFormatter('[[%channel%]]{macro: autolabel} [[%level_name%]]{font-weight: bold} %message%'); } - /** * {@inheritDoc} */ @@ -44,14 +40,12 @@ class BrowserConsoleHandler extends AbstractProcessingHandler { // Accumulate records static::$records[] = $record; - // Register shutdown handler if not already done if (!static::$initialized) { - static::$initialized = true; + static::$initialized = \true; $this->registerShutdownFunction(); } } - /** * Convert records to javascript console commands and send it to the browser. * This method is automatically called on PHP shutdown if output is HTML or Javascript. @@ -62,8 +56,7 @@ class BrowserConsoleHandler extends AbstractProcessingHandler if ($format === 'unknown') { return; } - - if (count(static::$records)) { + if (\count(static::$records)) { if ($format === 'html') { static::writeOutput(''); } elseif ($format === 'js') { @@ -72,17 +65,14 @@ class BrowserConsoleHandler extends AbstractProcessingHandler static::resetStatic(); } } - public function close() { self::resetStatic(); } - public function reset() { self::resetStatic(); } - /** * Forget all logged records */ @@ -90,17 +80,15 @@ class BrowserConsoleHandler extends AbstractProcessingHandler { static::$records = array(); } - /** * Wrapper for register_shutdown_function to allow overriding */ protected function registerShutdownFunction() { - if (PHP_SAPI !== 'cli') { - register_shutdown_function(array('Monolog\Handler\BrowserConsoleHandler', 'send')); + if (\PHP_SAPI !== 'cli') { + \register_shutdown_function(array('WPMailSMTP\\Vendor\\Monolog\\Handler\\BrowserConsoleHandler', 'send')); } } - /** * Wrapper for echo to allow overriding * @@ -110,7 +98,6 @@ class BrowserConsoleHandler extends AbstractProcessingHandler { echo $str; } - /** * Checks the format of the response * @@ -123,119 +110,95 @@ class BrowserConsoleHandler extends AbstractProcessingHandler protected static function getResponseFormat() { // Check content type - foreach (headers_list() as $header) { - if (stripos($header, 'content-type:') === 0) { + foreach (\headers_list() as $header) { + if (\stripos($header, 'content-type:') === 0) { // This handler only works with HTML and javascript outputs // text/javascript is obsolete in favour of application/javascript, but still used - if (stripos($header, 'application/javascript') !== false || stripos($header, 'text/javascript') !== false) { + if (\stripos($header, 'application/javascript') !== \false || \stripos($header, 'text/javascript') !== \false) { return 'js'; } - if (stripos($header, 'text/html') === false) { + if (\stripos($header, 'text/html') === \false) { return 'unknown'; } break; } } - return 'html'; } - private static function generateScript() { $script = array(); foreach (static::$records as $record) { $context = static::dump('Context', $record['context']); $extra = static::dump('Extra', $record['extra']); - if (empty($context) && empty($extra)) { $script[] = static::call_array('log', static::handleStyles($record['formatted'])); } else { - $script = array_merge($script, - array(static::call_array('groupCollapsed', static::handleStyles($record['formatted']))), - $context, - $extra, - array(static::call('groupEnd')) - ); + $script = \array_merge($script, array(static::call_array('groupCollapsed', static::handleStyles($record['formatted']))), $context, $extra, array(static::call('groupEnd'))); } } - - return "(function (c) {if (c && c.groupCollapsed) {\n" . implode("\n", $script) . "\n}})(console);"; + return "(function (c) {if (c && c.groupCollapsed) {\n" . \implode("\n", $script) . "\n}})(console);"; } - private static function handleStyles($formatted) { $args = array(); $format = '%c' . $formatted; - preg_match_all('/\[\[(.*?)\]\]\{([^}]*)\}/s', $format, $matches, PREG_OFFSET_CAPTURE | PREG_SET_ORDER); - - foreach (array_reverse($matches) as $match) { + \preg_match_all('/\\[\\[(.*?)\\]\\]\\{([^}]*)\\}/s', $format, $matches, \PREG_OFFSET_CAPTURE | \PREG_SET_ORDER); + foreach (\array_reverse($matches) as $match) { $args[] = '"font-weight: normal"'; $args[] = static::quote(static::handleCustomStyles($match[2][0], $match[1][0])); - $pos = $match[0][1]; - $format = substr($format, 0, $pos) . '%c' . $match[1][0] . '%c' . substr($format, $pos + strlen($match[0][0])); + $format = \substr($format, 0, $pos) . '%c' . $match[1][0] . '%c' . \substr($format, $pos + \strlen($match[0][0])); } - $args[] = static::quote('font-weight: normal'); $args[] = static::quote($format); - - return array_reverse($args); + return \array_reverse($args); } - private static function handleCustomStyles($style, $string) { static $colors = array('blue', 'green', 'red', 'magenta', 'orange', 'black', 'grey'); static $labels = array(); - - return preg_replace_callback('/macro\s*:(.*?)(?:;|$)/', function ($m) use ($string, &$colors, &$labels) { - if (trim($m[1]) === 'autolabel') { + return \preg_replace_callback('/macro\\s*:(.*?)(?:;|$)/', function ($m) use($string, &$colors, &$labels) { + if (\trim($m[1]) === 'autolabel') { // Format the string as a label with consistent auto assigned background color if (!isset($labels[$string])) { - $labels[$string] = $colors[count($labels) % count($colors)]; + $labels[$string] = $colors[\count($labels) % \count($colors)]; } $color = $labels[$string]; - - return "background-color: $color; color: white; border-radius: 3px; padding: 0 2px 0 2px"; + return "background-color: {$color}; color: white; border-radius: 3px; padding: 0 2px 0 2px"; } - return $m[1]; }, $style); } - private static function dump($title, array $dict) { $script = array(); - $dict = array_filter($dict); + $dict = \array_filter($dict); if (empty($dict)) { return $script; } $script[] = static::call('log', static::quote('%c%s'), static::quote('font-weight: bold'), static::quote($title)); foreach ($dict as $key => $value) { - $value = json_encode($value); + $value = \json_encode($value); if (empty($value)) { $value = static::quote(''); } $script[] = static::call('log', static::quote('%s: %o'), static::quote($key), $value); } - return $script; } - private static function quote($arg) { - return '"' . addcslashes($arg, "\"\n\\") . '"'; + return '"' . \addcslashes($arg, "\"\n\\") . '"'; } - private static function call() { - $args = func_get_args(); - $method = array_shift($args); - + $args = \func_get_args(); + $method = \array_shift($args); return static::call_array($method, $args); } - private static function call_array($method, array $args) { - return 'c.' . $method . '(' . implode(', ', $args) . ');'; + return 'c.' . $method . '(' . \implode(', ', $args) . ');'; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/BufferHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/BufferHandler.php similarity index 76% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/BufferHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/BufferHandler.php index 0957e55..7b7000e 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/BufferHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/BufferHandler.php @@ -8,13 +8,11 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler; -namespace Monolog\Handler; - -use Monolog\Logger; -use Monolog\ResettableInterface; -use Monolog\Formatter\FormatterInterface; - +use WPMailSMTP\Vendor\Monolog\Logger; +use WPMailSMTP\Vendor\Monolog\ResettableInterface; +use WPMailSMTP\Vendor\Monolog\Formatter\FormatterInterface; /** * Buffers all records until closing the handler and then pass them as batch. * @@ -23,15 +21,14 @@ use Monolog\Formatter\FormatterInterface; * * @author Christophe Coevoet */ -class BufferHandler extends AbstractHandler +class BufferHandler extends \WPMailSMTP\Vendor\Monolog\Handler\AbstractHandler { protected $handler; protected $bufferSize = 0; protected $bufferLimit; protected $flushOnOverflow; protected $buffer = array(); - protected $initialized = false; - + protected $initialized = \false; /** * @param HandlerInterface $handler Handler. * @param int $bufferLimit How many entries should be buffered at most, beyond that the oldest items are removed from the buffer. @@ -39,67 +36,57 @@ class BufferHandler extends AbstractHandler * @param bool $bubble Whether the messages that are handled can bubble up the stack or not * @param bool $flushOnOverflow If true, the buffer is flushed when the max size has been reached, by default oldest entries are discarded */ - public function __construct(HandlerInterface $handler, $bufferLimit = 0, $level = Logger::DEBUG, $bubble = true, $flushOnOverflow = false) + public function __construct(\WPMailSMTP\Vendor\Monolog\Handler\HandlerInterface $handler, $bufferLimit = 0, $level = \WPMailSMTP\Vendor\Monolog\Logger::DEBUG, $bubble = \true, $flushOnOverflow = \false) { parent::__construct($level, $bubble); $this->handler = $handler; $this->bufferLimit = (int) $bufferLimit; $this->flushOnOverflow = $flushOnOverflow; } - /** * {@inheritdoc} */ public function handle(array $record) { if ($record['level'] < $this->level) { - return false; + return \false; } - if (!$this->initialized) { // __destructor() doesn't get called on Fatal errors - register_shutdown_function(array($this, 'close')); - $this->initialized = true; + \register_shutdown_function(array($this, 'close')); + $this->initialized = \true; } - if ($this->bufferLimit > 0 && $this->bufferSize === $this->bufferLimit) { if ($this->flushOnOverflow) { $this->flush(); } else { - array_shift($this->buffer); + \array_shift($this->buffer); $this->bufferSize--; } } - if ($this->processors) { foreach ($this->processors as $processor) { - $record = call_user_func($processor, $record); + $record = \call_user_func($processor, $record); } } - $this->buffer[] = $record; $this->bufferSize++; - - return false === $this->bubble; + return \false === $this->bubble; } - public function flush() { if ($this->bufferSize === 0) { return; } - $this->handler->handleBatch($this->buffer); $this->clear(); } - public function __destruct() { // suppress the parent behavior since we already have register_shutdown_function() // to call close(), and the reference contained there will prevent this from being // GC'd until the end of the request } - /** * {@inheritdoc} */ @@ -107,7 +94,6 @@ class BufferHandler extends AbstractHandler { $this->flush(); } - /** * Clears the buffer without flushing any messages down to the wrapped handler. */ @@ -116,28 +102,22 @@ class BufferHandler extends AbstractHandler $this->bufferSize = 0; $this->buffer = array(); } - public function reset() { $this->flush(); - parent::reset(); - - if ($this->handler instanceof ResettableInterface) { + if ($this->handler instanceof \WPMailSMTP\Vendor\Monolog\ResettableInterface) { $this->handler->reset(); } } - /** * {@inheritdoc} */ - public function setFormatter(FormatterInterface $formatter) + public function setFormatter(\WPMailSMTP\Vendor\Monolog\Formatter\FormatterInterface $formatter) { $this->handler->setFormatter($formatter); - return $this; } - /** * {@inheritdoc} */ diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/ChromePHPHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/ChromePHPHandler.php similarity index 63% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/ChromePHPHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/ChromePHPHandler.php index 47120e5..6d195dc 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/ChromePHPHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/ChromePHPHandler.php @@ -8,13 +8,11 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler; -namespace Monolog\Handler; - -use Monolog\Formatter\ChromePHPFormatter; -use Monolog\Logger; -use Monolog\Utils; - +use WPMailSMTP\Vendor\Monolog\Formatter\ChromePHPFormatter; +use WPMailSMTP\Vendor\Monolog\Logger; +use WPMailSMTP\Vendor\Monolog\Utils; /** * Handler sending logs to the ChromePHP extension (http://www.chromephp.com/) * @@ -22,25 +20,21 @@ use Monolog\Utils; * * @author Christophe Coevoet */ -class ChromePHPHandler extends AbstractProcessingHandler +class ChromePHPHandler extends \WPMailSMTP\Vendor\Monolog\Handler\AbstractProcessingHandler { /** * Version of the extension */ const VERSION = '4.0'; - /** * Header name */ const HEADER_NAME = 'X-ChromeLogger-Data'; - /** * Regular expression to detect supported browsers (matches any Chrome, or Firefox 43+) */ - const USER_AGENT_REGEX = '{\b(?:Chrome/\d+(?:\.\d+)*|HeadlessChrome|Firefox/(?:4[3-9]|[5-9]\d|\d{3,})(?:\.\d)*)\b}'; - - protected static $initialized = false; - + const USER_AGENT_REGEX = '{\\b(?:Chrome/\\d+(?:\\.\\d+)*|HeadlessChrome|Firefox/(?:4[3-9]|[5-9]\\d|\\d{3,})(?:\\.\\d)*)\\b}'; + protected static $initialized = \false; /** * Tracks whether we sent too much data * @@ -48,57 +42,45 @@ class ChromePHPHandler extends AbstractProcessingHandler * * @var bool */ - protected static $overflowed = false; - - protected static $json = array( - 'version' => self::VERSION, - 'columns' => array('label', 'log', 'backtrace', 'type'), - 'rows' => array(), - ); - - protected static $sendHeaders = true; - + protected static $overflowed = \false; + protected static $json = array('version' => self::VERSION, 'columns' => array('label', 'log', 'backtrace', 'type'), 'rows' => array()); + protected static $sendHeaders = \true; /** * @param int $level The minimum logging level at which this handler will be triggered * @param bool $bubble Whether the messages that are handled can bubble up the stack or not */ - public function __construct($level = Logger::DEBUG, $bubble = true) + public function __construct($level = \WPMailSMTP\Vendor\Monolog\Logger::DEBUG, $bubble = \true) { parent::__construct($level, $bubble); - if (!function_exists('json_encode')) { + if (!\function_exists('json_encode')) { throw new \RuntimeException('PHP\'s json extension is required to use Monolog\'s ChromePHPHandler'); } } - /** * {@inheritdoc} */ public function handleBatch(array $records) { $messages = array(); - foreach ($records as $record) { if ($record['level'] < $this->level) { continue; } $messages[] = $this->processRecord($record); } - if (!empty($messages)) { $messages = $this->getFormatter()->formatBatch($messages); - self::$json['rows'] = array_merge(self::$json['rows'], $messages); + self::$json['rows'] = \array_merge(self::$json['rows'], $messages); $this->send(); } } - /** * {@inheritDoc} */ protected function getDefaultFormatter() { - return new ChromePHPFormatter(); + return new \WPMailSMTP\Vendor\Monolog\Formatter\ChromePHPFormatter(); } - /** * Creates & sends header for a record * @@ -109,10 +91,8 @@ class ChromePHPHandler extends AbstractProcessingHandler protected function write(array $record) { self::$json['rows'][] = $record['formatted']; - $this->send(); } - /** * Sends the log header * @@ -123,42 +103,27 @@ class ChromePHPHandler extends AbstractProcessingHandler if (self::$overflowed || !self::$sendHeaders) { return; } - if (!self::$initialized) { - self::$initialized = true; - + self::$initialized = \true; self::$sendHeaders = $this->headersAccepted(); if (!self::$sendHeaders) { return; } - self::$json['request_uri'] = isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : ''; } - - $json = Utils::jsonEncode(self::$json, null, true); - $data = base64_encode(utf8_encode($json)); - if (strlen($data) > 3 * 1024) { - self::$overflowed = true; - - $record = array( - 'message' => 'Incomplete logs, chrome header size limit reached', - 'context' => array(), - 'level' => Logger::WARNING, - 'level_name' => Logger::getLevelName(Logger::WARNING), - 'channel' => 'monolog', - 'datetime' => new \DateTime(), - 'extra' => array(), - ); - self::$json['rows'][count(self::$json['rows']) - 1] = $this->getFormatter()->format($record); - $json = Utils::jsonEncode(self::$json, null, true); - $data = base64_encode(utf8_encode($json)); + $json = \WPMailSMTP\Vendor\Monolog\Utils::jsonEncode(self::$json, null, \true); + $data = \base64_encode(\utf8_encode($json)); + if (\strlen($data) > 3 * 1024) { + self::$overflowed = \true; + $record = array('message' => 'Incomplete logs, chrome header size limit reached', 'context' => array(), 'level' => \WPMailSMTP\Vendor\Monolog\Logger::WARNING, 'level_name' => \WPMailSMTP\Vendor\Monolog\Logger::getLevelName(\WPMailSMTP\Vendor\Monolog\Logger::WARNING), 'channel' => 'monolog', 'datetime' => new \DateTime(), 'extra' => array()); + self::$json['rows'][\count(self::$json['rows']) - 1] = $this->getFormatter()->format($record); + $json = \WPMailSMTP\Vendor\Monolog\Utils::jsonEncode(self::$json, null, \true); + $data = \base64_encode(\utf8_encode($json)); } - - if (trim($data) !== '') { + if (\trim($data) !== '') { $this->sendHeader(self::HEADER_NAME, $data); } } - /** * Send header string to the client * @@ -167,11 +132,10 @@ class ChromePHPHandler extends AbstractProcessingHandler */ protected function sendHeader($header, $content) { - if (!headers_sent() && self::$sendHeaders) { - header(sprintf('%s: %s', $header, $content)); + if (!\headers_sent() && self::$sendHeaders) { + \header(\sprintf('%s: %s', $header, $content)); } } - /** * Verifies if the headers are accepted by the current user agent * @@ -180,33 +144,28 @@ class ChromePHPHandler extends AbstractProcessingHandler protected function headersAccepted() { if (empty($_SERVER['HTTP_USER_AGENT'])) { - return false; + return \false; } - - return preg_match(self::USER_AGENT_REGEX, $_SERVER['HTTP_USER_AGENT']); + return \preg_match(self::USER_AGENT_REGEX, $_SERVER['HTTP_USER_AGENT']); } - /** * BC getter for the sendHeaders property that has been made static */ public function __get($property) { if ('sendHeaders' !== $property) { - throw new \InvalidArgumentException('Undefined property '.$property); + throw new \InvalidArgumentException('Undefined property ' . $property); } - return static::$sendHeaders; } - /** * BC setter for the sendHeaders property that has been made static */ public function __set($property, $value) { if ('sendHeaders' !== $property) { - throw new \InvalidArgumentException('Undefined property '.$property); + throw new \InvalidArgumentException('Undefined property ' . $property); } - static::$sendHeaders = $value; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/CouchDBHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/CouchDBHandler.php new file mode 100644 index 0000000..243e7d5 --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/CouchDBHandler.php @@ -0,0 +1,50 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ +namespace WPMailSMTP\Vendor\Monolog\Handler; + +use WPMailSMTP\Vendor\Monolog\Formatter\JsonFormatter; +use WPMailSMTP\Vendor\Monolog\Logger; +/** + * CouchDB handler + * + * @author Markus Bachmann + */ +class CouchDBHandler extends \WPMailSMTP\Vendor\Monolog\Handler\AbstractProcessingHandler +{ + private $options; + public function __construct(array $options = array(), $level = \WPMailSMTP\Vendor\Monolog\Logger::DEBUG, $bubble = \true) + { + $this->options = \array_merge(array('host' => 'localhost', 'port' => 5984, 'dbname' => 'logger', 'username' => null, 'password' => null), $options); + parent::__construct($level, $bubble); + } + /** + * {@inheritDoc} + */ + protected function write(array $record) + { + $basicAuth = null; + if ($this->options['username']) { + $basicAuth = \sprintf('%s:%s@', $this->options['username'], $this->options['password']); + } + $url = 'http://' . $basicAuth . $this->options['host'] . ':' . $this->options['port'] . '/' . $this->options['dbname']; + $context = \stream_context_create(array('http' => array('method' => 'POST', 'content' => $record['formatted'], 'ignore_errors' => \true, 'max_redirects' => 0, 'header' => 'Content-type: application/json'))); + if (\false === @\file_get_contents($url, null, $context)) { + throw new \RuntimeException(\sprintf('Could not connect to %s', $url)); + } + } + /** + * {@inheritDoc} + */ + protected function getDefaultFormatter() + { + return new \WPMailSMTP\Vendor\Monolog\Formatter\JsonFormatter(\WPMailSMTP\Vendor\Monolog\Formatter\JsonFormatter::BATCH_MODE_JSON, \false); + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/CubeHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/CubeHandler.php similarity index 59% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/CubeHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/CubeHandler.php index 44928ef..f63a602 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/CubeHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/CubeHandler.php @@ -8,19 +8,17 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler; -namespace Monolog\Handler; - -use Monolog\Logger; -use Monolog\Utils; - +use WPMailSMTP\Vendor\Monolog\Logger; +use WPMailSMTP\Vendor\Monolog\Utils; /** * Logs to Cube. * * @link http://square.github.com/cube/ * @author Wan Chen */ -class CubeHandler extends AbstractProcessingHandler +class CubeHandler extends \WPMailSMTP\Vendor\Monolog\Handler\AbstractProcessingHandler { private $udpConnection; private $httpConnection; @@ -28,7 +26,6 @@ class CubeHandler extends AbstractProcessingHandler private $host; private $port; private $acceptedSchemes = array('http', 'udp'); - /** * Create a Cube handler * @@ -36,27 +33,20 @@ class CubeHandler extends AbstractProcessingHandler * A valid url must consist of three parts : protocol://host:port * Only valid protocols used by Cube are http and udp */ - public function __construct($url, $level = Logger::DEBUG, $bubble = true) + public function __construct($url, $level = \WPMailSMTP\Vendor\Monolog\Logger::DEBUG, $bubble = \true) { - $urlInfo = parse_url($url); - + $urlInfo = \parse_url($url); if (!isset($urlInfo['scheme'], $urlInfo['host'], $urlInfo['port'])) { - throw new \UnexpectedValueException('URL "'.$url.'" is not valid'); + throw new \UnexpectedValueException('URL "' . $url . '" is not valid'); } - - if (!in_array($urlInfo['scheme'], $this->acceptedSchemes)) { - throw new \UnexpectedValueException( - 'Invalid protocol (' . $urlInfo['scheme'] . ').' - . ' Valid options are ' . implode(', ', $this->acceptedSchemes)); + if (!\in_array($urlInfo['scheme'], $this->acceptedSchemes)) { + throw new \UnexpectedValueException('Invalid protocol (' . $urlInfo['scheme'] . ').' . ' Valid options are ' . \implode(', ', $this->acceptedSchemes)); } - $this->scheme = $urlInfo['scheme']; $this->host = $urlInfo['host']; $this->port = $urlInfo['port']; - parent::__construct($level, $bubble); } - /** * Establish a connection to an UDP socket * @@ -65,88 +55,69 @@ class CubeHandler extends AbstractProcessingHandler */ protected function connectUdp() { - if (!extension_loaded('sockets')) { - throw new MissingExtensionException('The sockets extension is required to use udp URLs with the CubeHandler'); + if (!\extension_loaded('sockets')) { + throw new \WPMailSMTP\Vendor\Monolog\Handler\MissingExtensionException('The sockets extension is required to use udp URLs with the CubeHandler'); } - - $this->udpConnection = socket_create(AF_INET, SOCK_DGRAM, 0); + $this->udpConnection = \socket_create(\AF_INET, \SOCK_DGRAM, 0); if (!$this->udpConnection) { throw new \LogicException('Unable to create a socket'); } - - if (!socket_connect($this->udpConnection, $this->host, $this->port)) { + if (!\socket_connect($this->udpConnection, $this->host, $this->port)) { throw new \LogicException('Unable to connect to the socket at ' . $this->host . ':' . $this->port); } } - /** * Establish a connection to a http server * @throws \LogicException when no curl extension */ protected function connectHttp() { - if (!extension_loaded('curl')) { + if (!\extension_loaded('curl')) { throw new \LogicException('The curl extension is needed to use http URLs with the CubeHandler'); } - - $this->httpConnection = curl_init('http://'.$this->host.':'.$this->port.'/1.0/event/put'); - + $this->httpConnection = \curl_init('http://' . $this->host . ':' . $this->port . '/1.0/event/put'); if (!$this->httpConnection) { throw new \LogicException('Unable to connect to ' . $this->host . ':' . $this->port); } - - curl_setopt($this->httpConnection, CURLOPT_CUSTOMREQUEST, "POST"); - curl_setopt($this->httpConnection, CURLOPT_RETURNTRANSFER, true); + \curl_setopt($this->httpConnection, \CURLOPT_CUSTOMREQUEST, "POST"); + \curl_setopt($this->httpConnection, \CURLOPT_RETURNTRANSFER, \true); } - /** * {@inheritdoc} */ protected function write(array $record) { $date = $record['datetime']; - - $data = array('time' => $date->format('Y-m-d\TH:i:s.uO')); + $data = array('time' => $date->format('Y-m-d\\TH:i:s.uO')); unset($record['datetime']); - if (isset($record['context']['type'])) { $data['type'] = $record['context']['type']; unset($record['context']['type']); } else { $data['type'] = $record['channel']; } - $data['data'] = $record['context']; $data['data']['level'] = $record['level']; - if ($this->scheme === 'http') { - $this->writeHttp(Utils::jsonEncode($data)); + $this->writeHttp(\WPMailSMTP\Vendor\Monolog\Utils::jsonEncode($data)); } else { - $this->writeUdp(Utils::jsonEncode($data)); + $this->writeUdp(\WPMailSMTP\Vendor\Monolog\Utils::jsonEncode($data)); } } - private function writeUdp($data) { if (!$this->udpConnection) { $this->connectUdp(); } - - socket_send($this->udpConnection, $data, strlen($data), 0); + \socket_send($this->udpConnection, $data, \strlen($data), 0); } - private function writeHttp($data) { if (!$this->httpConnection) { $this->connectHttp(); } - - curl_setopt($this->httpConnection, CURLOPT_POSTFIELDS, '['.$data.']'); - curl_setopt($this->httpConnection, CURLOPT_HTTPHEADER, array( - 'Content-Type: application/json', - 'Content-Length: ' . strlen('['.$data.']'), - )); - - Curl\Util::execute($this->httpConnection, 5, false); + \curl_setopt($this->httpConnection, \CURLOPT_POSTFIELDS, '[' . $data . ']'); + \curl_setopt($this->httpConnection, \CURLOPT_HTTPHEADER, array('Content-Type: application/json', 'Content-Length: ' . \strlen('[' . $data . ']'))); + \WPMailSMTP\Vendor\Monolog\Handler\Curl\Util::execute($this->httpConnection, 5, \false); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/Curl/Util.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/Curl/Util.php new file mode 100644 index 0000000..8d4353d --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/Curl/Util.php @@ -0,0 +1,42 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ +namespace WPMailSMTP\Vendor\Monolog\Handler\Curl; + +class Util +{ + private static $retriableErrorCodes = array(\CURLE_COULDNT_RESOLVE_HOST, \CURLE_COULDNT_CONNECT, \CURLE_HTTP_NOT_FOUND, \CURLE_READ_ERROR, \CURLE_OPERATION_TIMEOUTED, \CURLE_HTTP_POST_ERROR, \CURLE_SSL_CONNECT_ERROR); + /** + * Executes a CURL request with optional retries and exception on failure + * + * @param resource $ch curl handler + * @throws \RuntimeException + */ + public static function execute($ch, $retries = 5, $closeAfterDone = \true) + { + while ($retries--) { + if (\curl_exec($ch) === \false) { + $curlErrno = \curl_errno($ch); + if (\false === \in_array($curlErrno, self::$retriableErrorCodes, \true) || !$retries) { + $curlError = \curl_error($ch); + if ($closeAfterDone) { + \curl_close($ch); + } + throw new \RuntimeException(\sprintf('Curl error (code %s): %s', $curlErrno, $curlError)); + } + continue; + } + if ($closeAfterDone) { + \curl_close($ch); + } + break; + } + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/DeduplicationHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/DeduplicationHandler.php similarity index 62% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/DeduplicationHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/DeduplicationHandler.php index 35b55cb..7aa8046 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/DeduplicationHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/DeduplicationHandler.php @@ -8,11 +8,9 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler; -namespace Monolog\Handler; - -use Monolog\Logger; - +use WPMailSMTP\Vendor\Monolog\Logger; /** * Simple handler wrapper that deduplicates log records across multiple requests * @@ -33,28 +31,24 @@ use Monolog\Logger; * * @author Jordi Boggiano */ -class DeduplicationHandler extends BufferHandler +class DeduplicationHandler extends \WPMailSMTP\Vendor\Monolog\Handler\BufferHandler { /** * @var string */ protected $deduplicationStore; - /** * @var int */ protected $deduplicationLevel; - /** * @var int */ protected $time; - /** * @var bool */ - private $gc = false; - + private $gc = \false; /** * @param HandlerInterface $handler Handler. * @param string $deduplicationStore The file/path where the deduplication log should be kept @@ -62,108 +56,85 @@ class DeduplicationHandler extends BufferHandler * @param int $time The period (in seconds) during which duplicate entries should be suppressed after a given log is sent through * @param bool $bubble Whether the messages that are handled can bubble up the stack or not */ - public function __construct(HandlerInterface $handler, $deduplicationStore = null, $deduplicationLevel = Logger::ERROR, $time = 60, $bubble = true) + public function __construct(\WPMailSMTP\Vendor\Monolog\Handler\HandlerInterface $handler, $deduplicationStore = null, $deduplicationLevel = \WPMailSMTP\Vendor\Monolog\Logger::ERROR, $time = 60, $bubble = \true) { - parent::__construct($handler, 0, Logger::DEBUG, $bubble, false); - - $this->deduplicationStore = $deduplicationStore === null ? sys_get_temp_dir() . '/monolog-dedup-' . substr(md5(__FILE__), 0, 20) .'.log' : $deduplicationStore; - $this->deduplicationLevel = Logger::toMonologLevel($deduplicationLevel); + parent::__construct($handler, 0, \WPMailSMTP\Vendor\Monolog\Logger::DEBUG, $bubble, \false); + $this->deduplicationStore = $deduplicationStore === null ? \sys_get_temp_dir() . '/monolog-dedup-' . \substr(\md5(__FILE__), 0, 20) . '.log' : $deduplicationStore; + $this->deduplicationLevel = \WPMailSMTP\Vendor\Monolog\Logger::toMonologLevel($deduplicationLevel); $this->time = $time; } - public function flush() { if ($this->bufferSize === 0) { return; } - $passthru = null; - foreach ($this->buffer as $record) { if ($record['level'] >= $this->deduplicationLevel) { - $passthru = $passthru || !$this->isDuplicate($record); if ($passthru) { $this->appendRecord($record); } } } - // default of null is valid as well as if no record matches duplicationLevel we just pass through - if ($passthru === true || $passthru === null) { + if ($passthru === \true || $passthru === null) { $this->handler->handleBatch($this->buffer); } - $this->clear(); - if ($this->gc) { $this->collectLogs(); } } - private function isDuplicate(array $record) { - if (!file_exists($this->deduplicationStore)) { - return false; + if (!\file_exists($this->deduplicationStore)) { + return \false; } - - $store = file($this->deduplicationStore, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); - if (!is_array($store)) { - return false; + $store = \file($this->deduplicationStore, \FILE_IGNORE_NEW_LINES | \FILE_SKIP_EMPTY_LINES); + if (!\is_array($store)) { + return \false; } - - $yesterday = time() - 86400; + $yesterday = \time() - 86400; $timestampValidity = $record['datetime']->getTimestamp() - $this->time; - $expectedMessage = preg_replace('{[\r\n].*}', '', $record['message']); - - for ($i = count($store) - 1; $i >= 0; $i--) { - list($timestamp, $level, $message) = explode(':', $store[$i], 3); - + $expectedMessage = \preg_replace('{[\\r\\n].*}', '', $record['message']); + for ($i = \count($store) - 1; $i >= 0; $i--) { + list($timestamp, $level, $message) = \explode(':', $store[$i], 3); if ($level === $record['level_name'] && $message === $expectedMessage && $timestamp > $timestampValidity) { - return true; + return \true; } - if ($timestamp < $yesterday) { - $this->gc = true; + $this->gc = \true; } } - - return false; + return \false; } - private function collectLogs() { - if (!file_exists($this->deduplicationStore)) { - return false; + if (!\file_exists($this->deduplicationStore)) { + return \false; } - - $handle = fopen($this->deduplicationStore, 'rw+'); - flock($handle, LOCK_EX); + $handle = \fopen($this->deduplicationStore, 'rw+'); + \flock($handle, \LOCK_EX); $validLogs = array(); - - $timestampValidity = time() - $this->time; - - while (!feof($handle)) { - $log = fgets($handle); - if (substr($log, 0, 10) >= $timestampValidity) { + $timestampValidity = \time() - $this->time; + while (!\feof($handle)) { + $log = \fgets($handle); + if (\substr($log, 0, 10) >= $timestampValidity) { $validLogs[] = $log; } } - - ftruncate($handle, 0); - rewind($handle); + \ftruncate($handle, 0); + \rewind($handle); foreach ($validLogs as $log) { - fwrite($handle, $log); + \fwrite($handle, $log); } - - flock($handle, LOCK_UN); - fclose($handle); - - $this->gc = false; + \flock($handle, \LOCK_UN); + \fclose($handle); + $this->gc = \false; } - private function appendRecord(array $record) { - file_put_contents($this->deduplicationStore, $record['datetime']->getTimestamp() . ':' . $record['level_name'] . ':' . preg_replace('{[\r\n].*}', '', $record['message']) . "\n", FILE_APPEND); + \file_put_contents($this->deduplicationStore, $record['datetime']->getTimestamp() . ':' . $record['level_name'] . ':' . \preg_replace('{[\\r\\n].*}', '', $record['message']) . "\n", \FILE_APPEND); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/DoctrineCouchDBHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/DoctrineCouchDBHandler.php similarity index 55% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/DoctrineCouchDBHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/DoctrineCouchDBHandler.php index b91ffec..b72f6a4 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/DoctrineCouchDBHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/DoctrineCouchDBHandler.php @@ -8,28 +8,24 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler; -namespace Monolog\Handler; - -use Monolog\Logger; -use Monolog\Formatter\NormalizerFormatter; -use Doctrine\CouchDB\CouchDBClient; - +use WPMailSMTP\Vendor\Monolog\Logger; +use WPMailSMTP\Vendor\Monolog\Formatter\NormalizerFormatter; +use WPMailSMTP\Vendor\Doctrine\CouchDB\CouchDBClient; /** * CouchDB handler for Doctrine CouchDB ODM * * @author Markus Bachmann */ -class DoctrineCouchDBHandler extends AbstractProcessingHandler +class DoctrineCouchDBHandler extends \WPMailSMTP\Vendor\Monolog\Handler\AbstractProcessingHandler { private $client; - - public function __construct(CouchDBClient $client, $level = Logger::DEBUG, $bubble = true) + public function __construct(\WPMailSMTP\Vendor\Doctrine\CouchDB\CouchDBClient $client, $level = \WPMailSMTP\Vendor\Monolog\Logger::DEBUG, $bubble = \true) { $this->client = $client; parent::__construct($level, $bubble); } - /** * {@inheritDoc} */ @@ -37,9 +33,8 @@ class DoctrineCouchDBHandler extends AbstractProcessingHandler { $this->client->postDocument($record['formatted']); } - protected function getDefaultFormatter() { - return new NormalizerFormatter; + return new \WPMailSMTP\Vendor\Monolog\Formatter\NormalizerFormatter(); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/DynamoDbHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/DynamoDbHandler.php similarity index 60% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/DynamoDbHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/DynamoDbHandler.php index 237b71f..71e8ad7 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/DynamoDbHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/DynamoDbHandler.php @@ -8,66 +8,56 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler; -namespace Monolog\Handler; - -use Aws\Sdk; -use Aws\DynamoDb\DynamoDbClient; -use Aws\DynamoDb\Marshaler; -use Monolog\Formatter\ScalarFormatter; -use Monolog\Logger; - +use WPMailSMTP\Vendor\Aws\Sdk; +use WPMailSMTP\Vendor\Aws\DynamoDb\DynamoDbClient; +use WPMailSMTP\Vendor\Aws\DynamoDb\Marshaler; +use WPMailSMTP\Vendor\Monolog\Formatter\ScalarFormatter; +use WPMailSMTP\Vendor\Monolog\Logger; /** * Amazon DynamoDB handler (http://aws.amazon.com/dynamodb/) * * @link https://github.com/aws/aws-sdk-php/ * @author Andrew Lawson */ -class DynamoDbHandler extends AbstractProcessingHandler +class DynamoDbHandler extends \WPMailSMTP\Vendor\Monolog\Handler\AbstractProcessingHandler { - const DATE_FORMAT = 'Y-m-d\TH:i:s.uO'; - + const DATE_FORMAT = 'Y-m-d\\TH:i:s.uO'; /** * @var DynamoDbClient */ protected $client; - /** * @var string */ protected $table; - /** * @var int */ protected $version; - /** * @var Marshaler */ protected $marshaler; - /** * @param DynamoDbClient $client * @param string $table * @param int $level * @param bool $bubble */ - public function __construct(DynamoDbClient $client, $table, $level = Logger::DEBUG, $bubble = true) + public function __construct(\WPMailSMTP\Vendor\Aws\DynamoDb\DynamoDbClient $client, $table, $level = \WPMailSMTP\Vendor\Monolog\Logger::DEBUG, $bubble = \true) { - if (defined('Aws\Sdk::VERSION') && version_compare(Sdk::VERSION, '3.0', '>=')) { + if (\defined('Aws\\Sdk::VERSION') && \version_compare(\WPMailSMTP\Vendor\Aws\Sdk::VERSION, '3.0', '>=')) { $this->version = 3; - $this->marshaler = new Marshaler; + $this->marshaler = new \WPMailSMTP\Vendor\Aws\DynamoDb\Marshaler(); } else { $this->version = 2; } - $this->client = $client; $this->table = $table; - parent::__construct($level, $bubble); } - /** * {@inheritdoc} */ @@ -79,29 +69,23 @@ class DynamoDbHandler extends AbstractProcessingHandler } else { $formatted = $this->client->formatAttributes($filtered); } - - $this->client->putItem(array( - 'TableName' => $this->table, - 'Item' => $formatted, - )); + $this->client->putItem(array('TableName' => $this->table, 'Item' => $formatted)); } - /** * @param array $record * @return array */ protected function filterEmptyFields(array $record) { - return array_filter($record, function ($value) { - return !empty($value) || false === $value || 0 === $value; + return \array_filter($record, function ($value) { + return !empty($value) || \false === $value || 0 === $value; }); } - /** * {@inheritdoc} */ protected function getDefaultFormatter() { - return new ScalarFormatter(self::DATE_FORMAT); + return new \WPMailSMTP\Vendor\Monolog\Formatter\ScalarFormatter(self::DATE_FORMAT); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/ElasticSearchHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/ElasticSearchHandler.php similarity index 66% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/ElasticSearchHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/ElasticSearchHandler.php index bb0f83e..82d8f57 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/ElasticSearchHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/ElasticSearchHandler.php @@ -8,15 +8,13 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler; -namespace Monolog\Handler; - -use Monolog\Formatter\FormatterInterface; -use Monolog\Formatter\ElasticaFormatter; -use Monolog\Logger; -use Elastica\Client; -use Elastica\Exception\ExceptionInterface; - +use WPMailSMTP\Vendor\Monolog\Formatter\FormatterInterface; +use WPMailSMTP\Vendor\Monolog\Formatter\ElasticaFormatter; +use WPMailSMTP\Vendor\Monolog\Logger; +use WPMailSMTP\Vendor\Elastica\Client; +use WPMailSMTP\Vendor\Elastica\Exception\ExceptionInterface; /** * Elastic Search handler * @@ -33,38 +31,34 @@ use Elastica\Exception\ExceptionInterface; * * @author Jelle Vink */ -class ElasticSearchHandler extends AbstractProcessingHandler +class ElasticSearchHandler extends \WPMailSMTP\Vendor\Monolog\Handler\AbstractProcessingHandler { /** * @var Client */ protected $client; - /** * @var array Handler config options */ protected $options = array(); - /** * @param Client $client Elastica Client object * @param array $options Handler configuration * @param int $level The minimum logging level at which this handler will be triggered * @param bool $bubble Whether the messages that are handled can bubble up the stack or not */ - public function __construct(Client $client, array $options = array(), $level = Logger::DEBUG, $bubble = true) + public function __construct(\WPMailSMTP\Vendor\Elastica\Client $client, array $options = array(), $level = \WPMailSMTP\Vendor\Monolog\Logger::DEBUG, $bubble = \true) { parent::__construct($level, $bubble); $this->client = $client; - $this->options = array_merge( - array( - 'index' => 'monolog', // Elastic index name - 'type' => 'record', // Elastic document type - 'ignore_error' => false, // Suppress Elastica exceptions - ), - $options - ); + $this->options = \array_merge(array( + 'index' => 'monolog', + // Elastic index name + 'type' => 'record', + // Elastic document type + 'ignore_error' => \false, + ), $options); } - /** * {@inheritDoc} */ @@ -72,18 +66,16 @@ class ElasticSearchHandler extends AbstractProcessingHandler { $this->bulkSend(array($record['formatted'])); } - /** * {@inheritdoc} */ - public function setFormatter(FormatterInterface $formatter) + public function setFormatter(\WPMailSMTP\Vendor\Monolog\Formatter\FormatterInterface $formatter) { - if ($formatter instanceof ElasticaFormatter) { + if ($formatter instanceof \WPMailSMTP\Vendor\Monolog\Formatter\ElasticaFormatter) { return parent::setFormatter($formatter); } throw new \InvalidArgumentException('ElasticSearchHandler is only compatible with ElasticaFormatter'); } - /** * Getter options * @return array @@ -92,15 +84,13 @@ class ElasticSearchHandler extends AbstractProcessingHandler { return $this->options; } - /** * {@inheritDoc} */ protected function getDefaultFormatter() { - return new ElasticaFormatter($this->options['index'], $this->options['type']); + return new \WPMailSMTP\Vendor\Monolog\Formatter\ElasticaFormatter($this->options['index'], $this->options['type']); } - /** * {@inheritdoc} */ @@ -109,7 +99,6 @@ class ElasticSearchHandler extends AbstractProcessingHandler $documents = $this->getFormatter()->formatBatch($records); $this->bulkSend($documents); } - /** * Use Elasticsearch bulk API to send list of documents * @param array $documents @@ -119,7 +108,7 @@ class ElasticSearchHandler extends AbstractProcessingHandler { try { $this->client->addDocuments($documents); - } catch (ExceptionInterface $e) { + } catch (\WPMailSMTP\Vendor\Elastica\Exception\ExceptionInterface $e) { if (!$this->options['ignore_error']) { throw new \RuntimeException("Error sending messages to Elasticsearch", 0, $e); } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/ErrorLogHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/ErrorLogHandler.php similarity index 62% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/ErrorLogHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/ErrorLogHandler.php index b2986b0..9cadc7f 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/ErrorLogHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/ErrorLogHandler.php @@ -8,75 +8,63 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler; -namespace Monolog\Handler; - -use Monolog\Formatter\LineFormatter; -use Monolog\Logger; - +use WPMailSMTP\Vendor\Monolog\Formatter\LineFormatter; +use WPMailSMTP\Vendor\Monolog\Logger; /** * Stores to PHP error_log() handler. * * @author Elan Ruusamäe */ -class ErrorLogHandler extends AbstractProcessingHandler +class ErrorLogHandler extends \WPMailSMTP\Vendor\Monolog\Handler\AbstractProcessingHandler { const OPERATING_SYSTEM = 0; const SAPI = 4; - protected $messageType; protected $expandNewlines; - /** * @param int $messageType Says where the error should go. * @param int $level The minimum logging level at which this handler will be triggered * @param bool $bubble Whether the messages that are handled can bubble up the stack or not * @param bool $expandNewlines If set to true, newlines in the message will be expanded to be take multiple log entries */ - public function __construct($messageType = self::OPERATING_SYSTEM, $level = Logger::DEBUG, $bubble = true, $expandNewlines = false) + public function __construct($messageType = self::OPERATING_SYSTEM, $level = \WPMailSMTP\Vendor\Monolog\Logger::DEBUG, $bubble = \true, $expandNewlines = \false) { parent::__construct($level, $bubble); - - if (false === in_array($messageType, self::getAvailableTypes())) { - $message = sprintf('The given message type "%s" is not supported', print_r($messageType, true)); + if (\false === \in_array($messageType, self::getAvailableTypes())) { + $message = \sprintf('The given message type "%s" is not supported', \print_r($messageType, \true)); throw new \InvalidArgumentException($message); } - $this->messageType = $messageType; $this->expandNewlines = $expandNewlines; } - /** * @return array With all available types */ public static function getAvailableTypes() { - return array( - self::OPERATING_SYSTEM, - self::SAPI, - ); + return array(self::OPERATING_SYSTEM, self::SAPI); } - /** * {@inheritDoc} */ protected function getDefaultFormatter() { - return new LineFormatter('[%datetime%] %channel%.%level_name%: %message% %context% %extra%'); + return new \WPMailSMTP\Vendor\Monolog\Formatter\LineFormatter('[%datetime%] %channel%.%level_name%: %message% %context% %extra%'); } - /** * {@inheritdoc} */ protected function write(array $record) { if ($this->expandNewlines) { - $lines = preg_split('{[\r\n]+}', (string) $record['formatted']); + $lines = \preg_split('{[\\r\\n]+}', (string) $record['formatted']); foreach ($lines as $line) { - error_log($line, $this->messageType); + \error_log($line, $this->messageType); } } else { - error_log((string) $record['formatted'], $this->messageType); + \error_log((string) $record['formatted'], $this->messageType); } } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/FilterHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FilterHandler.php similarity index 61% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/FilterHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FilterHandler.php index 949f227..88089c8 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/FilterHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FilterHandler.php @@ -8,12 +8,10 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler; -namespace Monolog\Handler; - -use Monolog\Logger; -use Monolog\Formatter\FormatterInterface; - +use WPMailSMTP\Vendor\Monolog\Logger; +use WPMailSMTP\Vendor\Monolog\Formatter\FormatterInterface; /** * Simple handler wrapper that filters records based on a list of levels * @@ -22,7 +20,7 @@ use Monolog\Formatter\FormatterInterface; * @author Hennadiy Verkh * @author Jordi Boggiano */ -class FilterHandler extends AbstractHandler +class FilterHandler extends \WPMailSMTP\Vendor\Monolog\Handler\AbstractHandler { /** * Handler or factory callable($record, $this) @@ -30,64 +28,57 @@ class FilterHandler extends AbstractHandler * @var callable|\Monolog\Handler\HandlerInterface */ protected $handler; - /** * Minimum level for logs that are passed to handler * * @var int[] */ protected $acceptedLevels; - /** * Whether the messages that are handled can bubble up the stack or not * * @var bool */ protected $bubble; - /** * @param callable|HandlerInterface $handler Handler or factory callable($record|null, $filterHandler). * @param int|array $minLevelOrList A list of levels to accept or a minimum level if maxLevel is provided * @param int $maxLevel Maximum level to accept, only used if $minLevelOrList is not an array * @param bool $bubble Whether the messages that are handled can bubble up the stack or not */ - public function __construct($handler, $minLevelOrList = Logger::DEBUG, $maxLevel = Logger::EMERGENCY, $bubble = true) + public function __construct($handler, $minLevelOrList = \WPMailSMTP\Vendor\Monolog\Logger::DEBUG, $maxLevel = \WPMailSMTP\Vendor\Monolog\Logger::EMERGENCY, $bubble = \true) { - $this->handler = $handler; - $this->bubble = $bubble; + $this->handler = $handler; + $this->bubble = $bubble; $this->setAcceptedLevels($minLevelOrList, $maxLevel); - - if (!$this->handler instanceof HandlerInterface && !is_callable($this->handler)) { - throw new \RuntimeException("The given handler (".json_encode($this->handler).") is not a callable nor a Monolog\Handler\HandlerInterface object"); + if (!$this->handler instanceof \WPMailSMTP\Vendor\Monolog\Handler\HandlerInterface && !\is_callable($this->handler)) { + throw new \RuntimeException("The given handler (" . \json_encode($this->handler) . ") is not a callable nor a WPMailSMTP\\Vendor\\Monolog\\Handler\\HandlerInterface object"); } } - /** * @return array */ public function getAcceptedLevels() { - return array_flip($this->acceptedLevels); + return \array_flip($this->acceptedLevels); } - /** * @param int|string|array $minLevelOrList A list of levels to accept or a minimum level or level name if maxLevel is provided * @param int|string $maxLevel Maximum level or level name to accept, only used if $minLevelOrList is not an array */ - public function setAcceptedLevels($minLevelOrList = Logger::DEBUG, $maxLevel = Logger::EMERGENCY) + public function setAcceptedLevels($minLevelOrList = \WPMailSMTP\Vendor\Monolog\Logger::DEBUG, $maxLevel = \WPMailSMTP\Vendor\Monolog\Logger::EMERGENCY) { - if (is_array($minLevelOrList)) { - $acceptedLevels = array_map('Monolog\Logger::toMonologLevel', $minLevelOrList); + if (\is_array($minLevelOrList)) { + $acceptedLevels = \array_map('WPMailSMTP\\Vendor\\Monolog\\Logger::toMonologLevel', $minLevelOrList); } else { - $minLevelOrList = Logger::toMonologLevel($minLevelOrList); - $maxLevel = Logger::toMonologLevel($maxLevel); - $acceptedLevels = array_values(array_filter(Logger::getLevels(), function ($level) use ($minLevelOrList, $maxLevel) { + $minLevelOrList = \WPMailSMTP\Vendor\Monolog\Logger::toMonologLevel($minLevelOrList); + $maxLevel = \WPMailSMTP\Vendor\Monolog\Logger::toMonologLevel($maxLevel); + $acceptedLevels = \array_values(\array_filter(\WPMailSMTP\Vendor\Monolog\Logger::getLevels(), function ($level) use($minLevelOrList, $maxLevel) { return $level >= $minLevelOrList && $level <= $maxLevel; })); } - $this->acceptedLevels = array_flip($acceptedLevels); + $this->acceptedLevels = \array_flip($acceptedLevels); } - /** * {@inheritdoc} */ @@ -95,27 +86,22 @@ class FilterHandler extends AbstractHandler { return isset($this->acceptedLevels[$record['level']]); } - /** * {@inheritdoc} */ public function handle(array $record) { if (!$this->isHandling($record)) { - return false; + return \false; } - if ($this->processors) { foreach ($this->processors as $processor) { - $record = call_user_func($processor, $record); + $record = \call_user_func($processor, $record); } } - $this->getHandler($record)->handle($record); - - return false === $this->bubble; + return \false === $this->bubble; } - /** * {@inheritdoc} */ @@ -127,12 +113,10 @@ class FilterHandler extends AbstractHandler $filtered[] = $record; } } - - if (count($filtered) > 0) { - $this->getHandler($filtered[count($filtered) - 1])->handleBatch($filtered); + if (\count($filtered) > 0) { + $this->getHandler($filtered[\count($filtered) - 1])->handleBatch($filtered); } } - /** * Return the nested handler * @@ -142,26 +126,22 @@ class FilterHandler extends AbstractHandler */ public function getHandler(array $record = null) { - if (!$this->handler instanceof HandlerInterface) { - $this->handler = call_user_func($this->handler, $record, $this); - if (!$this->handler instanceof HandlerInterface) { + if (!$this->handler instanceof \WPMailSMTP\Vendor\Monolog\Handler\HandlerInterface) { + $this->handler = \call_user_func($this->handler, $record, $this); + if (!$this->handler instanceof \WPMailSMTP\Vendor\Monolog\Handler\HandlerInterface) { throw new \RuntimeException("The factory callable should return a HandlerInterface"); } } - return $this->handler; } - /** * {@inheritdoc} */ - public function setFormatter(FormatterInterface $formatter) + public function setFormatter(\WPMailSMTP\Vendor\Monolog\Formatter\FormatterInterface $formatter) { $this->getHandler()->setFormatter($formatter); - return $this; } - /** * {@inheritdoc} */ diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ActivationStrategyInterface.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FingersCrossed/ActivationStrategyInterface.php similarity index 90% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ActivationStrategyInterface.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FingersCrossed/ActivationStrategyInterface.php index aaca12c..23a6ee9 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ActivationStrategyInterface.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FingersCrossed/ActivationStrategyInterface.php @@ -8,8 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - -namespace Monolog\Handler\FingersCrossed; +namespace WPMailSMTP\Vendor\Monolog\Handler\FingersCrossed; /** * Interface for activation strategies for the FingersCrossedHandler. diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ChannelLevelActivationStrategy.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FingersCrossed/ChannelLevelActivationStrategy.php similarity index 77% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ChannelLevelActivationStrategy.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FingersCrossed/ChannelLevelActivationStrategy.php index 2a2a64d..627d799 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ChannelLevelActivationStrategy.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FingersCrossed/ChannelLevelActivationStrategy.php @@ -8,11 +8,9 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler\FingersCrossed; -namespace Monolog\Handler\FingersCrossed; - -use Monolog\Logger; - +use WPMailSMTP\Vendor\Monolog\Logger; /** * Channel and Error level based monolog activation strategy. Allows to trigger activation * based on level per channel. e.g. trigger activation on level 'ERROR' by default, except @@ -33,27 +31,24 @@ use Monolog\Logger; * * @author Mike Meessen */ -class ChannelLevelActivationStrategy implements ActivationStrategyInterface +class ChannelLevelActivationStrategy implements \WPMailSMTP\Vendor\Monolog\Handler\FingersCrossed\ActivationStrategyInterface { private $defaultActionLevel; private $channelToActionLevel; - /** * @param int $defaultActionLevel The default action level to be used if the record's category doesn't match any * @param array $channelToActionLevel An array that maps channel names to action levels. */ public function __construct($defaultActionLevel, $channelToActionLevel = array()) { - $this->defaultActionLevel = Logger::toMonologLevel($defaultActionLevel); - $this->channelToActionLevel = array_map('Monolog\Logger::toMonologLevel', $channelToActionLevel); + $this->defaultActionLevel = \WPMailSMTP\Vendor\Monolog\Logger::toMonologLevel($defaultActionLevel); + $this->channelToActionLevel = \array_map('WPMailSMTP\\Vendor\\Monolog\\Logger::toMonologLevel', $channelToActionLevel); } - public function isHandlerActivated(array $record) { if (isset($this->channelToActionLevel[$record['channel']])) { return $record['level'] >= $this->channelToActionLevel[$record['channel']]; } - return $record['level'] >= $this->defaultActionLevel; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ErrorLevelActivationStrategy.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FingersCrossed/ErrorLevelActivationStrategy.php similarity index 63% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ErrorLevelActivationStrategy.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FingersCrossed/ErrorLevelActivationStrategy.php index 6e63085..4f9cff8 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ErrorLevelActivationStrategy.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FingersCrossed/ErrorLevelActivationStrategy.php @@ -8,25 +8,21 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler\FingersCrossed; -namespace Monolog\Handler\FingersCrossed; - -use Monolog\Logger; - +use WPMailSMTP\Vendor\Monolog\Logger; /** * Error level based activation strategy. * * @author Johannes M. Schmitt */ -class ErrorLevelActivationStrategy implements ActivationStrategyInterface +class ErrorLevelActivationStrategy implements \WPMailSMTP\Vendor\Monolog\Handler\FingersCrossed\ActivationStrategyInterface { private $actionLevel; - public function __construct($actionLevel) { - $this->actionLevel = Logger::toMonologLevel($actionLevel); + $this->actionLevel = \WPMailSMTP\Vendor\Monolog\Logger::toMonologLevel($actionLevel); } - public function isHandlerActivated(array $record) { return $record['level'] >= $this->actionLevel; diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php similarity index 64% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php index cdabc44..8514dcd 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php @@ -8,15 +8,13 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler; -namespace Monolog\Handler; - -use Monolog\Handler\FingersCrossed\ErrorLevelActivationStrategy; -use Monolog\Handler\FingersCrossed\ActivationStrategyInterface; -use Monolog\Logger; -use Monolog\ResettableInterface; -use Monolog\Formatter\FormatterInterface; - +use WPMailSMTP\Vendor\Monolog\Handler\FingersCrossed\ErrorLevelActivationStrategy; +use WPMailSMTP\Vendor\Monolog\Handler\FingersCrossed\ActivationStrategyInterface; +use WPMailSMTP\Vendor\Monolog\Logger; +use WPMailSMTP\Vendor\Monolog\ResettableInterface; +use WPMailSMTP\Vendor\Monolog\Formatter\FormatterInterface; /** * Buffers all records until a certain level is reached * @@ -29,16 +27,15 @@ use Monolog\Formatter\FormatterInterface; * * @author Jordi Boggiano */ -class FingersCrossedHandler extends AbstractHandler +class FingersCrossedHandler extends \WPMailSMTP\Vendor\Monolog\Handler\AbstractHandler { protected $handler; protected $activationStrategy; - protected $buffering = true; + protected $buffering = \true; protected $bufferSize; protected $buffer = array(); protected $stopBuffering; protected $passthruLevel; - /** * @param callable|HandlerInterface $handler Handler or factory callable($record|null, $fingersCrossedHandler). * @param int|ActivationStrategyInterface $activationStrategy Strategy which determines when this handler takes action @@ -47,52 +44,45 @@ class FingersCrossedHandler extends AbstractHandler * @param bool $stopBuffering Whether the handler should stop buffering after being triggered (default true) * @param int $passthruLevel Minimum level to always flush to handler on close, even if strategy not triggered */ - public function __construct($handler, $activationStrategy = null, $bufferSize = 0, $bubble = true, $stopBuffering = true, $passthruLevel = null) + public function __construct($handler, $activationStrategy = null, $bufferSize = 0, $bubble = \true, $stopBuffering = \true, $passthruLevel = null) { if (null === $activationStrategy) { - $activationStrategy = new ErrorLevelActivationStrategy(Logger::WARNING); + $activationStrategy = new \WPMailSMTP\Vendor\Monolog\Handler\FingersCrossed\ErrorLevelActivationStrategy(\WPMailSMTP\Vendor\Monolog\Logger::WARNING); } - // convert simple int activationStrategy to an object - if (!$activationStrategy instanceof ActivationStrategyInterface) { - $activationStrategy = new ErrorLevelActivationStrategy($activationStrategy); + if (!$activationStrategy instanceof \WPMailSMTP\Vendor\Monolog\Handler\FingersCrossed\ActivationStrategyInterface) { + $activationStrategy = new \WPMailSMTP\Vendor\Monolog\Handler\FingersCrossed\ErrorLevelActivationStrategy($activationStrategy); } - $this->handler = $handler; $this->activationStrategy = $activationStrategy; $this->bufferSize = $bufferSize; $this->bubble = $bubble; $this->stopBuffering = $stopBuffering; - if ($passthruLevel !== null) { - $this->passthruLevel = Logger::toMonologLevel($passthruLevel); + $this->passthruLevel = \WPMailSMTP\Vendor\Monolog\Logger::toMonologLevel($passthruLevel); } - - if (!$this->handler instanceof HandlerInterface && !is_callable($this->handler)) { - throw new \RuntimeException("The given handler (".json_encode($this->handler).") is not a callable nor a Monolog\Handler\HandlerInterface object"); + if (!$this->handler instanceof \WPMailSMTP\Vendor\Monolog\Handler\HandlerInterface && !\is_callable($this->handler)) { + throw new \RuntimeException("The given handler (" . \json_encode($this->handler) . ") is not a callable nor a Monolog\\Handler\\HandlerInterface object"); } } - /** * {@inheritdoc} */ public function isHandling(array $record) { - return true; + return \true; } - /** * Manually activate this logger regardless of the activation strategy */ public function activate() { if ($this->stopBuffering) { - $this->buffering = false; + $this->buffering = \false; } - $this->getHandler(end($this->buffer) ?: null)->handleBatch($this->buffer); + $this->getHandler(\end($this->buffer) ?: null)->handleBatch($this->buffer); $this->buffer = array(); } - /** * {@inheritdoc} */ @@ -100,14 +90,13 @@ class FingersCrossedHandler extends AbstractHandler { if ($this->processors) { foreach ($this->processors as $processor) { - $record = call_user_func($processor, $record); + $record = \call_user_func($processor, $record); } } - if ($this->buffering) { $this->buffer[] = $record; - if ($this->bufferSize > 0 && count($this->buffer) > $this->bufferSize) { - array_shift($this->buffer); + if ($this->bufferSize > 0 && \count($this->buffer) > $this->bufferSize) { + \array_shift($this->buffer); } if ($this->activationStrategy->isHandlerActivated($record)) { $this->activate(); @@ -115,10 +104,8 @@ class FingersCrossedHandler extends AbstractHandler } else { $this->getHandler($record)->handle($record); } - - return false === $this->bubble; + return \false === $this->bubble; } - /** * {@inheritdoc} */ @@ -126,18 +113,14 @@ class FingersCrossedHandler extends AbstractHandler { $this->flushBuffer(); } - public function reset() { $this->flushBuffer(); - parent::reset(); - - if ($this->getHandler() instanceof ResettableInterface) { + if ($this->getHandler() instanceof \WPMailSMTP\Vendor\Monolog\ResettableInterface) { $this->getHandler()->reset(); } } - /** * Clears the buffer without flushing any messages down to the wrapped handler. * @@ -148,7 +131,6 @@ class FingersCrossedHandler extends AbstractHandler $this->buffer = array(); $this->reset(); } - /** * Resets the state of the handler. Stops forwarding records to the wrapped handler. */ @@ -156,18 +138,16 @@ class FingersCrossedHandler extends AbstractHandler { if (null !== $this->passthruLevel) { $level = $this->passthruLevel; - $this->buffer = array_filter($this->buffer, function ($record) use ($level) { + $this->buffer = \array_filter($this->buffer, function ($record) use($level) { return $record['level'] >= $level; }); - if (count($this->buffer) > 0) { - $this->getHandler(end($this->buffer) ?: null)->handleBatch($this->buffer); + if (\count($this->buffer) > 0) { + $this->getHandler(\end($this->buffer) ?: null)->handleBatch($this->buffer); } } - $this->buffer = array(); - $this->buffering = true; + $this->buffering = \true; } - /** * Return the nested handler * @@ -177,26 +157,22 @@ class FingersCrossedHandler extends AbstractHandler */ public function getHandler(array $record = null) { - if (!$this->handler instanceof HandlerInterface) { - $this->handler = call_user_func($this->handler, $record, $this); - if (!$this->handler instanceof HandlerInterface) { + if (!$this->handler instanceof \WPMailSMTP\Vendor\Monolog\Handler\HandlerInterface) { + $this->handler = \call_user_func($this->handler, $record, $this); + if (!$this->handler instanceof \WPMailSMTP\Vendor\Monolog\Handler\HandlerInterface) { throw new \RuntimeException("The factory callable should return a HandlerInterface"); } } - return $this->handler; } - /** * {@inheritdoc} */ - public function setFormatter(FormatterInterface $formatter) + public function setFormatter(\WPMailSMTP\Vendor\Monolog\Formatter\FormatterInterface $formatter) { $this->getHandler()->setFormatter($formatter); - return $this; } - /** * {@inheritdoc} */ diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/FirePHPHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FirePHPHandler.php similarity index 77% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/FirePHPHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FirePHPHandler.php index c30b184..462c607 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/FirePHPHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FirePHPHandler.php @@ -8,51 +8,42 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler; -namespace Monolog\Handler; - -use Monolog\Formatter\WildfireFormatter; - +use WPMailSMTP\Vendor\Monolog\Formatter\WildfireFormatter; /** * Simple FirePHP Handler (http://www.firephp.org/), which uses the Wildfire protocol. * * @author Eric Clemmons (@ericclemmons) */ -class FirePHPHandler extends AbstractProcessingHandler +class FirePHPHandler extends \WPMailSMTP\Vendor\Monolog\Handler\AbstractProcessingHandler { /** * WildFire JSON header message format */ const PROTOCOL_URI = 'http://meta.wildfirehq.org/Protocol/JsonStream/0.2'; - /** * FirePHP structure for parsing messages & their presentation */ const STRUCTURE_URI = 'http://meta.firephp.org/Wildfire/Structure/FirePHP/FirebugConsole/0.1'; - /** * Must reference a "known" plugin, otherwise headers won't display in FirePHP */ const PLUGIN_URI = 'http://meta.firephp.org/Wildfire/Plugin/FirePHP/Library-FirePHPCore/0.3'; - /** * Header prefix for Wildfire to recognize & parse headers */ const HEADER_PREFIX = 'X-Wf'; - /** * Whether or not Wildfire vendor-specific headers have been generated & sent yet */ - protected static $initialized = false; - + protected static $initialized = \false; /** * Shared static message index between potentially multiple handlers * @var int */ protected static $messageIndex = 1; - - protected static $sendHeaders = true; - + protected static $sendHeaders = \true; /** * Base header creation function used by init headers & record headers * @@ -62,11 +53,9 @@ class FirePHPHandler extends AbstractProcessingHandler */ protected function createHeader(array $meta, $message) { - $header = sprintf('%s-%s', self::HEADER_PREFIX, join('-', $meta)); - + $header = \sprintf('%s-%s', self::HEADER_PREFIX, \join('-', $meta)); return array($header => $message); } - /** * Creates message header from record * @@ -78,20 +67,15 @@ class FirePHPHandler extends AbstractProcessingHandler { // Wildfire is extensible to support multiple protocols & plugins in a single request, // but we're not taking advantage of that (yet), so we're using "1" for simplicity's sake. - return $this->createHeader( - array(1, 1, 1, self::$messageIndex++), - $record['formatted'] - ); + return $this->createHeader(array(1, 1, 1, self::$messageIndex++), $record['formatted']); } - /** * {@inheritDoc} */ protected function getDefaultFormatter() { - return new WildfireFormatter(); + return new \WPMailSMTP\Vendor\Monolog\Formatter\WildfireFormatter(); } - /** * Wildfire initialization headers to enable message parsing * @@ -102,13 +86,8 @@ class FirePHPHandler extends AbstractProcessingHandler protected function getInitHeaders() { // Initial payload consists of required headers for Wildfire - return array_merge( - $this->createHeader(array('Protocol', 1), self::PROTOCOL_URI), - $this->createHeader(array(1, 'Structure', 1), self::STRUCTURE_URI), - $this->createHeader(array(1, 'Plugin', 1), self::PLUGIN_URI) - ); + return \array_merge($this->createHeader(array('Protocol', 1), self::PROTOCOL_URI), $this->createHeader(array(1, 'Structure', 1), self::STRUCTURE_URI), $this->createHeader(array(1, 'Plugin', 1), self::PLUGIN_URI)); } - /** * Send header string to the client * @@ -117,11 +96,10 @@ class FirePHPHandler extends AbstractProcessingHandler */ protected function sendHeader($header, $content) { - if (!headers_sent() && self::$sendHeaders) { - header(sprintf('%s: %s', $header, $content)); + if (!\headers_sent() && self::$sendHeaders) { + \header(\sprintf('%s: %s', $header, $content)); } } - /** * Creates & sends header for a record, ensuring init headers have been sent prior * @@ -134,27 +112,22 @@ class FirePHPHandler extends AbstractProcessingHandler if (!self::$sendHeaders) { return; } - // WildFire-specific headers must be sent prior to any messages if (!self::$initialized) { - self::$initialized = true; - + self::$initialized = \true; self::$sendHeaders = $this->headersAccepted(); if (!self::$sendHeaders) { return; } - foreach ($this->getInitHeaders() as $header => $content) { $this->sendHeader($header, $content); } } - $header = $this->createRecordHeader($record); - if (trim(current($header)) !== '') { - $this->sendHeader(key($header), current($header)); + if (\trim(\current($header)) !== '') { + $this->sendHeader(\key($header), \current($header)); } } - /** * Verifies if the headers are accepted by the current user agent * @@ -162,34 +135,29 @@ class FirePHPHandler extends AbstractProcessingHandler */ protected function headersAccepted() { - if (!empty($_SERVER['HTTP_USER_AGENT']) && preg_match('{\bFirePHP/\d+\.\d+\b}', $_SERVER['HTTP_USER_AGENT'])) { - return true; + if (!empty($_SERVER['HTTP_USER_AGENT']) && \preg_match('{\\bFirePHP/\\d+\\.\\d+\\b}', $_SERVER['HTTP_USER_AGENT'])) { + return \true; } - return isset($_SERVER['HTTP_X_FIREPHP_VERSION']); } - /** * BC getter for the sendHeaders property that has been made static */ public function __get($property) { if ('sendHeaders' !== $property) { - throw new \InvalidArgumentException('Undefined property '.$property); + throw new \InvalidArgumentException('Undefined property ' . $property); } - return static::$sendHeaders; } - /** * BC setter for the sendHeaders property that has been made static */ public function __set($property, $value) { if ('sendHeaders' !== $property) { - throw new \InvalidArgumentException('Undefined property '.$property); + throw new \InvalidArgumentException('Undefined property ' . $property); } - static::$sendHeaders = $value; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/FleepHookHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FleepHookHandler.php similarity index 77% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/FleepHookHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FleepHookHandler.php index c43c013..df78d3e 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/FleepHookHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FleepHookHandler.php @@ -8,12 +8,10 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler; -namespace Monolog\Handler; - -use Monolog\Formatter\LineFormatter; -use Monolog\Logger; - +use WPMailSMTP\Vendor\Monolog\Formatter\LineFormatter; +use WPMailSMTP\Vendor\Monolog\Logger; /** * Sends logs to Fleep.io using Webhook integrations * @@ -22,17 +20,14 @@ use Monolog\Logger; * @see https://fleep.io/integrations/webhooks/ Fleep Webhooks Documentation * @author Ando Roots */ -class FleepHookHandler extends SocketHandler +class FleepHookHandler extends \WPMailSMTP\Vendor\Monolog\Handler\SocketHandler { const FLEEP_HOST = 'fleep.io'; - const FLEEP_HOOK_URI = '/hook/'; - /** * @var string Webhook token (specifies the conversation where logs are sent) */ protected $token; - /** * Construct a new Fleep.io Handler. * @@ -44,18 +39,15 @@ class FleepHookHandler extends SocketHandler * @param bool $bubble Whether the messages that are handled can bubble up the stack or not * @throws MissingExtensionException */ - public function __construct($token, $level = Logger::DEBUG, $bubble = true) + public function __construct($token, $level = \WPMailSMTP\Vendor\Monolog\Logger::DEBUG, $bubble = \true) { - if (!extension_loaded('openssl')) { - throw new MissingExtensionException('The OpenSSL PHP extension is required to use the FleepHookHandler'); + if (!\extension_loaded('openssl')) { + throw new \WPMailSMTP\Vendor\Monolog\Handler\MissingExtensionException('The OpenSSL PHP extension is required to use the FleepHookHandler'); } - $this->token = $token; - $connectionString = 'ssl://' . self::FLEEP_HOST . ':443'; parent::__construct($connectionString, $level, $bubble); } - /** * Returns the default formatter to use with this handler * @@ -65,9 +57,8 @@ class FleepHookHandler extends SocketHandler */ protected function getDefaultFormatter() { - return new LineFormatter(null, null, true, true); + return new \WPMailSMTP\Vendor\Monolog\Formatter\LineFormatter(null, null, \true, \true); } - /** * Handles a log record * @@ -78,7 +69,6 @@ class FleepHookHandler extends SocketHandler parent::write($record); $this->closeSocket(); } - /** * {@inheritdoc} * @@ -88,10 +78,8 @@ class FleepHookHandler extends SocketHandler protected function generateDataStream($record) { $content = $this->buildContent($record); - return $this->buildHeader($content) . $content; } - /** * Builds the header of the API Call * @@ -103,12 +91,10 @@ class FleepHookHandler extends SocketHandler $header = "POST " . self::FLEEP_HOOK_URI . $this->token . " HTTP/1.1\r\n"; $header .= "Host: " . self::FLEEP_HOST . "\r\n"; $header .= "Content-Type: application/x-www-form-urlencoded\r\n"; - $header .= "Content-Length: " . strlen($content) . "\r\n"; + $header .= "Content-Length: " . \strlen($content) . "\r\n"; $header .= "\r\n"; - return $header; } - /** * Builds the body of API call * @@ -117,10 +103,7 @@ class FleepHookHandler extends SocketHandler */ private function buildContent($record) { - $dataArray = array( - 'message' => $record['formatted'], - ); - - return http_build_query($dataArray); + $dataArray = array('message' => $record['formatted']); + return \http_build_query($dataArray); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/FlowdockHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FlowdockHandler.php similarity index 69% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/FlowdockHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FlowdockHandler.php index f0f010c..92c41c7 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/FlowdockHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FlowdockHandler.php @@ -8,14 +8,12 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler; -namespace Monolog\Handler; - -use Monolog\Logger; -use Monolog\Utils; -use Monolog\Formatter\FlowdockFormatter; -use Monolog\Formatter\FormatterInterface; - +use WPMailSMTP\Vendor\Monolog\Logger; +use WPMailSMTP\Vendor\Monolog\Utils; +use WPMailSMTP\Vendor\Monolog\Formatter\FlowdockFormatter; +use WPMailSMTP\Vendor\Monolog\Formatter\FormatterInterface; /** * Sends notifications through the Flowdock push API * @@ -27,13 +25,12 @@ use Monolog\Formatter\FormatterInterface; * @author Dominik Liebler * @see https://www.flowdock.com/api/push */ -class FlowdockHandler extends SocketHandler +class FlowdockHandler extends \WPMailSMTP\Vendor\Monolog\Handler\SocketHandler { /** * @var string */ protected $apiToken; - /** * @param string $apiToken * @param bool|int $level The minimum logging level at which this handler will be triggered @@ -41,28 +38,24 @@ class FlowdockHandler extends SocketHandler * * @throws MissingExtensionException if OpenSSL is missing */ - public function __construct($apiToken, $level = Logger::DEBUG, $bubble = true) + public function __construct($apiToken, $level = \WPMailSMTP\Vendor\Monolog\Logger::DEBUG, $bubble = \true) { - if (!extension_loaded('openssl')) { - throw new MissingExtensionException('The OpenSSL PHP extension is required to use the FlowdockHandler'); + if (!\extension_loaded('openssl')) { + throw new \WPMailSMTP\Vendor\Monolog\Handler\MissingExtensionException('The OpenSSL PHP extension is required to use the FlowdockHandler'); } - parent::__construct('ssl://api.flowdock.com:443', $level, $bubble); $this->apiToken = $apiToken; } - /** * {@inheritdoc} */ - public function setFormatter(FormatterInterface $formatter) + public function setFormatter(\WPMailSMTP\Vendor\Monolog\Formatter\FormatterInterface $formatter) { - if (!$formatter instanceof FlowdockFormatter) { - throw new \InvalidArgumentException('The FlowdockHandler requires an instance of Monolog\Formatter\FlowdockFormatter to function correctly'); + if (!$formatter instanceof \WPMailSMTP\Vendor\Monolog\Formatter\FlowdockFormatter) { + throw new \InvalidArgumentException('The FlowdockHandler requires an instance of Monolog\\Formatter\\FlowdockFormatter to function correctly'); } - return parent::setFormatter($formatter); } - /** * Gets the default formatter. * @@ -70,9 +63,8 @@ class FlowdockHandler extends SocketHandler */ protected function getDefaultFormatter() { - throw new \InvalidArgumentException('The FlowdockHandler must be configured (via setFormatter) with an instance of Monolog\Formatter\FlowdockFormatter to function correctly'); + throw new \InvalidArgumentException('The FlowdockHandler must be configured (via setFormatter) with an instance of Monolog\\Formatter\\FlowdockFormatter to function correctly'); } - /** * {@inheritdoc} * @@ -81,10 +73,8 @@ class FlowdockHandler extends SocketHandler protected function write(array $record) { parent::write($record); - $this->closeSocket(); } - /** * {@inheritdoc} * @@ -94,10 +84,8 @@ class FlowdockHandler extends SocketHandler protected function generateDataStream($record) { $content = $this->buildContent($record); - return $this->buildHeader($content) . $content; } - /** * Builds the body of API call * @@ -106,9 +94,8 @@ class FlowdockHandler extends SocketHandler */ private function buildContent($record) { - return Utils::jsonEncode($record['formatted']['flowdock']); + return \WPMailSMTP\Vendor\Monolog\Utils::jsonEncode($record['formatted']['flowdock']); } - /** * Builds the header of the API Call * @@ -120,9 +107,8 @@ class FlowdockHandler extends SocketHandler $header = "POST /v1/messages/team_inbox/" . $this->apiToken . " HTTP/1.1\r\n"; $header .= "Host: api.flowdock.com\r\n"; $header .= "Content-Type: application/json\r\n"; - $header .= "Content-Length: " . strlen($content) . "\r\n"; + $header .= "Content-Length: " . \strlen($content) . "\r\n"; $header .= "\r\n"; - return $header; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/FormattableHandlerInterface.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FormattableHandlerInterface.php similarity index 63% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/FormattableHandlerInterface.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FormattableHandlerInterface.php index 3e2f1b2..bed6599 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/FormattableHandlerInterface.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/FormattableHandlerInterface.php @@ -1,5 +1,6 @@ -formatter = $formatter; - return $this; } - /** * {@inheritdoc} */ - public function getFormatter(): FormatterInterface + public function getFormatter() : \WPMailSMTP\Vendor\Monolog\Formatter\FormatterInterface { if (!$this->formatter) { $this->formatter = $this->getDefaultFormatter(); } - return $this->formatter; } - /** * Gets the default formatter. * * Overwrite this if the LineFormatter is not a good default for your handler. */ - protected function getDefaultFormatter(): FormatterInterface + protected function getDefaultFormatter() : \WPMailSMTP\Vendor\Monolog\Formatter\FormatterInterface { - return new LineFormatter(); + return new \WPMailSMTP\Vendor\Monolog\Formatter\LineFormatter(); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/GelfHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/GelfHandler.php similarity index 58% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/GelfHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/GelfHandler.php index 71e4669..02eb85b 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/GelfHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/GelfHandler.php @@ -8,45 +8,39 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler; -namespace Monolog\Handler; - -use Gelf\IMessagePublisher; -use Gelf\PublisherInterface; -use Gelf\Publisher; +use WPMailSMTP\Vendor\Gelf\IMessagePublisher; +use WPMailSMTP\Vendor\Gelf\PublisherInterface; +use WPMailSMTP\Vendor\Gelf\Publisher; use InvalidArgumentException; -use Monolog\Logger; -use Monolog\Formatter\GelfMessageFormatter; - +use WPMailSMTP\Vendor\Monolog\Logger; +use WPMailSMTP\Vendor\Monolog\Formatter\GelfMessageFormatter; /** * Handler to send messages to a Graylog2 (http://www.graylog2.org) server * * @author Matt Lehner * @author Benjamin Zikarsky */ -class GelfHandler extends AbstractProcessingHandler +class GelfHandler extends \WPMailSMTP\Vendor\Monolog\Handler\AbstractProcessingHandler { /** * @var Publisher the publisher object that sends the message to the server */ protected $publisher; - /** * @param PublisherInterface|IMessagePublisher|Publisher $publisher a publisher object * @param int $level The minimum logging level at which this handler will be triggered * @param bool $bubble Whether the messages that are handled can bubble up the stack or not */ - public function __construct($publisher, $level = Logger::DEBUG, $bubble = true) + public function __construct($publisher, $level = \WPMailSMTP\Vendor\Monolog\Logger::DEBUG, $bubble = \true) { parent::__construct($level, $bubble); - - if (!$publisher instanceof Publisher && !$publisher instanceof IMessagePublisher && !$publisher instanceof PublisherInterface) { - throw new InvalidArgumentException('Invalid publisher, expected a Gelf\Publisher, Gelf\IMessagePublisher or Gelf\PublisherInterface instance'); + if (!$publisher instanceof \WPMailSMTP\Vendor\Gelf\Publisher && !$publisher instanceof \WPMailSMTP\Vendor\Gelf\IMessagePublisher && !$publisher instanceof \WPMailSMTP\Vendor\Gelf\PublisherInterface) { + throw new \InvalidArgumentException('Invalid publisher, expected a Gelf\\Publisher, Gelf\\IMessagePublisher or Gelf\\PublisherInterface instance'); } - $this->publisher = $publisher; } - /** * {@inheritdoc} */ @@ -54,12 +48,11 @@ class GelfHandler extends AbstractProcessingHandler { $this->publisher->publish($record['formatted']); } - /** * {@inheritDoc} */ protected function getDefaultFormatter() { - return new GelfMessageFormatter(); + return new \WPMailSMTP\Vendor\Monolog\Formatter\GelfMessageFormatter(); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/GroupHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/GroupHandler.php similarity index 72% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/GroupHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/GroupHandler.php index 0d461f9..136cbee 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/GroupHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/GroupHandler.php @@ -8,37 +8,32 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler; -namespace Monolog\Handler; - -use Monolog\Formatter\FormatterInterface; -use Monolog\ResettableInterface; - +use WPMailSMTP\Vendor\Monolog\Formatter\FormatterInterface; +use WPMailSMTP\Vendor\Monolog\ResettableInterface; /** * Forwards records to multiple handlers * * @author Lenar Lõhmus */ -class GroupHandler extends AbstractHandler +class GroupHandler extends \WPMailSMTP\Vendor\Monolog\Handler\AbstractHandler { protected $handlers; - /** * @param array $handlers Array of Handlers. * @param bool $bubble Whether the messages that are handled can bubble up the stack or not */ - public function __construct(array $handlers, $bubble = true) + public function __construct(array $handlers, $bubble = \true) { foreach ($handlers as $handler) { - if (!$handler instanceof HandlerInterface) { + if (!$handler instanceof \WPMailSMTP\Vendor\Monolog\Handler\HandlerInterface) { throw new \InvalidArgumentException('The first argument of the GroupHandler must be an array of HandlerInterface instances.'); } } - $this->handlers = $handlers; $this->bubble = $bubble; } - /** * {@inheritdoc} */ @@ -46,13 +41,11 @@ class GroupHandler extends AbstractHandler { foreach ($this->handlers as $handler) { if ($handler->isHandling($record)) { - return true; + return \true; } } - - return false; + return \false; } - /** * {@inheritdoc} */ @@ -60,17 +53,14 @@ class GroupHandler extends AbstractHandler { if ($this->processors) { foreach ($this->processors as $processor) { - $record = call_user_func($processor, $record); + $record = \call_user_func($processor, $record); } } - foreach ($this->handlers as $handler) { $handler->handle($record); } - - return false === $this->bubble; + return \false === $this->bubble; } - /** * {@inheritdoc} */ @@ -80,38 +70,33 @@ class GroupHandler extends AbstractHandler $processed = array(); foreach ($records as $record) { foreach ($this->processors as $processor) { - $record = call_user_func($processor, $record); + $record = \call_user_func($processor, $record); } $processed[] = $record; } $records = $processed; } - foreach ($this->handlers as $handler) { $handler->handleBatch($records); } } - public function reset() { parent::reset(); - foreach ($this->handlers as $handler) { - if ($handler instanceof ResettableInterface) { + if ($handler instanceof \WPMailSMTP\Vendor\Monolog\ResettableInterface) { $handler->reset(); } } } - /** * {@inheritdoc} */ - public function setFormatter(FormatterInterface $formatter) + public function setFormatter(\WPMailSMTP\Vendor\Monolog\Formatter\FormatterInterface $formatter) { foreach ($this->handlers as $handler) { $handler->setFormatter($formatter); } - return $this; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/HandlerInterface.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/HandlerInterface.php similarity index 92% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/HandlerInterface.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/HandlerInterface.php index 8d5a4a0..7f6e804 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/HandlerInterface.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/HandlerInterface.php @@ -8,11 +8,9 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler; -namespace Monolog\Handler; - -use Monolog\Formatter\FormatterInterface; - +use WPMailSMTP\Vendor\Monolog\Formatter\FormatterInterface; /** * Interface that all Monolog Handlers must implement * @@ -34,7 +32,6 @@ interface HandlerInterface * @return bool */ public function isHandling(array $record); - /** * Handles a record. * @@ -50,14 +47,12 @@ interface HandlerInterface * false means the record was either not processed or that this handler allows bubbling. */ public function handle(array $record); - /** * Handles a set of records at once. * * @param array $records The records to handle (an array of record arrays) */ public function handleBatch(array $records); - /** * Adds a processor in the stack. * @@ -65,22 +60,19 @@ interface HandlerInterface * @return self */ public function pushProcessor($callback); - /** * Removes the processor on top of the stack and returns it. * * @return callable */ public function popProcessor(); - /** * Sets the formatter. * * @param FormatterInterface $formatter * @return self */ - public function setFormatter(FormatterInterface $formatter); - + public function setFormatter(\WPMailSMTP\Vendor\Monolog\Formatter\FormatterInterface $formatter); /** * Gets the formatter. * diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/HandlerWrapper.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/HandlerWrapper.php similarity index 77% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/HandlerWrapper.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/HandlerWrapper.php index 55e6498..277bd23 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/HandlerWrapper.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/HandlerWrapper.php @@ -8,12 +8,10 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler; -namespace Monolog\Handler; - -use Monolog\ResettableInterface; -use Monolog\Formatter\FormatterInterface; - +use WPMailSMTP\Vendor\Monolog\ResettableInterface; +use WPMailSMTP\Vendor\Monolog\Formatter\FormatterInterface; /** * This simple wrapper class can be used to extend handlers functionality. * @@ -31,22 +29,20 @@ use Monolog\Formatter\FormatterInterface; * * @author Alexey Karapetov */ -class HandlerWrapper implements HandlerInterface, ResettableInterface +class HandlerWrapper implements \WPMailSMTP\Vendor\Monolog\Handler\HandlerInterface, \WPMailSMTP\Vendor\Monolog\ResettableInterface { /** * @var HandlerInterface */ protected $handler; - /** * HandlerWrapper constructor. * @param HandlerInterface $handler */ - public function __construct(HandlerInterface $handler) + public function __construct(\WPMailSMTP\Vendor\Monolog\Handler\HandlerInterface $handler) { $this->handler = $handler; } - /** * {@inheritdoc} */ @@ -54,7 +50,6 @@ class HandlerWrapper implements HandlerInterface, ResettableInterface { return $this->handler->isHandling($record); } - /** * {@inheritdoc} */ @@ -62,7 +57,6 @@ class HandlerWrapper implements HandlerInterface, ResettableInterface { return $this->handler->handle($record); } - /** * {@inheritdoc} */ @@ -70,17 +64,14 @@ class HandlerWrapper implements HandlerInterface, ResettableInterface { return $this->handler->handleBatch($records); } - /** * {@inheritdoc} */ public function pushProcessor($callback) { $this->handler->pushProcessor($callback); - return $this; } - /** * {@inheritdoc} */ @@ -88,17 +79,14 @@ class HandlerWrapper implements HandlerInterface, ResettableInterface { return $this->handler->popProcessor(); } - /** * {@inheritdoc} */ - public function setFormatter(FormatterInterface $formatter) + public function setFormatter(\WPMailSMTP\Vendor\Monolog\Formatter\FormatterInterface $formatter) { $this->handler->setFormatter($formatter); - return $this; } - /** * {@inheritdoc} */ @@ -106,10 +94,9 @@ class HandlerWrapper implements HandlerInterface, ResettableInterface { return $this->handler->getFormatter(); } - public function reset() { - if ($this->handler instanceof ResettableInterface) { + if ($this->handler instanceof \WPMailSMTP\Vendor\Monolog\ResettableInterface) { return $this->handler->reset(); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/HipChatHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/HipChatHandler.php similarity index 74% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/HipChatHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/HipChatHandler.php index 179d626..547e3f9 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/HipChatHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/HipChatHandler.php @@ -8,11 +8,9 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler; -namespace Monolog\Handler; - -use Monolog\Logger; - +use WPMailSMTP\Vendor\Monolog\Logger; /** * Sends notifications through the hipchat api to a hipchat room * @@ -26,63 +24,52 @@ use Monolog\Logger; * @author Rafael Dohms * @see https://www.hipchat.com/docs/api */ -class HipChatHandler extends SocketHandler +class HipChatHandler extends \WPMailSMTP\Vendor\Monolog\Handler\SocketHandler { /** * Use API version 1 */ const API_V1 = 'v1'; - /** * Use API version v2 */ const API_V2 = 'v2'; - /** * The maximum allowed length for the name used in the "from" field. */ const MAXIMUM_NAME_LENGTH = 15; - /** * The maximum allowed length for the message. */ const MAXIMUM_MESSAGE_LENGTH = 9500; - /** * @var string */ private $token; - /** * @var string */ private $room; - /** * @var string */ private $name; - /** * @var bool */ private $notify; - /** * @var string */ private $format; - /** * @var string */ private $host; - /** * @var string */ private $version; - /** * @param string $token HipChat API Token * @param string $room The room that should be alerted of the message (Id or Name) @@ -95,17 +82,14 @@ class HipChatHandler extends SocketHandler * @param string $host The HipChat server hostname. * @param string $version The HipChat API version (default HipChatHandler::API_V1) */ - public function __construct($token, $room, $name = 'Monolog', $notify = false, $level = Logger::CRITICAL, $bubble = true, $useSSL = true, $format = 'text', $host = 'api.hipchat.com', $version = self::API_V1) + public function __construct($token, $room, $name = 'Monolog', $notify = \false, $level = \WPMailSMTP\Vendor\Monolog\Logger::CRITICAL, $bubble = \true, $useSSL = \true, $format = 'text', $host = 'api.hipchat.com', $version = self::API_V1) { - @trigger_error('The Monolog\Handler\HipChatHandler class is deprecated. You should migrate to Slack and the SlackWebhookHandler / SlackbotHandler, see https://www.atlassian.com/partnerships/slack', E_USER_DEPRECATED); - + @\trigger_error('The Monolog\\Handler\\HipChatHandler class is deprecated. You should migrate to Slack and the SlackWebhookHandler / SlackbotHandler, see https://www.atlassian.com/partnerships/slack', \E_USER_DEPRECATED); if ($version == self::API_V1 && !$this->validateStringLength($name, static::MAXIMUM_NAME_LENGTH)) { throw new \InvalidArgumentException('The supplied name is too long. HipChat\'s v1 API supports names up to 15 UTF-8 characters.'); } - - $connectionString = $useSSL ? 'ssl://'.$host.':443' : $host.':80'; + $connectionString = $useSSL ? 'ssl://' . $host . ':443' : $host . ':80'; parent::__construct($connectionString, $level, $bubble); - $this->token = $token; $this->name = $name; $this->notify = $notify; @@ -114,7 +98,6 @@ class HipChatHandler extends SocketHandler $this->host = $host; $this->version = $version; } - /** * {@inheritdoc} * @@ -124,10 +107,8 @@ class HipChatHandler extends SocketHandler protected function generateDataStream($record) { $content = $this->buildContent($record); - return $this->buildHeader($content) . $content; } - /** * Builds the body of API call * @@ -136,37 +117,25 @@ class HipChatHandler extends SocketHandler */ private function buildContent($record) { - $dataArray = array( - 'notify' => $this->version == self::API_V1 ? - ($this->notify ? 1 : 0) : - ($this->notify ? 'true' : 'false'), - 'message' => $record['formatted'], - 'message_format' => $this->format, - 'color' => $this->getAlertColor($record['level']), - ); - + $dataArray = array('notify' => $this->version == self::API_V1 ? $this->notify ? 1 : 0 : ($this->notify ? 'true' : 'false'), 'message' => $record['formatted'], 'message_format' => $this->format, 'color' => $this->getAlertColor($record['level'])); if (!$this->validateStringLength($dataArray['message'], static::MAXIMUM_MESSAGE_LENGTH)) { - if (function_exists('mb_substr')) { - $dataArray['message'] = mb_substr($dataArray['message'], 0, static::MAXIMUM_MESSAGE_LENGTH).' [truncated]'; + if (\function_exists('mb_substr')) { + $dataArray['message'] = \mb_substr($dataArray['message'], 0, static::MAXIMUM_MESSAGE_LENGTH) . ' [truncated]'; } else { - $dataArray['message'] = substr($dataArray['message'], 0, static::MAXIMUM_MESSAGE_LENGTH).' [truncated]'; + $dataArray['message'] = \substr($dataArray['message'], 0, static::MAXIMUM_MESSAGE_LENGTH) . ' [truncated]'; } } - // if we are using the legacy API then we need to send some additional information if ($this->version == self::API_V1) { $dataArray['room_id'] = $this->room; } - // append the sender name if it is set // always append it if we use the v1 api (it is required in v1) if ($this->version == self::API_V1 || $this->name !== null) { $dataArray['from'] = (string) $this->name; } - - return http_build_query($dataArray); + return \http_build_query($dataArray); } - /** * Builds the header of the API Call * @@ -179,18 +148,15 @@ class HipChatHandler extends SocketHandler $header = "POST /v1/rooms/message?format=json&auth_token={$this->token} HTTP/1.1\r\n"; } else { // needed for rooms with special (spaces, etc) characters in the name - $room = rawurlencode($this->room); + $room = \rawurlencode($this->room); $header = "POST /v2/room/{$room}/notification?auth_token={$this->token} HTTP/1.1\r\n"; } - $header .= "Host: {$this->host}\r\n"; $header .= "Content-Type: application/x-www-form-urlencoded\r\n"; - $header .= "Content-Length: " . strlen($content) . "\r\n"; + $header .= "Content-Length: " . \strlen($content) . "\r\n"; $header .= "\r\n"; - return $header; } - /** * Assigns a color to each level of log records. * @@ -199,20 +165,19 @@ class HipChatHandler extends SocketHandler */ protected function getAlertColor($level) { - switch (true) { - case $level >= Logger::ERROR: + switch (\true) { + case $level >= \WPMailSMTP\Vendor\Monolog\Logger::ERROR: return 'red'; - case $level >= Logger::WARNING: + case $level >= \WPMailSMTP\Vendor\Monolog\Logger::WARNING: return 'yellow'; - case $level >= Logger::INFO: + case $level >= \WPMailSMTP\Vendor\Monolog\Logger::INFO: return 'green'; - case $level == Logger::DEBUG: + case $level == \WPMailSMTP\Vendor\Monolog\Logger::DEBUG: return 'gray'; default: return 'yellow'; } } - /** * {@inheritdoc} * @@ -223,7 +188,6 @@ class HipChatHandler extends SocketHandler parent::write($record); $this->finalizeWrite(); } - /** * Finalizes the request by reading some bytes and then closing the socket * @@ -233,38 +197,32 @@ class HipChatHandler extends SocketHandler protected function finalizeWrite() { $res = $this->getResource(); - if (is_resource($res)) { - @fread($res, 2048); + if (\is_resource($res)) { + @\fread($res, 2048); } $this->closeSocket(); } - /** * {@inheritdoc} */ public function handleBatch(array $records) { - if (count($records) == 0) { - return true; + if (\count($records) == 0) { + return \true; } - $batchRecords = $this->combineRecords($records); - - $handled = false; + $handled = \false; foreach ($batchRecords as $batchRecord) { if ($this->isHandling($batchRecord)) { $this->write($batchRecord); - $handled = true; + $handled = \true; } } - if (!$handled) { - return false; + return \false; } - - return false === $this->bubble; + return \false === $this->bubble; } - /** * Combines multiple records into one. Error level of the combined record * will be the highest level from the given records. Datetime will be taken @@ -282,65 +240,41 @@ class HipChatHandler extends SocketHandler $level = 0; $levelName = null; $datetime = null; - foreach ($records as $record) { $record = $this->processRecord($record); - if ($record['level'] > $level) { $level = $record['level']; $levelName = $record['level_name']; } - if (null === $datetime) { $datetime = $record['datetime']; } - $messages[] = $record['message']; - $messageStr = implode(PHP_EOL, $messages); + $messageStr = \implode(\PHP_EOL, $messages); $formattedMessages[] = $this->getFormatter()->format($record); - $formattedMessageStr = implode('', $formattedMessages); - - $batchRecord = array( - 'message' => $messageStr, - 'formatted' => $formattedMessageStr, - 'context' => array(), - 'extra' => array(), - ); - + $formattedMessageStr = \implode('', $formattedMessages); + $batchRecord = array('message' => $messageStr, 'formatted' => $formattedMessageStr, 'context' => array(), 'extra' => array()); if (!$this->validateStringLength($batchRecord['formatted'], static::MAXIMUM_MESSAGE_LENGTH)) { // Pop the last message and implode the remaining messages - $lastMessage = array_pop($messages); - $lastFormattedMessage = array_pop($formattedMessages); - $batchRecord['message'] = implode(PHP_EOL, $messages); - $batchRecord['formatted'] = implode('', $formattedMessages); - + $lastMessage = \array_pop($messages); + $lastFormattedMessage = \array_pop($formattedMessages); + $batchRecord['message'] = \implode(\PHP_EOL, $messages); + $batchRecord['formatted'] = \implode('', $formattedMessages); $batchRecords[] = $batchRecord; $messages = array($lastMessage); $formattedMessages = array($lastFormattedMessage); - $batchRecord = null; } } - if (null !== $batchRecord) { $batchRecords[] = $batchRecord; } - // Set the max level and datetime for all records foreach ($batchRecords as &$batchRecord) { - $batchRecord = array_merge( - $batchRecord, - array( - 'level' => $level, - 'level_name' => $levelName, - 'datetime' => $datetime, - ) - ); + $batchRecord = \array_merge($batchRecord, array('level' => $level, 'level_name' => $levelName, 'datetime' => $datetime)); } - return $batchRecords; } - /** * Validates the length of a string. * @@ -358,10 +292,9 @@ class HipChatHandler extends SocketHandler */ private function validateStringLength($str, $length) { - if (function_exists('mb_strlen')) { - return (mb_strlen($str) <= $length); + if (\function_exists('mb_strlen')) { + return \mb_strlen($str) <= $length; } - - return (strlen($str) <= $length); + return \strlen($str) <= $length; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/IFTTTHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/IFTTTHandler.php similarity index 57% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/IFTTTHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/IFTTTHandler.php index f4d3b97..512cc8b 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/IFTTTHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/IFTTTHandler.php @@ -8,12 +8,10 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler; -namespace Monolog\Handler; - -use Monolog\Logger; -use Monolog\Utils; - +use WPMailSMTP\Vendor\Monolog\Logger; +use WPMailSMTP\Vendor\Monolog\Utils; /** * IFTTTHandler uses cURL to trigger IFTTT Maker actions * @@ -25,46 +23,35 @@ use Monolog\Utils; * * @author Nehal Patel */ -class IFTTTHandler extends AbstractProcessingHandler +class IFTTTHandler extends \WPMailSMTP\Vendor\Monolog\Handler\AbstractProcessingHandler { private $eventName; private $secretKey; - /** * @param string $eventName The name of the IFTTT Maker event that should be triggered * @param string $secretKey A valid IFTTT secret key * @param int $level The minimum logging level at which this handler will be triggered * @param bool $bubble Whether the messages that are handled can bubble up the stack or not */ - public function __construct($eventName, $secretKey, $level = Logger::ERROR, $bubble = true) + public function __construct($eventName, $secretKey, $level = \WPMailSMTP\Vendor\Monolog\Logger::ERROR, $bubble = \true) { $this->eventName = $eventName; $this->secretKey = $secretKey; - parent::__construct($level, $bubble); } - /** * {@inheritdoc} */ public function write(array $record) { - $postData = array( - "value1" => $record["channel"], - "value2" => $record["level_name"], - "value3" => $record["message"], - ); - $postString = Utils::jsonEncode($postData); - - $ch = curl_init(); - curl_setopt($ch, CURLOPT_URL, "https://maker.ifttt.com/trigger/" . $this->eventName . "/with/key/" . $this->secretKey); - curl_setopt($ch, CURLOPT_POST, true); - curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); - curl_setopt($ch, CURLOPT_POSTFIELDS, $postString); - curl_setopt($ch, CURLOPT_HTTPHEADER, array( - "Content-Type: application/json", - )); - - Curl\Util::execute($ch); + $postData = array("value1" => $record["channel"], "value2" => $record["level_name"], "value3" => $record["message"]); + $postString = \WPMailSMTP\Vendor\Monolog\Utils::jsonEncode($postData); + $ch = \curl_init(); + \curl_setopt($ch, \CURLOPT_URL, "https://maker.ifttt.com/trigger/" . $this->eventName . "/with/key/" . $this->secretKey); + \curl_setopt($ch, \CURLOPT_POST, \true); + \curl_setopt($ch, \CURLOPT_RETURNTRANSFER, \true); + \curl_setopt($ch, \CURLOPT_POSTFIELDS, $postString); + \curl_setopt($ch, \CURLOPT_HTTPHEADER, array("Content-Type: application/json")); + \WPMailSMTP\Vendor\Monolog\Handler\Curl\Util::execute($ch); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/InsightOpsHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/InsightOpsHandler.php similarity index 69% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/InsightOpsHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/InsightOpsHandler.php index 8f683dc..2a0d371 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/InsightOpsHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/InsightOpsHandler.php @@ -8,24 +8,21 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler; - namespace Monolog\Handler; - - use Monolog\Logger; - +use WPMailSMTP\Vendor\Monolog\Logger; /** * Inspired on LogEntriesHandler. * * @author Robert Kaufmann III * @author Gabriel Machado */ -class InsightOpsHandler extends SocketHandler +class InsightOpsHandler extends \WPMailSMTP\Vendor\Monolog\Handler\SocketHandler { /** * @var string */ protected $logToken; - /** * @param string $token Log token supplied by InsightOps * @param string $region Region where InsightOps account is hosted. Could be 'us' or 'eu'. @@ -35,20 +32,15 @@ class InsightOpsHandler extends SocketHandler * * @throws MissingExtensionException If SSL encryption is set to true and OpenSSL is missing */ - public function __construct($token, $region = 'us', $useSSL = true, $level = Logger::DEBUG, $bubble = true) + public function __construct($token, $region = 'us', $useSSL = \true, $level = \WPMailSMTP\Vendor\Monolog\Logger::DEBUG, $bubble = \true) { - if ($useSSL && !extension_loaded('openssl')) { - throw new MissingExtensionException('The OpenSSL PHP plugin is required to use SSL encrypted connection for InsightOpsHandler'); + if ($useSSL && !\extension_loaded('openssl')) { + throw new \WPMailSMTP\Vendor\Monolog\Handler\MissingExtensionException('The OpenSSL PHP plugin is required to use SSL encrypted connection for InsightOpsHandler'); } - - $endpoint = $useSSL - ? 'ssl://' . $region . '.data.logs.insight.rapid7.com:443' - : $region . '.data.logs.insight.rapid7.com:80'; - + $endpoint = $useSSL ? 'ssl://' . $region . '.data.logs.insight.rapid7.com:443' : $region . '.data.logs.insight.rapid7.com:80'; parent::__construct($endpoint, $level, $bubble); $this->logToken = $token; } - /** * {@inheritdoc} * diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/LogEntriesHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/LogEntriesHandler.php similarity index 68% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/LogEntriesHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/LogEntriesHandler.php index ea89fb3..38f73e2 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/LogEntriesHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/LogEntriesHandler.php @@ -8,21 +8,18 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler; -namespace Monolog\Handler; - -use Monolog\Logger; - +use WPMailSMTP\Vendor\Monolog\Logger; /** * @author Robert Kaufmann III */ -class LogEntriesHandler extends SocketHandler +class LogEntriesHandler extends \WPMailSMTP\Vendor\Monolog\Handler\SocketHandler { /** * @var string */ protected $logToken; - /** * @param string $token Log token supplied by LogEntries * @param bool $useSSL Whether or not SSL encryption should be used. @@ -31,17 +28,15 @@ class LogEntriesHandler extends SocketHandler * * @throws MissingExtensionException If SSL encryption is set to true and OpenSSL is missing */ - public function __construct($token, $useSSL = true, $level = Logger::DEBUG, $bubble = true, $host = 'data.logentries.com') + public function __construct($token, $useSSL = \true, $level = \WPMailSMTP\Vendor\Monolog\Logger::DEBUG, $bubble = \true, $host = 'data.logentries.com') { - if ($useSSL && !extension_loaded('openssl')) { - throw new MissingExtensionException('The OpenSSL PHP plugin is required to use SSL encrypted connection for LogEntriesHandler'); + if ($useSSL && !\extension_loaded('openssl')) { + throw new \WPMailSMTP\Vendor\Monolog\Handler\MissingExtensionException('The OpenSSL PHP plugin is required to use SSL encrypted connection for LogEntriesHandler'); } - $endpoint = $useSSL ? 'ssl://' . $host . ':443' : $host . ':80'; parent::__construct($endpoint, $level, $bubble); $this->logToken = $token; } - /** * {@inheritdoc} * diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/LogglyHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/LogglyHandler.php similarity index 54% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/LogglyHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/LogglyHandler.php index bcd62e1..d9f470c 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/LogglyHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/LogglyHandler.php @@ -8,12 +8,10 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler; -namespace Monolog\Handler; - -use Monolog\Logger; -use Monolog\Formatter\LogglyFormatter; - +use WPMailSMTP\Vendor\Monolog\Logger; +use WPMailSMTP\Vendor\Monolog\Formatter\LogglyFormatter; /** * Sends errors to Loggly. * @@ -21,82 +19,64 @@ use Monolog\Formatter\LogglyFormatter; * @author Adam Pancutt * @author Gregory Barchard */ -class LogglyHandler extends AbstractProcessingHandler +class LogglyHandler extends \WPMailSMTP\Vendor\Monolog\Handler\AbstractProcessingHandler { const HOST = 'logs-01.loggly.com'; const ENDPOINT_SINGLE = 'inputs'; const ENDPOINT_BATCH = 'bulk'; - protected $token; - protected $tag = array(); - - public function __construct($token, $level = Logger::DEBUG, $bubble = true) + public function __construct($token, $level = \WPMailSMTP\Vendor\Monolog\Logger::DEBUG, $bubble = \true) { - if (!extension_loaded('curl')) { + if (!\extension_loaded('curl')) { throw new \LogicException('The curl extension is needed to use the LogglyHandler'); } - $this->token = $token; - parent::__construct($level, $bubble); } - public function setTag($tag) { $tag = !empty($tag) ? $tag : array(); - $this->tag = is_array($tag) ? $tag : array($tag); + $this->tag = \is_array($tag) ? $tag : array($tag); } - public function addTag($tag) { if (!empty($tag)) { - $tag = is_array($tag) ? $tag : array($tag); - $this->tag = array_unique(array_merge($this->tag, $tag)); + $tag = \is_array($tag) ? $tag : array($tag); + $this->tag = \array_unique(\array_merge($this->tag, $tag)); } } - protected function write(array $record) { $this->send($record["formatted"], self::ENDPOINT_SINGLE); } - public function handleBatch(array $records) { $level = $this->level; - - $records = array_filter($records, function ($record) use ($level) { - return ($record['level'] >= $level); + $records = \array_filter($records, function ($record) use($level) { + return $record['level'] >= $level; }); - if ($records) { $this->send($this->getFormatter()->formatBatch($records), self::ENDPOINT_BATCH); } } - protected function send($data, $endpoint) { - $url = sprintf("https://%s/%s/%s/", self::HOST, $endpoint, $this->token); - + $url = \sprintf("https://%s/%s/%s/", self::HOST, $endpoint, $this->token); $headers = array('Content-Type: application/json'); - if (!empty($this->tag)) { - $headers[] = 'X-LOGGLY-TAG: '.implode(',', $this->tag); + $headers[] = 'X-LOGGLY-TAG: ' . \implode(',', $this->tag); } - - $ch = curl_init(); - - curl_setopt($ch, CURLOPT_URL, $url); - curl_setopt($ch, CURLOPT_POST, true); - curl_setopt($ch, CURLOPT_POSTFIELDS, $data); - curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); - curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); - - Curl\Util::execute($ch); + $ch = \curl_init(); + \curl_setopt($ch, \CURLOPT_URL, $url); + \curl_setopt($ch, \CURLOPT_POST, \true); + \curl_setopt($ch, \CURLOPT_POSTFIELDS, $data); + \curl_setopt($ch, \CURLOPT_HTTPHEADER, $headers); + \curl_setopt($ch, \CURLOPT_RETURNTRANSFER, \true); + \WPMailSMTP\Vendor\Monolog\Handler\Curl\Util::execute($ch); } - protected function getDefaultFormatter() { - return new LogglyFormatter(); + return new \WPMailSMTP\Vendor\Monolog\Formatter\LogglyFormatter(); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/MailHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/MailHandler.php similarity index 87% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/MailHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/MailHandler.php index 9e23283..d4d773c 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/MailHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/MailHandler.php @@ -8,15 +8,14 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - -namespace Monolog\Handler; +namespace WPMailSMTP\Vendor\Monolog\Handler; /** * Base class for all mail handlers * * @author Gyula Sallai */ -abstract class MailHandler extends AbstractProcessingHandler +abstract class MailHandler extends \WPMailSMTP\Vendor\Monolog\Handler\AbstractProcessingHandler { /** * {@inheritdoc} @@ -24,27 +23,23 @@ abstract class MailHandler extends AbstractProcessingHandler public function handleBatch(array $records) { $messages = array(); - foreach ($records as $record) { if ($record['level'] < $this->level) { continue; } $messages[] = $this->processRecord($record); } - if (!empty($messages)) { $this->send((string) $this->getFormatter()->formatBatch($messages), $messages); } } - /** * Send a mail with the given content * * @param string $content formatted email body to be sent * @param array $records the array of log records that formed this content */ - abstract protected function send($content, array $records); - + protected abstract function send($content, array $records); /** * {@inheritdoc} */ @@ -52,7 +47,6 @@ abstract class MailHandler extends AbstractProcessingHandler { $this->send((string) $record['formatted'], array($record)); } - protected function getHighestRecord(array $records) { $highestRecord = null; @@ -61,7 +55,6 @@ abstract class MailHandler extends AbstractProcessingHandler $highestRecord = $record; } } - return $highestRecord; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/MandrillHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/MandrillHandler.php similarity index 57% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/MandrillHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/MandrillHandler.php index 3f0956a..2f8324d 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/MandrillHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/MandrillHandler.php @@ -8,41 +8,36 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler; -namespace Monolog\Handler; - -use Monolog\Logger; - +use WPMailSMTP\Vendor\Monolog\Logger; /** * MandrillHandler uses cURL to send the emails to the Mandrill API * * @author Adam Nicholson */ -class MandrillHandler extends MailHandler +class MandrillHandler extends \WPMailSMTP\Vendor\Monolog\Handler\MailHandler { protected $message; protected $apiKey; - /** * @param string $apiKey A valid Mandrill API key * @param callable|\Swift_Message $message An example message for real messages, only the body will be replaced * @param int $level The minimum logging level at which this handler will be triggered * @param bool $bubble Whether the messages that are handled can bubble up the stack or not */ - public function __construct($apiKey, $message, $level = Logger::ERROR, $bubble = true) + public function __construct($apiKey, $message, $level = \WPMailSMTP\Vendor\Monolog\Logger::ERROR, $bubble = \true) { parent::__construct($level, $bubble); - - if (!$message instanceof \Swift_Message && is_callable($message)) { - $message = call_user_func($message); + if (!$message instanceof \WPMailSMTP\Vendor\Swift_Message && \is_callable($message)) { + $message = \call_user_func($message); } - if (!$message instanceof \Swift_Message) { + if (!$message instanceof \WPMailSMTP\Vendor\Swift_Message) { throw new \InvalidArgumentException('You must provide either a Swift_Message instance or a callable returning it'); } $this->message = $message; $this->apiKey = $apiKey; } - /** * {@inheritdoc} */ @@ -50,19 +45,12 @@ class MandrillHandler extends MailHandler { $message = clone $this->message; $message->setBody($content); - $message->setDate(time()); - - $ch = curl_init(); - - curl_setopt($ch, CURLOPT_URL, 'https://mandrillapp.com/api/1.0/messages/send-raw.json'); - curl_setopt($ch, CURLOPT_POST, 1); - curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); - curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query(array( - 'key' => $this->apiKey, - 'raw_message' => (string) $message, - 'async' => false, - ))); - - Curl\Util::execute($ch); + $message->setDate(\time()); + $ch = \curl_init(); + \curl_setopt($ch, \CURLOPT_URL, 'https://mandrillapp.com/api/1.0/messages/send-raw.json'); + \curl_setopt($ch, \CURLOPT_POST, 1); + \curl_setopt($ch, \CURLOPT_RETURNTRANSFER, 1); + \curl_setopt($ch, \CURLOPT_POSTFIELDS, \http_build_query(array('key' => $this->apiKey, 'raw_message' => (string) $message, 'async' => \false))); + \WPMailSMTP\Vendor\Monolog\Handler\Curl\Util::execute($ch); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/MissingExtensionException.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/MissingExtensionException.php similarity index 90% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/MissingExtensionException.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/MissingExtensionException.php index 4724a7e..988df6e 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/MissingExtensionException.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/MissingExtensionException.php @@ -8,8 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - -namespace Monolog\Handler; +namespace WPMailSMTP\Vendor\Monolog\Handler; /** * Exception can be thrown if an extension for an handler is missing diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/MongoDBHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/MongoDBHandler.php similarity index 67% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/MongoDBHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/MongoDBHandler.php index 56fe755..22b8088 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/MongoDBHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/MongoDBHandler.php @@ -8,12 +8,10 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler; -namespace Monolog\Handler; - -use Monolog\Logger; -use Monolog\Formatter\NormalizerFormatter; - +use WPMailSMTP\Vendor\Monolog\Logger; +use WPMailSMTP\Vendor\Monolog\Formatter\NormalizerFormatter; /** * Logs to a MongoDB database. * @@ -25,35 +23,30 @@ use Monolog\Formatter\NormalizerFormatter; * * @author Thomas Tourlourat */ -class MongoDBHandler extends AbstractProcessingHandler +class MongoDBHandler extends \WPMailSMTP\Vendor\Monolog\Handler\AbstractProcessingHandler { protected $mongoCollection; - - public function __construct($mongo, $database, $collection, $level = Logger::DEBUG, $bubble = true) + public function __construct($mongo, $database, $collection, $level = \WPMailSMTP\Vendor\Monolog\Logger::DEBUG, $bubble = \true) { - if (!($mongo instanceof \MongoClient || $mongo instanceof \Mongo || $mongo instanceof \MongoDB\Client)) { - throw new \InvalidArgumentException('MongoClient, Mongo or MongoDB\Client instance required'); + if (!($mongo instanceof \MongoClient || $mongo instanceof \Mongo || $mongo instanceof \WPMailSMTP\Vendor\MongoDB\Client)) { + throw new \InvalidArgumentException('MongoClient, Mongo or MongoDB\\Client instance required'); } - $this->mongoCollection = $mongo->selectCollection($database, $collection); - parent::__construct($level, $bubble); } - protected function write(array $record) { - if ($this->mongoCollection instanceof \MongoDB\Collection) { + if ($this->mongoCollection instanceof \WPMailSMTP\Vendor\MongoDB\Collection) { $this->mongoCollection->insertOne($record["formatted"]); } else { $this->mongoCollection->save($record["formatted"]); } } - /** * {@inheritDoc} */ protected function getDefaultFormatter() { - return new NormalizerFormatter(); + return new \WPMailSMTP\Vendor\Monolog\Formatter\NormalizerFormatter(); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/NativeMailerHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/NativeMailerHandler.php similarity index 75% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/NativeMailerHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/NativeMailerHandler.php index d7807fd..70ec235 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/NativeMailerHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/NativeMailerHandler.php @@ -8,62 +8,53 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler; -namespace Monolog\Handler; - -use Monolog\Logger; -use Monolog\Formatter\LineFormatter; - +use WPMailSMTP\Vendor\Monolog\Logger; +use WPMailSMTP\Vendor\Monolog\Formatter\LineFormatter; /** * NativeMailerHandler uses the mail() function to send the emails * * @author Christophe Coevoet * @author Mark Garrett */ -class NativeMailerHandler extends MailHandler +class NativeMailerHandler extends \WPMailSMTP\Vendor\Monolog\Handler\MailHandler { /** * The email addresses to which the message will be sent * @var array */ protected $to; - /** * The subject of the email * @var string */ protected $subject; - /** * Optional headers for the message * @var array */ protected $headers = array(); - /** * Optional parameters for the message * @var array */ protected $parameters = array(); - /** * The wordwrap length for the message * @var int */ protected $maxColumnWidth; - /** * The Content-type for the message * @var string */ protected $contentType = 'text/plain'; - /** * The encoding for the message * @var string */ protected $encoding = 'utf-8'; - /** * @param string|array $to The receiver of the mail * @param string $subject The subject of the mail @@ -72,15 +63,14 @@ class NativeMailerHandler extends MailHandler * @param bool $bubble Whether the messages that are handled can bubble up the stack or not * @param int $maxColumnWidth The maximum column width that the message lines will have */ - public function __construct($to, $subject, $from, $level = Logger::ERROR, $bubble = true, $maxColumnWidth = 70) + public function __construct($to, $subject, $from, $level = \WPMailSMTP\Vendor\Monolog\Logger::ERROR, $bubble = \true, $maxColumnWidth = 70) { parent::__construct($level, $bubble); - $this->to = is_array($to) ? $to : array($to); + $this->to = \is_array($to) ? $to : array($to); $this->subject = $subject; - $this->addHeader(sprintf('From: %s', $from)); + $this->addHeader(\sprintf('From: %s', $from)); $this->maxColumnWidth = $maxColumnWidth; } - /** * Add headers to the message * @@ -90,15 +80,13 @@ class NativeMailerHandler extends MailHandler public function addHeader($headers) { foreach ((array) $headers as $header) { - if (strpos($header, "\n") !== false || strpos($header, "\r") !== false) { + if (\strpos($header, "\n") !== \false || \strpos($header, "\r") !== \false) { throw new \InvalidArgumentException('Headers can not contain newline characters for security reasons'); } $this->headers[] = $header; } - return $this; } - /** * Add parameters to the message * @@ -107,35 +95,30 @@ class NativeMailerHandler extends MailHandler */ public function addParameter($parameters) { - $this->parameters = array_merge($this->parameters, (array) $parameters); - + $this->parameters = \array_merge($this->parameters, (array) $parameters); return $this; } - /** * {@inheritdoc} */ protected function send($content, array $records) { - $content = wordwrap($content, $this->maxColumnWidth); - $headers = ltrim(implode("\r\n", $this->headers) . "\r\n", "\r\n"); + $content = \wordwrap($content, $this->maxColumnWidth); + $headers = \ltrim(\implode("\r\n", $this->headers) . "\r\n", "\r\n"); $headers .= 'Content-type: ' . $this->getContentType() . '; charset=' . $this->getEncoding() . "\r\n"; - if ($this->getContentType() == 'text/html' && false === strpos($headers, 'MIME-Version:')) { + if ($this->getContentType() == 'text/html' && \false === \strpos($headers, 'MIME-Version:')) { $headers .= 'MIME-Version: 1.0' . "\r\n"; } - $subject = $this->subject; if ($records) { - $subjectFormatter = new LineFormatter($this->subject); + $subjectFormatter = new \WPMailSMTP\Vendor\Monolog\Formatter\LineFormatter($this->subject); $subject = $subjectFormatter->format($this->getHighestRecord($records)); } - - $parameters = implode(' ', $this->parameters); + $parameters = \implode(' ', $this->parameters); foreach ($this->to as $to) { - mail($to, $subject, $content, $headers, $parameters); + \mail($to, $subject, $content, $headers, $parameters); } } - /** * @return string $contentType */ @@ -143,7 +126,6 @@ class NativeMailerHandler extends MailHandler { return $this->contentType; } - /** * @return string $encoding */ @@ -151,7 +133,6 @@ class NativeMailerHandler extends MailHandler { return $this->encoding; } - /** * @param string $contentType The content type of the email - Defaults to text/plain. Use text/html for HTML * messages. @@ -159,27 +140,22 @@ class NativeMailerHandler extends MailHandler */ public function setContentType($contentType) { - if (strpos($contentType, "\n") !== false || strpos($contentType, "\r") !== false) { + if (\strpos($contentType, "\n") !== \false || \strpos($contentType, "\r") !== \false) { throw new \InvalidArgumentException('The content type can not contain newline characters to prevent email header injection'); } - $this->contentType = $contentType; - return $this; } - /** * @param string $encoding * @return self */ public function setEncoding($encoding) { - if (strpos($encoding, "\n") !== false || strpos($encoding, "\r") !== false) { + if (\strpos($encoding, "\n") !== \false || \strpos($encoding, "\r") !== \false) { throw new \InvalidArgumentException('The encoding can not contain newline characters to prevent email header injection'); } - $this->encoding = $encoding; - return $this; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php similarity index 74% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php index 64dc138..198c3d7 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php @@ -8,13 +8,11 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler; -namespace Monolog\Handler; - -use Monolog\Logger; -use Monolog\Utils; -use Monolog\Formatter\NormalizerFormatter; - +use WPMailSMTP\Vendor\Monolog\Logger; +use WPMailSMTP\Vendor\Monolog\Utils; +use WPMailSMTP\Vendor\Monolog\Formatter\NormalizerFormatter; /** * Class to record a log on a NewRelic application. * Enabling New Relic High Security mode may prevent capture of useful information. @@ -24,7 +22,7 @@ use Monolog\Formatter\NormalizerFormatter; * @see https://docs.newrelic.com/docs/agents/php-agent * @see https://docs.newrelic.com/docs/accounts-partnerships/accounts/security/high-security */ -class NewRelicHandler extends AbstractProcessingHandler +class NewRelicHandler extends \WPMailSMTP\Vendor\Monolog\Handler\AbstractProcessingHandler { /** * Name of the New Relic application that will receive logs from this handler. @@ -32,14 +30,12 @@ class NewRelicHandler extends AbstractProcessingHandler * @var string */ protected $appName; - /** * Name of the current transaction * * @var string */ protected $transactionName; - /** * Some context and extra data is passed into the handler as arrays of values. Do we send them as is * (useful if we are using the API), or explode them for display on the NewRelic RPM website? @@ -47,7 +43,6 @@ class NewRelicHandler extends AbstractProcessingHandler * @var bool */ protected $explodeArrays; - /** * {@inheritDoc} * @@ -55,48 +50,37 @@ class NewRelicHandler extends AbstractProcessingHandler * @param bool $explodeArrays * @param string $transactionName */ - public function __construct( - $level = Logger::ERROR, - $bubble = true, - $appName = null, - $explodeArrays = false, - $transactionName = null - ) { + public function __construct($level = \WPMailSMTP\Vendor\Monolog\Logger::ERROR, $bubble = \true, $appName = null, $explodeArrays = \false, $transactionName = null) + { parent::__construct($level, $bubble); - - $this->appName = $appName; + $this->appName = $appName; $this->explodeArrays = $explodeArrays; $this->transactionName = $transactionName; } - /** * {@inheritDoc} */ protected function write(array $record) { if (!$this->isNewRelicEnabled()) { - throw new MissingExtensionException('The newrelic PHP extension is required to use the NewRelicHandler'); + throw new \WPMailSMTP\Vendor\Monolog\Handler\MissingExtensionException('The newrelic PHP extension is required to use the NewRelicHandler'); } - if ($appName = $this->getAppName($record['context'])) { $this->setNewRelicAppName($appName); } - if ($transactionName = $this->getTransactionName($record['context'])) { $this->setNewRelicTransactionName($transactionName); unset($record['formatted']['context']['transaction_name']); } - - if (isset($record['context']['exception']) && ($record['context']['exception'] instanceof \Exception || (PHP_VERSION_ID >= 70000 && $record['context']['exception'] instanceof \Throwable))) { - newrelic_notice_error($record['message'], $record['context']['exception']); + if (isset($record['context']['exception']) && ($record['context']['exception'] instanceof \Exception || \PHP_VERSION_ID >= 70000 && $record['context']['exception'] instanceof \Throwable)) { + \newrelic_notice_error($record['message'], $record['context']['exception']); unset($record['formatted']['context']['exception']); } else { - newrelic_notice_error($record['message']); + \newrelic_notice_error($record['message']); } - - if (isset($record['formatted']['context']) && is_array($record['formatted']['context'])) { + if (isset($record['formatted']['context']) && \is_array($record['formatted']['context'])) { foreach ($record['formatted']['context'] as $key => $parameter) { - if (is_array($parameter) && $this->explodeArrays) { + if (\is_array($parameter) && $this->explodeArrays) { foreach ($parameter as $paramKey => $paramValue) { $this->setNewRelicParameter('context_' . $key . '_' . $paramKey, $paramValue); } @@ -105,10 +89,9 @@ class NewRelicHandler extends AbstractProcessingHandler } } } - - if (isset($record['formatted']['extra']) && is_array($record['formatted']['extra'])) { + if (isset($record['formatted']['extra']) && \is_array($record['formatted']['extra'])) { foreach ($record['formatted']['extra'] as $key => $parameter) { - if (is_array($parameter) && $this->explodeArrays) { + if (\is_array($parameter) && $this->explodeArrays) { foreach ($parameter as $paramKey => $paramValue) { $this->setNewRelicParameter('extra_' . $key . '_' . $paramKey, $paramValue); } @@ -118,7 +101,6 @@ class NewRelicHandler extends AbstractProcessingHandler } } } - /** * Checks whether the NewRelic extension is enabled in the system. * @@ -126,9 +108,8 @@ class NewRelicHandler extends AbstractProcessingHandler */ protected function isNewRelicEnabled() { - return extension_loaded('newrelic'); + return \extension_loaded('newrelic'); } - /** * Returns the appname where this log should be sent. Each log can override the default appname, set in this * handler's constructor, by providing the appname in it's context. @@ -141,10 +122,8 @@ class NewRelicHandler extends AbstractProcessingHandler if (isset($context['appname'])) { return $context['appname']; } - return $this->appName; } - /** * Returns the name of the current transaction. Each log can override the default transaction name, set in this * handler's constructor, by providing the transaction_name in it's context @@ -158,10 +137,8 @@ class NewRelicHandler extends AbstractProcessingHandler if (isset($context['transaction_name'])) { return $context['transaction_name']; } - return $this->transactionName; } - /** * Sets the NewRelic application that should receive this log. * @@ -169,9 +146,8 @@ class NewRelicHandler extends AbstractProcessingHandler */ protected function setNewRelicAppName($appName) { - newrelic_set_appname($appName); + \newrelic_set_appname($appName); } - /** * Overwrites the name of the current transaction * @@ -179,27 +155,25 @@ class NewRelicHandler extends AbstractProcessingHandler */ protected function setNewRelicTransactionName($transactionName) { - newrelic_name_transaction($transactionName); + \newrelic_name_transaction($transactionName); } - /** * @param string $key * @param mixed $value */ protected function setNewRelicParameter($key, $value) { - if (null === $value || is_scalar($value)) { - newrelic_add_custom_parameter($key, $value); + if (null === $value || \is_scalar($value)) { + \newrelic_add_custom_parameter($key, $value); } else { - newrelic_add_custom_parameter($key, Utils::jsonEncode($value, null, true)); + \newrelic_add_custom_parameter($key, \WPMailSMTP\Vendor\Monolog\Utils::jsonEncode($value, null, \true)); } } - /** * {@inheritDoc} */ protected function getDefaultFormatter() { - return new NormalizerFormatter(); + return new \WPMailSMTP\Vendor\Monolog\Formatter\NormalizerFormatter(); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/NullHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/NullHandler.php similarity index 67% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/NullHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/NullHandler.php index 4b84588..4959597 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/NullHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/NullHandler.php @@ -8,11 +8,9 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler; -namespace Monolog\Handler; - -use Monolog\Logger; - +use WPMailSMTP\Vendor\Monolog\Logger; /** * Blackhole * @@ -21,25 +19,23 @@ use Monolog\Logger; * * @author Jordi Boggiano */ -class NullHandler extends AbstractHandler +class NullHandler extends \WPMailSMTP\Vendor\Monolog\Handler\AbstractHandler { /** * @param int $level The minimum logging level at which this handler will be triggered */ - public function __construct($level = Logger::DEBUG) + public function __construct($level = \WPMailSMTP\Vendor\Monolog\Logger::DEBUG) { - parent::__construct($level, false); + parent::__construct($level, \false); } - /** * {@inheritdoc} */ public function handle(array $record) { if ($record['level'] < $this->level) { - return false; + return \false; } - - return true; + return \true; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/PHPConsoleHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/PHPConsoleHandler.php similarity index 56% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/PHPConsoleHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/PHPConsoleHandler.php index d0a8b43..7fd4a6d 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/PHPConsoleHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/PHPConsoleHandler.php @@ -8,17 +8,15 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - -namespace Monolog\Handler; +namespace WPMailSMTP\Vendor\Monolog\Handler; use Exception; -use Monolog\Formatter\LineFormatter; -use Monolog\Logger; -use Monolog\Utils; -use PhpConsole\Connector; -use PhpConsole\Handler; -use PhpConsole\Helper; - +use WPMailSMTP\Vendor\Monolog\Formatter\LineFormatter; +use WPMailSMTP\Vendor\Monolog\Logger; +use WPMailSMTP\Vendor\Monolog\Utils; +use WPMailSMTP\Vendor\PhpConsole\Connector; +use WPMailSMTP\Vendor\PhpConsole\Handler; +use WPMailSMTP\Vendor\PhpConsole\Helper; /** * Monolog handler for Google Chrome extension "PHP Console" * @@ -38,34 +36,51 @@ use PhpConsole\Helper; * * @author Sergey Barbushin https://www.linkedin.com/in/barbushin */ -class PHPConsoleHandler extends AbstractProcessingHandler +class PHPConsoleHandler extends \WPMailSMTP\Vendor\Monolog\Handler\AbstractProcessingHandler { private $options = array( - 'enabled' => true, // bool Is PHP Console server enabled - 'classesPartialsTraceIgnore' => array('Monolog\\'), // array Hide calls of classes started with... - 'debugTagsKeysInContext' => array(0, 'tag'), // bool Is PHP Console server enabled - 'useOwnErrorsHandler' => false, // bool Enable errors handling - 'useOwnExceptionsHandler' => false, // bool Enable exceptions handling - 'sourcesBasePath' => null, // string Base path of all project sources to strip in errors source paths - 'registerHelper' => true, // bool Register PhpConsole\Helper that allows short debug calls like PC::debug($var, 'ta.g.s') - 'serverEncoding' => null, // string|null Server internal encoding - 'headersLimit' => null, // int|null Set headers size limit for your web-server - 'password' => null, // string|null Protect PHP Console connection by password - 'enableSslOnlyMode' => false, // bool Force connection by SSL for clients with PHP Console installed - 'ipMasks' => array(), // array Set IP masks of clients that will be allowed to connect to PHP Console: array('192.168.*.*', '127.0.0.1') - 'enableEvalListener' => false, // bool Enable eval request to be handled by eval dispatcher(if enabled, 'password' option is also required) - 'dumperDetectCallbacks' => false, // bool Convert callback items in dumper vars to (callback SomeClass::someMethod) strings - 'dumperLevelLimit' => 5, // int Maximum dumped vars array or object nested dump level - 'dumperItemsCountLimit' => 100, // int Maximum dumped var same level array items or object properties number - 'dumperItemSizeLimit' => 5000, // int Maximum length of any string or dumped array item - 'dumperDumpSizeLimit' => 500000, // int Maximum approximate size of dumped vars result formatted in JSON - 'detectDumpTraceAndSource' => false, // bool Autodetect and append trace data to debug - 'dataStorage' => null, // PhpConsole\Storage|null Fixes problem with custom $_SESSION handler(see http://goo.gl/Ne8juJ) + 'enabled' => \true, + // bool Is PHP Console server enabled + 'classesPartialsTraceIgnore' => array('WPMailSMTP\\Vendor\\Monolog\\'), + // array Hide calls of classes started with... + 'debugTagsKeysInContext' => array(0, 'tag'), + // bool Is PHP Console server enabled + 'useOwnErrorsHandler' => \false, + // bool Enable errors handling + 'useOwnExceptionsHandler' => \false, + // bool Enable exceptions handling + 'sourcesBasePath' => null, + // string Base path of all project sources to strip in errors source paths + 'registerHelper' => \true, + // bool Register PhpConsole\Helper that allows short debug calls like PC::debug($var, 'ta.g.s') + 'serverEncoding' => null, + // string|null Server internal encoding + 'headersLimit' => null, + // int|null Set headers size limit for your web-server + 'password' => null, + // string|null Protect PHP Console connection by password + 'enableSslOnlyMode' => \false, + // bool Force connection by SSL for clients with PHP Console installed + 'ipMasks' => array(), + // array Set IP masks of clients that will be allowed to connect to PHP Console: array('192.168.*.*', '127.0.0.1') + 'enableEvalListener' => \false, + // bool Enable eval request to be handled by eval dispatcher(if enabled, 'password' option is also required) + 'dumperDetectCallbacks' => \false, + // bool Convert callback items in dumper vars to (callback SomeClass::someMethod) strings + 'dumperLevelLimit' => 5, + // int Maximum dumped vars array or object nested dump level + 'dumperItemsCountLimit' => 100, + // int Maximum dumped var same level array items or object properties number + 'dumperItemSizeLimit' => 5000, + // int Maximum length of any string or dumped array item + 'dumperDumpSizeLimit' => 500000, + // int Maximum approximate size of dumped vars result formatted in JSON + 'detectDumpTraceAndSource' => \false, + // bool Autodetect and append trace data to debug + 'dataStorage' => null, ); - /** @var Connector */ private $connector; - /** * @param array $options See \Monolog\Handler\PHPConsoleHandler::$options for more details * @param Connector|null $connector Instance of \PhpConsole\Connector class (optional) @@ -73,42 +88,37 @@ class PHPConsoleHandler extends AbstractProcessingHandler * @param bool $bubble * @throws Exception */ - public function __construct(array $options = array(), Connector $connector = null, $level = Logger::DEBUG, $bubble = true) + public function __construct(array $options = array(), \WPMailSMTP\Vendor\PhpConsole\Connector $connector = null, $level = \WPMailSMTP\Vendor\Monolog\Logger::DEBUG, $bubble = \true) { - if (!class_exists('PhpConsole\Connector')) { - throw new Exception('PHP Console library not found. See https://github.com/barbushin/php-console#installation'); + if (!\class_exists('WPMailSMTP\\Vendor\\PhpConsole\\Connector')) { + throw new \Exception('PHP Console library not found. See https://github.com/barbushin/php-console#installation'); } parent::__construct($level, $bubble); $this->options = $this->initOptions($options); $this->connector = $this->initConnector($connector); } - private function initOptions(array $options) { - $wrongOptions = array_diff(array_keys($options), array_keys($this->options)); + $wrongOptions = \array_diff(\array_keys($options), \array_keys($this->options)); if ($wrongOptions) { - throw new Exception('Unknown options: ' . implode(', ', $wrongOptions)); + throw new \Exception('Unknown options: ' . \implode(', ', $wrongOptions)); } - - return array_replace($this->options, $options); + return \array_replace($this->options, $options); } - - private function initConnector(Connector $connector = null) + private function initConnector(\WPMailSMTP\Vendor\PhpConsole\Connector $connector = null) { if (!$connector) { if ($this->options['dataStorage']) { - Connector::setPostponeStorage($this->options['dataStorage']); + \WPMailSMTP\Vendor\PhpConsole\Connector::setPostponeStorage($this->options['dataStorage']); } - $connector = Connector::getInstance(); + $connector = \WPMailSMTP\Vendor\PhpConsole\Connector::getInstance(); } - - if ($this->options['registerHelper'] && !Helper::isRegistered()) { - Helper::register(); + if ($this->options['registerHelper'] && !\WPMailSMTP\Vendor\PhpConsole\Helper::isRegistered()) { + \WPMailSMTP\Vendor\PhpConsole\Helper::register(); } - if ($this->options['enabled'] && $connector->isActiveClient()) { if ($this->options['useOwnErrorsHandler'] || $this->options['useOwnExceptionsHandler']) { - $handler = Handler::getInstance(); + $handler = \WPMailSMTP\Vendor\PhpConsole\Handler::getInstance(); $handler->setHandleErrors($this->options['useOwnErrorsHandler']); $handler->setHandleExceptions($this->options['useOwnExceptionsHandler']); $handler->start(); @@ -132,7 +142,7 @@ class PHPConsoleHandler extends AbstractProcessingHandler $connector->setHeadersLimit($this->options['headersLimit']); } if ($this->options['detectDumpTraceAndSource']) { - $connector->getDebugDispatcher()->detectTraceAndSource = true; + $connector->getDebugDispatcher()->detectTraceAndSource = \true; } $dumper = $connector->getDumper(); $dumper->levelLimit = $this->options['dumperLevelLimit']; @@ -144,29 +154,23 @@ class PHPConsoleHandler extends AbstractProcessingHandler $connector->startEvalRequestsListener(); } } - return $connector; } - public function getConnector() { return $this->connector; } - public function getOptions() { return $this->options; } - public function handle(array $record) { if ($this->options['enabled'] && $this->connector->isActiveClient()) { return parent::handle($record); } - return !$this->bubble; } - /** * Writes the record down to the log of the implementing handler * @@ -175,53 +179,42 @@ class PHPConsoleHandler extends AbstractProcessingHandler */ protected function write(array $record) { - if ($record['level'] < Logger::NOTICE) { + if ($record['level'] < \WPMailSMTP\Vendor\Monolog\Logger::NOTICE) { $this->handleDebugRecord($record); - } elseif (isset($record['context']['exception']) && $record['context']['exception'] instanceof Exception) { + } elseif (isset($record['context']['exception']) && $record['context']['exception'] instanceof \Exception) { $this->handleExceptionRecord($record); } else { $this->handleErrorRecord($record); } } - private function handleDebugRecord(array $record) { $tags = $this->getRecordTags($record); $message = $record['message']; if ($record['context']) { - $message .= ' ' . Utils::jsonEncode($this->connector->getDumper()->dump(array_filter($record['context'])), null, true); + $message .= ' ' . \WPMailSMTP\Vendor\Monolog\Utils::jsonEncode($this->connector->getDumper()->dump(\array_filter($record['context'])), null, \true); } $this->connector->getDebugDispatcher()->dispatchDebug($message, $tags, $this->options['classesPartialsTraceIgnore']); } - private function handleExceptionRecord(array $record) { $this->connector->getErrorsDispatcher()->dispatchException($record['context']['exception']); } - private function handleErrorRecord(array $record) { $context = $record['context']; - - $this->connector->getErrorsDispatcher()->dispatchError( - isset($context['code']) ? $context['code'] : null, - isset($context['message']) ? $context['message'] : $record['message'], - isset($context['file']) ? $context['file'] : null, - isset($context['line']) ? $context['line'] : null, - $this->options['classesPartialsTraceIgnore'] - ); + $this->connector->getErrorsDispatcher()->dispatchError(isset($context['code']) ? $context['code'] : null, isset($context['message']) ? $context['message'] : $record['message'], isset($context['file']) ? $context['file'] : null, isset($context['line']) ? $context['line'] : null, $this->options['classesPartialsTraceIgnore']); } - private function getRecordTags(array &$record) { $tags = null; if (!empty($record['context'])) { - $context = & $record['context']; + $context =& $record['context']; foreach ($this->options['debugTagsKeysInContext'] as $key) { if (!empty($context[$key])) { $tags = $context[$key]; if ($key === 0) { - array_shift($context); + \array_shift($context); } else { unset($context[$key]); } @@ -229,15 +222,13 @@ class PHPConsoleHandler extends AbstractProcessingHandler } } } - - return $tags ?: strtolower($record['level_name']); + return $tags ?: \strtolower($record['level_name']); } - /** * {@inheritDoc} */ protected function getDefaultFormatter() { - return new LineFormatter('%message%'); + return new \WPMailSMTP\Vendor\Monolog\Formatter\LineFormatter('%message%'); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/ProcessableHandlerInterface.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/ProcessableHandlerInterface.php similarity index 73% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/ProcessableHandlerInterface.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/ProcessableHandlerInterface.php index 66a3d83..f62041e 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/ProcessableHandlerInterface.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/ProcessableHandlerInterface.php @@ -1,5 +1,6 @@ -processors, $callback); - + \array_unshift($this->processors, $callback); return $this; } - /** * {@inheritdoc} */ - public function popProcessor(): callable + public function popProcessor() : callable { if (!$this->processors) { throw new \LogicException('You tried to pop from an empty processor stack.'); } - - return array_shift($this->processors); + return \array_shift($this->processors); } - /** * Processes a record. */ - protected function processRecord(array $record): array + protected function processRecord(array $record) : array { foreach ($this->processors as $processor) { $record = $processor($record); } - return $record; } - - protected function resetProcessors(): void + protected function resetProcessors() : void { foreach ($this->processors as $processor) { - if ($processor instanceof ResettableInterface) { + if ($processor instanceof \WPMailSMTP\Vendor\Monolog\ResettableInterface) { $processor->reset(); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/PsrHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/PsrHandler.php similarity index 66% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/PsrHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/PsrHandler.php index a99e6ab..77a131c 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/PsrHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/PsrHandler.php @@ -8,18 +8,16 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler; -namespace Monolog\Handler; - -use Monolog\Logger; -use Psr\Log\LoggerInterface; - +use WPMailSMTP\Vendor\Monolog\Logger; +use WPMailSMTP\Vendor\Psr\Log\LoggerInterface; /** * Proxies log messages to an existing PSR-3 compliant logger. * * @author Michael Moussa */ -class PsrHandler extends AbstractHandler +class PsrHandler extends \WPMailSMTP\Vendor\Monolog\Handler\AbstractHandler { /** * PSR-3 compliant logger @@ -27,30 +25,25 @@ class PsrHandler extends AbstractHandler * @var LoggerInterface */ protected $logger; - /** * @param LoggerInterface $logger The underlying PSR-3 compliant logger to which messages will be proxied * @param int $level The minimum logging level at which this handler will be triggered * @param bool $bubble Whether the messages that are handled can bubble up the stack or not */ - public function __construct(LoggerInterface $logger, $level = Logger::DEBUG, $bubble = true) + public function __construct(\WPMailSMTP\Vendor\Psr\Log\LoggerInterface $logger, $level = \WPMailSMTP\Vendor\Monolog\Logger::DEBUG, $bubble = \true) { parent::__construct($level, $bubble); - $this->logger = $logger; } - /** * {@inheritDoc} */ public function handle(array $record) { if (!$this->isHandling($record)) { - return false; + return \false; } - - $this->logger->log(strtolower($record['level_name']), $record['message'], $record['context']); - - return false === $this->bubble; + $this->logger->log(\strtolower($record['level_name']), $record['message'], $record['context']); + return \false === $this->bubble; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/PushoverHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/PushoverHandler.php similarity index 68% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/PushoverHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/PushoverHandler.php index f27bb3d..48a069d 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/PushoverHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/PushoverHandler.php @@ -8,18 +8,16 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler; -namespace Monolog\Handler; - -use Monolog\Logger; - +use WPMailSMTP\Vendor\Monolog\Logger; /** * Sends notifications through the pushover api to mobile phones * * @author Sebastian Göttschkes * @see https://www.pushover.net/api */ -class PushoverHandler extends SocketHandler +class PushoverHandler extends \WPMailSMTP\Vendor\Monolog\Handler\SocketHandler { private $token; private $users; @@ -27,43 +25,21 @@ class PushoverHandler extends SocketHandler private $user; private $retry; private $expire; - private $highPriorityLevel; private $emergencyLevel; - private $useFormattedMessage = false; - + private $useFormattedMessage = \false; /** * All parameters that can be sent to Pushover * @see https://pushover.net/api * @var array */ - private $parameterNames = array( - 'token' => true, - 'user' => true, - 'message' => true, - 'device' => true, - 'title' => true, - 'url' => true, - 'url_title' => true, - 'priority' => true, - 'timestamp' => true, - 'sound' => true, - 'retry' => true, - 'expire' => true, - 'callback' => true, - ); - + private $parameterNames = array('token' => \true, 'user' => \true, 'message' => \true, 'device' => \true, 'title' => \true, 'url' => \true, 'url_title' => \true, 'priority' => \true, 'timestamp' => \true, 'sound' => \true, 'retry' => \true, 'expire' => \true, 'callback' => \true); /** * Sounds the api supports by default * @see https://pushover.net/api#sounds * @var array */ - private $sounds = array( - 'pushover', 'bike', 'bugle', 'cashregister', 'classical', 'cosmic', 'falling', 'gamelan', 'incoming', - 'intermission', 'magic', 'mechanical', 'pianobar', 'siren', 'spacealarm', 'tugboat', 'alien', 'climb', - 'persistent', 'echo', 'updown', 'none', - ); - + private $sounds = array('pushover', 'bike', 'bugle', 'cashregister', 'classical', 'cosmic', 'falling', 'gamelan', 'incoming', 'intermission', 'magic', 'mechanical', 'pianobar', 'siren', 'spacealarm', 'tugboat', 'alien', 'climb', 'persistent', 'echo', 'updown', 'none'); /** * @param string $token Pushover api token * @param string|array $users Pushover user id or array of ids the message will be sent to @@ -79,45 +55,31 @@ class PushoverHandler extends SocketHandler * @param int $retry The retry parameter specifies how often (in seconds) the Pushover servers will send the same notification to the user. * @param int $expire The expire parameter specifies how many seconds your notification will continue to be retried for (every retry seconds). */ - public function __construct($token, $users, $title = null, $level = Logger::CRITICAL, $bubble = true, $useSSL = true, $highPriorityLevel = Logger::CRITICAL, $emergencyLevel = Logger::EMERGENCY, $retry = 30, $expire = 25200) + public function __construct($token, $users, $title = null, $level = \WPMailSMTP\Vendor\Monolog\Logger::CRITICAL, $bubble = \true, $useSSL = \true, $highPriorityLevel = \WPMailSMTP\Vendor\Monolog\Logger::CRITICAL, $emergencyLevel = \WPMailSMTP\Vendor\Monolog\Logger::EMERGENCY, $retry = 30, $expire = 25200) { $connectionString = $useSSL ? 'ssl://api.pushover.net:443' : 'api.pushover.net:80'; parent::__construct($connectionString, $level, $bubble); - $this->token = $token; $this->users = (array) $users; - $this->title = $title ?: gethostname(); - $this->highPriorityLevel = Logger::toMonologLevel($highPriorityLevel); - $this->emergencyLevel = Logger::toMonologLevel($emergencyLevel); + $this->title = $title ?: \gethostname(); + $this->highPriorityLevel = \WPMailSMTP\Vendor\Monolog\Logger::toMonologLevel($highPriorityLevel); + $this->emergencyLevel = \WPMailSMTP\Vendor\Monolog\Logger::toMonologLevel($emergencyLevel); $this->retry = $retry; $this->expire = $expire; } - protected function generateDataStream($record) { $content = $this->buildContent($record); - return $this->buildHeader($content) . $content; } - private function buildContent($record) { // Pushover has a limit of 512 characters on title and message combined. - $maxMessageLength = 512 - strlen($this->title); - - $message = ($this->useFormattedMessage) ? $record['formatted'] : $record['message']; - $message = substr($message, 0, $maxMessageLength); - + $maxMessageLength = 512 - \strlen($this->title); + $message = $this->useFormattedMessage ? $record['formatted'] : $record['message']; + $message = \substr($message, 0, $maxMessageLength); $timestamp = $record['datetime']->getTimestamp(); - - $dataArray = array( - 'token' => $this->token, - 'user' => $this->user, - 'message' => $message, - 'title' => $this->title, - 'timestamp' => $timestamp, - ); - + $dataArray = array('token' => $this->token, 'user' => $this->user, 'message' => $message, 'title' => $this->title, 'timestamp' => $timestamp); if (isset($record['level']) && $record['level'] >= $this->emergencyLevel) { $dataArray['priority'] = 2; $dataArray['retry'] = $this->retry; @@ -125,55 +87,43 @@ class PushoverHandler extends SocketHandler } elseif (isset($record['level']) && $record['level'] >= $this->highPriorityLevel) { $dataArray['priority'] = 1; } - // First determine the available parameters - $context = array_intersect_key($record['context'], $this->parameterNames); - $extra = array_intersect_key($record['extra'], $this->parameterNames); - + $context = \array_intersect_key($record['context'], $this->parameterNames); + $extra = \array_intersect_key($record['extra'], $this->parameterNames); // Least important info should be merged with subsequent info - $dataArray = array_merge($extra, $context, $dataArray); - + $dataArray = \array_merge($extra, $context, $dataArray); // Only pass sounds that are supported by the API - if (isset($dataArray['sound']) && !in_array($dataArray['sound'], $this->sounds)) { + if (isset($dataArray['sound']) && !\in_array($dataArray['sound'], $this->sounds)) { unset($dataArray['sound']); } - - return http_build_query($dataArray); + return \http_build_query($dataArray); } - private function buildHeader($content) { $header = "POST /1/messages.json HTTP/1.1\r\n"; $header .= "Host: api.pushover.net\r\n"; $header .= "Content-Type: application/x-www-form-urlencoded\r\n"; - $header .= "Content-Length: " . strlen($content) . "\r\n"; + $header .= "Content-Length: " . \strlen($content) . "\r\n"; $header .= "\r\n"; - return $header; } - protected function write(array $record) { foreach ($this->users as $user) { $this->user = $user; - parent::write($record); $this->closeSocket(); } - $this->user = null; } - public function setHighPriorityLevel($value) { $this->highPriorityLevel = $value; } - public function setEmergencyLevel($value) { $this->emergencyLevel = $value; } - /** * Use the formatted message? * @param bool $value diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/RavenHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/RavenHandler.php similarity index 72% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/RavenHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/RavenHandler.php index 9d24dfe..e44b7db 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/RavenHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/RavenHandler.php @@ -8,114 +8,87 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler; -namespace Monolog\Handler; - -use Monolog\Formatter\LineFormatter; -use Monolog\Formatter\FormatterInterface; -use Monolog\Logger; -use Raven_Client; - +use WPMailSMTP\Vendor\Monolog\Formatter\LineFormatter; +use WPMailSMTP\Vendor\Monolog\Formatter\FormatterInterface; +use WPMailSMTP\Vendor\Monolog\Logger; +use WPMailSMTP\Vendor\Raven_Client; /** * Handler to send messages to a Sentry (https://github.com/getsentry/sentry) server * using sentry-php (https://github.com/getsentry/sentry-php) * * @author Marc Abramowitz */ -class RavenHandler extends AbstractProcessingHandler +class RavenHandler extends \WPMailSMTP\Vendor\Monolog\Handler\AbstractProcessingHandler { /** * Translates Monolog log levels to Raven log levels. */ - protected $logLevels = array( - Logger::DEBUG => Raven_Client::DEBUG, - Logger::INFO => Raven_Client::INFO, - Logger::NOTICE => Raven_Client::INFO, - Logger::WARNING => Raven_Client::WARNING, - Logger::ERROR => Raven_Client::ERROR, - Logger::CRITICAL => Raven_Client::FATAL, - Logger::ALERT => Raven_Client::FATAL, - Logger::EMERGENCY => Raven_Client::FATAL, - ); - + protected $logLevels = array(\WPMailSMTP\Vendor\Monolog\Logger::DEBUG => \WPMailSMTP\Vendor\Raven_Client::DEBUG, \WPMailSMTP\Vendor\Monolog\Logger::INFO => \WPMailSMTP\Vendor\Raven_Client::INFO, \WPMailSMTP\Vendor\Monolog\Logger::NOTICE => \WPMailSMTP\Vendor\Raven_Client::INFO, \WPMailSMTP\Vendor\Monolog\Logger::WARNING => \WPMailSMTP\Vendor\Raven_Client::WARNING, \WPMailSMTP\Vendor\Monolog\Logger::ERROR => \WPMailSMTP\Vendor\Raven_Client::ERROR, \WPMailSMTP\Vendor\Monolog\Logger::CRITICAL => \WPMailSMTP\Vendor\Raven_Client::FATAL, \WPMailSMTP\Vendor\Monolog\Logger::ALERT => \WPMailSMTP\Vendor\Raven_Client::FATAL, \WPMailSMTP\Vendor\Monolog\Logger::EMERGENCY => \WPMailSMTP\Vendor\Raven_Client::FATAL); /** * @var string should represent the current version of the calling * software. Can be any string (git commit, version number) */ protected $release; - /** * @var Raven_Client the client object that sends the message to the server */ protected $ravenClient; - /** * @var LineFormatter The formatter to use for the logs generated via handleBatch() */ protected $batchFormatter; - /** * @param Raven_Client $ravenClient * @param int $level The minimum logging level at which this handler will be triggered * @param bool $bubble Whether the messages that are handled can bubble up the stack or not */ - public function __construct(Raven_Client $ravenClient, $level = Logger::DEBUG, $bubble = true) + public function __construct(\WPMailSMTP\Vendor\Raven_Client $ravenClient, $level = \WPMailSMTP\Vendor\Monolog\Logger::DEBUG, $bubble = \true) { - @trigger_error('The Monolog\Handler\RavenHandler class is deprecated. You should rather upgrade to the sentry/sentry 2.x and use Sentry\Monolog\Handler, see https://github.com/getsentry/sentry-php/blob/master/src/Monolog/Handler.php', E_USER_DEPRECATED); - + @\trigger_error('The Monolog\\Handler\\RavenHandler class is deprecated. You should rather upgrade to the sentry/sentry 2.x and use Sentry\\Monolog\\Handler, see https://github.com/getsentry/sentry-php/blob/master/src/Monolog/Handler.php', \E_USER_DEPRECATED); parent::__construct($level, $bubble); - $this->ravenClient = $ravenClient; } - /** * {@inheritdoc} */ public function handleBatch(array $records) { $level = $this->level; - // filter records based on their level - $records = array_filter($records, function ($record) use ($level) { + $records = \array_filter($records, function ($record) use($level) { return $record['level'] >= $level; }); - if (!$records) { return; } - // the record with the highest severity is the "main" one - $record = array_reduce($records, function ($highest, $record) { + $record = \array_reduce($records, function ($highest, $record) { if (null === $highest || $record['level'] > $highest['level']) { return $record; } - return $highest; }); - // the other ones are added as a context item $logs = array(); foreach ($records as $r) { $logs[] = $this->processRecord($r); } - if ($logs) { $record['context']['logs'] = (string) $this->getBatchFormatter()->formatBatch($logs); } - $this->handle($record); } - /** * Sets the formatter for the logs generated by handleBatch(). * * @param FormatterInterface $formatter */ - public function setBatchFormatter(FormatterInterface $formatter) + public function setBatchFormatter(\WPMailSMTP\Vendor\Monolog\Formatter\FormatterInterface $formatter) { $this->batchFormatter = $formatter; } - /** * Gets the formatter for the logs generated by handleBatch(). * @@ -126,25 +99,23 @@ class RavenHandler extends AbstractProcessingHandler if (!$this->batchFormatter) { $this->batchFormatter = $this->getDefaultBatchFormatter(); } - return $this->batchFormatter; } - /** * {@inheritdoc} */ protected function write(array $record) { - $previousUserContext = false; + $previousUserContext = \false; $options = array(); $options['level'] = $this->logLevels[$record['level']]; $options['tags'] = array(); if (!empty($record['extra']['tags'])) { - $options['tags'] = array_merge($options['tags'], $record['extra']['tags']); + $options['tags'] = \array_merge($options['tags'], $record['extra']['tags']); unset($record['extra']['tags']); } if (!empty($record['context']['tags'])) { - $options['tags'] = array_merge($options['tags'], $record['context']['tags']); + $options['tags'] = \array_merge($options['tags'], $record['context']['tags']); unset($record['context']['tags']); } if (!empty($record['context']['fingerprint'])) { @@ -176,31 +147,26 @@ class RavenHandler extends AbstractProcessingHandler if (!empty($record['extra'])) { $options['extra']['extra'] = $record['extra']; } - if (!empty($this->release) && !isset($options['release'])) { $options['release'] = $this->release; } - - if (isset($record['context']['exception']) && ($record['context']['exception'] instanceof \Exception || (PHP_VERSION_ID >= 70000 && $record['context']['exception'] instanceof \Throwable))) { + if (isset($record['context']['exception']) && ($record['context']['exception'] instanceof \Exception || \PHP_VERSION_ID >= 70000 && $record['context']['exception'] instanceof \Throwable)) { $options['message'] = $record['formatted']; $this->ravenClient->captureException($record['context']['exception'], $options); } else { $this->ravenClient->captureMessage($record['formatted'], array(), $options); } - - if ($previousUserContext !== false) { + if ($previousUserContext !== \false) { $this->ravenClient->user_context($previousUserContext); } } - /** * {@inheritDoc} */ protected function getDefaultFormatter() { - return new LineFormatter('[%channel%] %message%'); + return new \WPMailSMTP\Vendor\Monolog\Formatter\LineFormatter('[%channel%] %message%'); } - /** * Gets the default formatter for the logs generated by handleBatch(). * @@ -208,9 +174,8 @@ class RavenHandler extends AbstractProcessingHandler */ protected function getDefaultBatchFormatter() { - return new LineFormatter(); + return new \WPMailSMTP\Vendor\Monolog\Formatter\LineFormatter(); } - /** * Gets extra parameters supported by Raven that can be found in "extra" and "context" * @@ -220,7 +185,6 @@ class RavenHandler extends AbstractProcessingHandler { return array('contexts', 'checksum', 'release', 'event_id'); } - /** * @param string $value * @return self @@ -228,7 +192,6 @@ class RavenHandler extends AbstractProcessingHandler public function setRelease($value) { $this->release = $value; - return $this; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/RedisHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/RedisHandler.php similarity index 69% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/RedisHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/RedisHandler.php index bb00db5..d5e2991 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/RedisHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/RedisHandler.php @@ -8,12 +8,10 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler; -namespace Monolog\Handler; - -use Monolog\Formatter\LineFormatter; -use Monolog\Logger; - +use WPMailSMTP\Vendor\Monolog\Formatter\LineFormatter; +use WPMailSMTP\Vendor\Monolog\Logger; /** * Logs to a Redis key using rpush * @@ -25,12 +23,11 @@ use Monolog\Logger; * * @author Thomas Tourlourat */ -class RedisHandler extends AbstractProcessingHandler +class RedisHandler extends \WPMailSMTP\Vendor\Monolog\Handler\AbstractProcessingHandler { private $redisClient; private $redisKey; protected $capSize; - /** * @param \Predis\Client|\Redis $redis The redis instance * @param string $key The key name to push records to @@ -38,19 +35,16 @@ class RedisHandler extends AbstractProcessingHandler * @param bool $bubble Whether the messages that are handled can bubble up the stack or not * @param int $capSize Number of entries to limit list size to */ - public function __construct($redis, $key, $level = Logger::DEBUG, $bubble = true, $capSize = false) + public function __construct($redis, $key, $level = \WPMailSMTP\Vendor\Monolog\Logger::DEBUG, $bubble = \true, $capSize = \false) { - if (!(($redis instanceof \Predis\Client) || ($redis instanceof \Redis))) { - throw new \InvalidArgumentException('Predis\Client or Redis instance required'); + if (!($redis instanceof \WPMailSMTP\Vendor\Predis\Client || $redis instanceof \Redis)) { + throw new \InvalidArgumentException('Predis\\Client or Redis instance required'); } - $this->redisClient = $redis; $this->redisKey = $key; $this->capSize = $capSize; - parent::__construct($level, $bubble); } - /** * {@inheritDoc} */ @@ -62,7 +56,6 @@ class RedisHandler extends AbstractProcessingHandler $this->redisClient->rpush($this->redisKey, $record["formatted"]); } } - /** * Write and cap the collection * Writes the record to the redis list and caps its @@ -73,26 +66,22 @@ class RedisHandler extends AbstractProcessingHandler protected function writeCapped(array $record) { if ($this->redisClient instanceof \Redis) { - $mode = defined('\Redis::MULTI') ? \Redis::MULTI : 1; - $this->redisClient->multi($mode) - ->rpush($this->redisKey, $record["formatted"]) - ->ltrim($this->redisKey, -$this->capSize, -1) - ->exec(); + $mode = \defined('\\Redis::MULTI') ? \Redis::MULTI : 1; + $this->redisClient->multi($mode)->rpush($this->redisKey, $record["formatted"])->ltrim($this->redisKey, -$this->capSize, -1)->exec(); } else { $redisKey = $this->redisKey; $capSize = $this->capSize; - $this->redisClient->transaction(function ($tx) use ($record, $redisKey, $capSize) { + $this->redisClient->transaction(function ($tx) use($record, $redisKey, $capSize) { $tx->rpush($redisKey, $record["formatted"]); $tx->ltrim($redisKey, -$capSize, -1); }); } } - /** * {@inheritDoc} */ protected function getDefaultFormatter() { - return new LineFormatter(); + return new \WPMailSMTP\Vendor\Monolog\Formatter\LineFormatter(); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/RollbarHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/RollbarHandler.php similarity index 63% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/RollbarHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/RollbarHandler.php index 65073ff..d01f04d 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/RollbarHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/RollbarHandler.php @@ -8,13 +8,11 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler; -namespace Monolog\Handler; - -use RollbarNotifier; +use WPMailSMTP\Vendor\RollbarNotifier; use Exception; -use Monolog\Logger; - +use WPMailSMTP\Vendor\Monolog\Logger; /** * Sends errors to Rollbar * @@ -31,7 +29,7 @@ use Monolog\Logger; * * @author Paul Statezny */ -class RollbarHandler extends AbstractProcessingHandler +class RollbarHandler extends \WPMailSMTP\Vendor\Monolog\Handler\AbstractProcessingHandler { /** * Rollbar notifier @@ -39,39 +37,24 @@ class RollbarHandler extends AbstractProcessingHandler * @var RollbarNotifier */ protected $rollbarNotifier; - - protected $levelMap = array( - Logger::DEBUG => 'debug', - Logger::INFO => 'info', - Logger::NOTICE => 'info', - Logger::WARNING => 'warning', - Logger::ERROR => 'error', - Logger::CRITICAL => 'critical', - Logger::ALERT => 'critical', - Logger::EMERGENCY => 'critical', - ); - + protected $levelMap = array(\WPMailSMTP\Vendor\Monolog\Logger::DEBUG => 'debug', \WPMailSMTP\Vendor\Monolog\Logger::INFO => 'info', \WPMailSMTP\Vendor\Monolog\Logger::NOTICE => 'info', \WPMailSMTP\Vendor\Monolog\Logger::WARNING => 'warning', \WPMailSMTP\Vendor\Monolog\Logger::ERROR => 'error', \WPMailSMTP\Vendor\Monolog\Logger::CRITICAL => 'critical', \WPMailSMTP\Vendor\Monolog\Logger::ALERT => 'critical', \WPMailSMTP\Vendor\Monolog\Logger::EMERGENCY => 'critical'); /** * Records whether any log records have been added since the last flush of the rollbar notifier * * @var bool */ - private $hasRecords = false; - - protected $initialized = false; - + private $hasRecords = \false; + protected $initialized = \false; /** * @param RollbarNotifier $rollbarNotifier RollbarNotifier object constructed with valid token * @param int $level The minimum logging level at which this handler will be triggered * @param bool $bubble Whether the messages that are handled can bubble up the stack or not */ - public function __construct(RollbarNotifier $rollbarNotifier, $level = Logger::ERROR, $bubble = true) + public function __construct(\WPMailSMTP\Vendor\RollbarNotifier $rollbarNotifier, $level = \WPMailSMTP\Vendor\Monolog\Logger::ERROR, $bubble = \true) { $this->rollbarNotifier = $rollbarNotifier; - parent::__construct($level, $bubble); } - /** * {@inheritdoc} */ @@ -79,49 +62,33 @@ class RollbarHandler extends AbstractProcessingHandler { if (!$this->initialized) { // __destructor() doesn't get called on Fatal errors - register_shutdown_function(array($this, 'close')); - $this->initialized = true; + \register_shutdown_function(array($this, 'close')); + $this->initialized = \true; } - $context = $record['context']; $payload = array(); if (isset($context['payload'])) { $payload = $context['payload']; unset($context['payload']); } - $context = array_merge($context, $record['extra'], array( - 'level' => $this->levelMap[$record['level']], - 'monolog_level' => $record['level_name'], - 'channel' => $record['channel'], - 'datetime' => $record['datetime']->format('U'), - )); - - if (isset($context['exception']) && $context['exception'] instanceof Exception) { + $context = \array_merge($context, $record['extra'], array('level' => $this->levelMap[$record['level']], 'monolog_level' => $record['level_name'], 'channel' => $record['channel'], 'datetime' => $record['datetime']->format('U'))); + if (isset($context['exception']) && $context['exception'] instanceof \Exception) { $payload['level'] = $context['level']; $exception = $context['exception']; unset($context['exception']); - $this->rollbarNotifier->report_exception($exception, $context, $payload); } else { - $this->rollbarNotifier->report_message( - $record['message'], - $context['level'], - $context, - $payload - ); + $this->rollbarNotifier->report_message($record['message'], $context['level'], $context, $payload); } - - $this->hasRecords = true; + $this->hasRecords = \true; } - public function flush() { if ($this->hasRecords) { $this->rollbarNotifier->flush(); - $this->hasRecords = false; + $this->hasRecords = \false; } } - /** * {@inheritdoc} */ @@ -129,16 +96,12 @@ class RollbarHandler extends AbstractProcessingHandler { $this->flush(); } - /** * {@inheritdoc} */ public function reset() { $this->flush(); - parent::reset(); } - - } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php similarity index 60% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php index b8253ba..143413a 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php @@ -8,12 +8,10 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler; -namespace Monolog\Handler; - -use Monolog\Logger; -use Monolog\Utils; - +use WPMailSMTP\Vendor\Monolog\Logger; +use WPMailSMTP\Vendor\Monolog\Utils; /** * Stores logs to files that are rotated every day and a limited number of files are kept. * @@ -23,19 +21,17 @@ use Monolog\Utils; * @author Christophe Coevoet * @author Jordi Boggiano */ -class RotatingFileHandler extends StreamHandler +class RotatingFileHandler extends \WPMailSMTP\Vendor\Monolog\Handler\StreamHandler { const FILE_PER_DAY = 'Y-m-d'; const FILE_PER_MONTH = 'Y-m'; const FILE_PER_YEAR = 'Y'; - protected $filename; protected $maxFiles; protected $mustRotate; protected $nextRotation; protected $filenameFormat; protected $dateFormat; - /** * @param string $filename * @param int $maxFiles The maximal amount of files to keep (0 means unlimited) @@ -44,64 +40,48 @@ class RotatingFileHandler extends StreamHandler * @param int|null $filePermission Optional file permissions (default (0644) are only for owner read/write) * @param bool $useLocking Try to lock log file before doing any writes */ - public function __construct($filename, $maxFiles = 0, $level = Logger::DEBUG, $bubble = true, $filePermission = null, $useLocking = false) + public function __construct($filename, $maxFiles = 0, $level = \WPMailSMTP\Vendor\Monolog\Logger::DEBUG, $bubble = \true, $filePermission = null, $useLocking = \false) { - $this->filename = Utils::canonicalizePath($filename); + $this->filename = \WPMailSMTP\Vendor\Monolog\Utils::canonicalizePath($filename); $this->maxFiles = (int) $maxFiles; $this->nextRotation = new \DateTime('tomorrow'); $this->filenameFormat = '{filename}-{date}'; $this->dateFormat = 'Y-m-d'; - parent::__construct($this->getTimedFilename(), $level, $bubble, $filePermission, $useLocking); } - /** * {@inheritdoc} */ public function close() { parent::close(); - - if (true === $this->mustRotate) { + if (\true === $this->mustRotate) { $this->rotate(); } } - /** * {@inheritdoc} */ public function reset() { parent::reset(); - - if (true === $this->mustRotate) { + if (\true === $this->mustRotate) { $this->rotate(); } } - public function setFilenameFormat($filenameFormat, $dateFormat) { - if (!preg_match('{^Y(([/_.-]?m)([/_.-]?d)?)?$}', $dateFormat)) { - trigger_error( - 'Invalid date format - format must be one of '. - 'RotatingFileHandler::FILE_PER_DAY ("Y-m-d"), RotatingFileHandler::FILE_PER_MONTH ("Y-m") '. - 'or RotatingFileHandler::FILE_PER_YEAR ("Y"), or you can set one of the '. - 'date formats using slashes, underscores and/or dots instead of dashes.', - E_USER_DEPRECATED - ); + if (!\preg_match('{^Y(([/_.-]?m)([/_.-]?d)?)?$}', $dateFormat)) { + \trigger_error('Invalid date format - format must be one of ' . 'RotatingFileHandler::FILE_PER_DAY ("Y-m-d"), RotatingFileHandler::FILE_PER_MONTH ("Y-m") ' . 'or RotatingFileHandler::FILE_PER_YEAR ("Y"), or you can set one of the ' . 'date formats using slashes, underscores and/or dots instead of dashes.', \E_USER_DEPRECATED); } - if (substr_count($filenameFormat, '{date}') === 0) { - trigger_error( - 'Invalid filename format - format should contain at least `{date}`, because otherwise rotating is impossible.', - E_USER_DEPRECATED - ); + if (\substr_count($filenameFormat, '{date}') === 0) { + \trigger_error('Invalid filename format - format should contain at least `{date}`, because otherwise rotating is impossible.', \E_USER_DEPRECATED); } $this->filenameFormat = $filenameFormat; $this->dateFormat = $dateFormat; $this->url = $this->getTimedFilename(); $this->close(); } - /** * {@inheritdoc} */ @@ -109,17 +89,14 @@ class RotatingFileHandler extends StreamHandler { // on the first record written, if the log is new, we should rotate (once per day) if (null === $this->mustRotate) { - $this->mustRotate = !file_exists($this->url); + $this->mustRotate = !\file_exists($this->url); } - if ($this->nextRotation < $record['datetime']) { - $this->mustRotate = true; + $this->mustRotate = \true; $this->close(); } - parent::write($record); } - /** * Rotates the files. */ @@ -128,64 +105,47 @@ class RotatingFileHandler extends StreamHandler // update filename $this->url = $this->getTimedFilename(); $this->nextRotation = new \DateTime('tomorrow'); - // skip GC of old logs if files are unlimited if (0 === $this->maxFiles) { return; } - - $logFiles = glob($this->getGlobPattern()); - if ($this->maxFiles >= count($logFiles)) { + $logFiles = \glob($this->getGlobPattern()); + if ($this->maxFiles >= \count($logFiles)) { // no files to remove return; } - // Sorting the files by name to remove the older ones - usort($logFiles, function ($a, $b) { - return strcmp($b, $a); + \usort($logFiles, function ($a, $b) { + return \strcmp($b, $a); }); - - foreach (array_slice($logFiles, $this->maxFiles) as $file) { - if (is_writable($file)) { + foreach (\array_slice($logFiles, $this->maxFiles) as $file) { + if (\is_writable($file)) { // suppress errors here as unlink() might fail if two processes // are cleaning up/rotating at the same time - set_error_handler(function ($errno, $errstr, $errfile, $errline) {}); - unlink($file); - restore_error_handler(); + \set_error_handler(function ($errno, $errstr, $errfile, $errline) { + }); + \unlink($file); + \restore_error_handler(); } } - - $this->mustRotate = false; + $this->mustRotate = \false; } - protected function getTimedFilename() { - $fileInfo = pathinfo($this->filename); - $timedFilename = str_replace( - array('{filename}', '{date}'), - array($fileInfo['filename'], date($this->dateFormat)), - $fileInfo['dirname'] . '/' . $this->filenameFormat - ); - + $fileInfo = \pathinfo($this->filename); + $timedFilename = \str_replace(array('{filename}', '{date}'), array($fileInfo['filename'], \date($this->dateFormat)), $fileInfo['dirname'] . '/' . $this->filenameFormat); if (!empty($fileInfo['extension'])) { - $timedFilename .= '.'.$fileInfo['extension']; + $timedFilename .= '.' . $fileInfo['extension']; } - return $timedFilename; } - protected function getGlobPattern() { - $fileInfo = pathinfo($this->filename); - $glob = str_replace( - array('{filename}', '{date}'), - array($fileInfo['filename'], '[0-9][0-9][0-9][0-9]*'), - $fileInfo['dirname'] . '/' . $this->filenameFormat - ); + $fileInfo = \pathinfo($this->filename); + $glob = \str_replace(array('{filename}', '{date}'), array($fileInfo['filename'], '[0-9][0-9][0-9][0-9]*'), $fileInfo['dirname'] . '/' . $this->filenameFormat); if (!empty($fileInfo['extension'])) { - $glob .= '.'.$fileInfo['extension']; + $glob .= '.' . $fileInfo['extension']; } - return $glob; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/SamplingHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SamplingHandler.php similarity index 70% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/SamplingHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SamplingHandler.php index b547ed7..2d2d629 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/SamplingHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SamplingHandler.php @@ -8,11 +8,9 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler; -namespace Monolog\Handler; - -use Monolog\Formatter\FormatterInterface; - +use WPMailSMTP\Vendor\Monolog\Formatter\FormatterInterface; /** * Sampling handler * @@ -27,18 +25,16 @@ use Monolog\Formatter\FormatterInterface; * @author Bryan Davis * @author Kunal Mehta */ -class SamplingHandler extends AbstractHandler +class SamplingHandler extends \WPMailSMTP\Vendor\Monolog\Handler\AbstractHandler { /** * @var callable|HandlerInterface $handler */ protected $handler; - /** * @var int $factor */ protected $factor; - /** * @param callable|HandlerInterface $handler Handler or factory callable($record|null, $samplingHandler). * @param int $factor Sample factor @@ -48,32 +44,26 @@ class SamplingHandler extends AbstractHandler parent::__construct(); $this->handler = $handler; $this->factor = $factor; - - if (!$this->handler instanceof HandlerInterface && !is_callable($this->handler)) { - throw new \RuntimeException("The given handler (".json_encode($this->handler).") is not a callable nor a Monolog\Handler\HandlerInterface object"); + if (!$this->handler instanceof \WPMailSMTP\Vendor\Monolog\Handler\HandlerInterface && !\is_callable($this->handler)) { + throw new \RuntimeException("The given handler (" . \json_encode($this->handler) . ") is not a callable nor a Monolog\\Handler\\HandlerInterface object"); } } - public function isHandling(array $record) { return $this->getHandler($record)->isHandling($record); } - public function handle(array $record) { - if ($this->isHandling($record) && mt_rand(1, $this->factor) === 1) { + if ($this->isHandling($record) && \mt_rand(1, $this->factor) === 1) { if ($this->processors) { foreach ($this->processors as $processor) { - $record = call_user_func($processor, $record); + $record = \call_user_func($processor, $record); } } - $this->getHandler($record)->handle($record); } - - return false === $this->bubble; + return \false === $this->bubble; } - /** * Return the nested handler * @@ -83,26 +73,22 @@ class SamplingHandler extends AbstractHandler */ public function getHandler(array $record = null) { - if (!$this->handler instanceof HandlerInterface) { - $this->handler = call_user_func($this->handler, $record, $this); - if (!$this->handler instanceof HandlerInterface) { + if (!$this->handler instanceof \WPMailSMTP\Vendor\Monolog\Handler\HandlerInterface) { + $this->handler = \call_user_func($this->handler, $record, $this); + if (!$this->handler instanceof \WPMailSMTP\Vendor\Monolog\Handler\HandlerInterface) { throw new \RuntimeException("The factory callable should return a HandlerInterface"); } } - return $this->handler; } - /** * {@inheritdoc} */ - public function setFormatter(FormatterInterface $formatter) + public function setFormatter(\WPMailSMTP\Vendor\Monolog\Formatter\FormatterInterface $formatter) { $this->getHandler()->setFormatter($formatter); - return $this; } - /** * {@inheritdoc} */ diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/Slack/SlackRecord.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/Slack/SlackRecord.php similarity index 71% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/Slack/SlackRecord.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/Slack/SlackRecord.php index 3945550..21ef915 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/Slack/SlackRecord.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/Slack/SlackRecord.php @@ -8,14 +8,12 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler\Slack; -namespace Monolog\Handler\Slack; - -use Monolog\Logger; -use Monolog\Utils; -use Monolog\Formatter\NormalizerFormatter; -use Monolog\Formatter\FormatterInterface; - +use WPMailSMTP\Vendor\Monolog\Logger; +use WPMailSMTP\Vendor\Monolog\Utils; +use WPMailSMTP\Vendor\Monolog\Formatter\NormalizerFormatter; +use WPMailSMTP\Vendor\Monolog\Formatter\FormatterInterface; /** * Slack record utility helping to log to Slack webhooks or API. * @@ -27,155 +25,115 @@ use Monolog\Formatter\FormatterInterface; class SlackRecord { const COLOR_DANGER = 'danger'; - const COLOR_WARNING = 'warning'; - const COLOR_GOOD = 'good'; - const COLOR_DEFAULT = '#e3e4e6'; - /** * Slack channel (encoded ID or name) * @var string|null */ private $channel; - /** * Name of a bot * @var string|null */ private $username; - /** * User icon e.g. 'ghost', 'http://example.com/user.png' * @var string */ private $userIcon; - /** * Whether the message should be added to Slack as attachment (plain text otherwise) * @var bool */ private $useAttachment; - /** * Whether the the context/extra messages added to Slack as attachments are in a short style * @var bool */ private $useShortAttachment; - /** * Whether the attachment should include context and extra data * @var bool */ private $includeContextAndExtra; - /** * Dot separated list of fields to exclude from slack message. E.g. ['context.field1', 'extra.field2'] * @var array */ private $excludeFields; - /** * @var FormatterInterface */ private $formatter; - /** * @var NormalizerFormatter */ private $normalizerFormatter; - - public function __construct($channel = null, $username = null, $useAttachment = true, $userIcon = null, $useShortAttachment = false, $includeContextAndExtra = false, array $excludeFields = array(), FormatterInterface $formatter = null) + public function __construct($channel = null, $username = null, $useAttachment = \true, $userIcon = null, $useShortAttachment = \false, $includeContextAndExtra = \false, array $excludeFields = array(), \WPMailSMTP\Vendor\Monolog\Formatter\FormatterInterface $formatter = null) { $this->channel = $channel; $this->username = $username; - $this->userIcon = trim($userIcon, ':'); + $this->userIcon = \trim($userIcon, ':'); $this->useAttachment = $useAttachment; $this->useShortAttachment = $useShortAttachment; $this->includeContextAndExtra = $includeContextAndExtra; $this->excludeFields = $excludeFields; $this->formatter = $formatter; - if ($this->includeContextAndExtra) { - $this->normalizerFormatter = new NormalizerFormatter(); + $this->normalizerFormatter = new \WPMailSMTP\Vendor\Monolog\Formatter\NormalizerFormatter(); } } - public function getSlackData(array $record) { $dataArray = array(); $record = $this->excludeFields($record); - if ($this->username) { $dataArray['username'] = $this->username; } - if ($this->channel) { $dataArray['channel'] = $this->channel; } - if ($this->formatter && !$this->useAttachment) { $message = $this->formatter->format($record); } else { $message = $record['message']; } - if ($this->useAttachment) { - $attachment = array( - 'fallback' => $message, - 'text' => $message, - 'color' => $this->getAttachmentColor($record['level']), - 'fields' => array(), - 'mrkdwn_in' => array('fields'), - 'ts' => $record['datetime']->getTimestamp() - ); - + $attachment = array('fallback' => $message, 'text' => $message, 'color' => $this->getAttachmentColor($record['level']), 'fields' => array(), 'mrkdwn_in' => array('fields'), 'ts' => $record['datetime']->getTimestamp()); if ($this->useShortAttachment) { $attachment['title'] = $record['level_name']; } else { $attachment['title'] = 'Message'; $attachment['fields'][] = $this->generateAttachmentField('Level', $record['level_name']); } - - if ($this->includeContextAndExtra) { foreach (array('extra', 'context') as $key) { if (empty($record[$key])) { continue; } - if ($this->useShortAttachment) { - $attachment['fields'][] = $this->generateAttachmentField( - $key, - $record[$key] - ); + $attachment['fields'][] = $this->generateAttachmentField($key, $record[$key]); } else { // Add all extra fields as individual fields in attachment - $attachment['fields'] = array_merge( - $attachment['fields'], - $this->generateAttachmentFields($record[$key]) - ); + $attachment['fields'] = \array_merge($attachment['fields'], $this->generateAttachmentFields($record[$key])); } } } - $dataArray['attachments'] = array($attachment); } else { $dataArray['text'] = $message; } - if ($this->userIcon) { - if (filter_var($this->userIcon, FILTER_VALIDATE_URL)) { + if (\filter_var($this->userIcon, \FILTER_VALIDATE_URL)) { $dataArray['icon_url'] = $this->userIcon; } else { $dataArray['icon_emoji'] = ":{$this->userIcon}:"; } } - return $dataArray; } - /** * Returned a Slack message attachment color associated with * provided level. @@ -185,18 +143,17 @@ class SlackRecord */ public function getAttachmentColor($level) { - switch (true) { - case $level >= Logger::ERROR: + switch (\true) { + case $level >= \WPMailSMTP\Vendor\Monolog\Logger::ERROR: return self::COLOR_DANGER; - case $level >= Logger::WARNING: + case $level >= \WPMailSMTP\Vendor\Monolog\Logger::WARNING: return self::COLOR_WARNING; - case $level >= Logger::INFO: + case $level >= \WPMailSMTP\Vendor\Monolog\Logger::INFO: return self::COLOR_GOOD; default: return self::COLOR_DEFAULT; } } - /** * Stringifies an array of key/value pairs to be used in attachment fields * @@ -207,30 +164,24 @@ class SlackRecord public function stringify($fields) { $normalized = $this->normalizerFormatter->format($fields); - $prettyPrintFlag = defined('JSON_PRETTY_PRINT') ? JSON_PRETTY_PRINT : 128; + $prettyPrintFlag = \defined('JSON_PRETTY_PRINT') ? \JSON_PRETTY_PRINT : 128; $flags = 0; - if (PHP_VERSION_ID >= 50400) { - $flags = JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE; + if (\PHP_VERSION_ID >= 50400) { + $flags = \JSON_UNESCAPED_SLASHES | \JSON_UNESCAPED_UNICODE; } - - $hasSecondDimension = count(array_filter($normalized, 'is_array')); - $hasNonNumericKeys = !count(array_filter(array_keys($normalized), 'is_numeric')); - - return $hasSecondDimension || $hasNonNumericKeys - ? Utils::jsonEncode($normalized, $prettyPrintFlag | $flags) - : Utils::jsonEncode($normalized, $flags); + $hasSecondDimension = \count(\array_filter($normalized, 'is_array')); + $hasNonNumericKeys = !\count(\array_filter(\array_keys($normalized), 'is_numeric')); + return $hasSecondDimension || $hasNonNumericKeys ? \WPMailSMTP\Vendor\Monolog\Utils::jsonEncode($normalized, $prettyPrintFlag | $flags) : \WPMailSMTP\Vendor\Monolog\Utils::jsonEncode($normalized, $flags); } - /** * Sets the formatter * * @param FormatterInterface $formatter */ - public function setFormatter(FormatterInterface $formatter) + public function setFormatter(\WPMailSMTP\Vendor\Monolog\Formatter\FormatterInterface $formatter) { $this->formatter = $formatter; } - /** * Generates attachment field * @@ -241,17 +192,9 @@ class SlackRecord */ private function generateAttachmentField($title, $value) { - $value = is_array($value) - ? sprintf('```%s```', $this->stringify($value)) - : $value; - - return array( - 'title' => ucfirst($title), - 'value' => $value, - 'short' => false - ); + $value = \is_array($value) ? \sprintf('```%s```', $this->stringify($value)) : $value; + return array('title' => \ucfirst($title), 'value' => $value, 'short' => \false); } - /** * Generates a collection of attachment fields from array * @@ -265,10 +208,8 @@ class SlackRecord foreach ($this->normalizerFormatter->format($data) as $key => $value) { $fields[] = $this->generateAttachmentField($key, $value); } - return $fields; } - /** * Get a copy of record with fields excluded according to $this->excludeFields * @@ -279,9 +220,9 @@ class SlackRecord private function excludeFields(array $record) { foreach ($this->excludeFields as $field) { - $keys = explode('.', $field); - $node = &$record; - $lastKey = end($keys); + $keys = \explode('.', $field); + $node =& $record; + $lastKey = \end($keys); foreach ($keys as $key) { if (!isset($node[$key])) { break; @@ -290,10 +231,9 @@ class SlackRecord unset($node[$key]); break; } - $node = &$node[$key]; + $node =& $node[$key]; } } - return $record; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/SlackHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SlackHandler.php similarity index 75% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/SlackHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SlackHandler.php index 88c4c4d..8af2f08 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/SlackHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SlackHandler.php @@ -8,34 +8,30 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler; -namespace Monolog\Handler; - -use Monolog\Formatter\FormatterInterface; -use Monolog\Logger; -use Monolog\Utils; -use Monolog\Handler\Slack\SlackRecord; - +use WPMailSMTP\Vendor\Monolog\Formatter\FormatterInterface; +use WPMailSMTP\Vendor\Monolog\Logger; +use WPMailSMTP\Vendor\Monolog\Utils; +use WPMailSMTP\Vendor\Monolog\Handler\Slack\SlackRecord; /** * Sends notifications through Slack API * * @author Greg Kedzierski * @see https://api.slack.com/ */ -class SlackHandler extends SocketHandler +class SlackHandler extends \WPMailSMTP\Vendor\Monolog\Handler\SocketHandler { /** * Slack API token * @var string */ private $token; - /** * Instance of the SlackRecord util class preparing data for Slack API. * @var SlackRecord */ private $slackRecord; - /** * @param string $token Slack API token * @param string $channel Slack channel (encoded ID or name) @@ -49,38 +45,23 @@ class SlackHandler extends SocketHandler * @param array $excludeFields Dot separated list of fields to exclude from slack message. E.g. ['context.field1', 'extra.field2'] * @throws MissingExtensionException If no OpenSSL PHP extension configured */ - public function __construct($token, $channel, $username = null, $useAttachment = true, $iconEmoji = null, $level = Logger::CRITICAL, $bubble = true, $useShortAttachment = false, $includeContextAndExtra = false, array $excludeFields = array()) + public function __construct($token, $channel, $username = null, $useAttachment = \true, $iconEmoji = null, $level = \WPMailSMTP\Vendor\Monolog\Logger::CRITICAL, $bubble = \true, $useShortAttachment = \false, $includeContextAndExtra = \false, array $excludeFields = array()) { - if (!extension_loaded('openssl')) { - throw new MissingExtensionException('The OpenSSL PHP extension is required to use the SlackHandler'); + if (!\extension_loaded('openssl')) { + throw new \WPMailSMTP\Vendor\Monolog\Handler\MissingExtensionException('The OpenSSL PHP extension is required to use the SlackHandler'); } - parent::__construct('ssl://slack.com:443', $level, $bubble); - - $this->slackRecord = new SlackRecord( - $channel, - $username, - $useAttachment, - $iconEmoji, - $useShortAttachment, - $includeContextAndExtra, - $excludeFields, - $this->formatter - ); - + $this->slackRecord = new \WPMailSMTP\Vendor\Monolog\Handler\Slack\SlackRecord($channel, $username, $useAttachment, $iconEmoji, $useShortAttachment, $includeContextAndExtra, $excludeFields, $this->formatter); $this->token = $token; } - public function getSlackRecord() { return $this->slackRecord; } - public function getToken() { return $this->token; } - /** * {@inheritdoc} * @@ -90,10 +71,8 @@ class SlackHandler extends SocketHandler protected function generateDataStream($record) { $content = $this->buildContent($record); - return $this->buildHeader($content) . $content; } - /** * Builds the body of API call * @@ -103,10 +82,8 @@ class SlackHandler extends SocketHandler private function buildContent($record) { $dataArray = $this->prepareContentData($record); - - return http_build_query($dataArray); + return \http_build_query($dataArray); } - /** * Prepares content data * @@ -117,14 +94,11 @@ class SlackHandler extends SocketHandler { $dataArray = $this->slackRecord->getSlackData($record); $dataArray['token'] = $this->token; - if (!empty($dataArray['attachments'])) { - $dataArray['attachments'] = Utils::jsonEncode($dataArray['attachments']); + $dataArray['attachments'] = \WPMailSMTP\Vendor\Monolog\Utils::jsonEncode($dataArray['attachments']); } - return $dataArray; } - /** * Builds the header of the API Call * @@ -136,12 +110,10 @@ class SlackHandler extends SocketHandler $header = "POST /api/chat.postMessage HTTP/1.1\r\n"; $header .= "Host: slack.com\r\n"; $header .= "Content-Type: application/x-www-form-urlencoded\r\n"; - $header .= "Content-Length: " . strlen($content) . "\r\n"; + $header .= "Content-Length: " . \strlen($content) . "\r\n"; $header .= "\r\n"; - return $header; } - /** * {@inheritdoc} * @@ -152,7 +124,6 @@ class SlackHandler extends SocketHandler parent::write($record); $this->finalizeWrite(); } - /** * Finalizes the request by reading some bytes and then closing the socket * @@ -162,12 +133,11 @@ class SlackHandler extends SocketHandler protected function finalizeWrite() { $res = $this->getResource(); - if (is_resource($res)) { - @fread($res, 2048); + if (\is_resource($res)) { + @\fread($res, 2048); } $this->closeSocket(); } - /** * Returned a Slack message attachment color associated with * provided level. @@ -178,14 +148,9 @@ class SlackHandler extends SocketHandler */ protected function getAttachmentColor($level) { - trigger_error( - 'SlackHandler::getAttachmentColor() is deprecated. Use underlying SlackRecord instead.', - E_USER_DEPRECATED - ); - + \trigger_error('SlackHandler::getAttachmentColor() is deprecated. Use underlying SlackRecord instead.', \E_USER_DEPRECATED); return $this->slackRecord->getAttachmentColor($level); } - /** * Stringifies an array of key/value pairs to be used in attachment fields * @@ -195,27 +160,19 @@ class SlackHandler extends SocketHandler */ protected function stringify($fields) { - trigger_error( - 'SlackHandler::stringify() is deprecated. Use underlying SlackRecord instead.', - E_USER_DEPRECATED - ); - + \trigger_error('SlackHandler::stringify() is deprecated. Use underlying SlackRecord instead.', \E_USER_DEPRECATED); return $this->slackRecord->stringify($fields); } - - public function setFormatter(FormatterInterface $formatter) + public function setFormatter(\WPMailSMTP\Vendor\Monolog\Formatter\FormatterInterface $formatter) { parent::setFormatter($formatter); $this->slackRecord->setFormatter($formatter); - return $this; } - public function getFormatter() { $formatter = parent::getFormatter(); $this->slackRecord->setFormatter($formatter); - return $formatter; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php similarity index 64% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php index b87be99..104d9ad 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php @@ -8,34 +8,30 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler; -namespace Monolog\Handler; - -use Monolog\Formatter\FormatterInterface; -use Monolog\Logger; -use Monolog\Utils; -use Monolog\Handler\Slack\SlackRecord; - +use WPMailSMTP\Vendor\Monolog\Formatter\FormatterInterface; +use WPMailSMTP\Vendor\Monolog\Logger; +use WPMailSMTP\Vendor\Monolog\Utils; +use WPMailSMTP\Vendor\Monolog\Handler\Slack\SlackRecord; /** * Sends notifications through Slack Webhooks * * @author Haralan Dobrev * @see https://api.slack.com/incoming-webhooks */ -class SlackWebhookHandler extends AbstractProcessingHandler +class SlackWebhookHandler extends \WPMailSMTP\Vendor\Monolog\Handler\AbstractProcessingHandler { /** * Slack Webhook token * @var string */ private $webhookUrl; - /** * Instance of the SlackRecord util class preparing data for Slack API. * @var SlackRecord */ private $slackRecord; - /** * @param string $webhookUrl Slack Webhook URL * @param string|null $channel Slack channel (encoded ID or name) @@ -48,34 +44,20 @@ class SlackWebhookHandler extends AbstractProcessingHandler * @param bool $bubble Whether the messages that are handled can bubble up the stack or not * @param array $excludeFields Dot separated list of fields to exclude from slack message. E.g. ['context.field1', 'extra.field2'] */ - public function __construct($webhookUrl, $channel = null, $username = null, $useAttachment = true, $iconEmoji = null, $useShortAttachment = false, $includeContextAndExtra = false, $level = Logger::CRITICAL, $bubble = true, array $excludeFields = array()) + public function __construct($webhookUrl, $channel = null, $username = null, $useAttachment = \true, $iconEmoji = null, $useShortAttachment = \false, $includeContextAndExtra = \false, $level = \WPMailSMTP\Vendor\Monolog\Logger::CRITICAL, $bubble = \true, array $excludeFields = array()) { parent::__construct($level, $bubble); - $this->webhookUrl = $webhookUrl; - - $this->slackRecord = new SlackRecord( - $channel, - $username, - $useAttachment, - $iconEmoji, - $useShortAttachment, - $includeContextAndExtra, - $excludeFields, - $this->formatter - ); + $this->slackRecord = new \WPMailSMTP\Vendor\Monolog\Handler\Slack\SlackRecord($channel, $username, $useAttachment, $iconEmoji, $useShortAttachment, $includeContextAndExtra, $excludeFields, $this->formatter); } - public function getSlackRecord() { return $this->slackRecord; } - public function getWebhookUrl() { return $this->webhookUrl; } - /** * {@inheritdoc} * @@ -84,38 +66,25 @@ class SlackWebhookHandler extends AbstractProcessingHandler protected function write(array $record) { $postData = $this->slackRecord->getSlackData($record); - $postString = Utils::jsonEncode($postData); - - $ch = curl_init(); - $options = array( - CURLOPT_URL => $this->webhookUrl, - CURLOPT_POST => true, - CURLOPT_RETURNTRANSFER => true, - CURLOPT_HTTPHEADER => array('Content-type: application/json'), - CURLOPT_POSTFIELDS => $postString - ); - if (defined('CURLOPT_SAFE_UPLOAD')) { - $options[CURLOPT_SAFE_UPLOAD] = true; + $postString = \WPMailSMTP\Vendor\Monolog\Utils::jsonEncode($postData); + $ch = \curl_init(); + $options = array(\CURLOPT_URL => $this->webhookUrl, \CURLOPT_POST => \true, \CURLOPT_RETURNTRANSFER => \true, \CURLOPT_HTTPHEADER => array('Content-type: application/json'), \CURLOPT_POSTFIELDS => $postString); + if (\defined('CURLOPT_SAFE_UPLOAD')) { + $options[\CURLOPT_SAFE_UPLOAD] = \true; } - - curl_setopt_array($ch, $options); - - Curl\Util::execute($ch); + \curl_setopt_array($ch, $options); + \WPMailSMTP\Vendor\Monolog\Handler\Curl\Util::execute($ch); } - - public function setFormatter(FormatterInterface $formatter) + public function setFormatter(\WPMailSMTP\Vendor\Monolog\Formatter\FormatterInterface $formatter) { parent::setFormatter($formatter); $this->slackRecord->setFormatter($formatter); - return $this; } - public function getFormatter() { $formatter = parent::getFormatter(); $this->slackRecord->setFormatter($formatter); - return $formatter; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/SlackbotHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SlackbotHandler.php similarity index 66% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/SlackbotHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SlackbotHandler.php index d3352ea..c915d3f 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/SlackbotHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SlackbotHandler.php @@ -8,11 +8,9 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler; -namespace Monolog\Handler; - -use Monolog\Logger; - +use WPMailSMTP\Vendor\Monolog\Logger; /** * Sends notifications through Slack's Slackbot * @@ -22,26 +20,23 @@ use Monolog\Logger; * Therefore this handler will be removed on 2.x * Slack suggests to use webhooks instead. Please contact slack for more information. */ -class SlackbotHandler extends AbstractProcessingHandler +class SlackbotHandler extends \WPMailSMTP\Vendor\Monolog\Handler\AbstractProcessingHandler { /** * The slug of the Slack team * @var string */ private $slackTeam; - /** * Slackbot token * @var string */ private $token; - /** * Slack channel name * @var string */ private $channel; - /** * @param string $slackTeam Slack team slug * @param string $token Slackbot token @@ -49,16 +44,14 @@ class SlackbotHandler extends AbstractProcessingHandler * @param int $level The minimum logging level at which this handler will be triggered * @param bool $bubble Whether the messages that are handled can bubble up the stack or not */ - public function __construct($slackTeam, $token, $channel, $level = Logger::CRITICAL, $bubble = true) + public function __construct($slackTeam, $token, $channel, $level = \WPMailSMTP\Vendor\Monolog\Logger::CRITICAL, $bubble = \true) { - @trigger_error('SlackbotHandler is deprecated and will be removed on 2.x', E_USER_DEPRECATED); + @\trigger_error('SlackbotHandler is deprecated and will be removed on 2.x', \E_USER_DEPRECATED); parent::__construct($level, $bubble); - $this->slackTeam = $slackTeam; $this->token = $token; $this->channel = $channel; } - /** * {@inheritdoc} * @@ -66,19 +59,12 @@ class SlackbotHandler extends AbstractProcessingHandler */ protected function write(array $record) { - $slackbotUrl = sprintf( - 'https://%s.slack.com/services/hooks/slackbot?token=%s&channel=%s', - $this->slackTeam, - $this->token, - $this->channel - ); - - $ch = curl_init(); - curl_setopt($ch, CURLOPT_URL, $slackbotUrl); - curl_setopt($ch, CURLOPT_POST, true); - curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); - curl_setopt($ch, CURLOPT_POSTFIELDS, $record['message']); - - Curl\Util::execute($ch); + $slackbotUrl = \sprintf('https://%s.slack.com/services/hooks/slackbot?token=%s&channel=%s', $this->slackTeam, $this->token, $this->channel); + $ch = \curl_init(); + \curl_setopt($ch, \CURLOPT_URL, $slackbotUrl); + \curl_setopt($ch, \CURLOPT_POST, \true); + \curl_setopt($ch, \CURLOPT_RETURNTRANSFER, \true); + \curl_setopt($ch, \CURLOPT_POSTFIELDS, $record['message']); + \WPMailSMTP\Vendor\Monolog\Handler\Curl\Util::execute($ch); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/SocketHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SocketHandler.php similarity index 80% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/SocketHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SocketHandler.php index db50d97..877be7d 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/SocketHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SocketHandler.php @@ -8,18 +8,16 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler; -namespace Monolog\Handler; - -use Monolog\Logger; - +use WPMailSMTP\Vendor\Monolog\Logger; /** * Stores to any socket - uses fsockopen() or pfsockopen(). * * @author Pablo de Leon Belloc * @see http://php.net/manual/en/function.fsockopen.php */ -class SocketHandler extends AbstractProcessingHandler +class SocketHandler extends \WPMailSMTP\Vendor\Monolog\Handler\AbstractProcessingHandler { private $connectionString; private $connectionTimeout; @@ -28,23 +26,21 @@ class SocketHandler extends AbstractProcessingHandler private $writingTimeout = 10; private $lastSentBytes = null; private $chunkSize = null; - private $persistent = false; + private $persistent = \false; private $errno; private $errstr; private $lastWritingAt; - /** * @param string $connectionString Socket connection string * @param int $level The minimum logging level at which this handler will be triggered * @param bool $bubble Whether the messages that are handled can bubble up the stack or not */ - public function __construct($connectionString, $level = Logger::DEBUG, $bubble = true) + public function __construct($connectionString, $level = \WPMailSMTP\Vendor\Monolog\Logger::DEBUG, $bubble = \true) { parent::__construct($level, $bubble); $this->connectionString = $connectionString; - $this->connectionTimeout = (float) ini_get('default_socket_timeout'); + $this->connectionTimeout = (float) \ini_get('default_socket_timeout'); } - /** * Connect (if necessary) and write to the socket * @@ -59,7 +55,6 @@ class SocketHandler extends AbstractProcessingHandler $data = $this->generateDataStream($record); $this->writeToSocket($data); } - /** * We will not close a PersistentSocket instance so it can be reused in other requests. */ @@ -69,18 +64,16 @@ class SocketHandler extends AbstractProcessingHandler $this->closeSocket(); } } - /** * Close socket, if open */ public function closeSocket() { - if (is_resource($this->resource)) { - fclose($this->resource); + if (\is_resource($this->resource)) { + \fclose($this->resource); $this->resource = null; } } - /** * Set socket connection to nbe persistent. It only has effect before the connection is initiated. * @@ -90,7 +83,6 @@ class SocketHandler extends AbstractProcessingHandler { $this->persistent = (bool) $persistent; } - /** * Set connection timeout. Only has effect before we connect. * @@ -103,7 +95,6 @@ class SocketHandler extends AbstractProcessingHandler $this->validateTimeout($seconds); $this->connectionTimeout = (float) $seconds; } - /** * Set write timeout. Only has effect before we connect. * @@ -116,7 +107,6 @@ class SocketHandler extends AbstractProcessingHandler $this->validateTimeout($seconds); $this->timeout = (float) $seconds; } - /** * Set writing timeout. Only has effect during connection in the writing cycle. * @@ -127,7 +117,6 @@ class SocketHandler extends AbstractProcessingHandler $this->validateTimeout($seconds); $this->writingTimeout = (float) $seconds; } - /** * Set chunk size. Only has effect during connection in the writing cycle. * @@ -137,7 +126,6 @@ class SocketHandler extends AbstractProcessingHandler { $this->chunkSize = $bytes; } - /** * Get current connection string * @@ -147,7 +135,6 @@ class SocketHandler extends AbstractProcessingHandler { return $this->connectionString; } - /** * Get persistent setting * @@ -157,7 +144,6 @@ class SocketHandler extends AbstractProcessingHandler { return $this->persistent; } - /** * Get current connection timeout setting * @@ -167,7 +153,6 @@ class SocketHandler extends AbstractProcessingHandler { return $this->connectionTimeout; } - /** * Get current in-transfer timeout * @@ -177,7 +162,6 @@ class SocketHandler extends AbstractProcessingHandler { return $this->timeout; } - /** * Get current local writing timeout * @@ -187,7 +171,6 @@ class SocketHandler extends AbstractProcessingHandler { return $this->writingTimeout; } - /** * Get current chunk size * @@ -197,7 +180,6 @@ class SocketHandler extends AbstractProcessingHandler { return $this->chunkSize; } - /** * Check to see if the socket is currently available. * @@ -207,26 +189,23 @@ class SocketHandler extends AbstractProcessingHandler */ public function isConnected() { - return is_resource($this->resource) - && !feof($this->resource); // on TCP - other party can close connection. + return \is_resource($this->resource) && !\feof($this->resource); + // on TCP - other party can close connection. } - /** * Wrapper to allow mocking */ protected function pfsockopen() { - return @pfsockopen($this->connectionString, -1, $this->errno, $this->errstr, $this->connectionTimeout); + return @\pfsockopen($this->connectionString, -1, $this->errno, $this->errstr, $this->connectionTimeout); } - /** * Wrapper to allow mocking */ protected function fsockopen() { - return @fsockopen($this->connectionString, -1, $this->errno, $this->errstr, $this->connectionTimeout); + return @\fsockopen($this->connectionString, -1, $this->errno, $this->errstr, $this->connectionTimeout); } - /** * Wrapper to allow mocking * @@ -234,12 +213,10 @@ class SocketHandler extends AbstractProcessingHandler */ protected function streamSetTimeout() { - $seconds = floor($this->timeout); - $microseconds = round(($this->timeout - $seconds) * 1e6); - - return stream_set_timeout($this->resource, $seconds, $microseconds); + $seconds = \floor($this->timeout); + $microseconds = \round(($this->timeout - $seconds) * 1000000.0); + return \stream_set_timeout($this->resource, $seconds, $microseconds); } - /** * Wrapper to allow mocking * @@ -247,33 +224,29 @@ class SocketHandler extends AbstractProcessingHandler */ protected function streamSetChunkSize() { - return stream_set_chunk_size($this->resource, $this->chunkSize); + return \stream_set_chunk_size($this->resource, $this->chunkSize); } - /** * Wrapper to allow mocking */ protected function fwrite($data) { - return @fwrite($this->resource, $data); + return @\fwrite($this->resource, $data); } - /** * Wrapper to allow mocking */ protected function streamGetMetadata() { - return stream_get_meta_data($this->resource); + return \stream_get_meta_data($this->resource); } - private function validateTimeout($value) { - $ok = filter_var($value, FILTER_VALIDATE_FLOAT); - if ($ok === false || $value < 0) { - throw new \InvalidArgumentException("Timeout must be 0 or a positive float (got $value)"); + $ok = \filter_var($value, \FILTER_VALIDATE_FLOAT); + if ($ok === \false || $value < 0) { + throw new \InvalidArgumentException("Timeout must be 0 or a positive float (got {$value})"); } } - private function connectIfNotConnected() { if ($this->isConnected()) { @@ -281,12 +254,10 @@ class SocketHandler extends AbstractProcessingHandler } $this->connect(); } - protected function generateDataStream($record) { return (string) $record['formatted']; } - /** * @return resource|null */ @@ -294,14 +265,12 @@ class SocketHandler extends AbstractProcessingHandler { return $this->resource; } - private function connect() { $this->createSocketResource(); $this->setSocketTimeout(); $this->setStreamChunkSize(); } - private function createSocketResource() { if ($this->isPersistent()) { @@ -310,37 +279,34 @@ class SocketHandler extends AbstractProcessingHandler $resource = $this->fsockopen(); } if (!$resource) { - throw new \UnexpectedValueException("Failed connecting to $this->connectionString ($this->errno: $this->errstr)"); + throw new \UnexpectedValueException("Failed connecting to {$this->connectionString} ({$this->errno}: {$this->errstr})"); } $this->resource = $resource; } - private function setSocketTimeout() { if (!$this->streamSetTimeout()) { throw new \UnexpectedValueException("Failed setting timeout with stream_set_timeout()"); } } - private function setStreamChunkSize() { if ($this->chunkSize && !$this->streamSetChunkSize()) { throw new \UnexpectedValueException("Failed setting chunk size with stream_set_chunk_size()"); } } - private function writeToSocket($data) { - $length = strlen($data); + $length = \strlen($data); $sent = 0; $this->lastSentBytes = $sent; while ($this->isConnected() && $sent < $length) { if (0 == $sent) { $chunk = $this->fwrite($data); } else { - $chunk = $this->fwrite(substr($data, $sent)); + $chunk = $this->fwrite(\substr($data, $sent)); } - if ($chunk === false) { + if ($chunk === \false) { throw new \RuntimeException("Could not write to socket"); } $sent += $chunk; @@ -348,38 +314,31 @@ class SocketHandler extends AbstractProcessingHandler if ($socketInfo['timed_out']) { throw new \RuntimeException("Write timed-out"); } - if ($this->writingIsTimedOut($sent)) { - throw new \RuntimeException("Write timed-out, no data sent for `{$this->writingTimeout}` seconds, probably we got disconnected (sent $sent of $length)"); + throw new \RuntimeException("Write timed-out, no data sent for `{$this->writingTimeout}` seconds, probably we got disconnected (sent {$sent} of {$length})"); } } if (!$this->isConnected() && $sent < $length) { - throw new \RuntimeException("End-of-file reached, probably we got disconnected (sent $sent of $length)"); + throw new \RuntimeException("End-of-file reached, probably we got disconnected (sent {$sent} of {$length})"); } } - private function writingIsTimedOut($sent) { - $writingTimeout = (int) floor($this->writingTimeout); + $writingTimeout = (int) \floor($this->writingTimeout); if (0 === $writingTimeout) { - return false; + return \false; } - if ($sent !== $this->lastSentBytes) { - $this->lastWritingAt = time(); + $this->lastWritingAt = \time(); $this->lastSentBytes = $sent; - - return false; + return \false; } else { - usleep(100); + \usleep(100); } - - if ((time() - $this->lastWritingAt) >= $writingTimeout) { + if (\time() - $this->lastWritingAt >= $writingTimeout) { $this->closeSocket(); - - return true; + return \true; } - - return false; + return \false; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/StreamHandler.php similarity index 63% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/StreamHandler.php index b52607d..aad3d13 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/StreamHandler.php @@ -8,12 +8,10 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler; -namespace Monolog\Handler; - -use Monolog\Logger; -use Monolog\Utils; - +use WPMailSMTP\Vendor\Monolog\Logger; +use WPMailSMTP\Vendor\Monolog\Utils; /** * Stores to any stream resource * @@ -21,7 +19,7 @@ use Monolog\Utils; * * @author Jordi Boggiano */ -class StreamHandler extends AbstractProcessingHandler +class StreamHandler extends \WPMailSMTP\Vendor\Monolog\Handler\AbstractProcessingHandler { protected $stream; protected $url; @@ -29,7 +27,6 @@ class StreamHandler extends AbstractProcessingHandler protected $filePermission; protected $useLocking; private $dirCreated; - /** * @param resource|string $stream * @param int $level The minimum logging level at which this handler will be triggered @@ -40,33 +37,30 @@ class StreamHandler extends AbstractProcessingHandler * @throws \Exception If a missing directory is not buildable * @throws \InvalidArgumentException If stream is not a resource or string */ - public function __construct($stream, $level = Logger::DEBUG, $bubble = true, $filePermission = null, $useLocking = false) + public function __construct($stream, $level = \WPMailSMTP\Vendor\Monolog\Logger::DEBUG, $bubble = \true, $filePermission = null, $useLocking = \false) { parent::__construct($level, $bubble); - if (is_resource($stream)) { + if (\is_resource($stream)) { $this->stream = $stream; - } elseif (is_string($stream)) { - $this->url = Utils::canonicalizePath($stream); + } elseif (\is_string($stream)) { + $this->url = \WPMailSMTP\Vendor\Monolog\Utils::canonicalizePath($stream); } else { throw new \InvalidArgumentException('A stream must either be a resource or a string.'); } - $this->filePermission = $filePermission; $this->useLocking = $useLocking; } - /** * {@inheritdoc} */ public function close() { - if ($this->url && is_resource($this->stream)) { - fclose($this->stream); + if ($this->url && \is_resource($this->stream)) { + \fclose($this->stream); } $this->stream = null; $this->dirCreated = null; } - /** * Return the currently active stream if it is open * @@ -76,7 +70,6 @@ class StreamHandler extends AbstractProcessingHandler { return $this->stream; } - /** * Return the stream URL if it was configured with a URL and not an active resource * @@ -86,43 +79,37 @@ class StreamHandler extends AbstractProcessingHandler { return $this->url; } - /** * {@inheritdoc} */ protected function write(array $record) { - if (!is_resource($this->stream)) { + if (!\is_resource($this->stream)) { if (null === $this->url || '' === $this->url) { throw new \LogicException('Missing stream url, the stream can not be opened. This may be caused by a premature call to close().'); } $this->createDir(); $this->errorMessage = null; - set_error_handler(array($this, 'customErrorHandler')); - $this->stream = fopen($this->url, 'a'); + \set_error_handler(array($this, 'customErrorHandler')); + $this->stream = \fopen($this->url, 'a'); if ($this->filePermission !== null) { - @chmod($this->url, $this->filePermission); + @\chmod($this->url, $this->filePermission); } - restore_error_handler(); - if (!is_resource($this->stream)) { + \restore_error_handler(); + if (!\is_resource($this->stream)) { $this->stream = null; - - throw new \UnexpectedValueException(sprintf('The stream or file "%s" could not be opened in append mode: '.$this->errorMessage, $this->url)); + throw new \UnexpectedValueException(\sprintf('The stream or file "%s" could not be opened in append mode: ' . $this->errorMessage, $this->url)); } } - if ($this->useLocking) { // ignoring errors here, there's not much we can do about them - flock($this->stream, LOCK_EX); + \flock($this->stream, \LOCK_EX); } - $this->streamWrite($this->stream, $record); - if ($this->useLocking) { - flock($this->stream, LOCK_UN); + \flock($this->stream, \LOCK_UN); } } - /** * Write to stream * @param resource $stream @@ -130,14 +117,12 @@ class StreamHandler extends AbstractProcessingHandler */ protected function streamWrite($stream, array $record) { - fwrite($stream, (string) $record['formatted']); + \fwrite($stream, (string) $record['formatted']); } - private function customErrorHandler($code, $msg) { - $this->errorMessage = preg_replace('{^(fopen|mkdir)\(.*?\): }', '', $msg); + $this->errorMessage = \preg_replace('{^(fopen|mkdir)\\(.*?\\): }', '', $msg); } - /** * @param string $stream * @@ -145,35 +130,31 @@ class StreamHandler extends AbstractProcessingHandler */ private function getDirFromStream($stream) { - $pos = strpos($stream, '://'); - if ($pos === false) { - return dirname($stream); + $pos = \strpos($stream, '://'); + if ($pos === \false) { + return \dirname($stream); } - - if ('file://' === substr($stream, 0, 7)) { - return dirname(substr($stream, 7)); + if ('file://' === \substr($stream, 0, 7)) { + return \dirname(\substr($stream, 7)); } - return; } - private function createDir() { // Do not try to create dir if it has already been tried. if ($this->dirCreated) { return; } - $dir = $this->getDirFromStream($this->url); - if (null !== $dir && !is_dir($dir)) { + if (null !== $dir && !\is_dir($dir)) { $this->errorMessage = null; - set_error_handler(array($this, 'customErrorHandler')); - $status = mkdir($dir, 0777, true); - restore_error_handler(); - if (false === $status && !is_dir($dir)) { - throw new \UnexpectedValueException(sprintf('There is no existing directory at "%s" and its not buildable: '.$this->errorMessage, $dir)); + \set_error_handler(array($this, 'customErrorHandler')); + $status = \mkdir($dir, 0777, \true); + \restore_error_handler(); + if (\false === $status && !\is_dir($dir)) { + throw new \UnexpectedValueException(\sprintf('There is no existing directory at "%s" and its not buildable: ' . $this->errorMessage, $dir)); } } - $this->dirCreated = true; + $this->dirCreated = \true; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/SwiftMailerHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SwiftMailerHandler.php similarity index 68% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/SwiftMailerHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SwiftMailerHandler.php index ac7b16f..44cf898 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/SwiftMailerHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SwiftMailerHandler.php @@ -8,38 +8,33 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler; -namespace Monolog\Handler; - -use Monolog\Logger; -use Monolog\Formatter\FormatterInterface; -use Monolog\Formatter\LineFormatter; -use Swift; - +use WPMailSMTP\Vendor\Monolog\Logger; +use WPMailSMTP\Vendor\Monolog\Formatter\FormatterInterface; +use WPMailSMTP\Vendor\Monolog\Formatter\LineFormatter; +use WPMailSMTP\Vendor\Swift; /** * SwiftMailerHandler uses Swift_Mailer to send the emails * * @author Gyula Sallai */ -class SwiftMailerHandler extends MailHandler +class SwiftMailerHandler extends \WPMailSMTP\Vendor\Monolog\Handler\MailHandler { protected $mailer; private $messageTemplate; - /** * @param \Swift_Mailer $mailer The mailer to use * @param callable|\Swift_Message $message An example message for real messages, only the body will be replaced * @param int $level The minimum logging level at which this handler will be triggered * @param bool $bubble Whether the messages that are handled can bubble up the stack or not */ - public function __construct(\Swift_Mailer $mailer, $message, $level = Logger::ERROR, $bubble = true) + public function __construct(\WPMailSMTP\Vendor\Swift_Mailer $mailer, $message, $level = \WPMailSMTP\Vendor\Monolog\Logger::ERROR, $bubble = \true) { parent::__construct($level, $bubble); - $this->mailer = $mailer; $this->messageTemplate = $message; } - /** * {@inheritdoc} */ @@ -47,7 +42,6 @@ class SwiftMailerHandler extends MailHandler { $this->mailer->send($this->buildMessage($content, $records)); } - /** * Gets the formatter for the Swift_Message subject. * @@ -56,9 +50,8 @@ class SwiftMailerHandler extends MailHandler */ protected function getSubjectFormatter($format) { - return new LineFormatter($format); + return new \WPMailSMTP\Vendor\Monolog\Formatter\LineFormatter($format); } - /** * Creates instance of Swift_Message to be sent * @@ -69,43 +62,36 @@ class SwiftMailerHandler extends MailHandler protected function buildMessage($content, array $records) { $message = null; - if ($this->messageTemplate instanceof \Swift_Message) { + if ($this->messageTemplate instanceof \WPMailSMTP\Vendor\Swift_Message) { $message = clone $this->messageTemplate; $message->generateId(); - } elseif (is_callable($this->messageTemplate)) { - $message = call_user_func($this->messageTemplate, $content, $records); + } elseif (\is_callable($this->messageTemplate)) { + $message = \call_user_func($this->messageTemplate, $content, $records); } - - if (!$message instanceof \Swift_Message) { + if (!$message instanceof \WPMailSMTP\Vendor\Swift_Message) { throw new \InvalidArgumentException('Could not resolve message as instance of Swift_Message or a callable returning it'); } - if ($records) { $subjectFormatter = $this->getSubjectFormatter($message->getSubject()); $message->setSubject($subjectFormatter->format($this->getHighestRecord($records))); } - $message->setBody($content); - if (version_compare(Swift::VERSION, '6.0.0', '>=')) { + if (\version_compare(\WPMailSMTP\Vendor\Swift::VERSION, '6.0.0', '>=')) { $message->setDate(new \DateTimeImmutable()); } else { - $message->setDate(time()); + $message->setDate(\time()); } - return $message; } - /** * BC getter, to be removed in 2.0 */ public function __get($name) { if ($name === 'message') { - trigger_error('SwiftMailerHandler->message is deprecated, use ->buildMessage() instead to retrieve the message', E_USER_DEPRECATED); - + \trigger_error('SwiftMailerHandler->message is deprecated, use ->buildMessage() instead to retrieve the message', \E_USER_DEPRECATED); return $this->buildMessage(null, array()); } - - throw new \InvalidArgumentException('Invalid property '.$name); + throw new \InvalidArgumentException('Invalid property ' . $name); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/SyslogHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SyslogHandler.php similarity index 70% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/SyslogHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SyslogHandler.php index f770c80..5bedba3 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/SyslogHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SyslogHandler.php @@ -8,11 +8,9 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler; -namespace Monolog\Handler; - -use Monolog\Logger; - +use WPMailSMTP\Vendor\Monolog\Logger; /** * Logs to syslog service. * @@ -26,11 +24,10 @@ use Monolog\Logger; * * @author Sven Paulus */ -class SyslogHandler extends AbstractSyslogHandler +class SyslogHandler extends \WPMailSMTP\Vendor\Monolog\Handler\AbstractSyslogHandler { protected $ident; protected $logopts; - /** * @param string $ident * @param mixed $facility @@ -38,30 +35,27 @@ class SyslogHandler extends AbstractSyslogHandler * @param bool $bubble Whether the messages that are handled can bubble up the stack or not * @param int $logopts Option flags for the openlog() call, defaults to LOG_PID */ - public function __construct($ident, $facility = LOG_USER, $level = Logger::DEBUG, $bubble = true, $logopts = LOG_PID) + public function __construct($ident, $facility = \LOG_USER, $level = \WPMailSMTP\Vendor\Monolog\Logger::DEBUG, $bubble = \true, $logopts = \LOG_PID) { parent::__construct($facility, $level, $bubble); - $this->ident = $ident; $this->logopts = $logopts; } - /** * {@inheritdoc} */ public function close() { - closelog(); + \closelog(); } - /** * {@inheritdoc} */ protected function write(array $record) { - if (!openlog($this->ident, $this->logopts, $this->facility)) { - throw new \LogicException('Can\'t open syslog for ident "'.$this->ident.'" and facility "'.$this->facility.'"'); + if (!\openlog($this->ident, $this->logopts, $this->facility)) { + throw new \LogicException('Can\'t open syslog for ident "' . $this->ident . '" and facility "' . $this->facility . '"'); } - syslog($this->logLevels[$record['level']], (string) $record['formatted']); + \syslog($this->logLevels[$record['level']], (string) $record['formatted']); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/SyslogUdp/UdpSocket.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SyslogUdp/UdpSocket.php similarity index 56% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/SyslogUdp/UdpSocket.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SyslogUdp/UdpSocket.php index 3bff085..ad4c782 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/SyslogUdp/UdpSocket.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SyslogUdp/UdpSocket.php @@ -8,49 +8,41 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - -namespace Monolog\Handler\SyslogUdp; +namespace WPMailSMTP\Vendor\Monolog\Handler\SyslogUdp; class UdpSocket { const DATAGRAM_MAX_LENGTH = 65023; - protected $ip; protected $port; protected $socket; - public function __construct($ip, $port = 514) { $this->ip = $ip; $this->port = $port; - $this->socket = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP); + $this->socket = \socket_create(\AF_INET, \SOCK_DGRAM, \SOL_UDP); } - public function write($line, $header = "") { $this->send($this->assembleMessage($line, $header)); } - public function close() { - if (is_resource($this->socket)) { - socket_close($this->socket); + if (\is_resource($this->socket)) { + \socket_close($this->socket); $this->socket = null; } } - protected function send($chunk) { - if (!is_resource($this->socket)) { - throw new \LogicException('The UdpSocket to '.$this->ip.':'.$this->port.' has been closed and can not be written to anymore'); + if (!\is_resource($this->socket)) { + throw new \LogicException('The UdpSocket to ' . $this->ip . ':' . $this->port . ' has been closed and can not be written to anymore'); } - socket_sendto($this->socket, $chunk, strlen($chunk), $flags = 0, $this->ip, $this->port); + \socket_sendto($this->socket, $chunk, \strlen($chunk), $flags = 0, $this->ip, $this->port); } - protected function assembleMessage($line, $header) { - $chunkSize = self::DATAGRAM_MAX_LENGTH - strlen($header); - - return $header . substr($line, 0, $chunkSize); + $chunkSize = self::DATAGRAM_MAX_LENGTH - \strlen($header); + return $header . \substr($line, 0, $chunkSize); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/SyslogUdpHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SyslogUdpHandler.php similarity index 67% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/SyslogUdpHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SyslogUdpHandler.php index 4dfd5f5..4dfdd91 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/SyslogUdpHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/SyslogUdpHandler.php @@ -8,32 +8,24 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Handler; -namespace Monolog\Handler; - -use Monolog\Logger; -use Monolog\Handler\SyslogUdp\UdpSocket; - +use WPMailSMTP\Vendor\Monolog\Logger; +use WPMailSMTP\Vendor\Monolog\Handler\SyslogUdp\UdpSocket; /** * A Handler for logging to a remote syslogd server. * * @author Jesper Skovgaard Nielsen * @author Dominik Kukacka */ -class SyslogUdpHandler extends AbstractSyslogHandler +class SyslogUdpHandler extends \WPMailSMTP\Vendor\Monolog\Handler\AbstractSyslogHandler { const RFC3164 = 0; const RFC5424 = 1; - - private $dateFormats = array( - self::RFC3164 => 'M d H:i:s', - self::RFC5424 => \DateTime::RFC3339, - ); - + private $dateFormats = array(self::RFC3164 => 'M d H:i:s', self::RFC5424 => \DateTime::RFC3339); protected $socket; protected $ident; protected $rfc; - /** * @param string $host * @param int $port @@ -43,77 +35,55 @@ class SyslogUdpHandler extends AbstractSyslogHandler * @param string $ident Program name or tag for each log message. * @param int $rfc RFC to format the message for. */ - public function __construct($host, $port = 514, $facility = LOG_USER, $level = Logger::DEBUG, $bubble = true, $ident = 'php', $rfc = self::RFC5424) + public function __construct($host, $port = 514, $facility = \LOG_USER, $level = \WPMailSMTP\Vendor\Monolog\Logger::DEBUG, $bubble = \true, $ident = 'php', $rfc = self::RFC5424) { parent::__construct($facility, $level, $bubble); - $this->ident = $ident; $this->rfc = $rfc; - - $this->socket = new UdpSocket($host, $port ?: 514); + $this->socket = new \WPMailSMTP\Vendor\Monolog\Handler\SyslogUdp\UdpSocket($host, $port ?: 514); } - protected function write(array $record) { $lines = $this->splitMessageIntoLines($record['formatted']); - $header = $this->makeCommonSyslogHeader($this->logLevels[$record['level']]); - foreach ($lines as $line) { $this->socket->write($line, $header); } } - public function close() { $this->socket->close(); } - private function splitMessageIntoLines($message) { - if (is_array($message)) { - $message = implode("\n", $message); + if (\is_array($message)) { + $message = \implode("\n", $message); } - - return preg_split('/$\R?^/m', $message, -1, PREG_SPLIT_NO_EMPTY); + return \preg_split('/$\\R?^/m', $message, -1, \PREG_SPLIT_NO_EMPTY); } - /** * Make common syslog header (see rfc5424 or rfc3164) */ protected function makeCommonSyslogHeader($severity) { $priority = $severity + $this->facility; - - if (!$pid = getmypid()) { + if (!($pid = \getmypid())) { $pid = '-'; } - - if (!$hostname = gethostname()) { + if (!($hostname = \gethostname())) { $hostname = '-'; } - $date = $this->getDateTime(); - if ($this->rfc === self::RFC3164) { - return "<$priority>" . - $date . " " . - $hostname . " " . - $this->ident . "[" . $pid . "]: "; + return "<{$priority}>" . $date . " " . $hostname . " " . $this->ident . "[" . $pid . "]: "; } else { - return "<$priority>1 " . - $date . " " . - $hostname . " " . - $this->ident . " " . - $pid . " - - "; + return "<{$priority}>1 " . $date . " " . $hostname . " " . $this->ident . " " . $pid . " - - "; } } - protected function getDateTime() { - return date($this->dateFormats[$this->rfc]); + return \date($this->dateFormats[$this->rfc]); } - /** * Inject your own socket, mainly used for testing */ diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/TestHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/TestHandler.php similarity index 77% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/TestHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/TestHandler.php index 478db0a..8879b73 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/TestHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/TestHandler.php @@ -8,8 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - -namespace Monolog\Handler; +namespace WPMailSMTP\Vendor\Monolog\Handler; /** * Used for testing purposes. @@ -63,94 +62,80 @@ namespace Monolog\Handler; * @method bool hasInfoThatPasses($message) * @method bool hasDebugThatPasses($message) */ -class TestHandler extends AbstractProcessingHandler +class TestHandler extends \WPMailSMTP\Vendor\Monolog\Handler\AbstractProcessingHandler { protected $records = array(); protected $recordsByLevel = array(); - private $skipReset = false; - + private $skipReset = \false; public function getRecords() { return $this->records; } - public function clear() { $this->records = array(); $this->recordsByLevel = array(); } - public function reset() { if (!$this->skipReset) { $this->clear(); } } - public function setSkipReset($skipReset) { $this->skipReset = $skipReset; } - public function hasRecords($level) { return isset($this->recordsByLevel[$level]); } - /** * @param string|array $record Either a message string or an array containing message and optionally context keys that will be checked against all records * @param int $level Logger::LEVEL constant value */ public function hasRecord($record, $level) { - if (is_string($record)) { + if (\is_string($record)) { $record = array('message' => $record); } - - return $this->hasRecordThatPasses(function ($rec) use ($record) { + return $this->hasRecordThatPasses(function ($rec) use($record) { if ($rec['message'] !== $record['message']) { - return false; + return \false; } if (isset($record['context']) && $rec['context'] !== $record['context']) { - return false; + return \false; } - return true; + return \true; }, $level); } - public function hasRecordThatContains($message, $level) { - return $this->hasRecordThatPasses(function ($rec) use ($message) { - return strpos($rec['message'], $message) !== false; + return $this->hasRecordThatPasses(function ($rec) use($message) { + return \strpos($rec['message'], $message) !== \false; }, $level); } - public function hasRecordThatMatches($regex, $level) { - return $this->hasRecordThatPasses(function ($rec) use ($regex) { - return preg_match($regex, $rec['message']) > 0; + return $this->hasRecordThatPasses(function ($rec) use($regex) { + return \preg_match($regex, $rec['message']) > 0; }, $level); } - public function hasRecordThatPasses($predicate, $level) { - if (!is_callable($predicate)) { + if (!\is_callable($predicate)) { throw new \InvalidArgumentException("Expected a callable for hasRecordThatSucceeds"); } - if (!isset($this->recordsByLevel[$level])) { - return false; + return \false; } - foreach ($this->recordsByLevel[$level] as $i => $rec) { - if (call_user_func($predicate, $rec, $i)) { - return true; + if (\call_user_func($predicate, $rec, $i)) { + return \true; } } - - return false; + return \false; } - /** * {@inheritdoc} */ @@ -159,19 +144,16 @@ class TestHandler extends AbstractProcessingHandler $this->recordsByLevel[$record['level']][] = $record; $this->records[] = $record; } - public function __call($method, $args) { - if (preg_match('/(.*)(Debug|Info|Notice|Warning|Error|Critical|Alert|Emergency)(.*)/', $method, $matches) > 0) { + if (\preg_match('/(.*)(Debug|Info|Notice|Warning|Error|Critical|Alert|Emergency)(.*)/', $method, $matches) > 0) { $genericMethod = $matches[1] . ('Records' !== $matches[3] ? 'Record' : '') . $matches[3]; - $level = constant('Monolog\Logger::' . strtoupper($matches[2])); - if (method_exists($this, $genericMethod)) { + $level = \constant('WPMailSMTP\\Vendor\\Monolog\\Logger::' . \strtoupper($matches[2])); + if (\method_exists($this, $genericMethod)) { $args[] = $level; - - return call_user_func_array(array($this, $genericMethod), $args); + return \call_user_func_array(array($this, $genericMethod), $args); } } - - throw new \BadMethodCallException('Call to undefined method ' . get_class($this) . '::' . $method . '()'); + throw new \BadMethodCallException('Call to undefined method ' . \get_class($this) . '::' . $method . '()'); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/WhatFailureGroupHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/WhatFailureGroupHandler.php similarity index 83% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/WhatFailureGroupHandler.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/WhatFailureGroupHandler.php index 7d7622a..cd9036c 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Handler/WhatFailureGroupHandler.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/WhatFailureGroupHandler.php @@ -8,8 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - -namespace Monolog\Handler; +namespace WPMailSMTP\Vendor\Monolog\Handler; /** * Forwards records to multiple handlers suppressing failures of each handler @@ -17,7 +16,7 @@ namespace Monolog\Handler; * * @author Craig D'Amelio */ -class WhatFailureGroupHandler extends GroupHandler +class WhatFailureGroupHandler extends \WPMailSMTP\Vendor\Monolog\Handler\GroupHandler { /** * {@inheritdoc} @@ -26,10 +25,9 @@ class WhatFailureGroupHandler extends GroupHandler { if ($this->processors) { foreach ($this->processors as $processor) { - $record = call_user_func($processor, $record); + $record = \call_user_func($processor, $record); } } - foreach ($this->handlers as $handler) { try { $handler->handle($record); @@ -39,10 +37,8 @@ class WhatFailureGroupHandler extends GroupHandler // What failure? } } - - return false === $this->bubble; + return \false === $this->bubble; } - /** * {@inheritdoc} */ @@ -52,13 +48,12 @@ class WhatFailureGroupHandler extends GroupHandler $processed = array(); foreach ($records as $record) { foreach ($this->processors as $processor) { - $record = call_user_func($processor, $record); + $record = \call_user_func($processor, $record); } $processed[] = $record; } $records = $processed; } - foreach ($this->handlers as $handler) { try { $handler->handleBatch($records); diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/ZendMonitorHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/ZendMonitorHandler.php new file mode 100644 index 0000000..9a889c4 --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/ZendMonitorHandler.php @@ -0,0 +1,79 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ +namespace WPMailSMTP\Vendor\Monolog\Handler; + +use WPMailSMTP\Vendor\Monolog\Formatter\NormalizerFormatter; +use WPMailSMTP\Vendor\Monolog\Logger; +/** + * Handler sending logs to Zend Monitor + * + * @author Christian Bergau + * @author Jason Davis + */ +class ZendMonitorHandler extends \WPMailSMTP\Vendor\Monolog\Handler\AbstractProcessingHandler +{ + /** + * Monolog level / ZendMonitor Custom Event priority map + * + * @var array + */ + protected $levelMap = array(); + /** + * Construct + * + * @param int $level + * @param bool $bubble + * @throws MissingExtensionException + */ + public function __construct($level = \WPMailSMTP\Vendor\Monolog\Logger::DEBUG, $bubble = \true) + { + if (!\function_exists('WPMailSMTP\\Vendor\\zend_monitor_custom_event')) { + throw new \WPMailSMTP\Vendor\Monolog\Handler\MissingExtensionException('You must have Zend Server installed with Zend Monitor enabled in order to use this handler'); + } + //zend monitor constants are not defined if zend monitor is not enabled. + $this->levelMap = array(\WPMailSMTP\Vendor\Monolog\Logger::DEBUG => \WPMailSMTP\Vendor\ZEND_MONITOR_EVENT_SEVERITY_INFO, \WPMailSMTP\Vendor\Monolog\Logger::INFO => \WPMailSMTP\Vendor\ZEND_MONITOR_EVENT_SEVERITY_INFO, \WPMailSMTP\Vendor\Monolog\Logger::NOTICE => \WPMailSMTP\Vendor\ZEND_MONITOR_EVENT_SEVERITY_INFO, \WPMailSMTP\Vendor\Monolog\Logger::WARNING => \WPMailSMTP\Vendor\ZEND_MONITOR_EVENT_SEVERITY_WARNING, \WPMailSMTP\Vendor\Monolog\Logger::ERROR => \WPMailSMTP\Vendor\ZEND_MONITOR_EVENT_SEVERITY_ERROR, \WPMailSMTP\Vendor\Monolog\Logger::CRITICAL => \WPMailSMTP\Vendor\ZEND_MONITOR_EVENT_SEVERITY_ERROR, \WPMailSMTP\Vendor\Monolog\Logger::ALERT => \WPMailSMTP\Vendor\ZEND_MONITOR_EVENT_SEVERITY_ERROR, \WPMailSMTP\Vendor\Monolog\Logger::EMERGENCY => \WPMailSMTP\Vendor\ZEND_MONITOR_EVENT_SEVERITY_ERROR); + parent::__construct($level, $bubble); + } + /** + * {@inheritdoc} + */ + protected function write(array $record) + { + $this->writeZendMonitorCustomEvent(\WPMailSMTP\Vendor\Monolog\Logger::getLevelName($record['level']), $record['message'], $record['formatted'], $this->levelMap[$record['level']]); + } + /** + * Write to Zend Monitor Events + * @param string $type Text displayed in "Class Name (custom)" field + * @param string $message Text displayed in "Error String" + * @param mixed $formatted Displayed in Custom Variables tab + * @param int $severity Set the event severity level (-1,0,1) + */ + protected function writeZendMonitorCustomEvent($type, $message, $formatted, $severity) + { + zend_monitor_custom_event($type, $message, $formatted, $severity); + } + /** + * {@inheritdoc} + */ + public function getDefaultFormatter() + { + return new \WPMailSMTP\Vendor\Monolog\Formatter\NormalizerFormatter(); + } + /** + * Get the level map + * + * @return array + */ + public function getLevelMap() + { + return $this->levelMap; + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Logger.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Logger.php similarity index 85% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Logger.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Logger.php index e649af5..2ba955e 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Logger.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Logger.php @@ -8,15 +8,13 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog; -namespace Monolog; - -use Monolog\Handler\HandlerInterface; -use Monolog\Handler\StreamHandler; -use Psr\Log\LoggerInterface; -use Psr\Log\InvalidArgumentException; +use WPMailSMTP\Vendor\Monolog\Handler\HandlerInterface; +use WPMailSMTP\Vendor\Monolog\Handler\StreamHandler; +use WPMailSMTP\Vendor\Psr\Log\LoggerInterface; +use WPMailSMTP\Vendor\Psr\Log\InvalidArgumentException; use Exception; - /** * Monolog log channel * @@ -25,25 +23,22 @@ use Exception; * * @author Jordi Boggiano */ -class Logger implements LoggerInterface, ResettableInterface +class Logger implements \WPMailSMTP\Vendor\Psr\Log\LoggerInterface, \WPMailSMTP\Vendor\Monolog\ResettableInterface { /** * Detailed debug information */ const DEBUG = 100; - /** * Interesting events * * Examples: User logs in, SQL logs. */ const INFO = 200; - /** * Uncommon events */ const NOTICE = 250; - /** * Exceptional occurrences that are not errors * @@ -51,19 +46,16 @@ class Logger implements LoggerInterface, ResettableInterface * undesirable things that are not necessarily wrong. */ const WARNING = 300; - /** * Runtime errors */ const ERROR = 400; - /** * Critical conditions * * Example: Application component unavailable, unexpected exception. */ const CRITICAL = 500; - /** * Action must be taken immediately * @@ -71,12 +63,10 @@ class Logger implements LoggerInterface, ResettableInterface * This should trigger the SMS alerts and wake you up. */ const ALERT = 550; - /** * Urgent alert. */ const EMERGENCY = 600; - /** * Monolog API version * @@ -86,40 +76,26 @@ class Logger implements LoggerInterface, ResettableInterface * @var int */ const API = 1; - /** * Logging levels from syslog protocol defined in RFC 5424 * * @var array $levels Logging levels */ - protected static $levels = array( - self::DEBUG => 'DEBUG', - self::INFO => 'INFO', - self::NOTICE => 'NOTICE', - self::WARNING => 'WARNING', - self::ERROR => 'ERROR', - self::CRITICAL => 'CRITICAL', - self::ALERT => 'ALERT', - self::EMERGENCY => 'EMERGENCY', - ); - + protected static $levels = array(self::DEBUG => 'DEBUG', self::INFO => 'INFO', self::NOTICE => 'NOTICE', self::WARNING => 'WARNING', self::ERROR => 'ERROR', self::CRITICAL => 'CRITICAL', self::ALERT => 'ALERT', self::EMERGENCY => 'EMERGENCY'); /** * @var \DateTimeZone */ protected static $timezone; - /** * @var string */ protected $name; - /** * The handler stack * * @var HandlerInterface[] */ protected $handlers; - /** * Processors that will process all log records * @@ -128,17 +104,14 @@ class Logger implements LoggerInterface, ResettableInterface * @var callable[] */ protected $processors; - /** * @var bool */ - protected $microsecondTimestamps = true; - + protected $microsecondTimestamps = \true; /** * @var callable */ protected $exceptionHandler; - /** * @param string $name The logging channel * @param HandlerInterface[] $handlers Optional stack of handlers, the first one in the array is called first, etc. @@ -150,7 +123,6 @@ class Logger implements LoggerInterface, ResettableInterface $this->setHandlers($handlers); $this->processors = $processors; } - /** * @return string */ @@ -158,7 +130,6 @@ class Logger implements LoggerInterface, ResettableInterface { return $this->name; } - /** * Return a new cloned instance with the name changed * @@ -168,23 +139,19 @@ class Logger implements LoggerInterface, ResettableInterface { $new = clone $this; $new->name = $name; - return $new; } - /** * Pushes a handler on to the stack. * * @param HandlerInterface $handler * @return $this */ - public function pushHandler(HandlerInterface $handler) + public function pushHandler(\WPMailSMTP\Vendor\Monolog\Handler\HandlerInterface $handler) { - array_unshift($this->handlers, $handler); - + \array_unshift($this->handlers, $handler); return $this; } - /** * Pops a handler from the stack * @@ -195,10 +162,8 @@ class Logger implements LoggerInterface, ResettableInterface if (!$this->handlers) { throw new \LogicException('You tried to pop from an empty handler stack.'); } - - return array_shift($this->handlers); + return \array_shift($this->handlers); } - /** * Set handlers, replacing all existing ones. * @@ -210,13 +175,11 @@ class Logger implements LoggerInterface, ResettableInterface public function setHandlers(array $handlers) { $this->handlers = array(); - foreach (array_reverse($handlers) as $handler) { + foreach (\array_reverse($handlers) as $handler) { $this->pushHandler($handler); } - return $this; } - /** * @return HandlerInterface[] */ @@ -224,7 +187,6 @@ class Logger implements LoggerInterface, ResettableInterface { return $this->handlers; } - /** * Adds a processor on to the stack. * @@ -233,14 +195,12 @@ class Logger implements LoggerInterface, ResettableInterface */ public function pushProcessor($callback) { - if (!is_callable($callback)) { - throw new \InvalidArgumentException('Processors must be valid callables (callback or object with an __invoke method), '.var_export($callback, true).' given'); + if (!\is_callable($callback)) { + throw new \InvalidArgumentException('Processors must be valid callables (callback or object with an __invoke method), ' . \var_export($callback, \true) . ' given'); } - array_unshift($this->processors, $callback); - + \array_unshift($this->processors, $callback); return $this; } - /** * Removes the processor on top of the stack and returns it. * @@ -251,10 +211,8 @@ class Logger implements LoggerInterface, ResettableInterface if (!$this->processors) { throw new \LogicException('You tried to pop from an empty processor stack.'); } - - return array_shift($this->processors); + return \array_shift($this->processors); } - /** * @return callable[] */ @@ -262,7 +220,6 @@ class Logger implements LoggerInterface, ResettableInterface { return $this->processors; } - /** * Control the use of microsecond resolution timestamps in the 'datetime' * member of new records. @@ -280,7 +237,6 @@ class Logger implements LoggerInterface, ResettableInterface { $this->microsecondTimestamps = (bool) $micro; } - /** * Adds a log record. * @@ -292,68 +248,48 @@ class Logger implements LoggerInterface, ResettableInterface public function addRecord($level, $message, array $context = array()) { if (!$this->handlers) { - $this->pushHandler(new StreamHandler('php://stderr', static::DEBUG)); + $this->pushHandler(new \WPMailSMTP\Vendor\Monolog\Handler\StreamHandler('php://stderr', static::DEBUG)); } - $levelName = static::getLevelName($level); - // check if any handler will handle this message so we can return early and save cycles $handlerKey = null; - reset($this->handlers); - while ($handler = current($this->handlers)) { + \reset($this->handlers); + while ($handler = \current($this->handlers)) { if ($handler->isHandling(array('level' => $level))) { - $handlerKey = key($this->handlers); + $handlerKey = \key($this->handlers); break; } - - next($this->handlers); + \next($this->handlers); } - if (null === $handlerKey) { - return false; + return \false; } - if (!static::$timezone) { - static::$timezone = new \DateTimeZone(date_default_timezone_get() ?: 'UTC'); + static::$timezone = new \DateTimeZone(\date_default_timezone_get() ?: 'UTC'); } - // php7.1+ always has microseconds enabled, so we do not need this hack - if ($this->microsecondTimestamps && PHP_VERSION_ID < 70100) { - $ts = \DateTime::createFromFormat('U.u', sprintf('%.6F', microtime(true)), static::$timezone); + if ($this->microsecondTimestamps && \PHP_VERSION_ID < 70100) { + $ts = \DateTime::createFromFormat('U.u', \sprintf('%.6F', \microtime(\true)), static::$timezone); } else { $ts = new \DateTime(null, static::$timezone); } $ts->setTimezone(static::$timezone); - - $record = array( - 'message' => (string) $message, - 'context' => $context, - 'level' => $level, - 'level_name' => $levelName, - 'channel' => $this->name, - 'datetime' => $ts, - 'extra' => array(), - ); - + $record = array('message' => (string) $message, 'context' => $context, 'level' => $level, 'level_name' => $levelName, 'channel' => $this->name, 'datetime' => $ts, 'extra' => array()); try { foreach ($this->processors as $processor) { - $record = call_user_func($processor, $record); + $record = \call_user_func($processor, $record); } - - while ($handler = current($this->handlers)) { - if (true === $handler->handle($record)) { + while ($handler = \current($this->handlers)) { + if (\true === $handler->handle($record)) { break; } - - next($this->handlers); + \next($this->handlers); } - } catch (Exception $e) { + } catch (\Exception $e) { $this->handleException($e, $record); } - - return true; + return \true; } - /** * Ends a log cycle and frees all resources used by handlers. * @@ -367,12 +303,11 @@ class Logger implements LoggerInterface, ResettableInterface public function close() { foreach ($this->handlers as $handler) { - if (method_exists($handler, 'close')) { + if (\method_exists($handler, 'close')) { $handler->close(); } } } - /** * Ends a log cycle and resets all handlers and processors to their initial state. * @@ -386,18 +321,16 @@ class Logger implements LoggerInterface, ResettableInterface public function reset() { foreach ($this->handlers as $handler) { - if ($handler instanceof ResettableInterface) { + if ($handler instanceof \WPMailSMTP\Vendor\Monolog\ResettableInterface) { $handler->reset(); } } - foreach ($this->processors as $processor) { - if ($processor instanceof ResettableInterface) { + if ($processor instanceof \WPMailSMTP\Vendor\Monolog\ResettableInterface) { $processor->reset(); } } } - /** * Adds a log record at the DEBUG level. * @@ -409,7 +342,6 @@ class Logger implements LoggerInterface, ResettableInterface { return $this->addRecord(static::DEBUG, $message, $context); } - /** * Adds a log record at the INFO level. * @@ -421,7 +353,6 @@ class Logger implements LoggerInterface, ResettableInterface { return $this->addRecord(static::INFO, $message, $context); } - /** * Adds a log record at the NOTICE level. * @@ -433,7 +364,6 @@ class Logger implements LoggerInterface, ResettableInterface { return $this->addRecord(static::NOTICE, $message, $context); } - /** * Adds a log record at the WARNING level. * @@ -445,7 +375,6 @@ class Logger implements LoggerInterface, ResettableInterface { return $this->addRecord(static::WARNING, $message, $context); } - /** * Adds a log record at the ERROR level. * @@ -457,7 +386,6 @@ class Logger implements LoggerInterface, ResettableInterface { return $this->addRecord(static::ERROR, $message, $context); } - /** * Adds a log record at the CRITICAL level. * @@ -469,7 +397,6 @@ class Logger implements LoggerInterface, ResettableInterface { return $this->addRecord(static::CRITICAL, $message, $context); } - /** * Adds a log record at the ALERT level. * @@ -481,7 +408,6 @@ class Logger implements LoggerInterface, ResettableInterface { return $this->addRecord(static::ALERT, $message, $context); } - /** * Adds a log record at the EMERGENCY level. * @@ -493,7 +419,6 @@ class Logger implements LoggerInterface, ResettableInterface { return $this->addRecord(static::EMERGENCY, $message, $context); } - /** * Gets all supported logging levels. * @@ -501,9 +426,8 @@ class Logger implements LoggerInterface, ResettableInterface */ public static function getLevels() { - return array_flip(static::$levels); + return \array_flip(static::$levels); } - /** * Gets the name of the logging level. * @@ -513,12 +437,10 @@ class Logger implements LoggerInterface, ResettableInterface public static function getLevelName($level) { if (!isset(static::$levels[$level])) { - throw new InvalidArgumentException('Level "'.$level.'" is not defined, use one of: '.implode(', ', array_keys(static::$levels))); + throw new \WPMailSMTP\Vendor\Psr\Log\InvalidArgumentException('Level "' . $level . '" is not defined, use one of: ' . \implode(', ', \array_keys(static::$levels))); } - return static::$levels[$level]; } - /** * Converts PSR-3 levels to Monolog ones if necessary * @@ -527,18 +449,16 @@ class Logger implements LoggerInterface, ResettableInterface */ public static function toMonologLevel($level) { - if (is_string($level)) { + if (\is_string($level)) { // Contains chars of all log levels and avoids using strtoupper() which may have // strange results depending on locale (for example, "i" will become "İ") - $upper = strtr($level, 'abcdefgilmnortuwy', 'ABCDEFGILMNORTUWY'); - if (defined(__CLASS__.'::'.$upper)) { - return constant(__CLASS__ . '::' . $upper); + $upper = \strtr($level, 'abcdefgilmnortuwy', 'ABCDEFGILMNORTUWY'); + if (\defined(__CLASS__ . '::' . $upper)) { + return \constant(__CLASS__ . '::' . $upper); } } - return $level; } - /** * Checks whether the Logger has a handler that listens on the given level * @@ -547,19 +467,14 @@ class Logger implements LoggerInterface, ResettableInterface */ public function isHandling($level) { - $record = array( - 'level' => $level, - ); - + $record = array('level' => $level); foreach ($this->handlers as $handler) { if ($handler->isHandling($record)) { - return true; + return \true; } } - - return false; + return \false; } - /** * Set a custom exception handler * @@ -568,14 +483,12 @@ class Logger implements LoggerInterface, ResettableInterface */ public function setExceptionHandler($callback) { - if (!is_callable($callback)) { - throw new \InvalidArgumentException('Exception handler must be valid callable (callback or object with an __invoke method), '.var_export($callback, true).' given'); + if (!\is_callable($callback)) { + throw new \InvalidArgumentException('Exception handler must be valid callable (callback or object with an __invoke method), ' . \var_export($callback, \true) . ' given'); } $this->exceptionHandler = $callback; - return $this; } - /** * @return callable */ @@ -583,20 +496,17 @@ class Logger implements LoggerInterface, ResettableInterface { return $this->exceptionHandler; } - /** * Delegates exception management to the custom exception handler, * or throws the exception if no custom handler is set. */ - protected function handleException(Exception $e, array $record) + protected function handleException(\Exception $e, array $record) { if (!$this->exceptionHandler) { throw $e; } - - call_user_func($this->exceptionHandler, $e, $record); + \call_user_func($this->exceptionHandler, $e, $record); } - /** * Adds a log record at an arbitrary level. * @@ -610,10 +520,8 @@ class Logger implements LoggerInterface, ResettableInterface public function log($level, $message, array $context = array()) { $level = static::toMonologLevel($level); - return $this->addRecord($level, $message, $context); } - /** * Adds a log record at the DEBUG level. * @@ -627,7 +535,6 @@ class Logger implements LoggerInterface, ResettableInterface { return $this->addRecord(static::DEBUG, $message, $context); } - /** * Adds a log record at the INFO level. * @@ -641,7 +548,6 @@ class Logger implements LoggerInterface, ResettableInterface { return $this->addRecord(static::INFO, $message, $context); } - /** * Adds a log record at the NOTICE level. * @@ -655,7 +561,6 @@ class Logger implements LoggerInterface, ResettableInterface { return $this->addRecord(static::NOTICE, $message, $context); } - /** * Adds a log record at the WARNING level. * @@ -669,7 +574,6 @@ class Logger implements LoggerInterface, ResettableInterface { return $this->addRecord(static::WARNING, $message, $context); } - /** * Adds a log record at the WARNING level. * @@ -683,7 +587,6 @@ class Logger implements LoggerInterface, ResettableInterface { return $this->addRecord(static::WARNING, $message, $context); } - /** * Adds a log record at the ERROR level. * @@ -697,7 +600,6 @@ class Logger implements LoggerInterface, ResettableInterface { return $this->addRecord(static::ERROR, $message, $context); } - /** * Adds a log record at the ERROR level. * @@ -711,7 +613,6 @@ class Logger implements LoggerInterface, ResettableInterface { return $this->addRecord(static::ERROR, $message, $context); } - /** * Adds a log record at the CRITICAL level. * @@ -725,7 +626,6 @@ class Logger implements LoggerInterface, ResettableInterface { return $this->addRecord(static::CRITICAL, $message, $context); } - /** * Adds a log record at the CRITICAL level. * @@ -739,7 +639,6 @@ class Logger implements LoggerInterface, ResettableInterface { return $this->addRecord(static::CRITICAL, $message, $context); } - /** * Adds a log record at the ALERT level. * @@ -753,7 +652,6 @@ class Logger implements LoggerInterface, ResettableInterface { return $this->addRecord(static::ALERT, $message, $context); } - /** * Adds a log record at the EMERGENCY level. * @@ -767,7 +665,6 @@ class Logger implements LoggerInterface, ResettableInterface { return $this->addRecord(static::EMERGENCY, $message, $context); } - /** * Adds a log record at the EMERGENCY level. * @@ -781,7 +678,6 @@ class Logger implements LoggerInterface, ResettableInterface { return $this->addRecord(static::EMERGENCY, $message, $context); } - /** * Set the timezone to be used for the timestamp of log records. * diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Processor/GitProcessor.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Processor/GitProcessor.php similarity index 65% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Processor/GitProcessor.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Processor/GitProcessor.php index cdf5ec7..7cd6390 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Processor/GitProcessor.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Processor/GitProcessor.php @@ -8,27 +8,23 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Processor; -namespace Monolog\Processor; - -use Monolog\Logger; - +use WPMailSMTP\Vendor\Monolog\Logger; /** * Injects Git branch and Git commit SHA in all records * * @author Nick Otter * @author Jordi Boggiano */ -class GitProcessor implements ProcessorInterface +class GitProcessor implements \WPMailSMTP\Vendor\Monolog\Processor\ProcessorInterface { private $level; private static $cache; - - public function __construct($level = Logger::DEBUG) + public function __construct($level = \WPMailSMTP\Vendor\Monolog\Logger::DEBUG) { - $this->level = Logger::toMonologLevel($level); + $this->level = \WPMailSMTP\Vendor\Monolog\Logger::toMonologLevel($level); } - /** * @param array $record * @return array @@ -39,26 +35,18 @@ class GitProcessor implements ProcessorInterface if ($record['level'] < $this->level) { return $record; } - $record['extra']['git'] = self::getGitInfo(); - return $record; } - private static function getGitInfo() { if (self::$cache) { return self::$cache; } - $branches = `git branch -v --no-abbrev`; - if ($branches && preg_match('{^\* (.+?)\s+([a-f0-9]{40})(?:\s|$)}m', $branches, $matches)) { - return self::$cache = array( - 'branch' => $matches[1], - 'commit' => $matches[2], - ); + if ($branches && \preg_match('{^\\* (.+?)\\s+([a-f0-9]{40})(?:\\s|$)}m', $branches, $matches)) { + return self::$cache = array('branch' => $matches[1], 'commit' => $matches[2]); } - return self::$cache = array(); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Processor/IntrospectionProcessor.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Processor/IntrospectionProcessor.php similarity index 53% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Processor/IntrospectionProcessor.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Processor/IntrospectionProcessor.php index 6ae192a..9350d10 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Processor/IntrospectionProcessor.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Processor/IntrospectionProcessor.php @@ -8,11 +8,9 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Processor; -namespace Monolog\Processor; - -use Monolog\Logger; - +use WPMailSMTP\Vendor\Monolog\Logger; /** * Injects line/file:class/function where the log message came from * @@ -24,26 +22,18 @@ use Monolog\Logger; * * @author Jordi Boggiano */ -class IntrospectionProcessor implements ProcessorInterface +class IntrospectionProcessor implements \WPMailSMTP\Vendor\Monolog\Processor\ProcessorInterface { private $level; - private $skipClassesPartials; - private $skipStackFramesCount; - - private $skipFunctions = array( - 'call_user_func', - 'call_user_func_array', - ); - - public function __construct($level = Logger::DEBUG, array $skipClassesPartials = array(), $skipStackFramesCount = 0) + private $skipFunctions = array('call_user_func', 'call_user_func_array'); + public function __construct($level = \WPMailSMTP\Vendor\Monolog\Logger::DEBUG, array $skipClassesPartials = array(), $skipStackFramesCount = 0) { - $this->level = Logger::toMonologLevel($level); - $this->skipClassesPartials = array_merge(array('Monolog\\'), $skipClassesPartials); + $this->level = \WPMailSMTP\Vendor\Monolog\Logger::toMonologLevel($level); + $this->skipClassesPartials = \array_merge(array('WPMailSMTP\\Vendor\\Monolog\\'), $skipClassesPartials); $this->skipStackFramesCount = $skipStackFramesCount; } - /** * @param array $record * @return array @@ -54,59 +44,41 @@ class IntrospectionProcessor implements ProcessorInterface if ($record['level'] < $this->level) { return $record; } - /* - * http://php.net/manual/en/function.debug-backtrace.php - * As of 5.3.6, DEBUG_BACKTRACE_IGNORE_ARGS option was added. - * Any version less than 5.3.6 must use the DEBUG_BACKTRACE_IGNORE_ARGS constant value '2'. - */ - $trace = debug_backtrace((PHP_VERSION_ID < 50306) ? 2 : DEBUG_BACKTRACE_IGNORE_ARGS); - + * http://php.net/manual/en/function.debug-backtrace.php + * As of 5.3.6, DEBUG_BACKTRACE_IGNORE_ARGS option was added. + * Any version less than 5.3.6 must use the DEBUG_BACKTRACE_IGNORE_ARGS constant value '2'. + */ + $trace = \debug_backtrace(\PHP_VERSION_ID < 50306 ? 2 : \DEBUG_BACKTRACE_IGNORE_ARGS); // skip first since it's always the current method - array_shift($trace); + \array_shift($trace); // the call_user_func call is also skipped - array_shift($trace); - + \array_shift($trace); $i = 0; - while ($this->isTraceClassOrSkippedFunction($trace, $i)) { if (isset($trace[$i]['class'])) { foreach ($this->skipClassesPartials as $part) { - if (strpos($trace[$i]['class'], $part) !== false) { + if (\strpos($trace[$i]['class'], $part) !== \false) { $i++; continue 2; } } - } elseif (in_array($trace[$i]['function'], $this->skipFunctions)) { + } elseif (\in_array($trace[$i]['function'], $this->skipFunctions)) { $i++; continue; } - break; } - $i += $this->skipStackFramesCount; - // we should have the call source now - $record['extra'] = array_merge( - $record['extra'], - array( - 'file' => isset($trace[$i - 1]['file']) ? $trace[$i - 1]['file'] : null, - 'line' => isset($trace[$i - 1]['line']) ? $trace[$i - 1]['line'] : null, - 'class' => isset($trace[$i]['class']) ? $trace[$i]['class'] : null, - 'function' => isset($trace[$i]['function']) ? $trace[$i]['function'] : null, - ) - ); - + $record['extra'] = \array_merge($record['extra'], array('file' => isset($trace[$i - 1]['file']) ? $trace[$i - 1]['file'] : null, 'line' => isset($trace[$i - 1]['line']) ? $trace[$i - 1]['line'] : null, 'class' => isset($trace[$i]['class']) ? $trace[$i]['class'] : null, 'function' => isset($trace[$i]['function']) ? $trace[$i]['function'] : null)); return $record; } - private function isTraceClassOrSkippedFunction(array $trace, $index) { if (!isset($trace[$index])) { - return false; + return \false; } - - return isset($trace[$index]['class']) || in_array($trace[$index]['function'], $this->skipFunctions); + return isset($trace[$index]['class']) || \in_array($trace[$index]['function'], $this->skipFunctions); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Processor/MemoryPeakUsageProcessor.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Processor/MemoryPeakUsageProcessor.php similarity index 76% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Processor/MemoryPeakUsageProcessor.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Processor/MemoryPeakUsageProcessor.php index 0543e92..b0f974e 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Processor/MemoryPeakUsageProcessor.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Processor/MemoryPeakUsageProcessor.php @@ -8,8 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - -namespace Monolog\Processor; +namespace WPMailSMTP\Vendor\Monolog\Processor; /** * Injects memory_get_peak_usage in all records @@ -17,7 +16,7 @@ namespace Monolog\Processor; * @see Monolog\Processor\MemoryProcessor::__construct() for options * @author Rob Jensen */ -class MemoryPeakUsageProcessor extends MemoryProcessor +class MemoryPeakUsageProcessor extends \WPMailSMTP\Vendor\Monolog\Processor\MemoryProcessor { /** * @param array $record @@ -25,11 +24,9 @@ class MemoryPeakUsageProcessor extends MemoryProcessor */ public function __invoke(array $record) { - $bytes = memory_get_peak_usage($this->realUsage); + $bytes = \memory_get_peak_usage($this->realUsage); $formatted = $this->formatBytes($bytes); - $record['extra']['memory_peak_usage'] = $formatted; - return $record; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Processor/MemoryProcessor.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Processor/MemoryProcessor.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Processor/MemoryProcessor.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Processor/MemoryProcessor.php index 2a379a3..970edf6 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Processor/MemoryProcessor.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Processor/MemoryProcessor.php @@ -8,36 +8,32 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - -namespace Monolog\Processor; +namespace WPMailSMTP\Vendor\Monolog\Processor; /** * Some methods that are common for all memory processors * * @author Rob Jensen */ -abstract class MemoryProcessor implements ProcessorInterface +abstract class MemoryProcessor implements \WPMailSMTP\Vendor\Monolog\Processor\ProcessorInterface { /** * @var bool If true, get the real size of memory allocated from system. Else, only the memory used by emalloc() is reported. */ protected $realUsage; - /** * @var bool If true, then format memory size to human readable string (MB, KB, B depending on size) */ protected $useFormatting; - /** * @param bool $realUsage Set this to true to get the real size of memory allocated from system. * @param bool $useFormatting If true, then format memory size to human readable string (MB, KB, B depending on size) */ - public function __construct($realUsage = true, $useFormatting = true) + public function __construct($realUsage = \true, $useFormatting = \true) { $this->realUsage = (bool) $realUsage; $this->useFormatting = (bool) $useFormatting; } - /** * Formats bytes into a human readable string if $this->useFormatting is true, otherwise return $bytes as is * @@ -47,17 +43,14 @@ abstract class MemoryProcessor implements ProcessorInterface protected function formatBytes($bytes) { $bytes = (int) $bytes; - if (!$this->useFormatting) { return $bytes; } - if ($bytes > 1024 * 1024) { - return round($bytes / 1024 / 1024, 2).' MB'; + return \round($bytes / 1024 / 1024, 2) . ' MB'; } elseif ($bytes > 1024) { - return round($bytes / 1024, 2).' KB'; + return \round($bytes / 1024, 2) . ' KB'; } - return $bytes . ' B'; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Processor/MemoryUsageProcessor.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Processor/MemoryUsageProcessor.php similarity index 77% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Processor/MemoryUsageProcessor.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Processor/MemoryUsageProcessor.php index 2783d65..d508fea 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Processor/MemoryUsageProcessor.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Processor/MemoryUsageProcessor.php @@ -8,8 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - -namespace Monolog\Processor; +namespace WPMailSMTP\Vendor\Monolog\Processor; /** * Injects memory_get_usage in all records @@ -17,7 +16,7 @@ namespace Monolog\Processor; * @see Monolog\Processor\MemoryProcessor::__construct() for options * @author Rob Jensen */ -class MemoryUsageProcessor extends MemoryProcessor +class MemoryUsageProcessor extends \WPMailSMTP\Vendor\Monolog\Processor\MemoryProcessor { /** * @param array $record @@ -25,11 +24,9 @@ class MemoryUsageProcessor extends MemoryProcessor */ public function __invoke(array $record) { - $bytes = memory_get_usage($this->realUsage); + $bytes = \memory_get_usage($this->realUsage); $formatted = $this->formatBytes($bytes); - $record['extra']['memory_usage'] = $formatted; - return $record; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Processor/MercurialProcessor.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Processor/MercurialProcessor.php similarity index 64% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Processor/MercurialProcessor.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Processor/MercurialProcessor.php index 2f5b326..6f578c5 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Processor/MercurialProcessor.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Processor/MercurialProcessor.php @@ -8,26 +8,22 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Processor; -namespace Monolog\Processor; - -use Monolog\Logger; - +use WPMailSMTP\Vendor\Monolog\Logger; /** * Injects Hg branch and Hg revision number in all records * * @author Jonathan A. Schweder */ -class MercurialProcessor implements ProcessorInterface +class MercurialProcessor implements \WPMailSMTP\Vendor\Monolog\Processor\ProcessorInterface { private $level; private static $cache; - - public function __construct($level = Logger::DEBUG) + public function __construct($level = \WPMailSMTP\Vendor\Monolog\Logger::DEBUG) { - $this->level = Logger::toMonologLevel($level); + $this->level = \WPMailSMTP\Vendor\Monolog\Logger::toMonologLevel($level); } - /** * @param array $record * @return array @@ -38,26 +34,18 @@ class MercurialProcessor implements ProcessorInterface if ($record['level'] < $this->level) { return $record; } - $record['extra']['hg'] = self::getMercurialInfo(); - return $record; } - private static function getMercurialInfo() { if (self::$cache) { return self::$cache; } - - $result = explode(' ', trim(`hg id -nb`)); - if (count($result) >= 3) { - return self::$cache = array( - 'branch' => $result[1], - 'revision' => $result[2], - ); + $result = \explode(' ', \trim(`hg id -nb`)); + if (\count($result) >= 3) { + return self::$cache = array('branch' => $result[1], 'revision' => $result[2]); } - return self::$cache = array(); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Processor/ProcessIdProcessor.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Processor/ProcessIdProcessor.php similarity index 70% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Processor/ProcessIdProcessor.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Processor/ProcessIdProcessor.php index 66b80fb..3c7dfa0 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Processor/ProcessIdProcessor.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Processor/ProcessIdProcessor.php @@ -8,15 +8,14 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - -namespace Monolog\Processor; +namespace WPMailSMTP\Vendor\Monolog\Processor; /** * Adds value of getmypid into records * * @author Andreas Hörnicke */ -class ProcessIdProcessor implements ProcessorInterface +class ProcessIdProcessor implements \WPMailSMTP\Vendor\Monolog\Processor\ProcessorInterface { /** * @param array $record @@ -24,8 +23,7 @@ class ProcessIdProcessor implements ProcessorInterface */ public function __invoke(array $record) { - $record['extra']['process_id'] = getmypid(); - + $record['extra']['process_id'] = \getmypid(); return $record; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Processor/ProcessorInterface.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Processor/ProcessorInterface.php similarity index 91% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Processor/ProcessorInterface.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Processor/ProcessorInterface.php index 7e64d4d..7b166bc 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Processor/ProcessorInterface.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Processor/ProcessorInterface.php @@ -8,8 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - -namespace Monolog\Processor; +namespace WPMailSMTP\Vendor\Monolog\Processor; /** * An optional interface to allow labelling Monolog processors. diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.php similarity index 50% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.php index 0088505..53483cb 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.php @@ -8,11 +8,9 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Processor; -namespace Monolog\Processor; - -use Monolog\Utils; - +use WPMailSMTP\Vendor\Monolog\Utils; /** * Processes a record's message according to PSR-3 rules * @@ -20,7 +18,7 @@ use Monolog\Utils; * * @author Jordi Boggiano */ -class PsrLogMessageProcessor implements ProcessorInterface +class PsrLogMessageProcessor implements \WPMailSMTP\Vendor\Monolog\Processor\ProcessorInterface { /** * @param array $record @@ -28,23 +26,20 @@ class PsrLogMessageProcessor implements ProcessorInterface */ public function __invoke(array $record) { - if (false === strpos($record['message'], '{')) { + if (\false === \strpos($record['message'], '{')) { return $record; } - $replacements = array(); foreach ($record['context'] as $key => $val) { - if (is_null($val) || is_scalar($val) || (is_object($val) && method_exists($val, "__toString"))) { - $replacements['{'.$key.'}'] = $val; - } elseif (is_object($val)) { - $replacements['{'.$key.'}'] = '[object '.Utils::getClass($val).']'; + if (\is_null($val) || \is_scalar($val) || \is_object($val) && \method_exists($val, "__toString")) { + $replacements['{' . $key . '}'] = $val; + } elseif (\is_object($val)) { + $replacements['{' . $key . '}'] = '[object ' . \WPMailSMTP\Vendor\Monolog\Utils::getClass($val) . ']'; } else { - $replacements['{'.$key.'}'] = '['.gettype($val).']'; + $replacements['{' . $key . '}'] = '[' . \gettype($val) . ']'; } } - - $record['message'] = strtr($record['message'], $replacements); - + $record['message'] = \strtr($record['message'], $replacements); return $record; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Processor/TagProcessor.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Processor/TagProcessor.php similarity index 79% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Processor/TagProcessor.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Processor/TagProcessor.php index 615a4d9..f722cd6 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Processor/TagProcessor.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Processor/TagProcessor.php @@ -8,37 +8,31 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - -namespace Monolog\Processor; +namespace WPMailSMTP\Vendor\Monolog\Processor; /** * Adds a tags array into record * * @author Martijn Riemers */ -class TagProcessor implements ProcessorInterface +class TagProcessor implements \WPMailSMTP\Vendor\Monolog\Processor\ProcessorInterface { private $tags; - public function __construct(array $tags = array()) { $this->setTags($tags); } - public function addTags(array $tags = array()) { - $this->tags = array_merge($this->tags, $tags); + $this->tags = \array_merge($this->tags, $tags); } - public function setTags(array $tags = array()) { $this->tags = $tags; } - public function __invoke(array $record) { $record['extra']['tags'] = $this->tags; - return $record; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Processor/UidProcessor.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Processor/UidProcessor.php similarity index 68% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Processor/UidProcessor.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Processor/UidProcessor.php index d1f708c..bba2a8d 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Processor/UidProcessor.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Processor/UidProcessor.php @@ -8,37 +8,29 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ +namespace WPMailSMTP\Vendor\Monolog\Processor; -namespace Monolog\Processor; - -use Monolog\ResettableInterface; - +use WPMailSMTP\Vendor\Monolog\ResettableInterface; /** * Adds a unique identifier into records * * @author Simon Mönch */ -class UidProcessor implements ProcessorInterface, ResettableInterface +class UidProcessor implements \WPMailSMTP\Vendor\Monolog\Processor\ProcessorInterface, \WPMailSMTP\Vendor\Monolog\ResettableInterface { private $uid; - public function __construct($length = 7) { - if (!is_int($length) || $length > 32 || $length < 1) { + if (!\is_int($length) || $length > 32 || $length < 1) { throw new \InvalidArgumentException('The uid length must be an integer between 1 and 32'); } - - $this->uid = $this->generateUid($length); } - public function __invoke(array $record) { $record['extra']['uid'] = $this->uid; - return $record; } - /** * @return string */ @@ -46,14 +38,12 @@ class UidProcessor implements ProcessorInterface, ResettableInterface { return $this->uid; } - public function reset() { - $this->uid = $this->generateUid(strlen($this->uid)); + $this->uid = $this->generateUid(\strlen($this->uid)); } - private function generateUid($length) { - return substr(hash('md5', uniqid('', true)), 0, $length); + return \substr(\hash('md5', \uniqid('', \true)), 0, $length); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Processor/WebProcessor.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Processor/WebProcessor.php similarity index 81% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Processor/WebProcessor.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Processor/WebProcessor.php index 2e8dfae..a18a853 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Processor/WebProcessor.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Processor/WebProcessor.php @@ -8,21 +8,19 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - -namespace Monolog\Processor; +namespace WPMailSMTP\Vendor\Monolog\Processor; /** * Injects url/method and remote IP of the current web request in all records * * @author Jordi Boggiano */ -class WebProcessor implements ProcessorInterface +class WebProcessor implements \WPMailSMTP\Vendor\Monolog\Processor\ProcessorInterface { /** * @var array|\ArrayAccess */ protected $serverData; - /** * Default fields * @@ -30,14 +28,7 @@ class WebProcessor implements ProcessorInterface * * @var array */ - protected $extraFields = array( - 'url' => 'REQUEST_URI', - 'ip' => 'REMOTE_ADDR', - 'http_method' => 'REQUEST_METHOD', - 'server' => 'SERVER_NAME', - 'referrer' => 'HTTP_REFERER', - ); - + protected $extraFields = array('url' => 'REQUEST_URI', 'ip' => 'REMOTE_ADDR', 'http_method' => 'REQUEST_METHOD', 'server' => 'SERVER_NAME', 'referrer' => 'HTTP_REFERER'); /** * @param array|\ArrayAccess $serverData Array or object w/ ArrayAccess that provides access to the $_SERVER data * @param array|null $extraFields Field names and the related key inside $serverData to be added. If not provided it defaults to: url, ip, http_method, server, referrer @@ -45,21 +36,19 @@ class WebProcessor implements ProcessorInterface public function __construct($serverData = null, array $extraFields = null) { if (null === $serverData) { - $this->serverData = &$_SERVER; - } elseif (is_array($serverData) || $serverData instanceof \ArrayAccess) { + $this->serverData =& $_SERVER; + } elseif (\is_array($serverData) || $serverData instanceof \ArrayAccess) { $this->serverData = $serverData; } else { throw new \UnexpectedValueException('$serverData must be an array or object implementing ArrayAccess.'); } - if (isset($this->serverData['UNIQUE_ID'])) { $this->extraFields['unique_id'] = 'UNIQUE_ID'; } - if (null !== $extraFields) { if (isset($extraFields[0])) { - foreach (array_keys($this->extraFields) as $fieldName) { - if (!in_array($fieldName, $extraFields)) { + foreach (\array_keys($this->extraFields) as $fieldName) { + if (!\in_array($fieldName, $extraFields)) { unset($this->extraFields[$fieldName]); } } @@ -68,7 +57,6 @@ class WebProcessor implements ProcessorInterface } } } - /** * @param array $record * @return array @@ -80,12 +68,9 @@ class WebProcessor implements ProcessorInterface if (!isset($this->serverData['REQUEST_URI'])) { return $record; } - $record['extra'] = $this->appendExtraFields($record['extra']); - return $record; } - /** * @param string $extraName * @param string $serverName @@ -94,10 +79,8 @@ class WebProcessor implements ProcessorInterface public function addExtraField($extraName, $serverName) { $this->extraFields[$extraName] = $serverName; - return $this; } - /** * @param array $extra * @return array @@ -107,7 +90,6 @@ class WebProcessor implements ProcessorInterface foreach ($this->extraFields as $extraName => $serverName) { $extra[$extraName] = isset($this->serverData[$serverName]) ? $this->serverData[$serverName] : null; } - return $extra; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Registry.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Registry.php similarity index 83% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Registry.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Registry.php index 159b751..87531e5 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Registry.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Registry.php @@ -8,11 +8,9 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - -namespace Monolog; +namespace WPMailSMTP\Vendor\Monolog; use InvalidArgumentException; - /** * Monolog log registry * @@ -43,7 +41,6 @@ class Registry * @var Logger[] */ private static $loggers = array(); - /** * Adds new logging channel to the registry * @@ -52,17 +49,14 @@ class Registry * @param bool $overwrite Overwrite instance in the registry if the given name already exists? * @throws \InvalidArgumentException If $overwrite set to false and named Logger instance already exists */ - public static function addLogger(Logger $logger, $name = null, $overwrite = false) + public static function addLogger(\WPMailSMTP\Vendor\Monolog\Logger $logger, $name = null, $overwrite = \false) { $name = $name ?: $logger->getName(); - if (isset(self::$loggers[$name]) && !$overwrite) { - throw new InvalidArgumentException('Logger with the given name already exists'); + throw new \InvalidArgumentException('Logger with the given name already exists'); } - self::$loggers[$name] = $logger; } - /** * Checks if such logging channel exists by name or instance * @@ -70,15 +64,13 @@ class Registry */ public static function hasLogger($logger) { - if ($logger instanceof Logger) { - $index = array_search($logger, self::$loggers, true); - - return false !== $index; + if ($logger instanceof \WPMailSMTP\Vendor\Monolog\Logger) { + $index = \array_search($logger, self::$loggers, \true); + return \false !== $index; } else { return isset(self::$loggers[$logger]); } } - /** * Removes instance from registry by name or instance * @@ -86,15 +78,14 @@ class Registry */ public static function removeLogger($logger) { - if ($logger instanceof Logger) { - if (false !== ($idx = array_search($logger, self::$loggers, true))) { + if ($logger instanceof \WPMailSMTP\Vendor\Monolog\Logger) { + if (\false !== ($idx = \array_search($logger, self::$loggers, \true))) { unset(self::$loggers[$idx]); } } else { unset(self::$loggers[$logger]); } } - /** * Clears the registry */ @@ -102,7 +93,6 @@ class Registry { self::$loggers = array(); } - /** * Gets Logger instance from the registry * @@ -113,12 +103,10 @@ class Registry public static function getInstance($name) { if (!isset(self::$loggers[$name])) { - throw new InvalidArgumentException(sprintf('Requested "%s" logger instance is not in the registry', $name)); + throw new \InvalidArgumentException(\sprintf('Requested "%s" logger instance is not in the registry', $name)); } - return self::$loggers[$name]; } - /** * Gets Logger instance from the registry via static method call * diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/ResettableInterface.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/ResettableInterface.php similarity index 96% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/ResettableInterface.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/ResettableInterface.php index 635bc77..5716739 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/ResettableInterface.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/ResettableInterface.php @@ -8,8 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - -namespace Monolog; +namespace WPMailSMTP\Vendor\Monolog; /** * Handler or Processor implementing this interface will be reset when Logger::reset() is called. diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/SignalHandler.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/SignalHandler.php new file mode 100644 index 0000000..9ca6413 --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/SignalHandler.php @@ -0,0 +1,100 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ +namespace WPMailSMTP\Vendor\Monolog; + +use WPMailSMTP\Vendor\Psr\Log\LoggerInterface; +use WPMailSMTP\Vendor\Psr\Log\LogLevel; +use ReflectionExtension; +/** + * Monolog POSIX signal handler + * + * @author Robert Gust-Bardon + */ +class SignalHandler +{ + private $logger; + private $previousSignalHandler = array(); + private $signalLevelMap = array(); + private $signalRestartSyscalls = array(); + public function __construct(\WPMailSMTP\Vendor\Psr\Log\LoggerInterface $logger) + { + $this->logger = $logger; + } + public function registerSignalHandler($signo, $level = \WPMailSMTP\Vendor\Psr\Log\LogLevel::CRITICAL, $callPrevious = \true, $restartSyscalls = \true, $async = \true) + { + if (!\extension_loaded('pcntl') || !\function_exists('pcntl_signal')) { + return $this; + } + if ($callPrevious) { + if (\function_exists('pcntl_signal_get_handler')) { + $handler = \pcntl_signal_get_handler($signo); + if ($handler === \false) { + return $this; + } + $this->previousSignalHandler[$signo] = $handler; + } else { + $this->previousSignalHandler[$signo] = \true; + } + } else { + unset($this->previousSignalHandler[$signo]); + } + $this->signalLevelMap[$signo] = $level; + $this->signalRestartSyscalls[$signo] = $restartSyscalls; + if (\function_exists('pcntl_async_signals') && $async !== null) { + \pcntl_async_signals($async); + } + \pcntl_signal($signo, array($this, 'handleSignal'), $restartSyscalls); + return $this; + } + public function handleSignal($signo, array $siginfo = null) + { + static $signals = array(); + if (!$signals && \extension_loaded('pcntl')) { + $pcntl = new \ReflectionExtension('pcntl'); + $constants = $pcntl->getConstants(); + if (!$constants) { + // HHVM 3.24.2 returns an empty array. + $constants = \get_defined_constants(\true); + $constants = $constants['Core']; + } + foreach ($constants as $name => $value) { + if (\substr($name, 0, 3) === 'SIG' && $name[3] !== '_' && \is_int($value)) { + $signals[$value] = $name; + } + } + unset($constants); + } + $level = isset($this->signalLevelMap[$signo]) ? $this->signalLevelMap[$signo] : \WPMailSMTP\Vendor\Psr\Log\LogLevel::CRITICAL; + $signal = isset($signals[$signo]) ? $signals[$signo] : $signo; + $context = isset($siginfo) ? $siginfo : array(); + $this->logger->log($level, \sprintf('Program received signal %s', $signal), $context); + if (!isset($this->previousSignalHandler[$signo])) { + return; + } + if ($this->previousSignalHandler[$signo] === \true || $this->previousSignalHandler[$signo] === \SIG_DFL) { + if (\extension_loaded('pcntl') && \function_exists('pcntl_signal') && \function_exists('pcntl_sigprocmask') && \function_exists('pcntl_signal_dispatch') && \extension_loaded('posix') && \function_exists('posix_getpid') && \function_exists('posix_kill')) { + $restartSyscalls = isset($this->signalRestartSyscalls[$signo]) ? $this->signalRestartSyscalls[$signo] : \true; + \pcntl_signal($signo, \SIG_DFL, $restartSyscalls); + \pcntl_sigprocmask(\SIG_UNBLOCK, array($signo), $oldset); + \posix_kill(\posix_getpid(), $signo); + \pcntl_signal_dispatch(); + \pcntl_sigprocmask(\SIG_SETMASK, $oldset); + \pcntl_signal($signo, array($this, 'handleSignal'), $restartSyscalls); + } + } elseif (\is_callable($this->previousSignalHandler[$signo])) { + if (\PHP_VERSION_ID >= 70100) { + $this->previousSignalHandler[$signo]($signo, $siginfo); + } else { + $this->previousSignalHandler[$signo]($signo); + } + } + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Utils.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Utils.php similarity index 66% rename from wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Utils.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Utils.php index 712b196..5c72e35 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/monolog/monolog/src/Monolog/Utils.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/monolog/monolog/src/Monolog/Utils.php @@ -8,8 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - -namespace Monolog; +namespace WPMailSMTP\Vendor\Monolog; class Utils { @@ -19,10 +18,8 @@ class Utils public static function getClass($object) { $class = \get_class($object); - - return 'c' === $class[0] && 0 === strpos($class, "class@anonymous\0") ? get_parent_class($class).'@anonymous' : $class; + return 'c' === $class[0] && 0 === \strpos($class, "class@anonymous\0") ? \get_parent_class($class) . '@anonymous' : $class; } - /** * Makes sure if a relative path is passed in it is turned into an absolute path * @@ -33,26 +30,21 @@ class Utils public static function canonicalizePath($streamUrl) { $prefix = ''; - if ('file://' === substr($streamUrl, 0, 7)) { - $streamUrl = substr($streamUrl, 7); + if ('file://' === \substr($streamUrl, 0, 7)) { + $streamUrl = \substr($streamUrl, 7); $prefix = 'file://'; } - // other type of stream, not supported - if (false !== strpos($streamUrl, '://')) { + if (\false !== \strpos($streamUrl, '://')) { return $streamUrl; } - // already absolute - if (substr($streamUrl, 0, 1) === '/' || substr($streamUrl, 1, 1) === ':' || substr($streamUrl, 0, 2) === '\\\\') { - return $prefix.$streamUrl; + if (\substr($streamUrl, 0, 1) === '/' || \substr($streamUrl, 1, 1) === ':' || \substr($streamUrl, 0, 2) === '\\\\') { + return $prefix . $streamUrl; } - - $streamUrl = getcwd() . '/' . $streamUrl; - - return $prefix.$streamUrl; + $streamUrl = \getcwd() . '/' . $streamUrl; + return $prefix . $streamUrl; } - /** * Return the JSON representation of a value * @@ -62,29 +54,24 @@ class Utils * @throws \RuntimeException if encoding fails and errors are not ignored * @return string */ - public static function jsonEncode($data, $encodeFlags = null, $ignoreErrors = false) + public static function jsonEncode($data, $encodeFlags = null, $ignoreErrors = \false) { - if (null === $encodeFlags && version_compare(PHP_VERSION, '5.4.0', '>=')) { - $encodeFlags = JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE; + if (null === $encodeFlags && \version_compare(\PHP_VERSION, '5.4.0', '>=')) { + $encodeFlags = \JSON_UNESCAPED_SLASHES | \JSON_UNESCAPED_UNICODE; } - if ($ignoreErrors) { - $json = @json_encode($data, $encodeFlags); - if (false === $json) { + $json = @\json_encode($data, $encodeFlags); + if (\false === $json) { return 'null'; } - return $json; } - - $json = json_encode($data, $encodeFlags); - if (false === $json) { - $json = self::handleJsonError(json_last_error(), $data); + $json = \json_encode($data, $encodeFlags); + if (\false === $json) { + $json = self::handleJsonError(\json_last_error(), $data); } - return $json; } - /** * Handle a json_encode failure. * @@ -101,31 +88,25 @@ class Utils */ public static function handleJsonError($code, $data, $encodeFlags = null) { - if ($code !== JSON_ERROR_UTF8) { + if ($code !== \JSON_ERROR_UTF8) { self::throwEncodeError($code, $data); } - - if (is_string($data)) { + if (\is_string($data)) { self::detectAndCleanUtf8($data); - } elseif (is_array($data)) { - array_walk_recursive($data, array('Monolog\Utils', 'detectAndCleanUtf8')); + } elseif (\is_array($data)) { + \array_walk_recursive($data, array('WPMailSMTP\\Vendor\\Monolog\\Utils', 'detectAndCleanUtf8')); } else { self::throwEncodeError($code, $data); } - - if (null === $encodeFlags && version_compare(PHP_VERSION, '5.4.0', '>=')) { - $encodeFlags = JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE; + if (null === $encodeFlags && \version_compare(\PHP_VERSION, '5.4.0', '>=')) { + $encodeFlags = \JSON_UNESCAPED_SLASHES | \JSON_UNESCAPED_UNICODE; } - - $json = json_encode($data, $encodeFlags); - - if ($json === false) { - self::throwEncodeError(json_last_error(), $data); + $json = \json_encode($data, $encodeFlags); + if ($json === \false) { + self::throwEncodeError(\json_last_error(), $data); } - return $json; } - /** * Throws an exception according to a given code with a customized message * @@ -136,25 +117,23 @@ class Utils private static function throwEncodeError($code, $data) { switch ($code) { - case JSON_ERROR_DEPTH: + case \JSON_ERROR_DEPTH: $msg = 'Maximum stack depth exceeded'; break; - case JSON_ERROR_STATE_MISMATCH: + case \JSON_ERROR_STATE_MISMATCH: $msg = 'Underflow or the modes mismatch'; break; - case JSON_ERROR_CTRL_CHAR: + case \JSON_ERROR_CTRL_CHAR: $msg = 'Unexpected control character found'; break; - case JSON_ERROR_UTF8: + case \JSON_ERROR_UTF8: $msg = 'Malformed UTF-8 characters, possibly incorrectly encoded'; break; default: $msg = 'Unknown error'; } - - throw new \RuntimeException('JSON encoding failed: '.$msg.'. Encoding: '.var_export($data, true)); + throw new \RuntimeException('JSON encoding failed: ' . $msg . '. Encoding: ' . \var_export($data, \true)); } - /** * Detect invalid UTF-8 string characters and convert to valid UTF-8. * @@ -173,17 +152,11 @@ class Utils */ public static function detectAndCleanUtf8(&$data) { - if (is_string($data) && !preg_match('//u', $data)) { - $data = preg_replace_callback( - '/[\x80-\xFF]+/', - function ($m) { return utf8_encode($m[0]); }, - $data - ); - $data = str_replace( - array('¤', '¦', '¨', '´', '¸', '¼', '½', '¾'), - array('€', 'Š', 'š', 'Ž', 'ž', 'Œ', 'œ', 'Ÿ'), - $data - ); + if (\is_string($data) && !\preg_match('//u', $data)) { + $data = \preg_replace_callback('/[\\x80-\\xFF]+/', function ($m) { + return \utf8_encode($m[0]); + }, $data); + $data = \str_replace(array('¤', '¦', '¨', '´', '¸', '¼', '½', '¾'), array('€', 'Š', 'š', 'Ž', 'ž', 'Œ', 'œ', 'Ÿ'), $data); } } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/phpseclib/phpseclib/LICENSE b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/phpseclib/phpseclib/LICENSE similarity index 100% rename from wp-content/plugins/wp-mail-smtp/vendor/phpseclib/phpseclib/LICENSE rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/phpseclib/phpseclib/LICENSE diff --git a/wp-content/plugins/wp-mail-smtp/vendor/phpseclib/phpseclib/phpseclib/Crypt/AES.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/AES.php similarity index 95% rename from wp-content/plugins/wp-mail-smtp/vendor/phpseclib/phpseclib/phpseclib/Crypt/AES.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/AES.php index 7d8cb8b..cedc672 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/phpseclib/phpseclib/phpseclib/Crypt/AES.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/AES.php @@ -46,8 +46,7 @@ * @license http://www.opensource.org/licenses/mit-license.html MIT License * @link http://phpseclib.sourceforge.net */ - -namespace phpseclib\Crypt; +namespace WPMailSMTP\Vendor\phpseclib\Crypt; /** * Pure-PHP implementation of AES. @@ -56,7 +55,7 @@ namespace phpseclib\Crypt; * @author Jim Wigginton * @access public */ -class AES extends Rijndael +class AES extends \WPMailSMTP\Vendor\phpseclib\Crypt\Rijndael { /** * Dummy function @@ -71,7 +70,6 @@ class AES extends Rijndael { return; } - /** * Sets the key length * @@ -93,7 +91,6 @@ class AES extends Rijndael } parent::setKeyLength($length); } - /** * Sets the key. * @@ -107,10 +104,9 @@ class AES extends Rijndael function setKey($key) { parent::setKey($key); - if (!$this->explicit_key_length) { - $length = strlen($key); - switch (true) { + $length = \strlen($key); + switch (\true) { case $length <= 16: $this->key_length = 16; break; diff --git a/wp-content/plugins/wp-mail-smtp/vendor/phpseclib/phpseclib/phpseclib/Crypt/RSA.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/RSA.php similarity index 61% rename from wp-content/plugins/wp-mail-smtp/vendor/phpseclib/phpseclib/phpseclib/Crypt/RSA.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/RSA.php index 72be6ee..13537ee 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/phpseclib/phpseclib/phpseclib/Crypt/RSA.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/RSA.php @@ -48,11 +48,9 @@ * @license http://www.opensource.org/licenses/mit-license.html MIT License * @link http://phpseclib.sourceforge.net */ +namespace WPMailSMTP\Vendor\phpseclib\Crypt; -namespace phpseclib\Crypt; - -use phpseclib\Math\BigInteger; - +use WPMailSMTP\Vendor\phpseclib\Math\BigInteger; /** * Pure-PHP PKCS#1 compliant implementation of RSA. * @@ -92,13 +90,12 @@ class RSA */ const ENCRYPTION_NONE = 3; /**#@-*/ - /**#@+ * @access public * @see self::sign() * @see self::verify() * @see self::setHash() - */ + */ /** * Use the Probabilistic Signature Scheme for signing * @@ -116,11 +113,10 @@ class RSA */ const SIGNATURE_PKCS1 = 2; /**#@-*/ - /**#@+ * @access private * @see \phpseclib\Crypt\RSA::createKey() - */ + */ /** * ASN1 Integer */ @@ -142,11 +138,10 @@ class RSA */ const ASN1_SEQUENCE = 48; /**#@-*/ - /**#@+ * @access private * @see \phpseclib\Crypt\RSA::__construct() - */ + */ /** * To use the pure-PHP implementation */ @@ -158,12 +153,11 @@ class RSA */ const MODE_OPENSSL = 2; /**#@-*/ - /**#@+ * @access public * @see \phpseclib\Crypt\RSA::createKey() * @see \phpseclib\Crypt\RSA::setPrivateKeyFormat() - */ + */ /** * PKCS#1 formatted private key * @@ -187,12 +181,11 @@ class RSA */ const PRIVATE_FORMAT_OPENSSH = 9; /**#@-*/ - /**#@+ * @access public * @see \phpseclib\Crypt\RSA::createKey() * @see \phpseclib\Crypt\RSA::setPublicKeyFormat() - */ + */ /** * Raw public key * @@ -245,7 +238,6 @@ class RSA */ const PUBLIC_FORMAT_PKCS8 = 7; /**#@-*/ - /** * Precomputed Zero * @@ -253,7 +245,6 @@ class RSA * @access private */ var $zero; - /** * Precomputed One * @@ -261,7 +252,6 @@ class RSA * @access private */ var $one; - /** * Private Key Format * @@ -269,7 +259,6 @@ class RSA * @access private */ var $privateKeyFormat = self::PRIVATE_FORMAT_PKCS1; - /** * Public Key Format * @@ -277,7 +266,6 @@ class RSA * @access public */ var $publicKeyFormat = self::PUBLIC_FORMAT_PKCS8; - /** * Modulus (ie. n) * @@ -285,7 +273,6 @@ class RSA * @access private */ var $modulus; - /** * Modulus length * @@ -293,7 +280,6 @@ class RSA * @access private */ var $k; - /** * Exponent (ie. e or d) * @@ -301,7 +287,6 @@ class RSA * @access private */ var $exponent; - /** * Primes for Chinese Remainder Theorem (ie. p and q) * @@ -309,7 +294,6 @@ class RSA * @access private */ var $primes; - /** * Exponents for Chinese Remainder Theorem (ie. dP and dQ) * @@ -317,7 +301,6 @@ class RSA * @access private */ var $exponents; - /** * Coefficients for Chinese Remainder Theorem (ie. qInv) * @@ -325,7 +308,6 @@ class RSA * @access private */ var $coefficients; - /** * Hash name * @@ -333,7 +315,6 @@ class RSA * @access private */ var $hashName; - /** * Hash function * @@ -341,7 +322,6 @@ class RSA * @access private */ var $hash; - /** * Length of hash function output * @@ -349,7 +329,6 @@ class RSA * @access private */ var $hLen; - /** * Length of salt * @@ -357,7 +336,6 @@ class RSA * @access private */ var $sLen; - /** * Hash function for the Mask Generation Function * @@ -365,7 +343,6 @@ class RSA * @access private */ var $mgfHash; - /** * Length of MGF hash function output * @@ -373,7 +350,6 @@ class RSA * @access private */ var $mgfHLen; - /** * Encryption mode * @@ -381,7 +357,6 @@ class RSA * @access private */ var $encryptionMode = self::ENCRYPTION_OAEP; - /** * Signature mode * @@ -389,23 +364,20 @@ class RSA * @access private */ var $signatureMode = self::SIGNATURE_PSS; - /** * Public Exponent * * @var mixed * @access private */ - var $publicExponent = false; - + var $publicExponent = \false; /** * Password * * @var string * @access private */ - var $password = false; - + var $password = \false; /** * Components * @@ -417,7 +389,6 @@ class RSA * @access private */ var $components = array(); - /** * Current String * @@ -429,7 +400,6 @@ class RSA * @access private */ var $current; - /** * OpenSSL configuration file name. * @@ -439,7 +409,6 @@ class RSA * @Access public */ var $configFile; - /** * Public key comment field. * @@ -447,7 +416,6 @@ class RSA * @access private */ var $comment = 'phpseclib-generated-key'; - /** * The constructor * @@ -460,35 +428,30 @@ class RSA */ function __construct() { - $this->configFile = dirname(__FILE__) . '/../openssl.cnf'; - - if (!defined('CRYPT_RSA_MODE')) { - switch (true) { + $this->configFile = \dirname(__FILE__) . '/../openssl.cnf'; + if (!\defined('WPMailSMTP\\Vendor\\CRYPT_RSA_MODE')) { + switch (\true) { // Math/BigInteger's openssl requirements are a little less stringent than Crypt/RSA's. in particular, // Math/BigInteger doesn't require an openssl.cfg file whereas Crypt/RSA does. so if Math/BigInteger // can't use OpenSSL it can be pretty trivially assumed, then, that Crypt/RSA can't either. - case defined('MATH_BIGINTEGER_OPENSSL_DISABLE'): - define('CRYPT_RSA_MODE', self::MODE_INTERNAL); + case \defined('WPMailSMTP\\Vendor\\MATH_BIGINTEGER_OPENSSL_DISABLE'): + \define('WPMailSMTP\\Vendor\\CRYPT_RSA_MODE', self::MODE_INTERNAL); break; - case extension_loaded('openssl') && file_exists($this->configFile): + case \extension_loaded('openssl') && \file_exists($this->configFile): // some versions of XAMPP have mismatched versions of OpenSSL which causes it not to work $versions = array(); - // avoid generating errors (even with suppression) when phpinfo() is disabled (common in production systems) - if (strpos(ini_get('disable_functions'), 'phpinfo') === false) { - ob_start(); - @phpinfo(); - $content = ob_get_contents(); - ob_end_clean(); - - preg_match_all('#OpenSSL (Header|Library) Version(.*)#im', $content, $matches); - + if (\strpos(\ini_get('disable_functions'), 'phpinfo') === \false) { + \ob_start(); + @\phpinfo(); + $content = \ob_get_contents(); + \ob_end_clean(); + \preg_match_all('#OpenSSL (Header|Library) Version(.*)#im', $content, $matches); if (!empty($matches[1])) { - for ($i = 0; $i < count($matches[1]); $i++) { - $fullVersion = trim(str_replace('=>', '', strip_tags($matches[2][$i]))); - + for ($i = 0; $i < \count($matches[1]); $i++) { + $fullVersion = \trim(\str_replace('=>', '', \strip_tags($matches[2][$i]))); // Remove letter part in OpenSSL version - if (!preg_match('/(\d+\.\d+\.\d+)/i', $fullVersion, $m)) { + if (!\preg_match('/(\\d+\\.\\d+\\.\\d+)/i', $fullVersion, $m)) { $versions[$matches[1][$i]] = $fullVersion; } else { $versions[$matches[1][$i]] = $m[0]; @@ -496,35 +459,31 @@ class RSA } } } - // it doesn't appear that OpenSSL versions were reported upon until PHP 5.3+ - switch (true) { + switch (\true) { case !isset($versions['Header']): case !isset($versions['Library']): case $versions['Header'] == $versions['Library']: - case version_compare($versions['Header'], '1.0.0') >= 0 && version_compare($versions['Library'], '1.0.0') >= 0: - define('CRYPT_RSA_MODE', self::MODE_OPENSSL); + case \version_compare($versions['Header'], '1.0.0') >= 0 && \version_compare($versions['Library'], '1.0.0') >= 0: + \define('WPMailSMTP\\Vendor\\CRYPT_RSA_MODE', self::MODE_OPENSSL); break; default: - define('CRYPT_RSA_MODE', self::MODE_INTERNAL); - define('MATH_BIGINTEGER_OPENSSL_DISABLE', true); + \define('WPMailSMTP\\Vendor\\CRYPT_RSA_MODE', self::MODE_INTERNAL); + \define('WPMailSMTP\\Vendor\\MATH_BIGINTEGER_OPENSSL_DISABLE', \true); } break; default: - define('CRYPT_RSA_MODE', self::MODE_INTERNAL); + \define('WPMailSMTP\\Vendor\\CRYPT_RSA_MODE', self::MODE_INTERNAL); } } - - $this->zero = new BigInteger(); - $this->one = new BigInteger(1); - - $this->hash = new Hash('sha1'); + $this->zero = new \WPMailSMTP\Vendor\phpseclib\Math\BigInteger(); + $this->one = new \WPMailSMTP\Vendor\phpseclib\Math\BigInteger(1); + $this->hash = new \WPMailSMTP\Vendor\phpseclib\Crypt\Hash('sha1'); $this->hLen = $this->hash->getLength(); $this->hashName = 'sha1'; - $this->mgfHash = new Hash('sha1'); + $this->mgfHash = new \WPMailSMTP\Vendor\phpseclib\Crypt\Hash('sha1'); $this->mgfHLen = $this->mgfHash->getLength(); } - /** * Create public / private key pair * @@ -539,11 +498,11 @@ class RSA * @param int $timeout * @param array $p */ - function createKey($bits = 1024, $timeout = false, $partial = array()) + function createKey($bits = 1024, $timeout = \false, $partial = array()) { - if (!defined('CRYPT_RSA_EXPONENT')) { + if (!\defined('WPMailSMTP\\Vendor\\CRYPT_RSA_EXPONENT')) { // http://en.wikipedia.org/wiki/65537_%28number%29 - define('CRYPT_RSA_EXPONENT', '65537'); + \define('WPMailSMTP\\Vendor\\CRYPT_RSA_EXPONENT', '65537'); } // per , this number ought not result in primes smaller // than 256 bits. as a consequence if the key you're trying to create is 1024 bits and you've set CRYPT_RSA_SMALLEST_PRIME @@ -551,145 +510,101 @@ class RSA // CRYPT_RSA_MODE is set to self::MODE_INTERNAL. if CRYPT_RSA_MODE is set to self::MODE_OPENSSL then // CRYPT_RSA_SMALLEST_PRIME is ignored (ie. multi-prime RSA support is more intended as a way to speed up RSA key // generation when there's a chance neither gmp nor OpenSSL are installed) - if (!defined('CRYPT_RSA_SMALLEST_PRIME')) { - define('CRYPT_RSA_SMALLEST_PRIME', 4096); + if (!\defined('WPMailSMTP\\Vendor\\CRYPT_RSA_SMALLEST_PRIME')) { + \define('WPMailSMTP\\Vendor\\CRYPT_RSA_SMALLEST_PRIME', 4096); } - // OpenSSL uses 65537 as the exponent and requires RSA keys be 384 bits minimum if (CRYPT_RSA_MODE == self::MODE_OPENSSL && $bits >= 384 && CRYPT_RSA_EXPONENT == 65537) { $config = array(); if (isset($this->configFile)) { $config['config'] = $this->configFile; } - $rsa = openssl_pkey_new(array('private_key_bits' => $bits) + $config); - openssl_pkey_export($rsa, $privatekey, null, $config); - $publickey = openssl_pkey_get_details($rsa); + $rsa = \openssl_pkey_new(array('private_key_bits' => $bits) + $config); + \openssl_pkey_export($rsa, $privatekey, null, $config); + $publickey = \openssl_pkey_get_details($rsa); $publickey = $publickey['key']; - - $privatekey = call_user_func_array(array($this, '_convertPrivateKey'), array_values($this->_parseKey($privatekey, self::PRIVATE_FORMAT_PKCS1))); - $publickey = call_user_func_array(array($this, '_convertPublicKey'), array_values($this->_parseKey($publickey, self::PUBLIC_FORMAT_PKCS1))); - + $privatekey = \call_user_func_array(array($this, '_convertPrivateKey'), \array_values($this->_parseKey($privatekey, self::PRIVATE_FORMAT_PKCS1))); + $publickey = \call_user_func_array(array($this, '_convertPublicKey'), \array_values($this->_parseKey($publickey, self::PUBLIC_FORMAT_PKCS1))); // clear the buffer of error strings stemming from a minimalistic openssl.cnf - while (openssl_error_string() !== false) { + while (\openssl_error_string() !== \false) { } - - return array( - 'privatekey' => $privatekey, - 'publickey' => $publickey, - 'partialkey' => false - ); + return array('privatekey' => $privatekey, 'publickey' => $publickey, 'partialkey' => \false); } - static $e; if (!isset($e)) { - $e = new BigInteger(CRYPT_RSA_EXPONENT); + $e = new \WPMailSMTP\Vendor\phpseclib\Math\BigInteger(CRYPT_RSA_EXPONENT); } - - extract($this->_generateMinMax($bits)); + \extract($this->_generateMinMax($bits)); $absoluteMin = $min; - $temp = $bits >> 1; // divide by two to see how many bits P and Q would be + $temp = $bits >> 1; + // divide by two to see how many bits P and Q would be if ($temp > CRYPT_RSA_SMALLEST_PRIME) { - $num_primes = floor($bits / CRYPT_RSA_SMALLEST_PRIME); + $num_primes = \floor($bits / CRYPT_RSA_SMALLEST_PRIME); $temp = CRYPT_RSA_SMALLEST_PRIME; } else { $num_primes = 2; } - extract($this->_generateMinMax($temp + $bits % $temp)); + \extract($this->_generateMinMax($temp + $bits % $temp)); $finalMax = $max; - extract($this->_generateMinMax($temp)); - - $generator = new BigInteger(); - + \extract($this->_generateMinMax($temp)); + $generator = new \WPMailSMTP\Vendor\phpseclib\Math\BigInteger(); $n = $this->one->copy(); if (!empty($partial)) { - extract(unserialize($partial)); + \extract(\unserialize($partial)); } else { $exponents = $coefficients = $primes = array(); - $lcm = array( - 'top' => $this->one->copy(), - 'bottom' => false - ); + $lcm = array('top' => $this->one->copy(), 'bottom' => \false); } - - $start = time(); - $i0 = count($primes) + 1; - + $start = \time(); + $i0 = \count($primes) + 1; do { for ($i = $i0; $i <= $num_primes; $i++) { - if ($timeout !== false) { - $timeout-= time() - $start; - $start = time(); + if ($timeout !== \false) { + $timeout -= \time() - $start; + $start = \time(); if ($timeout <= 0) { - return array( - 'privatekey' => '', - 'publickey' => '', - 'partialkey' => serialize(array( - 'primes' => $primes, - 'coefficients' => $coefficients, - 'lcm' => $lcm, - 'exponents' => $exponents - )) - ); + return array('privatekey' => '', 'publickey' => '', 'partialkey' => \serialize(array('primes' => $primes, 'coefficients' => $coefficients, 'lcm' => $lcm, 'exponents' => $exponents))); } } - if ($i == $num_primes) { list($min, $temp) = $absoluteMin->divide($n); if (!$temp->equals($this->zero)) { - $min = $min->add($this->one); // ie. ceil() + $min = $min->add($this->one); + // ie. ceil() } $primes[$i] = $generator->randomPrime($min, $finalMax, $timeout); } else { $primes[$i] = $generator->randomPrime($min, $max, $timeout); } - - if ($primes[$i] === false) { // if we've reached the timeout - if (count($primes) > 1) { + if ($primes[$i] === \false) { + // if we've reached the timeout + if (\count($primes) > 1) { $partialkey = ''; } else { - array_pop($primes); - $partialkey = serialize(array( - 'primes' => $primes, - 'coefficients' => $coefficients, - 'lcm' => $lcm, - 'exponents' => $exponents - )); + \array_pop($primes); + $partialkey = \serialize(array('primes' => $primes, 'coefficients' => $coefficients, 'lcm' => $lcm, 'exponents' => $exponents)); } - - return array( - 'privatekey' => '', - 'publickey' => '', - 'partialkey' => $partialkey - ); + return array('privatekey' => '', 'publickey' => '', 'partialkey' => $partialkey); } - // the first coefficient is calculated differently from the rest // ie. instead of being $primes[1]->modInverse($primes[2]), it's $primes[2]->modInverse($primes[1]) if ($i > 2) { $coefficients[$i] = $n->modInverse($primes[$i]); } - $n = $n->multiply($primes[$i]); - $temp = $primes[$i]->subtract($this->one); - // textbook RSA implementations use Euler's totient function instead of the least common multiple. // see http://en.wikipedia.org/wiki/Euler%27s_totient_function $lcm['top'] = $lcm['top']->multiply($temp); - $lcm['bottom'] = $lcm['bottom'] === false ? $temp : $lcm['bottom']->gcd($temp); - + $lcm['bottom'] = $lcm['bottom'] === \false ? $temp : $lcm['bottom']->gcd($temp); $exponents[$i] = $e->modInverse($temp); } - list($temp) = $lcm['top']->divide($lcm['bottom']); $gcd = $temp->gcd($e); $i0 = 1; } while (!$gcd->equals($this->one)); - $d = $e->modInverse($temp); - $coefficients[2] = $primes[2]->modInverse($primes[1]); - // from : // RSAPrivateKey ::= SEQUENCE { // version Version, @@ -703,14 +618,8 @@ class RSA // coefficient INTEGER, -- (inverse of q) mod p // otherPrimeInfos OtherPrimeInfos OPTIONAL // } - - return array( - 'privatekey' => $this->_convertPrivateKey($n, $e, $d, $primes, $exponents, $coefficients), - 'publickey' => $this->_convertPublicKey($n, $e), - 'partialkey' => false - ); + return array('privatekey' => $this->_convertPrivateKey($n, $e, $d, $primes, $exponents, $coefficients), 'publickey' => $this->_convertPublicKey($n, $e), 'partialkey' => \false); } - /** * Convert a private key to the appropriate format. * @@ -722,9 +631,10 @@ class RSA function _convertPrivateKey($n, $e, $d, $primes, $exponents, $coefficients) { $signed = $this->privateKeyFormat != self::PRIVATE_FORMAT_XML; - $num_primes = count($primes); + $num_primes = \count($primes); $raw = array( - 'version' => $num_primes == 2 ? chr(0) : chr(1), // two-prime vs. multi + 'version' => $num_primes == 2 ? \chr(0) : \chr(1), + // two-prime vs. multi 'modulus' => $n->toBytes($signed), 'publicExponent' => $e->toBytes($signed), 'privateExponent' => $d->toBytes($signed), @@ -732,158 +642,79 @@ class RSA 'prime2' => $primes[2]->toBytes($signed), 'exponent1' => $exponents[1]->toBytes($signed), 'exponent2' => $exponents[2]->toBytes($signed), - 'coefficient' => $coefficients[2]->toBytes($signed) + 'coefficient' => $coefficients[2]->toBytes($signed), ); - // if the format in question does not support multi-prime rsa and multi-prime rsa was used, // call _convertPublicKey() instead. switch ($this->privateKeyFormat) { case self::PRIVATE_FORMAT_XML: if ($num_primes != 2) { - return false; + return \false; } - return "\r\n" . - ' ' . base64_encode($raw['modulus']) . "\r\n" . - ' ' . base64_encode($raw['publicExponent']) . "\r\n" . - '

' . base64_encode($raw['prime1']) . "

\r\n" . - ' ' . base64_encode($raw['prime2']) . "\r\n" . - ' ' . base64_encode($raw['exponent1']) . "\r\n" . - ' ' . base64_encode($raw['exponent2']) . "\r\n" . - ' ' . base64_encode($raw['coefficient']) . "\r\n" . - ' ' . base64_encode($raw['privateExponent']) . "\r\n" . - '
'; + return "\r\n" . ' ' . \base64_encode($raw['modulus']) . "\r\n" . ' ' . \base64_encode($raw['publicExponent']) . "\r\n" . '

' . \base64_encode($raw['prime1']) . "

\r\n" . ' ' . \base64_encode($raw['prime2']) . "\r\n" . ' ' . \base64_encode($raw['exponent1']) . "\r\n" . ' ' . \base64_encode($raw['exponent2']) . "\r\n" . ' ' . \base64_encode($raw['coefficient']) . "\r\n" . ' ' . \base64_encode($raw['privateExponent']) . "\r\n" . '
'; break; case self::PRIVATE_FORMAT_PUTTY: if ($num_primes != 2) { - return false; + return \false; } $key = "PuTTY-User-Key-File-2: ssh-rsa\r\nEncryption: "; - $encryption = (!empty($this->password) || is_string($this->password)) ? 'aes256-cbc' : 'none'; - $key.= $encryption; - $key.= "\r\nComment: " . $this->comment . "\r\n"; - $public = pack( - 'Na*Na*Na*', - strlen('ssh-rsa'), - 'ssh-rsa', - strlen($raw['publicExponent']), - $raw['publicExponent'], - strlen($raw['modulus']), - $raw['modulus'] - ); - $source = pack( - 'Na*Na*Na*Na*', - strlen('ssh-rsa'), - 'ssh-rsa', - strlen($encryption), - $encryption, - strlen($this->comment), - $this->comment, - strlen($public), - $public - ); - $public = base64_encode($public); - $key.= "Public-Lines: " . ((strlen($public) + 63) >> 6) . "\r\n"; - $key.= chunk_split($public, 64); - $private = pack( - 'Na*Na*Na*Na*', - strlen($raw['privateExponent']), - $raw['privateExponent'], - strlen($raw['prime1']), - $raw['prime1'], - strlen($raw['prime2']), - $raw['prime2'], - strlen($raw['coefficient']), - $raw['coefficient'] - ); - if (empty($this->password) && !is_string($this->password)) { - $source.= pack('Na*', strlen($private), $private); + $encryption = !empty($this->password) || \is_string($this->password) ? 'aes256-cbc' : 'none'; + $key .= $encryption; + $key .= "\r\nComment: " . $this->comment . "\r\n"; + $public = \pack('Na*Na*Na*', \strlen('ssh-rsa'), 'ssh-rsa', \strlen($raw['publicExponent']), $raw['publicExponent'], \strlen($raw['modulus']), $raw['modulus']); + $source = \pack('Na*Na*Na*Na*', \strlen('ssh-rsa'), 'ssh-rsa', \strlen($encryption), $encryption, \strlen($this->comment), $this->comment, \strlen($public), $public); + $public = \base64_encode($public); + $key .= "Public-Lines: " . (\strlen($public) + 63 >> 6) . "\r\n"; + $key .= \chunk_split($public, 64); + $private = \pack('Na*Na*Na*Na*', \strlen($raw['privateExponent']), $raw['privateExponent'], \strlen($raw['prime1']), $raw['prime1'], \strlen($raw['prime2']), $raw['prime2'], \strlen($raw['coefficient']), $raw['coefficient']); + if (empty($this->password) && !\is_string($this->password)) { + $source .= \pack('Na*', \strlen($private), $private); $hashkey = 'putty-private-key-file-mac-key'; } else { - $private.= Random::string(16 - (strlen($private) & 15)); - $source.= pack('Na*', strlen($private), $private); + $private .= \WPMailSMTP\Vendor\phpseclib\Crypt\Random::string(16 - (\strlen($private) & 15)); + $source .= \pack('Na*', \strlen($private), $private); $sequence = 0; $symkey = ''; - while (strlen($symkey) < 32) { - $temp = pack('Na*', $sequence++, $this->password); - $symkey.= pack('H*', sha1($temp)); + while (\strlen($symkey) < 32) { + $temp = \pack('Na*', $sequence++, $this->password); + $symkey .= \pack('H*', \sha1($temp)); } - $symkey = substr($symkey, 0, 32); - $crypto = new AES(); - + $symkey = \substr($symkey, 0, 32); + $crypto = new \WPMailSMTP\Vendor\phpseclib\Crypt\AES(); $crypto->setKey($symkey); $crypto->disablePadding(); $private = $crypto->encrypt($private); $hashkey = 'putty-private-key-file-mac-key' . $this->password; } - - $private = base64_encode($private); - $key.= 'Private-Lines: ' . ((strlen($private) + 63) >> 6) . "\r\n"; - $key.= chunk_split($private, 64); - $hash = new Hash('sha1'); - $hash->setKey(pack('H*', sha1($hashkey))); - $key.= 'Private-MAC: ' . bin2hex($hash->hash($source)) . "\r\n"; - + $private = \base64_encode($private); + $key .= 'Private-Lines: ' . (\strlen($private) + 63 >> 6) . "\r\n"; + $key .= \chunk_split($private, 64); + $hash = new \WPMailSMTP\Vendor\phpseclib\Crypt\Hash('sha1'); + $hash->setKey(\pack('H*', \sha1($hashkey))); + $key .= 'Private-MAC: ' . \bin2hex($hash->hash($source)) . "\r\n"; return $key; case self::PRIVATE_FORMAT_OPENSSH: if ($num_primes != 2) { - return false; + return \false; } - $publicKey = pack('Na*Na*Na*', strlen('ssh-rsa'), 'ssh-rsa', strlen($raw['publicExponent']), $raw['publicExponent'], strlen($raw['modulus']), $raw['modulus']); - $privateKey = pack( - 'Na*Na*Na*Na*Na*Na*Na*', - strlen('ssh-rsa'), - 'ssh-rsa', - strlen($raw['modulus']), - $raw['modulus'], - strlen($raw['publicExponent']), - $raw['publicExponent'], - strlen($raw['privateExponent']), - $raw['privateExponent'], - strlen($raw['coefficient']), - $raw['coefficient'], - strlen($raw['prime1']), - $raw['prime1'], - strlen($raw['prime2']), - $raw['prime2'] - ); - $checkint = Random::string(4); - $paddedKey = pack( - 'a*Na*', - $checkint . $checkint . $privateKey, - strlen($this->comment), - $this->comment - ); - $paddingLength = (7 * strlen($paddedKey)) % 8; + $publicKey = \pack('Na*Na*Na*', \strlen('ssh-rsa'), 'ssh-rsa', \strlen($raw['publicExponent']), $raw['publicExponent'], \strlen($raw['modulus']), $raw['modulus']); + $privateKey = \pack('Na*Na*Na*Na*Na*Na*Na*', \strlen('ssh-rsa'), 'ssh-rsa', \strlen($raw['modulus']), $raw['modulus'], \strlen($raw['publicExponent']), $raw['publicExponent'], \strlen($raw['privateExponent']), $raw['privateExponent'], \strlen($raw['coefficient']), $raw['coefficient'], \strlen($raw['prime1']), $raw['prime1'], \strlen($raw['prime2']), $raw['prime2']); + $checkint = \WPMailSMTP\Vendor\phpseclib\Crypt\Random::string(4); + $paddedKey = \pack('a*Na*', $checkint . $checkint . $privateKey, \strlen($this->comment), $this->comment); + $paddingLength = 7 * \strlen($paddedKey) % 8; for ($i = 1; $i <= $paddingLength; $i++) { - $paddedKey.= chr($i); + $paddedKey .= \chr($i); } - $key = pack( - 'Na*Na*Na*NNa*Na*', - strlen('none'), - 'none', - strlen('none'), - 'none', - 0, - '', - 1, - strlen($publicKey), - $publicKey, - strlen($paddedKey), - $paddedKey - ); - $key = "openssh-key-v1\0$key"; - - return "-----BEGIN OPENSSH PRIVATE KEY-----\r\n" . - chunk_split(base64_encode($key), 70) . - "-----END OPENSSH PRIVATE KEY-----"; - default: // eg. self::PRIVATE_FORMAT_PKCS1 + $key = \pack('Na*Na*Na*NNa*Na*', \strlen('none'), 'none', \strlen('none'), 'none', 0, '', 1, \strlen($publicKey), $publicKey, \strlen($paddedKey), $paddedKey); + $key = "openssh-key-v1\0{$key}"; + return "-----BEGIN OPENSSH PRIVATE KEY-----\r\n" . \chunk_split(\base64_encode($key), 70) . "-----END OPENSSH PRIVATE KEY-----"; + default: + // eg. self::PRIVATE_FORMAT_PKCS1 $components = array(); foreach ($raw as $name => $value) { - $components[$name] = pack('Ca*a*', self::ASN1_INTEGER, $this->_encodeLength(strlen($value)), $value); + $components[$name] = \pack('Ca*a*', self::ASN1_INTEGER, $this->_encodeLength(\strlen($value)), $value); } - - $RSAPrivateKey = implode('', $components); - + $RSAPrivateKey = \implode('', $components); if ($num_primes > 2) { $OtherPrimeInfos = ''; for ($i = 3; $i <= $num_primes; $i++) { @@ -894,104 +725,52 @@ class RSA // exponent INTEGER, -- di // coefficient INTEGER -- ti // } - $OtherPrimeInfo = pack('Ca*a*', self::ASN1_INTEGER, $this->_encodeLength(strlen($primes[$i]->toBytes(true))), $primes[$i]->toBytes(true)); - $OtherPrimeInfo.= pack('Ca*a*', self::ASN1_INTEGER, $this->_encodeLength(strlen($exponents[$i]->toBytes(true))), $exponents[$i]->toBytes(true)); - $OtherPrimeInfo.= pack('Ca*a*', self::ASN1_INTEGER, $this->_encodeLength(strlen($coefficients[$i]->toBytes(true))), $coefficients[$i]->toBytes(true)); - $OtherPrimeInfos.= pack('Ca*a*', self::ASN1_SEQUENCE, $this->_encodeLength(strlen($OtherPrimeInfo)), $OtherPrimeInfo); + $OtherPrimeInfo = \pack('Ca*a*', self::ASN1_INTEGER, $this->_encodeLength(\strlen($primes[$i]->toBytes(\true))), $primes[$i]->toBytes(\true)); + $OtherPrimeInfo .= \pack('Ca*a*', self::ASN1_INTEGER, $this->_encodeLength(\strlen($exponents[$i]->toBytes(\true))), $exponents[$i]->toBytes(\true)); + $OtherPrimeInfo .= \pack('Ca*a*', self::ASN1_INTEGER, $this->_encodeLength(\strlen($coefficients[$i]->toBytes(\true))), $coefficients[$i]->toBytes(\true)); + $OtherPrimeInfos .= \pack('Ca*a*', self::ASN1_SEQUENCE, $this->_encodeLength(\strlen($OtherPrimeInfo)), $OtherPrimeInfo); } - $RSAPrivateKey.= pack('Ca*a*', self::ASN1_SEQUENCE, $this->_encodeLength(strlen($OtherPrimeInfos)), $OtherPrimeInfos); + $RSAPrivateKey .= \pack('Ca*a*', self::ASN1_SEQUENCE, $this->_encodeLength(\strlen($OtherPrimeInfos)), $OtherPrimeInfos); } - - $RSAPrivateKey = pack('Ca*a*', self::ASN1_SEQUENCE, $this->_encodeLength(strlen($RSAPrivateKey)), $RSAPrivateKey); - + $RSAPrivateKey = \pack('Ca*a*', self::ASN1_SEQUENCE, $this->_encodeLength(\strlen($RSAPrivateKey)), $RSAPrivateKey); if ($this->privateKeyFormat == self::PRIVATE_FORMAT_PKCS8) { - $rsaOID = pack('H*', '300d06092a864886f70d0101010500'); // hex version of MA0GCSqGSIb3DQEBAQUA - $RSAPrivateKey = pack( - 'Ca*a*Ca*a*', - self::ASN1_INTEGER, - "\01\00", - $rsaOID, - 4, - $this->_encodeLength(strlen($RSAPrivateKey)), - $RSAPrivateKey - ); - $RSAPrivateKey = pack('Ca*a*', self::ASN1_SEQUENCE, $this->_encodeLength(strlen($RSAPrivateKey)), $RSAPrivateKey); - if (!empty($this->password) || is_string($this->password)) { - $salt = Random::string(8); + $rsaOID = \pack('H*', '300d06092a864886f70d0101010500'); + // hex version of MA0GCSqGSIb3DQEBAQUA + $RSAPrivateKey = \pack('Ca*a*Ca*a*', self::ASN1_INTEGER, "\1\0", $rsaOID, 4, $this->_encodeLength(\strlen($RSAPrivateKey)), $RSAPrivateKey); + $RSAPrivateKey = \pack('Ca*a*', self::ASN1_SEQUENCE, $this->_encodeLength(\strlen($RSAPrivateKey)), $RSAPrivateKey); + if (!empty($this->password) || \is_string($this->password)) { + $salt = \WPMailSMTP\Vendor\phpseclib\Crypt\Random::string(8); $iterationCount = 2048; - - $crypto = new DES(); + $crypto = new \WPMailSMTP\Vendor\phpseclib\Crypt\DES(); $crypto->setPassword($this->password, 'pbkdf1', 'md5', $salt, $iterationCount); $RSAPrivateKey = $crypto->encrypt($RSAPrivateKey); - - $parameters = pack( - 'Ca*a*Ca*N', - self::ASN1_OCTETSTRING, - $this->_encodeLength(strlen($salt)), - $salt, - self::ASN1_INTEGER, - $this->_encodeLength(4), - $iterationCount - ); - $pbeWithMD5AndDES_CBC = "\x2a\x86\x48\x86\xf7\x0d\x01\x05\x03"; - - $encryptionAlgorithm = pack( - 'Ca*a*Ca*a*', - self::ASN1_OBJECT, - $this->_encodeLength(strlen($pbeWithMD5AndDES_CBC)), - $pbeWithMD5AndDES_CBC, - self::ASN1_SEQUENCE, - $this->_encodeLength(strlen($parameters)), - $parameters - ); - - $RSAPrivateKey = pack( - 'Ca*a*Ca*a*', - self::ASN1_SEQUENCE, - $this->_encodeLength(strlen($encryptionAlgorithm)), - $encryptionAlgorithm, - self::ASN1_OCTETSTRING, - $this->_encodeLength(strlen($RSAPrivateKey)), - $RSAPrivateKey - ); - - $RSAPrivateKey = pack('Ca*a*', self::ASN1_SEQUENCE, $this->_encodeLength(strlen($RSAPrivateKey)), $RSAPrivateKey); - - $RSAPrivateKey = "-----BEGIN ENCRYPTED PRIVATE KEY-----\r\n" . - chunk_split(base64_encode($RSAPrivateKey), 64) . - '-----END ENCRYPTED PRIVATE KEY-----'; + $parameters = \pack('Ca*a*Ca*N', self::ASN1_OCTETSTRING, $this->_encodeLength(\strlen($salt)), $salt, self::ASN1_INTEGER, $this->_encodeLength(4), $iterationCount); + $pbeWithMD5AndDES_CBC = "*H\r\1\5\3"; + $encryptionAlgorithm = \pack('Ca*a*Ca*a*', self::ASN1_OBJECT, $this->_encodeLength(\strlen($pbeWithMD5AndDES_CBC)), $pbeWithMD5AndDES_CBC, self::ASN1_SEQUENCE, $this->_encodeLength(\strlen($parameters)), $parameters); + $RSAPrivateKey = \pack('Ca*a*Ca*a*', self::ASN1_SEQUENCE, $this->_encodeLength(\strlen($encryptionAlgorithm)), $encryptionAlgorithm, self::ASN1_OCTETSTRING, $this->_encodeLength(\strlen($RSAPrivateKey)), $RSAPrivateKey); + $RSAPrivateKey = \pack('Ca*a*', self::ASN1_SEQUENCE, $this->_encodeLength(\strlen($RSAPrivateKey)), $RSAPrivateKey); + $RSAPrivateKey = "-----BEGIN ENCRYPTED PRIVATE KEY-----\r\n" . \chunk_split(\base64_encode($RSAPrivateKey), 64) . '-----END ENCRYPTED PRIVATE KEY-----'; } else { - $RSAPrivateKey = "-----BEGIN PRIVATE KEY-----\r\n" . - chunk_split(base64_encode($RSAPrivateKey), 64) . - '-----END PRIVATE KEY-----'; + $RSAPrivateKey = "-----BEGIN PRIVATE KEY-----\r\n" . \chunk_split(\base64_encode($RSAPrivateKey), 64) . '-----END PRIVATE KEY-----'; } return $RSAPrivateKey; } - - if (!empty($this->password) || is_string($this->password)) { - $iv = Random::string(8); - $symkey = pack('H*', md5($this->password . $iv)); // symkey is short for symmetric key - $symkey.= substr(pack('H*', md5($symkey . $this->password . $iv)), 0, 8); - $des = new TripleDES(); + if (!empty($this->password) || \is_string($this->password)) { + $iv = \WPMailSMTP\Vendor\phpseclib\Crypt\Random::string(8); + $symkey = \pack('H*', \md5($this->password . $iv)); + // symkey is short for symmetric key + $symkey .= \substr(\pack('H*', \md5($symkey . $this->password . $iv)), 0, 8); + $des = new \WPMailSMTP\Vendor\phpseclib\Crypt\TripleDES(); $des->setKey($symkey); $des->setIV($iv); - $iv = strtoupper(bin2hex($iv)); - $RSAPrivateKey = "-----BEGIN RSA PRIVATE KEY-----\r\n" . - "Proc-Type: 4,ENCRYPTED\r\n" . - "DEK-Info: DES-EDE3-CBC,$iv\r\n" . - "\r\n" . - chunk_split(base64_encode($des->encrypt($RSAPrivateKey)), 64) . - '-----END RSA PRIVATE KEY-----'; + $iv = \strtoupper(\bin2hex($iv)); + $RSAPrivateKey = "-----BEGIN RSA PRIVATE KEY-----\r\n" . "Proc-Type: 4,ENCRYPTED\r\n" . "DEK-Info: DES-EDE3-CBC,{$iv}\r\n" . "\r\n" . \chunk_split(\base64_encode($des->encrypt($RSAPrivateKey)), 64) . '-----END RSA PRIVATE KEY-----'; } else { - $RSAPrivateKey = "-----BEGIN RSA PRIVATE KEY-----\r\n" . - chunk_split(base64_encode($RSAPrivateKey), 64) . - '-----END RSA PRIVATE KEY-----'; + $RSAPrivateKey = "-----BEGIN RSA PRIVATE KEY-----\r\n" . \chunk_split(\base64_encode($RSAPrivateKey), 64) . '-----END RSA PRIVATE KEY-----'; } - return $RSAPrivateKey; } } - /** * Convert a public key to the appropriate format * @@ -1003,73 +782,45 @@ class RSA function _convertPublicKey($n, $e) { $signed = $this->publicKeyFormat != self::PUBLIC_FORMAT_XML; - $modulus = $n->toBytes($signed); $publicExponent = $e->toBytes($signed); - switch ($this->publicKeyFormat) { case self::PUBLIC_FORMAT_RAW: return array('e' => $e->copy(), 'n' => $n->copy()); case self::PUBLIC_FORMAT_XML: - return "\r\n" . - ' ' . base64_encode($modulus) . "\r\n" . - ' ' . base64_encode($publicExponent) . "\r\n" . - ''; + return "\r\n" . ' ' . \base64_encode($modulus) . "\r\n" . ' ' . \base64_encode($publicExponent) . "\r\n" . ''; break; case self::PUBLIC_FORMAT_OPENSSH: // from : // string "ssh-rsa" // mpint e // mpint n - $RSAPublicKey = pack('Na*Na*Na*', strlen('ssh-rsa'), 'ssh-rsa', strlen($publicExponent), $publicExponent, strlen($modulus), $modulus); - $RSAPublicKey = 'ssh-rsa ' . base64_encode($RSAPublicKey) . ' ' . $this->comment; - + $RSAPublicKey = \pack('Na*Na*Na*', \strlen('ssh-rsa'), 'ssh-rsa', \strlen($publicExponent), $publicExponent, \strlen($modulus), $modulus); + $RSAPublicKey = 'ssh-rsa ' . \base64_encode($RSAPublicKey) . ' ' . $this->comment; return $RSAPublicKey; - default: // eg. self::PUBLIC_FORMAT_PKCS1_RAW or self::PUBLIC_FORMAT_PKCS1 + default: + // eg. self::PUBLIC_FORMAT_PKCS1_RAW or self::PUBLIC_FORMAT_PKCS1 // from : // RSAPublicKey ::= SEQUENCE { // modulus INTEGER, -- n // publicExponent INTEGER -- e // } - $components = array( - 'modulus' => pack('Ca*a*', self::ASN1_INTEGER, $this->_encodeLength(strlen($modulus)), $modulus), - 'publicExponent' => pack('Ca*a*', self::ASN1_INTEGER, $this->_encodeLength(strlen($publicExponent)), $publicExponent) - ); - - $RSAPublicKey = pack( - 'Ca*a*a*', - self::ASN1_SEQUENCE, - $this->_encodeLength(strlen($components['modulus']) + strlen($components['publicExponent'])), - $components['modulus'], - $components['publicExponent'] - ); - + $components = array('modulus' => \pack('Ca*a*', self::ASN1_INTEGER, $this->_encodeLength(\strlen($modulus)), $modulus), 'publicExponent' => \pack('Ca*a*', self::ASN1_INTEGER, $this->_encodeLength(\strlen($publicExponent)), $publicExponent)); + $RSAPublicKey = \pack('Ca*a*a*', self::ASN1_SEQUENCE, $this->_encodeLength(\strlen($components['modulus']) + \strlen($components['publicExponent'])), $components['modulus'], $components['publicExponent']); if ($this->publicKeyFormat == self::PUBLIC_FORMAT_PKCS1_RAW) { - $RSAPublicKey = "-----BEGIN RSA PUBLIC KEY-----\r\n" . - chunk_split(base64_encode($RSAPublicKey), 64) . - '-----END RSA PUBLIC KEY-----'; + $RSAPublicKey = "-----BEGIN RSA PUBLIC KEY-----\r\n" . \chunk_split(\base64_encode($RSAPublicKey), 64) . '-----END RSA PUBLIC KEY-----'; } else { // sequence(oid(1.2.840.113549.1.1.1), null)) = rsaEncryption. - $rsaOID = pack('H*', '300d06092a864886f70d0101010500'); // hex version of MA0GCSqGSIb3DQEBAQUA - $RSAPublicKey = chr(0) . $RSAPublicKey; - $RSAPublicKey = chr(3) . $this->_encodeLength(strlen($RSAPublicKey)) . $RSAPublicKey; - - $RSAPublicKey = pack( - 'Ca*a*', - self::ASN1_SEQUENCE, - $this->_encodeLength(strlen($rsaOID . $RSAPublicKey)), - $rsaOID . $RSAPublicKey - ); - - $RSAPublicKey = "-----BEGIN PUBLIC KEY-----\r\n" . - chunk_split(base64_encode($RSAPublicKey), 64) . - '-----END PUBLIC KEY-----'; + $rsaOID = \pack('H*', '300d06092a864886f70d0101010500'); + // hex version of MA0GCSqGSIb3DQEBAQUA + $RSAPublicKey = \chr(0) . $RSAPublicKey; + $RSAPublicKey = \chr(3) . $this->_encodeLength(\strlen($RSAPublicKey)) . $RSAPublicKey; + $RSAPublicKey = \pack('Ca*a*', self::ASN1_SEQUENCE, $this->_encodeLength(\strlen($rsaOID . $RSAPublicKey)), $rsaOID . $RSAPublicKey); + $RSAPublicKey = "-----BEGIN PUBLIC KEY-----\r\n" . \chunk_split(\base64_encode($RSAPublicKey), 64) . '-----END PUBLIC KEY-----'; } - return $RSAPublicKey; } } - /** * Break a public or private key down into its constituant components * @@ -1082,17 +833,16 @@ class RSA */ function _parseKey($key, $type) { - if ($type != self::PUBLIC_FORMAT_RAW && !is_string($key)) { - return false; + if ($type != self::PUBLIC_FORMAT_RAW && !\is_string($key)) { + return \false; } - switch ($type) { case self::PUBLIC_FORMAT_RAW: - if (!is_array($key)) { - return false; + if (!\is_array($key)) { + return \false; } $components = array(); - switch (true) { + switch (\true) { case isset($key['e']): $components['publicExponent'] = $key['e']->copy(); break; @@ -1105,7 +855,7 @@ class RSA case isset($key[0]): $components['publicExponent'] = $key[0]->copy(); } - switch (true) { + switch (\true) { case isset($key['n']): $components['modulus'] = $key['n']->copy(); break; @@ -1118,55 +868,56 @@ class RSA case isset($key[1]): $components['modulus'] = $key[1]->copy(); } - return isset($components['modulus']) && isset($components['publicExponent']) ? $components : false; + return isset($components['modulus']) && isset($components['publicExponent']) ? $components : \false; case self::PRIVATE_FORMAT_PKCS1: case self::PRIVATE_FORMAT_PKCS8: case self::PUBLIC_FORMAT_PKCS1: /* Although PKCS#1 proposes a format that public and private keys can use, encrypting them is - "outside the scope" of PKCS#1. PKCS#1 then refers you to PKCS#12 and PKCS#15 if you're wanting to - protect private keys, however, that's not what OpenSSL* does. OpenSSL protects private keys by adding - two new "fields" to the key - DEK-Info and Proc-Type. These fields are discussed here: - - http://tools.ietf.org/html/rfc1421#section-4.6.1.1 - http://tools.ietf.org/html/rfc1421#section-4.6.1.3 - - DES-EDE3-CBC as an algorithm, however, is not discussed anywhere, near as I can tell. - DES-CBC and DES-EDE are discussed in RFC1423, however, DES-EDE3-CBC isn't, nor is its key derivation - function. As is, the definitive authority on this encoding scheme isn't the IETF but rather OpenSSL's - own implementation. ie. the implementation *is* the standard and any bugs that may exist in that - implementation are part of the standard, as well. - - * OpenSSL is the de facto standard. It's utilized by OpenSSH and other projects */ - if (preg_match('#DEK-Info: (.+),(.+)#', $key, $matches)) { - $iv = pack('H*', trim($matches[2])); - $symkey = pack('H*', md5($this->password . substr($iv, 0, 8))); // symkey is short for symmetric key - $symkey.= pack('H*', md5($symkey . $this->password . substr($iv, 0, 8))); + "outside the scope" of PKCS#1. PKCS#1 then refers you to PKCS#12 and PKCS#15 if you're wanting to + protect private keys, however, that's not what OpenSSL* does. OpenSSL protects private keys by adding + two new "fields" to the key - DEK-Info and Proc-Type. These fields are discussed here: + + http://tools.ietf.org/html/rfc1421#section-4.6.1.1 + http://tools.ietf.org/html/rfc1421#section-4.6.1.3 + + DES-EDE3-CBC as an algorithm, however, is not discussed anywhere, near as I can tell. + DES-CBC and DES-EDE are discussed in RFC1423, however, DES-EDE3-CBC isn't, nor is its key derivation + function. As is, the definitive authority on this encoding scheme isn't the IETF but rather OpenSSL's + own implementation. ie. the implementation *is* the standard and any bugs that may exist in that + implementation are part of the standard, as well. + + * OpenSSL is the de facto standard. It's utilized by OpenSSH and other projects */ + if (\preg_match('#DEK-Info: (.+),(.+)#', $key, $matches)) { + $iv = \pack('H*', \trim($matches[2])); + $symkey = \pack('H*', \md5($this->password . \substr($iv, 0, 8))); + // symkey is short for symmetric key + $symkey .= \pack('H*', \md5($symkey . $this->password . \substr($iv, 0, 8))); // remove the Proc-Type / DEK-Info sections as they're no longer needed - $key = preg_replace('#^(?:Proc-Type|DEK-Info): .*#m', '', $key); + $key = \preg_replace('#^(?:Proc-Type|DEK-Info): .*#m', '', $key); $ciphertext = $this->_extractBER($key); - if ($ciphertext === false) { + if ($ciphertext === \false) { $ciphertext = $key; } switch ($matches[1]) { case 'AES-256-CBC': - $crypto = new AES(); + $crypto = new \WPMailSMTP\Vendor\phpseclib\Crypt\AES(); break; case 'AES-128-CBC': - $symkey = substr($symkey, 0, 16); - $crypto = new AES(); + $symkey = \substr($symkey, 0, 16); + $crypto = new \WPMailSMTP\Vendor\phpseclib\Crypt\AES(); break; case 'DES-EDE3-CFB': - $crypto = new TripleDES(Base::MODE_CFB); + $crypto = new \WPMailSMTP\Vendor\phpseclib\Crypt\TripleDES(\WPMailSMTP\Vendor\phpseclib\Crypt\Base::MODE_CFB); break; case 'DES-EDE3-CBC': - $symkey = substr($symkey, 0, 24); - $crypto = new TripleDES(); + $symkey = \substr($symkey, 0, 24); + $crypto = new \WPMailSMTP\Vendor\phpseclib\Crypt\TripleDES(); break; case 'DES-CBC': - $crypto = new DES(); + $crypto = new \WPMailSMTP\Vendor\phpseclib\Crypt\DES(); break; default: - return false; + return \false; } $crypto->setKey($symkey); $crypto->setIV($iv); @@ -1174,307 +925,279 @@ class RSA } else { $decoded = $this->_extractBER($key); } - - if ($decoded !== false) { + if ($decoded !== \false) { $key = $decoded; } - $components = array(); - - if (ord($this->_string_shift($key)) != self::ASN1_SEQUENCE) { - return false; + if (\ord($this->_string_shift($key)) != self::ASN1_SEQUENCE) { + return \false; } - if ($this->_decodeLength($key) != strlen($key)) { - return false; + if ($this->_decodeLength($key) != \strlen($key)) { + return \false; } - - $tag = ord($this->_string_shift($key)); + $tag = \ord($this->_string_shift($key)); /* intended for keys for which OpenSSL's asn1parse returns the following: - - 0:d=0 hl=4 l= 631 cons: SEQUENCE - 4:d=1 hl=2 l= 1 prim: INTEGER :00 - 7:d=1 hl=2 l= 13 cons: SEQUENCE - 9:d=2 hl=2 l= 9 prim: OBJECT :rsaEncryption - 20:d=2 hl=2 l= 0 prim: NULL - 22:d=1 hl=4 l= 609 prim: OCTET STRING - - ie. PKCS8 keys*/ - - if ($tag == self::ASN1_INTEGER && substr($key, 0, 3) == "\x01\x00\x30") { + + 0:d=0 hl=4 l= 631 cons: SEQUENCE + 4:d=1 hl=2 l= 1 prim: INTEGER :00 + 7:d=1 hl=2 l= 13 cons: SEQUENCE + 9:d=2 hl=2 l= 9 prim: OBJECT :rsaEncryption + 20:d=2 hl=2 l= 0 prim: NULL + 22:d=1 hl=4 l= 609 prim: OCTET STRING + + ie. PKCS8 keys*/ + if ($tag == self::ASN1_INTEGER && \substr($key, 0, 3) == "\1\0000") { $this->_string_shift($key, 3); $tag = self::ASN1_SEQUENCE; } - if ($tag == self::ASN1_SEQUENCE) { $temp = $this->_string_shift($key, $this->_decodeLength($key)); - if (ord($this->_string_shift($temp)) != self::ASN1_OBJECT) { - return false; + if (\ord($this->_string_shift($temp)) != self::ASN1_OBJECT) { + return \false; } $length = $this->_decodeLength($temp); switch ($this->_string_shift($temp, $length)) { - case "\x2a\x86\x48\x86\xf7\x0d\x01\x01\x01": // rsaEncryption + case "*H\r\1\1\1": + // rsaEncryption break; - case "\x2a\x86\x48\x86\xf7\x0d\x01\x05\x03": // pbeWithMD5AndDES-CBC + case "*H\r\1\5\3": + // pbeWithMD5AndDES-CBC /* PBEParameter ::= SEQUENCE { salt OCTET STRING (SIZE(8)), iterationCount INTEGER } */ - if (ord($this->_string_shift($temp)) != self::ASN1_SEQUENCE) { - return false; + if (\ord($this->_string_shift($temp)) != self::ASN1_SEQUENCE) { + return \false; } - if ($this->_decodeLength($temp) != strlen($temp)) { - return false; + if ($this->_decodeLength($temp) != \strlen($temp)) { + return \false; } - $this->_string_shift($temp); // assume it's an octet string + $this->_string_shift($temp); + // assume it's an octet string $salt = $this->_string_shift($temp, $this->_decodeLength($temp)); - if (ord($this->_string_shift($temp)) != self::ASN1_INTEGER) { - return false; + if (\ord($this->_string_shift($temp)) != self::ASN1_INTEGER) { + return \false; } $this->_decodeLength($temp); - list(, $iterationCount) = unpack('N', str_pad($temp, 4, chr(0), STR_PAD_LEFT)); - $this->_string_shift($key); // assume it's an octet string + list(, $iterationCount) = \unpack('N', \str_pad($temp, 4, \chr(0), \STR_PAD_LEFT)); + $this->_string_shift($key); + // assume it's an octet string $length = $this->_decodeLength($key); - if (strlen($key) != $length) { - return false; + if (\strlen($key) != $length) { + return \false; } - - $crypto = new DES(); + $crypto = new \WPMailSMTP\Vendor\phpseclib\Crypt\DES(); $crypto->setPassword($this->password, 'pbkdf1', 'md5', $salt, $iterationCount); $key = $crypto->decrypt($key); - if ($key === false) { - return false; + if ($key === \false) { + return \false; } return $this->_parseKey($key, self::PRIVATE_FORMAT_PKCS1); default: - return false; + return \false; } /* intended for keys for which OpenSSL's asn1parse returns the following: - - 0:d=0 hl=4 l= 290 cons: SEQUENCE - 4:d=1 hl=2 l= 13 cons: SEQUENCE - 6:d=2 hl=2 l= 9 prim: OBJECT :rsaEncryption - 17:d=2 hl=2 l= 0 prim: NULL - 19:d=1 hl=4 l= 271 prim: BIT STRING */ - $tag = ord($this->_string_shift($key)); // skip over the BIT STRING / OCTET STRING tag - $this->_decodeLength($key); // skip over the BIT STRING / OCTET STRING length + + 0:d=0 hl=4 l= 290 cons: SEQUENCE + 4:d=1 hl=2 l= 13 cons: SEQUENCE + 6:d=2 hl=2 l= 9 prim: OBJECT :rsaEncryption + 17:d=2 hl=2 l= 0 prim: NULL + 19:d=1 hl=4 l= 271 prim: BIT STRING */ + $tag = \ord($this->_string_shift($key)); + // skip over the BIT STRING / OCTET STRING tag + $this->_decodeLength($key); + // skip over the BIT STRING / OCTET STRING length // "The initial octet shall encode, as an unsigned binary integer wtih bit 1 as the least significant bit, the number of // unused bits in the final subsequent octet. The number shall be in the range zero to seven." // -- http://www.itu.int/ITU-T/studygroups/com17/languages/X.690-0207.pdf (section 8.6.2.2) if ($tag == self::ASN1_BITSTRING) { $this->_string_shift($key); } - if (ord($this->_string_shift($key)) != self::ASN1_SEQUENCE) { - return false; + if (\ord($this->_string_shift($key)) != self::ASN1_SEQUENCE) { + return \false; } - if ($this->_decodeLength($key) != strlen($key)) { - return false; + if ($this->_decodeLength($key) != \strlen($key)) { + return \false; } - $tag = ord($this->_string_shift($key)); + $tag = \ord($this->_string_shift($key)); } if ($tag != self::ASN1_INTEGER) { - return false; + return \false; } - $length = $this->_decodeLength($key); $temp = $this->_string_shift($key, $length); - if (strlen($temp) != 1 || ord($temp) > 2) { - $components['modulus'] = new BigInteger($temp, 256); - $this->_string_shift($key); // skip over self::ASN1_INTEGER + if (\strlen($temp) != 1 || \ord($temp) > 2) { + $components['modulus'] = new \WPMailSMTP\Vendor\phpseclib\Math\BigInteger($temp, 256); + $this->_string_shift($key); + // skip over self::ASN1_INTEGER $length = $this->_decodeLength($key); - $components[$type == self::PUBLIC_FORMAT_PKCS1 ? 'publicExponent' : 'privateExponent'] = new BigInteger($this->_string_shift($key, $length), 256); - + $components[$type == self::PUBLIC_FORMAT_PKCS1 ? 'publicExponent' : 'privateExponent'] = new \WPMailSMTP\Vendor\phpseclib\Math\BigInteger($this->_string_shift($key, $length), 256); return $components; } - if (ord($this->_string_shift($key)) != self::ASN1_INTEGER) { - return false; + if (\ord($this->_string_shift($key)) != self::ASN1_INTEGER) { + return \false; } $length = $this->_decodeLength($key); - $components['modulus'] = new BigInteger($this->_string_shift($key, $length), 256); + $components['modulus'] = new \WPMailSMTP\Vendor\phpseclib\Math\BigInteger($this->_string_shift($key, $length), 256); $this->_string_shift($key); $length = $this->_decodeLength($key); - $components['publicExponent'] = new BigInteger($this->_string_shift($key, $length), 256); + $components['publicExponent'] = new \WPMailSMTP\Vendor\phpseclib\Math\BigInteger($this->_string_shift($key, $length), 256); $this->_string_shift($key); $length = $this->_decodeLength($key); - $components['privateExponent'] = new BigInteger($this->_string_shift($key, $length), 256); + $components['privateExponent'] = new \WPMailSMTP\Vendor\phpseclib\Math\BigInteger($this->_string_shift($key, $length), 256); $this->_string_shift($key); $length = $this->_decodeLength($key); - $components['primes'] = array(1 => new BigInteger($this->_string_shift($key, $length), 256)); + $components['primes'] = array(1 => new \WPMailSMTP\Vendor\phpseclib\Math\BigInteger($this->_string_shift($key, $length), 256)); $this->_string_shift($key); $length = $this->_decodeLength($key); - $components['primes'][] = new BigInteger($this->_string_shift($key, $length), 256); + $components['primes'][] = new \WPMailSMTP\Vendor\phpseclib\Math\BigInteger($this->_string_shift($key, $length), 256); $this->_string_shift($key); $length = $this->_decodeLength($key); - $components['exponents'] = array(1 => new BigInteger($this->_string_shift($key, $length), 256)); + $components['exponents'] = array(1 => new \WPMailSMTP\Vendor\phpseclib\Math\BigInteger($this->_string_shift($key, $length), 256)); $this->_string_shift($key); $length = $this->_decodeLength($key); - $components['exponents'][] = new BigInteger($this->_string_shift($key, $length), 256); + $components['exponents'][] = new \WPMailSMTP\Vendor\phpseclib\Math\BigInteger($this->_string_shift($key, $length), 256); $this->_string_shift($key); $length = $this->_decodeLength($key); - $components['coefficients'] = array(2 => new BigInteger($this->_string_shift($key, $length), 256)); - + $components['coefficients'] = array(2 => new \WPMailSMTP\Vendor\phpseclib\Math\BigInteger($this->_string_shift($key, $length), 256)); if (!empty($key)) { - if (ord($this->_string_shift($key)) != self::ASN1_SEQUENCE) { - return false; + if (\ord($this->_string_shift($key)) != self::ASN1_SEQUENCE) { + return \false; } $this->_decodeLength($key); while (!empty($key)) { - if (ord($this->_string_shift($key)) != self::ASN1_SEQUENCE) { - return false; + if (\ord($this->_string_shift($key)) != self::ASN1_SEQUENCE) { + return \false; } $this->_decodeLength($key); - $key = substr($key, 1); + $key = \substr($key, 1); $length = $this->_decodeLength($key); - $components['primes'][] = new BigInteger($this->_string_shift($key, $length), 256); + $components['primes'][] = new \WPMailSMTP\Vendor\phpseclib\Math\BigInteger($this->_string_shift($key, $length), 256); $this->_string_shift($key); $length = $this->_decodeLength($key); - $components['exponents'][] = new BigInteger($this->_string_shift($key, $length), 256); + $components['exponents'][] = new \WPMailSMTP\Vendor\phpseclib\Math\BigInteger($this->_string_shift($key, $length), 256); $this->_string_shift($key); $length = $this->_decodeLength($key); - $components['coefficients'][] = new BigInteger($this->_string_shift($key, $length), 256); + $components['coefficients'][] = new \WPMailSMTP\Vendor\phpseclib\Math\BigInteger($this->_string_shift($key, $length), 256); } } - return $components; case self::PUBLIC_FORMAT_OPENSSH: - $parts = explode(' ', $key, 3); - - $key = isset($parts[1]) ? base64_decode($parts[1]) : false; - if ($key === false) { - return false; + $parts = \explode(' ', $key, 3); + $key = isset($parts[1]) ? \base64_decode($parts[1]) : \false; + if ($key === \false) { + return \false; } - - $comment = isset($parts[2]) ? $parts[2] : false; - - $cleanup = substr($key, 0, 11) == "\0\0\0\7ssh-rsa"; - - if (strlen($key) <= 4) { - return false; + $comment = isset($parts[2]) ? $parts[2] : \false; + $cleanup = \substr($key, 0, 11) == "\0\0\0\7ssh-rsa"; + if (\strlen($key) <= 4) { + return \false; } - extract(unpack('Nlength', $this->_string_shift($key, 4))); - $publicExponent = new BigInteger($this->_string_shift($key, $length), -256); - if (strlen($key) <= 4) { - return false; + \extract(\unpack('Nlength', $this->_string_shift($key, 4))); + $publicExponent = new \WPMailSMTP\Vendor\phpseclib\Math\BigInteger($this->_string_shift($key, $length), -256); + if (\strlen($key) <= 4) { + return \false; } - extract(unpack('Nlength', $this->_string_shift($key, 4))); - $modulus = new BigInteger($this->_string_shift($key, $length), -256); - - if ($cleanup && strlen($key)) { - if (strlen($key) <= 4) { - return false; + \extract(\unpack('Nlength', $this->_string_shift($key, 4))); + $modulus = new \WPMailSMTP\Vendor\phpseclib\Math\BigInteger($this->_string_shift($key, $length), -256); + if ($cleanup && \strlen($key)) { + if (\strlen($key) <= 4) { + return \false; } - extract(unpack('Nlength', $this->_string_shift($key, 4))); - $realModulus = new BigInteger($this->_string_shift($key, $length), -256); - return strlen($key) ? false : array( - 'modulus' => $realModulus, - 'publicExponent' => $modulus, - 'comment' => $comment - ); + \extract(\unpack('Nlength', $this->_string_shift($key, 4))); + $realModulus = new \WPMailSMTP\Vendor\phpseclib\Math\BigInteger($this->_string_shift($key, $length), -256); + return \strlen($key) ? \false : array('modulus' => $realModulus, 'publicExponent' => $modulus, 'comment' => $comment); } else { - return strlen($key) ? false : array( - 'modulus' => $modulus, - 'publicExponent' => $publicExponent, - 'comment' => $comment - ); + return \strlen($key) ? \false : array('modulus' => $modulus, 'publicExponent' => $publicExponent, 'comment' => $comment); } // http://www.w3.org/TR/xmldsig-core/#sec-RSAKeyValue // http://en.wikipedia.org/wiki/XML_Signature case self::PRIVATE_FORMAT_XML: case self::PUBLIC_FORMAT_XML: $this->components = array(); - - $xml = xml_parser_create('UTF-8'); - xml_set_object($xml, $this); - xml_set_element_handler($xml, '_start_element_handler', '_stop_element_handler'); - xml_set_character_data_handler($xml, '_data_handler'); + $xml = \xml_parser_create('UTF-8'); + \xml_set_object($xml, $this); + \xml_set_element_handler($xml, '_start_element_handler', '_stop_element_handler'); + \xml_set_character_data_handler($xml, '_data_handler'); // add to account for "dangling" tags like ... that are sometimes added - if (!xml_parse($xml, '' . $key . '')) { - xml_parser_free($xml); + if (!\xml_parse($xml, '' . $key . '')) { + \xml_parser_free($xml); unset($xml); - return false; + return \false; } - - xml_parser_free($xml); + \xml_parser_free($xml); unset($xml); - - return isset($this->components['modulus']) && isset($this->components['publicExponent']) ? $this->components : false; + return isset($this->components['modulus']) && isset($this->components['publicExponent']) ? $this->components : \false; // from PuTTY's SSHPUBK.C case self::PRIVATE_FORMAT_PUTTY: $components = array(); - $key = preg_split('#\r\n|\r|\n#', $key); - $type = trim(preg_replace('#PuTTY-User-Key-File-2: (.+)#', '$1', $key[0])); + $key = \preg_split('#\\r\\n|\\r|\\n#', $key); + $type = \trim(\preg_replace('#PuTTY-User-Key-File-2: (.+)#', '$1', $key[0])); if ($type != 'ssh-rsa') { - return false; + return \false; } - $encryption = trim(preg_replace('#Encryption: (.+)#', '$1', $key[1])); - $comment = trim(preg_replace('#Comment: (.+)#', '$1', $key[2])); - - $publicLength = trim(preg_replace('#Public-Lines: (\d+)#', '$1', $key[3])); - $public = base64_decode(implode('', array_map('trim', array_slice($key, 4, $publicLength)))); - $public = substr($public, 11); - extract(unpack('Nlength', $this->_string_shift($public, 4))); - $components['publicExponent'] = new BigInteger($this->_string_shift($public, $length), -256); - extract(unpack('Nlength', $this->_string_shift($public, 4))); - $components['modulus'] = new BigInteger($this->_string_shift($public, $length), -256); - - $privateLength = trim(preg_replace('#Private-Lines: (\d+)#', '$1', $key[$publicLength + 4])); - $private = base64_decode(implode('', array_map('trim', array_slice($key, $publicLength + 5, $privateLength)))); - + $encryption = \trim(\preg_replace('#Encryption: (.+)#', '$1', $key[1])); + $comment = \trim(\preg_replace('#Comment: (.+)#', '$1', $key[2])); + $publicLength = \trim(\preg_replace('#Public-Lines: (\\d+)#', '$1', $key[3])); + $public = \base64_decode(\implode('', \array_map('trim', \array_slice($key, 4, $publicLength)))); + $public = \substr($public, 11); + \extract(\unpack('Nlength', $this->_string_shift($public, 4))); + $components['publicExponent'] = new \WPMailSMTP\Vendor\phpseclib\Math\BigInteger($this->_string_shift($public, $length), -256); + \extract(\unpack('Nlength', $this->_string_shift($public, 4))); + $components['modulus'] = new \WPMailSMTP\Vendor\phpseclib\Math\BigInteger($this->_string_shift($public, $length), -256); + $privateLength = \trim(\preg_replace('#Private-Lines: (\\d+)#', '$1', $key[$publicLength + 4])); + $private = \base64_decode(\implode('', \array_map('trim', \array_slice($key, $publicLength + 5, $privateLength)))); switch ($encryption) { case 'aes256-cbc': $symkey = ''; $sequence = 0; - while (strlen($symkey) < 32) { - $temp = pack('Na*', $sequence++, $this->password); - $symkey.= pack('H*', sha1($temp)); + while (\strlen($symkey) < 32) { + $temp = \pack('Na*', $sequence++, $this->password); + $symkey .= \pack('H*', \sha1($temp)); } - $symkey = substr($symkey, 0, 32); - $crypto = new AES(); + $symkey = \substr($symkey, 0, 32); + $crypto = new \WPMailSMTP\Vendor\phpseclib\Crypt\AES(); } - if ($encryption != 'none') { $crypto->setKey($symkey); $crypto->disablePadding(); $private = $crypto->decrypt($private); - if ($private === false) { - return false; + if ($private === \false) { + return \false; } } - - extract(unpack('Nlength', $this->_string_shift($private, 4))); - if (strlen($private) < $length) { - return false; + \extract(\unpack('Nlength', $this->_string_shift($private, 4))); + if (\strlen($private) < $length) { + return \false; } - $components['privateExponent'] = new BigInteger($this->_string_shift($private, $length), -256); - extract(unpack('Nlength', $this->_string_shift($private, 4))); - if (strlen($private) < $length) { - return false; + $components['privateExponent'] = new \WPMailSMTP\Vendor\phpseclib\Math\BigInteger($this->_string_shift($private, $length), -256); + \extract(\unpack('Nlength', $this->_string_shift($private, 4))); + if (\strlen($private) < $length) { + return \false; } - $components['primes'] = array(1 => new BigInteger($this->_string_shift($private, $length), -256)); - extract(unpack('Nlength', $this->_string_shift($private, 4))); - if (strlen($private) < $length) { - return false; + $components['primes'] = array(1 => new \WPMailSMTP\Vendor\phpseclib\Math\BigInteger($this->_string_shift($private, $length), -256)); + \extract(\unpack('Nlength', $this->_string_shift($private, 4))); + if (\strlen($private) < $length) { + return \false; } - $components['primes'][] = new BigInteger($this->_string_shift($private, $length), -256); - + $components['primes'][] = new \WPMailSMTP\Vendor\phpseclib\Math\BigInteger($this->_string_shift($private, $length), -256); $temp = $components['primes'][1]->subtract($this->one); $components['exponents'] = array(1 => $components['publicExponent']->modInverse($temp)); $temp = $components['primes'][2]->subtract($this->one); $components['exponents'][] = $components['publicExponent']->modInverse($temp); - - extract(unpack('Nlength', $this->_string_shift($private, 4))); - if (strlen($private) < $length) { - return false; + \extract(\unpack('Nlength', $this->_string_shift($private, 4))); + if (\strlen($private) < $length) { + return \false; } - $components['coefficients'] = array(2 => new BigInteger($this->_string_shift($private, $length), -256)); - + $components['coefficients'] = array(2 => new \WPMailSMTP\Vendor\phpseclib\Math\BigInteger($this->_string_shift($private, $length), -256)); return $components; case self::PRIVATE_FORMAT_OPENSSH: $components = array(); $decoded = $this->_extractBER($key); $magic = $this->_string_shift($decoded, 15); if ($magic !== "openssh-key-v1\0") { - return false; + return \false; } $options = $this->_string_shift($decoded, 24); // \0\0\0\4none = ciphername @@ -1482,65 +1205,50 @@ class RSA // \0\0\0\0 = kdfoptions // \0\0\0\1 = numkeys if ($options != "\0\0\0\4none\0\0\0\4none\0\0\0\0\0\0\0\1") { - return false; + return \false; } - extract(unpack('Nlength', $this->_string_shift($decoded, 4))); - if (strlen($decoded) < $length) { - return false; + \extract(\unpack('Nlength', $this->_string_shift($decoded, 4))); + if (\strlen($decoded) < $length) { + return \false; } $publicKey = $this->_string_shift($decoded, $length); - extract(unpack('Nlength', $this->_string_shift($decoded, 4))); - if (strlen($decoded) < $length) { - return false; + \extract(\unpack('Nlength', $this->_string_shift($decoded, 4))); + if (\strlen($decoded) < $length) { + return \false; } $paddedKey = $this->_string_shift($decoded, $length); - if ($this->_string_shift($publicKey, 11) !== "\0\0\0\7ssh-rsa") { - return false; + return \false; } - $checkint1 = $this->_string_shift($paddedKey, 4); $checkint2 = $this->_string_shift($paddedKey, 4); - if (strlen($checkint1) != 4 || $checkint1 !== $checkint2) { - return false; + if (\strlen($checkint1) != 4 || $checkint1 !== $checkint2) { + return \false; } - if ($this->_string_shift($paddedKey, 11) !== "\0\0\0\7ssh-rsa") { - return false; + return \false; } - - $values = array( - &$components['modulus'], - &$components['publicExponent'], - &$components['privateExponent'], - &$components['coefficients'][2], - &$components['primes'][1], - &$components['primes'][2] - ); - + $values = array(&$components['modulus'], &$components['publicExponent'], &$components['privateExponent'], &$components['coefficients'][2], &$components['primes'][1], &$components['primes'][2]); foreach ($values as &$value) { - extract(unpack('Nlength', $this->_string_shift($paddedKey, 4))); - if (strlen($paddedKey) < $length) { - return false; + \extract(\unpack('Nlength', $this->_string_shift($paddedKey, 4))); + if (\strlen($paddedKey) < $length) { + return \false; } - $value = new BigInteger($this->_string_shift($paddedKey, $length), -256); + $value = new \WPMailSMTP\Vendor\phpseclib\Math\BigInteger($this->_string_shift($paddedKey, $length), -256); } - - extract(unpack('Nlength', $this->_string_shift($paddedKey, 4))); - if (strlen($paddedKey) < $length) { - return false; + \extract(\unpack('Nlength', $this->_string_shift($paddedKey, 4))); + if (\strlen($paddedKey) < $length) { + return \false; } $components['comment'] = $this->_string_shift($decoded, $length); - $temp = $components['primes'][1]->subtract($this->one); $components['exponents'] = array(1 => $components['publicExponent']->modInverse($temp)); $temp = $components['primes'][2]->subtract($this->one); $components['exponents'][] = $components['publicExponent']->modInverse($temp); - return $components; } + return \false; } - /** * Returns the key size * @@ -1551,9 +1259,8 @@ class RSA */ function getSize() { - return !isset($this->modulus) ? 0 : strlen($this->modulus->toBits()); + return !isset($this->modulus) ? 0 : \strlen($this->modulus->toBits()); } - /** * Start Element Handler * @@ -1569,32 +1276,31 @@ class RSA //$name = strtoupper($name); switch ($name) { case 'MODULUS': - $this->current = &$this->components['modulus']; + $this->current =& $this->components['modulus']; break; case 'EXPONENT': - $this->current = &$this->components['publicExponent']; + $this->current =& $this->components['publicExponent']; break; case 'P': - $this->current = &$this->components['primes'][1]; + $this->current =& $this->components['primes'][1]; break; case 'Q': - $this->current = &$this->components['primes'][2]; + $this->current =& $this->components['primes'][2]; break; case 'DP': - $this->current = &$this->components['exponents'][1]; + $this->current =& $this->components['exponents'][1]; break; case 'DQ': - $this->current = &$this->components['exponents'][2]; + $this->current =& $this->components['exponents'][2]; break; case 'INVERSEQ': - $this->current = &$this->components['coefficients'][2]; + $this->current =& $this->components['coefficients'][2]; break; case 'D': - $this->current = &$this->components['privateExponent']; + $this->current =& $this->components['privateExponent']; } $this->current = ''; } - /** * Stop Element Handler * @@ -1607,11 +1313,10 @@ class RSA function _stop_element_handler($parser, $name) { if (isset($this->current)) { - $this->current = new BigInteger(base64_decode($this->current), 256); + $this->current = new \WPMailSMTP\Vendor\phpseclib\Math\BigInteger(\base64_decode($this->current), 256); unset($this->current); } } - /** * Data Handler * @@ -1623,12 +1328,11 @@ class RSA */ function _data_handler($parser, $data) { - if (!isset($this->current) || is_object($this->current)) { + if (!isset($this->current) || \is_object($this->current)) { return; } - $this->current.= trim($data); + $this->current .= \trim($data); } - /** * Loads a public or private key * @@ -1639,9 +1343,9 @@ class RSA * @param bool|int $type optional * @return bool */ - function loadKey($key, $type = false) + function loadKey($key, $type = \false) { - if ($key instanceof RSA) { + if ($key instanceof \WPMailSMTP\Vendor\phpseclib\Crypt\RSA) { $this->privateKeyFormat = $key->privateKeyFormat; $this->publicKeyFormat = $key->publicKeyFormat; $this->k = $key->k; @@ -1653,28 +1357,24 @@ class RSA $this->password = $key->password; $this->configFile = $key->configFile; $this->comment = $key->comment; - - if (is_object($key->hash)) { - $this->hash = new Hash($key->hash->getHash()); + if (\is_object($key->hash)) { + $this->hash = new \WPMailSMTP\Vendor\phpseclib\Crypt\Hash($key->hash->getHash()); } - if (is_object($key->mgfHash)) { - $this->mgfHash = new Hash($key->mgfHash->getHash()); + if (\is_object($key->mgfHash)) { + $this->mgfHash = new \WPMailSMTP\Vendor\phpseclib\Crypt\Hash($key->mgfHash->getHash()); } - - if (is_object($key->modulus)) { + if (\is_object($key->modulus)) { $this->modulus = $key->modulus->copy(); } - if (is_object($key->exponent)) { + if (\is_object($key->exponent)) { $this->exponent = $key->exponent->copy(); } - if (is_object($key->publicExponent)) { + if (\is_object($key->publicExponent)) { $this->publicExponent = $key->publicExponent->copy(); } - $this->primes = array(); $this->exponents = array(); $this->coefficients = array(); - foreach ($this->primes as $prime) { $this->primes[] = $prime->copy(); } @@ -1684,30 +1384,20 @@ class RSA foreach ($this->coefficients as $coefficient) { $this->coefficients[] = $coefficient->copy(); } - - return true; + return \true; } - - if ($type === false) { - $types = array( - self::PUBLIC_FORMAT_RAW, - self::PRIVATE_FORMAT_PKCS1, - self::PRIVATE_FORMAT_XML, - self::PRIVATE_FORMAT_PUTTY, - self::PUBLIC_FORMAT_OPENSSH, - self::PRIVATE_FORMAT_OPENSSH - ); + if ($type === \false) { + $types = array(self::PUBLIC_FORMAT_RAW, self::PRIVATE_FORMAT_PKCS1, self::PRIVATE_FORMAT_XML, self::PRIVATE_FORMAT_PUTTY, self::PUBLIC_FORMAT_OPENSSH, self::PRIVATE_FORMAT_OPENSSH); foreach ($types as $type) { $components = $this->_parseKey($key, $type); - if ($components !== false) { + if ($components !== \false) { break; } } } else { $components = $this->_parseKey($key, $type); } - - if ($components === false) { + if ($components === \false) { $this->comment = null; $this->modulus = null; $this->k = null; @@ -1716,15 +1406,13 @@ class RSA $this->exponents = null; $this->coefficients = null; $this->publicExponent = null; - - return false; + return \false; } - - if (isset($components['comment']) && $components['comment'] !== false) { + if (isset($components['comment']) && $components['comment'] !== \false) { $this->comment = $components['comment']; } $this->modulus = $components['modulus']; - $this->k = strlen($this->modulus->toBytes()); + $this->k = \strlen($this->modulus->toBytes()); $this->exponent = isset($components['privateExponent']) ? $components['privateExponent'] : $components['publicExponent']; if (isset($components['primes'])) { $this->primes = $components['primes']; @@ -1735,25 +1423,22 @@ class RSA $this->primes = array(); $this->exponents = array(); $this->coefficients = array(); - $this->publicExponent = false; + $this->publicExponent = \false; } - switch ($type) { case self::PUBLIC_FORMAT_OPENSSH: case self::PUBLIC_FORMAT_RAW: $this->setPublicKey(); break; case self::PRIVATE_FORMAT_PKCS1: - switch (true) { - case strpos($key, '-BEGIN PUBLIC KEY-') !== false: - case strpos($key, '-BEGIN RSA PUBLIC KEY-') !== false: + switch (\true) { + case \strpos($key, '-BEGIN PUBLIC KEY-') !== \false: + case \strpos($key, '-BEGIN RSA PUBLIC KEY-') !== \false: $this->setPublicKey(); } } - - return true; + return \true; } - /** * Sets the password * @@ -1765,11 +1450,10 @@ class RSA * @access public * @param string $password */ - function setPassword($password = false) + function setPassword($password = \false) { $this->password = $password; } - /** * Defines the public key * @@ -1791,50 +1475,38 @@ class RSA * @param int $type optional * @return bool */ - function setPublicKey($key = false, $type = false) + function setPublicKey($key = \false, $type = \false) { // if a public key has already been loaded return false if (!empty($this->publicExponent)) { - return false; + return \false; } - - if ($key === false && !empty($this->modulus)) { + if ($key === \false && !empty($this->modulus)) { $this->publicExponent = $this->exponent; - return true; + return \true; } - - if ($type === false) { - $types = array( - self::PUBLIC_FORMAT_RAW, - self::PUBLIC_FORMAT_PKCS1, - self::PUBLIC_FORMAT_XML, - self::PUBLIC_FORMAT_OPENSSH - ); + if ($type === \false) { + $types = array(self::PUBLIC_FORMAT_RAW, self::PUBLIC_FORMAT_PKCS1, self::PUBLIC_FORMAT_XML, self::PUBLIC_FORMAT_OPENSSH); foreach ($types as $type) { $components = $this->_parseKey($key, $type); - if ($components !== false) { + if ($components !== \false) { break; } } } else { $components = $this->_parseKey($key, $type); } - - if ($components === false) { - return false; + if ($components === \false) { + return \false; } - if (empty($this->modulus) || !$this->modulus->equals($components['modulus'])) { $this->modulus = $components['modulus']; $this->exponent = $this->publicExponent = $components['publicExponent']; - return true; + return \true; } - $this->publicExponent = $components['publicExponent']; - - return true; + return \true; } - /** * Defines the private key * @@ -1851,24 +1523,21 @@ class RSA * @param int $type optional * @return bool */ - function setPrivateKey($key = false, $type = false) + function setPrivateKey($key = \false, $type = \false) { - if ($key === false && !empty($this->publicExponent)) { - $this->publicExponent = false; - return true; + if ($key === \false && !empty($this->publicExponent)) { + $this->publicExponent = \false; + return \true; } - - $rsa = new RSA(); + $rsa = new \WPMailSMTP\Vendor\phpseclib\Crypt\RSA(); if (!$rsa->loadKey($key, $type)) { - return false; + return \false; } - $rsa->publicExponent = false; - + $rsa->publicExponent = \false; // don't overwrite the old key if the new key is invalid $this->loadKey($rsa); - return true; + return \true; } - /** * Returns the public key * @@ -1884,16 +1553,14 @@ class RSA function getPublicKey($type = self::PUBLIC_FORMAT_PKCS8) { if (empty($this->modulus) || empty($this->publicExponent)) { - return false; + return \false; } - $oldFormat = $this->publicKeyFormat; $this->publicKeyFormat = $type; $temp = $this->_convertPublicKey($this->modulus, $this->publicExponent); $this->publicKeyFormat = $oldFormat; return $temp; } - /** * Returns the public key's fingerprint * @@ -1909,26 +1576,22 @@ class RSA function getPublicKeyFingerprint($algorithm = 'md5') { if (empty($this->modulus) || empty($this->publicExponent)) { - return false; + return \false; } - - $modulus = $this->modulus->toBytes(true); - $publicExponent = $this->publicExponent->toBytes(true); - - $RSAPublicKey = pack('Na*Na*Na*', strlen('ssh-rsa'), 'ssh-rsa', strlen($publicExponent), $publicExponent, strlen($modulus), $modulus); - + $modulus = $this->modulus->toBytes(\true); + $publicExponent = $this->publicExponent->toBytes(\true); + $RSAPublicKey = \pack('Na*Na*Na*', \strlen('ssh-rsa'), 'ssh-rsa', \strlen($publicExponent), $publicExponent, \strlen($modulus), $modulus); switch ($algorithm) { case 'sha256': - $hash = new Hash('sha256'); - $base = base64_encode($hash->hash($RSAPublicKey)); - return substr($base, 0, strlen($base) - 1); + $hash = new \WPMailSMTP\Vendor\phpseclib\Crypt\Hash('sha256'); + $base = \base64_encode($hash->hash($RSAPublicKey)); + return \substr($base, 0, \strlen($base) - 1); case 'md5': - return substr(chunk_split(md5($RSAPublicKey), 2, ':'), 0, -1); + return \substr(\chunk_split(\md5($RSAPublicKey), 2, ':'), 0, -1); default: - return false; + return \false; } } - /** * Returns the private key * @@ -1943,16 +1606,14 @@ class RSA function getPrivateKey($type = self::PUBLIC_FORMAT_PKCS1) { if (empty($this->primes)) { - return false; + return \false; } - $oldFormat = $this->privateKeyFormat; $this->privateKeyFormat = $type; $temp = $this->_convertPrivateKey($this->modulus, $this->publicExponent, $this->exponent, $this->primes, $this->exponents, $this->coefficients); $this->privateKeyFormat = $oldFormat; return $temp; } - /** * Returns a minimalistic private key * @@ -1967,16 +1628,14 @@ class RSA function _getPrivatePublicKey($mode = self::PUBLIC_FORMAT_PKCS8) { if (empty($this->modulus) || empty($this->exponent)) { - return false; + return \false; } - $oldFormat = $this->publicKeyFormat; $this->publicKeyFormat = $mode; $temp = $this->_convertPublicKey($this->modulus, $this->exponent); $this->publicKeyFormat = $oldFormat; return $temp; } - /** * __toString() magic method * @@ -1986,13 +1645,12 @@ class RSA function __toString() { $key = $this->getPrivateKey($this->privateKeyFormat); - if ($key !== false) { + if ($key !== \false) { return $key; } $key = $this->_getPrivatePublicKey($this->publicKeyFormat); - return $key !== false ? $key : ''; + return $key !== \false ? $key : ''; } - /** * __clone() magic method * @@ -2001,11 +1659,10 @@ class RSA */ function __clone() { - $key = new RSA(); + $key = new \WPMailSMTP\Vendor\phpseclib\Crypt\RSA(); $key->loadKey($this); return $key; } - /** * Generates the smallest and largest numbers requiring $bits bits * @@ -2016,22 +1673,17 @@ class RSA function _generateMinMax($bits) { $bytes = $bits >> 3; - $min = str_repeat(chr(0), $bytes); - $max = str_repeat(chr(0xFF), $bytes); + $min = \str_repeat(\chr(0), $bytes); + $max = \str_repeat(\chr(0xff), $bytes); $msb = $bits & 7; if ($msb) { - $min = chr(1 << ($msb - 1)) . $min; - $max = chr((1 << $msb) - 1) . $max; + $min = \chr(1 << $msb - 1) . $min; + $max = \chr((1 << $msb) - 1) . $max; } else { - $min[0] = chr(0x80); + $min[0] = \chr(0x80); } - - return array( - 'min' => new BigInteger($min, 256), - 'max' => new BigInteger($max, 256) - ); + return array('min' => new \WPMailSMTP\Vendor\phpseclib\Math\BigInteger($min, 256), 'max' => new \WPMailSMTP\Vendor\phpseclib\Math\BigInteger($max, 256)); } - /** * DER-decode the length * @@ -2044,15 +1696,15 @@ class RSA */ function _decodeLength(&$string) { - $length = ord($this->_string_shift($string)); - if ($length & 0x80) { // definite length, long form - $length&= 0x7F; + $length = \ord($this->_string_shift($string)); + if ($length & 0x80) { + // definite length, long form + $length &= 0x7f; $temp = $this->_string_shift($string, $length); - list(, $length) = unpack('N', substr(str_pad($temp, 4, chr(0), STR_PAD_LEFT), -4)); + list(, $length) = \unpack('N', \substr(\str_pad($temp, 4, \chr(0), \STR_PAD_LEFT), -4)); } return $length; } - /** * DER-encode the length * @@ -2065,14 +1717,12 @@ class RSA */ function _encodeLength($length) { - if ($length <= 0x7F) { - return chr($length); + if ($length <= 0x7f) { + return \chr($length); } - - $temp = ltrim(pack('N', $length), chr(0)); - return pack('Ca*', 0x80 | strlen($temp), $temp); + $temp = \ltrim(\pack('N', $length), \chr(0)); + return \pack('Ca*', 0x80 | \strlen($temp), $temp); } - /** * String Shift * @@ -2085,11 +1735,10 @@ class RSA */ function _string_shift(&$string, $index = 1) { - $substr = substr($string, 0, $index); - $string = substr($string, $index); + $substr = \substr($string, 0, $index); + $string = \substr($string, $index); return $substr; } - /** * Determines the private key format * @@ -2101,7 +1750,6 @@ class RSA { $this->privateKeyFormat = $format; } - /** * Determines the public key format * @@ -2113,7 +1761,6 @@ class RSA { $this->publicKeyFormat = $format; } - /** * Determines which hashing function should be used * @@ -2133,16 +1780,15 @@ class RSA case 'sha256': case 'sha384': case 'sha512': - $this->hash = new Hash($hash); + $this->hash = new \WPMailSMTP\Vendor\phpseclib\Crypt\Hash($hash); $this->hashName = $hash; break; default: - $this->hash = new Hash('sha1'); + $this->hash = new \WPMailSMTP\Vendor\phpseclib\Crypt\Hash('sha1'); $this->hashName = 'sha1'; } $this->hLen = $this->hash->getLength(); } - /** * Determines which hashing function should be used for the mask generation function * @@ -2162,14 +1808,13 @@ class RSA case 'sha256': case 'sha384': case 'sha512': - $this->mgfHash = new Hash($hash); + $this->mgfHash = new \WPMailSMTP\Vendor\phpseclib\Crypt\Hash($hash); break; default: - $this->mgfHash = new Hash('sha1'); + $this->mgfHash = new \WPMailSMTP\Vendor\phpseclib\Crypt\Hash('sha1'); } $this->mgfHLen = $this->mgfHash->getLength(); } - /** * Determines the salt length * @@ -2185,7 +1830,6 @@ class RSA { $this->sLen = $sLen; } - /** * Integer-to-Octet-String primitive * @@ -2199,13 +1843,12 @@ class RSA function _i2osp($x, $xLen) { $x = $x->toBytes(); - if (strlen($x) > $xLen) { - user_error('Integer too large'); - return false; + if (\strlen($x) > $xLen) { + \user_error('Integer too large'); + return \false; } - return str_pad($x, $xLen, chr(0), STR_PAD_LEFT); + return \str_pad($x, $xLen, \chr(0), \STR_PAD_LEFT); } - /** * Octet-String-to-Integer primitive * @@ -2217,9 +1860,8 @@ class RSA */ function _os2ip($x) { - return new BigInteger($x, 256); + return new \WPMailSMTP\Vendor\phpseclib\Math\BigInteger($x, 256); } - /** * Exponentiate with or without Chinese Remainder Theorem * @@ -2231,7 +1873,7 @@ class RSA */ function _exponentiate($x) { - switch (true) { + switch (\true) { case empty($this->primes): case $this->primes[1]->equals($this->zero): case empty($this->coefficients): @@ -2240,29 +1882,20 @@ class RSA case $this->exponents[1]->equals($this->zero): return $x->modPow($this->exponent, $this->modulus); } - - $num_primes = count($this->primes); - - if (defined('CRYPT_RSA_DISABLE_BLINDING')) { - $m_i = array( - 1 => $x->modPow($this->exponents[1], $this->primes[1]), - 2 => $x->modPow($this->exponents[2], $this->primes[2]) - ); + $num_primes = \count($this->primes); + if (\defined('WPMailSMTP\\Vendor\\CRYPT_RSA_DISABLE_BLINDING')) { + $m_i = array(1 => $x->modPow($this->exponents[1], $this->primes[1]), 2 => $x->modPow($this->exponents[2], $this->primes[2])); $h = $m_i[1]->subtract($m_i[2]); $h = $h->multiply($this->coefficients[2]); list(, $h) = $h->divide($this->primes[1]); $m = $m_i[2]->add($h->multiply($this->primes[2])); - $r = $this->primes[1]; for ($i = 3; $i <= $num_primes; $i++) { $m_i = $x->modPow($this->exponents[$i], $this->primes[$i]); - $r = $r->multiply($this->primes[$i - 1]); - $h = $m_i->subtract($m); $h = $h->multiply($this->coefficients[$i]); list(, $h) = $h->divide($this->primes[$i]); - $m = $m->add($r->multiply($h)); } } else { @@ -2272,37 +1905,25 @@ class RSA $smallest = $this->primes[$i]; } } - - $one = new BigInteger(1); - + $one = new \WPMailSMTP\Vendor\phpseclib\Math\BigInteger(1); $r = $one->random($one, $smallest->subtract($one)); - - $m_i = array( - 1 => $this->_blind($x, $r, 1), - 2 => $this->_blind($x, $r, 2) - ); + $m_i = array(1 => $this->_blind($x, $r, 1), 2 => $this->_blind($x, $r, 2)); $h = $m_i[1]->subtract($m_i[2]); $h = $h->multiply($this->coefficients[2]); list(, $h) = $h->divide($this->primes[1]); $m = $m_i[2]->add($h->multiply($this->primes[2])); - $r = $this->primes[1]; for ($i = 3; $i <= $num_primes; $i++) { $m_i = $this->_blind($x, $r, $i); - $r = $r->multiply($this->primes[$i - 1]); - $h = $m_i->subtract($m); $h = $h->multiply($this->coefficients[$i]); list(, $h) = $h->divide($this->primes[$i]); - $m = $m->add($r->multiply($h)); } } - return $m; } - /** * Performs RSA Blinding * @@ -2319,14 +1940,11 @@ class RSA { $x = $x->multiply($r->modPow($this->publicExponent, $this->primes[$i])); $x = $x->modPow($this->exponents[$i], $this->primes[$i]); - $r = $r->modInverse($this->primes[$i]); $x = $x->multiply($r); list(, $x) = $x->divide($this->primes[$i]); - return $x; } - /** * Performs blinded RSA equality testing * @@ -2343,23 +1961,19 @@ class RSA */ function _equals($x, $y) { - if (function_exists('hash_equals')) { - return hash_equals($x, $y); + if (\function_exists('hash_equals')) { + return \hash_equals($x, $y); } - - if (strlen($x) != strlen($y)) { - return false; + if (\strlen($x) != \strlen($y)) { + return \false; } - $result = "\0"; - $x^= $y; - for ($i = 0; $i < strlen($x); $i++) { - $result|= $x[$i]; + $x ^= $y; + for ($i = 0; $i < \strlen($x); $i++) { + $result |= $x[$i]; } - return $result === "\0"; } - /** * RSAEP * @@ -2372,12 +1986,11 @@ class RSA function _rsaep($m) { if ($m->compare($this->zero) < 0 || $m->compare($this->modulus) > 0) { - user_error('Message representative out of range'); - return false; + \user_error('Message representative out of range'); + return \false; } return $this->_exponentiate($m); } - /** * RSADP * @@ -2390,12 +2003,11 @@ class RSA function _rsadp($c) { if ($c->compare($this->zero) < 0 || $c->compare($this->modulus) > 0) { - user_error('Ciphertext representative out of range'); - return false; + \user_error('Ciphertext representative out of range'); + return \false; } return $this->_exponentiate($c); } - /** * RSASP1 * @@ -2408,12 +2020,11 @@ class RSA function _rsasp1($m) { if ($m->compare($this->zero) < 0 || $m->compare($this->modulus) > 0) { - user_error('Message representative out of range'); - return false; + \user_error('Message representative out of range'); + return \false; } return $this->_exponentiate($m); } - /** * RSAVP1 * @@ -2426,12 +2037,11 @@ class RSA function _rsavp1($s) { if ($s->compare($this->zero) < 0 || $s->compare($this->modulus) > 0) { - user_error('Signature representative out of range'); - return false; + \user_error('Signature representative out of range'); + return \false; } return $this->_exponentiate($s); } - /** * MGF1 * @@ -2445,17 +2055,14 @@ class RSA function _mgf1($mgfSeed, $maskLen) { // if $maskLen would yield strings larger than 4GB, PKCS#1 suggests a "Mask too long" error be output. - $t = ''; - $count = ceil($maskLen / $this->mgfHLen); + $count = \ceil($maskLen / $this->mgfHLen); for ($i = 0; $i < $count; $i++) { - $c = pack('N', $i); - $t.= $this->mgfHash->hash($mgfSeed . $c); + $c = \pack('N', $i); + $t .= $this->mgfHash->hash($mgfSeed . $c); } - - return substr($t, 0, $maskLen); + return \substr($t, 0, $maskLen); } - /** * RSAES-OAEP-ENCRYPT * @@ -2469,41 +2076,31 @@ class RSA */ function _rsaes_oaep_encrypt($m, $l = '') { - $mLen = strlen($m); - + $mLen = \strlen($m); // Length checking - // if $l is larger than two million terrabytes and you're using sha1, PKCS#1 suggests a "Label too long" error // be output. - if ($mLen > $this->k - 2 * $this->hLen - 2) { - user_error('Message too long'); - return false; + \user_error('Message too long'); + return \false; } - // EME-OAEP encoding - $lHash = $this->hash->hash($l); - $ps = str_repeat(chr(0), $this->k - $mLen - 2 * $this->hLen - 2); - $db = $lHash . $ps . chr(1) . $m; - $seed = Random::string($this->hLen); + $ps = \str_repeat(\chr(0), $this->k - $mLen - 2 * $this->hLen - 2); + $db = $lHash . $ps . \chr(1) . $m; + $seed = \WPMailSMTP\Vendor\phpseclib\Crypt\Random::string($this->hLen); $dbMask = $this->_mgf1($seed, $this->k - $this->hLen - 1); $maskedDB = $db ^ $dbMask; $seedMask = $this->_mgf1($maskedDB, $this->hLen); $maskedSeed = $seed ^ $seedMask; - $em = chr(0) . $maskedSeed . $maskedDB; - + $em = \chr(0) . $maskedSeed . $maskedDB; // RSA encryption - $m = $this->_os2ip($em); $c = $this->_rsaep($m); $c = $this->_i2osp($c, $this->k); - // Output the ciphertext C - return $c; } - /** * RSAES-OAEP-DECRYPT * @@ -2533,59 +2130,49 @@ class RSA function _rsaes_oaep_decrypt($c, $l = '') { // Length checking - // if $l is larger than two million terrabytes and you're using sha1, PKCS#1 suggests a "Label too long" error // be output. - - if (strlen($c) != $this->k || $this->k < 2 * $this->hLen + 2) { - user_error('Decryption error'); - return false; + if (\strlen($c) != $this->k || $this->k < 2 * $this->hLen + 2) { + \user_error('Decryption error'); + return \false; } - // RSA decryption - $c = $this->_os2ip($c); $m = $this->_rsadp($c); - if ($m === false) { - user_error('Decryption error'); - return false; + if ($m === \false) { + \user_error('Decryption error'); + return \false; } $em = $this->_i2osp($m, $this->k); - // EME-OAEP decoding - $lHash = $this->hash->hash($l); - $y = ord($em[0]); - $maskedSeed = substr($em, 1, $this->hLen); - $maskedDB = substr($em, $this->hLen + 1); + $y = \ord($em[0]); + $maskedSeed = \substr($em, 1, $this->hLen); + $maskedDB = \substr($em, $this->hLen + 1); $seedMask = $this->_mgf1($maskedDB, $this->hLen); $seed = $maskedSeed ^ $seedMask; $dbMask = $this->_mgf1($seed, $this->k - $this->hLen - 1); $db = $maskedDB ^ $dbMask; - $lHash2 = substr($db, 0, $this->hLen); - $m = substr($db, $this->hLen); + $lHash2 = \substr($db, 0, $this->hLen); + $m = \substr($db, $this->hLen); $hashesMatch = $this->_equals($lHash, $lHash2); $leadingZeros = 1; $patternMatch = 0; $offset = 0; - for ($i = 0; $i < strlen($m); $i++) { - $patternMatch|= $leadingZeros & ($m[$i] === "\1"); - $leadingZeros&= $m[$i] === "\0"; - $offset+= $patternMatch ? 0 : 1; + for ($i = 0; $i < \strlen($m); $i++) { + $patternMatch |= $leadingZeros & $m[$i] === "\1"; + $leadingZeros &= $m[$i] === "\0"; + $offset += $patternMatch ? 0 : 1; } - // we do & instead of && to avoid https://en.wikipedia.org/wiki/Short-circuit_evaluation // to protect against timing attacks if (!$hashesMatch & !$patternMatch) { - user_error('Decryption error'); - return false; + \user_error('Decryption error'); + return \false; } - // Output the message M - - return substr($m, $offset + 1); + return \substr($m, $offset + 1); } - /** * Raw Encryption / Decryption * @@ -2599,9 +2186,8 @@ class RSA { $temp = $this->_os2ip($m); $temp = $this->_rsaep($temp); - return $this->_i2osp($temp, $this->k); + return $this->_i2osp($temp, $this->k); } - /** * RSAES-PKCS1-V1_5-ENCRYPT * @@ -2613,43 +2199,35 @@ class RSA */ function _rsaes_pkcs1_v1_5_encrypt($m) { - $mLen = strlen($m); - + $mLen = \strlen($m); // Length checking - if ($mLen > $this->k - 11) { - user_error('Message too long'); - return false; + \user_error('Message too long'); + return \false; } - // EME-PKCS1-v1_5 encoding - $psLen = $this->k - $mLen - 3; $ps = ''; - while (strlen($ps) != $psLen) { - $temp = Random::string($psLen - strlen($ps)); - $temp = str_replace("\x00", '', $temp); - $ps.= $temp; + while (\strlen($ps) != $psLen) { + $temp = \WPMailSMTP\Vendor\phpseclib\Crypt\Random::string($psLen - \strlen($ps)); + $temp = \str_replace("\0", '', $temp); + $ps .= $temp; } $type = 2; // see the comments of _rsaes_pkcs1_v1_5_decrypt() to understand why this is being done - if (defined('CRYPT_RSA_PKCS15_COMPAT') && (!isset($this->publicExponent) || $this->exponent !== $this->publicExponent)) { + if (\defined('WPMailSMTP\\Vendor\\CRYPT_RSA_PKCS15_COMPAT') && (!isset($this->publicExponent) || $this->exponent !== $this->publicExponent)) { $type = 1; // "The padding string PS shall consist of k-3-||D|| octets. ... for block type 01, they shall have value FF" - $ps = str_repeat("\xFF", $psLen); + $ps = \str_repeat("", $psLen); } - $em = chr(0) . chr($type) . $ps . chr(0) . $m; - + $em = \chr(0) . \chr($type) . $ps . \chr(0) . $m; // RSA encryption $m = $this->_os2ip($em); $c = $this->_rsaep($m); $c = $this->_i2osp($c, $this->k); - // Output the ciphertext C - return $c; } - /** * RSAES-PKCS1-V1_5-DECRYPT * @@ -2673,43 +2251,33 @@ class RSA function _rsaes_pkcs1_v1_5_decrypt($c) { // Length checking - - if (strlen($c) != $this->k) { // or if k < 11 - user_error('Decryption error'); - return false; + if (\strlen($c) != $this->k) { + // or if k < 11 + \user_error('Decryption error'); + return \false; } - // RSA decryption - $c = $this->_os2ip($c); $m = $this->_rsadp($c); - - if ($m === false) { - user_error('Decryption error'); - return false; + if ($m === \false) { + \user_error('Decryption error'); + return \false; } $em = $this->_i2osp($m, $this->k); - // EME-PKCS1-v1_5 decoding - - if (ord($em[0]) != 0 || ord($em[1]) > 2) { - user_error('Decryption error'); - return false; + if (\ord($em[0]) != 0 || \ord($em[1]) > 2) { + \user_error('Decryption error'); + return \false; } - - $ps = substr($em, 2, strpos($em, chr(0), 2) - 2); - $m = substr($em, strlen($ps) + 3); - - if (strlen($ps) < 8) { - user_error('Decryption error'); - return false; + $ps = \substr($em, 2, \strpos($em, \chr(0), 2) - 2); + $m = \substr($em, \strlen($ps) + 3); + if (\strlen($ps) < 8) { + \user_error('Decryption error'); + return \false; } - // Output M - return $m; } - /** * EMSA-PSS-ENCODE * @@ -2723,29 +2291,25 @@ class RSA { // if $m is larger than two million terrabytes and you're using sha1, PKCS#1 suggests a "Label too long" error // be output. - - $emLen = ($emBits + 1) >> 3; // ie. ceil($emBits / 8) + $emLen = $emBits + 1 >> 3; + // ie. ceil($emBits / 8) $sLen = $this->sLen !== null ? $this->sLen : $this->hLen; - $mHash = $this->hash->hash($m); if ($emLen < $this->hLen + $sLen + 2) { - user_error('Encoding error'); - return false; + \user_error('Encoding error'); + return \false; } - - $salt = Random::string($sLen); + $salt = \WPMailSMTP\Vendor\phpseclib\Crypt\Random::string($sLen); $m2 = "\0\0\0\0\0\0\0\0" . $mHash . $salt; $h = $this->hash->hash($m2); - $ps = str_repeat(chr(0), $emLen - $sLen - $this->hLen - 2); - $db = $ps . chr(1) . $salt; + $ps = \str_repeat(\chr(0), $emLen - $sLen - $this->hLen - 2); + $db = $ps . \chr(1) . $salt; $dbMask = $this->_mgf1($h, $emLen - $this->hLen - 1); $maskedDB = $db ^ $dbMask; - $maskedDB[0] = ~chr(0xFF << ($emBits & 7)) & $maskedDB[0]; - $em = $maskedDB . $h . chr(0xBC); - + $maskedDB[0] = ~\chr(0xff << ($emBits & 7)) & $maskedDB[0]; + $em = $maskedDB . $h . \chr(0xbc); return $em; } - /** * EMSA-PSS-VERIFY * @@ -2761,38 +2325,35 @@ class RSA { // if $m is larger than two million terrabytes and you're using sha1, PKCS#1 suggests a "Label too long" error // be output. - - $emLen = ($emBits + 7) >> 3; // ie. ceil($emBits / 8); + $emLen = $emBits + 7 >> 3; + // ie. ceil($emBits / 8); $sLen = $this->sLen !== null ? $this->sLen : $this->hLen; - $mHash = $this->hash->hash($m); if ($emLen < $this->hLen + $sLen + 2) { - return false; + return \false; } - - if ($em[strlen($em) - 1] != chr(0xBC)) { - return false; + if ($em[\strlen($em) - 1] != \chr(0xbc)) { + return \false; } - - $maskedDB = substr($em, 0, -$this->hLen - 1); - $h = substr($em, -$this->hLen - 1, $this->hLen); - $temp = chr(0xFF << ($emBits & 7)); + $maskedDB = \substr($em, 0, -$this->hLen - 1); + $h = \substr($em, -$this->hLen - 1, $this->hLen); + $temp = \chr(0xff << ($emBits & 7)); if ((~$maskedDB[0] & $temp) != $temp) { - return false; + return \false; } $dbMask = $this->_mgf1($h, $emLen - $this->hLen - 1); $db = $maskedDB ^ $dbMask; - $db[0] = ~chr(0xFF << ($emBits & 7)) & $db[0]; + $db[0] = ~\chr(0xff << ($emBits & 7)) & $db[0]; $temp = $emLen - $this->hLen - $sLen - 2; - if (substr($db, 0, $temp) != str_repeat(chr(0), $temp) || ord($db[$temp]) != 1) { - return false; + if (\substr($db, 0, $temp) != \str_repeat(\chr(0), $temp) || \ord($db[$temp]) != 1) { + return \false; } - $salt = substr($db, $temp + 1); // should be $sLen long + $salt = \substr($db, $temp + 1); + // should be $sLen long $m2 = "\0\0\0\0\0\0\0\0" . $mHash . $salt; $h2 = $this->hash->hash($m2); return $this->_equals($h, $h2); } - /** * RSASSA-PSS-SIGN * @@ -2805,20 +2366,14 @@ class RSA function _rsassa_pss_sign($m) { // EMSA-PSS encoding - $em = $this->_emsa_pss_encode($m, 8 * $this->k - 1); - // RSA signature - $m = $this->_os2ip($em); $s = $this->_rsasp1($m); $s = $this->_i2osp($s, $this->k); - // Output the signature S - return $s; } - /** * RSASSA-PSS-VERIFY * @@ -2832,33 +2387,26 @@ class RSA function _rsassa_pss_verify($m, $s) { // Length checking - - if (strlen($s) != $this->k) { - user_error('Invalid signature'); - return false; + if (\strlen($s) != $this->k) { + \user_error('Invalid signature'); + return \false; } - // RSA verification - - $modBits = strlen($this->modulus->toBits()); - + $modBits = \strlen($this->modulus->toBits()); $s2 = $this->_os2ip($s); $m2 = $this->_rsavp1($s2); - if ($m2 === false) { - user_error('Invalid signature'); - return false; + if ($m2 === \false) { + \user_error('Invalid signature'); + return \false; } $em = $this->_i2osp($m2, $this->k); - if ($em === false) { - user_error('Invalid signature'); - return false; + if ($em === \false) { + \user_error('Invalid signature'); + return \false; } - // EMSA-PSS verification - return $this->_emsa_pss_verify($m, $em, $modBits - 1); } - /** * EMSA-PKCS1-V1_5-ENCODE * @@ -2872,45 +2420,39 @@ class RSA function _emsa_pkcs1_v1_5_encode($m, $emLen) { $h = $this->hash->hash($m); - if ($h === false) { - return false; + if ($h === \false) { + return \false; } - // see http://tools.ietf.org/html/rfc3447#page-43 switch ($this->hashName) { case 'md2': - $t = pack('H*', '3020300c06082a864886f70d020205000410'); + $t = \pack('H*', '3020300c06082a864886f70d020205000410'); break; case 'md5': - $t = pack('H*', '3020300c06082a864886f70d020505000410'); + $t = \pack('H*', '3020300c06082a864886f70d020505000410'); break; case 'sha1': - $t = pack('H*', '3021300906052b0e03021a05000414'); + $t = \pack('H*', '3021300906052b0e03021a05000414'); break; case 'sha256': - $t = pack('H*', '3031300d060960864801650304020105000420'); + $t = \pack('H*', '3031300d060960864801650304020105000420'); break; case 'sha384': - $t = pack('H*', '3041300d060960864801650304020205000430'); + $t = \pack('H*', '3041300d060960864801650304020205000430'); break; case 'sha512': - $t = pack('H*', '3051300d060960864801650304020305000440'); + $t = \pack('H*', '3051300d060960864801650304020305000440'); } - $t.= $h; - $tLen = strlen($t); - + $t .= $h; + $tLen = \strlen($t); if ($emLen < $tLen + 11) { - user_error('Intended encoded message length too short'); - return false; + \user_error('Intended encoded message length too short'); + return \false; } - - $ps = str_repeat(chr(0xFF), $emLen - $tLen - 3); - - $em = "\0\1$ps\0$t"; - + $ps = \str_repeat(\chr(0xff), $emLen - $tLen - 3); + $em = "\0\1{$ps}\0{$t}"; return $em; } - /** * RSASSA-PKCS1-V1_5-SIGN * @@ -2923,24 +2465,18 @@ class RSA function _rsassa_pkcs1_v1_5_sign($m) { // EMSA-PKCS1-v1_5 encoding - $em = $this->_emsa_pkcs1_v1_5_encode($m, $this->k); - if ($em === false) { - user_error('RSA modulus too short'); - return false; + if ($em === \false) { + \user_error('RSA modulus too short'); + return \false; } - // RSA signature - $m = $this->_os2ip($em); $s = $this->_rsasp1($m); $s = $this->_i2osp($s, $this->k); - // Output the signature S - return $s; } - /** * RSASSA-PKCS1-V1_5-VERIFY * @@ -2953,38 +2489,31 @@ class RSA function _rsassa_pkcs1_v1_5_verify($m, $s) { // Length checking - - if (strlen($s) != $this->k) { - user_error('Invalid signature'); - return false; + if (\strlen($s) != $this->k) { + \user_error('Invalid signature'); + return \false; } - // RSA verification - $s = $this->_os2ip($s); $m2 = $this->_rsavp1($s); - if ($m2 === false) { - user_error('Invalid signature'); - return false; + if ($m2 === \false) { + \user_error('Invalid signature'); + return \false; } $em = $this->_i2osp($m2, $this->k); - if ($em === false) { - user_error('Invalid signature'); - return false; + if ($em === \false) { + \user_error('Invalid signature'); + return \false; } - // EMSA-PKCS1-v1_5 encoding - $em2 = $this->_emsa_pkcs1_v1_5_encode($m, $this->k); - if ($em2 === false) { - user_error('RSA modulus too short'); - return false; + if ($em2 === \false) { + \user_error('RSA modulus too short'); + return \false; } - // Compare return $this->_equals($em, $em2); } - /** * Set Encryption Mode * @@ -2997,7 +2526,6 @@ class RSA { $this->encryptionMode = $mode; } - /** * Set Signature Mode * @@ -3010,7 +2538,6 @@ class RSA { $this->signatureMode = $mode; } - /** * Set public key comment. * @@ -3021,7 +2548,6 @@ class RSA { $this->comment = $comment; } - /** * Get public key comment. * @@ -3032,7 +2558,6 @@ class RSA { return $this->comment; } - /** * Encryption * @@ -3049,40 +2574,37 @@ class RSA { switch ($this->encryptionMode) { case self::ENCRYPTION_NONE: - $plaintext = str_split($plaintext, $this->k); + $plaintext = \str_split($plaintext, $this->k); $ciphertext = ''; foreach ($plaintext as $m) { - $ciphertext.= $this->_raw_encrypt($m); + $ciphertext .= $this->_raw_encrypt($m); } return $ciphertext; case self::ENCRYPTION_PKCS1: $length = $this->k - 11; if ($length <= 0) { - return false; + return \false; } - - $plaintext = str_split($plaintext, $length); + $plaintext = \str_split($plaintext, $length); $ciphertext = ''; foreach ($plaintext as $m) { - $ciphertext.= $this->_rsaes_pkcs1_v1_5_encrypt($m); + $ciphertext .= $this->_rsaes_pkcs1_v1_5_encrypt($m); } return $ciphertext; //case self::ENCRYPTION_OAEP: default: $length = $this->k - 2 * $this->hLen - 2; if ($length <= 0) { - return false; + return \false; } - - $plaintext = str_split($plaintext, $length); + $plaintext = \str_split($plaintext, $length); $ciphertext = ''; foreach ($plaintext as $m) { - $ciphertext.= $this->_rsaes_oaep_encrypt($m); + $ciphertext .= $this->_rsaes_oaep_encrypt($m); } return $ciphertext; } } - /** * Decryption * @@ -3094,14 +2616,11 @@ class RSA function decrypt($ciphertext) { if ($this->k <= 0) { - return false; + return \false; } - - $ciphertext = str_split($ciphertext, $this->k); - $ciphertext[count($ciphertext) - 1] = str_pad($ciphertext[count($ciphertext) - 1], $this->k, chr(0), STR_PAD_LEFT); - + $ciphertext = \str_split($ciphertext, $this->k); + $ciphertext[\count($ciphertext) - 1] = \str_pad($ciphertext[\count($ciphertext) - 1], $this->k, \chr(0), \STR_PAD_LEFT); $plaintext = ''; - switch ($this->encryptionMode) { case self::ENCRYPTION_NONE: $decrypt = '_raw_encrypt'; @@ -3113,18 +2632,15 @@ class RSA default: $decrypt = '_rsaes_oaep_decrypt'; } - foreach ($ciphertext as $c) { - $temp = $this->$decrypt($c); - if ($temp === false) { - return false; + $temp = $this->{$decrypt}($c); + if ($temp === \false) { + return \false; } - $plaintext.= $temp; + $plaintext .= $temp; } - return $plaintext; } - /** * Create a signature * @@ -3136,9 +2652,8 @@ class RSA function sign($message) { if (empty($this->modulus) || empty($this->exponent)) { - return false; + return \false; } - switch ($this->signatureMode) { case self::SIGNATURE_PKCS1: return $this->_rsassa_pkcs1_v1_5_sign($message); @@ -3147,7 +2662,6 @@ class RSA return $this->_rsassa_pss_sign($message); } } - /** * Verifies a signature * @@ -3160,9 +2674,8 @@ class RSA function verify($message, $signature) { if (empty($this->modulus) || empty($this->exponent)) { - return false; + return \false; } - switch ($this->signatureMode) { case self::SIGNATURE_PKCS1: return $this->_rsassa_pkcs1_v1_5_verify($message, $signature); @@ -3171,7 +2684,6 @@ class RSA return $this->_rsassa_pss_verify($message, $signature); } } - /** * Extract raw BER from Base64 encoding * @@ -3190,12 +2702,12 @@ class RSA * subject=/O=organization/OU=org unit/CN=common name * issuer=/O=organization/CN=common name */ - $temp = preg_replace('#.*?^-+[^-]+-+[\r\n ]*$#ms', '', $str, 1); + $temp = \preg_replace('#.*?^-+[^-]+-+[\\r\\n ]*$#ms', '', $str, 1); // remove the -----BEGIN CERTIFICATE----- and -----END CERTIFICATE----- stuff - $temp = preg_replace('#-+[^-]+-+#', '', $temp); + $temp = \preg_replace('#-+[^-]+-+#', '', $temp); // remove new lines - $temp = str_replace(array("\r", "\n", ' '), '', $temp); - $temp = preg_match('#^[a-zA-Z\d/+]*={0,2}$#', $temp) ? base64_decode($temp) : false; - return $temp != false ? $temp : $str; + $temp = \str_replace(array("\r", "\n", ' '), '', $temp); + $temp = \preg_match('#^[a-zA-Z\\d/+]*={0,2}$#', $temp) ? \base64_decode($temp) : \false; + return $temp != \false ? $temp : $str; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/phpseclib/phpseclib/phpseclib/Crypt/Random.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/Random.php similarity index 65% rename from wp-content/plugins/wp-mail-smtp/vendor/phpseclib/phpseclib/phpseclib/Crypt/Random.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/Random.php index 8f53eb3..378287f 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/phpseclib/phpseclib/phpseclib/Crypt/Random.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/Random.php @@ -21,8 +21,7 @@ * @license http://www.opensource.org/licenses/mit-license.html MIT License * @link http://phpseclib.sourceforge.net */ - -namespace phpseclib\Crypt; +namespace WPMailSMTP\Vendor\phpseclib\Crypt; /** * Pure-PHP Random Number Generator @@ -48,8 +47,7 @@ class Random if (!$length) { return ''; } - - if (version_compare(PHP_VERSION, '7.0.0', '>=')) { + if (\version_compare(\PHP_VERSION, '7.0.0', '>=')) { try { return \random_bytes($length); } catch (\Throwable $e) { @@ -61,12 +59,11 @@ class Random // the PHP implementation. } } - - if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { + if (\strtoupper(\substr(\PHP_OS, 0, 3)) === 'WIN') { // method 1. prior to PHP 5.3 this would call rand() on windows hence the function_exists('class_alias') call. // ie. class_alias is a function that was introduced in PHP 5.3 - if (extension_loaded('mcrypt') && function_exists('class_alias')) { - return @mcrypt_create_iv($length); + if (\extension_loaded('mcrypt') && \function_exists('class_alias')) { + return @\mcrypt_create_iv($length); } // method 2. openssl_random_pseudo_bytes was introduced in PHP 5.3.0 but prior to PHP 5.3.4 there was, // to quote , "possible blocking behavior". as of 5.3.4 @@ -81,24 +78,25 @@ class Random // https://github.com/php/php-src/blob/7014a0eb6d1611151a286c0ff4f2238f92c120d6/win32/winutil.c#L80 // // we're calling it, all the same, in the off chance that the mcrypt extension is not available - if (extension_loaded('openssl') && version_compare(PHP_VERSION, '5.3.4', '>=')) { - return openssl_random_pseudo_bytes($length); + if (\extension_loaded('openssl') && \version_compare(\PHP_VERSION, '5.3.4', '>=')) { + return \openssl_random_pseudo_bytes($length); } } else { // method 1. the fastest - if (extension_loaded('openssl')) { - return openssl_random_pseudo_bytes($length); + if (\extension_loaded('openssl')) { + return \openssl_random_pseudo_bytes($length); } // method 2 - static $fp = true; - if ($fp === true) { + static $fp = \true; + if ($fp === \true) { // warning's will be output unles the error suppression operator is used. errors such as // "open_basedir restriction in effect", "Permission denied", "No such file or directory", etc. - $fp = @fopen('/dev/urandom', 'rb'); + $fp = @\fopen('/dev/urandom', 'rb'); } - if ($fp !== true && $fp !== false) { // surprisingly faster than !is_bool() or is_resource() - $temp = fread($fp, $length); - if (strlen($temp) == $length) { + if ($fp !== \true && $fp !== \false) { + // surprisingly faster than !is_bool() or is_resource() + $temp = \fread($fp, $length); + if (\strlen($temp) == $length) { return $temp; } } @@ -107,12 +105,11 @@ class Random // surprisingly slower than method 2. maybe that's because mcrypt_create_iv does a bunch of error checking that we're // not doing. regardless, this'll only be called if this PHP script couldn't open /dev/urandom due to open_basedir // restrictions or some such - if (extension_loaded('mcrypt')) { - return @mcrypt_create_iv($length, MCRYPT_DEV_URANDOM); + if (\extension_loaded('mcrypt')) { + return @\mcrypt_create_iv($length, \MCRYPT_DEV_URANDOM); } } // at this point we have no choice but to use a pure-PHP CSPRNG - // cascade entropy across multiple PHP instances by fixing the session and collecting all // environmental variables, including the previous session data and the current session // data. @@ -130,53 +127,40 @@ class Random // a hash of the session data before that). certainly an attacker should be assumed to have // full control over his own http requests. he, however, is not going to have control over // everyone's http requests. - static $crypto = false, $v; - if ($crypto === false) { + static $crypto = \false, $v; + if ($crypto === \false) { // save old session data - $old_session_id = session_id(); - $old_use_cookies = ini_get('session.use_cookies'); - $old_session_cache_limiter = session_cache_limiter(); - $_OLD_SESSION = isset($_SESSION) ? $_SESSION : false; + $old_session_id = \session_id(); + $old_use_cookies = \ini_get('session.use_cookies'); + $old_session_cache_limiter = \session_cache_limiter(); + $_OLD_SESSION = isset($_SESSION) ? $_SESSION : \false; if ($old_session_id != '') { - session_write_close(); + \session_write_close(); } - - session_id(1); - ini_set('session.use_cookies', 0); - session_cache_limiter(''); - session_start(); - - $v = $seed = $_SESSION['seed'] = pack('H*', sha1( - (isset($_SERVER) ? phpseclib_safe_serialize($_SERVER) : '') . - (isset($_POST) ? phpseclib_safe_serialize($_POST) : '') . - (isset($_GET) ? phpseclib_safe_serialize($_GET) : '') . - (isset($_COOKIE) ? phpseclib_safe_serialize($_COOKIE) : '') . - phpseclib_safe_serialize($GLOBALS) . - phpseclib_safe_serialize($_SESSION) . - phpseclib_safe_serialize($_OLD_SESSION) - )); + \session_id(1); + \ini_set('session.use_cookies', 0); + \session_cache_limiter(''); + \session_start(); + $v = $seed = $_SESSION['seed'] = \pack('H*', \sha1((isset($_SERVER) ? phpseclib_safe_serialize($_SERVER) : '') . (isset($_POST) ? phpseclib_safe_serialize($_POST) : '') . (isset($_GET) ? phpseclib_safe_serialize($_GET) : '') . (isset($_COOKIE) ? phpseclib_safe_serialize($_COOKIE) : '') . phpseclib_safe_serialize($GLOBALS) . phpseclib_safe_serialize($_SESSION) . phpseclib_safe_serialize($_OLD_SESSION))); if (!isset($_SESSION['count'])) { $_SESSION['count'] = 0; } $_SESSION['count']++; - - session_write_close(); - + \session_write_close(); // restore old session data if ($old_session_id != '') { - session_id($old_session_id); - session_start(); - ini_set('session.use_cookies', $old_use_cookies); - session_cache_limiter($old_session_cache_limiter); + \session_id($old_session_id); + \session_start(); + \ini_set('session.use_cookies', $old_use_cookies); + \session_cache_limiter($old_session_cache_limiter); } else { - if ($_OLD_SESSION !== false) { + if ($_OLD_SESSION !== \false) { $_SESSION = $_OLD_SESSION; unset($_OLD_SESSION); } else { unset($_SESSION); } } - // in SSH2 a shared secret and an exchange hash are generated through the key exchange process. // the IV client to server is the hash of that "nonce" with the letter A and for the encryption key it's the letter C. // if the hash doesn't produce enough a key or an IV that's long enough concat successive hashes of the @@ -185,43 +169,39 @@ class Random // http://tools.ietf.org/html/rfc4253#section-7.2 // // see the is_string($crypto) part for an example of how to expand the keys - $key = pack('H*', sha1($seed . 'A')); - $iv = pack('H*', sha1($seed . 'C')); - + $key = \pack('H*', \sha1($seed . 'A')); + $iv = \pack('H*', \sha1($seed . 'C')); // ciphers are used as per the nist.gov link below. also, see this link: // // http://en.wikipedia.org/wiki/Cryptographically_secure_pseudorandom_number_generator#Designs_based_on_cryptographic_primitives - switch (true) { - case class_exists('\phpseclib\Crypt\AES'): - $crypto = new AES(Base::MODE_CTR); + switch (\true) { + case \class_exists('WPMailSMTP\\Vendor\\phpseclib\\Crypt\\AES'): + $crypto = new \WPMailSMTP\Vendor\phpseclib\Crypt\AES(\WPMailSMTP\Vendor\phpseclib\Crypt\Base::MODE_CTR); break; - case class_exists('\phpseclib\Crypt\Twofish'): - $crypto = new Twofish(Base::MODE_CTR); + case \class_exists('WPMailSMTP\\Vendor\\phpseclib\\Crypt\\Twofish'): + $crypto = new \WPMailSMTP\Vendor\phpseclib\Crypt\Twofish(\WPMailSMTP\Vendor\phpseclib\Crypt\Base::MODE_CTR); break; - case class_exists('\phpseclib\Crypt\Blowfish'): - $crypto = new Blowfish(Base::MODE_CTR); + case \class_exists('WPMailSMTP\\Vendor\\phpseclib\\Crypt\\Blowfish'): + $crypto = new \WPMailSMTP\Vendor\phpseclib\Crypt\Blowfish(\WPMailSMTP\Vendor\phpseclib\Crypt\Base::MODE_CTR); break; - case class_exists('\phpseclib\Crypt\TripleDES'): - $crypto = new TripleDES(Base::MODE_CTR); + case \class_exists('WPMailSMTP\\Vendor\\phpseclib\\Crypt\\TripleDES'): + $crypto = new \WPMailSMTP\Vendor\phpseclib\Crypt\TripleDES(\WPMailSMTP\Vendor\phpseclib\Crypt\Base::MODE_CTR); break; - case class_exists('\phpseclib\Crypt\DES'): - $crypto = new DES(Base::MODE_CTR); + case \class_exists('WPMailSMTP\\Vendor\\phpseclib\\Crypt\\DES'): + $crypto = new \WPMailSMTP\Vendor\phpseclib\Crypt\DES(\WPMailSMTP\Vendor\phpseclib\Crypt\Base::MODE_CTR); break; - case class_exists('\phpseclib\Crypt\RC4'): - $crypto = new RC4(); + case \class_exists('WPMailSMTP\\Vendor\\phpseclib\\Crypt\\RC4'): + $crypto = new \WPMailSMTP\Vendor\phpseclib\Crypt\RC4(); break; default: - user_error(__CLASS__ . ' requires at least one symmetric cipher be loaded'); - return false; + \user_error(__CLASS__ . ' requires at least one symmetric cipher be loaded'); + return \false; } - $crypto->setKey($key); $crypto->setIV($iv); $crypto->enableContinuousBuffer(); } - //return $crypto->encrypt(str_repeat("\0", $length)); - // the following is based off of ANSI X9.31: // // http://csrc.nist.gov/groups/STM/cavp/documents/rng/931rngext.pdf @@ -231,17 +211,19 @@ class Random // http://www.opensource.apple.com/source/OpenSSL/OpenSSL-38/openssl/fips-1.0/rand/fips_rand.c // (do a search for "ANS X9.31 A.2.4") $result = ''; - while (strlen($result) < $length) { - $i = $crypto->encrypt(microtime()); // strlen(microtime()) == 21 - $r = $crypto->encrypt($i ^ $v); // strlen($v) == 20 - $v = $crypto->encrypt($r ^ $i); // strlen($r) == 20 - $result.= $r; + while (\strlen($result) < $length) { + $i = $crypto->encrypt(\microtime()); + // strlen(microtime()) == 21 + $r = $crypto->encrypt($i ^ $v); + // strlen($v) == 20 + $v = $crypto->encrypt($r ^ $i); + // strlen($r) == 20 + $result .= $r; } - return substr($result, 0, $length); + return \substr($result, 0, $length); } } - -if (!function_exists('phpseclib_safe_serialize')) { +if (!\function_exists('WPMailSMTP\\Vendor\\phpseclib_safe_serialize')) { /** * Safely serialize variables * @@ -253,25 +235,25 @@ if (!function_exists('phpseclib_safe_serialize')) { */ function phpseclib_safe_serialize(&$arr) { - if (is_object($arr)) { + if (\is_object($arr)) { return ''; } - if (!is_array($arr)) { - return serialize($arr); + if (!\is_array($arr)) { + return \serialize($arr); } // prevent circular array recursion if (isset($arr['__phpseclib_marker'])) { return ''; } $safearr = array(); - $arr['__phpseclib_marker'] = true; - foreach (array_keys($arr) as $key) { + $arr['__phpseclib_marker'] = \true; + foreach (\array_keys($arr) as $key) { // do not recurse on the '__phpseclib_marker' key itself, for smaller memory usage if ($key !== '__phpseclib_marker') { $safearr[$key] = phpseclib_safe_serialize($arr[$key]); } } unset($arr['__phpseclib_marker']); - return serialize($safearr); + return \serialize($safearr); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php similarity index 51% rename from wp-content/plugins/wp-mail-smtp/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php index 3648a19..bfdfb3e 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php @@ -51,8 +51,7 @@ * @license http://www.opensource.org/licenses/mit-license.html MIT License * @link http://phpseclib.sourceforge.net */ - -namespace phpseclib\Crypt; +namespace WPMailSMTP\Vendor\phpseclib\Crypt; /** * Pure-PHP implementation of Rijndael. @@ -61,7 +60,7 @@ namespace phpseclib\Crypt; * @author Jim Wigginton * @access public */ -class Rijndael extends Base +class Rijndael extends \WPMailSMTP\Vendor\phpseclib\Crypt\Base { /** * The mcrypt specific name of the cipher @@ -78,7 +77,6 @@ class Rijndael extends Base * @access private */ var $cipher_name_mcrypt = 'rijndael-128'; - /** * The default salt used by setPassword() * @@ -88,7 +86,6 @@ class Rijndael extends Base * @access private */ var $password_default_salt = 'phpseclib'; - /** * The Key Schedule * @@ -97,7 +94,6 @@ class Rijndael extends Base * @access private */ var $w; - /** * The Inverse Key Schedule * @@ -106,7 +102,6 @@ class Rijndael extends Base * @access private */ var $dw; - /** * The Block Length divided by 32 * @@ -119,7 +114,6 @@ class Rijndael extends Base * of that, we'll just precompute it once. */ var $Nb = 4; - /** * The Key Length (in bytes) * @@ -132,7 +126,6 @@ class Rijndael extends Base * of that, we'll just precompute it once. */ var $key_length = 16; - /** * The Key Length divided by 32 * @@ -142,7 +135,6 @@ class Rijndael extends Base * @internal The max value is 256 / 32 = 8, the min value is 128 / 32 = 4 */ var $Nk = 4; - /** * The Number of Rounds * @@ -151,7 +143,6 @@ class Rijndael extends Base * @internal The max value is 14, the min value is 10. */ var $Nr; - /** * Shift offsets * @@ -159,7 +150,6 @@ class Rijndael extends Base * @access private */ var $c; - /** * Holds the last used key- and block_size information * @@ -167,7 +157,6 @@ class Rijndael extends Base * @access private */ var $kl; - /** * Sets the key length. * @@ -190,7 +179,7 @@ class Rijndael extends Base */ function setKeyLength($length) { - switch (true) { + switch (\true) { case $length <= 128: $this->key_length = 16; break; @@ -206,10 +195,8 @@ class Rijndael extends Base default: $this->key_length = 32; } - parent::setKeyLength($length); } - /** * Sets the block length * @@ -229,10 +216,9 @@ class Rijndael extends Base } $this->Nb = $length; $this->block_size = $length << 2; - $this->changed = true; + $this->changed = \true; $this->_setEngine(); } - /** * Test for engine validity * @@ -248,22 +234,21 @@ class Rijndael extends Base switch ($engine) { case self::ENGINE_OPENSSL: if ($this->block_size != 16) { - return false; + return \false; } $this->cipher_name_openssl_ecb = 'aes-' . ($this->key_length << 3) . '-ecb'; $this->cipher_name_openssl = 'aes-' . ($this->key_length << 3) . '-' . $this->_openssl_translate_mode(); break; case self::ENGINE_MCRYPT: $this->cipher_name_mcrypt = 'rijndael-' . ($this->block_size << 3); - if ($this->key_length % 8) { // is it a 160/224-bit key? + if ($this->key_length % 8) { + // is it a 160/224-bit key? // mcrypt is not usable for them, only for 128/192/256-bit keys - return false; + return \false; } } - return parent::isValidEngine($engine); } - /** * Encrypts a block * @@ -275,49 +260,40 @@ class Rijndael extends Base { static $tables; if (empty($tables)) { - $tables = &$this->_getTables(); + $tables =& $this->_getTables(); } - $t0 = $tables[0]; - $t1 = $tables[1]; - $t2 = $tables[2]; - $t3 = $tables[3]; + $t0 = $tables[0]; + $t1 = $tables[1]; + $t2 = $tables[2]; + $t3 = $tables[3]; $sbox = $tables[4]; - $state = array(); - $words = unpack('N*', $in); - + $words = \unpack('N*', $in); $c = $this->c; $w = $this->w; $Nb = $this->Nb; $Nr = $this->Nr; - // addRoundKey $wc = $Nb - 1; foreach ($words as $word) { $state[] = $word ^ $w[++$wc]; } - // fips-197.pdf#page=19, "Figure 5. Pseudo Code for the Cipher", states that this loop has four components - // subBytes, shiftRows, mixColumns, and addRoundKey. fips-197.pdf#page=30, "Implementation Suggestions Regarding // Various Platforms" suggests that performs enhanced implementations are described in Rijndael-ammended.pdf. // Rijndael-ammended.pdf#page=20, "Implementation aspects / 32-bit processor", discusses such an optimization. // Unfortunately, the description given there is not quite correct. Per aes.spec.v316.pdf#page=19 [1], // equation (7.4.7) is supposed to use addition instead of subtraction, so we'll do that here, as well. - // [1] http://fp.gladman.plus.com/cryptography_technology/rijndael/aes.spec.v316.pdf $temp = array(); for ($round = 1; $round < $Nr; ++$round) { - $i = 0; // $c[0] == 0 + $i = 0; + // $c[0] == 0 $j = $c[1]; $k = $c[2]; $l = $c[3]; - while ($i < $Nb) { - $temp[$i] = $t0[$state[$i] >> 24 & 0x000000FF] ^ - $t1[$state[$j] >> 16 & 0x000000FF] ^ - $t2[$state[$k] >> 8 & 0x000000FF] ^ - $t3[$state[$l] & 0x000000FF] ^ - $w[++$wc]; + $temp[$i] = $t0[$state[$i] >> 24 & 0xff] ^ $t1[$state[$j] >> 16 & 0xff] ^ $t2[$state[$k] >> 8 & 0xff] ^ $t3[$state[$l] & 0xff] ^ $w[++$wc]; ++$i; $j = ($j + 1) % $Nb; $k = ($k + 1) % $Nb; @@ -325,46 +301,36 @@ class Rijndael extends Base } $state = $temp; } - // subWord for ($i = 0; $i < $Nb; ++$i) { - $state[$i] = $sbox[$state[$i] & 0x000000FF] | - ($sbox[$state[$i] >> 8 & 0x000000FF] << 8) | - ($sbox[$state[$i] >> 16 & 0x000000FF] << 16) | - ($sbox[$state[$i] >> 24 & 0x000000FF] << 24); + $state[$i] = $sbox[$state[$i] & 0xff] | $sbox[$state[$i] >> 8 & 0xff] << 8 | $sbox[$state[$i] >> 16 & 0xff] << 16 | $sbox[$state[$i] >> 24 & 0xff] << 24; } - // shiftRows + addRoundKey - $i = 0; // $c[0] == 0 + $i = 0; + // $c[0] == 0 $j = $c[1]; $k = $c[2]; $l = $c[3]; while ($i < $Nb) { - $temp[$i] = ($state[$i] & 0xFF000000) ^ - ($state[$j] & 0x00FF0000) ^ - ($state[$k] & 0x0000FF00) ^ - ($state[$l] & 0x000000FF) ^ - $w[$i]; + $temp[$i] = $state[$i] & 0xff000000 ^ $state[$j] & 0xff0000 ^ $state[$k] & 0xff00 ^ $state[$l] & 0xff ^ $w[$i]; ++$i; $j = ($j + 1) % $Nb; $k = ($k + 1) % $Nb; $l = ($l + 1) % $Nb; } - switch ($Nb) { case 8: - return pack('N*', $temp[0], $temp[1], $temp[2], $temp[3], $temp[4], $temp[5], $temp[6], $temp[7]); + return \pack('N*', $temp[0], $temp[1], $temp[2], $temp[3], $temp[4], $temp[5], $temp[6], $temp[7]); case 7: - return pack('N*', $temp[0], $temp[1], $temp[2], $temp[3], $temp[4], $temp[5], $temp[6]); + return \pack('N*', $temp[0], $temp[1], $temp[2], $temp[3], $temp[4], $temp[5], $temp[6]); case 6: - return pack('N*', $temp[0], $temp[1], $temp[2], $temp[3], $temp[4], $temp[5]); + return \pack('N*', $temp[0], $temp[1], $temp[2], $temp[3], $temp[4], $temp[5]); case 5: - return pack('N*', $temp[0], $temp[1], $temp[2], $temp[3], $temp[4]); + return \pack('N*', $temp[0], $temp[1], $temp[2], $temp[3], $temp[4]); default: - return pack('N*', $temp[0], $temp[1], $temp[2], $temp[3]); + return \pack('N*', $temp[0], $temp[1], $temp[2], $temp[3]); } } - /** * Decrypts a block * @@ -376,41 +342,33 @@ class Rijndael extends Base { static $invtables; if (empty($invtables)) { - $invtables = &$this->_getInvTables(); + $invtables =& $this->_getInvTables(); } - $dt0 = $invtables[0]; - $dt1 = $invtables[1]; - $dt2 = $invtables[2]; - $dt3 = $invtables[3]; + $dt0 = $invtables[0]; + $dt1 = $invtables[1]; + $dt2 = $invtables[2]; + $dt3 = $invtables[3]; $isbox = $invtables[4]; - $state = array(); - $words = unpack('N*', $in); - - $c = $this->c; + $words = \unpack('N*', $in); + $c = $this->c; $dw = $this->dw; $Nb = $this->Nb; $Nr = $this->Nr; - // addRoundKey $wc = $Nb - 1; foreach ($words as $word) { $state[] = $word ^ $dw[++$wc]; } - $temp = array(); for ($round = $Nr - 1; $round > 0; --$round) { - $i = 0; // $c[0] == 0 + $i = 0; + // $c[0] == 0 $j = $Nb - $c[1]; $k = $Nb - $c[2]; $l = $Nb - $c[3]; - while ($i < $Nb) { - $temp[$i] = $dt0[$state[$i] >> 24 & 0x000000FF] ^ - $dt1[$state[$j] >> 16 & 0x000000FF] ^ - $dt2[$state[$k] >> 8 & 0x000000FF] ^ - $dt3[$state[$l] & 0x000000FF] ^ - $dw[++$wc]; + $temp[$i] = $dt0[$state[$i] >> 24 & 0xff] ^ $dt1[$state[$j] >> 16 & 0xff] ^ $dt2[$state[$k] >> 8 & 0xff] ^ $dt3[$state[$l] & 0xff] ^ $dw[++$wc]; ++$i; $j = ($j + 1) % $Nb; $k = ($k + 1) % $Nb; @@ -418,43 +376,33 @@ class Rijndael extends Base } $state = $temp; } - // invShiftRows + invSubWord + addRoundKey - $i = 0; // $c[0] == 0 + $i = 0; + // $c[0] == 0 $j = $Nb - $c[1]; $k = $Nb - $c[2]; $l = $Nb - $c[3]; - while ($i < $Nb) { - $word = ($state[$i] & 0xFF000000) | - ($state[$j] & 0x00FF0000) | - ($state[$k] & 0x0000FF00) | - ($state[$l] & 0x000000FF); - - $temp[$i] = $dw[$i] ^ ($isbox[$word & 0x000000FF] | - ($isbox[$word >> 8 & 0x000000FF] << 8) | - ($isbox[$word >> 16 & 0x000000FF] << 16) | - ($isbox[$word >> 24 & 0x000000FF] << 24)); + $word = $state[$i] & 0xff000000 | $state[$j] & 0xff0000 | $state[$k] & 0xff00 | $state[$l] & 0xff; + $temp[$i] = $dw[$i] ^ ($isbox[$word & 0xff] | $isbox[$word >> 8 & 0xff] << 8 | $isbox[$word >> 16 & 0xff] << 16 | $isbox[$word >> 24 & 0xff] << 24); ++$i; $j = ($j + 1) % $Nb; $k = ($k + 1) % $Nb; $l = ($l + 1) % $Nb; } - switch ($Nb) { case 8: - return pack('N*', $temp[0], $temp[1], $temp[2], $temp[3], $temp[4], $temp[5], $temp[6], $temp[7]); + return \pack('N*', $temp[0], $temp[1], $temp[2], $temp[3], $temp[4], $temp[5], $temp[6], $temp[7]); case 7: - return pack('N*', $temp[0], $temp[1], $temp[2], $temp[3], $temp[4], $temp[5], $temp[6]); + return \pack('N*', $temp[0], $temp[1], $temp[2], $temp[3], $temp[4], $temp[5], $temp[6]); case 6: - return pack('N*', $temp[0], $temp[1], $temp[2], $temp[3], $temp[4], $temp[5]); + return \pack('N*', $temp[0], $temp[1], $temp[2], $temp[3], $temp[4], $temp[5]); case 5: - return pack('N*', $temp[0], $temp[1], $temp[2], $temp[3], $temp[4]); + return \pack('N*', $temp[0], $temp[1], $temp[2], $temp[3], $temp[4]); default: - return pack('N*', $temp[0], $temp[1], $temp[2], $temp[3]); + return \pack('N*', $temp[0], $temp[1], $temp[2], $temp[3]); } } - /** * Setup the key (expansion) * @@ -465,25 +413,15 @@ class Rijndael extends Base { // Each number in $rcon is equal to the previous number multiplied by two in Rijndael's finite field. // See http://en.wikipedia.org/wiki/Finite_field_arithmetic#Multiplicative_inverse - static $rcon = array(0, - 0x01000000, 0x02000000, 0x04000000, 0x08000000, 0x10000000, - 0x20000000, 0x40000000, 0x80000000, 0x1B000000, 0x36000000, - 0x6C000000, 0xD8000000, 0xAB000000, 0x4D000000, 0x9A000000, - 0x2F000000, 0x5E000000, 0xBC000000, 0x63000000, 0xC6000000, - 0x97000000, 0x35000000, 0x6A000000, 0xD4000000, 0xB3000000, - 0x7D000000, 0xFA000000, 0xEF000000, 0xC5000000, 0x91000000 - ); - + static $rcon = array(0, 0x1000000, 0x2000000, 0x4000000, 0x8000000, 0x10000000, 0x20000000, 0x40000000, 0x80000000, 0x1b000000, 0x36000000, 0x6c000000, 0xd8000000, 0xab000000, 0x4d000000, 0x9a000000, 0x2f000000, 0x5e000000, 0xbc000000, 0x63000000, 0xc6000000, 0x97000000, 0x35000000, 0x6a000000, 0xd4000000, 0xb3000000, 0x7d000000, 0xfa000000, 0xef000000, 0xc5000000, 0x91000000); if (isset($this->kl['key']) && $this->key === $this->kl['key'] && $this->key_length === $this->kl['key_length'] && $this->block_size === $this->kl['block_size']) { // already expanded return; } $this->kl = array('key' => $this->key, 'key_length' => $this->key_length, 'block_size' => $this->block_size); - $this->Nk = $this->key_length >> 2; // see Rijndael-ammended.pdf#page=44 - $this->Nr = max($this->Nk, $this->Nb) + 6; - + $this->Nr = \max($this->Nk, $this->Nb) + 6; // shift offsets for Nb = 5, 7 are defined in Rijndael-ammended.pdf#page=44, // "Table 8: Shift offsets in Shiftrow for the alternative block lengths" // shift offsets for Nb = 4, 6, 8 are defined in Rijndael-ammended.pdf#page=14, @@ -500,9 +438,7 @@ class Rijndael extends Base case 8: $this->c = array(0, 1, 3, 4); } - - $w = array_values(unpack('N*words', $this->key)); - + $w = \array_values(\unpack('N*words', $this->key)); $length = $this->Nb * ($this->Nr + 1); for ($i = $this->Nk; $i < $length; $i++) { $temp = $w[$i - 1]; @@ -511,14 +447,14 @@ class Rijndael extends Base // on a 32-bit machine, it's 32-bits, and on a 64-bit machine, it's 64-bits. on a 32-bit machine, // 0xFFFFFFFF << 8 == 0xFFFFFF00, but on a 64-bit machine, it equals 0xFFFFFFFF00. as such, doing 'and' // with 0xFFFFFFFF (or 0xFFFFFF00) on a 32-bit machine is unnecessary, but on a 64-bit machine, it is. - $temp = (($temp << 8) & 0xFFFFFF00) | (($temp >> 24) & 0x000000FF); // rotWord + $temp = $temp << 8 & 0xffffff00 | $temp >> 24 & 0xff; + // rotWord $temp = $this->_subWord($temp) ^ $rcon[$i / $this->Nk]; } elseif ($this->Nk > 6 && $i % $this->Nk == 4) { $temp = $this->_subWord($temp); } $w[$i] = $w[$i - $this->Nk] ^ $temp; } - // convert the key schedule from a vector of $Nb * ($Nr + 1) length to a matrix with $Nr + 1 rows and $Nb columns // and generate the inverse key schedule. more specifically, // according to (section 5.3.3), @@ -537,37 +473,30 @@ class Rijndael extends Base $j = 0; while ($j < $this->Nb) { $dw = $this->_subWord($this->w[$row][$j]); - $temp[$j] = $dt0[$dw >> 24 & 0x000000FF] ^ - $dt1[$dw >> 16 & 0x000000FF] ^ - $dt2[$dw >> 8 & 0x000000FF] ^ - $dt3[$dw & 0x000000FF]; + $temp[$j] = $dt0[$dw >> 24 & 0xff] ^ $dt1[$dw >> 16 & 0xff] ^ $dt2[$dw >> 8 & 0xff] ^ $dt3[$dw & 0xff]; $j++; } $this->dw[$row] = $temp; } - $col = 0; $row++; } $this->w[$row][$col] = $w[$i]; } - $this->dw[$row] = $this->w[$row]; - // Converting to 1-dim key arrays (both ascending) - $this->dw = array_reverse($this->dw); - $w = array_pop($this->w); - $dw = array_pop($this->dw); + $this->dw = \array_reverse($this->dw); + $w = \array_pop($this->w); + $dw = \array_pop($this->dw); foreach ($this->w as $r => $wr) { foreach ($wr as $c => $wc) { - $w[] = $wc; + $w[] = $wc; $dw[] = $this->dw[$r][$c]; } } - $this->w = $w; + $this->w = $w; $this->dw = $dw; } - /** * Performs S-Box substitutions * @@ -580,13 +509,8 @@ class Rijndael extends Base if (empty($sbox)) { list(, , , , $sbox) = $this->_getTables(); } - - return $sbox[$word & 0x000000FF] | - ($sbox[$word >> 8 & 0x000000FF] << 8) | - ($sbox[$word >> 16 & 0x000000FF] << 16) | - ($sbox[$word >> 24 & 0x000000FF] << 24); + return $sbox[$word & 0xff] | $sbox[$word >> 8 & 0xff] << 8 | $sbox[$word >> 16 & 0xff] << 16 | $sbox[$word >> 24 & 0xff] << 24; } - /** * Provides the mixColumns and sboxes tables * @@ -603,49 +527,271 @@ class Rijndael extends Base // according to (section 5.2.1), // precomputed tables can be used in the mixColumns phase. in that example, they're assigned t0...t3, so // those are the names we'll use. - $t3 = array_map('intval', array( + $t3 = \array_map('intval', array( // with array_map('intval', ...) we ensure we have only int's and not // some slower floats converted by php automatically on high values - 0x6363A5C6, 0x7C7C84F8, 0x777799EE, 0x7B7B8DF6, 0xF2F20DFF, 0x6B6BBDD6, 0x6F6FB1DE, 0xC5C55491, - 0x30305060, 0x01010302, 0x6767A9CE, 0x2B2B7D56, 0xFEFE19E7, 0xD7D762B5, 0xABABE64D, 0x76769AEC, - 0xCACA458F, 0x82829D1F, 0xC9C94089, 0x7D7D87FA, 0xFAFA15EF, 0x5959EBB2, 0x4747C98E, 0xF0F00BFB, - 0xADADEC41, 0xD4D467B3, 0xA2A2FD5F, 0xAFAFEA45, 0x9C9CBF23, 0xA4A4F753, 0x727296E4, 0xC0C05B9B, - 0xB7B7C275, 0xFDFD1CE1, 0x9393AE3D, 0x26266A4C, 0x36365A6C, 0x3F3F417E, 0xF7F702F5, 0xCCCC4F83, - 0x34345C68, 0xA5A5F451, 0xE5E534D1, 0xF1F108F9, 0x717193E2, 0xD8D873AB, 0x31315362, 0x15153F2A, - 0x04040C08, 0xC7C75295, 0x23236546, 0xC3C35E9D, 0x18182830, 0x9696A137, 0x05050F0A, 0x9A9AB52F, - 0x0707090E, 0x12123624, 0x80809B1B, 0xE2E23DDF, 0xEBEB26CD, 0x2727694E, 0xB2B2CD7F, 0x75759FEA, - 0x09091B12, 0x83839E1D, 0x2C2C7458, 0x1A1A2E34, 0x1B1B2D36, 0x6E6EB2DC, 0x5A5AEEB4, 0xA0A0FB5B, - 0x5252F6A4, 0x3B3B4D76, 0xD6D661B7, 0xB3B3CE7D, 0x29297B52, 0xE3E33EDD, 0x2F2F715E, 0x84849713, - 0x5353F5A6, 0xD1D168B9, 0x00000000, 0xEDED2CC1, 0x20206040, 0xFCFC1FE3, 0xB1B1C879, 0x5B5BEDB6, - 0x6A6ABED4, 0xCBCB468D, 0xBEBED967, 0x39394B72, 0x4A4ADE94, 0x4C4CD498, 0x5858E8B0, 0xCFCF4A85, - 0xD0D06BBB, 0xEFEF2AC5, 0xAAAAE54F, 0xFBFB16ED, 0x4343C586, 0x4D4DD79A, 0x33335566, 0x85859411, - 0x4545CF8A, 0xF9F910E9, 0x02020604, 0x7F7F81FE, 0x5050F0A0, 0x3C3C4478, 0x9F9FBA25, 0xA8A8E34B, - 0x5151F3A2, 0xA3A3FE5D, 0x4040C080, 0x8F8F8A05, 0x9292AD3F, 0x9D9DBC21, 0x38384870, 0xF5F504F1, - 0xBCBCDF63, 0xB6B6C177, 0xDADA75AF, 0x21216342, 0x10103020, 0xFFFF1AE5, 0xF3F30EFD, 0xD2D26DBF, - 0xCDCD4C81, 0x0C0C1418, 0x13133526, 0xECEC2FC3, 0x5F5FE1BE, 0x9797A235, 0x4444CC88, 0x1717392E, - 0xC4C45793, 0xA7A7F255, 0x7E7E82FC, 0x3D3D477A, 0x6464ACC8, 0x5D5DE7BA, 0x19192B32, 0x737395E6, - 0x6060A0C0, 0x81819819, 0x4F4FD19E, 0xDCDC7FA3, 0x22226644, 0x2A2A7E54, 0x9090AB3B, 0x8888830B, - 0x4646CA8C, 0xEEEE29C7, 0xB8B8D36B, 0x14143C28, 0xDEDE79A7, 0x5E5EE2BC, 0x0B0B1D16, 0xDBDB76AD, - 0xE0E03BDB, 0x32325664, 0x3A3A4E74, 0x0A0A1E14, 0x4949DB92, 0x06060A0C, 0x24246C48, 0x5C5CE4B8, - 0xC2C25D9F, 0xD3D36EBD, 0xACACEF43, 0x6262A6C4, 0x9191A839, 0x9595A431, 0xE4E437D3, 0x79798BF2, - 0xE7E732D5, 0xC8C8438B, 0x3737596E, 0x6D6DB7DA, 0x8D8D8C01, 0xD5D564B1, 0x4E4ED29C, 0xA9A9E049, - 0x6C6CB4D8, 0x5656FAAC, 0xF4F407F3, 0xEAEA25CF, 0x6565AFCA, 0x7A7A8EF4, 0xAEAEE947, 0x08081810, - 0xBABAD56F, 0x787888F0, 0x25256F4A, 0x2E2E725C, 0x1C1C2438, 0xA6A6F157, 0xB4B4C773, 0xC6C65197, - 0xE8E823CB, 0xDDDD7CA1, 0x74749CE8, 0x1F1F213E, 0x4B4BDD96, 0xBDBDDC61, 0x8B8B860D, 0x8A8A850F, - 0x707090E0, 0x3E3E427C, 0xB5B5C471, 0x6666AACC, 0x4848D890, 0x03030506, 0xF6F601F7, 0x0E0E121C, - 0x6161A3C2, 0x35355F6A, 0x5757F9AE, 0xB9B9D069, 0x86869117, 0xC1C15899, 0x1D1D273A, 0x9E9EB927, - 0xE1E138D9, 0xF8F813EB, 0x9898B32B, 0x11113322, 0x6969BBD2, 0xD9D970A9, 0x8E8E8907, 0x9494A733, - 0x9B9BB62D, 0x1E1E223C, 0x87879215, 0xE9E920C9, 0xCECE4987, 0x5555FFAA, 0x28287850, 0xDFDF7AA5, - 0x8C8C8F03, 0xA1A1F859, 0x89898009, 0x0D0D171A, 0xBFBFDA65, 0xE6E631D7, 0x4242C684, 0x6868B8D0, - 0x4141C382, 0x9999B029, 0x2D2D775A, 0x0F0F111E, 0xB0B0CB7B, 0x5454FCA8, 0xBBBBD66D, 0x16163A2C + 0x6363a5c6, + 0x7c7c84f8, + 0x777799ee, + 0x7b7b8df6, + 0xf2f20dff, + 0x6b6bbdd6, + 0x6f6fb1de, + 0xc5c55491, + 0x30305060, + 0x1010302, + 0x6767a9ce, + 0x2b2b7d56, + 0xfefe19e7, + 0xd7d762b5, + 0xababe64d, + 0x76769aec, + 0xcaca458f, + 0x82829d1f, + 0xc9c94089, + 0x7d7d87fa, + 0xfafa15ef, + 0x5959ebb2, + 0x4747c98e, + 0xf0f00bfb, + 0xadadec41, + 0xd4d467b3, + 0xa2a2fd5f, + 0xafafea45, + 0x9c9cbf23, + 0xa4a4f753, + 0x727296e4, + 0xc0c05b9b, + 0xb7b7c275, + 0xfdfd1ce1, + 0x9393ae3d, + 0x26266a4c, + 0x36365a6c, + 0x3f3f417e, + 0xf7f702f5, + 0xcccc4f83, + 0x34345c68, + 0xa5a5f451, + 0xe5e534d1, + 0xf1f108f9, + 0x717193e2, + 0xd8d873ab, + 0x31315362, + 0x15153f2a, + 0x4040c08, + 0xc7c75295, + 0x23236546, + 0xc3c35e9d, + 0x18182830, + 0x9696a137, + 0x5050f0a, + 0x9a9ab52f, + 0x707090e, + 0x12123624, + 0x80809b1b, + 0xe2e23ddf, + 0xebeb26cd, + 0x2727694e, + 0xb2b2cd7f, + 0x75759fea, + 0x9091b12, + 0x83839e1d, + 0x2c2c7458, + 0x1a1a2e34, + 0x1b1b2d36, + 0x6e6eb2dc, + 0x5a5aeeb4, + 0xa0a0fb5b, + 0x5252f6a4, + 0x3b3b4d76, + 0xd6d661b7, + 0xb3b3ce7d, + 0x29297b52, + 0xe3e33edd, + 0x2f2f715e, + 0x84849713, + 0x5353f5a6, + 0xd1d168b9, + 0x0, + 0xeded2cc1, + 0x20206040, + 0xfcfc1fe3, + 0xb1b1c879, + 0x5b5bedb6, + 0x6a6abed4, + 0xcbcb468d, + 0xbebed967, + 0x39394b72, + 0x4a4ade94, + 0x4c4cd498, + 0x5858e8b0, + 0xcfcf4a85, + 0xd0d06bbb, + 0xefef2ac5, + 0xaaaae54f, + 0xfbfb16ed, + 0x4343c586, + 0x4d4dd79a, + 0x33335566, + 0x85859411, + 0x4545cf8a, + 0xf9f910e9, + 0x2020604, + 0x7f7f81fe, + 0x5050f0a0, + 0x3c3c4478, + 0x9f9fba25, + 0xa8a8e34b, + 0x5151f3a2, + 0xa3a3fe5d, + 0x4040c080, + 0x8f8f8a05, + 0x9292ad3f, + 0x9d9dbc21, + 0x38384870, + 0xf5f504f1, + 0xbcbcdf63, + 0xb6b6c177, + 0xdada75af, + 0x21216342, + 0x10103020, + 0xffff1ae5, + 0xf3f30efd, + 0xd2d26dbf, + 0xcdcd4c81, + 0xc0c1418, + 0x13133526, + 0xecec2fc3, + 0x5f5fe1be, + 0x9797a235, + 0x4444cc88, + 0x1717392e, + 0xc4c45793, + 0xa7a7f255, + 0x7e7e82fc, + 0x3d3d477a, + 0x6464acc8, + 0x5d5de7ba, + 0x19192b32, + 0x737395e6, + 0x6060a0c0, + 0x81819819, + 0x4f4fd19e, + 0xdcdc7fa3, + 0x22226644, + 0x2a2a7e54, + 0x9090ab3b, + 0x8888830b, + 0x4646ca8c, + 0xeeee29c7, + 0xb8b8d36b, + 0x14143c28, + 0xdede79a7, + 0x5e5ee2bc, + 0xb0b1d16, + 0xdbdb76ad, + 0xe0e03bdb, + 0x32325664, + 0x3a3a4e74, + 0xa0a1e14, + 0x4949db92, + 0x6060a0c, + 0x24246c48, + 0x5c5ce4b8, + 0xc2c25d9f, + 0xd3d36ebd, + 0xacacef43, + 0x6262a6c4, + 0x9191a839, + 0x9595a431, + 0xe4e437d3, + 0x79798bf2, + 0xe7e732d5, + 0xc8c8438b, + 0x3737596e, + 0x6d6db7da, + 0x8d8d8c01, + 0xd5d564b1, + 0x4e4ed29c, + 0xa9a9e049, + 0x6c6cb4d8, + 0x5656faac, + 0xf4f407f3, + 0xeaea25cf, + 0x6565afca, + 0x7a7a8ef4, + 0xaeaee947, + 0x8081810, + 0xbabad56f, + 0x787888f0, + 0x25256f4a, + 0x2e2e725c, + 0x1c1c2438, + 0xa6a6f157, + 0xb4b4c773, + 0xc6c65197, + 0xe8e823cb, + 0xdddd7ca1, + 0x74749ce8, + 0x1f1f213e, + 0x4b4bdd96, + 0xbdbddc61, + 0x8b8b860d, + 0x8a8a850f, + 0x707090e0, + 0x3e3e427c, + 0xb5b5c471, + 0x6666aacc, + 0x4848d890, + 0x3030506, + 0xf6f601f7, + 0xe0e121c, + 0x6161a3c2, + 0x35355f6a, + 0x5757f9ae, + 0xb9b9d069, + 0x86869117, + 0xc1c15899, + 0x1d1d273a, + 0x9e9eb927, + 0xe1e138d9, + 0xf8f813eb, + 0x9898b32b, + 0x11113322, + 0x6969bbd2, + 0xd9d970a9, + 0x8e8e8907, + 0x9494a733, + 0x9b9bb62d, + 0x1e1e223c, + 0x87879215, + 0xe9e920c9, + 0xcece4987, + 0x5555ffaa, + 0x28287850, + 0xdfdf7aa5, + 0x8c8c8f03, + 0xa1a1f859, + 0x89898009, + 0xd0d171a, + 0xbfbfda65, + 0xe6e631d7, + 0x4242c684, + 0x6868b8d0, + 0x4141c382, + 0x9999b029, + 0x2d2d775a, + 0xf0f111e, + 0xb0b0cb7b, + 0x5454fca8, + 0xbbbbd66d, + 0x16163a2c, )); - foreach ($t3 as $t3i) { - $t0[] = (($t3i << 24) & 0xFF000000) | (($t3i >> 8) & 0x00FFFFFF); - $t1[] = (($t3i << 16) & 0xFFFF0000) | (($t3i >> 16) & 0x0000FFFF); - $t2[] = (($t3i << 8) & 0xFFFFFF00) | (($t3i >> 24) & 0x000000FF); + $t0[] = $t3i << 24 & 0xff000000 | $t3i >> 8 & 0xffffff; + $t1[] = $t3i << 16 & 0xffff0000 | $t3i >> 16 & 0xffff; + $t2[] = $t3i << 8 & 0xffffff00 | $t3i >> 24 & 0xff; } - $tables = array( // The Precomputed mixColumns tables t0 - t3 $t0, @@ -653,29 +799,11 @@ class Rijndael extends Base $t2, $t3, // The SubByte S-Box - array( - 0x63, 0x7C, 0x77, 0x7B, 0xF2, 0x6B, 0x6F, 0xC5, 0x30, 0x01, 0x67, 0x2B, 0xFE, 0xD7, 0xAB, 0x76, - 0xCA, 0x82, 0xC9, 0x7D, 0xFA, 0x59, 0x47, 0xF0, 0xAD, 0xD4, 0xA2, 0xAF, 0x9C, 0xA4, 0x72, 0xC0, - 0xB7, 0xFD, 0x93, 0x26, 0x36, 0x3F, 0xF7, 0xCC, 0x34, 0xA5, 0xE5, 0xF1, 0x71, 0xD8, 0x31, 0x15, - 0x04, 0xC7, 0x23, 0xC3, 0x18, 0x96, 0x05, 0x9A, 0x07, 0x12, 0x80, 0xE2, 0xEB, 0x27, 0xB2, 0x75, - 0x09, 0x83, 0x2C, 0x1A, 0x1B, 0x6E, 0x5A, 0xA0, 0x52, 0x3B, 0xD6, 0xB3, 0x29, 0xE3, 0x2F, 0x84, - 0x53, 0xD1, 0x00, 0xED, 0x20, 0xFC, 0xB1, 0x5B, 0x6A, 0xCB, 0xBE, 0x39, 0x4A, 0x4C, 0x58, 0xCF, - 0xD0, 0xEF, 0xAA, 0xFB, 0x43, 0x4D, 0x33, 0x85, 0x45, 0xF9, 0x02, 0x7F, 0x50, 0x3C, 0x9F, 0xA8, - 0x51, 0xA3, 0x40, 0x8F, 0x92, 0x9D, 0x38, 0xF5, 0xBC, 0xB6, 0xDA, 0x21, 0x10, 0xFF, 0xF3, 0xD2, - 0xCD, 0x0C, 0x13, 0xEC, 0x5F, 0x97, 0x44, 0x17, 0xC4, 0xA7, 0x7E, 0x3D, 0x64, 0x5D, 0x19, 0x73, - 0x60, 0x81, 0x4F, 0xDC, 0x22, 0x2A, 0x90, 0x88, 0x46, 0xEE, 0xB8, 0x14, 0xDE, 0x5E, 0x0B, 0xDB, - 0xE0, 0x32, 0x3A, 0x0A, 0x49, 0x06, 0x24, 0x5C, 0xC2, 0xD3, 0xAC, 0x62, 0x91, 0x95, 0xE4, 0x79, - 0xE7, 0xC8, 0x37, 0x6D, 0x8D, 0xD5, 0x4E, 0xA9, 0x6C, 0x56, 0xF4, 0xEA, 0x65, 0x7A, 0xAE, 0x08, - 0xBA, 0x78, 0x25, 0x2E, 0x1C, 0xA6, 0xB4, 0xC6, 0xE8, 0xDD, 0x74, 0x1F, 0x4B, 0xBD, 0x8B, 0x8A, - 0x70, 0x3E, 0xB5, 0x66, 0x48, 0x03, 0xF6, 0x0E, 0x61, 0x35, 0x57, 0xB9, 0x86, 0xC1, 0x1D, 0x9E, - 0xE1, 0xF8, 0x98, 0x11, 0x69, 0xD9, 0x8E, 0x94, 0x9B, 0x1E, 0x87, 0xE9, 0xCE, 0x55, 0x28, 0xDF, - 0x8C, 0xA1, 0x89, 0x0D, 0xBF, 0xE6, 0x42, 0x68, 0x41, 0x99, 0x2D, 0x0F, 0xB0, 0x54, 0xBB, 0x16 - ) + array(0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5, 0x30, 0x1, 0x67, 0x2b, 0xfe, 0xd7, 0xab, 0x76, 0xca, 0x82, 0xc9, 0x7d, 0xfa, 0x59, 0x47, 0xf0, 0xad, 0xd4, 0xa2, 0xaf, 0x9c, 0xa4, 0x72, 0xc0, 0xb7, 0xfd, 0x93, 0x26, 0x36, 0x3f, 0xf7, 0xcc, 0x34, 0xa5, 0xe5, 0xf1, 0x71, 0xd8, 0x31, 0x15, 0x4, 0xc7, 0x23, 0xc3, 0x18, 0x96, 0x5, 0x9a, 0x7, 0x12, 0x80, 0xe2, 0xeb, 0x27, 0xb2, 0x75, 0x9, 0x83, 0x2c, 0x1a, 0x1b, 0x6e, 0x5a, 0xa0, 0x52, 0x3b, 0xd6, 0xb3, 0x29, 0xe3, 0x2f, 0x84, 0x53, 0xd1, 0x0, 0xed, 0x20, 0xfc, 0xb1, 0x5b, 0x6a, 0xcb, 0xbe, 0x39, 0x4a, 0x4c, 0x58, 0xcf, 0xd0, 0xef, 0xaa, 0xfb, 0x43, 0x4d, 0x33, 0x85, 0x45, 0xf9, 0x2, 0x7f, 0x50, 0x3c, 0x9f, 0xa8, 0x51, 0xa3, 0x40, 0x8f, 0x92, 0x9d, 0x38, 0xf5, 0xbc, 0xb6, 0xda, 0x21, 0x10, 0xff, 0xf3, 0xd2, 0xcd, 0xc, 0x13, 0xec, 0x5f, 0x97, 0x44, 0x17, 0xc4, 0xa7, 0x7e, 0x3d, 0x64, 0x5d, 0x19, 0x73, 0x60, 0x81, 0x4f, 0xdc, 0x22, 0x2a, 0x90, 0x88, 0x46, 0xee, 0xb8, 0x14, 0xde, 0x5e, 0xb, 0xdb, 0xe0, 0x32, 0x3a, 0xa, 0x49, 0x6, 0x24, 0x5c, 0xc2, 0xd3, 0xac, 0x62, 0x91, 0x95, 0xe4, 0x79, 0xe7, 0xc8, 0x37, 0x6d, 0x8d, 0xd5, 0x4e, 0xa9, 0x6c, 0x56, 0xf4, 0xea, 0x65, 0x7a, 0xae, 0x8, 0xba, 0x78, 0x25, 0x2e, 0x1c, 0xa6, 0xb4, 0xc6, 0xe8, 0xdd, 0x74, 0x1f, 0x4b, 0xbd, 0x8b, 0x8a, 0x70, 0x3e, 0xb5, 0x66, 0x48, 0x3, 0xf6, 0xe, 0x61, 0x35, 0x57, 0xb9, 0x86, 0xc1, 0x1d, 0x9e, 0xe1, 0xf8, 0x98, 0x11, 0x69, 0xd9, 0x8e, 0x94, 0x9b, 0x1e, 0x87, 0xe9, 0xce, 0x55, 0x28, 0xdf, 0x8c, 0xa1, 0x89, 0xd, 0xbf, 0xe6, 0x42, 0x68, 0x41, 0x99, 0x2d, 0xf, 0xb0, 0x54, 0xbb, 0x16), ); } return $tables; } - /** * Provides the inverse mixColumns and inverse sboxes tables * @@ -689,47 +817,12 @@ class Rijndael extends Base { static $tables; if (empty($tables)) { - $dt3 = array_map('intval', array( - 0xF4A75051, 0x4165537E, 0x17A4C31A, 0x275E963A, 0xAB6BCB3B, 0x9D45F11F, 0xFA58ABAC, 0xE303934B, - 0x30FA5520, 0x766DF6AD, 0xCC769188, 0x024C25F5, 0xE5D7FC4F, 0x2ACBD7C5, 0x35448026, 0x62A38FB5, - 0xB15A49DE, 0xBA1B6725, 0xEA0E9845, 0xFEC0E15D, 0x2F7502C3, 0x4CF01281, 0x4697A38D, 0xD3F9C66B, - 0x8F5FE703, 0x929C9515, 0x6D7AEBBF, 0x5259DA95, 0xBE832DD4, 0x7421D358, 0xE0692949, 0xC9C8448E, - 0xC2896A75, 0x8E7978F4, 0x583E6B99, 0xB971DD27, 0xE14FB6BE, 0x88AD17F0, 0x20AC66C9, 0xCE3AB47D, - 0xDF4A1863, 0x1A3182E5, 0x51336097, 0x537F4562, 0x6477E0B1, 0x6BAE84BB, 0x81A01CFE, 0x082B94F9, - 0x48685870, 0x45FD198F, 0xDE6C8794, 0x7BF8B752, 0x73D323AB, 0x4B02E272, 0x1F8F57E3, 0x55AB2A66, - 0xEB2807B2, 0xB5C2032F, 0xC57B9A86, 0x3708A5D3, 0x2887F230, 0xBFA5B223, 0x036ABA02, 0x16825CED, - 0xCF1C2B8A, 0x79B492A7, 0x07F2F0F3, 0x69E2A14E, 0xDAF4CD65, 0x05BED506, 0x34621FD1, 0xA6FE8AC4, - 0x2E539D34, 0xF355A0A2, 0x8AE13205, 0xF6EB75A4, 0x83EC390B, 0x60EFAA40, 0x719F065E, 0x6E1051BD, - 0x218AF93E, 0xDD063D96, 0x3E05AEDD, 0xE6BD464D, 0x548DB591, 0xC45D0571, 0x06D46F04, 0x5015FF60, - 0x98FB2419, 0xBDE997D6, 0x4043CC89, 0xD99E7767, 0xE842BDB0, 0x898B8807, 0x195B38E7, 0xC8EEDB79, - 0x7C0A47A1, 0x420FE97C, 0x841EC9F8, 0x00000000, 0x80868309, 0x2BED4832, 0x1170AC1E, 0x5A724E6C, - 0x0EFFFBFD, 0x8538560F, 0xAED51E3D, 0x2D392736, 0x0FD9640A, 0x5CA62168, 0x5B54D19B, 0x362E3A24, - 0x0A67B10C, 0x57E70F93, 0xEE96D2B4, 0x9B919E1B, 0xC0C54F80, 0xDC20A261, 0x774B695A, 0x121A161C, - 0x93BA0AE2, 0xA02AE5C0, 0x22E0433C, 0x1B171D12, 0x090D0B0E, 0x8BC7ADF2, 0xB6A8B92D, 0x1EA9C814, - 0xF1198557, 0x75074CAF, 0x99DDBBEE, 0x7F60FDA3, 0x01269FF7, 0x72F5BC5C, 0x663BC544, 0xFB7E345B, - 0x4329768B, 0x23C6DCCB, 0xEDFC68B6, 0xE4F163B8, 0x31DCCAD7, 0x63851042, 0x97224013, 0xC6112084, - 0x4A247D85, 0xBB3DF8D2, 0xF93211AE, 0x29A16DC7, 0x9E2F4B1D, 0xB230F3DC, 0x8652EC0D, 0xC1E3D077, - 0xB3166C2B, 0x70B999A9, 0x9448FA11, 0xE9642247, 0xFC8CC4A8, 0xF03F1AA0, 0x7D2CD856, 0x3390EF22, - 0x494EC787, 0x38D1C1D9, 0xCAA2FE8C, 0xD40B3698, 0xF581CFA6, 0x7ADE28A5, 0xB78E26DA, 0xADBFA43F, - 0x3A9DE42C, 0x78920D50, 0x5FCC9B6A, 0x7E466254, 0x8D13C2F6, 0xD8B8E890, 0x39F75E2E, 0xC3AFF582, - 0x5D80BE9F, 0xD0937C69, 0xD52DA96F, 0x2512B3CF, 0xAC993BC8, 0x187DA710, 0x9C636EE8, 0x3BBB7BDB, - 0x267809CD, 0x5918F46E, 0x9AB701EC, 0x4F9AA883, 0x956E65E6, 0xFFE67EAA, 0xBCCF0821, 0x15E8E6EF, - 0xE79BD9BA, 0x6F36CE4A, 0x9F09D4EA, 0xB07CD629, 0xA4B2AF31, 0x3F23312A, 0xA59430C6, 0xA266C035, - 0x4EBC3774, 0x82CAA6FC, 0x90D0B0E0, 0xA7D81533, 0x04984AF1, 0xECDAF741, 0xCD500E7F, 0x91F62F17, - 0x4DD68D76, 0xEFB04D43, 0xAA4D54CC, 0x9604DFE4, 0xD1B5E39E, 0x6A881B4C, 0x2C1FB8C1, 0x65517F46, - 0x5EEA049D, 0x8C355D01, 0x877473FA, 0x0B412EFB, 0x671D5AB3, 0xDBD25292, 0x105633E9, 0xD647136D, - 0xD7618C9A, 0xA10C7A37, 0xF8148E59, 0x133C89EB, 0xA927EECE, 0x61C935B7, 0x1CE5EDE1, 0x47B13C7A, - 0xD2DF599C, 0xF2733F55, 0x14CE7918, 0xC737BF73, 0xF7CDEA53, 0xFDAA5B5F, 0x3D6F14DF, 0x44DB8678, - 0xAFF381CA, 0x68C43EB9, 0x24342C38, 0xA3405FC2, 0x1DC37216, 0xE2250CBC, 0x3C498B28, 0x0D9541FF, - 0xA8017139, 0x0CB3DE08, 0xB4E49CD8, 0x56C19064, 0xCB84617B, 0x32B670D5, 0x6C5C7448, 0xB85742D0 - )); - + $dt3 = \array_map('intval', array(0xf4a75051, 0x4165537e, 0x17a4c31a, 0x275e963a, 0xab6bcb3b, 0x9d45f11f, 0xfa58abac, 0xe303934b, 0x30fa5520, 0x766df6ad, 0xcc769188, 0x24c25f5, 0xe5d7fc4f, 0x2acbd7c5, 0x35448026, 0x62a38fb5, 0xb15a49de, 0xba1b6725, 0xea0e9845, 0xfec0e15d, 0x2f7502c3, 0x4cf01281, 0x4697a38d, 0xd3f9c66b, 0x8f5fe703, 0x929c9515, 0x6d7aebbf, 0x5259da95, 0xbe832dd4, 0x7421d358, 0xe0692949, 0xc9c8448e, 0xc2896a75, 0x8e7978f4, 0x583e6b99, 0xb971dd27, 0xe14fb6be, 0x88ad17f0, 0x20ac66c9, 0xce3ab47d, 0xdf4a1863, 0x1a3182e5, 0x51336097, 0x537f4562, 0x6477e0b1, 0x6bae84bb, 0x81a01cfe, 0x82b94f9, 0x48685870, 0x45fd198f, 0xde6c8794, 0x7bf8b752, 0x73d323ab, 0x4b02e272, 0x1f8f57e3, 0x55ab2a66, 0xeb2807b2, 0xb5c2032f, 0xc57b9a86, 0x3708a5d3, 0x2887f230, 0xbfa5b223, 0x36aba02, 0x16825ced, 0xcf1c2b8a, 0x79b492a7, 0x7f2f0f3, 0x69e2a14e, 0xdaf4cd65, 0x5bed506, 0x34621fd1, 0xa6fe8ac4, 0x2e539d34, 0xf355a0a2, 0x8ae13205, 0xf6eb75a4, 0x83ec390b, 0x60efaa40, 0x719f065e, 0x6e1051bd, 0x218af93e, 0xdd063d96, 0x3e05aedd, 0xe6bd464d, 0x548db591, 0xc45d0571, 0x6d46f04, 0x5015ff60, 0x98fb2419, 0xbde997d6, 0x4043cc89, 0xd99e7767, 0xe842bdb0, 0x898b8807, 0x195b38e7, 0xc8eedb79, 0x7c0a47a1, 0x420fe97c, 0x841ec9f8, 0x0, 0x80868309, 0x2bed4832, 0x1170ac1e, 0x5a724e6c, 0xefffbfd, 0x8538560f, 0xaed51e3d, 0x2d392736, 0xfd9640a, 0x5ca62168, 0x5b54d19b, 0x362e3a24, 0xa67b10c, 0x57e70f93, 0xee96d2b4, 0x9b919e1b, 0xc0c54f80, 0xdc20a261, 0x774b695a, 0x121a161c, 0x93ba0ae2, 0xa02ae5c0, 0x22e0433c, 0x1b171d12, 0x90d0b0e, 0x8bc7adf2, 0xb6a8b92d, 0x1ea9c814, 0xf1198557, 0x75074caf, 0x99ddbbee, 0x7f60fda3, 0x1269ff7, 0x72f5bc5c, 0x663bc544, 0xfb7e345b, 0x4329768b, 0x23c6dccb, 0xedfc68b6, 0xe4f163b8, 0x31dccad7, 0x63851042, 0x97224013, 0xc6112084, 0x4a247d85, 0xbb3df8d2, 0xf93211ae, 0x29a16dc7, 0x9e2f4b1d, 0xb230f3dc, 0x8652ec0d, 0xc1e3d077, 0xb3166c2b, 0x70b999a9, 0x9448fa11, 0xe9642247, 0xfc8cc4a8, 0xf03f1aa0, 0x7d2cd856, 0x3390ef22, 0x494ec787, 0x38d1c1d9, 0xcaa2fe8c, 0xd40b3698, 0xf581cfa6, 0x7ade28a5, 0xb78e26da, 0xadbfa43f, 0x3a9de42c, 0x78920d50, 0x5fcc9b6a, 0x7e466254, 0x8d13c2f6, 0xd8b8e890, 0x39f75e2e, 0xc3aff582, 0x5d80be9f, 0xd0937c69, 0xd52da96f, 0x2512b3cf, 0xac993bc8, 0x187da710, 0x9c636ee8, 0x3bbb7bdb, 0x267809cd, 0x5918f46e, 0x9ab701ec, 0x4f9aa883, 0x956e65e6, 0xffe67eaa, 0xbccf0821, 0x15e8e6ef, 0xe79bd9ba, 0x6f36ce4a, 0x9f09d4ea, 0xb07cd629, 0xa4b2af31, 0x3f23312a, 0xa59430c6, 0xa266c035, 0x4ebc3774, 0x82caa6fc, 0x90d0b0e0, 0xa7d81533, 0x4984af1, 0xecdaf741, 0xcd500e7f, 0x91f62f17, 0x4dd68d76, 0xefb04d43, 0xaa4d54cc, 0x9604dfe4, 0xd1b5e39e, 0x6a881b4c, 0x2c1fb8c1, 0x65517f46, 0x5eea049d, 0x8c355d01, 0x877473fa, 0xb412efb, 0x671d5ab3, 0xdbd25292, 0x105633e9, 0xd647136d, 0xd7618c9a, 0xa10c7a37, 0xf8148e59, 0x133c89eb, 0xa927eece, 0x61c935b7, 0x1ce5ede1, 0x47b13c7a, 0xd2df599c, 0xf2733f55, 0x14ce7918, 0xc737bf73, 0xf7cdea53, 0xfdaa5b5f, 0x3d6f14df, 0x44db8678, 0xaff381ca, 0x68c43eb9, 0x24342c38, 0xa3405fc2, 0x1dc37216, 0xe2250cbc, 0x3c498b28, 0xd9541ff, 0xa8017139, 0xcb3de08, 0xb4e49cd8, 0x56c19064, 0xcb84617b, 0x32b670d5, 0x6c5c7448, 0xb85742d0)); foreach ($dt3 as $dt3i) { - $dt0[] = (($dt3i << 24) & 0xFF000000) | (($dt3i >> 8) & 0x00FFFFFF); - $dt1[] = (($dt3i << 16) & 0xFFFF0000) | (($dt3i >> 16) & 0x0000FFFF); - $dt2[] = (($dt3i << 8) & 0xFFFFFF00) | (($dt3i >> 24) & 0x000000FF); - }; - + $dt0[] = $dt3i << 24 & 0xff000000 | $dt3i >> 8 & 0xffffff; + $dt1[] = $dt3i << 16 & 0xffff0000 | $dt3i >> 16 & 0xffff; + $dt2[] = $dt3i << 8 & 0xffffff00 | $dt3i >> 24 & 0xff; + } $tables = array( // The Precomputed inverse mixColumns tables dt0 - dt3 $dt0, @@ -737,29 +830,11 @@ class Rijndael extends Base $dt2, $dt3, // The inverse SubByte S-Box - array( - 0x52, 0x09, 0x6A, 0xD5, 0x30, 0x36, 0xA5, 0x38, 0xBF, 0x40, 0xA3, 0x9E, 0x81, 0xF3, 0xD7, 0xFB, - 0x7C, 0xE3, 0x39, 0x82, 0x9B, 0x2F, 0xFF, 0x87, 0x34, 0x8E, 0x43, 0x44, 0xC4, 0xDE, 0xE9, 0xCB, - 0x54, 0x7B, 0x94, 0x32, 0xA6, 0xC2, 0x23, 0x3D, 0xEE, 0x4C, 0x95, 0x0B, 0x42, 0xFA, 0xC3, 0x4E, - 0x08, 0x2E, 0xA1, 0x66, 0x28, 0xD9, 0x24, 0xB2, 0x76, 0x5B, 0xA2, 0x49, 0x6D, 0x8B, 0xD1, 0x25, - 0x72, 0xF8, 0xF6, 0x64, 0x86, 0x68, 0x98, 0x16, 0xD4, 0xA4, 0x5C, 0xCC, 0x5D, 0x65, 0xB6, 0x92, - 0x6C, 0x70, 0x48, 0x50, 0xFD, 0xED, 0xB9, 0xDA, 0x5E, 0x15, 0x46, 0x57, 0xA7, 0x8D, 0x9D, 0x84, - 0x90, 0xD8, 0xAB, 0x00, 0x8C, 0xBC, 0xD3, 0x0A, 0xF7, 0xE4, 0x58, 0x05, 0xB8, 0xB3, 0x45, 0x06, - 0xD0, 0x2C, 0x1E, 0x8F, 0xCA, 0x3F, 0x0F, 0x02, 0xC1, 0xAF, 0xBD, 0x03, 0x01, 0x13, 0x8A, 0x6B, - 0x3A, 0x91, 0x11, 0x41, 0x4F, 0x67, 0xDC, 0xEA, 0x97, 0xF2, 0xCF, 0xCE, 0xF0, 0xB4, 0xE6, 0x73, - 0x96, 0xAC, 0x74, 0x22, 0xE7, 0xAD, 0x35, 0x85, 0xE2, 0xF9, 0x37, 0xE8, 0x1C, 0x75, 0xDF, 0x6E, - 0x47, 0xF1, 0x1A, 0x71, 0x1D, 0x29, 0xC5, 0x89, 0x6F, 0xB7, 0x62, 0x0E, 0xAA, 0x18, 0xBE, 0x1B, - 0xFC, 0x56, 0x3E, 0x4B, 0xC6, 0xD2, 0x79, 0x20, 0x9A, 0xDB, 0xC0, 0xFE, 0x78, 0xCD, 0x5A, 0xF4, - 0x1F, 0xDD, 0xA8, 0x33, 0x88, 0x07, 0xC7, 0x31, 0xB1, 0x12, 0x10, 0x59, 0x27, 0x80, 0xEC, 0x5F, - 0x60, 0x51, 0x7F, 0xA9, 0x19, 0xB5, 0x4A, 0x0D, 0x2D, 0xE5, 0x7A, 0x9F, 0x93, 0xC9, 0x9C, 0xEF, - 0xA0, 0xE0, 0x3B, 0x4D, 0xAE, 0x2A, 0xF5, 0xB0, 0xC8, 0xEB, 0xBB, 0x3C, 0x83, 0x53, 0x99, 0x61, - 0x17, 0x2B, 0x04, 0x7E, 0xBA, 0x77, 0xD6, 0x26, 0xE1, 0x69, 0x14, 0x63, 0x55, 0x21, 0x0C, 0x7D - ) + array(0x52, 0x9, 0x6a, 0xd5, 0x30, 0x36, 0xa5, 0x38, 0xbf, 0x40, 0xa3, 0x9e, 0x81, 0xf3, 0xd7, 0xfb, 0x7c, 0xe3, 0x39, 0x82, 0x9b, 0x2f, 0xff, 0x87, 0x34, 0x8e, 0x43, 0x44, 0xc4, 0xde, 0xe9, 0xcb, 0x54, 0x7b, 0x94, 0x32, 0xa6, 0xc2, 0x23, 0x3d, 0xee, 0x4c, 0x95, 0xb, 0x42, 0xfa, 0xc3, 0x4e, 0x8, 0x2e, 0xa1, 0x66, 0x28, 0xd9, 0x24, 0xb2, 0x76, 0x5b, 0xa2, 0x49, 0x6d, 0x8b, 0xd1, 0x25, 0x72, 0xf8, 0xf6, 0x64, 0x86, 0x68, 0x98, 0x16, 0xd4, 0xa4, 0x5c, 0xcc, 0x5d, 0x65, 0xb6, 0x92, 0x6c, 0x70, 0x48, 0x50, 0xfd, 0xed, 0xb9, 0xda, 0x5e, 0x15, 0x46, 0x57, 0xa7, 0x8d, 0x9d, 0x84, 0x90, 0xd8, 0xab, 0x0, 0x8c, 0xbc, 0xd3, 0xa, 0xf7, 0xe4, 0x58, 0x5, 0xb8, 0xb3, 0x45, 0x6, 0xd0, 0x2c, 0x1e, 0x8f, 0xca, 0x3f, 0xf, 0x2, 0xc1, 0xaf, 0xbd, 0x3, 0x1, 0x13, 0x8a, 0x6b, 0x3a, 0x91, 0x11, 0x41, 0x4f, 0x67, 0xdc, 0xea, 0x97, 0xf2, 0xcf, 0xce, 0xf0, 0xb4, 0xe6, 0x73, 0x96, 0xac, 0x74, 0x22, 0xe7, 0xad, 0x35, 0x85, 0xe2, 0xf9, 0x37, 0xe8, 0x1c, 0x75, 0xdf, 0x6e, 0x47, 0xf1, 0x1a, 0x71, 0x1d, 0x29, 0xc5, 0x89, 0x6f, 0xb7, 0x62, 0xe, 0xaa, 0x18, 0xbe, 0x1b, 0xfc, 0x56, 0x3e, 0x4b, 0xc6, 0xd2, 0x79, 0x20, 0x9a, 0xdb, 0xc0, 0xfe, 0x78, 0xcd, 0x5a, 0xf4, 0x1f, 0xdd, 0xa8, 0x33, 0x88, 0x7, 0xc7, 0x31, 0xb1, 0x12, 0x10, 0x59, 0x27, 0x80, 0xec, 0x5f, 0x60, 0x51, 0x7f, 0xa9, 0x19, 0xb5, 0x4a, 0xd, 0x2d, 0xe5, 0x7a, 0x9f, 0x93, 0xc9, 0x9c, 0xef, 0xa0, 0xe0, 0x3b, 0x4d, 0xae, 0x2a, 0xf5, 0xb0, 0xc8, 0xeb, 0xbb, 0x3c, 0x83, 0x53, 0x99, 0x61, 0x17, 0x2b, 0x4, 0x7e, 0xba, 0x77, 0xd6, 0x26, 0xe1, 0x69, 0x14, 0x63, 0x55, 0x21, 0xc, 0x7d), ); } return $tables; } - /** * Setup the performance-optimized function for de/encrypt() * @@ -771,44 +846,38 @@ class Rijndael extends Base // Note: _setupInlineCrypt() will be called only if $this->changed === true // So here we are'nt under the same heavy timing-stress as we are in _de/encryptBlock() or de/encrypt(). // However...the here generated function- $code, stored as php callback in $this->inline_crypt, must work as fast as even possible. - $lambda_functions =& self::_getLambdaFunctions(); - // We create max. 10 hi-optimized code for memory reason. Means: For each $key one ultra fast inline-crypt function. // (Currently, for Crypt_Rijndael/AES, one generated $lambda_function cost on php5.5@32bit ~80kb unfreeable mem and ~130kb on php5.5@64bit) // After that, we'll still create very fast optimized code but not the hi-ultimative code, for each $mode one. - $gen_hi_opt_code = (bool)(count($lambda_functions) < 10); - + $gen_hi_opt_code = (bool) (\count($lambda_functions) < 10); // Generation of a uniqe hash for our generated code $code_hash = "Crypt_Rijndael, {$this->mode}, {$this->Nr}, {$this->Nb}"; if ($gen_hi_opt_code) { - $code_hash = str_pad($code_hash, 32) . $this->_hashInlineCryptFunction($this->key); + $code_hash = \str_pad($code_hash, 32) . $this->_hashInlineCryptFunction($this->key); } - if (!isset($lambda_functions[$code_hash])) { - switch (true) { + switch (\true) { case $gen_hi_opt_code: // The hi-optimized $lambda_functions will use the key-words hardcoded for better performance. - $w = $this->w; + $w = $this->w; $dw = $this->dw; $init_encrypt = ''; $init_decrypt = ''; break; default: - for ($i = 0, $cw = count($this->w); $i < $cw; ++$i) { - $w[] = '$w[' . $i . ']'; + for ($i = 0, $cw = \count($this->w); $i < $cw; ++$i) { + $w[] = '$w[' . $i . ']'; $dw[] = '$dw[' . $i . ']'; } $init_encrypt = '$w = $self->w;'; $init_decrypt = '$dw = $self->dw;'; } - $Nr = $this->Nr; $Nb = $this->Nb; - $c = $this->c; - + $c = $this->c; // Generating encrypt code: - $init_encrypt.= ' + $init_encrypt .= ' static $tables; if (empty($tables)) { $tables = &$self->_getTables(); @@ -819,53 +888,46 @@ class Rijndael extends Base $t3 = $tables[3]; $sbox = $tables[4]; '; - - $s = 'e'; - $e = 's'; + $s = 'e'; + $e = 's'; $wc = $Nb - 1; - // Preround: addRoundKey - $encrypt_block = '$in = unpack("N*", $in);'."\n"; + $encrypt_block = '$in = unpack("N*", $in);' . "\n"; for ($i = 0; $i < $Nb; ++$i) { - $encrypt_block .= '$s'.$i.' = $in['.($i + 1).'] ^ '.$w[++$wc].";\n"; + $encrypt_block .= '$s' . $i . ' = $in[' . ($i + 1) . '] ^ ' . $w[++$wc] . ";\n"; } - // Mainrounds: shiftRows + subWord + mixColumns + addRoundKey for ($round = 1; $round < $Nr; ++$round) { list($s, $e) = array($e, $s); for ($i = 0; $i < $Nb; ++$i) { - $encrypt_block.= - '$'.$e.$i.' = - $t0[($'.$s.$i .' >> 24) & 0xff] ^ - $t1[($'.$s.(($i + $c[1]) % $Nb).' >> 16) & 0xff] ^ - $t2[($'.$s.(($i + $c[2]) % $Nb).' >> 8) & 0xff] ^ - $t3[ $'.$s.(($i + $c[3]) % $Nb).' & 0xff] ^ - '.$w[++$wc].";\n"; + $encrypt_block .= '$' . $e . $i . ' = + $t0[($' . $s . $i . ' >> 24) & 0xff] ^ + $t1[($' . $s . ($i + $c[1]) % $Nb . ' >> 16) & 0xff] ^ + $t2[($' . $s . ($i + $c[2]) % $Nb . ' >> 8) & 0xff] ^ + $t3[ $' . $s . ($i + $c[3]) % $Nb . ' & 0xff] ^ + ' . $w[++$wc] . ";\n"; } } - // Finalround: subWord + shiftRows + addRoundKey for ($i = 0; $i < $Nb; ++$i) { - $encrypt_block.= - '$'.$e.$i.' = - $sbox[ $'.$e.$i.' & 0xff] | - ($sbox[($'.$e.$i.' >> 8) & 0xff] << 8) | - ($sbox[($'.$e.$i.' >> 16) & 0xff] << 16) | - ($sbox[($'.$e.$i.' >> 24) & 0xff] << 24);'."\n"; + $encrypt_block .= '$' . $e . $i . ' = + $sbox[ $' . $e . $i . ' & 0xff] | + ($sbox[($' . $e . $i . ' >> 8) & 0xff] << 8) | + ($sbox[($' . $e . $i . ' >> 16) & 0xff] << 16) | + ($sbox[($' . $e . $i . ' >> 24) & 0xff] << 24);' . "\n"; } - $encrypt_block .= '$in = pack("N*"'."\n"; + $encrypt_block .= '$in = pack("N*"' . "\n"; for ($i = 0; $i < $Nb; ++$i) { - $encrypt_block.= ', - ($'.$e.$i .' & '.((int)0xFF000000).') ^ - ($'.$e.(($i + $c[1]) % $Nb).' & 0x00FF0000 ) ^ - ($'.$e.(($i + $c[2]) % $Nb).' & 0x0000FF00 ) ^ - ($'.$e.(($i + $c[3]) % $Nb).' & 0x000000FF ) ^ - '.$w[$i]."\n"; + $encrypt_block .= ', + ($' . $e . $i . ' & ' . (int) 0xff000000 . ') ^ + ($' . $e . ($i + $c[1]) % $Nb . ' & 0x00FF0000 ) ^ + ($' . $e . ($i + $c[2]) % $Nb . ' & 0x0000FF00 ) ^ + ($' . $e . ($i + $c[3]) % $Nb . ' & 0x000000FF ) ^ + ' . $w[$i] . "\n"; } $encrypt_block .= ');'; - // Generating decrypt code: - $init_decrypt.= ' + $init_decrypt .= ' static $invtables; if (empty($invtables)) { $invtables = &$self->_getInvTables(); @@ -876,60 +938,45 @@ class Rijndael extends Base $dt3 = $invtables[3]; $isbox = $invtables[4]; '; - - $s = 'e'; - $e = 's'; + $s = 'e'; + $e = 's'; $wc = $Nb - 1; - // Preround: addRoundKey - $decrypt_block = '$in = unpack("N*", $in);'."\n"; + $decrypt_block = '$in = unpack("N*", $in);' . "\n"; for ($i = 0; $i < $Nb; ++$i) { - $decrypt_block .= '$s'.$i.' = $in['.($i + 1).'] ^ '.$dw[++$wc].';'."\n"; + $decrypt_block .= '$s' . $i . ' = $in[' . ($i + 1) . '] ^ ' . $dw[++$wc] . ';' . "\n"; } - // Mainrounds: shiftRows + subWord + mixColumns + addRoundKey for ($round = 1; $round < $Nr; ++$round) { list($s, $e) = array($e, $s); for ($i = 0; $i < $Nb; ++$i) { - $decrypt_block.= - '$'.$e.$i.' = - $dt0[($'.$s.$i .' >> 24) & 0xff] ^ - $dt1[($'.$s.(($Nb + $i - $c[1]) % $Nb).' >> 16) & 0xff] ^ - $dt2[($'.$s.(($Nb + $i - $c[2]) % $Nb).' >> 8) & 0xff] ^ - $dt3[ $'.$s.(($Nb + $i - $c[3]) % $Nb).' & 0xff] ^ - '.$dw[++$wc].";\n"; + $decrypt_block .= '$' . $e . $i . ' = + $dt0[($' . $s . $i . ' >> 24) & 0xff] ^ + $dt1[($' . $s . ($Nb + $i - $c[1]) % $Nb . ' >> 16) & 0xff] ^ + $dt2[($' . $s . ($Nb + $i - $c[2]) % $Nb . ' >> 8) & 0xff] ^ + $dt3[ $' . $s . ($Nb + $i - $c[3]) % $Nb . ' & 0xff] ^ + ' . $dw[++$wc] . ";\n"; } } - // Finalround: subWord + shiftRows + addRoundKey for ($i = 0; $i < $Nb; ++$i) { - $decrypt_block.= - '$'.$e.$i.' = - $isbox[ $'.$e.$i.' & 0xff] | - ($isbox[($'.$e.$i.' >> 8) & 0xff] << 8) | - ($isbox[($'.$e.$i.' >> 16) & 0xff] << 16) | - ($isbox[($'.$e.$i.' >> 24) & 0xff] << 24);'."\n"; + $decrypt_block .= '$' . $e . $i . ' = + $isbox[ $' . $e . $i . ' & 0xff] | + ($isbox[($' . $e . $i . ' >> 8) & 0xff] << 8) | + ($isbox[($' . $e . $i . ' >> 16) & 0xff] << 16) | + ($isbox[($' . $e . $i . ' >> 24) & 0xff] << 24);' . "\n"; } - $decrypt_block .= '$in = pack("N*"'."\n"; + $decrypt_block .= '$in = pack("N*"' . "\n"; for ($i = 0; $i < $Nb; ++$i) { - $decrypt_block.= ', - ($'.$e.$i. ' & '.((int)0xFF000000).') ^ - ($'.$e.(($Nb + $i - $c[1]) % $Nb).' & 0x00FF0000 ) ^ - ($'.$e.(($Nb + $i - $c[2]) % $Nb).' & 0x0000FF00 ) ^ - ($'.$e.(($Nb + $i - $c[3]) % $Nb).' & 0x000000FF ) ^ - '.$dw[$i]."\n"; + $decrypt_block .= ', + ($' . $e . $i . ' & ' . (int) 0xff000000 . ') ^ + ($' . $e . ($Nb + $i - $c[1]) % $Nb . ' & 0x00FF0000 ) ^ + ($' . $e . ($Nb + $i - $c[2]) % $Nb . ' & 0x0000FF00 ) ^ + ($' . $e . ($Nb + $i - $c[3]) % $Nb . ' & 0x000000FF ) ^ + ' . $dw[$i] . "\n"; } $decrypt_block .= ');'; - - $lambda_functions[$code_hash] = $this->_createInlineCryptFunction( - array( - 'init_crypt' => '', - 'init_encrypt' => $init_encrypt, - 'init_decrypt' => $init_decrypt, - 'encrypt_block' => $encrypt_block, - 'decrypt_block' => $decrypt_block - ) - ); + $lambda_functions[$code_hash] = $this->_createInlineCryptFunction(array('init_crypt' => '', 'init_encrypt' => $init_encrypt, 'init_decrypt' => $init_decrypt, 'encrypt_block' => $encrypt_block, 'decrypt_block' => $decrypt_block)); } $this->inline_crypt = $lambda_functions[$code_hash]; } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/phpseclib/phpseclib/phpseclib/Math/BigInteger.php similarity index 70% rename from wp-content/plugins/wp-mail-smtp/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/phpseclib/phpseclib/phpseclib/Math/BigInteger.php index e7f6646..249e313 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/phpseclib/phpseclib/phpseclib/Math/BigInteger.php @@ -46,11 +46,9 @@ * @copyright 2006 Jim Wigginton * @license http://www.opensource.org/licenses/mit-license.html MIT License */ +namespace WPMailSMTP\Vendor\phpseclib\Math; -namespace phpseclib\Math; - -use phpseclib\Crypt\Random; - +use WPMailSMTP\Vendor\phpseclib\Crypt\Random; /** * Pure-PHP arbitrary precision integer arithmetic library. Supports base-2, base-10, base-16, and base-256 * numbers. @@ -89,7 +87,6 @@ class BigInteger */ const NONE = 4; /**#@-*/ - /**#@+ * Array constants * @@ -97,7 +94,7 @@ class BigInteger * multiply() or whatever, we'll just work directly on arrays, taking them in as parameters and returning them. * * @access private - */ + */ /** * $result[self::VALUE] contains the value. */ @@ -107,12 +104,11 @@ class BigInteger */ const SIGN = 1; /**#@-*/ - /**#@+ * @access private * @see BigInteger::_montgomery() * @see BigInteger::_barrett() - */ + */ /** * Cache constants * @@ -124,13 +120,12 @@ class BigInteger */ const DATA = 1; /**#@-*/ - /**#@+ * Mode constants. * * @access private * @see BigInteger::__construct() - */ + */ /** * To use the pure-PHP implementation */ @@ -148,7 +143,6 @@ class BigInteger */ const MODE_GMP = 3; /**#@-*/ - /** * Karatsuba Cutoff * @@ -157,7 +151,6 @@ class BigInteger * @access private */ const KARATSUBA_CUTOFF = 25; - /**#@+ * Static properties used by the pure-PHP implementation. * @@ -167,13 +160,11 @@ class BigInteger protected static $baseFull; protected static $maxDigit; protected static $msb; - /** * $max10 in greatest $max10Len satisfying * $max10 = 10**$max10Len <= 2**$base. */ protected static $max10; - /** * $max10Len in greatest $max10Len satisfying * $max10 = 10**$max10Len <= 2**$base. @@ -181,7 +172,6 @@ class BigInteger protected static $max10Len; protected static $maxDigit2; /**#@-*/ - /** * Holds the BigInteger's value. * @@ -189,15 +179,13 @@ class BigInteger * @access private */ var $value; - /** * Holds the BigInteger's magnitude. * * @var bool * @access private */ - var $is_negative = false; - + var $is_negative = \false; /** * Precision * @@ -205,15 +193,13 @@ class BigInteger * @access private */ var $precision = -1; - /** * Precision Bitmask * * @see self::setPrecision() * @access private */ - var $bitmask = false; - + var $bitmask = \false; /** * Mode independent value used for serialization. * @@ -227,7 +213,6 @@ class BigInteger * @access private */ var $hex; - /** * Converts base-2, base-10, base-16, and binary strings (base-256) to BigIntegers. * @@ -250,38 +235,33 @@ class BigInteger */ function __construct($x = 0, $base = 10) { - if (!defined('MATH_BIGINTEGER_MODE')) { - switch (true) { - case extension_loaded('gmp'): - define('MATH_BIGINTEGER_MODE', self::MODE_GMP); + if (!\defined('WPMailSMTP\\Vendor\\MATH_BIGINTEGER_MODE')) { + switch (\true) { + case \extension_loaded('gmp'): + \define('WPMailSMTP\\Vendor\\MATH_BIGINTEGER_MODE', self::MODE_GMP); break; - case extension_loaded('bcmath'): - define('MATH_BIGINTEGER_MODE', self::MODE_BCMATH); + case \extension_loaded('bcmath'): + \define('WPMailSMTP\\Vendor\\MATH_BIGINTEGER_MODE', self::MODE_BCMATH); break; default: - define('MATH_BIGINTEGER_MODE', self::MODE_INTERNAL); + \define('WPMailSMTP\\Vendor\\MATH_BIGINTEGER_MODE', self::MODE_INTERNAL); } } - - if (extension_loaded('openssl') && !defined('MATH_BIGINTEGER_OPENSSL_DISABLE') && !defined('MATH_BIGINTEGER_OPENSSL_ENABLED')) { + if (\extension_loaded('openssl') && !\defined('WPMailSMTP\\Vendor\\MATH_BIGINTEGER_OPENSSL_DISABLE') && !\defined('WPMailSMTP\\Vendor\\MATH_BIGINTEGER_OPENSSL_ENABLED')) { // some versions of XAMPP have mismatched versions of OpenSSL which causes it not to work $versions = array(); - // avoid generating errors (even with suppression) when phpinfo() is disabled (common in production systems) - if (strpos(ini_get('disable_functions'), 'phpinfo') === false) { - ob_start(); - @phpinfo(); - $content = ob_get_contents(); - ob_end_clean(); - - preg_match_all('#OpenSSL (Header|Library) Version(.*)#im', $content, $matches); - + if (\strpos(\ini_get('disable_functions'), 'phpinfo') === \false) { + \ob_start(); + @\phpinfo(); + $content = \ob_get_contents(); + \ob_end_clean(); + \preg_match_all('#OpenSSL (Header|Library) Version(.*)#im', $content, $matches); if (!empty($matches[1])) { - for ($i = 0; $i < count($matches[1]); $i++) { - $fullVersion = trim(str_replace('=>', '', strip_tags($matches[2][$i]))); - + for ($i = 0; $i < \count($matches[1]); $i++) { + $fullVersion = \trim(\str_replace('=>', '', \strip_tags($matches[2][$i]))); // Remove letter part in OpenSSL version - if (!preg_match('/(\d+\.\d+\.\d+)/i', $fullVersion, $m)) { + if (!\preg_match('/(\\d+\\.\\d+\\.\\d+)/i', $fullVersion, $m)) { $versions[$matches[1][$i]] = $fullVersion; } else { $versions[$matches[1][$i]] = $m[0]; @@ -289,57 +269,54 @@ class BigInteger } } } - // it doesn't appear that OpenSSL versions were reported upon until PHP 5.3+ - switch (true) { + switch (\true) { case !isset($versions['Header']): case !isset($versions['Library']): case $versions['Header'] == $versions['Library']: - case version_compare($versions['Header'], '1.0.0') >= 0 && version_compare($versions['Library'], '1.0.0') >= 0: - define('MATH_BIGINTEGER_OPENSSL_ENABLED', true); + case \version_compare($versions['Header'], '1.0.0') >= 0 && \version_compare($versions['Library'], '1.0.0') >= 0: + \define('WPMailSMTP\\Vendor\\MATH_BIGINTEGER_OPENSSL_ENABLED', \true); break; default: - define('MATH_BIGINTEGER_OPENSSL_DISABLE', true); + \define('WPMailSMTP\\Vendor\\MATH_BIGINTEGER_OPENSSL_DISABLE', \true); } } - - if (!defined('PHP_INT_SIZE')) { - define('PHP_INT_SIZE', 4); + if (!\defined('PHP_INT_SIZE')) { + \define('PHP_INT_SIZE', 4); } - if (empty(self::$base) && MATH_BIGINTEGER_MODE == self::MODE_INTERNAL) { - switch (PHP_INT_SIZE) { - case 8: // use 64-bit integers if int size is 8 bytes - self::$base = 31; - self::$baseFull = 0x80000000; - self::$maxDigit = 0x7FFFFFFF; - self::$msb = 0x40000000; - self::$max10 = 1000000000; - self::$max10Len = 9; - self::$maxDigit2 = pow(2, 62); + switch (\PHP_INT_SIZE) { + case 8: + // use 64-bit integers if int size is 8 bytes + self::$base = 31; + self::$baseFull = 0x80000000; + self::$maxDigit = 0x7fffffff; + self::$msb = 0x40000000; + self::$max10 = 1000000000; + self::$max10Len = 9; + self::$maxDigit2 = \pow(2, 62); break; //case 4: // use 64-bit floats if int size is 4 bytes default: - self::$base = 26; - self::$baseFull = 0x4000000; - self::$maxDigit = 0x3FFFFFF; - self::$msb = 0x2000000; - self::$max10 = 10000000; - self::$max10Len = 7; - self::$maxDigit2 = pow(2, 52); // pow() prevents truncation + self::$base = 26; + self::$baseFull = 0x4000000; + self::$maxDigit = 0x3ffffff; + self::$msb = 0x2000000; + self::$max10 = 10000000; + self::$max10Len = 7; + self::$maxDigit2 = \pow(2, 52); } } - switch (MATH_BIGINTEGER_MODE) { case self::MODE_GMP: - switch (true) { - case is_resource($x) && get_resource_type($x) == 'GMP integer': + switch (\true) { + case \is_resource($x) && \get_resource_type($x) == 'GMP integer': // PHP 5.6 switched GMP from using resources to objects case $x instanceof \GMP: $this->value = $x; return; } - $this->value = gmp_init(0); + $this->value = \gmp_init(0); break; case self::MODE_BCMATH: $this->value = '0'; @@ -347,55 +324,47 @@ class BigInteger default: $this->value = array(); } - // '0' counts as empty() but when the base is 256 '0' is equal to ord('0') or 48 // '0' is the only value like this per http://php.net/empty - if (empty($x) && (abs($base) != 256 || $x !== '0')) { + if (empty($x) && (\abs($base) != 256 || $x !== '0')) { return; } - switch ($base) { case -256: - if (ord($x[0]) & 0x80) { + if (\ord($x[0]) & 0x80) { $x = ~$x; - $this->is_negative = true; + $this->is_negative = \true; } case 256: switch (MATH_BIGINTEGER_MODE) { case self::MODE_GMP: - $this->value = function_exists('gmp_import') ? - gmp_import($x) : - gmp_init('0x' . bin2hex($x)); + $this->value = \function_exists('gmp_import') ? \gmp_import($x) : \gmp_init('0x' . \bin2hex($x)); if ($this->is_negative) { - $this->value = gmp_neg($this->value); + $this->value = \gmp_neg($this->value); } break; case self::MODE_BCMATH: // round $len to the nearest 4 (thanks, DavidMJ!) - $len = (strlen($x) + 3) & 0xFFFFFFFC; - - $x = str_pad($x, $len, chr(0), STR_PAD_LEFT); - - for ($i = 0; $i < $len; $i+= 4) { - $this->value = bcmul($this->value, '4294967296', 0); // 4294967296 == 2**32 - $this->value = bcadd($this->value, 0x1000000 * ord($x[$i]) + ((ord($x[$i + 1]) << 16) | (ord($x[$i + 2]) << 8) | ord($x[$i + 3])), 0); + $len = \strlen($x) + 3 & 0xfffffffc; + $x = \str_pad($x, $len, \chr(0), \STR_PAD_LEFT); + for ($i = 0; $i < $len; $i += 4) { + $this->value = \bcmul($this->value, '4294967296', 0); + // 4294967296 == 2**32 + $this->value = \bcadd($this->value, 0x1000000 * \ord($x[$i]) + (\ord($x[$i + 1]) << 16 | \ord($x[$i + 2]) << 8 | \ord($x[$i + 3])), 0); } - if ($this->is_negative) { $this->value = '-' . $this->value; } - break; // converts a base-2**8 (big endian / msb) number to base-2**26 (little endian / lsb) default: - while (strlen($x)) { + while (\strlen($x)) { $this->value[] = $this->_bytes2int($this->_base256_rshift($x, self::$base)); } } - if ($this->is_negative) { if (MATH_BIGINTEGER_MODE != self::MODE_INTERNAL) { - $this->is_negative = false; + $this->is_negative = \false; } $temp = $this->add(new static('-1')); $this->value = $temp->value; @@ -404,36 +373,32 @@ class BigInteger case 16: case -16: if ($base > 0 && $x[0] == '-') { - $this->is_negative = true; - $x = substr($x, 1); + $this->is_negative = \true; + $x = \substr($x, 1); } - - $x = preg_replace('#^(?:0x)?([A-Fa-f0-9]*).*#', '$1', $x); - - $is_negative = false; - if ($base < 0 && hexdec($x[0]) >= 8) { - $this->is_negative = $is_negative = true; - $x = bin2hex(~pack('H*', $x)); + $x = \preg_replace('#^(?:0x)?([A-Fa-f0-9]*).*#', '$1', $x); + $is_negative = \false; + if ($base < 0 && \hexdec($x[0]) >= 8) { + $this->is_negative = $is_negative = \true; + $x = \bin2hex(~\pack('H*', $x)); } - switch (MATH_BIGINTEGER_MODE) { case self::MODE_GMP: $temp = $this->is_negative ? '-0x' . $x : '0x' . $x; - $this->value = gmp_init($temp); - $this->is_negative = false; + $this->value = \gmp_init($temp); + $this->is_negative = \false; break; case self::MODE_BCMATH: - $x = (strlen($x) & 1) ? '0' . $x : $x; - $temp = new static(pack('H*', $x), 256); + $x = \strlen($x) & 1 ? '0' . $x : $x; + $temp = new static(\pack('H*', $x), 256); $this->value = $this->is_negative ? '-' . $temp->value : $temp->value; - $this->is_negative = false; + $this->is_negative = \false; break; default: - $x = (strlen($x) & 1) ? '0' . $x : $x; - $temp = new static(pack('H*', $x), 256); + $x = \strlen($x) & 1 ? '0' . $x : $x; + $temp = new static(\pack('H*', $x), 256); $this->value = $temp->value; } - if ($is_negative) { $temp = $this->add(new static('-1')); $this->value = $temp->value; @@ -444,14 +409,13 @@ class BigInteger // (?value = gmp_init($x); + $this->value = \gmp_init($x); break; case self::MODE_BCMATH: // explicitly casting $x to a string is necessary, here, since doing $x[0] on -1 yields different @@ -460,56 +424,47 @@ class BigInteger break; default: $temp = new static(); - $multiplier = new static(); $multiplier->value = array(self::$max10); - if ($x[0] == '-') { - $this->is_negative = true; - $x = substr($x, 1); + $this->is_negative = \true; + $x = \substr($x, 1); } - - $x = str_pad($x, strlen($x) + ((self::$max10Len - 1) * strlen($x)) % self::$max10Len, 0, STR_PAD_LEFT); - while (strlen($x)) { + $x = \str_pad($x, \strlen($x) + (self::$max10Len - 1) * \strlen($x) % self::$max10Len, 0, \STR_PAD_LEFT); + while (\strlen($x)) { $temp = $temp->multiply($multiplier); - $temp = $temp->add(new static($this->_int2bytes(substr($x, 0, self::$max10Len)), 256)); - $x = substr($x, self::$max10Len); + $temp = $temp->add(new static($this->_int2bytes(\substr($x, 0, self::$max10Len)), 256)); + $x = \substr($x, self::$max10Len); } - $this->value = $temp->value; } break; - case 2: // base-2 support originally implemented by Lluis Pamies - thanks! + case 2: + // base-2 support originally implemented by Lluis Pamies - thanks! case -2: if ($base > 0 && $x[0] == '-') { - $this->is_negative = true; - $x = substr($x, 1); + $this->is_negative = \true; + $x = \substr($x, 1); } - - $x = preg_replace('#^([01]*).*#', '$1', $x); - $x = str_pad($x, strlen($x) + (3 * strlen($x)) % 4, 0, STR_PAD_LEFT); - + $x = \preg_replace('#^([01]*).*#', '$1', $x); + $x = \str_pad($x, \strlen($x) + 3 * \strlen($x) % 4, 0, \STR_PAD_LEFT); $str = '0x'; - while (strlen($x)) { - $part = substr($x, 0, 4); - $str.= dechex(bindec($part)); - $x = substr($x, 4); + while (\strlen($x)) { + $part = \substr($x, 0, 4); + $str .= \dechex(\bindec($part)); + $x = \substr($x, 4); } - if ($this->is_negative) { $str = '-' . $str; } - - $temp = new static($str, 8 * $base); // ie. either -16 or +16 + $temp = new static($str, 8 * $base); + // ie. either -16 or +16 $this->value = $temp->value; $this->is_negative = $temp->is_negative; - break; default: - // base not supported, so we'll let $this == 0 } } - /** * Converts a BigInteger to a byte string (eg. base-256). * @@ -530,85 +485,64 @@ class BigInteger * @access public * @internal Converts a base-2**26 number to base-2**8 */ - function toBytes($twos_compliment = false) + function toBytes($twos_compliment = \false) { if ($twos_compliment) { $comparison = $this->compare(new static()); if ($comparison == 0) { - return $this->precision > 0 ? str_repeat(chr(0), ($this->precision + 1) >> 3) : ''; + return $this->precision > 0 ? \str_repeat(\chr(0), $this->precision + 1 >> 3) : ''; } - $temp = $comparison < 0 ? $this->add(new static(1)) : $this->copy(); $bytes = $temp->toBytes(); - - if (!strlen($bytes)) { // eg. if the number we're trying to convert is -1 - $bytes = chr(0); + if (!\strlen($bytes)) { + // eg. if the number we're trying to convert is -1 + $bytes = \chr(0); } - - if ($this->precision <= 0 && (ord($bytes[0]) & 0x80)) { - $bytes = chr(0) . $bytes; + if ($this->precision <= 0 && \ord($bytes[0]) & 0x80) { + $bytes = \chr(0) . $bytes; } - return $comparison < 0 ? ~$bytes : $bytes; } - switch (MATH_BIGINTEGER_MODE) { case self::MODE_GMP: - if (gmp_cmp($this->value, gmp_init(0)) == 0) { - return $this->precision > 0 ? str_repeat(chr(0), ($this->precision + 1) >> 3) : ''; + if (\gmp_cmp($this->value, \gmp_init(0)) == 0) { + return $this->precision > 0 ? \str_repeat(\chr(0), $this->precision + 1 >> 3) : ''; } - - if (function_exists('gmp_export')) { - $temp = gmp_export($this->value); + if (\function_exists('gmp_export')) { + $temp = \gmp_export($this->value); } else { - $temp = gmp_strval(gmp_abs($this->value), 16); - $temp = (strlen($temp) & 1) ? '0' . $temp : $temp; - $temp = pack('H*', $temp); + $temp = \gmp_strval(\gmp_abs($this->value), 16); + $temp = \strlen($temp) & 1 ? '0' . $temp : $temp; + $temp = \pack('H*', $temp); } - - return $this->precision > 0 ? - substr(str_pad($temp, $this->precision >> 3, chr(0), STR_PAD_LEFT), -($this->precision >> 3)) : - ltrim($temp, chr(0)); + return $this->precision > 0 ? \substr(\str_pad($temp, $this->precision >> 3, \chr(0), \STR_PAD_LEFT), -($this->precision >> 3)) : \ltrim($temp, \chr(0)); case self::MODE_BCMATH: if ($this->value === '0') { - return $this->precision > 0 ? str_repeat(chr(0), ($this->precision + 1) >> 3) : ''; + return $this->precision > 0 ? \str_repeat(\chr(0), $this->precision + 1 >> 3) : ''; } - $value = ''; $current = $this->value; - if ($current[0] == '-') { - $current = substr($current, 1); + $current = \substr($current, 1); } - - while (bccomp($current, '0', 0) > 0) { - $temp = bcmod($current, '16777216'); - $value = chr($temp >> 16) . chr($temp >> 8) . chr($temp) . $value; - $current = bcdiv($current, '16777216', 0); + while (\bccomp($current, '0', 0) > 0) { + $temp = \bcmod($current, '16777216'); + $value = \chr($temp >> 16) . \chr($temp >> 8) . \chr($temp) . $value; + $current = \bcdiv($current, '16777216', 0); } - - return $this->precision > 0 ? - substr(str_pad($value, $this->precision >> 3, chr(0), STR_PAD_LEFT), -($this->precision >> 3)) : - ltrim($value, chr(0)); + return $this->precision > 0 ? \substr(\str_pad($value, $this->precision >> 3, \chr(0), \STR_PAD_LEFT), -($this->precision >> 3)) : \ltrim($value, \chr(0)); } - - if (!count($this->value)) { - return $this->precision > 0 ? str_repeat(chr(0), ($this->precision + 1) >> 3) : ''; + if (!\count($this->value)) { + return $this->precision > 0 ? \str_repeat(\chr(0), $this->precision + 1 >> 3) : ''; } - $result = $this->_int2bytes($this->value[count($this->value) - 1]); - + $result = $this->_int2bytes($this->value[\count($this->value) - 1]); $temp = $this->copy(); - - for ($i = count($temp->value) - 2; $i >= 0; --$i) { + for ($i = \count($temp->value) - 2; $i >= 0; --$i) { $temp->_base256_lshift($result, self::$base); - $result = $result | str_pad($temp->_int2bytes($temp->value[$i]), strlen($result), chr(0), STR_PAD_LEFT); + $result = $result | \str_pad($temp->_int2bytes($temp->value[$i]), \strlen($result), \chr(0), \STR_PAD_LEFT); } - - return $this->precision > 0 ? - str_pad(substr($result, -(($this->precision + 7) >> 3)), ($this->precision + 7) >> 3, chr(0), STR_PAD_LEFT) : - $result; + return $this->precision > 0 ? \str_pad(\substr($result, -($this->precision + 7 >> 3)), $this->precision + 7 >> 3, \chr(0), \STR_PAD_LEFT) : $result; } - /** * Converts a BigInteger to a hex string (eg. base-16)). * @@ -629,11 +563,10 @@ class BigInteger * @access public * @internal Converts a base-2**26 number to base-2**8 */ - function toHex($twos_compliment = false) + function toHex($twos_compliment = \false) { - return bin2hex($this->toBytes($twos_compliment)); + return \bin2hex($this->toBytes($twos_compliment)); } - /** * Converts a BigInteger to a bit string (eg. base-2). * @@ -654,25 +587,23 @@ class BigInteger * @access public * @internal Converts a base-2**26 number to base-2**2 */ - function toBits($twos_compliment = false) + function toBits($twos_compliment = \false) { $hex = $this->toHex($twos_compliment); $bits = ''; - for ($i = strlen($hex) - 8, $start = strlen($hex) & 7; $i >= $start; $i-=8) { - $bits = str_pad(decbin(hexdec(substr($hex, $i, 8))), 32, '0', STR_PAD_LEFT) . $bits; + for ($i = \strlen($hex) - 8, $start = \strlen($hex) & 7; $i >= $start; $i -= 8) { + $bits = \str_pad(\decbin(\hexdec(\substr($hex, $i, 8))), 32, '0', \STR_PAD_LEFT) . $bits; } - if ($start) { // hexdec('') == 0 - $bits = str_pad(decbin(hexdec(substr($hex, 0, $start))), 8, '0', STR_PAD_LEFT) . $bits; + if ($start) { + // hexdec('') == 0 + $bits = \str_pad(\decbin(\hexdec(\substr($hex, 0, $start))), 8, '0', \STR_PAD_LEFT) . $bits; } - $result = $this->precision > 0 ? substr($bits, -$this->precision) : ltrim($bits, '0'); - + $result = $this->precision > 0 ? \substr($bits, -$this->precision) : \ltrim($bits, '0'); if ($twos_compliment && $this->compare(new static()) > 0 && $this->precision <= 0) { return '0' . $result; } - return $result; } - /** * Converts a BigInteger to a base-10 number. * @@ -693,42 +624,35 @@ class BigInteger { switch (MATH_BIGINTEGER_MODE) { case self::MODE_GMP: - return gmp_strval($this->value); + return \gmp_strval($this->value); case self::MODE_BCMATH: if ($this->value === '0') { return '0'; } - - return ltrim($this->value, '0'); + return \ltrim($this->value, '0'); } - - if (!count($this->value)) { + if (!\count($this->value)) { return '0'; } - $temp = $this->copy(); - $temp->bitmask = false; - $temp->is_negative = false; - + $temp->bitmask = \false; + $temp->is_negative = \false; $divisor = new static(); $divisor->value = array(self::$max10); $result = ''; - while (count($temp->value)) { + while (\count($temp->value)) { list($temp, $mod) = $temp->divide($divisor); - $result = str_pad(isset($mod->value[0]) ? $mod->value[0] : '', self::$max10Len, '0', STR_PAD_LEFT) . $result; + $result = \str_pad(isset($mod->value[0]) ? $mod->value[0] : '', self::$max10Len, '0', \STR_PAD_LEFT) . $result; } - $result = ltrim($result, '0'); + $result = \ltrim($result, '0'); if (empty($result)) { $result = '0'; } - if ($this->is_negative) { $result = '-' . $result; } - return $result; } - /** * Copy an object * @@ -750,7 +674,6 @@ class BigInteger $temp->bitmask = $this->bitmask; return $temp; } - /** * __toString() magic method * @@ -764,7 +687,6 @@ class BigInteger { return $this->toString(); } - /** * __clone() magic method * @@ -781,7 +703,6 @@ class BigInteger { return $this->copy(); } - /** * __sleep() magic method * @@ -792,14 +713,13 @@ class BigInteger */ function __sleep() { - $this->hex = $this->toHex(true); + $this->hex = $this->toHex(\true); $vars = array('hex'); if ($this->precision > 0) { $vars[] = 'precision'; } return $vars; } - /** * __wakeup() magic method * @@ -818,7 +738,6 @@ class BigInteger $this->setPrecision($this->precision); } } - /** * __debugInfo() magic method * @@ -838,20 +757,16 @@ class BigInteger break; case self::MODE_INTERNAL: $engine = 'internal'; - $opts[] = PHP_INT_SIZE == 8 ? '64-bit' : '32-bit'; + $opts[] = \PHP_INT_SIZE == 8 ? '64-bit' : '32-bit'; } - if (MATH_BIGINTEGER_MODE != self::MODE_GMP && defined('MATH_BIGINTEGER_OPENSSL_ENABLED')) { + if (MATH_BIGINTEGER_MODE != self::MODE_GMP && \defined('WPMailSMTP\\Vendor\\MATH_BIGINTEGER_OPENSSL_ENABLED')) { $opts[] = 'OpenSSL'; } if (!empty($opts)) { - $engine.= ' (' . implode('.', $opts) . ')'; + $engine .= ' (' . \implode('.', $opts) . ')'; } - return array( - 'value' => '0x' . $this->toHex(true), - 'engine' => $engine - ); + return array('value' => '0x' . $this->toHex(\true), 'engine' => $engine); } - /** * Adds two BigIntegers. * @@ -877,25 +792,19 @@ class BigInteger switch (MATH_BIGINTEGER_MODE) { case self::MODE_GMP: $temp = new static(); - $temp->value = gmp_add($this->value, $y->value); - + $temp->value = \gmp_add($this->value, $y->value); return $this->_normalize($temp); case self::MODE_BCMATH: $temp = new static(); - $temp->value = bcadd($this->value, $y->value, 0); - + $temp->value = \bcadd($this->value, $y->value, 0); return $this->_normalize($temp); } - $temp = $this->_add($this->value, $this->is_negative, $y->value, $y->is_negative); - $result = new static(); $result->value = $temp[self::VALUE]; $result->is_negative = $temp[self::SIGN]; - return $this->_normalize($result); } - /** * Performs addition. * @@ -908,37 +817,22 @@ class BigInteger */ function _add($x_value, $x_negative, $y_value, $y_negative) { - $x_size = count($x_value); - $y_size = count($y_value); - + $x_size = \count($x_value); + $y_size = \count($y_value); if ($x_size == 0) { - return array( - self::VALUE => $y_value, - self::SIGN => $y_negative - ); + return array(self::VALUE => $y_value, self::SIGN => $y_negative); } elseif ($y_size == 0) { - return array( - self::VALUE => $x_value, - self::SIGN => $x_negative - ); + return array(self::VALUE => $x_value, self::SIGN => $x_negative); } - // subtract, if appropriate if ($x_negative != $y_negative) { if ($x_value == $y_value) { - return array( - self::VALUE => array(), - self::SIGN => false - ); + return array(self::VALUE => array(), self::SIGN => \false); } - - $temp = $this->_subtract($x_value, false, $y_value, false); - $temp[self::SIGN] = $this->_compare($x_value, false, $y_value, false) > 0 ? - $x_negative : $y_negative; - + $temp = $this->_subtract($x_value, \false, $y_value, \false); + $temp[self::SIGN] = $this->_compare($x_value, \false, $y_value, \false) > 0 ? $x_negative : $y_negative; return $temp; } - if ($x_size < $y_size) { $size = $x_size; $value = $y_value; @@ -946,41 +840,35 @@ class BigInteger $size = $y_size; $value = $x_value; } - - $value[count($value)] = 0; // just in case the carry adds an extra digit - + $value[\count($value)] = 0; + // just in case the carry adds an extra digit $carry = 0; - for ($i = 0, $j = 1; $j < $size; $i+=2, $j+=2) { + for ($i = 0, $j = 1; $j < $size; $i += 2, $j += 2) { $sum = $x_value[$j] * self::$baseFull + $x_value[$i] + $y_value[$j] * self::$baseFull + $y_value[$i] + $carry; - $carry = $sum >= self::$maxDigit2; // eg. floor($sum / 2**52); only possible values (in any base) are 0 and 1 + $carry = $sum >= self::$maxDigit2; + // eg. floor($sum / 2**52); only possible values (in any base) are 0 and 1 $sum = $carry ? $sum - self::$maxDigit2 : $sum; - - $temp = self::$base === 26 ? intval($sum / 0x4000000) : ($sum >> 31); - - $value[$i] = (int) ($sum - self::$baseFull * $temp); // eg. a faster alternative to fmod($sum, 0x4000000) + $temp = self::$base === 26 ? \intval($sum / 0x4000000) : $sum >> 31; + $value[$i] = (int) ($sum - self::$baseFull * $temp); + // eg. a faster alternative to fmod($sum, 0x4000000) $value[$j] = $temp; } - - if ($j == $size) { // ie. if $y_size is odd + if ($j == $size) { + // ie. if $y_size is odd $sum = $x_value[$i] + $y_value[$i] + $carry; $carry = $sum >= self::$baseFull; $value[$i] = $carry ? $sum - self::$baseFull : $sum; - ++$i; // ie. let $i = $j since we've just done $value[$i] + ++$i; + // ie. let $i = $j since we've just done $value[$i] } - if ($carry) { for (; $value[$i] == self::$maxDigit; ++$i) { $value[$i] = 0; } ++$value[$i]; } - - return array( - self::VALUE => $this->_trim($value), - self::SIGN => $x_negative - ); + return array(self::VALUE => $this->_trim($value), self::SIGN => $x_negative); } - /** * Subtracts two BigIntegers. * @@ -1006,25 +894,19 @@ class BigInteger switch (MATH_BIGINTEGER_MODE) { case self::MODE_GMP: $temp = new static(); - $temp->value = gmp_sub($this->value, $y->value); - + $temp->value = \gmp_sub($this->value, $y->value); return $this->_normalize($temp); case self::MODE_BCMATH: $temp = new static(); - $temp->value = bcsub($this->value, $y->value, 0); - + $temp->value = \bcsub($this->value, $y->value, 0); return $this->_normalize($temp); } - $temp = $this->_subtract($this->value, $this->is_negative, $y->value, $y->is_negative); - $result = new static(); $result->value = $temp[self::VALUE]; $result->is_negative = $temp[self::SIGN]; - return $this->_normalize($result); } - /** * Performs subtraction. * @@ -1037,84 +919,58 @@ class BigInteger */ function _subtract($x_value, $x_negative, $y_value, $y_negative) { - $x_size = count($x_value); - $y_size = count($y_value); - + $x_size = \count($x_value); + $y_size = \count($y_value); if ($x_size == 0) { - return array( - self::VALUE => $y_value, - self::SIGN => !$y_negative - ); + return array(self::VALUE => $y_value, self::SIGN => !$y_negative); } elseif ($y_size == 0) { - return array( - self::VALUE => $x_value, - self::SIGN => $x_negative - ); + return array(self::VALUE => $x_value, self::SIGN => $x_negative); } - // add, if appropriate (ie. -$x - +$y or +$x - -$y) if ($x_negative != $y_negative) { - $temp = $this->_add($x_value, false, $y_value, false); + $temp = $this->_add($x_value, \false, $y_value, \false); $temp[self::SIGN] = $x_negative; - return $temp; } - $diff = $this->_compare($x_value, $x_negative, $y_value, $y_negative); - if (!$diff) { - return array( - self::VALUE => array(), - self::SIGN => false - ); + return array(self::VALUE => array(), self::SIGN => \false); } - // switch $x and $y around, if appropriate. - if ((!$x_negative && $diff < 0) || ($x_negative && $diff > 0)) { + if (!$x_negative && $diff < 0 || $x_negative && $diff > 0) { $temp = $x_value; $x_value = $y_value; $y_value = $temp; - $x_negative = !$x_negative; - - $x_size = count($x_value); - $y_size = count($y_value); + $x_size = \count($x_value); + $y_size = \count($y_value); } - // at this point, $x_value should be at least as big as - if not bigger than - $y_value - $carry = 0; - for ($i = 0, $j = 1; $j < $y_size; $i+=2, $j+=2) { + for ($i = 0, $j = 1; $j < $y_size; $i += 2, $j += 2) { $sum = $x_value[$j] * self::$baseFull + $x_value[$i] - $y_value[$j] * self::$baseFull - $y_value[$i] - $carry; - $carry = $sum < 0; // eg. floor($sum / 2**52); only possible values (in any base) are 0 and 1 + $carry = $sum < 0; + // eg. floor($sum / 2**52); only possible values (in any base) are 0 and 1 $sum = $carry ? $sum + self::$maxDigit2 : $sum; - - $temp = self::$base === 26 ? intval($sum / 0x4000000) : ($sum >> 31); - + $temp = self::$base === 26 ? \intval($sum / 0x4000000) : $sum >> 31; $x_value[$i] = (int) ($sum - self::$baseFull * $temp); $x_value[$j] = $temp; } - - if ($j == $y_size) { // ie. if $y_size is odd + if ($j == $y_size) { + // ie. if $y_size is odd $sum = $x_value[$i] - $y_value[$i] - $carry; $carry = $sum < 0; $x_value[$i] = $carry ? $sum + self::$baseFull : $sum; ++$i; } - if ($carry) { for (; !$x_value[$i]; ++$i) { $x_value[$i] = self::$maxDigit; } --$x_value[$i]; } - - return array( - self::VALUE => $this->_trim($x_value), - self::SIGN => $x_negative - ); + return array(self::VALUE => $this->_trim($x_value), self::SIGN => $x_negative); } - /** * Multiplies two BigIntegers * @@ -1139,25 +995,19 @@ class BigInteger switch (MATH_BIGINTEGER_MODE) { case self::MODE_GMP: $temp = new static(); - $temp->value = gmp_mul($this->value, $x->value); - + $temp->value = \gmp_mul($this->value, $x->value); return $this->_normalize($temp); case self::MODE_BCMATH: $temp = new static(); - $temp->value = bcmul($this->value, $x->value, 0); - + $temp->value = \bcmul($this->value, $x->value, 0); return $this->_normalize($temp); } - $temp = $this->_multiply($this->value, $this->is_negative, $x->value, $x->is_negative); - $product = new static(); $product->value = $temp[self::VALUE]; $product->is_negative = $temp[self::SIGN]; - return $this->_normalize($product); } - /** * Performs multiplication. * @@ -1176,25 +1026,14 @@ class BigInteger // self::SIGN => $x_sign != $y_value // ); //} - - $x_length = count($x_value); - $y_length = count($y_value); - - if (!$x_length || !$y_length) { // a 0 is being multiplied - return array( - self::VALUE => array(), - self::SIGN => false - ); + $x_length = \count($x_value); + $y_length = \count($y_value); + if (!$x_length || !$y_length) { + // a 0 is being multiplied + return array(self::VALUE => array(), self::SIGN => \false); } - - return array( - self::VALUE => min($x_length, $y_length) < 2 * self::KARATSUBA_CUTOFF ? - $this->_trim($this->_regularMultiply($x_value, $y_value)) : - $this->_trim($this->_karatsuba($x_value, $y_value)), - self::SIGN => $x_negative != $y_negative - ); + return array(self::VALUE => \min($x_length, $y_length) < 2 * self::KARATSUBA_CUTOFF ? $this->_trim($this->_regularMultiply($x_value, $y_value)) : $this->_trim($this->_karatsuba($x_value, $y_value)), self::SIGN => $x_negative != $y_negative); } - /** * Performs long multiplication on two BigIntegers * @@ -1207,57 +1046,47 @@ class BigInteger */ function _regularMultiply($x_value, $y_value) { - $x_length = count($x_value); - $y_length = count($y_value); - - if (!$x_length || !$y_length) { // a 0 is being multiplied + $x_length = \count($x_value); + $y_length = \count($y_value); + if (!$x_length || !$y_length) { + // a 0 is being multiplied return array(); } - if ($x_length < $y_length) { $temp = $x_value; $x_value = $y_value; $y_value = $temp; - - $x_length = count($x_value); - $y_length = count($y_value); + $x_length = \count($x_value); + $y_length = \count($y_value); } - $product_value = $this->_array_repeat(0, $x_length + $y_length); - // the following for loop could be removed if the for loop following it // (the one with nested for loops) initially set $i to 0, but // doing so would also make the result in one set of unnecessary adds, // since on the outermost loops first pass, $product->value[$k] is going // to always be 0 - $carry = 0; - - for ($j = 0; $j < $x_length; ++$j) { // ie. $i = 0 - $temp = $x_value[$j] * $y_value[0] + $carry; // $product_value[$k] == 0 - $carry = self::$base === 26 ? intval($temp / 0x4000000) : ($temp >> 31); + for ($j = 0; $j < $x_length; ++$j) { + // ie. $i = 0 + $temp = $x_value[$j] * $y_value[0] + $carry; + // $product_value[$k] == 0 + $carry = self::$base === 26 ? \intval($temp / 0x4000000) : $temp >> 31; $product_value[$j] = (int) ($temp - self::$baseFull * $carry); } - $product_value[$j] = $carry; - // the above for loop is what the previous comment was talking about. the // following for loop is the "one with nested for loops" for ($i = 1; $i < $y_length; ++$i) { $carry = 0; - for ($j = 0, $k = $i; $j < $x_length; ++$j, ++$k) { $temp = $product_value[$k] + $x_value[$j] * $y_value[$i] + $carry; - $carry = self::$base === 26 ? intval($temp / 0x4000000) : ($temp >> 31); + $carry = self::$base === 26 ? \intval($temp / 0x4000000) : $temp >> 31; $product_value[$k] = (int) ($temp - self::$baseFull * $carry); } - $product_value[$k] = $carry; } - return $product_value; } - /** * Performs Karatsuba multiplication on two BigIntegers * @@ -1271,35 +1100,27 @@ class BigInteger */ function _karatsuba($x_value, $y_value) { - $m = min(count($x_value) >> 1, count($y_value) >> 1); - + $m = \min(\count($x_value) >> 1, \count($y_value) >> 1); if ($m < self::KARATSUBA_CUTOFF) { return $this->_regularMultiply($x_value, $y_value); } - - $x1 = array_slice($x_value, $m); - $x0 = array_slice($x_value, 0, $m); - $y1 = array_slice($y_value, $m); - $y0 = array_slice($y_value, 0, $m); - + $x1 = \array_slice($x_value, $m); + $x0 = \array_slice($x_value, 0, $m); + $y1 = \array_slice($y_value, $m); + $y0 = \array_slice($y_value, 0, $m); $z2 = $this->_karatsuba($x1, $y1); $z0 = $this->_karatsuba($x0, $y0); - - $z1 = $this->_add($x1, false, $x0, false); - $temp = $this->_add($y1, false, $y0, false); + $z1 = $this->_add($x1, \false, $x0, \false); + $temp = $this->_add($y1, \false, $y0, \false); $z1 = $this->_karatsuba($z1[self::VALUE], $temp[self::VALUE]); - $temp = $this->_add($z2, false, $z0, false); - $z1 = $this->_subtract($z1, false, $temp[self::VALUE], false); - - $z2 = array_merge(array_fill(0, 2 * $m, 0), $z2); - $z1[self::VALUE] = array_merge(array_fill(0, $m, 0), $z1[self::VALUE]); - - $xy = $this->_add($z2, false, $z1[self::VALUE], $z1[self::SIGN]); - $xy = $this->_add($xy[self::VALUE], $xy[self::SIGN], $z0, false); - + $temp = $this->_add($z2, \false, $z0, \false); + $z1 = $this->_subtract($z1, \false, $temp[self::VALUE], \false); + $z2 = \array_merge(\array_fill(0, 2 * $m, 0), $z2); + $z1[self::VALUE] = \array_merge(\array_fill(0, $m, 0), $z1[self::VALUE]); + $xy = $this->_add($z2, \false, $z1[self::VALUE], $z1[self::SIGN]); + $xy = $this->_add($xy[self::VALUE], $xy[self::SIGN], $z0, \false); return $xy[self::VALUE]; } - /** * Performs squaring * @@ -1307,13 +1128,10 @@ class BigInteger * @return array * @access private */ - function _square($x = false) + function _square($x = \false) { - return count($x) < 2 * self::KARATSUBA_CUTOFF ? - $this->_trim($this->_baseSquare($x)) : - $this->_trim($this->_karatsubaSquare($x)); + return \count($x) < 2 * self::KARATSUBA_CUTOFF ? $this->_trim($this->_baseSquare($x)) : $this->_trim($this->_karatsubaSquare($x)); } - /** * Performs traditional squaring on two BigIntegers * @@ -1330,30 +1148,24 @@ class BigInteger if (empty($value)) { return array(); } - $square_value = $this->_array_repeat(0, 2 * count($value)); - - for ($i = 0, $max_index = count($value) - 1; $i <= $max_index; ++$i) { + $square_value = $this->_array_repeat(0, 2 * \count($value)); + for ($i = 0, $max_index = \count($value) - 1; $i <= $max_index; ++$i) { $i2 = $i << 1; - $temp = $square_value[$i2] + $value[$i] * $value[$i]; - $carry = self::$base === 26 ? intval($temp / 0x4000000) : ($temp >> 31); + $carry = self::$base === 26 ? \intval($temp / 0x4000000) : $temp >> 31; $square_value[$i2] = (int) ($temp - self::$baseFull * $carry); - // note how we start from $i+1 instead of 0 as we do in multiplication. for ($j = $i + 1, $k = $i2 + 1; $j <= $max_index; ++$j, ++$k) { $temp = $square_value[$k] + 2 * $value[$j] * $value[$i] + $carry; - $carry = self::$base === 26 ? intval($temp / 0x4000000) : ($temp >> 31); + $carry = self::$base === 26 ? \intval($temp / 0x4000000) : $temp >> 31; $square_value[$k] = (int) ($temp - self::$baseFull * $carry); } - // the following line can yield values larger 2**15. at this point, PHP should switch // over to floats. $square_value[$i + $max_index + 1] = $carry; } - return $square_value; } - /** * Performs Karatsuba "squaring" on two BigIntegers * @@ -1366,32 +1178,24 @@ class BigInteger */ function _karatsubaSquare($value) { - $m = count($value) >> 1; - + $m = \count($value) >> 1; if ($m < self::KARATSUBA_CUTOFF) { return $this->_baseSquare($value); } - - $x1 = array_slice($value, $m); - $x0 = array_slice($value, 0, $m); - + $x1 = \array_slice($value, $m); + $x0 = \array_slice($value, 0, $m); $z2 = $this->_karatsubaSquare($x1); $z0 = $this->_karatsubaSquare($x0); - - $z1 = $this->_add($x1, false, $x0, false); + $z1 = $this->_add($x1, \false, $x0, \false); $z1 = $this->_karatsubaSquare($z1[self::VALUE]); - $temp = $this->_add($z2, false, $z0, false); - $z1 = $this->_subtract($z1, false, $temp[self::VALUE], false); - - $z2 = array_merge(array_fill(0, 2 * $m, 0), $z2); - $z1[self::VALUE] = array_merge(array_fill(0, $m, 0), $z1[self::VALUE]); - - $xx = $this->_add($z2, false, $z1[self::VALUE], $z1[self::SIGN]); - $xx = $this->_add($xx[self::VALUE], $xx[self::SIGN], $z0, false); - + $temp = $this->_add($z2, \false, $z0, \false); + $z1 = $this->_subtract($z1, \false, $temp[self::VALUE], \false); + $z2 = \array_merge(\array_fill(0, 2 * $m, 0), $z2); + $z1[self::VALUE] = \array_merge(\array_fill(0, $m, 0), $z1[self::VALUE]); + $xx = $this->_add($z2, \false, $z1[self::VALUE], $z1[self::SIGN]); + $xx = $this->_add($xx[self::VALUE], $xx[self::SIGN], $z0, \false); return $xx[self::VALUE]; } - /** * Divides two BigIntegers. * @@ -1425,29 +1229,22 @@ class BigInteger case self::MODE_GMP: $quotient = new static(); $remainder = new static(); - - list($quotient->value, $remainder->value) = gmp_div_qr($this->value, $y->value); - - if (gmp_sign($remainder->value) < 0) { - $remainder->value = gmp_add($remainder->value, gmp_abs($y->value)); + list($quotient->value, $remainder->value) = \gmp_div_qr($this->value, $y->value); + if (\gmp_sign($remainder->value) < 0) { + $remainder->value = \gmp_add($remainder->value, \gmp_abs($y->value)); } - return array($this->_normalize($quotient), $this->_normalize($remainder)); case self::MODE_BCMATH: $quotient = new static(); $remainder = new static(); - - $quotient->value = bcdiv($this->value, $y->value, 0); - $remainder->value = bcmod($this->value, $y->value); - + $quotient->value = \bcdiv($this->value, $y->value, 0); + $remainder->value = \bcmod($this->value, $y->value); if ($remainder->value[0] == '-') { - $remainder->value = bcadd($remainder->value, $y->value[0] == '-' ? substr($y->value, 1) : $y->value, 0); + $remainder->value = \bcadd($remainder->value, $y->value[0] == '-' ? \substr($y->value, 1) : $y->value, 0); } - return array($this->_normalize($quotient), $this->_normalize($remainder)); } - - if (count($y->value) == 1) { + if (\count($y->value) == 1) { list($q, $r) = $this->_divide_digit($this->value, $y->value[0]); $quotient = new static(); $remainder = new static(); @@ -1456,29 +1253,22 @@ class BigInteger $quotient->is_negative = $this->is_negative != $y->is_negative; return array($this->_normalize($quotient), $this->_normalize($remainder)); } - static $zero; if (!isset($zero)) { $zero = new static(); } - $x = $this->copy(); $y = $y->copy(); - $x_sign = $x->is_negative; $y_sign = $y->is_negative; - - $x->is_negative = $y->is_negative = false; - + $x->is_negative = $y->is_negative = \false; $diff = $x->compare($y); - if (!$diff) { $temp = new static(); $temp->value = array(1); $temp->is_negative = $x_sign != $y_sign; return array($this->_normalize($temp), $this->_normalize(new static())); } - if ($diff < 0) { // if $x is negative, "add" $y. if ($x_sign) { @@ -1486,112 +1276,79 @@ class BigInteger } return array($this->_normalize(new static()), $this->_normalize($x)); } - // normalize $x and $y as described in HAC 14.23 / 14.24 - $msb = $y->value[count($y->value) - 1]; + $msb = $y->value[\count($y->value) - 1]; for ($shift = 0; !($msb & self::$msb); ++$shift) { $msb <<= 1; } $x->_lshift($shift); $y->_lshift($shift); - $y_value = &$y->value; - - $x_max = count($x->value) - 1; - $y_max = count($y->value) - 1; - + $y_value =& $y->value; + $x_max = \count($x->value) - 1; + $y_max = \count($y->value) - 1; $quotient = new static(); - $quotient_value = &$quotient->value; + $quotient_value =& $quotient->value; $quotient_value = $this->_array_repeat(0, $x_max - $y_max + 1); - static $temp, $lhs, $rhs; if (!isset($temp)) { $temp = new static(); - $lhs = new static(); - $rhs = new static(); + $lhs = new static(); + $rhs = new static(); } - $temp_value = &$temp->value; - $rhs_value = &$rhs->value; - + $temp_value =& $temp->value; + $rhs_value =& $rhs->value; // $temp = $y << ($x_max - $y_max-1) in base 2**26 - $temp_value = array_merge($this->_array_repeat(0, $x_max - $y_max), $y_value); - + $temp_value = \array_merge($this->_array_repeat(0, $x_max - $y_max), $y_value); while ($x->compare($temp) >= 0) { // calculate the "common residue" ++$quotient_value[$x_max - $y_max]; $x = $x->subtract($temp); - $x_max = count($x->value) - 1; + $x_max = \count($x->value) - 1; } - for ($i = $x_max; $i >= $y_max + 1; --$i) { - $x_value = &$x->value; - $x_window = array( - isset($x_value[$i]) ? $x_value[$i] : 0, - isset($x_value[$i - 1]) ? $x_value[$i - 1] : 0, - isset($x_value[$i - 2]) ? $x_value[$i - 2] : 0 - ); - $y_window = array( - $y_value[$y_max], - ($y_max > 0) ? $y_value[$y_max - 1] : 0 - ); - + $x_value =& $x->value; + $x_window = array(isset($x_value[$i]) ? $x_value[$i] : 0, isset($x_value[$i - 1]) ? $x_value[$i - 1] : 0, isset($x_value[$i - 2]) ? $x_value[$i - 2] : 0); + $y_window = array($y_value[$y_max], $y_max > 0 ? $y_value[$y_max - 1] : 0); $q_index = $i - $y_max - 1; if ($x_window[0] == $y_window[0]) { $quotient_value[$q_index] = self::$maxDigit; } else { - $quotient_value[$q_index] = $this->_safe_divide( - $x_window[0] * self::$baseFull + $x_window[1], - $y_window[0] - ); + $quotient_value[$q_index] = $this->_safe_divide($x_window[0] * self::$baseFull + $x_window[1], $y_window[0]); } - $temp_value = array($y_window[1], $y_window[0]); - $lhs->value = array($quotient_value[$q_index]); $lhs = $lhs->multiply($temp); - $rhs_value = array($x_window[2], $x_window[1], $x_window[0]); - while ($lhs->compare($rhs) > 0) { --$quotient_value[$q_index]; - $lhs->value = array($quotient_value[$q_index]); $lhs = $lhs->multiply($temp); } - $adjust = $this->_array_repeat(0, $q_index); $temp_value = array($quotient_value[$q_index]); $temp = $temp->multiply($y); - $temp_value = &$temp->value; - if (count($temp_value)) { - $temp_value = array_merge($adjust, $temp_value); + $temp_value =& $temp->value; + if (\count($temp_value)) { + $temp_value = \array_merge($adjust, $temp_value); } - $x = $x->subtract($temp); - if ($x->compare($zero) < 0) { - $temp_value = array_merge($adjust, $y_value); + $temp_value = \array_merge($adjust, $y_value); $x = $x->add($temp); - --$quotient_value[$q_index]; } - - $x_max = count($x_value) - 1; + $x_max = \count($x_value) - 1; } - // unnormalize the remainder $x->_rshift($shift); - $quotient->is_negative = $x_sign != $y_sign; - // calculate the "common residue", if appropriate if ($x_sign) { $y->_rshift($shift); $x = $y->subtract($x); } - return array($this->_normalize($quotient), $this->_normalize($x)); } - /** * Divides a BigInteger by a regular integer * @@ -1606,16 +1363,13 @@ class BigInteger { $carry = 0; $result = array(); - - for ($i = count($dividend) - 1; $i >= 0; --$i) { + for ($i = \count($dividend) - 1; $i >= 0; --$i) { $temp = self::$baseFull * $carry + $dividend[$i]; $result[$i] = $this->_safe_divide($temp, $divisor); $carry = (int) ($temp - $divisor * $result[$i]); } - return array($result, $carry); } - /** * Performs modular exponentiation. * @@ -1658,145 +1412,96 @@ class BigInteger */ function modPow($e, $n) { - $n = $this->bitmask !== false && $this->bitmask->compare($n) < 0 ? $this->bitmask : $n->abs(); - + $n = $this->bitmask !== \false && $this->bitmask->compare($n) < 0 ? $this->bitmask : $n->abs(); if ($e->compare(new static()) < 0) { $e = $e->abs(); - $temp = $this->modInverse($n); - if ($temp === false) { - return false; + if ($temp === \false) { + return \false; } - return $this->_normalize($temp->modPow($e, $n)); } - if (MATH_BIGINTEGER_MODE == self::MODE_GMP) { $temp = new static(); - $temp->value = gmp_powm($this->value, $e->value, $n->value); - + $temp->value = \gmp_powm($this->value, $e->value, $n->value); return $this->_normalize($temp); } - if ($this->compare(new static()) < 0 || $this->compare($n) > 0) { list(, $temp) = $this->divide($n); return $temp->modPow($e, $n); } - - if (defined('MATH_BIGINTEGER_OPENSSL_ENABLED')) { - $components = array( - 'modulus' => $n->toBytes(true), - 'publicExponent' => $e->toBytes(true) - ); - - $components = array( - 'modulus' => pack('Ca*a*', 2, $this->_encodeASN1Length(strlen($components['modulus'])), $components['modulus']), - 'publicExponent' => pack('Ca*a*', 2, $this->_encodeASN1Length(strlen($components['publicExponent'])), $components['publicExponent']) - ); - - $RSAPublicKey = pack( - 'Ca*a*a*', - 48, - $this->_encodeASN1Length(strlen($components['modulus']) + strlen($components['publicExponent'])), - $components['modulus'], - $components['publicExponent'] - ); - - $rsaOID = pack('H*', '300d06092a864886f70d0101010500'); // hex version of MA0GCSqGSIb3DQEBAQUA - $RSAPublicKey = chr(0) . $RSAPublicKey; - $RSAPublicKey = chr(3) . $this->_encodeASN1Length(strlen($RSAPublicKey)) . $RSAPublicKey; - - $encapsulated = pack( - 'Ca*a*', - 48, - $this->_encodeASN1Length(strlen($rsaOID . $RSAPublicKey)), - $rsaOID . $RSAPublicKey - ); - - $RSAPublicKey = "-----BEGIN PUBLIC KEY-----\r\n" . - chunk_split(base64_encode($encapsulated)) . - '-----END PUBLIC KEY-----'; - - $plaintext = str_pad($this->toBytes(), strlen($n->toBytes(true)) - 1, "\0", STR_PAD_LEFT); - - if (openssl_public_encrypt($plaintext, $result, $RSAPublicKey, OPENSSL_NO_PADDING)) { + if (\defined('WPMailSMTP\\Vendor\\MATH_BIGINTEGER_OPENSSL_ENABLED')) { + $components = array('modulus' => $n->toBytes(\true), 'publicExponent' => $e->toBytes(\true)); + $components = array('modulus' => \pack('Ca*a*', 2, $this->_encodeASN1Length(\strlen($components['modulus'])), $components['modulus']), 'publicExponent' => \pack('Ca*a*', 2, $this->_encodeASN1Length(\strlen($components['publicExponent'])), $components['publicExponent'])); + $RSAPublicKey = \pack('Ca*a*a*', 48, $this->_encodeASN1Length(\strlen($components['modulus']) + \strlen($components['publicExponent'])), $components['modulus'], $components['publicExponent']); + $rsaOID = \pack('H*', '300d06092a864886f70d0101010500'); + // hex version of MA0GCSqGSIb3DQEBAQUA + $RSAPublicKey = \chr(0) . $RSAPublicKey; + $RSAPublicKey = \chr(3) . $this->_encodeASN1Length(\strlen($RSAPublicKey)) . $RSAPublicKey; + $encapsulated = \pack('Ca*a*', 48, $this->_encodeASN1Length(\strlen($rsaOID . $RSAPublicKey)), $rsaOID . $RSAPublicKey); + $RSAPublicKey = "-----BEGIN PUBLIC KEY-----\r\n" . \chunk_split(\base64_encode($encapsulated)) . '-----END PUBLIC KEY-----'; + $plaintext = \str_pad($this->toBytes(), \strlen($n->toBytes(\true)) - 1, "\0", \STR_PAD_LEFT); + if (\openssl_public_encrypt($plaintext, $result, $RSAPublicKey, \OPENSSL_NO_PADDING)) { return new static($result, 256); } } - if (MATH_BIGINTEGER_MODE == self::MODE_BCMATH) { $temp = new static(); - $temp->value = bcpowmod($this->value, $e->value, $n->value, 0); - + $temp->value = \bcpowmod($this->value, $e->value, $n->value, 0); return $this->_normalize($temp); } - if (empty($e->value)) { $temp = new static(); $temp->value = array(1); return $this->_normalize($temp); } - if ($e->value == array(1)) { list(, $temp) = $this->divide($n); return $this->_normalize($temp); } - if ($e->value == array(2)) { $temp = new static(); $temp->value = $this->_square($this->value); list(, $temp) = $temp->divide($n); return $this->_normalize($temp); } - return $this->_normalize($this->_slidingWindow($e, $n, self::BARRETT)); - // the following code, although not callable, can be run independently of the above code // although the above code performed better in my benchmarks the following could might // perform better under different circumstances. in lieu of deleting it it's just been // made uncallable - // is the modulo odd? if ($n->value[0] & 1) { return $this->_normalize($this->_slidingWindow($e, $n, self::MONTGOMERY)); } // if it's not, it's even - // find the lowest set bit (eg. the max pow of 2 that divides $n) - for ($i = 0; $i < count($n->value); ++$i) { + for ($i = 0; $i < \count($n->value); ++$i) { if ($n->value[$i]) { - $temp = decbin($n->value[$i]); - $j = strlen($temp) - strrpos($temp, '1') - 1; - $j+= 26 * $i; + $temp = \decbin($n->value[$i]); + $j = \strlen($temp) - \strrpos($temp, '1') - 1; + $j += 26 * $i; break; } } // at this point, 2^$j * $n/(2^$j) == $n - $mod1 = $n->copy(); $mod1->_rshift($j); $mod2 = new static(); $mod2->value = array(1); $mod2->_lshift($j); - - $part1 = ($mod1->value != array(1)) ? $this->_slidingWindow($e, $mod1, self::MONTGOMERY) : new static(); + $part1 = $mod1->value != array(1) ? $this->_slidingWindow($e, $mod1, self::MONTGOMERY) : new static(); $part2 = $this->_slidingWindow($e, $mod2, self::POWEROF2); - $y1 = $mod2->modInverse($mod1); $y2 = $mod1->modInverse($mod2); - $result = $part1->multiply($mod2); $result = $result->multiply($y1); - $temp = $part2->multiply($mod1); $temp = $temp->multiply($y2); - $result = $result->add($temp); list(, $result) = $result->divide($n); - return $this->_normalize($result); } - /** * Performs modular exponentiation. * @@ -1811,7 +1516,6 @@ class BigInteger { return $this->modPow($e, $n); } - /** * Sliding Window k-ary Modular Exponentiation * @@ -1828,41 +1532,34 @@ class BigInteger */ function _slidingWindow($e, $n, $mode) { - static $window_ranges = array(7, 25, 81, 241, 673, 1793); // from BigInteger.java's oddModPow function + static $window_ranges = array(7, 25, 81, 241, 673, 1793); + // from BigInteger.java's oddModPow function //static $window_ranges = array(0, 7, 36, 140, 450, 1303, 3529); // from MPM 7.3.1 - $e_value = $e->value; - $e_length = count($e_value) - 1; - $e_bits = decbin($e_value[$e_length]); + $e_length = \count($e_value) - 1; + $e_bits = \decbin($e_value[$e_length]); for ($i = $e_length - 1; $i >= 0; --$i) { - $e_bits.= str_pad(decbin($e_value[$i]), self::$base, '0', STR_PAD_LEFT); + $e_bits .= \str_pad(\decbin($e_value[$i]), self::$base, '0', \STR_PAD_LEFT); } - - $e_length = strlen($e_bits); - + $e_length = \strlen($e_bits); // calculate the appropriate window size. // $window_size == 3 if $window_ranges is between 25 and 81, for example. - for ($i = 0, $window_size = 1; $i < count($window_ranges) && $e_length > $window_ranges[$i]; ++$window_size, ++$i) { + for ($i = 0, $window_size = 1; $i < \count($window_ranges) && $e_length > $window_ranges[$i]; ++$window_size, ++$i) { } - $n_value = $n->value; - // precompute $this^0 through $this^$window_size $powers = array(); $powers[1] = $this->_prepareReduce($this->value, $n_value, $mode); $powers[2] = $this->_squareReduce($powers[1], $n_value, $mode); - // we do every other number since substr($e_bits, $i, $j+1) (see below) is supposed to end // in a 1. ie. it's supposed to be odd. - $temp = 1 << ($window_size - 1); + $temp = 1 << $window_size - 1; for ($i = 1; $i < $temp; ++$i) { $i2 = $i << 1; $powers[$i2 + 1] = $this->_multiplyReduce($powers[$i2 - 1], $powers[2], $n_value, $mode); } - $result = array(1); $result = $this->_prepareReduce($result, $n_value, $mode); - for ($i = 0; $i < $e_length;) { if (!$e_bits[$i]) { $result = $this->_squareReduce($result, $n_value, $mode); @@ -1873,24 +1570,18 @@ class BigInteger break; } } - // eg. the length of substr($e_bits, $i, $j + 1) for ($k = 0; $k <= $j; ++$k) { $result = $this->_squareReduce($result, $n_value, $mode); } - - $result = $this->_multiplyReduce($result, $powers[bindec(substr($e_bits, $i, $j + 1))], $n_value, $mode); - + $result = $this->_multiplyReduce($result, $powers[\bindec(\substr($e_bits, $i, $j + 1))], $n_value, $mode); $i += $j + 1; } } - $temp = new static(); $temp->value = $this->_reduce($result, $n_value, $mode); - return $temp; } - /** * Modular reduction * @@ -1926,10 +1617,8 @@ class BigInteger case self::NONE: return $x; default: - // an invalid $mode was provided } } - /** * Modular reduction preperation * @@ -1947,7 +1636,6 @@ class BigInteger } return $this->_reduce($x, $n, $mode); } - /** * Modular multiply * @@ -1964,10 +1652,9 @@ class BigInteger if ($mode == self::MONTGOMERY) { return $this->_montgomeryMultiply($x, $y, $n); } - $temp = $this->_multiply($x, false, $y, false); + $temp = $this->_multiply($x, \false, $y, \false); return $this->_reduce($temp[self::VALUE], $n, $mode); } - /** * Modular square * @@ -1985,7 +1672,6 @@ class BigInteger } return $this->_reduce($this->_square($x), $n, $mode); } - /** * Modulos for Powers of Two * @@ -2003,7 +1689,6 @@ class BigInteger $temp->value = array(1); return $this->bitwise_and($n->subtract($temp)); } - /** * Barrett Modular Reduction * @@ -2030,15 +1715,10 @@ class BigInteger */ function _barrett($n, $m) { - static $cache = array( - self::VARIABLE => array(), - self::DATA => array() - ); - - $m_length = count($m); - + static $cache = array(self::VARIABLE => array(), self::DATA => array()); + $m_length = \count($m); // if ($this->_compare($n, $this->_square($m)) >= 0) { - if (count($n) > 2 * $m_length) { + if (\count($n) > 2 * $m_length) { $lhs = new static(); $rhs = new static(); $lhs->value = $n; @@ -2046,73 +1726,63 @@ class BigInteger list(, $temp) = $lhs->divide($rhs); return $temp->value; } - // if (m.length >> 1) + 2 <= m.length then m is too small and n can't be reduced if ($m_length < 5) { return $this->_regularBarrett($n, $m); } - // n = 2 * m.length - - if (($key = array_search($m, $cache[self::VARIABLE])) === false) { - $key = count($cache[self::VARIABLE]); + if (($key = \array_search($m, $cache[self::VARIABLE])) === \false) { + $key = \count($cache[self::VARIABLE]); $cache[self::VARIABLE][] = $m; - $lhs = new static(); - $lhs_value = &$lhs->value; + $lhs_value =& $lhs->value; $lhs_value = $this->_array_repeat(0, $m_length + ($m_length >> 1)); $lhs_value[] = 1; $rhs = new static(); $rhs->value = $m; - list($u, $m1) = $lhs->divide($rhs); $u = $u->value; $m1 = $m1->value; - $cache[self::DATA][] = array( - 'u' => $u, // m.length >> 1 (technically (m.length >> 1) + 1) - 'm1'=> $m1 // m.length + 'u' => $u, + // m.length >> 1 (technically (m.length >> 1) + 1) + 'm1' => $m1, ); } else { - extract($cache[self::DATA][$key]); + \extract($cache[self::DATA][$key]); } - $cutoff = $m_length + ($m_length >> 1); - $lsd = array_slice($n, 0, $cutoff); // m.length + (m.length >> 1) - $msd = array_slice($n, $cutoff); // m.length >> 1 + $lsd = \array_slice($n, 0, $cutoff); + // m.length + (m.length >> 1) + $msd = \array_slice($n, $cutoff); + // m.length >> 1 $lsd = $this->_trim($lsd); - $temp = $this->_multiply($msd, false, $m1, false); - $n = $this->_add($lsd, false, $temp[self::VALUE], false); // m.length + (m.length >> 1) + 1 - + $temp = $this->_multiply($msd, \false, $m1, \false); + $n = $this->_add($lsd, \false, $temp[self::VALUE], \false); + // m.length + (m.length >> 1) + 1 if ($m_length & 1) { return $this->_regularBarrett($n[self::VALUE], $m); } - // (m.length + (m.length >> 1) + 1) - (m.length - 1) == (m.length >> 1) + 2 - $temp = array_slice($n[self::VALUE], $m_length - 1); + $temp = \array_slice($n[self::VALUE], $m_length - 1); // if even: ((m.length >> 1) + 2) + (m.length >> 1) == m.length + 2 // if odd: ((m.length >> 1) + 2) + (m.length >> 1) == (m.length - 1) + 2 == m.length + 1 - $temp = $this->_multiply($temp, false, $u, false); + $temp = $this->_multiply($temp, \false, $u, \false); // if even: (m.length + 2) - ((m.length >> 1) + 1) = m.length - (m.length >> 1) + 1 // if odd: (m.length + 1) - ((m.length >> 1) + 1) = m.length - (m.length >> 1) - $temp = array_slice($temp[self::VALUE], ($m_length >> 1) + 1); + $temp = \array_slice($temp[self::VALUE], ($m_length >> 1) + 1); // if even: (m.length - (m.length >> 1) + 1) + m.length = 2 * m.length - (m.length >> 1) + 1 // if odd: (m.length - (m.length >> 1)) + m.length = 2 * m.length - (m.length >> 1) - $temp = $this->_multiply($temp, false, $m, false); - + $temp = $this->_multiply($temp, \false, $m, \false); // at this point, if m had an odd number of digits, we'd be subtracting a 2 * m.length - (m.length >> 1) digit // number from a m.length + (m.length >> 1) + 1 digit number. ie. there'd be an extra digit and the while loop // following this comment would loop a lot (hence our calling _regularBarrett() in that situation). - - $result = $this->_subtract($n[self::VALUE], false, $temp[self::VALUE], false); - - while ($this->_compare($result[self::VALUE], $result[self::SIGN], $m, false) >= 0) { - $result = $this->_subtract($result[self::VALUE], $result[self::SIGN], $m, false); + $result = $this->_subtract($n[self::VALUE], \false, $temp[self::VALUE], \false); + while ($this->_compare($result[self::VALUE], $result[self::SIGN], $m, \false) >= 0) { + $result = $this->_subtract($result[self::VALUE], $result[self::SIGN], $m, \false); } - return $result[self::VALUE]; } - /** * (Regular) Barrett Modular Reduction * @@ -2127,14 +1797,9 @@ class BigInteger */ function _regularBarrett($x, $n) { - static $cache = array( - self::VARIABLE => array(), - self::DATA => array() - ); - - $n_length = count($n); - - if (count($x) > 2 * $n_length) { + static $cache = array(self::VARIABLE => array(), self::DATA => array()); + $n_length = \count($n); + if (\count($x) > 2 * $n_length) { $lhs = new static(); $rhs = new static(); $lhs->value = $x; @@ -2142,49 +1807,43 @@ class BigInteger list(, $temp) = $lhs->divide($rhs); return $temp->value; } - - if (($key = array_search($n, $cache[self::VARIABLE])) === false) { - $key = count($cache[self::VARIABLE]); + if (($key = \array_search($n, $cache[self::VARIABLE])) === \false) { + $key = \count($cache[self::VARIABLE]); $cache[self::VARIABLE][] = $n; $lhs = new static(); - $lhs_value = &$lhs->value; + $lhs_value =& $lhs->value; $lhs_value = $this->_array_repeat(0, 2 * $n_length); $lhs_value[] = 1; $rhs = new static(); $rhs->value = $n; - list($temp, ) = $lhs->divide($rhs); // m.length + list($temp, ) = $lhs->divide($rhs); + // m.length $cache[self::DATA][] = $temp->value; } - // 2 * m.length - (m.length - 1) = m.length + 1 - $temp = array_slice($x, $n_length - 1); + $temp = \array_slice($x, $n_length - 1); // (m.length + 1) + m.length = 2 * m.length + 1 - $temp = $this->_multiply($temp, false, $cache[self::DATA][$key], false); + $temp = $this->_multiply($temp, \false, $cache[self::DATA][$key], \false); // (2 * m.length + 1) - (m.length - 1) = m.length + 2 - $temp = array_slice($temp[self::VALUE], $n_length + 1); - + $temp = \array_slice($temp[self::VALUE], $n_length + 1); // m.length + 1 - $result = array_slice($x, 0, $n_length + 1); + $result = \array_slice($x, 0, $n_length + 1); // m.length + 1 - $temp = $this->_multiplyLower($temp, false, $n, false, $n_length + 1); + $temp = $this->_multiplyLower($temp, \false, $n, \false, $n_length + 1); // $temp == array_slice($temp->_multiply($temp, false, $n, false)->value, 0, $n_length + 1) - - if ($this->_compare($result, false, $temp[self::VALUE], $temp[self::SIGN]) < 0) { + if ($this->_compare($result, \false, $temp[self::VALUE], $temp[self::SIGN]) < 0) { $corrector_value = $this->_array_repeat(0, $n_length + 1); - $corrector_value[count($corrector_value)] = 1; - $result = $this->_add($result, false, $corrector_value, false); + $corrector_value[\count($corrector_value)] = 1; + $result = $this->_add($result, \false, $corrector_value, \false); $result = $result[self::VALUE]; } - // at this point, we're subtracting a number with m.length + 1 digits from another number with m.length + 1 digits - $result = $this->_subtract($result, false, $temp[self::VALUE], $temp[self::SIGN]); - while ($this->_compare($result[self::VALUE], $result[self::SIGN], $n, false) > 0) { - $result = $this->_subtract($result[self::VALUE], $result[self::SIGN], $n, false); + $result = $this->_subtract($result, \false, $temp[self::VALUE], $temp[self::SIGN]); + while ($this->_compare($result[self::VALUE], $result[self::SIGN], $n, \false) > 0) { + $result = $this->_subtract($result[self::VALUE], $result[self::SIGN], $n, \false); } - return $result[self::VALUE]; } - /** * Performs long multiplication up to $stop digits * @@ -2201,68 +1860,51 @@ class BigInteger */ function _multiplyLower($x_value, $x_negative, $y_value, $y_negative, $stop) { - $x_length = count($x_value); - $y_length = count($y_value); - - if (!$x_length || !$y_length) { // a 0 is being multiplied - return array( - self::VALUE => array(), - self::SIGN => false - ); + $x_length = \count($x_value); + $y_length = \count($y_value); + if (!$x_length || !$y_length) { + // a 0 is being multiplied + return array(self::VALUE => array(), self::SIGN => \false); } - if ($x_length < $y_length) { $temp = $x_value; $x_value = $y_value; $y_value = $temp; - - $x_length = count($x_value); - $y_length = count($y_value); + $x_length = \count($x_value); + $y_length = \count($y_value); } - $product_value = $this->_array_repeat(0, $x_length + $y_length); - // the following for loop could be removed if the for loop following it // (the one with nested for loops) initially set $i to 0, but // doing so would also make the result in one set of unnecessary adds, // since on the outermost loops first pass, $product->value[$k] is going // to always be 0 - $carry = 0; - - for ($j = 0; $j < $x_length; ++$j) { // ie. $i = 0, $k = $i - $temp = $x_value[$j] * $y_value[0] + $carry; // $product_value[$k] == 0 - $carry = self::$base === 26 ? intval($temp / 0x4000000) : ($temp >> 31); + for ($j = 0; $j < $x_length; ++$j) { + // ie. $i = 0, $k = $i + $temp = $x_value[$j] * $y_value[0] + $carry; + // $product_value[$k] == 0 + $carry = self::$base === 26 ? \intval($temp / 0x4000000) : $temp >> 31; $product_value[$j] = (int) ($temp - self::$baseFull * $carry); } - if ($j < $stop) { $product_value[$j] = $carry; } - // the above for loop is what the previous comment was talking about. the // following for loop is the "one with nested for loops" - for ($i = 1; $i < $y_length; ++$i) { $carry = 0; - for ($j = 0, $k = $i; $j < $x_length && $k < $stop; ++$j, ++$k) { $temp = $product_value[$k] + $x_value[$j] * $y_value[$i] + $carry; - $carry = self::$base === 26 ? intval($temp / 0x4000000) : ($temp >> 31); + $carry = self::$base === 26 ? \intval($temp / 0x4000000) : $temp >> 31; $product_value[$k] = (int) ($temp - self::$baseFull * $carry); } - if ($k < $stop) { $product_value[$k] = $carry; } } - - return array( - self::VALUE => $this->_trim($product_value), - self::SIGN => $x_negative != $y_negative - ); + return array(self::VALUE => $this->_trim($product_value), self::SIGN => $x_negative != $y_negative); } - /** * Montgomery Modular Reduction * @@ -2280,38 +1922,27 @@ class BigInteger */ function _montgomery($x, $n) { - static $cache = array( - self::VARIABLE => array(), - self::DATA => array() - ); - - if (($key = array_search($n, $cache[self::VARIABLE])) === false) { - $key = count($cache[self::VARIABLE]); + static $cache = array(self::VARIABLE => array(), self::DATA => array()); + if (($key = \array_search($n, $cache[self::VARIABLE])) === \false) { + $key = \count($cache[self::VARIABLE]); $cache[self::VARIABLE][] = $x; $cache[self::DATA][] = $this->_modInverse67108864($n); } - - $k = count($n); - + $k = \count($n); $result = array(self::VALUE => $x); - for ($i = 0; $i < $k; ++$i) { $temp = $result[self::VALUE][$i] * $cache[self::DATA][$key]; - $temp = $temp - self::$baseFull * (self::$base === 26 ? intval($temp / 0x4000000) : ($temp >> 31)); + $temp = $temp - self::$baseFull * (self::$base === 26 ? \intval($temp / 0x4000000) : $temp >> 31); $temp = $this->_regularMultiply(array($temp), $n); - $temp = array_merge($this->_array_repeat(0, $i), $temp); - $result = $this->_add($result[self::VALUE], false, $temp, false); + $temp = \array_merge($this->_array_repeat(0, $i), $temp); + $result = $this->_add($result[self::VALUE], \false, $temp, \false); } - - $result[self::VALUE] = array_slice($result[self::VALUE], $k); - - if ($this->_compare($result, false, $n, false) >= 0) { - $result = $this->_subtract($result[self::VALUE], false, $n, false); + $result[self::VALUE] = \array_slice($result[self::VALUE], $k); + if ($this->_compare($result, \false, $n, \false) >= 0) { + $result = $this->_subtract($result[self::VALUE], \false, $n, \false); } - return $result[self::VALUE]; } - /** * Montgomery Multiply * @@ -2328,45 +1959,37 @@ class BigInteger */ function _montgomeryMultiply($x, $y, $m) { - $temp = $this->_multiply($x, false, $y, false); + $temp = $this->_multiply($x, \false, $y, \false); return $this->_montgomery($temp[self::VALUE], $m); - // the following code, although not callable, can be run independently of the above code // although the above code performed better in my benchmarks the following could might // perform better under different circumstances. in lieu of deleting it it's just been // made uncallable - - static $cache = array( - self::VARIABLE => array(), - self::DATA => array() - ); - - if (($key = array_search($m, $cache[self::VARIABLE])) === false) { - $key = count($cache[self::VARIABLE]); + static $cache = array(self::VARIABLE => array(), self::DATA => array()); + if (($key = \array_search($m, $cache[self::VARIABLE])) === \false) { + $key = \count($cache[self::VARIABLE]); $cache[self::VARIABLE][] = $m; $cache[self::DATA][] = $this->_modInverse67108864($m); } - - $n = max(count($x), count($y), count($m)); - $x = array_pad($x, $n, 0); - $y = array_pad($y, $n, 0); - $m = array_pad($m, $n, 0); + $n = \max(\count($x), \count($y), \count($m)); + $x = \array_pad($x, $n, 0); + $y = \array_pad($y, $n, 0); + $m = \array_pad($m, $n, 0); $a = array(self::VALUE => $this->_array_repeat(0, $n + 1)); for ($i = 0; $i < $n; ++$i) { $temp = $a[self::VALUE][0] + $x[$i] * $y[0]; - $temp = $temp - self::$baseFull * (self::$base === 26 ? intval($temp / 0x4000000) : ($temp >> 31)); + $temp = $temp - self::$baseFull * (self::$base === 26 ? \intval($temp / 0x4000000) : $temp >> 31); $temp = $temp * $cache[self::DATA][$key]; - $temp = $temp - self::$baseFull * (self::$base === 26 ? intval($temp / 0x4000000) : ($temp >> 31)); - $temp = $this->_add($this->_regularMultiply(array($x[$i]), $y), false, $this->_regularMultiply(array($temp), $m), false); - $a = $this->_add($a[self::VALUE], false, $temp[self::VALUE], false); - $a[self::VALUE] = array_slice($a[self::VALUE], 1); + $temp = $temp - self::$baseFull * (self::$base === 26 ? \intval($temp / 0x4000000) : $temp >> 31); + $temp = $this->_add($this->_regularMultiply(array($x[$i]), $y), \false, $this->_regularMultiply(array($temp), $m), \false); + $a = $this->_add($a[self::VALUE], \false, $temp[self::VALUE], \false); + $a[self::VALUE] = \array_slice($a[self::VALUE], 1); } - if ($this->_compare($a[self::VALUE], false, $m, false) >= 0) { - $a = $this->_subtract($a[self::VALUE], false, $m, false); + if ($this->_compare($a[self::VALUE], \false, $m, \false) >= 0) { + $a = $this->_subtract($a[self::VALUE], \false, $m, \false); } return $a[self::VALUE]; } - /** * Prepare a number for use in Montgomery Modular Reductions * @@ -2380,14 +2003,12 @@ class BigInteger function _prepMontgomery($x, $n) { $lhs = new static(); - $lhs->value = array_merge($this->_array_repeat(0, count($n)), $x); + $lhs->value = \array_merge($this->_array_repeat(0, \count($n)), $x); $rhs = new static(); $rhs->value = $n; - list(, $temp) = $lhs->divide($rhs); return $temp->value; } - /** * Modular Inverse of a number mod 2**26 (eg. 67108864) * @@ -2414,17 +2035,21 @@ class BigInteger * @param array $x * @return int */ - function _modInverse67108864($x) // 2**26 == 67,108,864 + function _modInverse67108864($x) { $x = -$x[0]; - $result = $x & 0x3; // x**-1 mod 2**2 - $result = ($result * (2 - $x * $result)) & 0xF; // x**-1 mod 2**4 - $result = ($result * (2 - ($x & 0xFF) * $result)) & 0xFF; // x**-1 mod 2**8 - $result = ($result * ((2 - ($x & 0xFFFF) * $result) & 0xFFFF)) & 0xFFFF; // x**-1 mod 2**16 - $result = fmod($result * (2 - fmod($x * $result, self::$baseFull)), self::$baseFull); // x**-1 mod 2**26 + $result = $x & 0x3; + // x**-1 mod 2**2 + $result = $result * (2 - $x * $result) & 0xf; + // x**-1 mod 2**4 + $result = $result * (2 - ($x & 0xff) * $result) & 0xff; + // x**-1 mod 2**8 + $result = $result * (2 - ($x & 0xffff) * $result & 0xffff) & 0xffff; + // x**-1 mod 2**16 + $result = \fmod($result * (2 - \fmod($x * $result, self::$baseFull)), self::$baseFull); + // x**-1 mod 2**26 return $result & self::$maxDigit; } - /** * Calculates modular inverses. * @@ -2457,37 +2082,28 @@ class BigInteger switch (MATH_BIGINTEGER_MODE) { case self::MODE_GMP: $temp = new static(); - $temp->value = gmp_invert($this->value, $n->value); - - return ($temp->value === false) ? false : $this->_normalize($temp); + $temp->value = \gmp_invert($this->value, $n->value); + return $temp->value === \false ? \false : $this->_normalize($temp); } - static $zero, $one; if (!isset($zero)) { $zero = new static(); $one = new static(1); } - // $x mod -$n == $x mod $n. $n = $n->abs(); - if ($this->compare($zero) < 0) { $temp = $this->abs(); $temp = $temp->modInverse($n); return $this->_normalize($n->subtract($temp)); } - - extract($this->extendedGCD($n)); - + \extract($this->extendedGCD($n)); if (!$gcd->equals($one)) { - return false; + return \false; } - $x = $x->compare($zero) < 0 ? $x->add($n) : $x; - return $this->compare($zero) < 0 ? $this->_normalize($n->subtract($x)) : $this->_normalize($x); } - /** * Calculates the greatest common divisor and Bezout's identity. * @@ -2520,92 +2136,68 @@ class BigInteger { switch (MATH_BIGINTEGER_MODE) { case self::MODE_GMP: - extract(gmp_gcdext($this->value, $n->value)); - - return array( - 'gcd' => $this->_normalize(new static($g)), - 'x' => $this->_normalize(new static($s)), - 'y' => $this->_normalize(new static($t)) - ); + \extract(\gmp_gcdext($this->value, $n->value)); + return array('gcd' => $this->_normalize(new static($g)), 'x' => $this->_normalize(new static($s)), 'y' => $this->_normalize(new static($t))); case self::MODE_BCMATH: // it might be faster to use the binary xGCD algorithim here, as well, but (1) that algorithim works // best when the base is a power of 2 and (2) i don't think it'd make much difference, anyway. as is, // the basic extended euclidean algorithim is what we're using. - $u = $this->value; $v = $n->value; - $a = '1'; $b = '0'; $c = '0'; $d = '1'; - - while (bccomp($v, '0', 0) != 0) { - $q = bcdiv($u, $v, 0); - + while (\bccomp($v, '0', 0) != 0) { + $q = \bcdiv($u, $v, 0); $temp = $u; $u = $v; - $v = bcsub($temp, bcmul($v, $q, 0), 0); - + $v = \bcsub($temp, \bcmul($v, $q, 0), 0); $temp = $a; $a = $c; - $c = bcsub($temp, bcmul($a, $q, 0), 0); - + $c = \bcsub($temp, \bcmul($a, $q, 0), 0); $temp = $b; $b = $d; - $d = bcsub($temp, bcmul($b, $q, 0), 0); + $d = \bcsub($temp, \bcmul($b, $q, 0), 0); } - - return array( - 'gcd' => $this->_normalize(new static($u)), - 'x' => $this->_normalize(new static($a)), - 'y' => $this->_normalize(new static($b)) - ); + return array('gcd' => $this->_normalize(new static($u)), 'x' => $this->_normalize(new static($a)), 'y' => $this->_normalize(new static($b))); } - $y = $n->copy(); $x = $this->copy(); $g = new static(); $g->value = array(1); - - while (!(($x->value[0] & 1)|| ($y->value[0] & 1))) { + while (!($x->value[0] & 1 || $y->value[0] & 1)) { $x->_rshift(1); $y->_rshift(1); $g->_lshift(1); } - $u = $x->copy(); $v = $y->copy(); - $a = new static(); $b = new static(); $c = new static(); $d = new static(); - $a->value = $d->value = $g->value = array(1); $b->value = $c->value = array(); - while (!empty($u->value)) { while (!($u->value[0] & 1)) { $u->_rshift(1); - if ((!empty($a->value) && ($a->value[0] & 1)) || (!empty($b->value) && ($b->value[0] & 1))) { + if (!empty($a->value) && $a->value[0] & 1 || !empty($b->value) && $b->value[0] & 1) { $a = $a->add($y); $b = $b->subtract($x); } $a->_rshift(1); $b->_rshift(1); } - while (!($v->value[0] & 1)) { $v->_rshift(1); - if ((!empty($d->value) && ($d->value[0] & 1)) || (!empty($c->value) && ($c->value[0] & 1))) { + if (!empty($d->value) && $d->value[0] & 1 || !empty($c->value) && $c->value[0] & 1) { $c = $c->add($y); $d = $d->subtract($x); } $c->_rshift(1); $d->_rshift(1); } - if ($u->compare($v) >= 0) { $u = $u->subtract($v); $a = $a->subtract($c); @@ -2616,14 +2208,8 @@ class BigInteger $d = $d->subtract($b); } } - - return array( - 'gcd' => $this->_normalize($g->multiply($v)), - 'x' => $this->_normalize($c), - 'y' => $this->_normalize($d) - ); + return array('gcd' => $this->_normalize($g->multiply($v)), 'x' => $this->_normalize($c), 'y' => $this->_normalize($d)); } - /** * Calculates the greatest common divisor * @@ -2647,10 +2233,9 @@ class BigInteger */ function gcd($n) { - extract($this->extendedGCD($n)); + \extract($this->extendedGCD($n)); return $gcd; } - /** * Absolute value. * @@ -2660,21 +2245,18 @@ class BigInteger function abs() { $temp = new static(); - switch (MATH_BIGINTEGER_MODE) { case self::MODE_GMP: - $temp->value = gmp_abs($this->value); + $temp->value = \gmp_abs($this->value); break; case self::MODE_BCMATH: - $temp->value = (bccomp($this->value, '0', 0) < 0) ? substr($this->value, 1) : $this->value; + $temp->value = \bccomp($this->value, '0', 0) < 0 ? \substr($this->value, 1) : $this->value; break; default: $temp->value = $this->value; } - return $temp; } - /** * Compares two numbers. * @@ -2697,7 +2279,7 @@ class BigInteger { switch (MATH_BIGINTEGER_MODE) { case self::MODE_GMP: - $r = gmp_cmp($this->value, $y->value); + $r = \gmp_cmp($this->value, $y->value); if ($r < -1) { $r = -1; } @@ -2706,12 +2288,10 @@ class BigInteger } return $r; case self::MODE_BCMATH: - return bccomp($this->value, $y->value, 0); + return \bccomp($this->value, $y->value, 0); } - return $this->_compare($this->value, $this->is_negative, $y->value, $y->is_negative); } - /** * Compares two numbers. * @@ -2726,28 +2306,22 @@ class BigInteger function _compare($x_value, $x_negative, $y_value, $y_negative) { if ($x_negative != $y_negative) { - return (!$x_negative && $y_negative) ? 1 : -1; + return !$x_negative && $y_negative ? 1 : -1; } - $result = $x_negative ? -1 : 1; - - if (count($x_value) != count($y_value)) { - return (count($x_value) > count($y_value)) ? $result : -$result; + if (\count($x_value) != \count($y_value)) { + return \count($x_value) > \count($y_value) ? $result : -$result; } - $size = max(count($x_value), count($y_value)); - - $x_value = array_pad($x_value, $size, 0); - $y_value = array_pad($y_value, $size, 0); - - for ($i = count($x_value) - 1; $i >= 0; --$i) { + $size = \max(\count($x_value), \count($y_value)); + $x_value = \array_pad($x_value, $size, 0); + $y_value = \array_pad($y_value, $size, 0); + for ($i = \count($x_value) - 1; $i >= 0; --$i) { if ($x_value[$i] != $y_value[$i]) { - return ($x_value[$i] > $y_value[$i]) ? $result : -$result; + return $x_value[$i] > $y_value[$i] ? $result : -$result; } } - return 0; } - /** * Tests the equality of two numbers. * @@ -2762,12 +2336,11 @@ class BigInteger { switch (MATH_BIGINTEGER_MODE) { case self::MODE_GMP: - return gmp_cmp($this->value, $x->value) == 0; + return \gmp_cmp($this->value, $x->value) == 0; default: return $this->value === $x->value && $this->is_negative == $x->is_negative; } } - /** * Set Precision * @@ -2781,15 +2354,13 @@ class BigInteger { $this->precision = $bits; if (MATH_BIGINTEGER_MODE != self::MODE_BCMATH) { - $this->bitmask = new static(chr((1 << ($bits & 0x7)) - 1) . str_repeat(chr(0xFF), $bits >> 3), 256); + $this->bitmask = new static(\chr((1 << ($bits & 0x7)) - 1) . \str_repeat(\chr(0xff), $bits >> 3), 256); } else { - $this->bitmask = new static(bcpow('2', $bits, 0)); + $this->bitmask = new static(\bcpow('2', $bits, 0)); } - $temp = $this->_normalize($this); $this->value = $temp->value; } - /** * Logical And * @@ -2803,34 +2374,24 @@ class BigInteger switch (MATH_BIGINTEGER_MODE) { case self::MODE_GMP: $temp = new static(); - $temp->value = gmp_and($this->value, $x->value); - + $temp->value = \gmp_and($this->value, $x->value); return $this->_normalize($temp); case self::MODE_BCMATH: $left = $this->toBytes(); $right = $x->toBytes(); - - $length = max(strlen($left), strlen($right)); - - $left = str_pad($left, $length, chr(0), STR_PAD_LEFT); - $right = str_pad($right, $length, chr(0), STR_PAD_LEFT); - + $length = \max(\strlen($left), \strlen($right)); + $left = \str_pad($left, $length, \chr(0), \STR_PAD_LEFT); + $right = \str_pad($right, $length, \chr(0), \STR_PAD_LEFT); return $this->_normalize(new static($left & $right, 256)); } - $result = $this->copy(); - - $length = min(count($x->value), count($this->value)); - - $result->value = array_slice($result->value, 0, $length); - + $length = \min(\count($x->value), \count($this->value)); + $result->value = \array_slice($result->value, 0, $length); for ($i = 0; $i < $length; ++$i) { - $result->value[$i]&= $x->value[$i]; + $result->value[$i] &= $x->value[$i]; } - return $this->_normalize($result); } - /** * Logical Or * @@ -2844,33 +2405,25 @@ class BigInteger switch (MATH_BIGINTEGER_MODE) { case self::MODE_GMP: $temp = new static(); - $temp->value = gmp_or($this->value, $x->value); - + $temp->value = \gmp_or($this->value, $x->value); return $this->_normalize($temp); case self::MODE_BCMATH: $left = $this->toBytes(); $right = $x->toBytes(); - - $length = max(strlen($left), strlen($right)); - - $left = str_pad($left, $length, chr(0), STR_PAD_LEFT); - $right = str_pad($right, $length, chr(0), STR_PAD_LEFT); - + $length = \max(\strlen($left), \strlen($right)); + $left = \str_pad($left, $length, \chr(0), \STR_PAD_LEFT); + $right = \str_pad($right, $length, \chr(0), \STR_PAD_LEFT); return $this->_normalize(new static($left | $right, 256)); } - - $length = max(count($this->value), count($x->value)); + $length = \max(\count($this->value), \count($x->value)); $result = $this->copy(); - $result->value = array_pad($result->value, $length, 0); - $x->value = array_pad($x->value, $length, 0); - + $result->value = \array_pad($result->value, $length, 0); + $x->value = \array_pad($x->value, $length, 0); for ($i = 0; $i < $length; ++$i) { - $result->value[$i]|= $x->value[$i]; + $result->value[$i] |= $x->value[$i]; } - return $this->_normalize($result); } - /** * Logical Exclusive-Or * @@ -2884,33 +2437,26 @@ class BigInteger switch (MATH_BIGINTEGER_MODE) { case self::MODE_GMP: $temp = new static(); - $temp->value = gmp_xor(gmp_abs($this->value), gmp_abs($x->value)); + $temp->value = \gmp_xor(\gmp_abs($this->value), \gmp_abs($x->value)); return $this->_normalize($temp); case self::MODE_BCMATH: $left = $this->toBytes(); $right = $x->toBytes(); - - $length = max(strlen($left), strlen($right)); - - $left = str_pad($left, $length, chr(0), STR_PAD_LEFT); - $right = str_pad($right, $length, chr(0), STR_PAD_LEFT); - + $length = \max(\strlen($left), \strlen($right)); + $left = \str_pad($left, $length, \chr(0), \STR_PAD_LEFT); + $right = \str_pad($right, $length, \chr(0), \STR_PAD_LEFT); return $this->_normalize(new static($left ^ $right, 256)); } - - $length = max(count($this->value), count($x->value)); + $length = \max(\count($this->value), \count($x->value)); $result = $this->copy(); - $result->is_negative = false; - $result->value = array_pad($result->value, $length, 0); - $x->value = array_pad($x->value, $length, 0); - + $result->is_negative = \false; + $result->value = \array_pad($result->value, $length, 0); + $x->value = \array_pad($x->value, $length, 0); for ($i = 0; $i < $length; ++$i) { - $result->value[$i]^= $x->value[$i]; + $result->value[$i] ^= $x->value[$i]; } - return $this->_normalize($result); } - /** * Logical Not * @@ -2926,30 +2472,25 @@ class BigInteger if ($temp == '') { return $this->_normalize(new static()); } - $pre_msb = decbin(ord($temp[0])); + $pre_msb = \decbin(\ord($temp[0])); $temp = ~$temp; - $msb = decbin(ord($temp[0])); - if (strlen($msb) == 8) { - $msb = substr($msb, strpos($msb, '0')); + $msb = \decbin(\ord($temp[0])); + if (\strlen($msb) == 8) { + $msb = \substr($msb, \strpos($msb, '0')); } - $temp[0] = chr(bindec($msb)); - + $temp[0] = \chr(\bindec($msb)); // see if we need to add extra leading 1's - $current_bits = strlen($pre_msb) + 8 * strlen($temp) - 8; + $current_bits = \strlen($pre_msb) + 8 * \strlen($temp) - 8; $new_bits = $this->precision - $current_bits; if ($new_bits <= 0) { return $this->_normalize(new static($temp, 256)); } - // generate as many leading 1's as we need to. - $leading_ones = chr((1 << ($new_bits & 0x7)) - 1) . str_repeat(chr(0xFF), $new_bits >> 3); + $leading_ones = \chr((1 << ($new_bits & 0x7)) - 1) . \str_repeat(\chr(0xff), $new_bits >> 3); $this->_base256_lshift($leading_ones, $current_bits); - - $temp = str_pad($temp, strlen($leading_ones), chr(0), STR_PAD_LEFT); - + $temp = \str_pad($temp, \strlen($leading_ones), \chr(0), \STR_PAD_LEFT); return $this->_normalize(new static($leading_ones | $temp, 256)); } - /** * Logical Right Shift * @@ -2963,31 +2504,25 @@ class BigInteger function bitwise_rightShift($shift) { $temp = new static(); - switch (MATH_BIGINTEGER_MODE) { case self::MODE_GMP: static $two; - if (!isset($two)) { - $two = gmp_init('2'); + $two = \gmp_init('2'); } - - $temp->value = gmp_div_q($this->value, gmp_pow($two, $shift)); - + $temp->value = \gmp_div_q($this->value, \gmp_pow($two, $shift)); break; case self::MODE_BCMATH: - $temp->value = bcdiv($this->value, bcpow('2', $shift, 0), 0); - + $temp->value = \bcdiv($this->value, \bcpow('2', $shift, 0), 0); break; - default: // could just replace _lshift with this, but then all _lshift() calls would need to be rewritten - // and I don't want to do that... + default: + // could just replace _lshift with this, but then all _lshift() calls would need to be rewritten + // and I don't want to do that... $temp->value = $this->value; $temp->_rshift($shift); } - return $this->_normalize($temp); } - /** * Logical Left Shift * @@ -3001,31 +2536,25 @@ class BigInteger function bitwise_leftShift($shift) { $temp = new static(); - switch (MATH_BIGINTEGER_MODE) { case self::MODE_GMP: static $two; - if (!isset($two)) { - $two = gmp_init('2'); + $two = \gmp_init('2'); } - - $temp->value = gmp_mul($this->value, gmp_pow($two, $shift)); - + $temp->value = \gmp_mul($this->value, \gmp_pow($two, $shift)); break; case self::MODE_BCMATH: - $temp->value = bcmul($this->value, bcpow('2', $shift, 0), 0); - + $temp->value = \bcmul($this->value, \bcpow('2', $shift, 0), 0); break; - default: // could just replace _rshift with this, but then all _lshift() calls would need to be rewritten - // and I don't want to do that... + default: + // could just replace _rshift with this, but then all _lshift() calls would need to be rewritten + // and I don't want to do that... $temp->value = $this->value; $temp->_lshift($shift); } - return $this->_normalize($temp); } - /** * Logical Left Rotate * @@ -3038,7 +2567,6 @@ class BigInteger function bitwise_leftRotate($shift) { $bits = $this->toBytes(); - if ($this->precision > 0) { $precision = $this->precision; if (MATH_BIGINTEGER_MODE == self::MODE_BCMATH) { @@ -3048,29 +2576,25 @@ class BigInteger $mask = $this->bitmask->toBytes(); } } else { - $temp = ord($bits[0]); + $temp = \ord($bits[0]); for ($i = 0; $temp >> $i; ++$i) { } - $precision = 8 * strlen($bits) - 8 + $i; - $mask = chr((1 << ($precision & 0x7)) - 1) . str_repeat(chr(0xFF), $precision >> 3); + $precision = 8 * \strlen($bits) - 8 + $i; + $mask = \chr((1 << ($precision & 0x7)) - 1) . \str_repeat(\chr(0xff), $precision >> 3); } - if ($shift < 0) { - $shift+= $precision; + $shift += $precision; } - $shift%= $precision; - + $shift %= $precision; if (!$shift) { return $this->copy(); } - $left = $this->bitwise_leftShift($shift); $left = $left->bitwise_and(new static($mask, 256)); $right = $this->bitwise_rightShift($precision - $shift); $result = MATH_BIGINTEGER_MODE != self::MODE_BCMATH ? $left->bitwise_or($right) : $left->add($right); return $this->_normalize($result); } - /** * Logical Right Rotate * @@ -3084,7 +2608,6 @@ class BigInteger { return $this->bitwise_leftRotate(-$shift); } - /** * Generates a random BigInteger * @@ -3096,25 +2619,21 @@ class BigInteger */ function _random_number_helper($size) { - if (class_exists('\phpseclib\Crypt\Random')) { - $random = Random::string($size); + if (\class_exists('WPMailSMTP\\Vendor\\phpseclib\\Crypt\\Random')) { + $random = \WPMailSMTP\Vendor\phpseclib\Crypt\Random::string($size); } else { $random = ''; - if ($size & 1) { - $random.= chr(mt_rand(0, 255)); + $random .= \chr(\mt_rand(0, 255)); } - $blocks = $size >> 1; for ($i = 0; $i < $blocks; ++$i) { // mt_rand(-2147483648, 0x7FFFFFFF) always produces -2147483648 on some systems - $random.= pack('n', mt_rand(0, 0xFFFF)); + $random .= \pack('n', \mt_rand(0, 0xffff)); } } - return new static($random, 256); } - /** * Generate a random number * @@ -3131,22 +2650,19 @@ class BigInteger * @internal The API for creating random numbers used to be $a->random($min, $max), where $a was a BigInteger object. * That method is still supported for BC purposes. */ - function random($arg1, $arg2 = false) + function random($arg1, $arg2 = \false) { - if ($arg1 === false) { - return false; + if ($arg1 === \false) { + return \false; } - - if ($arg2 === false) { + if ($arg2 === \false) { $max = $arg1; $min = $this; } else { $min = $arg1; $max = $arg2; } - $compare = $max->compare($min); - if (!$compare) { return $this->_normalize($min); } elseif ($compare < 0) { @@ -3155,36 +2671,31 @@ class BigInteger $max = $min; $min = $temp; } - static $one; if (!isset($one)) { $one = new static(1); } - $max = $max->subtract($min->subtract($one)); - $size = strlen(ltrim($max->toBytes(), chr(0))); - + $size = \strlen(\ltrim($max->toBytes(), \chr(0))); /* doing $random % $max doesn't work because some numbers will be more likely to occur than others. eg. if $max is 140 and $random's max is 255 then that'd mean both $random = 5 and $random = 145 would produce 5 whereas the only value of random that could produce 139 would be 139. ie. not all numbers would be equally likely. some would be more likely than others. - + creating a whole new random number until you find one that is within the range doesn't work because, for sufficiently small ranges, the likelihood that you'd get a number within that range would be pretty small. eg. with $random's max being 255 and if your $max being 1 the probability would be pretty high that $random would be greater than $max. - + phpseclib works around this using the technique described here: - + http://crypto.stackexchange.com/questions/5708/creating-a-small-number-from-a-cryptographically-secure-random-string */ - $random_max = new static(chr(1) . str_repeat("\0", $size), 256); + $random_max = new static(\chr(1) . \str_repeat("\0", $size), 256); $random = $this->_random_number_helper($size); - list($max_multiple) = $random_max->divide($max); $max_multiple = $max_multiple->multiply($max); - while ($random->compare($max_multiple) >= 0) { $random = $random->subtract($max_multiple); $random_max = $random_max->subtract($max_multiple); @@ -3195,10 +2706,8 @@ class BigInteger $max_multiple = $max_multiple->multiply($max); } list(, $random) = $random->divide($max); - return $this->_normalize($random->add($min)); } - /** * Generate a random prime number. * @@ -3212,84 +2721,67 @@ class BigInteger * @access public * @internal See {@link http://www.cacr.math.uwaterloo.ca/hac/about/chap4.pdf#page=15 HAC 4.44}. */ - function randomPrime($arg1, $arg2 = false, $timeout = false) + function randomPrime($arg1, $arg2 = \false, $timeout = \false) { - if ($arg1 === false) { - return false; + if ($arg1 === \false) { + return \false; } - - if ($arg2 === false) { + if ($arg2 === \false) { $max = $arg1; $min = $this; } else { $min = $arg1; $max = $arg2; } - $compare = $max->compare($min); - if (!$compare) { - return $min->isPrime() ? $min : false; + return $min->isPrime() ? $min : \false; } elseif ($compare < 0) { // if $min is bigger then $max, swap $min and $max $temp = $max; $max = $min; $min = $temp; } - static $one, $two; if (!isset($one)) { $one = new static(1); $two = new static(2); } - - $start = time(); - + $start = \time(); $x = $this->random($min, $max); - // gmp_nextprime() requires PHP 5 >= 5.2.0 per . - if (MATH_BIGINTEGER_MODE == self::MODE_GMP && extension_loaded('gmp')) { + if (MATH_BIGINTEGER_MODE == self::MODE_GMP && \extension_loaded('gmp')) { $p = new static(); - $p->value = gmp_nextprime($x->value); - + $p->value = \gmp_nextprime($x->value); if ($p->compare($max) <= 0) { return $p; } - if (!$min->equals($x)) { $x = $x->subtract($one); } - return $x->randomPrime($min, $x); } - if ($x->equals($two)) { return $x; } - $x->_make_odd(); if ($x->compare($max) > 0) { // if $x > $max then $max is even and if $min == $max then no prime number exists between the specified range if ($min->equals($max)) { - return false; + return \false; } $x = $min->copy(); $x->_make_odd(); } - $initial_x = $x->copy(); - - while (true) { - if ($timeout !== false && time() - $start > $timeout) { - return false; + while (\true) { + if ($timeout !== \false && \time() - $start > $timeout) { + return \false; } - if ($x->isPrime()) { return $x; } - $x = $x->add($two); - if ($x->compare($max) > 0) { $x = $min->copy(); if ($x->equals($two)) { @@ -3297,13 +2789,11 @@ class BigInteger } $x->_make_odd(); } - if ($x->equals($initial_x)) { - return false; + return \false; } } } - /** * Make the current number odd * @@ -3316,18 +2806,17 @@ class BigInteger { switch (MATH_BIGINTEGER_MODE) { case self::MODE_GMP: - gmp_setbit($this->value, 0); + \gmp_setbit($this->value, 0); break; case self::MODE_BCMATH: - if ($this->value[strlen($this->value) - 1] % 2 == 0) { - $this->value = bcadd($this->value, '1'); + if ($this->value[\strlen($this->value) - 1] % 2 == 0) { + $this->value = \bcadd($this->value, '1'); } break; default: $this->value[0] |= 1; } } - /** * Checks a numer to see if it's prime * @@ -3342,82 +2831,95 @@ class BigInteger * {@link http://en.wikipedia.org/wiki/Miller%E2%80%93Rabin_primality_test Miller-Rabin primality test}. See * {@link http://www.cacr.math.uwaterloo.ca/hac/about/chap4.pdf#page=8 HAC 4.24}. */ - function isPrime($t = false) + function isPrime($t = \false) { - $length = strlen($this->toBytes()); - + $length = \strlen($this->toBytes()); if (!$t) { // see HAC 4.49 "Note (controlling the error probability)" // @codingStandardsIgnoreStart - if ($length >= 163) { $t = 2; } // floor(1300 / 8) - else if ($length >= 106) { $t = 3; } // floor( 850 / 8) - else if ($length >= 81 ) { $t = 4; } // floor( 650 / 8) - else if ($length >= 68 ) { $t = 5; } // floor( 550 / 8) - else if ($length >= 56 ) { $t = 6; } // floor( 450 / 8) - else if ($length >= 50 ) { $t = 7; } // floor( 400 / 8) - else if ($length >= 43 ) { $t = 8; } // floor( 350 / 8) - else if ($length >= 37 ) { $t = 9; } // floor( 300 / 8) - else if ($length >= 31 ) { $t = 12; } // floor( 250 / 8) - else if ($length >= 25 ) { $t = 15; } // floor( 200 / 8) - else if ($length >= 18 ) { $t = 18; } // floor( 150 / 8) - else { $t = 27; } + if ($length >= 163) { + $t = 2; + } else { + if ($length >= 106) { + $t = 3; + } else { + if ($length >= 81) { + $t = 4; + } else { + if ($length >= 68) { + $t = 5; + } else { + if ($length >= 56) { + $t = 6; + } else { + if ($length >= 50) { + $t = 7; + } else { + if ($length >= 43) { + $t = 8; + } else { + if ($length >= 37) { + $t = 9; + } else { + if ($length >= 31) { + $t = 12; + } else { + if ($length >= 25) { + $t = 15; + } else { + if ($length >= 18) { + $t = 18; + } else { + $t = 27; + } + } + } + } + } + } + } + } + } + } + } // @codingStandardsIgnoreEnd } - // ie. gmp_testbit($this, 0) // ie. isEven() or !isOdd() switch (MATH_BIGINTEGER_MODE) { case self::MODE_GMP: - return gmp_prob_prime($this->value, $t) != 0; + return \gmp_prob_prime($this->value, $t) != 0; case self::MODE_BCMATH: if ($this->value === '2') { - return true; + return \true; } - if ($this->value[strlen($this->value) - 1] % 2 == 0) { - return false; + if ($this->value[\strlen($this->value) - 1] % 2 == 0) { + return \false; } break; default: if ($this->value == array(2)) { - return true; + return \true; } if (~$this->value[0] & 1) { - return false; + return \false; } } - static $primes, $zero, $one, $two; - if (!isset($primes)) { - $primes = array( - 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, - 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, - 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, - 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313, - 317, 331, 337, 347, 349, 353, 359, 367, 373, 379, 383, 389, 397, 401, 409, 419, - 421, 431, 433, 439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 499, 503, 509, - 521, 523, 541, 547, 557, 563, 569, 571, 577, 587, 593, 599, 601, 607, 613, 617, - 619, 631, 641, 643, 647, 653, 659, 661, 673, 677, 683, 691, 701, 709, 719, 727, - 733, 739, 743, 751, 757, 761, 769, 773, 787, 797, 809, 811, 821, 823, 827, 829, - 839, 853, 857, 859, 863, 877, 881, 883, 887, 907, 911, 919, 929, 937, 941, 947, - 953, 967, 971, 977, 983, 991, 997 - ); - + $primes = array(3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313, 317, 331, 337, 347, 349, 353, 359, 367, 373, 379, 383, 389, 397, 401, 409, 419, 421, 431, 433, 439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 499, 503, 509, 521, 523, 541, 547, 557, 563, 569, 571, 577, 587, 593, 599, 601, 607, 613, 617, 619, 631, 641, 643, 647, 653, 659, 661, 673, 677, 683, 691, 701, 709, 719, 727, 733, 739, 743, 751, 757, 761, 769, 773, 787, 797, 809, 811, 821, 823, 827, 829, 839, 853, 857, 859, 863, 877, 881, 883, 887, 907, 911, 919, 929, 937, 941, 947, 953, 967, 971, 977, 983, 991, 997); if (MATH_BIGINTEGER_MODE != self::MODE_INTERNAL) { - for ($i = 0; $i < count($primes); ++$i) { + for ($i = 0; $i < \count($primes); ++$i) { $primes[$i] = new static($primes[$i]); } } - $zero = new static(); $one = new static(1); $two = new static(2); } - if ($this->equals($one)) { - return false; + return \false; } - // see HAC 4.4.1 "Random search for probable primes" if (MATH_BIGINTEGER_MODE != self::MODE_INTERNAL) { foreach ($primes as $prime) { @@ -3431,29 +2933,27 @@ class BigInteger foreach ($primes as $prime) { list(, $r) = $this->_divide_digit($value, $prime); if (!$r) { - return count($value) == 1 && $value[0] == $prime; + return \count($value) == 1 && $value[0] == $prime; } } } - - $n = $this->copy(); + $n = $this->copy(); $n_1 = $n->subtract($one); $n_2 = $n->subtract($two); - $r = $n_1->copy(); $r_value = $r->value; // ie. $s = gmp_scan1($n, 0) and $r = gmp_div_q($n, gmp_pow(gmp_init('2'), $s)); if (MATH_BIGINTEGER_MODE == self::MODE_BCMATH) { $s = 0; // if $n was 1, $r would be 0 and this would be an infinite loop, hence our $this->equals($one) check earlier - while ($r->value[strlen($r->value) - 1] % 2 == 0) { - $r->value = bcdiv($r->value, '2', 0); + while ($r->value[\strlen($r->value) - 1] % 2 == 0) { + $r->value = \bcdiv($r->value, '2', 0); ++$s; } } else { - for ($i = 0, $r_length = count($r_value); $i < $r_length; ++$i) { - $temp = ~$r_value[$i] & 0xFFFFFF; - for ($j = 1; ($temp >> $j) & 1; ++$j) { + for ($i = 0, $r_length = \count($r_value); $i < $r_length; ++$i) { + $temp = ~$r_value[$i] & 0xffffff; + for ($j = 1; $temp >> $j & 1; ++$j) { } if ($j != 25) { break; @@ -3462,27 +2962,23 @@ class BigInteger $s = 26 * $i + $j; $r->_rshift($s); } - for ($i = 0; $i < $t; ++$i) { $a = $this->random($two, $n_2); $y = $a->modPow($r, $n); - if (!$y->equals($one) && !$y->equals($n_1)) { for ($j = 1; $j < $s && !$y->equals($n_1); ++$j) { $y = $y->modPow($two, $n); if ($y->equals($one)) { - return false; + return \false; } } - if (!$y->equals($n_1)) { - return false; + return \false; } } } - return true; + return \true; } - /** * Logical Left Shift * @@ -3496,28 +2992,22 @@ class BigInteger if ($shift == 0) { return; } - $num_digits = (int) ($shift / self::$base); $shift %= self::$base; $shift = 1 << $shift; - $carry = 0; - - for ($i = 0; $i < count($this->value); ++$i) { + for ($i = 0; $i < \count($this->value); ++$i) { $temp = $this->value[$i] * $shift + $carry; - $carry = self::$base === 26 ? intval($temp / 0x4000000) : ($temp >> 31); + $carry = self::$base === 26 ? \intval($temp / 0x4000000) : $temp >> 31; $this->value[$i] = (int) ($temp - $carry * self::$baseFull); } - if ($carry) { - $this->value[count($this->value)] = $carry; + $this->value[\count($this->value)] = $carry; } - while ($num_digits--) { - array_unshift($this->value, 0); + \array_unshift($this->value, 0); } } - /** * Logical Right Shift * @@ -3531,27 +3021,21 @@ class BigInteger if ($shift == 0) { return; } - $num_digits = (int) ($shift / self::$base); $shift %= self::$base; $carry_shift = self::$base - $shift; $carry_mask = (1 << $shift) - 1; - if ($num_digits) { - $this->value = array_slice($this->value, $num_digits); + $this->value = \array_slice($this->value, $num_digits); } - $carry = 0; - - for ($i = count($this->value) - 1; $i >= 0; --$i) { + for ($i = \count($this->value) - 1; $i >= 0; --$i) { $temp = $this->value[$i] >> $shift | $carry; $carry = ($this->value[$i] & $carry_mask) << $carry_shift; $this->value[$i] = $temp; } - $this->value = $this->_trim($this->value); } - /** * Normalize * @@ -3566,50 +3050,40 @@ class BigInteger { $result->precision = $this->precision; $result->bitmask = $this->bitmask; - switch (MATH_BIGINTEGER_MODE) { case self::MODE_GMP: - if ($this->bitmask !== false) { - $flip = gmp_cmp($result->value, gmp_init(0)) < 0; + if ($this->bitmask !== \false) { + $flip = \gmp_cmp($result->value, \gmp_init(0)) < 0; if ($flip) { - $result->value = gmp_neg($result->value); + $result->value = \gmp_neg($result->value); } - $result->value = gmp_and($result->value, $result->bitmask->value); + $result->value = \gmp_and($result->value, $result->bitmask->value); if ($flip) { - $result->value = gmp_neg($result->value); + $result->value = \gmp_neg($result->value); } } - return $result; case self::MODE_BCMATH: if (!empty($result->bitmask->value)) { - $result->value = bcmod($result->value, $result->bitmask->value); + $result->value = \bcmod($result->value, $result->bitmask->value); } - return $result; } - - $value = &$result->value; - - if (!count($value)) { - $result->is_negative = false; + $value =& $result->value; + if (!\count($value)) { + $result->is_negative = \false; return $result; } - $value = $this->_trim($value); - if (!empty($result->bitmask->value)) { - $length = min(count($value), count($this->bitmask->value)); - $value = array_slice($value, 0, $length); - + $length = \min(\count($value), \count($this->bitmask->value)); + $value = \array_slice($value, 0, $length); for ($i = 0; $i < $length; ++$i) { $value[$i] = $value[$i] & $this->bitmask->value[$i]; } } - return $result; } - /** * Trim * @@ -3621,16 +3095,14 @@ class BigInteger */ function _trim($value) { - for ($i = count($value) - 1; $i >= 0; --$i) { + for ($i = \count($value) - 1; $i >= 0; --$i) { if ($value[$i]) { break; } unset($value[$i]); } - return $value; } - /** * Array Repeat * @@ -3641,9 +3113,8 @@ class BigInteger */ function _array_repeat($input, $multiplier) { - return ($multiplier) ? array_fill(0, $multiplier, $input) : array(); + return $multiplier ? \array_fill(0, $multiplier, $input) : array(); } - /** * Logical Left Shift * @@ -3659,20 +3130,19 @@ class BigInteger if ($shift == 0) { return; } - - $num_bytes = $shift >> 3; // eg. floor($shift/8) - $shift &= 7; // eg. $shift % 8 - + $num_bytes = $shift >> 3; + // eg. floor($shift/8) + $shift &= 7; + // eg. $shift % 8 $carry = 0; - for ($i = strlen($x) - 1; $i >= 0; --$i) { - $temp = ord($x[$i]) << $shift | $carry; - $x[$i] = chr($temp); + for ($i = \strlen($x) - 1; $i >= 0; --$i) { + $temp = \ord($x[$i]) << $shift | $carry; + $x[$i] = \chr($temp); $carry = $temp >> 8; } - $carry = ($carry != 0) ? chr($carry) : ''; - $x = $carry . $x . str_repeat(chr(0), $num_bytes); + $carry = $carry != 0 ? \chr($carry) : ''; + $x = $carry . $x . \str_repeat(\chr(0), $num_bytes); } - /** * Logical Right Shift * @@ -3686,37 +3156,32 @@ class BigInteger function _base256_rshift(&$x, $shift) { if ($shift == 0) { - $x = ltrim($x, chr(0)); + $x = \ltrim($x, \chr(0)); return ''; } - - $num_bytes = $shift >> 3; // eg. floor($shift/8) - $shift &= 7; // eg. $shift % 8 - + $num_bytes = $shift >> 3; + // eg. floor($shift/8) + $shift &= 7; + // eg. $shift % 8 $remainder = ''; if ($num_bytes) { - $start = $num_bytes > strlen($x) ? -strlen($x) : -$num_bytes; - $remainder = substr($x, $start); - $x = substr($x, 0, -$num_bytes); + $start = $num_bytes > \strlen($x) ? -\strlen($x) : -$num_bytes; + $remainder = \substr($x, $start); + $x = \substr($x, 0, -$num_bytes); } - $carry = 0; $carry_shift = 8 - $shift; - for ($i = 0; $i < strlen($x); ++$i) { - $temp = (ord($x[$i]) >> $shift) | $carry; - $carry = (ord($x[$i]) << $carry_shift) & 0xFF; - $x[$i] = chr($temp); + for ($i = 0; $i < \strlen($x); ++$i) { + $temp = \ord($x[$i]) >> $shift | $carry; + $carry = \ord($x[$i]) << $carry_shift & 0xff; + $x[$i] = \chr($temp); } - $x = ltrim($x, chr(0)); - - $remainder = chr($carry >> $carry_shift) . $remainder; - - return ltrim($remainder, chr(0)); + $x = \ltrim($x, \chr(0)); + $remainder = \chr($carry >> $carry_shift) . $remainder; + return \ltrim($remainder, \chr(0)); } - // one quirk about how the following functions are implemented is that PHP defines N to be an unsigned long // at 32-bits, while java's longs are 64-bits. - /** * Converts 32-bit integers to bytes. * @@ -3726,9 +3191,8 @@ class BigInteger */ function _int2bytes($x) { - return ltrim(pack('N', $x), chr(0)); + return \ltrim(\pack('N', $x), \chr(0)); } - /** * Converts bytes to 32-bit integers * @@ -3738,10 +3202,9 @@ class BigInteger */ function _bytes2int($x) { - $temp = unpack('Nint', str_pad($x, 4, chr(0), STR_PAD_LEFT)); + $temp = \unpack('Nint', \str_pad($x, 4, \chr(0), \STR_PAD_LEFT)); return $temp['int']; } - /** * DER-encode an integer * @@ -3754,14 +3217,12 @@ class BigInteger */ function _encodeASN1Length($length) { - if ($length <= 0x7F) { - return chr($length); + if ($length <= 0x7f) { + return \chr($length); } - - $temp = ltrim(pack('N', $length), chr(0)); - return pack('Ca*', 0x80 | strlen($temp), $temp); + $temp = \ltrim(\pack('N', $length), \chr(0)); + return \pack('Ca*', 0x80 | \strlen($temp), $temp); } - /** * Single digit division * @@ -3780,8 +3241,7 @@ class BigInteger if (self::$base === 26) { return (int) ($x / $y); } - // self::$base === 31 - return ($x - ($x % $y)) / $y; + return ($x - $x % $y) / $y; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/phpseclib/phpseclib/phpseclib/bootstrap.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/phpseclib/phpseclib/phpseclib/bootstrap.php new file mode 100644 index 0000000..04a7199 --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/phpseclib/phpseclib/phpseclib/bootstrap.php @@ -0,0 +1,15 @@ +log(LogLevel::EMERGENCY, $message, $context); + $this->log(\WPMailSMTP\Vendor\Psr\Log\LogLevel::EMERGENCY, $message, $context); } - /** * Action must be taken immediately. * @@ -37,9 +36,8 @@ abstract class AbstractLogger implements LoggerInterface */ public function alert($message, array $context = array()) { - $this->log(LogLevel::ALERT, $message, $context); + $this->log(\WPMailSMTP\Vendor\Psr\Log\LogLevel::ALERT, $message, $context); } - /** * Critical conditions. * @@ -52,9 +50,8 @@ abstract class AbstractLogger implements LoggerInterface */ public function critical($message, array $context = array()) { - $this->log(LogLevel::CRITICAL, $message, $context); + $this->log(\WPMailSMTP\Vendor\Psr\Log\LogLevel::CRITICAL, $message, $context); } - /** * Runtime errors that do not require immediate action but should typically * be logged and monitored. @@ -66,9 +63,8 @@ abstract class AbstractLogger implements LoggerInterface */ public function error($message, array $context = array()) { - $this->log(LogLevel::ERROR, $message, $context); + $this->log(\WPMailSMTP\Vendor\Psr\Log\LogLevel::ERROR, $message, $context); } - /** * Exceptional occurrences that are not errors. * @@ -82,9 +78,8 @@ abstract class AbstractLogger implements LoggerInterface */ public function warning($message, array $context = array()) { - $this->log(LogLevel::WARNING, $message, $context); + $this->log(\WPMailSMTP\Vendor\Psr\Log\LogLevel::WARNING, $message, $context); } - /** * Normal but significant events. * @@ -95,9 +90,8 @@ abstract class AbstractLogger implements LoggerInterface */ public function notice($message, array $context = array()) { - $this->log(LogLevel::NOTICE, $message, $context); + $this->log(\WPMailSMTP\Vendor\Psr\Log\LogLevel::NOTICE, $message, $context); } - /** * Interesting events. * @@ -110,9 +104,8 @@ abstract class AbstractLogger implements LoggerInterface */ public function info($message, array $context = array()) { - $this->log(LogLevel::INFO, $message, $context); + $this->log(\WPMailSMTP\Vendor\Psr\Log\LogLevel::INFO, $message, $context); } - /** * Detailed debug information. * @@ -123,6 +116,6 @@ abstract class AbstractLogger implements LoggerInterface */ public function debug($message, array $context = array()) { - $this->log(LogLevel::DEBUG, $message, $context); + $this->log(\WPMailSMTP\Vendor\Psr\Log\LogLevel::DEBUG, $message, $context); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/psr/log/Psr/Log/InvalidArgumentException.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/psr/log/Psr/Log/InvalidArgumentException.php similarity index 67% rename from wp-content/plugins/wp-mail-smtp/vendor/psr/log/Psr/Log/InvalidArgumentException.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/psr/log/Psr/Log/InvalidArgumentException.php index 67f852d..0ccd7a5 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/psr/log/Psr/Log/InvalidArgumentException.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/psr/log/Psr/Log/InvalidArgumentException.php @@ -1,6 +1,6 @@ logger = $logger; } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/psr/log/Psr/Log/LoggerInterface.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/psr/log/Psr/Log/LoggerInterface.php similarity index 98% rename from wp-content/plugins/wp-mail-smtp/vendor/psr/log/Psr/Log/LoggerInterface.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/psr/log/Psr/Log/LoggerInterface.php index 2206cfd..0baeaa7 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/psr/log/Psr/Log/LoggerInterface.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/psr/log/Psr/Log/LoggerInterface.php @@ -1,6 +1,6 @@ log(LogLevel::EMERGENCY, $message, $context); + $this->log(\WPMailSMTP\Vendor\Psr\Log\LogLevel::EMERGENCY, $message, $context); } - /** * Action must be taken immediately. * @@ -38,9 +37,8 @@ trait LoggerTrait */ public function alert($message, array $context = array()) { - $this->log(LogLevel::ALERT, $message, $context); + $this->log(\WPMailSMTP\Vendor\Psr\Log\LogLevel::ALERT, $message, $context); } - /** * Critical conditions. * @@ -53,9 +51,8 @@ trait LoggerTrait */ public function critical($message, array $context = array()) { - $this->log(LogLevel::CRITICAL, $message, $context); + $this->log(\WPMailSMTP\Vendor\Psr\Log\LogLevel::CRITICAL, $message, $context); } - /** * Runtime errors that do not require immediate action but should typically * be logged and monitored. @@ -67,9 +64,8 @@ trait LoggerTrait */ public function error($message, array $context = array()) { - $this->log(LogLevel::ERROR, $message, $context); + $this->log(\WPMailSMTP\Vendor\Psr\Log\LogLevel::ERROR, $message, $context); } - /** * Exceptional occurrences that are not errors. * @@ -83,9 +79,8 @@ trait LoggerTrait */ public function warning($message, array $context = array()) { - $this->log(LogLevel::WARNING, $message, $context); + $this->log(\WPMailSMTP\Vendor\Psr\Log\LogLevel::WARNING, $message, $context); } - /** * Normal but significant events. * @@ -96,9 +91,8 @@ trait LoggerTrait */ public function notice($message, array $context = array()) { - $this->log(LogLevel::NOTICE, $message, $context); + $this->log(\WPMailSMTP\Vendor\Psr\Log\LogLevel::NOTICE, $message, $context); } - /** * Interesting events. * @@ -111,9 +105,8 @@ trait LoggerTrait */ public function info($message, array $context = array()) { - $this->log(LogLevel::INFO, $message, $context); + $this->log(\WPMailSMTP\Vendor\Psr\Log\LogLevel::INFO, $message, $context); } - /** * Detailed debug information. * @@ -124,9 +117,8 @@ trait LoggerTrait */ public function debug($message, array $context = array()) { - $this->log(LogLevel::DEBUG, $message, $context); + $this->log(\WPMailSMTP\Vendor\Psr\Log\LogLevel::DEBUG, $message, $context); } - /** * Logs with an arbitrary level. * @@ -138,5 +130,5 @@ trait LoggerTrait * * @throws \Psr\Log\InvalidArgumentException */ - abstract public function log($level, $message, array $context = array()); + public abstract function log($level, $message, array $context = array()); } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/psr/log/Psr/Log/NullLogger.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/psr/log/Psr/Log/NullLogger.php similarity index 86% rename from wp-content/plugins/wp-mail-smtp/vendor/psr/log/Psr/Log/NullLogger.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/psr/log/Psr/Log/NullLogger.php index c8f7293..b4d2c2d 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/psr/log/Psr/Log/NullLogger.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/psr/log/Psr/Log/NullLogger.php @@ -1,6 +1,6 @@ logger) { }` * blocks. */ -class NullLogger extends AbstractLogger +class NullLogger extends \WPMailSMTP\Vendor\Psr\Log\AbstractLogger { /** * Logs with an arbitrary level. diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/AccountApi.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/AccountApi.php similarity index 53% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/AccountApi.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/AccountApi.php index cce0002..f069bd9 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/AccountApi.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/AccountApi.php @@ -1,4 +1,5 @@ client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); - $this->headerSelector = $selector ?: new HeaderSelector(); + public function __construct(\WPMailSMTP\Vendor\GuzzleHttp\ClientInterface $client = null, \WPMailSMTP\Vendor\SendinBlue\Client\Configuration $config = null, \WPMailSMTP\Vendor\SendinBlue\Client\HeaderSelector $selector = null) + { + $this->client = $client ?: new \WPMailSMTP\Vendor\GuzzleHttp\Client(); + $this->config = $config ?: new \WPMailSMTP\Vendor\SendinBlue\Client\Configuration(); + $this->headerSelector = $selector ?: new \WPMailSMTP\Vendor\SendinBlue\Client\HeaderSelector(); } - /** * @return Configuration */ @@ -86,11 +76,10 @@ class AccountApi { return $this->config; } - /** * Operation getAccount * - * Get your account informations, plans and credits details + * Get your account information, plan and credits details * * * @throws \SendinBlue\Client\ApiException on non-2xx response @@ -102,11 +91,10 @@ class AccountApi list($response) = $this->getAccountWithHttpInfo(); return $response; } - /** * Operation getAccountWithHttpInfo * - * Get your account informations, plans and credits details + * Get your account information, plan and credits details * * * @throws \SendinBlue\Client\ApiException on non-2xx response @@ -115,72 +103,44 @@ class AccountApi */ public function getAccountWithHttpInfo() { - $returnType = '\SendinBlue\Client\Model\GetAccount'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAccount'; $request = $this->getAccountRequest(); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\GetAccount', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAccount', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation getAccountAsync * - * Get your account informations, plans and credits details + * Get your account information, plan and credits details * * * @throws \InvalidArgumentException @@ -188,18 +148,14 @@ class AccountApi */ public function getAccountAsync() { - return $this->getAccountAsyncWithHttpInfo() - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->getAccountAsyncWithHttpInfo()->then(function ($response) { + return $response[0]; + }); } - /** * Operation getAccountAsyncWithHttpInfo * - * Get your account informations, plans and credits details + * Get your account information, plan and credits details * * * @throws \InvalidArgumentException @@ -207,46 +163,26 @@ class AccountApi */ public function getAccountAsyncWithHttpInfo() { - $returnType = '\SendinBlue\Client\Model\GetAccount'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAccount'; $request = $this->getAccountRequest(); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'getAccount' * @@ -256,66 +192,48 @@ class AccountApi */ protected function getAccountRequest() { - $resourcePath = '/account'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - - + $multipart = \false; // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -326,27 +244,14 @@ class AccountApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Create http client option * @@ -357,12 +262,11 @@ class AccountApi { $options = []; if ($this->config->getDebug()) { - $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); - if (!$options[RequestOptions::DEBUG]) { + $options[\WPMailSMTP\Vendor\GuzzleHttp\RequestOptions::DEBUG] = \fopen($this->config->getDebugFile(), 'a'); + if (!$options[\WPMailSMTP\Vendor\GuzzleHttp\RequestOptions::DEBUG]) { throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); } } - return $options; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/AttributesApi.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/AttributesApi.php similarity index 54% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/AttributesApi.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/AttributesApi.php index fc332c6..45a6087 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/AttributesApi.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/AttributesApi.php @@ -1,4 +1,5 @@ client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); - $this->headerSelector = $selector ?: new HeaderSelector(); + public function __construct(\WPMailSMTP\Vendor\GuzzleHttp\ClientInterface $client = null, \WPMailSMTP\Vendor\SendinBlue\Client\Configuration $config = null, \WPMailSMTP\Vendor\SendinBlue\Client\HeaderSelector $selector = null) + { + $this->client = $client ?: new \WPMailSMTP\Vendor\GuzzleHttp\Client(); + $this->config = $config ?: new \WPMailSMTP\Vendor\SendinBlue\Client\Configuration(); + $this->headerSelector = $selector ?: new \WPMailSMTP\Vendor\SendinBlue\Client\HeaderSelector(); } - /** * @return Configuration */ @@ -81,11 +76,10 @@ class AttributesApi { return $this->config; } - /** * Operation createAttribute * - * Creates contact attribute + * Create contact attribute * * @param string $attributeCategory Category of the attribute (required) * @param string $attributeName Name of the attribute (required) @@ -99,11 +93,10 @@ class AttributesApi { $this->createAttributeWithHttpInfo($attributeCategory, $attributeName, $createAttribute); } - /** * Operation createAttributeWithHttpInfo * - * Creates contact attribute + * Create contact attribute * * @param string $attributeCategory Category of the attribute (required) * @param string $attributeName Name of the attribute (required) @@ -117,56 +110,32 @@ class AttributesApi { $returnType = ''; $request = $this->createAttributeRequest($attributeCategory, $attributeName, $createAttribute); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation createAttributeAsync * - * Creates contact attribute + * Create contact attribute * * @param string $attributeCategory Category of the attribute (required) * @param string $attributeName Name of the attribute (required) @@ -177,18 +146,14 @@ class AttributesApi */ public function createAttributeAsync($attributeCategory, $attributeName, $createAttribute) { - return $this->createAttributeAsyncWithHttpInfo($attributeCategory, $attributeName, $createAttribute) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->createAttributeAsyncWithHttpInfo($attributeCategory, $attributeName, $createAttribute)->then(function ($response) { + return $response[0]; + }); } - /** * Operation createAttributeAsyncWithHttpInfo * - * Creates contact attribute + * Create contact attribute * * @param string $attributeCategory Category of the attribute (required) * @param string $attributeName Name of the attribute (required) @@ -201,30 +166,14 @@ class AttributesApi { $returnType = ''; $request = $this->createAttributeRequest($attributeCategory, $attributeName, $createAttribute); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - return [null, $response->getStatusCode(), $response->getHeaders()]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'createAttribute' * @@ -238,102 +187,70 @@ class AttributesApi protected function createAttributeRequest($attributeCategory, $attributeName, $createAttribute) { // verify the required parameter 'attributeCategory' is set - if ($attributeCategory === null || (is_array($attributeCategory) && count($attributeCategory) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $attributeCategory when calling createAttribute' - ); + if ($attributeCategory === null || \is_array($attributeCategory) && \count($attributeCategory) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $attributeCategory when calling createAttribute'); } // verify the required parameter 'attributeName' is set - if ($attributeName === null || (is_array($attributeName) && count($attributeName) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $attributeName when calling createAttribute' - ); + if ($attributeName === null || \is_array($attributeName) && \count($attributeName) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $attributeName when calling createAttribute'); } // verify the required parameter 'createAttribute' is set - if ($createAttribute === null || (is_array($createAttribute) && count($createAttribute) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $createAttribute when calling createAttribute' - ); + if ($createAttribute === null || \is_array($createAttribute) && \count($createAttribute) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $createAttribute when calling createAttribute'); } - $resourcePath = '/contacts/attributes/{attributeCategory}/{attributeName}'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($attributeCategory !== null) { - $resourcePath = str_replace( - '{' . 'attributeCategory' . '}', - ObjectSerializer::toPathValue($attributeCategory), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'attributeCategory' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($attributeCategory), $resourcePath); } // path params if ($attributeName !== null) { - $resourcePath = str_replace( - '{' . 'attributeName' . '}', - ObjectSerializer::toPathValue($attributeName), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'attributeName' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($attributeName), $resourcePath); } - // body params $_tempBody = null; if (isset($createAttribute)) { $_tempBody = $createAttribute; } - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -344,31 +261,18 @@ class AttributesApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation deleteAttribute * - * Deletes an attribute + * Delete an attribute * * @param string $attributeCategory Category of the attribute (required) * @param string $attributeName Name of the existing attribute (required) @@ -381,11 +285,10 @@ class AttributesApi { $this->deleteAttributeWithHttpInfo($attributeCategory, $attributeName); } - /** * Operation deleteAttributeWithHttpInfo * - * Deletes an attribute + * Delete an attribute * * @param string $attributeCategory Category of the attribute (required) * @param string $attributeName Name of the existing attribute (required) @@ -398,64 +301,36 @@ class AttributesApi { $returnType = ''; $request = $this->deleteAttributeRequest($attributeCategory, $attributeName); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation deleteAttributeAsync * - * Deletes an attribute + * Delete an attribute * * @param string $attributeCategory Category of the attribute (required) * @param string $attributeName Name of the existing attribute (required) @@ -465,18 +340,14 @@ class AttributesApi */ public function deleteAttributeAsync($attributeCategory, $attributeName) { - return $this->deleteAttributeAsyncWithHttpInfo($attributeCategory, $attributeName) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->deleteAttributeAsyncWithHttpInfo($attributeCategory, $attributeName)->then(function ($response) { + return $response[0]; + }); } - /** * Operation deleteAttributeAsyncWithHttpInfo * - * Deletes an attribute + * Delete an attribute * * @param string $attributeCategory Category of the attribute (required) * @param string $attributeName Name of the existing attribute (required) @@ -488,30 +359,14 @@ class AttributesApi { $returnType = ''; $request = $this->deleteAttributeRequest($attributeCategory, $attributeName); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - return [null, $response->getStatusCode(), $response->getHeaders()]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'deleteAttribute' * @@ -524,93 +379,63 @@ class AttributesApi protected function deleteAttributeRequest($attributeCategory, $attributeName) { // verify the required parameter 'attributeCategory' is set - if ($attributeCategory === null || (is_array($attributeCategory) && count($attributeCategory) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $attributeCategory when calling deleteAttribute' - ); + if ($attributeCategory === null || \is_array($attributeCategory) && \count($attributeCategory) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $attributeCategory when calling deleteAttribute'); } // verify the required parameter 'attributeName' is set - if ($attributeName === null || (is_array($attributeName) && count($attributeName) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $attributeName when calling deleteAttribute' - ); + if ($attributeName === null || \is_array($attributeName) && \count($attributeName) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $attributeName when calling deleteAttribute'); } - $resourcePath = '/contacts/attributes/{attributeCategory}/{attributeName}'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($attributeCategory !== null) { - $resourcePath = str_replace( - '{' . 'attributeCategory' . '}', - ObjectSerializer::toPathValue($attributeCategory), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'attributeCategory' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($attributeCategory), $resourcePath); } // path params if ($attributeName !== null) { - $resourcePath = str_replace( - '{' . 'attributeName' . '}', - ObjectSerializer::toPathValue($attributeName), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'attributeName' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($attributeName), $resourcePath); } - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -621,31 +446,18 @@ class AttributesApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'DELETE', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('DELETE', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation getAttributes * - * Lists all attributes + * List all attributes * * * @throws \SendinBlue\Client\ApiException on non-2xx response @@ -657,11 +469,10 @@ class AttributesApi list($response) = $this->getAttributesWithHttpInfo(); return $response; } - /** * Operation getAttributesWithHttpInfo * - * Lists all attributes + * List all attributes * * * @throws \SendinBlue\Client\ApiException on non-2xx response @@ -670,72 +481,44 @@ class AttributesApi */ public function getAttributesWithHttpInfo() { - $returnType = '\SendinBlue\Client\Model\GetAttributes'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAttributes'; $request = $this->getAttributesRequest(); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\GetAttributes', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAttributes', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation getAttributesAsync * - * Lists all attributes + * List all attributes * * * @throws \InvalidArgumentException @@ -743,18 +526,14 @@ class AttributesApi */ public function getAttributesAsync() { - return $this->getAttributesAsyncWithHttpInfo() - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->getAttributesAsyncWithHttpInfo()->then(function ($response) { + return $response[0]; + }); } - /** * Operation getAttributesAsyncWithHttpInfo * - * Lists all attributes + * List all attributes * * * @throws \InvalidArgumentException @@ -762,46 +541,26 @@ class AttributesApi */ public function getAttributesAsyncWithHttpInfo() { - $returnType = '\SendinBlue\Client\Model\GetAttributes'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAttributes'; $request = $this->getAttributesRequest(); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'getAttributes' * @@ -811,66 +570,48 @@ class AttributesApi */ protected function getAttributesRequest() { - $resourcePath = '/contacts/attributes'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - - + $multipart = \false; // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -881,31 +622,18 @@ class AttributesApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation updateAttribute * - * Updates contact attribute + * Update contact attribute * * @param string $attributeCategory Category of the attribute (required) * @param string $attributeName Name of the existing attribute (required) @@ -919,11 +647,10 @@ class AttributesApi { $this->updateAttributeWithHttpInfo($attributeCategory, $attributeName, $updateAttribute); } - /** * Operation updateAttributeWithHttpInfo * - * Updates contact attribute + * Update contact attribute * * @param string $attributeCategory Category of the attribute (required) * @param string $attributeName Name of the existing attribute (required) @@ -937,64 +664,36 @@ class AttributesApi { $returnType = ''; $request = $this->updateAttributeRequest($attributeCategory, $attributeName, $updateAttribute); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation updateAttributeAsync * - * Updates contact attribute + * Update contact attribute * * @param string $attributeCategory Category of the attribute (required) * @param string $attributeName Name of the existing attribute (required) @@ -1005,18 +704,14 @@ class AttributesApi */ public function updateAttributeAsync($attributeCategory, $attributeName, $updateAttribute) { - return $this->updateAttributeAsyncWithHttpInfo($attributeCategory, $attributeName, $updateAttribute) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->updateAttributeAsyncWithHttpInfo($attributeCategory, $attributeName, $updateAttribute)->then(function ($response) { + return $response[0]; + }); } - /** * Operation updateAttributeAsyncWithHttpInfo * - * Updates contact attribute + * Update contact attribute * * @param string $attributeCategory Category of the attribute (required) * @param string $attributeName Name of the existing attribute (required) @@ -1029,30 +724,14 @@ class AttributesApi { $returnType = ''; $request = $this->updateAttributeRequest($attributeCategory, $attributeName, $updateAttribute); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - return [null, $response->getStatusCode(), $response->getHeaders()]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'updateAttribute' * @@ -1066,102 +745,70 @@ class AttributesApi protected function updateAttributeRequest($attributeCategory, $attributeName, $updateAttribute) { // verify the required parameter 'attributeCategory' is set - if ($attributeCategory === null || (is_array($attributeCategory) && count($attributeCategory) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $attributeCategory when calling updateAttribute' - ); + if ($attributeCategory === null || \is_array($attributeCategory) && \count($attributeCategory) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $attributeCategory when calling updateAttribute'); } // verify the required parameter 'attributeName' is set - if ($attributeName === null || (is_array($attributeName) && count($attributeName) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $attributeName when calling updateAttribute' - ); + if ($attributeName === null || \is_array($attributeName) && \count($attributeName) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $attributeName when calling updateAttribute'); } // verify the required parameter 'updateAttribute' is set - if ($updateAttribute === null || (is_array($updateAttribute) && count($updateAttribute) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $updateAttribute when calling updateAttribute' - ); + if ($updateAttribute === null || \is_array($updateAttribute) && \count($updateAttribute) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $updateAttribute when calling updateAttribute'); } - $resourcePath = '/contacts/attributes/{attributeCategory}/{attributeName}'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($attributeCategory !== null) { - $resourcePath = str_replace( - '{' . 'attributeCategory' . '}', - ObjectSerializer::toPathValue($attributeCategory), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'attributeCategory' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($attributeCategory), $resourcePath); } // path params if ($attributeName !== null) { - $resourcePath = str_replace( - '{' . 'attributeName' . '}', - ObjectSerializer::toPathValue($attributeName), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'attributeName' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($attributeName), $resourcePath); } - // body params $_tempBody = null; if (isset($updateAttribute)) { $_tempBody = $updateAttribute; } - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -1172,27 +819,14 @@ class AttributesApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'PUT', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('PUT', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Create http client option * @@ -1203,12 +837,11 @@ class AttributesApi { $options = []; if ($this->config->getDebug()) { - $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); - if (!$options[RequestOptions::DEBUG]) { + $options[\WPMailSMTP\Vendor\GuzzleHttp\RequestOptions::DEBUG] = \fopen($this->config->getDebugFile(), 'a'); + if (!$options[\WPMailSMTP\Vendor\GuzzleHttp\RequestOptions::DEBUG]) { throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); } } - return $options; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/ContactsApi.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/ContactsApi.php similarity index 51% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/ContactsApi.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/ContactsApi.php index 37d589c..b04af4e 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/ContactsApi.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/ContactsApi.php @@ -1,4 +1,5 @@ client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); - $this->headerSelector = $selector ?: new HeaderSelector(); + public function __construct(\WPMailSMTP\Vendor\GuzzleHttp\ClientInterface $client = null, \WPMailSMTP\Vendor\SendinBlue\Client\Configuration $config = null, \WPMailSMTP\Vendor\SendinBlue\Client\HeaderSelector $selector = null) + { + $this->client = $client ?: new \WPMailSMTP\Vendor\GuzzleHttp\Client(); + $this->config = $config ?: new \WPMailSMTP\Vendor\SendinBlue\Client\Configuration(); + $this->headerSelector = $selector ?: new \WPMailSMTP\Vendor\SendinBlue\Client\HeaderSelector(); } - /** * @return Configuration */ @@ -86,7 +76,6 @@ class ContactsApi { return $this->config; } - /** * Operation addContactToList * @@ -104,7 +93,6 @@ class ContactsApi list($response) = $this->addContactToListWithHttpInfo($listId, $contactEmails); return $response; } - /** * Operation addContactToListWithHttpInfo * @@ -119,84 +107,48 @@ class ContactsApi */ public function addContactToListWithHttpInfo($listId, $contactEmails) { - $returnType = '\SendinBlue\Client\Model\PostContactInfo'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\PostContactInfo'; $request = $this->addContactToListRequest($listId, $contactEmails); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 201: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\PostContactInfo', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\PostContactInfo', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation addContactToListAsync * @@ -210,14 +162,10 @@ class ContactsApi */ public function addContactToListAsync($listId, $contactEmails) { - return $this->addContactToListAsyncWithHttpInfo($listId, $contactEmails) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->addContactToListAsyncWithHttpInfo($listId, $contactEmails)->then(function ($response) { + return $response[0]; + }); } - /** * Operation addContactToListAsyncWithHttpInfo * @@ -231,46 +179,26 @@ class ContactsApi */ public function addContactToListAsyncWithHttpInfo($listId, $contactEmails) { - $returnType = '\SendinBlue\Client\Model\PostContactInfo'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\PostContactInfo'; $request = $this->addContactToListRequest($listId, $contactEmails); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'addContactToList' * @@ -283,88 +211,62 @@ class ContactsApi protected function addContactToListRequest($listId, $contactEmails) { // verify the required parameter 'listId' is set - if ($listId === null || (is_array($listId) && count($listId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $listId when calling addContactToList' - ); + if ($listId === null || \is_array($listId) && \count($listId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $listId when calling addContactToList'); } // verify the required parameter 'contactEmails' is set - if ($contactEmails === null || (is_array($contactEmails) && count($contactEmails) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $contactEmails when calling addContactToList' - ); + if ($contactEmails === null || \is_array($contactEmails) && \count($contactEmails) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $contactEmails when calling addContactToList'); } - $resourcePath = '/contacts/lists/{listId}/contacts/add'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($listId !== null) { - $resourcePath = str_replace( - '{' . 'listId' . '}', - ObjectSerializer::toPathValue($listId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'listId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($listId), $resourcePath); } - // body params $_tempBody = null; if (isset($contactEmails)) { $_tempBody = $contactEmails; } - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -375,31 +277,18 @@ class ContactsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation createAttribute * - * Creates contact attribute + * Create contact attribute * * @param string $attributeCategory Category of the attribute (required) * @param string $attributeName Name of the attribute (required) @@ -413,11 +302,10 @@ class ContactsApi { $this->createAttributeWithHttpInfo($attributeCategory, $attributeName, $createAttribute); } - /** * Operation createAttributeWithHttpInfo * - * Creates contact attribute + * Create contact attribute * * @param string $attributeCategory Category of the attribute (required) * @param string $attributeName Name of the attribute (required) @@ -431,56 +319,32 @@ class ContactsApi { $returnType = ''; $request = $this->createAttributeRequest($attributeCategory, $attributeName, $createAttribute); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation createAttributeAsync * - * Creates contact attribute + * Create contact attribute * * @param string $attributeCategory Category of the attribute (required) * @param string $attributeName Name of the attribute (required) @@ -491,18 +355,14 @@ class ContactsApi */ public function createAttributeAsync($attributeCategory, $attributeName, $createAttribute) { - return $this->createAttributeAsyncWithHttpInfo($attributeCategory, $attributeName, $createAttribute) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->createAttributeAsyncWithHttpInfo($attributeCategory, $attributeName, $createAttribute)->then(function ($response) { + return $response[0]; + }); } - /** * Operation createAttributeAsyncWithHttpInfo * - * Creates contact attribute + * Create contact attribute * * @param string $attributeCategory Category of the attribute (required) * @param string $attributeName Name of the attribute (required) @@ -515,30 +375,14 @@ class ContactsApi { $returnType = ''; $request = $this->createAttributeRequest($attributeCategory, $attributeName, $createAttribute); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - return [null, $response->getStatusCode(), $response->getHeaders()]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'createAttribute' * @@ -552,102 +396,70 @@ class ContactsApi protected function createAttributeRequest($attributeCategory, $attributeName, $createAttribute) { // verify the required parameter 'attributeCategory' is set - if ($attributeCategory === null || (is_array($attributeCategory) && count($attributeCategory) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $attributeCategory when calling createAttribute' - ); + if ($attributeCategory === null || \is_array($attributeCategory) && \count($attributeCategory) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $attributeCategory when calling createAttribute'); } // verify the required parameter 'attributeName' is set - if ($attributeName === null || (is_array($attributeName) && count($attributeName) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $attributeName when calling createAttribute' - ); + if ($attributeName === null || \is_array($attributeName) && \count($attributeName) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $attributeName when calling createAttribute'); } // verify the required parameter 'createAttribute' is set - if ($createAttribute === null || (is_array($createAttribute) && count($createAttribute) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $createAttribute when calling createAttribute' - ); + if ($createAttribute === null || \is_array($createAttribute) && \count($createAttribute) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $createAttribute when calling createAttribute'); } - $resourcePath = '/contacts/attributes/{attributeCategory}/{attributeName}'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($attributeCategory !== null) { - $resourcePath = str_replace( - '{' . 'attributeCategory' . '}', - ObjectSerializer::toPathValue($attributeCategory), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'attributeCategory' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($attributeCategory), $resourcePath); } // path params if ($attributeName !== null) { - $resourcePath = str_replace( - '{' . 'attributeName' . '}', - ObjectSerializer::toPathValue($attributeName), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'attributeName' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($attributeName), $resourcePath); } - // body params $_tempBody = null; if (isset($createAttribute)) { $_tempBody = $createAttribute; } - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -658,27 +470,14 @@ class ContactsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation createContact * @@ -695,7 +494,6 @@ class ContactsApi list($response) = $this->createContactWithHttpInfo($createContact); return $response; } - /** * Operation createContactWithHttpInfo * @@ -709,84 +507,48 @@ class ContactsApi */ public function createContactWithHttpInfo($createContact) { - $returnType = '\SendinBlue\Client\Model\CreateUpdateContactModel'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateUpdateContactModel'; $request = $this->createContactRequest($createContact); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 201: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\CreateUpdateContactModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateUpdateContactModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 204: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\CreateUpdateContactModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateUpdateContactModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation createContactAsync * @@ -799,14 +561,10 @@ class ContactsApi */ public function createContactAsync($createContact) { - return $this->createContactAsyncWithHttpInfo($createContact) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->createContactAsyncWithHttpInfo($createContact)->then(function ($response) { + return $response[0]; + }); } - /** * Operation createContactAsyncWithHttpInfo * @@ -819,46 +577,26 @@ class ContactsApi */ public function createContactAsyncWithHttpInfo($createContact) { - $returnType = '\SendinBlue\Client\Model\CreateUpdateContactModel'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateUpdateContactModel'; $request = $this->createContactRequest($createContact); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'createContact' * @@ -870,74 +608,54 @@ class ContactsApi protected function createContactRequest($createContact) { // verify the required parameter 'createContact' is set - if ($createContact === null || (is_array($createContact) && count($createContact) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $createContact when calling createContact' - ); + if ($createContact === null || \is_array($createContact) && \count($createContact) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $createContact when calling createContact'); } - $resourcePath = '/contacts'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - - + $multipart = \false; // body params $_tempBody = null; if (isset($createContact)) { $_tempBody = $createContact; } - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -948,27 +666,181 @@ class ContactsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); + } + /** + * Operation createDoiContact + * + * Create Contact via DOI (Double-Opt-In) Flow + * + * @param \SendinBlue\Client\Model\CreateDoiContact $createDoiContact Values to create the Double opt-in (DOI) contact (required) + * + * @throws \SendinBlue\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return void + */ + public function createDoiContact($createDoiContact) + { + $this->createDoiContactWithHttpInfo($createDoiContact); + } + /** + * Operation createDoiContactWithHttpInfo + * + * Create Contact via DOI (Double-Opt-In) Flow + * + * @param \SendinBlue\Client\Model\CreateDoiContact $createDoiContact Values to create the Double opt-in (DOI) contact (required) + * + * @throws \SendinBlue\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function createDoiContactWithHttpInfo($createDoiContact) + { + $returnType = ''; + $request = $this->createDoiContactRequest($createDoiContact); + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); + } + $statusCode = $response->getStatusCode(); + if ($statusCode < 200 || $statusCode > 299) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + } + return [null, $statusCode, $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { + switch ($e->getCode()) { + case 400: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + /** + * Operation createDoiContactAsync + * + * Create Contact via DOI (Double-Opt-In) Flow + * + * @param \SendinBlue\Client\Model\CreateDoiContact $createDoiContact Values to create the Double opt-in (DOI) contact (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createDoiContactAsync($createDoiContact) + { + return $this->createDoiContactAsyncWithHttpInfo($createDoiContact)->then(function ($response) { + return $response[0]; + }); + } + /** + * Operation createDoiContactAsyncWithHttpInfo + * + * Create Contact via DOI (Double-Opt-In) Flow + * + * @param \SendinBlue\Client\Model\CreateDoiContact $createDoiContact Values to create the Double opt-in (DOI) contact (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createDoiContactAsyncWithHttpInfo($createDoiContact) + { + $returnType = ''; + $request = $this->createDoiContactRequest($createDoiContact); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); + } + /** + * Create request for operation 'createDoiContact' + * + * @param \SendinBlue\Client\Model\CreateDoiContact $createDoiContact Values to create the Double opt-in (DOI) contact (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function createDoiContactRequest($createDoiContact) + { + // verify the required parameter 'createDoiContact' is set + if ($createDoiContact === null || \is_array($createDoiContact) && \count($createDoiContact) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $createDoiContact when calling createDoiContact'); + } + $resourcePath = '/contacts/doubleOptinConfirmation'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = \false; + // body params + $_tempBody = null; + if (isset($createDoiContact)) { + $_tempBody = $createDoiContact; + } + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); + } else { + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); + } + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + if ($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); + } + } + } elseif (\count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; + } + // for HTTP post (form) + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); + } else { + // for HTTP post (form) + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); + } + } + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('api-key'); + if ($apiKey !== null) { + $headers['api-key'] = $apiKey; + } + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('partner-key'); + if ($apiKey !== null) { + $headers['partner-key'] = $apiKey; + } + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation createFolder * @@ -985,7 +857,6 @@ class ContactsApi list($response) = $this->createFolderWithHttpInfo($createFolder); return $response; } - /** * Operation createFolderWithHttpInfo * @@ -999,76 +870,44 @@ class ContactsApi */ public function createFolderWithHttpInfo($createFolder) { - $returnType = '\SendinBlue\Client\Model\CreateModel'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateModel'; $request = $this->createFolderRequest($createFolder); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 201: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\CreateModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation createFolderAsync * @@ -1081,14 +920,10 @@ class ContactsApi */ public function createFolderAsync($createFolder) { - return $this->createFolderAsyncWithHttpInfo($createFolder) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->createFolderAsyncWithHttpInfo($createFolder)->then(function ($response) { + return $response[0]; + }); } - /** * Operation createFolderAsyncWithHttpInfo * @@ -1101,46 +936,26 @@ class ContactsApi */ public function createFolderAsyncWithHttpInfo($createFolder) { - $returnType = '\SendinBlue\Client\Model\CreateModel'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateModel'; $request = $this->createFolderRequest($createFolder); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'createFolder' * @@ -1152,74 +967,54 @@ class ContactsApi protected function createFolderRequest($createFolder) { // verify the required parameter 'createFolder' is set - if ($createFolder === null || (is_array($createFolder) && count($createFolder) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $createFolder when calling createFolder' - ); + if ($createFolder === null || \is_array($createFolder) && \count($createFolder) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $createFolder when calling createFolder'); } - $resourcePath = '/contacts/folders'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - - + $multipart = \false; // body params $_tempBody = null; if (isset($createFolder)) { $_tempBody = $createFolder; } - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -1230,27 +1025,14 @@ class ContactsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation createList * @@ -1267,7 +1049,6 @@ class ContactsApi list($response) = $this->createListWithHttpInfo($createList); return $response; } - /** * Operation createListWithHttpInfo * @@ -1281,76 +1062,44 @@ class ContactsApi */ public function createListWithHttpInfo($createList) { - $returnType = '\SendinBlue\Client\Model\CreateModel'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateModel'; $request = $this->createListRequest($createList); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 201: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\CreateModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation createListAsync * @@ -1363,14 +1112,10 @@ class ContactsApi */ public function createListAsync($createList) { - return $this->createListAsyncWithHttpInfo($createList) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->createListAsyncWithHttpInfo($createList)->then(function ($response) { + return $response[0]; + }); } - /** * Operation createListAsyncWithHttpInfo * @@ -1383,46 +1128,26 @@ class ContactsApi */ public function createListAsyncWithHttpInfo($createList) { - $returnType = '\SendinBlue\Client\Model\CreateModel'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateModel'; $request = $this->createListRequest($createList); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'createList' * @@ -1434,74 +1159,54 @@ class ContactsApi protected function createListRequest($createList) { // verify the required parameter 'createList' is set - if ($createList === null || (is_array($createList) && count($createList) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $createList when calling createList' - ); + if ($createList === null || \is_array($createList) && \count($createList) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $createList when calling createList'); } - $resourcePath = '/contacts/lists'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - - + $multipart = \false; // body params $_tempBody = null; if (isset($createList)) { $_tempBody = $createList; } - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -1512,31 +1217,18 @@ class ContactsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation deleteAttribute * - * Deletes an attribute + * Delete an attribute * * @param string $attributeCategory Category of the attribute (required) * @param string $attributeName Name of the existing attribute (required) @@ -1549,11 +1241,10 @@ class ContactsApi { $this->deleteAttributeWithHttpInfo($attributeCategory, $attributeName); } - /** * Operation deleteAttributeWithHttpInfo * - * Deletes an attribute + * Delete an attribute * * @param string $attributeCategory Category of the attribute (required) * @param string $attributeName Name of the existing attribute (required) @@ -1566,64 +1257,36 @@ class ContactsApi { $returnType = ''; $request = $this->deleteAttributeRequest($attributeCategory, $attributeName); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation deleteAttributeAsync * - * Deletes an attribute + * Delete an attribute * * @param string $attributeCategory Category of the attribute (required) * @param string $attributeName Name of the existing attribute (required) @@ -1633,18 +1296,14 @@ class ContactsApi */ public function deleteAttributeAsync($attributeCategory, $attributeName) { - return $this->deleteAttributeAsyncWithHttpInfo($attributeCategory, $attributeName) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->deleteAttributeAsyncWithHttpInfo($attributeCategory, $attributeName)->then(function ($response) { + return $response[0]; + }); } - /** * Operation deleteAttributeAsyncWithHttpInfo * - * Deletes an attribute + * Delete an attribute * * @param string $attributeCategory Category of the attribute (required) * @param string $attributeName Name of the existing attribute (required) @@ -1656,30 +1315,14 @@ class ContactsApi { $returnType = ''; $request = $this->deleteAttributeRequest($attributeCategory, $attributeName); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - return [null, $response->getStatusCode(), $response->getHeaders()]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'deleteAttribute' * @@ -1692,93 +1335,63 @@ class ContactsApi protected function deleteAttributeRequest($attributeCategory, $attributeName) { // verify the required parameter 'attributeCategory' is set - if ($attributeCategory === null || (is_array($attributeCategory) && count($attributeCategory) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $attributeCategory when calling deleteAttribute' - ); + if ($attributeCategory === null || \is_array($attributeCategory) && \count($attributeCategory) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $attributeCategory when calling deleteAttribute'); } // verify the required parameter 'attributeName' is set - if ($attributeName === null || (is_array($attributeName) && count($attributeName) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $attributeName when calling deleteAttribute' - ); + if ($attributeName === null || \is_array($attributeName) && \count($attributeName) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $attributeName when calling deleteAttribute'); } - $resourcePath = '/contacts/attributes/{attributeCategory}/{attributeName}'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($attributeCategory !== null) { - $resourcePath = str_replace( - '{' . 'attributeCategory' . '}', - ObjectSerializer::toPathValue($attributeCategory), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'attributeCategory' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($attributeCategory), $resourcePath); } // path params if ($attributeName !== null) { - $resourcePath = str_replace( - '{' . 'attributeName' . '}', - ObjectSerializer::toPathValue($attributeName), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'attributeName' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($attributeName), $resourcePath); } - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -1789,31 +1402,18 @@ class ContactsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'DELETE', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('DELETE', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation deleteContact * - * Deletes a contact + * Delete a contact * * @param string $email Email (urlencoded) of the contact (required) * @@ -1825,11 +1425,10 @@ class ContactsApi { $this->deleteContactWithHttpInfo($email); } - /** * Operation deleteContactWithHttpInfo * - * Deletes a contact + * Delete a contact * * @param string $email Email (urlencoded) of the contact (required) * @@ -1841,72 +1440,40 @@ class ContactsApi { $returnType = ''; $request = $this->deleteContactRequest($email); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 405: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation deleteContactAsync * - * Deletes a contact + * Delete a contact * * @param string $email Email (urlencoded) of the contact (required) * @@ -1915,18 +1482,14 @@ class ContactsApi */ public function deleteContactAsync($email) { - return $this->deleteContactAsyncWithHttpInfo($email) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->deleteContactAsyncWithHttpInfo($email)->then(function ($response) { + return $response[0]; + }); } - /** * Operation deleteContactAsyncWithHttpInfo * - * Deletes a contact + * Delete a contact * * @param string $email Email (urlencoded) of the contact (required) * @@ -1937,30 +1500,14 @@ class ContactsApi { $returnType = ''; $request = $this->deleteContactRequest($email); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - return [null, $response->getStatusCode(), $response->getHeaders()]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'deleteContact' * @@ -1972,79 +1519,55 @@ class ContactsApi protected function deleteContactRequest($email) { // verify the required parameter 'email' is set - if ($email === null || (is_array($email) && count($email) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $email when calling deleteContact' - ); + if ($email === null || \is_array($email) && \count($email) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $email when calling deleteContact'); } - $resourcePath = '/contacts/{email}'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($email !== null) { - $resourcePath = str_replace( - '{' . 'email' . '}', - ObjectSerializer::toPathValue($email), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'email' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($email), $resourcePath); } - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -2055,27 +1578,14 @@ class ContactsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'DELETE', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('DELETE', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation deleteFolder * @@ -2091,7 +1601,6 @@ class ContactsApi { $this->deleteFolderWithHttpInfo($folderId); } - /** * Operation deleteFolderWithHttpInfo * @@ -2107,60 +1616,32 @@ class ContactsApi { $returnType = ''; $request = $this->deleteFolderRequest($folderId); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation deleteFolderAsync * @@ -2173,14 +1654,10 @@ class ContactsApi */ public function deleteFolderAsync($folderId) { - return $this->deleteFolderAsyncWithHttpInfo($folderId) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->deleteFolderAsyncWithHttpInfo($folderId)->then(function ($response) { + return $response[0]; + }); } - /** * Operation deleteFolderAsyncWithHttpInfo * @@ -2195,30 +1672,14 @@ class ContactsApi { $returnType = ''; $request = $this->deleteFolderRequest($folderId); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - return [null, $response->getStatusCode(), $response->getHeaders()]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'deleteFolder' * @@ -2230,79 +1691,55 @@ class ContactsApi protected function deleteFolderRequest($folderId) { // verify the required parameter 'folderId' is set - if ($folderId === null || (is_array($folderId) && count($folderId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $folderId when calling deleteFolder' - ); + if ($folderId === null || \is_array($folderId) && \count($folderId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $folderId when calling deleteFolder'); } - $resourcePath = '/contacts/folders/{folderId}'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($folderId !== null) { - $resourcePath = str_replace( - '{' . 'folderId' . '}', - ObjectSerializer::toPathValue($folderId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'folderId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($folderId), $resourcePath); } - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -2313,27 +1750,14 @@ class ContactsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'DELETE', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('DELETE', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation deleteList * @@ -2349,7 +1773,6 @@ class ContactsApi { $this->deleteListWithHttpInfo($listId); } - /** * Operation deleteListWithHttpInfo * @@ -2365,60 +1788,32 @@ class ContactsApi { $returnType = ''; $request = $this->deleteListRequest($listId); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation deleteListAsync * @@ -2431,14 +1826,10 @@ class ContactsApi */ public function deleteListAsync($listId) { - return $this->deleteListAsyncWithHttpInfo($listId) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->deleteListAsyncWithHttpInfo($listId)->then(function ($response) { + return $response[0]; + }); } - /** * Operation deleteListAsyncWithHttpInfo * @@ -2453,30 +1844,14 @@ class ContactsApi { $returnType = ''; $request = $this->deleteListRequest($listId); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - return [null, $response->getStatusCode(), $response->getHeaders()]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'deleteList' * @@ -2488,79 +1863,55 @@ class ContactsApi protected function deleteListRequest($listId) { // verify the required parameter 'listId' is set - if ($listId === null || (is_array($listId) && count($listId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $listId when calling deleteList' - ); + if ($listId === null || \is_array($listId) && \count($listId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $listId when calling deleteList'); } - $resourcePath = '/contacts/lists/{listId}'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($listId !== null) { - $resourcePath = str_replace( - '{' . 'listId' . '}', - ObjectSerializer::toPathValue($listId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'listId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($listId), $resourcePath); } - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -2571,31 +1922,18 @@ class ContactsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'DELETE', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('DELETE', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation getAttributes * - * Lists all attributes + * List all attributes * * * @throws \SendinBlue\Client\ApiException on non-2xx response @@ -2607,11 +1945,10 @@ class ContactsApi list($response) = $this->getAttributesWithHttpInfo(); return $response; } - /** * Operation getAttributesWithHttpInfo * - * Lists all attributes + * List all attributes * * * @throws \SendinBlue\Client\ApiException on non-2xx response @@ -2620,72 +1957,44 @@ class ContactsApi */ public function getAttributesWithHttpInfo() { - $returnType = '\SendinBlue\Client\Model\GetAttributes'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAttributes'; $request = $this->getAttributesRequest(); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\GetAttributes', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAttributes', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation getAttributesAsync * - * Lists all attributes + * List all attributes * * * @throws \InvalidArgumentException @@ -2693,18 +2002,14 @@ class ContactsApi */ public function getAttributesAsync() { - return $this->getAttributesAsyncWithHttpInfo() - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->getAttributesAsyncWithHttpInfo()->then(function ($response) { + return $response[0]; + }); } - /** * Operation getAttributesAsyncWithHttpInfo * - * Lists all attributes + * List all attributes * * * @throws \InvalidArgumentException @@ -2712,46 +2017,26 @@ class ContactsApi */ public function getAttributesAsyncWithHttpInfo() { - $returnType = '\SendinBlue\Client\Model\GetAttributes'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAttributes'; $request = $this->getAttributesRequest(); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'getAttributes' * @@ -2761,66 +2046,48 @@ class ContactsApi */ protected function getAttributesRequest() { - $resourcePath = '/contacts/attributes'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - - + $multipart = \false; // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -2831,31 +2098,18 @@ class ContactsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation getContactInfo * - * Retrieves contact informations + * Get a contact's details * * @param string $email Email (urlencoded) of the contact OR its SMS attribute value (required) * @@ -2868,11 +2122,10 @@ class ContactsApi list($response) = $this->getContactInfoWithHttpInfo($email); return $response; } - /** * Operation getContactInfoWithHttpInfo * - * Retrieves contact informations + * Get a contact's details * * @param string $email Email (urlencoded) of the contact OR its SMS attribute value (required) * @@ -2882,88 +2135,52 @@ class ContactsApi */ public function getContactInfoWithHttpInfo($email) { - $returnType = '\SendinBlue\Client\Model\GetExtendedContactDetails'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetails'; $request = $this->getContactInfoRequest($email); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\GetExtendedContactDetails', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetails', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation getContactInfoAsync * - * Retrieves contact informations + * Get a contact's details * * @param string $email Email (urlencoded) of the contact OR its SMS attribute value (required) * @@ -2972,18 +2189,14 @@ class ContactsApi */ public function getContactInfoAsync($email) { - return $this->getContactInfoAsyncWithHttpInfo($email) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->getContactInfoAsyncWithHttpInfo($email)->then(function ($response) { + return $response[0]; + }); } - /** * Operation getContactInfoAsyncWithHttpInfo * - * Retrieves contact informations + * Get a contact's details * * @param string $email Email (urlencoded) of the contact OR its SMS attribute value (required) * @@ -2992,46 +2205,26 @@ class ContactsApi */ public function getContactInfoAsyncWithHttpInfo($email) { - $returnType = '\SendinBlue\Client\Model\GetExtendedContactDetails'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetails'; $request = $this->getContactInfoRequest($email); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'getContactInfo' * @@ -3043,79 +2236,55 @@ class ContactsApi protected function getContactInfoRequest($email) { // verify the required parameter 'email' is set - if ($email === null || (is_array($email) && count($email) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $email when calling getContactInfo' - ); + if ($email === null || \is_array($email) && \count($email) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $email when calling getContactInfo'); } - $resourcePath = '/contacts/{email}'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($email !== null) { - $resourcePath = str_replace( - '{' . 'email' . '}', - ObjectSerializer::toPathValue($email), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'email' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($email), $resourcePath); } - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -3126,291 +2295,211 @@ class ContactsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation getContactStats * - * Get the campaigns statistics for a contact + * Get email campaigns' statistics for a contact * * @param string $email Email address (urlencoded) of the contact (required) + * @param \DateTime $startDate Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be lower than equal to endDate (optional) + * @param \DateTime $endDate Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be greater than equal to startDate (optional) * * @throws \SendinBlue\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \SendinBlue\Client\Model\GetContactCampaignStats */ - public function getContactStats($email) + public function getContactStats($email, $startDate = null, $endDate = null) { - list($response) = $this->getContactStatsWithHttpInfo($email); + list($response) = $this->getContactStatsWithHttpInfo($email, $startDate, $endDate); return $response; } - /** * Operation getContactStatsWithHttpInfo * - * Get the campaigns statistics for a contact + * Get email campaigns' statistics for a contact * * @param string $email Email address (urlencoded) of the contact (required) + * @param \DateTime $startDate Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be lower than equal to endDate (optional) + * @param \DateTime $endDate Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be greater than equal to startDate (optional) * * @throws \SendinBlue\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \SendinBlue\Client\Model\GetContactCampaignStats, HTTP status code, HTTP response headers (array of strings) */ - public function getContactStatsWithHttpInfo($email) + public function getContactStatsWithHttpInfo($email, $startDate = null, $endDate = null) { - $returnType = '\SendinBlue\Client\Model\GetContactCampaignStats'; - $request = $this->getContactStatsRequest($email); - + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetContactCampaignStats'; + $request = $this->getContactStatsRequest($email, $startDate, $endDate); try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\GetContactCampaignStats', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetContactCampaignStats', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation getContactStatsAsync * - * Get the campaigns statistics for a contact + * Get email campaigns' statistics for a contact * * @param string $email Email address (urlencoded) of the contact (required) + * @param \DateTime $startDate Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be lower than equal to endDate (optional) + * @param \DateTime $endDate Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be greater than equal to startDate (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getContactStatsAsync($email) + public function getContactStatsAsync($email, $startDate = null, $endDate = null) { - return $this->getContactStatsAsyncWithHttpInfo($email) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->getContactStatsAsyncWithHttpInfo($email, $startDate, $endDate)->then(function ($response) { + return $response[0]; + }); } - /** * Operation getContactStatsAsyncWithHttpInfo * - * Get the campaigns statistics for a contact + * Get email campaigns' statistics for a contact * * @param string $email Email address (urlencoded) of the contact (required) + * @param \DateTime $startDate Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be lower than equal to endDate (optional) + * @param \DateTime $endDate Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be greater than equal to startDate (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getContactStatsAsyncWithHttpInfo($email) + public function getContactStatsAsyncWithHttpInfo($email, $startDate = null, $endDate = null) { - $returnType = '\SendinBlue\Client\Model\GetContactCampaignStats'; - $request = $this->getContactStatsRequest($email); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetContactCampaignStats'; + $request = $this->getContactStatsRequest($email, $startDate, $endDate); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'getContactStats' * * @param string $email Email address (urlencoded) of the contact (required) + * @param \DateTime $startDate Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be lower than equal to endDate (optional) + * @param \DateTime $endDate Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be greater than equal to startDate (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function getContactStatsRequest($email) + protected function getContactStatsRequest($email, $startDate = null, $endDate = null) { // verify the required parameter 'email' is set - if ($email === null || (is_array($email) && count($email) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $email when calling getContactStats' - ); + if ($email === null || \is_array($email) && \count($email) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $email when calling getContactStats'); } - $resourcePath = '/contacts/{email}/campaignStats'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; + // query params + if ($startDate !== null) { + $queryParams['startDate'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($startDate); + } + // query params + if ($endDate !== null) { + $queryParams['endDate'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($endDate); + } // path params if ($email !== null) { - $resourcePath = str_replace( - '{' . 'email' . '}', - ObjectSerializer::toPathValue($email), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'email' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($email), $resourcePath); } - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -3421,27 +2510,14 @@ class ContactsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation getContacts * @@ -3460,7 +2536,6 @@ class ContactsApi list($response) = $this->getContactsWithHttpInfo($limit, $offset, $modifiedSince); return $response; } - /** * Operation getContactsWithHttpInfo * @@ -3476,76 +2551,44 @@ class ContactsApi */ public function getContactsWithHttpInfo($limit = '50', $offset = '0', $modifiedSince = null) { - $returnType = '\SendinBlue\Client\Model\GetContacts'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetContacts'; $request = $this->getContactsRequest($limit, $offset, $modifiedSince); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\GetContacts', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetContacts', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation getContactsAsync * @@ -3560,14 +2603,10 @@ class ContactsApi */ public function getContactsAsync($limit = '50', $offset = '0', $modifiedSince = null) { - return $this->getContactsAsyncWithHttpInfo($limit, $offset, $modifiedSince) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->getContactsAsyncWithHttpInfo($limit, $offset, $modifiedSince)->then(function ($response) { + return $response[0]; + }); } - /** * Operation getContactsAsyncWithHttpInfo * @@ -3582,46 +2621,26 @@ class ContactsApi */ public function getContactsAsyncWithHttpInfo($limit = '50', $offset = '0', $modifiedSince = null) { - $returnType = '\SendinBlue\Client\Model\GetContacts'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetContacts'; $request = $this->getContactsRequest($limit, $offset, $modifiedSince); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'getContacts' * @@ -3637,79 +2656,60 @@ class ContactsApi if ($limit !== null && $limit > 1000) { throw new \InvalidArgumentException('invalid value for "$limit" when calling ContactsApi.getContacts, must be smaller than or equal to 1000.'); } - - $resourcePath = '/contacts'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - + $multipart = \false; // query params if ($limit !== null) { - $queryParams['limit'] = ObjectSerializer::toQueryValue($limit); + $queryParams['limit'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($limit); } // query params if ($offset !== null) { - $queryParams['offset'] = ObjectSerializer::toQueryValue($offset); + $queryParams['offset'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($offset); } // query params if ($modifiedSince !== null) { - $queryParams['modifiedSince'] = ObjectSerializer::toQueryValue($modifiedSince); + $queryParams['modifiedSince'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($modifiedSince); } - - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -3720,31 +2720,18 @@ class ContactsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation getContactsFromList * - * Get the contacts in a list + * Get contacts in a list * * @param int $listId Id of the list (required) * @param \DateTime $modifiedSince Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. (optional) @@ -3760,11 +2747,10 @@ class ContactsApi list($response) = $this->getContactsFromListWithHttpInfo($listId, $modifiedSince, $limit, $offset); return $response; } - /** * Operation getContactsFromListWithHttpInfo * - * Get the contacts in a list + * Get contacts in a list * * @param int $listId Id of the list (required) * @param \DateTime $modifiedSince Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. (optional) @@ -3777,88 +2763,52 @@ class ContactsApi */ public function getContactsFromListWithHttpInfo($listId, $modifiedSince = null, $limit = '50', $offset = '0') { - $returnType = '\SendinBlue\Client\Model\GetContacts'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetContacts'; $request = $this->getContactsFromListRequest($listId, $modifiedSince, $limit, $offset); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\GetContacts', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetContacts', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation getContactsFromListAsync * - * Get the contacts in a list + * Get contacts in a list * * @param int $listId Id of the list (required) * @param \DateTime $modifiedSince Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. (optional) @@ -3870,18 +2820,14 @@ class ContactsApi */ public function getContactsFromListAsync($listId, $modifiedSince = null, $limit = '50', $offset = '0') { - return $this->getContactsFromListAsyncWithHttpInfo($listId, $modifiedSince, $limit, $offset) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->getContactsFromListAsyncWithHttpInfo($listId, $modifiedSince, $limit, $offset)->then(function ($response) { + return $response[0]; + }); } - /** * Operation getContactsFromListAsyncWithHttpInfo * - * Get the contacts in a list + * Get contacts in a list * * @param int $listId Id of the list (required) * @param \DateTime $modifiedSince Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. (optional) @@ -3893,46 +2839,26 @@ class ContactsApi */ public function getContactsFromListAsyncWithHttpInfo($listId, $modifiedSince = null, $limit = '50', $offset = '0') { - $returnType = '\SendinBlue\Client\Model\GetContacts'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetContacts'; $request = $this->getContactsFromListRequest($listId, $modifiedSince, $limit, $offset); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'getContactsFromList' * @@ -3947,95 +2873,70 @@ class ContactsApi protected function getContactsFromListRequest($listId, $modifiedSince = null, $limit = '50', $offset = '0') { // verify the required parameter 'listId' is set - if ($listId === null || (is_array($listId) && count($listId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $listId when calling getContactsFromList' - ); + if ($listId === null || \is_array($listId) && \count($listId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $listId when calling getContactsFromList'); } if ($limit !== null && $limit > 500) { throw new \InvalidArgumentException('invalid value for "$limit" when calling ContactsApi.getContactsFromList, must be smaller than or equal to 500.'); } - - $resourcePath = '/contacts/lists/{listId}/contacts'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - + $multipart = \false; // query params if ($modifiedSince !== null) { - $queryParams['modifiedSince'] = ObjectSerializer::toQueryValue($modifiedSince); + $queryParams['modifiedSince'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($modifiedSince); } // query params if ($limit !== null) { - $queryParams['limit'] = ObjectSerializer::toQueryValue($limit); + $queryParams['limit'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($limit); } // query params if ($offset !== null) { - $queryParams['offset'] = ObjectSerializer::toQueryValue($offset); + $queryParams['offset'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($offset); } - // path params if ($listId !== null) { - $resourcePath = str_replace( - '{' . 'listId' . '}', - ObjectSerializer::toPathValue($listId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'listId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($listId), $resourcePath); } - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -4046,31 +2947,18 @@ class ContactsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation getFolder * - * Returns folder details + * Returns a folder's details * * @param int $folderId id of the folder (required) * @@ -4083,11 +2971,10 @@ class ContactsApi list($response) = $this->getFolderWithHttpInfo($folderId); return $response; } - /** * Operation getFolderWithHttpInfo * - * Returns folder details + * Returns a folder's details * * @param int $folderId id of the folder (required) * @@ -4097,88 +2984,52 @@ class ContactsApi */ public function getFolderWithHttpInfo($folderId) { - $returnType = '\SendinBlue\Client\Model\GetFolder'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetFolder'; $request = $this->getFolderRequest($folderId); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\GetFolder', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetFolder', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation getFolderAsync * - * Returns folder details + * Returns a folder's details * * @param int $folderId id of the folder (required) * @@ -4187,18 +3038,14 @@ class ContactsApi */ public function getFolderAsync($folderId) { - return $this->getFolderAsyncWithHttpInfo($folderId) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->getFolderAsyncWithHttpInfo($folderId)->then(function ($response) { + return $response[0]; + }); } - /** * Operation getFolderAsyncWithHttpInfo * - * Returns folder details + * Returns a folder's details * * @param int $folderId id of the folder (required) * @@ -4207,46 +3054,26 @@ class ContactsApi */ public function getFolderAsyncWithHttpInfo($folderId) { - $returnType = '\SendinBlue\Client\Model\GetFolder'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetFolder'; $request = $this->getFolderRequest($folderId); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'getFolder' * @@ -4258,79 +3085,55 @@ class ContactsApi protected function getFolderRequest($folderId) { // verify the required parameter 'folderId' is set - if ($folderId === null || (is_array($folderId) && count($folderId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $folderId when calling getFolder' - ); + if ($folderId === null || \is_array($folderId) && \count($folderId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $folderId when calling getFolder'); } - $resourcePath = '/contacts/folders/{folderId}'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($folderId !== null) { - $resourcePath = str_replace( - '{' . 'folderId' . '}', - ObjectSerializer::toPathValue($folderId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'folderId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($folderId), $resourcePath); } - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -4341,31 +3144,18 @@ class ContactsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation getFolderLists * - * Get the lists in a folder + * Get lists in a folder * * @param int $folderId Id of the folder (required) * @param int $limit Number of documents per page (optional, default to 10) @@ -4380,11 +3170,10 @@ class ContactsApi list($response) = $this->getFolderListsWithHttpInfo($folderId, $limit, $offset); return $response; } - /** * Operation getFolderListsWithHttpInfo * - * Get the lists in a folder + * Get lists in a folder * * @param int $folderId Id of the folder (required) * @param int $limit Number of documents per page (optional, default to 10) @@ -4396,88 +3185,52 @@ class ContactsApi */ public function getFolderListsWithHttpInfo($folderId, $limit = '10', $offset = '0') { - $returnType = '\SendinBlue\Client\Model\GetFolderLists'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetFolderLists'; $request = $this->getFolderListsRequest($folderId, $limit, $offset); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\GetFolderLists', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetFolderLists', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation getFolderListsAsync * - * Get the lists in a folder + * Get lists in a folder * * @param int $folderId Id of the folder (required) * @param int $limit Number of documents per page (optional, default to 10) @@ -4488,18 +3241,14 @@ class ContactsApi */ public function getFolderListsAsync($folderId, $limit = '10', $offset = '0') { - return $this->getFolderListsAsyncWithHttpInfo($folderId, $limit, $offset) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->getFolderListsAsyncWithHttpInfo($folderId, $limit, $offset)->then(function ($response) { + return $response[0]; + }); } - /** * Operation getFolderListsAsyncWithHttpInfo * - * Get the lists in a folder + * Get lists in a folder * * @param int $folderId Id of the folder (required) * @param int $limit Number of documents per page (optional, default to 10) @@ -4510,46 +3259,26 @@ class ContactsApi */ public function getFolderListsAsyncWithHttpInfo($folderId, $limit = '10', $offset = '0') { - $returnType = '\SendinBlue\Client\Model\GetFolderLists'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetFolderLists'; $request = $this->getFolderListsRequest($folderId, $limit, $offset); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'getFolderLists' * @@ -4563,91 +3292,66 @@ class ContactsApi protected function getFolderListsRequest($folderId, $limit = '10', $offset = '0') { // verify the required parameter 'folderId' is set - if ($folderId === null || (is_array($folderId) && count($folderId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $folderId when calling getFolderLists' - ); + if ($folderId === null || \is_array($folderId) && \count($folderId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $folderId when calling getFolderLists'); } if ($limit !== null && $limit > 50) { throw new \InvalidArgumentException('invalid value for "$limit" when calling ContactsApi.getFolderLists, must be smaller than or equal to 50.'); } - - $resourcePath = '/contacts/folders/{folderId}/lists'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - + $multipart = \false; // query params if ($limit !== null) { - $queryParams['limit'] = ObjectSerializer::toQueryValue($limit); + $queryParams['limit'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($limit); } // query params if ($offset !== null) { - $queryParams['offset'] = ObjectSerializer::toQueryValue($offset); + $queryParams['offset'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($offset); } - // path params if ($folderId !== null) { - $resourcePath = str_replace( - '{' . 'folderId' . '}', - ObjectSerializer::toPathValue($folderId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'folderId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($folderId), $resourcePath); } - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -4658,31 +3362,18 @@ class ContactsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation getFolders * - * Get all the folders + * Get all folders * * @param int $limit Number of documents per page (required) * @param int $offset Index of the first document of the page (required) @@ -4696,11 +3387,10 @@ class ContactsApi list($response) = $this->getFoldersWithHttpInfo($limit, $offset); return $response; } - /** * Operation getFoldersWithHttpInfo * - * Get all the folders + * Get all folders * * @param int $limit Number of documents per page (required) * @param int $offset Index of the first document of the page (required) @@ -4711,80 +3401,48 @@ class ContactsApi */ public function getFoldersWithHttpInfo($limit, $offset) { - $returnType = '\SendinBlue\Client\Model\GetFolders'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetFolders'; $request = $this->getFoldersRequest($limit, $offset); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\GetFolders', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetFolders', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation getFoldersAsync * - * Get all the folders + * Get all folders * * @param int $limit Number of documents per page (required) * @param int $offset Index of the first document of the page (required) @@ -4794,18 +3452,14 @@ class ContactsApi */ public function getFoldersAsync($limit, $offset) { - return $this->getFoldersAsyncWithHttpInfo($limit, $offset) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->getFoldersAsyncWithHttpInfo($limit, $offset)->then(function ($response) { + return $response[0]; + }); } - /** * Operation getFoldersAsyncWithHttpInfo * - * Get all the folders + * Get all folders * * @param int $limit Number of documents per page (required) * @param int $offset Index of the first document of the page (required) @@ -4815,46 +3469,26 @@ class ContactsApi */ public function getFoldersAsyncWithHttpInfo($limit, $offset) { - $returnType = '\SendinBlue\Client\Model\GetFolders'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetFolders'; $request = $this->getFoldersRequest($limit, $offset); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'getFolders' * @@ -4867,89 +3501,66 @@ class ContactsApi protected function getFoldersRequest($limit, $offset) { // verify the required parameter 'limit' is set - if ($limit === null || (is_array($limit) && count($limit) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $limit when calling getFolders' - ); + if ($limit === null || \is_array($limit) && \count($limit) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $limit when calling getFolders'); } if ($limit > 50) { throw new \InvalidArgumentException('invalid value for "$limit" when calling ContactsApi.getFolders, must be smaller than or equal to 50.'); } - // verify the required parameter 'offset' is set - if ($offset === null || (is_array($offset) && count($offset) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $offset when calling getFolders' - ); + if ($offset === null || \is_array($offset) && \count($offset) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $offset when calling getFolders'); } - $resourcePath = '/contacts/folders'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - + $multipart = \false; // query params if ($limit !== null) { - $queryParams['limit'] = ObjectSerializer::toQueryValue($limit); + $queryParams['limit'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($limit); } // query params if ($offset !== null) { - $queryParams['offset'] = ObjectSerializer::toQueryValue($offset); + $queryParams['offset'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($offset); } - - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -4960,31 +3571,18 @@ class ContactsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation getList * - * Get the details of a list + * Get a list's details * * @param int $listId Id of the list (required) * @@ -4997,11 +3595,10 @@ class ContactsApi list($response) = $this->getListWithHttpInfo($listId); return $response; } - /** * Operation getListWithHttpInfo * - * Get the details of a list + * Get a list's details * * @param int $listId Id of the list (required) * @@ -5011,88 +3608,52 @@ class ContactsApi */ public function getListWithHttpInfo($listId) { - $returnType = '\SendinBlue\Client\Model\GetExtendedList'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedList'; $request = $this->getListRequest($listId); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\GetExtendedList', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedList', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation getListAsync * - * Get the details of a list + * Get a list's details * * @param int $listId Id of the list (required) * @@ -5101,18 +3662,14 @@ class ContactsApi */ public function getListAsync($listId) { - return $this->getListAsyncWithHttpInfo($listId) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->getListAsyncWithHttpInfo($listId)->then(function ($response) { + return $response[0]; + }); } - /** * Operation getListAsyncWithHttpInfo * - * Get the details of a list + * Get a list's details * * @param int $listId Id of the list (required) * @@ -5121,46 +3678,26 @@ class ContactsApi */ public function getListAsyncWithHttpInfo($listId) { - $returnType = '\SendinBlue\Client\Model\GetExtendedList'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedList'; $request = $this->getListRequest($listId); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'getList' * @@ -5172,79 +3709,55 @@ class ContactsApi protected function getListRequest($listId) { // verify the required parameter 'listId' is set - if ($listId === null || (is_array($listId) && count($listId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $listId when calling getList' - ); + if ($listId === null || \is_array($listId) && \count($listId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $listId when calling getList'); } - $resourcePath = '/contacts/lists/{listId}'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($listId !== null) { - $resourcePath = str_replace( - '{' . 'listId' . '}', - ObjectSerializer::toPathValue($listId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'listId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($listId), $resourcePath); } - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -5255,27 +3768,14 @@ class ContactsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation getLists * @@ -5293,7 +3793,6 @@ class ContactsApi list($response) = $this->getListsWithHttpInfo($limit, $offset); return $response; } - /** * Operation getListsWithHttpInfo * @@ -5308,76 +3807,44 @@ class ContactsApi */ public function getListsWithHttpInfo($limit = '10', $offset = '0') { - $returnType = '\SendinBlue\Client\Model\GetLists'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetLists'; $request = $this->getListsRequest($limit, $offset); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\GetLists', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetLists', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation getListsAsync * @@ -5391,14 +3858,10 @@ class ContactsApi */ public function getListsAsync($limit = '10', $offset = '0') { - return $this->getListsAsyncWithHttpInfo($limit, $offset) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->getListsAsyncWithHttpInfo($limit, $offset)->then(function ($response) { + return $response[0]; + }); } - /** * Operation getListsAsyncWithHttpInfo * @@ -5412,46 +3875,26 @@ class ContactsApi */ public function getListsAsyncWithHttpInfo($limit = '10', $offset = '0') { - $returnType = '\SendinBlue\Client\Model\GetLists'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetLists'; $request = $this->getListsRequest($limit, $offset); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'getLists' * @@ -5466,75 +3909,56 @@ class ContactsApi if ($limit !== null && $limit > 50) { throw new \InvalidArgumentException('invalid value for "$limit" when calling ContactsApi.getLists, must be smaller than or equal to 50.'); } - - $resourcePath = '/contacts/lists'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - + $multipart = \false; // query params if ($limit !== null) { - $queryParams['limit'] = ObjectSerializer::toQueryValue($limit); + $queryParams['limit'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($limit); } // query params if ($offset !== null) { - $queryParams['offset'] = ObjectSerializer::toQueryValue($offset); + $queryParams['offset'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($offset); } - - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -5545,27 +3969,14 @@ class ContactsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation importContacts * @@ -5582,7 +3993,6 @@ class ContactsApi list($response) = $this->importContactsWithHttpInfo($requestContactImport); return $response; } - /** * Operation importContactsWithHttpInfo * @@ -5596,76 +4006,44 @@ class ContactsApi */ public function importContactsWithHttpInfo($requestContactImport) { - $returnType = '\SendinBlue\Client\Model\CreatedProcessId'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreatedProcessId'; $request = $this->importContactsRequest($requestContactImport); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 202: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\CreatedProcessId', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreatedProcessId', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation importContactsAsync * @@ -5678,14 +4056,10 @@ class ContactsApi */ public function importContactsAsync($requestContactImport) { - return $this->importContactsAsyncWithHttpInfo($requestContactImport) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->importContactsAsyncWithHttpInfo($requestContactImport)->then(function ($response) { + return $response[0]; + }); } - /** * Operation importContactsAsyncWithHttpInfo * @@ -5698,46 +4072,26 @@ class ContactsApi */ public function importContactsAsyncWithHttpInfo($requestContactImport) { - $returnType = '\SendinBlue\Client\Model\CreatedProcessId'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreatedProcessId'; $request = $this->importContactsRequest($requestContactImport); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'importContacts' * @@ -5749,74 +4103,54 @@ class ContactsApi protected function importContactsRequest($requestContactImport) { // verify the required parameter 'requestContactImport' is set - if ($requestContactImport === null || (is_array($requestContactImport) && count($requestContactImport) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $requestContactImport when calling importContacts' - ); + if ($requestContactImport === null || \is_array($requestContactImport) && \count($requestContactImport) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $requestContactImport when calling importContacts'); } - $resourcePath = '/contacts/import'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - - + $multipart = \false; // body params $_tempBody = null; if (isset($requestContactImport)) { $_tempBody = $requestContactImport; } - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -5827,31 +4161,18 @@ class ContactsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation removeContactFromList * - * Remove existing contacts from a list + * Delete a contact from a list * * @param int $listId Id of the list (required) * @param \SendinBlue\Client\Model\RemoveContactFromList $contactEmails Emails adresses of the contact (required) @@ -5865,11 +4186,10 @@ class ContactsApi list($response) = $this->removeContactFromListWithHttpInfo($listId, $contactEmails); return $response; } - /** * Operation removeContactFromListWithHttpInfo * - * Remove existing contacts from a list + * Delete a contact from a list * * @param int $listId Id of the list (required) * @param \SendinBlue\Client\Model\RemoveContactFromList $contactEmails Emails adresses of the contact (required) @@ -5880,88 +4200,52 @@ class ContactsApi */ public function removeContactFromListWithHttpInfo($listId, $contactEmails) { - $returnType = '\SendinBlue\Client\Model\PostContactInfo'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\PostContactInfo'; $request = $this->removeContactFromListRequest($listId, $contactEmails); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 201: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\PostContactInfo', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\PostContactInfo', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation removeContactFromListAsync * - * Remove existing contacts from a list + * Delete a contact from a list * * @param int $listId Id of the list (required) * @param \SendinBlue\Client\Model\RemoveContactFromList $contactEmails Emails adresses of the contact (required) @@ -5971,18 +4255,14 @@ class ContactsApi */ public function removeContactFromListAsync($listId, $contactEmails) { - return $this->removeContactFromListAsyncWithHttpInfo($listId, $contactEmails) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->removeContactFromListAsyncWithHttpInfo($listId, $contactEmails)->then(function ($response) { + return $response[0]; + }); } - /** * Operation removeContactFromListAsyncWithHttpInfo * - * Remove existing contacts from a list + * Delete a contact from a list * * @param int $listId Id of the list (required) * @param \SendinBlue\Client\Model\RemoveContactFromList $contactEmails Emails adresses of the contact (required) @@ -5992,46 +4272,26 @@ class ContactsApi */ public function removeContactFromListAsyncWithHttpInfo($listId, $contactEmails) { - $returnType = '\SendinBlue\Client\Model\PostContactInfo'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\PostContactInfo'; $request = $this->removeContactFromListRequest($listId, $contactEmails); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'removeContactFromList' * @@ -6044,88 +4304,62 @@ class ContactsApi protected function removeContactFromListRequest($listId, $contactEmails) { // verify the required parameter 'listId' is set - if ($listId === null || (is_array($listId) && count($listId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $listId when calling removeContactFromList' - ); + if ($listId === null || \is_array($listId) && \count($listId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $listId when calling removeContactFromList'); } // verify the required parameter 'contactEmails' is set - if ($contactEmails === null || (is_array($contactEmails) && count($contactEmails) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $contactEmails when calling removeContactFromList' - ); + if ($contactEmails === null || \is_array($contactEmails) && \count($contactEmails) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $contactEmails when calling removeContactFromList'); } - $resourcePath = '/contacts/lists/{listId}/contacts/remove'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($listId !== null) { - $resourcePath = str_replace( - '{' . 'listId' . '}', - ObjectSerializer::toPathValue($listId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'listId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($listId), $resourcePath); } - // body params $_tempBody = null; if (isset($contactEmails)) { $_tempBody = $contactEmails; } - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -6136,27 +4370,14 @@ class ContactsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation requestContactExport * @@ -6173,7 +4394,6 @@ class ContactsApi list($response) = $this->requestContactExportWithHttpInfo($requestContactExport); return $response; } - /** * Operation requestContactExportWithHttpInfo * @@ -6187,76 +4407,44 @@ class ContactsApi */ public function requestContactExportWithHttpInfo($requestContactExport) { - $returnType = '\SendinBlue\Client\Model\CreatedProcessId'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreatedProcessId'; $request = $this->requestContactExportRequest($requestContactExport); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 202: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\CreatedProcessId', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreatedProcessId', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation requestContactExportAsync * @@ -6269,14 +4457,10 @@ class ContactsApi */ public function requestContactExportAsync($requestContactExport) { - return $this->requestContactExportAsyncWithHttpInfo($requestContactExport) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->requestContactExportAsyncWithHttpInfo($requestContactExport)->then(function ($response) { + return $response[0]; + }); } - /** * Operation requestContactExportAsyncWithHttpInfo * @@ -6289,46 +4473,26 @@ class ContactsApi */ public function requestContactExportAsyncWithHttpInfo($requestContactExport) { - $returnType = '\SendinBlue\Client\Model\CreatedProcessId'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreatedProcessId'; $request = $this->requestContactExportRequest($requestContactExport); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'requestContactExport' * @@ -6340,74 +4504,54 @@ class ContactsApi protected function requestContactExportRequest($requestContactExport) { // verify the required parameter 'requestContactExport' is set - if ($requestContactExport === null || (is_array($requestContactExport) && count($requestContactExport) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $requestContactExport when calling requestContactExport' - ); + if ($requestContactExport === null || \is_array($requestContactExport) && \count($requestContactExport) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $requestContactExport when calling requestContactExport'); } - $resourcePath = '/contacts/export'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - - + $multipart = \false; // body params $_tempBody = null; if (isset($requestContactExport)) { $_tempBody = $requestContactExport; } - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -6418,31 +4562,18 @@ class ContactsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation updateAttribute * - * Updates contact attribute + * Update contact attribute * * @param string $attributeCategory Category of the attribute (required) * @param string $attributeName Name of the existing attribute (required) @@ -6456,11 +4587,10 @@ class ContactsApi { $this->updateAttributeWithHttpInfo($attributeCategory, $attributeName, $updateAttribute); } - /** * Operation updateAttributeWithHttpInfo * - * Updates contact attribute + * Update contact attribute * * @param string $attributeCategory Category of the attribute (required) * @param string $attributeName Name of the existing attribute (required) @@ -6474,64 +4604,36 @@ class ContactsApi { $returnType = ''; $request = $this->updateAttributeRequest($attributeCategory, $attributeName, $updateAttribute); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation updateAttributeAsync * - * Updates contact attribute + * Update contact attribute * * @param string $attributeCategory Category of the attribute (required) * @param string $attributeName Name of the existing attribute (required) @@ -6542,18 +4644,14 @@ class ContactsApi */ public function updateAttributeAsync($attributeCategory, $attributeName, $updateAttribute) { - return $this->updateAttributeAsyncWithHttpInfo($attributeCategory, $attributeName, $updateAttribute) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->updateAttributeAsyncWithHttpInfo($attributeCategory, $attributeName, $updateAttribute)->then(function ($response) { + return $response[0]; + }); } - /** * Operation updateAttributeAsyncWithHttpInfo * - * Updates contact attribute + * Update contact attribute * * @param string $attributeCategory Category of the attribute (required) * @param string $attributeName Name of the existing attribute (required) @@ -6566,30 +4664,14 @@ class ContactsApi { $returnType = ''; $request = $this->updateAttributeRequest($attributeCategory, $attributeName, $updateAttribute); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - return [null, $response->getStatusCode(), $response->getHeaders()]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'updateAttribute' * @@ -6603,102 +4685,70 @@ class ContactsApi protected function updateAttributeRequest($attributeCategory, $attributeName, $updateAttribute) { // verify the required parameter 'attributeCategory' is set - if ($attributeCategory === null || (is_array($attributeCategory) && count($attributeCategory) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $attributeCategory when calling updateAttribute' - ); + if ($attributeCategory === null || \is_array($attributeCategory) && \count($attributeCategory) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $attributeCategory when calling updateAttribute'); } // verify the required parameter 'attributeName' is set - if ($attributeName === null || (is_array($attributeName) && count($attributeName) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $attributeName when calling updateAttribute' - ); + if ($attributeName === null || \is_array($attributeName) && \count($attributeName) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $attributeName when calling updateAttribute'); } // verify the required parameter 'updateAttribute' is set - if ($updateAttribute === null || (is_array($updateAttribute) && count($updateAttribute) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $updateAttribute when calling updateAttribute' - ); + if ($updateAttribute === null || \is_array($updateAttribute) && \count($updateAttribute) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $updateAttribute when calling updateAttribute'); } - $resourcePath = '/contacts/attributes/{attributeCategory}/{attributeName}'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($attributeCategory !== null) { - $resourcePath = str_replace( - '{' . 'attributeCategory' . '}', - ObjectSerializer::toPathValue($attributeCategory), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'attributeCategory' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($attributeCategory), $resourcePath); } // path params if ($attributeName !== null) { - $resourcePath = str_replace( - '{' . 'attributeName' . '}', - ObjectSerializer::toPathValue($attributeName), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'attributeName' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($attributeName), $resourcePath); } - // body params $_tempBody = null; if (isset($updateAttribute)) { $_tempBody = $updateAttribute; } - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -6709,31 +4759,18 @@ class ContactsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'PUT', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('PUT', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation updateContact * - * Updates a contact + * Update a contact * * @param string $email Email (urlencoded) of the contact (required) * @param \SendinBlue\Client\Model\UpdateContact $updateContact Values to update a contact (required) @@ -6746,11 +4783,10 @@ class ContactsApi { $this->updateContactWithHttpInfo($email, $updateContact); } - /** * Operation updateContactWithHttpInfo * - * Updates a contact + * Update a contact * * @param string $email Email (urlencoded) of the contact (required) * @param \SendinBlue\Client\Model\UpdateContact $updateContact Values to update a contact (required) @@ -6763,64 +4799,36 @@ class ContactsApi { $returnType = ''; $request = $this->updateContactRequest($email, $updateContact); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation updateContactAsync * - * Updates a contact + * Update a contact * * @param string $email Email (urlencoded) of the contact (required) * @param \SendinBlue\Client\Model\UpdateContact $updateContact Values to update a contact (required) @@ -6830,18 +4838,14 @@ class ContactsApi */ public function updateContactAsync($email, $updateContact) { - return $this->updateContactAsyncWithHttpInfo($email, $updateContact) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->updateContactAsyncWithHttpInfo($email, $updateContact)->then(function ($response) { + return $response[0]; + }); } - /** * Operation updateContactAsyncWithHttpInfo * - * Updates a contact + * Update a contact * * @param string $email Email (urlencoded) of the contact (required) * @param \SendinBlue\Client\Model\UpdateContact $updateContact Values to update a contact (required) @@ -6853,30 +4857,14 @@ class ContactsApi { $returnType = ''; $request = $this->updateContactRequest($email, $updateContact); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - return [null, $response->getStatusCode(), $response->getHeaders()]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'updateContact' * @@ -6889,88 +4877,62 @@ class ContactsApi protected function updateContactRequest($email, $updateContact) { // verify the required parameter 'email' is set - if ($email === null || (is_array($email) && count($email) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $email when calling updateContact' - ); + if ($email === null || \is_array($email) && \count($email) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $email when calling updateContact'); } // verify the required parameter 'updateContact' is set - if ($updateContact === null || (is_array($updateContact) && count($updateContact) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $updateContact when calling updateContact' - ); + if ($updateContact === null || \is_array($updateContact) && \count($updateContact) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $updateContact when calling updateContact'); } - $resourcePath = '/contacts/{email}'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($email !== null) { - $resourcePath = str_replace( - '{' . 'email' . '}', - ObjectSerializer::toPathValue($email), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'email' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($email), $resourcePath); } - // body params $_tempBody = null; if (isset($updateContact)) { $_tempBody = $updateContact; } - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -6981,31 +4943,18 @@ class ContactsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'PUT', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('PUT', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation updateFolder * - * Update a contact folder + * Update a folder * * @param int $folderId Id of the folder (required) * @param \SendinBlue\Client\Model\CreateUpdateFolder $updateFolder Name of the folder (required) @@ -7018,11 +4967,10 @@ class ContactsApi { $this->updateFolderWithHttpInfo($folderId, $updateFolder); } - /** * Operation updateFolderWithHttpInfo * - * Update a contact folder + * Update a folder * * @param int $folderId Id of the folder (required) * @param \SendinBlue\Client\Model\CreateUpdateFolder $updateFolder Name of the folder (required) @@ -7035,64 +4983,36 @@ class ContactsApi { $returnType = ''; $request = $this->updateFolderRequest($folderId, $updateFolder); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation updateFolderAsync * - * Update a contact folder + * Update a folder * * @param int $folderId Id of the folder (required) * @param \SendinBlue\Client\Model\CreateUpdateFolder $updateFolder Name of the folder (required) @@ -7102,18 +5022,14 @@ class ContactsApi */ public function updateFolderAsync($folderId, $updateFolder) { - return $this->updateFolderAsyncWithHttpInfo($folderId, $updateFolder) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->updateFolderAsyncWithHttpInfo($folderId, $updateFolder)->then(function ($response) { + return $response[0]; + }); } - /** * Operation updateFolderAsyncWithHttpInfo * - * Update a contact folder + * Update a folder * * @param int $folderId Id of the folder (required) * @param \SendinBlue\Client\Model\CreateUpdateFolder $updateFolder Name of the folder (required) @@ -7125,30 +5041,14 @@ class ContactsApi { $returnType = ''; $request = $this->updateFolderRequest($folderId, $updateFolder); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - return [null, $response->getStatusCode(), $response->getHeaders()]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'updateFolder' * @@ -7161,88 +5061,62 @@ class ContactsApi protected function updateFolderRequest($folderId, $updateFolder) { // verify the required parameter 'folderId' is set - if ($folderId === null || (is_array($folderId) && count($folderId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $folderId when calling updateFolder' - ); + if ($folderId === null || \is_array($folderId) && \count($folderId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $folderId when calling updateFolder'); } // verify the required parameter 'updateFolder' is set - if ($updateFolder === null || (is_array($updateFolder) && count($updateFolder) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $updateFolder when calling updateFolder' - ); + if ($updateFolder === null || \is_array($updateFolder) && \count($updateFolder) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $updateFolder when calling updateFolder'); } - $resourcePath = '/contacts/folders/{folderId}'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($folderId !== null) { - $resourcePath = str_replace( - '{' . 'folderId' . '}', - ObjectSerializer::toPathValue($folderId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'folderId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($folderId), $resourcePath); } - // body params $_tempBody = null; if (isset($updateFolder)) { $_tempBody = $updateFolder; } - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -7253,27 +5127,14 @@ class ContactsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'PUT', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('PUT', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation updateList * @@ -7290,7 +5151,6 @@ class ContactsApi { $this->updateListWithHttpInfo($listId, $updateList); } - /** * Operation updateListWithHttpInfo * @@ -7307,60 +5167,32 @@ class ContactsApi { $returnType = ''; $request = $this->updateListRequest($listId, $updateList); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation updateListAsync * @@ -7374,14 +5206,10 @@ class ContactsApi */ public function updateListAsync($listId, $updateList) { - return $this->updateListAsyncWithHttpInfo($listId, $updateList) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->updateListAsyncWithHttpInfo($listId, $updateList)->then(function ($response) { + return $response[0]; + }); } - /** * Operation updateListAsyncWithHttpInfo * @@ -7397,30 +5225,14 @@ class ContactsApi { $returnType = ''; $request = $this->updateListRequest($listId, $updateList); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - return [null, $response->getStatusCode(), $response->getHeaders()]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'updateList' * @@ -7433,88 +5245,62 @@ class ContactsApi protected function updateListRequest($listId, $updateList) { // verify the required parameter 'listId' is set - if ($listId === null || (is_array($listId) && count($listId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $listId when calling updateList' - ); + if ($listId === null || \is_array($listId) && \count($listId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $listId when calling updateList'); } // verify the required parameter 'updateList' is set - if ($updateList === null || (is_array($updateList) && count($updateList) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $updateList when calling updateList' - ); + if ($updateList === null || \is_array($updateList) && \count($updateList) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $updateList when calling updateList'); } - $resourcePath = '/contacts/lists/{listId}'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($listId !== null) { - $resourcePath = str_replace( - '{' . 'listId' . '}', - ObjectSerializer::toPathValue($listId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'listId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($listId), $resourcePath); } - // body params $_tempBody = null; if (isset($updateList)) { $_tempBody = $updateList; } - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -7525,27 +5311,14 @@ class ContactsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'PUT', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('PUT', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Create http client option * @@ -7556,12 +5329,11 @@ class ContactsApi { $options = []; if ($this->config->getDebug()) { - $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); - if (!$options[RequestOptions::DEBUG]) { + $options[\WPMailSMTP\Vendor\GuzzleHttp\RequestOptions::DEBUG] = \fopen($this->config->getDebugFile(), 'a'); + if (!$options[\WPMailSMTP\Vendor\GuzzleHttp\RequestOptions::DEBUG]) { throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); } } - return $options; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/EmailCampaignsApi.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/EmailCampaignsApi.php similarity index 53% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/EmailCampaignsApi.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/EmailCampaignsApi.php index 932876d..811f5a1 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/EmailCampaignsApi.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/EmailCampaignsApi.php @@ -1,4 +1,5 @@ client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); - $this->headerSelector = $selector ?: new HeaderSelector(); + public function __construct(\WPMailSMTP\Vendor\GuzzleHttp\ClientInterface $client = null, \WPMailSMTP\Vendor\SendinBlue\Client\Configuration $config = null, \WPMailSMTP\Vendor\SendinBlue\Client\HeaderSelector $selector = null) + { + $this->client = $client ?: new \WPMailSMTP\Vendor\GuzzleHttp\Client(); + $this->config = $config ?: new \WPMailSMTP\Vendor\SendinBlue\Client\Configuration(); + $this->headerSelector = $selector ?: new \WPMailSMTP\Vendor\SendinBlue\Client\HeaderSelector(); } - /** * @return Configuration */ @@ -86,7 +76,6 @@ class EmailCampaignsApi { return $this->config; } - /** * Operation createEmailCampaign * @@ -103,7 +92,6 @@ class EmailCampaignsApi list($response) = $this->createEmailCampaignWithHttpInfo($emailCampaigns); return $response; } - /** * Operation createEmailCampaignWithHttpInfo * @@ -117,76 +105,44 @@ class EmailCampaignsApi */ public function createEmailCampaignWithHttpInfo($emailCampaigns) { - $returnType = '\SendinBlue\Client\Model\CreateModel'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateModel'; $request = $this->createEmailCampaignRequest($emailCampaigns); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 201: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\CreateModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation createEmailCampaignAsync * @@ -199,14 +155,10 @@ class EmailCampaignsApi */ public function createEmailCampaignAsync($emailCampaigns) { - return $this->createEmailCampaignAsyncWithHttpInfo($emailCampaigns) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->createEmailCampaignAsyncWithHttpInfo($emailCampaigns)->then(function ($response) { + return $response[0]; + }); } - /** * Operation createEmailCampaignAsyncWithHttpInfo * @@ -219,46 +171,26 @@ class EmailCampaignsApi */ public function createEmailCampaignAsyncWithHttpInfo($emailCampaigns) { - $returnType = '\SendinBlue\Client\Model\CreateModel'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateModel'; $request = $this->createEmailCampaignRequest($emailCampaigns); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'createEmailCampaign' * @@ -270,74 +202,54 @@ class EmailCampaignsApi protected function createEmailCampaignRequest($emailCampaigns) { // verify the required parameter 'emailCampaigns' is set - if ($emailCampaigns === null || (is_array($emailCampaigns) && count($emailCampaigns) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $emailCampaigns when calling createEmailCampaign' - ); + if ($emailCampaigns === null || \is_array($emailCampaigns) && \count($emailCampaigns) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $emailCampaigns when calling createEmailCampaign'); } - $resourcePath = '/emailCampaigns'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - - + $multipart = \false; // body params $_tempBody = null; if (isset($emailCampaigns)) { $_tempBody = $emailCampaigns; } - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -348,27 +260,14 @@ class EmailCampaignsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation deleteEmailCampaign * @@ -384,7 +283,6 @@ class EmailCampaignsApi { $this->deleteEmailCampaignWithHttpInfo($campaignId); } - /** * Operation deleteEmailCampaignWithHttpInfo * @@ -400,60 +298,32 @@ class EmailCampaignsApi { $returnType = ''; $request = $this->deleteEmailCampaignRequest($campaignId); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation deleteEmailCampaignAsync * @@ -466,14 +336,10 @@ class EmailCampaignsApi */ public function deleteEmailCampaignAsync($campaignId) { - return $this->deleteEmailCampaignAsyncWithHttpInfo($campaignId) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->deleteEmailCampaignAsyncWithHttpInfo($campaignId)->then(function ($response) { + return $response[0]; + }); } - /** * Operation deleteEmailCampaignAsyncWithHttpInfo * @@ -488,30 +354,14 @@ class EmailCampaignsApi { $returnType = ''; $request = $this->deleteEmailCampaignRequest($campaignId); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - return [null, $response->getStatusCode(), $response->getHeaders()]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'deleteEmailCampaign' * @@ -523,79 +373,55 @@ class EmailCampaignsApi protected function deleteEmailCampaignRequest($campaignId) { // verify the required parameter 'campaignId' is set - if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $campaignId when calling deleteEmailCampaign' - ); + if ($campaignId === null || \is_array($campaignId) && \count($campaignId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $campaignId when calling deleteEmailCampaign'); } - $resourcePath = '/emailCampaigns/{campaignId}'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($campaignId !== null) { - $resourcePath = str_replace( - '{' . 'campaignId' . '}', - ObjectSerializer::toPathValue($campaignId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'campaignId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($campaignId), $resourcePath); } - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -606,31 +432,18 @@ class EmailCampaignsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'DELETE', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('DELETE', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation emailExportRecipients * - * Export the recipients of a campaign + * Export the recipients of an email campaign * * @param int $campaignId Id of the campaign (required) * @param \SendinBlue\Client\Model\EmailExportRecipients $recipientExport Values to send for a recipient export request (optional) @@ -644,11 +457,10 @@ class EmailCampaignsApi list($response) = $this->emailExportRecipientsWithHttpInfo($campaignId, $recipientExport); return $response; } - /** * Operation emailExportRecipientsWithHttpInfo * - * Export the recipients of a campaign + * Export the recipients of an email campaign * * @param int $campaignId Id of the campaign (required) * @param \SendinBlue\Client\Model\EmailExportRecipients $recipientExport Values to send for a recipient export request (optional) @@ -659,88 +471,52 @@ class EmailCampaignsApi */ public function emailExportRecipientsWithHttpInfo($campaignId, $recipientExport = null) { - $returnType = '\SendinBlue\Client\Model\CreatedProcessId'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreatedProcessId'; $request = $this->emailExportRecipientsRequest($campaignId, $recipientExport); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 202: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\CreatedProcessId', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreatedProcessId', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation emailExportRecipientsAsync * - * Export the recipients of a campaign + * Export the recipients of an email campaign * * @param int $campaignId Id of the campaign (required) * @param \SendinBlue\Client\Model\EmailExportRecipients $recipientExport Values to send for a recipient export request (optional) @@ -750,18 +526,14 @@ class EmailCampaignsApi */ public function emailExportRecipientsAsync($campaignId, $recipientExport = null) { - return $this->emailExportRecipientsAsyncWithHttpInfo($campaignId, $recipientExport) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->emailExportRecipientsAsyncWithHttpInfo($campaignId, $recipientExport)->then(function ($response) { + return $response[0]; + }); } - /** * Operation emailExportRecipientsAsyncWithHttpInfo * - * Export the recipients of a campaign + * Export the recipients of an email campaign * * @param int $campaignId Id of the campaign (required) * @param \SendinBlue\Client\Model\EmailExportRecipients $recipientExport Values to send for a recipient export request (optional) @@ -771,46 +543,26 @@ class EmailCampaignsApi */ public function emailExportRecipientsAsyncWithHttpInfo($campaignId, $recipientExport = null) { - $returnType = '\SendinBlue\Client\Model\CreatedProcessId'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreatedProcessId'; $request = $this->emailExportRecipientsRequest($campaignId, $recipientExport); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'emailExportRecipients' * @@ -823,82 +575,58 @@ class EmailCampaignsApi protected function emailExportRecipientsRequest($campaignId, $recipientExport = null) { // verify the required parameter 'campaignId' is set - if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $campaignId when calling emailExportRecipients' - ); + if ($campaignId === null || \is_array($campaignId) && \count($campaignId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $campaignId when calling emailExportRecipients'); } - $resourcePath = '/emailCampaigns/{campaignId}/exportRecipients'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($campaignId !== null) { - $resourcePath = str_replace( - '{' . 'campaignId' . '}', - ObjectSerializer::toPathValue($campaignId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'campaignId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($campaignId), $resourcePath); } - // body params $_tempBody = null; if (isset($recipientExport)) { $_tempBody = $recipientExport; } - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -909,31 +637,18 @@ class EmailCampaignsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation getAbTestCampaignResult * - * Get A/B test email campaign result + * Get an A/B test email campaign results * * @param int $campaignId Id of the A/B test campaign (required) * @@ -946,11 +661,10 @@ class EmailCampaignsApi list($response) = $this->getAbTestCampaignResultWithHttpInfo($campaignId); return $response; } - /** * Operation getAbTestCampaignResultWithHttpInfo * - * Get A/B test email campaign result + * Get an A/B test email campaign results * * @param int $campaignId Id of the A/B test campaign (required) * @@ -960,96 +674,56 @@ class EmailCampaignsApi */ public function getAbTestCampaignResultWithHttpInfo($campaignId) { - $returnType = '\SendinBlue\Client\Model\AbTestCampaignResult'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\AbTestCampaignResult'; $request = $this->getAbTestCampaignResultRequest($campaignId); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\AbTestCampaignResult', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\AbTestCampaignResult', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 405: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation getAbTestCampaignResultAsync * - * Get A/B test email campaign result + * Get an A/B test email campaign results * * @param int $campaignId Id of the A/B test campaign (required) * @@ -1058,18 +732,14 @@ class EmailCampaignsApi */ public function getAbTestCampaignResultAsync($campaignId) { - return $this->getAbTestCampaignResultAsyncWithHttpInfo($campaignId) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->getAbTestCampaignResultAsyncWithHttpInfo($campaignId)->then(function ($response) { + return $response[0]; + }); } - /** * Operation getAbTestCampaignResultAsyncWithHttpInfo * - * Get A/B test email campaign result + * Get an A/B test email campaign results * * @param int $campaignId Id of the A/B test campaign (required) * @@ -1078,46 +748,26 @@ class EmailCampaignsApi */ public function getAbTestCampaignResultAsyncWithHttpInfo($campaignId) { - $returnType = '\SendinBlue\Client\Model\AbTestCampaignResult'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\AbTestCampaignResult'; $request = $this->getAbTestCampaignResultRequest($campaignId); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'getAbTestCampaignResult' * @@ -1129,79 +779,55 @@ class EmailCampaignsApi protected function getAbTestCampaignResultRequest($campaignId) { // verify the required parameter 'campaignId' is set - if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $campaignId when calling getAbTestCampaignResult' - ); + if ($campaignId === null || \is_array($campaignId) && \count($campaignId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $campaignId when calling getAbTestCampaignResult'); } - $resourcePath = '/emailCampaigns/{campaignId}/abTestCampaignResult'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($campaignId !== null) { - $resourcePath = str_replace( - '{' . 'campaignId' . '}', - ObjectSerializer::toPathValue($campaignId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'campaignId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($campaignId), $resourcePath); } - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -1212,31 +838,18 @@ class EmailCampaignsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation getEmailCampaign * - * Get campaign informations + * Get an email campaign report * * @param int $campaignId Id of the campaign (required) * @@ -1249,11 +862,10 @@ class EmailCampaignsApi list($response) = $this->getEmailCampaignWithHttpInfo($campaignId); return $response; } - /** * Operation getEmailCampaignWithHttpInfo * - * Get campaign informations + * Get an email campaign report * * @param int $campaignId Id of the campaign (required) * @@ -1263,88 +875,52 @@ class EmailCampaignsApi */ public function getEmailCampaignWithHttpInfo($campaignId) { - $returnType = '\SendinBlue\Client\Model\GetEmailCampaign'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetEmailCampaign'; $request = $this->getEmailCampaignRequest($campaignId); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\GetEmailCampaign', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetEmailCampaign', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation getEmailCampaignAsync * - * Get campaign informations + * Get an email campaign report * * @param int $campaignId Id of the campaign (required) * @@ -1353,18 +929,14 @@ class EmailCampaignsApi */ public function getEmailCampaignAsync($campaignId) { - return $this->getEmailCampaignAsyncWithHttpInfo($campaignId) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->getEmailCampaignAsyncWithHttpInfo($campaignId)->then(function ($response) { + return $response[0]; + }); } - /** * Operation getEmailCampaignAsyncWithHttpInfo * - * Get campaign informations + * Get an email campaign report * * @param int $campaignId Id of the campaign (required) * @@ -1373,46 +945,26 @@ class EmailCampaignsApi */ public function getEmailCampaignAsyncWithHttpInfo($campaignId) { - $returnType = '\SendinBlue\Client\Model\GetEmailCampaign'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetEmailCampaign'; $request = $this->getEmailCampaignRequest($campaignId); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'getEmailCampaign' * @@ -1424,79 +976,55 @@ class EmailCampaignsApi protected function getEmailCampaignRequest($campaignId) { // verify the required parameter 'campaignId' is set - if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $campaignId when calling getEmailCampaign' - ); + if ($campaignId === null || \is_array($campaignId) && \count($campaignId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $campaignId when calling getEmailCampaign'); } - $resourcePath = '/emailCampaigns/{campaignId}'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($campaignId !== null) { - $resourcePath = str_replace( - '{' . 'campaignId' . '}', - ObjectSerializer::toPathValue($campaignId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'campaignId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($campaignId), $resourcePath); } - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -1507,31 +1035,18 @@ class EmailCampaignsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation getEmailCampaigns * - * Return all your created campaigns + * Return all your created email campaigns * * @param string $type Filter on the type of the campaigns (optional) * @param string $status Filter on the status of the campaign (optional) @@ -1549,11 +1064,10 @@ class EmailCampaignsApi list($response) = $this->getEmailCampaignsWithHttpInfo($type, $status, $startDate, $endDate, $limit, $offset); return $response; } - /** * Operation getEmailCampaignsWithHttpInfo * - * Return all your created campaigns + * Return all your created email campaigns * * @param string $type Filter on the type of the campaigns (optional) * @param string $status Filter on the status of the campaign (optional) @@ -1568,80 +1082,48 @@ class EmailCampaignsApi */ public function getEmailCampaignsWithHttpInfo($type = null, $status = null, $startDate = null, $endDate = null, $limit = '500', $offset = '0') { - $returnType = '\SendinBlue\Client\Model\GetEmailCampaigns'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetEmailCampaigns'; $request = $this->getEmailCampaignsRequest($type, $status, $startDate, $endDate, $limit, $offset); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\GetEmailCampaigns', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetEmailCampaigns', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation getEmailCampaignsAsync * - * Return all your created campaigns + * Return all your created email campaigns * * @param string $type Filter on the type of the campaigns (optional) * @param string $status Filter on the status of the campaign (optional) @@ -1655,18 +1137,14 @@ class EmailCampaignsApi */ public function getEmailCampaignsAsync($type = null, $status = null, $startDate = null, $endDate = null, $limit = '500', $offset = '0') { - return $this->getEmailCampaignsAsyncWithHttpInfo($type, $status, $startDate, $endDate, $limit, $offset) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->getEmailCampaignsAsyncWithHttpInfo($type, $status, $startDate, $endDate, $limit, $offset)->then(function ($response) { + return $response[0]; + }); } - /** * Operation getEmailCampaignsAsyncWithHttpInfo * - * Return all your created campaigns + * Return all your created email campaigns * * @param string $type Filter on the type of the campaigns (optional) * @param string $status Filter on the status of the campaign (optional) @@ -1680,46 +1158,26 @@ class EmailCampaignsApi */ public function getEmailCampaignsAsyncWithHttpInfo($type = null, $status = null, $startDate = null, $endDate = null, $limit = '500', $offset = '0') { - $returnType = '\SendinBlue\Client\Model\GetEmailCampaigns'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetEmailCampaigns'; $request = $this->getEmailCampaignsRequest($type, $status, $startDate, $endDate, $limit, $offset); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'getEmailCampaigns' * @@ -1738,91 +1196,72 @@ class EmailCampaignsApi if ($limit !== null && $limit > 1000) { throw new \InvalidArgumentException('invalid value for "$limit" when calling EmailCampaignsApi.getEmailCampaigns, must be smaller than or equal to 1000.'); } - - $resourcePath = '/emailCampaigns'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - + $multipart = \false; // query params if ($type !== null) { - $queryParams['type'] = ObjectSerializer::toQueryValue($type); + $queryParams['type'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($type); } // query params if ($status !== null) { - $queryParams['status'] = ObjectSerializer::toQueryValue($status); + $queryParams['status'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($status); } // query params if ($startDate !== null) { - $queryParams['startDate'] = ObjectSerializer::toQueryValue($startDate); + $queryParams['startDate'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($startDate); } // query params if ($endDate !== null) { - $queryParams['endDate'] = ObjectSerializer::toQueryValue($endDate); + $queryParams['endDate'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($endDate); } // query params if ($limit !== null) { - $queryParams['limit'] = ObjectSerializer::toQueryValue($limit); + $queryParams['limit'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($limit); } // query params if ($offset !== null) { - $queryParams['offset'] = ObjectSerializer::toQueryValue($offset); + $queryParams['offset'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($offset); } - - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -1833,27 +1272,14 @@ class EmailCampaignsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation getSharedTemplateUrl * @@ -1870,7 +1296,6 @@ class EmailCampaignsApi list($response) = $this->getSharedTemplateUrlWithHttpInfo($campaignId); return $response; } - /** * Operation getSharedTemplateUrlWithHttpInfo * @@ -1884,84 +1309,48 @@ class EmailCampaignsApi */ public function getSharedTemplateUrlWithHttpInfo($campaignId) { - $returnType = '\SendinBlue\Client\Model\GetSharedTemplateUrl'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSharedTemplateUrl'; $request = $this->getSharedTemplateUrlRequest($campaignId); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\GetSharedTemplateUrl', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSharedTemplateUrl', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation getSharedTemplateUrlAsync * @@ -1974,14 +1363,10 @@ class EmailCampaignsApi */ public function getSharedTemplateUrlAsync($campaignId) { - return $this->getSharedTemplateUrlAsyncWithHttpInfo($campaignId) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->getSharedTemplateUrlAsyncWithHttpInfo($campaignId)->then(function ($response) { + return $response[0]; + }); } - /** * Operation getSharedTemplateUrlAsyncWithHttpInfo * @@ -1994,46 +1379,26 @@ class EmailCampaignsApi */ public function getSharedTemplateUrlAsyncWithHttpInfo($campaignId) { - $returnType = '\SendinBlue\Client\Model\GetSharedTemplateUrl'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSharedTemplateUrl'; $request = $this->getSharedTemplateUrlRequest($campaignId); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'getSharedTemplateUrl' * @@ -2045,79 +1410,55 @@ class EmailCampaignsApi protected function getSharedTemplateUrlRequest($campaignId) { // verify the required parameter 'campaignId' is set - if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $campaignId when calling getSharedTemplateUrl' - ); + if ($campaignId === null || \is_array($campaignId) && \count($campaignId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $campaignId when calling getSharedTemplateUrl'); } - $resourcePath = '/emailCampaigns/{campaignId}/sharedUrl'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($campaignId !== null) { - $resourcePath = str_replace( - '{' . 'campaignId' . '}', - ObjectSerializer::toPathValue($campaignId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'campaignId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($campaignId), $resourcePath); } - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -2128,27 +1469,14 @@ class EmailCampaignsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation sendEmailCampaignNow * @@ -2164,7 +1492,6 @@ class EmailCampaignsApi { $this->sendEmailCampaignNowWithHttpInfo($campaignId); } - /** * Operation sendEmailCampaignNowWithHttpInfo * @@ -2180,68 +1507,36 @@ class EmailCampaignsApi { $returnType = ''; $request = $this->sendEmailCampaignNowRequest($campaignId); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 402: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation sendEmailCampaignNowAsync * @@ -2254,14 +1549,10 @@ class EmailCampaignsApi */ public function sendEmailCampaignNowAsync($campaignId) { - return $this->sendEmailCampaignNowAsyncWithHttpInfo($campaignId) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->sendEmailCampaignNowAsyncWithHttpInfo($campaignId)->then(function ($response) { + return $response[0]; + }); } - /** * Operation sendEmailCampaignNowAsyncWithHttpInfo * @@ -2276,30 +1567,14 @@ class EmailCampaignsApi { $returnType = ''; $request = $this->sendEmailCampaignNowRequest($campaignId); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - return [null, $response->getStatusCode(), $response->getHeaders()]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'sendEmailCampaignNow' * @@ -2311,79 +1586,55 @@ class EmailCampaignsApi protected function sendEmailCampaignNowRequest($campaignId) { // verify the required parameter 'campaignId' is set - if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $campaignId when calling sendEmailCampaignNow' - ); + if ($campaignId === null || \is_array($campaignId) && \count($campaignId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $campaignId when calling sendEmailCampaignNow'); } - $resourcePath = '/emailCampaigns/{campaignId}/sendNow'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($campaignId !== null) { - $resourcePath = str_replace( - '{' . 'campaignId' . '}', - ObjectSerializer::toPathValue($campaignId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'campaignId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($campaignId), $resourcePath); } - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -2394,31 +1645,18 @@ class EmailCampaignsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation sendReport * - * Send the report of a campaigns + * Send the report of a campaign * * @param int $campaignId Id of the campaign (required) * @param \SendinBlue\Client\Model\SendReport $sendReport Values for send a report (required) @@ -2431,11 +1669,10 @@ class EmailCampaignsApi { $this->sendReportWithHttpInfo($campaignId, $sendReport); } - /** * Operation sendReportWithHttpInfo * - * Send the report of a campaigns + * Send the report of a campaign * * @param int $campaignId Id of the campaign (required) * @param \SendinBlue\Client\Model\SendReport $sendReport Values for send a report (required) @@ -2448,64 +1685,36 @@ class EmailCampaignsApi { $returnType = ''; $request = $this->sendReportRequest($campaignId, $sendReport); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation sendReportAsync * - * Send the report of a campaigns + * Send the report of a campaign * * @param int $campaignId Id of the campaign (required) * @param \SendinBlue\Client\Model\SendReport $sendReport Values for send a report (required) @@ -2515,18 +1724,14 @@ class EmailCampaignsApi */ public function sendReportAsync($campaignId, $sendReport) { - return $this->sendReportAsyncWithHttpInfo($campaignId, $sendReport) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->sendReportAsyncWithHttpInfo($campaignId, $sendReport)->then(function ($response) { + return $response[0]; + }); } - /** * Operation sendReportAsyncWithHttpInfo * - * Send the report of a campaigns + * Send the report of a campaign * * @param int $campaignId Id of the campaign (required) * @param \SendinBlue\Client\Model\SendReport $sendReport Values for send a report (required) @@ -2538,30 +1743,14 @@ class EmailCampaignsApi { $returnType = ''; $request = $this->sendReportRequest($campaignId, $sendReport); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - return [null, $response->getStatusCode(), $response->getHeaders()]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'sendReport' * @@ -2574,88 +1763,62 @@ class EmailCampaignsApi protected function sendReportRequest($campaignId, $sendReport) { // verify the required parameter 'campaignId' is set - if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $campaignId when calling sendReport' - ); + if ($campaignId === null || \is_array($campaignId) && \count($campaignId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $campaignId when calling sendReport'); } // verify the required parameter 'sendReport' is set - if ($sendReport === null || (is_array($sendReport) && count($sendReport) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $sendReport when calling sendReport' - ); + if ($sendReport === null || \is_array($sendReport) && \count($sendReport) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $sendReport when calling sendReport'); } - $resourcePath = '/emailCampaigns/{campaignId}/sendReport'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($campaignId !== null) { - $resourcePath = str_replace( - '{' . 'campaignId' . '}', - ObjectSerializer::toPathValue($campaignId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'campaignId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($campaignId), $resourcePath); } - // body params $_tempBody = null; if (isset($sendReport)) { $_tempBody = $sendReport; } - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -2666,27 +1829,14 @@ class EmailCampaignsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation sendTestEmail * @@ -2703,7 +1853,6 @@ class EmailCampaignsApi { $this->sendTestEmailWithHttpInfo($campaignId, $emailTo); } - /** * Operation sendTestEmailWithHttpInfo * @@ -2720,60 +1869,32 @@ class EmailCampaignsApi { $returnType = ''; $request = $this->sendTestEmailRequest($campaignId, $emailTo); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\PostSendFailed', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\PostSendFailed', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation sendTestEmailAsync * @@ -2787,14 +1908,10 @@ class EmailCampaignsApi */ public function sendTestEmailAsync($campaignId, $emailTo) { - return $this->sendTestEmailAsyncWithHttpInfo($campaignId, $emailTo) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->sendTestEmailAsyncWithHttpInfo($campaignId, $emailTo)->then(function ($response) { + return $response[0]; + }); } - /** * Operation sendTestEmailAsyncWithHttpInfo * @@ -2810,30 +1927,14 @@ class EmailCampaignsApi { $returnType = ''; $request = $this->sendTestEmailRequest($campaignId, $emailTo); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - return [null, $response->getStatusCode(), $response->getHeaders()]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'sendTestEmail' * @@ -2846,88 +1947,62 @@ class EmailCampaignsApi protected function sendTestEmailRequest($campaignId, $emailTo) { // verify the required parameter 'campaignId' is set - if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $campaignId when calling sendTestEmail' - ); + if ($campaignId === null || \is_array($campaignId) && \count($campaignId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $campaignId when calling sendTestEmail'); } // verify the required parameter 'emailTo' is set - if ($emailTo === null || (is_array($emailTo) && count($emailTo) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $emailTo when calling sendTestEmail' - ); + if ($emailTo === null || \is_array($emailTo) && \count($emailTo) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $emailTo when calling sendTestEmail'); } - $resourcePath = '/emailCampaigns/{campaignId}/sendTest'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($campaignId !== null) { - $resourcePath = str_replace( - '{' . 'campaignId' . '}', - ObjectSerializer::toPathValue($campaignId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'campaignId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($campaignId), $resourcePath); } - // body params $_tempBody = null; if (isset($emailTo)) { $_tempBody = $emailTo; } - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -2938,31 +2013,18 @@ class EmailCampaignsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation updateCampaignStatus * - * Update a campaign status + * Update an email campaign status * * @param int $campaignId Id of the campaign (required) * @param \SendinBlue\Client\Model\UpdateCampaignStatus $status Status of the campaign (required) @@ -2975,11 +2037,10 @@ class EmailCampaignsApi { $this->updateCampaignStatusWithHttpInfo($campaignId, $status); } - /** * Operation updateCampaignStatusWithHttpInfo * - * Update a campaign status + * Update an email campaign status * * @param int $campaignId Id of the campaign (required) * @param \SendinBlue\Client\Model\UpdateCampaignStatus $status Status of the campaign (required) @@ -2992,64 +2053,36 @@ class EmailCampaignsApi { $returnType = ''; $request = $this->updateCampaignStatusRequest($campaignId, $status); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation updateCampaignStatusAsync * - * Update a campaign status + * Update an email campaign status * * @param int $campaignId Id of the campaign (required) * @param \SendinBlue\Client\Model\UpdateCampaignStatus $status Status of the campaign (required) @@ -3059,18 +2092,14 @@ class EmailCampaignsApi */ public function updateCampaignStatusAsync($campaignId, $status) { - return $this->updateCampaignStatusAsyncWithHttpInfo($campaignId, $status) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->updateCampaignStatusAsyncWithHttpInfo($campaignId, $status)->then(function ($response) { + return $response[0]; + }); } - /** * Operation updateCampaignStatusAsyncWithHttpInfo * - * Update a campaign status + * Update an email campaign status * * @param int $campaignId Id of the campaign (required) * @param \SendinBlue\Client\Model\UpdateCampaignStatus $status Status of the campaign (required) @@ -3082,30 +2111,14 @@ class EmailCampaignsApi { $returnType = ''; $request = $this->updateCampaignStatusRequest($campaignId, $status); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - return [null, $response->getStatusCode(), $response->getHeaders()]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'updateCampaignStatus' * @@ -3118,88 +2131,62 @@ class EmailCampaignsApi protected function updateCampaignStatusRequest($campaignId, $status) { // verify the required parameter 'campaignId' is set - if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $campaignId when calling updateCampaignStatus' - ); + if ($campaignId === null || \is_array($campaignId) && \count($campaignId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $campaignId when calling updateCampaignStatus'); } // verify the required parameter 'status' is set - if ($status === null || (is_array($status) && count($status) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $status when calling updateCampaignStatus' - ); + if ($status === null || \is_array($status) && \count($status) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $status when calling updateCampaignStatus'); } - $resourcePath = '/emailCampaigns/{campaignId}/status'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($campaignId !== null) { - $resourcePath = str_replace( - '{' . 'campaignId' . '}', - ObjectSerializer::toPathValue($campaignId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'campaignId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($campaignId), $resourcePath); } - // body params $_tempBody = null; if (isset($status)) { $_tempBody = $status; } - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -3210,31 +2197,18 @@ class EmailCampaignsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'PUT', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('PUT', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation updateEmailCampaign * - * Update a campaign + * Update an email campaign * * @param int $campaignId Id of the campaign (required) * @param \SendinBlue\Client\Model\UpdateEmailCampaign $emailCampaign Values to update a campaign (required) @@ -3247,11 +2221,10 @@ class EmailCampaignsApi { $this->updateEmailCampaignWithHttpInfo($campaignId, $emailCampaign); } - /** * Operation updateEmailCampaignWithHttpInfo * - * Update a campaign + * Update an email campaign * * @param int $campaignId Id of the campaign (required) * @param \SendinBlue\Client\Model\UpdateEmailCampaign $emailCampaign Values to update a campaign (required) @@ -3264,64 +2237,36 @@ class EmailCampaignsApi { $returnType = ''; $request = $this->updateEmailCampaignRequest($campaignId, $emailCampaign); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation updateEmailCampaignAsync * - * Update a campaign + * Update an email campaign * * @param int $campaignId Id of the campaign (required) * @param \SendinBlue\Client\Model\UpdateEmailCampaign $emailCampaign Values to update a campaign (required) @@ -3331,18 +2276,14 @@ class EmailCampaignsApi */ public function updateEmailCampaignAsync($campaignId, $emailCampaign) { - return $this->updateEmailCampaignAsyncWithHttpInfo($campaignId, $emailCampaign) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->updateEmailCampaignAsyncWithHttpInfo($campaignId, $emailCampaign)->then(function ($response) { + return $response[0]; + }); } - /** * Operation updateEmailCampaignAsyncWithHttpInfo * - * Update a campaign + * Update an email campaign * * @param int $campaignId Id of the campaign (required) * @param \SendinBlue\Client\Model\UpdateEmailCampaign $emailCampaign Values to update a campaign (required) @@ -3354,30 +2295,14 @@ class EmailCampaignsApi { $returnType = ''; $request = $this->updateEmailCampaignRequest($campaignId, $emailCampaign); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - return [null, $response->getStatusCode(), $response->getHeaders()]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'updateEmailCampaign' * @@ -3390,88 +2315,62 @@ class EmailCampaignsApi protected function updateEmailCampaignRequest($campaignId, $emailCampaign) { // verify the required parameter 'campaignId' is set - if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $campaignId when calling updateEmailCampaign' - ); + if ($campaignId === null || \is_array($campaignId) && \count($campaignId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $campaignId when calling updateEmailCampaign'); } // verify the required parameter 'emailCampaign' is set - if ($emailCampaign === null || (is_array($emailCampaign) && count($emailCampaign) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $emailCampaign when calling updateEmailCampaign' - ); + if ($emailCampaign === null || \is_array($emailCampaign) && \count($emailCampaign) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $emailCampaign when calling updateEmailCampaign'); } - $resourcePath = '/emailCampaigns/{campaignId}'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($campaignId !== null) { - $resourcePath = str_replace( - '{' . 'campaignId' . '}', - ObjectSerializer::toPathValue($campaignId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'campaignId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($campaignId), $resourcePath); } - // body params $_tempBody = null; if (isset($emailCampaign)) { $_tempBody = $emailCampaign; } - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -3482,27 +2381,181 @@ class EmailCampaignsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'PUT', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('PUT', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); + } + /** + * Operation uploadImageToGallery + * + * Upload an image to your account's image gallery + * + * @param \SendinBlue\Client\Model\UploadImageToGallery $uploadImage Parameters to upload an image (required) + * + * @throws \SendinBlue\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return void + */ + public function uploadImageToGallery($uploadImage) + { + $this->uploadImageToGalleryWithHttpInfo($uploadImage); + } + /** + * Operation uploadImageToGalleryWithHttpInfo + * + * Upload an image to your account's image gallery + * + * @param \SendinBlue\Client\Model\UploadImageToGallery $uploadImage Parameters to upload an image (required) + * + * @throws \SendinBlue\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function uploadImageToGalleryWithHttpInfo($uploadImage) + { + $returnType = ''; + $request = $this->uploadImageToGalleryRequest($uploadImage); + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); + } + $statusCode = $response->getStatusCode(); + if ($statusCode < 200 || $statusCode > 299) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + } + return [null, $statusCode, $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { + switch ($e->getCode()) { + case 400: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + /** + * Operation uploadImageToGalleryAsync + * + * Upload an image to your account's image gallery + * + * @param \SendinBlue\Client\Model\UploadImageToGallery $uploadImage Parameters to upload an image (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function uploadImageToGalleryAsync($uploadImage) + { + return $this->uploadImageToGalleryAsyncWithHttpInfo($uploadImage)->then(function ($response) { + return $response[0]; + }); + } + /** + * Operation uploadImageToGalleryAsyncWithHttpInfo + * + * Upload an image to your account's image gallery + * + * @param \SendinBlue\Client\Model\UploadImageToGallery $uploadImage Parameters to upload an image (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function uploadImageToGalleryAsyncWithHttpInfo($uploadImage) + { + $returnType = ''; + $request = $this->uploadImageToGalleryRequest($uploadImage); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); + } + /** + * Create request for operation 'uploadImageToGallery' + * + * @param \SendinBlue\Client\Model\UploadImageToGallery $uploadImage Parameters to upload an image (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function uploadImageToGalleryRequest($uploadImage) + { + // verify the required parameter 'uploadImage' is set + if ($uploadImage === null || \is_array($uploadImage) && \count($uploadImage) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $uploadImage when calling uploadImageToGallery'); + } + $resourcePath = '/emailCampaigns/images'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = \false; + // body params + $_tempBody = null; + if (isset($uploadImage)) { + $_tempBody = $uploadImage; + } + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); + } else { + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); + } + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + if ($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); + } + } + } elseif (\count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; + } + // for HTTP post (form) + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); + } else { + // for HTTP post (form) + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); + } + } + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('api-key'); + if ($apiKey !== null) { + $headers['api-key'] = $apiKey; + } + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('partner-key'); + if ($apiKey !== null) { + $headers['partner-key'] = $apiKey; + } + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Create http client option * @@ -3513,12 +2566,11 @@ class EmailCampaignsApi { $options = []; if ($this->config->getDebug()) { - $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); - if (!$options[RequestOptions::DEBUG]) { + $options[\WPMailSMTP\Vendor\GuzzleHttp\RequestOptions::DEBUG] = \fopen($this->config->getDebugFile(), 'a'); + if (!$options[\WPMailSMTP\Vendor\GuzzleHttp\RequestOptions::DEBUG]) { throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); } } - return $options; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/FoldersApi.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/FoldersApi.php similarity index 51% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/FoldersApi.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/FoldersApi.php index 09ab731..b406a83 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/FoldersApi.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/FoldersApi.php @@ -1,4 +1,5 @@ client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); - $this->headerSelector = $selector ?: new HeaderSelector(); + public function __construct(\WPMailSMTP\Vendor\GuzzleHttp\ClientInterface $client = null, \WPMailSMTP\Vendor\SendinBlue\Client\Configuration $config = null, \WPMailSMTP\Vendor\SendinBlue\Client\HeaderSelector $selector = null) + { + $this->client = $client ?: new \WPMailSMTP\Vendor\GuzzleHttp\Client(); + $this->config = $config ?: new \WPMailSMTP\Vendor\SendinBlue\Client\Configuration(); + $this->headerSelector = $selector ?: new \WPMailSMTP\Vendor\SendinBlue\Client\HeaderSelector(); } - /** * @return Configuration */ @@ -86,7 +76,6 @@ class FoldersApi { return $this->config; } - /** * Operation createFolder * @@ -103,7 +92,6 @@ class FoldersApi list($response) = $this->createFolderWithHttpInfo($createFolder); return $response; } - /** * Operation createFolderWithHttpInfo * @@ -117,76 +105,44 @@ class FoldersApi */ public function createFolderWithHttpInfo($createFolder) { - $returnType = '\SendinBlue\Client\Model\CreateModel'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateModel'; $request = $this->createFolderRequest($createFolder); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 201: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\CreateModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation createFolderAsync * @@ -199,14 +155,10 @@ class FoldersApi */ public function createFolderAsync($createFolder) { - return $this->createFolderAsyncWithHttpInfo($createFolder) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->createFolderAsyncWithHttpInfo($createFolder)->then(function ($response) { + return $response[0]; + }); } - /** * Operation createFolderAsyncWithHttpInfo * @@ -219,46 +171,26 @@ class FoldersApi */ public function createFolderAsyncWithHttpInfo($createFolder) { - $returnType = '\SendinBlue\Client\Model\CreateModel'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateModel'; $request = $this->createFolderRequest($createFolder); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'createFolder' * @@ -270,74 +202,54 @@ class FoldersApi protected function createFolderRequest($createFolder) { // verify the required parameter 'createFolder' is set - if ($createFolder === null || (is_array($createFolder) && count($createFolder) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $createFolder when calling createFolder' - ); + if ($createFolder === null || \is_array($createFolder) && \count($createFolder) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $createFolder when calling createFolder'); } - $resourcePath = '/contacts/folders'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - - + $multipart = \false; // body params $_tempBody = null; if (isset($createFolder)) { $_tempBody = $createFolder; } - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -348,27 +260,14 @@ class FoldersApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation deleteFolder * @@ -384,7 +283,6 @@ class FoldersApi { $this->deleteFolderWithHttpInfo($folderId); } - /** * Operation deleteFolderWithHttpInfo * @@ -400,60 +298,32 @@ class FoldersApi { $returnType = ''; $request = $this->deleteFolderRequest($folderId); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation deleteFolderAsync * @@ -466,14 +336,10 @@ class FoldersApi */ public function deleteFolderAsync($folderId) { - return $this->deleteFolderAsyncWithHttpInfo($folderId) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->deleteFolderAsyncWithHttpInfo($folderId)->then(function ($response) { + return $response[0]; + }); } - /** * Operation deleteFolderAsyncWithHttpInfo * @@ -488,30 +354,14 @@ class FoldersApi { $returnType = ''; $request = $this->deleteFolderRequest($folderId); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - return [null, $response->getStatusCode(), $response->getHeaders()]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'deleteFolder' * @@ -523,79 +373,55 @@ class FoldersApi protected function deleteFolderRequest($folderId) { // verify the required parameter 'folderId' is set - if ($folderId === null || (is_array($folderId) && count($folderId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $folderId when calling deleteFolder' - ); + if ($folderId === null || \is_array($folderId) && \count($folderId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $folderId when calling deleteFolder'); } - $resourcePath = '/contacts/folders/{folderId}'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($folderId !== null) { - $resourcePath = str_replace( - '{' . 'folderId' . '}', - ObjectSerializer::toPathValue($folderId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'folderId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($folderId), $resourcePath); } - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -606,31 +432,18 @@ class FoldersApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'DELETE', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('DELETE', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation getFolder * - * Returns folder details + * Returns a folder's details * * @param int $folderId id of the folder (required) * @@ -643,11 +456,10 @@ class FoldersApi list($response) = $this->getFolderWithHttpInfo($folderId); return $response; } - /** * Operation getFolderWithHttpInfo * - * Returns folder details + * Returns a folder's details * * @param int $folderId id of the folder (required) * @@ -657,88 +469,52 @@ class FoldersApi */ public function getFolderWithHttpInfo($folderId) { - $returnType = '\SendinBlue\Client\Model\GetFolder'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetFolder'; $request = $this->getFolderRequest($folderId); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\GetFolder', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetFolder', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation getFolderAsync * - * Returns folder details + * Returns a folder's details * * @param int $folderId id of the folder (required) * @@ -747,18 +523,14 @@ class FoldersApi */ public function getFolderAsync($folderId) { - return $this->getFolderAsyncWithHttpInfo($folderId) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->getFolderAsyncWithHttpInfo($folderId)->then(function ($response) { + return $response[0]; + }); } - /** * Operation getFolderAsyncWithHttpInfo * - * Returns folder details + * Returns a folder's details * * @param int $folderId id of the folder (required) * @@ -767,46 +539,26 @@ class FoldersApi */ public function getFolderAsyncWithHttpInfo($folderId) { - $returnType = '\SendinBlue\Client\Model\GetFolder'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetFolder'; $request = $this->getFolderRequest($folderId); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'getFolder' * @@ -818,79 +570,55 @@ class FoldersApi protected function getFolderRequest($folderId) { // verify the required parameter 'folderId' is set - if ($folderId === null || (is_array($folderId) && count($folderId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $folderId when calling getFolder' - ); + if ($folderId === null || \is_array($folderId) && \count($folderId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $folderId when calling getFolder'); } - $resourcePath = '/contacts/folders/{folderId}'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($folderId !== null) { - $resourcePath = str_replace( - '{' . 'folderId' . '}', - ObjectSerializer::toPathValue($folderId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'folderId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($folderId), $resourcePath); } - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -901,31 +629,18 @@ class FoldersApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation getFolderLists * - * Get the lists in a folder + * Get lists in a folder * * @param int $folderId Id of the folder (required) * @param int $limit Number of documents per page (optional, default to 10) @@ -940,11 +655,10 @@ class FoldersApi list($response) = $this->getFolderListsWithHttpInfo($folderId, $limit, $offset); return $response; } - /** * Operation getFolderListsWithHttpInfo * - * Get the lists in a folder + * Get lists in a folder * * @param int $folderId Id of the folder (required) * @param int $limit Number of documents per page (optional, default to 10) @@ -956,88 +670,52 @@ class FoldersApi */ public function getFolderListsWithHttpInfo($folderId, $limit = '10', $offset = '0') { - $returnType = '\SendinBlue\Client\Model\GetFolderLists'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetFolderLists'; $request = $this->getFolderListsRequest($folderId, $limit, $offset); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\GetFolderLists', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetFolderLists', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation getFolderListsAsync * - * Get the lists in a folder + * Get lists in a folder * * @param int $folderId Id of the folder (required) * @param int $limit Number of documents per page (optional, default to 10) @@ -1048,18 +726,14 @@ class FoldersApi */ public function getFolderListsAsync($folderId, $limit = '10', $offset = '0') { - return $this->getFolderListsAsyncWithHttpInfo($folderId, $limit, $offset) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->getFolderListsAsyncWithHttpInfo($folderId, $limit, $offset)->then(function ($response) { + return $response[0]; + }); } - /** * Operation getFolderListsAsyncWithHttpInfo * - * Get the lists in a folder + * Get lists in a folder * * @param int $folderId Id of the folder (required) * @param int $limit Number of documents per page (optional, default to 10) @@ -1070,46 +744,26 @@ class FoldersApi */ public function getFolderListsAsyncWithHttpInfo($folderId, $limit = '10', $offset = '0') { - $returnType = '\SendinBlue\Client\Model\GetFolderLists'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetFolderLists'; $request = $this->getFolderListsRequest($folderId, $limit, $offset); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'getFolderLists' * @@ -1123,91 +777,66 @@ class FoldersApi protected function getFolderListsRequest($folderId, $limit = '10', $offset = '0') { // verify the required parameter 'folderId' is set - if ($folderId === null || (is_array($folderId) && count($folderId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $folderId when calling getFolderLists' - ); + if ($folderId === null || \is_array($folderId) && \count($folderId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $folderId when calling getFolderLists'); } if ($limit !== null && $limit > 50) { throw new \InvalidArgumentException('invalid value for "$limit" when calling FoldersApi.getFolderLists, must be smaller than or equal to 50.'); } - - $resourcePath = '/contacts/folders/{folderId}/lists'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - + $multipart = \false; // query params if ($limit !== null) { - $queryParams['limit'] = ObjectSerializer::toQueryValue($limit); + $queryParams['limit'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($limit); } // query params if ($offset !== null) { - $queryParams['offset'] = ObjectSerializer::toQueryValue($offset); + $queryParams['offset'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($offset); } - // path params if ($folderId !== null) { - $resourcePath = str_replace( - '{' . 'folderId' . '}', - ObjectSerializer::toPathValue($folderId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'folderId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($folderId), $resourcePath); } - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -1218,31 +847,18 @@ class FoldersApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation getFolders * - * Get all the folders + * Get all folders * * @param int $limit Number of documents per page (required) * @param int $offset Index of the first document of the page (required) @@ -1256,11 +872,10 @@ class FoldersApi list($response) = $this->getFoldersWithHttpInfo($limit, $offset); return $response; } - /** * Operation getFoldersWithHttpInfo * - * Get all the folders + * Get all folders * * @param int $limit Number of documents per page (required) * @param int $offset Index of the first document of the page (required) @@ -1271,80 +886,48 @@ class FoldersApi */ public function getFoldersWithHttpInfo($limit, $offset) { - $returnType = '\SendinBlue\Client\Model\GetFolders'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetFolders'; $request = $this->getFoldersRequest($limit, $offset); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\GetFolders', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetFolders', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation getFoldersAsync * - * Get all the folders + * Get all folders * * @param int $limit Number of documents per page (required) * @param int $offset Index of the first document of the page (required) @@ -1354,18 +937,14 @@ class FoldersApi */ public function getFoldersAsync($limit, $offset) { - return $this->getFoldersAsyncWithHttpInfo($limit, $offset) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->getFoldersAsyncWithHttpInfo($limit, $offset)->then(function ($response) { + return $response[0]; + }); } - /** * Operation getFoldersAsyncWithHttpInfo * - * Get all the folders + * Get all folders * * @param int $limit Number of documents per page (required) * @param int $offset Index of the first document of the page (required) @@ -1375,46 +954,26 @@ class FoldersApi */ public function getFoldersAsyncWithHttpInfo($limit, $offset) { - $returnType = '\SendinBlue\Client\Model\GetFolders'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetFolders'; $request = $this->getFoldersRequest($limit, $offset); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'getFolders' * @@ -1427,89 +986,66 @@ class FoldersApi protected function getFoldersRequest($limit, $offset) { // verify the required parameter 'limit' is set - if ($limit === null || (is_array($limit) && count($limit) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $limit when calling getFolders' - ); + if ($limit === null || \is_array($limit) && \count($limit) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $limit when calling getFolders'); } if ($limit > 50) { throw new \InvalidArgumentException('invalid value for "$limit" when calling FoldersApi.getFolders, must be smaller than or equal to 50.'); } - // verify the required parameter 'offset' is set - if ($offset === null || (is_array($offset) && count($offset) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $offset when calling getFolders' - ); + if ($offset === null || \is_array($offset) && \count($offset) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $offset when calling getFolders'); } - $resourcePath = '/contacts/folders'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - + $multipart = \false; // query params if ($limit !== null) { - $queryParams['limit'] = ObjectSerializer::toQueryValue($limit); + $queryParams['limit'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($limit); } // query params if ($offset !== null) { - $queryParams['offset'] = ObjectSerializer::toQueryValue($offset); + $queryParams['offset'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($offset); } - - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -1520,31 +1056,18 @@ class FoldersApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation updateFolder * - * Update a contact folder + * Update a folder * * @param int $folderId Id of the folder (required) * @param \SendinBlue\Client\Model\CreateUpdateFolder $updateFolder Name of the folder (required) @@ -1557,11 +1080,10 @@ class FoldersApi { $this->updateFolderWithHttpInfo($folderId, $updateFolder); } - /** * Operation updateFolderWithHttpInfo * - * Update a contact folder + * Update a folder * * @param int $folderId Id of the folder (required) * @param \SendinBlue\Client\Model\CreateUpdateFolder $updateFolder Name of the folder (required) @@ -1574,64 +1096,36 @@ class FoldersApi { $returnType = ''; $request = $this->updateFolderRequest($folderId, $updateFolder); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation updateFolderAsync * - * Update a contact folder + * Update a folder * * @param int $folderId Id of the folder (required) * @param \SendinBlue\Client\Model\CreateUpdateFolder $updateFolder Name of the folder (required) @@ -1641,18 +1135,14 @@ class FoldersApi */ public function updateFolderAsync($folderId, $updateFolder) { - return $this->updateFolderAsyncWithHttpInfo($folderId, $updateFolder) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->updateFolderAsyncWithHttpInfo($folderId, $updateFolder)->then(function ($response) { + return $response[0]; + }); } - /** * Operation updateFolderAsyncWithHttpInfo * - * Update a contact folder + * Update a folder * * @param int $folderId Id of the folder (required) * @param \SendinBlue\Client\Model\CreateUpdateFolder $updateFolder Name of the folder (required) @@ -1664,30 +1154,14 @@ class FoldersApi { $returnType = ''; $request = $this->updateFolderRequest($folderId, $updateFolder); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - return [null, $response->getStatusCode(), $response->getHeaders()]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'updateFolder' * @@ -1700,88 +1174,62 @@ class FoldersApi protected function updateFolderRequest($folderId, $updateFolder) { // verify the required parameter 'folderId' is set - if ($folderId === null || (is_array($folderId) && count($folderId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $folderId when calling updateFolder' - ); + if ($folderId === null || \is_array($folderId) && \count($folderId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $folderId when calling updateFolder'); } // verify the required parameter 'updateFolder' is set - if ($updateFolder === null || (is_array($updateFolder) && count($updateFolder) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $updateFolder when calling updateFolder' - ); + if ($updateFolder === null || \is_array($updateFolder) && \count($updateFolder) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $updateFolder when calling updateFolder'); } - $resourcePath = '/contacts/folders/{folderId}'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($folderId !== null) { - $resourcePath = str_replace( - '{' . 'folderId' . '}', - ObjectSerializer::toPathValue($folderId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'folderId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($folderId), $resourcePath); } - // body params $_tempBody = null; if (isset($updateFolder)) { $_tempBody = $updateFolder; } - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -1792,27 +1240,14 @@ class FoldersApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'PUT', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('PUT', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Create http client option * @@ -1823,12 +1258,11 @@ class FoldersApi { $options = []; if ($this->config->getDebug()) { - $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); - if (!$options[RequestOptions::DEBUG]) { + $options[\WPMailSMTP\Vendor\GuzzleHttp\RequestOptions::DEBUG] = \fopen($this->config->getDebugFile(), 'a'); + if (!$options[\WPMailSMTP\Vendor\GuzzleHttp\RequestOptions::DEBUG]) { throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); } } - return $options; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/ListsApi.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/ListsApi.php similarity index 51% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/ListsApi.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/ListsApi.php index 6e27807..1c9e3c4 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/ListsApi.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/ListsApi.php @@ -1,4 +1,5 @@ client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); - $this->headerSelector = $selector ?: new HeaderSelector(); + public function __construct(\WPMailSMTP\Vendor\GuzzleHttp\ClientInterface $client = null, \WPMailSMTP\Vendor\SendinBlue\Client\Configuration $config = null, \WPMailSMTP\Vendor\SendinBlue\Client\HeaderSelector $selector = null) + { + $this->client = $client ?: new \WPMailSMTP\Vendor\GuzzleHttp\Client(); + $this->config = $config ?: new \WPMailSMTP\Vendor\SendinBlue\Client\Configuration(); + $this->headerSelector = $selector ?: new \WPMailSMTP\Vendor\SendinBlue\Client\HeaderSelector(); } - /** * @return Configuration */ @@ -86,7 +76,6 @@ class ListsApi { return $this->config; } - /** * Operation addContactToList * @@ -104,7 +93,6 @@ class ListsApi list($response) = $this->addContactToListWithHttpInfo($listId, $contactEmails); return $response; } - /** * Operation addContactToListWithHttpInfo * @@ -119,84 +107,48 @@ class ListsApi */ public function addContactToListWithHttpInfo($listId, $contactEmails) { - $returnType = '\SendinBlue\Client\Model\PostContactInfo'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\PostContactInfo'; $request = $this->addContactToListRequest($listId, $contactEmails); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 201: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\PostContactInfo', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\PostContactInfo', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation addContactToListAsync * @@ -210,14 +162,10 @@ class ListsApi */ public function addContactToListAsync($listId, $contactEmails) { - return $this->addContactToListAsyncWithHttpInfo($listId, $contactEmails) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->addContactToListAsyncWithHttpInfo($listId, $contactEmails)->then(function ($response) { + return $response[0]; + }); } - /** * Operation addContactToListAsyncWithHttpInfo * @@ -231,46 +179,26 @@ class ListsApi */ public function addContactToListAsyncWithHttpInfo($listId, $contactEmails) { - $returnType = '\SendinBlue\Client\Model\PostContactInfo'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\PostContactInfo'; $request = $this->addContactToListRequest($listId, $contactEmails); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'addContactToList' * @@ -283,88 +211,62 @@ class ListsApi protected function addContactToListRequest($listId, $contactEmails) { // verify the required parameter 'listId' is set - if ($listId === null || (is_array($listId) && count($listId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $listId when calling addContactToList' - ); + if ($listId === null || \is_array($listId) && \count($listId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $listId when calling addContactToList'); } // verify the required parameter 'contactEmails' is set - if ($contactEmails === null || (is_array($contactEmails) && count($contactEmails) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $contactEmails when calling addContactToList' - ); + if ($contactEmails === null || \is_array($contactEmails) && \count($contactEmails) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $contactEmails when calling addContactToList'); } - $resourcePath = '/contacts/lists/{listId}/contacts/add'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($listId !== null) { - $resourcePath = str_replace( - '{' . 'listId' . '}', - ObjectSerializer::toPathValue($listId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'listId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($listId), $resourcePath); } - // body params $_tempBody = null; if (isset($contactEmails)) { $_tempBody = $contactEmails; } - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -375,27 +277,14 @@ class ListsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation createList * @@ -412,7 +301,6 @@ class ListsApi list($response) = $this->createListWithHttpInfo($createList); return $response; } - /** * Operation createListWithHttpInfo * @@ -426,76 +314,44 @@ class ListsApi */ public function createListWithHttpInfo($createList) { - $returnType = '\SendinBlue\Client\Model\CreateModel'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateModel'; $request = $this->createListRequest($createList); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 201: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\CreateModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation createListAsync * @@ -508,14 +364,10 @@ class ListsApi */ public function createListAsync($createList) { - return $this->createListAsyncWithHttpInfo($createList) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->createListAsyncWithHttpInfo($createList)->then(function ($response) { + return $response[0]; + }); } - /** * Operation createListAsyncWithHttpInfo * @@ -528,46 +380,26 @@ class ListsApi */ public function createListAsyncWithHttpInfo($createList) { - $returnType = '\SendinBlue\Client\Model\CreateModel'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateModel'; $request = $this->createListRequest($createList); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'createList' * @@ -579,74 +411,54 @@ class ListsApi protected function createListRequest($createList) { // verify the required parameter 'createList' is set - if ($createList === null || (is_array($createList) && count($createList) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $createList when calling createList' - ); + if ($createList === null || \is_array($createList) && \count($createList) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $createList when calling createList'); } - $resourcePath = '/contacts/lists'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - - + $multipart = \false; // body params $_tempBody = null; if (isset($createList)) { $_tempBody = $createList; } - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -657,27 +469,14 @@ class ListsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation deleteList * @@ -693,7 +492,6 @@ class ListsApi { $this->deleteListWithHttpInfo($listId); } - /** * Operation deleteListWithHttpInfo * @@ -709,60 +507,32 @@ class ListsApi { $returnType = ''; $request = $this->deleteListRequest($listId); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation deleteListAsync * @@ -775,14 +545,10 @@ class ListsApi */ public function deleteListAsync($listId) { - return $this->deleteListAsyncWithHttpInfo($listId) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->deleteListAsyncWithHttpInfo($listId)->then(function ($response) { + return $response[0]; + }); } - /** * Operation deleteListAsyncWithHttpInfo * @@ -797,30 +563,14 @@ class ListsApi { $returnType = ''; $request = $this->deleteListRequest($listId); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - return [null, $response->getStatusCode(), $response->getHeaders()]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'deleteList' * @@ -832,79 +582,55 @@ class ListsApi protected function deleteListRequest($listId) { // verify the required parameter 'listId' is set - if ($listId === null || (is_array($listId) && count($listId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $listId when calling deleteList' - ); + if ($listId === null || \is_array($listId) && \count($listId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $listId when calling deleteList'); } - $resourcePath = '/contacts/lists/{listId}'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($listId !== null) { - $resourcePath = str_replace( - '{' . 'listId' . '}', - ObjectSerializer::toPathValue($listId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'listId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($listId), $resourcePath); } - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -915,31 +641,18 @@ class ListsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'DELETE', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('DELETE', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation getContactsFromList * - * Get the contacts in a list + * Get contacts in a list * * @param int $listId Id of the list (required) * @param \DateTime $modifiedSince Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. (optional) @@ -955,11 +668,10 @@ class ListsApi list($response) = $this->getContactsFromListWithHttpInfo($listId, $modifiedSince, $limit, $offset); return $response; } - /** * Operation getContactsFromListWithHttpInfo * - * Get the contacts in a list + * Get contacts in a list * * @param int $listId Id of the list (required) * @param \DateTime $modifiedSince Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. (optional) @@ -972,88 +684,52 @@ class ListsApi */ public function getContactsFromListWithHttpInfo($listId, $modifiedSince = null, $limit = '50', $offset = '0') { - $returnType = '\SendinBlue\Client\Model\GetContacts'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetContacts'; $request = $this->getContactsFromListRequest($listId, $modifiedSince, $limit, $offset); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\GetContacts', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetContacts', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation getContactsFromListAsync * - * Get the contacts in a list + * Get contacts in a list * * @param int $listId Id of the list (required) * @param \DateTime $modifiedSince Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. (optional) @@ -1065,18 +741,14 @@ class ListsApi */ public function getContactsFromListAsync($listId, $modifiedSince = null, $limit = '50', $offset = '0') { - return $this->getContactsFromListAsyncWithHttpInfo($listId, $modifiedSince, $limit, $offset) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->getContactsFromListAsyncWithHttpInfo($listId, $modifiedSince, $limit, $offset)->then(function ($response) { + return $response[0]; + }); } - /** * Operation getContactsFromListAsyncWithHttpInfo * - * Get the contacts in a list + * Get contacts in a list * * @param int $listId Id of the list (required) * @param \DateTime $modifiedSince Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. (optional) @@ -1088,46 +760,26 @@ class ListsApi */ public function getContactsFromListAsyncWithHttpInfo($listId, $modifiedSince = null, $limit = '50', $offset = '0') { - $returnType = '\SendinBlue\Client\Model\GetContacts'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetContacts'; $request = $this->getContactsFromListRequest($listId, $modifiedSince, $limit, $offset); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'getContactsFromList' * @@ -1142,95 +794,70 @@ class ListsApi protected function getContactsFromListRequest($listId, $modifiedSince = null, $limit = '50', $offset = '0') { // verify the required parameter 'listId' is set - if ($listId === null || (is_array($listId) && count($listId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $listId when calling getContactsFromList' - ); + if ($listId === null || \is_array($listId) && \count($listId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $listId when calling getContactsFromList'); } if ($limit !== null && $limit > 500) { throw new \InvalidArgumentException('invalid value for "$limit" when calling ListsApi.getContactsFromList, must be smaller than or equal to 500.'); } - - $resourcePath = '/contacts/lists/{listId}/contacts'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - + $multipart = \false; // query params if ($modifiedSince !== null) { - $queryParams['modifiedSince'] = ObjectSerializer::toQueryValue($modifiedSince); + $queryParams['modifiedSince'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($modifiedSince); } // query params if ($limit !== null) { - $queryParams['limit'] = ObjectSerializer::toQueryValue($limit); + $queryParams['limit'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($limit); } // query params if ($offset !== null) { - $queryParams['offset'] = ObjectSerializer::toQueryValue($offset); + $queryParams['offset'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($offset); } - // path params if ($listId !== null) { - $resourcePath = str_replace( - '{' . 'listId' . '}', - ObjectSerializer::toPathValue($listId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'listId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($listId), $resourcePath); } - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -1241,31 +868,18 @@ class ListsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation getFolderLists * - * Get the lists in a folder + * Get lists in a folder * * @param int $folderId Id of the folder (required) * @param int $limit Number of documents per page (optional, default to 10) @@ -1280,11 +894,10 @@ class ListsApi list($response) = $this->getFolderListsWithHttpInfo($folderId, $limit, $offset); return $response; } - /** * Operation getFolderListsWithHttpInfo * - * Get the lists in a folder + * Get lists in a folder * * @param int $folderId Id of the folder (required) * @param int $limit Number of documents per page (optional, default to 10) @@ -1296,88 +909,52 @@ class ListsApi */ public function getFolderListsWithHttpInfo($folderId, $limit = '10', $offset = '0') { - $returnType = '\SendinBlue\Client\Model\GetFolderLists'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetFolderLists'; $request = $this->getFolderListsRequest($folderId, $limit, $offset); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\GetFolderLists', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetFolderLists', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation getFolderListsAsync * - * Get the lists in a folder + * Get lists in a folder * * @param int $folderId Id of the folder (required) * @param int $limit Number of documents per page (optional, default to 10) @@ -1388,18 +965,14 @@ class ListsApi */ public function getFolderListsAsync($folderId, $limit = '10', $offset = '0') { - return $this->getFolderListsAsyncWithHttpInfo($folderId, $limit, $offset) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->getFolderListsAsyncWithHttpInfo($folderId, $limit, $offset)->then(function ($response) { + return $response[0]; + }); } - /** * Operation getFolderListsAsyncWithHttpInfo * - * Get the lists in a folder + * Get lists in a folder * * @param int $folderId Id of the folder (required) * @param int $limit Number of documents per page (optional, default to 10) @@ -1410,46 +983,26 @@ class ListsApi */ public function getFolderListsAsyncWithHttpInfo($folderId, $limit = '10', $offset = '0') { - $returnType = '\SendinBlue\Client\Model\GetFolderLists'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetFolderLists'; $request = $this->getFolderListsRequest($folderId, $limit, $offset); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'getFolderLists' * @@ -1463,91 +1016,66 @@ class ListsApi protected function getFolderListsRequest($folderId, $limit = '10', $offset = '0') { // verify the required parameter 'folderId' is set - if ($folderId === null || (is_array($folderId) && count($folderId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $folderId when calling getFolderLists' - ); + if ($folderId === null || \is_array($folderId) && \count($folderId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $folderId when calling getFolderLists'); } if ($limit !== null && $limit > 50) { throw new \InvalidArgumentException('invalid value for "$limit" when calling ListsApi.getFolderLists, must be smaller than or equal to 50.'); } - - $resourcePath = '/contacts/folders/{folderId}/lists'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - + $multipart = \false; // query params if ($limit !== null) { - $queryParams['limit'] = ObjectSerializer::toQueryValue($limit); + $queryParams['limit'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($limit); } // query params if ($offset !== null) { - $queryParams['offset'] = ObjectSerializer::toQueryValue($offset); + $queryParams['offset'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($offset); } - // path params if ($folderId !== null) { - $resourcePath = str_replace( - '{' . 'folderId' . '}', - ObjectSerializer::toPathValue($folderId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'folderId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($folderId), $resourcePath); } - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -1558,31 +1086,18 @@ class ListsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation getList * - * Get the details of a list + * Get a list's details * * @param int $listId Id of the list (required) * @@ -1595,11 +1110,10 @@ class ListsApi list($response) = $this->getListWithHttpInfo($listId); return $response; } - /** * Operation getListWithHttpInfo * - * Get the details of a list + * Get a list's details * * @param int $listId Id of the list (required) * @@ -1609,88 +1123,52 @@ class ListsApi */ public function getListWithHttpInfo($listId) { - $returnType = '\SendinBlue\Client\Model\GetExtendedList'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedList'; $request = $this->getListRequest($listId); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\GetExtendedList', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedList', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation getListAsync * - * Get the details of a list + * Get a list's details * * @param int $listId Id of the list (required) * @@ -1699,18 +1177,14 @@ class ListsApi */ public function getListAsync($listId) { - return $this->getListAsyncWithHttpInfo($listId) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->getListAsyncWithHttpInfo($listId)->then(function ($response) { + return $response[0]; + }); } - /** * Operation getListAsyncWithHttpInfo * - * Get the details of a list + * Get a list's details * * @param int $listId Id of the list (required) * @@ -1719,46 +1193,26 @@ class ListsApi */ public function getListAsyncWithHttpInfo($listId) { - $returnType = '\SendinBlue\Client\Model\GetExtendedList'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedList'; $request = $this->getListRequest($listId); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'getList' * @@ -1770,79 +1224,55 @@ class ListsApi protected function getListRequest($listId) { // verify the required parameter 'listId' is set - if ($listId === null || (is_array($listId) && count($listId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $listId when calling getList' - ); + if ($listId === null || \is_array($listId) && \count($listId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $listId when calling getList'); } - $resourcePath = '/contacts/lists/{listId}'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($listId !== null) { - $resourcePath = str_replace( - '{' . 'listId' . '}', - ObjectSerializer::toPathValue($listId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'listId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($listId), $resourcePath); } - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -1853,27 +1283,14 @@ class ListsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation getLists * @@ -1891,7 +1308,6 @@ class ListsApi list($response) = $this->getListsWithHttpInfo($limit, $offset); return $response; } - /** * Operation getListsWithHttpInfo * @@ -1906,76 +1322,44 @@ class ListsApi */ public function getListsWithHttpInfo($limit = '10', $offset = '0') { - $returnType = '\SendinBlue\Client\Model\GetLists'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetLists'; $request = $this->getListsRequest($limit, $offset); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\GetLists', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetLists', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation getListsAsync * @@ -1989,14 +1373,10 @@ class ListsApi */ public function getListsAsync($limit = '10', $offset = '0') { - return $this->getListsAsyncWithHttpInfo($limit, $offset) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->getListsAsyncWithHttpInfo($limit, $offset)->then(function ($response) { + return $response[0]; + }); } - /** * Operation getListsAsyncWithHttpInfo * @@ -2010,46 +1390,26 @@ class ListsApi */ public function getListsAsyncWithHttpInfo($limit = '10', $offset = '0') { - $returnType = '\SendinBlue\Client\Model\GetLists'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetLists'; $request = $this->getListsRequest($limit, $offset); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'getLists' * @@ -2064,75 +1424,56 @@ class ListsApi if ($limit !== null && $limit > 50) { throw new \InvalidArgumentException('invalid value for "$limit" when calling ListsApi.getLists, must be smaller than or equal to 50.'); } - - $resourcePath = '/contacts/lists'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - + $multipart = \false; // query params if ($limit !== null) { - $queryParams['limit'] = ObjectSerializer::toQueryValue($limit); + $queryParams['limit'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($limit); } // query params if ($offset !== null) { - $queryParams['offset'] = ObjectSerializer::toQueryValue($offset); + $queryParams['offset'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($offset); } - - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -2143,31 +1484,18 @@ class ListsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation removeContactFromList * - * Remove existing contacts from a list + * Delete a contact from a list * * @param int $listId Id of the list (required) * @param \SendinBlue\Client\Model\RemoveContactFromList $contactEmails Emails adresses of the contact (required) @@ -2181,11 +1509,10 @@ class ListsApi list($response) = $this->removeContactFromListWithHttpInfo($listId, $contactEmails); return $response; } - /** * Operation removeContactFromListWithHttpInfo * - * Remove existing contacts from a list + * Delete a contact from a list * * @param int $listId Id of the list (required) * @param \SendinBlue\Client\Model\RemoveContactFromList $contactEmails Emails adresses of the contact (required) @@ -2196,88 +1523,52 @@ class ListsApi */ public function removeContactFromListWithHttpInfo($listId, $contactEmails) { - $returnType = '\SendinBlue\Client\Model\PostContactInfo'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\PostContactInfo'; $request = $this->removeContactFromListRequest($listId, $contactEmails); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 201: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\PostContactInfo', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\PostContactInfo', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation removeContactFromListAsync * - * Remove existing contacts from a list + * Delete a contact from a list * * @param int $listId Id of the list (required) * @param \SendinBlue\Client\Model\RemoveContactFromList $contactEmails Emails adresses of the contact (required) @@ -2287,18 +1578,14 @@ class ListsApi */ public function removeContactFromListAsync($listId, $contactEmails) { - return $this->removeContactFromListAsyncWithHttpInfo($listId, $contactEmails) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->removeContactFromListAsyncWithHttpInfo($listId, $contactEmails)->then(function ($response) { + return $response[0]; + }); } - /** * Operation removeContactFromListAsyncWithHttpInfo * - * Remove existing contacts from a list + * Delete a contact from a list * * @param int $listId Id of the list (required) * @param \SendinBlue\Client\Model\RemoveContactFromList $contactEmails Emails adresses of the contact (required) @@ -2308,46 +1595,26 @@ class ListsApi */ public function removeContactFromListAsyncWithHttpInfo($listId, $contactEmails) { - $returnType = '\SendinBlue\Client\Model\PostContactInfo'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\PostContactInfo'; $request = $this->removeContactFromListRequest($listId, $contactEmails); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'removeContactFromList' * @@ -2360,88 +1627,62 @@ class ListsApi protected function removeContactFromListRequest($listId, $contactEmails) { // verify the required parameter 'listId' is set - if ($listId === null || (is_array($listId) && count($listId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $listId when calling removeContactFromList' - ); + if ($listId === null || \is_array($listId) && \count($listId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $listId when calling removeContactFromList'); } // verify the required parameter 'contactEmails' is set - if ($contactEmails === null || (is_array($contactEmails) && count($contactEmails) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $contactEmails when calling removeContactFromList' - ); + if ($contactEmails === null || \is_array($contactEmails) && \count($contactEmails) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $contactEmails when calling removeContactFromList'); } - $resourcePath = '/contacts/lists/{listId}/contacts/remove'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($listId !== null) { - $resourcePath = str_replace( - '{' . 'listId' . '}', - ObjectSerializer::toPathValue($listId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'listId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($listId), $resourcePath); } - // body params $_tempBody = null; if (isset($contactEmails)) { $_tempBody = $contactEmails; } - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -2452,27 +1693,14 @@ class ListsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation updateList * @@ -2489,7 +1717,6 @@ class ListsApi { $this->updateListWithHttpInfo($listId, $updateList); } - /** * Operation updateListWithHttpInfo * @@ -2506,60 +1733,32 @@ class ListsApi { $returnType = ''; $request = $this->updateListRequest($listId, $updateList); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation updateListAsync * @@ -2573,14 +1772,10 @@ class ListsApi */ public function updateListAsync($listId, $updateList) { - return $this->updateListAsyncWithHttpInfo($listId, $updateList) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->updateListAsyncWithHttpInfo($listId, $updateList)->then(function ($response) { + return $response[0]; + }); } - /** * Operation updateListAsyncWithHttpInfo * @@ -2596,30 +1791,14 @@ class ListsApi { $returnType = ''; $request = $this->updateListRequest($listId, $updateList); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - return [null, $response->getStatusCode(), $response->getHeaders()]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'updateList' * @@ -2632,88 +1811,62 @@ class ListsApi protected function updateListRequest($listId, $updateList) { // verify the required parameter 'listId' is set - if ($listId === null || (is_array($listId) && count($listId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $listId when calling updateList' - ); + if ($listId === null || \is_array($listId) && \count($listId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $listId when calling updateList'); } // verify the required parameter 'updateList' is set - if ($updateList === null || (is_array($updateList) && count($updateList) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $updateList when calling updateList' - ); + if ($updateList === null || \is_array($updateList) && \count($updateList) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $updateList when calling updateList'); } - $resourcePath = '/contacts/lists/{listId}'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($listId !== null) { - $resourcePath = str_replace( - '{' . 'listId' . '}', - ObjectSerializer::toPathValue($listId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'listId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($listId), $resourcePath); } - // body params $_tempBody = null; if (isset($updateList)) { $_tempBody = $updateList; } - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -2724,27 +1877,14 @@ class ListsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'PUT', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('PUT', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Create http client option * @@ -2755,12 +1895,11 @@ class ListsApi { $options = []; if ($this->config->getDebug()) { - $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); - if (!$options[RequestOptions::DEBUG]) { + $options[\WPMailSMTP\Vendor\GuzzleHttp\RequestOptions::DEBUG] = \fopen($this->config->getDebugFile(), 'a'); + if (!$options[\WPMailSMTP\Vendor\GuzzleHttp\RequestOptions::DEBUG]) { throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); } } - return $options; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/ProcessApi.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/ProcessApi.php similarity index 53% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/ProcessApi.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/ProcessApi.php index b734edd..0bd8c00 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/ProcessApi.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/ProcessApi.php @@ -1,4 +1,5 @@ client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); - $this->headerSelector = $selector ?: new HeaderSelector(); + public function __construct(\WPMailSMTP\Vendor\GuzzleHttp\ClientInterface $client = null, \WPMailSMTP\Vendor\SendinBlue\Client\Configuration $config = null, \WPMailSMTP\Vendor\SendinBlue\Client\HeaderSelector $selector = null) + { + $this->client = $client ?: new \WPMailSMTP\Vendor\GuzzleHttp\Client(); + $this->config = $config ?: new \WPMailSMTP\Vendor\SendinBlue\Client\Configuration(); + $this->headerSelector = $selector ?: new \WPMailSMTP\Vendor\SendinBlue\Client\HeaderSelector(); } - /** * @return Configuration */ @@ -86,7 +76,6 @@ class ProcessApi { return $this->config; } - /** * Operation getProcess * @@ -103,7 +92,6 @@ class ProcessApi list($response) = $this->getProcessWithHttpInfo($processId); return $response; } - /** * Operation getProcessWithHttpInfo * @@ -117,84 +105,48 @@ class ProcessApi */ public function getProcessWithHttpInfo($processId) { - $returnType = '\SendinBlue\Client\Model\GetProcess'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetProcess'; $request = $this->getProcessRequest($processId); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\GetProcess', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetProcess', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation getProcessAsync * @@ -207,14 +159,10 @@ class ProcessApi */ public function getProcessAsync($processId) { - return $this->getProcessAsyncWithHttpInfo($processId) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->getProcessAsyncWithHttpInfo($processId)->then(function ($response) { + return $response[0]; + }); } - /** * Operation getProcessAsyncWithHttpInfo * @@ -227,46 +175,26 @@ class ProcessApi */ public function getProcessAsyncWithHttpInfo($processId) { - $returnType = '\SendinBlue\Client\Model\GetProcess'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetProcess'; $request = $this->getProcessRequest($processId); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'getProcess' * @@ -278,79 +206,55 @@ class ProcessApi protected function getProcessRequest($processId) { // verify the required parameter 'processId' is set - if ($processId === null || (is_array($processId) && count($processId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $processId when calling getProcess' - ); + if ($processId === null || \is_array($processId) && \count($processId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $processId when calling getProcess'); } - $resourcePath = '/processes/{processId}'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($processId !== null) { - $resourcePath = str_replace( - '{' . 'processId' . '}', - ObjectSerializer::toPathValue($processId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'processId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($processId), $resourcePath); } - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -361,27 +265,14 @@ class ProcessApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation getProcesses * @@ -399,7 +290,6 @@ class ProcessApi list($response) = $this->getProcessesWithHttpInfo($limit, $offset); return $response; } - /** * Operation getProcessesWithHttpInfo * @@ -414,76 +304,44 @@ class ProcessApi */ public function getProcessesWithHttpInfo($limit = '10', $offset = '0') { - $returnType = '\SendinBlue\Client\Model\GetProcesses'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetProcesses'; $request = $this->getProcessesRequest($limit, $offset); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\GetProcesses', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetProcesses', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation getProcessesAsync * @@ -497,14 +355,10 @@ class ProcessApi */ public function getProcessesAsync($limit = '10', $offset = '0') { - return $this->getProcessesAsyncWithHttpInfo($limit, $offset) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->getProcessesAsyncWithHttpInfo($limit, $offset)->then(function ($response) { + return $response[0]; + }); } - /** * Operation getProcessesAsyncWithHttpInfo * @@ -518,46 +372,26 @@ class ProcessApi */ public function getProcessesAsyncWithHttpInfo($limit = '10', $offset = '0') { - $returnType = '\SendinBlue\Client\Model\GetProcesses'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetProcesses'; $request = $this->getProcessesRequest($limit, $offset); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'getProcesses' * @@ -572,75 +406,56 @@ class ProcessApi if ($limit !== null && $limit > 50) { throw new \InvalidArgumentException('invalid value for "$limit" when calling ProcessApi.getProcesses, must be smaller than or equal to 50.'); } - - $resourcePath = '/processes'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - + $multipart = \false; // query params if ($limit !== null) { - $queryParams['limit'] = ObjectSerializer::toQueryValue($limit); + $queryParams['limit'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($limit); } // query params if ($offset !== null) { - $queryParams['offset'] = ObjectSerializer::toQueryValue($offset); + $queryParams['offset'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($offset); } - - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -651,27 +466,14 @@ class ProcessApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Create http client option * @@ -682,12 +484,11 @@ class ProcessApi { $options = []; if ($this->config->getDebug()) { - $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); - if (!$options[RequestOptions::DEBUG]) { + $options[\WPMailSMTP\Vendor\GuzzleHttp\RequestOptions::DEBUG] = \fopen($this->config->getDebugFile(), 'a'); + if (!$options[\WPMailSMTP\Vendor\GuzzleHttp\RequestOptions::DEBUG]) { throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); } } - return $options; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/ResellerApi.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/ResellerApi.php new file mode 100644 index 0000000..7cba725 --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/ResellerApi.php @@ -0,0 +1,3217 @@ +client = $client ?: new \WPMailSMTP\Vendor\GuzzleHttp\Client(); + $this->config = $config ?: new \WPMailSMTP\Vendor\SendinBlue\Client\Configuration(); + $this->headerSelector = $selector ?: new \WPMailSMTP\Vendor\SendinBlue\Client\HeaderSelector(); + } + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + /** + * Operation addCredits + * + * Add Email and/or SMS credits to a specific child account + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * @param \SendinBlue\Client\Model\AddCredits $addCredits Values to post to add credit to a specific child account (required) + * + * @throws \SendinBlue\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \SendinBlue\Client\Model\RemainingCreditModel + */ + public function addCredits($childIdentifier, $addCredits) + { + list($response) = $this->addCreditsWithHttpInfo($childIdentifier, $addCredits); + return $response; + } + /** + * Operation addCreditsWithHttpInfo + * + * Add Email and/or SMS credits to a specific child account + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * @param \SendinBlue\Client\Model\AddCredits $addCredits Values to post to add credit to a specific child account (required) + * + * @throws \SendinBlue\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \SendinBlue\Client\Model\RemainingCreditModel, HTTP status code, HTTP response headers (array of strings) + */ + public function addCreditsWithHttpInfo($childIdentifier, $addCredits) + { + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RemainingCreditModel'; + $request = $this->addCreditsRequest($childIdentifier, $addCredits); + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); + } + $statusCode = $response->getStatusCode(); + if ($statusCode < 200 || $statusCode > 299) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + } + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); + } + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RemainingCreditModel', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + case 400: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + case 403: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + case 404: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + /** + * Operation addCreditsAsync + * + * Add Email and/or SMS credits to a specific child account + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * @param \SendinBlue\Client\Model\AddCredits $addCredits Values to post to add credit to a specific child account (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function addCreditsAsync($childIdentifier, $addCredits) + { + return $this->addCreditsAsyncWithHttpInfo($childIdentifier, $addCredits)->then(function ($response) { + return $response[0]; + }); + } + /** + * Operation addCreditsAsyncWithHttpInfo + * + * Add Email and/or SMS credits to a specific child account + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * @param \SendinBlue\Client\Model\AddCredits $addCredits Values to post to add credit to a specific child account (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function addCreditsAsyncWithHttpInfo($childIdentifier, $addCredits) + { + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RemainingCreditModel'; + $request = $this->addCreditsRequest($childIdentifier, $addCredits); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); + } + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); + } + /** + * Create request for operation 'addCredits' + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * @param \SendinBlue\Client\Model\AddCredits $addCredits Values to post to add credit to a specific child account (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function addCreditsRequest($childIdentifier, $addCredits) + { + // verify the required parameter 'childIdentifier' is set + if ($childIdentifier === null || \is_array($childIdentifier) && \count($childIdentifier) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $childIdentifier when calling addCredits'); + } + // verify the required parameter 'addCredits' is set + if ($addCredits === null || \is_array($addCredits) && \count($addCredits) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $addCredits when calling addCredits'); + } + $resourcePath = '/reseller/children/{childIdentifier}/credits/add'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = \false; + // path params + if ($childIdentifier !== null) { + $resourcePath = \str_replace('{' . 'childIdentifier' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($childIdentifier), $resourcePath); + } + // body params + $_tempBody = null; + if (isset($addCredits)) { + $_tempBody = $addCredits; + } + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); + } else { + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); + } + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + if ($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); + } + } + } elseif (\count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; + } + // for HTTP post (form) + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); + } else { + // for HTTP post (form) + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); + } + } + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('api-key'); + if ($apiKey !== null) { + $headers['api-key'] = $apiKey; + } + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('partner-key'); + if ($apiKey !== null) { + $headers['partner-key'] = $apiKey; + } + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); + } + /** + * Operation associateIpToChild + * + * Associate a dedicated IP to the child + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * @param \SendinBlue\Client\Model\ManageIp $ip IP to associate (required) + * + * @throws \SendinBlue\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return void + */ + public function associateIpToChild($childIdentifier, $ip) + { + $this->associateIpToChildWithHttpInfo($childIdentifier, $ip); + } + /** + * Operation associateIpToChildWithHttpInfo + * + * Associate a dedicated IP to the child + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * @param \SendinBlue\Client\Model\ManageIp $ip IP to associate (required) + * + * @throws \SendinBlue\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function associateIpToChildWithHttpInfo($childIdentifier, $ip) + { + $returnType = ''; + $request = $this->associateIpToChildRequest($childIdentifier, $ip); + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); + } + $statusCode = $response->getStatusCode(); + if ($statusCode < 200 || $statusCode > 299) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + } + return [null, $statusCode, $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { + switch ($e->getCode()) { + case 400: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + case 404: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + /** + * Operation associateIpToChildAsync + * + * Associate a dedicated IP to the child + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * @param \SendinBlue\Client\Model\ManageIp $ip IP to associate (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function associateIpToChildAsync($childIdentifier, $ip) + { + return $this->associateIpToChildAsyncWithHttpInfo($childIdentifier, $ip)->then(function ($response) { + return $response[0]; + }); + } + /** + * Operation associateIpToChildAsyncWithHttpInfo + * + * Associate a dedicated IP to the child + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * @param \SendinBlue\Client\Model\ManageIp $ip IP to associate (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function associateIpToChildAsyncWithHttpInfo($childIdentifier, $ip) + { + $returnType = ''; + $request = $this->associateIpToChildRequest($childIdentifier, $ip); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); + } + /** + * Create request for operation 'associateIpToChild' + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * @param \SendinBlue\Client\Model\ManageIp $ip IP to associate (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function associateIpToChildRequest($childIdentifier, $ip) + { + // verify the required parameter 'childIdentifier' is set + if ($childIdentifier === null || \is_array($childIdentifier) && \count($childIdentifier) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $childIdentifier when calling associateIpToChild'); + } + // verify the required parameter 'ip' is set + if ($ip === null || \is_array($ip) && \count($ip) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $ip when calling associateIpToChild'); + } + $resourcePath = '/reseller/children/{childIdentifier}/ips/associate'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = \false; + // path params + if ($childIdentifier !== null) { + $resourcePath = \str_replace('{' . 'childIdentifier' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($childIdentifier), $resourcePath); + } + // body params + $_tempBody = null; + if (isset($ip)) { + $_tempBody = $ip; + } + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); + } else { + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); + } + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + if ($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); + } + } + } elseif (\count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; + } + // for HTTP post (form) + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); + } else { + // for HTTP post (form) + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); + } + } + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('api-key'); + if ($apiKey !== null) { + $headers['api-key'] = $apiKey; + } + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('partner-key'); + if ($apiKey !== null) { + $headers['partner-key'] = $apiKey; + } + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); + } + /** + * Operation createChildDomain + * + * Create a domain for a child account + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * @param \SendinBlue\Client\Model\AddChildDomain $addChildDomain Sender domain to add for a specific child account. This will not be displayed to the parent account. (required) + * + * @throws \SendinBlue\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return void + */ + public function createChildDomain($childIdentifier, $addChildDomain) + { + $this->createChildDomainWithHttpInfo($childIdentifier, $addChildDomain); + } + /** + * Operation createChildDomainWithHttpInfo + * + * Create a domain for a child account + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * @param \SendinBlue\Client\Model\AddChildDomain $addChildDomain Sender domain to add for a specific child account. This will not be displayed to the parent account. (required) + * + * @throws \SendinBlue\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function createChildDomainWithHttpInfo($childIdentifier, $addChildDomain) + { + $returnType = ''; + $request = $this->createChildDomainRequest($childIdentifier, $addChildDomain); + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); + } + $statusCode = $response->getStatusCode(); + if ($statusCode < 200 || $statusCode > 299) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + } + return [null, $statusCode, $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { + switch ($e->getCode()) { + case 400: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + case 403: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + case 404: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + /** + * Operation createChildDomainAsync + * + * Create a domain for a child account + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * @param \SendinBlue\Client\Model\AddChildDomain $addChildDomain Sender domain to add for a specific child account. This will not be displayed to the parent account. (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createChildDomainAsync($childIdentifier, $addChildDomain) + { + return $this->createChildDomainAsyncWithHttpInfo($childIdentifier, $addChildDomain)->then(function ($response) { + return $response[0]; + }); + } + /** + * Operation createChildDomainAsyncWithHttpInfo + * + * Create a domain for a child account + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * @param \SendinBlue\Client\Model\AddChildDomain $addChildDomain Sender domain to add for a specific child account. This will not be displayed to the parent account. (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createChildDomainAsyncWithHttpInfo($childIdentifier, $addChildDomain) + { + $returnType = ''; + $request = $this->createChildDomainRequest($childIdentifier, $addChildDomain); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); + } + /** + * Create request for operation 'createChildDomain' + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * @param \SendinBlue\Client\Model\AddChildDomain $addChildDomain Sender domain to add for a specific child account. This will not be displayed to the parent account. (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function createChildDomainRequest($childIdentifier, $addChildDomain) + { + // verify the required parameter 'childIdentifier' is set + if ($childIdentifier === null || \is_array($childIdentifier) && \count($childIdentifier) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $childIdentifier when calling createChildDomain'); + } + // verify the required parameter 'addChildDomain' is set + if ($addChildDomain === null || \is_array($addChildDomain) && \count($addChildDomain) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $addChildDomain when calling createChildDomain'); + } + $resourcePath = '/reseller/children/{childIdentifier}/domains'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = \false; + // path params + if ($childIdentifier !== null) { + $resourcePath = \str_replace('{' . 'childIdentifier' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($childIdentifier), $resourcePath); + } + // body params + $_tempBody = null; + if (isset($addChildDomain)) { + $_tempBody = $addChildDomain; + } + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); + } else { + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); + } + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + if ($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); + } + } + } elseif (\count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; + } + // for HTTP post (form) + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); + } else { + // for HTTP post (form) + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); + } + } + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('api-key'); + if ($apiKey !== null) { + $headers['api-key'] = $apiKey; + } + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('partner-key'); + if ($apiKey !== null) { + $headers['partner-key'] = $apiKey; + } + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); + } + /** + * Operation createResellerChild + * + * Creates a reseller child + * + * @param \SendinBlue\Client\Model\CreateChild $resellerChild reseller child to add (optional) + * + * @throws \SendinBlue\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \SendinBlue\Client\Model\CreateReseller + */ + public function createResellerChild($resellerChild = null) + { + list($response) = $this->createResellerChildWithHttpInfo($resellerChild); + return $response; + } + /** + * Operation createResellerChildWithHttpInfo + * + * Creates a reseller child + * + * @param \SendinBlue\Client\Model\CreateChild $resellerChild reseller child to add (optional) + * + * @throws \SendinBlue\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \SendinBlue\Client\Model\CreateReseller, HTTP status code, HTTP response headers (array of strings) + */ + public function createResellerChildWithHttpInfo($resellerChild = null) + { + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateReseller'; + $request = $this->createResellerChildRequest($resellerChild); + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); + } + $statusCode = $response->getStatusCode(); + if ($statusCode < 200 || $statusCode > 299) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + } + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); + } + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { + switch ($e->getCode()) { + case 201: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateReseller', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + case 400: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + case 403: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + /** + * Operation createResellerChildAsync + * + * Creates a reseller child + * + * @param \SendinBlue\Client\Model\CreateChild $resellerChild reseller child to add (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createResellerChildAsync($resellerChild = null) + { + return $this->createResellerChildAsyncWithHttpInfo($resellerChild)->then(function ($response) { + return $response[0]; + }); + } + /** + * Operation createResellerChildAsyncWithHttpInfo + * + * Creates a reseller child + * + * @param \SendinBlue\Client\Model\CreateChild $resellerChild reseller child to add (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createResellerChildAsyncWithHttpInfo($resellerChild = null) + { + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateReseller'; + $request = $this->createResellerChildRequest($resellerChild); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); + } + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); + } + /** + * Create request for operation 'createResellerChild' + * + * @param \SendinBlue\Client\Model\CreateChild $resellerChild reseller child to add (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function createResellerChildRequest($resellerChild = null) + { + $resourcePath = '/reseller/children'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = \false; + // body params + $_tempBody = null; + if (isset($resellerChild)) { + $_tempBody = $resellerChild; + } + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); + } else { + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); + } + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + if ($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); + } + } + } elseif (\count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; + } + // for HTTP post (form) + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); + } else { + // for HTTP post (form) + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); + } + } + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('api-key'); + if ($apiKey !== null) { + $headers['api-key'] = $apiKey; + } + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('partner-key'); + if ($apiKey !== null) { + $headers['partner-key'] = $apiKey; + } + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); + } + /** + * Operation deleteChildDomain + * + * Delete the sender domain of the reseller child based on the childIdentifier and domainName passed + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * @param string $domainName Pass the existing domain that needs to be deleted (required) + * + * @throws \SendinBlue\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return void + */ + public function deleteChildDomain($childIdentifier, $domainName) + { + $this->deleteChildDomainWithHttpInfo($childIdentifier, $domainName); + } + /** + * Operation deleteChildDomainWithHttpInfo + * + * Delete the sender domain of the reseller child based on the childIdentifier and domainName passed + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * @param string $domainName Pass the existing domain that needs to be deleted (required) + * + * @throws \SendinBlue\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function deleteChildDomainWithHttpInfo($childIdentifier, $domainName) + { + $returnType = ''; + $request = $this->deleteChildDomainRequest($childIdentifier, $domainName); + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); + } + $statusCode = $response->getStatusCode(); + if ($statusCode < 200 || $statusCode > 299) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + } + return [null, $statusCode, $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { + switch ($e->getCode()) { + case 400: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + case 403: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + case 404: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + /** + * Operation deleteChildDomainAsync + * + * Delete the sender domain of the reseller child based on the childIdentifier and domainName passed + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * @param string $domainName Pass the existing domain that needs to be deleted (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteChildDomainAsync($childIdentifier, $domainName) + { + return $this->deleteChildDomainAsyncWithHttpInfo($childIdentifier, $domainName)->then(function ($response) { + return $response[0]; + }); + } + /** + * Operation deleteChildDomainAsyncWithHttpInfo + * + * Delete the sender domain of the reseller child based on the childIdentifier and domainName passed + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * @param string $domainName Pass the existing domain that needs to be deleted (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteChildDomainAsyncWithHttpInfo($childIdentifier, $domainName) + { + $returnType = ''; + $request = $this->deleteChildDomainRequest($childIdentifier, $domainName); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); + } + /** + * Create request for operation 'deleteChildDomain' + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * @param string $domainName Pass the existing domain that needs to be deleted (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function deleteChildDomainRequest($childIdentifier, $domainName) + { + // verify the required parameter 'childIdentifier' is set + if ($childIdentifier === null || \is_array($childIdentifier) && \count($childIdentifier) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $childIdentifier when calling deleteChildDomain'); + } + // verify the required parameter 'domainName' is set + if ($domainName === null || \is_array($domainName) && \count($domainName) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $domainName when calling deleteChildDomain'); + } + $resourcePath = '/reseller/children/{childIdentifier}/domains/{domainName}'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = \false; + // path params + if ($childIdentifier !== null) { + $resourcePath = \str_replace('{' . 'childIdentifier' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($childIdentifier), $resourcePath); + } + // path params + if ($domainName !== null) { + $resourcePath = \str_replace('{' . 'domainName' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($domainName), $resourcePath); + } + // body params + $_tempBody = null; + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); + } else { + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); + } + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + if ($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); + } + } + } elseif (\count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; + } + // for HTTP post (form) + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); + } else { + // for HTTP post (form) + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); + } + } + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('api-key'); + if ($apiKey !== null) { + $headers['api-key'] = $apiKey; + } + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('partner-key'); + if ($apiKey !== null) { + $headers['partner-key'] = $apiKey; + } + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('DELETE', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); + } + /** + * Operation deleteResellerChild + * + * Delete a single reseller child based on the child identifier supplied + * + * @param string $childIdentifier Either auth key or child id of reseller's child (required) + * + * @throws \SendinBlue\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return void + */ + public function deleteResellerChild($childIdentifier) + { + $this->deleteResellerChildWithHttpInfo($childIdentifier); + } + /** + * Operation deleteResellerChildWithHttpInfo + * + * Delete a single reseller child based on the child identifier supplied + * + * @param string $childIdentifier Either auth key or child id of reseller's child (required) + * + * @throws \SendinBlue\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function deleteResellerChildWithHttpInfo($childIdentifier) + { + $returnType = ''; + $request = $this->deleteResellerChildRequest($childIdentifier); + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); + } + $statusCode = $response->getStatusCode(); + if ($statusCode < 200 || $statusCode > 299) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + } + return [null, $statusCode, $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { + switch ($e->getCode()) { + case 400: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + case 403: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + case 404: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + /** + * Operation deleteResellerChildAsync + * + * Delete a single reseller child based on the child identifier supplied + * + * @param string $childIdentifier Either auth key or child id of reseller's child (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteResellerChildAsync($childIdentifier) + { + return $this->deleteResellerChildAsyncWithHttpInfo($childIdentifier)->then(function ($response) { + return $response[0]; + }); + } + /** + * Operation deleteResellerChildAsyncWithHttpInfo + * + * Delete a single reseller child based on the child identifier supplied + * + * @param string $childIdentifier Either auth key or child id of reseller's child (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteResellerChildAsyncWithHttpInfo($childIdentifier) + { + $returnType = ''; + $request = $this->deleteResellerChildRequest($childIdentifier); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); + } + /** + * Create request for operation 'deleteResellerChild' + * + * @param string $childIdentifier Either auth key or child id of reseller's child (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function deleteResellerChildRequest($childIdentifier) + { + // verify the required parameter 'childIdentifier' is set + if ($childIdentifier === null || \is_array($childIdentifier) && \count($childIdentifier) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $childIdentifier when calling deleteResellerChild'); + } + $resourcePath = '/reseller/children/{childIdentifier}'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = \false; + // path params + if ($childIdentifier !== null) { + $resourcePath = \str_replace('{' . 'childIdentifier' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($childIdentifier), $resourcePath); + } + // body params + $_tempBody = null; + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); + } else { + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); + } + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + if ($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); + } + } + } elseif (\count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; + } + // for HTTP post (form) + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); + } else { + // for HTTP post (form) + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); + } + } + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('api-key'); + if ($apiKey !== null) { + $headers['api-key'] = $apiKey; + } + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('partner-key'); + if ($apiKey !== null) { + $headers['partner-key'] = $apiKey; + } + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('DELETE', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); + } + /** + * Operation dissociateIpFromChild + * + * Dissociate a dedicated IP to the child + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * @param \SendinBlue\Client\Model\ManageIp $ip IP to dissociate (required) + * + * @throws \SendinBlue\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return void + */ + public function dissociateIpFromChild($childIdentifier, $ip) + { + $this->dissociateIpFromChildWithHttpInfo($childIdentifier, $ip); + } + /** + * Operation dissociateIpFromChildWithHttpInfo + * + * Dissociate a dedicated IP to the child + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * @param \SendinBlue\Client\Model\ManageIp $ip IP to dissociate (required) + * + * @throws \SendinBlue\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function dissociateIpFromChildWithHttpInfo($childIdentifier, $ip) + { + $returnType = ''; + $request = $this->dissociateIpFromChildRequest($childIdentifier, $ip); + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); + } + $statusCode = $response->getStatusCode(); + if ($statusCode < 200 || $statusCode > 299) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + } + return [null, $statusCode, $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { + switch ($e->getCode()) { + case 400: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + case 404: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + /** + * Operation dissociateIpFromChildAsync + * + * Dissociate a dedicated IP to the child + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * @param \SendinBlue\Client\Model\ManageIp $ip IP to dissociate (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function dissociateIpFromChildAsync($childIdentifier, $ip) + { + return $this->dissociateIpFromChildAsyncWithHttpInfo($childIdentifier, $ip)->then(function ($response) { + return $response[0]; + }); + } + /** + * Operation dissociateIpFromChildAsyncWithHttpInfo + * + * Dissociate a dedicated IP to the child + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * @param \SendinBlue\Client\Model\ManageIp $ip IP to dissociate (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function dissociateIpFromChildAsyncWithHttpInfo($childIdentifier, $ip) + { + $returnType = ''; + $request = $this->dissociateIpFromChildRequest($childIdentifier, $ip); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); + } + /** + * Create request for operation 'dissociateIpFromChild' + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * @param \SendinBlue\Client\Model\ManageIp $ip IP to dissociate (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function dissociateIpFromChildRequest($childIdentifier, $ip) + { + // verify the required parameter 'childIdentifier' is set + if ($childIdentifier === null || \is_array($childIdentifier) && \count($childIdentifier) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $childIdentifier when calling dissociateIpFromChild'); + } + // verify the required parameter 'ip' is set + if ($ip === null || \is_array($ip) && \count($ip) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $ip when calling dissociateIpFromChild'); + } + $resourcePath = '/reseller/children/{childIdentifier}/ips/dissociate'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = \false; + // path params + if ($childIdentifier !== null) { + $resourcePath = \str_replace('{' . 'childIdentifier' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($childIdentifier), $resourcePath); + } + // body params + $_tempBody = null; + if (isset($ip)) { + $_tempBody = $ip; + } + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); + } else { + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); + } + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + if ($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); + } + } + } elseif (\count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; + } + // for HTTP post (form) + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); + } else { + // for HTTP post (form) + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); + } + } + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('api-key'); + if ($apiKey !== null) { + $headers['api-key'] = $apiKey; + } + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('partner-key'); + if ($apiKey !== null) { + $headers['partner-key'] = $apiKey; + } + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); + } + /** + * Operation getChildAccountCreationStatus + * + * Get the status of a reseller's child account creation, whether it is successfully created (exists) or not based on the identifier supplied + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * + * @throws \SendinBlue\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \SendinBlue\Client\Model\GetChildAccountCreationStatus + */ + public function getChildAccountCreationStatus($childIdentifier) + { + list($response) = $this->getChildAccountCreationStatusWithHttpInfo($childIdentifier); + return $response; + } + /** + * Operation getChildAccountCreationStatusWithHttpInfo + * + * Get the status of a reseller's child account creation, whether it is successfully created (exists) or not based on the identifier supplied + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * + * @throws \SendinBlue\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \SendinBlue\Client\Model\GetChildAccountCreationStatus, HTTP status code, HTTP response headers (array of strings) + */ + public function getChildAccountCreationStatusWithHttpInfo($childIdentifier) + { + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildAccountCreationStatus'; + $request = $this->getChildAccountCreationStatusRequest($childIdentifier); + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); + } + $statusCode = $response->getStatusCode(); + if ($statusCode < 200 || $statusCode > 299) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + } + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); + } + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildAccountCreationStatus', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + case 400: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + case 403: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + case 404: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + /** + * Operation getChildAccountCreationStatusAsync + * + * Get the status of a reseller's child account creation, whether it is successfully created (exists) or not based on the identifier supplied + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getChildAccountCreationStatusAsync($childIdentifier) + { + return $this->getChildAccountCreationStatusAsyncWithHttpInfo($childIdentifier)->then(function ($response) { + return $response[0]; + }); + } + /** + * Operation getChildAccountCreationStatusAsyncWithHttpInfo + * + * Get the status of a reseller's child account creation, whether it is successfully created (exists) or not based on the identifier supplied + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getChildAccountCreationStatusAsyncWithHttpInfo($childIdentifier) + { + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildAccountCreationStatus'; + $request = $this->getChildAccountCreationStatusRequest($childIdentifier); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); + } + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); + } + /** + * Create request for operation 'getChildAccountCreationStatus' + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getChildAccountCreationStatusRequest($childIdentifier) + { + // verify the required parameter 'childIdentifier' is set + if ($childIdentifier === null || \is_array($childIdentifier) && \count($childIdentifier) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $childIdentifier when calling getChildAccountCreationStatus'); + } + $resourcePath = '/reseller/children/{childIdentifier}/accountCreationStatus'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = \false; + // path params + if ($childIdentifier !== null) { + $resourcePath = \str_replace('{' . 'childIdentifier' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($childIdentifier), $resourcePath); + } + // body params + $_tempBody = null; + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); + } else { + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); + } + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + if ($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); + } + } + } elseif (\count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; + } + // for HTTP post (form) + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); + } else { + // for HTTP post (form) + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); + } + } + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('api-key'); + if ($apiKey !== null) { + $headers['api-key'] = $apiKey; + } + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('partner-key'); + if ($apiKey !== null) { + $headers['partner-key'] = $apiKey; + } + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); + } + /** + * Operation getChildDomains + * + * Get all sender domains for a specific child account + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * + * @throws \SendinBlue\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \SendinBlue\Client\Model\GetChildDomains + */ + public function getChildDomains($childIdentifier) + { + list($response) = $this->getChildDomainsWithHttpInfo($childIdentifier); + return $response; + } + /** + * Operation getChildDomainsWithHttpInfo + * + * Get all sender domains for a specific child account + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * + * @throws \SendinBlue\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \SendinBlue\Client\Model\GetChildDomains, HTTP status code, HTTP response headers (array of strings) + */ + public function getChildDomainsWithHttpInfo($childIdentifier) + { + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildDomains'; + $request = $this->getChildDomainsRequest($childIdentifier); + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); + } + $statusCode = $response->getStatusCode(); + if ($statusCode < 200 || $statusCode > 299) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + } + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); + } + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildDomains', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + case 400: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + case 403: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + case 404: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + /** + * Operation getChildDomainsAsync + * + * Get all sender domains for a specific child account + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getChildDomainsAsync($childIdentifier) + { + return $this->getChildDomainsAsyncWithHttpInfo($childIdentifier)->then(function ($response) { + return $response[0]; + }); + } + /** + * Operation getChildDomainsAsyncWithHttpInfo + * + * Get all sender domains for a specific child account + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getChildDomainsAsyncWithHttpInfo($childIdentifier) + { + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildDomains'; + $request = $this->getChildDomainsRequest($childIdentifier); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); + } + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); + } + /** + * Create request for operation 'getChildDomains' + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getChildDomainsRequest($childIdentifier) + { + // verify the required parameter 'childIdentifier' is set + if ($childIdentifier === null || \is_array($childIdentifier) && \count($childIdentifier) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $childIdentifier when calling getChildDomains'); + } + $resourcePath = '/reseller/children/{childIdentifier}/domains'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = \false; + // path params + if ($childIdentifier !== null) { + $resourcePath = \str_replace('{' . 'childIdentifier' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($childIdentifier), $resourcePath); + } + // body params + $_tempBody = null; + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); + } else { + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); + } + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + if ($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); + } + } + } elseif (\count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; + } + // for HTTP post (form) + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); + } else { + // for HTTP post (form) + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); + } + } + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('api-key'); + if ($apiKey !== null) { + $headers['api-key'] = $apiKey; + } + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('partner-key'); + if ($apiKey !== null) { + $headers['partner-key'] = $apiKey; + } + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); + } + /** + * Operation getChildInfo + * + * Get a child account's details + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * + * @throws \SendinBlue\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \SendinBlue\Client\Model\GetChildInfo + */ + public function getChildInfo($childIdentifier) + { + list($response) = $this->getChildInfoWithHttpInfo($childIdentifier); + return $response; + } + /** + * Operation getChildInfoWithHttpInfo + * + * Get a child account's details + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * + * @throws \SendinBlue\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \SendinBlue\Client\Model\GetChildInfo, HTTP status code, HTTP response headers (array of strings) + */ + public function getChildInfoWithHttpInfo($childIdentifier) + { + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildInfo'; + $request = $this->getChildInfoRequest($childIdentifier); + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); + } + $statusCode = $response->getStatusCode(); + if ($statusCode < 200 || $statusCode > 299) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + } + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); + } + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildInfo', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + case 400: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + case 403: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + case 404: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + /** + * Operation getChildInfoAsync + * + * Get a child account's details + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getChildInfoAsync($childIdentifier) + { + return $this->getChildInfoAsyncWithHttpInfo($childIdentifier)->then(function ($response) { + return $response[0]; + }); + } + /** + * Operation getChildInfoAsyncWithHttpInfo + * + * Get a child account's details + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getChildInfoAsyncWithHttpInfo($childIdentifier) + { + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildInfo'; + $request = $this->getChildInfoRequest($childIdentifier); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); + } + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); + } + /** + * Create request for operation 'getChildInfo' + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getChildInfoRequest($childIdentifier) + { + // verify the required parameter 'childIdentifier' is set + if ($childIdentifier === null || \is_array($childIdentifier) && \count($childIdentifier) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $childIdentifier when calling getChildInfo'); + } + $resourcePath = '/reseller/children/{childIdentifier}'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = \false; + // path params + if ($childIdentifier !== null) { + $resourcePath = \str_replace('{' . 'childIdentifier' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($childIdentifier), $resourcePath); + } + // body params + $_tempBody = null; + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); + } else { + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); + } + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + if ($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); + } + } + } elseif (\count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; + } + // for HTTP post (form) + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); + } else { + // for HTTP post (form) + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); + } + } + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('api-key'); + if ($apiKey !== null) { + $headers['api-key'] = $apiKey; + } + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('partner-key'); + if ($apiKey !== null) { + $headers['partner-key'] = $apiKey; + } + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); + } + /** + * Operation getResellerChilds + * + * Get the list of all children accounts + * + * @param int $limit Number of documents for child accounts information per page (optional, default to 10) + * @param int $offset Index of the first document in the page (optional, default to 0) + * + * @throws \SendinBlue\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \SendinBlue\Client\Model\GetChildrenList + */ + public function getResellerChilds($limit = '10', $offset = '0') + { + list($response) = $this->getResellerChildsWithHttpInfo($limit, $offset); + return $response; + } + /** + * Operation getResellerChildsWithHttpInfo + * + * Get the list of all children accounts + * + * @param int $limit Number of documents for child accounts information per page (optional, default to 10) + * @param int $offset Index of the first document in the page (optional, default to 0) + * + * @throws \SendinBlue\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \SendinBlue\Client\Model\GetChildrenList, HTTP status code, HTTP response headers (array of strings) + */ + public function getResellerChildsWithHttpInfo($limit = '10', $offset = '0') + { + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildrenList'; + $request = $this->getResellerChildsRequest($limit, $offset); + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); + } + $statusCode = $response->getStatusCode(); + if ($statusCode < 200 || $statusCode > 299) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + } + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); + } + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildrenList', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + case 403: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + /** + * Operation getResellerChildsAsync + * + * Get the list of all children accounts + * + * @param int $limit Number of documents for child accounts information per page (optional, default to 10) + * @param int $offset Index of the first document in the page (optional, default to 0) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getResellerChildsAsync($limit = '10', $offset = '0') + { + return $this->getResellerChildsAsyncWithHttpInfo($limit, $offset)->then(function ($response) { + return $response[0]; + }); + } + /** + * Operation getResellerChildsAsyncWithHttpInfo + * + * Get the list of all children accounts + * + * @param int $limit Number of documents for child accounts information per page (optional, default to 10) + * @param int $offset Index of the first document in the page (optional, default to 0) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getResellerChildsAsyncWithHttpInfo($limit = '10', $offset = '0') + { + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildrenList'; + $request = $this->getResellerChildsRequest($limit, $offset); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); + } + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); + } + /** + * Create request for operation 'getResellerChilds' + * + * @param int $limit Number of documents for child accounts information per page (optional, default to 10) + * @param int $offset Index of the first document in the page (optional, default to 0) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getResellerChildsRequest($limit = '10', $offset = '0') + { + if ($limit !== null && $limit > 20) { + throw new \InvalidArgumentException('invalid value for "$limit" when calling ResellerApi.getResellerChilds, must be smaller than or equal to 20.'); + } + $resourcePath = '/reseller/children'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = \false; + // query params + if ($limit !== null) { + $queryParams['limit'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($limit); + } + // query params + if ($offset !== null) { + $queryParams['offset'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($offset); + } + // body params + $_tempBody = null; + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); + } else { + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); + } + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + if ($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); + } + } + } elseif (\count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; + } + // for HTTP post (form) + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); + } else { + // for HTTP post (form) + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); + } + } + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('api-key'); + if ($apiKey !== null) { + $headers['api-key'] = $apiKey; + } + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('partner-key'); + if ($apiKey !== null) { + $headers['partner-key'] = $apiKey; + } + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); + } + /** + * Operation getSsoToken + * + * Get session token to access Sendinblue (SSO) + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * + * @throws \SendinBlue\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \SendinBlue\Client\Model\GetSsoToken + */ + public function getSsoToken($childIdentifier) + { + list($response) = $this->getSsoTokenWithHttpInfo($childIdentifier); + return $response; + } + /** + * Operation getSsoTokenWithHttpInfo + * + * Get session token to access Sendinblue (SSO) + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * + * @throws \SendinBlue\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \SendinBlue\Client\Model\GetSsoToken, HTTP status code, HTTP response headers (array of strings) + */ + public function getSsoTokenWithHttpInfo($childIdentifier) + { + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSsoToken'; + $request = $this->getSsoTokenRequest($childIdentifier); + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); + } + $statusCode = $response->getStatusCode(); + if ($statusCode < 200 || $statusCode > 299) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + } + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); + } + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSsoToken', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + case 400: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + case 403: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + case 404: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + /** + * Operation getSsoTokenAsync + * + * Get session token to access Sendinblue (SSO) + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getSsoTokenAsync($childIdentifier) + { + return $this->getSsoTokenAsyncWithHttpInfo($childIdentifier)->then(function ($response) { + return $response[0]; + }); + } + /** + * Operation getSsoTokenAsyncWithHttpInfo + * + * Get session token to access Sendinblue (SSO) + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getSsoTokenAsyncWithHttpInfo($childIdentifier) + { + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSsoToken'; + $request = $this->getSsoTokenRequest($childIdentifier); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); + } + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); + } + /** + * Create request for operation 'getSsoToken' + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getSsoTokenRequest($childIdentifier) + { + // verify the required parameter 'childIdentifier' is set + if ($childIdentifier === null || \is_array($childIdentifier) && \count($childIdentifier) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $childIdentifier when calling getSsoToken'); + } + $resourcePath = '/reseller/children/{childIdentifier}/auth'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = \false; + // path params + if ($childIdentifier !== null) { + $resourcePath = \str_replace('{' . 'childIdentifier' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($childIdentifier), $resourcePath); + } + // body params + $_tempBody = null; + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); + } else { + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); + } + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + if ($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); + } + } + } elseif (\count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; + } + // for HTTP post (form) + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); + } else { + // for HTTP post (form) + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); + } + } + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('api-key'); + if ($apiKey !== null) { + $headers['api-key'] = $apiKey; + } + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('partner-key'); + if ($apiKey !== null) { + $headers['partner-key'] = $apiKey; + } + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); + } + /** + * Operation removeCredits + * + * Remove Email and/or SMS credits from a specific child account + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * @param \SendinBlue\Client\Model\RemoveCredits $removeCredits Values to post to remove email or SMS credits from a specific child account (required) + * + * @throws \SendinBlue\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \SendinBlue\Client\Model\RemainingCreditModel + */ + public function removeCredits($childIdentifier, $removeCredits) + { + list($response) = $this->removeCreditsWithHttpInfo($childIdentifier, $removeCredits); + return $response; + } + /** + * Operation removeCreditsWithHttpInfo + * + * Remove Email and/or SMS credits from a specific child account + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * @param \SendinBlue\Client\Model\RemoveCredits $removeCredits Values to post to remove email or SMS credits from a specific child account (required) + * + * @throws \SendinBlue\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \SendinBlue\Client\Model\RemainingCreditModel, HTTP status code, HTTP response headers (array of strings) + */ + public function removeCreditsWithHttpInfo($childIdentifier, $removeCredits) + { + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RemainingCreditModel'; + $request = $this->removeCreditsRequest($childIdentifier, $removeCredits); + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); + } + $statusCode = $response->getStatusCode(); + if ($statusCode < 200 || $statusCode > 299) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + } + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); + } + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RemainingCreditModel', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + case 400: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + case 403: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + case 404: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + /** + * Operation removeCreditsAsync + * + * Remove Email and/or SMS credits from a specific child account + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * @param \SendinBlue\Client\Model\RemoveCredits $removeCredits Values to post to remove email or SMS credits from a specific child account (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function removeCreditsAsync($childIdentifier, $removeCredits) + { + return $this->removeCreditsAsyncWithHttpInfo($childIdentifier, $removeCredits)->then(function ($response) { + return $response[0]; + }); + } + /** + * Operation removeCreditsAsyncWithHttpInfo + * + * Remove Email and/or SMS credits from a specific child account + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * @param \SendinBlue\Client\Model\RemoveCredits $removeCredits Values to post to remove email or SMS credits from a specific child account (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function removeCreditsAsyncWithHttpInfo($childIdentifier, $removeCredits) + { + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RemainingCreditModel'; + $request = $this->removeCreditsRequest($childIdentifier, $removeCredits); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); + } + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); + } + /** + * Create request for operation 'removeCredits' + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * @param \SendinBlue\Client\Model\RemoveCredits $removeCredits Values to post to remove email or SMS credits from a specific child account (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function removeCreditsRequest($childIdentifier, $removeCredits) + { + // verify the required parameter 'childIdentifier' is set + if ($childIdentifier === null || \is_array($childIdentifier) && \count($childIdentifier) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $childIdentifier when calling removeCredits'); + } + // verify the required parameter 'removeCredits' is set + if ($removeCredits === null || \is_array($removeCredits) && \count($removeCredits) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $removeCredits when calling removeCredits'); + } + $resourcePath = '/reseller/children/{childIdentifier}/credits/remove'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = \false; + // path params + if ($childIdentifier !== null) { + $resourcePath = \str_replace('{' . 'childIdentifier' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($childIdentifier), $resourcePath); + } + // body params + $_tempBody = null; + if (isset($removeCredits)) { + $_tempBody = $removeCredits; + } + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); + } else { + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); + } + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + if ($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); + } + } + } elseif (\count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; + } + // for HTTP post (form) + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); + } else { + // for HTTP post (form) + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); + } + } + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('api-key'); + if ($apiKey !== null) { + $headers['api-key'] = $apiKey; + } + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('partner-key'); + if ($apiKey !== null) { + $headers['partner-key'] = $apiKey; + } + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); + } + /** + * Operation updateChildAccountStatus + * + * Update info of reseller's child account status based on the childIdentifier supplied + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * @param \SendinBlue\Client\Model\UpdateChildAccountStatus $updateChildAccountStatus values to update in child account status (required) + * + * @throws \SendinBlue\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return void + */ + public function updateChildAccountStatus($childIdentifier, $updateChildAccountStatus) + { + $this->updateChildAccountStatusWithHttpInfo($childIdentifier, $updateChildAccountStatus); + } + /** + * Operation updateChildAccountStatusWithHttpInfo + * + * Update info of reseller's child account status based on the childIdentifier supplied + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * @param \SendinBlue\Client\Model\UpdateChildAccountStatus $updateChildAccountStatus values to update in child account status (required) + * + * @throws \SendinBlue\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function updateChildAccountStatusWithHttpInfo($childIdentifier, $updateChildAccountStatus) + { + $returnType = ''; + $request = $this->updateChildAccountStatusRequest($childIdentifier, $updateChildAccountStatus); + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); + } + $statusCode = $response->getStatusCode(); + if ($statusCode < 200 || $statusCode > 299) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + } + return [null, $statusCode, $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { + switch ($e->getCode()) { + case 400: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + case 403: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + case 404: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + /** + * Operation updateChildAccountStatusAsync + * + * Update info of reseller's child account status based on the childIdentifier supplied + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * @param \SendinBlue\Client\Model\UpdateChildAccountStatus $updateChildAccountStatus values to update in child account status (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateChildAccountStatusAsync($childIdentifier, $updateChildAccountStatus) + { + return $this->updateChildAccountStatusAsyncWithHttpInfo($childIdentifier, $updateChildAccountStatus)->then(function ($response) { + return $response[0]; + }); + } + /** + * Operation updateChildAccountStatusAsyncWithHttpInfo + * + * Update info of reseller's child account status based on the childIdentifier supplied + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * @param \SendinBlue\Client\Model\UpdateChildAccountStatus $updateChildAccountStatus values to update in child account status (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateChildAccountStatusAsyncWithHttpInfo($childIdentifier, $updateChildAccountStatus) + { + $returnType = ''; + $request = $this->updateChildAccountStatusRequest($childIdentifier, $updateChildAccountStatus); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); + } + /** + * Create request for operation 'updateChildAccountStatus' + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * @param \SendinBlue\Client\Model\UpdateChildAccountStatus $updateChildAccountStatus values to update in child account status (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function updateChildAccountStatusRequest($childIdentifier, $updateChildAccountStatus) + { + // verify the required parameter 'childIdentifier' is set + if ($childIdentifier === null || \is_array($childIdentifier) && \count($childIdentifier) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $childIdentifier when calling updateChildAccountStatus'); + } + // verify the required parameter 'updateChildAccountStatus' is set + if ($updateChildAccountStatus === null || \is_array($updateChildAccountStatus) && \count($updateChildAccountStatus) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $updateChildAccountStatus when calling updateChildAccountStatus'); + } + $resourcePath = '/reseller/children/{childIdentifier}/accountStatus'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = \false; + // path params + if ($childIdentifier !== null) { + $resourcePath = \str_replace('{' . 'childIdentifier' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($childIdentifier), $resourcePath); + } + // body params + $_tempBody = null; + if (isset($updateChildAccountStatus)) { + $_tempBody = $updateChildAccountStatus; + } + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); + } else { + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); + } + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + if ($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); + } + } + } elseif (\count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; + } + // for HTTP post (form) + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); + } else { + // for HTTP post (form) + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); + } + } + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('api-key'); + if ($apiKey !== null) { + $headers['api-key'] = $apiKey; + } + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('partner-key'); + if ($apiKey !== null) { + $headers['partner-key'] = $apiKey; + } + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('PUT', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); + } + /** + * Operation updateChildDomain + * + * Update the sender domain of reseller's child based on the childIdentifier and domainName passed + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * @param string $domainName Pass the existing domain that needs to be updated (required) + * @param \SendinBlue\Client\Model\UpdateChildDomain $updateChildDomain value to update for sender domain (required) + * + * @throws \SendinBlue\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return void + */ + public function updateChildDomain($childIdentifier, $domainName, $updateChildDomain) + { + $this->updateChildDomainWithHttpInfo($childIdentifier, $domainName, $updateChildDomain); + } + /** + * Operation updateChildDomainWithHttpInfo + * + * Update the sender domain of reseller's child based on the childIdentifier and domainName passed + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * @param string $domainName Pass the existing domain that needs to be updated (required) + * @param \SendinBlue\Client\Model\UpdateChildDomain $updateChildDomain value to update for sender domain (required) + * + * @throws \SendinBlue\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function updateChildDomainWithHttpInfo($childIdentifier, $domainName, $updateChildDomain) + { + $returnType = ''; + $request = $this->updateChildDomainRequest($childIdentifier, $domainName, $updateChildDomain); + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); + } + $statusCode = $response->getStatusCode(); + if ($statusCode < 200 || $statusCode > 299) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + } + return [null, $statusCode, $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { + switch ($e->getCode()) { + case 400: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + case 403: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + case 404: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + /** + * Operation updateChildDomainAsync + * + * Update the sender domain of reseller's child based on the childIdentifier and domainName passed + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * @param string $domainName Pass the existing domain that needs to be updated (required) + * @param \SendinBlue\Client\Model\UpdateChildDomain $updateChildDomain value to update for sender domain (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateChildDomainAsync($childIdentifier, $domainName, $updateChildDomain) + { + return $this->updateChildDomainAsyncWithHttpInfo($childIdentifier, $domainName, $updateChildDomain)->then(function ($response) { + return $response[0]; + }); + } + /** + * Operation updateChildDomainAsyncWithHttpInfo + * + * Update the sender domain of reseller's child based on the childIdentifier and domainName passed + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * @param string $domainName Pass the existing domain that needs to be updated (required) + * @param \SendinBlue\Client\Model\UpdateChildDomain $updateChildDomain value to update for sender domain (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateChildDomainAsyncWithHttpInfo($childIdentifier, $domainName, $updateChildDomain) + { + $returnType = ''; + $request = $this->updateChildDomainRequest($childIdentifier, $domainName, $updateChildDomain); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); + } + /** + * Create request for operation 'updateChildDomain' + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * @param string $domainName Pass the existing domain that needs to be updated (required) + * @param \SendinBlue\Client\Model\UpdateChildDomain $updateChildDomain value to update for sender domain (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function updateChildDomainRequest($childIdentifier, $domainName, $updateChildDomain) + { + // verify the required parameter 'childIdentifier' is set + if ($childIdentifier === null || \is_array($childIdentifier) && \count($childIdentifier) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $childIdentifier when calling updateChildDomain'); + } + // verify the required parameter 'domainName' is set + if ($domainName === null || \is_array($domainName) && \count($domainName) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $domainName when calling updateChildDomain'); + } + // verify the required parameter 'updateChildDomain' is set + if ($updateChildDomain === null || \is_array($updateChildDomain) && \count($updateChildDomain) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $updateChildDomain when calling updateChildDomain'); + } + $resourcePath = '/reseller/children/{childIdentifier}/domains/{domainName}'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = \false; + // path params + if ($childIdentifier !== null) { + $resourcePath = \str_replace('{' . 'childIdentifier' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($childIdentifier), $resourcePath); + } + // path params + if ($domainName !== null) { + $resourcePath = \str_replace('{' . 'domainName' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($domainName), $resourcePath); + } + // body params + $_tempBody = null; + if (isset($updateChildDomain)) { + $_tempBody = $updateChildDomain; + } + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); + } else { + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); + } + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + if ($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); + } + } + } elseif (\count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; + } + // for HTTP post (form) + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); + } else { + // for HTTP post (form) + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); + } + } + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('api-key'); + if ($apiKey !== null) { + $headers['api-key'] = $apiKey; + } + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('partner-key'); + if ($apiKey !== null) { + $headers['partner-key'] = $apiKey; + } + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('PUT', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); + } + /** + * Operation updateResellerChild + * + * Update info of reseller's child based on the child identifier supplied + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * @param \SendinBlue\Client\Model\UpdateChild $resellerChild values to update in child profile (required) + * + * @throws \SendinBlue\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return void + */ + public function updateResellerChild($childIdentifier, $resellerChild) + { + $this->updateResellerChildWithHttpInfo($childIdentifier, $resellerChild); + } + /** + * Operation updateResellerChildWithHttpInfo + * + * Update info of reseller's child based on the child identifier supplied + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * @param \SendinBlue\Client\Model\UpdateChild $resellerChild values to update in child profile (required) + * + * @throws \SendinBlue\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of null, HTTP status code, HTTP response headers (array of strings) + */ + public function updateResellerChildWithHttpInfo($childIdentifier, $resellerChild) + { + $returnType = ''; + $request = $this->updateResellerChildRequest($childIdentifier, $resellerChild); + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); + } + $statusCode = $response->getStatusCode(); + if ($statusCode < 200 || $statusCode > 299) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + } + return [null, $statusCode, $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { + switch ($e->getCode()) { + case 400: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + case 403: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + case 404: + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + /** + * Operation updateResellerChildAsync + * + * Update info of reseller's child based on the child identifier supplied + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * @param \SendinBlue\Client\Model\UpdateChild $resellerChild values to update in child profile (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateResellerChildAsync($childIdentifier, $resellerChild) + { + return $this->updateResellerChildAsyncWithHttpInfo($childIdentifier, $resellerChild)->then(function ($response) { + return $response[0]; + }); + } + /** + * Operation updateResellerChildAsyncWithHttpInfo + * + * Update info of reseller's child based on the child identifier supplied + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * @param \SendinBlue\Client\Model\UpdateChild $resellerChild values to update in child profile (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateResellerChildAsyncWithHttpInfo($childIdentifier, $resellerChild) + { + $returnType = ''; + $request = $this->updateResellerChildRequest($childIdentifier, $resellerChild); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); + } + /** + * Create request for operation 'updateResellerChild' + * + * @param string $childIdentifier Either auth key or id of reseller's child (required) + * @param \SendinBlue\Client\Model\UpdateChild $resellerChild values to update in child profile (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function updateResellerChildRequest($childIdentifier, $resellerChild) + { + // verify the required parameter 'childIdentifier' is set + if ($childIdentifier === null || \is_array($childIdentifier) && \count($childIdentifier) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $childIdentifier when calling updateResellerChild'); + } + // verify the required parameter 'resellerChild' is set + if ($resellerChild === null || \is_array($resellerChild) && \count($resellerChild) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $resellerChild when calling updateResellerChild'); + } + $resourcePath = '/reseller/children/{childIdentifier}'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = \false; + // path params + if ($childIdentifier !== null) { + $resourcePath = \str_replace('{' . 'childIdentifier' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($childIdentifier), $resourcePath); + } + // body params + $_tempBody = null; + if (isset($resellerChild)) { + $_tempBody = $resellerChild; + } + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); + } else { + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); + } + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + $httpBody = $_tempBody; + if ($headers['Content-Type'] === 'application/json') { + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); + } + // array has no __toString(), so we should encode it manually + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); + } + } + } elseif (\count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; + } + // for HTTP post (form) + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); + } else { + // for HTTP post (form) + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); + } + } + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('api-key'); + if ($apiKey !== null) { + $headers['api-key'] = $apiKey; + } + // this endpoint requires API key authentication + $apiKey = $this->config->getApiKeyWithPrefix('partner-key'); + if ($apiKey !== null) { + $headers['partner-key'] = $apiKey; + } + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('PUT', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); + } + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + if ($this->config->getDebug()) { + $options[\WPMailSMTP\Vendor\GuzzleHttp\RequestOptions::DEBUG] = \fopen($this->config->getDebugFile(), 'a'); + if (!$options[\WPMailSMTP\Vendor\GuzzleHttp\RequestOptions::DEBUG]) { + throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + } + } + return $options; + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/SMSCampaignsApi.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/SMSCampaignsApi.php similarity index 54% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/SMSCampaignsApi.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/SMSCampaignsApi.php index 16833fd..82a7223 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/SMSCampaignsApi.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/SMSCampaignsApi.php @@ -1,4 +1,5 @@ client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); - $this->headerSelector = $selector ?: new HeaderSelector(); + public function __construct(\WPMailSMTP\Vendor\GuzzleHttp\ClientInterface $client = null, \WPMailSMTP\Vendor\SendinBlue\Client\Configuration $config = null, \WPMailSMTP\Vendor\SendinBlue\Client\HeaderSelector $selector = null) + { + $this->client = $client ?: new \WPMailSMTP\Vendor\GuzzleHttp\Client(); + $this->config = $config ?: new \WPMailSMTP\Vendor\SendinBlue\Client\Configuration(); + $this->headerSelector = $selector ?: new \WPMailSMTP\Vendor\SendinBlue\Client\HeaderSelector(); } - /** * @return Configuration */ @@ -86,7 +76,6 @@ class SMSCampaignsApi { return $this->config; } - /** * Operation createSmsCampaign * @@ -103,7 +92,6 @@ class SMSCampaignsApi list($response) = $this->createSmsCampaignWithHttpInfo($createSmsCampaign); return $response; } - /** * Operation createSmsCampaignWithHttpInfo * @@ -117,76 +105,44 @@ class SMSCampaignsApi */ public function createSmsCampaignWithHttpInfo($createSmsCampaign) { - $returnType = '\SendinBlue\Client\Model\CreateModel'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateModel'; $request = $this->createSmsCampaignRequest($createSmsCampaign); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 201: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\CreateModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation createSmsCampaignAsync * @@ -199,14 +155,10 @@ class SMSCampaignsApi */ public function createSmsCampaignAsync($createSmsCampaign) { - return $this->createSmsCampaignAsyncWithHttpInfo($createSmsCampaign) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->createSmsCampaignAsyncWithHttpInfo($createSmsCampaign)->then(function ($response) { + return $response[0]; + }); } - /** * Operation createSmsCampaignAsyncWithHttpInfo * @@ -219,46 +171,26 @@ class SMSCampaignsApi */ public function createSmsCampaignAsyncWithHttpInfo($createSmsCampaign) { - $returnType = '\SendinBlue\Client\Model\CreateModel'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateModel'; $request = $this->createSmsCampaignRequest($createSmsCampaign); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'createSmsCampaign' * @@ -270,74 +202,54 @@ class SMSCampaignsApi protected function createSmsCampaignRequest($createSmsCampaign) { // verify the required parameter 'createSmsCampaign' is set - if ($createSmsCampaign === null || (is_array($createSmsCampaign) && count($createSmsCampaign) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $createSmsCampaign when calling createSmsCampaign' - ); + if ($createSmsCampaign === null || \is_array($createSmsCampaign) && \count($createSmsCampaign) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $createSmsCampaign when calling createSmsCampaign'); } - $resourcePath = '/smsCampaigns'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - - + $multipart = \false; // body params $_tempBody = null; if (isset($createSmsCampaign)) { $_tempBody = $createSmsCampaign; } - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -348,31 +260,18 @@ class SMSCampaignsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation deleteSmsCampaign * - * Delete the SMS campaign + * Delete an SMS campaign * * @param int $campaignId id of the SMS campaign (required) * @@ -384,11 +283,10 @@ class SMSCampaignsApi { $this->deleteSmsCampaignWithHttpInfo($campaignId); } - /** * Operation deleteSmsCampaignWithHttpInfo * - * Delete the SMS campaign + * Delete an SMS campaign * * @param int $campaignId id of the SMS campaign (required) * @@ -400,64 +298,36 @@ class SMSCampaignsApi { $returnType = ''; $request = $this->deleteSmsCampaignRequest($campaignId); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation deleteSmsCampaignAsync * - * Delete the SMS campaign + * Delete an SMS campaign * * @param int $campaignId id of the SMS campaign (required) * @@ -466,18 +336,14 @@ class SMSCampaignsApi */ public function deleteSmsCampaignAsync($campaignId) { - return $this->deleteSmsCampaignAsyncWithHttpInfo($campaignId) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->deleteSmsCampaignAsyncWithHttpInfo($campaignId)->then(function ($response) { + return $response[0]; + }); } - /** * Operation deleteSmsCampaignAsyncWithHttpInfo * - * Delete the SMS campaign + * Delete an SMS campaign * * @param int $campaignId id of the SMS campaign (required) * @@ -488,30 +354,14 @@ class SMSCampaignsApi { $returnType = ''; $request = $this->deleteSmsCampaignRequest($campaignId); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - return [null, $response->getStatusCode(), $response->getHeaders()]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'deleteSmsCampaign' * @@ -523,79 +373,55 @@ class SMSCampaignsApi protected function deleteSmsCampaignRequest($campaignId) { // verify the required parameter 'campaignId' is set - if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $campaignId when calling deleteSmsCampaign' - ); + if ($campaignId === null || \is_array($campaignId) && \count($campaignId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $campaignId when calling deleteSmsCampaign'); } - $resourcePath = '/smsCampaigns/{campaignId}'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($campaignId !== null) { - $resourcePath = str_replace( - '{' . 'campaignId' . '}', - ObjectSerializer::toPathValue($campaignId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'campaignId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($campaignId), $resourcePath); } - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -606,27 +432,14 @@ class SMSCampaignsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'DELETE', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('DELETE', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation getSmsCampaign * @@ -643,7 +456,6 @@ class SMSCampaignsApi list($response) = $this->getSmsCampaignWithHttpInfo($campaignId); return $response; } - /** * Operation getSmsCampaignWithHttpInfo * @@ -657,84 +469,48 @@ class SMSCampaignsApi */ public function getSmsCampaignWithHttpInfo($campaignId) { - $returnType = '\SendinBlue\Client\Model\GetSmsCampaign'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmsCampaign'; $request = $this->getSmsCampaignRequest($campaignId); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\GetSmsCampaign', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmsCampaign', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation getSmsCampaignAsync * @@ -747,14 +523,10 @@ class SMSCampaignsApi */ public function getSmsCampaignAsync($campaignId) { - return $this->getSmsCampaignAsyncWithHttpInfo($campaignId) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->getSmsCampaignAsyncWithHttpInfo($campaignId)->then(function ($response) { + return $response[0]; + }); } - /** * Operation getSmsCampaignAsyncWithHttpInfo * @@ -767,46 +539,26 @@ class SMSCampaignsApi */ public function getSmsCampaignAsyncWithHttpInfo($campaignId) { - $returnType = '\SendinBlue\Client\Model\GetSmsCampaign'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmsCampaign'; $request = $this->getSmsCampaignRequest($campaignId); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'getSmsCampaign' * @@ -818,79 +570,55 @@ class SMSCampaignsApi protected function getSmsCampaignRequest($campaignId) { // verify the required parameter 'campaignId' is set - if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $campaignId when calling getSmsCampaign' - ); + if ($campaignId === null || \is_array($campaignId) && \count($campaignId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $campaignId when calling getSmsCampaign'); } - $resourcePath = '/smsCampaigns/{campaignId}'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($campaignId !== null) { - $resourcePath = str_replace( - '{' . 'campaignId' . '}', - ObjectSerializer::toPathValue($campaignId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'campaignId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($campaignId), $resourcePath); } - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -901,31 +629,18 @@ class SMSCampaignsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation getSmsCampaigns * - * Returns the informations for all your created SMS campaigns + * Returns the information for all your created SMS campaigns * * @param string $status Status of campaign. (optional) * @param \DateTime $startDate Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent sms campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) (optional) @@ -942,11 +657,10 @@ class SMSCampaignsApi list($response) = $this->getSmsCampaignsWithHttpInfo($status, $startDate, $endDate, $limit, $offset); return $response; } - /** * Operation getSmsCampaignsWithHttpInfo * - * Returns the informations for all your created SMS campaigns + * Returns the information for all your created SMS campaigns * * @param string $status Status of campaign. (optional) * @param \DateTime $startDate Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent sms campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) (optional) @@ -960,80 +674,48 @@ class SMSCampaignsApi */ public function getSmsCampaignsWithHttpInfo($status = null, $startDate = null, $endDate = null, $limit = '500', $offset = '0') { - $returnType = '\SendinBlue\Client\Model\GetSmsCampaigns'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmsCampaigns'; $request = $this->getSmsCampaignsRequest($status, $startDate, $endDate, $limit, $offset); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\GetSmsCampaigns', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmsCampaigns', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation getSmsCampaignsAsync * - * Returns the informations for all your created SMS campaigns + * Returns the information for all your created SMS campaigns * * @param string $status Status of campaign. (optional) * @param \DateTime $startDate Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent sms campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) (optional) @@ -1046,18 +728,14 @@ class SMSCampaignsApi */ public function getSmsCampaignsAsync($status = null, $startDate = null, $endDate = null, $limit = '500', $offset = '0') { - return $this->getSmsCampaignsAsyncWithHttpInfo($status, $startDate, $endDate, $limit, $offset) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->getSmsCampaignsAsyncWithHttpInfo($status, $startDate, $endDate, $limit, $offset)->then(function ($response) { + return $response[0]; + }); } - /** * Operation getSmsCampaignsAsyncWithHttpInfo * - * Returns the informations for all your created SMS campaigns + * Returns the information for all your created SMS campaigns * * @param string $status Status of campaign. (optional) * @param \DateTime $startDate Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent sms campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) (optional) @@ -1070,46 +748,26 @@ class SMSCampaignsApi */ public function getSmsCampaignsAsyncWithHttpInfo($status = null, $startDate = null, $endDate = null, $limit = '500', $offset = '0') { - $returnType = '\SendinBlue\Client\Model\GetSmsCampaigns'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmsCampaigns'; $request = $this->getSmsCampaignsRequest($status, $startDate, $endDate, $limit, $offset); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'getSmsCampaigns' * @@ -1127,87 +785,68 @@ class SMSCampaignsApi if ($limit !== null && $limit > 1000) { throw new \InvalidArgumentException('invalid value for "$limit" when calling SMSCampaignsApi.getSmsCampaigns, must be smaller than or equal to 1000.'); } - - $resourcePath = '/smsCampaigns'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - + $multipart = \false; // query params if ($status !== null) { - $queryParams['status'] = ObjectSerializer::toQueryValue($status); + $queryParams['status'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($status); } // query params if ($startDate !== null) { - $queryParams['startDate'] = ObjectSerializer::toQueryValue($startDate); + $queryParams['startDate'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($startDate); } // query params if ($endDate !== null) { - $queryParams['endDate'] = ObjectSerializer::toQueryValue($endDate); + $queryParams['endDate'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($endDate); } // query params if ($limit !== null) { - $queryParams['limit'] = ObjectSerializer::toQueryValue($limit); + $queryParams['limit'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($limit); } // query params if ($offset !== null) { - $queryParams['offset'] = ObjectSerializer::toQueryValue($offset); + $queryParams['offset'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($offset); } - - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -1218,31 +857,18 @@ class SMSCampaignsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation requestSmsRecipientExport * - * Exports the recipients of the specified campaign. + * Export an SMS campaign's recipients * * @param int $campaignId id of the campaign (required) * @param \SendinBlue\Client\Model\RequestSmsRecipientExport $recipientExport Values to send for a recipient export request (optional) @@ -1256,11 +882,10 @@ class SMSCampaignsApi list($response) = $this->requestSmsRecipientExportWithHttpInfo($campaignId, $recipientExport); return $response; } - /** * Operation requestSmsRecipientExportWithHttpInfo * - * Exports the recipients of the specified campaign. + * Export an SMS campaign's recipients * * @param int $campaignId id of the campaign (required) * @param \SendinBlue\Client\Model\RequestSmsRecipientExport $recipientExport Values to send for a recipient export request (optional) @@ -1271,88 +896,52 @@ class SMSCampaignsApi */ public function requestSmsRecipientExportWithHttpInfo($campaignId, $recipientExport = null) { - $returnType = '\SendinBlue\Client\Model\CreatedProcessId'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreatedProcessId'; $request = $this->requestSmsRecipientExportRequest($campaignId, $recipientExport); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 202: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\CreatedProcessId', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreatedProcessId', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation requestSmsRecipientExportAsync * - * Exports the recipients of the specified campaign. + * Export an SMS campaign's recipients * * @param int $campaignId id of the campaign (required) * @param \SendinBlue\Client\Model\RequestSmsRecipientExport $recipientExport Values to send for a recipient export request (optional) @@ -1362,18 +951,14 @@ class SMSCampaignsApi */ public function requestSmsRecipientExportAsync($campaignId, $recipientExport = null) { - return $this->requestSmsRecipientExportAsyncWithHttpInfo($campaignId, $recipientExport) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->requestSmsRecipientExportAsyncWithHttpInfo($campaignId, $recipientExport)->then(function ($response) { + return $response[0]; + }); } - /** * Operation requestSmsRecipientExportAsyncWithHttpInfo * - * Exports the recipients of the specified campaign. + * Export an SMS campaign's recipients * * @param int $campaignId id of the campaign (required) * @param \SendinBlue\Client\Model\RequestSmsRecipientExport $recipientExport Values to send for a recipient export request (optional) @@ -1383,46 +968,26 @@ class SMSCampaignsApi */ public function requestSmsRecipientExportAsyncWithHttpInfo($campaignId, $recipientExport = null) { - $returnType = '\SendinBlue\Client\Model\CreatedProcessId'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreatedProcessId'; $request = $this->requestSmsRecipientExportRequest($campaignId, $recipientExport); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'requestSmsRecipientExport' * @@ -1435,82 +1000,58 @@ class SMSCampaignsApi protected function requestSmsRecipientExportRequest($campaignId, $recipientExport = null) { // verify the required parameter 'campaignId' is set - if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $campaignId when calling requestSmsRecipientExport' - ); + if ($campaignId === null || \is_array($campaignId) && \count($campaignId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $campaignId when calling requestSmsRecipientExport'); } - $resourcePath = '/smsCampaigns/{campaignId}/exportRecipients'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($campaignId !== null) { - $resourcePath = str_replace( - '{' . 'campaignId' . '}', - ObjectSerializer::toPathValue($campaignId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'campaignId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($campaignId), $resourcePath); } - // body params $_tempBody = null; if (isset($recipientExport)) { $_tempBody = $recipientExport; } - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -1521,27 +1062,14 @@ class SMSCampaignsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation sendSmsCampaignNow * @@ -1557,7 +1085,6 @@ class SMSCampaignsApi { $this->sendSmsCampaignNowWithHttpInfo($campaignId); } - /** * Operation sendSmsCampaignNowWithHttpInfo * @@ -1573,68 +1100,36 @@ class SMSCampaignsApi { $returnType = ''; $request = $this->sendSmsCampaignNowRequest($campaignId); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 402: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation sendSmsCampaignNowAsync * @@ -1647,14 +1142,10 @@ class SMSCampaignsApi */ public function sendSmsCampaignNowAsync($campaignId) { - return $this->sendSmsCampaignNowAsyncWithHttpInfo($campaignId) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->sendSmsCampaignNowAsyncWithHttpInfo($campaignId)->then(function ($response) { + return $response[0]; + }); } - /** * Operation sendSmsCampaignNowAsyncWithHttpInfo * @@ -1669,30 +1160,14 @@ class SMSCampaignsApi { $returnType = ''; $request = $this->sendSmsCampaignNowRequest($campaignId); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - return [null, $response->getStatusCode(), $response->getHeaders()]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'sendSmsCampaignNow' * @@ -1704,79 +1179,55 @@ class SMSCampaignsApi protected function sendSmsCampaignNowRequest($campaignId) { // verify the required parameter 'campaignId' is set - if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $campaignId when calling sendSmsCampaignNow' - ); + if ($campaignId === null || \is_array($campaignId) && \count($campaignId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $campaignId when calling sendSmsCampaignNow'); } - $resourcePath = '/smsCampaigns/{campaignId}/sendNow'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($campaignId !== null) { - $resourcePath = str_replace( - '{' . 'campaignId' . '}', - ObjectSerializer::toPathValue($campaignId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'campaignId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($campaignId), $resourcePath); } - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -1787,31 +1238,18 @@ class SMSCampaignsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation sendSmsReport * - * Send report of SMS campaigns + * Send an SMS campaign's report * * @param int $campaignId id of the campaign (required) * @param \SendinBlue\Client\Model\SendReport $sendReport Values for send a report (required) @@ -1824,11 +1262,10 @@ class SMSCampaignsApi { $this->sendSmsReportWithHttpInfo($campaignId, $sendReport); } - /** * Operation sendSmsReportWithHttpInfo * - * Send report of SMS campaigns + * Send an SMS campaign's report * * @param int $campaignId id of the campaign (required) * @param \SendinBlue\Client\Model\SendReport $sendReport Values for send a report (required) @@ -1841,64 +1278,36 @@ class SMSCampaignsApi { $returnType = ''; $request = $this->sendSmsReportRequest($campaignId, $sendReport); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation sendSmsReportAsync * - * Send report of SMS campaigns + * Send an SMS campaign's report * * @param int $campaignId id of the campaign (required) * @param \SendinBlue\Client\Model\SendReport $sendReport Values for send a report (required) @@ -1908,18 +1317,14 @@ class SMSCampaignsApi */ public function sendSmsReportAsync($campaignId, $sendReport) { - return $this->sendSmsReportAsyncWithHttpInfo($campaignId, $sendReport) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->sendSmsReportAsyncWithHttpInfo($campaignId, $sendReport)->then(function ($response) { + return $response[0]; + }); } - /** * Operation sendSmsReportAsyncWithHttpInfo * - * Send report of SMS campaigns + * Send an SMS campaign's report * * @param int $campaignId id of the campaign (required) * @param \SendinBlue\Client\Model\SendReport $sendReport Values for send a report (required) @@ -1931,30 +1336,14 @@ class SMSCampaignsApi { $returnType = ''; $request = $this->sendSmsReportRequest($campaignId, $sendReport); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - return [null, $response->getStatusCode(), $response->getHeaders()]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'sendSmsReport' * @@ -1967,88 +1356,62 @@ class SMSCampaignsApi protected function sendSmsReportRequest($campaignId, $sendReport) { // verify the required parameter 'campaignId' is set - if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $campaignId when calling sendSmsReport' - ); + if ($campaignId === null || \is_array($campaignId) && \count($campaignId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $campaignId when calling sendSmsReport'); } // verify the required parameter 'sendReport' is set - if ($sendReport === null || (is_array($sendReport) && count($sendReport) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $sendReport when calling sendSmsReport' - ); + if ($sendReport === null || \is_array($sendReport) && \count($sendReport) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $sendReport when calling sendSmsReport'); } - $resourcePath = '/smsCampaigns/{campaignId}/sendReport'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($campaignId !== null) { - $resourcePath = str_replace( - '{' . 'campaignId' . '}', - ObjectSerializer::toPathValue($campaignId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'campaignId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($campaignId), $resourcePath); } - // body params $_tempBody = null; if (isset($sendReport)) { $_tempBody = $sendReport; } - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -2059,31 +1422,18 @@ class SMSCampaignsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation sendTestSms * - * Send an SMS + * Send a test SMS campaign * * @param int $campaignId Id of the SMS campaign (required) * @param \SendinBlue\Client\Model\SendTestSms $phoneNumber Mobile number of the recipient with the country code. This number must belong to one of your contacts in SendinBlue account and must not be blacklisted (required) @@ -2096,11 +1446,10 @@ class SMSCampaignsApi { $this->sendTestSmsWithHttpInfo($campaignId, $phoneNumber); } - /** * Operation sendTestSmsWithHttpInfo * - * Send an SMS + * Send a test SMS campaign * * @param int $campaignId Id of the SMS campaign (required) * @param \SendinBlue\Client\Model\SendTestSms $phoneNumber Mobile number of the recipient with the country code. This number must belong to one of your contacts in SendinBlue account and must not be blacklisted (required) @@ -2113,64 +1462,36 @@ class SMSCampaignsApi { $returnType = ''; $request = $this->sendTestSmsRequest($campaignId, $phoneNumber); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\PostSendSmsTestFailed', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\PostSendSmsTestFailed', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation sendTestSmsAsync * - * Send an SMS + * Send a test SMS campaign * * @param int $campaignId Id of the SMS campaign (required) * @param \SendinBlue\Client\Model\SendTestSms $phoneNumber Mobile number of the recipient with the country code. This number must belong to one of your contacts in SendinBlue account and must not be blacklisted (required) @@ -2180,18 +1501,14 @@ class SMSCampaignsApi */ public function sendTestSmsAsync($campaignId, $phoneNumber) { - return $this->sendTestSmsAsyncWithHttpInfo($campaignId, $phoneNumber) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->sendTestSmsAsyncWithHttpInfo($campaignId, $phoneNumber)->then(function ($response) { + return $response[0]; + }); } - /** * Operation sendTestSmsAsyncWithHttpInfo * - * Send an SMS + * Send a test SMS campaign * * @param int $campaignId Id of the SMS campaign (required) * @param \SendinBlue\Client\Model\SendTestSms $phoneNumber Mobile number of the recipient with the country code. This number must belong to one of your contacts in SendinBlue account and must not be blacklisted (required) @@ -2203,30 +1520,14 @@ class SMSCampaignsApi { $returnType = ''; $request = $this->sendTestSmsRequest($campaignId, $phoneNumber); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - return [null, $response->getStatusCode(), $response->getHeaders()]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'sendTestSms' * @@ -2239,88 +1540,62 @@ class SMSCampaignsApi protected function sendTestSmsRequest($campaignId, $phoneNumber) { // verify the required parameter 'campaignId' is set - if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $campaignId when calling sendTestSms' - ); + if ($campaignId === null || \is_array($campaignId) && \count($campaignId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $campaignId when calling sendTestSms'); } // verify the required parameter 'phoneNumber' is set - if ($phoneNumber === null || (is_array($phoneNumber) && count($phoneNumber) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $phoneNumber when calling sendTestSms' - ); + if ($phoneNumber === null || \is_array($phoneNumber) && \count($phoneNumber) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $phoneNumber when calling sendTestSms'); } - $resourcePath = '/smsCampaigns/{campaignId}/sendTest'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($campaignId !== null) { - $resourcePath = str_replace( - '{' . 'campaignId' . '}', - ObjectSerializer::toPathValue($campaignId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'campaignId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($campaignId), $resourcePath); } - // body params $_tempBody = null; if (isset($phoneNumber)) { $_tempBody = $phoneNumber; } - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -2331,31 +1606,18 @@ class SMSCampaignsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation updateSmsCampaign * - * Updates an SMS campaign + * Update an SMS campaign * * @param int $campaignId id of the SMS campaign (required) * @param \SendinBlue\Client\Model\UpdateSmsCampaign $updateSmsCampaign Values to update an SMS Campaign (required) @@ -2368,11 +1630,10 @@ class SMSCampaignsApi { $this->updateSmsCampaignWithHttpInfo($campaignId, $updateSmsCampaign); } - /** * Operation updateSmsCampaignWithHttpInfo * - * Updates an SMS campaign + * Update an SMS campaign * * @param int $campaignId id of the SMS campaign (required) * @param \SendinBlue\Client\Model\UpdateSmsCampaign $updateSmsCampaign Values to update an SMS Campaign (required) @@ -2385,64 +1646,36 @@ class SMSCampaignsApi { $returnType = ''; $request = $this->updateSmsCampaignRequest($campaignId, $updateSmsCampaign); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation updateSmsCampaignAsync * - * Updates an SMS campaign + * Update an SMS campaign * * @param int $campaignId id of the SMS campaign (required) * @param \SendinBlue\Client\Model\UpdateSmsCampaign $updateSmsCampaign Values to update an SMS Campaign (required) @@ -2452,18 +1685,14 @@ class SMSCampaignsApi */ public function updateSmsCampaignAsync($campaignId, $updateSmsCampaign) { - return $this->updateSmsCampaignAsyncWithHttpInfo($campaignId, $updateSmsCampaign) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->updateSmsCampaignAsyncWithHttpInfo($campaignId, $updateSmsCampaign)->then(function ($response) { + return $response[0]; + }); } - /** * Operation updateSmsCampaignAsyncWithHttpInfo * - * Updates an SMS campaign + * Update an SMS campaign * * @param int $campaignId id of the SMS campaign (required) * @param \SendinBlue\Client\Model\UpdateSmsCampaign $updateSmsCampaign Values to update an SMS Campaign (required) @@ -2475,30 +1704,14 @@ class SMSCampaignsApi { $returnType = ''; $request = $this->updateSmsCampaignRequest($campaignId, $updateSmsCampaign); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - return [null, $response->getStatusCode(), $response->getHeaders()]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'updateSmsCampaign' * @@ -2511,88 +1724,62 @@ class SMSCampaignsApi protected function updateSmsCampaignRequest($campaignId, $updateSmsCampaign) { // verify the required parameter 'campaignId' is set - if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $campaignId when calling updateSmsCampaign' - ); + if ($campaignId === null || \is_array($campaignId) && \count($campaignId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $campaignId when calling updateSmsCampaign'); } // verify the required parameter 'updateSmsCampaign' is set - if ($updateSmsCampaign === null || (is_array($updateSmsCampaign) && count($updateSmsCampaign) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $updateSmsCampaign when calling updateSmsCampaign' - ); + if ($updateSmsCampaign === null || \is_array($updateSmsCampaign) && \count($updateSmsCampaign) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $updateSmsCampaign when calling updateSmsCampaign'); } - $resourcePath = '/smsCampaigns/{campaignId}'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($campaignId !== null) { - $resourcePath = str_replace( - '{' . 'campaignId' . '}', - ObjectSerializer::toPathValue($campaignId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'campaignId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($campaignId), $resourcePath); } - // body params $_tempBody = null; if (isset($updateSmsCampaign)) { $_tempBody = $updateSmsCampaign; } - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -2603,31 +1790,18 @@ class SMSCampaignsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'PUT', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('PUT', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation updateSmsCampaignStatus * - * Update the campaign status + * Update a campaign's status * * @param int $campaignId id of the campaign (required) * @param \SendinBlue\Client\Model\UpdateCampaignStatus $status Status of the campaign. (required) @@ -2640,11 +1814,10 @@ class SMSCampaignsApi { $this->updateSmsCampaignStatusWithHttpInfo($campaignId, $status); } - /** * Operation updateSmsCampaignStatusWithHttpInfo * - * Update the campaign status + * Update a campaign's status * * @param int $campaignId id of the campaign (required) * @param \SendinBlue\Client\Model\UpdateCampaignStatus $status Status of the campaign. (required) @@ -2657,64 +1830,36 @@ class SMSCampaignsApi { $returnType = ''; $request = $this->updateSmsCampaignStatusRequest($campaignId, $status); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation updateSmsCampaignStatusAsync * - * Update the campaign status + * Update a campaign's status * * @param int $campaignId id of the campaign (required) * @param \SendinBlue\Client\Model\UpdateCampaignStatus $status Status of the campaign. (required) @@ -2724,18 +1869,14 @@ class SMSCampaignsApi */ public function updateSmsCampaignStatusAsync($campaignId, $status) { - return $this->updateSmsCampaignStatusAsyncWithHttpInfo($campaignId, $status) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->updateSmsCampaignStatusAsyncWithHttpInfo($campaignId, $status)->then(function ($response) { + return $response[0]; + }); } - /** * Operation updateSmsCampaignStatusAsyncWithHttpInfo * - * Update the campaign status + * Update a campaign's status * * @param int $campaignId id of the campaign (required) * @param \SendinBlue\Client\Model\UpdateCampaignStatus $status Status of the campaign. (required) @@ -2747,30 +1888,14 @@ class SMSCampaignsApi { $returnType = ''; $request = $this->updateSmsCampaignStatusRequest($campaignId, $status); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - return [null, $response->getStatusCode(), $response->getHeaders()]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'updateSmsCampaignStatus' * @@ -2783,88 +1908,62 @@ class SMSCampaignsApi protected function updateSmsCampaignStatusRequest($campaignId, $status) { // verify the required parameter 'campaignId' is set - if ($campaignId === null || (is_array($campaignId) && count($campaignId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $campaignId when calling updateSmsCampaignStatus' - ); + if ($campaignId === null || \is_array($campaignId) && \count($campaignId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $campaignId when calling updateSmsCampaignStatus'); } // verify the required parameter 'status' is set - if ($status === null || (is_array($status) && count($status) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $status when calling updateSmsCampaignStatus' - ); + if ($status === null || \is_array($status) && \count($status) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $status when calling updateSmsCampaignStatus'); } - $resourcePath = '/smsCampaigns/{campaignId}/status'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($campaignId !== null) { - $resourcePath = str_replace( - '{' . 'campaignId' . '}', - ObjectSerializer::toPathValue($campaignId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'campaignId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($campaignId), $resourcePath); } - // body params $_tempBody = null; if (isset($status)) { $_tempBody = $status; } - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -2875,27 +1974,14 @@ class SMSCampaignsApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'PUT', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('PUT', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Create http client option * @@ -2906,12 +1992,11 @@ class SMSCampaignsApi { $options = []; if ($this->config->getDebug()) { - $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); - if (!$options[RequestOptions::DEBUG]) { + $options[\WPMailSMTP\Vendor\GuzzleHttp\RequestOptions::DEBUG] = \fopen($this->config->getDebugFile(), 'a'); + if (!$options[\WPMailSMTP\Vendor\GuzzleHttp\RequestOptions::DEBUG]) { throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); } } - return $options; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/SMTPApi.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/SMTPApi.php similarity index 56% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/SMTPApi.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/SMTPApi.php index 62cc00a..e7569d2 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/SMTPApi.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/SMTPApi.php @@ -1,4 +1,5 @@ client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); - $this->headerSelector = $selector ?: new HeaderSelector(); + public function __construct(\WPMailSMTP\Vendor\GuzzleHttp\ClientInterface $client = null, \WPMailSMTP\Vendor\SendinBlue\Client\Configuration $config = null, \WPMailSMTP\Vendor\SendinBlue\Client\HeaderSelector $selector = null) + { + $this->client = $client ?: new \WPMailSMTP\Vendor\GuzzleHttp\Client(); + $this->config = $config ?: new \WPMailSMTP\Vendor\SendinBlue\Client\Configuration(); + $this->headerSelector = $selector ?: new \WPMailSMTP\Vendor\SendinBlue\Client\HeaderSelector(); } - /** * @return Configuration */ @@ -86,11 +76,10 @@ class SMTPApi { return $this->config; } - /** * Operation createSmtpTemplate * - * Create a transactional email template + * Create an email template * * @param \SendinBlue\Client\Model\CreateSmtpTemplate $smtpTemplate values to update in transactional email template (required) * @@ -103,11 +92,10 @@ class SMTPApi list($response) = $this->createSmtpTemplateWithHttpInfo($smtpTemplate); return $response; } - /** * Operation createSmtpTemplateWithHttpInfo * - * Create a transactional email template + * Create an email template * * @param \SendinBlue\Client\Model\CreateSmtpTemplate $smtpTemplate values to update in transactional email template (required) * @@ -117,80 +105,48 @@ class SMTPApi */ public function createSmtpTemplateWithHttpInfo($smtpTemplate) { - $returnType = '\SendinBlue\Client\Model\CreateModel'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateModel'; $request = $this->createSmtpTemplateRequest($smtpTemplate); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 201: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\CreateModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation createSmtpTemplateAsync * - * Create a transactional email template + * Create an email template * * @param \SendinBlue\Client\Model\CreateSmtpTemplate $smtpTemplate values to update in transactional email template (required) * @@ -199,18 +155,14 @@ class SMTPApi */ public function createSmtpTemplateAsync($smtpTemplate) { - return $this->createSmtpTemplateAsyncWithHttpInfo($smtpTemplate) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->createSmtpTemplateAsyncWithHttpInfo($smtpTemplate)->then(function ($response) { + return $response[0]; + }); } - /** * Operation createSmtpTemplateAsyncWithHttpInfo * - * Create a transactional email template + * Create an email template * * @param \SendinBlue\Client\Model\CreateSmtpTemplate $smtpTemplate values to update in transactional email template (required) * @@ -219,46 +171,26 @@ class SMTPApi */ public function createSmtpTemplateAsyncWithHttpInfo($smtpTemplate) { - $returnType = '\SendinBlue\Client\Model\CreateModel'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateModel'; $request = $this->createSmtpTemplateRequest($smtpTemplate); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'createSmtpTemplate' * @@ -270,74 +202,54 @@ class SMTPApi protected function createSmtpTemplateRequest($smtpTemplate) { // verify the required parameter 'smtpTemplate' is set - if ($smtpTemplate === null || (is_array($smtpTemplate) && count($smtpTemplate) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $smtpTemplate when calling createSmtpTemplate' - ); + if ($smtpTemplate === null || \is_array($smtpTemplate) && \count($smtpTemplate) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $smtpTemplate when calling createSmtpTemplate'); } - $resourcePath = '/smtp/templates'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - - + $multipart = \false; // body params $_tempBody = null; if (isset($smtpTemplate)) { $_tempBody = $smtpTemplate; } - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -348,27 +260,14 @@ class SMTPApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation deleteHardbounces * @@ -384,7 +283,6 @@ class SMTPApi { $this->deleteHardbouncesWithHttpInfo($deleteHardbounces); } - /** * Operation deleteHardbouncesWithHttpInfo * @@ -400,52 +298,28 @@ class SMTPApi { $returnType = ''; $request = $this->deleteHardbouncesRequest($deleteHardbounces); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation deleteHardbouncesAsync * @@ -458,14 +332,10 @@ class SMTPApi */ public function deleteHardbouncesAsync($deleteHardbounces = null) { - return $this->deleteHardbouncesAsyncWithHttpInfo($deleteHardbounces) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->deleteHardbouncesAsyncWithHttpInfo($deleteHardbounces)->then(function ($response) { + return $response[0]; + }); } - /** * Operation deleteHardbouncesAsyncWithHttpInfo * @@ -480,30 +350,14 @@ class SMTPApi { $returnType = ''; $request = $this->deleteHardbouncesRequest($deleteHardbounces); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - return [null, $response->getStatusCode(), $response->getHeaders()]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'deleteHardbounces' * @@ -514,69 +368,51 @@ class SMTPApi */ protected function deleteHardbouncesRequest($deleteHardbounces = null) { - $resourcePath = '/smtp/deleteHardbounces'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - - + $multipart = \false; // body params $_tempBody = null; if (isset($deleteHardbounces)) { $_tempBody = $deleteHardbounces; } - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -587,31 +423,18 @@ class SMTPApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation deleteSmtpTemplate * - * Delete an inactive transactional email template + * Delete an inactive email template * * @param int $templateId id of the template (required) * @@ -623,11 +446,10 @@ class SMTPApi { $this->deleteSmtpTemplateWithHttpInfo($templateId); } - /** * Operation deleteSmtpTemplateWithHttpInfo * - * Delete an inactive transactional email template + * Delete an inactive email template * * @param int $templateId id of the template (required) * @@ -639,64 +461,36 @@ class SMTPApi { $returnType = ''; $request = $this->deleteSmtpTemplateRequest($templateId); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation deleteSmtpTemplateAsync * - * Delete an inactive transactional email template + * Delete an inactive email template * * @param int $templateId id of the template (required) * @@ -705,18 +499,14 @@ class SMTPApi */ public function deleteSmtpTemplateAsync($templateId) { - return $this->deleteSmtpTemplateAsyncWithHttpInfo($templateId) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->deleteSmtpTemplateAsyncWithHttpInfo($templateId)->then(function ($response) { + return $response[0]; + }); } - /** * Operation deleteSmtpTemplateAsyncWithHttpInfo * - * Delete an inactive transactional email template + * Delete an inactive email template * * @param int $templateId id of the template (required) * @@ -727,30 +517,14 @@ class SMTPApi { $returnType = ''; $request = $this->deleteSmtpTemplateRequest($templateId); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - return [null, $response->getStatusCode(), $response->getHeaders()]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'deleteSmtpTemplate' * @@ -762,79 +536,55 @@ class SMTPApi protected function deleteSmtpTemplateRequest($templateId) { // verify the required parameter 'templateId' is set - if ($templateId === null || (is_array($templateId) && count($templateId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $templateId when calling deleteSmtpTemplate' - ); + if ($templateId === null || \is_array($templateId) && \count($templateId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $templateId when calling deleteSmtpTemplate'); } - $resourcePath = '/smtp/templates/{templateId}'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($templateId !== null) { - $resourcePath = str_replace( - '{' . 'templateId' . '}', - ObjectSerializer::toPathValue($templateId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'templateId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($templateId), $resourcePath); } - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -845,27 +595,14 @@ class SMTPApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'DELETE', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('DELETE', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation getAggregatedSmtpReport * @@ -885,7 +622,6 @@ class SMTPApi list($response) = $this->getAggregatedSmtpReportWithHttpInfo($startDate, $endDate, $days, $tag); return $response; } - /** * Operation getAggregatedSmtpReportWithHttpInfo * @@ -902,76 +638,44 @@ class SMTPApi */ public function getAggregatedSmtpReportWithHttpInfo($startDate = null, $endDate = null, $days = null, $tag = null) { - $returnType = '\SendinBlue\Client\Model\GetAggregatedReport'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAggregatedReport'; $request = $this->getAggregatedSmtpReportRequest($startDate, $endDate, $days, $tag); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\GetAggregatedReport', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAggregatedReport', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation getAggregatedSmtpReportAsync * @@ -987,14 +691,10 @@ class SMTPApi */ public function getAggregatedSmtpReportAsync($startDate = null, $endDate = null, $days = null, $tag = null) { - return $this->getAggregatedSmtpReportAsyncWithHttpInfo($startDate, $endDate, $days, $tag) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->getAggregatedSmtpReportAsyncWithHttpInfo($startDate, $endDate, $days, $tag)->then(function ($response) { + return $response[0]; + }); } - /** * Operation getAggregatedSmtpReportAsyncWithHttpInfo * @@ -1010,46 +710,26 @@ class SMTPApi */ public function getAggregatedSmtpReportAsyncWithHttpInfo($startDate = null, $endDate = null, $days = null, $tag = null) { - $returnType = '\SendinBlue\Client\Model\GetAggregatedReport'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAggregatedReport'; $request = $this->getAggregatedSmtpReportRequest($startDate, $endDate, $days, $tag); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'getAggregatedSmtpReport' * @@ -1063,82 +743,64 @@ class SMTPApi */ protected function getAggregatedSmtpReportRequest($startDate = null, $endDate = null, $days = null, $tag = null) { - $resourcePath = '/smtp/statistics/aggregatedReport'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - + $multipart = \false; // query params if ($startDate !== null) { - $queryParams['startDate'] = ObjectSerializer::toQueryValue($startDate); + $queryParams['startDate'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($startDate); } // query params if ($endDate !== null) { - $queryParams['endDate'] = ObjectSerializer::toQueryValue($endDate); + $queryParams['endDate'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($endDate); } // query params if ($days !== null) { - $queryParams['days'] = ObjectSerializer::toQueryValue($days); + $queryParams['days'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($days); } // query params if ($tag !== null) { - $queryParams['tag'] = ObjectSerializer::toQueryValue($tag); + $queryParams['tag'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($tag); } - - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -1149,27 +811,14 @@ class SMTPApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation getEmailEventReport * @@ -1195,7 +844,6 @@ class SMTPApi list($response) = $this->getEmailEventReportWithHttpInfo($limit, $offset, $startDate, $endDate, $days, $email, $event, $tags, $messageId, $templateId); return $response; } - /** * Operation getEmailEventReportWithHttpInfo * @@ -1218,76 +866,44 @@ class SMTPApi */ public function getEmailEventReportWithHttpInfo($limit = '50', $offset = '0', $startDate = null, $endDate = null, $days = null, $email = null, $event = null, $tags = null, $messageId = null, $templateId = null) { - $returnType = '\SendinBlue\Client\Model\GetEmailEventReport'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetEmailEventReport'; $request = $this->getEmailEventReportRequest($limit, $offset, $startDate, $endDate, $days, $email, $event, $tags, $messageId, $templateId); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\GetEmailEventReport', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetEmailEventReport', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation getEmailEventReportAsync * @@ -1309,14 +925,10 @@ class SMTPApi */ public function getEmailEventReportAsync($limit = '50', $offset = '0', $startDate = null, $endDate = null, $days = null, $email = null, $event = null, $tags = null, $messageId = null, $templateId = null) { - return $this->getEmailEventReportAsyncWithHttpInfo($limit, $offset, $startDate, $endDate, $days, $email, $event, $tags, $messageId, $templateId) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->getEmailEventReportAsyncWithHttpInfo($limit, $offset, $startDate, $endDate, $days, $email, $event, $tags, $messageId, $templateId)->then(function ($response) { + return $response[0]; + }); } - /** * Operation getEmailEventReportAsyncWithHttpInfo * @@ -1338,46 +950,26 @@ class SMTPApi */ public function getEmailEventReportAsyncWithHttpInfo($limit = '50', $offset = '0', $startDate = null, $endDate = null, $days = null, $email = null, $event = null, $tags = null, $messageId = null, $templateId = null) { - $returnType = '\SendinBlue\Client\Model\GetEmailEventReport'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetEmailEventReport'; $request = $this->getEmailEventReportRequest($limit, $offset, $startDate, $endDate, $days, $email, $event, $tags, $messageId, $templateId); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'getEmailEventReport' * @@ -1400,107 +992,88 @@ class SMTPApi if ($limit !== null && $limit > 100) { throw new \InvalidArgumentException('invalid value for "$limit" when calling SMTPApi.getEmailEventReport, must be smaller than or equal to 100.'); } - - $resourcePath = '/smtp/statistics/events'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - + $multipart = \false; // query params if ($limit !== null) { - $queryParams['limit'] = ObjectSerializer::toQueryValue($limit); + $queryParams['limit'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($limit); } // query params if ($offset !== null) { - $queryParams['offset'] = ObjectSerializer::toQueryValue($offset); + $queryParams['offset'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($offset); } // query params if ($startDate !== null) { - $queryParams['startDate'] = ObjectSerializer::toQueryValue($startDate); + $queryParams['startDate'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($startDate); } // query params if ($endDate !== null) { - $queryParams['endDate'] = ObjectSerializer::toQueryValue($endDate); + $queryParams['endDate'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($endDate); } // query params if ($days !== null) { - $queryParams['days'] = ObjectSerializer::toQueryValue($days); + $queryParams['days'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($days); } // query params if ($email !== null) { - $queryParams['email'] = ObjectSerializer::toQueryValue($email); + $queryParams['email'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($email); } // query params if ($event !== null) { - $queryParams['event'] = ObjectSerializer::toQueryValue($event); + $queryParams['event'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($event); } // query params if ($tags !== null) { - $queryParams['tags'] = ObjectSerializer::toQueryValue($tags); + $queryParams['tags'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($tags); } // query params if ($messageId !== null) { - $queryParams['messageId'] = ObjectSerializer::toQueryValue($messageId); + $queryParams['messageId'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($messageId); } // query params if ($templateId !== null) { - $queryParams['templateId'] = ObjectSerializer::toQueryValue($templateId); + $queryParams['templateId'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($templateId); } - - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -1511,27 +1084,14 @@ class SMTPApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation getSmtpReport * @@ -1553,7 +1113,6 @@ class SMTPApi list($response) = $this->getSmtpReportWithHttpInfo($limit, $offset, $startDate, $endDate, $days, $tag); return $response; } - /** * Operation getSmtpReportWithHttpInfo * @@ -1572,76 +1131,44 @@ class SMTPApi */ public function getSmtpReportWithHttpInfo($limit = '10', $offset = '0', $startDate = null, $endDate = null, $days = null, $tag = null) { - $returnType = '\SendinBlue\Client\Model\GetReports'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetReports'; $request = $this->getSmtpReportRequest($limit, $offset, $startDate, $endDate, $days, $tag); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\GetReports', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetReports', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation getSmtpReportAsync * @@ -1659,14 +1186,10 @@ class SMTPApi */ public function getSmtpReportAsync($limit = '10', $offset = '0', $startDate = null, $endDate = null, $days = null, $tag = null) { - return $this->getSmtpReportAsyncWithHttpInfo($limit, $offset, $startDate, $endDate, $days, $tag) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->getSmtpReportAsyncWithHttpInfo($limit, $offset, $startDate, $endDate, $days, $tag)->then(function ($response) { + return $response[0]; + }); } - /** * Operation getSmtpReportAsyncWithHttpInfo * @@ -1684,46 +1207,26 @@ class SMTPApi */ public function getSmtpReportAsyncWithHttpInfo($limit = '10', $offset = '0', $startDate = null, $endDate = null, $days = null, $tag = null) { - $returnType = '\SendinBlue\Client\Model\GetReports'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetReports'; $request = $this->getSmtpReportRequest($limit, $offset, $startDate, $endDate, $days, $tag); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'getSmtpReport' * @@ -1742,91 +1245,72 @@ class SMTPApi if ($limit !== null && $limit > 30) { throw new \InvalidArgumentException('invalid value for "$limit" when calling SMTPApi.getSmtpReport, must be smaller than or equal to 30.'); } - - $resourcePath = '/smtp/statistics/reports'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - + $multipart = \false; // query params if ($limit !== null) { - $queryParams['limit'] = ObjectSerializer::toQueryValue($limit); + $queryParams['limit'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($limit); } // query params if ($offset !== null) { - $queryParams['offset'] = ObjectSerializer::toQueryValue($offset); + $queryParams['offset'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($offset); } // query params if ($startDate !== null) { - $queryParams['startDate'] = ObjectSerializer::toQueryValue($startDate); + $queryParams['startDate'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($startDate); } // query params if ($endDate !== null) { - $queryParams['endDate'] = ObjectSerializer::toQueryValue($endDate); + $queryParams['endDate'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($endDate); } // query params if ($days !== null) { - $queryParams['days'] = ObjectSerializer::toQueryValue($days); + $queryParams['days'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($days); } // query params if ($tag !== null) { - $queryParams['tag'] = ObjectSerializer::toQueryValue($tag); + $queryParams['tag'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($tag); } - - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -1837,31 +1321,18 @@ class SMTPApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation getSmtpTemplate * - * Returns the template informations + * Returns the template information * * @param int $templateId id of the template (required) * @@ -1874,11 +1345,10 @@ class SMTPApi list($response) = $this->getSmtpTemplateWithHttpInfo($templateId); return $response; } - /** * Operation getSmtpTemplateWithHttpInfo * - * Returns the template informations + * Returns the template information * * @param int $templateId id of the template (required) * @@ -1888,88 +1358,52 @@ class SMTPApi */ public function getSmtpTemplateWithHttpInfo($templateId) { - $returnType = '\SendinBlue\Client\Model\GetSmtpTemplateOverview'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmtpTemplateOverview'; $request = $this->getSmtpTemplateRequest($templateId); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\GetSmtpTemplateOverview', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmtpTemplateOverview', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation getSmtpTemplateAsync * - * Returns the template informations + * Returns the template information * * @param int $templateId id of the template (required) * @@ -1978,18 +1412,14 @@ class SMTPApi */ public function getSmtpTemplateAsync($templateId) { - return $this->getSmtpTemplateAsyncWithHttpInfo($templateId) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->getSmtpTemplateAsyncWithHttpInfo($templateId)->then(function ($response) { + return $response[0]; + }); } - /** * Operation getSmtpTemplateAsyncWithHttpInfo * - * Returns the template informations + * Returns the template information * * @param int $templateId id of the template (required) * @@ -1998,46 +1428,26 @@ class SMTPApi */ public function getSmtpTemplateAsyncWithHttpInfo($templateId) { - $returnType = '\SendinBlue\Client\Model\GetSmtpTemplateOverview'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmtpTemplateOverview'; $request = $this->getSmtpTemplateRequest($templateId); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'getSmtpTemplate' * @@ -2049,79 +1459,55 @@ class SMTPApi protected function getSmtpTemplateRequest($templateId) { // verify the required parameter 'templateId' is set - if ($templateId === null || (is_array($templateId) && count($templateId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $templateId when calling getSmtpTemplate' - ); + if ($templateId === null || \is_array($templateId) && \count($templateId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $templateId when calling getSmtpTemplate'); } - $resourcePath = '/smtp/templates/{templateId}'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($templateId !== null) { - $resourcePath = str_replace( - '{' . 'templateId' . '}', - ObjectSerializer::toPathValue($templateId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'templateId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($templateId), $resourcePath); } - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -2132,31 +1518,18 @@ class SMTPApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation getSmtpTemplates * - * Get the list of transactional email templates + * Get the list of email templates * * @param bool $templateStatus Filter on the status of the template. Active = true, inactive = false (optional) * @param int $limit Number of documents returned per page (optional, default to 50) @@ -2171,11 +1544,10 @@ class SMTPApi list($response) = $this->getSmtpTemplatesWithHttpInfo($templateStatus, $limit, $offset); return $response; } - /** * Operation getSmtpTemplatesWithHttpInfo * - * Get the list of transactional email templates + * Get the list of email templates * * @param bool $templateStatus Filter on the status of the template. Active = true, inactive = false (optional) * @param int $limit Number of documents returned per page (optional, default to 50) @@ -2187,80 +1559,48 @@ class SMTPApi */ public function getSmtpTemplatesWithHttpInfo($templateStatus = null, $limit = '50', $offset = '0') { - $returnType = '\SendinBlue\Client\Model\GetSmtpTemplates'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmtpTemplates'; $request = $this->getSmtpTemplatesRequest($templateStatus, $limit, $offset); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\GetSmtpTemplates', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmtpTemplates', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation getSmtpTemplatesAsync * - * Get the list of transactional email templates + * Get the list of email templates * * @param bool $templateStatus Filter on the status of the template. Active = true, inactive = false (optional) * @param int $limit Number of documents returned per page (optional, default to 50) @@ -2271,18 +1611,14 @@ class SMTPApi */ public function getSmtpTemplatesAsync($templateStatus = null, $limit = '50', $offset = '0') { - return $this->getSmtpTemplatesAsyncWithHttpInfo($templateStatus, $limit, $offset) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->getSmtpTemplatesAsyncWithHttpInfo($templateStatus, $limit, $offset)->then(function ($response) { + return $response[0]; + }); } - /** * Operation getSmtpTemplatesAsyncWithHttpInfo * - * Get the list of transactional email templates + * Get the list of email templates * * @param bool $templateStatus Filter on the status of the template. Active = true, inactive = false (optional) * @param int $limit Number of documents returned per page (optional, default to 50) @@ -2293,46 +1629,26 @@ class SMTPApi */ public function getSmtpTemplatesAsyncWithHttpInfo($templateStatus = null, $limit = '50', $offset = '0') { - $returnType = '\SendinBlue\Client\Model\GetSmtpTemplates'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmtpTemplates'; $request = $this->getSmtpTemplatesRequest($templateStatus, $limit, $offset); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'getSmtpTemplates' * @@ -2348,79 +1664,60 @@ class SMTPApi if ($limit !== null && $limit > 1000) { throw new \InvalidArgumentException('invalid value for "$limit" when calling SMTPApi.getSmtpTemplates, must be smaller than or equal to 1000.'); } - - $resourcePath = '/smtp/templates'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - + $multipart = \false; // query params if ($templateStatus !== null) { - $queryParams['templateStatus'] = ObjectSerializer::toQueryValue($templateStatus); + $queryParams['templateStatus'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($templateStatus); } // query params if ($limit !== null) { - $queryParams['limit'] = ObjectSerializer::toQueryValue($limit); + $queryParams['limit'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($limit); } // query params if ($offset !== null) { - $queryParams['offset'] = ObjectSerializer::toQueryValue($offset); + $queryParams['offset'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($offset); } - - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -2431,27 +1728,14 @@ class SMTPApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation getTransacBlockedContacts * @@ -2472,7 +1756,6 @@ class SMTPApi list($response) = $this->getTransacBlockedContactsWithHttpInfo($startDate, $endDate, $limit, $offset, $senders); return $response; } - /** * Operation getTransacBlockedContactsWithHttpInfo * @@ -2490,76 +1773,44 @@ class SMTPApi */ public function getTransacBlockedContactsWithHttpInfo($startDate = null, $endDate = null, $limit = '50', $offset = '0', $senders = null) { - $returnType = '\SendinBlue\Client\Model\GetTransacBlockedContacts'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacBlockedContacts'; $request = $this->getTransacBlockedContactsRequest($startDate, $endDate, $limit, $offset, $senders); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\GetTransacBlockedContacts', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacBlockedContacts', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation getTransacBlockedContactsAsync * @@ -2576,14 +1827,10 @@ class SMTPApi */ public function getTransacBlockedContactsAsync($startDate = null, $endDate = null, $limit = '50', $offset = '0', $senders = null) { - return $this->getTransacBlockedContactsAsyncWithHttpInfo($startDate, $endDate, $limit, $offset, $senders) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->getTransacBlockedContactsAsyncWithHttpInfo($startDate, $endDate, $limit, $offset, $senders)->then(function ($response) { + return $response[0]; + }); } - /** * Operation getTransacBlockedContactsAsyncWithHttpInfo * @@ -2600,46 +1847,26 @@ class SMTPApi */ public function getTransacBlockedContactsAsyncWithHttpInfo($startDate = null, $endDate = null, $limit = '50', $offset = '0', $senders = null) { - $returnType = '\SendinBlue\Client\Model\GetTransacBlockedContacts'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacBlockedContacts'; $request = $this->getTransacBlockedContactsRequest($startDate, $endDate, $limit, $offset, $senders); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'getTransacBlockedContacts' * @@ -2657,90 +1884,72 @@ class SMTPApi if ($limit !== null && $limit > 100) { throw new \InvalidArgumentException('invalid value for "$limit" when calling SMTPApi.getTransacBlockedContacts, must be smaller than or equal to 100.'); } - - $resourcePath = '/smtp/blockedContacts'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - + $multipart = \false; // query params if ($startDate !== null) { - $queryParams['startDate'] = ObjectSerializer::toQueryValue($startDate); + $queryParams['startDate'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($startDate); } // query params if ($endDate !== null) { - $queryParams['endDate'] = ObjectSerializer::toQueryValue($endDate); + $queryParams['endDate'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($endDate); } // query params if ($limit !== null) { - $queryParams['limit'] = ObjectSerializer::toQueryValue($limit); + $queryParams['limit'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($limit); } // query params if ($offset !== null) { - $queryParams['offset'] = ObjectSerializer::toQueryValue($offset); + $queryParams['offset'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($offset); } // query params - if (is_array($senders)) { + if (\is_array($senders)) { $queryParams['senders'] = $senders; - } else - if ($senders !== null) { - $queryParams['senders'] = ObjectSerializer::toQueryValue($senders); + } else { + if ($senders !== null) { + $queryParams['senders'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($senders); + } } - - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -2751,27 +1960,14 @@ class SMTPApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation getTransacEmailContent * @@ -2788,7 +1984,6 @@ class SMTPApi list($response) = $this->getTransacEmailContentWithHttpInfo($uuid); return $response; } - /** * Operation getTransacEmailContentWithHttpInfo * @@ -2802,68 +1997,40 @@ class SMTPApi */ public function getTransacEmailContentWithHttpInfo($uuid) { - $returnType = '\SendinBlue\Client\Model\GetTransacEmailContent'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacEmailContent'; $request = $this->getTransacEmailContentRequest($uuid); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\GetTransacEmailContent', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacEmailContent', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation getTransacEmailContentAsync * @@ -2876,14 +2043,10 @@ class SMTPApi */ public function getTransacEmailContentAsync($uuid) { - return $this->getTransacEmailContentAsyncWithHttpInfo($uuid) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->getTransacEmailContentAsyncWithHttpInfo($uuid)->then(function ($response) { + return $response[0]; + }); } - /** * Operation getTransacEmailContentAsyncWithHttpInfo * @@ -2896,46 +2059,26 @@ class SMTPApi */ public function getTransacEmailContentAsyncWithHttpInfo($uuid) { - $returnType = '\SendinBlue\Client\Model\GetTransacEmailContent'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacEmailContent'; $request = $this->getTransacEmailContentRequest($uuid); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'getTransacEmailContent' * @@ -2947,79 +2090,55 @@ class SMTPApi protected function getTransacEmailContentRequest($uuid) { // verify the required parameter 'uuid' is set - if ($uuid === null || (is_array($uuid) && count($uuid) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $uuid when calling getTransacEmailContent' - ); + if ($uuid === null || \is_array($uuid) && \count($uuid) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $uuid when calling getTransacEmailContent'); } - $resourcePath = '/smtp/emails/{uuid}'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($uuid !== null) { - $resourcePath = str_replace( - '{' . 'uuid' . '}', - ObjectSerializer::toPathValue($uuid), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'uuid' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($uuid), $resourcePath); } - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -3030,27 +2149,14 @@ class SMTPApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation getTransacEmailsList * @@ -3059,7 +2165,7 @@ class SMTPApi * @param string $email Mandatory if templateId and messageId are not passed in query filters. Email address to which transactional email has been sent. (optional) * @param int $templateId Mandatory if email and messageId are not passed in query filters. Id of the template that was used to compose transactional email. (optional) * @param string $messageId Mandatory if templateId and email are not passed in query filters. Message ID of the transactional email sent. (optional) - * @param string $startDate Mandatory if endDate is used. Starting date (YYYY-MM-DD) from which you want to fetch the list. Maximum time period that can be selected is one month. (optional) + * @param \DateTime $startDate Mandatory if endDate is used. Starting date (YYYY-MM-DD) from which you want to fetch the list. Maximum time period that can be selected is one month. (optional) * @param \DateTime $endDate Mandatory if startDate is used. Ending date (YYYY-MM-DD) till which you want to fetch the list. Maximum time period that can be selected is one month. (optional) * * @throws \SendinBlue\Client\ApiException on non-2xx response @@ -3071,7 +2177,6 @@ class SMTPApi list($response) = $this->getTransacEmailsListWithHttpInfo($email, $templateId, $messageId, $startDate, $endDate); return $response; } - /** * Operation getTransacEmailsListWithHttpInfo * @@ -3080,7 +2185,7 @@ class SMTPApi * @param string $email Mandatory if templateId and messageId are not passed in query filters. Email address to which transactional email has been sent. (optional) * @param int $templateId Mandatory if email and messageId are not passed in query filters. Id of the template that was used to compose transactional email. (optional) * @param string $messageId Mandatory if templateId and email are not passed in query filters. Message ID of the transactional email sent. (optional) - * @param string $startDate Mandatory if endDate is used. Starting date (YYYY-MM-DD) from which you want to fetch the list. Maximum time period that can be selected is one month. (optional) + * @param \DateTime $startDate Mandatory if endDate is used. Starting date (YYYY-MM-DD) from which you want to fetch the list. Maximum time period that can be selected is one month. (optional) * @param \DateTime $endDate Mandatory if startDate is used. Ending date (YYYY-MM-DD) till which you want to fetch the list. Maximum time period that can be selected is one month. (optional) * * @throws \SendinBlue\Client\ApiException on non-2xx response @@ -3089,76 +2194,44 @@ class SMTPApi */ public function getTransacEmailsListWithHttpInfo($email = null, $templateId = null, $messageId = null, $startDate = null, $endDate = null) { - $returnType = '\SendinBlue\Client\Model\GetTransacEmailsList'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacEmailsList'; $request = $this->getTransacEmailsListRequest($email, $templateId, $messageId, $startDate, $endDate); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\GetTransacEmailsList', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacEmailsList', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation getTransacEmailsListAsync * @@ -3167,7 +2240,7 @@ class SMTPApi * @param string $email Mandatory if templateId and messageId are not passed in query filters. Email address to which transactional email has been sent. (optional) * @param int $templateId Mandatory if email and messageId are not passed in query filters. Id of the template that was used to compose transactional email. (optional) * @param string $messageId Mandatory if templateId and email are not passed in query filters. Message ID of the transactional email sent. (optional) - * @param string $startDate Mandatory if endDate is used. Starting date (YYYY-MM-DD) from which you want to fetch the list. Maximum time period that can be selected is one month. (optional) + * @param \DateTime $startDate Mandatory if endDate is used. Starting date (YYYY-MM-DD) from which you want to fetch the list. Maximum time period that can be selected is one month. (optional) * @param \DateTime $endDate Mandatory if startDate is used. Ending date (YYYY-MM-DD) till which you want to fetch the list. Maximum time period that can be selected is one month. (optional) * * @throws \InvalidArgumentException @@ -3175,14 +2248,10 @@ class SMTPApi */ public function getTransacEmailsListAsync($email = null, $templateId = null, $messageId = null, $startDate = null, $endDate = null) { - return $this->getTransacEmailsListAsyncWithHttpInfo($email, $templateId, $messageId, $startDate, $endDate) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->getTransacEmailsListAsyncWithHttpInfo($email, $templateId, $messageId, $startDate, $endDate)->then(function ($response) { + return $response[0]; + }); } - /** * Operation getTransacEmailsListAsyncWithHttpInfo * @@ -3191,7 +2260,7 @@ class SMTPApi * @param string $email Mandatory if templateId and messageId are not passed in query filters. Email address to which transactional email has been sent. (optional) * @param int $templateId Mandatory if email and messageId are not passed in query filters. Id of the template that was used to compose transactional email. (optional) * @param string $messageId Mandatory if templateId and email are not passed in query filters. Message ID of the transactional email sent. (optional) - * @param string $startDate Mandatory if endDate is used. Starting date (YYYY-MM-DD) from which you want to fetch the list. Maximum time period that can be selected is one month. (optional) + * @param \DateTime $startDate Mandatory if endDate is used. Starting date (YYYY-MM-DD) from which you want to fetch the list. Maximum time period that can be selected is one month. (optional) * @param \DateTime $endDate Mandatory if startDate is used. Ending date (YYYY-MM-DD) till which you want to fetch the list. Maximum time period that can be selected is one month. (optional) * * @throws \InvalidArgumentException @@ -3199,53 +2268,33 @@ class SMTPApi */ public function getTransacEmailsListAsyncWithHttpInfo($email = null, $templateId = null, $messageId = null, $startDate = null, $endDate = null) { - $returnType = '\SendinBlue\Client\Model\GetTransacEmailsList'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacEmailsList'; $request = $this->getTransacEmailsListRequest($email, $templateId, $messageId, $startDate, $endDate); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'getTransacEmailsList' * * @param string $email Mandatory if templateId and messageId are not passed in query filters. Email address to which transactional email has been sent. (optional) * @param int $templateId Mandatory if email and messageId are not passed in query filters. Id of the template that was used to compose transactional email. (optional) * @param string $messageId Mandatory if templateId and email are not passed in query filters. Message ID of the transactional email sent. (optional) - * @param string $startDate Mandatory if endDate is used. Starting date (YYYY-MM-DD) from which you want to fetch the list. Maximum time period that can be selected is one month. (optional) + * @param \DateTime $startDate Mandatory if endDate is used. Starting date (YYYY-MM-DD) from which you want to fetch the list. Maximum time period that can be selected is one month. (optional) * @param \DateTime $endDate Mandatory if startDate is used. Ending date (YYYY-MM-DD) till which you want to fetch the list. Maximum time period that can be selected is one month. (optional) * * @throws \InvalidArgumentException @@ -3253,86 +2302,68 @@ class SMTPApi */ protected function getTransacEmailsListRequest($email = null, $templateId = null, $messageId = null, $startDate = null, $endDate = null) { - $resourcePath = '/smtp/emails'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - + $multipart = \false; // query params if ($email !== null) { - $queryParams['email'] = ObjectSerializer::toQueryValue($email); + $queryParams['email'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($email); } // query params if ($templateId !== null) { - $queryParams['templateId'] = ObjectSerializer::toQueryValue($templateId); + $queryParams['templateId'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($templateId); } // query params if ($messageId !== null) { - $queryParams['messageId'] = ObjectSerializer::toQueryValue($messageId); + $queryParams['messageId'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($messageId); } // query params if ($startDate !== null) { - $queryParams['startDate'] = ObjectSerializer::toQueryValue($startDate); + $queryParams['startDate'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($startDate); } // query params if ($endDate !== null) { - $queryParams['endDate'] = ObjectSerializer::toQueryValue($endDate); + $queryParams['endDate'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($endDate); } - - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -3343,27 +2374,14 @@ class SMTPApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation sendTemplate * @@ -3381,7 +2399,6 @@ class SMTPApi list($response) = $this->sendTemplateWithHttpInfo($templateId, $sendEmail); return $response; } - /** * Operation sendTemplateWithHttpInfo * @@ -3396,84 +2413,48 @@ class SMTPApi */ public function sendTemplateWithHttpInfo($templateId, $sendEmail) { - $returnType = '\SendinBlue\Client\Model\SendTemplateEmail'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendTemplateEmail'; $request = $this->sendTemplateRequest($templateId, $sendEmail); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 201: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\SendTemplateEmail', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendTemplateEmail', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\PostSendFailed', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\PostSendFailed', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation sendTemplateAsync * @@ -3487,14 +2468,10 @@ class SMTPApi */ public function sendTemplateAsync($templateId, $sendEmail) { - return $this->sendTemplateAsyncWithHttpInfo($templateId, $sendEmail) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->sendTemplateAsyncWithHttpInfo($templateId, $sendEmail)->then(function ($response) { + return $response[0]; + }); } - /** * Operation sendTemplateAsyncWithHttpInfo * @@ -3508,46 +2485,26 @@ class SMTPApi */ public function sendTemplateAsyncWithHttpInfo($templateId, $sendEmail) { - $returnType = '\SendinBlue\Client\Model\SendTemplateEmail'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendTemplateEmail'; $request = $this->sendTemplateRequest($templateId, $sendEmail); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'sendTemplate' * @@ -3560,88 +2517,62 @@ class SMTPApi protected function sendTemplateRequest($templateId, $sendEmail) { // verify the required parameter 'templateId' is set - if ($templateId === null || (is_array($templateId) && count($templateId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $templateId when calling sendTemplate' - ); + if ($templateId === null || \is_array($templateId) && \count($templateId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $templateId when calling sendTemplate'); } // verify the required parameter 'sendEmail' is set - if ($sendEmail === null || (is_array($sendEmail) && count($sendEmail) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $sendEmail when calling sendTemplate' - ); + if ($sendEmail === null || \is_array($sendEmail) && \count($sendEmail) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $sendEmail when calling sendTemplate'); } - $resourcePath = '/smtp/templates/{templateId}/send'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($templateId !== null) { - $resourcePath = str_replace( - '{' . 'templateId' . '}', - ObjectSerializer::toPathValue($templateId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'templateId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($templateId), $resourcePath); } - // body params $_tempBody = null; if (isset($sendEmail)) { $_tempBody = $sendEmail; } - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -3652,27 +2583,14 @@ class SMTPApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation sendTestTemplate * @@ -3689,7 +2607,6 @@ class SMTPApi { $this->sendTestTemplateWithHttpInfo($templateId, $sendTestEmail); } - /** * Operation sendTestTemplateWithHttpInfo * @@ -3706,60 +2623,32 @@ class SMTPApi { $returnType = ''; $request = $this->sendTestTemplateRequest($templateId, $sendTestEmail); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\PostSendFailed', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\PostSendFailed', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation sendTestTemplateAsync * @@ -3773,14 +2662,10 @@ class SMTPApi */ public function sendTestTemplateAsync($templateId, $sendTestEmail) { - return $this->sendTestTemplateAsyncWithHttpInfo($templateId, $sendTestEmail) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->sendTestTemplateAsyncWithHttpInfo($templateId, $sendTestEmail)->then(function ($response) { + return $response[0]; + }); } - /** * Operation sendTestTemplateAsyncWithHttpInfo * @@ -3796,30 +2681,14 @@ class SMTPApi { $returnType = ''; $request = $this->sendTestTemplateRequest($templateId, $sendTestEmail); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - return [null, $response->getStatusCode(), $response->getHeaders()]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'sendTestTemplate' * @@ -3832,88 +2701,62 @@ class SMTPApi protected function sendTestTemplateRequest($templateId, $sendTestEmail) { // verify the required parameter 'templateId' is set - if ($templateId === null || (is_array($templateId) && count($templateId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $templateId when calling sendTestTemplate' - ); + if ($templateId === null || \is_array($templateId) && \count($templateId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $templateId when calling sendTestTemplate'); } // verify the required parameter 'sendTestEmail' is set - if ($sendTestEmail === null || (is_array($sendTestEmail) && count($sendTestEmail) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $sendTestEmail when calling sendTestTemplate' - ); + if ($sendTestEmail === null || \is_array($sendTestEmail) && \count($sendTestEmail) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $sendTestEmail when calling sendTestTemplate'); } - $resourcePath = '/smtp/templates/{templateId}/sendTest'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($templateId !== null) { - $resourcePath = str_replace( - '{' . 'templateId' . '}', - ObjectSerializer::toPathValue($templateId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'templateId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($templateId), $resourcePath); } - // body params $_tempBody = null; if (isset($sendTestEmail)) { $_tempBody = $sendTestEmail; } - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -3924,27 +2767,14 @@ class SMTPApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation sendTransacEmail * @@ -3961,7 +2791,6 @@ class SMTPApi list($response) = $this->sendTransacEmailWithHttpInfo($sendSmtpEmail); return $response; } - /** * Operation sendTransacEmailWithHttpInfo * @@ -3975,76 +2804,44 @@ class SMTPApi */ public function sendTransacEmailWithHttpInfo($sendSmtpEmail) { - $returnType = '\SendinBlue\Client\Model\CreateSmtpEmail'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateSmtpEmail'; $request = $this->sendTransacEmailRequest($sendSmtpEmail); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 201: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\CreateSmtpEmail', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateSmtpEmail', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation sendTransacEmailAsync * @@ -4057,14 +2854,10 @@ class SMTPApi */ public function sendTransacEmailAsync($sendSmtpEmail) { - return $this->sendTransacEmailAsyncWithHttpInfo($sendSmtpEmail) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->sendTransacEmailAsyncWithHttpInfo($sendSmtpEmail)->then(function ($response) { + return $response[0]; + }); } - /** * Operation sendTransacEmailAsyncWithHttpInfo * @@ -4077,46 +2870,26 @@ class SMTPApi */ public function sendTransacEmailAsyncWithHttpInfo($sendSmtpEmail) { - $returnType = '\SendinBlue\Client\Model\CreateSmtpEmail'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateSmtpEmail'; $request = $this->sendTransacEmailRequest($sendSmtpEmail); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'sendTransacEmail' * @@ -4128,74 +2901,54 @@ class SMTPApi protected function sendTransacEmailRequest($sendSmtpEmail) { // verify the required parameter 'sendSmtpEmail' is set - if ($sendSmtpEmail === null || (is_array($sendSmtpEmail) && count($sendSmtpEmail) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $sendSmtpEmail when calling sendTransacEmail' - ); + if ($sendSmtpEmail === null || \is_array($sendSmtpEmail) && \count($sendSmtpEmail) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $sendSmtpEmail when calling sendTransacEmail'); } - $resourcePath = '/smtp/email'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - - + $multipart = \false; // body params $_tempBody = null; if (isset($sendSmtpEmail)) { $_tempBody = $sendSmtpEmail; } - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -4206,27 +2959,14 @@ class SMTPApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation smtpBlockedContactsEmailDelete * @@ -4242,7 +2982,6 @@ class SMTPApi { $this->smtpBlockedContactsEmailDeleteWithHttpInfo($email); } - /** * Operation smtpBlockedContactsEmailDeleteWithHttpInfo * @@ -4258,60 +2997,32 @@ class SMTPApi { $returnType = ''; $request = $this->smtpBlockedContactsEmailDeleteRequest($email); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation smtpBlockedContactsEmailDeleteAsync * @@ -4324,14 +3035,10 @@ class SMTPApi */ public function smtpBlockedContactsEmailDeleteAsync($email) { - return $this->smtpBlockedContactsEmailDeleteAsyncWithHttpInfo($email) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->smtpBlockedContactsEmailDeleteAsyncWithHttpInfo($email)->then(function ($response) { + return $response[0]; + }); } - /** * Operation smtpBlockedContactsEmailDeleteAsyncWithHttpInfo * @@ -4346,30 +3053,14 @@ class SMTPApi { $returnType = ''; $request = $this->smtpBlockedContactsEmailDeleteRequest($email); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - return [null, $response->getStatusCode(), $response->getHeaders()]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'smtpBlockedContactsEmailDelete' * @@ -4381,79 +3072,55 @@ class SMTPApi protected function smtpBlockedContactsEmailDeleteRequest($email) { // verify the required parameter 'email' is set - if ($email === null || (is_array($email) && count($email) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $email when calling smtpBlockedContactsEmailDelete' - ); + if ($email === null || \is_array($email) && \count($email) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $email when calling smtpBlockedContactsEmailDelete'); } - $resourcePath = '/smtp/blockedContacts/{email}'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($email !== null) { - $resourcePath = str_replace( - '{' . 'email' . '}', - ObjectSerializer::toPathValue($email), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'email' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($email), $resourcePath); } - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -4464,27 +3131,14 @@ class SMTPApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'DELETE', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('DELETE', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation smtpLogMessageIdDelete * @@ -4500,7 +3154,6 @@ class SMTPApi { $this->smtpLogMessageIdDeleteWithHttpInfo($messageId); } - /** * Operation smtpLogMessageIdDeleteWithHttpInfo * @@ -4516,60 +3169,32 @@ class SMTPApi { $returnType = ''; $request = $this->smtpLogMessageIdDeleteRequest($messageId); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation smtpLogMessageIdDeleteAsync * @@ -4582,14 +3207,10 @@ class SMTPApi */ public function smtpLogMessageIdDeleteAsync($messageId) { - return $this->smtpLogMessageIdDeleteAsyncWithHttpInfo($messageId) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->smtpLogMessageIdDeleteAsyncWithHttpInfo($messageId)->then(function ($response) { + return $response[0]; + }); } - /** * Operation smtpLogMessageIdDeleteAsyncWithHttpInfo * @@ -4604,30 +3225,14 @@ class SMTPApi { $returnType = ''; $request = $this->smtpLogMessageIdDeleteRequest($messageId); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - return [null, $response->getStatusCode(), $response->getHeaders()]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'smtpLogMessageIdDelete' * @@ -4639,79 +3244,55 @@ class SMTPApi protected function smtpLogMessageIdDeleteRequest($messageId) { // verify the required parameter 'messageId' is set - if ($messageId === null || (is_array($messageId) && count($messageId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $messageId when calling smtpLogMessageIdDelete' - ); + if ($messageId === null || \is_array($messageId) && \count($messageId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $messageId when calling smtpLogMessageIdDelete'); } - $resourcePath = '/smtp/log/{messageId}'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($messageId !== null) { - $resourcePath = str_replace( - '{' . 'messageId' . '}', - ObjectSerializer::toPathValue($messageId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'messageId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($messageId), $resourcePath); } - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -4722,31 +3303,18 @@ class SMTPApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'DELETE', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('DELETE', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation updateSmtpTemplate * - * Updates a transactional email templates + * Update an email template * * @param int $templateId id of the template (required) * @param \SendinBlue\Client\Model\UpdateSmtpTemplate $smtpTemplate values to update in transactional email template (required) @@ -4759,11 +3327,10 @@ class SMTPApi { $this->updateSmtpTemplateWithHttpInfo($templateId, $smtpTemplate); } - /** * Operation updateSmtpTemplateWithHttpInfo * - * Updates a transactional email templates + * Update an email template * * @param int $templateId id of the template (required) * @param \SendinBlue\Client\Model\UpdateSmtpTemplate $smtpTemplate values to update in transactional email template (required) @@ -4776,64 +3343,36 @@ class SMTPApi { $returnType = ''; $request = $this->updateSmtpTemplateRequest($templateId, $smtpTemplate); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation updateSmtpTemplateAsync * - * Updates a transactional email templates + * Update an email template * * @param int $templateId id of the template (required) * @param \SendinBlue\Client\Model\UpdateSmtpTemplate $smtpTemplate values to update in transactional email template (required) @@ -4843,18 +3382,14 @@ class SMTPApi */ public function updateSmtpTemplateAsync($templateId, $smtpTemplate) { - return $this->updateSmtpTemplateAsyncWithHttpInfo($templateId, $smtpTemplate) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->updateSmtpTemplateAsyncWithHttpInfo($templateId, $smtpTemplate)->then(function ($response) { + return $response[0]; + }); } - /** * Operation updateSmtpTemplateAsyncWithHttpInfo * - * Updates a transactional email templates + * Update an email template * * @param int $templateId id of the template (required) * @param \SendinBlue\Client\Model\UpdateSmtpTemplate $smtpTemplate values to update in transactional email template (required) @@ -4866,30 +3401,14 @@ class SMTPApi { $returnType = ''; $request = $this->updateSmtpTemplateRequest($templateId, $smtpTemplate); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - return [null, $response->getStatusCode(), $response->getHeaders()]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'updateSmtpTemplate' * @@ -4902,88 +3421,62 @@ class SMTPApi protected function updateSmtpTemplateRequest($templateId, $smtpTemplate) { // verify the required parameter 'templateId' is set - if ($templateId === null || (is_array($templateId) && count($templateId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $templateId when calling updateSmtpTemplate' - ); + if ($templateId === null || \is_array($templateId) && \count($templateId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $templateId when calling updateSmtpTemplate'); } // verify the required parameter 'smtpTemplate' is set - if ($smtpTemplate === null || (is_array($smtpTemplate) && count($smtpTemplate) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $smtpTemplate when calling updateSmtpTemplate' - ); + if ($smtpTemplate === null || \is_array($smtpTemplate) && \count($smtpTemplate) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $smtpTemplate when calling updateSmtpTemplate'); } - $resourcePath = '/smtp/templates/{templateId}'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($templateId !== null) { - $resourcePath = str_replace( - '{' . 'templateId' . '}', - ObjectSerializer::toPathValue($templateId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'templateId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($templateId), $resourcePath); } - // body params $_tempBody = null; if (isset($smtpTemplate)) { $_tempBody = $smtpTemplate; } - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -4994,27 +3487,14 @@ class SMTPApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'PUT', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('PUT', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Create http client option * @@ -5025,12 +3505,11 @@ class SMTPApi { $options = []; if ($this->config->getDebug()) { - $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); - if (!$options[RequestOptions::DEBUG]) { + $options[\WPMailSMTP\Vendor\GuzzleHttp\RequestOptions::DEBUG] = \fopen($this->config->getDebugFile(), 'a'); + if (!$options[\WPMailSMTP\Vendor\GuzzleHttp\RequestOptions::DEBUG]) { throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); } } - return $options; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/SendersApi.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/SendersApi.php similarity index 51% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/SendersApi.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/SendersApi.php index 4a2cde4..c703469 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/SendersApi.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/SendersApi.php @@ -1,4 +1,5 @@ client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); - $this->headerSelector = $selector ?: new HeaderSelector(); + public function __construct(\WPMailSMTP\Vendor\GuzzleHttp\ClientInterface $client = null, \WPMailSMTP\Vendor\SendinBlue\Client\Configuration $config = null, \WPMailSMTP\Vendor\SendinBlue\Client\HeaderSelector $selector = null) + { + $this->client = $client ?: new \WPMailSMTP\Vendor\GuzzleHttp\Client(); + $this->config = $config ?: new \WPMailSMTP\Vendor\SendinBlue\Client\Configuration(); + $this->headerSelector = $selector ?: new \WPMailSMTP\Vendor\SendinBlue\Client\HeaderSelector(); } - /** * @return Configuration */ @@ -86,7 +76,6 @@ class SendersApi { return $this->config; } - /** * Operation createSender * @@ -103,7 +92,6 @@ class SendersApi list($response) = $this->createSenderWithHttpInfo($sender); return $response; } - /** * Operation createSenderWithHttpInfo * @@ -117,76 +105,44 @@ class SendersApi */ public function createSenderWithHttpInfo($sender = null) { - $returnType = '\SendinBlue\Client\Model\CreateSenderModel'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateSenderModel'; $request = $this->createSenderRequest($sender); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 201: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\CreateSenderModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateSenderModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation createSenderAsync * @@ -199,14 +155,10 @@ class SendersApi */ public function createSenderAsync($sender = null) { - return $this->createSenderAsyncWithHttpInfo($sender) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->createSenderAsyncWithHttpInfo($sender)->then(function ($response) { + return $response[0]; + }); } - /** * Operation createSenderAsyncWithHttpInfo * @@ -219,46 +171,26 @@ class SendersApi */ public function createSenderAsyncWithHttpInfo($sender = null) { - $returnType = '\SendinBlue\Client\Model\CreateSenderModel'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateSenderModel'; $request = $this->createSenderRequest($sender); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'createSender' * @@ -269,69 +201,51 @@ class SendersApi */ protected function createSenderRequest($sender = null) { - $resourcePath = '/senders'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - - + $multipart = \false; // body params $_tempBody = null; if (isset($sender)) { $_tempBody = $sender; } - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -342,27 +256,14 @@ class SendersApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation deleteSender * @@ -378,7 +279,6 @@ class SendersApi { $this->deleteSenderWithHttpInfo($senderId); } - /** * Operation deleteSenderWithHttpInfo * @@ -394,60 +294,32 @@ class SendersApi { $returnType = ''; $request = $this->deleteSenderRequest($senderId); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation deleteSenderAsync * @@ -460,14 +332,10 @@ class SendersApi */ public function deleteSenderAsync($senderId) { - return $this->deleteSenderAsyncWithHttpInfo($senderId) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->deleteSenderAsyncWithHttpInfo($senderId)->then(function ($response) { + return $response[0]; + }); } - /** * Operation deleteSenderAsyncWithHttpInfo * @@ -482,30 +350,14 @@ class SendersApi { $returnType = ''; $request = $this->deleteSenderRequest($senderId); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - return [null, $response->getStatusCode(), $response->getHeaders()]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'deleteSender' * @@ -517,79 +369,55 @@ class SendersApi protected function deleteSenderRequest($senderId) { // verify the required parameter 'senderId' is set - if ($senderId === null || (is_array($senderId) && count($senderId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $senderId when calling deleteSender' - ); + if ($senderId === null || \is_array($senderId) && \count($senderId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $senderId when calling deleteSender'); } - $resourcePath = '/senders/{senderId}'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($senderId !== null) { - $resourcePath = str_replace( - '{' . 'senderId' . '}', - ObjectSerializer::toPathValue($senderId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'senderId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($senderId), $resourcePath); } - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -600,31 +428,18 @@ class SendersApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'DELETE', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('DELETE', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation getIps * - * Return all the dedicated IPs for your account + * Get all the dedicated IPs for your account * * * @throws \SendinBlue\Client\ApiException on non-2xx response @@ -636,11 +451,10 @@ class SendersApi list($response) = $this->getIpsWithHttpInfo(); return $response; } - /** * Operation getIpsWithHttpInfo * - * Return all the dedicated IPs for your account + * Get all the dedicated IPs for your account * * * @throws \SendinBlue\Client\ApiException on non-2xx response @@ -649,72 +463,44 @@ class SendersApi */ public function getIpsWithHttpInfo() { - $returnType = '\SendinBlue\Client\Model\GetIps'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetIps'; $request = $this->getIpsRequest(); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\GetIps', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetIps', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation getIpsAsync * - * Return all the dedicated IPs for your account + * Get all the dedicated IPs for your account * * * @throws \InvalidArgumentException @@ -722,18 +508,14 @@ class SendersApi */ public function getIpsAsync() { - return $this->getIpsAsyncWithHttpInfo() - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->getIpsAsyncWithHttpInfo()->then(function ($response) { + return $response[0]; + }); } - /** * Operation getIpsAsyncWithHttpInfo * - * Return all the dedicated IPs for your account + * Get all the dedicated IPs for your account * * * @throws \InvalidArgumentException @@ -741,46 +523,26 @@ class SendersApi */ public function getIpsAsyncWithHttpInfo() { - $returnType = '\SendinBlue\Client\Model\GetIps'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetIps'; $request = $this->getIpsRequest(); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'getIps' * @@ -790,66 +552,48 @@ class SendersApi */ protected function getIpsRequest() { - $resourcePath = '/senders/ips'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - - + $multipart = \false; // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -860,31 +604,18 @@ class SendersApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation getIpsFromSender * - * Return all the dedicated IPs for a sender + * Get all the dedicated IPs for a sender * * @param int $senderId Id of the sender (required) * @@ -897,11 +628,10 @@ class SendersApi list($response) = $this->getIpsFromSenderWithHttpInfo($senderId); return $response; } - /** * Operation getIpsFromSenderWithHttpInfo * - * Return all the dedicated IPs for a sender + * Get all the dedicated IPs for a sender * * @param int $senderId Id of the sender (required) * @@ -911,88 +641,52 @@ class SendersApi */ public function getIpsFromSenderWithHttpInfo($senderId) { - $returnType = '\SendinBlue\Client\Model\GetIpsFromSender'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetIpsFromSender'; $request = $this->getIpsFromSenderRequest($senderId); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\GetIpsFromSender', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetIpsFromSender', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation getIpsFromSenderAsync * - * Return all the dedicated IPs for a sender + * Get all the dedicated IPs for a sender * * @param int $senderId Id of the sender (required) * @@ -1001,18 +695,14 @@ class SendersApi */ public function getIpsFromSenderAsync($senderId) { - return $this->getIpsFromSenderAsyncWithHttpInfo($senderId) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->getIpsFromSenderAsyncWithHttpInfo($senderId)->then(function ($response) { + return $response[0]; + }); } - /** * Operation getIpsFromSenderAsyncWithHttpInfo * - * Return all the dedicated IPs for a sender + * Get all the dedicated IPs for a sender * * @param int $senderId Id of the sender (required) * @@ -1021,46 +711,26 @@ class SendersApi */ public function getIpsFromSenderAsyncWithHttpInfo($senderId) { - $returnType = '\SendinBlue\Client\Model\GetIpsFromSender'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetIpsFromSender'; $request = $this->getIpsFromSenderRequest($senderId); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'getIpsFromSender' * @@ -1072,79 +742,55 @@ class SendersApi protected function getIpsFromSenderRequest($senderId) { // verify the required parameter 'senderId' is set - if ($senderId === null || (is_array($senderId) && count($senderId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $senderId when calling getIpsFromSender' - ); + if ($senderId === null || \is_array($senderId) && \count($senderId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $senderId when calling getIpsFromSender'); } - $resourcePath = '/senders/{senderId}/ips'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($senderId !== null) { - $resourcePath = str_replace( - '{' . 'senderId' . '}', - ObjectSerializer::toPathValue($senderId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'senderId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($senderId), $resourcePath); } - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -1155,27 +801,14 @@ class SendersApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation getSenders * @@ -1193,7 +826,6 @@ class SendersApi list($response) = $this->getSendersWithHttpInfo($ip, $domain); return $response; } - /** * Operation getSendersWithHttpInfo * @@ -1208,76 +840,44 @@ class SendersApi */ public function getSendersWithHttpInfo($ip = null, $domain = null) { - $returnType = '\SendinBlue\Client\Model\GetSendersList'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSendersList'; $request = $this->getSendersRequest($ip, $domain); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\GetSendersList', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSendersList', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation getSendersAsync * @@ -1291,14 +891,10 @@ class SendersApi */ public function getSendersAsync($ip = null, $domain = null) { - return $this->getSendersAsyncWithHttpInfo($ip, $domain) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->getSendersAsyncWithHttpInfo($ip, $domain)->then(function ($response) { + return $response[0]; + }); } - /** * Operation getSendersAsyncWithHttpInfo * @@ -1312,46 +908,26 @@ class SendersApi */ public function getSendersAsyncWithHttpInfo($ip = null, $domain = null) { - $returnType = '\SendinBlue\Client\Model\GetSendersList'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSendersList'; $request = $this->getSendersRequest($ip, $domain); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'getSenders' * @@ -1363,74 +939,56 @@ class SendersApi */ protected function getSendersRequest($ip = null, $domain = null) { - $resourcePath = '/senders'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - + $multipart = \false; // query params if ($ip !== null) { - $queryParams['ip'] = ObjectSerializer::toQueryValue($ip); + $queryParams['ip'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($ip); } // query params if ($domain !== null) { - $queryParams['domain'] = ObjectSerializer::toQueryValue($domain); + $queryParams['domain'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($domain); } - - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -1441,27 +999,14 @@ class SendersApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation updateSender * @@ -1478,7 +1023,6 @@ class SendersApi { $this->updateSenderWithHttpInfo($senderId, $sender); } - /** * Operation updateSenderWithHttpInfo * @@ -1495,60 +1039,32 @@ class SendersApi { $returnType = ''; $request = $this->updateSenderRequest($senderId, $sender); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation updateSenderAsync * @@ -1562,14 +1078,10 @@ class SendersApi */ public function updateSenderAsync($senderId, $sender = null) { - return $this->updateSenderAsyncWithHttpInfo($senderId, $sender) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->updateSenderAsyncWithHttpInfo($senderId, $sender)->then(function ($response) { + return $response[0]; + }); } - /** * Operation updateSenderAsyncWithHttpInfo * @@ -1585,30 +1097,14 @@ class SendersApi { $returnType = ''; $request = $this->updateSenderRequest($senderId, $sender); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - return [null, $response->getStatusCode(), $response->getHeaders()]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'updateSender' * @@ -1621,82 +1117,58 @@ class SendersApi protected function updateSenderRequest($senderId, $sender = null) { // verify the required parameter 'senderId' is set - if ($senderId === null || (is_array($senderId) && count($senderId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $senderId when calling updateSender' - ); + if ($senderId === null || \is_array($senderId) && \count($senderId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $senderId when calling updateSender'); } - $resourcePath = '/senders/{senderId}'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($senderId !== null) { - $resourcePath = str_replace( - '{' . 'senderId' . '}', - ObjectSerializer::toPathValue($senderId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'senderId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($senderId), $resourcePath); } - // body params $_tempBody = null; if (isset($sender)) { $_tempBody = $sender; } - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -1707,27 +1179,14 @@ class SendersApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'PUT', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('PUT', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Create http client option * @@ -1738,12 +1197,11 @@ class SendersApi { $options = []; if ($this->config->getDebug()) { - $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); - if (!$options[RequestOptions::DEBUG]) { + $options[\WPMailSMTP\Vendor\GuzzleHttp\RequestOptions::DEBUG] = \fopen($this->config->getDebugFile(), 'a'); + if (!$options[\WPMailSMTP\Vendor\GuzzleHttp\RequestOptions::DEBUG]) { throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); } } - return $options; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/TransactionalSMSApi.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/TransactionalSMSApi.php similarity index 59% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/TransactionalSMSApi.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/TransactionalSMSApi.php index b316d6d..e1cda4d 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/TransactionalSMSApi.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/TransactionalSMSApi.php @@ -1,4 +1,5 @@ client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); - $this->headerSelector = $selector ?: new HeaderSelector(); + public function __construct(\WPMailSMTP\Vendor\GuzzleHttp\ClientInterface $client = null, \WPMailSMTP\Vendor\SendinBlue\Client\Configuration $config = null, \WPMailSMTP\Vendor\SendinBlue\Client\HeaderSelector $selector = null) + { + $this->client = $client ?: new \WPMailSMTP\Vendor\GuzzleHttp\Client(); + $this->config = $config ?: new \WPMailSMTP\Vendor\SendinBlue\Client\Configuration(); + $this->headerSelector = $selector ?: new \WPMailSMTP\Vendor\SendinBlue\Client\HeaderSelector(); } - /** * @return Configuration */ @@ -86,11 +76,10 @@ class TransactionalSMSApi { return $this->config; } - /** * Operation getSmsEvents * - * Get all the SMS activity (unaggregated events) + * Get all your SMS activity (unaggregated events) * * @param int $limit Number of documents per page (optional, default to 50) * @param string $startDate Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report (optional) @@ -110,11 +99,10 @@ class TransactionalSMSApi list($response) = $this->getSmsEventsWithHttpInfo($limit, $startDate, $endDate, $offset, $days, $phoneNumber, $event, $tags); return $response; } - /** * Operation getSmsEventsWithHttpInfo * - * Get all the SMS activity (unaggregated events) + * Get all your SMS activity (unaggregated events) * * @param int $limit Number of documents per page (optional, default to 50) * @param string $startDate Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report (optional) @@ -131,80 +119,48 @@ class TransactionalSMSApi */ public function getSmsEventsWithHttpInfo($limit = '50', $startDate = null, $endDate = null, $offset = '0', $days = null, $phoneNumber = null, $event = null, $tags = null) { - $returnType = '\SendinBlue\Client\Model\GetSmsEventReport'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmsEventReport'; $request = $this->getSmsEventsRequest($limit, $startDate, $endDate, $offset, $days, $phoneNumber, $event, $tags); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\GetSmsEventReport', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmsEventReport', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation getSmsEventsAsync * - * Get all the SMS activity (unaggregated events) + * Get all your SMS activity (unaggregated events) * * @param int $limit Number of documents per page (optional, default to 50) * @param string $startDate Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report (optional) @@ -220,18 +176,14 @@ class TransactionalSMSApi */ public function getSmsEventsAsync($limit = '50', $startDate = null, $endDate = null, $offset = '0', $days = null, $phoneNumber = null, $event = null, $tags = null) { - return $this->getSmsEventsAsyncWithHttpInfo($limit, $startDate, $endDate, $offset, $days, $phoneNumber, $event, $tags) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->getSmsEventsAsyncWithHttpInfo($limit, $startDate, $endDate, $offset, $days, $phoneNumber, $event, $tags)->then(function ($response) { + return $response[0]; + }); } - /** * Operation getSmsEventsAsyncWithHttpInfo * - * Get all the SMS activity (unaggregated events) + * Get all your SMS activity (unaggregated events) * * @param int $limit Number of documents per page (optional, default to 50) * @param string $startDate Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report (optional) @@ -247,46 +199,26 @@ class TransactionalSMSApi */ public function getSmsEventsAsyncWithHttpInfo($limit = '50', $startDate = null, $endDate = null, $offset = '0', $days = null, $phoneNumber = null, $event = null, $tags = null) { - $returnType = '\SendinBlue\Client\Model\GetSmsEventReport'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmsEventReport'; $request = $this->getSmsEventsRequest($limit, $startDate, $endDate, $offset, $days, $phoneNumber, $event, $tags); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'getSmsEvents' * @@ -307,99 +239,80 @@ class TransactionalSMSApi if ($limit !== null && $limit > 100) { throw new \InvalidArgumentException('invalid value for "$limit" when calling TransactionalSMSApi.getSmsEvents, must be smaller than or equal to 100.'); } - - $resourcePath = '/transactionalSMS/statistics/events'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - + $multipart = \false; // query params if ($limit !== null) { - $queryParams['limit'] = ObjectSerializer::toQueryValue($limit); + $queryParams['limit'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($limit); } // query params if ($startDate !== null) { - $queryParams['startDate'] = ObjectSerializer::toQueryValue($startDate); + $queryParams['startDate'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($startDate); } // query params if ($endDate !== null) { - $queryParams['endDate'] = ObjectSerializer::toQueryValue($endDate); + $queryParams['endDate'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($endDate); } // query params if ($offset !== null) { - $queryParams['offset'] = ObjectSerializer::toQueryValue($offset); + $queryParams['offset'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($offset); } // query params if ($days !== null) { - $queryParams['days'] = ObjectSerializer::toQueryValue($days); + $queryParams['days'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($days); } // query params if ($phoneNumber !== null) { - $queryParams['phoneNumber'] = ObjectSerializer::toQueryValue($phoneNumber); + $queryParams['phoneNumber'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($phoneNumber); } // query params if ($event !== null) { - $queryParams['event'] = ObjectSerializer::toQueryValue($event); + $queryParams['event'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($event); } // query params if ($tags !== null) { - $queryParams['tags'] = ObjectSerializer::toQueryValue($tags); + $queryParams['tags'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($tags); } - - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -410,27 +323,14 @@ class TransactionalSMSApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation getTransacAggregatedSmsReport * @@ -450,7 +350,6 @@ class TransactionalSMSApi list($response) = $this->getTransacAggregatedSmsReportWithHttpInfo($startDate, $endDate, $days, $tag); return $response; } - /** * Operation getTransacAggregatedSmsReportWithHttpInfo * @@ -467,76 +366,44 @@ class TransactionalSMSApi */ public function getTransacAggregatedSmsReportWithHttpInfo($startDate = null, $endDate = null, $days = null, $tag = null) { - $returnType = '\SendinBlue\Client\Model\GetTransacAggregatedSmsReport'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacAggregatedSmsReport'; $request = $this->getTransacAggregatedSmsReportRequest($startDate, $endDate, $days, $tag); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\GetTransacAggregatedSmsReport', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacAggregatedSmsReport', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation getTransacAggregatedSmsReportAsync * @@ -552,14 +419,10 @@ class TransactionalSMSApi */ public function getTransacAggregatedSmsReportAsync($startDate = null, $endDate = null, $days = null, $tag = null) { - return $this->getTransacAggregatedSmsReportAsyncWithHttpInfo($startDate, $endDate, $days, $tag) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->getTransacAggregatedSmsReportAsyncWithHttpInfo($startDate, $endDate, $days, $tag)->then(function ($response) { + return $response[0]; + }); } - /** * Operation getTransacAggregatedSmsReportAsyncWithHttpInfo * @@ -575,46 +438,26 @@ class TransactionalSMSApi */ public function getTransacAggregatedSmsReportAsyncWithHttpInfo($startDate = null, $endDate = null, $days = null, $tag = null) { - $returnType = '\SendinBlue\Client\Model\GetTransacAggregatedSmsReport'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacAggregatedSmsReport'; $request = $this->getTransacAggregatedSmsReportRequest($startDate, $endDate, $days, $tag); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'getTransacAggregatedSmsReport' * @@ -628,82 +471,64 @@ class TransactionalSMSApi */ protected function getTransacAggregatedSmsReportRequest($startDate = null, $endDate = null, $days = null, $tag = null) { - $resourcePath = '/transactionalSMS/statistics/aggregatedReport'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - + $multipart = \false; // query params if ($startDate !== null) { - $queryParams['startDate'] = ObjectSerializer::toQueryValue($startDate); + $queryParams['startDate'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($startDate); } // query params if ($endDate !== null) { - $queryParams['endDate'] = ObjectSerializer::toQueryValue($endDate); + $queryParams['endDate'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($endDate); } // query params if ($days !== null) { - $queryParams['days'] = ObjectSerializer::toQueryValue($days); + $queryParams['days'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($days); } // query params if ($tag !== null) { - $queryParams['tag'] = ObjectSerializer::toQueryValue($tag); + $queryParams['tag'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($tag); } - - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -714,27 +539,14 @@ class TransactionalSMSApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation getTransacSmsReport * @@ -754,7 +566,6 @@ class TransactionalSMSApi list($response) = $this->getTransacSmsReportWithHttpInfo($startDate, $endDate, $days, $tag); return $response; } - /** * Operation getTransacSmsReportWithHttpInfo * @@ -771,76 +582,44 @@ class TransactionalSMSApi */ public function getTransacSmsReportWithHttpInfo($startDate = null, $endDate = null, $days = null, $tag = null) { - $returnType = '\SendinBlue\Client\Model\GetTransacSmsReport'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacSmsReport'; $request = $this->getTransacSmsReportRequest($startDate, $endDate, $days, $tag); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\GetTransacSmsReport', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacSmsReport', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation getTransacSmsReportAsync * @@ -856,14 +635,10 @@ class TransactionalSMSApi */ public function getTransacSmsReportAsync($startDate = null, $endDate = null, $days = null, $tag = null) { - return $this->getTransacSmsReportAsyncWithHttpInfo($startDate, $endDate, $days, $tag) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->getTransacSmsReportAsyncWithHttpInfo($startDate, $endDate, $days, $tag)->then(function ($response) { + return $response[0]; + }); } - /** * Operation getTransacSmsReportAsyncWithHttpInfo * @@ -879,46 +654,26 @@ class TransactionalSMSApi */ public function getTransacSmsReportAsyncWithHttpInfo($startDate = null, $endDate = null, $days = null, $tag = null) { - $returnType = '\SendinBlue\Client\Model\GetTransacSmsReport'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacSmsReport'; $request = $this->getTransacSmsReportRequest($startDate, $endDate, $days, $tag); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'getTransacSmsReport' * @@ -932,82 +687,64 @@ class TransactionalSMSApi */ protected function getTransacSmsReportRequest($startDate = null, $endDate = null, $days = null, $tag = null) { - $resourcePath = '/transactionalSMS/statistics/reports'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - + $multipart = \false; // query params if ($startDate !== null) { - $queryParams['startDate'] = ObjectSerializer::toQueryValue($startDate); + $queryParams['startDate'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($startDate); } // query params if ($endDate !== null) { - $queryParams['endDate'] = ObjectSerializer::toQueryValue($endDate); + $queryParams['endDate'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($endDate); } // query params if ($days !== null) { - $queryParams['days'] = ObjectSerializer::toQueryValue($days); + $queryParams['days'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($days); } // query params if ($tag !== null) { - $queryParams['tag'] = ObjectSerializer::toQueryValue($tag); + $queryParams['tag'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($tag); } - - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -1018,31 +755,18 @@ class TransactionalSMSApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation sendTransacSms * - * Send the SMS campaign to the specified mobile number + * Send SMS message to a mobile number * * @param \SendinBlue\Client\Model\SendTransacSms $sendTransacSms Values to send a transactional SMS (required) * @@ -1055,11 +779,10 @@ class TransactionalSMSApi list($response) = $this->sendTransacSmsWithHttpInfo($sendTransacSms); return $response; } - /** * Operation sendTransacSmsWithHttpInfo * - * Send the SMS campaign to the specified mobile number + * Send SMS message to a mobile number * * @param \SendinBlue\Client\Model\SendTransacSms $sendTransacSms Values to send a transactional SMS (required) * @@ -1069,88 +792,52 @@ class TransactionalSMSApi */ public function sendTransacSmsWithHttpInfo($sendTransacSms) { - $returnType = '\SendinBlue\Client\Model\SendSms'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendSms'; $request = $this->sendTransacSmsRequest($sendTransacSms); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 201: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\SendSms', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendSms', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 402: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation sendTransacSmsAsync * - * Send the SMS campaign to the specified mobile number + * Send SMS message to a mobile number * * @param \SendinBlue\Client\Model\SendTransacSms $sendTransacSms Values to send a transactional SMS (required) * @@ -1159,18 +846,14 @@ class TransactionalSMSApi */ public function sendTransacSmsAsync($sendTransacSms) { - return $this->sendTransacSmsAsyncWithHttpInfo($sendTransacSms) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->sendTransacSmsAsyncWithHttpInfo($sendTransacSms)->then(function ($response) { + return $response[0]; + }); } - /** * Operation sendTransacSmsAsyncWithHttpInfo * - * Send the SMS campaign to the specified mobile number + * Send SMS message to a mobile number * * @param \SendinBlue\Client\Model\SendTransacSms $sendTransacSms Values to send a transactional SMS (required) * @@ -1179,46 +862,26 @@ class TransactionalSMSApi */ public function sendTransacSmsAsyncWithHttpInfo($sendTransacSms) { - $returnType = '\SendinBlue\Client\Model\SendSms'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendSms'; $request = $this->sendTransacSmsRequest($sendTransacSms); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'sendTransacSms' * @@ -1230,74 +893,54 @@ class TransactionalSMSApi protected function sendTransacSmsRequest($sendTransacSms) { // verify the required parameter 'sendTransacSms' is set - if ($sendTransacSms === null || (is_array($sendTransacSms) && count($sendTransacSms) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $sendTransacSms when calling sendTransacSms' - ); + if ($sendTransacSms === null || \is_array($sendTransacSms) && \count($sendTransacSms) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $sendTransacSms when calling sendTransacSms'); } - $resourcePath = '/transactionalSMS/sms'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - - + $multipart = \false; // body params $_tempBody = null; if (isset($sendTransacSms)) { $_tempBody = $sendTransacSms; } - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -1308,27 +951,14 @@ class TransactionalSMSApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Create http client option * @@ -1339,12 +969,11 @@ class TransactionalSMSApi { $options = []; if ($this->config->getDebug()) { - $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); - if (!$options[RequestOptions::DEBUG]) { + $options[\WPMailSMTP\Vendor\GuzzleHttp\RequestOptions::DEBUG] = \fopen($this->config->getDebugFile(), 'a'); + if (!$options[\WPMailSMTP\Vendor\GuzzleHttp\RequestOptions::DEBUG]) { throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); } } - return $options; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/WebhooksApi.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/WebhooksApi.php similarity index 52% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/WebhooksApi.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/WebhooksApi.php index b345370..07401a5 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Api/WebhooksApi.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Api/WebhooksApi.php @@ -1,4 +1,5 @@ client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); - $this->headerSelector = $selector ?: new HeaderSelector(); + public function __construct(\WPMailSMTP\Vendor\GuzzleHttp\ClientInterface $client = null, \WPMailSMTP\Vendor\SendinBlue\Client\Configuration $config = null, \WPMailSMTP\Vendor\SendinBlue\Client\HeaderSelector $selector = null) + { + $this->client = $client ?: new \WPMailSMTP\Vendor\GuzzleHttp\Client(); + $this->config = $config ?: new \WPMailSMTP\Vendor\SendinBlue\Client\Configuration(); + $this->headerSelector = $selector ?: new \WPMailSMTP\Vendor\SendinBlue\Client\HeaderSelector(); } - /** * @return Configuration */ @@ -86,7 +76,6 @@ class WebhooksApi { return $this->config; } - /** * Operation createWebhook * @@ -103,7 +92,6 @@ class WebhooksApi list($response) = $this->createWebhookWithHttpInfo($createWebhook); return $response; } - /** * Operation createWebhookWithHttpInfo * @@ -117,76 +105,44 @@ class WebhooksApi */ public function createWebhookWithHttpInfo($createWebhook) { - $returnType = '\SendinBlue\Client\Model\CreateModel'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateModel'; $request = $this->createWebhookRequest($createWebhook); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 201: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\CreateModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation createWebhookAsync * @@ -199,14 +155,10 @@ class WebhooksApi */ public function createWebhookAsync($createWebhook) { - return $this->createWebhookAsyncWithHttpInfo($createWebhook) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->createWebhookAsyncWithHttpInfo($createWebhook)->then(function ($response) { + return $response[0]; + }); } - /** * Operation createWebhookAsyncWithHttpInfo * @@ -219,46 +171,26 @@ class WebhooksApi */ public function createWebhookAsyncWithHttpInfo($createWebhook) { - $returnType = '\SendinBlue\Client\Model\CreateModel'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateModel'; $request = $this->createWebhookRequest($createWebhook); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'createWebhook' * @@ -270,74 +202,54 @@ class WebhooksApi protected function createWebhookRequest($createWebhook) { // verify the required parameter 'createWebhook' is set - if ($createWebhook === null || (is_array($createWebhook) && count($createWebhook) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $createWebhook when calling createWebhook' - ); + if ($createWebhook === null || \is_array($createWebhook) && \count($createWebhook) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $createWebhook when calling createWebhook'); } - $resourcePath = '/webhooks'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - - + $multipart = \false; // body params $_tempBody = null; if (isset($createWebhook)) { $_tempBody = $createWebhook; } - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -348,27 +260,14 @@ class WebhooksApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'POST', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation deleteWebhook * @@ -384,7 +283,6 @@ class WebhooksApi { $this->deleteWebhookWithHttpInfo($webhookId); } - /** * Operation deleteWebhookWithHttpInfo * @@ -400,60 +298,32 @@ class WebhooksApi { $returnType = ''; $request = $this->deleteWebhookRequest($webhookId); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation deleteWebhookAsync * @@ -466,14 +336,10 @@ class WebhooksApi */ public function deleteWebhookAsync($webhookId) { - return $this->deleteWebhookAsyncWithHttpInfo($webhookId) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->deleteWebhookAsyncWithHttpInfo($webhookId)->then(function ($response) { + return $response[0]; + }); } - /** * Operation deleteWebhookAsyncWithHttpInfo * @@ -488,30 +354,14 @@ class WebhooksApi { $returnType = ''; $request = $this->deleteWebhookRequest($webhookId); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - return [null, $response->getStatusCode(), $response->getHeaders()]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'deleteWebhook' * @@ -523,79 +373,55 @@ class WebhooksApi protected function deleteWebhookRequest($webhookId) { // verify the required parameter 'webhookId' is set - if ($webhookId === null || (is_array($webhookId) && count($webhookId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $webhookId when calling deleteWebhook' - ); + if ($webhookId === null || \is_array($webhookId) && \count($webhookId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $webhookId when calling deleteWebhook'); } - $resourcePath = '/webhooks/{webhookId}'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($webhookId !== null) { - $resourcePath = str_replace( - '{' . 'webhookId' . '}', - ObjectSerializer::toPathValue($webhookId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'webhookId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($webhookId), $resourcePath); } - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -606,27 +432,14 @@ class WebhooksApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'DELETE', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('DELETE', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation getWebhook * @@ -643,7 +456,6 @@ class WebhooksApi list($response) = $this->getWebhookWithHttpInfo($webhookId); return $response; } - /** * Operation getWebhookWithHttpInfo * @@ -657,84 +469,48 @@ class WebhooksApi */ public function getWebhookWithHttpInfo($webhookId) { - $returnType = '\SendinBlue\Client\Model\GetWebhook'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetWebhook'; $request = $this->getWebhookRequest($webhookId); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\GetWebhook', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetWebhook', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation getWebhookAsync * @@ -747,14 +523,10 @@ class WebhooksApi */ public function getWebhookAsync($webhookId) { - return $this->getWebhookAsyncWithHttpInfo($webhookId) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->getWebhookAsyncWithHttpInfo($webhookId)->then(function ($response) { + return $response[0]; + }); } - /** * Operation getWebhookAsyncWithHttpInfo * @@ -767,46 +539,26 @@ class WebhooksApi */ public function getWebhookAsyncWithHttpInfo($webhookId) { - $returnType = '\SendinBlue\Client\Model\GetWebhook'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetWebhook'; $request = $this->getWebhookRequest($webhookId); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'getWebhook' * @@ -818,79 +570,55 @@ class WebhooksApi protected function getWebhookRequest($webhookId) { // verify the required parameter 'webhookId' is set - if ($webhookId === null || (is_array($webhookId) && count($webhookId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $webhookId when calling getWebhook' - ); + if ($webhookId === null || \is_array($webhookId) && \count($webhookId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $webhookId when calling getWebhook'); } - $resourcePath = '/webhooks/{webhookId}'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($webhookId !== null) { - $resourcePath = str_replace( - '{' . 'webhookId' . '}', - ObjectSerializer::toPathValue($webhookId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'webhookId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($webhookId), $resourcePath); } - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -901,27 +629,14 @@ class WebhooksApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation getWebhooks * @@ -938,7 +653,6 @@ class WebhooksApi list($response) = $this->getWebhooksWithHttpInfo($type); return $response; } - /** * Operation getWebhooksWithHttpInfo * @@ -952,76 +666,44 @@ class WebhooksApi */ public function getWebhooksWithHttpInfo($type = 'transactional') { - $returnType = '\SendinBlue\Client\Model\GetWebhooks'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetWebhooks'; $request = $this->getWebhooksRequest($type); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer } else { $content = $responseBody->getContents(); if ($returnType !== 'string') { - $content = json_decode($content); + $content = \json_decode($content); } } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - - } catch (ApiException $e) { + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\GetWebhooks', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetWebhooks', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation getWebhooksAsync * @@ -1034,14 +716,10 @@ class WebhooksApi */ public function getWebhooksAsync($type = 'transactional') { - return $this->getWebhooksAsyncWithHttpInfo($type) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->getWebhooksAsyncWithHttpInfo($type)->then(function ($response) { + return $response[0]; + }); } - /** * Operation getWebhooksAsyncWithHttpInfo * @@ -1054,46 +732,26 @@ class WebhooksApi */ public function getWebhooksAsyncWithHttpInfo($type = 'transactional') { - $returnType = '\SendinBlue\Client\Model\GetWebhooks'; + $returnType = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetWebhooks'; $request = $this->getWebhooksRequest($type); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - $responseBody = $response->getBody(); - if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer - } else { - $content = $responseBody->getContents(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\\SplFileObject') { + $content = $responseBody; + //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = \json_decode($content); } - ); + } + return [\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($content, $returnType, []), $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'getWebhooks' * @@ -1104,70 +762,52 @@ class WebhooksApi */ protected function getWebhooksRequest($type = 'transactional') { - $resourcePath = '/webhooks'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - + $multipart = \false; // query params if ($type !== null) { - $queryParams['type'] = ObjectSerializer::toQueryValue($type); + $queryParams['type'] = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toQueryValue($type); } - - // body params $_tempBody = null; - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -1178,27 +818,14 @@ class WebhooksApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'GET', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Operation updateWebhook * @@ -1215,7 +842,6 @@ class WebhooksApi { $this->updateWebhookWithHttpInfo($webhookId, $updateWebhook); } - /** * Operation updateWebhookWithHttpInfo * @@ -1232,60 +858,32 @@ class WebhooksApi { $returnType = ''; $request = $this->updateWebhookRequest($webhookId, $updateWebhook); - try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); - } catch (RequestException $e) { - throw new ApiException( - "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), - $e->getResponse() ? $e->getResponse()->getHeaders() : null, - $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null - ); + } catch (\WPMailSMTP\Vendor\GuzzleHttp\Exception\RequestException $e) { + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException("[{$e->getCode()}] {$e->getMessage()}", $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null); } - $statusCode = $response->getStatusCode(); - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $request->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); } - return [null, $statusCode, $response->getHeaders()]; - - } catch (ApiException $e) { + } catch (\WPMailSMTP\Vendor\SendinBlue\Client\ApiException $e) { switch ($e->getCode()) { case 400: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; case 404: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\SendinBlue\Client\Model\ErrorModel', - $e->getResponseHeaders() - ); + $data = \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::deserialize($e->getResponseBody(), 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\ErrorModel', $e->getResponseHeaders()); $e->setResponseObject($data); break; } throw $e; } } - /** * Operation updateWebhookAsync * @@ -1299,14 +897,10 @@ class WebhooksApi */ public function updateWebhookAsync($webhookId, $updateWebhook) { - return $this->updateWebhookAsyncWithHttpInfo($webhookId, $updateWebhook) - ->then( - function ($response) { - return $response[0]; - } - ); + return $this->updateWebhookAsyncWithHttpInfo($webhookId, $updateWebhook)->then(function ($response) { + return $response[0]; + }); } - /** * Operation updateWebhookAsyncWithHttpInfo * @@ -1322,30 +916,14 @@ class WebhooksApi { $returnType = ''; $request = $this->updateWebhookRequest($webhookId, $updateWebhook); - - return $this->client - ->sendAsync($request, $this->createHttpClientOption()) - ->then( - function ($response) use ($returnType) { - return [null, $response->getStatusCode(), $response->getHeaders()]; - }, - function ($exception) { - $response = $exception->getResponse(); - $statusCode = $response->getStatusCode(); - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - $exception->getRequest()->getUri() - ), - $statusCode, - $response->getHeaders(), - $response->getBody() - ); - } - ); + return $this->client->sendAsync($request, $this->createHttpClientOption())->then(function ($response) use($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new \WPMailSMTP\Vendor\SendinBlue\Client\ApiException(\sprintf('[%d] Error connecting to the API (%s)', $statusCode, $exception->getRequest()->getUri()), $statusCode, $response->getHeaders(), $response->getBody()); + }); } - /** * Create request for operation 'updateWebhook' * @@ -1358,88 +936,62 @@ class WebhooksApi protected function updateWebhookRequest($webhookId, $updateWebhook) { // verify the required parameter 'webhookId' is set - if ($webhookId === null || (is_array($webhookId) && count($webhookId) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $webhookId when calling updateWebhook' - ); + if ($webhookId === null || \is_array($webhookId) && \count($webhookId) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $webhookId when calling updateWebhook'); } // verify the required parameter 'updateWebhook' is set - if ($updateWebhook === null || (is_array($updateWebhook) && count($updateWebhook) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $updateWebhook when calling updateWebhook' - ); + if ($updateWebhook === null || \is_array($updateWebhook) && \count($updateWebhook) === 0) { + throw new \InvalidArgumentException('Missing the required parameter $updateWebhook when calling updateWebhook'); } - $resourcePath = '/webhooks/{webhookId}'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; - $multipart = false; - - + $multipart = \false; // path params if ($webhookId !== null) { - $resourcePath = str_replace( - '{' . 'webhookId' . '}', - ObjectSerializer::toPathValue($webhookId), - $resourcePath - ); + $resourcePath = \str_replace('{' . 'webhookId' . '}', \WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::toPathValue($webhookId), $resourcePath); } - // body params $_tempBody = null; if (isset($updateWebhook)) { $_tempBody = $updateWebhook; } - if ($multipart) { - $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json'] - ); + $headers = $this->headerSelector->selectHeadersForMultipart(['application/json']); } else { - $headers = $this->headerSelector->selectHeaders( - ['application/json'], - ['application/json'] - ); + $headers = $this->headerSelector->selectHeaders(['application/json'], ['application/json']); } - // for model (json/xml) if (isset($_tempBody)) { // $_tempBody is the method argument, if present $httpBody = $_tempBody; - - if($headers['Content-Type'] === 'application/json') { + if ($headers['Content-Type'] === 'application/json') { // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($httpBody); } // array has no __toString(), so we should encode it manually - if(is_array($httpBody)) { - $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody)); + if (\is_array($httpBody)) { + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($httpBody)); } } - } elseif (count($formParams) > 0) { + } elseif (\count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { - $multipartContents[] = [ - 'name' => $formParamName, - 'contents' => $formParamValue - ]; + $multipartContents[] = ['name' => $formParamName, 'contents' => $formParamValue]; } // for HTTP post (form) - $httpBody = new MultipartStream($multipartContents); - + $httpBody = new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\MultipartStream($multipartContents); } elseif ($headers['Content-Type'] === 'application/json') { - $httpBody = \GuzzleHttp\json_encode($formParams); - + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\json_encode($formParams); } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($formParams); } } - // this endpoint requires API key authentication $apiKey = $this->config->getApiKeyWithPrefix('api-key'); if ($apiKey !== null) { @@ -1450,27 +1002,14 @@ class WebhooksApi if ($apiKey !== null) { $headers['partner-key'] = $apiKey; } - $defaultHeaders = []; if ($this->config->getUserAgent()) { $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); } - - $headers = array_merge( - $defaultHeaders, - $headerParams, - $headers - ); - - $query = \GuzzleHttp\Psr7\build_query($queryParams); - return new Request( - 'PUT', - $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), - $headers, - $httpBody - ); + $headers = \array_merge($defaultHeaders, $headerParams, $headers); + $query = \WPMailSMTP\Vendor\GuzzleHttp\Psr7\build_query($queryParams); + return new \WPMailSMTP\Vendor\GuzzleHttp\Psr7\Request('PUT', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody); } - /** * Create http client option * @@ -1481,12 +1020,11 @@ class WebhooksApi { $options = []; if ($this->config->getDebug()) { - $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); - if (!$options[RequestOptions::DEBUG]) { + $options[\WPMailSMTP\Vendor\GuzzleHttp\RequestOptions::DEBUG] = \fopen($this->config->getDebugFile(), 'a'); + if (!$options[\WPMailSMTP\Vendor\GuzzleHttp\RequestOptions::DEBUG]) { throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); } } - return $options; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/ApiException.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/ApiException.php similarity index 97% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/ApiException.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/ApiException.php index f9783cc..4228cda 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/ApiException.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/ApiException.php @@ -1,4 +1,5 @@ responseHeaders = $responseHeaders; $this->responseBody = $responseBody; } - /** * Gets the HTTP response header * @@ -86,7 +78,6 @@ class ApiException extends Exception { return $this->responseHeaders; } - /** * Gets the HTTP body of the server response either as Json or string * @@ -96,7 +87,6 @@ class ApiException extends Exception { return $this->responseBody; } - /** * Sets the deseralized response object (during deserialization) * @@ -108,7 +98,6 @@ class ApiException extends Exception { $this->responseObject = $obj; } - /** * Gets the deseralized response object (during deserialization) * diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Configuration.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Configuration.php similarity index 93% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Configuration.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Configuration.php index f99275f..0945abf 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Configuration.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Configuration.php @@ -1,4 +1,5 @@ tempFolderPath = sys_get_temp_dir(); + $this->tempFolderPath = \sys_get_temp_dir(); } - /** * Sets API key * @@ -132,7 +118,6 @@ class Configuration $this->apiKeys[$apiKeyIdentifier] = $key; return $this; } - /** * Gets API key * @@ -144,7 +129,6 @@ class Configuration { return isset($this->apiKeys[$apiKeyIdentifier]) ? $this->apiKeys[$apiKeyIdentifier] : null; } - /** * Sets the prefix for API key (e.g. Bearer) * @@ -158,7 +142,6 @@ class Configuration $this->apiKeyPrefixes[$apiKeyIdentifier] = $prefix; return $this; } - /** * Gets API key prefix * @@ -170,7 +153,6 @@ class Configuration { return isset($this->apiKeyPrefixes[$apiKeyIdentifier]) ? $this->apiKeyPrefixes[$apiKeyIdentifier] : null; } - /** * Sets the access token for OAuth * @@ -183,7 +165,6 @@ class Configuration $this->accessToken = $accessToken; return $this; } - /** * Gets the access token for OAuth * @@ -193,7 +174,6 @@ class Configuration { return $this->accessToken; } - /** * Sets the username for HTTP basic authentication * @@ -206,7 +186,6 @@ class Configuration $this->username = $username; return $this; } - /** * Gets the username for HTTP basic authentication * @@ -216,7 +195,6 @@ class Configuration { return $this->username; } - /** * Sets the password for HTTP basic authentication * @@ -229,7 +207,6 @@ class Configuration $this->password = $password; return $this; } - /** * Gets the password for HTTP basic authentication * @@ -239,7 +216,6 @@ class Configuration { return $this->password; } - /** * Sets the host * @@ -252,7 +228,6 @@ class Configuration $this->host = $host; return $this; } - /** * Gets the host * @@ -262,7 +237,6 @@ class Configuration { return $this->host; } - /** * Sets the user agent of the api client * @@ -273,14 +247,12 @@ class Configuration */ public function setUserAgent($userAgent) { - if (!is_string($userAgent)) { + if (!\is_string($userAgent)) { throw new \InvalidArgumentException('User-agent must be a string.'); } - $this->userAgent = $userAgent; return $this; } - /** * Gets the user agent of the api client * @@ -290,7 +262,6 @@ class Configuration { return $this->userAgent; } - /** * Sets debug flag * @@ -303,7 +274,6 @@ class Configuration $this->debug = $debug; return $this; } - /** * Gets the debug flag * @@ -313,7 +283,6 @@ class Configuration { return $this->debug; } - /** * Sets the debug file * @@ -326,7 +295,6 @@ class Configuration $this->debugFile = $debugFile; return $this; } - /** * Gets the debug file * @@ -336,7 +304,6 @@ class Configuration { return $this->debugFile; } - /** * Sets the temp folder path * @@ -349,7 +316,6 @@ class Configuration $this->tempFolderPath = $tempFolderPath; return $this; } - /** * Gets the temp folder path * @@ -359,7 +325,6 @@ class Configuration { return $this->tempFolderPath; } - /** * Gets the default configuration instance * @@ -368,12 +333,10 @@ class Configuration public static function getDefaultConfiguration() { if (self::$defaultConfiguration === null) { - self::$defaultConfiguration = new Configuration(); + self::$defaultConfiguration = new \WPMailSMTP\Vendor\SendinBlue\Client\Configuration(); } - return self::$defaultConfiguration; } - /** * Sets the detault configuration instance * @@ -381,11 +344,10 @@ class Configuration * * @return void */ - public static function setDefaultConfiguration(Configuration $config) + public static function setDefaultConfiguration(\WPMailSMTP\Vendor\SendinBlue\Client\Configuration $config) { self::$defaultConfiguration = $config; } - /** * Gets the essential information for debugging * @@ -393,15 +355,13 @@ class Configuration */ public static function toDebugReport() { - $report = 'PHP SDK (SendinBlue\Client) Debug Report:' . PHP_EOL; - $report .= ' OS: ' . php_uname() . PHP_EOL; - $report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL; - $report .= ' OpenAPI Spec Version: 3.0.0' . PHP_EOL; - $report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL; - + $report = 'PHP SDK (SendinBlue\\Client) Debug Report:' . \PHP_EOL; + $report .= ' OS: ' . \php_uname() . \PHP_EOL; + $report .= ' PHP Version: ' . \PHP_VERSION . \PHP_EOL; + $report .= ' OpenAPI Spec Version: 3.0.0' . \PHP_EOL; + $report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . \PHP_EOL; return $report; } - /** * Get API key (with prefix if set) * @@ -413,17 +373,14 @@ class Configuration { $prefix = $this->getApiKeyPrefix($apiKeyIdentifier); $apiKey = $this->getApiKey($apiKeyIdentifier); - if ($apiKey === null) { return null; } - if ($prefix === null) { $keyWithPrefix = $apiKey; } else { $keyWithPrefix = $prefix . ' ' . $apiKey; } - return $keyWithPrefix; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/HeaderSelector.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/HeaderSelector.php similarity index 86% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/HeaderSelector.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/HeaderSelector.php index 56b557d..bb85942 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/HeaderSelector.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/HeaderSelector.php @@ -1,4 +1,5 @@ selectAcceptHeader($accept); if ($accept !== null) { $headers['Accept'] = $accept; } - $headers['Content-Type'] = $this->selectContentTypeHeader($contentTypes); return $headers; } - /** * @param string[] $accept * @return array @@ -66,11 +59,9 @@ class HeaderSelector public function selectHeadersForMultipart($accept) { $headers = $this->selectHeaders($accept, []); - unset($headers['Content-Type']); return $headers; } - /** * Return the header 'Accept' based on an array of Accept provided * @@ -80,15 +71,14 @@ class HeaderSelector */ private function selectAcceptHeader($accept) { - if (count($accept) === 0 || (count($accept) === 1 && $accept[0] === '')) { + if (\count($accept) === 0 || \count($accept) === 1 && $accept[0] === '') { return null; - } elseif (preg_grep("/application\/json/i", $accept)) { + } elseif (\preg_grep("/application\\/json/i", $accept)) { return 'application/json'; } else { - return implode(',', $accept); + return \implode(',', $accept); } } - /** * Return the content type based on an array of content-type provided * @@ -98,13 +88,12 @@ class HeaderSelector */ private function selectContentTypeHeader($contentType) { - if (count($contentType) === 0 || (count($contentType) === 1 && $contentType[0] === '')) { + if (\count($contentType) === 0 || \count($contentType) === 1 && $contentType[0] === '') { return 'application/json'; - } elseif (preg_grep("/application\/json/i", $contentType)) { + } elseif (\preg_grep("/application\\/json/i", $contentType)) { return 'application/json'; } else { - return implode(',', $contentType); + return \implode(',', $contentType); } } } - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/AbTestCampaignResult.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/AbTestCampaignResult.php similarity index 71% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/AbTestCampaignResult.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/AbTestCampaignResult.php index 1b81c77..7374b8a 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/AbTestCampaignResult.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/AbTestCampaignResult.php @@ -1,4 +1,5 @@ 'string', - 'winningCriteria' => 'string', - 'winningSubjectLine' => 'string', - 'openRate' => 'string', - 'clickRate' => 'string', - 'winningVersionRate' => 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['winningVersion' => 'string', 'winningCriteria' => 'string', 'winningSubjectLine' => 'string', 'openRate' => 'string', 'clickRate' => 'string', 'winningVersionRate' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'winningVersion' => null, - 'winningCriteria' => null, - 'winningSubjectLine' => null, - 'openRate' => null, - 'clickRate' => null, - 'winningVersionRate' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['winningVersion' => null, 'winningCriteria' => null, 'winningSubjectLine' => null, 'openRate' => null, 'clickRate' => null, 'winningVersionRate' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -87,7 +67,6 @@ class AbTestCampaignResult implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -97,50 +76,25 @@ class AbTestCampaignResult implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'winningVersion' => 'winningVersion', - 'winningCriteria' => 'winningCriteria', - 'winningSubjectLine' => 'winningSubjectLine', - 'openRate' => 'openRate', - 'clickRate' => 'clickRate', - 'winningVersionRate' => 'winningVersionRate' - ]; - + protected static $attributeMap = ['winningVersion' => 'winningVersion', 'winningCriteria' => 'winningCriteria', 'winningSubjectLine' => 'winningSubjectLine', 'openRate' => 'openRate', 'clickRate' => 'clickRate', 'winningVersionRate' => 'winningVersionRate']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'winningVersion' => 'setWinningVersion', - 'winningCriteria' => 'setWinningCriteria', - 'winningSubjectLine' => 'setWinningSubjectLine', - 'openRate' => 'setOpenRate', - 'clickRate' => 'setClickRate', - 'winningVersionRate' => 'setWinningVersionRate' - ]; - + protected static $setters = ['winningVersion' => 'setWinningVersion', 'winningCriteria' => 'setWinningCriteria', 'winningSubjectLine' => 'setWinningSubjectLine', 'openRate' => 'setOpenRate', 'clickRate' => 'setClickRate', 'winningVersionRate' => 'setWinningVersionRate']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'winningVersion' => 'getWinningVersion', - 'winningCriteria' => 'getWinningCriteria', - 'winningSubjectLine' => 'getWinningSubjectLine', - 'openRate' => 'getOpenRate', - 'clickRate' => 'getClickRate', - 'winningVersionRate' => 'getWinningVersionRate' - ]; - + protected static $getters = ['winningVersion' => 'getWinningVersion', 'winningCriteria' => 'getWinningCriteria', 'winningSubjectLine' => 'getWinningSubjectLine', 'openRate' => 'getOpenRate', 'clickRate' => 'getClickRate', 'winningVersionRate' => 'getWinningVersionRate']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -151,7 +105,6 @@ class AbTestCampaignResult implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -161,7 +114,6 @@ class AbTestCampaignResult implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -171,7 +123,6 @@ class AbTestCampaignResult implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -181,7 +132,6 @@ class AbTestCampaignResult implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - const WINNING_VERSION_NOT_AVAILABLE = 'notAvailable'; const WINNING_VERSION_PENDING = 'pending'; const WINNING_VERSION_TIE = 'tie'; @@ -189,8 +139,6 @@ class AbTestCampaignResult implements ModelInterface, ArrayAccess const WINNING_VERSION_B = 'B'; const WINNING_CRITERIA_OPEN = 'Open'; const WINNING_CRITERIA_CLICK = 'Click'; - - /** * Gets allowable values of the enum * @@ -198,13 +146,7 @@ class AbTestCampaignResult implements ModelInterface, ArrayAccess */ public function getWinningVersionAllowableValues() { - return [ - self::WINNING_VERSION_NOT_AVAILABLE, - self::WINNING_VERSION_PENDING, - self::WINNING_VERSION_TIE, - self::WINNING_VERSION_A, - self::WINNING_VERSION_B, - ]; + return [self::WINNING_VERSION_NOT_AVAILABLE, self::WINNING_VERSION_PENDING, self::WINNING_VERSION_TIE, self::WINNING_VERSION_A, self::WINNING_VERSION_B]; } /** * Gets allowable values of the enum @@ -213,19 +155,14 @@ class AbTestCampaignResult implements ModelInterface, ArrayAccess */ public function getWinningCriteriaAllowableValues() { - return [ - self::WINNING_CRITERIA_OPEN, - self::WINNING_CRITERIA_CLICK, - ]; + return [self::WINNING_CRITERIA_OPEN, self::WINNING_CRITERIA_CLICK]; } - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -241,7 +178,6 @@ class AbTestCampaignResult implements ModelInterface, ArrayAccess $this->container['clickRate'] = isset($data['clickRate']) ? $data['clickRate'] : null; $this->container['winningVersionRate'] = isset($data['winningVersionRate']) ? $data['winningVersionRate'] : null; } - /** * Show all the invalid properties with reasons. * @@ -250,26 +186,16 @@ class AbTestCampaignResult implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - $allowedValues = $this->getWinningVersionAllowableValues(); - if (!is_null($this->container['winningVersion']) && !in_array($this->container['winningVersion'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value for 'winningVersion', must be one of '%s'", - implode("', '", $allowedValues) - ); + if (!\is_null($this->container['winningVersion']) && !\in_array($this->container['winningVersion'], $allowedValues, \true)) { + $invalidProperties[] = \sprintf("invalid value for 'winningVersion', must be one of '%s'", \implode("', '", $allowedValues)); } - $allowedValues = $this->getWinningCriteriaAllowableValues(); - if (!is_null($this->container['winningCriteria']) && !in_array($this->container['winningCriteria'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value for 'winningCriteria', must be one of '%s'", - implode("', '", $allowedValues) - ); + if (!\is_null($this->container['winningCriteria']) && !\in_array($this->container['winningCriteria'], $allowedValues, \true)) { + $invalidProperties[] = \sprintf("invalid value for 'winningCriteria', must be one of '%s'", \implode("', '", $allowedValues)); } - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -278,10 +204,8 @@ class AbTestCampaignResult implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets winningVersion * @@ -291,7 +215,6 @@ class AbTestCampaignResult implements ModelInterface, ArrayAccess { return $this->container['winningVersion']; } - /** * Sets winningVersion * @@ -302,19 +225,12 @@ class AbTestCampaignResult implements ModelInterface, ArrayAccess public function setWinningVersion($winningVersion) { $allowedValues = $this->getWinningVersionAllowableValues(); - if (!is_null($winningVersion) && !in_array($winningVersion, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'winningVersion', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); + if (!\is_null($winningVersion) && !\in_array($winningVersion, $allowedValues, \true)) { + throw new \InvalidArgumentException(\sprintf("Invalid value for 'winningVersion', must be one of '%s'", \implode("', '", $allowedValues))); } $this->container['winningVersion'] = $winningVersion; - return $this; } - /** * Gets winningCriteria * @@ -324,7 +240,6 @@ class AbTestCampaignResult implements ModelInterface, ArrayAccess { return $this->container['winningCriteria']; } - /** * Sets winningCriteria * @@ -335,19 +250,12 @@ class AbTestCampaignResult implements ModelInterface, ArrayAccess public function setWinningCriteria($winningCriteria) { $allowedValues = $this->getWinningCriteriaAllowableValues(); - if (!is_null($winningCriteria) && !in_array($winningCriteria, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'winningCriteria', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); + if (!\is_null($winningCriteria) && !\in_array($winningCriteria, $allowedValues, \true)) { + throw new \InvalidArgumentException(\sprintf("Invalid value for 'winningCriteria', must be one of '%s'", \implode("', '", $allowedValues))); } $this->container['winningCriteria'] = $winningCriteria; - return $this; } - /** * Gets winningSubjectLine * @@ -357,7 +265,6 @@ class AbTestCampaignResult implements ModelInterface, ArrayAccess { return $this->container['winningSubjectLine']; } - /** * Sets winningSubjectLine * @@ -368,10 +275,8 @@ class AbTestCampaignResult implements ModelInterface, ArrayAccess public function setWinningSubjectLine($winningSubjectLine) { $this->container['winningSubjectLine'] = $winningSubjectLine; - return $this; } - /** * Gets openRate * @@ -381,7 +286,6 @@ class AbTestCampaignResult implements ModelInterface, ArrayAccess { return $this->container['openRate']; } - /** * Sets openRate * @@ -392,10 +296,8 @@ class AbTestCampaignResult implements ModelInterface, ArrayAccess public function setOpenRate($openRate) { $this->container['openRate'] = $openRate; - return $this; } - /** * Gets clickRate * @@ -405,7 +307,6 @@ class AbTestCampaignResult implements ModelInterface, ArrayAccess { return $this->container['clickRate']; } - /** * Sets clickRate * @@ -416,10 +317,8 @@ class AbTestCampaignResult implements ModelInterface, ArrayAccess public function setClickRate($clickRate) { $this->container['clickRate'] = $clickRate; - return $this; } - /** * Gets winningVersionRate * @@ -429,7 +328,6 @@ class AbTestCampaignResult implements ModelInterface, ArrayAccess { return $this->container['winningVersionRate']; } - /** * Sets winningVersionRate * @@ -440,7 +338,6 @@ class AbTestCampaignResult implements ModelInterface, ArrayAccess public function setWinningVersionRate($winningVersionRate) { $this->container['winningVersionRate'] = $winningVersionRate; - return $this; } /** @@ -454,7 +351,6 @@ class AbTestCampaignResult implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -466,7 +362,6 @@ class AbTestCampaignResult implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -477,13 +372,12 @@ class AbTestCampaignResult implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -495,7 +389,6 @@ class AbTestCampaignResult implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -503,13 +396,10 @@ class AbTestCampaignResult implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/AddChildDomain.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/AddChildDomain.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/AddChildDomain.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/AddChildDomain.php index b139251..c3144af 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/AddChildDomain.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/AddChildDomain.php @@ -1,4 +1,5 @@ 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['domain' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'domain' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['domain' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -78,7 +67,6 @@ class AddChildDomain implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -88,35 +76,25 @@ class AddChildDomain implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'domain' => 'domain' - ]; - + protected static $attributeMap = ['domain' => 'domain']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'domain' => 'setDomain' - ]; - + protected static $setters = ['domain' => 'setDomain']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'domain' => 'getDomain' - ]; - + protected static $getters = ['domain' => 'getDomain']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -127,7 +105,6 @@ class AddChildDomain implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -137,7 +114,6 @@ class AddChildDomain implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -147,7 +123,6 @@ class AddChildDomain implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -157,18 +132,12 @@ class AddChildDomain implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -179,7 +148,6 @@ class AddChildDomain implements ModelInterface, ArrayAccess { $this->container['domain'] = isset($data['domain']) ? $data['domain'] : null; } - /** * Show all the invalid properties with reasons. * @@ -188,10 +156,8 @@ class AddChildDomain implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -200,10 +166,8 @@ class AddChildDomain implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets domain * @@ -213,7 +177,6 @@ class AddChildDomain implements ModelInterface, ArrayAccess { return $this->container['domain']; } - /** * Sets domain * @@ -224,7 +187,6 @@ class AddChildDomain implements ModelInterface, ArrayAccess public function setDomain($domain) { $this->container['domain'] = $domain; - return $this; } /** @@ -238,7 +200,6 @@ class AddChildDomain implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -250,7 +211,6 @@ class AddChildDomain implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -261,13 +221,12 @@ class AddChildDomain implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -279,7 +238,6 @@ class AddChildDomain implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -287,15 +245,10 @@ class AddChildDomain implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/AddContactToList.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/AddContactToList.php similarity index 79% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/AddContactToList.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/AddContactToList.php index fb83296..e4d02eb 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/AddContactToList.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/AddContactToList.php @@ -1,4 +1,5 @@ 'string[]' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['emails' => 'string[]']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'emails' => 'email' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['emails' => 'email']; /** * Array of property to type mappings. Used for (de)serialization * @@ -78,7 +67,6 @@ class AddContactToList implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -88,35 +76,25 @@ class AddContactToList implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'emails' => 'emails' - ]; - + protected static $attributeMap = ['emails' => 'emails']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'emails' => 'setEmails' - ]; - + protected static $setters = ['emails' => 'setEmails']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'emails' => 'getEmails' - ]; - + protected static $getters = ['emails' => 'getEmails']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -127,7 +105,6 @@ class AddContactToList implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -137,7 +114,6 @@ class AddContactToList implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -147,7 +123,6 @@ class AddContactToList implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -157,18 +132,12 @@ class AddContactToList implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -179,7 +148,6 @@ class AddContactToList implements ModelInterface, ArrayAccess { $this->container['emails'] = isset($data['emails']) ? $data['emails'] : null; } - /** * Show all the invalid properties with reasons. * @@ -188,10 +156,8 @@ class AddContactToList implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -200,10 +166,8 @@ class AddContactToList implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets emails * @@ -213,18 +177,16 @@ class AddContactToList implements ModelInterface, ArrayAccess { return $this->container['emails']; } - /** * Sets emails * - * @param string[] $emails Emails to add to a list + * @param string[] $emails Emails to add to a list. You can pass a maximum of 150 emails for addition in one request. If you need to add the emails in bulk, please prefer /contacts/import api. * * @return $this */ public function setEmails($emails) { $this->container['emails'] = $emails; - return $this; } /** @@ -238,7 +200,6 @@ class AddContactToList implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -250,7 +211,6 @@ class AddContactToList implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -261,13 +221,12 @@ class AddContactToList implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -279,7 +238,6 @@ class AddContactToList implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -287,15 +245,10 @@ class AddContactToList implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/AddCredits.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/AddCredits.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/AddCredits.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/AddCredits.php index cbf0dde..c600ccd 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/AddCredits.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/AddCredits.php @@ -1,4 +1,5 @@ 'int', - 'email' => 'int' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['sms' => 'int', 'email' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'sms' => 'int64', - 'email' => 'int64' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['sms' => 'int64', 'email' => 'int64']; /** * Array of property to type mappings. Used for (de)serialization * @@ -80,7 +67,6 @@ class AddCredits implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -90,38 +76,25 @@ class AddCredits implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'sms' => 'sms', - 'email' => 'email' - ]; - + protected static $attributeMap = ['sms' => 'sms', 'email' => 'email']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'sms' => 'setSms', - 'email' => 'setEmail' - ]; - + protected static $setters = ['sms' => 'setSms', 'email' => 'setEmail']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'sms' => 'getSms', - 'email' => 'getEmail' - ]; - + protected static $getters = ['sms' => 'getSms', 'email' => 'getEmail']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -132,7 +105,6 @@ class AddCredits implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -142,7 +114,6 @@ class AddCredits implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -152,7 +123,6 @@ class AddCredits implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -162,18 +132,12 @@ class AddCredits implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -185,7 +149,6 @@ class AddCredits implements ModelInterface, ArrayAccess $this->container['sms'] = isset($data['sms']) ? $data['sms'] : null; $this->container['email'] = isset($data['email']) ? $data['email'] : null; } - /** * Show all the invalid properties with reasons. * @@ -194,10 +157,8 @@ class AddCredits implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -206,10 +167,8 @@ class AddCredits implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets sms * @@ -219,7 +178,6 @@ class AddCredits implements ModelInterface, ArrayAccess { return $this->container['sms']; } - /** * Sets sms * @@ -230,10 +188,8 @@ class AddCredits implements ModelInterface, ArrayAccess public function setSms($sms) { $this->container['sms'] = $sms; - return $this; } - /** * Gets email * @@ -243,7 +199,6 @@ class AddCredits implements ModelInterface, ArrayAccess { return $this->container['email']; } - /** * Sets email * @@ -254,7 +209,6 @@ class AddCredits implements ModelInterface, ArrayAccess public function setEmail($email) { $this->container['email'] = $email; - return $this; } /** @@ -268,7 +222,6 @@ class AddCredits implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -280,7 +233,6 @@ class AddCredits implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -291,13 +243,12 @@ class AddCredits implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -309,7 +260,6 @@ class AddCredits implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -317,15 +267,10 @@ class AddCredits implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateAttribute.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateAttribute.php similarity index 76% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateAttribute.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateAttribute.php index da409c8..c9c2d78 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateAttribute.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateAttribute.php @@ -1,4 +1,5 @@ 'string', - 'enumeration' => '\SendinBlue\Client\Model\CreateAttributeEnumeration[]', - 'type' => 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['value' => 'string', 'enumeration' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateAttributeEnumeration[]', 'type' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'value' => null, - 'enumeration' => null, - 'type' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['value' => null, 'enumeration' => null, 'type' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -82,7 +67,6 @@ class CreateAttribute implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -92,41 +76,25 @@ class CreateAttribute implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'value' => 'value', - 'enumeration' => 'enumeration', - 'type' => 'type' - ]; - + protected static $attributeMap = ['value' => 'value', 'enumeration' => 'enumeration', 'type' => 'type']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'value' => 'setValue', - 'enumeration' => 'setEnumeration', - 'type' => 'setType' - ]; - + protected static $setters = ['value' => 'setValue', 'enumeration' => 'setEnumeration', 'type' => 'setType']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'value' => 'getValue', - 'enumeration' => 'getEnumeration', - 'type' => 'getType' - ]; - + protected static $getters = ['value' => 'getValue', 'enumeration' => 'getEnumeration', 'type' => 'getType']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -137,7 +105,6 @@ class CreateAttribute implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -147,7 +114,6 @@ class CreateAttribute implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -157,7 +123,6 @@ class CreateAttribute implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -167,16 +132,12 @@ class CreateAttribute implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - const TYPE_TEXT = 'text'; const TYPE_DATE = 'date'; const TYPE_FLOAT = 'float'; const TYPE_BOOLEAN = 'boolean'; const TYPE_ID = 'id'; const TYPE_CATEGORY = 'category'; - - - /** * Gets allowable values of the enum * @@ -184,24 +145,14 @@ class CreateAttribute implements ModelInterface, ArrayAccess */ public function getTypeAllowableValues() { - return [ - self::TYPE_TEXT, - self::TYPE_DATE, - self::TYPE_FLOAT, - self::TYPE_BOOLEAN, - self::TYPE_ID, - self::TYPE_CATEGORY, - ]; + return [self::TYPE_TEXT, self::TYPE_DATE, self::TYPE_FLOAT, self::TYPE_BOOLEAN, self::TYPE_ID, self::TYPE_CATEGORY]; } - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -214,7 +165,6 @@ class CreateAttribute implements ModelInterface, ArrayAccess $this->container['enumeration'] = isset($data['enumeration']) ? $data['enumeration'] : null; $this->container['type'] = isset($data['type']) ? $data['type'] : null; } - /** * Show all the invalid properties with reasons. * @@ -223,18 +173,12 @@ class CreateAttribute implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - $allowedValues = $this->getTypeAllowableValues(); - if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value for 'type', must be one of '%s'", - implode("', '", $allowedValues) - ); + if (!\is_null($this->container['type']) && !\in_array($this->container['type'], $allowedValues, \true)) { + $invalidProperties[] = \sprintf("invalid value for 'type', must be one of '%s'", \implode("', '", $allowedValues)); } - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -243,10 +187,8 @@ class CreateAttribute implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets value * @@ -256,7 +198,6 @@ class CreateAttribute implements ModelInterface, ArrayAccess { return $this->container['value']; } - /** * Sets value * @@ -267,10 +208,8 @@ class CreateAttribute implements ModelInterface, ArrayAccess public function setValue($value) { $this->container['value'] = $value; - return $this; } - /** * Gets enumeration * @@ -280,7 +219,6 @@ class CreateAttribute implements ModelInterface, ArrayAccess { return $this->container['enumeration']; } - /** * Sets enumeration * @@ -291,10 +229,8 @@ class CreateAttribute implements ModelInterface, ArrayAccess public function setEnumeration($enumeration) { $this->container['enumeration'] = $enumeration; - return $this; } - /** * Gets type * @@ -304,7 +240,6 @@ class CreateAttribute implements ModelInterface, ArrayAccess { return $this->container['type']; } - /** * Sets type * @@ -315,16 +250,10 @@ class CreateAttribute implements ModelInterface, ArrayAccess public function setType($type) { $allowedValues = $this->getTypeAllowableValues(); - if (!is_null($type) && !in_array($type, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'type', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); + if (!\is_null($type) && !\in_array($type, $allowedValues, \true)) { + throw new \InvalidArgumentException(\sprintf("Invalid value for 'type', must be one of '%s'", \implode("', '", $allowedValues))); } $this->container['type'] = $type; - return $this; } /** @@ -338,7 +267,6 @@ class CreateAttribute implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -350,7 +278,6 @@ class CreateAttribute implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -361,13 +288,12 @@ class CreateAttribute implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -379,7 +305,6 @@ class CreateAttribute implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -387,15 +312,10 @@ class CreateAttribute implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateAttributeEnumeration.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateAttributeEnumeration.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateAttributeEnumeration.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateAttributeEnumeration.php index 61e60d6..f886691 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateAttributeEnumeration.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateAttributeEnumeration.php @@ -1,4 +1,5 @@ 'int', - 'label' => 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['value' => 'int', 'label' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'value' => null, - 'label' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['value' => null, 'label' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -80,7 +67,6 @@ class CreateAttributeEnumeration implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -90,38 +76,25 @@ class CreateAttributeEnumeration implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'value' => 'value', - 'label' => 'label' - ]; - + protected static $attributeMap = ['value' => 'value', 'label' => 'label']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'value' => 'setValue', - 'label' => 'setLabel' - ]; - + protected static $setters = ['value' => 'setValue', 'label' => 'setLabel']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'value' => 'getValue', - 'label' => 'getLabel' - ]; - + protected static $getters = ['value' => 'getValue', 'label' => 'getLabel']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -132,7 +105,6 @@ class CreateAttributeEnumeration implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -142,7 +114,6 @@ class CreateAttributeEnumeration implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -152,7 +123,6 @@ class CreateAttributeEnumeration implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -162,18 +132,12 @@ class CreateAttributeEnumeration implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -185,7 +149,6 @@ class CreateAttributeEnumeration implements ModelInterface, ArrayAccess $this->container['value'] = isset($data['value']) ? $data['value'] : null; $this->container['label'] = isset($data['label']) ? $data['label'] : null; } - /** * Show all the invalid properties with reasons. * @@ -194,7 +157,6 @@ class CreateAttributeEnumeration implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['value'] === null) { $invalidProperties[] = "'value' can't be null"; } @@ -203,7 +165,6 @@ class CreateAttributeEnumeration implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -212,10 +173,8 @@ class CreateAttributeEnumeration implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets value * @@ -225,7 +184,6 @@ class CreateAttributeEnumeration implements ModelInterface, ArrayAccess { return $this->container['value']; } - /** * Sets value * @@ -236,10 +194,8 @@ class CreateAttributeEnumeration implements ModelInterface, ArrayAccess public function setValue($value) { $this->container['value'] = $value; - return $this; } - /** * Gets label * @@ -249,7 +205,6 @@ class CreateAttributeEnumeration implements ModelInterface, ArrayAccess { return $this->container['label']; } - /** * Sets label * @@ -260,7 +215,6 @@ class CreateAttributeEnumeration implements ModelInterface, ArrayAccess public function setLabel($label) { $this->container['label'] = $label; - return $this; } /** @@ -274,7 +228,6 @@ class CreateAttributeEnumeration implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -286,7 +239,6 @@ class CreateAttributeEnumeration implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -297,13 +249,12 @@ class CreateAttributeEnumeration implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -315,7 +266,6 @@ class CreateAttributeEnumeration implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -323,15 +273,10 @@ class CreateAttributeEnumeration implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateChild.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateChild.php similarity index 70% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateChild.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateChild.php index 6fb54a3..a34d64b 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateChild.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateChild.php @@ -1,4 +1,5 @@ 'string', - 'firstName' => 'string', - 'lastName' => 'string', - 'companyName' => 'string', - 'password' => 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['email' => 'string', 'firstName' => 'string', 'lastName' => 'string', 'companyName' => 'string', 'password' => 'string', 'language' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'email' => 'email', - 'firstName' => null, - 'lastName' => null, - 'companyName' => null, - 'password' => 'password' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['email' => 'email', 'firstName' => null, 'lastName' => null, 'companyName' => null, 'password' => 'password', 'language' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -86,7 +67,6 @@ class CreateChild implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -96,47 +76,25 @@ class CreateChild implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'email' => 'email', - 'firstName' => 'firstName', - 'lastName' => 'lastName', - 'companyName' => 'companyName', - 'password' => 'password' - ]; - + protected static $attributeMap = ['email' => 'email', 'firstName' => 'firstName', 'lastName' => 'lastName', 'companyName' => 'companyName', 'password' => 'password', 'language' => 'language']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'email' => 'setEmail', - 'firstName' => 'setFirstName', - 'lastName' => 'setLastName', - 'companyName' => 'setCompanyName', - 'password' => 'setPassword' - ]; - + protected static $setters = ['email' => 'setEmail', 'firstName' => 'setFirstName', 'lastName' => 'setLastName', 'companyName' => 'setCompanyName', 'password' => 'setPassword', 'language' => 'setLanguage']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'email' => 'getEmail', - 'firstName' => 'getFirstName', - 'lastName' => 'getLastName', - 'companyName' => 'getCompanyName', - 'password' => 'getPassword' - ]; - + protected static $getters = ['email' => 'getEmail', 'firstName' => 'getFirstName', 'lastName' => 'getLastName', 'companyName' => 'getCompanyName', 'password' => 'getPassword', 'language' => 'getLanguage']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -147,7 +105,6 @@ class CreateChild implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -157,7 +114,6 @@ class CreateChild implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -167,7 +123,6 @@ class CreateChild implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -177,18 +132,27 @@ class CreateChild implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - + const LANGUAGE_FR = 'fr'; + const LANGUAGE_ES = 'es'; + const LANGUAGE_PT = 'pt'; + const LANGUAGE_IT = 'it'; + const LANGUAGE_DE = 'de'; + const LANGUAGE_EN = 'en'; + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getLanguageAllowableValues() + { + return [self::LANGUAGE_FR, self::LANGUAGE_ES, self::LANGUAGE_PT, self::LANGUAGE_IT, self::LANGUAGE_DE, self::LANGUAGE_EN]; + } /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -202,8 +166,8 @@ class CreateChild implements ModelInterface, ArrayAccess $this->container['lastName'] = isset($data['lastName']) ? $data['lastName'] : null; $this->container['companyName'] = isset($data['companyName']) ? $data['companyName'] : null; $this->container['password'] = isset($data['password']) ? $data['password'] : null; + $this->container['language'] = isset($data['language']) ? $data['language'] : null; } - /** * Show all the invalid properties with reasons. * @@ -212,7 +176,6 @@ class CreateChild implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['email'] === null) { $invalidProperties[] = "'email' can't be null"; } @@ -228,9 +191,12 @@ class CreateChild implements ModelInterface, ArrayAccess if ($this->container['password'] === null) { $invalidProperties[] = "'password' can't be null"; } + $allowedValues = $this->getLanguageAllowableValues(); + if (!\is_null($this->container['language']) && !\in_array($this->container['language'], $allowedValues, \true)) { + $invalidProperties[] = \sprintf("invalid value for 'language', must be one of '%s'", \implode("', '", $allowedValues)); + } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -239,10 +205,8 @@ class CreateChild implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets email * @@ -252,7 +216,6 @@ class CreateChild implements ModelInterface, ArrayAccess { return $this->container['email']; } - /** * Sets email * @@ -263,10 +226,8 @@ class CreateChild implements ModelInterface, ArrayAccess public function setEmail($email) { $this->container['email'] = $email; - return $this; } - /** * Gets firstName * @@ -276,7 +237,6 @@ class CreateChild implements ModelInterface, ArrayAccess { return $this->container['firstName']; } - /** * Sets firstName * @@ -287,10 +247,8 @@ class CreateChild implements ModelInterface, ArrayAccess public function setFirstName($firstName) { $this->container['firstName'] = $firstName; - return $this; } - /** * Gets lastName * @@ -300,7 +258,6 @@ class CreateChild implements ModelInterface, ArrayAccess { return $this->container['lastName']; } - /** * Sets lastName * @@ -311,10 +268,8 @@ class CreateChild implements ModelInterface, ArrayAccess public function setLastName($lastName) { $this->container['lastName'] = $lastName; - return $this; } - /** * Gets companyName * @@ -324,7 +279,6 @@ class CreateChild implements ModelInterface, ArrayAccess { return $this->container['companyName']; } - /** * Sets companyName * @@ -335,10 +289,8 @@ class CreateChild implements ModelInterface, ArrayAccess public function setCompanyName($companyName) { $this->container['companyName'] = $companyName; - return $this; } - /** * Gets password * @@ -348,7 +300,6 @@ class CreateChild implements ModelInterface, ArrayAccess { return $this->container['password']; } - /** * Sets password * @@ -359,7 +310,31 @@ class CreateChild implements ModelInterface, ArrayAccess public function setPassword($password) { $this->container['password'] = $password; - + return $this; + } + /** + * Gets language + * + * @return string + */ + public function getLanguage() + { + return $this->container['language']; + } + /** + * Sets language + * + * @param string $language Language of the child account + * + * @return $this + */ + public function setLanguage($language) + { + $allowedValues = $this->getLanguageAllowableValues(); + if (!\is_null($language) && !\in_array($language, $allowedValues, \true)) { + throw new \InvalidArgumentException(\sprintf("Invalid value for 'language', must be one of '%s'", \implode("', '", $allowedValues))); + } + $this->container['language'] = $language; return $this; } /** @@ -373,7 +348,6 @@ class CreateChild implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -385,7 +359,6 @@ class CreateChild implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -396,13 +369,12 @@ class CreateChild implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -414,7 +386,6 @@ class CreateChild implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -422,15 +393,10 @@ class CreateChild implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateContact.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateContact.php similarity index 79% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateContact.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateContact.php index fcf0bd7..94ce81f 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateContact.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateContact.php @@ -1,4 +1,5 @@ 'string', - 'attributes' => 'object', - 'emailBlacklisted' => 'bool', - 'smsBlacklisted' => 'bool', - 'listIds' => 'int[]', - 'updateEnabled' => 'bool', - 'smtpBlacklistSender' => 'string[]' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['email' => 'string', 'attributes' => 'object', 'emailBlacklisted' => 'bool', 'smsBlacklisted' => 'bool', 'listIds' => 'int[]', 'updateEnabled' => 'bool', 'smtpBlacklistSender' => 'string[]']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'email' => 'email', - 'attributes' => null, - 'emailBlacklisted' => null, - 'smsBlacklisted' => null, - 'listIds' => 'int64', - 'updateEnabled' => null, - 'smtpBlacklistSender' => 'email' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['email' => 'email', 'attributes' => null, 'emailBlacklisted' => null, 'smsBlacklisted' => null, 'listIds' => 'int64', 'updateEnabled' => null, 'smtpBlacklistSender' => 'email']; /** * Array of property to type mappings. Used for (de)serialization * @@ -90,7 +67,6 @@ class CreateContact implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -100,53 +76,25 @@ class CreateContact implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'email' => 'email', - 'attributes' => 'attributes', - 'emailBlacklisted' => 'emailBlacklisted', - 'smsBlacklisted' => 'smsBlacklisted', - 'listIds' => 'listIds', - 'updateEnabled' => 'updateEnabled', - 'smtpBlacklistSender' => 'smtpBlacklistSender' - ]; - + protected static $attributeMap = ['email' => 'email', 'attributes' => 'attributes', 'emailBlacklisted' => 'emailBlacklisted', 'smsBlacklisted' => 'smsBlacklisted', 'listIds' => 'listIds', 'updateEnabled' => 'updateEnabled', 'smtpBlacklistSender' => 'smtpBlacklistSender']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'email' => 'setEmail', - 'attributes' => 'setAttributes', - 'emailBlacklisted' => 'setEmailBlacklisted', - 'smsBlacklisted' => 'setSmsBlacklisted', - 'listIds' => 'setListIds', - 'updateEnabled' => 'setUpdateEnabled', - 'smtpBlacklistSender' => 'setSmtpBlacklistSender' - ]; - + protected static $setters = ['email' => 'setEmail', 'attributes' => 'setAttributes', 'emailBlacklisted' => 'setEmailBlacklisted', 'smsBlacklisted' => 'setSmsBlacklisted', 'listIds' => 'setListIds', 'updateEnabled' => 'setUpdateEnabled', 'smtpBlacklistSender' => 'setSmtpBlacklistSender']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'email' => 'getEmail', - 'attributes' => 'getAttributes', - 'emailBlacklisted' => 'getEmailBlacklisted', - 'smsBlacklisted' => 'getSmsBlacklisted', - 'listIds' => 'getListIds', - 'updateEnabled' => 'getUpdateEnabled', - 'smtpBlacklistSender' => 'getSmtpBlacklistSender' - ]; - + protected static $getters = ['email' => 'getEmail', 'attributes' => 'getAttributes', 'emailBlacklisted' => 'getEmailBlacklisted', 'smsBlacklisted' => 'getSmsBlacklisted', 'listIds' => 'getListIds', 'updateEnabled' => 'getUpdateEnabled', 'smtpBlacklistSender' => 'getSmtpBlacklistSender']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -157,7 +105,6 @@ class CreateContact implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -167,7 +114,6 @@ class CreateContact implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -177,7 +123,6 @@ class CreateContact implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -187,18 +132,12 @@ class CreateContact implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -212,10 +151,9 @@ class CreateContact implements ModelInterface, ArrayAccess $this->container['emailBlacklisted'] = isset($data['emailBlacklisted']) ? $data['emailBlacklisted'] : null; $this->container['smsBlacklisted'] = isset($data['smsBlacklisted']) ? $data['smsBlacklisted'] : null; $this->container['listIds'] = isset($data['listIds']) ? $data['listIds'] : null; - $this->container['updateEnabled'] = isset($data['updateEnabled']) ? $data['updateEnabled'] : false; + $this->container['updateEnabled'] = isset($data['updateEnabled']) ? $data['updateEnabled'] : \false; $this->container['smtpBlacklistSender'] = isset($data['smtpBlacklistSender']) ? $data['smtpBlacklistSender'] : null; } - /** * Show all the invalid properties with reasons. * @@ -224,10 +162,8 @@ class CreateContact implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -236,10 +172,8 @@ class CreateContact implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets email * @@ -249,7 +183,6 @@ class CreateContact implements ModelInterface, ArrayAccess { return $this->container['email']; } - /** * Sets email * @@ -260,10 +193,8 @@ class CreateContact implements ModelInterface, ArrayAccess public function setEmail($email) { $this->container['email'] = $email; - return $this; } - /** * Gets attributes * @@ -273,7 +204,6 @@ class CreateContact implements ModelInterface, ArrayAccess { return $this->container['attributes']; } - /** * Sets attributes * @@ -284,10 +214,8 @@ class CreateContact implements ModelInterface, ArrayAccess public function setAttributes($attributes) { $this->container['attributes'] = $attributes; - return $this; } - /** * Gets emailBlacklisted * @@ -297,7 +225,6 @@ class CreateContact implements ModelInterface, ArrayAccess { return $this->container['emailBlacklisted']; } - /** * Sets emailBlacklisted * @@ -308,10 +235,8 @@ class CreateContact implements ModelInterface, ArrayAccess public function setEmailBlacklisted($emailBlacklisted) { $this->container['emailBlacklisted'] = $emailBlacklisted; - return $this; } - /** * Gets smsBlacklisted * @@ -321,7 +246,6 @@ class CreateContact implements ModelInterface, ArrayAccess { return $this->container['smsBlacklisted']; } - /** * Sets smsBlacklisted * @@ -332,10 +256,8 @@ class CreateContact implements ModelInterface, ArrayAccess public function setSmsBlacklisted($smsBlacklisted) { $this->container['smsBlacklisted'] = $smsBlacklisted; - return $this; } - /** * Gets listIds * @@ -345,7 +267,6 @@ class CreateContact implements ModelInterface, ArrayAccess { return $this->container['listIds']; } - /** * Sets listIds * @@ -356,10 +277,8 @@ class CreateContact implements ModelInterface, ArrayAccess public function setListIds($listIds) { $this->container['listIds'] = $listIds; - return $this; } - /** * Gets updateEnabled * @@ -369,7 +288,6 @@ class CreateContact implements ModelInterface, ArrayAccess { return $this->container['updateEnabled']; } - /** * Sets updateEnabled * @@ -380,10 +298,8 @@ class CreateContact implements ModelInterface, ArrayAccess public function setUpdateEnabled($updateEnabled) { $this->container['updateEnabled'] = $updateEnabled; - return $this; } - /** * Gets smtpBlacklistSender * @@ -393,7 +309,6 @@ class CreateContact implements ModelInterface, ArrayAccess { return $this->container['smtpBlacklistSender']; } - /** * Sets smtpBlacklistSender * @@ -404,7 +319,6 @@ class CreateContact implements ModelInterface, ArrayAccess public function setSmtpBlacklistSender($smtpBlacklistSender) { $this->container['smtpBlacklistSender'] = $smtpBlacklistSender; - return $this; } /** @@ -418,7 +332,6 @@ class CreateContact implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -430,7 +343,6 @@ class CreateContact implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -441,13 +353,12 @@ class CreateContact implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -459,7 +370,6 @@ class CreateContact implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -467,15 +377,10 @@ class CreateContact implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateDoiContact.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateDoiContact.php new file mode 100644 index 0000000..dbee52a --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateDoiContact.php @@ -0,0 +1,373 @@ + 'string', 'attributes' => 'object', 'includeListIds' => 'int[]', 'excludeListIds' => 'int[]', 'templateId' => 'int', 'redirectionUrl' => 'string']; + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['email' => 'email', 'attributes' => null, 'includeListIds' => 'int64', 'excludeListIds' => 'int64', 'templateId' => 'int64', 'redirectionUrl' => 'url']; + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = ['email' => 'email', 'attributes' => 'attributes', 'includeListIds' => 'includeListIds', 'excludeListIds' => 'excludeListIds', 'templateId' => 'templateId', 'redirectionUrl' => 'redirectionUrl']; + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = ['email' => 'setEmail', 'attributes' => 'setAttributes', 'includeListIds' => 'setIncludeListIds', 'excludeListIds' => 'setExcludeListIds', 'templateId' => 'setTemplateId', 'redirectionUrl' => 'setRedirectionUrl']; + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = ['email' => 'getEmail', 'attributes' => 'getAttributes', 'includeListIds' => 'getIncludeListIds', 'excludeListIds' => 'getExcludeListIds', 'templateId' => 'getTemplateId', 'redirectionUrl' => 'getRedirectionUrl']; + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['email'] = isset($data['email']) ? $data['email'] : null; + $this->container['attributes'] = isset($data['attributes']) ? $data['attributes'] : null; + $this->container['includeListIds'] = isset($data['includeListIds']) ? $data['includeListIds'] : null; + $this->container['excludeListIds'] = isset($data['excludeListIds']) ? $data['excludeListIds'] : null; + $this->container['templateId'] = isset($data['templateId']) ? $data['templateId'] : null; + $this->container['redirectionUrl'] = isset($data['redirectionUrl']) ? $data['redirectionUrl'] : null; + } + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['email'] === null) { + $invalidProperties[] = "'email' can't be null"; + } + if ($this->container['includeListIds'] === null) { + $invalidProperties[] = "'includeListIds' can't be null"; + } + if ($this->container['templateId'] === null) { + $invalidProperties[] = "'templateId' can't be null"; + } + return $invalidProperties; + } + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return \count($this->listInvalidProperties()) === 0; + } + /** + * Gets email + * + * @return string + */ + public function getEmail() + { + return $this->container['email']; + } + /** + * Sets email + * + * @param string $email Email address where the confirmation email will be sent. This email address will be the identifier for all other contact attributes. + * + * @return $this + */ + public function setEmail($email) + { + $this->container['email'] = $email; + return $this; + } + /** + * Gets attributes + * + * @return object + */ + public function getAttributes() + { + return $this->container['attributes']; + } + /** + * Sets attributes + * + * @param object $attributes Pass the set of attributes and their values. These attributes must be present in your SendinBlue account. For eg. {'FNAME':'Elly', 'LNAME':'Roger'} + * + * @return $this + */ + public function setAttributes($attributes) + { + $this->container['attributes'] = $attributes; + return $this; + } + /** + * Gets includeListIds + * + * @return int[] + */ + public function getIncludeListIds() + { + return $this->container['includeListIds']; + } + /** + * Sets includeListIds + * + * @param int[] $includeListIds Lists under user account where contact should be added + * + * @return $this + */ + public function setIncludeListIds($includeListIds) + { + $this->container['includeListIds'] = $includeListIds; + return $this; + } + /** + * Gets excludeListIds + * + * @return int[] + */ + public function getExcludeListIds() + { + return $this->container['excludeListIds']; + } + /** + * Sets excludeListIds + * + * @param int[] $excludeListIds Lists under user account where contact should not be added + * + * @return $this + */ + public function setExcludeListIds($excludeListIds) + { + $this->container['excludeListIds'] = $excludeListIds; + return $this; + } + /** + * Gets templateId + * + * @return int + */ + public function getTemplateId() + { + return $this->container['templateId']; + } + /** + * Sets templateId + * + * @param int $templateId Id of the Double opt-in (DOI) template + * + * @return $this + */ + public function setTemplateId($templateId) + { + $this->container['templateId'] = $templateId; + return $this; + } + /** + * Gets redirectionUrl + * + * @return string + */ + public function getRedirectionUrl() + { + return $this->container['redirectionUrl']; + } + /** + * Sets redirectionUrl + * + * @param string $redirectionUrl URL of the web page that user will be redirected to after clicking on the double opt in URL. When editing your DOI template you can reference this URL by using the tag {{ params.DOIurl }}. + * + * @return $this + */ + public function setRedirectionUrl($redirectionUrl) + { + $this->container['redirectionUrl'] = $redirectionUrl; + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (\is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); + } + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateEmailCampaign.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateEmailCampaign.php similarity index 75% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateEmailCampaign.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateEmailCampaign.php index db00ac9..21bf14a 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateEmailCampaign.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateEmailCampaign.php @@ -1,4 +1,5 @@ 'string', - 'sender' => '\SendinBlue\Client\Model\CreateEmailCampaignSender', - 'name' => 'string', - 'htmlContent' => 'string', - 'htmlUrl' => 'string', - 'templateId' => 'int', - 'scheduledAt' => '\DateTime', - 'subject' => 'string', - 'replyTo' => 'string', - 'toField' => 'string', - 'recipients' => '\SendinBlue\Client\Model\CreateEmailCampaignRecipients', - 'attachmentUrl' => 'string', - 'inlineImageActivation' => 'bool', - 'mirrorActive' => 'bool', - 'footer' => 'string', - 'header' => 'string', - 'utmCampaign' => 'string', - 'params' => 'object', - 'sendAtBestTime' => 'bool', - 'abTesting' => 'bool', - 'subjectA' => 'string', - 'subjectB' => 'string', - 'splitRule' => 'int', - 'winnerCriteria' => 'string', - 'winnerDelay' => 'int', - 'ipWarmupEnable' => 'bool', - 'initialQuota' => 'int', - 'increaseRate' => 'int' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['tag' => 'string', 'sender' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateEmailCampaignSender', 'name' => 'string', 'htmlContent' => 'string', 'htmlUrl' => 'string', 'templateId' => 'int', 'scheduledAt' => '\\DateTime', 'subject' => 'string', 'replyTo' => 'string', 'toField' => 'string', 'recipients' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateEmailCampaignRecipients', 'attachmentUrl' => 'string', 'inlineImageActivation' => 'bool', 'mirrorActive' => 'bool', 'footer' => 'string', 'header' => 'string', 'utmCampaign' => 'string', 'params' => 'object', 'sendAtBestTime' => 'bool', 'abTesting' => 'bool', 'subjectA' => 'string', 'subjectB' => 'string', 'splitRule' => 'int', 'winnerCriteria' => 'string', 'winnerDelay' => 'int', 'ipWarmupEnable' => 'bool', 'initialQuota' => 'int', 'increaseRate' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'tag' => null, - 'sender' => null, - 'name' => null, - 'htmlContent' => null, - 'htmlUrl' => 'url', - 'templateId' => 'int64', - 'scheduledAt' => 'date-time', - 'subject' => null, - 'replyTo' => 'email', - 'toField' => null, - 'recipients' => null, - 'attachmentUrl' => 'url', - 'inlineImageActivation' => null, - 'mirrorActive' => null, - 'footer' => null, - 'header' => null, - 'utmCampaign' => null, - 'params' => null, - 'sendAtBestTime' => null, - 'abTesting' => null, - 'subjectA' => null, - 'subjectB' => null, - 'splitRule' => 'int64', - 'winnerCriteria' => null, - 'winnerDelay' => 'int64', - 'ipWarmupEnable' => null, - 'initialQuota' => 'int64', - 'increaseRate' => 'int64' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['tag' => null, 'sender' => null, 'name' => null, 'htmlContent' => null, 'htmlUrl' => 'url', 'templateId' => 'int64', 'scheduledAt' => 'date-time', 'subject' => null, 'replyTo' => 'email', 'toField' => null, 'recipients' => null, 'attachmentUrl' => 'url', 'inlineImageActivation' => null, 'mirrorActive' => null, 'footer' => null, 'header' => null, 'utmCampaign' => null, 'params' => null, 'sendAtBestTime' => null, 'abTesting' => null, 'subjectA' => null, 'subjectB' => null, 'splitRule' => 'int64', 'winnerCriteria' => null, 'winnerDelay' => 'int64', 'ipWarmupEnable' => null, 'initialQuota' => 'int64', 'increaseRate' => 'int64']; /** * Array of property to type mappings. Used for (de)serialization * @@ -132,7 +67,6 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -142,116 +76,25 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'tag' => 'tag', - 'sender' => 'sender', - 'name' => 'name', - 'htmlContent' => 'htmlContent', - 'htmlUrl' => 'htmlUrl', - 'templateId' => 'templateId', - 'scheduledAt' => 'scheduledAt', - 'subject' => 'subject', - 'replyTo' => 'replyTo', - 'toField' => 'toField', - 'recipients' => 'recipients', - 'attachmentUrl' => 'attachmentUrl', - 'inlineImageActivation' => 'inlineImageActivation', - 'mirrorActive' => 'mirrorActive', - 'footer' => 'footer', - 'header' => 'header', - 'utmCampaign' => 'utmCampaign', - 'params' => 'params', - 'sendAtBestTime' => 'sendAtBestTime', - 'abTesting' => 'abTesting', - 'subjectA' => 'subjectA', - 'subjectB' => 'subjectB', - 'splitRule' => 'splitRule', - 'winnerCriteria' => 'winnerCriteria', - 'winnerDelay' => 'winnerDelay', - 'ipWarmupEnable' => 'ipWarmupEnable', - 'initialQuota' => 'initialQuota', - 'increaseRate' => 'increaseRate' - ]; - + protected static $attributeMap = ['tag' => 'tag', 'sender' => 'sender', 'name' => 'name', 'htmlContent' => 'htmlContent', 'htmlUrl' => 'htmlUrl', 'templateId' => 'templateId', 'scheduledAt' => 'scheduledAt', 'subject' => 'subject', 'replyTo' => 'replyTo', 'toField' => 'toField', 'recipients' => 'recipients', 'attachmentUrl' => 'attachmentUrl', 'inlineImageActivation' => 'inlineImageActivation', 'mirrorActive' => 'mirrorActive', 'footer' => 'footer', 'header' => 'header', 'utmCampaign' => 'utmCampaign', 'params' => 'params', 'sendAtBestTime' => 'sendAtBestTime', 'abTesting' => 'abTesting', 'subjectA' => 'subjectA', 'subjectB' => 'subjectB', 'splitRule' => 'splitRule', 'winnerCriteria' => 'winnerCriteria', 'winnerDelay' => 'winnerDelay', 'ipWarmupEnable' => 'ipWarmupEnable', 'initialQuota' => 'initialQuota', 'increaseRate' => 'increaseRate']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'tag' => 'setTag', - 'sender' => 'setSender', - 'name' => 'setName', - 'htmlContent' => 'setHtmlContent', - 'htmlUrl' => 'setHtmlUrl', - 'templateId' => 'setTemplateId', - 'scheduledAt' => 'setScheduledAt', - 'subject' => 'setSubject', - 'replyTo' => 'setReplyTo', - 'toField' => 'setToField', - 'recipients' => 'setRecipients', - 'attachmentUrl' => 'setAttachmentUrl', - 'inlineImageActivation' => 'setInlineImageActivation', - 'mirrorActive' => 'setMirrorActive', - 'footer' => 'setFooter', - 'header' => 'setHeader', - 'utmCampaign' => 'setUtmCampaign', - 'params' => 'setParams', - 'sendAtBestTime' => 'setSendAtBestTime', - 'abTesting' => 'setAbTesting', - 'subjectA' => 'setSubjectA', - 'subjectB' => 'setSubjectB', - 'splitRule' => 'setSplitRule', - 'winnerCriteria' => 'setWinnerCriteria', - 'winnerDelay' => 'setWinnerDelay', - 'ipWarmupEnable' => 'setIpWarmupEnable', - 'initialQuota' => 'setInitialQuota', - 'increaseRate' => 'setIncreaseRate' - ]; - + protected static $setters = ['tag' => 'setTag', 'sender' => 'setSender', 'name' => 'setName', 'htmlContent' => 'setHtmlContent', 'htmlUrl' => 'setHtmlUrl', 'templateId' => 'setTemplateId', 'scheduledAt' => 'setScheduledAt', 'subject' => 'setSubject', 'replyTo' => 'setReplyTo', 'toField' => 'setToField', 'recipients' => 'setRecipients', 'attachmentUrl' => 'setAttachmentUrl', 'inlineImageActivation' => 'setInlineImageActivation', 'mirrorActive' => 'setMirrorActive', 'footer' => 'setFooter', 'header' => 'setHeader', 'utmCampaign' => 'setUtmCampaign', 'params' => 'setParams', 'sendAtBestTime' => 'setSendAtBestTime', 'abTesting' => 'setAbTesting', 'subjectA' => 'setSubjectA', 'subjectB' => 'setSubjectB', 'splitRule' => 'setSplitRule', 'winnerCriteria' => 'setWinnerCriteria', 'winnerDelay' => 'setWinnerDelay', 'ipWarmupEnable' => 'setIpWarmupEnable', 'initialQuota' => 'setInitialQuota', 'increaseRate' => 'setIncreaseRate']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'tag' => 'getTag', - 'sender' => 'getSender', - 'name' => 'getName', - 'htmlContent' => 'getHtmlContent', - 'htmlUrl' => 'getHtmlUrl', - 'templateId' => 'getTemplateId', - 'scheduledAt' => 'getScheduledAt', - 'subject' => 'getSubject', - 'replyTo' => 'getReplyTo', - 'toField' => 'getToField', - 'recipients' => 'getRecipients', - 'attachmentUrl' => 'getAttachmentUrl', - 'inlineImageActivation' => 'getInlineImageActivation', - 'mirrorActive' => 'getMirrorActive', - 'footer' => 'getFooter', - 'header' => 'getHeader', - 'utmCampaign' => 'getUtmCampaign', - 'params' => 'getParams', - 'sendAtBestTime' => 'getSendAtBestTime', - 'abTesting' => 'getAbTesting', - 'subjectA' => 'getSubjectA', - 'subjectB' => 'getSubjectB', - 'splitRule' => 'getSplitRule', - 'winnerCriteria' => 'getWinnerCriteria', - 'winnerDelay' => 'getWinnerDelay', - 'ipWarmupEnable' => 'getIpWarmupEnable', - 'initialQuota' => 'getInitialQuota', - 'increaseRate' => 'getIncreaseRate' - ]; - + protected static $getters = ['tag' => 'getTag', 'sender' => 'getSender', 'name' => 'getName', 'htmlContent' => 'getHtmlContent', 'htmlUrl' => 'getHtmlUrl', 'templateId' => 'getTemplateId', 'scheduledAt' => 'getScheduledAt', 'subject' => 'getSubject', 'replyTo' => 'getReplyTo', 'toField' => 'getToField', 'recipients' => 'getRecipients', 'attachmentUrl' => 'getAttachmentUrl', 'inlineImageActivation' => 'getInlineImageActivation', 'mirrorActive' => 'getMirrorActive', 'footer' => 'getFooter', 'header' => 'getHeader', 'utmCampaign' => 'getUtmCampaign', 'params' => 'getParams', 'sendAtBestTime' => 'getSendAtBestTime', 'abTesting' => 'getAbTesting', 'subjectA' => 'getSubjectA', 'subjectB' => 'getSubjectB', 'splitRule' => 'getSplitRule', 'winnerCriteria' => 'getWinnerCriteria', 'winnerDelay' => 'getWinnerDelay', 'ipWarmupEnable' => 'getIpWarmupEnable', 'initialQuota' => 'getInitialQuota', 'increaseRate' => 'getIncreaseRate']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -262,7 +105,6 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -272,7 +114,6 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -282,7 +123,6 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -292,12 +132,8 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - const WINNER_CRITERIA_OPEN = 'open'; const WINNER_CRITERIA_CLICK = 'click'; - - - /** * Gets allowable values of the enum * @@ -305,20 +141,14 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess */ public function getWinnerCriteriaAllowableValues() { - return [ - self::WINNER_CRITERIA_OPEN, - self::WINNER_CRITERIA_CLICK, - ]; + return [self::WINNER_CRITERIA_OPEN, self::WINNER_CRITERIA_CLICK]; } - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -339,24 +169,23 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess $this->container['toField'] = isset($data['toField']) ? $data['toField'] : null; $this->container['recipients'] = isset($data['recipients']) ? $data['recipients'] : null; $this->container['attachmentUrl'] = isset($data['attachmentUrl']) ? $data['attachmentUrl'] : null; - $this->container['inlineImageActivation'] = isset($data['inlineImageActivation']) ? $data['inlineImageActivation'] : false; + $this->container['inlineImageActivation'] = isset($data['inlineImageActivation']) ? $data['inlineImageActivation'] : \false; $this->container['mirrorActive'] = isset($data['mirrorActive']) ? $data['mirrorActive'] : null; $this->container['footer'] = isset($data['footer']) ? $data['footer'] : null; $this->container['header'] = isset($data['header']) ? $data['header'] : null; $this->container['utmCampaign'] = isset($data['utmCampaign']) ? $data['utmCampaign'] : null; $this->container['params'] = isset($data['params']) ? $data['params'] : null; - $this->container['sendAtBestTime'] = isset($data['sendAtBestTime']) ? $data['sendAtBestTime'] : false; - $this->container['abTesting'] = isset($data['abTesting']) ? $data['abTesting'] : false; + $this->container['sendAtBestTime'] = isset($data['sendAtBestTime']) ? $data['sendAtBestTime'] : \false; + $this->container['abTesting'] = isset($data['abTesting']) ? $data['abTesting'] : \false; $this->container['subjectA'] = isset($data['subjectA']) ? $data['subjectA'] : null; $this->container['subjectB'] = isset($data['subjectB']) ? $data['subjectB'] : null; $this->container['splitRule'] = isset($data['splitRule']) ? $data['splitRule'] : null; $this->container['winnerCriteria'] = isset($data['winnerCriteria']) ? $data['winnerCriteria'] : null; $this->container['winnerDelay'] = isset($data['winnerDelay']) ? $data['winnerDelay'] : null; - $this->container['ipWarmupEnable'] = isset($data['ipWarmupEnable']) ? $data['ipWarmupEnable'] : false; + $this->container['ipWarmupEnable'] = isset($data['ipWarmupEnable']) ? $data['ipWarmupEnable'] : \false; $this->container['initialQuota'] = isset($data['initialQuota']) ? $data['initialQuota'] : null; $this->container['increaseRate'] = isset($data['increaseRate']) ? $data['increaseRate'] : null; } - /** * Show all the invalid properties with reasons. * @@ -365,48 +194,36 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['sender'] === null) { $invalidProperties[] = "'sender' can't be null"; } if ($this->container['name'] === null) { $invalidProperties[] = "'name' can't be null"; } - if (!is_null($this->container['splitRule']) && ($this->container['splitRule'] > 50)) { + if (!\is_null($this->container['splitRule']) && $this->container['splitRule'] > 50) { $invalidProperties[] = "invalid value for 'splitRule', must be smaller than or equal to 50."; } - - if (!is_null($this->container['splitRule']) && ($this->container['splitRule'] < 1)) { + if (!\is_null($this->container['splitRule']) && $this->container['splitRule'] < 1) { $invalidProperties[] = "invalid value for 'splitRule', must be bigger than or equal to 1."; } - $allowedValues = $this->getWinnerCriteriaAllowableValues(); - if (!is_null($this->container['winnerCriteria']) && !in_array($this->container['winnerCriteria'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value for 'winnerCriteria', must be one of '%s'", - implode("', '", $allowedValues) - ); + if (!\is_null($this->container['winnerCriteria']) && !\in_array($this->container['winnerCriteria'], $allowedValues, \true)) { + $invalidProperties[] = \sprintf("invalid value for 'winnerCriteria', must be one of '%s'", \implode("', '", $allowedValues)); } - - if (!is_null($this->container['winnerDelay']) && ($this->container['winnerDelay'] > 168)) { + if (!\is_null($this->container['winnerDelay']) && $this->container['winnerDelay'] > 168) { $invalidProperties[] = "invalid value for 'winnerDelay', must be smaller than or equal to 168."; } - - if (!is_null($this->container['winnerDelay']) && ($this->container['winnerDelay'] < 1)) { + if (!\is_null($this->container['winnerDelay']) && $this->container['winnerDelay'] < 1) { $invalidProperties[] = "invalid value for 'winnerDelay', must be bigger than or equal to 1."; } - - if (!is_null($this->container['increaseRate']) && ($this->container['increaseRate'] > 100)) { + if (!\is_null($this->container['increaseRate']) && $this->container['increaseRate'] > 100) { $invalidProperties[] = "invalid value for 'increaseRate', must be smaller than or equal to 100."; } - - if (!is_null($this->container['increaseRate']) && ($this->container['increaseRate'] < 0)) { + if (!\is_null($this->container['increaseRate']) && $this->container['increaseRate'] < 0) { $invalidProperties[] = "invalid value for 'increaseRate', must be bigger than or equal to 0."; } - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -415,10 +232,8 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets tag * @@ -428,7 +243,6 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['tag']; } - /** * Sets tag * @@ -439,10 +253,8 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess public function setTag($tag) { $this->container['tag'] = $tag; - return $this; } - /** * Gets sender * @@ -452,7 +264,6 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['sender']; } - /** * Sets sender * @@ -463,10 +274,8 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess public function setSender($sender) { $this->container['sender'] = $sender; - return $this; } - /** * Gets name * @@ -476,7 +285,6 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['name']; } - /** * Sets name * @@ -487,10 +295,8 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess public function setName($name) { $this->container['name'] = $name; - return $this; } - /** * Gets htmlContent * @@ -500,7 +306,6 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['htmlContent']; } - /** * Sets htmlContent * @@ -511,10 +316,8 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess public function setHtmlContent($htmlContent) { $this->container['htmlContent'] = $htmlContent; - return $this; } - /** * Gets htmlUrl * @@ -524,7 +327,6 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['htmlUrl']; } - /** * Sets htmlUrl * @@ -535,10 +337,8 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess public function setHtmlUrl($htmlUrl) { $this->container['htmlUrl'] = $htmlUrl; - return $this; } - /** * Gets templateId * @@ -548,7 +348,6 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['templateId']; } - /** * Sets templateId * @@ -559,10 +358,8 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess public function setTemplateId($templateId) { $this->container['templateId'] = $templateId; - return $this; } - /** * Gets scheduledAt * @@ -572,7 +369,6 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['scheduledAt']; } - /** * Sets scheduledAt * @@ -583,10 +379,8 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess public function setScheduledAt($scheduledAt) { $this->container['scheduledAt'] = $scheduledAt; - return $this; } - /** * Gets subject * @@ -596,7 +390,6 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['subject']; } - /** * Sets subject * @@ -607,10 +400,8 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess public function setSubject($subject) { $this->container['subject'] = $subject; - return $this; } - /** * Gets replyTo * @@ -620,7 +411,6 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['replyTo']; } - /** * Sets replyTo * @@ -631,10 +421,8 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess public function setReplyTo($replyTo) { $this->container['replyTo'] = $replyTo; - return $this; } - /** * Gets toField * @@ -644,7 +432,6 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['toField']; } - /** * Sets toField * @@ -655,10 +442,8 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess public function setToField($toField) { $this->container['toField'] = $toField; - return $this; } - /** * Gets recipients * @@ -668,7 +453,6 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['recipients']; } - /** * Sets recipients * @@ -679,10 +463,8 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess public function setRecipients($recipients) { $this->container['recipients'] = $recipients; - return $this; } - /** * Gets attachmentUrl * @@ -692,7 +474,6 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['attachmentUrl']; } - /** * Sets attachmentUrl * @@ -703,10 +484,8 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess public function setAttachmentUrl($attachmentUrl) { $this->container['attachmentUrl'] = $attachmentUrl; - return $this; } - /** * Gets inlineImageActivation * @@ -716,7 +495,6 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['inlineImageActivation']; } - /** * Sets inlineImageActivation * @@ -727,10 +505,8 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess public function setInlineImageActivation($inlineImageActivation) { $this->container['inlineImageActivation'] = $inlineImageActivation; - return $this; } - /** * Gets mirrorActive * @@ -740,7 +516,6 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['mirrorActive']; } - /** * Sets mirrorActive * @@ -751,10 +526,8 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess public function setMirrorActive($mirrorActive) { $this->container['mirrorActive'] = $mirrorActive; - return $this; } - /** * Gets footer * @@ -764,7 +537,6 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['footer']; } - /** * Sets footer * @@ -775,10 +547,8 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess public function setFooter($footer) { $this->container['footer'] = $footer; - return $this; } - /** * Gets header * @@ -788,7 +558,6 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['header']; } - /** * Sets header * @@ -799,10 +568,8 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess public function setHeader($header) { $this->container['header'] = $header; - return $this; } - /** * Gets utmCampaign * @@ -812,7 +579,6 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['utmCampaign']; } - /** * Sets utmCampaign * @@ -823,10 +589,8 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess public function setUtmCampaign($utmCampaign) { $this->container['utmCampaign'] = $utmCampaign; - return $this; } - /** * Gets params * @@ -836,7 +600,6 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['params']; } - /** * Sets params * @@ -847,10 +610,8 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess public function setParams($params) { $this->container['params'] = $params; - return $this; } - /** * Gets sendAtBestTime * @@ -860,7 +621,6 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['sendAtBestTime']; } - /** * Sets sendAtBestTime * @@ -871,10 +631,8 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess public function setSendAtBestTime($sendAtBestTime) { $this->container['sendAtBestTime'] = $sendAtBestTime; - return $this; } - /** * Gets abTesting * @@ -884,7 +642,6 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['abTesting']; } - /** * Sets abTesting * @@ -895,10 +652,8 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess public function setAbTesting($abTesting) { $this->container['abTesting'] = $abTesting; - return $this; } - /** * Gets subjectA * @@ -908,7 +663,6 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['subjectA']; } - /** * Sets subjectA * @@ -919,10 +673,8 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess public function setSubjectA($subjectA) { $this->container['subjectA'] = $subjectA; - return $this; } - /** * Gets subjectB * @@ -932,7 +684,6 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['subjectB']; } - /** * Sets subjectB * @@ -943,10 +694,8 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess public function setSubjectB($subjectB) { $this->container['subjectB'] = $subjectB; - return $this; } - /** * Gets splitRule * @@ -956,7 +705,6 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['splitRule']; } - /** * Sets splitRule * @@ -966,19 +714,15 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess */ public function setSplitRule($splitRule) { - - if (!is_null($splitRule) && ($splitRule > 50)) { + if (!\is_null($splitRule) && $splitRule > 50) { throw new \InvalidArgumentException('invalid value for $splitRule when calling CreateEmailCampaign., must be smaller than or equal to 50.'); } - if (!is_null($splitRule) && ($splitRule < 1)) { + if (!\is_null($splitRule) && $splitRule < 1) { throw new \InvalidArgumentException('invalid value for $splitRule when calling CreateEmailCampaign., must be bigger than or equal to 1.'); } - $this->container['splitRule'] = $splitRule; - return $this; } - /** * Gets winnerCriteria * @@ -988,7 +732,6 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['winnerCriteria']; } - /** * Sets winnerCriteria * @@ -999,19 +742,12 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess public function setWinnerCriteria($winnerCriteria) { $allowedValues = $this->getWinnerCriteriaAllowableValues(); - if (!is_null($winnerCriteria) && !in_array($winnerCriteria, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'winnerCriteria', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); + if (!\is_null($winnerCriteria) && !\in_array($winnerCriteria, $allowedValues, \true)) { + throw new \InvalidArgumentException(\sprintf("Invalid value for 'winnerCriteria', must be one of '%s'", \implode("', '", $allowedValues))); } $this->container['winnerCriteria'] = $winnerCriteria; - return $this; } - /** * Gets winnerDelay * @@ -1021,7 +757,6 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['winnerDelay']; } - /** * Sets winnerDelay * @@ -1031,19 +766,15 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess */ public function setWinnerDelay($winnerDelay) { - - if (!is_null($winnerDelay) && ($winnerDelay > 168)) { + if (!\is_null($winnerDelay) && $winnerDelay > 168) { throw new \InvalidArgumentException('invalid value for $winnerDelay when calling CreateEmailCampaign., must be smaller than or equal to 168.'); } - if (!is_null($winnerDelay) && ($winnerDelay < 1)) { + if (!\is_null($winnerDelay) && $winnerDelay < 1) { throw new \InvalidArgumentException('invalid value for $winnerDelay when calling CreateEmailCampaign., must be bigger than or equal to 1.'); } - $this->container['winnerDelay'] = $winnerDelay; - return $this; } - /** * Gets ipWarmupEnable * @@ -1053,7 +784,6 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['ipWarmupEnable']; } - /** * Sets ipWarmupEnable * @@ -1064,10 +794,8 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess public function setIpWarmupEnable($ipWarmupEnable) { $this->container['ipWarmupEnable'] = $ipWarmupEnable; - return $this; } - /** * Gets initialQuota * @@ -1077,7 +805,6 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['initialQuota']; } - /** * Sets initialQuota * @@ -1088,10 +815,8 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess public function setInitialQuota($initialQuota) { $this->container['initialQuota'] = $initialQuota; - return $this; } - /** * Gets increaseRate * @@ -1101,7 +826,6 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['increaseRate']; } - /** * Sets increaseRate * @@ -1111,16 +835,13 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess */ public function setIncreaseRate($increaseRate) { - - if (!is_null($increaseRate) && ($increaseRate > 100)) { + if (!\is_null($increaseRate) && $increaseRate > 100) { throw new \InvalidArgumentException('invalid value for $increaseRate when calling CreateEmailCampaign., must be smaller than or equal to 100.'); } - if (!is_null($increaseRate) && ($increaseRate < 0)) { + if (!\is_null($increaseRate) && $increaseRate < 0) { throw new \InvalidArgumentException('invalid value for $increaseRate when calling CreateEmailCampaign., must be bigger than or equal to 0.'); } - $this->container['increaseRate'] = $increaseRate; - return $this; } /** @@ -1134,7 +855,6 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -1146,7 +866,6 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -1157,13 +876,12 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -1175,7 +893,6 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -1183,15 +900,10 @@ class CreateEmailCampaign implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateEmailCampaignRecipients.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateEmailCampaignRecipients.php similarity index 81% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateEmailCampaignRecipients.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateEmailCampaignRecipients.php index 719be7a..de800f4 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateEmailCampaignRecipients.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateEmailCampaignRecipients.php @@ -1,4 +1,5 @@ 'int[]', - 'listIds' => 'int[]' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['exclusionListIds' => 'int[]', 'listIds' => 'int[]']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'exclusionListIds' => 'int64', - 'listIds' => 'int64' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['exclusionListIds' => 'int64', 'listIds' => 'int64']; /** * Array of property to type mappings. Used for (de)serialization * @@ -81,7 +68,6 @@ class CreateEmailCampaignRecipients implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -91,38 +77,25 @@ class CreateEmailCampaignRecipients implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'exclusionListIds' => 'exclusionListIds', - 'listIds' => 'listIds' - ]; - + protected static $attributeMap = ['exclusionListIds' => 'exclusionListIds', 'listIds' => 'listIds']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'exclusionListIds' => 'setExclusionListIds', - 'listIds' => 'setListIds' - ]; - + protected static $setters = ['exclusionListIds' => 'setExclusionListIds', 'listIds' => 'setListIds']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'exclusionListIds' => 'getExclusionListIds', - 'listIds' => 'getListIds' - ]; - + protected static $getters = ['exclusionListIds' => 'getExclusionListIds', 'listIds' => 'getListIds']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -133,7 +106,6 @@ class CreateEmailCampaignRecipients implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -143,7 +115,6 @@ class CreateEmailCampaignRecipients implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -153,7 +124,6 @@ class CreateEmailCampaignRecipients implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -163,18 +133,12 @@ class CreateEmailCampaignRecipients implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -186,7 +150,6 @@ class CreateEmailCampaignRecipients implements ModelInterface, ArrayAccess $this->container['exclusionListIds'] = isset($data['exclusionListIds']) ? $data['exclusionListIds'] : null; $this->container['listIds'] = isset($data['listIds']) ? $data['listIds'] : null; } - /** * Show all the invalid properties with reasons. * @@ -195,10 +158,8 @@ class CreateEmailCampaignRecipients implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -207,10 +168,8 @@ class CreateEmailCampaignRecipients implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets exclusionListIds * @@ -220,7 +179,6 @@ class CreateEmailCampaignRecipients implements ModelInterface, ArrayAccess { return $this->container['exclusionListIds']; } - /** * Sets exclusionListIds * @@ -231,10 +189,8 @@ class CreateEmailCampaignRecipients implements ModelInterface, ArrayAccess public function setExclusionListIds($exclusionListIds) { $this->container['exclusionListIds'] = $exclusionListIds; - return $this; } - /** * Gets listIds * @@ -244,7 +200,6 @@ class CreateEmailCampaignRecipients implements ModelInterface, ArrayAccess { return $this->container['listIds']; } - /** * Sets listIds * @@ -255,7 +210,6 @@ class CreateEmailCampaignRecipients implements ModelInterface, ArrayAccess public function setListIds($listIds) { $this->container['listIds'] = $listIds; - return $this; } /** @@ -269,7 +223,6 @@ class CreateEmailCampaignRecipients implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -281,7 +234,6 @@ class CreateEmailCampaignRecipients implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -292,13 +244,12 @@ class CreateEmailCampaignRecipients implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -310,7 +261,6 @@ class CreateEmailCampaignRecipients implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -318,15 +268,10 @@ class CreateEmailCampaignRecipients implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateEmailCampaignSender.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateEmailCampaignSender.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateEmailCampaignSender.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateEmailCampaignSender.php index 6bb3c64..4d3dbe6 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateEmailCampaignSender.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateEmailCampaignSender.php @@ -1,4 +1,5 @@ 'string', - 'email' => 'string', - 'id' => 'int' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['name' => 'string', 'email' => 'string', 'id' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'name' => null, - 'email' => 'email', - 'id' => 'int64' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['name' => null, 'email' => 'email', 'id' => 'int64']; /** * Array of property to type mappings. Used for (de)serialization * @@ -83,7 +68,6 @@ class CreateEmailCampaignSender implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -93,41 +77,25 @@ class CreateEmailCampaignSender implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'name' => 'name', - 'email' => 'email', - 'id' => 'id' - ]; - + protected static $attributeMap = ['name' => 'name', 'email' => 'email', 'id' => 'id']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'name' => 'setName', - 'email' => 'setEmail', - 'id' => 'setId' - ]; - + protected static $setters = ['name' => 'setName', 'email' => 'setEmail', 'id' => 'setId']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'name' => 'getName', - 'email' => 'getEmail', - 'id' => 'getId' - ]; - + protected static $getters = ['name' => 'getName', 'email' => 'getEmail', 'id' => 'getId']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -138,7 +106,6 @@ class CreateEmailCampaignSender implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -148,7 +115,6 @@ class CreateEmailCampaignSender implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -158,7 +124,6 @@ class CreateEmailCampaignSender implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -168,18 +133,12 @@ class CreateEmailCampaignSender implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -192,7 +151,6 @@ class CreateEmailCampaignSender implements ModelInterface, ArrayAccess $this->container['email'] = isset($data['email']) ? $data['email'] : null; $this->container['id'] = isset($data['id']) ? $data['id'] : null; } - /** * Show all the invalid properties with reasons. * @@ -201,13 +159,11 @@ class CreateEmailCampaignSender implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['email'] === null) { $invalidProperties[] = "'email' can't be null"; } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -216,10 +172,8 @@ class CreateEmailCampaignSender implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets name * @@ -229,7 +183,6 @@ class CreateEmailCampaignSender implements ModelInterface, ArrayAccess { return $this->container['name']; } - /** * Sets name * @@ -240,10 +193,8 @@ class CreateEmailCampaignSender implements ModelInterface, ArrayAccess public function setName($name) { $this->container['name'] = $name; - return $this; } - /** * Gets email * @@ -253,7 +204,6 @@ class CreateEmailCampaignSender implements ModelInterface, ArrayAccess { return $this->container['email']; } - /** * Sets email * @@ -264,10 +214,8 @@ class CreateEmailCampaignSender implements ModelInterface, ArrayAccess public function setEmail($email) { $this->container['email'] = $email; - return $this; } - /** * Gets id * @@ -277,7 +225,6 @@ class CreateEmailCampaignSender implements ModelInterface, ArrayAccess { return $this->container['id']; } - /** * Sets id * @@ -288,7 +235,6 @@ class CreateEmailCampaignSender implements ModelInterface, ArrayAccess public function setId($id) { $this->container['id'] = $id; - return $this; } /** @@ -302,7 +248,6 @@ class CreateEmailCampaignSender implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -314,7 +259,6 @@ class CreateEmailCampaignSender implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -325,13 +269,12 @@ class CreateEmailCampaignSender implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -343,7 +286,6 @@ class CreateEmailCampaignSender implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -351,15 +293,10 @@ class CreateEmailCampaignSender implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateList.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateList.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateList.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateList.php index d6a812d..133a78b 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateList.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateList.php @@ -1,4 +1,5 @@ 'string', - 'folderId' => 'int' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['name' => 'string', 'folderId' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'name' => null, - 'folderId' => 'int64' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['name' => null, 'folderId' => 'int64']; /** * Array of property to type mappings. Used for (de)serialization * @@ -80,7 +67,6 @@ class CreateList implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -90,38 +76,25 @@ class CreateList implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'name' => 'name', - 'folderId' => 'folderId' - ]; - + protected static $attributeMap = ['name' => 'name', 'folderId' => 'folderId']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'name' => 'setName', - 'folderId' => 'setFolderId' - ]; - + protected static $setters = ['name' => 'setName', 'folderId' => 'setFolderId']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'name' => 'getName', - 'folderId' => 'getFolderId' - ]; - + protected static $getters = ['name' => 'getName', 'folderId' => 'getFolderId']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -132,7 +105,6 @@ class CreateList implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -142,7 +114,6 @@ class CreateList implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -152,7 +123,6 @@ class CreateList implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -162,18 +132,12 @@ class CreateList implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -185,7 +149,6 @@ class CreateList implements ModelInterface, ArrayAccess $this->container['name'] = isset($data['name']) ? $data['name'] : null; $this->container['folderId'] = isset($data['folderId']) ? $data['folderId'] : null; } - /** * Show all the invalid properties with reasons. * @@ -194,7 +157,6 @@ class CreateList implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['name'] === null) { $invalidProperties[] = "'name' can't be null"; } @@ -203,7 +165,6 @@ class CreateList implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -212,10 +173,8 @@ class CreateList implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets name * @@ -225,7 +184,6 @@ class CreateList implements ModelInterface, ArrayAccess { return $this->container['name']; } - /** * Sets name * @@ -236,10 +194,8 @@ class CreateList implements ModelInterface, ArrayAccess public function setName($name) { $this->container['name'] = $name; - return $this; } - /** * Gets folderId * @@ -249,7 +205,6 @@ class CreateList implements ModelInterface, ArrayAccess { return $this->container['folderId']; } - /** * Sets folderId * @@ -260,7 +215,6 @@ class CreateList implements ModelInterface, ArrayAccess public function setFolderId($folderId) { $this->container['folderId'] = $folderId; - return $this; } /** @@ -274,7 +228,6 @@ class CreateList implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -286,7 +239,6 @@ class CreateList implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -297,13 +249,12 @@ class CreateList implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -315,7 +266,6 @@ class CreateList implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -323,15 +273,10 @@ class CreateList implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateModel.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateModel.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateModel.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateModel.php index fe5ab29..baf6b3e 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateModel.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateModel.php @@ -1,4 +1,5 @@ 'int' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['id' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'id' => 'int64' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['id' => 'int64']; /** * Array of property to type mappings. Used for (de)serialization * @@ -78,7 +67,6 @@ class CreateModel implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -88,35 +76,25 @@ class CreateModel implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'id' => 'id' - ]; - + protected static $attributeMap = ['id' => 'id']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'id' => 'setId' - ]; - + protected static $setters = ['id' => 'setId']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'id' => 'getId' - ]; - + protected static $getters = ['id' => 'getId']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -127,7 +105,6 @@ class CreateModel implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -137,7 +114,6 @@ class CreateModel implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -147,7 +123,6 @@ class CreateModel implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -157,18 +132,12 @@ class CreateModel implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -179,7 +148,6 @@ class CreateModel implements ModelInterface, ArrayAccess { $this->container['id'] = isset($data['id']) ? $data['id'] : null; } - /** * Show all the invalid properties with reasons. * @@ -188,13 +156,11 @@ class CreateModel implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['id'] === null) { $invalidProperties[] = "'id' can't be null"; } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -203,10 +169,8 @@ class CreateModel implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets id * @@ -216,7 +180,6 @@ class CreateModel implements ModelInterface, ArrayAccess { return $this->container['id']; } - /** * Sets id * @@ -227,7 +190,6 @@ class CreateModel implements ModelInterface, ArrayAccess public function setId($id) { $this->container['id'] = $id; - return $this; } /** @@ -241,7 +203,6 @@ class CreateModel implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -253,7 +214,6 @@ class CreateModel implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -264,13 +224,12 @@ class CreateModel implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -282,7 +241,6 @@ class CreateModel implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -290,15 +248,10 @@ class CreateModel implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateReseller.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateReseller.php similarity index 77% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateReseller.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateReseller.php index 1dff8d0..7093316 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateReseller.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateReseller.php @@ -1,4 +1,5 @@ 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['authKey' => 'string', 'id' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'authKey' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['authKey' => null, 'id' => 'int64']; /** * Array of property to type mappings. Used for (de)serialization * @@ -78,7 +67,6 @@ class CreateReseller implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -88,35 +76,25 @@ class CreateReseller implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'authKey' => 'authKey' - ]; - + protected static $attributeMap = ['authKey' => 'authKey', 'id' => 'id']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'authKey' => 'setAuthKey' - ]; - + protected static $setters = ['authKey' => 'setAuthKey', 'id' => 'setId']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'authKey' => 'getAuthKey' - ]; - + protected static $getters = ['authKey' => 'getAuthKey', 'id' => 'getId']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -127,7 +105,6 @@ class CreateReseller implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -137,7 +114,6 @@ class CreateReseller implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -147,7 +123,6 @@ class CreateReseller implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -157,18 +132,12 @@ class CreateReseller implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -178,8 +147,8 @@ class CreateReseller implements ModelInterface, ArrayAccess public function __construct(array $data = null) { $this->container['authKey'] = isset($data['authKey']) ? $data['authKey'] : null; + $this->container['id'] = isset($data['id']) ? $data['id'] : null; } - /** * Show all the invalid properties with reasons. * @@ -188,13 +157,11 @@ class CreateReseller implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['authKey'] === null) { $invalidProperties[] = "'authKey' can't be null"; } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -203,10 +170,8 @@ class CreateReseller implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets authKey * @@ -216,7 +181,6 @@ class CreateReseller implements ModelInterface, ArrayAccess { return $this->container['authKey']; } - /** * Sets authKey * @@ -227,7 +191,27 @@ class CreateReseller implements ModelInterface, ArrayAccess public function setAuthKey($authKey) { $this->container['authKey'] = $authKey; - + return $this; + } + /** + * Gets id + * + * @return int + */ + public function getId() + { + return $this->container['id']; + } + /** + * Sets id + * + * @param int $id Id of Reseller child created + * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; return $this; } /** @@ -241,7 +225,6 @@ class CreateReseller implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -253,7 +236,6 @@ class CreateReseller implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -264,13 +246,12 @@ class CreateReseller implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -282,7 +263,6 @@ class CreateReseller implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -290,15 +270,10 @@ class CreateReseller implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSender.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSender.php similarity index 81% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSender.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSender.php index 7eb24ee..d7c1ba7 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSender.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSender.php @@ -1,4 +1,5 @@ 'string', - 'email' => 'string', - 'ips' => '\SendinBlue\Client\Model\CreateSenderIps[]' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['name' => 'string', 'email' => 'string', 'ips' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateSenderIps[]']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'name' => null, - 'email' => 'email', - 'ips' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['name' => null, 'email' => 'email', 'ips' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -82,7 +67,6 @@ class CreateSender implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -92,41 +76,25 @@ class CreateSender implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'name' => 'name', - 'email' => 'email', - 'ips' => 'ips' - ]; - + protected static $attributeMap = ['name' => 'name', 'email' => 'email', 'ips' => 'ips']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'name' => 'setName', - 'email' => 'setEmail', - 'ips' => 'setIps' - ]; - + protected static $setters = ['name' => 'setName', 'email' => 'setEmail', 'ips' => 'setIps']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'name' => 'getName', - 'email' => 'getEmail', - 'ips' => 'getIps' - ]; - + protected static $getters = ['name' => 'getName', 'email' => 'getEmail', 'ips' => 'getIps']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -137,7 +105,6 @@ class CreateSender implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -147,7 +114,6 @@ class CreateSender implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -157,7 +123,6 @@ class CreateSender implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -167,18 +132,12 @@ class CreateSender implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -191,7 +150,6 @@ class CreateSender implements ModelInterface, ArrayAccess $this->container['email'] = isset($data['email']) ? $data['email'] : null; $this->container['ips'] = isset($data['ips']) ? $data['ips'] : null; } - /** * Show all the invalid properties with reasons. * @@ -200,7 +158,6 @@ class CreateSender implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['name'] === null) { $invalidProperties[] = "'name' can't be null"; } @@ -209,7 +166,6 @@ class CreateSender implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -218,10 +174,8 @@ class CreateSender implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets name * @@ -231,7 +185,6 @@ class CreateSender implements ModelInterface, ArrayAccess { return $this->container['name']; } - /** * Sets name * @@ -242,10 +195,8 @@ class CreateSender implements ModelInterface, ArrayAccess public function setName($name) { $this->container['name'] = $name; - return $this; } - /** * Gets email * @@ -255,21 +206,18 @@ class CreateSender implements ModelInterface, ArrayAccess { return $this->container['email']; } - /** * Sets email * - * @param string $email From Email to use for the sender + * @param string $email From email to use for the sender. A verification email will be sent to this address. * * @return $this */ public function setEmail($email) { $this->container['email'] = $email; - return $this; } - /** * Gets ips * @@ -279,7 +227,6 @@ class CreateSender implements ModelInterface, ArrayAccess { return $this->container['ips']; } - /** * Sets ips * @@ -290,7 +237,6 @@ class CreateSender implements ModelInterface, ArrayAccess public function setIps($ips) { $this->container['ips'] = $ips; - return $this; } /** @@ -304,7 +250,6 @@ class CreateSender implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -316,7 +261,6 @@ class CreateSender implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -327,13 +271,12 @@ class CreateSender implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -345,7 +288,6 @@ class CreateSender implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -353,15 +295,10 @@ class CreateSender implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSenderIps.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSenderIps.php similarity index 80% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSenderIps.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSenderIps.php index 9df80df..1cd2ed6 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSenderIps.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSenderIps.php @@ -1,4 +1,5 @@ 'string', - 'domain' => 'string', - 'weight' => 'int' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['ip' => 'string', 'domain' => 'string', 'weight' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'ip' => null, - 'domain' => null, - 'weight' => 'int64' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['ip' => null, 'domain' => null, 'weight' => 'int64']; /** * Array of property to type mappings. Used for (de)serialization * @@ -82,7 +67,6 @@ class CreateSenderIps implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -92,41 +76,25 @@ class CreateSenderIps implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'ip' => 'ip', - 'domain' => 'domain', - 'weight' => 'weight' - ]; - + protected static $attributeMap = ['ip' => 'ip', 'domain' => 'domain', 'weight' => 'weight']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'ip' => 'setIp', - 'domain' => 'setDomain', - 'weight' => 'setWeight' - ]; - + protected static $setters = ['ip' => 'setIp', 'domain' => 'setDomain', 'weight' => 'setWeight']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'ip' => 'getIp', - 'domain' => 'getDomain', - 'weight' => 'getWeight' - ]; - + protected static $getters = ['ip' => 'getIp', 'domain' => 'getDomain', 'weight' => 'getWeight']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -137,7 +105,6 @@ class CreateSenderIps implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -147,7 +114,6 @@ class CreateSenderIps implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -157,7 +123,6 @@ class CreateSenderIps implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -167,18 +132,12 @@ class CreateSenderIps implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -191,7 +150,6 @@ class CreateSenderIps implements ModelInterface, ArrayAccess $this->container['domain'] = isset($data['domain']) ? $data['domain'] : null; $this->container['weight'] = isset($data['weight']) ? $data['weight'] : null; } - /** * Show all the invalid properties with reasons. * @@ -200,24 +158,20 @@ class CreateSenderIps implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['ip'] === null) { $invalidProperties[] = "'ip' can't be null"; } if ($this->container['domain'] === null) { $invalidProperties[] = "'domain' can't be null"; } - if (!is_null($this->container['weight']) && ($this->container['weight'] > 100)) { + if (!\is_null($this->container['weight']) && $this->container['weight'] > 100) { $invalidProperties[] = "invalid value for 'weight', must be smaller than or equal to 100."; } - - if (!is_null($this->container['weight']) && ($this->container['weight'] < 1)) { + if (!\is_null($this->container['weight']) && $this->container['weight'] < 1) { $invalidProperties[] = "invalid value for 'weight', must be bigger than or equal to 1."; } - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -226,10 +180,8 @@ class CreateSenderIps implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets ip * @@ -239,7 +191,6 @@ class CreateSenderIps implements ModelInterface, ArrayAccess { return $this->container['ip']; } - /** * Sets ip * @@ -250,10 +201,8 @@ class CreateSenderIps implements ModelInterface, ArrayAccess public function setIp($ip) { $this->container['ip'] = $ip; - return $this; } - /** * Gets domain * @@ -263,7 +212,6 @@ class CreateSenderIps implements ModelInterface, ArrayAccess { return $this->container['domain']; } - /** * Sets domain * @@ -274,10 +222,8 @@ class CreateSenderIps implements ModelInterface, ArrayAccess public function setDomain($domain) { $this->container['domain'] = $domain; - return $this; } - /** * Gets weight * @@ -287,7 +233,6 @@ class CreateSenderIps implements ModelInterface, ArrayAccess { return $this->container['weight']; } - /** * Sets weight * @@ -297,16 +242,13 @@ class CreateSenderIps implements ModelInterface, ArrayAccess */ public function setWeight($weight) { - - if (!is_null($weight) && ($weight > 100)) { + if (!\is_null($weight) && $weight > 100) { throw new \InvalidArgumentException('invalid value for $weight when calling CreateSenderIps., must be smaller than or equal to 100.'); } - if (!is_null($weight) && ($weight < 1)) { + if (!\is_null($weight) && $weight < 1) { throw new \InvalidArgumentException('invalid value for $weight when calling CreateSenderIps., must be bigger than or equal to 1.'); } - $this->container['weight'] = $weight; - return $this; } /** @@ -320,7 +262,6 @@ class CreateSenderIps implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -332,7 +273,6 @@ class CreateSenderIps implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -343,13 +283,12 @@ class CreateSenderIps implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -361,7 +300,6 @@ class CreateSenderIps implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -369,15 +307,10 @@ class CreateSenderIps implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSenderModel.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSenderModel.php similarity index 81% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSenderModel.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSenderModel.php index 0f6be5f..eb17dec 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSenderModel.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSenderModel.php @@ -1,4 +1,5 @@ 'int', - 'spfError' => 'bool', - 'dkimError' => 'bool' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['id' => 'int', 'spfError' => 'bool', 'dkimError' => 'bool']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'id' => 'int64', - 'spfError' => null, - 'dkimError' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['id' => 'int64', 'spfError' => null, 'dkimError' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -82,7 +67,6 @@ class CreateSenderModel implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -92,41 +76,25 @@ class CreateSenderModel implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'id' => 'id', - 'spfError' => 'spfError', - 'dkimError' => 'dkimError' - ]; - + protected static $attributeMap = ['id' => 'id', 'spfError' => 'spfError', 'dkimError' => 'dkimError']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'id' => 'setId', - 'spfError' => 'setSpfError', - 'dkimError' => 'setDkimError' - ]; - + protected static $setters = ['id' => 'setId', 'spfError' => 'setSpfError', 'dkimError' => 'setDkimError']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'id' => 'getId', - 'spfError' => 'getSpfError', - 'dkimError' => 'getDkimError' - ]; - + protected static $getters = ['id' => 'getId', 'spfError' => 'getSpfError', 'dkimError' => 'getDkimError']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -137,7 +105,6 @@ class CreateSenderModel implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -147,7 +114,6 @@ class CreateSenderModel implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -157,7 +123,6 @@ class CreateSenderModel implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -167,18 +132,12 @@ class CreateSenderModel implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -191,7 +150,6 @@ class CreateSenderModel implements ModelInterface, ArrayAccess $this->container['spfError'] = isset($data['spfError']) ? $data['spfError'] : null; $this->container['dkimError'] = isset($data['dkimError']) ? $data['dkimError'] : null; } - /** * Show all the invalid properties with reasons. * @@ -200,13 +158,11 @@ class CreateSenderModel implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['id'] === null) { $invalidProperties[] = "'id' can't be null"; } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -215,10 +171,8 @@ class CreateSenderModel implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets id * @@ -228,7 +182,6 @@ class CreateSenderModel implements ModelInterface, ArrayAccess { return $this->container['id']; } - /** * Sets id * @@ -239,10 +192,8 @@ class CreateSenderModel implements ModelInterface, ArrayAccess public function setId($id) { $this->container['id'] = $id; - return $this; } - /** * Gets spfError * @@ -252,7 +203,6 @@ class CreateSenderModel implements ModelInterface, ArrayAccess { return $this->container['spfError']; } - /** * Sets spfError * @@ -263,10 +213,8 @@ class CreateSenderModel implements ModelInterface, ArrayAccess public function setSpfError($spfError) { $this->container['spfError'] = $spfError; - return $this; } - /** * Gets dkimError * @@ -276,7 +224,6 @@ class CreateSenderModel implements ModelInterface, ArrayAccess { return $this->container['dkimError']; } - /** * Sets dkimError * @@ -287,7 +234,6 @@ class CreateSenderModel implements ModelInterface, ArrayAccess public function setDkimError($dkimError) { $this->container['dkimError'] = $dkimError; - return $this; } /** @@ -301,7 +247,6 @@ class CreateSenderModel implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -313,7 +258,6 @@ class CreateSenderModel implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -324,13 +268,12 @@ class CreateSenderModel implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -342,7 +285,6 @@ class CreateSenderModel implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -350,15 +292,10 @@ class CreateSenderModel implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSmsCampaign.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSmsCampaign.php similarity index 80% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSmsCampaign.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSmsCampaign.php index a02aeb7..20b3937 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSmsCampaign.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSmsCampaign.php @@ -1,4 +1,5 @@ 'string', - 'sender' => 'string', - 'content' => 'string', - 'recipients' => '\SendinBlue\Client\Model\CreateSmsCampaignRecipients', - 'scheduledAt' => '\DateTime' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['name' => 'string', 'sender' => 'string', 'content' => 'string', 'recipients' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateSmsCampaignRecipients', 'scheduledAt' => '\\DateTime']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'name' => null, - 'sender' => null, - 'content' => null, - 'recipients' => null, - 'scheduledAt' => 'date-time' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['name' => null, 'sender' => null, 'content' => null, 'recipients' => null, 'scheduledAt' => 'date-time']; /** * Array of property to type mappings. Used for (de)serialization * @@ -86,7 +67,6 @@ class CreateSmsCampaign implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -96,47 +76,25 @@ class CreateSmsCampaign implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'name' => 'name', - 'sender' => 'sender', - 'content' => 'content', - 'recipients' => 'recipients', - 'scheduledAt' => 'scheduledAt' - ]; - + protected static $attributeMap = ['name' => 'name', 'sender' => 'sender', 'content' => 'content', 'recipients' => 'recipients', 'scheduledAt' => 'scheduledAt']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'name' => 'setName', - 'sender' => 'setSender', - 'content' => 'setContent', - 'recipients' => 'setRecipients', - 'scheduledAt' => 'setScheduledAt' - ]; - + protected static $setters = ['name' => 'setName', 'sender' => 'setSender', 'content' => 'setContent', 'recipients' => 'setRecipients', 'scheduledAt' => 'setScheduledAt']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'name' => 'getName', - 'sender' => 'getSender', - 'content' => 'getContent', - 'recipients' => 'getRecipients', - 'scheduledAt' => 'getScheduledAt' - ]; - + protected static $getters = ['name' => 'getName', 'sender' => 'getSender', 'content' => 'getContent', 'recipients' => 'getRecipients', 'scheduledAt' => 'getScheduledAt']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -147,7 +105,6 @@ class CreateSmsCampaign implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -157,7 +114,6 @@ class CreateSmsCampaign implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -167,7 +123,6 @@ class CreateSmsCampaign implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -177,18 +132,12 @@ class CreateSmsCampaign implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -203,7 +152,6 @@ class CreateSmsCampaign implements ModelInterface, ArrayAccess $this->container['recipients'] = isset($data['recipients']) ? $data['recipients'] : null; $this->container['scheduledAt'] = isset($data['scheduledAt']) ? $data['scheduledAt'] : null; } - /** * Show all the invalid properties with reasons. * @@ -212,23 +160,20 @@ class CreateSmsCampaign implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['name'] === null) { $invalidProperties[] = "'name' can't be null"; } if ($this->container['sender'] === null) { $invalidProperties[] = "'sender' can't be null"; } - if ((mb_strlen($this->container['sender']) > 11)) { + if (\mb_strlen($this->container['sender']) > 11) { $invalidProperties[] = "invalid value for 'sender', the character length must be smaller than or equal to 11."; } - if ($this->container['content'] === null) { $invalidProperties[] = "'content' can't be null"; } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -237,10 +182,8 @@ class CreateSmsCampaign implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets name * @@ -250,7 +193,6 @@ class CreateSmsCampaign implements ModelInterface, ArrayAccess { return $this->container['name']; } - /** * Sets name * @@ -261,10 +203,8 @@ class CreateSmsCampaign implements ModelInterface, ArrayAccess public function setName($name) { $this->container['name'] = $name; - return $this; } - /** * Gets sender * @@ -274,7 +214,6 @@ class CreateSmsCampaign implements ModelInterface, ArrayAccess { return $this->container['sender']; } - /** * Sets sender * @@ -284,15 +223,12 @@ class CreateSmsCampaign implements ModelInterface, ArrayAccess */ public function setSender($sender) { - if ((mb_strlen($sender) > 11)) { + if (\mb_strlen($sender) > 11) { throw new \InvalidArgumentException('invalid length for $sender when calling CreateSmsCampaign., must be smaller than or equal to 11.'); } - $this->container['sender'] = $sender; - return $this; } - /** * Gets content * @@ -302,7 +238,6 @@ class CreateSmsCampaign implements ModelInterface, ArrayAccess { return $this->container['content']; } - /** * Sets content * @@ -313,10 +248,8 @@ class CreateSmsCampaign implements ModelInterface, ArrayAccess public function setContent($content) { $this->container['content'] = $content; - return $this; } - /** * Gets recipients * @@ -326,7 +259,6 @@ class CreateSmsCampaign implements ModelInterface, ArrayAccess { return $this->container['recipients']; } - /** * Sets recipients * @@ -337,10 +269,8 @@ class CreateSmsCampaign implements ModelInterface, ArrayAccess public function setRecipients($recipients) { $this->container['recipients'] = $recipients; - return $this; } - /** * Gets scheduledAt * @@ -350,7 +280,6 @@ class CreateSmsCampaign implements ModelInterface, ArrayAccess { return $this->container['scheduledAt']; } - /** * Sets scheduledAt * @@ -361,7 +290,6 @@ class CreateSmsCampaign implements ModelInterface, ArrayAccess public function setScheduledAt($scheduledAt) { $this->container['scheduledAt'] = $scheduledAt; - return $this; } /** @@ -375,7 +303,6 @@ class CreateSmsCampaign implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -387,7 +314,6 @@ class CreateSmsCampaign implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -398,13 +324,12 @@ class CreateSmsCampaign implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -416,7 +341,6 @@ class CreateSmsCampaign implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -424,15 +348,10 @@ class CreateSmsCampaign implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSmsCampaignRecipients.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSmsCampaignRecipients.php similarity index 81% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSmsCampaignRecipients.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSmsCampaignRecipients.php index c34dc29..82470ee 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSmsCampaignRecipients.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSmsCampaignRecipients.php @@ -1,4 +1,5 @@ 'int[]', - 'exclusionListIds' => 'int[]' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['listIds' => 'int[]', 'exclusionListIds' => 'int[]']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'listIds' => 'int64', - 'exclusionListIds' => 'int64' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['listIds' => 'int64', 'exclusionListIds' => 'int64']; /** * Array of property to type mappings. Used for (de)serialization * @@ -80,7 +67,6 @@ class CreateSmsCampaignRecipients implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -90,38 +76,25 @@ class CreateSmsCampaignRecipients implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'listIds' => 'listIds', - 'exclusionListIds' => 'exclusionListIds' - ]; - + protected static $attributeMap = ['listIds' => 'listIds', 'exclusionListIds' => 'exclusionListIds']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'listIds' => 'setListIds', - 'exclusionListIds' => 'setExclusionListIds' - ]; - + protected static $setters = ['listIds' => 'setListIds', 'exclusionListIds' => 'setExclusionListIds']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'listIds' => 'getListIds', - 'exclusionListIds' => 'getExclusionListIds' - ]; - + protected static $getters = ['listIds' => 'getListIds', 'exclusionListIds' => 'getExclusionListIds']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -132,7 +105,6 @@ class CreateSmsCampaignRecipients implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -142,7 +114,6 @@ class CreateSmsCampaignRecipients implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -152,7 +123,6 @@ class CreateSmsCampaignRecipients implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -162,18 +132,12 @@ class CreateSmsCampaignRecipients implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -185,7 +149,6 @@ class CreateSmsCampaignRecipients implements ModelInterface, ArrayAccess $this->container['listIds'] = isset($data['listIds']) ? $data['listIds'] : null; $this->container['exclusionListIds'] = isset($data['exclusionListIds']) ? $data['exclusionListIds'] : null; } - /** * Show all the invalid properties with reasons. * @@ -194,13 +157,11 @@ class CreateSmsCampaignRecipients implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['listIds'] === null) { $invalidProperties[] = "'listIds' can't be null"; } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -209,10 +170,8 @@ class CreateSmsCampaignRecipients implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets listIds * @@ -222,7 +181,6 @@ class CreateSmsCampaignRecipients implements ModelInterface, ArrayAccess { return $this->container['listIds']; } - /** * Sets listIds * @@ -233,10 +191,8 @@ class CreateSmsCampaignRecipients implements ModelInterface, ArrayAccess public function setListIds($listIds) { $this->container['listIds'] = $listIds; - return $this; } - /** * Gets exclusionListIds * @@ -246,7 +202,6 @@ class CreateSmsCampaignRecipients implements ModelInterface, ArrayAccess { return $this->container['exclusionListIds']; } - /** * Sets exclusionListIds * @@ -257,7 +212,6 @@ class CreateSmsCampaignRecipients implements ModelInterface, ArrayAccess public function setExclusionListIds($exclusionListIds) { $this->container['exclusionListIds'] = $exclusionListIds; - return $this; } /** @@ -271,7 +225,6 @@ class CreateSmsCampaignRecipients implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -283,7 +236,6 @@ class CreateSmsCampaignRecipients implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -294,13 +246,12 @@ class CreateSmsCampaignRecipients implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -312,7 +263,6 @@ class CreateSmsCampaignRecipients implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -320,15 +270,10 @@ class CreateSmsCampaignRecipients implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSmtpEmail.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSmtpEmail.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSmtpEmail.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSmtpEmail.php index 8ac8729..44d00c1 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSmtpEmail.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSmtpEmail.php @@ -1,4 +1,5 @@ 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['messageId' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'messageId' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['messageId' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -78,7 +67,6 @@ class CreateSmtpEmail implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -88,35 +76,25 @@ class CreateSmtpEmail implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'messageId' => 'messageId' - ]; - + protected static $attributeMap = ['messageId' => 'messageId']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'messageId' => 'setMessageId' - ]; - + protected static $setters = ['messageId' => 'setMessageId']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'messageId' => 'getMessageId' - ]; - + protected static $getters = ['messageId' => 'getMessageId']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -127,7 +105,6 @@ class CreateSmtpEmail implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -137,7 +114,6 @@ class CreateSmtpEmail implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -147,7 +123,6 @@ class CreateSmtpEmail implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -157,18 +132,12 @@ class CreateSmtpEmail implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -179,7 +148,6 @@ class CreateSmtpEmail implements ModelInterface, ArrayAccess { $this->container['messageId'] = isset($data['messageId']) ? $data['messageId'] : null; } - /** * Show all the invalid properties with reasons. * @@ -188,13 +156,11 @@ class CreateSmtpEmail implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['messageId'] === null) { $invalidProperties[] = "'messageId' can't be null"; } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -203,10 +169,8 @@ class CreateSmtpEmail implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets messageId * @@ -216,7 +180,6 @@ class CreateSmtpEmail implements ModelInterface, ArrayAccess { return $this->container['messageId']; } - /** * Sets messageId * @@ -227,7 +190,6 @@ class CreateSmtpEmail implements ModelInterface, ArrayAccess public function setMessageId($messageId) { $this->container['messageId'] = $messageId; - return $this; } /** @@ -241,7 +203,6 @@ class CreateSmtpEmail implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -253,7 +214,6 @@ class CreateSmtpEmail implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -264,13 +224,12 @@ class CreateSmtpEmail implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -282,7 +241,6 @@ class CreateSmtpEmail implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -290,15 +248,10 @@ class CreateSmtpEmail implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSmtpTemplate.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSmtpTemplate.php similarity index 80% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSmtpTemplate.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSmtpTemplate.php index 26b8bbd..bdd5e56 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSmtpTemplate.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSmtpTemplate.php @@ -1,4 +1,5 @@ 'string', - 'sender' => '\SendinBlue\Client\Model\CreateSmtpTemplateSender', - 'templateName' => 'string', - 'htmlContent' => 'string', - 'htmlUrl' => 'string', - 'subject' => 'string', - 'replyTo' => 'string', - 'toField' => 'string', - 'attachmentUrl' => 'string', - 'isActive' => 'bool' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['tag' => 'string', 'sender' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateSmtpTemplateSender', 'templateName' => 'string', 'htmlContent' => 'string', 'htmlUrl' => 'string', 'subject' => 'string', 'replyTo' => 'string', 'toField' => 'string', 'attachmentUrl' => 'string', 'isActive' => 'bool']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'tag' => null, - 'sender' => null, - 'templateName' => null, - 'htmlContent' => null, - 'htmlUrl' => 'url', - 'subject' => null, - 'replyTo' => 'email', - 'toField' => null, - 'attachmentUrl' => 'url', - 'isActive' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['tag' => null, 'sender' => null, 'templateName' => null, 'htmlContent' => null, 'htmlUrl' => 'url', 'subject' => null, 'replyTo' => 'email', 'toField' => null, 'attachmentUrl' => 'url', 'isActive' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -96,7 +67,6 @@ class CreateSmtpTemplate implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -106,62 +76,25 @@ class CreateSmtpTemplate implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'tag' => 'tag', - 'sender' => 'sender', - 'templateName' => 'templateName', - 'htmlContent' => 'htmlContent', - 'htmlUrl' => 'htmlUrl', - 'subject' => 'subject', - 'replyTo' => 'replyTo', - 'toField' => 'toField', - 'attachmentUrl' => 'attachmentUrl', - 'isActive' => 'isActive' - ]; - + protected static $attributeMap = ['tag' => 'tag', 'sender' => 'sender', 'templateName' => 'templateName', 'htmlContent' => 'htmlContent', 'htmlUrl' => 'htmlUrl', 'subject' => 'subject', 'replyTo' => 'replyTo', 'toField' => 'toField', 'attachmentUrl' => 'attachmentUrl', 'isActive' => 'isActive']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'tag' => 'setTag', - 'sender' => 'setSender', - 'templateName' => 'setTemplateName', - 'htmlContent' => 'setHtmlContent', - 'htmlUrl' => 'setHtmlUrl', - 'subject' => 'setSubject', - 'replyTo' => 'setReplyTo', - 'toField' => 'setToField', - 'attachmentUrl' => 'setAttachmentUrl', - 'isActive' => 'setIsActive' - ]; - + protected static $setters = ['tag' => 'setTag', 'sender' => 'setSender', 'templateName' => 'setTemplateName', 'htmlContent' => 'setHtmlContent', 'htmlUrl' => 'setHtmlUrl', 'subject' => 'setSubject', 'replyTo' => 'setReplyTo', 'toField' => 'setToField', 'attachmentUrl' => 'setAttachmentUrl', 'isActive' => 'setIsActive']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'tag' => 'getTag', - 'sender' => 'getSender', - 'templateName' => 'getTemplateName', - 'htmlContent' => 'getHtmlContent', - 'htmlUrl' => 'getHtmlUrl', - 'subject' => 'getSubject', - 'replyTo' => 'getReplyTo', - 'toField' => 'getToField', - 'attachmentUrl' => 'getAttachmentUrl', - 'isActive' => 'getIsActive' - ]; - + protected static $getters = ['tag' => 'getTag', 'sender' => 'getSender', 'templateName' => 'getTemplateName', 'htmlContent' => 'getHtmlContent', 'htmlUrl' => 'getHtmlUrl', 'subject' => 'getSubject', 'replyTo' => 'getReplyTo', 'toField' => 'getToField', 'attachmentUrl' => 'getAttachmentUrl', 'isActive' => 'getIsActive']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -172,7 +105,6 @@ class CreateSmtpTemplate implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -182,7 +114,6 @@ class CreateSmtpTemplate implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -192,7 +123,6 @@ class CreateSmtpTemplate implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -202,18 +132,12 @@ class CreateSmtpTemplate implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -233,7 +157,6 @@ class CreateSmtpTemplate implements ModelInterface, ArrayAccess $this->container['attachmentUrl'] = isset($data['attachmentUrl']) ? $data['attachmentUrl'] : null; $this->container['isActive'] = isset($data['isActive']) ? $data['isActive'] : null; } - /** * Show all the invalid properties with reasons. * @@ -242,7 +165,6 @@ class CreateSmtpTemplate implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['sender'] === null) { $invalidProperties[] = "'sender' can't be null"; } @@ -254,7 +176,6 @@ class CreateSmtpTemplate implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -263,10 +184,8 @@ class CreateSmtpTemplate implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets tag * @@ -276,7 +195,6 @@ class CreateSmtpTemplate implements ModelInterface, ArrayAccess { return $this->container['tag']; } - /** * Sets tag * @@ -287,10 +205,8 @@ class CreateSmtpTemplate implements ModelInterface, ArrayAccess public function setTag($tag) { $this->container['tag'] = $tag; - return $this; } - /** * Gets sender * @@ -300,7 +216,6 @@ class CreateSmtpTemplate implements ModelInterface, ArrayAccess { return $this->container['sender']; } - /** * Sets sender * @@ -311,10 +226,8 @@ class CreateSmtpTemplate implements ModelInterface, ArrayAccess public function setSender($sender) { $this->container['sender'] = $sender; - return $this; } - /** * Gets templateName * @@ -324,7 +237,6 @@ class CreateSmtpTemplate implements ModelInterface, ArrayAccess { return $this->container['templateName']; } - /** * Sets templateName * @@ -335,10 +247,8 @@ class CreateSmtpTemplate implements ModelInterface, ArrayAccess public function setTemplateName($templateName) { $this->container['templateName'] = $templateName; - return $this; } - /** * Gets htmlContent * @@ -348,7 +258,6 @@ class CreateSmtpTemplate implements ModelInterface, ArrayAccess { return $this->container['htmlContent']; } - /** * Sets htmlContent * @@ -359,10 +268,8 @@ class CreateSmtpTemplate implements ModelInterface, ArrayAccess public function setHtmlContent($htmlContent) { $this->container['htmlContent'] = $htmlContent; - return $this; } - /** * Gets htmlUrl * @@ -372,7 +279,6 @@ class CreateSmtpTemplate implements ModelInterface, ArrayAccess { return $this->container['htmlUrl']; } - /** * Sets htmlUrl * @@ -383,10 +289,8 @@ class CreateSmtpTemplate implements ModelInterface, ArrayAccess public function setHtmlUrl($htmlUrl) { $this->container['htmlUrl'] = $htmlUrl; - return $this; } - /** * Gets subject * @@ -396,7 +300,6 @@ class CreateSmtpTemplate implements ModelInterface, ArrayAccess { return $this->container['subject']; } - /** * Sets subject * @@ -407,10 +310,8 @@ class CreateSmtpTemplate implements ModelInterface, ArrayAccess public function setSubject($subject) { $this->container['subject'] = $subject; - return $this; } - /** * Gets replyTo * @@ -420,7 +321,6 @@ class CreateSmtpTemplate implements ModelInterface, ArrayAccess { return $this->container['replyTo']; } - /** * Sets replyTo * @@ -431,10 +331,8 @@ class CreateSmtpTemplate implements ModelInterface, ArrayAccess public function setReplyTo($replyTo) { $this->container['replyTo'] = $replyTo; - return $this; } - /** * Gets toField * @@ -444,7 +342,6 @@ class CreateSmtpTemplate implements ModelInterface, ArrayAccess { return $this->container['toField']; } - /** * Sets toField * @@ -455,10 +352,8 @@ class CreateSmtpTemplate implements ModelInterface, ArrayAccess public function setToField($toField) { $this->container['toField'] = $toField; - return $this; } - /** * Gets attachmentUrl * @@ -468,7 +363,6 @@ class CreateSmtpTemplate implements ModelInterface, ArrayAccess { return $this->container['attachmentUrl']; } - /** * Sets attachmentUrl * @@ -479,10 +373,8 @@ class CreateSmtpTemplate implements ModelInterface, ArrayAccess public function setAttachmentUrl($attachmentUrl) { $this->container['attachmentUrl'] = $attachmentUrl; - return $this; } - /** * Gets isActive * @@ -492,7 +384,6 @@ class CreateSmtpTemplate implements ModelInterface, ArrayAccess { return $this->container['isActive']; } - /** * Sets isActive * @@ -503,7 +394,6 @@ class CreateSmtpTemplate implements ModelInterface, ArrayAccess public function setIsActive($isActive) { $this->container['isActive'] = $isActive; - return $this; } /** @@ -517,7 +407,6 @@ class CreateSmtpTemplate implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -529,7 +418,6 @@ class CreateSmtpTemplate implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -540,13 +428,12 @@ class CreateSmtpTemplate implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -558,7 +445,6 @@ class CreateSmtpTemplate implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -566,15 +452,10 @@ class CreateSmtpTemplate implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSmtpTemplateSender.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSmtpTemplateSender.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSmtpTemplateSender.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSmtpTemplateSender.php index e0bbe0e..0bed2c8 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSmtpTemplateSender.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateSmtpTemplateSender.php @@ -1,4 +1,5 @@ 'string', - 'email' => 'string', - 'id' => 'int' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['name' => 'string', 'email' => 'string', 'id' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'name' => null, - 'email' => 'email', - 'id' => 'int64' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['name' => null, 'email' => 'email', 'id' => 'int64']; /** * Array of property to type mappings. Used for (de)serialization * @@ -83,7 +68,6 @@ class CreateSmtpTemplateSender implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -93,41 +77,25 @@ class CreateSmtpTemplateSender implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'name' => 'name', - 'email' => 'email', - 'id' => 'id' - ]; - + protected static $attributeMap = ['name' => 'name', 'email' => 'email', 'id' => 'id']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'name' => 'setName', - 'email' => 'setEmail', - 'id' => 'setId' - ]; - + protected static $setters = ['name' => 'setName', 'email' => 'setEmail', 'id' => 'setId']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'name' => 'getName', - 'email' => 'getEmail', - 'id' => 'getId' - ]; - + protected static $getters = ['name' => 'getName', 'email' => 'getEmail', 'id' => 'getId']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -138,7 +106,6 @@ class CreateSmtpTemplateSender implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -148,7 +115,6 @@ class CreateSmtpTemplateSender implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -158,7 +124,6 @@ class CreateSmtpTemplateSender implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -168,18 +133,12 @@ class CreateSmtpTemplateSender implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -192,7 +151,6 @@ class CreateSmtpTemplateSender implements ModelInterface, ArrayAccess $this->container['email'] = isset($data['email']) ? $data['email'] : null; $this->container['id'] = isset($data['id']) ? $data['id'] : null; } - /** * Show all the invalid properties with reasons. * @@ -201,13 +159,11 @@ class CreateSmtpTemplateSender implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['email'] === null) { $invalidProperties[] = "'email' can't be null"; } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -216,10 +172,8 @@ class CreateSmtpTemplateSender implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets name * @@ -229,7 +183,6 @@ class CreateSmtpTemplateSender implements ModelInterface, ArrayAccess { return $this->container['name']; } - /** * Sets name * @@ -240,10 +193,8 @@ class CreateSmtpTemplateSender implements ModelInterface, ArrayAccess public function setName($name) { $this->container['name'] = $name; - return $this; } - /** * Gets email * @@ -253,7 +204,6 @@ class CreateSmtpTemplateSender implements ModelInterface, ArrayAccess { return $this->container['email']; } - /** * Sets email * @@ -264,10 +214,8 @@ class CreateSmtpTemplateSender implements ModelInterface, ArrayAccess public function setEmail($email) { $this->container['email'] = $email; - return $this; } - /** * Gets id * @@ -277,7 +225,6 @@ class CreateSmtpTemplateSender implements ModelInterface, ArrayAccess { return $this->container['id']; } - /** * Sets id * @@ -288,7 +235,6 @@ class CreateSmtpTemplateSender implements ModelInterface, ArrayAccess public function setId($id) { $this->container['id'] = $id; - return $this; } /** @@ -302,7 +248,6 @@ class CreateSmtpTemplateSender implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -314,7 +259,6 @@ class CreateSmtpTemplateSender implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -325,13 +269,12 @@ class CreateSmtpTemplateSender implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -343,7 +286,6 @@ class CreateSmtpTemplateSender implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -351,15 +293,10 @@ class CreateSmtpTemplateSender implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateUpdateContactModel.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateUpdateContactModel.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateUpdateContactModel.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateUpdateContactModel.php index fced0de..5cfea20 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateUpdateContactModel.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateUpdateContactModel.php @@ -1,4 +1,5 @@ 'int' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['id' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'id' => 'int64' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['id' => 'int64']; /** * Array of property to type mappings. Used for (de)serialization * @@ -78,7 +67,6 @@ class CreateUpdateContactModel implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -88,35 +76,25 @@ class CreateUpdateContactModel implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'id' => 'id' - ]; - + protected static $attributeMap = ['id' => 'id']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'id' => 'setId' - ]; - + protected static $setters = ['id' => 'setId']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'id' => 'getId' - ]; - + protected static $getters = ['id' => 'getId']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -127,7 +105,6 @@ class CreateUpdateContactModel implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -137,7 +114,6 @@ class CreateUpdateContactModel implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -147,7 +123,6 @@ class CreateUpdateContactModel implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -157,18 +132,12 @@ class CreateUpdateContactModel implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -179,7 +148,6 @@ class CreateUpdateContactModel implements ModelInterface, ArrayAccess { $this->container['id'] = isset($data['id']) ? $data['id'] : null; } - /** * Show all the invalid properties with reasons. * @@ -188,10 +156,8 @@ class CreateUpdateContactModel implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -200,10 +166,8 @@ class CreateUpdateContactModel implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets id * @@ -213,7 +177,6 @@ class CreateUpdateContactModel implements ModelInterface, ArrayAccess { return $this->container['id']; } - /** * Sets id * @@ -224,7 +187,6 @@ class CreateUpdateContactModel implements ModelInterface, ArrayAccess public function setId($id) { $this->container['id'] = $id; - return $this; } /** @@ -238,7 +200,6 @@ class CreateUpdateContactModel implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -250,7 +211,6 @@ class CreateUpdateContactModel implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -261,13 +221,12 @@ class CreateUpdateContactModel implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -279,7 +238,6 @@ class CreateUpdateContactModel implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -287,15 +245,10 @@ class CreateUpdateContactModel implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateUpdateFolder.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateUpdateFolder.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateUpdateFolder.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateUpdateFolder.php index b1312a7..61e882a 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateUpdateFolder.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateUpdateFolder.php @@ -1,4 +1,5 @@ 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['name' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'name' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['name' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -78,7 +67,6 @@ class CreateUpdateFolder implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -88,35 +76,25 @@ class CreateUpdateFolder implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'name' => 'name' - ]; - + protected static $attributeMap = ['name' => 'name']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'name' => 'setName' - ]; - + protected static $setters = ['name' => 'setName']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'name' => 'getName' - ]; - + protected static $getters = ['name' => 'getName']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -127,7 +105,6 @@ class CreateUpdateFolder implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -137,7 +114,6 @@ class CreateUpdateFolder implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -147,7 +123,6 @@ class CreateUpdateFolder implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -157,18 +132,12 @@ class CreateUpdateFolder implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -179,7 +148,6 @@ class CreateUpdateFolder implements ModelInterface, ArrayAccess { $this->container['name'] = isset($data['name']) ? $data['name'] : null; } - /** * Show all the invalid properties with reasons. * @@ -188,10 +156,8 @@ class CreateUpdateFolder implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -200,10 +166,8 @@ class CreateUpdateFolder implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets name * @@ -213,7 +177,6 @@ class CreateUpdateFolder implements ModelInterface, ArrayAccess { return $this->container['name']; } - /** * Sets name * @@ -224,7 +187,6 @@ class CreateUpdateFolder implements ModelInterface, ArrayAccess public function setName($name) { $this->container['name'] = $name; - return $this; } /** @@ -238,7 +200,6 @@ class CreateUpdateFolder implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -250,7 +211,6 @@ class CreateUpdateFolder implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -261,13 +221,12 @@ class CreateUpdateFolder implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -279,7 +238,6 @@ class CreateUpdateFolder implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -287,15 +245,10 @@ class CreateUpdateFolder implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateWebhook.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateWebhook.php similarity index 70% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateWebhook.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateWebhook.php index d76a8aa..bac4841 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreateWebhook.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreateWebhook.php @@ -1,4 +1,5 @@ 'string', - 'description' => 'string', - 'events' => 'string[]', - 'type' => 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['url' => 'string', 'description' => 'string', 'events' => 'string[]', 'type' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'url' => 'url', - 'description' => null, - 'events' => null, - 'type' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['url' => 'url', 'description' => null, 'events' => null, 'type' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -84,7 +67,6 @@ class CreateWebhook implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -94,44 +76,25 @@ class CreateWebhook implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'url' => 'url', - 'description' => 'description', - 'events' => 'events', - 'type' => 'type' - ]; - + protected static $attributeMap = ['url' => 'url', 'description' => 'description', 'events' => 'events', 'type' => 'type']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'url' => 'setUrl', - 'description' => 'setDescription', - 'events' => 'setEvents', - 'type' => 'setType' - ]; - + protected static $setters = ['url' => 'setUrl', 'description' => 'setDescription', 'events' => 'setEvents', 'type' => 'setType']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'url' => 'getUrl', - 'description' => 'getDescription', - 'events' => 'getEvents', - 'type' => 'getType' - ]; - + protected static $getters = ['url' => 'getUrl', 'description' => 'getDescription', 'events' => 'getEvents', 'type' => 'getType']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -142,7 +105,6 @@ class CreateWebhook implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -152,7 +114,6 @@ class CreateWebhook implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -162,7 +123,6 @@ class CreateWebhook implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -172,7 +132,7 @@ class CreateWebhook implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - + const EVENTS_SENT = 'sent'; const EVENTS_HARD_BOUNCE = 'hardBounce'; const EVENTS_SOFT_BOUNCE = 'softBounce'; const EVENTS_BLOCKED = 'blocked'; @@ -190,9 +150,6 @@ class CreateWebhook implements ModelInterface, ArrayAccess const EVENTS_CONTACT_DELETED = 'contactDeleted'; const TYPE_TRANSACTIONAL = 'transactional'; const TYPE_MARKETING = 'marketing'; - - - /** * Gets allowable values of the enum * @@ -200,25 +157,8 @@ class CreateWebhook implements ModelInterface, ArrayAccess */ public function getEventsAllowableValues() { - return [ - self::EVENTS_HARD_BOUNCE, - self::EVENTS_SOFT_BOUNCE, - self::EVENTS_BLOCKED, - self::EVENTS_SPAM, - self::EVENTS_DELIVERED, - self::EVENTS_REQUEST, - self::EVENTS_CLICK, - self::EVENTS_INVALID, - self::EVENTS_DEFERRED, - self::EVENTS_OPENED, - self::EVENTS_UNIQUE_OPENED, - self::EVENTS_UNSUBSCRIBED, - self::EVENTS_LIST_ADDITION, - self::EVENTS_CONTACT_UPDATED, - self::EVENTS_CONTACT_DELETED, - ]; + return [self::EVENTS_SENT, self::EVENTS_HARD_BOUNCE, self::EVENTS_SOFT_BOUNCE, self::EVENTS_BLOCKED, self::EVENTS_SPAM, self::EVENTS_DELIVERED, self::EVENTS_REQUEST, self::EVENTS_CLICK, self::EVENTS_INVALID, self::EVENTS_DEFERRED, self::EVENTS_OPENED, self::EVENTS_UNIQUE_OPENED, self::EVENTS_UNSUBSCRIBED, self::EVENTS_LIST_ADDITION, self::EVENTS_CONTACT_UPDATED, self::EVENTS_CONTACT_DELETED]; } - /** * Gets allowable values of the enum * @@ -226,20 +166,14 @@ class CreateWebhook implements ModelInterface, ArrayAccess */ public function getTypeAllowableValues() { - return [ - self::TYPE_TRANSACTIONAL, - self::TYPE_MARKETING, - ]; + return [self::TYPE_TRANSACTIONAL, self::TYPE_MARKETING]; } - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -253,7 +187,6 @@ class CreateWebhook implements ModelInterface, ArrayAccess $this->container['events'] = isset($data['events']) ? $data['events'] : null; $this->container['type'] = isset($data['type']) ? $data['type'] : 'transactional'; } - /** * Show all the invalid properties with reasons. * @@ -262,7 +195,6 @@ class CreateWebhook implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['url'] === null) { $invalidProperties[] = "'url' can't be null"; } @@ -270,16 +202,11 @@ class CreateWebhook implements ModelInterface, ArrayAccess $invalidProperties[] = "'events' can't be null"; } $allowedValues = $this->getTypeAllowableValues(); - if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value for 'type', must be one of '%s'", - implode("', '", $allowedValues) - ); + if (!\is_null($this->container['type']) && !\in_array($this->container['type'], $allowedValues, \true)) { + $invalidProperties[] = \sprintf("invalid value for 'type', must be one of '%s'", \implode("', '", $allowedValues)); } - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -288,10 +215,8 @@ class CreateWebhook implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets url * @@ -301,7 +226,6 @@ class CreateWebhook implements ModelInterface, ArrayAccess { return $this->container['url']; } - /** * Sets url * @@ -312,10 +236,8 @@ class CreateWebhook implements ModelInterface, ArrayAccess public function setUrl($url) { $this->container['url'] = $url; - return $this; } - /** * Gets description * @@ -325,7 +247,6 @@ class CreateWebhook implements ModelInterface, ArrayAccess { return $this->container['description']; } - /** * Sets description * @@ -336,10 +257,8 @@ class CreateWebhook implements ModelInterface, ArrayAccess public function setDescription($description) { $this->container['description'] = $description; - return $this; } - /** * Gets events * @@ -349,30 +268,22 @@ class CreateWebhook implements ModelInterface, ArrayAccess { return $this->container['events']; } - /** * Sets events * - * @param string[] $events Events triggering the webhook. Possible values for Transactional type webhook – request, delivered, hardBounce, softBounce, blocked, spam, invalid, deferred, click, opened, uniqueOpened and unsubscribed and possible values for Marketing type webhook – spam, opened, click, hardBounce, softBounce, unsubscribed, listAddition & delivered + * @param string[] $events Events triggering the webhook. Possible values for Transactional type webhook – sent, request, delivered, hardBounce, softBounce, blocked, spam, invalid, deferred, click, opened, uniqueOpened and unsubscribed and possible values for Marketing type webhook – spam, opened, click, hardBounce, softBounce, unsubscribed, listAddition & delivered * * @return $this */ public function setEvents($events) { $allowedValues = $this->getEventsAllowableValues(); - if (array_diff($events, $allowedValues)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'events', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); + if (\array_diff($events, $allowedValues)) { + throw new \InvalidArgumentException(\sprintf("Invalid value for 'events', must be one of '%s'", \implode("', '", $allowedValues))); } $this->container['events'] = $events; - return $this; } - /** * Gets type * @@ -382,7 +293,6 @@ class CreateWebhook implements ModelInterface, ArrayAccess { return $this->container['type']; } - /** * Sets type * @@ -393,16 +303,10 @@ class CreateWebhook implements ModelInterface, ArrayAccess public function setType($type) { $allowedValues = $this->getTypeAllowableValues(); - if (!is_null($type) && !in_array($type, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'type', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); + if (!\is_null($type) && !\in_array($type, $allowedValues, \true)) { + throw new \InvalidArgumentException(\sprintf("Invalid value for 'type', must be one of '%s'", \implode("', '", $allowedValues))); } $this->container['type'] = $type; - return $this; } /** @@ -416,7 +320,6 @@ class CreateWebhook implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -428,7 +331,6 @@ class CreateWebhook implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -439,13 +341,12 @@ class CreateWebhook implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -457,7 +358,6 @@ class CreateWebhook implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -465,15 +365,10 @@ class CreateWebhook implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreatedProcessId.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreatedProcessId.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreatedProcessId.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreatedProcessId.php index d1ed5a4..e3f2c0c 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/CreatedProcessId.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/CreatedProcessId.php @@ -1,4 +1,5 @@ 'int' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['processId' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'processId' => 'int64' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['processId' => 'int64']; /** * Array of property to type mappings. Used for (de)serialization * @@ -78,7 +67,6 @@ class CreatedProcessId implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -88,35 +76,25 @@ class CreatedProcessId implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'processId' => 'processId' - ]; - + protected static $attributeMap = ['processId' => 'processId']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'processId' => 'setProcessId' - ]; - + protected static $setters = ['processId' => 'setProcessId']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'processId' => 'getProcessId' - ]; - + protected static $getters = ['processId' => 'getProcessId']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -127,7 +105,6 @@ class CreatedProcessId implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -137,7 +114,6 @@ class CreatedProcessId implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -147,7 +123,6 @@ class CreatedProcessId implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -157,18 +132,12 @@ class CreatedProcessId implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -179,7 +148,6 @@ class CreatedProcessId implements ModelInterface, ArrayAccess { $this->container['processId'] = isset($data['processId']) ? $data['processId'] : null; } - /** * Show all the invalid properties with reasons. * @@ -188,13 +156,11 @@ class CreatedProcessId implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['processId'] === null) { $invalidProperties[] = "'processId' can't be null"; } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -203,10 +169,8 @@ class CreatedProcessId implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets processId * @@ -216,7 +180,6 @@ class CreatedProcessId implements ModelInterface, ArrayAccess { return $this->container['processId']; } - /** * Sets processId * @@ -227,7 +190,6 @@ class CreatedProcessId implements ModelInterface, ArrayAccess public function setProcessId($processId) { $this->container['processId'] = $processId; - return $this; } /** @@ -241,7 +203,6 @@ class CreatedProcessId implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -253,7 +214,6 @@ class CreatedProcessId implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -264,13 +224,12 @@ class CreatedProcessId implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -282,7 +241,6 @@ class CreatedProcessId implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -290,15 +248,10 @@ class CreatedProcessId implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/DeleteHardbounces.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/DeleteHardbounces.php similarity index 81% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/DeleteHardbounces.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/DeleteHardbounces.php index 335e0da..4d26398 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/DeleteHardbounces.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/DeleteHardbounces.php @@ -1,4 +1,5 @@ 'string', - 'endDate' => 'string', - 'contactEmail' => 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['startDate' => 'string', 'endDate' => 'string', 'contactEmail' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'startDate' => null, - 'endDate' => null, - 'contactEmail' => 'email' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['startDate' => null, 'endDate' => null, 'contactEmail' => 'email']; /** * Array of property to type mappings. Used for (de)serialization * @@ -82,7 +67,6 @@ class DeleteHardbounces implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -92,41 +76,25 @@ class DeleteHardbounces implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'startDate' => 'startDate', - 'endDate' => 'endDate', - 'contactEmail' => 'contactEmail' - ]; - + protected static $attributeMap = ['startDate' => 'startDate', 'endDate' => 'endDate', 'contactEmail' => 'contactEmail']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'startDate' => 'setStartDate', - 'endDate' => 'setEndDate', - 'contactEmail' => 'setContactEmail' - ]; - + protected static $setters = ['startDate' => 'setStartDate', 'endDate' => 'setEndDate', 'contactEmail' => 'setContactEmail']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'startDate' => 'getStartDate', - 'endDate' => 'getEndDate', - 'contactEmail' => 'getContactEmail' - ]; - + protected static $getters = ['startDate' => 'getStartDate', 'endDate' => 'getEndDate', 'contactEmail' => 'getContactEmail']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -137,7 +105,6 @@ class DeleteHardbounces implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -147,7 +114,6 @@ class DeleteHardbounces implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -157,7 +123,6 @@ class DeleteHardbounces implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -167,18 +132,12 @@ class DeleteHardbounces implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -191,7 +150,6 @@ class DeleteHardbounces implements ModelInterface, ArrayAccess $this->container['endDate'] = isset($data['endDate']) ? $data['endDate'] : null; $this->container['contactEmail'] = isset($data['contactEmail']) ? $data['contactEmail'] : null; } - /** * Show all the invalid properties with reasons. * @@ -200,10 +158,8 @@ class DeleteHardbounces implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -212,10 +168,8 @@ class DeleteHardbounces implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets startDate * @@ -225,7 +179,6 @@ class DeleteHardbounces implements ModelInterface, ArrayAccess { return $this->container['startDate']; } - /** * Sets startDate * @@ -236,10 +189,8 @@ class DeleteHardbounces implements ModelInterface, ArrayAccess public function setStartDate($startDate) { $this->container['startDate'] = $startDate; - return $this; } - /** * Gets endDate * @@ -249,7 +200,6 @@ class DeleteHardbounces implements ModelInterface, ArrayAccess { return $this->container['endDate']; } - /** * Sets endDate * @@ -260,10 +210,8 @@ class DeleteHardbounces implements ModelInterface, ArrayAccess public function setEndDate($endDate) { $this->container['endDate'] = $endDate; - return $this; } - /** * Gets contactEmail * @@ -273,7 +221,6 @@ class DeleteHardbounces implements ModelInterface, ArrayAccess { return $this->container['contactEmail']; } - /** * Sets contactEmail * @@ -284,7 +231,6 @@ class DeleteHardbounces implements ModelInterface, ArrayAccess public function setContactEmail($contactEmail) { $this->container['contactEmail'] = $contactEmail; - return $this; } /** @@ -298,7 +244,6 @@ class DeleteHardbounces implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -310,7 +255,6 @@ class DeleteHardbounces implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -321,13 +265,12 @@ class DeleteHardbounces implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -339,7 +282,6 @@ class DeleteHardbounces implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -347,15 +289,10 @@ class DeleteHardbounces implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/EmailExportRecipients.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/EmailExportRecipients.php similarity index 74% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/EmailExportRecipients.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/EmailExportRecipients.php index a410b91..c52a4a7 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/EmailExportRecipients.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/EmailExportRecipients.php @@ -1,4 +1,5 @@ 'string', - 'recipientsType' => 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['notifyURL' => 'string', 'recipientsType' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'notifyURL' => 'url', - 'recipientsType' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['notifyURL' => 'url', 'recipientsType' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -80,7 +67,6 @@ class EmailExportRecipients implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -90,38 +76,25 @@ class EmailExportRecipients implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'notifyURL' => 'notifyURL', - 'recipientsType' => 'recipientsType' - ]; - + protected static $attributeMap = ['notifyURL' => 'notifyURL', 'recipientsType' => 'recipientsType']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'notifyURL' => 'setNotifyURL', - 'recipientsType' => 'setRecipientsType' - ]; - + protected static $setters = ['notifyURL' => 'setNotifyURL', 'recipientsType' => 'setRecipientsType']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'notifyURL' => 'getNotifyURL', - 'recipientsType' => 'getRecipientsType' - ]; - + protected static $getters = ['notifyURL' => 'getNotifyURL', 'recipientsType' => 'getRecipientsType']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -132,7 +105,6 @@ class EmailExportRecipients implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -142,7 +114,6 @@ class EmailExportRecipients implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -152,7 +123,6 @@ class EmailExportRecipients implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -162,7 +132,6 @@ class EmailExportRecipients implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - const RECIPIENTS_TYPE_ALL = 'all'; const RECIPIENTS_TYPE_NON_CLICKERS = 'nonClickers'; const RECIPIENTS_TYPE_NON_OPENERS = 'nonOpeners'; @@ -171,9 +140,6 @@ class EmailExportRecipients implements ModelInterface, ArrayAccess const RECIPIENTS_TYPE_SOFT_BOUNCES = 'softBounces'; const RECIPIENTS_TYPE_HARD_BOUNCES = 'hardBounces'; const RECIPIENTS_TYPE_UNSUBSCRIBED = 'unsubscribed'; - - - /** * Gets allowable values of the enum * @@ -181,26 +147,14 @@ class EmailExportRecipients implements ModelInterface, ArrayAccess */ public function getRecipientsTypeAllowableValues() { - return [ - self::RECIPIENTS_TYPE_ALL, - self::RECIPIENTS_TYPE_NON_CLICKERS, - self::RECIPIENTS_TYPE_NON_OPENERS, - self::RECIPIENTS_TYPE_CLICKERS, - self::RECIPIENTS_TYPE_OPENERS, - self::RECIPIENTS_TYPE_SOFT_BOUNCES, - self::RECIPIENTS_TYPE_HARD_BOUNCES, - self::RECIPIENTS_TYPE_UNSUBSCRIBED, - ]; + return [self::RECIPIENTS_TYPE_ALL, self::RECIPIENTS_TYPE_NON_CLICKERS, self::RECIPIENTS_TYPE_NON_OPENERS, self::RECIPIENTS_TYPE_CLICKERS, self::RECIPIENTS_TYPE_OPENERS, self::RECIPIENTS_TYPE_SOFT_BOUNCES, self::RECIPIENTS_TYPE_HARD_BOUNCES, self::RECIPIENTS_TYPE_UNSUBSCRIBED]; } - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -212,7 +166,6 @@ class EmailExportRecipients implements ModelInterface, ArrayAccess $this->container['notifyURL'] = isset($data['notifyURL']) ? $data['notifyURL'] : null; $this->container['recipientsType'] = isset($data['recipientsType']) ? $data['recipientsType'] : null; } - /** * Show all the invalid properties with reasons. * @@ -221,21 +174,15 @@ class EmailExportRecipients implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['recipientsType'] === null) { $invalidProperties[] = "'recipientsType' can't be null"; } $allowedValues = $this->getRecipientsTypeAllowableValues(); - if (!is_null($this->container['recipientsType']) && !in_array($this->container['recipientsType'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value for 'recipientsType', must be one of '%s'", - implode("', '", $allowedValues) - ); + if (!\is_null($this->container['recipientsType']) && !\in_array($this->container['recipientsType'], $allowedValues, \true)) { + $invalidProperties[] = \sprintf("invalid value for 'recipientsType', must be one of '%s'", \implode("', '", $allowedValues)); } - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -244,10 +191,8 @@ class EmailExportRecipients implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets notifyURL * @@ -257,21 +202,18 @@ class EmailExportRecipients implements ModelInterface, ArrayAccess { return $this->container['notifyURL']; } - /** * Sets notifyURL * - * @param string $notifyURL Webhook called once the export process is finished + * @param string $notifyURL Webhook called once the export process is finished. For reference, https://help.sendinblue.com/hc/en-us/articles/360007666479 * * @return $this */ public function setNotifyURL($notifyURL) { $this->container['notifyURL'] = $notifyURL; - return $this; } - /** * Gets recipientsType * @@ -281,7 +223,6 @@ class EmailExportRecipients implements ModelInterface, ArrayAccess { return $this->container['recipientsType']; } - /** * Sets recipientsType * @@ -292,16 +233,10 @@ class EmailExportRecipients implements ModelInterface, ArrayAccess public function setRecipientsType($recipientsType) { $allowedValues = $this->getRecipientsTypeAllowableValues(); - if (!in_array($recipientsType, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'recipientsType', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); + if (!\in_array($recipientsType, $allowedValues, \true)) { + throw new \InvalidArgumentException(\sprintf("Invalid value for 'recipientsType', must be one of '%s'", \implode("', '", $allowedValues))); } $this->container['recipientsType'] = $recipientsType; - return $this; } /** @@ -315,7 +250,6 @@ class EmailExportRecipients implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -327,7 +261,6 @@ class EmailExportRecipients implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -338,13 +271,12 @@ class EmailExportRecipients implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -356,7 +288,6 @@ class EmailExportRecipients implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -364,15 +295,10 @@ class EmailExportRecipients implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/ErrorModel.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/ErrorModel.php similarity index 74% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/ErrorModel.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/ErrorModel.php index d63e6f9..f33e004 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/ErrorModel.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/ErrorModel.php @@ -1,4 +1,5 @@ 'string', - 'message' => 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['code' => 'string', 'message' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'code' => null, - 'message' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['code' => null, 'message' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -80,7 +67,6 @@ class ErrorModel implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -90,38 +76,25 @@ class ErrorModel implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message' - ]; - + protected static $attributeMap = ['code' => 'code', 'message' => 'message']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage' - ]; - + protected static $setters = ['code' => 'setCode', 'message' => 'setMessage']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage' - ]; - + protected static $getters = ['code' => 'getCode', 'message' => 'getMessage']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -132,7 +105,6 @@ class ErrorModel implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -142,7 +114,6 @@ class ErrorModel implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -152,7 +123,6 @@ class ErrorModel implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -162,7 +132,6 @@ class ErrorModel implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - const CODE_INVALID_PARAMETER = 'invalid_parameter'; const CODE_MISSING_PARAMETER = 'missing_parameter'; const CODE_OUT_OF_RANGE = 'out_of_range'; @@ -178,9 +147,6 @@ class ErrorModel implements ModelInterface, ArrayAccess const CODE_UNAUTHORIZED = 'unauthorized'; const CODE_ACCOUNT_UNDER_VALIDATION = 'account_under_validation'; const CODE_NOT_ACCEPTABLE = 'not_acceptable'; - - - /** * Gets allowable values of the enum * @@ -188,33 +154,14 @@ class ErrorModel implements ModelInterface, ArrayAccess */ public function getCodeAllowableValues() { - return [ - self::CODE_INVALID_PARAMETER, - self::CODE_MISSING_PARAMETER, - self::CODE_OUT_OF_RANGE, - self::CODE_CAMPAIGN_PROCESSING, - self::CODE_CAMPAIGN_SENT, - self::CODE_DOCUMENT_NOT_FOUND, - self::CODE_RESELLER_PERMISSION_DENIED, - self::CODE_NOT_ENOUGH_CREDITS, - self::CODE_PERMISSION_DENIED, - self::CODE_DUPLICATE_PARAMETER, - self::CODE_DUPLICATE_REQUEST, - self::CODE_METHOD_NOT_ALLOWED, - self::CODE_UNAUTHORIZED, - self::CODE_ACCOUNT_UNDER_VALIDATION, - self::CODE_NOT_ACCEPTABLE, - ]; + return [self::CODE_INVALID_PARAMETER, self::CODE_MISSING_PARAMETER, self::CODE_OUT_OF_RANGE, self::CODE_CAMPAIGN_PROCESSING, self::CODE_CAMPAIGN_SENT, self::CODE_DOCUMENT_NOT_FOUND, self::CODE_RESELLER_PERMISSION_DENIED, self::CODE_NOT_ENOUGH_CREDITS, self::CODE_PERMISSION_DENIED, self::CODE_DUPLICATE_PARAMETER, self::CODE_DUPLICATE_REQUEST, self::CODE_METHOD_NOT_ALLOWED, self::CODE_UNAUTHORIZED, self::CODE_ACCOUNT_UNDER_VALIDATION, self::CODE_NOT_ACCEPTABLE]; } - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -226,7 +173,6 @@ class ErrorModel implements ModelInterface, ArrayAccess $this->container['code'] = isset($data['code']) ? $data['code'] : null; $this->container['message'] = isset($data['message']) ? $data['message'] : null; } - /** * Show all the invalid properties with reasons. * @@ -235,24 +181,18 @@ class ErrorModel implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['code'] === null) { $invalidProperties[] = "'code' can't be null"; } $allowedValues = $this->getCodeAllowableValues(); - if (!is_null($this->container['code']) && !in_array($this->container['code'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value for 'code', must be one of '%s'", - implode("', '", $allowedValues) - ); + if (!\is_null($this->container['code']) && !\in_array($this->container['code'], $allowedValues, \true)) { + $invalidProperties[] = \sprintf("invalid value for 'code', must be one of '%s'", \implode("', '", $allowedValues)); } - if ($this->container['message'] === null) { $invalidProperties[] = "'message' can't be null"; } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -261,10 +201,8 @@ class ErrorModel implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets code * @@ -274,7 +212,6 @@ class ErrorModel implements ModelInterface, ArrayAccess { return $this->container['code']; } - /** * Sets code * @@ -285,19 +222,12 @@ class ErrorModel implements ModelInterface, ArrayAccess public function setCode($code) { $allowedValues = $this->getCodeAllowableValues(); - if (!in_array($code, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'code', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); + if (!\in_array($code, $allowedValues, \true)) { + throw new \InvalidArgumentException(\sprintf("Invalid value for 'code', must be one of '%s'", \implode("', '", $allowedValues))); } $this->container['code'] = $code; - return $this; } - /** * Gets message * @@ -307,7 +237,6 @@ class ErrorModel implements ModelInterface, ArrayAccess { return $this->container['message']; } - /** * Sets message * @@ -318,7 +247,6 @@ class ErrorModel implements ModelInterface, ArrayAccess public function setMessage($message) { $this->container['message'] = $message; - return $this; } /** @@ -332,7 +260,6 @@ class ErrorModel implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -344,7 +271,6 @@ class ErrorModel implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -355,13 +281,12 @@ class ErrorModel implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -373,7 +298,6 @@ class ErrorModel implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -381,15 +305,10 @@ class ErrorModel implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAccount.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAccount.php similarity index 79% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAccount.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAccount.php index 3e0fea9..617e91b 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAccount.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAccount.php @@ -1,4 +1,5 @@ 'string', - 'firstName' => 'string', - 'lastName' => 'string', - 'companyName' => 'string', - 'address' => '\SendinBlue\Client\Model\GetExtendedClientAddress', - 'plan' => '\SendinBlue\Client\Model\GetAccountPlan[]', - 'relay' => '\SendinBlue\Client\Model\GetAccountRelay', - 'marketingAutomation' => '\SendinBlue\Client\Model\GetAccountMarketingAutomation' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['email' => 'string', 'firstName' => 'string', 'lastName' => 'string', 'companyName' => 'string', 'address' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedClientAddress', 'plan' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAccountPlan[]', 'relay' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAccountRelay', 'marketingAutomation' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAccountMarketingAutomation']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'email' => 'email', - 'firstName' => null, - 'lastName' => null, - 'companyName' => null, - 'address' => null, - 'plan' => null, - 'relay' => null, - 'marketingAutomation' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['email' => 'email', 'firstName' => null, 'lastName' => null, 'companyName' => null, 'address' => null, 'plan' => null, 'relay' => null, 'marketingAutomation' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -92,7 +67,6 @@ class GetAccount implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -102,56 +76,25 @@ class GetAccount implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'email' => 'email', - 'firstName' => 'firstName', - 'lastName' => 'lastName', - 'companyName' => 'companyName', - 'address' => 'address', - 'plan' => 'plan', - 'relay' => 'relay', - 'marketingAutomation' => 'marketingAutomation' - ]; - + protected static $attributeMap = ['email' => 'email', 'firstName' => 'firstName', 'lastName' => 'lastName', 'companyName' => 'companyName', 'address' => 'address', 'plan' => 'plan', 'relay' => 'relay', 'marketingAutomation' => 'marketingAutomation']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'email' => 'setEmail', - 'firstName' => 'setFirstName', - 'lastName' => 'setLastName', - 'companyName' => 'setCompanyName', - 'address' => 'setAddress', - 'plan' => 'setPlan', - 'relay' => 'setRelay', - 'marketingAutomation' => 'setMarketingAutomation' - ]; - + protected static $setters = ['email' => 'setEmail', 'firstName' => 'setFirstName', 'lastName' => 'setLastName', 'companyName' => 'setCompanyName', 'address' => 'setAddress', 'plan' => 'setPlan', 'relay' => 'setRelay', 'marketingAutomation' => 'setMarketingAutomation']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'email' => 'getEmail', - 'firstName' => 'getFirstName', - 'lastName' => 'getLastName', - 'companyName' => 'getCompanyName', - 'address' => 'getAddress', - 'plan' => 'getPlan', - 'relay' => 'getRelay', - 'marketingAutomation' => 'getMarketingAutomation' - ]; - + protected static $getters = ['email' => 'getEmail', 'firstName' => 'getFirstName', 'lastName' => 'getLastName', 'companyName' => 'getCompanyName', 'address' => 'getAddress', 'plan' => 'getPlan', 'relay' => 'getRelay', 'marketingAutomation' => 'getMarketingAutomation']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -162,7 +105,6 @@ class GetAccount implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -172,7 +114,6 @@ class GetAccount implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -182,7 +123,6 @@ class GetAccount implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -192,18 +132,12 @@ class GetAccount implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -221,7 +155,6 @@ class GetAccount implements ModelInterface, ArrayAccess $this->container['relay'] = isset($data['relay']) ? $data['relay'] : null; $this->container['marketingAutomation'] = isset($data['marketingAutomation']) ? $data['marketingAutomation'] : null; } - /** * Show all the invalid properties with reasons. * @@ -230,7 +163,6 @@ class GetAccount implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['email'] === null) { $invalidProperties[] = "'email' can't be null"; } @@ -254,7 +186,6 @@ class GetAccount implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -263,10 +194,8 @@ class GetAccount implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets email * @@ -276,7 +205,6 @@ class GetAccount implements ModelInterface, ArrayAccess { return $this->container['email']; } - /** * Sets email * @@ -287,10 +215,8 @@ class GetAccount implements ModelInterface, ArrayAccess public function setEmail($email) { $this->container['email'] = $email; - return $this; } - /** * Gets firstName * @@ -300,7 +226,6 @@ class GetAccount implements ModelInterface, ArrayAccess { return $this->container['firstName']; } - /** * Sets firstName * @@ -311,10 +236,8 @@ class GetAccount implements ModelInterface, ArrayAccess public function setFirstName($firstName) { $this->container['firstName'] = $firstName; - return $this; } - /** * Gets lastName * @@ -324,7 +247,6 @@ class GetAccount implements ModelInterface, ArrayAccess { return $this->container['lastName']; } - /** * Sets lastName * @@ -335,10 +257,8 @@ class GetAccount implements ModelInterface, ArrayAccess public function setLastName($lastName) { $this->container['lastName'] = $lastName; - return $this; } - /** * Gets companyName * @@ -348,7 +268,6 @@ class GetAccount implements ModelInterface, ArrayAccess { return $this->container['companyName']; } - /** * Sets companyName * @@ -359,10 +278,8 @@ class GetAccount implements ModelInterface, ArrayAccess public function setCompanyName($companyName) { $this->container['companyName'] = $companyName; - return $this; } - /** * Gets address * @@ -372,7 +289,6 @@ class GetAccount implements ModelInterface, ArrayAccess { return $this->container['address']; } - /** * Sets address * @@ -383,10 +299,8 @@ class GetAccount implements ModelInterface, ArrayAccess public function setAddress($address) { $this->container['address'] = $address; - return $this; } - /** * Gets plan * @@ -396,7 +310,6 @@ class GetAccount implements ModelInterface, ArrayAccess { return $this->container['plan']; } - /** * Sets plan * @@ -407,10 +320,8 @@ class GetAccount implements ModelInterface, ArrayAccess public function setPlan($plan) { $this->container['plan'] = $plan; - return $this; } - /** * Gets relay * @@ -420,7 +331,6 @@ class GetAccount implements ModelInterface, ArrayAccess { return $this->container['relay']; } - /** * Sets relay * @@ -431,10 +341,8 @@ class GetAccount implements ModelInterface, ArrayAccess public function setRelay($relay) { $this->container['relay'] = $relay; - return $this; } - /** * Gets marketingAutomation * @@ -444,7 +352,6 @@ class GetAccount implements ModelInterface, ArrayAccess { return $this->container['marketingAutomation']; } - /** * Sets marketingAutomation * @@ -455,7 +362,6 @@ class GetAccount implements ModelInterface, ArrayAccess public function setMarketingAutomation($marketingAutomation) { $this->container['marketingAutomation'] = $marketingAutomation; - return $this; } /** @@ -469,7 +375,6 @@ class GetAccount implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -481,7 +386,6 @@ class GetAccount implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -492,13 +396,12 @@ class GetAccount implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -510,7 +413,6 @@ class GetAccount implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -518,15 +420,10 @@ class GetAccount implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAccountMarketingAutomation.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAccountMarketingAutomation.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAccountMarketingAutomation.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAccountMarketingAutomation.php index b59305d..182c9ed 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAccountMarketingAutomation.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAccountMarketingAutomation.php @@ -1,4 +1,5 @@ 'string', - 'enabled' => 'bool' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['key' => 'string', 'enabled' => 'bool']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'key' => null, - 'enabled' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['key' => null, 'enabled' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -80,7 +67,6 @@ class GetAccountMarketingAutomation implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -90,38 +76,25 @@ class GetAccountMarketingAutomation implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'key' => 'key', - 'enabled' => 'enabled' - ]; - + protected static $attributeMap = ['key' => 'key', 'enabled' => 'enabled']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'key' => 'setKey', - 'enabled' => 'setEnabled' - ]; - + protected static $setters = ['key' => 'setKey', 'enabled' => 'setEnabled']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'key' => 'getKey', - 'enabled' => 'getEnabled' - ]; - + protected static $getters = ['key' => 'getKey', 'enabled' => 'getEnabled']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -132,7 +105,6 @@ class GetAccountMarketingAutomation implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -142,7 +114,6 @@ class GetAccountMarketingAutomation implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -152,7 +123,6 @@ class GetAccountMarketingAutomation implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -162,18 +132,12 @@ class GetAccountMarketingAutomation implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -185,7 +149,6 @@ class GetAccountMarketingAutomation implements ModelInterface, ArrayAccess $this->container['key'] = isset($data['key']) ? $data['key'] : null; $this->container['enabled'] = isset($data['enabled']) ? $data['enabled'] : null; } - /** * Show all the invalid properties with reasons. * @@ -194,13 +157,11 @@ class GetAccountMarketingAutomation implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['enabled'] === null) { $invalidProperties[] = "'enabled' can't be null"; } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -209,10 +170,8 @@ class GetAccountMarketingAutomation implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets key * @@ -222,7 +181,6 @@ class GetAccountMarketingAutomation implements ModelInterface, ArrayAccess { return $this->container['key']; } - /** * Sets key * @@ -233,10 +191,8 @@ class GetAccountMarketingAutomation implements ModelInterface, ArrayAccess public function setKey($key) { $this->container['key'] = $key; - return $this; } - /** * Gets enabled * @@ -246,7 +202,6 @@ class GetAccountMarketingAutomation implements ModelInterface, ArrayAccess { return $this->container['enabled']; } - /** * Sets enabled * @@ -257,7 +212,6 @@ class GetAccountMarketingAutomation implements ModelInterface, ArrayAccess public function setEnabled($enabled) { $this->container['enabled'] = $enabled; - return $this; } /** @@ -271,7 +225,6 @@ class GetAccountMarketingAutomation implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -283,7 +236,6 @@ class GetAccountMarketingAutomation implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -294,13 +246,12 @@ class GetAccountMarketingAutomation implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -312,7 +263,6 @@ class GetAccountMarketingAutomation implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -320,15 +270,10 @@ class GetAccountMarketingAutomation implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAccountPlan.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAccountPlan.php similarity index 73% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAccountPlan.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAccountPlan.php index dd3b616..331c064 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAccountPlan.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAccountPlan.php @@ -1,4 +1,5 @@ 'string', - 'creditsType' => 'string', - 'credits' => 'float', - 'startDate' => '\DateTime', - 'endDate' => '\DateTime', - 'userLimit' => 'int' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['type' => 'string', 'creditsType' => 'string', 'credits' => 'float', 'startDate' => '\\DateTime', 'endDate' => '\\DateTime', 'userLimit' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'type' => null, - 'creditsType' => null, - 'credits' => 'float', - 'startDate' => 'date', - 'endDate' => 'date', - 'userLimit' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['type' => null, 'creditsType' => null, 'credits' => 'float', 'startDate' => 'date', 'endDate' => 'date', 'userLimit' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -88,7 +67,6 @@ class GetAccountPlan implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -98,50 +76,25 @@ class GetAccountPlan implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'type' => 'type', - 'creditsType' => 'creditsType', - 'credits' => 'credits', - 'startDate' => 'startDate', - 'endDate' => 'endDate', - 'userLimit' => 'userLimit' - ]; - + protected static $attributeMap = ['type' => 'type', 'creditsType' => 'creditsType', 'credits' => 'credits', 'startDate' => 'startDate', 'endDate' => 'endDate', 'userLimit' => 'userLimit']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'type' => 'setType', - 'creditsType' => 'setCreditsType', - 'credits' => 'setCredits', - 'startDate' => 'setStartDate', - 'endDate' => 'setEndDate', - 'userLimit' => 'setUserLimit' - ]; - + protected static $setters = ['type' => 'setType', 'creditsType' => 'setCreditsType', 'credits' => 'setCredits', 'startDate' => 'setStartDate', 'endDate' => 'setEndDate', 'userLimit' => 'setUserLimit']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'type' => 'getType', - 'creditsType' => 'getCreditsType', - 'credits' => 'getCredits', - 'startDate' => 'getStartDate', - 'endDate' => 'getEndDate', - 'userLimit' => 'getUserLimit' - ]; - + protected static $getters = ['type' => 'getType', 'creditsType' => 'getCreditsType', 'credits' => 'getCredits', 'startDate' => 'getStartDate', 'endDate' => 'getEndDate', 'userLimit' => 'getUserLimit']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -152,7 +105,6 @@ class GetAccountPlan implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -162,7 +114,6 @@ class GetAccountPlan implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -172,7 +123,6 @@ class GetAccountPlan implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -182,16 +132,12 @@ class GetAccountPlan implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - const TYPE_PAY_AS_YOU_GO = 'payAsYouGo'; const TYPE_FREE = 'free'; const TYPE_SUBSCRIPTION = 'subscription'; const TYPE_SMS = 'sms'; const TYPE_RESELLER = 'reseller'; const CREDITS_TYPE_SEND_LIMIT = 'sendLimit'; - - - /** * Gets allowable values of the enum * @@ -199,15 +145,8 @@ class GetAccountPlan implements ModelInterface, ArrayAccess */ public function getTypeAllowableValues() { - return [ - self::TYPE_PAY_AS_YOU_GO, - self::TYPE_FREE, - self::TYPE_SUBSCRIPTION, - self::TYPE_SMS, - self::TYPE_RESELLER, - ]; + return [self::TYPE_PAY_AS_YOU_GO, self::TYPE_FREE, self::TYPE_SUBSCRIPTION, self::TYPE_SMS, self::TYPE_RESELLER]; } - /** * Gets allowable values of the enum * @@ -215,19 +154,14 @@ class GetAccountPlan implements ModelInterface, ArrayAccess */ public function getCreditsTypeAllowableValues() { - return [ - self::CREDITS_TYPE_SEND_LIMIT, - ]; + return [self::CREDITS_TYPE_SEND_LIMIT]; } - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -243,7 +177,6 @@ class GetAccountPlan implements ModelInterface, ArrayAccess $this->container['endDate'] = isset($data['endDate']) ? $data['endDate'] : null; $this->container['userLimit'] = isset($data['userLimit']) ? $data['userLimit'] : null; } - /** * Show all the invalid properties with reasons. * @@ -252,35 +185,25 @@ class GetAccountPlan implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['type'] === null) { $invalidProperties[] = "'type' can't be null"; } $allowedValues = $this->getTypeAllowableValues(); - if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value for 'type', must be one of '%s'", - implode("', '", $allowedValues) - ); + if (!\is_null($this->container['type']) && !\in_array($this->container['type'], $allowedValues, \true)) { + $invalidProperties[] = \sprintf("invalid value for 'type', must be one of '%s'", \implode("', '", $allowedValues)); } - if ($this->container['creditsType'] === null) { $invalidProperties[] = "'creditsType' can't be null"; } $allowedValues = $this->getCreditsTypeAllowableValues(); - if (!is_null($this->container['creditsType']) && !in_array($this->container['creditsType'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value for 'creditsType', must be one of '%s'", - implode("', '", $allowedValues) - ); + if (!\is_null($this->container['creditsType']) && !\in_array($this->container['creditsType'], $allowedValues, \true)) { + $invalidProperties[] = \sprintf("invalid value for 'creditsType', must be one of '%s'", \implode("', '", $allowedValues)); } - if ($this->container['credits'] === null) { $invalidProperties[] = "'credits' can't be null"; } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -289,10 +212,8 @@ class GetAccountPlan implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets type * @@ -302,7 +223,6 @@ class GetAccountPlan implements ModelInterface, ArrayAccess { return $this->container['type']; } - /** * Sets type * @@ -313,19 +233,12 @@ class GetAccountPlan implements ModelInterface, ArrayAccess public function setType($type) { $allowedValues = $this->getTypeAllowableValues(); - if (!in_array($type, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'type', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); + if (!\in_array($type, $allowedValues, \true)) { + throw new \InvalidArgumentException(\sprintf("Invalid value for 'type', must be one of '%s'", \implode("', '", $allowedValues))); } $this->container['type'] = $type; - return $this; } - /** * Gets creditsType * @@ -335,7 +248,6 @@ class GetAccountPlan implements ModelInterface, ArrayAccess { return $this->container['creditsType']; } - /** * Sets creditsType * @@ -346,19 +258,12 @@ class GetAccountPlan implements ModelInterface, ArrayAccess public function setCreditsType($creditsType) { $allowedValues = $this->getCreditsTypeAllowableValues(); - if (!in_array($creditsType, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'creditsType', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); + if (!\in_array($creditsType, $allowedValues, \true)) { + throw new \InvalidArgumentException(\sprintf("Invalid value for 'creditsType', must be one of '%s'", \implode("', '", $allowedValues))); } $this->container['creditsType'] = $creditsType; - return $this; } - /** * Gets credits * @@ -368,7 +273,6 @@ class GetAccountPlan implements ModelInterface, ArrayAccess { return $this->container['credits']; } - /** * Sets credits * @@ -379,10 +283,8 @@ class GetAccountPlan implements ModelInterface, ArrayAccess public function setCredits($credits) { $this->container['credits'] = $credits; - return $this; } - /** * Gets startDate * @@ -392,7 +294,6 @@ class GetAccountPlan implements ModelInterface, ArrayAccess { return $this->container['startDate']; } - /** * Sets startDate * @@ -403,10 +304,8 @@ class GetAccountPlan implements ModelInterface, ArrayAccess public function setStartDate($startDate) { $this->container['startDate'] = $startDate; - return $this; } - /** * Gets endDate * @@ -416,7 +315,6 @@ class GetAccountPlan implements ModelInterface, ArrayAccess { return $this->container['endDate']; } - /** * Sets endDate * @@ -427,10 +325,8 @@ class GetAccountPlan implements ModelInterface, ArrayAccess public function setEndDate($endDate) { $this->container['endDate'] = $endDate; - return $this; } - /** * Gets userLimit * @@ -440,7 +336,6 @@ class GetAccountPlan implements ModelInterface, ArrayAccess { return $this->container['userLimit']; } - /** * Sets userLimit * @@ -451,7 +346,6 @@ class GetAccountPlan implements ModelInterface, ArrayAccess public function setUserLimit($userLimit) { $this->container['userLimit'] = $userLimit; - return $this; } /** @@ -465,7 +359,6 @@ class GetAccountPlan implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -477,7 +370,6 @@ class GetAccountPlan implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -488,13 +380,12 @@ class GetAccountPlan implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -506,7 +397,6 @@ class GetAccountPlan implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -514,15 +404,10 @@ class GetAccountPlan implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAccountRelay.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAccountRelay.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAccountRelay.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAccountRelay.php index a49a56c..b72f495 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAccountRelay.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAccountRelay.php @@ -1,4 +1,5 @@ 'bool', - 'data' => '\SendinBlue\Client\Model\GetAccountRelayData' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['enabled' => 'bool', 'data' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAccountRelayData']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'enabled' => null, - 'data' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['enabled' => null, 'data' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -81,7 +68,6 @@ class GetAccountRelay implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -91,38 +77,25 @@ class GetAccountRelay implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'enabled' => 'enabled', - 'data' => 'data' - ]; - + protected static $attributeMap = ['enabled' => 'enabled', 'data' => 'data']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'enabled' => 'setEnabled', - 'data' => 'setData' - ]; - + protected static $setters = ['enabled' => 'setEnabled', 'data' => 'setData']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'enabled' => 'getEnabled', - 'data' => 'getData' - ]; - + protected static $getters = ['enabled' => 'getEnabled', 'data' => 'getData']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -133,7 +106,6 @@ class GetAccountRelay implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -143,7 +115,6 @@ class GetAccountRelay implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -153,7 +124,6 @@ class GetAccountRelay implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -163,18 +133,12 @@ class GetAccountRelay implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -186,7 +150,6 @@ class GetAccountRelay implements ModelInterface, ArrayAccess $this->container['enabled'] = isset($data['enabled']) ? $data['enabled'] : null; $this->container['data'] = isset($data['data']) ? $data['data'] : null; } - /** * Show all the invalid properties with reasons. * @@ -195,7 +158,6 @@ class GetAccountRelay implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['enabled'] === null) { $invalidProperties[] = "'enabled' can't be null"; } @@ -204,7 +166,6 @@ class GetAccountRelay implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -213,10 +174,8 @@ class GetAccountRelay implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets enabled * @@ -226,7 +185,6 @@ class GetAccountRelay implements ModelInterface, ArrayAccess { return $this->container['enabled']; } - /** * Sets enabled * @@ -237,10 +195,8 @@ class GetAccountRelay implements ModelInterface, ArrayAccess public function setEnabled($enabled) { $this->container['enabled'] = $enabled; - return $this; } - /** * Gets data * @@ -250,7 +206,6 @@ class GetAccountRelay implements ModelInterface, ArrayAccess { return $this->container['data']; } - /** * Sets data * @@ -261,7 +216,6 @@ class GetAccountRelay implements ModelInterface, ArrayAccess public function setData($data) { $this->container['data'] = $data; - return $this; } /** @@ -275,7 +229,6 @@ class GetAccountRelay implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -287,7 +240,6 @@ class GetAccountRelay implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -298,13 +250,12 @@ class GetAccountRelay implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -316,7 +267,6 @@ class GetAccountRelay implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -324,15 +274,10 @@ class GetAccountRelay implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAccountRelayData.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAccountRelayData.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAccountRelayData.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAccountRelayData.php index 41cc0be..96caab4 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAccountRelayData.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAccountRelayData.php @@ -1,4 +1,5 @@ 'string', - 'relay' => 'string', - 'port' => 'int' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['userName' => 'string', 'relay' => 'string', 'port' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'userName' => 'email', - 'relay' => null, - 'port' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['userName' => 'email', 'relay' => null, 'port' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -83,7 +68,6 @@ class GetAccountRelayData implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -93,41 +77,25 @@ class GetAccountRelayData implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'userName' => 'userName', - 'relay' => 'relay', - 'port' => 'port' - ]; - + protected static $attributeMap = ['userName' => 'userName', 'relay' => 'relay', 'port' => 'port']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'userName' => 'setUserName', - 'relay' => 'setRelay', - 'port' => 'setPort' - ]; - + protected static $setters = ['userName' => 'setUserName', 'relay' => 'setRelay', 'port' => 'setPort']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'userName' => 'getUserName', - 'relay' => 'getRelay', - 'port' => 'getPort' - ]; - + protected static $getters = ['userName' => 'getUserName', 'relay' => 'getRelay', 'port' => 'getPort']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -138,7 +106,6 @@ class GetAccountRelayData implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -148,7 +115,6 @@ class GetAccountRelayData implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -158,7 +124,6 @@ class GetAccountRelayData implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -168,18 +133,12 @@ class GetAccountRelayData implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -192,7 +151,6 @@ class GetAccountRelayData implements ModelInterface, ArrayAccess $this->container['relay'] = isset($data['relay']) ? $data['relay'] : null; $this->container['port'] = isset($data['port']) ? $data['port'] : null; } - /** * Show all the invalid properties with reasons. * @@ -201,7 +159,6 @@ class GetAccountRelayData implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['userName'] === null) { $invalidProperties[] = "'userName' can't be null"; } @@ -213,7 +170,6 @@ class GetAccountRelayData implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -222,10 +178,8 @@ class GetAccountRelayData implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets userName * @@ -235,7 +189,6 @@ class GetAccountRelayData implements ModelInterface, ArrayAccess { return $this->container['userName']; } - /** * Sets userName * @@ -246,10 +199,8 @@ class GetAccountRelayData implements ModelInterface, ArrayAccess public function setUserName($userName) { $this->container['userName'] = $userName; - return $this; } - /** * Gets relay * @@ -259,7 +210,6 @@ class GetAccountRelayData implements ModelInterface, ArrayAccess { return $this->container['relay']; } - /** * Sets relay * @@ -270,10 +220,8 @@ class GetAccountRelayData implements ModelInterface, ArrayAccess public function setRelay($relay) { $this->container['relay'] = $relay; - return $this; } - /** * Gets port * @@ -283,7 +231,6 @@ class GetAccountRelayData implements ModelInterface, ArrayAccess { return $this->container['port']; } - /** * Sets port * @@ -294,7 +241,6 @@ class GetAccountRelayData implements ModelInterface, ArrayAccess public function setPort($port) { $this->container['port'] = $port; - return $this; } /** @@ -308,7 +254,6 @@ class GetAccountRelayData implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -320,7 +265,6 @@ class GetAccountRelayData implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -331,13 +275,12 @@ class GetAccountRelayData implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -349,7 +292,6 @@ class GetAccountRelayData implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -357,15 +299,10 @@ class GetAccountRelayData implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAggregatedReport.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAggregatedReport.php similarity index 80% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAggregatedReport.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAggregatedReport.php index 11c8cc0..9085864 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAggregatedReport.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAggregatedReport.php @@ -1,4 +1,5 @@ 'string', - 'requests' => 'int', - 'delivered' => 'int', - 'hardBounces' => 'int', - 'softBounces' => 'int', - 'clicks' => 'int', - 'uniqueClicks' => 'int', - 'opens' => 'int', - 'uniqueOpens' => 'int', - 'spamReports' => 'int', - 'blocked' => 'int', - 'invalid' => 'int', - 'unsubscribed' => 'int' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['range' => 'string', 'requests' => 'int', 'delivered' => 'int', 'hardBounces' => 'int', 'softBounces' => 'int', 'clicks' => 'int', 'uniqueClicks' => 'int', 'opens' => 'int', 'uniqueOpens' => 'int', 'spamReports' => 'int', 'blocked' => 'int', 'invalid' => 'int', 'unsubscribed' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'range' => null, - 'requests' => 'int64', - 'delivered' => 'int64', - 'hardBounces' => 'int64', - 'softBounces' => 'int64', - 'clicks' => 'int64', - 'uniqueClicks' => 'int64', - 'opens' => 'int64', - 'uniqueOpens' => 'int64', - 'spamReports' => 'int64', - 'blocked' => 'int64', - 'invalid' => 'int64', - 'unsubscribed' => 'int64' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['range' => null, 'requests' => 'int64', 'delivered' => 'int64', 'hardBounces' => 'int64', 'softBounces' => 'int64', 'clicks' => 'int64', 'uniqueClicks' => 'int64', 'opens' => 'int64', 'uniqueOpens' => 'int64', 'spamReports' => 'int64', 'blocked' => 'int64', 'invalid' => 'int64', 'unsubscribed' => 'int64']; /** * Array of property to type mappings. Used for (de)serialization * @@ -102,7 +67,6 @@ class GetAggregatedReport implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -112,71 +76,25 @@ class GetAggregatedReport implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'range' => 'range', - 'requests' => 'requests', - 'delivered' => 'delivered', - 'hardBounces' => 'hardBounces', - 'softBounces' => 'softBounces', - 'clicks' => 'clicks', - 'uniqueClicks' => 'uniqueClicks', - 'opens' => 'opens', - 'uniqueOpens' => 'uniqueOpens', - 'spamReports' => 'spamReports', - 'blocked' => 'blocked', - 'invalid' => 'invalid', - 'unsubscribed' => 'unsubscribed' - ]; - + protected static $attributeMap = ['range' => 'range', 'requests' => 'requests', 'delivered' => 'delivered', 'hardBounces' => 'hardBounces', 'softBounces' => 'softBounces', 'clicks' => 'clicks', 'uniqueClicks' => 'uniqueClicks', 'opens' => 'opens', 'uniqueOpens' => 'uniqueOpens', 'spamReports' => 'spamReports', 'blocked' => 'blocked', 'invalid' => 'invalid', 'unsubscribed' => 'unsubscribed']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'range' => 'setRange', - 'requests' => 'setRequests', - 'delivered' => 'setDelivered', - 'hardBounces' => 'setHardBounces', - 'softBounces' => 'setSoftBounces', - 'clicks' => 'setClicks', - 'uniqueClicks' => 'setUniqueClicks', - 'opens' => 'setOpens', - 'uniqueOpens' => 'setUniqueOpens', - 'spamReports' => 'setSpamReports', - 'blocked' => 'setBlocked', - 'invalid' => 'setInvalid', - 'unsubscribed' => 'setUnsubscribed' - ]; - + protected static $setters = ['range' => 'setRange', 'requests' => 'setRequests', 'delivered' => 'setDelivered', 'hardBounces' => 'setHardBounces', 'softBounces' => 'setSoftBounces', 'clicks' => 'setClicks', 'uniqueClicks' => 'setUniqueClicks', 'opens' => 'setOpens', 'uniqueOpens' => 'setUniqueOpens', 'spamReports' => 'setSpamReports', 'blocked' => 'setBlocked', 'invalid' => 'setInvalid', 'unsubscribed' => 'setUnsubscribed']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'range' => 'getRange', - 'requests' => 'getRequests', - 'delivered' => 'getDelivered', - 'hardBounces' => 'getHardBounces', - 'softBounces' => 'getSoftBounces', - 'clicks' => 'getClicks', - 'uniqueClicks' => 'getUniqueClicks', - 'opens' => 'getOpens', - 'uniqueOpens' => 'getUniqueOpens', - 'spamReports' => 'getSpamReports', - 'blocked' => 'getBlocked', - 'invalid' => 'getInvalid', - 'unsubscribed' => 'getUnsubscribed' - ]; - + protected static $getters = ['range' => 'getRange', 'requests' => 'getRequests', 'delivered' => 'getDelivered', 'hardBounces' => 'getHardBounces', 'softBounces' => 'getSoftBounces', 'clicks' => 'getClicks', 'uniqueClicks' => 'getUniqueClicks', 'opens' => 'getOpens', 'uniqueOpens' => 'getUniqueOpens', 'spamReports' => 'getSpamReports', 'blocked' => 'getBlocked', 'invalid' => 'getInvalid', 'unsubscribed' => 'getUnsubscribed']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -187,7 +105,6 @@ class GetAggregatedReport implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -197,7 +114,6 @@ class GetAggregatedReport implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -207,7 +123,6 @@ class GetAggregatedReport implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -217,18 +132,12 @@ class GetAggregatedReport implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -251,7 +160,6 @@ class GetAggregatedReport implements ModelInterface, ArrayAccess $this->container['invalid'] = isset($data['invalid']) ? $data['invalid'] : null; $this->container['unsubscribed'] = isset($data['unsubscribed']) ? $data['unsubscribed'] : null; } - /** * Show all the invalid properties with reasons. * @@ -260,7 +168,6 @@ class GetAggregatedReport implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['range'] === null) { $invalidProperties[] = "'range' can't be null"; } @@ -302,7 +209,6 @@ class GetAggregatedReport implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -311,10 +217,8 @@ class GetAggregatedReport implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets range * @@ -324,7 +228,6 @@ class GetAggregatedReport implements ModelInterface, ArrayAccess { return $this->container['range']; } - /** * Sets range * @@ -335,10 +238,8 @@ class GetAggregatedReport implements ModelInterface, ArrayAccess public function setRange($range) { $this->container['range'] = $range; - return $this; } - /** * Gets requests * @@ -348,7 +249,6 @@ class GetAggregatedReport implements ModelInterface, ArrayAccess { return $this->container['requests']; } - /** * Sets requests * @@ -359,10 +259,8 @@ class GetAggregatedReport implements ModelInterface, ArrayAccess public function setRequests($requests) { $this->container['requests'] = $requests; - return $this; } - /** * Gets delivered * @@ -372,7 +270,6 @@ class GetAggregatedReport implements ModelInterface, ArrayAccess { return $this->container['delivered']; } - /** * Sets delivered * @@ -383,10 +280,8 @@ class GetAggregatedReport implements ModelInterface, ArrayAccess public function setDelivered($delivered) { $this->container['delivered'] = $delivered; - return $this; } - /** * Gets hardBounces * @@ -396,7 +291,6 @@ class GetAggregatedReport implements ModelInterface, ArrayAccess { return $this->container['hardBounces']; } - /** * Sets hardBounces * @@ -407,10 +301,8 @@ class GetAggregatedReport implements ModelInterface, ArrayAccess public function setHardBounces($hardBounces) { $this->container['hardBounces'] = $hardBounces; - return $this; } - /** * Gets softBounces * @@ -420,7 +312,6 @@ class GetAggregatedReport implements ModelInterface, ArrayAccess { return $this->container['softBounces']; } - /** * Sets softBounces * @@ -431,10 +322,8 @@ class GetAggregatedReport implements ModelInterface, ArrayAccess public function setSoftBounces($softBounces) { $this->container['softBounces'] = $softBounces; - return $this; } - /** * Gets clicks * @@ -444,7 +333,6 @@ class GetAggregatedReport implements ModelInterface, ArrayAccess { return $this->container['clicks']; } - /** * Sets clicks * @@ -455,10 +343,8 @@ class GetAggregatedReport implements ModelInterface, ArrayAccess public function setClicks($clicks) { $this->container['clicks'] = $clicks; - return $this; } - /** * Gets uniqueClicks * @@ -468,7 +354,6 @@ class GetAggregatedReport implements ModelInterface, ArrayAccess { return $this->container['uniqueClicks']; } - /** * Sets uniqueClicks * @@ -479,10 +364,8 @@ class GetAggregatedReport implements ModelInterface, ArrayAccess public function setUniqueClicks($uniqueClicks) { $this->container['uniqueClicks'] = $uniqueClicks; - return $this; } - /** * Gets opens * @@ -492,7 +375,6 @@ class GetAggregatedReport implements ModelInterface, ArrayAccess { return $this->container['opens']; } - /** * Sets opens * @@ -503,10 +385,8 @@ class GetAggregatedReport implements ModelInterface, ArrayAccess public function setOpens($opens) { $this->container['opens'] = $opens; - return $this; } - /** * Gets uniqueOpens * @@ -516,7 +396,6 @@ class GetAggregatedReport implements ModelInterface, ArrayAccess { return $this->container['uniqueOpens']; } - /** * Sets uniqueOpens * @@ -527,10 +406,8 @@ class GetAggregatedReport implements ModelInterface, ArrayAccess public function setUniqueOpens($uniqueOpens) { $this->container['uniqueOpens'] = $uniqueOpens; - return $this; } - /** * Gets spamReports * @@ -540,7 +417,6 @@ class GetAggregatedReport implements ModelInterface, ArrayAccess { return $this->container['spamReports']; } - /** * Sets spamReports * @@ -551,10 +427,8 @@ class GetAggregatedReport implements ModelInterface, ArrayAccess public function setSpamReports($spamReports) { $this->container['spamReports'] = $spamReports; - return $this; } - /** * Gets blocked * @@ -564,7 +438,6 @@ class GetAggregatedReport implements ModelInterface, ArrayAccess { return $this->container['blocked']; } - /** * Sets blocked * @@ -575,10 +448,8 @@ class GetAggregatedReport implements ModelInterface, ArrayAccess public function setBlocked($blocked) { $this->container['blocked'] = $blocked; - return $this; } - /** * Gets invalid * @@ -588,7 +459,6 @@ class GetAggregatedReport implements ModelInterface, ArrayAccess { return $this->container['invalid']; } - /** * Sets invalid * @@ -599,10 +469,8 @@ class GetAggregatedReport implements ModelInterface, ArrayAccess public function setInvalid($invalid) { $this->container['invalid'] = $invalid; - return $this; } - /** * Gets unsubscribed * @@ -612,7 +480,6 @@ class GetAggregatedReport implements ModelInterface, ArrayAccess { return $this->container['unsubscribed']; } - /** * Sets unsubscribed * @@ -623,7 +490,6 @@ class GetAggregatedReport implements ModelInterface, ArrayAccess public function setUnsubscribed($unsubscribed) { $this->container['unsubscribed'] = $unsubscribed; - return $this; } /** @@ -637,7 +503,6 @@ class GetAggregatedReport implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -649,7 +514,6 @@ class GetAggregatedReport implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -660,13 +524,12 @@ class GetAggregatedReport implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -678,7 +541,6 @@ class GetAggregatedReport implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -686,15 +548,10 @@ class GetAggregatedReport implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAttributes.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAttributes.php similarity index 81% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAttributes.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAttributes.php index ecb17e6..4327cdb 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAttributes.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAttributes.php @@ -1,4 +1,5 @@ '\SendinBlue\Client\Model\GetAttributesAttributes[]' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['attributes' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAttributesAttributes[]']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'attributes' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['attributes' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -78,7 +67,6 @@ class GetAttributes implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -88,35 +76,25 @@ class GetAttributes implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'attributes' => 'attributes' - ]; - + protected static $attributeMap = ['attributes' => 'attributes']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'attributes' => 'setAttributes' - ]; - + protected static $setters = ['attributes' => 'setAttributes']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'attributes' => 'getAttributes' - ]; - + protected static $getters = ['attributes' => 'getAttributes']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -127,7 +105,6 @@ class GetAttributes implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -137,7 +114,6 @@ class GetAttributes implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -147,7 +123,6 @@ class GetAttributes implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -157,18 +132,12 @@ class GetAttributes implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -179,7 +148,6 @@ class GetAttributes implements ModelInterface, ArrayAccess { $this->container['attributes'] = isset($data['attributes']) ? $data['attributes'] : null; } - /** * Show all the invalid properties with reasons. * @@ -188,13 +156,11 @@ class GetAttributes implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['attributes'] === null) { $invalidProperties[] = "'attributes' can't be null"; } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -203,10 +169,8 @@ class GetAttributes implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets attributes * @@ -216,7 +180,6 @@ class GetAttributes implements ModelInterface, ArrayAccess { return $this->container['attributes']; } - /** * Sets attributes * @@ -227,7 +190,6 @@ class GetAttributes implements ModelInterface, ArrayAccess public function setAttributes($attributes) { $this->container['attributes'] = $attributes; - return $this; } /** @@ -241,7 +203,6 @@ class GetAttributes implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -253,7 +214,6 @@ class GetAttributes implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -264,13 +224,12 @@ class GetAttributes implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -282,7 +241,6 @@ class GetAttributes implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -290,15 +248,10 @@ class GetAttributes implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAttributesAttributes.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAttributesAttributes.php similarity index 71% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAttributesAttributes.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAttributesAttributes.php index a87e68c..f47e8ab 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAttributesAttributes.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAttributesAttributes.php @@ -1,4 +1,5 @@ 'string', - 'category' => 'string', - 'type' => 'string', - 'enumeration' => '\SendinBlue\Client\Model\GetAttributesEnumeration[]', - 'calculatedValue' => 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['name' => 'string', 'category' => 'string', 'type' => 'string', 'enumeration' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetAttributesEnumeration[]', 'calculatedValue' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'name' => null, - 'category' => null, - 'type' => null, - 'enumeration' => null, - 'calculatedValue' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['name' => null, 'category' => null, 'type' => null, 'enumeration' => null, 'calculatedValue' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -86,7 +67,6 @@ class GetAttributesAttributes implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -96,47 +76,25 @@ class GetAttributesAttributes implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'name' => 'name', - 'category' => 'category', - 'type' => 'type', - 'enumeration' => 'enumeration', - 'calculatedValue' => 'calculatedValue' - ]; - + protected static $attributeMap = ['name' => 'name', 'category' => 'category', 'type' => 'type', 'enumeration' => 'enumeration', 'calculatedValue' => 'calculatedValue']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'name' => 'setName', - 'category' => 'setCategory', - 'type' => 'setType', - 'enumeration' => 'setEnumeration', - 'calculatedValue' => 'setCalculatedValue' - ]; - + protected static $setters = ['name' => 'setName', 'category' => 'setCategory', 'type' => 'setType', 'enumeration' => 'setEnumeration', 'calculatedValue' => 'setCalculatedValue']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'name' => 'getName', - 'category' => 'getCategory', - 'type' => 'getType', - 'enumeration' => 'getEnumeration', - 'calculatedValue' => 'getCalculatedValue' - ]; - + protected static $getters = ['name' => 'getName', 'category' => 'getCategory', 'type' => 'getType', 'enumeration' => 'getEnumeration', 'calculatedValue' => 'getCalculatedValue']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -147,7 +105,6 @@ class GetAttributesAttributes implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -157,7 +114,6 @@ class GetAttributesAttributes implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -167,7 +123,6 @@ class GetAttributesAttributes implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -177,7 +132,6 @@ class GetAttributesAttributes implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - const CATEGORY_NORMAL = 'normal'; const CATEGORY_TRANSACTIONAL = 'transactional'; const CATEGORY_CATEGORY = 'category'; @@ -188,9 +142,6 @@ class GetAttributesAttributes implements ModelInterface, ArrayAccess const TYPE_FLOAT = 'float'; const TYPE_ID = 'id'; const TYPE_BOOLEAN = 'boolean'; - - - /** * Gets allowable values of the enum * @@ -198,15 +149,8 @@ class GetAttributesAttributes implements ModelInterface, ArrayAccess */ public function getCategoryAllowableValues() { - return [ - self::CATEGORY_NORMAL, - self::CATEGORY_TRANSACTIONAL, - self::CATEGORY_CATEGORY, - self::CATEGORY_CALCULATED, - self::CATEGORY__GLOBAL, - ]; + return [self::CATEGORY_NORMAL, self::CATEGORY_TRANSACTIONAL, self::CATEGORY_CATEGORY, self::CATEGORY_CALCULATED, self::CATEGORY__GLOBAL]; } - /** * Gets allowable values of the enum * @@ -214,23 +158,14 @@ class GetAttributesAttributes implements ModelInterface, ArrayAccess */ public function getTypeAllowableValues() { - return [ - self::TYPE_TEXT, - self::TYPE_DATE, - self::TYPE_FLOAT, - self::TYPE_ID, - self::TYPE_BOOLEAN, - ]; + return [self::TYPE_TEXT, self::TYPE_DATE, self::TYPE_FLOAT, self::TYPE_ID, self::TYPE_BOOLEAN]; } - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -245,7 +180,6 @@ class GetAttributesAttributes implements ModelInterface, ArrayAccess $this->container['enumeration'] = isset($data['enumeration']) ? $data['enumeration'] : null; $this->container['calculatedValue'] = isset($data['calculatedValue']) ? $data['calculatedValue'] : null; } - /** * Show all the invalid properties with reasons. * @@ -254,7 +188,6 @@ class GetAttributesAttributes implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['name'] === null) { $invalidProperties[] = "'name' can't be null"; } @@ -262,24 +195,15 @@ class GetAttributesAttributes implements ModelInterface, ArrayAccess $invalidProperties[] = "'category' can't be null"; } $allowedValues = $this->getCategoryAllowableValues(); - if (!is_null($this->container['category']) && !in_array($this->container['category'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value for 'category', must be one of '%s'", - implode("', '", $allowedValues) - ); + if (!\is_null($this->container['category']) && !\in_array($this->container['category'], $allowedValues, \true)) { + $invalidProperties[] = \sprintf("invalid value for 'category', must be one of '%s'", \implode("', '", $allowedValues)); } - $allowedValues = $this->getTypeAllowableValues(); - if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value for 'type', must be one of '%s'", - implode("', '", $allowedValues) - ); + if (!\is_null($this->container['type']) && !\in_array($this->container['type'], $allowedValues, \true)) { + $invalidProperties[] = \sprintf("invalid value for 'type', must be one of '%s'", \implode("', '", $allowedValues)); } - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -288,10 +212,8 @@ class GetAttributesAttributes implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets name * @@ -301,7 +223,6 @@ class GetAttributesAttributes implements ModelInterface, ArrayAccess { return $this->container['name']; } - /** * Sets name * @@ -312,10 +233,8 @@ class GetAttributesAttributes implements ModelInterface, ArrayAccess public function setName($name) { $this->container['name'] = $name; - return $this; } - /** * Gets category * @@ -325,7 +244,6 @@ class GetAttributesAttributes implements ModelInterface, ArrayAccess { return $this->container['category']; } - /** * Sets category * @@ -336,19 +254,12 @@ class GetAttributesAttributes implements ModelInterface, ArrayAccess public function setCategory($category) { $allowedValues = $this->getCategoryAllowableValues(); - if (!in_array($category, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'category', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); + if (!\in_array($category, $allowedValues, \true)) { + throw new \InvalidArgumentException(\sprintf("Invalid value for 'category', must be one of '%s'", \implode("', '", $allowedValues))); } $this->container['category'] = $category; - return $this; } - /** * Gets type * @@ -358,7 +269,6 @@ class GetAttributesAttributes implements ModelInterface, ArrayAccess { return $this->container['type']; } - /** * Sets type * @@ -369,19 +279,12 @@ class GetAttributesAttributes implements ModelInterface, ArrayAccess public function setType($type) { $allowedValues = $this->getTypeAllowableValues(); - if (!is_null($type) && !in_array($type, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'type', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); + if (!\is_null($type) && !\in_array($type, $allowedValues, \true)) { + throw new \InvalidArgumentException(\sprintf("Invalid value for 'type', must be one of '%s'", \implode("', '", $allowedValues))); } $this->container['type'] = $type; - return $this; } - /** * Gets enumeration * @@ -391,7 +294,6 @@ class GetAttributesAttributes implements ModelInterface, ArrayAccess { return $this->container['enumeration']; } - /** * Sets enumeration * @@ -402,10 +304,8 @@ class GetAttributesAttributes implements ModelInterface, ArrayAccess public function setEnumeration($enumeration) { $this->container['enumeration'] = $enumeration; - return $this; } - /** * Gets calculatedValue * @@ -415,7 +315,6 @@ class GetAttributesAttributes implements ModelInterface, ArrayAccess { return $this->container['calculatedValue']; } - /** * Sets calculatedValue * @@ -426,7 +325,6 @@ class GetAttributesAttributes implements ModelInterface, ArrayAccess public function setCalculatedValue($calculatedValue) { $this->container['calculatedValue'] = $calculatedValue; - return $this; } /** @@ -440,7 +338,6 @@ class GetAttributesAttributes implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -452,7 +349,6 @@ class GetAttributesAttributes implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -463,13 +359,12 @@ class GetAttributesAttributes implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -481,7 +376,6 @@ class GetAttributesAttributes implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -489,15 +383,10 @@ class GetAttributesAttributes implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAttributesEnumeration.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAttributesEnumeration.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAttributesEnumeration.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAttributesEnumeration.php index eb54e45..7d64d1d 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetAttributesEnumeration.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetAttributesEnumeration.php @@ -1,4 +1,5 @@ 'int', - 'label' => 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['value' => 'int', 'label' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'value' => 'int64', - 'label' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['value' => 'int64', 'label' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -80,7 +67,6 @@ class GetAttributesEnumeration implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -90,38 +76,25 @@ class GetAttributesEnumeration implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'value' => 'value', - 'label' => 'label' - ]; - + protected static $attributeMap = ['value' => 'value', 'label' => 'label']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'value' => 'setValue', - 'label' => 'setLabel' - ]; - + protected static $setters = ['value' => 'setValue', 'label' => 'setLabel']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'value' => 'getValue', - 'label' => 'getLabel' - ]; - + protected static $getters = ['value' => 'getValue', 'label' => 'getLabel']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -132,7 +105,6 @@ class GetAttributesEnumeration implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -142,7 +114,6 @@ class GetAttributesEnumeration implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -152,7 +123,6 @@ class GetAttributesEnumeration implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -162,18 +132,12 @@ class GetAttributesEnumeration implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -185,7 +149,6 @@ class GetAttributesEnumeration implements ModelInterface, ArrayAccess $this->container['value'] = isset($data['value']) ? $data['value'] : null; $this->container['label'] = isset($data['label']) ? $data['label'] : null; } - /** * Show all the invalid properties with reasons. * @@ -194,7 +157,6 @@ class GetAttributesEnumeration implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['value'] === null) { $invalidProperties[] = "'value' can't be null"; } @@ -203,7 +165,6 @@ class GetAttributesEnumeration implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -212,10 +173,8 @@ class GetAttributesEnumeration implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets value * @@ -225,7 +184,6 @@ class GetAttributesEnumeration implements ModelInterface, ArrayAccess { return $this->container['value']; } - /** * Sets value * @@ -236,10 +194,8 @@ class GetAttributesEnumeration implements ModelInterface, ArrayAccess public function setValue($value) { $this->container['value'] = $value; - return $this; } - /** * Gets label * @@ -249,7 +205,6 @@ class GetAttributesEnumeration implements ModelInterface, ArrayAccess { return $this->container['label']; } - /** * Sets label * @@ -260,7 +215,6 @@ class GetAttributesEnumeration implements ModelInterface, ArrayAccess public function setLabel($label) { $this->container['label'] = $label; - return $this; } /** @@ -274,7 +228,6 @@ class GetAttributesEnumeration implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -286,7 +239,6 @@ class GetAttributesEnumeration implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -297,13 +249,12 @@ class GetAttributesEnumeration implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -315,7 +266,6 @@ class GetAttributesEnumeration implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -323,15 +273,10 @@ class GetAttributesEnumeration implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetCampaignOverview.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetCampaignOverview.php similarity index 74% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetCampaignOverview.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetCampaignOverview.php index 32c551c..9a15771 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetCampaignOverview.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetCampaignOverview.php @@ -1,4 +1,5 @@ 'int', - 'name' => 'string', - 'subject' => 'string', - 'type' => 'string', - 'status' => 'string', - 'scheduledAt' => '\DateTime', - 'abTesting' => 'bool', - 'subjectA' => 'string', - 'subjectB' => 'string', - 'splitRule' => 'int', - 'winnerCriteria' => 'string', - 'winnerDelay' => 'int', - 'sendAtBestTime' => 'bool' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['id' => 'int', 'name' => 'string', 'subject' => 'string', 'type' => 'string', 'status' => 'string', 'scheduledAt' => '\\DateTime', 'abTesting' => 'bool', 'subjectA' => 'string', 'subjectB' => 'string', 'splitRule' => 'int', 'winnerCriteria' => 'string', 'winnerDelay' => 'int', 'sendAtBestTime' => 'bool']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'id' => 'int64', - 'name' => null, - 'subject' => null, - 'type' => null, - 'status' => null, - 'scheduledAt' => 'date-time', - 'abTesting' => null, - 'subjectA' => null, - 'subjectB' => null, - 'splitRule' => null, - 'winnerCriteria' => null, - 'winnerDelay' => null, - 'sendAtBestTime' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['id' => 'int64', 'name' => null, 'subject' => null, 'type' => null, 'status' => null, 'scheduledAt' => 'date-time', 'abTesting' => null, 'subjectA' => null, 'subjectB' => null, 'splitRule' => null, 'winnerCriteria' => null, 'winnerDelay' => null, 'sendAtBestTime' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -102,7 +67,6 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -112,71 +76,25 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'id' => 'id', - 'name' => 'name', - 'subject' => 'subject', - 'type' => 'type', - 'status' => 'status', - 'scheduledAt' => 'scheduledAt', - 'abTesting' => 'abTesting', - 'subjectA' => 'subjectA', - 'subjectB' => 'subjectB', - 'splitRule' => 'splitRule', - 'winnerCriteria' => 'winnerCriteria', - 'winnerDelay' => 'winnerDelay', - 'sendAtBestTime' => 'sendAtBestTime' - ]; - + protected static $attributeMap = ['id' => 'id', 'name' => 'name', 'subject' => 'subject', 'type' => 'type', 'status' => 'status', 'scheduledAt' => 'scheduledAt', 'abTesting' => 'abTesting', 'subjectA' => 'subjectA', 'subjectB' => 'subjectB', 'splitRule' => 'splitRule', 'winnerCriteria' => 'winnerCriteria', 'winnerDelay' => 'winnerDelay', 'sendAtBestTime' => 'sendAtBestTime']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'id' => 'setId', - 'name' => 'setName', - 'subject' => 'setSubject', - 'type' => 'setType', - 'status' => 'setStatus', - 'scheduledAt' => 'setScheduledAt', - 'abTesting' => 'setAbTesting', - 'subjectA' => 'setSubjectA', - 'subjectB' => 'setSubjectB', - 'splitRule' => 'setSplitRule', - 'winnerCriteria' => 'setWinnerCriteria', - 'winnerDelay' => 'setWinnerDelay', - 'sendAtBestTime' => 'setSendAtBestTime' - ]; - + protected static $setters = ['id' => 'setId', 'name' => 'setName', 'subject' => 'setSubject', 'type' => 'setType', 'status' => 'setStatus', 'scheduledAt' => 'setScheduledAt', 'abTesting' => 'setAbTesting', 'subjectA' => 'setSubjectA', 'subjectB' => 'setSubjectB', 'splitRule' => 'setSplitRule', 'winnerCriteria' => 'setWinnerCriteria', 'winnerDelay' => 'setWinnerDelay', 'sendAtBestTime' => 'setSendAtBestTime']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'id' => 'getId', - 'name' => 'getName', - 'subject' => 'getSubject', - 'type' => 'getType', - 'status' => 'getStatus', - 'scheduledAt' => 'getScheduledAt', - 'abTesting' => 'getAbTesting', - 'subjectA' => 'getSubjectA', - 'subjectB' => 'getSubjectB', - 'splitRule' => 'getSplitRule', - 'winnerCriteria' => 'getWinnerCriteria', - 'winnerDelay' => 'getWinnerDelay', - 'sendAtBestTime' => 'getSendAtBestTime' - ]; - + protected static $getters = ['id' => 'getId', 'name' => 'getName', 'subject' => 'getSubject', 'type' => 'getType', 'status' => 'getStatus', 'scheduledAt' => 'getScheduledAt', 'abTesting' => 'getAbTesting', 'subjectA' => 'getSubjectA', 'subjectB' => 'getSubjectB', 'splitRule' => 'getSplitRule', 'winnerCriteria' => 'getWinnerCriteria', 'winnerDelay' => 'getWinnerDelay', 'sendAtBestTime' => 'getSendAtBestTime']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -187,7 +105,6 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -197,7 +114,6 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -207,7 +123,6 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -217,7 +132,6 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - const TYPE_CLASSIC = 'classic'; const TYPE_TRIGGER = 'trigger'; const STATUS_DRAFT = 'draft'; @@ -226,9 +140,6 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess const STATUS_QUEUED = 'queued'; const STATUS_SUSPENDED = 'suspended'; const STATUS_IN_PROCESS = 'in_process'; - - - /** * Gets allowable values of the enum * @@ -236,12 +147,8 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess */ public function getTypeAllowableValues() { - return [ - self::TYPE_CLASSIC, - self::TYPE_TRIGGER, - ]; + return [self::TYPE_CLASSIC, self::TYPE_TRIGGER]; } - /** * Gets allowable values of the enum * @@ -249,24 +156,14 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess */ public function getStatusAllowableValues() { - return [ - self::STATUS_DRAFT, - self::STATUS_SENT, - self::STATUS_ARCHIVE, - self::STATUS_QUEUED, - self::STATUS_SUSPENDED, - self::STATUS_IN_PROCESS, - ]; + return [self::STATUS_DRAFT, self::STATUS_SENT, self::STATUS_ARCHIVE, self::STATUS_QUEUED, self::STATUS_SUSPENDED, self::STATUS_IN_PROCESS]; } - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -289,7 +186,6 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess $this->container['winnerDelay'] = isset($data['winnerDelay']) ? $data['winnerDelay'] : null; $this->container['sendAtBestTime'] = isset($data['sendAtBestTime']) ? $data['sendAtBestTime'] : null; } - /** * Show all the invalid properties with reasons. * @@ -298,7 +194,6 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['id'] === null) { $invalidProperties[] = "'id' can't be null"; } @@ -309,27 +204,18 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess $invalidProperties[] = "'type' can't be null"; } $allowedValues = $this->getTypeAllowableValues(); - if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value for 'type', must be one of '%s'", - implode("', '", $allowedValues) - ); + if (!\is_null($this->container['type']) && !\in_array($this->container['type'], $allowedValues, \true)) { + $invalidProperties[] = \sprintf("invalid value for 'type', must be one of '%s'", \implode("', '", $allowedValues)); } - if ($this->container['status'] === null) { $invalidProperties[] = "'status' can't be null"; } $allowedValues = $this->getStatusAllowableValues(); - if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value for 'status', must be one of '%s'", - implode("', '", $allowedValues) - ); + if (!\is_null($this->container['status']) && !\in_array($this->container['status'], $allowedValues, \true)) { + $invalidProperties[] = \sprintf("invalid value for 'status', must be one of '%s'", \implode("', '", $allowedValues)); } - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -338,10 +224,8 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets id * @@ -351,7 +235,6 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['id']; } - /** * Sets id * @@ -362,10 +245,8 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess public function setId($id) { $this->container['id'] = $id; - return $this; } - /** * Gets name * @@ -375,7 +256,6 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['name']; } - /** * Sets name * @@ -386,10 +266,8 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess public function setName($name) { $this->container['name'] = $name; - return $this; } - /** * Gets subject * @@ -399,7 +277,6 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['subject']; } - /** * Sets subject * @@ -410,10 +287,8 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess public function setSubject($subject) { $this->container['subject'] = $subject; - return $this; } - /** * Gets type * @@ -423,7 +298,6 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['type']; } - /** * Sets type * @@ -434,19 +308,12 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess public function setType($type) { $allowedValues = $this->getTypeAllowableValues(); - if (!in_array($type, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'type', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); + if (!\in_array($type, $allowedValues, \true)) { + throw new \InvalidArgumentException(\sprintf("Invalid value for 'type', must be one of '%s'", \implode("', '", $allowedValues))); } $this->container['type'] = $type; - return $this; } - /** * Gets status * @@ -456,7 +323,6 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['status']; } - /** * Sets status * @@ -467,19 +333,12 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess public function setStatus($status) { $allowedValues = $this->getStatusAllowableValues(); - if (!in_array($status, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'status', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); + if (!\in_array($status, $allowedValues, \true)) { + throw new \InvalidArgumentException(\sprintf("Invalid value for 'status', must be one of '%s'", \implode("', '", $allowedValues))); } $this->container['status'] = $status; - return $this; } - /** * Gets scheduledAt * @@ -489,7 +348,6 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['scheduledAt']; } - /** * Sets scheduledAt * @@ -500,10 +358,8 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess public function setScheduledAt($scheduledAt) { $this->container['scheduledAt'] = $scheduledAt; - return $this; } - /** * Gets abTesting * @@ -513,7 +369,6 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['abTesting']; } - /** * Sets abTesting * @@ -524,10 +379,8 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess public function setAbTesting($abTesting) { $this->container['abTesting'] = $abTesting; - return $this; } - /** * Gets subjectA * @@ -537,7 +390,6 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['subjectA']; } - /** * Sets subjectA * @@ -548,10 +400,8 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess public function setSubjectA($subjectA) { $this->container['subjectA'] = $subjectA; - return $this; } - /** * Gets subjectB * @@ -561,7 +411,6 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['subjectB']; } - /** * Sets subjectB * @@ -572,10 +421,8 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess public function setSubjectB($subjectB) { $this->container['subjectB'] = $subjectB; - return $this; } - /** * Gets splitRule * @@ -585,7 +432,6 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['splitRule']; } - /** * Sets splitRule * @@ -596,10 +442,8 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess public function setSplitRule($splitRule) { $this->container['splitRule'] = $splitRule; - return $this; } - /** * Gets winnerCriteria * @@ -609,7 +453,6 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['winnerCriteria']; } - /** * Sets winnerCriteria * @@ -620,10 +463,8 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess public function setWinnerCriteria($winnerCriteria) { $this->container['winnerCriteria'] = $winnerCriteria; - return $this; } - /** * Gets winnerDelay * @@ -633,7 +474,6 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['winnerDelay']; } - /** * Sets winnerDelay * @@ -644,10 +484,8 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess public function setWinnerDelay($winnerDelay) { $this->container['winnerDelay'] = $winnerDelay; - return $this; } - /** * Gets sendAtBestTime * @@ -657,7 +495,6 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['sendAtBestTime']; } - /** * Sets sendAtBestTime * @@ -668,7 +505,6 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess public function setSendAtBestTime($sendAtBestTime) { $this->container['sendAtBestTime'] = $sendAtBestTime; - return $this; } /** @@ -682,7 +518,6 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -694,7 +529,6 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -705,13 +539,12 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -723,7 +556,6 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -731,15 +563,10 @@ class GetCampaignOverview implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetCampaignRecipients.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetCampaignRecipients.php similarity index 81% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetCampaignRecipients.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetCampaignRecipients.php index 1149ddf..f3a12f2 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetCampaignRecipients.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetCampaignRecipients.php @@ -1,4 +1,5 @@ 'int[]', - 'exclusionLists' => 'int[]' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['lists' => 'int[]', 'exclusionLists' => 'int[]']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'lists' => 'int64', - 'exclusionLists' => 'int64' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['lists' => 'int64', 'exclusionLists' => 'int64']; /** * Array of property to type mappings. Used for (de)serialization * @@ -80,7 +67,6 @@ class GetCampaignRecipients implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -90,38 +76,25 @@ class GetCampaignRecipients implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'lists' => 'lists', - 'exclusionLists' => 'exclusionLists' - ]; - + protected static $attributeMap = ['lists' => 'lists', 'exclusionLists' => 'exclusionLists']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'lists' => 'setLists', - 'exclusionLists' => 'setExclusionLists' - ]; - + protected static $setters = ['lists' => 'setLists', 'exclusionLists' => 'setExclusionLists']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'lists' => 'getLists', - 'exclusionLists' => 'getExclusionLists' - ]; - + protected static $getters = ['lists' => 'getLists', 'exclusionLists' => 'getExclusionLists']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -132,7 +105,6 @@ class GetCampaignRecipients implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -142,7 +114,6 @@ class GetCampaignRecipients implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -152,7 +123,6 @@ class GetCampaignRecipients implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -162,18 +132,12 @@ class GetCampaignRecipients implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -185,7 +149,6 @@ class GetCampaignRecipients implements ModelInterface, ArrayAccess $this->container['lists'] = isset($data['lists']) ? $data['lists'] : null; $this->container['exclusionLists'] = isset($data['exclusionLists']) ? $data['exclusionLists'] : null; } - /** * Show all the invalid properties with reasons. * @@ -194,7 +157,6 @@ class GetCampaignRecipients implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['lists'] === null) { $invalidProperties[] = "'lists' can't be null"; } @@ -203,7 +165,6 @@ class GetCampaignRecipients implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -212,10 +173,8 @@ class GetCampaignRecipients implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets lists * @@ -225,7 +184,6 @@ class GetCampaignRecipients implements ModelInterface, ArrayAccess { return $this->container['lists']; } - /** * Sets lists * @@ -236,10 +194,8 @@ class GetCampaignRecipients implements ModelInterface, ArrayAccess public function setLists($lists) { $this->container['lists'] = $lists; - return $this; } - /** * Gets exclusionLists * @@ -249,7 +205,6 @@ class GetCampaignRecipients implements ModelInterface, ArrayAccess { return $this->container['exclusionLists']; } - /** * Sets exclusionLists * @@ -260,7 +215,6 @@ class GetCampaignRecipients implements ModelInterface, ArrayAccess public function setExclusionLists($exclusionLists) { $this->container['exclusionLists'] = $exclusionLists; - return $this; } /** @@ -274,7 +228,6 @@ class GetCampaignRecipients implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -286,7 +239,6 @@ class GetCampaignRecipients implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -297,13 +249,12 @@ class GetCampaignRecipients implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -315,7 +266,6 @@ class GetCampaignRecipients implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -323,15 +273,10 @@ class GetCampaignRecipients implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetCampaignStats.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetCampaignStats.php similarity index 79% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetCampaignStats.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetCampaignStats.php index e9cf5e0..5708d26 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetCampaignStats.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetCampaignStats.php @@ -1,4 +1,5 @@ 'int', - 'uniqueClicks' => 'int', - 'clickers' => 'int', - 'complaints' => 'int', - 'delivered' => 'int', - 'sent' => 'int', - 'softBounces' => 'int', - 'hardBounces' => 'int', - 'uniqueViews' => 'int', - 'unsubscriptions' => 'int', - 'viewed' => 'int', - 'deferred' => 'int' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['listId' => 'int', 'uniqueClicks' => 'int', 'clickers' => 'int', 'complaints' => 'int', 'delivered' => 'int', 'sent' => 'int', 'softBounces' => 'int', 'hardBounces' => 'int', 'uniqueViews' => 'int', 'unsubscriptions' => 'int', 'viewed' => 'int', 'deferred' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'listId' => 'int64', - 'uniqueClicks' => 'int64', - 'clickers' => 'int64', - 'complaints' => 'int64', - 'delivered' => 'int64', - 'sent' => 'int64', - 'softBounces' => 'int64', - 'hardBounces' => 'int64', - 'uniqueViews' => 'int64', - 'unsubscriptions' => 'int64', - 'viewed' => 'int64', - 'deferred' => 'int64' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['listId' => 'int64', 'uniqueClicks' => 'int64', 'clickers' => 'int64', 'complaints' => 'int64', 'delivered' => 'int64', 'sent' => 'int64', 'softBounces' => 'int64', 'hardBounces' => 'int64', 'uniqueViews' => 'int64', 'unsubscriptions' => 'int64', 'viewed' => 'int64', 'deferred' => 'int64']; /** * Array of property to type mappings. Used for (de)serialization * @@ -100,7 +67,6 @@ class GetCampaignStats implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -110,68 +76,25 @@ class GetCampaignStats implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'listId' => 'listId', - 'uniqueClicks' => 'uniqueClicks', - 'clickers' => 'clickers', - 'complaints' => 'complaints', - 'delivered' => 'delivered', - 'sent' => 'sent', - 'softBounces' => 'softBounces', - 'hardBounces' => 'hardBounces', - 'uniqueViews' => 'uniqueViews', - 'unsubscriptions' => 'unsubscriptions', - 'viewed' => 'viewed', - 'deferred' => 'deferred' - ]; - + protected static $attributeMap = ['listId' => 'listId', 'uniqueClicks' => 'uniqueClicks', 'clickers' => 'clickers', 'complaints' => 'complaints', 'delivered' => 'delivered', 'sent' => 'sent', 'softBounces' => 'softBounces', 'hardBounces' => 'hardBounces', 'uniqueViews' => 'uniqueViews', 'unsubscriptions' => 'unsubscriptions', 'viewed' => 'viewed', 'deferred' => 'deferred']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'listId' => 'setListId', - 'uniqueClicks' => 'setUniqueClicks', - 'clickers' => 'setClickers', - 'complaints' => 'setComplaints', - 'delivered' => 'setDelivered', - 'sent' => 'setSent', - 'softBounces' => 'setSoftBounces', - 'hardBounces' => 'setHardBounces', - 'uniqueViews' => 'setUniqueViews', - 'unsubscriptions' => 'setUnsubscriptions', - 'viewed' => 'setViewed', - 'deferred' => 'setDeferred' - ]; - + protected static $setters = ['listId' => 'setListId', 'uniqueClicks' => 'setUniqueClicks', 'clickers' => 'setClickers', 'complaints' => 'setComplaints', 'delivered' => 'setDelivered', 'sent' => 'setSent', 'softBounces' => 'setSoftBounces', 'hardBounces' => 'setHardBounces', 'uniqueViews' => 'setUniqueViews', 'unsubscriptions' => 'setUnsubscriptions', 'viewed' => 'setViewed', 'deferred' => 'setDeferred']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'listId' => 'getListId', - 'uniqueClicks' => 'getUniqueClicks', - 'clickers' => 'getClickers', - 'complaints' => 'getComplaints', - 'delivered' => 'getDelivered', - 'sent' => 'getSent', - 'softBounces' => 'getSoftBounces', - 'hardBounces' => 'getHardBounces', - 'uniqueViews' => 'getUniqueViews', - 'unsubscriptions' => 'getUnsubscriptions', - 'viewed' => 'getViewed', - 'deferred' => 'getDeferred' - ]; - + protected static $getters = ['listId' => 'getListId', 'uniqueClicks' => 'getUniqueClicks', 'clickers' => 'getClickers', 'complaints' => 'getComplaints', 'delivered' => 'getDelivered', 'sent' => 'getSent', 'softBounces' => 'getSoftBounces', 'hardBounces' => 'getHardBounces', 'uniqueViews' => 'getUniqueViews', 'unsubscriptions' => 'getUnsubscriptions', 'viewed' => 'getViewed', 'deferred' => 'getDeferred']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -182,7 +105,6 @@ class GetCampaignStats implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -192,7 +114,6 @@ class GetCampaignStats implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -202,7 +123,6 @@ class GetCampaignStats implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -212,18 +132,12 @@ class GetCampaignStats implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -245,7 +159,6 @@ class GetCampaignStats implements ModelInterface, ArrayAccess $this->container['viewed'] = isset($data['viewed']) ? $data['viewed'] : null; $this->container['deferred'] = isset($data['deferred']) ? $data['deferred'] : null; } - /** * Show all the invalid properties with reasons. * @@ -254,7 +167,6 @@ class GetCampaignStats implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['uniqueClicks'] === null) { $invalidProperties[] = "'uniqueClicks' can't be null"; } @@ -287,7 +199,6 @@ class GetCampaignStats implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -296,10 +207,8 @@ class GetCampaignStats implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets listId * @@ -309,7 +218,6 @@ class GetCampaignStats implements ModelInterface, ArrayAccess { return $this->container['listId']; } - /** * Sets listId * @@ -320,10 +228,8 @@ class GetCampaignStats implements ModelInterface, ArrayAccess public function setListId($listId) { $this->container['listId'] = $listId; - return $this; } - /** * Gets uniqueClicks * @@ -333,7 +239,6 @@ class GetCampaignStats implements ModelInterface, ArrayAccess { return $this->container['uniqueClicks']; } - /** * Sets uniqueClicks * @@ -344,10 +249,8 @@ class GetCampaignStats implements ModelInterface, ArrayAccess public function setUniqueClicks($uniqueClicks) { $this->container['uniqueClicks'] = $uniqueClicks; - return $this; } - /** * Gets clickers * @@ -357,7 +260,6 @@ class GetCampaignStats implements ModelInterface, ArrayAccess { return $this->container['clickers']; } - /** * Sets clickers * @@ -368,10 +270,8 @@ class GetCampaignStats implements ModelInterface, ArrayAccess public function setClickers($clickers) { $this->container['clickers'] = $clickers; - return $this; } - /** * Gets complaints * @@ -381,7 +281,6 @@ class GetCampaignStats implements ModelInterface, ArrayAccess { return $this->container['complaints']; } - /** * Sets complaints * @@ -392,10 +291,8 @@ class GetCampaignStats implements ModelInterface, ArrayAccess public function setComplaints($complaints) { $this->container['complaints'] = $complaints; - return $this; } - /** * Gets delivered * @@ -405,7 +302,6 @@ class GetCampaignStats implements ModelInterface, ArrayAccess { return $this->container['delivered']; } - /** * Sets delivered * @@ -416,10 +312,8 @@ class GetCampaignStats implements ModelInterface, ArrayAccess public function setDelivered($delivered) { $this->container['delivered'] = $delivered; - return $this; } - /** * Gets sent * @@ -429,7 +323,6 @@ class GetCampaignStats implements ModelInterface, ArrayAccess { return $this->container['sent']; } - /** * Sets sent * @@ -440,10 +333,8 @@ class GetCampaignStats implements ModelInterface, ArrayAccess public function setSent($sent) { $this->container['sent'] = $sent; - return $this; } - /** * Gets softBounces * @@ -453,7 +344,6 @@ class GetCampaignStats implements ModelInterface, ArrayAccess { return $this->container['softBounces']; } - /** * Sets softBounces * @@ -464,10 +354,8 @@ class GetCampaignStats implements ModelInterface, ArrayAccess public function setSoftBounces($softBounces) { $this->container['softBounces'] = $softBounces; - return $this; } - /** * Gets hardBounces * @@ -477,7 +365,6 @@ class GetCampaignStats implements ModelInterface, ArrayAccess { return $this->container['hardBounces']; } - /** * Sets hardBounces * @@ -488,10 +375,8 @@ class GetCampaignStats implements ModelInterface, ArrayAccess public function setHardBounces($hardBounces) { $this->container['hardBounces'] = $hardBounces; - return $this; } - /** * Gets uniqueViews * @@ -501,7 +386,6 @@ class GetCampaignStats implements ModelInterface, ArrayAccess { return $this->container['uniqueViews']; } - /** * Sets uniqueViews * @@ -512,10 +396,8 @@ class GetCampaignStats implements ModelInterface, ArrayAccess public function setUniqueViews($uniqueViews) { $this->container['uniqueViews'] = $uniqueViews; - return $this; } - /** * Gets unsubscriptions * @@ -525,7 +407,6 @@ class GetCampaignStats implements ModelInterface, ArrayAccess { return $this->container['unsubscriptions']; } - /** * Sets unsubscriptions * @@ -536,10 +417,8 @@ class GetCampaignStats implements ModelInterface, ArrayAccess public function setUnsubscriptions($unsubscriptions) { $this->container['unsubscriptions'] = $unsubscriptions; - return $this; } - /** * Gets viewed * @@ -549,7 +428,6 @@ class GetCampaignStats implements ModelInterface, ArrayAccess { return $this->container['viewed']; } - /** * Sets viewed * @@ -560,10 +438,8 @@ class GetCampaignStats implements ModelInterface, ArrayAccess public function setViewed($viewed) { $this->container['viewed'] = $viewed; - return $this; } - /** * Gets deferred * @@ -573,7 +449,6 @@ class GetCampaignStats implements ModelInterface, ArrayAccess { return $this->container['deferred']; } - /** * Sets deferred * @@ -584,7 +459,6 @@ class GetCampaignStats implements ModelInterface, ArrayAccess public function setDeferred($deferred) { $this->container['deferred'] = $deferred; - return $this; } /** @@ -598,7 +472,6 @@ class GetCampaignStats implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -610,7 +483,6 @@ class GetCampaignStats implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -621,13 +493,12 @@ class GetCampaignStats implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -639,7 +510,6 @@ class GetCampaignStats implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -647,15 +517,10 @@ class GetCampaignStats implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildAccountCreationStatus.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildAccountCreationStatus.php similarity index 81% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildAccountCreationStatus.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildAccountCreationStatus.php index ae2f356..46e7965 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildAccountCreationStatus.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildAccountCreationStatus.php @@ -1,4 +1,5 @@ 'bool' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['childAccountCreated' => 'bool']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'childAccountCreated' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['childAccountCreated' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -78,7 +67,6 @@ class GetChildAccountCreationStatus implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -88,35 +76,25 @@ class GetChildAccountCreationStatus implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'childAccountCreated' => 'childAccountCreated' - ]; - + protected static $attributeMap = ['childAccountCreated' => 'childAccountCreated']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'childAccountCreated' => 'setChildAccountCreated' - ]; - + protected static $setters = ['childAccountCreated' => 'setChildAccountCreated']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'childAccountCreated' => 'getChildAccountCreated' - ]; - + protected static $getters = ['childAccountCreated' => 'getChildAccountCreated']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -127,7 +105,6 @@ class GetChildAccountCreationStatus implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -137,7 +114,6 @@ class GetChildAccountCreationStatus implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -147,7 +123,6 @@ class GetChildAccountCreationStatus implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -157,18 +132,12 @@ class GetChildAccountCreationStatus implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -179,7 +148,6 @@ class GetChildAccountCreationStatus implements ModelInterface, ArrayAccess { $this->container['childAccountCreated'] = isset($data['childAccountCreated']) ? $data['childAccountCreated'] : null; } - /** * Show all the invalid properties with reasons. * @@ -188,13 +156,11 @@ class GetChildAccountCreationStatus implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['childAccountCreated'] === null) { $invalidProperties[] = "'childAccountCreated' can't be null"; } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -203,10 +169,8 @@ class GetChildAccountCreationStatus implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets childAccountCreated * @@ -216,7 +180,6 @@ class GetChildAccountCreationStatus implements ModelInterface, ArrayAccess { return $this->container['childAccountCreated']; } - /** * Sets childAccountCreated * @@ -227,7 +190,6 @@ class GetChildAccountCreationStatus implements ModelInterface, ArrayAccess public function setChildAccountCreated($childAccountCreated) { $this->container['childAccountCreated'] = $childAccountCreated; - return $this; } /** @@ -241,7 +203,6 @@ class GetChildAccountCreationStatus implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -253,7 +214,6 @@ class GetChildAccountCreationStatus implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -264,13 +224,12 @@ class GetChildAccountCreationStatus implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -282,7 +241,6 @@ class GetChildAccountCreationStatus implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -290,15 +248,10 @@ class GetChildAccountCreationStatus implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildDomain.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildDomain.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildDomain.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildDomain.php index 76dfb88..bc8dbbd 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildDomain.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildDomain.php @@ -1,4 +1,5 @@ 'string', - 'active' => 'bool' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['domain' => 'string', 'active' => 'bool']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'domain' => null, - 'active' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['domain' => null, 'active' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -80,7 +67,6 @@ class GetChildDomain implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -90,38 +76,25 @@ class GetChildDomain implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'domain' => 'domain', - 'active' => 'active' - ]; - + protected static $attributeMap = ['domain' => 'domain', 'active' => 'active']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'domain' => 'setDomain', - 'active' => 'setActive' - ]; - + protected static $setters = ['domain' => 'setDomain', 'active' => 'setActive']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'domain' => 'getDomain', - 'active' => 'getActive' - ]; - + protected static $getters = ['domain' => 'getDomain', 'active' => 'getActive']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -132,7 +105,6 @@ class GetChildDomain implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -142,7 +114,6 @@ class GetChildDomain implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -152,7 +123,6 @@ class GetChildDomain implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -162,18 +132,12 @@ class GetChildDomain implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -185,7 +149,6 @@ class GetChildDomain implements ModelInterface, ArrayAccess $this->container['domain'] = isset($data['domain']) ? $data['domain'] : null; $this->container['active'] = isset($data['active']) ? $data['active'] : null; } - /** * Show all the invalid properties with reasons. * @@ -194,7 +157,6 @@ class GetChildDomain implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['domain'] === null) { $invalidProperties[] = "'domain' can't be null"; } @@ -203,7 +165,6 @@ class GetChildDomain implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -212,10 +173,8 @@ class GetChildDomain implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets domain * @@ -225,7 +184,6 @@ class GetChildDomain implements ModelInterface, ArrayAccess { return $this->container['domain']; } - /** * Sets domain * @@ -236,10 +194,8 @@ class GetChildDomain implements ModelInterface, ArrayAccess public function setDomain($domain) { $this->container['domain'] = $domain; - return $this; } - /** * Gets active * @@ -249,7 +205,6 @@ class GetChildDomain implements ModelInterface, ArrayAccess { return $this->container['active']; } - /** * Sets active * @@ -260,7 +215,6 @@ class GetChildDomain implements ModelInterface, ArrayAccess public function setActive($active) { $this->container['active'] = $active; - return $this; } /** @@ -274,7 +228,6 @@ class GetChildDomain implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -286,7 +239,6 @@ class GetChildDomain implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -297,13 +249,12 @@ class GetChildDomain implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -315,7 +266,6 @@ class GetChildDomain implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -323,15 +273,10 @@ class GetChildDomain implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildDomains.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildDomains.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildDomains.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildDomains.php index df8c544..17ba4c4 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildDomains.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildDomains.php @@ -1,4 +1,5 @@ listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - /** * Returns true if offset exists. False otherwise. * @@ -213,7 +178,6 @@ class GetChildDomains implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -225,7 +189,6 @@ class GetChildDomains implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -236,13 +199,12 @@ class GetChildDomains implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -254,7 +216,6 @@ class GetChildDomains implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -262,15 +223,10 @@ class GetChildDomains implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildInfo.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildInfo.php similarity index 79% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildInfo.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildInfo.php index 97296b0..479d7e2 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildInfo.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildInfo.php @@ -1,4 +1,5 @@ 'string', - 'firstName' => 'string', - 'lastName' => 'string', - 'companyName' => 'string', - 'credits' => '\SendinBlue\Client\Model\GetChildInfoCredits', - 'statistics' => '\SendinBlue\Client\Model\GetChildInfoStatistics', - 'password' => 'string', - 'ips' => 'string[]', - 'apiKeys' => '\SendinBlue\Client\Model\GetChildInfoApiKeys' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['email' => 'string', 'firstName' => 'string', 'lastName' => 'string', 'companyName' => 'string', 'credits' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildInfoCredits', 'statistics' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildInfoStatistics', 'password' => 'string', 'ips' => 'string[]', 'apiKeys' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildInfoApiKeys']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'email' => 'email', - 'firstName' => null, - 'lastName' => null, - 'companyName' => null, - 'credits' => null, - 'statistics' => null, - 'password' => 'password', - 'ips' => null, - 'apiKeys' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['email' => 'email', 'firstName' => null, 'lastName' => null, 'companyName' => null, 'credits' => null, 'statistics' => null, 'password' => 'password', 'ips' => null, 'apiKeys' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -94,7 +67,6 @@ class GetChildInfo implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -104,59 +76,25 @@ class GetChildInfo implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'email' => 'email', - 'firstName' => 'firstName', - 'lastName' => 'lastName', - 'companyName' => 'companyName', - 'credits' => 'credits', - 'statistics' => 'statistics', - 'password' => 'password', - 'ips' => 'ips', - 'apiKeys' => 'apiKeys' - ]; - + protected static $attributeMap = ['email' => 'email', 'firstName' => 'firstName', 'lastName' => 'lastName', 'companyName' => 'companyName', 'credits' => 'credits', 'statistics' => 'statistics', 'password' => 'password', 'ips' => 'ips', 'apiKeys' => 'apiKeys']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'email' => 'setEmail', - 'firstName' => 'setFirstName', - 'lastName' => 'setLastName', - 'companyName' => 'setCompanyName', - 'credits' => 'setCredits', - 'statistics' => 'setStatistics', - 'password' => 'setPassword', - 'ips' => 'setIps', - 'apiKeys' => 'setApiKeys' - ]; - + protected static $setters = ['email' => 'setEmail', 'firstName' => 'setFirstName', 'lastName' => 'setLastName', 'companyName' => 'setCompanyName', 'credits' => 'setCredits', 'statistics' => 'setStatistics', 'password' => 'setPassword', 'ips' => 'setIps', 'apiKeys' => 'setApiKeys']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'email' => 'getEmail', - 'firstName' => 'getFirstName', - 'lastName' => 'getLastName', - 'companyName' => 'getCompanyName', - 'credits' => 'getCredits', - 'statistics' => 'getStatistics', - 'password' => 'getPassword', - 'ips' => 'getIps', - 'apiKeys' => 'getApiKeys' - ]; - + protected static $getters = ['email' => 'getEmail', 'firstName' => 'getFirstName', 'lastName' => 'getLastName', 'companyName' => 'getCompanyName', 'credits' => 'getCredits', 'statistics' => 'getStatistics', 'password' => 'getPassword', 'ips' => 'getIps', 'apiKeys' => 'getApiKeys']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -167,7 +105,6 @@ class GetChildInfo implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -177,7 +114,6 @@ class GetChildInfo implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -187,7 +123,6 @@ class GetChildInfo implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -197,18 +132,12 @@ class GetChildInfo implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -227,7 +156,6 @@ class GetChildInfo implements ModelInterface, ArrayAccess $this->container['ips'] = isset($data['ips']) ? $data['ips'] : null; $this->container['apiKeys'] = isset($data['apiKeys']) ? $data['apiKeys'] : null; } - /** * Show all the invalid properties with reasons. * @@ -236,7 +164,6 @@ class GetChildInfo implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['email'] === null) { $invalidProperties[] = "'email' can't be null"; } @@ -254,7 +181,6 @@ class GetChildInfo implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -263,10 +189,8 @@ class GetChildInfo implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets email * @@ -276,7 +200,6 @@ class GetChildInfo implements ModelInterface, ArrayAccess { return $this->container['email']; } - /** * Sets email * @@ -287,10 +210,8 @@ class GetChildInfo implements ModelInterface, ArrayAccess public function setEmail($email) { $this->container['email'] = $email; - return $this; } - /** * Gets firstName * @@ -300,7 +221,6 @@ class GetChildInfo implements ModelInterface, ArrayAccess { return $this->container['firstName']; } - /** * Sets firstName * @@ -311,10 +231,8 @@ class GetChildInfo implements ModelInterface, ArrayAccess public function setFirstName($firstName) { $this->container['firstName'] = $firstName; - return $this; } - /** * Gets lastName * @@ -324,7 +242,6 @@ class GetChildInfo implements ModelInterface, ArrayAccess { return $this->container['lastName']; } - /** * Sets lastName * @@ -335,10 +252,8 @@ class GetChildInfo implements ModelInterface, ArrayAccess public function setLastName($lastName) { $this->container['lastName'] = $lastName; - return $this; } - /** * Gets companyName * @@ -348,7 +263,6 @@ class GetChildInfo implements ModelInterface, ArrayAccess { return $this->container['companyName']; } - /** * Sets companyName * @@ -359,10 +273,8 @@ class GetChildInfo implements ModelInterface, ArrayAccess public function setCompanyName($companyName) { $this->container['companyName'] = $companyName; - return $this; } - /** * Gets credits * @@ -372,7 +284,6 @@ class GetChildInfo implements ModelInterface, ArrayAccess { return $this->container['credits']; } - /** * Sets credits * @@ -383,10 +294,8 @@ class GetChildInfo implements ModelInterface, ArrayAccess public function setCredits($credits) { $this->container['credits'] = $credits; - return $this; } - /** * Gets statistics * @@ -396,7 +305,6 @@ class GetChildInfo implements ModelInterface, ArrayAccess { return $this->container['statistics']; } - /** * Sets statistics * @@ -407,10 +315,8 @@ class GetChildInfo implements ModelInterface, ArrayAccess public function setStatistics($statistics) { $this->container['statistics'] = $statistics; - return $this; } - /** * Gets password * @@ -420,7 +326,6 @@ class GetChildInfo implements ModelInterface, ArrayAccess { return $this->container['password']; } - /** * Sets password * @@ -431,10 +336,8 @@ class GetChildInfo implements ModelInterface, ArrayAccess public function setPassword($password) { $this->container['password'] = $password; - return $this; } - /** * Gets ips * @@ -444,7 +347,6 @@ class GetChildInfo implements ModelInterface, ArrayAccess { return $this->container['ips']; } - /** * Sets ips * @@ -455,10 +357,8 @@ class GetChildInfo implements ModelInterface, ArrayAccess public function setIps($ips) { $this->container['ips'] = $ips; - return $this; } - /** * Gets apiKeys * @@ -468,7 +368,6 @@ class GetChildInfo implements ModelInterface, ArrayAccess { return $this->container['apiKeys']; } - /** * Sets apiKeys * @@ -479,7 +378,6 @@ class GetChildInfo implements ModelInterface, ArrayAccess public function setApiKeys($apiKeys) { $this->container['apiKeys'] = $apiKeys; - return $this; } /** @@ -493,7 +391,6 @@ class GetChildInfo implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -505,7 +402,6 @@ class GetChildInfo implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -516,13 +412,12 @@ class GetChildInfo implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -534,7 +429,6 @@ class GetChildInfo implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -542,15 +436,10 @@ class GetChildInfo implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildInfoApiKeys.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildInfoApiKeys.php similarity index 81% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildInfoApiKeys.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildInfoApiKeys.php index 12a4d99..473009f 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildInfoApiKeys.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildInfoApiKeys.php @@ -1,4 +1,5 @@ '\SendinBlue\Client\Model\GetChildInfoApiKeysV2[]', - 'v3' => '\SendinBlue\Client\Model\GetChildInfoApiKeysV3[]' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['v2' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildInfoApiKeysV2[]', 'v3' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetChildInfoApiKeysV3[]']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'v2' => null, - 'v3' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['v2' => null, 'v3' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -81,7 +68,6 @@ class GetChildInfoApiKeys implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -91,38 +77,25 @@ class GetChildInfoApiKeys implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'v2' => 'v2', - 'v3' => 'v3' - ]; - + protected static $attributeMap = ['v2' => 'v2', 'v3' => 'v3']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'v2' => 'setV2', - 'v3' => 'setV3' - ]; - + protected static $setters = ['v2' => 'setV2', 'v3' => 'setV3']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'v2' => 'getV2', - 'v3' => 'getV3' - ]; - + protected static $getters = ['v2' => 'getV2', 'v3' => 'getV3']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -133,7 +106,6 @@ class GetChildInfoApiKeys implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -143,7 +115,6 @@ class GetChildInfoApiKeys implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -153,7 +124,6 @@ class GetChildInfoApiKeys implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -163,18 +133,12 @@ class GetChildInfoApiKeys implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -186,7 +150,6 @@ class GetChildInfoApiKeys implements ModelInterface, ArrayAccess $this->container['v2'] = isset($data['v2']) ? $data['v2'] : null; $this->container['v3'] = isset($data['v3']) ? $data['v3'] : null; } - /** * Show all the invalid properties with reasons. * @@ -195,13 +158,11 @@ class GetChildInfoApiKeys implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['v2'] === null) { $invalidProperties[] = "'v2' can't be null"; } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -210,10 +171,8 @@ class GetChildInfoApiKeys implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets v2 * @@ -223,7 +182,6 @@ class GetChildInfoApiKeys implements ModelInterface, ArrayAccess { return $this->container['v2']; } - /** * Sets v2 * @@ -234,10 +192,8 @@ class GetChildInfoApiKeys implements ModelInterface, ArrayAccess public function setV2($v2) { $this->container['v2'] = $v2; - return $this; } - /** * Gets v3 * @@ -247,7 +203,6 @@ class GetChildInfoApiKeys implements ModelInterface, ArrayAccess { return $this->container['v3']; } - /** * Sets v3 * @@ -258,7 +213,6 @@ class GetChildInfoApiKeys implements ModelInterface, ArrayAccess public function setV3($v3) { $this->container['v3'] = $v3; - return $this; } /** @@ -272,7 +226,6 @@ class GetChildInfoApiKeys implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -284,7 +237,6 @@ class GetChildInfoApiKeys implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -295,13 +247,12 @@ class GetChildInfoApiKeys implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -313,7 +264,6 @@ class GetChildInfoApiKeys implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -321,15 +271,10 @@ class GetChildInfoApiKeys implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildInfoApiKeysV2.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildInfoApiKeysV2.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildInfoApiKeysV2.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildInfoApiKeysV2.php index d9ae913..916f7b3 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildInfoApiKeysV2.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildInfoApiKeysV2.php @@ -1,4 +1,5 @@ 'string', - 'key' => 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['name' => 'string', 'key' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'name' => null, - 'key' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['name' => null, 'key' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -80,7 +67,6 @@ class GetChildInfoApiKeysV2 implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -90,38 +76,25 @@ class GetChildInfoApiKeysV2 implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'name' => 'name', - 'key' => 'key' - ]; - + protected static $attributeMap = ['name' => 'name', 'key' => 'key']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'name' => 'setName', - 'key' => 'setKey' - ]; - + protected static $setters = ['name' => 'setName', 'key' => 'setKey']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'name' => 'getName', - 'key' => 'getKey' - ]; - + protected static $getters = ['name' => 'getName', 'key' => 'getKey']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -132,7 +105,6 @@ class GetChildInfoApiKeysV2 implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -142,7 +114,6 @@ class GetChildInfoApiKeysV2 implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -152,7 +123,6 @@ class GetChildInfoApiKeysV2 implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -162,18 +132,12 @@ class GetChildInfoApiKeysV2 implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -185,7 +149,6 @@ class GetChildInfoApiKeysV2 implements ModelInterface, ArrayAccess $this->container['name'] = isset($data['name']) ? $data['name'] : null; $this->container['key'] = isset($data['key']) ? $data['key'] : null; } - /** * Show all the invalid properties with reasons. * @@ -194,7 +157,6 @@ class GetChildInfoApiKeysV2 implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['name'] === null) { $invalidProperties[] = "'name' can't be null"; } @@ -203,7 +165,6 @@ class GetChildInfoApiKeysV2 implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -212,10 +173,8 @@ class GetChildInfoApiKeysV2 implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets name * @@ -225,7 +184,6 @@ class GetChildInfoApiKeysV2 implements ModelInterface, ArrayAccess { return $this->container['name']; } - /** * Sets name * @@ -236,10 +194,8 @@ class GetChildInfoApiKeysV2 implements ModelInterface, ArrayAccess public function setName($name) { $this->container['name'] = $name; - return $this; } - /** * Gets key * @@ -249,7 +205,6 @@ class GetChildInfoApiKeysV2 implements ModelInterface, ArrayAccess { return $this->container['key']; } - /** * Sets key * @@ -260,7 +215,6 @@ class GetChildInfoApiKeysV2 implements ModelInterface, ArrayAccess public function setKey($key) { $this->container['key'] = $key; - return $this; } /** @@ -274,7 +228,6 @@ class GetChildInfoApiKeysV2 implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -286,7 +239,6 @@ class GetChildInfoApiKeysV2 implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -297,13 +249,12 @@ class GetChildInfoApiKeysV2 implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -315,7 +266,6 @@ class GetChildInfoApiKeysV2 implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -323,15 +273,10 @@ class GetChildInfoApiKeysV2 implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildInfoApiKeysV3.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildInfoApiKeysV3.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildInfoApiKeysV3.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildInfoApiKeysV3.php index 5ddf6a2..b529236 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildInfoApiKeysV3.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildInfoApiKeysV3.php @@ -1,4 +1,5 @@ 'string', - 'key' => 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['name' => 'string', 'key' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'name' => null, - 'key' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['name' => null, 'key' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -80,7 +67,6 @@ class GetChildInfoApiKeysV3 implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -90,38 +76,25 @@ class GetChildInfoApiKeysV3 implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'name' => 'name', - 'key' => 'key' - ]; - + protected static $attributeMap = ['name' => 'name', 'key' => 'key']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'name' => 'setName', - 'key' => 'setKey' - ]; - + protected static $setters = ['name' => 'setName', 'key' => 'setKey']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'name' => 'getName', - 'key' => 'getKey' - ]; - + protected static $getters = ['name' => 'getName', 'key' => 'getKey']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -132,7 +105,6 @@ class GetChildInfoApiKeysV3 implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -142,7 +114,6 @@ class GetChildInfoApiKeysV3 implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -152,7 +123,6 @@ class GetChildInfoApiKeysV3 implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -162,18 +132,12 @@ class GetChildInfoApiKeysV3 implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -185,7 +149,6 @@ class GetChildInfoApiKeysV3 implements ModelInterface, ArrayAccess $this->container['name'] = isset($data['name']) ? $data['name'] : null; $this->container['key'] = isset($data['key']) ? $data['key'] : null; } - /** * Show all the invalid properties with reasons. * @@ -194,7 +157,6 @@ class GetChildInfoApiKeysV3 implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['name'] === null) { $invalidProperties[] = "'name' can't be null"; } @@ -203,7 +165,6 @@ class GetChildInfoApiKeysV3 implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -212,10 +173,8 @@ class GetChildInfoApiKeysV3 implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets name * @@ -225,7 +184,6 @@ class GetChildInfoApiKeysV3 implements ModelInterface, ArrayAccess { return $this->container['name']; } - /** * Sets name * @@ -236,10 +194,8 @@ class GetChildInfoApiKeysV3 implements ModelInterface, ArrayAccess public function setName($name) { $this->container['name'] = $name; - return $this; } - /** * Gets key * @@ -249,7 +205,6 @@ class GetChildInfoApiKeysV3 implements ModelInterface, ArrayAccess { return $this->container['key']; } - /** * Sets key * @@ -260,7 +215,6 @@ class GetChildInfoApiKeysV3 implements ModelInterface, ArrayAccess public function setKey($key) { $this->container['key'] = $key; - return $this; } /** @@ -274,7 +228,6 @@ class GetChildInfoApiKeysV3 implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -286,7 +239,6 @@ class GetChildInfoApiKeysV3 implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -297,13 +249,12 @@ class GetChildInfoApiKeysV3 implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -315,7 +266,6 @@ class GetChildInfoApiKeysV3 implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -323,15 +273,10 @@ class GetChildInfoApiKeysV3 implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildInfoCredits.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildInfoCredits.php similarity index 81% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildInfoCredits.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildInfoCredits.php index 1af7cbf..6cf3c61 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildInfoCredits.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildInfoCredits.php @@ -1,4 +1,5 @@ 'int', - 'smsCredits' => 'int' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['emailCredits' => 'int', 'smsCredits' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'emailCredits' => 'int64', - 'smsCredits' => 'int64' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['emailCredits' => 'int64', 'smsCredits' => 'int64']; /** * Array of property to type mappings. Used for (de)serialization * @@ -81,7 +68,6 @@ class GetChildInfoCredits implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -91,38 +77,25 @@ class GetChildInfoCredits implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'emailCredits' => 'emailCredits', - 'smsCredits' => 'smsCredits' - ]; - + protected static $attributeMap = ['emailCredits' => 'emailCredits', 'smsCredits' => 'smsCredits']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'emailCredits' => 'setEmailCredits', - 'smsCredits' => 'setSmsCredits' - ]; - + protected static $setters = ['emailCredits' => 'setEmailCredits', 'smsCredits' => 'setSmsCredits']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'emailCredits' => 'getEmailCredits', - 'smsCredits' => 'getSmsCredits' - ]; - + protected static $getters = ['emailCredits' => 'getEmailCredits', 'smsCredits' => 'getSmsCredits']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -133,7 +106,6 @@ class GetChildInfoCredits implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -143,7 +115,6 @@ class GetChildInfoCredits implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -153,7 +124,6 @@ class GetChildInfoCredits implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -163,18 +133,12 @@ class GetChildInfoCredits implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -186,7 +150,6 @@ class GetChildInfoCredits implements ModelInterface, ArrayAccess $this->container['emailCredits'] = isset($data['emailCredits']) ? $data['emailCredits'] : null; $this->container['smsCredits'] = isset($data['smsCredits']) ? $data['smsCredits'] : null; } - /** * Show all the invalid properties with reasons. * @@ -195,10 +158,8 @@ class GetChildInfoCredits implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -207,10 +168,8 @@ class GetChildInfoCredits implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets emailCredits * @@ -220,7 +179,6 @@ class GetChildInfoCredits implements ModelInterface, ArrayAccess { return $this->container['emailCredits']; } - /** * Sets emailCredits * @@ -231,10 +189,8 @@ class GetChildInfoCredits implements ModelInterface, ArrayAccess public function setEmailCredits($emailCredits) { $this->container['emailCredits'] = $emailCredits; - return $this; } - /** * Gets smsCredits * @@ -244,7 +200,6 @@ class GetChildInfoCredits implements ModelInterface, ArrayAccess { return $this->container['smsCredits']; } - /** * Sets smsCredits * @@ -255,7 +210,6 @@ class GetChildInfoCredits implements ModelInterface, ArrayAccess public function setSmsCredits($smsCredits) { $this->container['smsCredits'] = $smsCredits; - return $this; } /** @@ -269,7 +223,6 @@ class GetChildInfoCredits implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -281,7 +234,6 @@ class GetChildInfoCredits implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -292,13 +244,12 @@ class GetChildInfoCredits implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -310,7 +261,6 @@ class GetChildInfoCredits implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -318,15 +268,10 @@ class GetChildInfoCredits implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildInfoStatistics.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildInfoStatistics.php similarity index 79% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildInfoStatistics.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildInfoStatistics.php index c5e8037..ff0b847 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildInfoStatistics.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildInfoStatistics.php @@ -1,4 +1,5 @@ 'int', - 'currentMonthTotalSent' => 'int', - 'totalSent' => 'int' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['previousMonthTotalSent' => 'int', 'currentMonthTotalSent' => 'int', 'totalSent' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'previousMonthTotalSent' => 'int64', - 'currentMonthTotalSent' => 'int64', - 'totalSent' => 'int64' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['previousMonthTotalSent' => 'int64', 'currentMonthTotalSent' => 'int64', 'totalSent' => 'int64']; /** * Array of property to type mappings. Used for (de)serialization * @@ -83,7 +68,6 @@ class GetChildInfoStatistics implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -93,41 +77,25 @@ class GetChildInfoStatistics implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'previousMonthTotalSent' => 'previousMonthTotalSent', - 'currentMonthTotalSent' => 'currentMonthTotalSent', - 'totalSent' => 'totalSent' - ]; - + protected static $attributeMap = ['previousMonthTotalSent' => 'previousMonthTotalSent', 'currentMonthTotalSent' => 'currentMonthTotalSent', 'totalSent' => 'totalSent']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'previousMonthTotalSent' => 'setPreviousMonthTotalSent', - 'currentMonthTotalSent' => 'setCurrentMonthTotalSent', - 'totalSent' => 'setTotalSent' - ]; - + protected static $setters = ['previousMonthTotalSent' => 'setPreviousMonthTotalSent', 'currentMonthTotalSent' => 'setCurrentMonthTotalSent', 'totalSent' => 'setTotalSent']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'previousMonthTotalSent' => 'getPreviousMonthTotalSent', - 'currentMonthTotalSent' => 'getCurrentMonthTotalSent', - 'totalSent' => 'getTotalSent' - ]; - + protected static $getters = ['previousMonthTotalSent' => 'getPreviousMonthTotalSent', 'currentMonthTotalSent' => 'getCurrentMonthTotalSent', 'totalSent' => 'getTotalSent']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -138,7 +106,6 @@ class GetChildInfoStatistics implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -148,7 +115,6 @@ class GetChildInfoStatistics implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -158,7 +124,6 @@ class GetChildInfoStatistics implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -168,18 +133,12 @@ class GetChildInfoStatistics implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -192,7 +151,6 @@ class GetChildInfoStatistics implements ModelInterface, ArrayAccess $this->container['currentMonthTotalSent'] = isset($data['currentMonthTotalSent']) ? $data['currentMonthTotalSent'] : null; $this->container['totalSent'] = isset($data['totalSent']) ? $data['totalSent'] : null; } - /** * Show all the invalid properties with reasons. * @@ -201,10 +159,8 @@ class GetChildInfoStatistics implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -213,10 +169,8 @@ class GetChildInfoStatistics implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets previousMonthTotalSent * @@ -226,7 +180,6 @@ class GetChildInfoStatistics implements ModelInterface, ArrayAccess { return $this->container['previousMonthTotalSent']; } - /** * Sets previousMonthTotalSent * @@ -237,10 +190,8 @@ class GetChildInfoStatistics implements ModelInterface, ArrayAccess public function setPreviousMonthTotalSent($previousMonthTotalSent) { $this->container['previousMonthTotalSent'] = $previousMonthTotalSent; - return $this; } - /** * Gets currentMonthTotalSent * @@ -250,7 +201,6 @@ class GetChildInfoStatistics implements ModelInterface, ArrayAccess { return $this->container['currentMonthTotalSent']; } - /** * Sets currentMonthTotalSent * @@ -261,10 +211,8 @@ class GetChildInfoStatistics implements ModelInterface, ArrayAccess public function setCurrentMonthTotalSent($currentMonthTotalSent) { $this->container['currentMonthTotalSent'] = $currentMonthTotalSent; - return $this; } - /** * Gets totalSent * @@ -274,7 +222,6 @@ class GetChildInfoStatistics implements ModelInterface, ArrayAccess { return $this->container['totalSent']; } - /** * Sets totalSent * @@ -285,7 +232,6 @@ class GetChildInfoStatistics implements ModelInterface, ArrayAccess public function setTotalSent($totalSent) { $this->container['totalSent'] = $totalSent; - return $this; } /** @@ -299,7 +245,6 @@ class GetChildInfoStatistics implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -311,7 +256,6 @@ class GetChildInfoStatistics implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -322,13 +266,12 @@ class GetChildInfoStatistics implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -340,7 +283,6 @@ class GetChildInfoStatistics implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -348,15 +290,10 @@ class GetChildInfoStatistics implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildrenList.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildrenList.php similarity index 81% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildrenList.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildrenList.php index 95e5f0a..21f5c7a 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetChildrenList.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetChildrenList.php @@ -1,4 +1,5 @@ 'object[]', - 'count' => 'int' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['children' => 'object[]', 'count' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'children' => null, - 'count' => 'int64' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['children' => null, 'count' => 'int64']; /** * Array of property to type mappings. Used for (de)serialization * @@ -80,7 +67,6 @@ class GetChildrenList implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -90,38 +76,25 @@ class GetChildrenList implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'children' => 'children', - 'count' => 'count' - ]; - + protected static $attributeMap = ['children' => 'children', 'count' => 'count']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'children' => 'setChildren', - 'count' => 'setCount' - ]; - + protected static $setters = ['children' => 'setChildren', 'count' => 'setCount']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'children' => 'getChildren', - 'count' => 'getCount' - ]; - + protected static $getters = ['children' => 'getChildren', 'count' => 'getCount']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -132,7 +105,6 @@ class GetChildrenList implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -142,7 +114,6 @@ class GetChildrenList implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -152,7 +123,6 @@ class GetChildrenList implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -162,18 +132,12 @@ class GetChildrenList implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -185,7 +149,6 @@ class GetChildrenList implements ModelInterface, ArrayAccess $this->container['children'] = isset($data['children']) ? $data['children'] : null; $this->container['count'] = isset($data['count']) ? $data['count'] : null; } - /** * Show all the invalid properties with reasons. * @@ -194,13 +157,11 @@ class GetChildrenList implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['count'] === null) { $invalidProperties[] = "'count' can't be null"; } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -209,10 +170,8 @@ class GetChildrenList implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets children * @@ -222,7 +181,6 @@ class GetChildrenList implements ModelInterface, ArrayAccess { return $this->container['children']; } - /** * Sets children * @@ -233,10 +191,8 @@ class GetChildrenList implements ModelInterface, ArrayAccess public function setChildren($children) { $this->container['children'] = $children; - return $this; } - /** * Gets count * @@ -246,7 +202,6 @@ class GetChildrenList implements ModelInterface, ArrayAccess { return $this->container['count']; } - /** * Sets count * @@ -257,7 +212,6 @@ class GetChildrenList implements ModelInterface, ArrayAccess public function setCount($count) { $this->container['count'] = $count; - return $this; } /** @@ -271,7 +225,6 @@ class GetChildrenList implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -283,7 +236,6 @@ class GetChildrenList implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -294,13 +246,12 @@ class GetChildrenList implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -312,7 +263,6 @@ class GetChildrenList implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -320,15 +270,10 @@ class GetChildrenList implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetClient.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetClient.php similarity index 81% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetClient.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetClient.php index e615307..c971f79 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetClient.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetClient.php @@ -1,4 +1,5 @@ 'string', - 'firstName' => 'string', - 'lastName' => 'string', - 'companyName' => 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['email' => 'string', 'firstName' => 'string', 'lastName' => 'string', 'companyName' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'email' => 'email', - 'firstName' => null, - 'lastName' => null, - 'companyName' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['email' => 'email', 'firstName' => null, 'lastName' => null, 'companyName' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -84,7 +67,6 @@ class GetClient implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -94,44 +76,25 @@ class GetClient implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'email' => 'email', - 'firstName' => 'firstName', - 'lastName' => 'lastName', - 'companyName' => 'companyName' - ]; - + protected static $attributeMap = ['email' => 'email', 'firstName' => 'firstName', 'lastName' => 'lastName', 'companyName' => 'companyName']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'email' => 'setEmail', - 'firstName' => 'setFirstName', - 'lastName' => 'setLastName', - 'companyName' => 'setCompanyName' - ]; - + protected static $setters = ['email' => 'setEmail', 'firstName' => 'setFirstName', 'lastName' => 'setLastName', 'companyName' => 'setCompanyName']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'email' => 'getEmail', - 'firstName' => 'getFirstName', - 'lastName' => 'getLastName', - 'companyName' => 'getCompanyName' - ]; - + protected static $getters = ['email' => 'getEmail', 'firstName' => 'getFirstName', 'lastName' => 'getLastName', 'companyName' => 'getCompanyName']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -142,7 +105,6 @@ class GetClient implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -152,7 +114,6 @@ class GetClient implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -162,7 +123,6 @@ class GetClient implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -172,18 +132,12 @@ class GetClient implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -197,7 +151,6 @@ class GetClient implements ModelInterface, ArrayAccess $this->container['lastName'] = isset($data['lastName']) ? $data['lastName'] : null; $this->container['companyName'] = isset($data['companyName']) ? $data['companyName'] : null; } - /** * Show all the invalid properties with reasons. * @@ -206,7 +159,6 @@ class GetClient implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['email'] === null) { $invalidProperties[] = "'email' can't be null"; } @@ -221,7 +173,6 @@ class GetClient implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -230,10 +181,8 @@ class GetClient implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets email * @@ -243,7 +192,6 @@ class GetClient implements ModelInterface, ArrayAccess { return $this->container['email']; } - /** * Sets email * @@ -254,10 +202,8 @@ class GetClient implements ModelInterface, ArrayAccess public function setEmail($email) { $this->container['email'] = $email; - return $this; } - /** * Gets firstName * @@ -267,7 +213,6 @@ class GetClient implements ModelInterface, ArrayAccess { return $this->container['firstName']; } - /** * Sets firstName * @@ -278,10 +223,8 @@ class GetClient implements ModelInterface, ArrayAccess public function setFirstName($firstName) { $this->container['firstName'] = $firstName; - return $this; } - /** * Gets lastName * @@ -291,7 +234,6 @@ class GetClient implements ModelInterface, ArrayAccess { return $this->container['lastName']; } - /** * Sets lastName * @@ -302,10 +244,8 @@ class GetClient implements ModelInterface, ArrayAccess public function setLastName($lastName) { $this->container['lastName'] = $lastName; - return $this; } - /** * Gets companyName * @@ -315,7 +255,6 @@ class GetClient implements ModelInterface, ArrayAccess { return $this->container['companyName']; } - /** * Sets companyName * @@ -326,7 +265,6 @@ class GetClient implements ModelInterface, ArrayAccess public function setCompanyName($companyName) { $this->container['companyName'] = $companyName; - return $this; } /** @@ -340,7 +278,6 @@ class GetClient implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -352,7 +289,6 @@ class GetClient implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -363,13 +299,12 @@ class GetClient implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -381,7 +316,6 @@ class GetClient implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -389,15 +323,10 @@ class GetClient implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStats.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStats.php similarity index 77% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStats.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStats.php index df418c4..c9ef97b 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStats.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStats.php @@ -1,4 +1,5 @@ '\SendinBlue\Client\Model\GetExtendedContactDetailsStatisticsMessagesSent[]', - 'hardBounces' => '\SendinBlue\Client\Model\GetExtendedContactDetailsStatisticsMessagesSent[]', - 'softBounces' => '\SendinBlue\Client\Model\GetExtendedContactDetailsStatisticsMessagesSent[]', - 'complaints' => '\SendinBlue\Client\Model\GetExtendedContactDetailsStatisticsMessagesSent[]', - 'unsubscriptions' => '\SendinBlue\Client\Model\GetContactCampaignStatsUnsubscriptions', - 'opened' => '\SendinBlue\Client\Model\GetContactCampaignStatsOpened[]', - 'clicked' => '\SendinBlue\Client\Model\GetContactCampaignStatsClicked[]', - 'transacAttributes' => '\SendinBlue\Client\Model\GetContactCampaignStatsTransacAttributes[]' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['messagesSent' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatisticsMessagesSent[]', 'hardBounces' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatisticsMessagesSent[]', 'softBounces' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatisticsMessagesSent[]', 'complaints' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatisticsMessagesSent[]', 'unsubscriptions' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetContactCampaignStatsUnsubscriptions', 'opened' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetContactCampaignStatsOpened[]', 'clicked' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetContactCampaignStatsClicked[]', 'transacAttributes' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetContactCampaignStatsTransacAttributes[]']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'messagesSent' => null, - 'hardBounces' => null, - 'softBounces' => null, - 'complaints' => null, - 'unsubscriptions' => null, - 'opened' => null, - 'clicked' => null, - 'transacAttributes' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['messagesSent' => null, 'hardBounces' => null, 'softBounces' => null, 'complaints' => null, 'unsubscriptions' => null, 'opened' => null, 'clicked' => null, 'transacAttributes' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -93,7 +68,6 @@ class GetContactCampaignStats implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -103,56 +77,25 @@ class GetContactCampaignStats implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'messagesSent' => 'messagesSent', - 'hardBounces' => 'hardBounces', - 'softBounces' => 'softBounces', - 'complaints' => 'complaints', - 'unsubscriptions' => 'unsubscriptions', - 'opened' => 'opened', - 'clicked' => 'clicked', - 'transacAttributes' => 'transacAttributes' - ]; - + protected static $attributeMap = ['messagesSent' => 'messagesSent', 'hardBounces' => 'hardBounces', 'softBounces' => 'softBounces', 'complaints' => 'complaints', 'unsubscriptions' => 'unsubscriptions', 'opened' => 'opened', 'clicked' => 'clicked', 'transacAttributes' => 'transacAttributes']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'messagesSent' => 'setMessagesSent', - 'hardBounces' => 'setHardBounces', - 'softBounces' => 'setSoftBounces', - 'complaints' => 'setComplaints', - 'unsubscriptions' => 'setUnsubscriptions', - 'opened' => 'setOpened', - 'clicked' => 'setClicked', - 'transacAttributes' => 'setTransacAttributes' - ]; - + protected static $setters = ['messagesSent' => 'setMessagesSent', 'hardBounces' => 'setHardBounces', 'softBounces' => 'setSoftBounces', 'complaints' => 'setComplaints', 'unsubscriptions' => 'setUnsubscriptions', 'opened' => 'setOpened', 'clicked' => 'setClicked', 'transacAttributes' => 'setTransacAttributes']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'messagesSent' => 'getMessagesSent', - 'hardBounces' => 'getHardBounces', - 'softBounces' => 'getSoftBounces', - 'complaints' => 'getComplaints', - 'unsubscriptions' => 'getUnsubscriptions', - 'opened' => 'getOpened', - 'clicked' => 'getClicked', - 'transacAttributes' => 'getTransacAttributes' - ]; - + protected static $getters = ['messagesSent' => 'getMessagesSent', 'hardBounces' => 'getHardBounces', 'softBounces' => 'getSoftBounces', 'complaints' => 'getComplaints', 'unsubscriptions' => 'getUnsubscriptions', 'opened' => 'getOpened', 'clicked' => 'getClicked', 'transacAttributes' => 'getTransacAttributes']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -163,7 +106,6 @@ class GetContactCampaignStats implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -173,7 +115,6 @@ class GetContactCampaignStats implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -183,7 +124,6 @@ class GetContactCampaignStats implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -193,18 +133,12 @@ class GetContactCampaignStats implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -222,7 +156,6 @@ class GetContactCampaignStats implements ModelInterface, ArrayAccess $this->container['clicked'] = isset($data['clicked']) ? $data['clicked'] : null; $this->container['transacAttributes'] = isset($data['transacAttributes']) ? $data['transacAttributes'] : null; } - /** * Show all the invalid properties with reasons. * @@ -231,10 +164,8 @@ class GetContactCampaignStats implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -243,10 +174,8 @@ class GetContactCampaignStats implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets messagesSent * @@ -256,7 +185,6 @@ class GetContactCampaignStats implements ModelInterface, ArrayAccess { return $this->container['messagesSent']; } - /** * Sets messagesSent * @@ -267,10 +195,8 @@ class GetContactCampaignStats implements ModelInterface, ArrayAccess public function setMessagesSent($messagesSent) { $this->container['messagesSent'] = $messagesSent; - return $this; } - /** * Gets hardBounces * @@ -280,7 +206,6 @@ class GetContactCampaignStats implements ModelInterface, ArrayAccess { return $this->container['hardBounces']; } - /** * Sets hardBounces * @@ -291,10 +216,8 @@ class GetContactCampaignStats implements ModelInterface, ArrayAccess public function setHardBounces($hardBounces) { $this->container['hardBounces'] = $hardBounces; - return $this; } - /** * Gets softBounces * @@ -304,7 +227,6 @@ class GetContactCampaignStats implements ModelInterface, ArrayAccess { return $this->container['softBounces']; } - /** * Sets softBounces * @@ -315,10 +237,8 @@ class GetContactCampaignStats implements ModelInterface, ArrayAccess public function setSoftBounces($softBounces) { $this->container['softBounces'] = $softBounces; - return $this; } - /** * Gets complaints * @@ -328,7 +248,6 @@ class GetContactCampaignStats implements ModelInterface, ArrayAccess { return $this->container['complaints']; } - /** * Sets complaints * @@ -339,10 +258,8 @@ class GetContactCampaignStats implements ModelInterface, ArrayAccess public function setComplaints($complaints) { $this->container['complaints'] = $complaints; - return $this; } - /** * Gets unsubscriptions * @@ -352,7 +269,6 @@ class GetContactCampaignStats implements ModelInterface, ArrayAccess { return $this->container['unsubscriptions']; } - /** * Sets unsubscriptions * @@ -363,10 +279,8 @@ class GetContactCampaignStats implements ModelInterface, ArrayAccess public function setUnsubscriptions($unsubscriptions) { $this->container['unsubscriptions'] = $unsubscriptions; - return $this; } - /** * Gets opened * @@ -376,7 +290,6 @@ class GetContactCampaignStats implements ModelInterface, ArrayAccess { return $this->container['opened']; } - /** * Sets opened * @@ -387,10 +300,8 @@ class GetContactCampaignStats implements ModelInterface, ArrayAccess public function setOpened($opened) { $this->container['opened'] = $opened; - return $this; } - /** * Gets clicked * @@ -400,7 +311,6 @@ class GetContactCampaignStats implements ModelInterface, ArrayAccess { return $this->container['clicked']; } - /** * Sets clicked * @@ -411,10 +321,8 @@ class GetContactCampaignStats implements ModelInterface, ArrayAccess public function setClicked($clicked) { $this->container['clicked'] = $clicked; - return $this; } - /** * Gets transacAttributes * @@ -424,7 +332,6 @@ class GetContactCampaignStats implements ModelInterface, ArrayAccess { return $this->container['transacAttributes']; } - /** * Sets transacAttributes * @@ -435,7 +342,6 @@ class GetContactCampaignStats implements ModelInterface, ArrayAccess public function setTransacAttributes($transacAttributes) { $this->container['transacAttributes'] = $transacAttributes; - return $this; } /** @@ -449,7 +355,6 @@ class GetContactCampaignStats implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -461,7 +366,6 @@ class GetContactCampaignStats implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -472,13 +376,12 @@ class GetContactCampaignStats implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -490,7 +393,6 @@ class GetContactCampaignStats implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -498,15 +400,10 @@ class GetContactCampaignStats implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsClicked.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsClicked.php similarity index 81% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsClicked.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsClicked.php index 81fed70..2b4b35f 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsClicked.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsClicked.php @@ -1,4 +1,5 @@ 'int', - 'links' => '\SendinBlue\Client\Model\GetExtendedContactDetailsStatisticsLinks[]' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['campaignId' => 'int', 'links' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatisticsLinks[]']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'campaignId' => 'int64', - 'links' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['campaignId' => 'int64', 'links' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -80,7 +67,6 @@ class GetContactCampaignStatsClicked implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -90,38 +76,25 @@ class GetContactCampaignStatsClicked implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'campaignId' => 'campaignId', - 'links' => 'links' - ]; - + protected static $attributeMap = ['campaignId' => 'campaignId', 'links' => 'links']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'campaignId' => 'setCampaignId', - 'links' => 'setLinks' - ]; - + protected static $setters = ['campaignId' => 'setCampaignId', 'links' => 'setLinks']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'campaignId' => 'getCampaignId', - 'links' => 'getLinks' - ]; - + protected static $getters = ['campaignId' => 'getCampaignId', 'links' => 'getLinks']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -132,7 +105,6 @@ class GetContactCampaignStatsClicked implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -142,7 +114,6 @@ class GetContactCampaignStatsClicked implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -152,7 +123,6 @@ class GetContactCampaignStatsClicked implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -162,18 +132,12 @@ class GetContactCampaignStatsClicked implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -185,7 +149,6 @@ class GetContactCampaignStatsClicked implements ModelInterface, ArrayAccess $this->container['campaignId'] = isset($data['campaignId']) ? $data['campaignId'] : null; $this->container['links'] = isset($data['links']) ? $data['links'] : null; } - /** * Show all the invalid properties with reasons. * @@ -194,7 +157,6 @@ class GetContactCampaignStatsClicked implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['campaignId'] === null) { $invalidProperties[] = "'campaignId' can't be null"; } @@ -203,7 +165,6 @@ class GetContactCampaignStatsClicked implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -212,10 +173,8 @@ class GetContactCampaignStatsClicked implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets campaignId * @@ -225,7 +184,6 @@ class GetContactCampaignStatsClicked implements ModelInterface, ArrayAccess { return $this->container['campaignId']; } - /** * Sets campaignId * @@ -236,10 +194,8 @@ class GetContactCampaignStatsClicked implements ModelInterface, ArrayAccess public function setCampaignId($campaignId) { $this->container['campaignId'] = $campaignId; - return $this; } - /** * Gets links * @@ -249,7 +205,6 @@ class GetContactCampaignStatsClicked implements ModelInterface, ArrayAccess { return $this->container['links']; } - /** * Sets links * @@ -260,7 +215,6 @@ class GetContactCampaignStatsClicked implements ModelInterface, ArrayAccess public function setLinks($links) { $this->container['links'] = $links; - return $this; } /** @@ -274,7 +228,6 @@ class GetContactCampaignStatsClicked implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -286,7 +239,6 @@ class GetContactCampaignStatsClicked implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -297,13 +249,12 @@ class GetContactCampaignStatsClicked implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -315,7 +266,6 @@ class GetContactCampaignStatsClicked implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -323,15 +273,10 @@ class GetContactCampaignStatsClicked implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsOpened.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsOpened.php similarity index 81% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsOpened.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsOpened.php index e6ad277..f16e5b1 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsOpened.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsOpened.php @@ -1,4 +1,5 @@ 'int', - 'count' => 'int', - 'eventTime' => '\DateTime', - 'ip' => 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['campaignId' => 'int', 'count' => 'int', 'eventTime' => '\\DateTime', 'ip' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'campaignId' => 'int64', - 'count' => 'int64', - 'eventTime' => 'date-time', - 'ip' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['campaignId' => 'int64', 'count' => 'int64', 'eventTime' => 'date-time', 'ip' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -84,7 +67,6 @@ class GetContactCampaignStatsOpened implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -94,44 +76,25 @@ class GetContactCampaignStatsOpened implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'campaignId' => 'campaignId', - 'count' => 'count', - 'eventTime' => 'eventTime', - 'ip' => 'ip' - ]; - + protected static $attributeMap = ['campaignId' => 'campaignId', 'count' => 'count', 'eventTime' => 'eventTime', 'ip' => 'ip']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'campaignId' => 'setCampaignId', - 'count' => 'setCount', - 'eventTime' => 'setEventTime', - 'ip' => 'setIp' - ]; - + protected static $setters = ['campaignId' => 'setCampaignId', 'count' => 'setCount', 'eventTime' => 'setEventTime', 'ip' => 'setIp']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'campaignId' => 'getCampaignId', - 'count' => 'getCount', - 'eventTime' => 'getEventTime', - 'ip' => 'getIp' - ]; - + protected static $getters = ['campaignId' => 'getCampaignId', 'count' => 'getCount', 'eventTime' => 'getEventTime', 'ip' => 'getIp']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -142,7 +105,6 @@ class GetContactCampaignStatsOpened implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -152,7 +114,6 @@ class GetContactCampaignStatsOpened implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -162,7 +123,6 @@ class GetContactCampaignStatsOpened implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -172,18 +132,12 @@ class GetContactCampaignStatsOpened implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -197,7 +151,6 @@ class GetContactCampaignStatsOpened implements ModelInterface, ArrayAccess $this->container['eventTime'] = isset($data['eventTime']) ? $data['eventTime'] : null; $this->container['ip'] = isset($data['ip']) ? $data['ip'] : null; } - /** * Show all the invalid properties with reasons. * @@ -206,7 +159,6 @@ class GetContactCampaignStatsOpened implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['campaignId'] === null) { $invalidProperties[] = "'campaignId' can't be null"; } @@ -221,7 +173,6 @@ class GetContactCampaignStatsOpened implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -230,10 +181,8 @@ class GetContactCampaignStatsOpened implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets campaignId * @@ -243,7 +192,6 @@ class GetContactCampaignStatsOpened implements ModelInterface, ArrayAccess { return $this->container['campaignId']; } - /** * Sets campaignId * @@ -254,10 +202,8 @@ class GetContactCampaignStatsOpened implements ModelInterface, ArrayAccess public function setCampaignId($campaignId) { $this->container['campaignId'] = $campaignId; - return $this; } - /** * Gets count * @@ -267,7 +213,6 @@ class GetContactCampaignStatsOpened implements ModelInterface, ArrayAccess { return $this->container['count']; } - /** * Sets count * @@ -278,10 +223,8 @@ class GetContactCampaignStatsOpened implements ModelInterface, ArrayAccess public function setCount($count) { $this->container['count'] = $count; - return $this; } - /** * Gets eventTime * @@ -291,7 +234,6 @@ class GetContactCampaignStatsOpened implements ModelInterface, ArrayAccess { return $this->container['eventTime']; } - /** * Sets eventTime * @@ -302,10 +244,8 @@ class GetContactCampaignStatsOpened implements ModelInterface, ArrayAccess public function setEventTime($eventTime) { $this->container['eventTime'] = $eventTime; - return $this; } - /** * Gets ip * @@ -315,7 +255,6 @@ class GetContactCampaignStatsOpened implements ModelInterface, ArrayAccess { return $this->container['ip']; } - /** * Sets ip * @@ -326,7 +265,6 @@ class GetContactCampaignStatsOpened implements ModelInterface, ArrayAccess public function setIp($ip) { $this->container['ip'] = $ip; - return $this; } /** @@ -340,7 +278,6 @@ class GetContactCampaignStatsOpened implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -352,7 +289,6 @@ class GetContactCampaignStatsOpened implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -363,13 +299,12 @@ class GetContactCampaignStatsOpened implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -381,7 +316,6 @@ class GetContactCampaignStatsOpened implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -389,15 +323,10 @@ class GetContactCampaignStatsOpened implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsTransacAttributes.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsTransacAttributes.php similarity index 81% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsTransacAttributes.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsTransacAttributes.php index 3bdf637..8c2f155 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsTransacAttributes.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsTransacAttributes.php @@ -1,4 +1,5 @@ '\DateTime', - 'orderPrice' => 'float', - 'orderId' => 'int' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['orderDate' => '\\DateTime', 'orderPrice' => 'float', 'orderId' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'orderDate' => 'date', - 'orderPrice' => 'float', - 'orderId' => 'int64' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['orderDate' => 'date', 'orderPrice' => 'float', 'orderId' => 'int64']; /** * Array of property to type mappings. Used for (de)serialization * @@ -82,7 +67,6 @@ class GetContactCampaignStatsTransacAttributes implements ModelInterface, ArrayA { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -92,41 +76,25 @@ class GetContactCampaignStatsTransacAttributes implements ModelInterface, ArrayA { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'orderDate' => 'orderDate', - 'orderPrice' => 'orderPrice', - 'orderId' => 'orderId' - ]; - + protected static $attributeMap = ['orderDate' => 'orderDate', 'orderPrice' => 'orderPrice', 'orderId' => 'orderId']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'orderDate' => 'setOrderDate', - 'orderPrice' => 'setOrderPrice', - 'orderId' => 'setOrderId' - ]; - + protected static $setters = ['orderDate' => 'setOrderDate', 'orderPrice' => 'setOrderPrice', 'orderId' => 'setOrderId']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'orderDate' => 'getOrderDate', - 'orderPrice' => 'getOrderPrice', - 'orderId' => 'getOrderId' - ]; - + protected static $getters = ['orderDate' => 'getOrderDate', 'orderPrice' => 'getOrderPrice', 'orderId' => 'getOrderId']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -137,7 +105,6 @@ class GetContactCampaignStatsTransacAttributes implements ModelInterface, ArrayA { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -147,7 +114,6 @@ class GetContactCampaignStatsTransacAttributes implements ModelInterface, ArrayA { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -157,7 +123,6 @@ class GetContactCampaignStatsTransacAttributes implements ModelInterface, ArrayA { return self::$getters; } - /** * The original name of the model. * @@ -167,18 +132,12 @@ class GetContactCampaignStatsTransacAttributes implements ModelInterface, ArrayA { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -191,7 +150,6 @@ class GetContactCampaignStatsTransacAttributes implements ModelInterface, ArrayA $this->container['orderPrice'] = isset($data['orderPrice']) ? $data['orderPrice'] : null; $this->container['orderId'] = isset($data['orderId']) ? $data['orderId'] : null; } - /** * Show all the invalid properties with reasons. * @@ -200,7 +158,6 @@ class GetContactCampaignStatsTransacAttributes implements ModelInterface, ArrayA public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['orderDate'] === null) { $invalidProperties[] = "'orderDate' can't be null"; } @@ -212,7 +169,6 @@ class GetContactCampaignStatsTransacAttributes implements ModelInterface, ArrayA } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -221,10 +177,8 @@ class GetContactCampaignStatsTransacAttributes implements ModelInterface, ArrayA */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets orderDate * @@ -234,7 +188,6 @@ class GetContactCampaignStatsTransacAttributes implements ModelInterface, ArrayA { return $this->container['orderDate']; } - /** * Sets orderDate * @@ -245,10 +198,8 @@ class GetContactCampaignStatsTransacAttributes implements ModelInterface, ArrayA public function setOrderDate($orderDate) { $this->container['orderDate'] = $orderDate; - return $this; } - /** * Gets orderPrice * @@ -258,7 +209,6 @@ class GetContactCampaignStatsTransacAttributes implements ModelInterface, ArrayA { return $this->container['orderPrice']; } - /** * Sets orderPrice * @@ -269,10 +219,8 @@ class GetContactCampaignStatsTransacAttributes implements ModelInterface, ArrayA public function setOrderPrice($orderPrice) { $this->container['orderPrice'] = $orderPrice; - return $this; } - /** * Gets orderId * @@ -282,7 +230,6 @@ class GetContactCampaignStatsTransacAttributes implements ModelInterface, ArrayA { return $this->container['orderId']; } - /** * Sets orderId * @@ -293,7 +240,6 @@ class GetContactCampaignStatsTransacAttributes implements ModelInterface, ArrayA public function setOrderId($orderId) { $this->container['orderId'] = $orderId; - return $this; } /** @@ -307,7 +253,6 @@ class GetContactCampaignStatsTransacAttributes implements ModelInterface, ArrayA { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -319,7 +264,6 @@ class GetContactCampaignStatsTransacAttributes implements ModelInterface, ArrayA { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -330,13 +274,12 @@ class GetContactCampaignStatsTransacAttributes implements ModelInterface, ArrayA */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -348,7 +291,6 @@ class GetContactCampaignStatsTransacAttributes implements ModelInterface, ArrayA { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -356,15 +298,10 @@ class GetContactCampaignStatsTransacAttributes implements ModelInterface, ArrayA */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsUnsubscriptions.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsUnsubscriptions.php similarity index 80% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsUnsubscriptions.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsUnsubscriptions.php index d4750b0..778a8e9 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsUnsubscriptions.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContactCampaignStatsUnsubscriptions.php @@ -1,4 +1,5 @@ '\SendinBlue\Client\Model\GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription[]', - 'adminUnsubscription' => '\SendinBlue\Client\Model\GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription[]' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['userUnsubscription' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription[]', 'adminUnsubscription' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription[]']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'userUnsubscription' => null, - 'adminUnsubscription' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['userUnsubscription' => null, 'adminUnsubscription' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -80,7 +67,6 @@ class GetContactCampaignStatsUnsubscriptions implements ModelInterface, ArrayAcc { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -90,38 +76,25 @@ class GetContactCampaignStatsUnsubscriptions implements ModelInterface, ArrayAcc { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'userUnsubscription' => 'userUnsubscription', - 'adminUnsubscription' => 'adminUnsubscription' - ]; - + protected static $attributeMap = ['userUnsubscription' => 'userUnsubscription', 'adminUnsubscription' => 'adminUnsubscription']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'userUnsubscription' => 'setUserUnsubscription', - 'adminUnsubscription' => 'setAdminUnsubscription' - ]; - + protected static $setters = ['userUnsubscription' => 'setUserUnsubscription', 'adminUnsubscription' => 'setAdminUnsubscription']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'userUnsubscription' => 'getUserUnsubscription', - 'adminUnsubscription' => 'getAdminUnsubscription' - ]; - + protected static $getters = ['userUnsubscription' => 'getUserUnsubscription', 'adminUnsubscription' => 'getAdminUnsubscription']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -132,7 +105,6 @@ class GetContactCampaignStatsUnsubscriptions implements ModelInterface, ArrayAcc { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -142,7 +114,6 @@ class GetContactCampaignStatsUnsubscriptions implements ModelInterface, ArrayAcc { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -152,7 +123,6 @@ class GetContactCampaignStatsUnsubscriptions implements ModelInterface, ArrayAcc { return self::$getters; } - /** * The original name of the model. * @@ -162,18 +132,12 @@ class GetContactCampaignStatsUnsubscriptions implements ModelInterface, ArrayAcc { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -185,7 +149,6 @@ class GetContactCampaignStatsUnsubscriptions implements ModelInterface, ArrayAcc $this->container['userUnsubscription'] = isset($data['userUnsubscription']) ? $data['userUnsubscription'] : null; $this->container['adminUnsubscription'] = isset($data['adminUnsubscription']) ? $data['adminUnsubscription'] : null; } - /** * Show all the invalid properties with reasons. * @@ -194,7 +157,6 @@ class GetContactCampaignStatsUnsubscriptions implements ModelInterface, ArrayAcc public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['userUnsubscription'] === null) { $invalidProperties[] = "'userUnsubscription' can't be null"; } @@ -203,7 +165,6 @@ class GetContactCampaignStatsUnsubscriptions implements ModelInterface, ArrayAcc } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -212,10 +173,8 @@ class GetContactCampaignStatsUnsubscriptions implements ModelInterface, ArrayAcc */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets userUnsubscription * @@ -225,7 +184,6 @@ class GetContactCampaignStatsUnsubscriptions implements ModelInterface, ArrayAcc { return $this->container['userUnsubscription']; } - /** * Sets userUnsubscription * @@ -236,10 +194,8 @@ class GetContactCampaignStatsUnsubscriptions implements ModelInterface, ArrayAcc public function setUserUnsubscription($userUnsubscription) { $this->container['userUnsubscription'] = $userUnsubscription; - return $this; } - /** * Gets adminUnsubscription * @@ -249,7 +205,6 @@ class GetContactCampaignStatsUnsubscriptions implements ModelInterface, ArrayAcc { return $this->container['adminUnsubscription']; } - /** * Sets adminUnsubscription * @@ -260,7 +215,6 @@ class GetContactCampaignStatsUnsubscriptions implements ModelInterface, ArrayAcc public function setAdminUnsubscription($adminUnsubscription) { $this->container['adminUnsubscription'] = $adminUnsubscription; - return $this; } /** @@ -274,7 +228,6 @@ class GetContactCampaignStatsUnsubscriptions implements ModelInterface, ArrayAcc { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -286,7 +239,6 @@ class GetContactCampaignStatsUnsubscriptions implements ModelInterface, ArrayAcc { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -297,13 +249,12 @@ class GetContactCampaignStatsUnsubscriptions implements ModelInterface, ArrayAcc */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -315,7 +266,6 @@ class GetContactCampaignStatsUnsubscriptions implements ModelInterface, ArrayAcc { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -323,15 +273,10 @@ class GetContactCampaignStatsUnsubscriptions implements ModelInterface, ArrayAcc */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContactDetails.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContactDetails.php similarity index 80% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContactDetails.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContactDetails.php index 3831b79..8221270 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContactDetails.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContactDetails.php @@ -1,4 +1,5 @@ 'string', - 'id' => 'int', - 'emailBlacklisted' => 'bool', - 'smsBlacklisted' => 'bool', - 'createdAt' => '\DateTime', - 'modifiedAt' => '\DateTime', - 'listIds' => 'int[]', - 'listUnsubscribed' => 'int[]', - 'attributes' => 'object' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['email' => 'string', 'id' => 'int', 'emailBlacklisted' => 'bool', 'smsBlacklisted' => 'bool', 'createdAt' => '\\DateTime', 'modifiedAt' => '\\DateTime', 'listIds' => 'int[]', 'listUnsubscribed' => 'int[]', 'attributes' => 'object']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'email' => 'email', - 'id' => 'int64', - 'emailBlacklisted' => null, - 'smsBlacklisted' => null, - 'createdAt' => 'date-time', - 'modifiedAt' => 'date-time', - 'listIds' => 'int64', - 'listUnsubscribed' => 'int64', - 'attributes' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['email' => 'email', 'id' => 'int64', 'emailBlacklisted' => null, 'smsBlacklisted' => null, 'createdAt' => 'date-time', 'modifiedAt' => 'date-time', 'listIds' => 'int64', 'listUnsubscribed' => 'int64', 'attributes' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -94,7 +67,6 @@ class GetContactDetails implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -104,59 +76,25 @@ class GetContactDetails implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'email' => 'email', - 'id' => 'id', - 'emailBlacklisted' => 'emailBlacklisted', - 'smsBlacklisted' => 'smsBlacklisted', - 'createdAt' => 'createdAt', - 'modifiedAt' => 'modifiedAt', - 'listIds' => 'listIds', - 'listUnsubscribed' => 'listUnsubscribed', - 'attributes' => 'attributes' - ]; - + protected static $attributeMap = ['email' => 'email', 'id' => 'id', 'emailBlacklisted' => 'emailBlacklisted', 'smsBlacklisted' => 'smsBlacklisted', 'createdAt' => 'createdAt', 'modifiedAt' => 'modifiedAt', 'listIds' => 'listIds', 'listUnsubscribed' => 'listUnsubscribed', 'attributes' => 'attributes']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'email' => 'setEmail', - 'id' => 'setId', - 'emailBlacklisted' => 'setEmailBlacklisted', - 'smsBlacklisted' => 'setSmsBlacklisted', - 'createdAt' => 'setCreatedAt', - 'modifiedAt' => 'setModifiedAt', - 'listIds' => 'setListIds', - 'listUnsubscribed' => 'setListUnsubscribed', - 'attributes' => 'setAttributes' - ]; - + protected static $setters = ['email' => 'setEmail', 'id' => 'setId', 'emailBlacklisted' => 'setEmailBlacklisted', 'smsBlacklisted' => 'setSmsBlacklisted', 'createdAt' => 'setCreatedAt', 'modifiedAt' => 'setModifiedAt', 'listIds' => 'setListIds', 'listUnsubscribed' => 'setListUnsubscribed', 'attributes' => 'setAttributes']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'email' => 'getEmail', - 'id' => 'getId', - 'emailBlacklisted' => 'getEmailBlacklisted', - 'smsBlacklisted' => 'getSmsBlacklisted', - 'createdAt' => 'getCreatedAt', - 'modifiedAt' => 'getModifiedAt', - 'listIds' => 'getListIds', - 'listUnsubscribed' => 'getListUnsubscribed', - 'attributes' => 'getAttributes' - ]; - + protected static $getters = ['email' => 'getEmail', 'id' => 'getId', 'emailBlacklisted' => 'getEmailBlacklisted', 'smsBlacklisted' => 'getSmsBlacklisted', 'createdAt' => 'getCreatedAt', 'modifiedAt' => 'getModifiedAt', 'listIds' => 'getListIds', 'listUnsubscribed' => 'getListUnsubscribed', 'attributes' => 'getAttributes']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -167,7 +105,6 @@ class GetContactDetails implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -177,7 +114,6 @@ class GetContactDetails implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -187,7 +123,6 @@ class GetContactDetails implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -197,18 +132,12 @@ class GetContactDetails implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -227,7 +156,6 @@ class GetContactDetails implements ModelInterface, ArrayAccess $this->container['listUnsubscribed'] = isset($data['listUnsubscribed']) ? $data['listUnsubscribed'] : null; $this->container['attributes'] = isset($data['attributes']) ? $data['attributes'] : null; } - /** * Show all the invalid properties with reasons. * @@ -236,7 +164,6 @@ class GetContactDetails implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['email'] === null) { $invalidProperties[] = "'email' can't be null"; } @@ -263,7 +190,6 @@ class GetContactDetails implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -272,10 +198,8 @@ class GetContactDetails implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets email * @@ -285,7 +209,6 @@ class GetContactDetails implements ModelInterface, ArrayAccess { return $this->container['email']; } - /** * Sets email * @@ -296,10 +219,8 @@ class GetContactDetails implements ModelInterface, ArrayAccess public function setEmail($email) { $this->container['email'] = $email; - return $this; } - /** * Gets id * @@ -309,7 +230,6 @@ class GetContactDetails implements ModelInterface, ArrayAccess { return $this->container['id']; } - /** * Sets id * @@ -320,10 +240,8 @@ class GetContactDetails implements ModelInterface, ArrayAccess public function setId($id) { $this->container['id'] = $id; - return $this; } - /** * Gets emailBlacklisted * @@ -333,7 +251,6 @@ class GetContactDetails implements ModelInterface, ArrayAccess { return $this->container['emailBlacklisted']; } - /** * Sets emailBlacklisted * @@ -344,10 +261,8 @@ class GetContactDetails implements ModelInterface, ArrayAccess public function setEmailBlacklisted($emailBlacklisted) { $this->container['emailBlacklisted'] = $emailBlacklisted; - return $this; } - /** * Gets smsBlacklisted * @@ -357,7 +272,6 @@ class GetContactDetails implements ModelInterface, ArrayAccess { return $this->container['smsBlacklisted']; } - /** * Sets smsBlacklisted * @@ -368,10 +282,8 @@ class GetContactDetails implements ModelInterface, ArrayAccess public function setSmsBlacklisted($smsBlacklisted) { $this->container['smsBlacklisted'] = $smsBlacklisted; - return $this; } - /** * Gets createdAt * @@ -381,7 +293,6 @@ class GetContactDetails implements ModelInterface, ArrayAccess { return $this->container['createdAt']; } - /** * Sets createdAt * @@ -392,10 +303,8 @@ class GetContactDetails implements ModelInterface, ArrayAccess public function setCreatedAt($createdAt) { $this->container['createdAt'] = $createdAt; - return $this; } - /** * Gets modifiedAt * @@ -405,7 +314,6 @@ class GetContactDetails implements ModelInterface, ArrayAccess { return $this->container['modifiedAt']; } - /** * Sets modifiedAt * @@ -416,10 +324,8 @@ class GetContactDetails implements ModelInterface, ArrayAccess public function setModifiedAt($modifiedAt) { $this->container['modifiedAt'] = $modifiedAt; - return $this; } - /** * Gets listIds * @@ -429,7 +335,6 @@ class GetContactDetails implements ModelInterface, ArrayAccess { return $this->container['listIds']; } - /** * Sets listIds * @@ -440,10 +345,8 @@ class GetContactDetails implements ModelInterface, ArrayAccess public function setListIds($listIds) { $this->container['listIds'] = $listIds; - return $this; } - /** * Gets listUnsubscribed * @@ -453,7 +356,6 @@ class GetContactDetails implements ModelInterface, ArrayAccess { return $this->container['listUnsubscribed']; } - /** * Sets listUnsubscribed * @@ -464,10 +366,8 @@ class GetContactDetails implements ModelInterface, ArrayAccess public function setListUnsubscribed($listUnsubscribed) { $this->container['listUnsubscribed'] = $listUnsubscribed; - return $this; } - /** * Gets attributes * @@ -477,7 +377,6 @@ class GetContactDetails implements ModelInterface, ArrayAccess { return $this->container['attributes']; } - /** * Sets attributes * @@ -488,7 +387,6 @@ class GetContactDetails implements ModelInterface, ArrayAccess public function setAttributes($attributes) { $this->container['attributes'] = $attributes; - return $this; } /** @@ -502,7 +400,6 @@ class GetContactDetails implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -514,7 +411,6 @@ class GetContactDetails implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -525,13 +421,12 @@ class GetContactDetails implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -543,7 +438,6 @@ class GetContactDetails implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -551,15 +445,10 @@ class GetContactDetails implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContacts.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContacts.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContacts.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContacts.php index 7e83dca..110c2d5 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetContacts.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetContacts.php @@ -1,4 +1,5 @@ 'object[]', - 'count' => 'int' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['contacts' => 'object[]', 'count' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'contacts' => null, - 'count' => 'int64' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['contacts' => null, 'count' => 'int64']; /** * Array of property to type mappings. Used for (de)serialization * @@ -80,7 +67,6 @@ class GetContacts implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -90,38 +76,25 @@ class GetContacts implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'contacts' => 'contacts', - 'count' => 'count' - ]; - + protected static $attributeMap = ['contacts' => 'contacts', 'count' => 'count']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'contacts' => 'setContacts', - 'count' => 'setCount' - ]; - + protected static $setters = ['contacts' => 'setContacts', 'count' => 'setCount']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'contacts' => 'getContacts', - 'count' => 'getCount' - ]; - + protected static $getters = ['contacts' => 'getContacts', 'count' => 'getCount']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -132,7 +105,6 @@ class GetContacts implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -142,7 +114,6 @@ class GetContacts implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -152,7 +123,6 @@ class GetContacts implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -162,18 +132,12 @@ class GetContacts implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -185,7 +149,6 @@ class GetContacts implements ModelInterface, ArrayAccess $this->container['contacts'] = isset($data['contacts']) ? $data['contacts'] : null; $this->container['count'] = isset($data['count']) ? $data['count'] : null; } - /** * Show all the invalid properties with reasons. * @@ -194,7 +157,6 @@ class GetContacts implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['contacts'] === null) { $invalidProperties[] = "'contacts' can't be null"; } @@ -203,7 +165,6 @@ class GetContacts implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -212,10 +173,8 @@ class GetContacts implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets contacts * @@ -225,7 +184,6 @@ class GetContacts implements ModelInterface, ArrayAccess { return $this->container['contacts']; } - /** * Sets contacts * @@ -236,10 +194,8 @@ class GetContacts implements ModelInterface, ArrayAccess public function setContacts($contacts) { $this->container['contacts'] = $contacts; - return $this; } - /** * Gets count * @@ -249,7 +205,6 @@ class GetContacts implements ModelInterface, ArrayAccess { return $this->container['count']; } - /** * Sets count * @@ -260,7 +215,6 @@ class GetContacts implements ModelInterface, ArrayAccess public function setCount($count) { $this->container['count'] = $count; - return $this; } /** @@ -274,7 +228,6 @@ class GetContacts implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -286,7 +239,6 @@ class GetContacts implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -297,13 +249,12 @@ class GetContacts implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -315,7 +266,6 @@ class GetContacts implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -323,15 +273,10 @@ class GetContacts implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetDeviceBrowserStats.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetDeviceBrowserStats.php similarity index 81% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetDeviceBrowserStats.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetDeviceBrowserStats.php index f81e45c..6155957 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetDeviceBrowserStats.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetDeviceBrowserStats.php @@ -1,4 +1,5 @@ 'int', - 'uniqueClicks' => 'int', - 'viewed' => 'int', - 'uniqueViews' => 'int' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['clickers' => 'int', 'uniqueClicks' => 'int', 'viewed' => 'int', 'uniqueViews' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'clickers' => 'int64', - 'uniqueClicks' => 'int64', - 'viewed' => 'int64', - 'uniqueViews' => 'int64' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['clickers' => 'int64', 'uniqueClicks' => 'int64', 'viewed' => 'int64', 'uniqueViews' => 'int64']; /** * Array of property to type mappings. Used for (de)serialization * @@ -84,7 +67,6 @@ class GetDeviceBrowserStats implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -94,44 +76,25 @@ class GetDeviceBrowserStats implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'clickers' => 'clickers', - 'uniqueClicks' => 'uniqueClicks', - 'viewed' => 'viewed', - 'uniqueViews' => 'uniqueViews' - ]; - + protected static $attributeMap = ['clickers' => 'clickers', 'uniqueClicks' => 'uniqueClicks', 'viewed' => 'viewed', 'uniqueViews' => 'uniqueViews']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'clickers' => 'setClickers', - 'uniqueClicks' => 'setUniqueClicks', - 'viewed' => 'setViewed', - 'uniqueViews' => 'setUniqueViews' - ]; - + protected static $setters = ['clickers' => 'setClickers', 'uniqueClicks' => 'setUniqueClicks', 'viewed' => 'setViewed', 'uniqueViews' => 'setUniqueViews']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'clickers' => 'getClickers', - 'uniqueClicks' => 'getUniqueClicks', - 'viewed' => 'getViewed', - 'uniqueViews' => 'getUniqueViews' - ]; - + protected static $getters = ['clickers' => 'getClickers', 'uniqueClicks' => 'getUniqueClicks', 'viewed' => 'getViewed', 'uniqueViews' => 'getUniqueViews']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -142,7 +105,6 @@ class GetDeviceBrowserStats implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -152,7 +114,6 @@ class GetDeviceBrowserStats implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -162,7 +123,6 @@ class GetDeviceBrowserStats implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -172,18 +132,12 @@ class GetDeviceBrowserStats implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -197,7 +151,6 @@ class GetDeviceBrowserStats implements ModelInterface, ArrayAccess $this->container['viewed'] = isset($data['viewed']) ? $data['viewed'] : null; $this->container['uniqueViews'] = isset($data['uniqueViews']) ? $data['uniqueViews'] : null; } - /** * Show all the invalid properties with reasons. * @@ -206,7 +159,6 @@ class GetDeviceBrowserStats implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['clickers'] === null) { $invalidProperties[] = "'clickers' can't be null"; } @@ -221,7 +173,6 @@ class GetDeviceBrowserStats implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -230,10 +181,8 @@ class GetDeviceBrowserStats implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets clickers * @@ -243,7 +192,6 @@ class GetDeviceBrowserStats implements ModelInterface, ArrayAccess { return $this->container['clickers']; } - /** * Sets clickers * @@ -254,10 +202,8 @@ class GetDeviceBrowserStats implements ModelInterface, ArrayAccess public function setClickers($clickers) { $this->container['clickers'] = $clickers; - return $this; } - /** * Gets uniqueClicks * @@ -267,7 +213,6 @@ class GetDeviceBrowserStats implements ModelInterface, ArrayAccess { return $this->container['uniqueClicks']; } - /** * Sets uniqueClicks * @@ -278,10 +223,8 @@ class GetDeviceBrowserStats implements ModelInterface, ArrayAccess public function setUniqueClicks($uniqueClicks) { $this->container['uniqueClicks'] = $uniqueClicks; - return $this; } - /** * Gets viewed * @@ -291,7 +234,6 @@ class GetDeviceBrowserStats implements ModelInterface, ArrayAccess { return $this->container['viewed']; } - /** * Sets viewed * @@ -302,10 +244,8 @@ class GetDeviceBrowserStats implements ModelInterface, ArrayAccess public function setViewed($viewed) { $this->container['viewed'] = $viewed; - return $this; } - /** * Gets uniqueViews * @@ -315,7 +255,6 @@ class GetDeviceBrowserStats implements ModelInterface, ArrayAccess { return $this->container['uniqueViews']; } - /** * Sets uniqueViews * @@ -326,7 +265,6 @@ class GetDeviceBrowserStats implements ModelInterface, ArrayAccess public function setUniqueViews($uniqueViews) { $this->container['uniqueViews'] = $uniqueViews; - return $this; } /** @@ -340,7 +278,6 @@ class GetDeviceBrowserStats implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -352,7 +289,6 @@ class GetDeviceBrowserStats implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -363,13 +299,12 @@ class GetDeviceBrowserStats implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -381,7 +316,6 @@ class GetDeviceBrowserStats implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -389,15 +323,10 @@ class GetDeviceBrowserStats implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetEmailCampaign.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetEmailCampaign.php similarity index 75% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetEmailCampaign.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetEmailCampaign.php index 60a09e1..a815bf9 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetEmailCampaign.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetEmailCampaign.php @@ -1,4 +1,5 @@ 'int', - 'name' => 'string', - 'subject' => 'string', - 'type' => 'string', - 'status' => 'string', - 'scheduledAt' => '\DateTime', - 'abTesting' => 'bool', - 'subjectA' => 'string', - 'subjectB' => 'string', - 'splitRule' => 'int', - 'winnerCriteria' => 'string', - 'winnerDelay' => 'int', - 'sendAtBestTime' => 'bool', - 'testSent' => 'bool', - 'header' => 'string', - 'footer' => 'string', - 'sender' => '\SendinBlue\Client\Model\GetExtendedCampaignOverviewSender', - 'replyTo' => 'string', - 'toField' => 'string', - 'htmlContent' => 'string', - 'shareLink' => 'string', - 'tag' => 'string', - 'createdAt' => '\DateTime', - 'modifiedAt' => '\DateTime', - 'inlineImageActivation' => 'bool', - 'mirrorActive' => 'bool', - 'recurring' => 'bool', - 'sentDate' => '\DateTime', - 'recipients' => 'object', - 'statistics' => 'object' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['id' => 'int', 'name' => 'string', 'subject' => 'string', 'type' => 'string', 'status' => 'string', 'scheduledAt' => '\\DateTime', 'abTesting' => 'bool', 'subjectA' => 'string', 'subjectB' => 'string', 'splitRule' => 'int', 'winnerCriteria' => 'string', 'winnerDelay' => 'int', 'sendAtBestTime' => 'bool', 'testSent' => 'bool', 'header' => 'string', 'footer' => 'string', 'sender' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedCampaignOverviewSender', 'replyTo' => 'string', 'toField' => 'string', 'htmlContent' => 'string', 'shareLink' => 'string', 'tag' => 'string', 'createdAt' => '\\DateTime', 'modifiedAt' => '\\DateTime', 'inlineImageActivation' => 'bool', 'mirrorActive' => 'bool', 'recurring' => 'bool', 'sentDate' => '\\DateTime', 'returnBounce' => 'int', 'recipients' => 'object', 'statistics' => 'object']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'id' => 'int64', - 'name' => null, - 'subject' => null, - 'type' => null, - 'status' => null, - 'scheduledAt' => 'date-time', - 'abTesting' => null, - 'subjectA' => null, - 'subjectB' => null, - 'splitRule' => null, - 'winnerCriteria' => null, - 'winnerDelay' => null, - 'sendAtBestTime' => null, - 'testSent' => null, - 'header' => null, - 'footer' => null, - 'sender' => null, - 'replyTo' => 'email', - 'toField' => null, - 'htmlContent' => null, - 'shareLink' => 'url', - 'tag' => null, - 'createdAt' => 'date-time', - 'modifiedAt' => 'date-time', - 'inlineImageActivation' => null, - 'mirrorActive' => null, - 'recurring' => null, - 'sentDate' => 'date-time', - 'recipients' => null, - 'statistics' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['id' => 'int64', 'name' => null, 'subject' => null, 'type' => null, 'status' => null, 'scheduledAt' => 'date-time', 'abTesting' => null, 'subjectA' => null, 'subjectB' => null, 'splitRule' => null, 'winnerCriteria' => null, 'winnerDelay' => null, 'sendAtBestTime' => null, 'testSent' => null, 'header' => null, 'footer' => null, 'sender' => null, 'replyTo' => 'email', 'toField' => null, 'htmlContent' => null, 'shareLink' => 'url', 'tag' => null, 'createdAt' => 'date-time', 'modifiedAt' => 'date-time', 'inlineImageActivation' => null, 'mirrorActive' => null, 'recurring' => null, 'sentDate' => 'date-time', 'returnBounce' => 'int64', 'recipients' => null, 'statistics' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -136,7 +67,6 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -146,122 +76,25 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'id' => 'id', - 'name' => 'name', - 'subject' => 'subject', - 'type' => 'type', - 'status' => 'status', - 'scheduledAt' => 'scheduledAt', - 'abTesting' => 'abTesting', - 'subjectA' => 'subjectA', - 'subjectB' => 'subjectB', - 'splitRule' => 'splitRule', - 'winnerCriteria' => 'winnerCriteria', - 'winnerDelay' => 'winnerDelay', - 'sendAtBestTime' => 'sendAtBestTime', - 'testSent' => 'testSent', - 'header' => 'header', - 'footer' => 'footer', - 'sender' => 'sender', - 'replyTo' => 'replyTo', - 'toField' => 'toField', - 'htmlContent' => 'htmlContent', - 'shareLink' => 'shareLink', - 'tag' => 'tag', - 'createdAt' => 'createdAt', - 'modifiedAt' => 'modifiedAt', - 'inlineImageActivation' => 'inlineImageActivation', - 'mirrorActive' => 'mirrorActive', - 'recurring' => 'recurring', - 'sentDate' => 'sentDate', - 'recipients' => 'recipients', - 'statistics' => 'statistics' - ]; - + protected static $attributeMap = ['id' => 'id', 'name' => 'name', 'subject' => 'subject', 'type' => 'type', 'status' => 'status', 'scheduledAt' => 'scheduledAt', 'abTesting' => 'abTesting', 'subjectA' => 'subjectA', 'subjectB' => 'subjectB', 'splitRule' => 'splitRule', 'winnerCriteria' => 'winnerCriteria', 'winnerDelay' => 'winnerDelay', 'sendAtBestTime' => 'sendAtBestTime', 'testSent' => 'testSent', 'header' => 'header', 'footer' => 'footer', 'sender' => 'sender', 'replyTo' => 'replyTo', 'toField' => 'toField', 'htmlContent' => 'htmlContent', 'shareLink' => 'shareLink', 'tag' => 'tag', 'createdAt' => 'createdAt', 'modifiedAt' => 'modifiedAt', 'inlineImageActivation' => 'inlineImageActivation', 'mirrorActive' => 'mirrorActive', 'recurring' => 'recurring', 'sentDate' => 'sentDate', 'returnBounce' => 'returnBounce', 'recipients' => 'recipients', 'statistics' => 'statistics']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'id' => 'setId', - 'name' => 'setName', - 'subject' => 'setSubject', - 'type' => 'setType', - 'status' => 'setStatus', - 'scheduledAt' => 'setScheduledAt', - 'abTesting' => 'setAbTesting', - 'subjectA' => 'setSubjectA', - 'subjectB' => 'setSubjectB', - 'splitRule' => 'setSplitRule', - 'winnerCriteria' => 'setWinnerCriteria', - 'winnerDelay' => 'setWinnerDelay', - 'sendAtBestTime' => 'setSendAtBestTime', - 'testSent' => 'setTestSent', - 'header' => 'setHeader', - 'footer' => 'setFooter', - 'sender' => 'setSender', - 'replyTo' => 'setReplyTo', - 'toField' => 'setToField', - 'htmlContent' => 'setHtmlContent', - 'shareLink' => 'setShareLink', - 'tag' => 'setTag', - 'createdAt' => 'setCreatedAt', - 'modifiedAt' => 'setModifiedAt', - 'inlineImageActivation' => 'setInlineImageActivation', - 'mirrorActive' => 'setMirrorActive', - 'recurring' => 'setRecurring', - 'sentDate' => 'setSentDate', - 'recipients' => 'setRecipients', - 'statistics' => 'setStatistics' - ]; - + protected static $setters = ['id' => 'setId', 'name' => 'setName', 'subject' => 'setSubject', 'type' => 'setType', 'status' => 'setStatus', 'scheduledAt' => 'setScheduledAt', 'abTesting' => 'setAbTesting', 'subjectA' => 'setSubjectA', 'subjectB' => 'setSubjectB', 'splitRule' => 'setSplitRule', 'winnerCriteria' => 'setWinnerCriteria', 'winnerDelay' => 'setWinnerDelay', 'sendAtBestTime' => 'setSendAtBestTime', 'testSent' => 'setTestSent', 'header' => 'setHeader', 'footer' => 'setFooter', 'sender' => 'setSender', 'replyTo' => 'setReplyTo', 'toField' => 'setToField', 'htmlContent' => 'setHtmlContent', 'shareLink' => 'setShareLink', 'tag' => 'setTag', 'createdAt' => 'setCreatedAt', 'modifiedAt' => 'setModifiedAt', 'inlineImageActivation' => 'setInlineImageActivation', 'mirrorActive' => 'setMirrorActive', 'recurring' => 'setRecurring', 'sentDate' => 'setSentDate', 'returnBounce' => 'setReturnBounce', 'recipients' => 'setRecipients', 'statistics' => 'setStatistics']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'id' => 'getId', - 'name' => 'getName', - 'subject' => 'getSubject', - 'type' => 'getType', - 'status' => 'getStatus', - 'scheduledAt' => 'getScheduledAt', - 'abTesting' => 'getAbTesting', - 'subjectA' => 'getSubjectA', - 'subjectB' => 'getSubjectB', - 'splitRule' => 'getSplitRule', - 'winnerCriteria' => 'getWinnerCriteria', - 'winnerDelay' => 'getWinnerDelay', - 'sendAtBestTime' => 'getSendAtBestTime', - 'testSent' => 'getTestSent', - 'header' => 'getHeader', - 'footer' => 'getFooter', - 'sender' => 'getSender', - 'replyTo' => 'getReplyTo', - 'toField' => 'getToField', - 'htmlContent' => 'getHtmlContent', - 'shareLink' => 'getShareLink', - 'tag' => 'getTag', - 'createdAt' => 'getCreatedAt', - 'modifiedAt' => 'getModifiedAt', - 'inlineImageActivation' => 'getInlineImageActivation', - 'mirrorActive' => 'getMirrorActive', - 'recurring' => 'getRecurring', - 'sentDate' => 'getSentDate', - 'recipients' => 'getRecipients', - 'statistics' => 'getStatistics' - ]; - + protected static $getters = ['id' => 'getId', 'name' => 'getName', 'subject' => 'getSubject', 'type' => 'getType', 'status' => 'getStatus', 'scheduledAt' => 'getScheduledAt', 'abTesting' => 'getAbTesting', 'subjectA' => 'getSubjectA', 'subjectB' => 'getSubjectB', 'splitRule' => 'getSplitRule', 'winnerCriteria' => 'getWinnerCriteria', 'winnerDelay' => 'getWinnerDelay', 'sendAtBestTime' => 'getSendAtBestTime', 'testSent' => 'getTestSent', 'header' => 'getHeader', 'footer' => 'getFooter', 'sender' => 'getSender', 'replyTo' => 'getReplyTo', 'toField' => 'getToField', 'htmlContent' => 'getHtmlContent', 'shareLink' => 'getShareLink', 'tag' => 'getTag', 'createdAt' => 'getCreatedAt', 'modifiedAt' => 'getModifiedAt', 'inlineImageActivation' => 'getInlineImageActivation', 'mirrorActive' => 'getMirrorActive', 'recurring' => 'getRecurring', 'sentDate' => 'getSentDate', 'returnBounce' => 'getReturnBounce', 'recipients' => 'getRecipients', 'statistics' => 'getStatistics']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -272,7 +105,6 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -282,7 +114,6 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -292,7 +123,6 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -302,7 +132,6 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - const TYPE_CLASSIC = 'classic'; const TYPE_TRIGGER = 'trigger'; const STATUS_DRAFT = 'draft'; @@ -311,9 +140,6 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess const STATUS_QUEUED = 'queued'; const STATUS_SUSPENDED = 'suspended'; const STATUS_IN_PROCESS = 'in_process'; - - - /** * Gets allowable values of the enum * @@ -321,12 +147,8 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess */ public function getTypeAllowableValues() { - return [ - self::TYPE_CLASSIC, - self::TYPE_TRIGGER, - ]; + return [self::TYPE_CLASSIC, self::TYPE_TRIGGER]; } - /** * Gets allowable values of the enum * @@ -334,24 +156,14 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess */ public function getStatusAllowableValues() { - return [ - self::STATUS_DRAFT, - self::STATUS_SENT, - self::STATUS_ARCHIVE, - self::STATUS_QUEUED, - self::STATUS_SUSPENDED, - self::STATUS_IN_PROCESS, - ]; + return [self::STATUS_DRAFT, self::STATUS_SENT, self::STATUS_ARCHIVE, self::STATUS_QUEUED, self::STATUS_SUSPENDED, self::STATUS_IN_PROCESS]; } - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -388,10 +200,10 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess $this->container['mirrorActive'] = isset($data['mirrorActive']) ? $data['mirrorActive'] : null; $this->container['recurring'] = isset($data['recurring']) ? $data['recurring'] : null; $this->container['sentDate'] = isset($data['sentDate']) ? $data['sentDate'] : null; + $this->container['returnBounce'] = isset($data['returnBounce']) ? $data['returnBounce'] : null; $this->container['recipients'] = isset($data['recipients']) ? $data['recipients'] : null; $this->container['statistics'] = isset($data['statistics']) ? $data['statistics'] : null; } - /** * Show all the invalid properties with reasons. * @@ -400,7 +212,6 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['id'] === null) { $invalidProperties[] = "'id' can't be null"; } @@ -411,24 +222,16 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess $invalidProperties[] = "'type' can't be null"; } $allowedValues = $this->getTypeAllowableValues(); - if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value for 'type', must be one of '%s'", - implode("', '", $allowedValues) - ); + if (!\is_null($this->container['type']) && !\in_array($this->container['type'], $allowedValues, \true)) { + $invalidProperties[] = \sprintf("invalid value for 'type', must be one of '%s'", \implode("', '", $allowedValues)); } - if ($this->container['status'] === null) { $invalidProperties[] = "'status' can't be null"; } $allowedValues = $this->getStatusAllowableValues(); - if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value for 'status', must be one of '%s'", - implode("', '", $allowedValues) - ); + if (!\is_null($this->container['status']) && !\in_array($this->container['status'], $allowedValues, \true)) { + $invalidProperties[] = \sprintf("invalid value for 'status', must be one of '%s'", \implode("', '", $allowedValues)); } - if ($this->container['testSent'] === null) { $invalidProperties[] = "'testSent' can't be null"; } @@ -467,7 +270,6 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -476,10 +278,8 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets id * @@ -489,7 +289,6 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['id']; } - /** * Sets id * @@ -500,10 +299,8 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess public function setId($id) { $this->container['id'] = $id; - return $this; } - /** * Gets name * @@ -513,7 +310,6 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['name']; } - /** * Sets name * @@ -524,10 +320,8 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess public function setName($name) { $this->container['name'] = $name; - return $this; } - /** * Gets subject * @@ -537,7 +331,6 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['subject']; } - /** * Sets subject * @@ -548,10 +341,8 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess public function setSubject($subject) { $this->container['subject'] = $subject; - return $this; } - /** * Gets type * @@ -561,7 +352,6 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['type']; } - /** * Sets type * @@ -572,19 +362,12 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess public function setType($type) { $allowedValues = $this->getTypeAllowableValues(); - if (!in_array($type, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'type', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); + if (!\in_array($type, $allowedValues, \true)) { + throw new \InvalidArgumentException(\sprintf("Invalid value for 'type', must be one of '%s'", \implode("', '", $allowedValues))); } $this->container['type'] = $type; - return $this; } - /** * Gets status * @@ -594,7 +377,6 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['status']; } - /** * Sets status * @@ -605,19 +387,12 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess public function setStatus($status) { $allowedValues = $this->getStatusAllowableValues(); - if (!in_array($status, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'status', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); + if (!\in_array($status, $allowedValues, \true)) { + throw new \InvalidArgumentException(\sprintf("Invalid value for 'status', must be one of '%s'", \implode("', '", $allowedValues))); } $this->container['status'] = $status; - return $this; } - /** * Gets scheduledAt * @@ -627,7 +402,6 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['scheduledAt']; } - /** * Sets scheduledAt * @@ -638,10 +412,8 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess public function setScheduledAt($scheduledAt) { $this->container['scheduledAt'] = $scheduledAt; - return $this; } - /** * Gets abTesting * @@ -651,7 +423,6 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['abTesting']; } - /** * Sets abTesting * @@ -662,10 +433,8 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess public function setAbTesting($abTesting) { $this->container['abTesting'] = $abTesting; - return $this; } - /** * Gets subjectA * @@ -675,7 +444,6 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['subjectA']; } - /** * Sets subjectA * @@ -686,10 +454,8 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess public function setSubjectA($subjectA) { $this->container['subjectA'] = $subjectA; - return $this; } - /** * Gets subjectB * @@ -699,7 +465,6 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['subjectB']; } - /** * Sets subjectB * @@ -710,10 +475,8 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess public function setSubjectB($subjectB) { $this->container['subjectB'] = $subjectB; - return $this; } - /** * Gets splitRule * @@ -723,7 +486,6 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['splitRule']; } - /** * Sets splitRule * @@ -734,10 +496,8 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess public function setSplitRule($splitRule) { $this->container['splitRule'] = $splitRule; - return $this; } - /** * Gets winnerCriteria * @@ -747,7 +507,6 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['winnerCriteria']; } - /** * Sets winnerCriteria * @@ -758,10 +517,8 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess public function setWinnerCriteria($winnerCriteria) { $this->container['winnerCriteria'] = $winnerCriteria; - return $this; } - /** * Gets winnerDelay * @@ -771,7 +528,6 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['winnerDelay']; } - /** * Sets winnerDelay * @@ -782,10 +538,8 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess public function setWinnerDelay($winnerDelay) { $this->container['winnerDelay'] = $winnerDelay; - return $this; } - /** * Gets sendAtBestTime * @@ -795,7 +549,6 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['sendAtBestTime']; } - /** * Sets sendAtBestTime * @@ -806,10 +559,8 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess public function setSendAtBestTime($sendAtBestTime) { $this->container['sendAtBestTime'] = $sendAtBestTime; - return $this; } - /** * Gets testSent * @@ -819,7 +570,6 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['testSent']; } - /** * Sets testSent * @@ -830,10 +580,8 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess public function setTestSent($testSent) { $this->container['testSent'] = $testSent; - return $this; } - /** * Gets header * @@ -843,7 +591,6 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['header']; } - /** * Sets header * @@ -854,10 +601,8 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess public function setHeader($header) { $this->container['header'] = $header; - return $this; } - /** * Gets footer * @@ -867,7 +612,6 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['footer']; } - /** * Sets footer * @@ -878,10 +622,8 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess public function setFooter($footer) { $this->container['footer'] = $footer; - return $this; } - /** * Gets sender * @@ -891,7 +633,6 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['sender']; } - /** * Sets sender * @@ -902,10 +643,8 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess public function setSender($sender) { $this->container['sender'] = $sender; - return $this; } - /** * Gets replyTo * @@ -915,7 +654,6 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['replyTo']; } - /** * Sets replyTo * @@ -926,10 +664,8 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess public function setReplyTo($replyTo) { $this->container['replyTo'] = $replyTo; - return $this; } - /** * Gets toField * @@ -939,7 +675,6 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['toField']; } - /** * Sets toField * @@ -950,10 +685,8 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess public function setToField($toField) { $this->container['toField'] = $toField; - return $this; } - /** * Gets htmlContent * @@ -963,7 +696,6 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['htmlContent']; } - /** * Sets htmlContent * @@ -974,10 +706,8 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess public function setHtmlContent($htmlContent) { $this->container['htmlContent'] = $htmlContent; - return $this; } - /** * Gets shareLink * @@ -987,7 +717,6 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['shareLink']; } - /** * Sets shareLink * @@ -998,10 +727,8 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess public function setShareLink($shareLink) { $this->container['shareLink'] = $shareLink; - return $this; } - /** * Gets tag * @@ -1011,7 +738,6 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['tag']; } - /** * Sets tag * @@ -1022,10 +748,8 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess public function setTag($tag) { $this->container['tag'] = $tag; - return $this; } - /** * Gets createdAt * @@ -1035,7 +759,6 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['createdAt']; } - /** * Sets createdAt * @@ -1046,10 +769,8 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess public function setCreatedAt($createdAt) { $this->container['createdAt'] = $createdAt; - return $this; } - /** * Gets modifiedAt * @@ -1059,7 +780,6 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['modifiedAt']; } - /** * Sets modifiedAt * @@ -1070,10 +790,8 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess public function setModifiedAt($modifiedAt) { $this->container['modifiedAt'] = $modifiedAt; - return $this; } - /** * Gets inlineImageActivation * @@ -1083,7 +801,6 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['inlineImageActivation']; } - /** * Sets inlineImageActivation * @@ -1094,10 +811,8 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess public function setInlineImageActivation($inlineImageActivation) { $this->container['inlineImageActivation'] = $inlineImageActivation; - return $this; } - /** * Gets mirrorActive * @@ -1107,7 +822,6 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['mirrorActive']; } - /** * Sets mirrorActive * @@ -1118,10 +832,8 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess public function setMirrorActive($mirrorActive) { $this->container['mirrorActive'] = $mirrorActive; - return $this; } - /** * Gets recurring * @@ -1131,7 +843,6 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['recurring']; } - /** * Sets recurring * @@ -1142,10 +853,8 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess public function setRecurring($recurring) { $this->container['recurring'] = $recurring; - return $this; } - /** * Gets sentDate * @@ -1155,7 +864,6 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['sentDate']; } - /** * Sets sentDate * @@ -1166,10 +874,29 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess public function setSentDate($sentDate) { $this->container['sentDate'] = $sentDate; - return $this; } - + /** + * Gets returnBounce + * + * @return int + */ + public function getReturnBounce() + { + return $this->container['returnBounce']; + } + /** + * Sets returnBounce + * + * @param int $returnBounce Total number of non-delivered campaigns for a particular campaign id. + * + * @return $this + */ + public function setReturnBounce($returnBounce) + { + $this->container['returnBounce'] = $returnBounce; + return $this; + } /** * Gets recipients * @@ -1179,7 +906,6 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['recipients']; } - /** * Sets recipients * @@ -1190,10 +916,8 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess public function setRecipients($recipients) { $this->container['recipients'] = $recipients; - return $this; } - /** * Gets statistics * @@ -1203,7 +927,6 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['statistics']; } - /** * Sets statistics * @@ -1214,7 +937,6 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess public function setStatistics($statistics) { $this->container['statistics'] = $statistics; - return $this; } /** @@ -1228,7 +950,6 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -1240,7 +961,6 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -1251,13 +971,12 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -1269,7 +988,6 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -1277,15 +995,10 @@ class GetEmailCampaign implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetEmailCampaigns.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetEmailCampaigns.php similarity index 81% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetEmailCampaigns.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetEmailCampaigns.php index 794b5da..3ce10b0 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetEmailCampaigns.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetEmailCampaigns.php @@ -1,4 +1,5 @@ 'object[]', - 'count' => 'int' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['campaigns' => 'object[]', 'count' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'campaigns' => null, - 'count' => 'int64' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['campaigns' => null, 'count' => 'int64']; /** * Array of property to type mappings. Used for (de)serialization * @@ -80,7 +67,6 @@ class GetEmailCampaigns implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -90,38 +76,25 @@ class GetEmailCampaigns implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'campaigns' => 'campaigns', - 'count' => 'count' - ]; - + protected static $attributeMap = ['campaigns' => 'campaigns', 'count' => 'count']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'campaigns' => 'setCampaigns', - 'count' => 'setCount' - ]; - + protected static $setters = ['campaigns' => 'setCampaigns', 'count' => 'setCount']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'campaigns' => 'getCampaigns', - 'count' => 'getCount' - ]; - + protected static $getters = ['campaigns' => 'getCampaigns', 'count' => 'getCount']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -132,7 +105,6 @@ class GetEmailCampaigns implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -142,7 +114,6 @@ class GetEmailCampaigns implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -152,7 +123,6 @@ class GetEmailCampaigns implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -162,18 +132,12 @@ class GetEmailCampaigns implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -185,7 +149,6 @@ class GetEmailCampaigns implements ModelInterface, ArrayAccess $this->container['campaigns'] = isset($data['campaigns']) ? $data['campaigns'] : null; $this->container['count'] = isset($data['count']) ? $data['count'] : null; } - /** * Show all the invalid properties with reasons. * @@ -194,13 +157,11 @@ class GetEmailCampaigns implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['count'] === null) { $invalidProperties[] = "'count' can't be null"; } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -209,10 +170,8 @@ class GetEmailCampaigns implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets campaigns * @@ -222,7 +181,6 @@ class GetEmailCampaigns implements ModelInterface, ArrayAccess { return $this->container['campaigns']; } - /** * Sets campaigns * @@ -233,10 +191,8 @@ class GetEmailCampaigns implements ModelInterface, ArrayAccess public function setCampaigns($campaigns) { $this->container['campaigns'] = $campaigns; - return $this; } - /** * Gets count * @@ -246,7 +202,6 @@ class GetEmailCampaigns implements ModelInterface, ArrayAccess { return $this->container['count']; } - /** * Sets count * @@ -257,7 +212,6 @@ class GetEmailCampaigns implements ModelInterface, ArrayAccess public function setCount($count) { $this->container['count'] = $count; - return $this; } /** @@ -271,7 +225,6 @@ class GetEmailCampaigns implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -283,7 +236,6 @@ class GetEmailCampaigns implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -294,13 +246,12 @@ class GetEmailCampaigns implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -312,7 +263,6 @@ class GetEmailCampaigns implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -320,15 +270,10 @@ class GetEmailCampaigns implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetEmailEventReport.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetEmailEventReport.php similarity index 81% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetEmailEventReport.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetEmailEventReport.php index bd1789a..fd9ac7a 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetEmailEventReport.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetEmailEventReport.php @@ -1,4 +1,5 @@ '\SendinBlue\Client\Model\GetEmailEventReportEvents[]' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['events' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetEmailEventReportEvents[]']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'events' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['events' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -78,7 +67,6 @@ class GetEmailEventReport implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -88,35 +76,25 @@ class GetEmailEventReport implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'events' => 'events' - ]; - + protected static $attributeMap = ['events' => 'events']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'events' => 'setEvents' - ]; - + protected static $setters = ['events' => 'setEvents']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'events' => 'getEvents' - ]; - + protected static $getters = ['events' => 'getEvents']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -127,7 +105,6 @@ class GetEmailEventReport implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -137,7 +114,6 @@ class GetEmailEventReport implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -147,7 +123,6 @@ class GetEmailEventReport implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -157,18 +132,12 @@ class GetEmailEventReport implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -179,7 +148,6 @@ class GetEmailEventReport implements ModelInterface, ArrayAccess { $this->container['events'] = isset($data['events']) ? $data['events'] : null; } - /** * Show all the invalid properties with reasons. * @@ -188,10 +156,8 @@ class GetEmailEventReport implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -200,10 +166,8 @@ class GetEmailEventReport implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets events * @@ -213,7 +177,6 @@ class GetEmailEventReport implements ModelInterface, ArrayAccess { return $this->container['events']; } - /** * Sets events * @@ -224,7 +187,6 @@ class GetEmailEventReport implements ModelInterface, ArrayAccess public function setEvents($events) { $this->container['events'] = $events; - return $this; } /** @@ -238,7 +200,6 @@ class GetEmailEventReport implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -250,7 +211,6 @@ class GetEmailEventReport implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -261,13 +221,12 @@ class GetEmailEventReport implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -279,7 +238,6 @@ class GetEmailEventReport implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -287,15 +245,10 @@ class GetEmailEventReport implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetEmailEventReportEvents.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetEmailEventReportEvents.php similarity index 76% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetEmailEventReportEvents.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetEmailEventReportEvents.php index 940e375..37d0bef 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetEmailEventReportEvents.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetEmailEventReportEvents.php @@ -1,4 +1,5 @@ 'string', - 'date' => '\DateTime', - 'subject' => 'string', - 'messageId' => 'string', - 'event' => 'string', - 'reason' => 'string', - 'tag' => 'string', - 'ip' => 'string', - 'link' => 'string', - 'from' => 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['email' => 'string', 'date' => '\\DateTime', 'subject' => 'string', 'messageId' => 'string', 'event' => 'string', 'reason' => 'string', 'tag' => 'string', 'ip' => 'string', 'link' => 'string', 'from' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'email' => 'email', - 'date' => 'date-time', - 'subject' => null, - 'messageId' => null, - 'event' => null, - 'reason' => null, - 'tag' => null, - 'ip' => null, - 'link' => null, - 'from' => 'email' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['email' => 'email', 'date' => 'date-time', 'subject' => null, 'messageId' => null, 'event' => null, 'reason' => null, 'tag' => null, 'ip' => null, 'link' => null, 'from' => 'email']; /** * Array of property to type mappings. Used for (de)serialization * @@ -96,7 +67,6 @@ class GetEmailEventReportEvents implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -106,62 +76,25 @@ class GetEmailEventReportEvents implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'email' => 'email', - 'date' => 'date', - 'subject' => 'subject', - 'messageId' => 'messageId', - 'event' => 'event', - 'reason' => 'reason', - 'tag' => 'tag', - 'ip' => 'ip', - 'link' => 'link', - 'from' => 'from' - ]; - + protected static $attributeMap = ['email' => 'email', 'date' => 'date', 'subject' => 'subject', 'messageId' => 'messageId', 'event' => 'event', 'reason' => 'reason', 'tag' => 'tag', 'ip' => 'ip', 'link' => 'link', 'from' => 'from']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'email' => 'setEmail', - 'date' => 'setDate', - 'subject' => 'setSubject', - 'messageId' => 'setMessageId', - 'event' => 'setEvent', - 'reason' => 'setReason', - 'tag' => 'setTag', - 'ip' => 'setIp', - 'link' => 'setLink', - 'from' => 'setFrom' - ]; - + protected static $setters = ['email' => 'setEmail', 'date' => 'setDate', 'subject' => 'setSubject', 'messageId' => 'setMessageId', 'event' => 'setEvent', 'reason' => 'setReason', 'tag' => 'setTag', 'ip' => 'setIp', 'link' => 'setLink', 'from' => 'setFrom']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'email' => 'getEmail', - 'date' => 'getDate', - 'subject' => 'getSubject', - 'messageId' => 'getMessageId', - 'event' => 'getEvent', - 'reason' => 'getReason', - 'tag' => 'getTag', - 'ip' => 'getIp', - 'link' => 'getLink', - 'from' => 'getFrom' - ]; - + protected static $getters = ['email' => 'getEmail', 'date' => 'getDate', 'subject' => 'getSubject', 'messageId' => 'getMessageId', 'event' => 'getEvent', 'reason' => 'getReason', 'tag' => 'getTag', 'ip' => 'getIp', 'link' => 'getLink', 'from' => 'getFrom']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -172,7 +105,6 @@ class GetEmailEventReportEvents implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -182,7 +114,6 @@ class GetEmailEventReportEvents implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -192,7 +123,6 @@ class GetEmailEventReportEvents implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -202,7 +132,6 @@ class GetEmailEventReportEvents implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - const EVENT_BOUNCES = 'bounces'; const EVENT_HARD_BOUNCES = 'hardBounces'; const EVENT_SOFT_BOUNCES = 'softBounces'; @@ -215,9 +144,6 @@ class GetEmailEventReportEvents implements ModelInterface, ArrayAccess const EVENT_DEFERRED = 'deferred'; const EVENT_BLOCKED = 'blocked'; const EVENT_UNSUBSCRIBED = 'unsubscribed'; - - - /** * Gets allowable values of the enum * @@ -225,30 +151,14 @@ class GetEmailEventReportEvents implements ModelInterface, ArrayAccess */ public function getEventAllowableValues() { - return [ - self::EVENT_BOUNCES, - self::EVENT_HARD_BOUNCES, - self::EVENT_SOFT_BOUNCES, - self::EVENT_DELIVERED, - self::EVENT_SPAM, - self::EVENT_REQUESTS, - self::EVENT_OPENED, - self::EVENT_CLICKS, - self::EVENT_INVALID, - self::EVENT_DEFERRED, - self::EVENT_BLOCKED, - self::EVENT_UNSUBSCRIBED, - ]; + return [self::EVENT_BOUNCES, self::EVENT_HARD_BOUNCES, self::EVENT_SOFT_BOUNCES, self::EVENT_DELIVERED, self::EVENT_SPAM, self::EVENT_REQUESTS, self::EVENT_OPENED, self::EVENT_CLICKS, self::EVENT_INVALID, self::EVENT_DEFERRED, self::EVENT_BLOCKED, self::EVENT_UNSUBSCRIBED]; } - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -268,7 +178,6 @@ class GetEmailEventReportEvents implements ModelInterface, ArrayAccess $this->container['link'] = isset($data['link']) ? $data['link'] : null; $this->container['from'] = isset($data['from']) ? $data['from'] : null; } - /** * Show all the invalid properties with reasons. * @@ -277,7 +186,6 @@ class GetEmailEventReportEvents implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['email'] === null) { $invalidProperties[] = "'email' can't be null"; } @@ -291,16 +199,11 @@ class GetEmailEventReportEvents implements ModelInterface, ArrayAccess $invalidProperties[] = "'event' can't be null"; } $allowedValues = $this->getEventAllowableValues(); - if (!is_null($this->container['event']) && !in_array($this->container['event'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value for 'event', must be one of '%s'", - implode("', '", $allowedValues) - ); + if (!\is_null($this->container['event']) && !\in_array($this->container['event'], $allowedValues, \true)) { + $invalidProperties[] = \sprintf("invalid value for 'event', must be one of '%s'", \implode("', '", $allowedValues)); } - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -309,10 +212,8 @@ class GetEmailEventReportEvents implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets email * @@ -322,7 +223,6 @@ class GetEmailEventReportEvents implements ModelInterface, ArrayAccess { return $this->container['email']; } - /** * Sets email * @@ -333,10 +233,8 @@ class GetEmailEventReportEvents implements ModelInterface, ArrayAccess public function setEmail($email) { $this->container['email'] = $email; - return $this; } - /** * Gets date * @@ -346,7 +244,6 @@ class GetEmailEventReportEvents implements ModelInterface, ArrayAccess { return $this->container['date']; } - /** * Sets date * @@ -357,10 +254,8 @@ class GetEmailEventReportEvents implements ModelInterface, ArrayAccess public function setDate($date) { $this->container['date'] = $date; - return $this; } - /** * Gets subject * @@ -370,7 +265,6 @@ class GetEmailEventReportEvents implements ModelInterface, ArrayAccess { return $this->container['subject']; } - /** * Sets subject * @@ -381,10 +275,8 @@ class GetEmailEventReportEvents implements ModelInterface, ArrayAccess public function setSubject($subject) { $this->container['subject'] = $subject; - return $this; } - /** * Gets messageId * @@ -394,7 +286,6 @@ class GetEmailEventReportEvents implements ModelInterface, ArrayAccess { return $this->container['messageId']; } - /** * Sets messageId * @@ -405,10 +296,8 @@ class GetEmailEventReportEvents implements ModelInterface, ArrayAccess public function setMessageId($messageId) { $this->container['messageId'] = $messageId; - return $this; } - /** * Gets event * @@ -418,7 +307,6 @@ class GetEmailEventReportEvents implements ModelInterface, ArrayAccess { return $this->container['event']; } - /** * Sets event * @@ -429,19 +317,12 @@ class GetEmailEventReportEvents implements ModelInterface, ArrayAccess public function setEvent($event) { $allowedValues = $this->getEventAllowableValues(); - if (!in_array($event, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'event', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); + if (!\in_array($event, $allowedValues, \true)) { + throw new \InvalidArgumentException(\sprintf("Invalid value for 'event', must be one of '%s'", \implode("', '", $allowedValues))); } $this->container['event'] = $event; - return $this; } - /** * Gets reason * @@ -451,7 +332,6 @@ class GetEmailEventReportEvents implements ModelInterface, ArrayAccess { return $this->container['reason']; } - /** * Sets reason * @@ -462,10 +342,8 @@ class GetEmailEventReportEvents implements ModelInterface, ArrayAccess public function setReason($reason) { $this->container['reason'] = $reason; - return $this; } - /** * Gets tag * @@ -475,7 +353,6 @@ class GetEmailEventReportEvents implements ModelInterface, ArrayAccess { return $this->container['tag']; } - /** * Sets tag * @@ -486,10 +363,8 @@ class GetEmailEventReportEvents implements ModelInterface, ArrayAccess public function setTag($tag) { $this->container['tag'] = $tag; - return $this; } - /** * Gets ip * @@ -499,7 +374,6 @@ class GetEmailEventReportEvents implements ModelInterface, ArrayAccess { return $this->container['ip']; } - /** * Sets ip * @@ -510,10 +384,8 @@ class GetEmailEventReportEvents implements ModelInterface, ArrayAccess public function setIp($ip) { $this->container['ip'] = $ip; - return $this; } - /** * Gets link * @@ -523,7 +395,6 @@ class GetEmailEventReportEvents implements ModelInterface, ArrayAccess { return $this->container['link']; } - /** * Sets link * @@ -534,10 +405,8 @@ class GetEmailEventReportEvents implements ModelInterface, ArrayAccess public function setLink($link) { $this->container['link'] = $link; - return $this; } - /** * Gets from * @@ -547,7 +416,6 @@ class GetEmailEventReportEvents implements ModelInterface, ArrayAccess { return $this->container['from']; } - /** * Sets from * @@ -558,7 +426,6 @@ class GetEmailEventReportEvents implements ModelInterface, ArrayAccess public function setFrom($from) { $this->container['from'] = $from; - return $this; } /** @@ -572,7 +439,6 @@ class GetEmailEventReportEvents implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -584,7 +450,6 @@ class GetEmailEventReportEvents implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -595,13 +460,12 @@ class GetEmailEventReportEvents implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -613,7 +477,6 @@ class GetEmailEventReportEvents implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -621,15 +484,10 @@ class GetEmailEventReportEvents implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedCampaignOverview.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedCampaignOverview.php similarity index 75% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedCampaignOverview.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedCampaignOverview.php index f414577..8c35b37 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedCampaignOverview.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedCampaignOverview.php @@ -1,4 +1,5 @@ 'int', - 'name' => 'string', - 'subject' => 'string', - 'type' => 'string', - 'status' => 'string', - 'scheduledAt' => '\DateTime', - 'abTesting' => 'bool', - 'subjectA' => 'string', - 'subjectB' => 'string', - 'splitRule' => 'int', - 'winnerCriteria' => 'string', - 'winnerDelay' => 'int', - 'sendAtBestTime' => 'bool', - 'testSent' => 'bool', - 'header' => 'string', - 'footer' => 'string', - 'sender' => '\SendinBlue\Client\Model\GetExtendedCampaignOverviewSender', - 'replyTo' => 'string', - 'toField' => 'string', - 'htmlContent' => 'string', - 'shareLink' => 'string', - 'tag' => 'string', - 'createdAt' => '\DateTime', - 'modifiedAt' => '\DateTime', - 'inlineImageActivation' => 'bool', - 'mirrorActive' => 'bool', - 'recurring' => 'bool', - 'sentDate' => '\DateTime' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['id' => 'int', 'name' => 'string', 'subject' => 'string', 'type' => 'string', 'status' => 'string', 'scheduledAt' => '\\DateTime', 'abTesting' => 'bool', 'subjectA' => 'string', 'subjectB' => 'string', 'splitRule' => 'int', 'winnerCriteria' => 'string', 'winnerDelay' => 'int', 'sendAtBestTime' => 'bool', 'testSent' => 'bool', 'header' => 'string', 'footer' => 'string', 'sender' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedCampaignOverviewSender', 'replyTo' => 'string', 'toField' => 'string', 'htmlContent' => 'string', 'shareLink' => 'string', 'tag' => 'string', 'createdAt' => '\\DateTime', 'modifiedAt' => '\\DateTime', 'inlineImageActivation' => 'bool', 'mirrorActive' => 'bool', 'recurring' => 'bool', 'sentDate' => '\\DateTime', 'returnBounce' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'id' => 'int64', - 'name' => null, - 'subject' => null, - 'type' => null, - 'status' => null, - 'scheduledAt' => 'date-time', - 'abTesting' => null, - 'subjectA' => null, - 'subjectB' => null, - 'splitRule' => null, - 'winnerCriteria' => null, - 'winnerDelay' => null, - 'sendAtBestTime' => null, - 'testSent' => null, - 'header' => null, - 'footer' => null, - 'sender' => null, - 'replyTo' => 'email', - 'toField' => null, - 'htmlContent' => null, - 'shareLink' => 'url', - 'tag' => null, - 'createdAt' => 'date-time', - 'modifiedAt' => 'date-time', - 'inlineImageActivation' => null, - 'mirrorActive' => null, - 'recurring' => null, - 'sentDate' => 'date-time' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['id' => 'int64', 'name' => null, 'subject' => null, 'type' => null, 'status' => null, 'scheduledAt' => 'date-time', 'abTesting' => null, 'subjectA' => null, 'subjectB' => null, 'splitRule' => null, 'winnerCriteria' => null, 'winnerDelay' => null, 'sendAtBestTime' => null, 'testSent' => null, 'header' => null, 'footer' => null, 'sender' => null, 'replyTo' => 'email', 'toField' => null, 'htmlContent' => null, 'shareLink' => 'url', 'tag' => null, 'createdAt' => 'date-time', 'modifiedAt' => 'date-time', 'inlineImageActivation' => null, 'mirrorActive' => null, 'recurring' => null, 'sentDate' => 'date-time', 'returnBounce' => 'int64']; /** * Array of property to type mappings. Used for (de)serialization * @@ -132,7 +67,6 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -142,116 +76,25 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'id' => 'id', - 'name' => 'name', - 'subject' => 'subject', - 'type' => 'type', - 'status' => 'status', - 'scheduledAt' => 'scheduledAt', - 'abTesting' => 'abTesting', - 'subjectA' => 'subjectA', - 'subjectB' => 'subjectB', - 'splitRule' => 'splitRule', - 'winnerCriteria' => 'winnerCriteria', - 'winnerDelay' => 'winnerDelay', - 'sendAtBestTime' => 'sendAtBestTime', - 'testSent' => 'testSent', - 'header' => 'header', - 'footer' => 'footer', - 'sender' => 'sender', - 'replyTo' => 'replyTo', - 'toField' => 'toField', - 'htmlContent' => 'htmlContent', - 'shareLink' => 'shareLink', - 'tag' => 'tag', - 'createdAt' => 'createdAt', - 'modifiedAt' => 'modifiedAt', - 'inlineImageActivation' => 'inlineImageActivation', - 'mirrorActive' => 'mirrorActive', - 'recurring' => 'recurring', - 'sentDate' => 'sentDate' - ]; - + protected static $attributeMap = ['id' => 'id', 'name' => 'name', 'subject' => 'subject', 'type' => 'type', 'status' => 'status', 'scheduledAt' => 'scheduledAt', 'abTesting' => 'abTesting', 'subjectA' => 'subjectA', 'subjectB' => 'subjectB', 'splitRule' => 'splitRule', 'winnerCriteria' => 'winnerCriteria', 'winnerDelay' => 'winnerDelay', 'sendAtBestTime' => 'sendAtBestTime', 'testSent' => 'testSent', 'header' => 'header', 'footer' => 'footer', 'sender' => 'sender', 'replyTo' => 'replyTo', 'toField' => 'toField', 'htmlContent' => 'htmlContent', 'shareLink' => 'shareLink', 'tag' => 'tag', 'createdAt' => 'createdAt', 'modifiedAt' => 'modifiedAt', 'inlineImageActivation' => 'inlineImageActivation', 'mirrorActive' => 'mirrorActive', 'recurring' => 'recurring', 'sentDate' => 'sentDate', 'returnBounce' => 'returnBounce']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'id' => 'setId', - 'name' => 'setName', - 'subject' => 'setSubject', - 'type' => 'setType', - 'status' => 'setStatus', - 'scheduledAt' => 'setScheduledAt', - 'abTesting' => 'setAbTesting', - 'subjectA' => 'setSubjectA', - 'subjectB' => 'setSubjectB', - 'splitRule' => 'setSplitRule', - 'winnerCriteria' => 'setWinnerCriteria', - 'winnerDelay' => 'setWinnerDelay', - 'sendAtBestTime' => 'setSendAtBestTime', - 'testSent' => 'setTestSent', - 'header' => 'setHeader', - 'footer' => 'setFooter', - 'sender' => 'setSender', - 'replyTo' => 'setReplyTo', - 'toField' => 'setToField', - 'htmlContent' => 'setHtmlContent', - 'shareLink' => 'setShareLink', - 'tag' => 'setTag', - 'createdAt' => 'setCreatedAt', - 'modifiedAt' => 'setModifiedAt', - 'inlineImageActivation' => 'setInlineImageActivation', - 'mirrorActive' => 'setMirrorActive', - 'recurring' => 'setRecurring', - 'sentDate' => 'setSentDate' - ]; - + protected static $setters = ['id' => 'setId', 'name' => 'setName', 'subject' => 'setSubject', 'type' => 'setType', 'status' => 'setStatus', 'scheduledAt' => 'setScheduledAt', 'abTesting' => 'setAbTesting', 'subjectA' => 'setSubjectA', 'subjectB' => 'setSubjectB', 'splitRule' => 'setSplitRule', 'winnerCriteria' => 'setWinnerCriteria', 'winnerDelay' => 'setWinnerDelay', 'sendAtBestTime' => 'setSendAtBestTime', 'testSent' => 'setTestSent', 'header' => 'setHeader', 'footer' => 'setFooter', 'sender' => 'setSender', 'replyTo' => 'setReplyTo', 'toField' => 'setToField', 'htmlContent' => 'setHtmlContent', 'shareLink' => 'setShareLink', 'tag' => 'setTag', 'createdAt' => 'setCreatedAt', 'modifiedAt' => 'setModifiedAt', 'inlineImageActivation' => 'setInlineImageActivation', 'mirrorActive' => 'setMirrorActive', 'recurring' => 'setRecurring', 'sentDate' => 'setSentDate', 'returnBounce' => 'setReturnBounce']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'id' => 'getId', - 'name' => 'getName', - 'subject' => 'getSubject', - 'type' => 'getType', - 'status' => 'getStatus', - 'scheduledAt' => 'getScheduledAt', - 'abTesting' => 'getAbTesting', - 'subjectA' => 'getSubjectA', - 'subjectB' => 'getSubjectB', - 'splitRule' => 'getSplitRule', - 'winnerCriteria' => 'getWinnerCriteria', - 'winnerDelay' => 'getWinnerDelay', - 'sendAtBestTime' => 'getSendAtBestTime', - 'testSent' => 'getTestSent', - 'header' => 'getHeader', - 'footer' => 'getFooter', - 'sender' => 'getSender', - 'replyTo' => 'getReplyTo', - 'toField' => 'getToField', - 'htmlContent' => 'getHtmlContent', - 'shareLink' => 'getShareLink', - 'tag' => 'getTag', - 'createdAt' => 'getCreatedAt', - 'modifiedAt' => 'getModifiedAt', - 'inlineImageActivation' => 'getInlineImageActivation', - 'mirrorActive' => 'getMirrorActive', - 'recurring' => 'getRecurring', - 'sentDate' => 'getSentDate' - ]; - + protected static $getters = ['id' => 'getId', 'name' => 'getName', 'subject' => 'getSubject', 'type' => 'getType', 'status' => 'getStatus', 'scheduledAt' => 'getScheduledAt', 'abTesting' => 'getAbTesting', 'subjectA' => 'getSubjectA', 'subjectB' => 'getSubjectB', 'splitRule' => 'getSplitRule', 'winnerCriteria' => 'getWinnerCriteria', 'winnerDelay' => 'getWinnerDelay', 'sendAtBestTime' => 'getSendAtBestTime', 'testSent' => 'getTestSent', 'header' => 'getHeader', 'footer' => 'getFooter', 'sender' => 'getSender', 'replyTo' => 'getReplyTo', 'toField' => 'getToField', 'htmlContent' => 'getHtmlContent', 'shareLink' => 'getShareLink', 'tag' => 'getTag', 'createdAt' => 'getCreatedAt', 'modifiedAt' => 'getModifiedAt', 'inlineImageActivation' => 'getInlineImageActivation', 'mirrorActive' => 'getMirrorActive', 'recurring' => 'getRecurring', 'sentDate' => 'getSentDate', 'returnBounce' => 'getReturnBounce']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -262,7 +105,6 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -272,7 +114,6 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -282,7 +123,6 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -292,7 +132,6 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - const TYPE_CLASSIC = 'classic'; const TYPE_TRIGGER = 'trigger'; const STATUS_DRAFT = 'draft'; @@ -301,9 +140,6 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess const STATUS_QUEUED = 'queued'; const STATUS_SUSPENDED = 'suspended'; const STATUS_IN_PROCESS = 'in_process'; - - - /** * Gets allowable values of the enum * @@ -311,12 +147,8 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess */ public function getTypeAllowableValues() { - return [ - self::TYPE_CLASSIC, - self::TYPE_TRIGGER, - ]; + return [self::TYPE_CLASSIC, self::TYPE_TRIGGER]; } - /** * Gets allowable values of the enum * @@ -324,24 +156,14 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess */ public function getStatusAllowableValues() { - return [ - self::STATUS_DRAFT, - self::STATUS_SENT, - self::STATUS_ARCHIVE, - self::STATUS_QUEUED, - self::STATUS_SUSPENDED, - self::STATUS_IN_PROCESS, - ]; + return [self::STATUS_DRAFT, self::STATUS_SENT, self::STATUS_ARCHIVE, self::STATUS_QUEUED, self::STATUS_SUSPENDED, self::STATUS_IN_PROCESS]; } - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -378,8 +200,8 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess $this->container['mirrorActive'] = isset($data['mirrorActive']) ? $data['mirrorActive'] : null; $this->container['recurring'] = isset($data['recurring']) ? $data['recurring'] : null; $this->container['sentDate'] = isset($data['sentDate']) ? $data['sentDate'] : null; + $this->container['returnBounce'] = isset($data['returnBounce']) ? $data['returnBounce'] : null; } - /** * Show all the invalid properties with reasons. * @@ -388,7 +210,6 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['id'] === null) { $invalidProperties[] = "'id' can't be null"; } @@ -399,24 +220,16 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess $invalidProperties[] = "'type' can't be null"; } $allowedValues = $this->getTypeAllowableValues(); - if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value for 'type', must be one of '%s'", - implode("', '", $allowedValues) - ); + if (!\is_null($this->container['type']) && !\in_array($this->container['type'], $allowedValues, \true)) { + $invalidProperties[] = \sprintf("invalid value for 'type', must be one of '%s'", \implode("', '", $allowedValues)); } - if ($this->container['status'] === null) { $invalidProperties[] = "'status' can't be null"; } $allowedValues = $this->getStatusAllowableValues(); - if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value for 'status', must be one of '%s'", - implode("', '", $allowedValues) - ); + if (!\is_null($this->container['status']) && !\in_array($this->container['status'], $allowedValues, \true)) { + $invalidProperties[] = \sprintf("invalid value for 'status', must be one of '%s'", \implode("', '", $allowedValues)); } - if ($this->container['testSent'] === null) { $invalidProperties[] = "'testSent' can't be null"; } @@ -449,7 +262,6 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -458,10 +270,8 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets id * @@ -471,7 +281,6 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['id']; } - /** * Sets id * @@ -482,10 +291,8 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess public function setId($id) { $this->container['id'] = $id; - return $this; } - /** * Gets name * @@ -495,7 +302,6 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['name']; } - /** * Sets name * @@ -506,10 +312,8 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess public function setName($name) { $this->container['name'] = $name; - return $this; } - /** * Gets subject * @@ -519,7 +323,6 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['subject']; } - /** * Sets subject * @@ -530,10 +333,8 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess public function setSubject($subject) { $this->container['subject'] = $subject; - return $this; } - /** * Gets type * @@ -543,7 +344,6 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['type']; } - /** * Sets type * @@ -554,19 +354,12 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess public function setType($type) { $allowedValues = $this->getTypeAllowableValues(); - if (!in_array($type, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'type', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); + if (!\in_array($type, $allowedValues, \true)) { + throw new \InvalidArgumentException(\sprintf("Invalid value for 'type', must be one of '%s'", \implode("', '", $allowedValues))); } $this->container['type'] = $type; - return $this; } - /** * Gets status * @@ -576,7 +369,6 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['status']; } - /** * Sets status * @@ -587,19 +379,12 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess public function setStatus($status) { $allowedValues = $this->getStatusAllowableValues(); - if (!in_array($status, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'status', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); + if (!\in_array($status, $allowedValues, \true)) { + throw new \InvalidArgumentException(\sprintf("Invalid value for 'status', must be one of '%s'", \implode("', '", $allowedValues))); } $this->container['status'] = $status; - return $this; } - /** * Gets scheduledAt * @@ -609,7 +394,6 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['scheduledAt']; } - /** * Sets scheduledAt * @@ -620,10 +404,8 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess public function setScheduledAt($scheduledAt) { $this->container['scheduledAt'] = $scheduledAt; - return $this; } - /** * Gets abTesting * @@ -633,7 +415,6 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['abTesting']; } - /** * Sets abTesting * @@ -644,10 +425,8 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess public function setAbTesting($abTesting) { $this->container['abTesting'] = $abTesting; - return $this; } - /** * Gets subjectA * @@ -657,7 +436,6 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['subjectA']; } - /** * Sets subjectA * @@ -668,10 +446,8 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess public function setSubjectA($subjectA) { $this->container['subjectA'] = $subjectA; - return $this; } - /** * Gets subjectB * @@ -681,7 +457,6 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['subjectB']; } - /** * Sets subjectB * @@ -692,10 +467,8 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess public function setSubjectB($subjectB) { $this->container['subjectB'] = $subjectB; - return $this; } - /** * Gets splitRule * @@ -705,7 +478,6 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['splitRule']; } - /** * Sets splitRule * @@ -716,10 +488,8 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess public function setSplitRule($splitRule) { $this->container['splitRule'] = $splitRule; - return $this; } - /** * Gets winnerCriteria * @@ -729,7 +499,6 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['winnerCriteria']; } - /** * Sets winnerCriteria * @@ -740,10 +509,8 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess public function setWinnerCriteria($winnerCriteria) { $this->container['winnerCriteria'] = $winnerCriteria; - return $this; } - /** * Gets winnerDelay * @@ -753,7 +520,6 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['winnerDelay']; } - /** * Sets winnerDelay * @@ -764,10 +530,8 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess public function setWinnerDelay($winnerDelay) { $this->container['winnerDelay'] = $winnerDelay; - return $this; } - /** * Gets sendAtBestTime * @@ -777,7 +541,6 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['sendAtBestTime']; } - /** * Sets sendAtBestTime * @@ -788,10 +551,8 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess public function setSendAtBestTime($sendAtBestTime) { $this->container['sendAtBestTime'] = $sendAtBestTime; - return $this; } - /** * Gets testSent * @@ -801,7 +562,6 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['testSent']; } - /** * Sets testSent * @@ -812,10 +572,8 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess public function setTestSent($testSent) { $this->container['testSent'] = $testSent; - return $this; } - /** * Gets header * @@ -825,7 +583,6 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['header']; } - /** * Sets header * @@ -836,10 +593,8 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess public function setHeader($header) { $this->container['header'] = $header; - return $this; } - /** * Gets footer * @@ -849,7 +604,6 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['footer']; } - /** * Sets footer * @@ -860,10 +614,8 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess public function setFooter($footer) { $this->container['footer'] = $footer; - return $this; } - /** * Gets sender * @@ -873,7 +625,6 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['sender']; } - /** * Sets sender * @@ -884,10 +635,8 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess public function setSender($sender) { $this->container['sender'] = $sender; - return $this; } - /** * Gets replyTo * @@ -897,7 +646,6 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['replyTo']; } - /** * Sets replyTo * @@ -908,10 +656,8 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess public function setReplyTo($replyTo) { $this->container['replyTo'] = $replyTo; - return $this; } - /** * Gets toField * @@ -921,7 +667,6 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['toField']; } - /** * Sets toField * @@ -932,10 +677,8 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess public function setToField($toField) { $this->container['toField'] = $toField; - return $this; } - /** * Gets htmlContent * @@ -945,7 +688,6 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['htmlContent']; } - /** * Sets htmlContent * @@ -956,10 +698,8 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess public function setHtmlContent($htmlContent) { $this->container['htmlContent'] = $htmlContent; - return $this; } - /** * Gets shareLink * @@ -969,7 +709,6 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['shareLink']; } - /** * Sets shareLink * @@ -980,10 +719,8 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess public function setShareLink($shareLink) { $this->container['shareLink'] = $shareLink; - return $this; } - /** * Gets tag * @@ -993,7 +730,6 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['tag']; } - /** * Sets tag * @@ -1004,10 +740,8 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess public function setTag($tag) { $this->container['tag'] = $tag; - return $this; } - /** * Gets createdAt * @@ -1017,7 +751,6 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['createdAt']; } - /** * Sets createdAt * @@ -1028,10 +761,8 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess public function setCreatedAt($createdAt) { $this->container['createdAt'] = $createdAt; - return $this; } - /** * Gets modifiedAt * @@ -1041,7 +772,6 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['modifiedAt']; } - /** * Sets modifiedAt * @@ -1052,10 +782,8 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess public function setModifiedAt($modifiedAt) { $this->container['modifiedAt'] = $modifiedAt; - return $this; } - /** * Gets inlineImageActivation * @@ -1065,7 +793,6 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['inlineImageActivation']; } - /** * Sets inlineImageActivation * @@ -1076,10 +803,8 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess public function setInlineImageActivation($inlineImageActivation) { $this->container['inlineImageActivation'] = $inlineImageActivation; - return $this; } - /** * Gets mirrorActive * @@ -1089,7 +814,6 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['mirrorActive']; } - /** * Sets mirrorActive * @@ -1100,10 +824,8 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess public function setMirrorActive($mirrorActive) { $this->container['mirrorActive'] = $mirrorActive; - return $this; } - /** * Gets recurring * @@ -1113,7 +835,6 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['recurring']; } - /** * Sets recurring * @@ -1124,10 +845,8 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess public function setRecurring($recurring) { $this->container['recurring'] = $recurring; - return $this; } - /** * Gets sentDate * @@ -1137,7 +856,6 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['sentDate']; } - /** * Sets sentDate * @@ -1148,7 +866,27 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess public function setSentDate($sentDate) { $this->container['sentDate'] = $sentDate; - + return $this; + } + /** + * Gets returnBounce + * + * @return int + */ + public function getReturnBounce() + { + return $this->container['returnBounce']; + } + /** + * Sets returnBounce + * + * @param int $returnBounce Total number of non-delivered campaigns for a particular campaign id. + * + * @return $this + */ + public function setReturnBounce($returnBounce) + { + $this->container['returnBounce'] = $returnBounce; return $this; } /** @@ -1162,7 +900,6 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -1174,7 +911,6 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -1185,13 +921,12 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -1203,7 +938,6 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -1211,15 +945,10 @@ class GetExtendedCampaignOverview implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedCampaignOverviewSender.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedCampaignOverviewSender.php similarity index 81% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedCampaignOverviewSender.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedCampaignOverviewSender.php index 0bf6346..2777716 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedCampaignOverviewSender.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedCampaignOverviewSender.php @@ -1,4 +1,5 @@ 'string', - 'email' => 'string', - 'id' => 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['name' => 'string', 'email' => 'string', 'id' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'name' => null, - 'email' => 'email', - 'id' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['name' => null, 'email' => 'email', 'id' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -82,7 +67,6 @@ class GetExtendedCampaignOverviewSender implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -92,41 +76,25 @@ class GetExtendedCampaignOverviewSender implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'name' => 'name', - 'email' => 'email', - 'id' => 'id' - ]; - + protected static $attributeMap = ['name' => 'name', 'email' => 'email', 'id' => 'id']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'name' => 'setName', - 'email' => 'setEmail', - 'id' => 'setId' - ]; - + protected static $setters = ['name' => 'setName', 'email' => 'setEmail', 'id' => 'setId']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'name' => 'getName', - 'email' => 'getEmail', - 'id' => 'getId' - ]; - + protected static $getters = ['name' => 'getName', 'email' => 'getEmail', 'id' => 'getId']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -137,7 +105,6 @@ class GetExtendedCampaignOverviewSender implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -147,7 +114,6 @@ class GetExtendedCampaignOverviewSender implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -157,7 +123,6 @@ class GetExtendedCampaignOverviewSender implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -167,18 +132,12 @@ class GetExtendedCampaignOverviewSender implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -191,7 +150,6 @@ class GetExtendedCampaignOverviewSender implements ModelInterface, ArrayAccess $this->container['email'] = isset($data['email']) ? $data['email'] : null; $this->container['id'] = isset($data['id']) ? $data['id'] : null; } - /** * Show all the invalid properties with reasons. * @@ -200,10 +158,8 @@ class GetExtendedCampaignOverviewSender implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -212,10 +168,8 @@ class GetExtendedCampaignOverviewSender implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets name * @@ -225,7 +179,6 @@ class GetExtendedCampaignOverviewSender implements ModelInterface, ArrayAccess { return $this->container['name']; } - /** * Sets name * @@ -236,10 +189,8 @@ class GetExtendedCampaignOverviewSender implements ModelInterface, ArrayAccess public function setName($name) { $this->container['name'] = $name; - return $this; } - /** * Gets email * @@ -249,7 +200,6 @@ class GetExtendedCampaignOverviewSender implements ModelInterface, ArrayAccess { return $this->container['email']; } - /** * Sets email * @@ -260,10 +210,8 @@ class GetExtendedCampaignOverviewSender implements ModelInterface, ArrayAccess public function setEmail($email) { $this->container['email'] = $email; - return $this; } - /** * Gets id * @@ -273,7 +221,6 @@ class GetExtendedCampaignOverviewSender implements ModelInterface, ArrayAccess { return $this->container['id']; } - /** * Sets id * @@ -284,7 +231,6 @@ class GetExtendedCampaignOverviewSender implements ModelInterface, ArrayAccess public function setId($id) { $this->container['id'] = $id; - return $this; } /** @@ -298,7 +244,6 @@ class GetExtendedCampaignOverviewSender implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -310,7 +255,6 @@ class GetExtendedCampaignOverviewSender implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -321,13 +265,12 @@ class GetExtendedCampaignOverviewSender implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -339,7 +282,6 @@ class GetExtendedCampaignOverviewSender implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -347,15 +289,10 @@ class GetExtendedCampaignOverviewSender implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedCampaignStats.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedCampaignStats.php similarity index 79% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedCampaignStats.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedCampaignStats.php index 2b39e2a..c51ceb6 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedCampaignStats.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedCampaignStats.php @@ -1,4 +1,5 @@ 'object', - 'campaignStats' => 'object[]', - 'mirrorClick' => 'int', - 'remaining' => 'int', - 'linksStats' => 'object', - 'statsByDomain' => '\SendinBlue\Client\Model\GetStatsByDomain', - 'statsByDevice' => '\SendinBlue\Client\Model\GetStatsByDevice', - 'statsByBrowser' => '\SendinBlue\Client\Model\GetStatsByBrowser' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['globalStats' => 'object', 'campaignStats' => 'object[]', 'mirrorClick' => 'int', 'remaining' => 'int', 'linksStats' => 'object', 'statsByDomain' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetStatsByDomain', 'statsByDevice' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetStatsByDevice', 'statsByBrowser' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetStatsByBrowser']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'globalStats' => null, - 'campaignStats' => null, - 'mirrorClick' => 'int64', - 'remaining' => 'int64', - 'linksStats' => null, - 'statsByDomain' => null, - 'statsByDevice' => null, - 'statsByBrowser' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['globalStats' => null, 'campaignStats' => null, 'mirrorClick' => 'int64', 'remaining' => 'int64', 'linksStats' => null, 'statsByDomain' => null, 'statsByDevice' => null, 'statsByBrowser' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -92,7 +67,6 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -102,56 +76,25 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'globalStats' => 'globalStats', - 'campaignStats' => 'campaignStats', - 'mirrorClick' => 'mirrorClick', - 'remaining' => 'remaining', - 'linksStats' => 'linksStats', - 'statsByDomain' => 'statsByDomain', - 'statsByDevice' => 'statsByDevice', - 'statsByBrowser' => 'statsByBrowser' - ]; - + protected static $attributeMap = ['globalStats' => 'globalStats', 'campaignStats' => 'campaignStats', 'mirrorClick' => 'mirrorClick', 'remaining' => 'remaining', 'linksStats' => 'linksStats', 'statsByDomain' => 'statsByDomain', 'statsByDevice' => 'statsByDevice', 'statsByBrowser' => 'statsByBrowser']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'globalStats' => 'setGlobalStats', - 'campaignStats' => 'setCampaignStats', - 'mirrorClick' => 'setMirrorClick', - 'remaining' => 'setRemaining', - 'linksStats' => 'setLinksStats', - 'statsByDomain' => 'setStatsByDomain', - 'statsByDevice' => 'setStatsByDevice', - 'statsByBrowser' => 'setStatsByBrowser' - ]; - + protected static $setters = ['globalStats' => 'setGlobalStats', 'campaignStats' => 'setCampaignStats', 'mirrorClick' => 'setMirrorClick', 'remaining' => 'setRemaining', 'linksStats' => 'setLinksStats', 'statsByDomain' => 'setStatsByDomain', 'statsByDevice' => 'setStatsByDevice', 'statsByBrowser' => 'setStatsByBrowser']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'globalStats' => 'getGlobalStats', - 'campaignStats' => 'getCampaignStats', - 'mirrorClick' => 'getMirrorClick', - 'remaining' => 'getRemaining', - 'linksStats' => 'getLinksStats', - 'statsByDomain' => 'getStatsByDomain', - 'statsByDevice' => 'getStatsByDevice', - 'statsByBrowser' => 'getStatsByBrowser' - ]; - + protected static $getters = ['globalStats' => 'getGlobalStats', 'campaignStats' => 'getCampaignStats', 'mirrorClick' => 'getMirrorClick', 'remaining' => 'getRemaining', 'linksStats' => 'getLinksStats', 'statsByDomain' => 'getStatsByDomain', 'statsByDevice' => 'getStatsByDevice', 'statsByBrowser' => 'getStatsByBrowser']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -162,7 +105,6 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -172,7 +114,6 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -182,7 +123,6 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -192,18 +132,12 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -221,7 +155,6 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess $this->container['statsByDevice'] = isset($data['statsByDevice']) ? $data['statsByDevice'] : null; $this->container['statsByBrowser'] = isset($data['statsByBrowser']) ? $data['statsByBrowser'] : null; } - /** * Show all the invalid properties with reasons. * @@ -230,7 +163,6 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['globalStats'] === null) { $invalidProperties[] = "'globalStats' can't be null"; } @@ -257,7 +189,6 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -266,10 +197,8 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets globalStats * @@ -279,7 +208,6 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess { return $this->container['globalStats']; } - /** * Sets globalStats * @@ -290,10 +218,8 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess public function setGlobalStats($globalStats) { $this->container['globalStats'] = $globalStats; - return $this; } - /** * Gets campaignStats * @@ -303,7 +229,6 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess { return $this->container['campaignStats']; } - /** * Sets campaignStats * @@ -314,10 +239,8 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess public function setCampaignStats($campaignStats) { $this->container['campaignStats'] = $campaignStats; - return $this; } - /** * Gets mirrorClick * @@ -327,7 +250,6 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess { return $this->container['mirrorClick']; } - /** * Sets mirrorClick * @@ -338,10 +260,8 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess public function setMirrorClick($mirrorClick) { $this->container['mirrorClick'] = $mirrorClick; - return $this; } - /** * Gets remaining * @@ -351,7 +271,6 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess { return $this->container['remaining']; } - /** * Sets remaining * @@ -362,10 +281,8 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess public function setRemaining($remaining) { $this->container['remaining'] = $remaining; - return $this; } - /** * Gets linksStats * @@ -375,7 +292,6 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess { return $this->container['linksStats']; } - /** * Sets linksStats * @@ -386,10 +302,8 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess public function setLinksStats($linksStats) { $this->container['linksStats'] = $linksStats; - return $this; } - /** * Gets statsByDomain * @@ -399,7 +313,6 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess { return $this->container['statsByDomain']; } - /** * Sets statsByDomain * @@ -410,10 +323,8 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess public function setStatsByDomain($statsByDomain) { $this->container['statsByDomain'] = $statsByDomain; - return $this; } - /** * Gets statsByDevice * @@ -423,7 +334,6 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess { return $this->container['statsByDevice']; } - /** * Sets statsByDevice * @@ -434,10 +344,8 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess public function setStatsByDevice($statsByDevice) { $this->container['statsByDevice'] = $statsByDevice; - return $this; } - /** * Gets statsByBrowser * @@ -447,7 +355,6 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess { return $this->container['statsByBrowser']; } - /** * Sets statsByBrowser * @@ -458,7 +365,6 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess public function setStatsByBrowser($statsByBrowser) { $this->container['statsByBrowser'] = $statsByBrowser; - return $this; } /** @@ -472,7 +378,6 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -484,7 +389,6 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -495,13 +399,12 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -513,7 +416,6 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -521,15 +423,10 @@ class GetExtendedCampaignStats implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedClient.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedClient.php similarity index 80% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedClient.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedClient.php index 13da49f..e8f963e 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedClient.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedClient.php @@ -1,4 +1,5 @@ 'string', - 'firstName' => 'string', - 'lastName' => 'string', - 'companyName' => 'string', - 'address' => '\SendinBlue\Client\Model\GetExtendedClientAddress' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['email' => 'string', 'firstName' => 'string', 'lastName' => 'string', 'companyName' => 'string', 'address' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedClientAddress']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'email' => 'email', - 'firstName' => null, - 'lastName' => null, - 'companyName' => null, - 'address' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['email' => 'email', 'firstName' => null, 'lastName' => null, 'companyName' => null, 'address' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -86,7 +67,6 @@ class GetExtendedClient implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -96,47 +76,25 @@ class GetExtendedClient implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'email' => 'email', - 'firstName' => 'firstName', - 'lastName' => 'lastName', - 'companyName' => 'companyName', - 'address' => 'address' - ]; - + protected static $attributeMap = ['email' => 'email', 'firstName' => 'firstName', 'lastName' => 'lastName', 'companyName' => 'companyName', 'address' => 'address']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'email' => 'setEmail', - 'firstName' => 'setFirstName', - 'lastName' => 'setLastName', - 'companyName' => 'setCompanyName', - 'address' => 'setAddress' - ]; - + protected static $setters = ['email' => 'setEmail', 'firstName' => 'setFirstName', 'lastName' => 'setLastName', 'companyName' => 'setCompanyName', 'address' => 'setAddress']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'email' => 'getEmail', - 'firstName' => 'getFirstName', - 'lastName' => 'getLastName', - 'companyName' => 'getCompanyName', - 'address' => 'getAddress' - ]; - + protected static $getters = ['email' => 'getEmail', 'firstName' => 'getFirstName', 'lastName' => 'getLastName', 'companyName' => 'getCompanyName', 'address' => 'getAddress']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -147,7 +105,6 @@ class GetExtendedClient implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -157,7 +114,6 @@ class GetExtendedClient implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -167,7 +123,6 @@ class GetExtendedClient implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -177,18 +132,12 @@ class GetExtendedClient implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -203,7 +152,6 @@ class GetExtendedClient implements ModelInterface, ArrayAccess $this->container['companyName'] = isset($data['companyName']) ? $data['companyName'] : null; $this->container['address'] = isset($data['address']) ? $data['address'] : null; } - /** * Show all the invalid properties with reasons. * @@ -212,7 +160,6 @@ class GetExtendedClient implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['email'] === null) { $invalidProperties[] = "'email' can't be null"; } @@ -230,7 +177,6 @@ class GetExtendedClient implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -239,10 +185,8 @@ class GetExtendedClient implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets email * @@ -252,7 +196,6 @@ class GetExtendedClient implements ModelInterface, ArrayAccess { return $this->container['email']; } - /** * Sets email * @@ -263,10 +206,8 @@ class GetExtendedClient implements ModelInterface, ArrayAccess public function setEmail($email) { $this->container['email'] = $email; - return $this; } - /** * Gets firstName * @@ -276,7 +217,6 @@ class GetExtendedClient implements ModelInterface, ArrayAccess { return $this->container['firstName']; } - /** * Sets firstName * @@ -287,10 +227,8 @@ class GetExtendedClient implements ModelInterface, ArrayAccess public function setFirstName($firstName) { $this->container['firstName'] = $firstName; - return $this; } - /** * Gets lastName * @@ -300,7 +238,6 @@ class GetExtendedClient implements ModelInterface, ArrayAccess { return $this->container['lastName']; } - /** * Sets lastName * @@ -311,10 +248,8 @@ class GetExtendedClient implements ModelInterface, ArrayAccess public function setLastName($lastName) { $this->container['lastName'] = $lastName; - return $this; } - /** * Gets companyName * @@ -324,7 +259,6 @@ class GetExtendedClient implements ModelInterface, ArrayAccess { return $this->container['companyName']; } - /** * Sets companyName * @@ -335,10 +269,8 @@ class GetExtendedClient implements ModelInterface, ArrayAccess public function setCompanyName($companyName) { $this->container['companyName'] = $companyName; - return $this; } - /** * Gets address * @@ -348,7 +280,6 @@ class GetExtendedClient implements ModelInterface, ArrayAccess { return $this->container['address']; } - /** * Sets address * @@ -359,7 +290,6 @@ class GetExtendedClient implements ModelInterface, ArrayAccess public function setAddress($address) { $this->container['address'] = $address; - return $this; } /** @@ -373,7 +303,6 @@ class GetExtendedClient implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -385,7 +314,6 @@ class GetExtendedClient implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -396,13 +324,12 @@ class GetExtendedClient implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -414,7 +341,6 @@ class GetExtendedClient implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -422,15 +348,10 @@ class GetExtendedClient implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedClientAddress.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedClientAddress.php similarity index 81% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedClientAddress.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedClientAddress.php index a122e05..c42622f 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedClientAddress.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedClientAddress.php @@ -1,4 +1,5 @@ 'string', - 'city' => 'string', - 'zipCode' => 'string', - 'country' => 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['street' => 'string', 'city' => 'string', 'zipCode' => 'string', 'country' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'street' => null, - 'city' => null, - 'zipCode' => null, - 'country' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['street' => null, 'city' => null, 'zipCode' => null, 'country' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -85,7 +68,6 @@ class GetExtendedClientAddress implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -95,44 +77,25 @@ class GetExtendedClientAddress implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'street' => 'street', - 'city' => 'city', - 'zipCode' => 'zipCode', - 'country' => 'country' - ]; - + protected static $attributeMap = ['street' => 'street', 'city' => 'city', 'zipCode' => 'zipCode', 'country' => 'country']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'street' => 'setStreet', - 'city' => 'setCity', - 'zipCode' => 'setZipCode', - 'country' => 'setCountry' - ]; - + protected static $setters = ['street' => 'setStreet', 'city' => 'setCity', 'zipCode' => 'setZipCode', 'country' => 'setCountry']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'street' => 'getStreet', - 'city' => 'getCity', - 'zipCode' => 'getZipCode', - 'country' => 'getCountry' - ]; - + protected static $getters = ['street' => 'getStreet', 'city' => 'getCity', 'zipCode' => 'getZipCode', 'country' => 'getCountry']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -143,7 +106,6 @@ class GetExtendedClientAddress implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -153,7 +115,6 @@ class GetExtendedClientAddress implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -163,7 +124,6 @@ class GetExtendedClientAddress implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -173,18 +133,12 @@ class GetExtendedClientAddress implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -198,7 +152,6 @@ class GetExtendedClientAddress implements ModelInterface, ArrayAccess $this->container['zipCode'] = isset($data['zipCode']) ? $data['zipCode'] : null; $this->container['country'] = isset($data['country']) ? $data['country'] : null; } - /** * Show all the invalid properties with reasons. * @@ -207,7 +160,6 @@ class GetExtendedClientAddress implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['street'] === null) { $invalidProperties[] = "'street' can't be null"; } @@ -222,7 +174,6 @@ class GetExtendedClientAddress implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -231,10 +182,8 @@ class GetExtendedClientAddress implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets street * @@ -244,7 +193,6 @@ class GetExtendedClientAddress implements ModelInterface, ArrayAccess { return $this->container['street']; } - /** * Sets street * @@ -255,10 +203,8 @@ class GetExtendedClientAddress implements ModelInterface, ArrayAccess public function setStreet($street) { $this->container['street'] = $street; - return $this; } - /** * Gets city * @@ -268,7 +214,6 @@ class GetExtendedClientAddress implements ModelInterface, ArrayAccess { return $this->container['city']; } - /** * Sets city * @@ -279,10 +224,8 @@ class GetExtendedClientAddress implements ModelInterface, ArrayAccess public function setCity($city) { $this->container['city'] = $city; - return $this; } - /** * Gets zipCode * @@ -292,7 +235,6 @@ class GetExtendedClientAddress implements ModelInterface, ArrayAccess { return $this->container['zipCode']; } - /** * Sets zipCode * @@ -303,10 +245,8 @@ class GetExtendedClientAddress implements ModelInterface, ArrayAccess public function setZipCode($zipCode) { $this->container['zipCode'] = $zipCode; - return $this; } - /** * Gets country * @@ -316,7 +256,6 @@ class GetExtendedClientAddress implements ModelInterface, ArrayAccess { return $this->container['country']; } - /** * Sets country * @@ -327,7 +266,6 @@ class GetExtendedClientAddress implements ModelInterface, ArrayAccess public function setCountry($country) { $this->container['country'] = $country; - return $this; } /** @@ -341,7 +279,6 @@ class GetExtendedClientAddress implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -353,7 +290,6 @@ class GetExtendedClientAddress implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -364,13 +300,12 @@ class GetExtendedClientAddress implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -382,7 +317,6 @@ class GetExtendedClientAddress implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -390,15 +324,10 @@ class GetExtendedClientAddress implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetails.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetails.php similarity index 79% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetails.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetails.php index 3bd46da..9995330 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetails.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetails.php @@ -1,4 +1,5 @@ 'string', - 'id' => 'int', - 'emailBlacklisted' => 'bool', - 'smsBlacklisted' => 'bool', - 'createdAt' => '\DateTime', - 'modifiedAt' => '\DateTime', - 'listIds' => 'int[]', - 'listUnsubscribed' => 'int[]', - 'attributes' => 'object', - 'statistics' => '\SendinBlue\Client\Model\GetExtendedContactDetailsStatistics' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['email' => 'string', 'id' => 'int', 'emailBlacklisted' => 'bool', 'smsBlacklisted' => 'bool', 'createdAt' => '\\DateTime', 'modifiedAt' => '\\DateTime', 'listIds' => 'int[]', 'listUnsubscribed' => 'int[]', 'attributes' => 'object', 'statistics' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatistics']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'email' => 'email', - 'id' => 'int64', - 'emailBlacklisted' => null, - 'smsBlacklisted' => null, - 'createdAt' => 'date-time', - 'modifiedAt' => 'date-time', - 'listIds' => 'int64', - 'listUnsubscribed' => 'int64', - 'attributes' => null, - 'statistics' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['email' => 'email', 'id' => 'int64', 'emailBlacklisted' => null, 'smsBlacklisted' => null, 'createdAt' => 'date-time', 'modifiedAt' => 'date-time', 'listIds' => 'int64', 'listUnsubscribed' => 'int64', 'attributes' => null, 'statistics' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -96,7 +67,6 @@ class GetExtendedContactDetails implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -106,62 +76,25 @@ class GetExtendedContactDetails implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'email' => 'email', - 'id' => 'id', - 'emailBlacklisted' => 'emailBlacklisted', - 'smsBlacklisted' => 'smsBlacklisted', - 'createdAt' => 'createdAt', - 'modifiedAt' => 'modifiedAt', - 'listIds' => 'listIds', - 'listUnsubscribed' => 'listUnsubscribed', - 'attributes' => 'attributes', - 'statistics' => 'statistics' - ]; - + protected static $attributeMap = ['email' => 'email', 'id' => 'id', 'emailBlacklisted' => 'emailBlacklisted', 'smsBlacklisted' => 'smsBlacklisted', 'createdAt' => 'createdAt', 'modifiedAt' => 'modifiedAt', 'listIds' => 'listIds', 'listUnsubscribed' => 'listUnsubscribed', 'attributes' => 'attributes', 'statistics' => 'statistics']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'email' => 'setEmail', - 'id' => 'setId', - 'emailBlacklisted' => 'setEmailBlacklisted', - 'smsBlacklisted' => 'setSmsBlacklisted', - 'createdAt' => 'setCreatedAt', - 'modifiedAt' => 'setModifiedAt', - 'listIds' => 'setListIds', - 'listUnsubscribed' => 'setListUnsubscribed', - 'attributes' => 'setAttributes', - 'statistics' => 'setStatistics' - ]; - + protected static $setters = ['email' => 'setEmail', 'id' => 'setId', 'emailBlacklisted' => 'setEmailBlacklisted', 'smsBlacklisted' => 'setSmsBlacklisted', 'createdAt' => 'setCreatedAt', 'modifiedAt' => 'setModifiedAt', 'listIds' => 'setListIds', 'listUnsubscribed' => 'setListUnsubscribed', 'attributes' => 'setAttributes', 'statistics' => 'setStatistics']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'email' => 'getEmail', - 'id' => 'getId', - 'emailBlacklisted' => 'getEmailBlacklisted', - 'smsBlacklisted' => 'getSmsBlacklisted', - 'createdAt' => 'getCreatedAt', - 'modifiedAt' => 'getModifiedAt', - 'listIds' => 'getListIds', - 'listUnsubscribed' => 'getListUnsubscribed', - 'attributes' => 'getAttributes', - 'statistics' => 'getStatistics' - ]; - + protected static $getters = ['email' => 'getEmail', 'id' => 'getId', 'emailBlacklisted' => 'getEmailBlacklisted', 'smsBlacklisted' => 'getSmsBlacklisted', 'createdAt' => 'getCreatedAt', 'modifiedAt' => 'getModifiedAt', 'listIds' => 'getListIds', 'listUnsubscribed' => 'getListUnsubscribed', 'attributes' => 'getAttributes', 'statistics' => 'getStatistics']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -172,7 +105,6 @@ class GetExtendedContactDetails implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -182,7 +114,6 @@ class GetExtendedContactDetails implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -192,7 +123,6 @@ class GetExtendedContactDetails implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -202,18 +132,12 @@ class GetExtendedContactDetails implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -233,7 +157,6 @@ class GetExtendedContactDetails implements ModelInterface, ArrayAccess $this->container['attributes'] = isset($data['attributes']) ? $data['attributes'] : null; $this->container['statistics'] = isset($data['statistics']) ? $data['statistics'] : null; } - /** * Show all the invalid properties with reasons. * @@ -242,7 +165,6 @@ class GetExtendedContactDetails implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['email'] === null) { $invalidProperties[] = "'email' can't be null"; } @@ -272,7 +194,6 @@ class GetExtendedContactDetails implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -281,10 +202,8 @@ class GetExtendedContactDetails implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets email * @@ -294,7 +213,6 @@ class GetExtendedContactDetails implements ModelInterface, ArrayAccess { return $this->container['email']; } - /** * Sets email * @@ -305,10 +223,8 @@ class GetExtendedContactDetails implements ModelInterface, ArrayAccess public function setEmail($email) { $this->container['email'] = $email; - return $this; } - /** * Gets id * @@ -318,7 +234,6 @@ class GetExtendedContactDetails implements ModelInterface, ArrayAccess { return $this->container['id']; } - /** * Sets id * @@ -329,10 +244,8 @@ class GetExtendedContactDetails implements ModelInterface, ArrayAccess public function setId($id) { $this->container['id'] = $id; - return $this; } - /** * Gets emailBlacklisted * @@ -342,7 +255,6 @@ class GetExtendedContactDetails implements ModelInterface, ArrayAccess { return $this->container['emailBlacklisted']; } - /** * Sets emailBlacklisted * @@ -353,10 +265,8 @@ class GetExtendedContactDetails implements ModelInterface, ArrayAccess public function setEmailBlacklisted($emailBlacklisted) { $this->container['emailBlacklisted'] = $emailBlacklisted; - return $this; } - /** * Gets smsBlacklisted * @@ -366,7 +276,6 @@ class GetExtendedContactDetails implements ModelInterface, ArrayAccess { return $this->container['smsBlacklisted']; } - /** * Sets smsBlacklisted * @@ -377,10 +286,8 @@ class GetExtendedContactDetails implements ModelInterface, ArrayAccess public function setSmsBlacklisted($smsBlacklisted) { $this->container['smsBlacklisted'] = $smsBlacklisted; - return $this; } - /** * Gets createdAt * @@ -390,7 +297,6 @@ class GetExtendedContactDetails implements ModelInterface, ArrayAccess { return $this->container['createdAt']; } - /** * Sets createdAt * @@ -401,10 +307,8 @@ class GetExtendedContactDetails implements ModelInterface, ArrayAccess public function setCreatedAt($createdAt) { $this->container['createdAt'] = $createdAt; - return $this; } - /** * Gets modifiedAt * @@ -414,7 +318,6 @@ class GetExtendedContactDetails implements ModelInterface, ArrayAccess { return $this->container['modifiedAt']; } - /** * Sets modifiedAt * @@ -425,10 +328,8 @@ class GetExtendedContactDetails implements ModelInterface, ArrayAccess public function setModifiedAt($modifiedAt) { $this->container['modifiedAt'] = $modifiedAt; - return $this; } - /** * Gets listIds * @@ -438,7 +339,6 @@ class GetExtendedContactDetails implements ModelInterface, ArrayAccess { return $this->container['listIds']; } - /** * Sets listIds * @@ -449,10 +349,8 @@ class GetExtendedContactDetails implements ModelInterface, ArrayAccess public function setListIds($listIds) { $this->container['listIds'] = $listIds; - return $this; } - /** * Gets listUnsubscribed * @@ -462,7 +360,6 @@ class GetExtendedContactDetails implements ModelInterface, ArrayAccess { return $this->container['listUnsubscribed']; } - /** * Sets listUnsubscribed * @@ -473,10 +370,8 @@ class GetExtendedContactDetails implements ModelInterface, ArrayAccess public function setListUnsubscribed($listUnsubscribed) { $this->container['listUnsubscribed'] = $listUnsubscribed; - return $this; } - /** * Gets attributes * @@ -486,7 +381,6 @@ class GetExtendedContactDetails implements ModelInterface, ArrayAccess { return $this->container['attributes']; } - /** * Sets attributes * @@ -497,10 +391,8 @@ class GetExtendedContactDetails implements ModelInterface, ArrayAccess public function setAttributes($attributes) { $this->container['attributes'] = $attributes; - return $this; } - /** * Gets statistics * @@ -510,7 +402,6 @@ class GetExtendedContactDetails implements ModelInterface, ArrayAccess { return $this->container['statistics']; } - /** * Sets statistics * @@ -521,7 +412,6 @@ class GetExtendedContactDetails implements ModelInterface, ArrayAccess public function setStatistics($statistics) { $this->container['statistics'] = $statistics; - return $this; } /** @@ -535,7 +425,6 @@ class GetExtendedContactDetails implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -547,7 +436,6 @@ class GetExtendedContactDetails implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -558,13 +446,12 @@ class GetExtendedContactDetails implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -576,7 +463,6 @@ class GetExtendedContactDetails implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -584,15 +470,10 @@ class GetExtendedContactDetails implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatistics.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatistics.php similarity index 77% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatistics.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatistics.php index a009465..fdf3d18 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatistics.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatistics.php @@ -1,4 +1,5 @@ '\SendinBlue\Client\Model\GetExtendedContactDetailsStatisticsMessagesSent[]', - 'hardBounces' => '\SendinBlue\Client\Model\GetExtendedContactDetailsStatisticsMessagesSent[]', - 'softBounces' => '\SendinBlue\Client\Model\GetExtendedContactDetailsStatisticsMessagesSent[]', - 'complaints' => '\SendinBlue\Client\Model\GetExtendedContactDetailsStatisticsMessagesSent[]', - 'unsubscriptions' => '\SendinBlue\Client\Model\GetExtendedContactDetailsStatisticsUnsubscriptions', - 'opened' => '\SendinBlue\Client\Model\GetExtendedContactDetailsStatisticsOpened[]', - 'clicked' => '\SendinBlue\Client\Model\GetExtendedContactDetailsStatisticsClicked[]', - 'transacAttributes' => 'object[]' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['messagesSent' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatisticsMessagesSent[]', 'hardBounces' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatisticsMessagesSent[]', 'softBounces' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatisticsMessagesSent[]', 'complaints' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatisticsMessagesSent[]', 'unsubscriptions' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatisticsUnsubscriptions', 'opened' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatisticsOpened[]', 'clicked' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatisticsClicked[]', 'transacAttributes' => 'object[]']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'messagesSent' => null, - 'hardBounces' => null, - 'softBounces' => null, - 'complaints' => null, - 'unsubscriptions' => null, - 'opened' => null, - 'clicked' => null, - 'transacAttributes' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['messagesSent' => null, 'hardBounces' => null, 'softBounces' => null, 'complaints' => null, 'unsubscriptions' => null, 'opened' => null, 'clicked' => null, 'transacAttributes' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -93,7 +68,6 @@ class GetExtendedContactDetailsStatistics implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -103,56 +77,25 @@ class GetExtendedContactDetailsStatistics implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'messagesSent' => 'messagesSent', - 'hardBounces' => 'hardBounces', - 'softBounces' => 'softBounces', - 'complaints' => 'complaints', - 'unsubscriptions' => 'unsubscriptions', - 'opened' => 'opened', - 'clicked' => 'clicked', - 'transacAttributes' => 'transacAttributes' - ]; - + protected static $attributeMap = ['messagesSent' => 'messagesSent', 'hardBounces' => 'hardBounces', 'softBounces' => 'softBounces', 'complaints' => 'complaints', 'unsubscriptions' => 'unsubscriptions', 'opened' => 'opened', 'clicked' => 'clicked', 'transacAttributes' => 'transacAttributes']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'messagesSent' => 'setMessagesSent', - 'hardBounces' => 'setHardBounces', - 'softBounces' => 'setSoftBounces', - 'complaints' => 'setComplaints', - 'unsubscriptions' => 'setUnsubscriptions', - 'opened' => 'setOpened', - 'clicked' => 'setClicked', - 'transacAttributes' => 'setTransacAttributes' - ]; - + protected static $setters = ['messagesSent' => 'setMessagesSent', 'hardBounces' => 'setHardBounces', 'softBounces' => 'setSoftBounces', 'complaints' => 'setComplaints', 'unsubscriptions' => 'setUnsubscriptions', 'opened' => 'setOpened', 'clicked' => 'setClicked', 'transacAttributes' => 'setTransacAttributes']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'messagesSent' => 'getMessagesSent', - 'hardBounces' => 'getHardBounces', - 'softBounces' => 'getSoftBounces', - 'complaints' => 'getComplaints', - 'unsubscriptions' => 'getUnsubscriptions', - 'opened' => 'getOpened', - 'clicked' => 'getClicked', - 'transacAttributes' => 'getTransacAttributes' - ]; - + protected static $getters = ['messagesSent' => 'getMessagesSent', 'hardBounces' => 'getHardBounces', 'softBounces' => 'getSoftBounces', 'complaints' => 'getComplaints', 'unsubscriptions' => 'getUnsubscriptions', 'opened' => 'getOpened', 'clicked' => 'getClicked', 'transacAttributes' => 'getTransacAttributes']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -163,7 +106,6 @@ class GetExtendedContactDetailsStatistics implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -173,7 +115,6 @@ class GetExtendedContactDetailsStatistics implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -183,7 +124,6 @@ class GetExtendedContactDetailsStatistics implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -193,18 +133,12 @@ class GetExtendedContactDetailsStatistics implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -222,7 +156,6 @@ class GetExtendedContactDetailsStatistics implements ModelInterface, ArrayAccess $this->container['clicked'] = isset($data['clicked']) ? $data['clicked'] : null; $this->container['transacAttributes'] = isset($data['transacAttributes']) ? $data['transacAttributes'] : null; } - /** * Show all the invalid properties with reasons. * @@ -231,10 +164,8 @@ class GetExtendedContactDetailsStatistics implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -243,10 +174,8 @@ class GetExtendedContactDetailsStatistics implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets messagesSent * @@ -256,7 +185,6 @@ class GetExtendedContactDetailsStatistics implements ModelInterface, ArrayAccess { return $this->container['messagesSent']; } - /** * Sets messagesSent * @@ -267,10 +195,8 @@ class GetExtendedContactDetailsStatistics implements ModelInterface, ArrayAccess public function setMessagesSent($messagesSent) { $this->container['messagesSent'] = $messagesSent; - return $this; } - /** * Gets hardBounces * @@ -280,7 +206,6 @@ class GetExtendedContactDetailsStatistics implements ModelInterface, ArrayAccess { return $this->container['hardBounces']; } - /** * Sets hardBounces * @@ -291,10 +216,8 @@ class GetExtendedContactDetailsStatistics implements ModelInterface, ArrayAccess public function setHardBounces($hardBounces) { $this->container['hardBounces'] = $hardBounces; - return $this; } - /** * Gets softBounces * @@ -304,7 +227,6 @@ class GetExtendedContactDetailsStatistics implements ModelInterface, ArrayAccess { return $this->container['softBounces']; } - /** * Sets softBounces * @@ -315,10 +237,8 @@ class GetExtendedContactDetailsStatistics implements ModelInterface, ArrayAccess public function setSoftBounces($softBounces) { $this->container['softBounces'] = $softBounces; - return $this; } - /** * Gets complaints * @@ -328,7 +248,6 @@ class GetExtendedContactDetailsStatistics implements ModelInterface, ArrayAccess { return $this->container['complaints']; } - /** * Sets complaints * @@ -339,10 +258,8 @@ class GetExtendedContactDetailsStatistics implements ModelInterface, ArrayAccess public function setComplaints($complaints) { $this->container['complaints'] = $complaints; - return $this; } - /** * Gets unsubscriptions * @@ -352,7 +269,6 @@ class GetExtendedContactDetailsStatistics implements ModelInterface, ArrayAccess { return $this->container['unsubscriptions']; } - /** * Sets unsubscriptions * @@ -363,10 +279,8 @@ class GetExtendedContactDetailsStatistics implements ModelInterface, ArrayAccess public function setUnsubscriptions($unsubscriptions) { $this->container['unsubscriptions'] = $unsubscriptions; - return $this; } - /** * Gets opened * @@ -376,7 +290,6 @@ class GetExtendedContactDetailsStatistics implements ModelInterface, ArrayAccess { return $this->container['opened']; } - /** * Sets opened * @@ -387,10 +300,8 @@ class GetExtendedContactDetailsStatistics implements ModelInterface, ArrayAccess public function setOpened($opened) { $this->container['opened'] = $opened; - return $this; } - /** * Gets clicked * @@ -400,7 +311,6 @@ class GetExtendedContactDetailsStatistics implements ModelInterface, ArrayAccess { return $this->container['clicked']; } - /** * Sets clicked * @@ -411,10 +321,8 @@ class GetExtendedContactDetailsStatistics implements ModelInterface, ArrayAccess public function setClicked($clicked) { $this->container['clicked'] = $clicked; - return $this; } - /** * Gets transacAttributes * @@ -424,7 +332,6 @@ class GetExtendedContactDetailsStatistics implements ModelInterface, ArrayAccess { return $this->container['transacAttributes']; } - /** * Sets transacAttributes * @@ -435,7 +342,6 @@ class GetExtendedContactDetailsStatistics implements ModelInterface, ArrayAccess public function setTransacAttributes($transacAttributes) { $this->container['transacAttributes'] = $transacAttributes; - return $this; } /** @@ -449,7 +355,6 @@ class GetExtendedContactDetailsStatistics implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -461,7 +366,6 @@ class GetExtendedContactDetailsStatistics implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -472,13 +376,12 @@ class GetExtendedContactDetailsStatistics implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -490,7 +393,6 @@ class GetExtendedContactDetailsStatistics implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -498,15 +400,10 @@ class GetExtendedContactDetailsStatistics implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsClicked.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsClicked.php similarity index 81% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsClicked.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsClicked.php index 1dcea6a..bf00ac2 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsClicked.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsClicked.php @@ -1,4 +1,5 @@ 'int', - 'links' => '\SendinBlue\Client\Model\GetExtendedContactDetailsStatisticsLinks[]' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['campaignId' => 'int', 'links' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatisticsLinks[]']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'campaignId' => 'int64', - 'links' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['campaignId' => 'int64', 'links' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -80,7 +67,6 @@ class GetExtendedContactDetailsStatisticsClicked implements ModelInterface, Arra { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -90,38 +76,25 @@ class GetExtendedContactDetailsStatisticsClicked implements ModelInterface, Arra { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'campaignId' => 'campaignId', - 'links' => 'links' - ]; - + protected static $attributeMap = ['campaignId' => 'campaignId', 'links' => 'links']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'campaignId' => 'setCampaignId', - 'links' => 'setLinks' - ]; - + protected static $setters = ['campaignId' => 'setCampaignId', 'links' => 'setLinks']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'campaignId' => 'getCampaignId', - 'links' => 'getLinks' - ]; - + protected static $getters = ['campaignId' => 'getCampaignId', 'links' => 'getLinks']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -132,7 +105,6 @@ class GetExtendedContactDetailsStatisticsClicked implements ModelInterface, Arra { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -142,7 +114,6 @@ class GetExtendedContactDetailsStatisticsClicked implements ModelInterface, Arra { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -152,7 +123,6 @@ class GetExtendedContactDetailsStatisticsClicked implements ModelInterface, Arra { return self::$getters; } - /** * The original name of the model. * @@ -162,18 +132,12 @@ class GetExtendedContactDetailsStatisticsClicked implements ModelInterface, Arra { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -185,7 +149,6 @@ class GetExtendedContactDetailsStatisticsClicked implements ModelInterface, Arra $this->container['campaignId'] = isset($data['campaignId']) ? $data['campaignId'] : null; $this->container['links'] = isset($data['links']) ? $data['links'] : null; } - /** * Show all the invalid properties with reasons. * @@ -194,7 +157,6 @@ class GetExtendedContactDetailsStatisticsClicked implements ModelInterface, Arra public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['campaignId'] === null) { $invalidProperties[] = "'campaignId' can't be null"; } @@ -203,7 +165,6 @@ class GetExtendedContactDetailsStatisticsClicked implements ModelInterface, Arra } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -212,10 +173,8 @@ class GetExtendedContactDetailsStatisticsClicked implements ModelInterface, Arra */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets campaignId * @@ -225,7 +184,6 @@ class GetExtendedContactDetailsStatisticsClicked implements ModelInterface, Arra { return $this->container['campaignId']; } - /** * Sets campaignId * @@ -236,10 +194,8 @@ class GetExtendedContactDetailsStatisticsClicked implements ModelInterface, Arra public function setCampaignId($campaignId) { $this->container['campaignId'] = $campaignId; - return $this; } - /** * Gets links * @@ -249,7 +205,6 @@ class GetExtendedContactDetailsStatisticsClicked implements ModelInterface, Arra { return $this->container['links']; } - /** * Sets links * @@ -260,7 +215,6 @@ class GetExtendedContactDetailsStatisticsClicked implements ModelInterface, Arra public function setLinks($links) { $this->container['links'] = $links; - return $this; } /** @@ -274,7 +228,6 @@ class GetExtendedContactDetailsStatisticsClicked implements ModelInterface, Arra { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -286,7 +239,6 @@ class GetExtendedContactDetailsStatisticsClicked implements ModelInterface, Arra { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -297,13 +249,12 @@ class GetExtendedContactDetailsStatisticsClicked implements ModelInterface, Arra */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -315,7 +266,6 @@ class GetExtendedContactDetailsStatisticsClicked implements ModelInterface, Arra { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -323,15 +273,10 @@ class GetExtendedContactDetailsStatisticsClicked implements ModelInterface, Arra */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsLinks.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsLinks.php similarity index 81% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsLinks.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsLinks.php index 6d72201..094aad9 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsLinks.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsLinks.php @@ -1,4 +1,5 @@ 'int', - 'eventTime' => '\DateTime', - 'ip' => 'string', - 'url' => 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['count' => 'int', 'eventTime' => '\\DateTime', 'ip' => 'string', 'url' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'count' => 'int64', - 'eventTime' => 'date-time', - 'ip' => null, - 'url' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['count' => 'int64', 'eventTime' => 'date-time', 'ip' => null, 'url' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -84,7 +67,6 @@ class GetExtendedContactDetailsStatisticsLinks implements ModelInterface, ArrayA { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -94,44 +76,25 @@ class GetExtendedContactDetailsStatisticsLinks implements ModelInterface, ArrayA { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'count' => 'count', - 'eventTime' => 'eventTime', - 'ip' => 'ip', - 'url' => 'url' - ]; - + protected static $attributeMap = ['count' => 'count', 'eventTime' => 'eventTime', 'ip' => 'ip', 'url' => 'url']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'count' => 'setCount', - 'eventTime' => 'setEventTime', - 'ip' => 'setIp', - 'url' => 'setUrl' - ]; - + protected static $setters = ['count' => 'setCount', 'eventTime' => 'setEventTime', 'ip' => 'setIp', 'url' => 'setUrl']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'count' => 'getCount', - 'eventTime' => 'getEventTime', - 'ip' => 'getIp', - 'url' => 'getUrl' - ]; - + protected static $getters = ['count' => 'getCount', 'eventTime' => 'getEventTime', 'ip' => 'getIp', 'url' => 'getUrl']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -142,7 +105,6 @@ class GetExtendedContactDetailsStatisticsLinks implements ModelInterface, ArrayA { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -152,7 +114,6 @@ class GetExtendedContactDetailsStatisticsLinks implements ModelInterface, ArrayA { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -162,7 +123,6 @@ class GetExtendedContactDetailsStatisticsLinks implements ModelInterface, ArrayA { return self::$getters; } - /** * The original name of the model. * @@ -172,18 +132,12 @@ class GetExtendedContactDetailsStatisticsLinks implements ModelInterface, ArrayA { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -197,7 +151,6 @@ class GetExtendedContactDetailsStatisticsLinks implements ModelInterface, ArrayA $this->container['ip'] = isset($data['ip']) ? $data['ip'] : null; $this->container['url'] = isset($data['url']) ? $data['url'] : null; } - /** * Show all the invalid properties with reasons. * @@ -206,7 +159,6 @@ class GetExtendedContactDetailsStatisticsLinks implements ModelInterface, ArrayA public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['count'] === null) { $invalidProperties[] = "'count' can't be null"; } @@ -221,7 +173,6 @@ class GetExtendedContactDetailsStatisticsLinks implements ModelInterface, ArrayA } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -230,10 +181,8 @@ class GetExtendedContactDetailsStatisticsLinks implements ModelInterface, ArrayA */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets count * @@ -243,7 +192,6 @@ class GetExtendedContactDetailsStatisticsLinks implements ModelInterface, ArrayA { return $this->container['count']; } - /** * Sets count * @@ -254,10 +202,8 @@ class GetExtendedContactDetailsStatisticsLinks implements ModelInterface, ArrayA public function setCount($count) { $this->container['count'] = $count; - return $this; } - /** * Gets eventTime * @@ -267,7 +213,6 @@ class GetExtendedContactDetailsStatisticsLinks implements ModelInterface, ArrayA { return $this->container['eventTime']; } - /** * Sets eventTime * @@ -278,10 +223,8 @@ class GetExtendedContactDetailsStatisticsLinks implements ModelInterface, ArrayA public function setEventTime($eventTime) { $this->container['eventTime'] = $eventTime; - return $this; } - /** * Gets ip * @@ -291,7 +234,6 @@ class GetExtendedContactDetailsStatisticsLinks implements ModelInterface, ArrayA { return $this->container['ip']; } - /** * Sets ip * @@ -302,10 +244,8 @@ class GetExtendedContactDetailsStatisticsLinks implements ModelInterface, ArrayA public function setIp($ip) { $this->container['ip'] = $ip; - return $this; } - /** * Gets url * @@ -315,7 +255,6 @@ class GetExtendedContactDetailsStatisticsLinks implements ModelInterface, ArrayA { return $this->container['url']; } - /** * Sets url * @@ -326,7 +265,6 @@ class GetExtendedContactDetailsStatisticsLinks implements ModelInterface, ArrayA public function setUrl($url) { $this->container['url'] = $url; - return $this; } /** @@ -340,7 +278,6 @@ class GetExtendedContactDetailsStatisticsLinks implements ModelInterface, ArrayA { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -352,7 +289,6 @@ class GetExtendedContactDetailsStatisticsLinks implements ModelInterface, ArrayA { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -363,13 +299,12 @@ class GetExtendedContactDetailsStatisticsLinks implements ModelInterface, ArrayA */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -381,7 +316,6 @@ class GetExtendedContactDetailsStatisticsLinks implements ModelInterface, ArrayA { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -389,15 +323,10 @@ class GetExtendedContactDetailsStatisticsLinks implements ModelInterface, ArrayA */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsMessagesSent.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsMessagesSent.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsMessagesSent.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsMessagesSent.php index f52cc77..6a35024 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsMessagesSent.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsMessagesSent.php @@ -1,4 +1,5 @@ 'int', - 'eventTime' => '\DateTime' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['campaignId' => 'int', 'eventTime' => '\\DateTime']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'campaignId' => 'int64', - 'eventTime' => 'date-time' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['campaignId' => 'int64', 'eventTime' => 'date-time']; /** * Array of property to type mappings. Used for (de)serialization * @@ -80,7 +67,6 @@ class GetExtendedContactDetailsStatisticsMessagesSent implements ModelInterface, { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -90,38 +76,25 @@ class GetExtendedContactDetailsStatisticsMessagesSent implements ModelInterface, { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'campaignId' => 'campaignId', - 'eventTime' => 'eventTime' - ]; - + protected static $attributeMap = ['campaignId' => 'campaignId', 'eventTime' => 'eventTime']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'campaignId' => 'setCampaignId', - 'eventTime' => 'setEventTime' - ]; - + protected static $setters = ['campaignId' => 'setCampaignId', 'eventTime' => 'setEventTime']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'campaignId' => 'getCampaignId', - 'eventTime' => 'getEventTime' - ]; - + protected static $getters = ['campaignId' => 'getCampaignId', 'eventTime' => 'getEventTime']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -132,7 +105,6 @@ class GetExtendedContactDetailsStatisticsMessagesSent implements ModelInterface, { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -142,7 +114,6 @@ class GetExtendedContactDetailsStatisticsMessagesSent implements ModelInterface, { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -152,7 +123,6 @@ class GetExtendedContactDetailsStatisticsMessagesSent implements ModelInterface, { return self::$getters; } - /** * The original name of the model. * @@ -162,18 +132,12 @@ class GetExtendedContactDetailsStatisticsMessagesSent implements ModelInterface, { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -185,7 +149,6 @@ class GetExtendedContactDetailsStatisticsMessagesSent implements ModelInterface, $this->container['campaignId'] = isset($data['campaignId']) ? $data['campaignId'] : null; $this->container['eventTime'] = isset($data['eventTime']) ? $data['eventTime'] : null; } - /** * Show all the invalid properties with reasons. * @@ -194,7 +157,6 @@ class GetExtendedContactDetailsStatisticsMessagesSent implements ModelInterface, public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['campaignId'] === null) { $invalidProperties[] = "'campaignId' can't be null"; } @@ -203,7 +165,6 @@ class GetExtendedContactDetailsStatisticsMessagesSent implements ModelInterface, } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -212,10 +173,8 @@ class GetExtendedContactDetailsStatisticsMessagesSent implements ModelInterface, */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets campaignId * @@ -225,7 +184,6 @@ class GetExtendedContactDetailsStatisticsMessagesSent implements ModelInterface, { return $this->container['campaignId']; } - /** * Sets campaignId * @@ -236,10 +194,8 @@ class GetExtendedContactDetailsStatisticsMessagesSent implements ModelInterface, public function setCampaignId($campaignId) { $this->container['campaignId'] = $campaignId; - return $this; } - /** * Gets eventTime * @@ -249,7 +205,6 @@ class GetExtendedContactDetailsStatisticsMessagesSent implements ModelInterface, { return $this->container['eventTime']; } - /** * Sets eventTime * @@ -260,7 +215,6 @@ class GetExtendedContactDetailsStatisticsMessagesSent implements ModelInterface, public function setEventTime($eventTime) { $this->container['eventTime'] = $eventTime; - return $this; } /** @@ -274,7 +228,6 @@ class GetExtendedContactDetailsStatisticsMessagesSent implements ModelInterface, { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -286,7 +239,6 @@ class GetExtendedContactDetailsStatisticsMessagesSent implements ModelInterface, { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -297,13 +249,12 @@ class GetExtendedContactDetailsStatisticsMessagesSent implements ModelInterface, */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -315,7 +266,6 @@ class GetExtendedContactDetailsStatisticsMessagesSent implements ModelInterface, { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -323,15 +273,10 @@ class GetExtendedContactDetailsStatisticsMessagesSent implements ModelInterface, */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsOpened.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsOpened.php similarity index 81% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsOpened.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsOpened.php index 564e448..0631411 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsOpened.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsOpened.php @@ -1,4 +1,5 @@ 'int', - 'count' => 'int', - 'eventTime' => '\DateTime', - 'ip' => 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['campaignId' => 'int', 'count' => 'int', 'eventTime' => '\\DateTime', 'ip' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'campaignId' => 'int64', - 'count' => 'int64', - 'eventTime' => 'date-time', - 'ip' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['campaignId' => 'int64', 'count' => 'int64', 'eventTime' => 'date-time', 'ip' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -84,7 +67,6 @@ class GetExtendedContactDetailsStatisticsOpened implements ModelInterface, Array { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -94,44 +76,25 @@ class GetExtendedContactDetailsStatisticsOpened implements ModelInterface, Array { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'campaignId' => 'campaignId', - 'count' => 'count', - 'eventTime' => 'eventTime', - 'ip' => 'ip' - ]; - + protected static $attributeMap = ['campaignId' => 'campaignId', 'count' => 'count', 'eventTime' => 'eventTime', 'ip' => 'ip']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'campaignId' => 'setCampaignId', - 'count' => 'setCount', - 'eventTime' => 'setEventTime', - 'ip' => 'setIp' - ]; - + protected static $setters = ['campaignId' => 'setCampaignId', 'count' => 'setCount', 'eventTime' => 'setEventTime', 'ip' => 'setIp']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'campaignId' => 'getCampaignId', - 'count' => 'getCount', - 'eventTime' => 'getEventTime', - 'ip' => 'getIp' - ]; - + protected static $getters = ['campaignId' => 'getCampaignId', 'count' => 'getCount', 'eventTime' => 'getEventTime', 'ip' => 'getIp']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -142,7 +105,6 @@ class GetExtendedContactDetailsStatisticsOpened implements ModelInterface, Array { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -152,7 +114,6 @@ class GetExtendedContactDetailsStatisticsOpened implements ModelInterface, Array { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -162,7 +123,6 @@ class GetExtendedContactDetailsStatisticsOpened implements ModelInterface, Array { return self::$getters; } - /** * The original name of the model. * @@ -172,18 +132,12 @@ class GetExtendedContactDetailsStatisticsOpened implements ModelInterface, Array { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -197,7 +151,6 @@ class GetExtendedContactDetailsStatisticsOpened implements ModelInterface, Array $this->container['eventTime'] = isset($data['eventTime']) ? $data['eventTime'] : null; $this->container['ip'] = isset($data['ip']) ? $data['ip'] : null; } - /** * Show all the invalid properties with reasons. * @@ -206,7 +159,6 @@ class GetExtendedContactDetailsStatisticsOpened implements ModelInterface, Array public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['campaignId'] === null) { $invalidProperties[] = "'campaignId' can't be null"; } @@ -221,7 +173,6 @@ class GetExtendedContactDetailsStatisticsOpened implements ModelInterface, Array } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -230,10 +181,8 @@ class GetExtendedContactDetailsStatisticsOpened implements ModelInterface, Array */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets campaignId * @@ -243,7 +192,6 @@ class GetExtendedContactDetailsStatisticsOpened implements ModelInterface, Array { return $this->container['campaignId']; } - /** * Sets campaignId * @@ -254,10 +202,8 @@ class GetExtendedContactDetailsStatisticsOpened implements ModelInterface, Array public function setCampaignId($campaignId) { $this->container['campaignId'] = $campaignId; - return $this; } - /** * Gets count * @@ -267,7 +213,6 @@ class GetExtendedContactDetailsStatisticsOpened implements ModelInterface, Array { return $this->container['count']; } - /** * Sets count * @@ -278,10 +223,8 @@ class GetExtendedContactDetailsStatisticsOpened implements ModelInterface, Array public function setCount($count) { $this->container['count'] = $count; - return $this; } - /** * Gets eventTime * @@ -291,7 +234,6 @@ class GetExtendedContactDetailsStatisticsOpened implements ModelInterface, Array { return $this->container['eventTime']; } - /** * Sets eventTime * @@ -302,10 +244,8 @@ class GetExtendedContactDetailsStatisticsOpened implements ModelInterface, Array public function setEventTime($eventTime) { $this->container['eventTime'] = $eventTime; - return $this; } - /** * Gets ip * @@ -315,7 +255,6 @@ class GetExtendedContactDetailsStatisticsOpened implements ModelInterface, Array { return $this->container['ip']; } - /** * Sets ip * @@ -326,7 +265,6 @@ class GetExtendedContactDetailsStatisticsOpened implements ModelInterface, Array public function setIp($ip) { $this->container['ip'] = $ip; - return $this; } /** @@ -340,7 +278,6 @@ class GetExtendedContactDetailsStatisticsOpened implements ModelInterface, Array { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -352,7 +289,6 @@ class GetExtendedContactDetailsStatisticsOpened implements ModelInterface, Array { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -363,13 +299,12 @@ class GetExtendedContactDetailsStatisticsOpened implements ModelInterface, Array */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -381,7 +316,6 @@ class GetExtendedContactDetailsStatisticsOpened implements ModelInterface, Array { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -389,15 +323,10 @@ class GetExtendedContactDetailsStatisticsOpened implements ModelInterface, Array */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptions.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptions.php similarity index 81% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptions.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptions.php index 9d5ca26..372ee8d 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptions.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptions.php @@ -1,4 +1,5 @@ '\SendinBlue\Client\Model\GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription[]', - 'adminUnsubscription' => '\SendinBlue\Client\Model\GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription[]' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['userUnsubscription' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription[]', 'adminUnsubscription' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription[]']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'userUnsubscription' => null, - 'adminUnsubscription' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['userUnsubscription' => null, 'adminUnsubscription' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -81,7 +68,6 @@ class GetExtendedContactDetailsStatisticsUnsubscriptions implements ModelInterfa { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -91,38 +77,25 @@ class GetExtendedContactDetailsStatisticsUnsubscriptions implements ModelInterfa { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'userUnsubscription' => 'userUnsubscription', - 'adminUnsubscription' => 'adminUnsubscription' - ]; - + protected static $attributeMap = ['userUnsubscription' => 'userUnsubscription', 'adminUnsubscription' => 'adminUnsubscription']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'userUnsubscription' => 'setUserUnsubscription', - 'adminUnsubscription' => 'setAdminUnsubscription' - ]; - + protected static $setters = ['userUnsubscription' => 'setUserUnsubscription', 'adminUnsubscription' => 'setAdminUnsubscription']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'userUnsubscription' => 'getUserUnsubscription', - 'adminUnsubscription' => 'getAdminUnsubscription' - ]; - + protected static $getters = ['userUnsubscription' => 'getUserUnsubscription', 'adminUnsubscription' => 'getAdminUnsubscription']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -133,7 +106,6 @@ class GetExtendedContactDetailsStatisticsUnsubscriptions implements ModelInterfa { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -143,7 +115,6 @@ class GetExtendedContactDetailsStatisticsUnsubscriptions implements ModelInterfa { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -153,7 +124,6 @@ class GetExtendedContactDetailsStatisticsUnsubscriptions implements ModelInterfa { return self::$getters; } - /** * The original name of the model. * @@ -163,18 +133,12 @@ class GetExtendedContactDetailsStatisticsUnsubscriptions implements ModelInterfa { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -186,7 +150,6 @@ class GetExtendedContactDetailsStatisticsUnsubscriptions implements ModelInterfa $this->container['userUnsubscription'] = isset($data['userUnsubscription']) ? $data['userUnsubscription'] : null; $this->container['adminUnsubscription'] = isset($data['adminUnsubscription']) ? $data['adminUnsubscription'] : null; } - /** * Show all the invalid properties with reasons. * @@ -195,7 +158,6 @@ class GetExtendedContactDetailsStatisticsUnsubscriptions implements ModelInterfa public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['userUnsubscription'] === null) { $invalidProperties[] = "'userUnsubscription' can't be null"; } @@ -204,7 +166,6 @@ class GetExtendedContactDetailsStatisticsUnsubscriptions implements ModelInterfa } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -213,10 +174,8 @@ class GetExtendedContactDetailsStatisticsUnsubscriptions implements ModelInterfa */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets userUnsubscription * @@ -226,7 +185,6 @@ class GetExtendedContactDetailsStatisticsUnsubscriptions implements ModelInterfa { return $this->container['userUnsubscription']; } - /** * Sets userUnsubscription * @@ -237,10 +195,8 @@ class GetExtendedContactDetailsStatisticsUnsubscriptions implements ModelInterfa public function setUserUnsubscription($userUnsubscription) { $this->container['userUnsubscription'] = $userUnsubscription; - return $this; } - /** * Gets adminUnsubscription * @@ -250,7 +206,6 @@ class GetExtendedContactDetailsStatisticsUnsubscriptions implements ModelInterfa { return $this->container['adminUnsubscription']; } - /** * Sets adminUnsubscription * @@ -261,7 +216,6 @@ class GetExtendedContactDetailsStatisticsUnsubscriptions implements ModelInterfa public function setAdminUnsubscription($adminUnsubscription) { $this->container['adminUnsubscription'] = $adminUnsubscription; - return $this; } /** @@ -275,7 +229,6 @@ class GetExtendedContactDetailsStatisticsUnsubscriptions implements ModelInterfa { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -287,7 +240,6 @@ class GetExtendedContactDetailsStatisticsUnsubscriptions implements ModelInterfa { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -298,13 +250,12 @@ class GetExtendedContactDetailsStatisticsUnsubscriptions implements ModelInterfa */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -316,7 +267,6 @@ class GetExtendedContactDetailsStatisticsUnsubscriptions implements ModelInterfa { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -324,15 +274,10 @@ class GetExtendedContactDetailsStatisticsUnsubscriptions implements ModelInterfa */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.php index a797433..61a1607 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.php @@ -1,4 +1,5 @@ '\DateTime', - 'ip' => 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['eventTime' => '\\DateTime', 'ip' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'eventTime' => 'date-time', - 'ip' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['eventTime' => 'date-time', 'ip' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -80,7 +67,6 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription impl { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -90,38 +76,25 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription impl { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'eventTime' => 'eventTime', - 'ip' => 'ip' - ]; - + protected static $attributeMap = ['eventTime' => 'eventTime', 'ip' => 'ip']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'eventTime' => 'setEventTime', - 'ip' => 'setIp' - ]; - + protected static $setters = ['eventTime' => 'setEventTime', 'ip' => 'setIp']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'eventTime' => 'getEventTime', - 'ip' => 'getIp' - ]; - + protected static $getters = ['eventTime' => 'getEventTime', 'ip' => 'getIp']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -132,7 +105,6 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription impl { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -142,7 +114,6 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription impl { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -152,7 +123,6 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription impl { return self::$getters; } - /** * The original name of the model. * @@ -162,18 +132,12 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription impl { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -185,7 +149,6 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription impl $this->container['eventTime'] = isset($data['eventTime']) ? $data['eventTime'] : null; $this->container['ip'] = isset($data['ip']) ? $data['ip'] : null; } - /** * Show all the invalid properties with reasons. * @@ -194,7 +157,6 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription impl public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['eventTime'] === null) { $invalidProperties[] = "'eventTime' can't be null"; } @@ -203,7 +165,6 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription impl } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -212,10 +173,8 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription impl */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets eventTime * @@ -225,7 +184,6 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription impl { return $this->container['eventTime']; } - /** * Sets eventTime * @@ -236,10 +194,8 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription impl public function setEventTime($eventTime) { $this->container['eventTime'] = $eventTime; - return $this; } - /** * Gets ip * @@ -249,7 +205,6 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription impl { return $this->container['ip']; } - /** * Sets ip * @@ -260,7 +215,6 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription impl public function setIp($ip) { $this->container['ip'] = $ip; - return $this; } /** @@ -274,7 +228,6 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription impl { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -286,7 +239,6 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription impl { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -297,13 +249,12 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription impl */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -315,7 +266,6 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription impl { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -323,15 +273,10 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription impl */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.php index 0b55554..b86645b 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.php @@ -1,4 +1,5 @@ 'int', - 'eventTime' => '\DateTime', - 'ip' => 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['campaignId' => 'int', 'eventTime' => '\\DateTime', 'ip' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'campaignId' => 'int64', - 'eventTime' => 'date-time', - 'ip' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['campaignId' => 'int64', 'eventTime' => 'date-time', 'ip' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -82,7 +67,6 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription imple { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -92,41 +76,25 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription imple { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'campaignId' => 'campaignId', - 'eventTime' => 'eventTime', - 'ip' => 'ip' - ]; - + protected static $attributeMap = ['campaignId' => 'campaignId', 'eventTime' => 'eventTime', 'ip' => 'ip']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'campaignId' => 'setCampaignId', - 'eventTime' => 'setEventTime', - 'ip' => 'setIp' - ]; - + protected static $setters = ['campaignId' => 'setCampaignId', 'eventTime' => 'setEventTime', 'ip' => 'setIp']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'campaignId' => 'getCampaignId', - 'eventTime' => 'getEventTime', - 'ip' => 'getIp' - ]; - + protected static $getters = ['campaignId' => 'getCampaignId', 'eventTime' => 'getEventTime', 'ip' => 'getIp']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -137,7 +105,6 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription imple { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -147,7 +114,6 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription imple { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -157,7 +123,6 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription imple { return self::$getters; } - /** * The original name of the model. * @@ -167,18 +132,12 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription imple { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -191,7 +150,6 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription imple $this->container['eventTime'] = isset($data['eventTime']) ? $data['eventTime'] : null; $this->container['ip'] = isset($data['ip']) ? $data['ip'] : null; } - /** * Show all the invalid properties with reasons. * @@ -200,7 +158,6 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription imple public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['campaignId'] === null) { $invalidProperties[] = "'campaignId' can't be null"; } @@ -212,7 +169,6 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription imple } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -221,10 +177,8 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription imple */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets campaignId * @@ -234,7 +188,6 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription imple { return $this->container['campaignId']; } - /** * Sets campaignId * @@ -245,10 +198,8 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription imple public function setCampaignId($campaignId) { $this->container['campaignId'] = $campaignId; - return $this; } - /** * Gets eventTime * @@ -258,7 +209,6 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription imple { return $this->container['eventTime']; } - /** * Sets eventTime * @@ -269,10 +219,8 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription imple public function setEventTime($eventTime) { $this->container['eventTime'] = $eventTime; - return $this; } - /** * Gets ip * @@ -282,7 +230,6 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription imple { return $this->container['ip']; } - /** * Sets ip * @@ -293,7 +240,6 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription imple public function setIp($ip) { $this->container['ip'] = $ip; - return $this; } /** @@ -307,7 +253,6 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription imple { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -319,7 +264,6 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription imple { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -330,13 +274,12 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription imple */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -348,7 +291,6 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription imple { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -356,15 +298,10 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription imple */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedList.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedList.php similarity index 79% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedList.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedList.php index 8f712bb..455fe3c 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedList.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedList.php @@ -1,4 +1,5 @@ 'int', - 'name' => 'string', - 'totalBlacklisted' => 'int', - 'totalSubscribers' => 'int', - 'folderId' => 'int', - 'createdAt' => '\DateTime', - 'campaignStats' => '\SendinBlue\Client\Model\GetExtendedListCampaignStats[]', - 'dynamicList' => 'bool' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['id' => 'int', 'name' => 'string', 'totalBlacklisted' => 'int', 'totalSubscribers' => 'int', 'folderId' => 'int', 'createdAt' => '\\DateTime', 'campaignStats' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetExtendedListCampaignStats[]', 'dynamicList' => 'bool']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'id' => 'int64', - 'name' => null, - 'totalBlacklisted' => 'int64', - 'totalSubscribers' => 'int64', - 'folderId' => 'int64', - 'createdAt' => 'date-time', - 'campaignStats' => null, - 'dynamicList' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['id' => 'int64', 'name' => null, 'totalBlacklisted' => 'int64', 'totalSubscribers' => 'int64', 'folderId' => 'int64', 'createdAt' => 'date-time', 'campaignStats' => null, 'dynamicList' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -92,7 +67,6 @@ class GetExtendedList implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -102,56 +76,25 @@ class GetExtendedList implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'id' => 'id', - 'name' => 'name', - 'totalBlacklisted' => 'totalBlacklisted', - 'totalSubscribers' => 'totalSubscribers', - 'folderId' => 'folderId', - 'createdAt' => 'createdAt', - 'campaignStats' => 'campaignStats', - 'dynamicList' => 'dynamicList' - ]; - + protected static $attributeMap = ['id' => 'id', 'name' => 'name', 'totalBlacklisted' => 'totalBlacklisted', 'totalSubscribers' => 'totalSubscribers', 'folderId' => 'folderId', 'createdAt' => 'createdAt', 'campaignStats' => 'campaignStats', 'dynamicList' => 'dynamicList']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'id' => 'setId', - 'name' => 'setName', - 'totalBlacklisted' => 'setTotalBlacklisted', - 'totalSubscribers' => 'setTotalSubscribers', - 'folderId' => 'setFolderId', - 'createdAt' => 'setCreatedAt', - 'campaignStats' => 'setCampaignStats', - 'dynamicList' => 'setDynamicList' - ]; - + protected static $setters = ['id' => 'setId', 'name' => 'setName', 'totalBlacklisted' => 'setTotalBlacklisted', 'totalSubscribers' => 'setTotalSubscribers', 'folderId' => 'setFolderId', 'createdAt' => 'setCreatedAt', 'campaignStats' => 'setCampaignStats', 'dynamicList' => 'setDynamicList']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'id' => 'getId', - 'name' => 'getName', - 'totalBlacklisted' => 'getTotalBlacklisted', - 'totalSubscribers' => 'getTotalSubscribers', - 'folderId' => 'getFolderId', - 'createdAt' => 'getCreatedAt', - 'campaignStats' => 'getCampaignStats', - 'dynamicList' => 'getDynamicList' - ]; - + protected static $getters = ['id' => 'getId', 'name' => 'getName', 'totalBlacklisted' => 'getTotalBlacklisted', 'totalSubscribers' => 'getTotalSubscribers', 'folderId' => 'getFolderId', 'createdAt' => 'getCreatedAt', 'campaignStats' => 'getCampaignStats', 'dynamicList' => 'getDynamicList']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -162,7 +105,6 @@ class GetExtendedList implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -172,7 +114,6 @@ class GetExtendedList implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -182,7 +123,6 @@ class GetExtendedList implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -192,18 +132,12 @@ class GetExtendedList implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -221,7 +155,6 @@ class GetExtendedList implements ModelInterface, ArrayAccess $this->container['campaignStats'] = isset($data['campaignStats']) ? $data['campaignStats'] : null; $this->container['dynamicList'] = isset($data['dynamicList']) ? $data['dynamicList'] : null; } - /** * Show all the invalid properties with reasons. * @@ -230,7 +163,6 @@ class GetExtendedList implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['id'] === null) { $invalidProperties[] = "'id' can't be null"; } @@ -251,7 +183,6 @@ class GetExtendedList implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -260,10 +191,8 @@ class GetExtendedList implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets id * @@ -273,7 +202,6 @@ class GetExtendedList implements ModelInterface, ArrayAccess { return $this->container['id']; } - /** * Sets id * @@ -284,10 +212,8 @@ class GetExtendedList implements ModelInterface, ArrayAccess public function setId($id) { $this->container['id'] = $id; - return $this; } - /** * Gets name * @@ -297,7 +223,6 @@ class GetExtendedList implements ModelInterface, ArrayAccess { return $this->container['name']; } - /** * Sets name * @@ -308,10 +233,8 @@ class GetExtendedList implements ModelInterface, ArrayAccess public function setName($name) { $this->container['name'] = $name; - return $this; } - /** * Gets totalBlacklisted * @@ -321,7 +244,6 @@ class GetExtendedList implements ModelInterface, ArrayAccess { return $this->container['totalBlacklisted']; } - /** * Sets totalBlacklisted * @@ -332,10 +254,8 @@ class GetExtendedList implements ModelInterface, ArrayAccess public function setTotalBlacklisted($totalBlacklisted) { $this->container['totalBlacklisted'] = $totalBlacklisted; - return $this; } - /** * Gets totalSubscribers * @@ -345,7 +265,6 @@ class GetExtendedList implements ModelInterface, ArrayAccess { return $this->container['totalSubscribers']; } - /** * Sets totalSubscribers * @@ -356,10 +275,8 @@ class GetExtendedList implements ModelInterface, ArrayAccess public function setTotalSubscribers($totalSubscribers) { $this->container['totalSubscribers'] = $totalSubscribers; - return $this; } - /** * Gets folderId * @@ -369,7 +286,6 @@ class GetExtendedList implements ModelInterface, ArrayAccess { return $this->container['folderId']; } - /** * Sets folderId * @@ -380,10 +296,8 @@ class GetExtendedList implements ModelInterface, ArrayAccess public function setFolderId($folderId) { $this->container['folderId'] = $folderId; - return $this; } - /** * Gets createdAt * @@ -393,7 +307,6 @@ class GetExtendedList implements ModelInterface, ArrayAccess { return $this->container['createdAt']; } - /** * Sets createdAt * @@ -404,10 +317,8 @@ class GetExtendedList implements ModelInterface, ArrayAccess public function setCreatedAt($createdAt) { $this->container['createdAt'] = $createdAt; - return $this; } - /** * Gets campaignStats * @@ -417,7 +328,6 @@ class GetExtendedList implements ModelInterface, ArrayAccess { return $this->container['campaignStats']; } - /** * Sets campaignStats * @@ -428,10 +338,8 @@ class GetExtendedList implements ModelInterface, ArrayAccess public function setCampaignStats($campaignStats) { $this->container['campaignStats'] = $campaignStats; - return $this; } - /** * Gets dynamicList * @@ -441,7 +349,6 @@ class GetExtendedList implements ModelInterface, ArrayAccess { return $this->container['dynamicList']; } - /** * Sets dynamicList * @@ -452,7 +359,6 @@ class GetExtendedList implements ModelInterface, ArrayAccess public function setDynamicList($dynamicList) { $this->container['dynamicList'] = $dynamicList; - return $this; } /** @@ -466,7 +372,6 @@ class GetExtendedList implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -478,7 +383,6 @@ class GetExtendedList implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -489,13 +393,12 @@ class GetExtendedList implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -507,7 +410,6 @@ class GetExtendedList implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -515,15 +417,10 @@ class GetExtendedList implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedListCampaignStats.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedListCampaignStats.php similarity index 81% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedListCampaignStats.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedListCampaignStats.php index 1087460..81e8585 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetExtendedListCampaignStats.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetExtendedListCampaignStats.php @@ -1,4 +1,5 @@ 'int', - 'stats' => '\SendinBlue\Client\Model\GetCampaignStats' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['campaignId' => 'int', 'stats' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetCampaignStats']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'campaignId' => 'int64', - 'stats' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['campaignId' => 'int64', 'stats' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -80,7 +67,6 @@ class GetExtendedListCampaignStats implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -90,38 +76,25 @@ class GetExtendedListCampaignStats implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'campaignId' => 'campaignId', - 'stats' => 'stats' - ]; - + protected static $attributeMap = ['campaignId' => 'campaignId', 'stats' => 'stats']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'campaignId' => 'setCampaignId', - 'stats' => 'setStats' - ]; - + protected static $setters = ['campaignId' => 'setCampaignId', 'stats' => 'setStats']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'campaignId' => 'getCampaignId', - 'stats' => 'getStats' - ]; - + protected static $getters = ['campaignId' => 'getCampaignId', 'stats' => 'getStats']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -132,7 +105,6 @@ class GetExtendedListCampaignStats implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -142,7 +114,6 @@ class GetExtendedListCampaignStats implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -152,7 +123,6 @@ class GetExtendedListCampaignStats implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -162,18 +132,12 @@ class GetExtendedListCampaignStats implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -185,7 +149,6 @@ class GetExtendedListCampaignStats implements ModelInterface, ArrayAccess $this->container['campaignId'] = isset($data['campaignId']) ? $data['campaignId'] : null; $this->container['stats'] = isset($data['stats']) ? $data['stats'] : null; } - /** * Show all the invalid properties with reasons. * @@ -194,7 +157,6 @@ class GetExtendedListCampaignStats implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['campaignId'] === null) { $invalidProperties[] = "'campaignId' can't be null"; } @@ -203,7 +165,6 @@ class GetExtendedListCampaignStats implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -212,10 +173,8 @@ class GetExtendedListCampaignStats implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets campaignId * @@ -225,7 +184,6 @@ class GetExtendedListCampaignStats implements ModelInterface, ArrayAccess { return $this->container['campaignId']; } - /** * Sets campaignId * @@ -236,10 +194,8 @@ class GetExtendedListCampaignStats implements ModelInterface, ArrayAccess public function setCampaignId($campaignId) { $this->container['campaignId'] = $campaignId; - return $this; } - /** * Gets stats * @@ -249,7 +205,6 @@ class GetExtendedListCampaignStats implements ModelInterface, ArrayAccess { return $this->container['stats']; } - /** * Sets stats * @@ -260,7 +215,6 @@ class GetExtendedListCampaignStats implements ModelInterface, ArrayAccess public function setStats($stats) { $this->container['stats'] = $stats; - return $this; } /** @@ -274,7 +228,6 @@ class GetExtendedListCampaignStats implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -286,7 +239,6 @@ class GetExtendedListCampaignStats implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -297,13 +249,12 @@ class GetExtendedListCampaignStats implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -315,7 +266,6 @@ class GetExtendedListCampaignStats implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -323,15 +273,10 @@ class GetExtendedListCampaignStats implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetFolder.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetFolder.php similarity index 80% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetFolder.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetFolder.php index b568300..4bbf49a 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetFolder.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetFolder.php @@ -1,4 +1,5 @@ 'int', - 'name' => 'string', - 'totalBlacklisted' => 'int', - 'totalSubscribers' => 'int', - 'uniqueSubscribers' => 'int' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['id' => 'int', 'name' => 'string', 'totalBlacklisted' => 'int', 'totalSubscribers' => 'int', 'uniqueSubscribers' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'id' => 'int64', - 'name' => null, - 'totalBlacklisted' => 'int64', - 'totalSubscribers' => 'int64', - 'uniqueSubscribers' => 'int64' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['id' => 'int64', 'name' => null, 'totalBlacklisted' => 'int64', 'totalSubscribers' => 'int64', 'uniqueSubscribers' => 'int64']; /** * Array of property to type mappings. Used for (de)serialization * @@ -86,7 +67,6 @@ class GetFolder implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -96,47 +76,25 @@ class GetFolder implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'id' => 'id', - 'name' => 'name', - 'totalBlacklisted' => 'totalBlacklisted', - 'totalSubscribers' => 'totalSubscribers', - 'uniqueSubscribers' => 'uniqueSubscribers' - ]; - + protected static $attributeMap = ['id' => 'id', 'name' => 'name', 'totalBlacklisted' => 'totalBlacklisted', 'totalSubscribers' => 'totalSubscribers', 'uniqueSubscribers' => 'uniqueSubscribers']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'id' => 'setId', - 'name' => 'setName', - 'totalBlacklisted' => 'setTotalBlacklisted', - 'totalSubscribers' => 'setTotalSubscribers', - 'uniqueSubscribers' => 'setUniqueSubscribers' - ]; - + protected static $setters = ['id' => 'setId', 'name' => 'setName', 'totalBlacklisted' => 'setTotalBlacklisted', 'totalSubscribers' => 'setTotalSubscribers', 'uniqueSubscribers' => 'setUniqueSubscribers']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'id' => 'getId', - 'name' => 'getName', - 'totalBlacklisted' => 'getTotalBlacklisted', - 'totalSubscribers' => 'getTotalSubscribers', - 'uniqueSubscribers' => 'getUniqueSubscribers' - ]; - + protected static $getters = ['id' => 'getId', 'name' => 'getName', 'totalBlacklisted' => 'getTotalBlacklisted', 'totalSubscribers' => 'getTotalSubscribers', 'uniqueSubscribers' => 'getUniqueSubscribers']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -147,7 +105,6 @@ class GetFolder implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -157,7 +114,6 @@ class GetFolder implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -167,7 +123,6 @@ class GetFolder implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -177,18 +132,12 @@ class GetFolder implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -203,7 +152,6 @@ class GetFolder implements ModelInterface, ArrayAccess $this->container['totalSubscribers'] = isset($data['totalSubscribers']) ? $data['totalSubscribers'] : null; $this->container['uniqueSubscribers'] = isset($data['uniqueSubscribers']) ? $data['uniqueSubscribers'] : null; } - /** * Show all the invalid properties with reasons. * @@ -212,7 +160,6 @@ class GetFolder implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['id'] === null) { $invalidProperties[] = "'id' can't be null"; } @@ -230,7 +177,6 @@ class GetFolder implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -239,10 +185,8 @@ class GetFolder implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets id * @@ -252,7 +196,6 @@ class GetFolder implements ModelInterface, ArrayAccess { return $this->container['id']; } - /** * Sets id * @@ -263,10 +206,8 @@ class GetFolder implements ModelInterface, ArrayAccess public function setId($id) { $this->container['id'] = $id; - return $this; } - /** * Gets name * @@ -276,7 +217,6 @@ class GetFolder implements ModelInterface, ArrayAccess { return $this->container['name']; } - /** * Sets name * @@ -287,10 +227,8 @@ class GetFolder implements ModelInterface, ArrayAccess public function setName($name) { $this->container['name'] = $name; - return $this; } - /** * Gets totalBlacklisted * @@ -300,7 +238,6 @@ class GetFolder implements ModelInterface, ArrayAccess { return $this->container['totalBlacklisted']; } - /** * Sets totalBlacklisted * @@ -311,10 +248,8 @@ class GetFolder implements ModelInterface, ArrayAccess public function setTotalBlacklisted($totalBlacklisted) { $this->container['totalBlacklisted'] = $totalBlacklisted; - return $this; } - /** * Gets totalSubscribers * @@ -324,7 +259,6 @@ class GetFolder implements ModelInterface, ArrayAccess { return $this->container['totalSubscribers']; } - /** * Sets totalSubscribers * @@ -335,10 +269,8 @@ class GetFolder implements ModelInterface, ArrayAccess public function setTotalSubscribers($totalSubscribers) { $this->container['totalSubscribers'] = $totalSubscribers; - return $this; } - /** * Gets uniqueSubscribers * @@ -348,7 +280,6 @@ class GetFolder implements ModelInterface, ArrayAccess { return $this->container['uniqueSubscribers']; } - /** * Sets uniqueSubscribers * @@ -359,7 +290,6 @@ class GetFolder implements ModelInterface, ArrayAccess public function setUniqueSubscribers($uniqueSubscribers) { $this->container['uniqueSubscribers'] = $uniqueSubscribers; - return $this; } /** @@ -373,7 +303,6 @@ class GetFolder implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -385,7 +314,6 @@ class GetFolder implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -396,13 +324,12 @@ class GetFolder implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -414,7 +341,6 @@ class GetFolder implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -422,15 +348,10 @@ class GetFolder implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetFolderLists.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetFolderLists.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetFolderLists.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetFolderLists.php index 084549a..3da97da 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetFolderLists.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetFolderLists.php @@ -1,4 +1,5 @@ 'object[]', - 'count' => 'int' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['lists' => 'object[]', 'count' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'lists' => null, - 'count' => 'int64' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['lists' => null, 'count' => 'int64']; /** * Array of property to type mappings. Used for (de)serialization * @@ -80,7 +67,6 @@ class GetFolderLists implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -90,38 +76,25 @@ class GetFolderLists implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'lists' => 'lists', - 'count' => 'count' - ]; - + protected static $attributeMap = ['lists' => 'lists', 'count' => 'count']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'lists' => 'setLists', - 'count' => 'setCount' - ]; - + protected static $setters = ['lists' => 'setLists', 'count' => 'setCount']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'lists' => 'getLists', - 'count' => 'getCount' - ]; - + protected static $getters = ['lists' => 'getLists', 'count' => 'getCount']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -132,7 +105,6 @@ class GetFolderLists implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -142,7 +114,6 @@ class GetFolderLists implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -152,7 +123,6 @@ class GetFolderLists implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -162,18 +132,12 @@ class GetFolderLists implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -185,7 +149,6 @@ class GetFolderLists implements ModelInterface, ArrayAccess $this->container['lists'] = isset($data['lists']) ? $data['lists'] : null; $this->container['count'] = isset($data['count']) ? $data['count'] : null; } - /** * Show all the invalid properties with reasons. * @@ -194,7 +157,6 @@ class GetFolderLists implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['lists'] === null) { $invalidProperties[] = "'lists' can't be null"; } @@ -203,7 +165,6 @@ class GetFolderLists implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -212,10 +173,8 @@ class GetFolderLists implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets lists * @@ -225,7 +184,6 @@ class GetFolderLists implements ModelInterface, ArrayAccess { return $this->container['lists']; } - /** * Sets lists * @@ -236,10 +194,8 @@ class GetFolderLists implements ModelInterface, ArrayAccess public function setLists($lists) { $this->container['lists'] = $lists; - return $this; } - /** * Gets count * @@ -249,7 +205,6 @@ class GetFolderLists implements ModelInterface, ArrayAccess { return $this->container['count']; } - /** * Sets count * @@ -260,7 +215,6 @@ class GetFolderLists implements ModelInterface, ArrayAccess public function setCount($count) { $this->container['count'] = $count; - return $this; } /** @@ -274,7 +228,6 @@ class GetFolderLists implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -286,7 +239,6 @@ class GetFolderLists implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -297,13 +249,12 @@ class GetFolderLists implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -315,7 +266,6 @@ class GetFolderLists implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -323,15 +273,10 @@ class GetFolderLists implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetFolders.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetFolders.php similarity index 81% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetFolders.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetFolders.php index 47300d6..a8fd461 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetFolders.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetFolders.php @@ -1,4 +1,5 @@ 'object[]', - 'count' => 'int' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['folders' => 'object[]', 'count' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'folders' => null, - 'count' => 'int64' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['folders' => null, 'count' => 'int64']; /** * Array of property to type mappings. Used for (de)serialization * @@ -80,7 +67,6 @@ class GetFolders implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -90,38 +76,25 @@ class GetFolders implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'folders' => 'folders', - 'count' => 'count' - ]; - + protected static $attributeMap = ['folders' => 'folders', 'count' => 'count']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'folders' => 'setFolders', - 'count' => 'setCount' - ]; - + protected static $setters = ['folders' => 'setFolders', 'count' => 'setCount']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'folders' => 'getFolders', - 'count' => 'getCount' - ]; - + protected static $getters = ['folders' => 'getFolders', 'count' => 'getCount']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -132,7 +105,6 @@ class GetFolders implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -142,7 +114,6 @@ class GetFolders implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -152,7 +123,6 @@ class GetFolders implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -162,18 +132,12 @@ class GetFolders implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -185,7 +149,6 @@ class GetFolders implements ModelInterface, ArrayAccess $this->container['folders'] = isset($data['folders']) ? $data['folders'] : null; $this->container['count'] = isset($data['count']) ? $data['count'] : null; } - /** * Show all the invalid properties with reasons. * @@ -194,10 +157,8 @@ class GetFolders implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -206,10 +167,8 @@ class GetFolders implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets folders * @@ -219,7 +178,6 @@ class GetFolders implements ModelInterface, ArrayAccess { return $this->container['folders']; } - /** * Sets folders * @@ -230,10 +188,8 @@ class GetFolders implements ModelInterface, ArrayAccess public function setFolders($folders) { $this->container['folders'] = $folders; - return $this; } - /** * Gets count * @@ -243,7 +199,6 @@ class GetFolders implements ModelInterface, ArrayAccess { return $this->container['count']; } - /** * Sets count * @@ -254,7 +209,6 @@ class GetFolders implements ModelInterface, ArrayAccess public function setCount($count) { $this->container['count'] = $count; - return $this; } /** @@ -268,7 +222,6 @@ class GetFolders implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -280,7 +233,6 @@ class GetFolders implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -291,13 +243,12 @@ class GetFolders implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -309,7 +260,6 @@ class GetFolders implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -317,15 +267,10 @@ class GetFolders implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetIp.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetIp.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetIp.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetIp.php index 78dd084..b3ca7fb 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetIp.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetIp.php @@ -1,4 +1,5 @@ 'int', - 'ip' => 'string', - 'active' => 'bool', - 'domain' => 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['id' => 'int', 'ip' => 'string', 'active' => 'bool', 'domain' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'id' => 'int64', - 'ip' => null, - 'active' => null, - 'domain' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['id' => 'int64', 'ip' => null, 'active' => null, 'domain' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -84,7 +67,6 @@ class GetIp implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -94,44 +76,25 @@ class GetIp implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'id' => 'id', - 'ip' => 'ip', - 'active' => 'active', - 'domain' => 'domain' - ]; - + protected static $attributeMap = ['id' => 'id', 'ip' => 'ip', 'active' => 'active', 'domain' => 'domain']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'id' => 'setId', - 'ip' => 'setIp', - 'active' => 'setActive', - 'domain' => 'setDomain' - ]; - + protected static $setters = ['id' => 'setId', 'ip' => 'setIp', 'active' => 'setActive', 'domain' => 'setDomain']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'id' => 'getId', - 'ip' => 'getIp', - 'active' => 'getActive', - 'domain' => 'getDomain' - ]; - + protected static $getters = ['id' => 'getId', 'ip' => 'getIp', 'active' => 'getActive', 'domain' => 'getDomain']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -142,7 +105,6 @@ class GetIp implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -152,7 +114,6 @@ class GetIp implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -162,7 +123,6 @@ class GetIp implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -172,18 +132,12 @@ class GetIp implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -197,7 +151,6 @@ class GetIp implements ModelInterface, ArrayAccess $this->container['active'] = isset($data['active']) ? $data['active'] : null; $this->container['domain'] = isset($data['domain']) ? $data['domain'] : null; } - /** * Show all the invalid properties with reasons. * @@ -206,7 +159,6 @@ class GetIp implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['id'] === null) { $invalidProperties[] = "'id' can't be null"; } @@ -221,7 +173,6 @@ class GetIp implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -230,10 +181,8 @@ class GetIp implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets id * @@ -243,7 +192,6 @@ class GetIp implements ModelInterface, ArrayAccess { return $this->container['id']; } - /** * Sets id * @@ -254,10 +202,8 @@ class GetIp implements ModelInterface, ArrayAccess public function setId($id) { $this->container['id'] = $id; - return $this; } - /** * Gets ip * @@ -267,7 +213,6 @@ class GetIp implements ModelInterface, ArrayAccess { return $this->container['ip']; } - /** * Sets ip * @@ -278,10 +223,8 @@ class GetIp implements ModelInterface, ArrayAccess public function setIp($ip) { $this->container['ip'] = $ip; - return $this; } - /** * Gets active * @@ -291,7 +234,6 @@ class GetIp implements ModelInterface, ArrayAccess { return $this->container['active']; } - /** * Sets active * @@ -302,10 +244,8 @@ class GetIp implements ModelInterface, ArrayAccess public function setActive($active) { $this->container['active'] = $active; - return $this; } - /** * Gets domain * @@ -315,7 +255,6 @@ class GetIp implements ModelInterface, ArrayAccess { return $this->container['domain']; } - /** * Sets domain * @@ -326,7 +265,6 @@ class GetIp implements ModelInterface, ArrayAccess public function setDomain($domain) { $this->container['domain'] = $domain; - return $this; } /** @@ -340,7 +278,6 @@ class GetIp implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -352,7 +289,6 @@ class GetIp implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -363,13 +299,12 @@ class GetIp implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -381,7 +316,6 @@ class GetIp implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -389,15 +323,10 @@ class GetIp implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetIpFromSender.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetIpFromSender.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetIpFromSender.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetIpFromSender.php index 24be22f..22dc303 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetIpFromSender.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetIpFromSender.php @@ -1,4 +1,5 @@ 'int', - 'ip' => 'string', - 'domain' => 'string', - 'weight' => 'int' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['id' => 'int', 'ip' => 'string', 'domain' => 'string', 'weight' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'id' => 'int64', - 'ip' => null, - 'domain' => null, - 'weight' => 'int64' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['id' => 'int64', 'ip' => null, 'domain' => null, 'weight' => 'int64']; /** * Array of property to type mappings. Used for (de)serialization * @@ -84,7 +67,6 @@ class GetIpFromSender implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -94,44 +76,25 @@ class GetIpFromSender implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'id' => 'id', - 'ip' => 'ip', - 'domain' => 'domain', - 'weight' => 'weight' - ]; - + protected static $attributeMap = ['id' => 'id', 'ip' => 'ip', 'domain' => 'domain', 'weight' => 'weight']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'id' => 'setId', - 'ip' => 'setIp', - 'domain' => 'setDomain', - 'weight' => 'setWeight' - ]; - + protected static $setters = ['id' => 'setId', 'ip' => 'setIp', 'domain' => 'setDomain', 'weight' => 'setWeight']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'id' => 'getId', - 'ip' => 'getIp', - 'domain' => 'getDomain', - 'weight' => 'getWeight' - ]; - + protected static $getters = ['id' => 'getId', 'ip' => 'getIp', 'domain' => 'getDomain', 'weight' => 'getWeight']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -142,7 +105,6 @@ class GetIpFromSender implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -152,7 +114,6 @@ class GetIpFromSender implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -162,7 +123,6 @@ class GetIpFromSender implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -172,18 +132,12 @@ class GetIpFromSender implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -197,7 +151,6 @@ class GetIpFromSender implements ModelInterface, ArrayAccess $this->container['domain'] = isset($data['domain']) ? $data['domain'] : null; $this->container['weight'] = isset($data['weight']) ? $data['weight'] : null; } - /** * Show all the invalid properties with reasons. * @@ -206,7 +159,6 @@ class GetIpFromSender implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['id'] === null) { $invalidProperties[] = "'id' can't be null"; } @@ -221,7 +173,6 @@ class GetIpFromSender implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -230,10 +181,8 @@ class GetIpFromSender implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets id * @@ -243,7 +192,6 @@ class GetIpFromSender implements ModelInterface, ArrayAccess { return $this->container['id']; } - /** * Sets id * @@ -254,10 +202,8 @@ class GetIpFromSender implements ModelInterface, ArrayAccess public function setId($id) { $this->container['id'] = $id; - return $this; } - /** * Gets ip * @@ -267,7 +213,6 @@ class GetIpFromSender implements ModelInterface, ArrayAccess { return $this->container['ip']; } - /** * Sets ip * @@ -278,10 +223,8 @@ class GetIpFromSender implements ModelInterface, ArrayAccess public function setIp($ip) { $this->container['ip'] = $ip; - return $this; } - /** * Gets domain * @@ -291,7 +234,6 @@ class GetIpFromSender implements ModelInterface, ArrayAccess { return $this->container['domain']; } - /** * Sets domain * @@ -302,10 +244,8 @@ class GetIpFromSender implements ModelInterface, ArrayAccess public function setDomain($domain) { $this->container['domain'] = $domain; - return $this; } - /** * Gets weight * @@ -315,7 +255,6 @@ class GetIpFromSender implements ModelInterface, ArrayAccess { return $this->container['weight']; } - /** * Sets weight * @@ -326,7 +265,6 @@ class GetIpFromSender implements ModelInterface, ArrayAccess public function setWeight($weight) { $this->container['weight'] = $weight; - return $this; } /** @@ -340,7 +278,6 @@ class GetIpFromSender implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -352,7 +289,6 @@ class GetIpFromSender implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -363,13 +299,12 @@ class GetIpFromSender implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -381,7 +316,6 @@ class GetIpFromSender implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -389,15 +323,10 @@ class GetIpFromSender implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetIps.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetIps.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetIps.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetIps.php index 7cd281b..b56e79a 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetIps.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetIps.php @@ -1,4 +1,5 @@ '\SendinBlue\Client\Model\GetIp[]' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['ips' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetIp[]']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'ips' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['ips' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -78,7 +67,6 @@ class GetIps implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -88,35 +76,25 @@ class GetIps implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'ips' => 'ips' - ]; - + protected static $attributeMap = ['ips' => 'ips']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'ips' => 'setIps' - ]; - + protected static $setters = ['ips' => 'setIps']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'ips' => 'getIps' - ]; - + protected static $getters = ['ips' => 'getIps']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -127,7 +105,6 @@ class GetIps implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -137,7 +114,6 @@ class GetIps implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -147,7 +123,6 @@ class GetIps implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -157,18 +132,12 @@ class GetIps implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -179,7 +148,6 @@ class GetIps implements ModelInterface, ArrayAccess { $this->container['ips'] = isset($data['ips']) ? $data['ips'] : null; } - /** * Show all the invalid properties with reasons. * @@ -188,13 +156,11 @@ class GetIps implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['ips'] === null) { $invalidProperties[] = "'ips' can't be null"; } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -203,10 +169,8 @@ class GetIps implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets ips * @@ -216,7 +180,6 @@ class GetIps implements ModelInterface, ArrayAccess { return $this->container['ips']; } - /** * Sets ips * @@ -227,7 +190,6 @@ class GetIps implements ModelInterface, ArrayAccess public function setIps($ips) { $this->container['ips'] = $ips; - return $this; } /** @@ -241,7 +203,6 @@ class GetIps implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -253,7 +214,6 @@ class GetIps implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -264,13 +224,12 @@ class GetIps implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -282,7 +241,6 @@ class GetIps implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -290,15 +248,10 @@ class GetIps implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetIpsFromSender.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetIpsFromSender.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetIpsFromSender.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetIpsFromSender.php index e3f052a..8677593 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetIpsFromSender.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetIpsFromSender.php @@ -1,4 +1,5 @@ '\SendinBlue\Client\Model\GetIpFromSender[]' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['ips' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetIpFromSender[]']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'ips' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['ips' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -78,7 +67,6 @@ class GetIpsFromSender implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -88,35 +76,25 @@ class GetIpsFromSender implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'ips' => 'ips' - ]; - + protected static $attributeMap = ['ips' => 'ips']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'ips' => 'setIps' - ]; - + protected static $setters = ['ips' => 'setIps']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'ips' => 'getIps' - ]; - + protected static $getters = ['ips' => 'getIps']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -127,7 +105,6 @@ class GetIpsFromSender implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -137,7 +114,6 @@ class GetIpsFromSender implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -147,7 +123,6 @@ class GetIpsFromSender implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -157,18 +132,12 @@ class GetIpsFromSender implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -179,7 +148,6 @@ class GetIpsFromSender implements ModelInterface, ArrayAccess { $this->container['ips'] = isset($data['ips']) ? $data['ips'] : null; } - /** * Show all the invalid properties with reasons. * @@ -188,13 +156,11 @@ class GetIpsFromSender implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['ips'] === null) { $invalidProperties[] = "'ips' can't be null"; } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -203,10 +169,8 @@ class GetIpsFromSender implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets ips * @@ -216,7 +180,6 @@ class GetIpsFromSender implements ModelInterface, ArrayAccess { return $this->container['ips']; } - /** * Sets ips * @@ -227,7 +190,6 @@ class GetIpsFromSender implements ModelInterface, ArrayAccess public function setIps($ips) { $this->container['ips'] = $ips; - return $this; } /** @@ -241,7 +203,6 @@ class GetIpsFromSender implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -253,7 +214,6 @@ class GetIpsFromSender implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -264,13 +224,12 @@ class GetIpsFromSender implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -282,7 +241,6 @@ class GetIpsFromSender implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -290,15 +248,10 @@ class GetIpsFromSender implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetList.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetList.php similarity index 81% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetList.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetList.php index e4983a2..c0aebcd 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetList.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetList.php @@ -1,4 +1,5 @@ 'int', - 'name' => 'string', - 'totalBlacklisted' => 'int', - 'totalSubscribers' => 'int' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['id' => 'int', 'name' => 'string', 'totalBlacklisted' => 'int', 'totalSubscribers' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'id' => 'int64', - 'name' => null, - 'totalBlacklisted' => 'int64', - 'totalSubscribers' => 'int64' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['id' => 'int64', 'name' => null, 'totalBlacklisted' => 'int64', 'totalSubscribers' => 'int64']; /** * Array of property to type mappings. Used for (de)serialization * @@ -84,7 +67,6 @@ class GetList implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -94,44 +76,25 @@ class GetList implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'id' => 'id', - 'name' => 'name', - 'totalBlacklisted' => 'totalBlacklisted', - 'totalSubscribers' => 'totalSubscribers' - ]; - + protected static $attributeMap = ['id' => 'id', 'name' => 'name', 'totalBlacklisted' => 'totalBlacklisted', 'totalSubscribers' => 'totalSubscribers']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'id' => 'setId', - 'name' => 'setName', - 'totalBlacklisted' => 'setTotalBlacklisted', - 'totalSubscribers' => 'setTotalSubscribers' - ]; - + protected static $setters = ['id' => 'setId', 'name' => 'setName', 'totalBlacklisted' => 'setTotalBlacklisted', 'totalSubscribers' => 'setTotalSubscribers']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'id' => 'getId', - 'name' => 'getName', - 'totalBlacklisted' => 'getTotalBlacklisted', - 'totalSubscribers' => 'getTotalSubscribers' - ]; - + protected static $getters = ['id' => 'getId', 'name' => 'getName', 'totalBlacklisted' => 'getTotalBlacklisted', 'totalSubscribers' => 'getTotalSubscribers']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -142,7 +105,6 @@ class GetList implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -152,7 +114,6 @@ class GetList implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -162,7 +123,6 @@ class GetList implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -172,18 +132,12 @@ class GetList implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -197,7 +151,6 @@ class GetList implements ModelInterface, ArrayAccess $this->container['totalBlacklisted'] = isset($data['totalBlacklisted']) ? $data['totalBlacklisted'] : null; $this->container['totalSubscribers'] = isset($data['totalSubscribers']) ? $data['totalSubscribers'] : null; } - /** * Show all the invalid properties with reasons. * @@ -206,7 +159,6 @@ class GetList implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['id'] === null) { $invalidProperties[] = "'id' can't be null"; } @@ -221,7 +173,6 @@ class GetList implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -230,10 +181,8 @@ class GetList implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets id * @@ -243,7 +192,6 @@ class GetList implements ModelInterface, ArrayAccess { return $this->container['id']; } - /** * Sets id * @@ -254,10 +202,8 @@ class GetList implements ModelInterface, ArrayAccess public function setId($id) { $this->container['id'] = $id; - return $this; } - /** * Gets name * @@ -267,7 +213,6 @@ class GetList implements ModelInterface, ArrayAccess { return $this->container['name']; } - /** * Sets name * @@ -278,10 +223,8 @@ class GetList implements ModelInterface, ArrayAccess public function setName($name) { $this->container['name'] = $name; - return $this; } - /** * Gets totalBlacklisted * @@ -291,7 +234,6 @@ class GetList implements ModelInterface, ArrayAccess { return $this->container['totalBlacklisted']; } - /** * Sets totalBlacklisted * @@ -302,10 +244,8 @@ class GetList implements ModelInterface, ArrayAccess public function setTotalBlacklisted($totalBlacklisted) { $this->container['totalBlacklisted'] = $totalBlacklisted; - return $this; } - /** * Gets totalSubscribers * @@ -315,7 +255,6 @@ class GetList implements ModelInterface, ArrayAccess { return $this->container['totalSubscribers']; } - /** * Sets totalSubscribers * @@ -326,7 +265,6 @@ class GetList implements ModelInterface, ArrayAccess public function setTotalSubscribers($totalSubscribers) { $this->container['totalSubscribers'] = $totalSubscribers; - return $this; } /** @@ -340,7 +278,6 @@ class GetList implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -352,7 +289,6 @@ class GetList implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -363,13 +299,12 @@ class GetList implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -381,7 +316,6 @@ class GetList implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -389,15 +323,10 @@ class GetList implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetLists.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetLists.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetLists.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetLists.php index f83b2bf..2f70402 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetLists.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetLists.php @@ -1,4 +1,5 @@ 'object[]', - 'count' => 'int' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['lists' => 'object[]', 'count' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'lists' => null, - 'count' => 'int64' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['lists' => null, 'count' => 'int64']; /** * Array of property to type mappings. Used for (de)serialization * @@ -80,7 +67,6 @@ class GetLists implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -90,38 +76,25 @@ class GetLists implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'lists' => 'lists', - 'count' => 'count' - ]; - + protected static $attributeMap = ['lists' => 'lists', 'count' => 'count']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'lists' => 'setLists', - 'count' => 'setCount' - ]; - + protected static $setters = ['lists' => 'setLists', 'count' => 'setCount']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'lists' => 'getLists', - 'count' => 'getCount' - ]; - + protected static $getters = ['lists' => 'getLists', 'count' => 'getCount']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -132,7 +105,6 @@ class GetLists implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -142,7 +114,6 @@ class GetLists implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -152,7 +123,6 @@ class GetLists implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -162,18 +132,12 @@ class GetLists implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -185,7 +149,6 @@ class GetLists implements ModelInterface, ArrayAccess $this->container['lists'] = isset($data['lists']) ? $data['lists'] : null; $this->container['count'] = isset($data['count']) ? $data['count'] : null; } - /** * Show all the invalid properties with reasons. * @@ -194,7 +157,6 @@ class GetLists implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['lists'] === null) { $invalidProperties[] = "'lists' can't be null"; } @@ -203,7 +165,6 @@ class GetLists implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -212,10 +173,8 @@ class GetLists implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets lists * @@ -225,7 +184,6 @@ class GetLists implements ModelInterface, ArrayAccess { return $this->container['lists']; } - /** * Sets lists * @@ -236,10 +194,8 @@ class GetLists implements ModelInterface, ArrayAccess public function setLists($lists) { $this->container['lists'] = $lists; - return $this; } - /** * Gets count * @@ -249,7 +205,6 @@ class GetLists implements ModelInterface, ArrayAccess { return $this->container['count']; } - /** * Sets count * @@ -260,7 +215,6 @@ class GetLists implements ModelInterface, ArrayAccess public function setCount($count) { $this->container['count'] = $count; - return $this; } /** @@ -274,7 +228,6 @@ class GetLists implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -286,7 +239,6 @@ class GetLists implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -297,13 +249,12 @@ class GetLists implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -315,7 +266,6 @@ class GetLists implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -323,15 +273,10 @@ class GetLists implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetProcess.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetProcess.php similarity index 76% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetProcess.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetProcess.php index 765ff37..8f76712 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetProcess.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetProcess.php @@ -1,4 +1,5 @@ 'int', - 'status' => 'string', - 'name' => 'string', - 'exportUrl' => 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['id' => 'int', 'status' => 'string', 'name' => 'string', 'exportUrl' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'id' => 'int64', - 'status' => null, - 'name' => null, - 'exportUrl' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['id' => 'int64', 'status' => null, 'name' => null, 'exportUrl' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -84,7 +67,6 @@ class GetProcess implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -94,44 +76,25 @@ class GetProcess implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'id' => 'id', - 'status' => 'status', - 'name' => 'name', - 'exportUrl' => 'export_url' - ]; - + protected static $attributeMap = ['id' => 'id', 'status' => 'status', 'name' => 'name', 'exportUrl' => 'export_url']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'id' => 'setId', - 'status' => 'setStatus', - 'name' => 'setName', - 'exportUrl' => 'setExportUrl' - ]; - + protected static $setters = ['id' => 'setId', 'status' => 'setStatus', 'name' => 'setName', 'exportUrl' => 'setExportUrl']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'id' => 'getId', - 'status' => 'getStatus', - 'name' => 'getName', - 'exportUrl' => 'getExportUrl' - ]; - + protected static $getters = ['id' => 'getId', 'status' => 'getStatus', 'name' => 'getName', 'exportUrl' => 'getExportUrl']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -142,7 +105,6 @@ class GetProcess implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -152,7 +114,6 @@ class GetProcess implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -162,7 +123,6 @@ class GetProcess implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -172,13 +132,9 @@ class GetProcess implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - const STATUS_QUEUED = 'queued'; const STATUS_IN_PROCESS = 'in_process'; const STATUS_COMPLETED = 'completed'; - - - /** * Gets allowable values of the enum * @@ -186,21 +142,14 @@ class GetProcess implements ModelInterface, ArrayAccess */ public function getStatusAllowableValues() { - return [ - self::STATUS_QUEUED, - self::STATUS_IN_PROCESS, - self::STATUS_COMPLETED, - ]; + return [self::STATUS_QUEUED, self::STATUS_IN_PROCESS, self::STATUS_COMPLETED]; } - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -214,7 +163,6 @@ class GetProcess implements ModelInterface, ArrayAccess $this->container['name'] = isset($data['name']) ? $data['name'] : null; $this->container['exportUrl'] = isset($data['exportUrl']) ? $data['exportUrl'] : null; } - /** * Show all the invalid properties with reasons. * @@ -223,7 +171,6 @@ class GetProcess implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['id'] === null) { $invalidProperties[] = "'id' can't be null"; } @@ -231,19 +178,14 @@ class GetProcess implements ModelInterface, ArrayAccess $invalidProperties[] = "'status' can't be null"; } $allowedValues = $this->getStatusAllowableValues(); - if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value for 'status', must be one of '%s'", - implode("', '", $allowedValues) - ); + if (!\is_null($this->container['status']) && !\in_array($this->container['status'], $allowedValues, \true)) { + $invalidProperties[] = \sprintf("invalid value for 'status', must be one of '%s'", \implode("', '", $allowedValues)); } - if ($this->container['name'] === null) { $invalidProperties[] = "'name' can't be null"; } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -252,10 +194,8 @@ class GetProcess implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets id * @@ -265,7 +205,6 @@ class GetProcess implements ModelInterface, ArrayAccess { return $this->container['id']; } - /** * Sets id * @@ -276,10 +215,8 @@ class GetProcess implements ModelInterface, ArrayAccess public function setId($id) { $this->container['id'] = $id; - return $this; } - /** * Gets status * @@ -289,7 +226,6 @@ class GetProcess implements ModelInterface, ArrayAccess { return $this->container['status']; } - /** * Sets status * @@ -300,19 +236,12 @@ class GetProcess implements ModelInterface, ArrayAccess public function setStatus($status) { $allowedValues = $this->getStatusAllowableValues(); - if (!in_array($status, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'status', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); + if (!\in_array($status, $allowedValues, \true)) { + throw new \InvalidArgumentException(\sprintf("Invalid value for 'status', must be one of '%s'", \implode("', '", $allowedValues))); } $this->container['status'] = $status; - return $this; } - /** * Gets name * @@ -322,7 +251,6 @@ class GetProcess implements ModelInterface, ArrayAccess { return $this->container['name']; } - /** * Sets name * @@ -333,10 +261,8 @@ class GetProcess implements ModelInterface, ArrayAccess public function setName($name) { $this->container['name'] = $name; - return $this; } - /** * Gets exportUrl * @@ -346,7 +272,6 @@ class GetProcess implements ModelInterface, ArrayAccess { return $this->container['exportUrl']; } - /** * Sets exportUrl * @@ -357,7 +282,6 @@ class GetProcess implements ModelInterface, ArrayAccess public function setExportUrl($exportUrl) { $this->container['exportUrl'] = $exportUrl; - return $this; } /** @@ -371,7 +295,6 @@ class GetProcess implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -383,7 +306,6 @@ class GetProcess implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -394,13 +316,12 @@ class GetProcess implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -412,7 +333,6 @@ class GetProcess implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -420,15 +340,10 @@ class GetProcess implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetProcesses.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetProcesses.php similarity index 81% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetProcesses.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetProcesses.php index e19cce9..d2976c7 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetProcesses.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetProcesses.php @@ -1,4 +1,5 @@ '\SendinBlue\Client\Model\GetProcess[]', - 'count' => 'int' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['processes' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetProcess[]', 'count' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'processes' => null, - 'count' => 'int64' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['processes' => null, 'count' => 'int64']; /** * Array of property to type mappings. Used for (de)serialization * @@ -80,7 +67,6 @@ class GetProcesses implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -90,38 +76,25 @@ class GetProcesses implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'processes' => 'processes', - 'count' => 'count' - ]; - + protected static $attributeMap = ['processes' => 'processes', 'count' => 'count']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'processes' => 'setProcesses', - 'count' => 'setCount' - ]; - + protected static $setters = ['processes' => 'setProcesses', 'count' => 'setCount']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'processes' => 'getProcesses', - 'count' => 'getCount' - ]; - + protected static $getters = ['processes' => 'getProcesses', 'count' => 'getCount']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -132,7 +105,6 @@ class GetProcesses implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -142,7 +114,6 @@ class GetProcesses implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -152,7 +123,6 @@ class GetProcesses implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -162,18 +132,12 @@ class GetProcesses implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -185,7 +149,6 @@ class GetProcesses implements ModelInterface, ArrayAccess $this->container['processes'] = isset($data['processes']) ? $data['processes'] : null; $this->container['count'] = isset($data['count']) ? $data['count'] : null; } - /** * Show all the invalid properties with reasons. * @@ -194,13 +157,11 @@ class GetProcesses implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['count'] === null) { $invalidProperties[] = "'count' can't be null"; } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -209,10 +170,8 @@ class GetProcesses implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets processes * @@ -222,7 +181,6 @@ class GetProcesses implements ModelInterface, ArrayAccess { return $this->container['processes']; } - /** * Sets processes * @@ -233,10 +191,8 @@ class GetProcesses implements ModelInterface, ArrayAccess public function setProcesses($processes) { $this->container['processes'] = $processes; - return $this; } - /** * Gets count * @@ -246,7 +202,6 @@ class GetProcesses implements ModelInterface, ArrayAccess { return $this->container['count']; } - /** * Sets count * @@ -257,7 +212,6 @@ class GetProcesses implements ModelInterface, ArrayAccess public function setCount($count) { $this->container['count'] = $count; - return $this; } /** @@ -271,7 +225,6 @@ class GetProcesses implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -283,7 +236,6 @@ class GetProcesses implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -294,13 +246,12 @@ class GetProcesses implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -312,7 +263,6 @@ class GetProcesses implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -320,15 +270,10 @@ class GetProcesses implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetReports.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetReports.php similarity index 81% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetReports.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetReports.php index 5b8daa5..ce2c591 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetReports.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetReports.php @@ -1,4 +1,5 @@ '\SendinBlue\Client\Model\GetReportsReports[]' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['reports' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetReportsReports[]']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'reports' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['reports' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -78,7 +67,6 @@ class GetReports implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -88,35 +76,25 @@ class GetReports implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'reports' => 'reports' - ]; - + protected static $attributeMap = ['reports' => 'reports']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'reports' => 'setReports' - ]; - + protected static $setters = ['reports' => 'setReports']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'reports' => 'getReports' - ]; - + protected static $getters = ['reports' => 'getReports']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -127,7 +105,6 @@ class GetReports implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -137,7 +114,6 @@ class GetReports implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -147,7 +123,6 @@ class GetReports implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -157,18 +132,12 @@ class GetReports implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -179,7 +148,6 @@ class GetReports implements ModelInterface, ArrayAccess { $this->container['reports'] = isset($data['reports']) ? $data['reports'] : null; } - /** * Show all the invalid properties with reasons. * @@ -188,10 +156,8 @@ class GetReports implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -200,10 +166,8 @@ class GetReports implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets reports * @@ -213,7 +177,6 @@ class GetReports implements ModelInterface, ArrayAccess { return $this->container['reports']; } - /** * Sets reports * @@ -224,7 +187,6 @@ class GetReports implements ModelInterface, ArrayAccess public function setReports($reports) { $this->container['reports'] = $reports; - return $this; } /** @@ -238,7 +200,6 @@ class GetReports implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -250,7 +211,6 @@ class GetReports implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -261,13 +221,12 @@ class GetReports implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -279,7 +238,6 @@ class GetReports implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -287,15 +245,10 @@ class GetReports implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetReportsReports.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetReportsReports.php similarity index 80% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetReportsReports.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetReportsReports.php index a7a2f94..6bcc338 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetReportsReports.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetReportsReports.php @@ -1,4 +1,5 @@ '\DateTime', - 'requests' => 'int', - 'delivered' => 'int', - 'hardBounces' => 'int', - 'softBounces' => 'int', - 'clicks' => 'int', - 'uniqueClicks' => 'int', - 'opens' => 'int', - 'uniqueOpens' => 'int', - 'spamReports' => 'int', - 'blocked' => 'int', - 'invalid' => 'int', - 'unsubscribed' => 'int' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['date' => '\\DateTime', 'requests' => 'int', 'delivered' => 'int', 'hardBounces' => 'int', 'softBounces' => 'int', 'clicks' => 'int', 'uniqueClicks' => 'int', 'opens' => 'int', 'uniqueOpens' => 'int', 'spamReports' => 'int', 'blocked' => 'int', 'invalid' => 'int', 'unsubscribed' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'date' => 'date', - 'requests' => 'int64', - 'delivered' => 'int64', - 'hardBounces' => 'int64', - 'softBounces' => 'int64', - 'clicks' => 'int64', - 'uniqueClicks' => 'int64', - 'opens' => 'int64', - 'uniqueOpens' => 'int64', - 'spamReports' => 'int64', - 'blocked' => 'int64', - 'invalid' => 'int64', - 'unsubscribed' => 'int64' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['date' => 'date', 'requests' => 'int64', 'delivered' => 'int64', 'hardBounces' => 'int64', 'softBounces' => 'int64', 'clicks' => 'int64', 'uniqueClicks' => 'int64', 'opens' => 'int64', 'uniqueOpens' => 'int64', 'spamReports' => 'int64', 'blocked' => 'int64', 'invalid' => 'int64', 'unsubscribed' => 'int64']; /** * Array of property to type mappings. Used for (de)serialization * @@ -102,7 +67,6 @@ class GetReportsReports implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -112,71 +76,25 @@ class GetReportsReports implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'date' => 'date', - 'requests' => 'requests', - 'delivered' => 'delivered', - 'hardBounces' => 'hardBounces', - 'softBounces' => 'softBounces', - 'clicks' => 'clicks', - 'uniqueClicks' => 'uniqueClicks', - 'opens' => 'opens', - 'uniqueOpens' => 'uniqueOpens', - 'spamReports' => 'spamReports', - 'blocked' => 'blocked', - 'invalid' => 'invalid', - 'unsubscribed' => 'unsubscribed' - ]; - + protected static $attributeMap = ['date' => 'date', 'requests' => 'requests', 'delivered' => 'delivered', 'hardBounces' => 'hardBounces', 'softBounces' => 'softBounces', 'clicks' => 'clicks', 'uniqueClicks' => 'uniqueClicks', 'opens' => 'opens', 'uniqueOpens' => 'uniqueOpens', 'spamReports' => 'spamReports', 'blocked' => 'blocked', 'invalid' => 'invalid', 'unsubscribed' => 'unsubscribed']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'date' => 'setDate', - 'requests' => 'setRequests', - 'delivered' => 'setDelivered', - 'hardBounces' => 'setHardBounces', - 'softBounces' => 'setSoftBounces', - 'clicks' => 'setClicks', - 'uniqueClicks' => 'setUniqueClicks', - 'opens' => 'setOpens', - 'uniqueOpens' => 'setUniqueOpens', - 'spamReports' => 'setSpamReports', - 'blocked' => 'setBlocked', - 'invalid' => 'setInvalid', - 'unsubscribed' => 'setUnsubscribed' - ]; - + protected static $setters = ['date' => 'setDate', 'requests' => 'setRequests', 'delivered' => 'setDelivered', 'hardBounces' => 'setHardBounces', 'softBounces' => 'setSoftBounces', 'clicks' => 'setClicks', 'uniqueClicks' => 'setUniqueClicks', 'opens' => 'setOpens', 'uniqueOpens' => 'setUniqueOpens', 'spamReports' => 'setSpamReports', 'blocked' => 'setBlocked', 'invalid' => 'setInvalid', 'unsubscribed' => 'setUnsubscribed']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'date' => 'getDate', - 'requests' => 'getRequests', - 'delivered' => 'getDelivered', - 'hardBounces' => 'getHardBounces', - 'softBounces' => 'getSoftBounces', - 'clicks' => 'getClicks', - 'uniqueClicks' => 'getUniqueClicks', - 'opens' => 'getOpens', - 'uniqueOpens' => 'getUniqueOpens', - 'spamReports' => 'getSpamReports', - 'blocked' => 'getBlocked', - 'invalid' => 'getInvalid', - 'unsubscribed' => 'getUnsubscribed' - ]; - + protected static $getters = ['date' => 'getDate', 'requests' => 'getRequests', 'delivered' => 'getDelivered', 'hardBounces' => 'getHardBounces', 'softBounces' => 'getSoftBounces', 'clicks' => 'getClicks', 'uniqueClicks' => 'getUniqueClicks', 'opens' => 'getOpens', 'uniqueOpens' => 'getUniqueOpens', 'spamReports' => 'getSpamReports', 'blocked' => 'getBlocked', 'invalid' => 'getInvalid', 'unsubscribed' => 'getUnsubscribed']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -187,7 +105,6 @@ class GetReportsReports implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -197,7 +114,6 @@ class GetReportsReports implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -207,7 +123,6 @@ class GetReportsReports implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -217,18 +132,12 @@ class GetReportsReports implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -251,7 +160,6 @@ class GetReportsReports implements ModelInterface, ArrayAccess $this->container['invalid'] = isset($data['invalid']) ? $data['invalid'] : null; $this->container['unsubscribed'] = isset($data['unsubscribed']) ? $data['unsubscribed'] : null; } - /** * Show all the invalid properties with reasons. * @@ -260,7 +168,6 @@ class GetReportsReports implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['date'] === null) { $invalidProperties[] = "'date' can't be null"; } @@ -302,7 +209,6 @@ class GetReportsReports implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -311,10 +217,8 @@ class GetReportsReports implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets date * @@ -324,7 +228,6 @@ class GetReportsReports implements ModelInterface, ArrayAccess { return $this->container['date']; } - /** * Sets date * @@ -335,10 +238,8 @@ class GetReportsReports implements ModelInterface, ArrayAccess public function setDate($date) { $this->container['date'] = $date; - return $this; } - /** * Gets requests * @@ -348,7 +249,6 @@ class GetReportsReports implements ModelInterface, ArrayAccess { return $this->container['requests']; } - /** * Sets requests * @@ -359,10 +259,8 @@ class GetReportsReports implements ModelInterface, ArrayAccess public function setRequests($requests) { $this->container['requests'] = $requests; - return $this; } - /** * Gets delivered * @@ -372,7 +270,6 @@ class GetReportsReports implements ModelInterface, ArrayAccess { return $this->container['delivered']; } - /** * Sets delivered * @@ -383,10 +280,8 @@ class GetReportsReports implements ModelInterface, ArrayAccess public function setDelivered($delivered) { $this->container['delivered'] = $delivered; - return $this; } - /** * Gets hardBounces * @@ -396,7 +291,6 @@ class GetReportsReports implements ModelInterface, ArrayAccess { return $this->container['hardBounces']; } - /** * Sets hardBounces * @@ -407,10 +301,8 @@ class GetReportsReports implements ModelInterface, ArrayAccess public function setHardBounces($hardBounces) { $this->container['hardBounces'] = $hardBounces; - return $this; } - /** * Gets softBounces * @@ -420,7 +312,6 @@ class GetReportsReports implements ModelInterface, ArrayAccess { return $this->container['softBounces']; } - /** * Sets softBounces * @@ -431,10 +322,8 @@ class GetReportsReports implements ModelInterface, ArrayAccess public function setSoftBounces($softBounces) { $this->container['softBounces'] = $softBounces; - return $this; } - /** * Gets clicks * @@ -444,7 +333,6 @@ class GetReportsReports implements ModelInterface, ArrayAccess { return $this->container['clicks']; } - /** * Sets clicks * @@ -455,10 +343,8 @@ class GetReportsReports implements ModelInterface, ArrayAccess public function setClicks($clicks) { $this->container['clicks'] = $clicks; - return $this; } - /** * Gets uniqueClicks * @@ -468,7 +354,6 @@ class GetReportsReports implements ModelInterface, ArrayAccess { return $this->container['uniqueClicks']; } - /** * Sets uniqueClicks * @@ -479,10 +364,8 @@ class GetReportsReports implements ModelInterface, ArrayAccess public function setUniqueClicks($uniqueClicks) { $this->container['uniqueClicks'] = $uniqueClicks; - return $this; } - /** * Gets opens * @@ -492,7 +375,6 @@ class GetReportsReports implements ModelInterface, ArrayAccess { return $this->container['opens']; } - /** * Sets opens * @@ -503,10 +385,8 @@ class GetReportsReports implements ModelInterface, ArrayAccess public function setOpens($opens) { $this->container['opens'] = $opens; - return $this; } - /** * Gets uniqueOpens * @@ -516,7 +396,6 @@ class GetReportsReports implements ModelInterface, ArrayAccess { return $this->container['uniqueOpens']; } - /** * Sets uniqueOpens * @@ -527,10 +406,8 @@ class GetReportsReports implements ModelInterface, ArrayAccess public function setUniqueOpens($uniqueOpens) { $this->container['uniqueOpens'] = $uniqueOpens; - return $this; } - /** * Gets spamReports * @@ -540,7 +417,6 @@ class GetReportsReports implements ModelInterface, ArrayAccess { return $this->container['spamReports']; } - /** * Sets spamReports * @@ -551,10 +427,8 @@ class GetReportsReports implements ModelInterface, ArrayAccess public function setSpamReports($spamReports) { $this->container['spamReports'] = $spamReports; - return $this; } - /** * Gets blocked * @@ -564,7 +438,6 @@ class GetReportsReports implements ModelInterface, ArrayAccess { return $this->container['blocked']; } - /** * Sets blocked * @@ -575,10 +448,8 @@ class GetReportsReports implements ModelInterface, ArrayAccess public function setBlocked($blocked) { $this->container['blocked'] = $blocked; - return $this; } - /** * Gets invalid * @@ -588,7 +459,6 @@ class GetReportsReports implements ModelInterface, ArrayAccess { return $this->container['invalid']; } - /** * Sets invalid * @@ -599,10 +469,8 @@ class GetReportsReports implements ModelInterface, ArrayAccess public function setInvalid($invalid) { $this->container['invalid'] = $invalid; - return $this; } - /** * Gets unsubscribed * @@ -612,7 +480,6 @@ class GetReportsReports implements ModelInterface, ArrayAccess { return $this->container['unsubscribed']; } - /** * Sets unsubscribed * @@ -623,7 +490,6 @@ class GetReportsReports implements ModelInterface, ArrayAccess public function setUnsubscribed($unsubscribed) { $this->container['unsubscribed'] = $unsubscribed; - return $this; } /** @@ -637,7 +503,6 @@ class GetReportsReports implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -649,7 +514,6 @@ class GetReportsReports implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -660,13 +524,12 @@ class GetReportsReports implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -678,7 +541,6 @@ class GetReportsReports implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -686,15 +548,10 @@ class GetReportsReports implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSendersList.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSendersList.php similarity index 81% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSendersList.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSendersList.php index f5fb8e3..ea33eda 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSendersList.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSendersList.php @@ -1,4 +1,5 @@ '\SendinBlue\Client\Model\GetSendersListSenders[]' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['senders' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSendersListSenders[]']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'senders' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['senders' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -78,7 +67,6 @@ class GetSendersList implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -88,35 +76,25 @@ class GetSendersList implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'senders' => 'senders' - ]; - + protected static $attributeMap = ['senders' => 'senders']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'senders' => 'setSenders' - ]; - + protected static $setters = ['senders' => 'setSenders']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'senders' => 'getSenders' - ]; - + protected static $getters = ['senders' => 'getSenders']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -127,7 +105,6 @@ class GetSendersList implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -137,7 +114,6 @@ class GetSendersList implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -147,7 +123,6 @@ class GetSendersList implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -157,18 +132,12 @@ class GetSendersList implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -179,7 +148,6 @@ class GetSendersList implements ModelInterface, ArrayAccess { $this->container['senders'] = isset($data['senders']) ? $data['senders'] : null; } - /** * Show all the invalid properties with reasons. * @@ -188,10 +156,8 @@ class GetSendersList implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -200,10 +166,8 @@ class GetSendersList implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets senders * @@ -213,7 +177,6 @@ class GetSendersList implements ModelInterface, ArrayAccess { return $this->container['senders']; } - /** * Sets senders * @@ -224,7 +187,6 @@ class GetSendersList implements ModelInterface, ArrayAccess public function setSenders($senders) { $this->container['senders'] = $senders; - return $this; } /** @@ -238,7 +200,6 @@ class GetSendersList implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -250,7 +211,6 @@ class GetSendersList implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -261,13 +221,12 @@ class GetSendersList implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -279,7 +238,6 @@ class GetSendersList implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -287,15 +245,10 @@ class GetSendersList implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSendersListIps.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSendersListIps.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSendersListIps.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSendersListIps.php index 60a9031..7316f51 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSendersListIps.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSendersListIps.php @@ -1,4 +1,5 @@ 'string', - 'domain' => 'string', - 'weight' => 'int' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['ip' => 'string', 'domain' => 'string', 'weight' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'ip' => null, - 'domain' => null, - 'weight' => 'int64' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['ip' => null, 'domain' => null, 'weight' => 'int64']; /** * Array of property to type mappings. Used for (de)serialization * @@ -82,7 +67,6 @@ class GetSendersListIps implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -92,41 +76,25 @@ class GetSendersListIps implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'ip' => 'ip', - 'domain' => 'domain', - 'weight' => 'weight' - ]; - + protected static $attributeMap = ['ip' => 'ip', 'domain' => 'domain', 'weight' => 'weight']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'ip' => 'setIp', - 'domain' => 'setDomain', - 'weight' => 'setWeight' - ]; - + protected static $setters = ['ip' => 'setIp', 'domain' => 'setDomain', 'weight' => 'setWeight']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'ip' => 'getIp', - 'domain' => 'getDomain', - 'weight' => 'getWeight' - ]; - + protected static $getters = ['ip' => 'getIp', 'domain' => 'getDomain', 'weight' => 'getWeight']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -137,7 +105,6 @@ class GetSendersListIps implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -147,7 +114,6 @@ class GetSendersListIps implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -157,7 +123,6 @@ class GetSendersListIps implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -167,18 +132,12 @@ class GetSendersListIps implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -191,7 +150,6 @@ class GetSendersListIps implements ModelInterface, ArrayAccess $this->container['domain'] = isset($data['domain']) ? $data['domain'] : null; $this->container['weight'] = isset($data['weight']) ? $data['weight'] : null; } - /** * Show all the invalid properties with reasons. * @@ -200,7 +158,6 @@ class GetSendersListIps implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['ip'] === null) { $invalidProperties[] = "'ip' can't be null"; } @@ -212,7 +169,6 @@ class GetSendersListIps implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -221,10 +177,8 @@ class GetSendersListIps implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets ip * @@ -234,7 +188,6 @@ class GetSendersListIps implements ModelInterface, ArrayAccess { return $this->container['ip']; } - /** * Sets ip * @@ -245,10 +198,8 @@ class GetSendersListIps implements ModelInterface, ArrayAccess public function setIp($ip) { $this->container['ip'] = $ip; - return $this; } - /** * Gets domain * @@ -258,7 +209,6 @@ class GetSendersListIps implements ModelInterface, ArrayAccess { return $this->container['domain']; } - /** * Sets domain * @@ -269,10 +219,8 @@ class GetSendersListIps implements ModelInterface, ArrayAccess public function setDomain($domain) { $this->container['domain'] = $domain; - return $this; } - /** * Gets weight * @@ -282,7 +230,6 @@ class GetSendersListIps implements ModelInterface, ArrayAccess { return $this->container['weight']; } - /** * Sets weight * @@ -293,7 +240,6 @@ class GetSendersListIps implements ModelInterface, ArrayAccess public function setWeight($weight) { $this->container['weight'] = $weight; - return $this; } /** @@ -307,7 +253,6 @@ class GetSendersListIps implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -319,7 +264,6 @@ class GetSendersListIps implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -330,13 +274,12 @@ class GetSendersListIps implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -348,7 +291,6 @@ class GetSendersListIps implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -356,15 +298,10 @@ class GetSendersListIps implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSendersListSenders.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSendersListSenders.php similarity index 81% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSendersListSenders.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSendersListSenders.php index b6d8b86..5a645fe 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSendersListSenders.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSendersListSenders.php @@ -1,4 +1,5 @@ 'int', - 'name' => 'string', - 'email' => 'string', - 'active' => 'bool', - 'ips' => '\SendinBlue\Client\Model\GetSendersListIps[]' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['id' => 'int', 'name' => 'string', 'email' => 'string', 'active' => 'bool', 'ips' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSendersListIps[]']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'id' => 'int64', - 'name' => null, - 'email' => null, - 'active' => null, - 'ips' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['id' => 'int64', 'name' => null, 'email' => null, 'active' => null, 'ips' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -86,7 +67,6 @@ class GetSendersListSenders implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -96,47 +76,25 @@ class GetSendersListSenders implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'id' => 'id', - 'name' => 'name', - 'email' => 'email', - 'active' => 'active', - 'ips' => 'ips' - ]; - + protected static $attributeMap = ['id' => 'id', 'name' => 'name', 'email' => 'email', 'active' => 'active', 'ips' => 'ips']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'id' => 'setId', - 'name' => 'setName', - 'email' => 'setEmail', - 'active' => 'setActive', - 'ips' => 'setIps' - ]; - + protected static $setters = ['id' => 'setId', 'name' => 'setName', 'email' => 'setEmail', 'active' => 'setActive', 'ips' => 'setIps']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'id' => 'getId', - 'name' => 'getName', - 'email' => 'getEmail', - 'active' => 'getActive', - 'ips' => 'getIps' - ]; - + protected static $getters = ['id' => 'getId', 'name' => 'getName', 'email' => 'getEmail', 'active' => 'getActive', 'ips' => 'getIps']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -147,7 +105,6 @@ class GetSendersListSenders implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -157,7 +114,6 @@ class GetSendersListSenders implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -167,7 +123,6 @@ class GetSendersListSenders implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -177,18 +132,12 @@ class GetSendersListSenders implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -203,7 +152,6 @@ class GetSendersListSenders implements ModelInterface, ArrayAccess $this->container['active'] = isset($data['active']) ? $data['active'] : null; $this->container['ips'] = isset($data['ips']) ? $data['ips'] : null; } - /** * Show all the invalid properties with reasons. * @@ -212,7 +160,6 @@ class GetSendersListSenders implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['id'] === null) { $invalidProperties[] = "'id' can't be null"; } @@ -227,7 +174,6 @@ class GetSendersListSenders implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -236,10 +182,8 @@ class GetSendersListSenders implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets id * @@ -249,7 +193,6 @@ class GetSendersListSenders implements ModelInterface, ArrayAccess { return $this->container['id']; } - /** * Sets id * @@ -260,10 +203,8 @@ class GetSendersListSenders implements ModelInterface, ArrayAccess public function setId($id) { $this->container['id'] = $id; - return $this; } - /** * Gets name * @@ -273,7 +214,6 @@ class GetSendersListSenders implements ModelInterface, ArrayAccess { return $this->container['name']; } - /** * Sets name * @@ -284,10 +224,8 @@ class GetSendersListSenders implements ModelInterface, ArrayAccess public function setName($name) { $this->container['name'] = $name; - return $this; } - /** * Gets email * @@ -297,7 +235,6 @@ class GetSendersListSenders implements ModelInterface, ArrayAccess { return $this->container['email']; } - /** * Sets email * @@ -308,10 +245,8 @@ class GetSendersListSenders implements ModelInterface, ArrayAccess public function setEmail($email) { $this->container['email'] = $email; - return $this; } - /** * Gets active * @@ -321,7 +256,6 @@ class GetSendersListSenders implements ModelInterface, ArrayAccess { return $this->container['active']; } - /** * Sets active * @@ -332,10 +266,8 @@ class GetSendersListSenders implements ModelInterface, ArrayAccess public function setActive($active) { $this->container['active'] = $active; - return $this; } - /** * Gets ips * @@ -345,7 +277,6 @@ class GetSendersListSenders implements ModelInterface, ArrayAccess { return $this->container['ips']; } - /** * Sets ips * @@ -356,7 +287,6 @@ class GetSendersListSenders implements ModelInterface, ArrayAccess public function setIps($ips) { $this->container['ips'] = $ips; - return $this; } /** @@ -370,7 +300,6 @@ class GetSendersListSenders implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -382,7 +311,6 @@ class GetSendersListSenders implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -393,13 +321,12 @@ class GetSendersListSenders implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -411,7 +338,6 @@ class GetSendersListSenders implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -419,15 +345,10 @@ class GetSendersListSenders implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSharedTemplateUrl.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSharedTemplateUrl.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSharedTemplateUrl.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSharedTemplateUrl.php index 5ac586e..9884b39 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSharedTemplateUrl.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSharedTemplateUrl.php @@ -1,4 +1,5 @@ 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['sharedUrl' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'sharedUrl' => 'url' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['sharedUrl' => 'url']; /** * Array of property to type mappings. Used for (de)serialization * @@ -78,7 +67,6 @@ class GetSharedTemplateUrl implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -88,35 +76,25 @@ class GetSharedTemplateUrl implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'sharedUrl' => 'sharedUrl' - ]; - + protected static $attributeMap = ['sharedUrl' => 'sharedUrl']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'sharedUrl' => 'setSharedUrl' - ]; - + protected static $setters = ['sharedUrl' => 'setSharedUrl']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'sharedUrl' => 'getSharedUrl' - ]; - + protected static $getters = ['sharedUrl' => 'getSharedUrl']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -127,7 +105,6 @@ class GetSharedTemplateUrl implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -137,7 +114,6 @@ class GetSharedTemplateUrl implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -147,7 +123,6 @@ class GetSharedTemplateUrl implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -157,18 +132,12 @@ class GetSharedTemplateUrl implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -179,7 +148,6 @@ class GetSharedTemplateUrl implements ModelInterface, ArrayAccess { $this->container['sharedUrl'] = isset($data['sharedUrl']) ? $data['sharedUrl'] : null; } - /** * Show all the invalid properties with reasons. * @@ -188,13 +156,11 @@ class GetSharedTemplateUrl implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['sharedUrl'] === null) { $invalidProperties[] = "'sharedUrl' can't be null"; } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -203,10 +169,8 @@ class GetSharedTemplateUrl implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets sharedUrl * @@ -216,7 +180,6 @@ class GetSharedTemplateUrl implements ModelInterface, ArrayAccess { return $this->container['sharedUrl']; } - /** * Sets sharedUrl * @@ -227,7 +190,6 @@ class GetSharedTemplateUrl implements ModelInterface, ArrayAccess public function setSharedUrl($sharedUrl) { $this->container['sharedUrl'] = $sharedUrl; - return $this; } /** @@ -241,7 +203,6 @@ class GetSharedTemplateUrl implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -253,7 +214,6 @@ class GetSharedTemplateUrl implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -264,13 +224,12 @@ class GetSharedTemplateUrl implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -282,7 +241,6 @@ class GetSharedTemplateUrl implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -290,15 +248,10 @@ class GetSharedTemplateUrl implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaign.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaign.php similarity index 77% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaign.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaign.php index 3f19d1a..f040295 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaign.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaign.php @@ -1,4 +1,5 @@ 'int', - 'name' => 'string', - 'status' => 'string', - 'content' => 'string', - 'scheduledAt' => '\DateTime', - 'sender' => 'string', - 'createdAt' => '\DateTime', - 'modifiedAt' => '\DateTime', - 'recipients' => 'object', - 'statistics' => 'object' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['id' => 'int', 'name' => 'string', 'status' => 'string', 'content' => 'string', 'scheduledAt' => '\\DateTime', 'sender' => 'string', 'createdAt' => '\\DateTime', 'modifiedAt' => '\\DateTime', 'recipients' => 'object', 'statistics' => 'object']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'id' => 'int64', - 'name' => null, - 'status' => null, - 'content' => null, - 'scheduledAt' => 'date-time', - 'sender' => null, - 'createdAt' => 'date-time', - 'modifiedAt' => 'date-time', - 'recipients' => null, - 'statistics' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['id' => 'int64', 'name' => null, 'status' => null, 'content' => null, 'scheduledAt' => 'date-time', 'sender' => null, 'createdAt' => 'date-time', 'modifiedAt' => 'date-time', 'recipients' => null, 'statistics' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -96,7 +67,6 @@ class GetSmsCampaign implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -106,62 +76,25 @@ class GetSmsCampaign implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'id' => 'id', - 'name' => 'name', - 'status' => 'status', - 'content' => 'content', - 'scheduledAt' => 'scheduledAt', - 'sender' => 'sender', - 'createdAt' => 'createdAt', - 'modifiedAt' => 'modifiedAt', - 'recipients' => 'recipients', - 'statistics' => 'statistics' - ]; - + protected static $attributeMap = ['id' => 'id', 'name' => 'name', 'status' => 'status', 'content' => 'content', 'scheduledAt' => 'scheduledAt', 'sender' => 'sender', 'createdAt' => 'createdAt', 'modifiedAt' => 'modifiedAt', 'recipients' => 'recipients', 'statistics' => 'statistics']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'id' => 'setId', - 'name' => 'setName', - 'status' => 'setStatus', - 'content' => 'setContent', - 'scheduledAt' => 'setScheduledAt', - 'sender' => 'setSender', - 'createdAt' => 'setCreatedAt', - 'modifiedAt' => 'setModifiedAt', - 'recipients' => 'setRecipients', - 'statistics' => 'setStatistics' - ]; - + protected static $setters = ['id' => 'setId', 'name' => 'setName', 'status' => 'setStatus', 'content' => 'setContent', 'scheduledAt' => 'setScheduledAt', 'sender' => 'setSender', 'createdAt' => 'setCreatedAt', 'modifiedAt' => 'setModifiedAt', 'recipients' => 'setRecipients', 'statistics' => 'setStatistics']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'id' => 'getId', - 'name' => 'getName', - 'status' => 'getStatus', - 'content' => 'getContent', - 'scheduledAt' => 'getScheduledAt', - 'sender' => 'getSender', - 'createdAt' => 'getCreatedAt', - 'modifiedAt' => 'getModifiedAt', - 'recipients' => 'getRecipients', - 'statistics' => 'getStatistics' - ]; - + protected static $getters = ['id' => 'getId', 'name' => 'getName', 'status' => 'getStatus', 'content' => 'getContent', 'scheduledAt' => 'getScheduledAt', 'sender' => 'getSender', 'createdAt' => 'getCreatedAt', 'modifiedAt' => 'getModifiedAt', 'recipients' => 'getRecipients', 'statistics' => 'getStatistics']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -172,7 +105,6 @@ class GetSmsCampaign implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -182,7 +114,6 @@ class GetSmsCampaign implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -192,7 +123,6 @@ class GetSmsCampaign implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -202,16 +132,12 @@ class GetSmsCampaign implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - const STATUS_DRAFT = 'draft'; const STATUS_SENT = 'sent'; const STATUS_ARCHIVE = 'archive'; const STATUS_QUEUED = 'queued'; const STATUS_SUSPENDED = 'suspended'; const STATUS_IN_PROCESS = 'inProcess'; - - - /** * Gets allowable values of the enum * @@ -219,24 +145,14 @@ class GetSmsCampaign implements ModelInterface, ArrayAccess */ public function getStatusAllowableValues() { - return [ - self::STATUS_DRAFT, - self::STATUS_SENT, - self::STATUS_ARCHIVE, - self::STATUS_QUEUED, - self::STATUS_SUSPENDED, - self::STATUS_IN_PROCESS, - ]; + return [self::STATUS_DRAFT, self::STATUS_SENT, self::STATUS_ARCHIVE, self::STATUS_QUEUED, self::STATUS_SUSPENDED, self::STATUS_IN_PROCESS]; } - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -256,7 +172,6 @@ class GetSmsCampaign implements ModelInterface, ArrayAccess $this->container['recipients'] = isset($data['recipients']) ? $data['recipients'] : null; $this->container['statistics'] = isset($data['statistics']) ? $data['statistics'] : null; } - /** * Show all the invalid properties with reasons. * @@ -265,7 +180,6 @@ class GetSmsCampaign implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['id'] === null) { $invalidProperties[] = "'id' can't be null"; } @@ -276,13 +190,9 @@ class GetSmsCampaign implements ModelInterface, ArrayAccess $invalidProperties[] = "'status' can't be null"; } $allowedValues = $this->getStatusAllowableValues(); - if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value for 'status', must be one of '%s'", - implode("', '", $allowedValues) - ); + if (!\is_null($this->container['status']) && !\in_array($this->container['status'], $allowedValues, \true)) { + $invalidProperties[] = \sprintf("invalid value for 'status', must be one of '%s'", \implode("', '", $allowedValues)); } - if ($this->container['content'] === null) { $invalidProperties[] = "'content' can't be null"; } @@ -306,7 +216,6 @@ class GetSmsCampaign implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -315,10 +224,8 @@ class GetSmsCampaign implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets id * @@ -328,7 +235,6 @@ class GetSmsCampaign implements ModelInterface, ArrayAccess { return $this->container['id']; } - /** * Sets id * @@ -339,10 +245,8 @@ class GetSmsCampaign implements ModelInterface, ArrayAccess public function setId($id) { $this->container['id'] = $id; - return $this; } - /** * Gets name * @@ -352,7 +256,6 @@ class GetSmsCampaign implements ModelInterface, ArrayAccess { return $this->container['name']; } - /** * Sets name * @@ -363,10 +266,8 @@ class GetSmsCampaign implements ModelInterface, ArrayAccess public function setName($name) { $this->container['name'] = $name; - return $this; } - /** * Gets status * @@ -376,7 +277,6 @@ class GetSmsCampaign implements ModelInterface, ArrayAccess { return $this->container['status']; } - /** * Sets status * @@ -387,19 +287,12 @@ class GetSmsCampaign implements ModelInterface, ArrayAccess public function setStatus($status) { $allowedValues = $this->getStatusAllowableValues(); - if (!in_array($status, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'status', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); + if (!\in_array($status, $allowedValues, \true)) { + throw new \InvalidArgumentException(\sprintf("Invalid value for 'status', must be one of '%s'", \implode("', '", $allowedValues))); } $this->container['status'] = $status; - return $this; } - /** * Gets content * @@ -409,7 +302,6 @@ class GetSmsCampaign implements ModelInterface, ArrayAccess { return $this->container['content']; } - /** * Sets content * @@ -420,10 +312,8 @@ class GetSmsCampaign implements ModelInterface, ArrayAccess public function setContent($content) { $this->container['content'] = $content; - return $this; } - /** * Gets scheduledAt * @@ -433,7 +323,6 @@ class GetSmsCampaign implements ModelInterface, ArrayAccess { return $this->container['scheduledAt']; } - /** * Sets scheduledAt * @@ -444,10 +333,8 @@ class GetSmsCampaign implements ModelInterface, ArrayAccess public function setScheduledAt($scheduledAt) { $this->container['scheduledAt'] = $scheduledAt; - return $this; } - /** * Gets sender * @@ -457,7 +344,6 @@ class GetSmsCampaign implements ModelInterface, ArrayAccess { return $this->container['sender']; } - /** * Sets sender * @@ -468,10 +354,8 @@ class GetSmsCampaign implements ModelInterface, ArrayAccess public function setSender($sender) { $this->container['sender'] = $sender; - return $this; } - /** * Gets createdAt * @@ -481,7 +365,6 @@ class GetSmsCampaign implements ModelInterface, ArrayAccess { return $this->container['createdAt']; } - /** * Sets createdAt * @@ -492,10 +375,8 @@ class GetSmsCampaign implements ModelInterface, ArrayAccess public function setCreatedAt($createdAt) { $this->container['createdAt'] = $createdAt; - return $this; } - /** * Gets modifiedAt * @@ -505,7 +386,6 @@ class GetSmsCampaign implements ModelInterface, ArrayAccess { return $this->container['modifiedAt']; } - /** * Sets modifiedAt * @@ -516,10 +396,8 @@ class GetSmsCampaign implements ModelInterface, ArrayAccess public function setModifiedAt($modifiedAt) { $this->container['modifiedAt'] = $modifiedAt; - return $this; } - /** * Gets recipients * @@ -529,7 +407,6 @@ class GetSmsCampaign implements ModelInterface, ArrayAccess { return $this->container['recipients']; } - /** * Sets recipients * @@ -540,10 +417,8 @@ class GetSmsCampaign implements ModelInterface, ArrayAccess public function setRecipients($recipients) { $this->container['recipients'] = $recipients; - return $this; } - /** * Gets statistics * @@ -553,7 +428,6 @@ class GetSmsCampaign implements ModelInterface, ArrayAccess { return $this->container['statistics']; } - /** * Sets statistics * @@ -564,7 +438,6 @@ class GetSmsCampaign implements ModelInterface, ArrayAccess public function setStatistics($statistics) { $this->container['statistics'] = $statistics; - return $this; } /** @@ -578,7 +451,6 @@ class GetSmsCampaign implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -590,7 +462,6 @@ class GetSmsCampaign implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -601,13 +472,12 @@ class GetSmsCampaign implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -619,7 +489,6 @@ class GetSmsCampaign implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -627,15 +496,10 @@ class GetSmsCampaign implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaignOverview.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaignOverview.php similarity index 77% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaignOverview.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaignOverview.php index 6976663..1f4ede0 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaignOverview.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaignOverview.php @@ -1,4 +1,5 @@ 'int', - 'name' => 'string', - 'status' => 'string', - 'content' => 'string', - 'scheduledAt' => '\DateTime', - 'sender' => 'string', - 'createdAt' => '\DateTime', - 'modifiedAt' => '\DateTime' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['id' => 'int', 'name' => 'string', 'status' => 'string', 'content' => 'string', 'scheduledAt' => '\\DateTime', 'sender' => 'string', 'createdAt' => '\\DateTime', 'modifiedAt' => '\\DateTime']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'id' => 'int64', - 'name' => null, - 'status' => null, - 'content' => null, - 'scheduledAt' => 'date-time', - 'sender' => null, - 'createdAt' => 'date-time', - 'modifiedAt' => 'date-time' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['id' => 'int64', 'name' => null, 'status' => null, 'content' => null, 'scheduledAt' => 'date-time', 'sender' => null, 'createdAt' => 'date-time', 'modifiedAt' => 'date-time']; /** * Array of property to type mappings. Used for (de)serialization * @@ -92,7 +67,6 @@ class GetSmsCampaignOverview implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -102,56 +76,25 @@ class GetSmsCampaignOverview implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'id' => 'id', - 'name' => 'name', - 'status' => 'status', - 'content' => 'content', - 'scheduledAt' => 'scheduledAt', - 'sender' => 'sender', - 'createdAt' => 'createdAt', - 'modifiedAt' => 'modifiedAt' - ]; - + protected static $attributeMap = ['id' => 'id', 'name' => 'name', 'status' => 'status', 'content' => 'content', 'scheduledAt' => 'scheduledAt', 'sender' => 'sender', 'createdAt' => 'createdAt', 'modifiedAt' => 'modifiedAt']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'id' => 'setId', - 'name' => 'setName', - 'status' => 'setStatus', - 'content' => 'setContent', - 'scheduledAt' => 'setScheduledAt', - 'sender' => 'setSender', - 'createdAt' => 'setCreatedAt', - 'modifiedAt' => 'setModifiedAt' - ]; - + protected static $setters = ['id' => 'setId', 'name' => 'setName', 'status' => 'setStatus', 'content' => 'setContent', 'scheduledAt' => 'setScheduledAt', 'sender' => 'setSender', 'createdAt' => 'setCreatedAt', 'modifiedAt' => 'setModifiedAt']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'id' => 'getId', - 'name' => 'getName', - 'status' => 'getStatus', - 'content' => 'getContent', - 'scheduledAt' => 'getScheduledAt', - 'sender' => 'getSender', - 'createdAt' => 'getCreatedAt', - 'modifiedAt' => 'getModifiedAt' - ]; - + protected static $getters = ['id' => 'getId', 'name' => 'getName', 'status' => 'getStatus', 'content' => 'getContent', 'scheduledAt' => 'getScheduledAt', 'sender' => 'getSender', 'createdAt' => 'getCreatedAt', 'modifiedAt' => 'getModifiedAt']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -162,7 +105,6 @@ class GetSmsCampaignOverview implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -172,7 +114,6 @@ class GetSmsCampaignOverview implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -182,7 +123,6 @@ class GetSmsCampaignOverview implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -192,16 +132,12 @@ class GetSmsCampaignOverview implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - const STATUS_DRAFT = 'draft'; const STATUS_SENT = 'sent'; const STATUS_ARCHIVE = 'archive'; const STATUS_QUEUED = 'queued'; const STATUS_SUSPENDED = 'suspended'; const STATUS_IN_PROCESS = 'inProcess'; - - - /** * Gets allowable values of the enum * @@ -209,24 +145,14 @@ class GetSmsCampaignOverview implements ModelInterface, ArrayAccess */ public function getStatusAllowableValues() { - return [ - self::STATUS_DRAFT, - self::STATUS_SENT, - self::STATUS_ARCHIVE, - self::STATUS_QUEUED, - self::STATUS_SUSPENDED, - self::STATUS_IN_PROCESS, - ]; + return [self::STATUS_DRAFT, self::STATUS_SENT, self::STATUS_ARCHIVE, self::STATUS_QUEUED, self::STATUS_SUSPENDED, self::STATUS_IN_PROCESS]; } - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -244,7 +170,6 @@ class GetSmsCampaignOverview implements ModelInterface, ArrayAccess $this->container['createdAt'] = isset($data['createdAt']) ? $data['createdAt'] : null; $this->container['modifiedAt'] = isset($data['modifiedAt']) ? $data['modifiedAt'] : null; } - /** * Show all the invalid properties with reasons. * @@ -253,7 +178,6 @@ class GetSmsCampaignOverview implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['id'] === null) { $invalidProperties[] = "'id' can't be null"; } @@ -264,13 +188,9 @@ class GetSmsCampaignOverview implements ModelInterface, ArrayAccess $invalidProperties[] = "'status' can't be null"; } $allowedValues = $this->getStatusAllowableValues(); - if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value for 'status', must be one of '%s'", - implode("', '", $allowedValues) - ); + if (!\is_null($this->container['status']) && !\in_array($this->container['status'], $allowedValues, \true)) { + $invalidProperties[] = \sprintf("invalid value for 'status', must be one of '%s'", \implode("', '", $allowedValues)); } - if ($this->container['content'] === null) { $invalidProperties[] = "'content' can't be null"; } @@ -288,7 +208,6 @@ class GetSmsCampaignOverview implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -297,10 +216,8 @@ class GetSmsCampaignOverview implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets id * @@ -310,7 +227,6 @@ class GetSmsCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['id']; } - /** * Sets id * @@ -321,10 +237,8 @@ class GetSmsCampaignOverview implements ModelInterface, ArrayAccess public function setId($id) { $this->container['id'] = $id; - return $this; } - /** * Gets name * @@ -334,7 +248,6 @@ class GetSmsCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['name']; } - /** * Sets name * @@ -345,10 +258,8 @@ class GetSmsCampaignOverview implements ModelInterface, ArrayAccess public function setName($name) { $this->container['name'] = $name; - return $this; } - /** * Gets status * @@ -358,7 +269,6 @@ class GetSmsCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['status']; } - /** * Sets status * @@ -369,19 +279,12 @@ class GetSmsCampaignOverview implements ModelInterface, ArrayAccess public function setStatus($status) { $allowedValues = $this->getStatusAllowableValues(); - if (!in_array($status, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'status', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); + if (!\in_array($status, $allowedValues, \true)) { + throw new \InvalidArgumentException(\sprintf("Invalid value for 'status', must be one of '%s'", \implode("', '", $allowedValues))); } $this->container['status'] = $status; - return $this; } - /** * Gets content * @@ -391,7 +294,6 @@ class GetSmsCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['content']; } - /** * Sets content * @@ -402,10 +304,8 @@ class GetSmsCampaignOverview implements ModelInterface, ArrayAccess public function setContent($content) { $this->container['content'] = $content; - return $this; } - /** * Gets scheduledAt * @@ -415,7 +315,6 @@ class GetSmsCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['scheduledAt']; } - /** * Sets scheduledAt * @@ -426,10 +325,8 @@ class GetSmsCampaignOverview implements ModelInterface, ArrayAccess public function setScheduledAt($scheduledAt) { $this->container['scheduledAt'] = $scheduledAt; - return $this; } - /** * Gets sender * @@ -439,7 +336,6 @@ class GetSmsCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['sender']; } - /** * Sets sender * @@ -450,10 +346,8 @@ class GetSmsCampaignOverview implements ModelInterface, ArrayAccess public function setSender($sender) { $this->container['sender'] = $sender; - return $this; } - /** * Gets createdAt * @@ -463,7 +357,6 @@ class GetSmsCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['createdAt']; } - /** * Sets createdAt * @@ -474,10 +367,8 @@ class GetSmsCampaignOverview implements ModelInterface, ArrayAccess public function setCreatedAt($createdAt) { $this->container['createdAt'] = $createdAt; - return $this; } - /** * Gets modifiedAt * @@ -487,7 +378,6 @@ class GetSmsCampaignOverview implements ModelInterface, ArrayAccess { return $this->container['modifiedAt']; } - /** * Sets modifiedAt * @@ -498,7 +388,6 @@ class GetSmsCampaignOverview implements ModelInterface, ArrayAccess public function setModifiedAt($modifiedAt) { $this->container['modifiedAt'] = $modifiedAt; - return $this; } /** @@ -512,7 +401,6 @@ class GetSmsCampaignOverview implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -524,7 +412,6 @@ class GetSmsCampaignOverview implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -535,13 +422,12 @@ class GetSmsCampaignOverview implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -553,7 +439,6 @@ class GetSmsCampaignOverview implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -561,15 +446,10 @@ class GetSmsCampaignOverview implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaignStats.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaignStats.php similarity index 80% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaignStats.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaignStats.php index c9688f1..23585d7 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaignStats.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaignStats.php @@ -1,4 +1,5 @@ 'int', - 'sent' => 'int', - 'processing' => 'int', - 'softBounces' => 'int', - 'hardBounces' => 'int', - 'unsubscriptions' => 'int', - 'answered' => 'int' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['delivered' => 'int', 'sent' => 'int', 'processing' => 'int', 'softBounces' => 'int', 'hardBounces' => 'int', 'unsubscriptions' => 'int', 'answered' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'delivered' => 'int64', - 'sent' => 'int64', - 'processing' => 'int64', - 'softBounces' => 'int64', - 'hardBounces' => 'int64', - 'unsubscriptions' => 'int64', - 'answered' => 'int64' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['delivered' => 'int64', 'sent' => 'int64', 'processing' => 'int64', 'softBounces' => 'int64', 'hardBounces' => 'int64', 'unsubscriptions' => 'int64', 'answered' => 'int64']; /** * Array of property to type mappings. Used for (de)serialization * @@ -90,7 +67,6 @@ class GetSmsCampaignStats implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -100,53 +76,25 @@ class GetSmsCampaignStats implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'delivered' => 'delivered', - 'sent' => 'sent', - 'processing' => 'processing', - 'softBounces' => 'softBounces', - 'hardBounces' => 'hardBounces', - 'unsubscriptions' => 'unsubscriptions', - 'answered' => 'answered' - ]; - + protected static $attributeMap = ['delivered' => 'delivered', 'sent' => 'sent', 'processing' => 'processing', 'softBounces' => 'softBounces', 'hardBounces' => 'hardBounces', 'unsubscriptions' => 'unsubscriptions', 'answered' => 'answered']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'delivered' => 'setDelivered', - 'sent' => 'setSent', - 'processing' => 'setProcessing', - 'softBounces' => 'setSoftBounces', - 'hardBounces' => 'setHardBounces', - 'unsubscriptions' => 'setUnsubscriptions', - 'answered' => 'setAnswered' - ]; - + protected static $setters = ['delivered' => 'setDelivered', 'sent' => 'setSent', 'processing' => 'setProcessing', 'softBounces' => 'setSoftBounces', 'hardBounces' => 'setHardBounces', 'unsubscriptions' => 'setUnsubscriptions', 'answered' => 'setAnswered']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'delivered' => 'getDelivered', - 'sent' => 'getSent', - 'processing' => 'getProcessing', - 'softBounces' => 'getSoftBounces', - 'hardBounces' => 'getHardBounces', - 'unsubscriptions' => 'getUnsubscriptions', - 'answered' => 'getAnswered' - ]; - + protected static $getters = ['delivered' => 'getDelivered', 'sent' => 'getSent', 'processing' => 'getProcessing', 'softBounces' => 'getSoftBounces', 'hardBounces' => 'getHardBounces', 'unsubscriptions' => 'getUnsubscriptions', 'answered' => 'getAnswered']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -157,7 +105,6 @@ class GetSmsCampaignStats implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -167,7 +114,6 @@ class GetSmsCampaignStats implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -177,7 +123,6 @@ class GetSmsCampaignStats implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -187,18 +132,12 @@ class GetSmsCampaignStats implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -215,7 +154,6 @@ class GetSmsCampaignStats implements ModelInterface, ArrayAccess $this->container['unsubscriptions'] = isset($data['unsubscriptions']) ? $data['unsubscriptions'] : null; $this->container['answered'] = isset($data['answered']) ? $data['answered'] : null; } - /** * Show all the invalid properties with reasons. * @@ -224,7 +162,6 @@ class GetSmsCampaignStats implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['delivered'] === null) { $invalidProperties[] = "'delivered' can't be null"; } @@ -248,7 +185,6 @@ class GetSmsCampaignStats implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -257,10 +193,8 @@ class GetSmsCampaignStats implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets delivered * @@ -270,7 +204,6 @@ class GetSmsCampaignStats implements ModelInterface, ArrayAccess { return $this->container['delivered']; } - /** * Sets delivered * @@ -281,10 +214,8 @@ class GetSmsCampaignStats implements ModelInterface, ArrayAccess public function setDelivered($delivered) { $this->container['delivered'] = $delivered; - return $this; } - /** * Gets sent * @@ -294,7 +225,6 @@ class GetSmsCampaignStats implements ModelInterface, ArrayAccess { return $this->container['sent']; } - /** * Sets sent * @@ -305,10 +235,8 @@ class GetSmsCampaignStats implements ModelInterface, ArrayAccess public function setSent($sent) { $this->container['sent'] = $sent; - return $this; } - /** * Gets processing * @@ -318,7 +246,6 @@ class GetSmsCampaignStats implements ModelInterface, ArrayAccess { return $this->container['processing']; } - /** * Sets processing * @@ -329,10 +256,8 @@ class GetSmsCampaignStats implements ModelInterface, ArrayAccess public function setProcessing($processing) { $this->container['processing'] = $processing; - return $this; } - /** * Gets softBounces * @@ -342,7 +267,6 @@ class GetSmsCampaignStats implements ModelInterface, ArrayAccess { return $this->container['softBounces']; } - /** * Sets softBounces * @@ -353,10 +277,8 @@ class GetSmsCampaignStats implements ModelInterface, ArrayAccess public function setSoftBounces($softBounces) { $this->container['softBounces'] = $softBounces; - return $this; } - /** * Gets hardBounces * @@ -366,7 +288,6 @@ class GetSmsCampaignStats implements ModelInterface, ArrayAccess { return $this->container['hardBounces']; } - /** * Sets hardBounces * @@ -377,10 +298,8 @@ class GetSmsCampaignStats implements ModelInterface, ArrayAccess public function setHardBounces($hardBounces) { $this->container['hardBounces'] = $hardBounces; - return $this; } - /** * Gets unsubscriptions * @@ -390,7 +309,6 @@ class GetSmsCampaignStats implements ModelInterface, ArrayAccess { return $this->container['unsubscriptions']; } - /** * Sets unsubscriptions * @@ -401,10 +319,8 @@ class GetSmsCampaignStats implements ModelInterface, ArrayAccess public function setUnsubscriptions($unsubscriptions) { $this->container['unsubscriptions'] = $unsubscriptions; - return $this; } - /** * Gets answered * @@ -414,7 +330,6 @@ class GetSmsCampaignStats implements ModelInterface, ArrayAccess { return $this->container['answered']; } - /** * Sets answered * @@ -425,7 +340,6 @@ class GetSmsCampaignStats implements ModelInterface, ArrayAccess public function setAnswered($answered) { $this->container['answered'] = $answered; - return $this; } /** @@ -439,7 +353,6 @@ class GetSmsCampaignStats implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -451,7 +364,6 @@ class GetSmsCampaignStats implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -462,13 +374,12 @@ class GetSmsCampaignStats implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -480,7 +391,6 @@ class GetSmsCampaignStats implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -488,15 +398,10 @@ class GetSmsCampaignStats implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaigns.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaigns.php similarity index 81% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaigns.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaigns.php index b2c4ec1..16b1c63 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaigns.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmsCampaigns.php @@ -1,4 +1,5 @@ 'object[]', - 'count' => 'int' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['campaigns' => 'object[]', 'count' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'campaigns' => null, - 'count' => 'int64' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['campaigns' => null, 'count' => 'int64']; /** * Array of property to type mappings. Used for (de)serialization * @@ -80,7 +67,6 @@ class GetSmsCampaigns implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -90,38 +76,25 @@ class GetSmsCampaigns implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'campaigns' => 'campaigns', - 'count' => 'count' - ]; - + protected static $attributeMap = ['campaigns' => 'campaigns', 'count' => 'count']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'campaigns' => 'setCampaigns', - 'count' => 'setCount' - ]; - + protected static $setters = ['campaigns' => 'setCampaigns', 'count' => 'setCount']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'campaigns' => 'getCampaigns', - 'count' => 'getCount' - ]; - + protected static $getters = ['campaigns' => 'getCampaigns', 'count' => 'getCount']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -132,7 +105,6 @@ class GetSmsCampaigns implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -142,7 +114,6 @@ class GetSmsCampaigns implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -152,7 +123,6 @@ class GetSmsCampaigns implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -162,18 +132,12 @@ class GetSmsCampaigns implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -185,7 +149,6 @@ class GetSmsCampaigns implements ModelInterface, ArrayAccess $this->container['campaigns'] = isset($data['campaigns']) ? $data['campaigns'] : null; $this->container['count'] = isset($data['count']) ? $data['count'] : null; } - /** * Show all the invalid properties with reasons. * @@ -194,13 +157,11 @@ class GetSmsCampaigns implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['count'] === null) { $invalidProperties[] = "'count' can't be null"; } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -209,10 +170,8 @@ class GetSmsCampaigns implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets campaigns * @@ -222,7 +181,6 @@ class GetSmsCampaigns implements ModelInterface, ArrayAccess { return $this->container['campaigns']; } - /** * Sets campaigns * @@ -233,10 +191,8 @@ class GetSmsCampaigns implements ModelInterface, ArrayAccess public function setCampaigns($campaigns) { $this->container['campaigns'] = $campaigns; - return $this; } - /** * Gets count * @@ -246,7 +202,6 @@ class GetSmsCampaigns implements ModelInterface, ArrayAccess { return $this->container['count']; } - /** * Sets count * @@ -257,7 +212,6 @@ class GetSmsCampaigns implements ModelInterface, ArrayAccess public function setCount($count) { $this->container['count'] = $count; - return $this; } /** @@ -271,7 +225,6 @@ class GetSmsCampaigns implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -283,7 +236,6 @@ class GetSmsCampaigns implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -294,13 +246,12 @@ class GetSmsCampaigns implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -312,7 +263,6 @@ class GetSmsCampaigns implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -320,15 +270,10 @@ class GetSmsCampaigns implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmsEventReport.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmsEventReport.php similarity index 81% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmsEventReport.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmsEventReport.php index cd0d115..b7d2cdc 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmsEventReport.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmsEventReport.php @@ -1,4 +1,5 @@ '\SendinBlue\Client\Model\GetSmsEventReportEvents[]' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['events' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmsEventReportEvents[]']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'events' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['events' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -78,7 +67,6 @@ class GetSmsEventReport implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -88,35 +76,25 @@ class GetSmsEventReport implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'events' => 'events' - ]; - + protected static $attributeMap = ['events' => 'events']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'events' => 'setEvents' - ]; - + protected static $setters = ['events' => 'setEvents']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'events' => 'getEvents' - ]; - + protected static $getters = ['events' => 'getEvents']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -127,7 +105,6 @@ class GetSmsEventReport implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -137,7 +114,6 @@ class GetSmsEventReport implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -147,7 +123,6 @@ class GetSmsEventReport implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -157,18 +132,12 @@ class GetSmsEventReport implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -179,7 +148,6 @@ class GetSmsEventReport implements ModelInterface, ArrayAccess { $this->container['events'] = isset($data['events']) ? $data['events'] : null; } - /** * Show all the invalid properties with reasons. * @@ -188,10 +156,8 @@ class GetSmsEventReport implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -200,10 +166,8 @@ class GetSmsEventReport implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets events * @@ -213,7 +177,6 @@ class GetSmsEventReport implements ModelInterface, ArrayAccess { return $this->container['events']; } - /** * Sets events * @@ -224,7 +187,6 @@ class GetSmsEventReport implements ModelInterface, ArrayAccess public function setEvents($events) { $this->container['events'] = $events; - return $this; } /** @@ -238,7 +200,6 @@ class GetSmsEventReport implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -250,7 +211,6 @@ class GetSmsEventReport implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -261,13 +221,12 @@ class GetSmsEventReport implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -279,7 +238,6 @@ class GetSmsEventReport implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -287,15 +245,10 @@ class GetSmsEventReport implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmsEventReportEvents.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmsEventReportEvents.php similarity index 76% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmsEventReportEvents.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmsEventReportEvents.php index 35627f1..2f4df3f 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmsEventReportEvents.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmsEventReportEvents.php @@ -1,4 +1,5 @@ 'string', - 'date' => '\DateTime', - 'messageId' => 'string', - 'event' => 'string', - 'reason' => 'string', - 'reply' => 'string', - 'tag' => 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['phoneNumber' => 'string', 'date' => '\\DateTime', 'messageId' => 'string', 'event' => 'string', 'reason' => 'string', 'reply' => 'string', 'tag' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'phoneNumber' => null, - 'date' => 'date-time', - 'messageId' => null, - 'event' => null, - 'reason' => null, - 'reply' => null, - 'tag' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['phoneNumber' => null, 'date' => 'date-time', 'messageId' => null, 'event' => null, 'reason' => null, 'reply' => null, 'tag' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -90,7 +67,6 @@ class GetSmsEventReportEvents implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -100,53 +76,25 @@ class GetSmsEventReportEvents implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'phoneNumber' => 'phoneNumber', - 'date' => 'date', - 'messageId' => 'messageId', - 'event' => 'event', - 'reason' => 'reason', - 'reply' => 'reply', - 'tag' => 'tag' - ]; - + protected static $attributeMap = ['phoneNumber' => 'phoneNumber', 'date' => 'date', 'messageId' => 'messageId', 'event' => 'event', 'reason' => 'reason', 'reply' => 'reply', 'tag' => 'tag']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'phoneNumber' => 'setPhoneNumber', - 'date' => 'setDate', - 'messageId' => 'setMessageId', - 'event' => 'setEvent', - 'reason' => 'setReason', - 'reply' => 'setReply', - 'tag' => 'setTag' - ]; - + protected static $setters = ['phoneNumber' => 'setPhoneNumber', 'date' => 'setDate', 'messageId' => 'setMessageId', 'event' => 'setEvent', 'reason' => 'setReason', 'reply' => 'setReply', 'tag' => 'setTag']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'phoneNumber' => 'getPhoneNumber', - 'date' => 'getDate', - 'messageId' => 'getMessageId', - 'event' => 'getEvent', - 'reason' => 'getReason', - 'reply' => 'getReply', - 'tag' => 'getTag' - ]; - + protected static $getters = ['phoneNumber' => 'getPhoneNumber', 'date' => 'getDate', 'messageId' => 'getMessageId', 'event' => 'getEvent', 'reason' => 'getReason', 'reply' => 'getReply', 'tag' => 'getTag']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -157,7 +105,6 @@ class GetSmsEventReportEvents implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -167,7 +114,6 @@ class GetSmsEventReportEvents implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -177,7 +123,6 @@ class GetSmsEventReportEvents implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -187,7 +132,6 @@ class GetSmsEventReportEvents implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - const EVENT_BOUNCES = 'bounces'; const EVENT_HARD_BOUNCES = 'hardBounces'; const EVENT_SOFT_BOUNCES = 'softBounces'; @@ -197,9 +141,6 @@ class GetSmsEventReportEvents implements ModelInterface, ArrayAccess const EVENT_UNSUBSCRIPTION = 'unsubscription'; const EVENT_REPLIES = 'replies'; const EVENT_BLOCKED = 'blocked'; - - - /** * Gets allowable values of the enum * @@ -207,27 +148,14 @@ class GetSmsEventReportEvents implements ModelInterface, ArrayAccess */ public function getEventAllowableValues() { - return [ - self::EVENT_BOUNCES, - self::EVENT_HARD_BOUNCES, - self::EVENT_SOFT_BOUNCES, - self::EVENT_DELIVERED, - self::EVENT_SENT, - self::EVENT_ACCEPTED, - self::EVENT_UNSUBSCRIPTION, - self::EVENT_REPLIES, - self::EVENT_BLOCKED, - ]; + return [self::EVENT_BOUNCES, self::EVENT_HARD_BOUNCES, self::EVENT_SOFT_BOUNCES, self::EVENT_DELIVERED, self::EVENT_SENT, self::EVENT_ACCEPTED, self::EVENT_UNSUBSCRIPTION, self::EVENT_REPLIES, self::EVENT_BLOCKED]; } - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -244,7 +172,6 @@ class GetSmsEventReportEvents implements ModelInterface, ArrayAccess $this->container['reply'] = isset($data['reply']) ? $data['reply'] : null; $this->container['tag'] = isset($data['tag']) ? $data['tag'] : null; } - /** * Show all the invalid properties with reasons. * @@ -253,7 +180,6 @@ class GetSmsEventReportEvents implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['phoneNumber'] === null) { $invalidProperties[] = "'phoneNumber' can't be null"; } @@ -267,16 +193,11 @@ class GetSmsEventReportEvents implements ModelInterface, ArrayAccess $invalidProperties[] = "'event' can't be null"; } $allowedValues = $this->getEventAllowableValues(); - if (!is_null($this->container['event']) && !in_array($this->container['event'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value for 'event', must be one of '%s'", - implode("', '", $allowedValues) - ); + if (!\is_null($this->container['event']) && !\in_array($this->container['event'], $allowedValues, \true)) { + $invalidProperties[] = \sprintf("invalid value for 'event', must be one of '%s'", \implode("', '", $allowedValues)); } - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -285,10 +206,8 @@ class GetSmsEventReportEvents implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets phoneNumber * @@ -298,7 +217,6 @@ class GetSmsEventReportEvents implements ModelInterface, ArrayAccess { return $this->container['phoneNumber']; } - /** * Sets phoneNumber * @@ -309,10 +227,8 @@ class GetSmsEventReportEvents implements ModelInterface, ArrayAccess public function setPhoneNumber($phoneNumber) { $this->container['phoneNumber'] = $phoneNumber; - return $this; } - /** * Gets date * @@ -322,7 +238,6 @@ class GetSmsEventReportEvents implements ModelInterface, ArrayAccess { return $this->container['date']; } - /** * Sets date * @@ -333,10 +248,8 @@ class GetSmsEventReportEvents implements ModelInterface, ArrayAccess public function setDate($date) { $this->container['date'] = $date; - return $this; } - /** * Gets messageId * @@ -346,7 +259,6 @@ class GetSmsEventReportEvents implements ModelInterface, ArrayAccess { return $this->container['messageId']; } - /** * Sets messageId * @@ -357,10 +269,8 @@ class GetSmsEventReportEvents implements ModelInterface, ArrayAccess public function setMessageId($messageId) { $this->container['messageId'] = $messageId; - return $this; } - /** * Gets event * @@ -370,7 +280,6 @@ class GetSmsEventReportEvents implements ModelInterface, ArrayAccess { return $this->container['event']; } - /** * Sets event * @@ -381,19 +290,12 @@ class GetSmsEventReportEvents implements ModelInterface, ArrayAccess public function setEvent($event) { $allowedValues = $this->getEventAllowableValues(); - if (!in_array($event, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'event', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); + if (!\in_array($event, $allowedValues, \true)) { + throw new \InvalidArgumentException(\sprintf("Invalid value for 'event', must be one of '%s'", \implode("', '", $allowedValues))); } $this->container['event'] = $event; - return $this; } - /** * Gets reason * @@ -403,7 +305,6 @@ class GetSmsEventReportEvents implements ModelInterface, ArrayAccess { return $this->container['reason']; } - /** * Sets reason * @@ -414,10 +315,8 @@ class GetSmsEventReportEvents implements ModelInterface, ArrayAccess public function setReason($reason) { $this->container['reason'] = $reason; - return $this; } - /** * Gets reply * @@ -427,7 +326,6 @@ class GetSmsEventReportEvents implements ModelInterface, ArrayAccess { return $this->container['reply']; } - /** * Sets reply * @@ -438,10 +336,8 @@ class GetSmsEventReportEvents implements ModelInterface, ArrayAccess public function setReply($reply) { $this->container['reply'] = $reply; - return $this; } - /** * Gets tag * @@ -451,7 +347,6 @@ class GetSmsEventReportEvents implements ModelInterface, ArrayAccess { return $this->container['tag']; } - /** * Sets tag * @@ -462,7 +357,6 @@ class GetSmsEventReportEvents implements ModelInterface, ArrayAccess public function setTag($tag) { $this->container['tag'] = $tag; - return $this; } /** @@ -476,7 +370,6 @@ class GetSmsEventReportEvents implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -488,7 +381,6 @@ class GetSmsEventReportEvents implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -499,13 +391,12 @@ class GetSmsEventReportEvents implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -517,7 +408,6 @@ class GetSmsEventReportEvents implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -525,15 +415,10 @@ class GetSmsEventReportEvents implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmtpTemplateOverview.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmtpTemplateOverview.php similarity index 79% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmtpTemplateOverview.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmtpTemplateOverview.php index a38f11c..79f8798 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmtpTemplateOverview.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmtpTemplateOverview.php @@ -1,4 +1,5 @@ 'int', - 'name' => 'string', - 'subject' => 'string', - 'isActive' => 'bool', - 'testSent' => 'bool', - 'sender' => '\SendinBlue\Client\Model\GetSmtpTemplateOverviewSender', - 'replyTo' => 'string', - 'toField' => 'string', - 'tag' => 'string', - 'htmlContent' => 'string', - 'createdAt' => '\DateTime', - 'modifiedAt' => '\DateTime' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['id' => 'int', 'name' => 'string', 'subject' => 'string', 'isActive' => 'bool', 'testSent' => 'bool', 'sender' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmtpTemplateOverviewSender', 'replyTo' => 'string', 'toField' => 'string', 'tag' => 'string', 'htmlContent' => 'string', 'createdAt' => '\\DateTime', 'modifiedAt' => '\\DateTime', 'doiTemplate' => 'bool']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'id' => 'int64', - 'name' => null, - 'subject' => null, - 'isActive' => null, - 'testSent' => null, - 'sender' => null, - 'replyTo' => 'email', - 'toField' => null, - 'tag' => null, - 'htmlContent' => null, - 'createdAt' => 'date-time', - 'modifiedAt' => 'date-time' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['id' => 'int64', 'name' => null, 'subject' => null, 'isActive' => null, 'testSent' => null, 'sender' => null, 'replyTo' => 'email', 'toField' => null, 'tag' => null, 'htmlContent' => null, 'createdAt' => 'date-time', 'modifiedAt' => 'date-time', 'doiTemplate' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -100,7 +67,6 @@ class GetSmtpTemplateOverview implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -110,68 +76,25 @@ class GetSmtpTemplateOverview implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'id' => 'id', - 'name' => 'name', - 'subject' => 'subject', - 'isActive' => 'isActive', - 'testSent' => 'testSent', - 'sender' => 'sender', - 'replyTo' => 'replyTo', - 'toField' => 'toField', - 'tag' => 'tag', - 'htmlContent' => 'htmlContent', - 'createdAt' => 'createdAt', - 'modifiedAt' => 'modifiedAt' - ]; - + protected static $attributeMap = ['id' => 'id', 'name' => 'name', 'subject' => 'subject', 'isActive' => 'isActive', 'testSent' => 'testSent', 'sender' => 'sender', 'replyTo' => 'replyTo', 'toField' => 'toField', 'tag' => 'tag', 'htmlContent' => 'htmlContent', 'createdAt' => 'createdAt', 'modifiedAt' => 'modifiedAt', 'doiTemplate' => 'doiTemplate']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'id' => 'setId', - 'name' => 'setName', - 'subject' => 'setSubject', - 'isActive' => 'setIsActive', - 'testSent' => 'setTestSent', - 'sender' => 'setSender', - 'replyTo' => 'setReplyTo', - 'toField' => 'setToField', - 'tag' => 'setTag', - 'htmlContent' => 'setHtmlContent', - 'createdAt' => 'setCreatedAt', - 'modifiedAt' => 'setModifiedAt' - ]; - + protected static $setters = ['id' => 'setId', 'name' => 'setName', 'subject' => 'setSubject', 'isActive' => 'setIsActive', 'testSent' => 'setTestSent', 'sender' => 'setSender', 'replyTo' => 'setReplyTo', 'toField' => 'setToField', 'tag' => 'setTag', 'htmlContent' => 'setHtmlContent', 'createdAt' => 'setCreatedAt', 'modifiedAt' => 'setModifiedAt', 'doiTemplate' => 'setDoiTemplate']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'id' => 'getId', - 'name' => 'getName', - 'subject' => 'getSubject', - 'isActive' => 'getIsActive', - 'testSent' => 'getTestSent', - 'sender' => 'getSender', - 'replyTo' => 'getReplyTo', - 'toField' => 'getToField', - 'tag' => 'getTag', - 'htmlContent' => 'getHtmlContent', - 'createdAt' => 'getCreatedAt', - 'modifiedAt' => 'getModifiedAt' - ]; - + protected static $getters = ['id' => 'getId', 'name' => 'getName', 'subject' => 'getSubject', 'isActive' => 'getIsActive', 'testSent' => 'getTestSent', 'sender' => 'getSender', 'replyTo' => 'getReplyTo', 'toField' => 'getToField', 'tag' => 'getTag', 'htmlContent' => 'getHtmlContent', 'createdAt' => 'getCreatedAt', 'modifiedAt' => 'getModifiedAt', 'doiTemplate' => 'getDoiTemplate']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -182,7 +105,6 @@ class GetSmtpTemplateOverview implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -192,7 +114,6 @@ class GetSmtpTemplateOverview implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -202,7 +123,6 @@ class GetSmtpTemplateOverview implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -212,18 +132,12 @@ class GetSmtpTemplateOverview implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -244,8 +158,8 @@ class GetSmtpTemplateOverview implements ModelInterface, ArrayAccess $this->container['htmlContent'] = isset($data['htmlContent']) ? $data['htmlContent'] : null; $this->container['createdAt'] = isset($data['createdAt']) ? $data['createdAt'] : null; $this->container['modifiedAt'] = isset($data['modifiedAt']) ? $data['modifiedAt'] : null; + $this->container['doiTemplate'] = isset($data['doiTemplate']) ? $data['doiTemplate'] : null; } - /** * Show all the invalid properties with reasons. * @@ -254,7 +168,6 @@ class GetSmtpTemplateOverview implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['id'] === null) { $invalidProperties[] = "'id' can't be null"; } @@ -293,7 +206,6 @@ class GetSmtpTemplateOverview implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -302,10 +214,8 @@ class GetSmtpTemplateOverview implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets id * @@ -315,7 +225,6 @@ class GetSmtpTemplateOverview implements ModelInterface, ArrayAccess { return $this->container['id']; } - /** * Sets id * @@ -326,10 +235,8 @@ class GetSmtpTemplateOverview implements ModelInterface, ArrayAccess public function setId($id) { $this->container['id'] = $id; - return $this; } - /** * Gets name * @@ -339,7 +246,6 @@ class GetSmtpTemplateOverview implements ModelInterface, ArrayAccess { return $this->container['name']; } - /** * Sets name * @@ -350,10 +256,8 @@ class GetSmtpTemplateOverview implements ModelInterface, ArrayAccess public function setName($name) { $this->container['name'] = $name; - return $this; } - /** * Gets subject * @@ -363,7 +267,6 @@ class GetSmtpTemplateOverview implements ModelInterface, ArrayAccess { return $this->container['subject']; } - /** * Sets subject * @@ -374,10 +277,8 @@ class GetSmtpTemplateOverview implements ModelInterface, ArrayAccess public function setSubject($subject) { $this->container['subject'] = $subject; - return $this; } - /** * Gets isActive * @@ -387,7 +288,6 @@ class GetSmtpTemplateOverview implements ModelInterface, ArrayAccess { return $this->container['isActive']; } - /** * Sets isActive * @@ -398,10 +298,8 @@ class GetSmtpTemplateOverview implements ModelInterface, ArrayAccess public function setIsActive($isActive) { $this->container['isActive'] = $isActive; - return $this; } - /** * Gets testSent * @@ -411,7 +309,6 @@ class GetSmtpTemplateOverview implements ModelInterface, ArrayAccess { return $this->container['testSent']; } - /** * Sets testSent * @@ -422,10 +319,8 @@ class GetSmtpTemplateOverview implements ModelInterface, ArrayAccess public function setTestSent($testSent) { $this->container['testSent'] = $testSent; - return $this; } - /** * Gets sender * @@ -435,7 +330,6 @@ class GetSmtpTemplateOverview implements ModelInterface, ArrayAccess { return $this->container['sender']; } - /** * Sets sender * @@ -446,10 +340,8 @@ class GetSmtpTemplateOverview implements ModelInterface, ArrayAccess public function setSender($sender) { $this->container['sender'] = $sender; - return $this; } - /** * Gets replyTo * @@ -459,7 +351,6 @@ class GetSmtpTemplateOverview implements ModelInterface, ArrayAccess { return $this->container['replyTo']; } - /** * Sets replyTo * @@ -470,10 +361,8 @@ class GetSmtpTemplateOverview implements ModelInterface, ArrayAccess public function setReplyTo($replyTo) { $this->container['replyTo'] = $replyTo; - return $this; } - /** * Gets toField * @@ -483,7 +372,6 @@ class GetSmtpTemplateOverview implements ModelInterface, ArrayAccess { return $this->container['toField']; } - /** * Sets toField * @@ -494,10 +382,8 @@ class GetSmtpTemplateOverview implements ModelInterface, ArrayAccess public function setToField($toField) { $this->container['toField'] = $toField; - return $this; } - /** * Gets tag * @@ -507,7 +393,6 @@ class GetSmtpTemplateOverview implements ModelInterface, ArrayAccess { return $this->container['tag']; } - /** * Sets tag * @@ -518,10 +403,8 @@ class GetSmtpTemplateOverview implements ModelInterface, ArrayAccess public function setTag($tag) { $this->container['tag'] = $tag; - return $this; } - /** * Gets htmlContent * @@ -531,7 +414,6 @@ class GetSmtpTemplateOverview implements ModelInterface, ArrayAccess { return $this->container['htmlContent']; } - /** * Sets htmlContent * @@ -542,10 +424,8 @@ class GetSmtpTemplateOverview implements ModelInterface, ArrayAccess public function setHtmlContent($htmlContent) { $this->container['htmlContent'] = $htmlContent; - return $this; } - /** * Gets createdAt * @@ -555,7 +435,6 @@ class GetSmtpTemplateOverview implements ModelInterface, ArrayAccess { return $this->container['createdAt']; } - /** * Sets createdAt * @@ -566,10 +445,8 @@ class GetSmtpTemplateOverview implements ModelInterface, ArrayAccess public function setCreatedAt($createdAt) { $this->container['createdAt'] = $createdAt; - return $this; } - /** * Gets modifiedAt * @@ -579,7 +456,6 @@ class GetSmtpTemplateOverview implements ModelInterface, ArrayAccess { return $this->container['modifiedAt']; } - /** * Sets modifiedAt * @@ -590,7 +466,27 @@ class GetSmtpTemplateOverview implements ModelInterface, ArrayAccess public function setModifiedAt($modifiedAt) { $this->container['modifiedAt'] = $modifiedAt; - + return $this; + } + /** + * Gets doiTemplate + * + * @return bool + */ + public function getDoiTemplate() + { + return $this->container['doiTemplate']; + } + /** + * Sets doiTemplate + * + * @param bool $doiTemplate It is true if template is a valid Double opt-in (DOI) template, otherwise it is false. This field will be available only in case of single template detail call. + * + * @return $this + */ + public function setDoiTemplate($doiTemplate) + { + $this->container['doiTemplate'] = $doiTemplate; return $this; } /** @@ -604,7 +500,6 @@ class GetSmtpTemplateOverview implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -616,7 +511,6 @@ class GetSmtpTemplateOverview implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -627,13 +521,12 @@ class GetSmtpTemplateOverview implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -645,7 +538,6 @@ class GetSmtpTemplateOverview implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -653,15 +545,10 @@ class GetSmtpTemplateOverview implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmtpTemplateOverviewSender.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmtpTemplateOverviewSender.php similarity index 81% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmtpTemplateOverviewSender.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmtpTemplateOverviewSender.php index ca75fcf..9d65dce 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmtpTemplateOverviewSender.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmtpTemplateOverviewSender.php @@ -1,4 +1,5 @@ 'string', - 'email' => 'string', - 'id' => 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['name' => 'string', 'email' => 'string', 'id' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'name' => null, - 'email' => 'email', - 'id' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['name' => null, 'email' => 'email', 'id' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -82,7 +67,6 @@ class GetSmtpTemplateOverviewSender implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -92,41 +76,25 @@ class GetSmtpTemplateOverviewSender implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'name' => 'name', - 'email' => 'email', - 'id' => 'id' - ]; - + protected static $attributeMap = ['name' => 'name', 'email' => 'email', 'id' => 'id']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'name' => 'setName', - 'email' => 'setEmail', - 'id' => 'setId' - ]; - + protected static $setters = ['name' => 'setName', 'email' => 'setEmail', 'id' => 'setId']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'name' => 'getName', - 'email' => 'getEmail', - 'id' => 'getId' - ]; - + protected static $getters = ['name' => 'getName', 'email' => 'getEmail', 'id' => 'getId']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -137,7 +105,6 @@ class GetSmtpTemplateOverviewSender implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -147,7 +114,6 @@ class GetSmtpTemplateOverviewSender implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -157,7 +123,6 @@ class GetSmtpTemplateOverviewSender implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -167,18 +132,12 @@ class GetSmtpTemplateOverviewSender implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -191,7 +150,6 @@ class GetSmtpTemplateOverviewSender implements ModelInterface, ArrayAccess $this->container['email'] = isset($data['email']) ? $data['email'] : null; $this->container['id'] = isset($data['id']) ? $data['id'] : null; } - /** * Show all the invalid properties with reasons. * @@ -200,10 +158,8 @@ class GetSmtpTemplateOverviewSender implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -212,10 +168,8 @@ class GetSmtpTemplateOverviewSender implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets name * @@ -225,7 +179,6 @@ class GetSmtpTemplateOverviewSender implements ModelInterface, ArrayAccess { return $this->container['name']; } - /** * Sets name * @@ -236,10 +189,8 @@ class GetSmtpTemplateOverviewSender implements ModelInterface, ArrayAccess public function setName($name) { $this->container['name'] = $name; - return $this; } - /** * Gets email * @@ -249,7 +200,6 @@ class GetSmtpTemplateOverviewSender implements ModelInterface, ArrayAccess { return $this->container['email']; } - /** * Sets email * @@ -260,10 +210,8 @@ class GetSmtpTemplateOverviewSender implements ModelInterface, ArrayAccess public function setEmail($email) { $this->container['email'] = $email; - return $this; } - /** * Gets id * @@ -273,7 +221,6 @@ class GetSmtpTemplateOverviewSender implements ModelInterface, ArrayAccess { return $this->container['id']; } - /** * Sets id * @@ -284,7 +231,6 @@ class GetSmtpTemplateOverviewSender implements ModelInterface, ArrayAccess public function setId($id) { $this->container['id'] = $id; - return $this; } /** @@ -298,7 +244,6 @@ class GetSmtpTemplateOverviewSender implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -310,7 +255,6 @@ class GetSmtpTemplateOverviewSender implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -321,13 +265,12 @@ class GetSmtpTemplateOverviewSender implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -339,7 +282,6 @@ class GetSmtpTemplateOverviewSender implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -347,15 +289,10 @@ class GetSmtpTemplateOverviewSender implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmtpTemplates.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmtpTemplates.php similarity index 81% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmtpTemplates.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmtpTemplates.php index 76805c8..b2aa1d6 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSmtpTemplates.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSmtpTemplates.php @@ -1,4 +1,5 @@ 'int', - 'templates' => '\SendinBlue\Client\Model\GetSmtpTemplateOverview[]' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['count' => 'int', 'templates' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetSmtpTemplateOverview[]']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'count' => 'int64', - 'templates' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['count' => 'int64', 'templates' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -80,7 +67,6 @@ class GetSmtpTemplates implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -90,38 +76,25 @@ class GetSmtpTemplates implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'count' => 'count', - 'templates' => 'templates' - ]; - + protected static $attributeMap = ['count' => 'count', 'templates' => 'templates']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'count' => 'setCount', - 'templates' => 'setTemplates' - ]; - + protected static $setters = ['count' => 'setCount', 'templates' => 'setTemplates']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'count' => 'getCount', - 'templates' => 'getTemplates' - ]; - + protected static $getters = ['count' => 'getCount', 'templates' => 'getTemplates']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -132,7 +105,6 @@ class GetSmtpTemplates implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -142,7 +114,6 @@ class GetSmtpTemplates implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -152,7 +123,6 @@ class GetSmtpTemplates implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -162,18 +132,12 @@ class GetSmtpTemplates implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -185,7 +149,6 @@ class GetSmtpTemplates implements ModelInterface, ArrayAccess $this->container['count'] = isset($data['count']) ? $data['count'] : null; $this->container['templates'] = isset($data['templates']) ? $data['templates'] : null; } - /** * Show all the invalid properties with reasons. * @@ -194,10 +157,8 @@ class GetSmtpTemplates implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -206,10 +167,8 @@ class GetSmtpTemplates implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets count * @@ -219,7 +178,6 @@ class GetSmtpTemplates implements ModelInterface, ArrayAccess { return $this->container['count']; } - /** * Sets count * @@ -230,10 +188,8 @@ class GetSmtpTemplates implements ModelInterface, ArrayAccess public function setCount($count) { $this->container['count'] = $count; - return $this; } - /** * Gets templates * @@ -243,7 +199,6 @@ class GetSmtpTemplates implements ModelInterface, ArrayAccess { return $this->container['templates']; } - /** * Sets templates * @@ -254,7 +209,6 @@ class GetSmtpTemplates implements ModelInterface, ArrayAccess public function setTemplates($templates) { $this->container['templates'] = $templates; - return $this; } /** @@ -268,7 +222,6 @@ class GetSmtpTemplates implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -280,7 +233,6 @@ class GetSmtpTemplates implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -291,13 +243,12 @@ class GetSmtpTemplates implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -309,7 +260,6 @@ class GetSmtpTemplates implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -317,15 +267,10 @@ class GetSmtpTemplates implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSsoToken.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSsoToken.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSsoToken.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSsoToken.php index cd15948..34e743c 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetSsoToken.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetSsoToken.php @@ -1,4 +1,5 @@ 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['token' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'token' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['token' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -78,7 +67,6 @@ class GetSsoToken implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -88,35 +76,25 @@ class GetSsoToken implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'token' => 'token' - ]; - + protected static $attributeMap = ['token' => 'token']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'token' => 'setToken' - ]; - + protected static $setters = ['token' => 'setToken']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'token' => 'getToken' - ]; - + protected static $getters = ['token' => 'getToken']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -127,7 +105,6 @@ class GetSsoToken implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -137,7 +114,6 @@ class GetSsoToken implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -147,7 +123,6 @@ class GetSsoToken implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -157,18 +132,12 @@ class GetSsoToken implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -179,7 +148,6 @@ class GetSsoToken implements ModelInterface, ArrayAccess { $this->container['token'] = isset($data['token']) ? $data['token'] : null; } - /** * Show all the invalid properties with reasons. * @@ -188,13 +156,11 @@ class GetSsoToken implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['token'] === null) { $invalidProperties[] = "'token' can't be null"; } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -203,10 +169,8 @@ class GetSsoToken implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets token * @@ -216,7 +180,6 @@ class GetSsoToken implements ModelInterface, ArrayAccess { return $this->container['token']; } - /** * Sets token * @@ -227,7 +190,6 @@ class GetSsoToken implements ModelInterface, ArrayAccess public function setToken($token) { $this->container['token'] = $token; - return $this; } /** @@ -241,7 +203,6 @@ class GetSsoToken implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -253,7 +214,6 @@ class GetSsoToken implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -264,13 +224,12 @@ class GetSsoToken implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -282,7 +241,6 @@ class GetSsoToken implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -290,15 +248,10 @@ class GetSsoToken implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetStatsByBrowser.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetStatsByBrowser.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetStatsByBrowser.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetStatsByBrowser.php index 1fb4d1c..90c32d7 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetStatsByBrowser.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetStatsByBrowser.php @@ -1,4 +1,5 @@ listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - /** * Returns true if offset exists. False otherwise. * @@ -213,7 +178,6 @@ class GetStatsByBrowser implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -225,7 +189,6 @@ class GetStatsByBrowser implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -236,13 +199,12 @@ class GetStatsByBrowser implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -254,7 +216,6 @@ class GetStatsByBrowser implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -262,15 +223,10 @@ class GetStatsByBrowser implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetStatsByDevice.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetStatsByDevice.php similarity index 80% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetStatsByDevice.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetStatsByDevice.php index da291a5..15755af 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetStatsByDevice.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetStatsByDevice.php @@ -1,4 +1,5 @@ 'map[string,\SendinBlue\Client\Model\GetDeviceBrowserStats]', - 'mobile' => 'map[string,\SendinBlue\Client\Model\GetDeviceBrowserStats]', - 'tablet' => 'map[string,\SendinBlue\Client\Model\GetDeviceBrowserStats]', - 'unknown' => 'map[string,\SendinBlue\Client\Model\GetDeviceBrowserStats]' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['desktop' => 'map[string,\\SendinBlue\\Client\\Model\\GetDeviceBrowserStats]', 'mobile' => 'map[string,\\SendinBlue\\Client\\Model\\GetDeviceBrowserStats]', 'tablet' => 'map[string,\\SendinBlue\\Client\\Model\\GetDeviceBrowserStats]', 'unknown' => 'map[string,\\SendinBlue\\Client\\Model\\GetDeviceBrowserStats]']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'desktop' => null, - 'mobile' => null, - 'tablet' => null, - 'unknown' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['desktop' => null, 'mobile' => null, 'tablet' => null, 'unknown' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -84,7 +67,6 @@ class GetStatsByDevice implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -94,44 +76,25 @@ class GetStatsByDevice implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'desktop' => 'desktop', - 'mobile' => 'mobile', - 'tablet' => 'tablet', - 'unknown' => 'unknown' - ]; - + protected static $attributeMap = ['desktop' => 'desktop', 'mobile' => 'mobile', 'tablet' => 'tablet', 'unknown' => 'unknown']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'desktop' => 'setDesktop', - 'mobile' => 'setMobile', - 'tablet' => 'setTablet', - 'unknown' => 'setUnknown' - ]; - + protected static $setters = ['desktop' => 'setDesktop', 'mobile' => 'setMobile', 'tablet' => 'setTablet', 'unknown' => 'setUnknown']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'desktop' => 'getDesktop', - 'mobile' => 'getMobile', - 'tablet' => 'getTablet', - 'unknown' => 'getUnknown' - ]; - + protected static $getters = ['desktop' => 'getDesktop', 'mobile' => 'getMobile', 'tablet' => 'getTablet', 'unknown' => 'getUnknown']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -142,7 +105,6 @@ class GetStatsByDevice implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -152,7 +114,6 @@ class GetStatsByDevice implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -162,7 +123,6 @@ class GetStatsByDevice implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -172,18 +132,12 @@ class GetStatsByDevice implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -197,7 +151,6 @@ class GetStatsByDevice implements ModelInterface, ArrayAccess $this->container['tablet'] = isset($data['tablet']) ? $data['tablet'] : null; $this->container['unknown'] = isset($data['unknown']) ? $data['unknown'] : null; } - /** * Show all the invalid properties with reasons. * @@ -206,10 +159,8 @@ class GetStatsByDevice implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -218,10 +169,8 @@ class GetStatsByDevice implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets desktop * @@ -231,7 +180,6 @@ class GetStatsByDevice implements ModelInterface, ArrayAccess { return $this->container['desktop']; } - /** * Sets desktop * @@ -242,10 +190,8 @@ class GetStatsByDevice implements ModelInterface, ArrayAccess public function setDesktop($desktop) { $this->container['desktop'] = $desktop; - return $this; } - /** * Gets mobile * @@ -255,7 +201,6 @@ class GetStatsByDevice implements ModelInterface, ArrayAccess { return $this->container['mobile']; } - /** * Sets mobile * @@ -266,10 +211,8 @@ class GetStatsByDevice implements ModelInterface, ArrayAccess public function setMobile($mobile) { $this->container['mobile'] = $mobile; - return $this; } - /** * Gets tablet * @@ -279,7 +222,6 @@ class GetStatsByDevice implements ModelInterface, ArrayAccess { return $this->container['tablet']; } - /** * Sets tablet * @@ -290,10 +232,8 @@ class GetStatsByDevice implements ModelInterface, ArrayAccess public function setTablet($tablet) { $this->container['tablet'] = $tablet; - return $this; } - /** * Gets unknown * @@ -303,7 +243,6 @@ class GetStatsByDevice implements ModelInterface, ArrayAccess { return $this->container['unknown']; } - /** * Sets unknown * @@ -314,7 +253,6 @@ class GetStatsByDevice implements ModelInterface, ArrayAccess public function setUnknown($unknown) { $this->container['unknown'] = $unknown; - return $this; } /** @@ -328,7 +266,6 @@ class GetStatsByDevice implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -340,7 +277,6 @@ class GetStatsByDevice implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -351,13 +287,12 @@ class GetStatsByDevice implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -369,7 +304,6 @@ class GetStatsByDevice implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -377,15 +311,10 @@ class GetStatsByDevice implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetStatsByDomain.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetStatsByDomain.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetStatsByDomain.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetStatsByDomain.php index 15520a2..e573212 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetStatsByDomain.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetStatsByDomain.php @@ -1,4 +1,5 @@ listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - /** * Returns true if offset exists. False otherwise. * @@ -213,7 +178,6 @@ class GetStatsByDomain implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -225,7 +189,6 @@ class GetStatsByDomain implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -236,13 +199,12 @@ class GetStatsByDomain implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -254,7 +216,6 @@ class GetStatsByDomain implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -262,15 +223,10 @@ class GetStatsByDomain implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacAggregatedSmsReport.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacAggregatedSmsReport.php similarity index 80% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacAggregatedSmsReport.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacAggregatedSmsReport.php index cc7bea3..8ea8f21 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacAggregatedSmsReport.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacAggregatedSmsReport.php @@ -1,4 +1,5 @@ 'string', - 'requests' => 'int', - 'delivered' => 'int', - 'hardBounces' => 'int', - 'softBounces' => 'int', - 'blocked' => 'int', - 'unsubscribed' => 'int', - 'replied' => 'int', - 'accepted' => 'int', - 'rejected' => 'int' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['range' => 'string', 'requests' => 'int', 'delivered' => 'int', 'hardBounces' => 'int', 'softBounces' => 'int', 'blocked' => 'int', 'unsubscribed' => 'int', 'replied' => 'int', 'accepted' => 'int', 'rejected' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'range' => null, - 'requests' => 'int64', - 'delivered' => 'int64', - 'hardBounces' => 'int64', - 'softBounces' => 'int64', - 'blocked' => 'int64', - 'unsubscribed' => 'int64', - 'replied' => 'int64', - 'accepted' => 'int64', - 'rejected' => 'int64' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['range' => null, 'requests' => 'int64', 'delivered' => 'int64', 'hardBounces' => 'int64', 'softBounces' => 'int64', 'blocked' => 'int64', 'unsubscribed' => 'int64', 'replied' => 'int64', 'accepted' => 'int64', 'rejected' => 'int64']; /** * Array of property to type mappings. Used for (de)serialization * @@ -96,7 +67,6 @@ class GetTransacAggregatedSmsReport implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -106,62 +76,25 @@ class GetTransacAggregatedSmsReport implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'range' => 'range', - 'requests' => 'requests', - 'delivered' => 'delivered', - 'hardBounces' => 'hardBounces', - 'softBounces' => 'softBounces', - 'blocked' => 'blocked', - 'unsubscribed' => 'unsubscribed', - 'replied' => 'replied', - 'accepted' => 'accepted', - 'rejected' => 'rejected' - ]; - + protected static $attributeMap = ['range' => 'range', 'requests' => 'requests', 'delivered' => 'delivered', 'hardBounces' => 'hardBounces', 'softBounces' => 'softBounces', 'blocked' => 'blocked', 'unsubscribed' => 'unsubscribed', 'replied' => 'replied', 'accepted' => 'accepted', 'rejected' => 'rejected']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'range' => 'setRange', - 'requests' => 'setRequests', - 'delivered' => 'setDelivered', - 'hardBounces' => 'setHardBounces', - 'softBounces' => 'setSoftBounces', - 'blocked' => 'setBlocked', - 'unsubscribed' => 'setUnsubscribed', - 'replied' => 'setReplied', - 'accepted' => 'setAccepted', - 'rejected' => 'setRejected' - ]; - + protected static $setters = ['range' => 'setRange', 'requests' => 'setRequests', 'delivered' => 'setDelivered', 'hardBounces' => 'setHardBounces', 'softBounces' => 'setSoftBounces', 'blocked' => 'setBlocked', 'unsubscribed' => 'setUnsubscribed', 'replied' => 'setReplied', 'accepted' => 'setAccepted', 'rejected' => 'setRejected']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'range' => 'getRange', - 'requests' => 'getRequests', - 'delivered' => 'getDelivered', - 'hardBounces' => 'getHardBounces', - 'softBounces' => 'getSoftBounces', - 'blocked' => 'getBlocked', - 'unsubscribed' => 'getUnsubscribed', - 'replied' => 'getReplied', - 'accepted' => 'getAccepted', - 'rejected' => 'getRejected' - ]; - + protected static $getters = ['range' => 'getRange', 'requests' => 'getRequests', 'delivered' => 'getDelivered', 'hardBounces' => 'getHardBounces', 'softBounces' => 'getSoftBounces', 'blocked' => 'getBlocked', 'unsubscribed' => 'getUnsubscribed', 'replied' => 'getReplied', 'accepted' => 'getAccepted', 'rejected' => 'getRejected']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -172,7 +105,6 @@ class GetTransacAggregatedSmsReport implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -182,7 +114,6 @@ class GetTransacAggregatedSmsReport implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -192,7 +123,6 @@ class GetTransacAggregatedSmsReport implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -202,18 +132,12 @@ class GetTransacAggregatedSmsReport implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -233,7 +157,6 @@ class GetTransacAggregatedSmsReport implements ModelInterface, ArrayAccess $this->container['accepted'] = isset($data['accepted']) ? $data['accepted'] : null; $this->container['rejected'] = isset($data['rejected']) ? $data['rejected'] : null; } - /** * Show all the invalid properties with reasons. * @@ -242,7 +165,6 @@ class GetTransacAggregatedSmsReport implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['range'] === null) { $invalidProperties[] = "'range' can't be null"; } @@ -275,7 +197,6 @@ class GetTransacAggregatedSmsReport implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -284,10 +205,8 @@ class GetTransacAggregatedSmsReport implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets range * @@ -297,7 +216,6 @@ class GetTransacAggregatedSmsReport implements ModelInterface, ArrayAccess { return $this->container['range']; } - /** * Sets range * @@ -308,10 +226,8 @@ class GetTransacAggregatedSmsReport implements ModelInterface, ArrayAccess public function setRange($range) { $this->container['range'] = $range; - return $this; } - /** * Gets requests * @@ -321,7 +237,6 @@ class GetTransacAggregatedSmsReport implements ModelInterface, ArrayAccess { return $this->container['requests']; } - /** * Sets requests * @@ -332,10 +247,8 @@ class GetTransacAggregatedSmsReport implements ModelInterface, ArrayAccess public function setRequests($requests) { $this->container['requests'] = $requests; - return $this; } - /** * Gets delivered * @@ -345,7 +258,6 @@ class GetTransacAggregatedSmsReport implements ModelInterface, ArrayAccess { return $this->container['delivered']; } - /** * Sets delivered * @@ -356,10 +268,8 @@ class GetTransacAggregatedSmsReport implements ModelInterface, ArrayAccess public function setDelivered($delivered) { $this->container['delivered'] = $delivered; - return $this; } - /** * Gets hardBounces * @@ -369,7 +279,6 @@ class GetTransacAggregatedSmsReport implements ModelInterface, ArrayAccess { return $this->container['hardBounces']; } - /** * Sets hardBounces * @@ -380,10 +289,8 @@ class GetTransacAggregatedSmsReport implements ModelInterface, ArrayAccess public function setHardBounces($hardBounces) { $this->container['hardBounces'] = $hardBounces; - return $this; } - /** * Gets softBounces * @@ -393,7 +300,6 @@ class GetTransacAggregatedSmsReport implements ModelInterface, ArrayAccess { return $this->container['softBounces']; } - /** * Sets softBounces * @@ -404,10 +310,8 @@ class GetTransacAggregatedSmsReport implements ModelInterface, ArrayAccess public function setSoftBounces($softBounces) { $this->container['softBounces'] = $softBounces; - return $this; } - /** * Gets blocked * @@ -417,7 +321,6 @@ class GetTransacAggregatedSmsReport implements ModelInterface, ArrayAccess { return $this->container['blocked']; } - /** * Sets blocked * @@ -428,10 +331,8 @@ class GetTransacAggregatedSmsReport implements ModelInterface, ArrayAccess public function setBlocked($blocked) { $this->container['blocked'] = $blocked; - return $this; } - /** * Gets unsubscribed * @@ -441,7 +342,6 @@ class GetTransacAggregatedSmsReport implements ModelInterface, ArrayAccess { return $this->container['unsubscribed']; } - /** * Sets unsubscribed * @@ -452,10 +352,8 @@ class GetTransacAggregatedSmsReport implements ModelInterface, ArrayAccess public function setUnsubscribed($unsubscribed) { $this->container['unsubscribed'] = $unsubscribed; - return $this; } - /** * Gets replied * @@ -465,7 +363,6 @@ class GetTransacAggregatedSmsReport implements ModelInterface, ArrayAccess { return $this->container['replied']; } - /** * Sets replied * @@ -476,10 +373,8 @@ class GetTransacAggregatedSmsReport implements ModelInterface, ArrayAccess public function setReplied($replied) { $this->container['replied'] = $replied; - return $this; } - /** * Gets accepted * @@ -489,7 +384,6 @@ class GetTransacAggregatedSmsReport implements ModelInterface, ArrayAccess { return $this->container['accepted']; } - /** * Sets accepted * @@ -500,10 +394,8 @@ class GetTransacAggregatedSmsReport implements ModelInterface, ArrayAccess public function setAccepted($accepted) { $this->container['accepted'] = $accepted; - return $this; } - /** * Gets rejected * @@ -513,7 +405,6 @@ class GetTransacAggregatedSmsReport implements ModelInterface, ArrayAccess { return $this->container['rejected']; } - /** * Sets rejected * @@ -524,7 +415,6 @@ class GetTransacAggregatedSmsReport implements ModelInterface, ArrayAccess public function setRejected($rejected) { $this->container['rejected'] = $rejected; - return $this; } /** @@ -538,7 +428,6 @@ class GetTransacAggregatedSmsReport implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -550,7 +439,6 @@ class GetTransacAggregatedSmsReport implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -561,13 +449,12 @@ class GetTransacAggregatedSmsReport implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -579,7 +466,6 @@ class GetTransacAggregatedSmsReport implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -587,15 +473,10 @@ class GetTransacAggregatedSmsReport implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacBlockedContacts.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacBlockedContacts.php similarity index 81% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacBlockedContacts.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacBlockedContacts.php index f1505b9..75a3601 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacBlockedContacts.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacBlockedContacts.php @@ -1,4 +1,5 @@ 'int', - 'contacts' => '\SendinBlue\Client\Model\GetTransacBlockedContactsContacts[]' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['count' => 'int', 'contacts' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacBlockedContactsContacts[]']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'count' => 'int64', - 'contacts' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['count' => 'int64', 'contacts' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -80,7 +67,6 @@ class GetTransacBlockedContacts implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -90,38 +76,25 @@ class GetTransacBlockedContacts implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'count' => 'count', - 'contacts' => 'contacts' - ]; - + protected static $attributeMap = ['count' => 'count', 'contacts' => 'contacts']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'count' => 'setCount', - 'contacts' => 'setContacts' - ]; - + protected static $setters = ['count' => 'setCount', 'contacts' => 'setContacts']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'count' => 'getCount', - 'contacts' => 'getContacts' - ]; - + protected static $getters = ['count' => 'getCount', 'contacts' => 'getContacts']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -132,7 +105,6 @@ class GetTransacBlockedContacts implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -142,7 +114,6 @@ class GetTransacBlockedContacts implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -152,7 +123,6 @@ class GetTransacBlockedContacts implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -162,18 +132,12 @@ class GetTransacBlockedContacts implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -185,7 +149,6 @@ class GetTransacBlockedContacts implements ModelInterface, ArrayAccess $this->container['count'] = isset($data['count']) ? $data['count'] : null; $this->container['contacts'] = isset($data['contacts']) ? $data['contacts'] : null; } - /** * Show all the invalid properties with reasons. * @@ -194,10 +157,8 @@ class GetTransacBlockedContacts implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -206,10 +167,8 @@ class GetTransacBlockedContacts implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets count * @@ -219,7 +178,6 @@ class GetTransacBlockedContacts implements ModelInterface, ArrayAccess { return $this->container['count']; } - /** * Sets count * @@ -230,10 +188,8 @@ class GetTransacBlockedContacts implements ModelInterface, ArrayAccess public function setCount($count) { $this->container['count'] = $count; - return $this; } - /** * Gets contacts * @@ -243,7 +199,6 @@ class GetTransacBlockedContacts implements ModelInterface, ArrayAccess { return $this->container['contacts']; } - /** * Sets contacts * @@ -254,7 +209,6 @@ class GetTransacBlockedContacts implements ModelInterface, ArrayAccess public function setContacts($contacts) { $this->container['contacts'] = $contacts; - return $this; } /** @@ -268,7 +222,6 @@ class GetTransacBlockedContacts implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -280,7 +233,6 @@ class GetTransacBlockedContacts implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -291,13 +243,12 @@ class GetTransacBlockedContacts implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -309,7 +260,6 @@ class GetTransacBlockedContacts implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -317,15 +267,10 @@ class GetTransacBlockedContacts implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacBlockedContactsContacts.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacBlockedContactsContacts.php similarity index 81% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacBlockedContactsContacts.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacBlockedContactsContacts.php index 967bcb1..a73d09a 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacBlockedContactsContacts.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacBlockedContactsContacts.php @@ -1,4 +1,5 @@ 'string', - 'senderEmail' => 'string', - 'reason' => '\SendinBlue\Client\Model\GetTransacBlockedContactsReason', - 'blockedAt' => '\DateTime' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['email' => 'string', 'senderEmail' => 'string', 'reason' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacBlockedContactsReason', 'blockedAt' => '\\DateTime']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'email' => 'email', - 'senderEmail' => 'email', - 'reason' => null, - 'blockedAt' => 'date' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['email' => 'email', 'senderEmail' => 'email', 'reason' => null, 'blockedAt' => 'date-time']; /** * Array of property to type mappings. Used for (de)serialization * @@ -84,7 +67,6 @@ class GetTransacBlockedContactsContacts implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -94,44 +76,25 @@ class GetTransacBlockedContactsContacts implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'email' => 'email', - 'senderEmail' => 'senderEmail', - 'reason' => 'reason', - 'blockedAt' => 'blockedAt' - ]; - + protected static $attributeMap = ['email' => 'email', 'senderEmail' => 'senderEmail', 'reason' => 'reason', 'blockedAt' => 'blockedAt']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'email' => 'setEmail', - 'senderEmail' => 'setSenderEmail', - 'reason' => 'setReason', - 'blockedAt' => 'setBlockedAt' - ]; - + protected static $setters = ['email' => 'setEmail', 'senderEmail' => 'setSenderEmail', 'reason' => 'setReason', 'blockedAt' => 'setBlockedAt']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'email' => 'getEmail', - 'senderEmail' => 'getSenderEmail', - 'reason' => 'getReason', - 'blockedAt' => 'getBlockedAt' - ]; - + protected static $getters = ['email' => 'getEmail', 'senderEmail' => 'getSenderEmail', 'reason' => 'getReason', 'blockedAt' => 'getBlockedAt']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -142,7 +105,6 @@ class GetTransacBlockedContactsContacts implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -152,7 +114,6 @@ class GetTransacBlockedContactsContacts implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -162,7 +123,6 @@ class GetTransacBlockedContactsContacts implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -172,18 +132,12 @@ class GetTransacBlockedContactsContacts implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -197,7 +151,6 @@ class GetTransacBlockedContactsContacts implements ModelInterface, ArrayAccess $this->container['reason'] = isset($data['reason']) ? $data['reason'] : null; $this->container['blockedAt'] = isset($data['blockedAt']) ? $data['blockedAt'] : null; } - /** * Show all the invalid properties with reasons. * @@ -206,7 +159,6 @@ class GetTransacBlockedContactsContacts implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['email'] === null) { $invalidProperties[] = "'email' can't be null"; } @@ -221,7 +173,6 @@ class GetTransacBlockedContactsContacts implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -230,10 +181,8 @@ class GetTransacBlockedContactsContacts implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets email * @@ -243,7 +192,6 @@ class GetTransacBlockedContactsContacts implements ModelInterface, ArrayAccess { return $this->container['email']; } - /** * Sets email * @@ -254,10 +202,8 @@ class GetTransacBlockedContactsContacts implements ModelInterface, ArrayAccess public function setEmail($email) { $this->container['email'] = $email; - return $this; } - /** * Gets senderEmail * @@ -267,7 +213,6 @@ class GetTransacBlockedContactsContacts implements ModelInterface, ArrayAccess { return $this->container['senderEmail']; } - /** * Sets senderEmail * @@ -278,10 +223,8 @@ class GetTransacBlockedContactsContacts implements ModelInterface, ArrayAccess public function setSenderEmail($senderEmail) { $this->container['senderEmail'] = $senderEmail; - return $this; } - /** * Gets reason * @@ -291,7 +234,6 @@ class GetTransacBlockedContactsContacts implements ModelInterface, ArrayAccess { return $this->container['reason']; } - /** * Sets reason * @@ -302,10 +244,8 @@ class GetTransacBlockedContactsContacts implements ModelInterface, ArrayAccess public function setReason($reason) { $this->container['reason'] = $reason; - return $this; } - /** * Gets blockedAt * @@ -315,7 +255,6 @@ class GetTransacBlockedContactsContacts implements ModelInterface, ArrayAccess { return $this->container['blockedAt']; } - /** * Sets blockedAt * @@ -326,7 +265,6 @@ class GetTransacBlockedContactsContacts implements ModelInterface, ArrayAccess public function setBlockedAt($blockedAt) { $this->container['blockedAt'] = $blockedAt; - return $this; } /** @@ -340,7 +278,6 @@ class GetTransacBlockedContactsContacts implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -352,7 +289,6 @@ class GetTransacBlockedContactsContacts implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -363,13 +299,12 @@ class GetTransacBlockedContactsContacts implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -381,7 +316,6 @@ class GetTransacBlockedContactsContacts implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -389,15 +323,10 @@ class GetTransacBlockedContactsContacts implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacBlockedContactsReason.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacBlockedContactsReason.php similarity index 75% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacBlockedContactsReason.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacBlockedContactsReason.php index fdf5fc9..67a660f 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacBlockedContactsReason.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacBlockedContactsReason.php @@ -1,4 +1,5 @@ 'string', - 'message' => 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['code' => 'string', 'message' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'code' => null, - 'message' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['code' => null, 'message' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -81,7 +68,6 @@ class GetTransacBlockedContactsReason implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -91,38 +77,25 @@ class GetTransacBlockedContactsReason implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message' - ]; - + protected static $attributeMap = ['code' => 'code', 'message' => 'message']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage' - ]; - + protected static $setters = ['code' => 'setCode', 'message' => 'setMessage']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage' - ]; - + protected static $getters = ['code' => 'getCode', 'message' => 'getMessage']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -133,7 +106,6 @@ class GetTransacBlockedContactsReason implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -143,7 +115,6 @@ class GetTransacBlockedContactsReason implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -153,7 +124,6 @@ class GetTransacBlockedContactsReason implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -163,16 +133,12 @@ class GetTransacBlockedContactsReason implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - const CODE_UNSUBSCRIBED_VIA_MA = 'unsubscribedViaMA'; const CODE_UNSUBSCRIBED_VIA_EMAIL = 'unsubscribedViaEmail'; const CODE_ADMIN_BLOCKED = 'adminBlocked'; const CODE_UNSUBSCRIBED_VIA_API = 'unsubscribedViaApi'; const CODE_HARD_BOUNCE = 'hardBounce'; const CODE_CONTACT_FLAGGED_AS_SPAM = 'contactFlaggedAsSpam'; - - - /** * Gets allowable values of the enum * @@ -180,24 +146,14 @@ class GetTransacBlockedContactsReason implements ModelInterface, ArrayAccess */ public function getCodeAllowableValues() { - return [ - self::CODE_UNSUBSCRIBED_VIA_MA, - self::CODE_UNSUBSCRIBED_VIA_EMAIL, - self::CODE_ADMIN_BLOCKED, - self::CODE_UNSUBSCRIBED_VIA_API, - self::CODE_HARD_BOUNCE, - self::CODE_CONTACT_FLAGGED_AS_SPAM, - ]; + return [self::CODE_UNSUBSCRIBED_VIA_MA, self::CODE_UNSUBSCRIBED_VIA_EMAIL, self::CODE_ADMIN_BLOCKED, self::CODE_UNSUBSCRIBED_VIA_API, self::CODE_HARD_BOUNCE, self::CODE_CONTACT_FLAGGED_AS_SPAM]; } - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -209,7 +165,6 @@ class GetTransacBlockedContactsReason implements ModelInterface, ArrayAccess $this->container['code'] = isset($data['code']) ? $data['code'] : null; $this->container['message'] = isset($data['message']) ? $data['message'] : null; } - /** * Show all the invalid properties with reasons. * @@ -218,18 +173,12 @@ class GetTransacBlockedContactsReason implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - $allowedValues = $this->getCodeAllowableValues(); - if (!is_null($this->container['code']) && !in_array($this->container['code'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value for 'code', must be one of '%s'", - implode("', '", $allowedValues) - ); + if (!\is_null($this->container['code']) && !\in_array($this->container['code'], $allowedValues, \true)) { + $invalidProperties[] = \sprintf("invalid value for 'code', must be one of '%s'", \implode("', '", $allowedValues)); } - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -238,10 +187,8 @@ class GetTransacBlockedContactsReason implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets code * @@ -251,7 +198,6 @@ class GetTransacBlockedContactsReason implements ModelInterface, ArrayAccess { return $this->container['code']; } - /** * Sets code * @@ -262,19 +208,12 @@ class GetTransacBlockedContactsReason implements ModelInterface, ArrayAccess public function setCode($code) { $allowedValues = $this->getCodeAllowableValues(); - if (!is_null($code) && !in_array($code, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'code', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); + if (!\is_null($code) && !\in_array($code, $allowedValues, \true)) { + throw new \InvalidArgumentException(\sprintf("Invalid value for 'code', must be one of '%s'", \implode("', '", $allowedValues))); } $this->container['code'] = $code; - return $this; } - /** * Gets message * @@ -284,7 +223,6 @@ class GetTransacBlockedContactsReason implements ModelInterface, ArrayAccess { return $this->container['message']; } - /** * Sets message * @@ -295,7 +233,6 @@ class GetTransacBlockedContactsReason implements ModelInterface, ArrayAccess public function setMessage($message) { $this->container['message'] = $message; - return $this; } /** @@ -309,7 +246,6 @@ class GetTransacBlockedContactsReason implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -321,7 +257,6 @@ class GetTransacBlockedContactsReason implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -332,13 +267,12 @@ class GetTransacBlockedContactsReason implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -350,7 +284,6 @@ class GetTransacBlockedContactsReason implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -358,15 +291,10 @@ class GetTransacBlockedContactsReason implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailContent.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailContent.php similarity index 80% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailContent.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailContent.php index 6a30b45..1844dcf 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailContent.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailContent.php @@ -1,4 +1,5 @@ 'string', - 'subject' => 'string', - 'templateId' => 'int', - 'date' => '\DateTime', - 'events' => '\SendinBlue\Client\Model\GetTransacEmailContentEvents[]', - 'body' => 'string', - 'attachmentCount' => 'int' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['email' => 'string', 'subject' => 'string', 'templateId' => 'int', 'date' => '\\DateTime', 'events' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacEmailContentEvents[]', 'body' => 'string', 'attachmentCount' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'email' => 'email', - 'subject' => null, - 'templateId' => 'int64', - 'date' => 'date-time', - 'events' => null, - 'body' => null, - 'attachmentCount' => 'int64' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['email' => 'email', 'subject' => null, 'templateId' => 'int64', 'date' => 'date-time', 'events' => null, 'body' => null, 'attachmentCount' => 'int64']; /** * Array of property to type mappings. Used for (de)serialization * @@ -90,7 +67,6 @@ class GetTransacEmailContent implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -100,53 +76,25 @@ class GetTransacEmailContent implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'email' => 'email', - 'subject' => 'subject', - 'templateId' => 'templateId', - 'date' => 'date', - 'events' => 'events', - 'body' => 'body', - 'attachmentCount' => 'attachmentCount' - ]; - + protected static $attributeMap = ['email' => 'email', 'subject' => 'subject', 'templateId' => 'templateId', 'date' => 'date', 'events' => 'events', 'body' => 'body', 'attachmentCount' => 'attachmentCount']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'email' => 'setEmail', - 'subject' => 'setSubject', - 'templateId' => 'setTemplateId', - 'date' => 'setDate', - 'events' => 'setEvents', - 'body' => 'setBody', - 'attachmentCount' => 'setAttachmentCount' - ]; - + protected static $setters = ['email' => 'setEmail', 'subject' => 'setSubject', 'templateId' => 'setTemplateId', 'date' => 'setDate', 'events' => 'setEvents', 'body' => 'setBody', 'attachmentCount' => 'setAttachmentCount']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'email' => 'getEmail', - 'subject' => 'getSubject', - 'templateId' => 'getTemplateId', - 'date' => 'getDate', - 'events' => 'getEvents', - 'body' => 'getBody', - 'attachmentCount' => 'getAttachmentCount' - ]; - + protected static $getters = ['email' => 'getEmail', 'subject' => 'getSubject', 'templateId' => 'getTemplateId', 'date' => 'getDate', 'events' => 'getEvents', 'body' => 'getBody', 'attachmentCount' => 'getAttachmentCount']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -157,7 +105,6 @@ class GetTransacEmailContent implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -167,7 +114,6 @@ class GetTransacEmailContent implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -177,7 +123,6 @@ class GetTransacEmailContent implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -187,18 +132,12 @@ class GetTransacEmailContent implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -215,7 +154,6 @@ class GetTransacEmailContent implements ModelInterface, ArrayAccess $this->container['body'] = isset($data['body']) ? $data['body'] : null; $this->container['attachmentCount'] = isset($data['attachmentCount']) ? $data['attachmentCount'] : null; } - /** * Show all the invalid properties with reasons. * @@ -224,7 +162,6 @@ class GetTransacEmailContent implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['email'] === null) { $invalidProperties[] = "'email' can't be null"; } @@ -245,7 +182,6 @@ class GetTransacEmailContent implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -254,10 +190,8 @@ class GetTransacEmailContent implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets email * @@ -267,7 +201,6 @@ class GetTransacEmailContent implements ModelInterface, ArrayAccess { return $this->container['email']; } - /** * Sets email * @@ -278,10 +211,8 @@ class GetTransacEmailContent implements ModelInterface, ArrayAccess public function setEmail($email) { $this->container['email'] = $email; - return $this; } - /** * Gets subject * @@ -291,7 +222,6 @@ class GetTransacEmailContent implements ModelInterface, ArrayAccess { return $this->container['subject']; } - /** * Sets subject * @@ -302,10 +232,8 @@ class GetTransacEmailContent implements ModelInterface, ArrayAccess public function setSubject($subject) { $this->container['subject'] = $subject; - return $this; } - /** * Gets templateId * @@ -315,7 +243,6 @@ class GetTransacEmailContent implements ModelInterface, ArrayAccess { return $this->container['templateId']; } - /** * Sets templateId * @@ -326,10 +253,8 @@ class GetTransacEmailContent implements ModelInterface, ArrayAccess public function setTemplateId($templateId) { $this->container['templateId'] = $templateId; - return $this; } - /** * Gets date * @@ -339,7 +264,6 @@ class GetTransacEmailContent implements ModelInterface, ArrayAccess { return $this->container['date']; } - /** * Sets date * @@ -350,10 +274,8 @@ class GetTransacEmailContent implements ModelInterface, ArrayAccess public function setDate($date) { $this->container['date'] = $date; - return $this; } - /** * Gets events * @@ -363,7 +285,6 @@ class GetTransacEmailContent implements ModelInterface, ArrayAccess { return $this->container['events']; } - /** * Sets events * @@ -374,10 +295,8 @@ class GetTransacEmailContent implements ModelInterface, ArrayAccess public function setEvents($events) { $this->container['events'] = $events; - return $this; } - /** * Gets body * @@ -387,7 +306,6 @@ class GetTransacEmailContent implements ModelInterface, ArrayAccess { return $this->container['body']; } - /** * Sets body * @@ -398,10 +316,8 @@ class GetTransacEmailContent implements ModelInterface, ArrayAccess public function setBody($body) { $this->container['body'] = $body; - return $this; } - /** * Gets attachmentCount * @@ -411,7 +327,6 @@ class GetTransacEmailContent implements ModelInterface, ArrayAccess { return $this->container['attachmentCount']; } - /** * Sets attachmentCount * @@ -422,7 +337,6 @@ class GetTransacEmailContent implements ModelInterface, ArrayAccess public function setAttachmentCount($attachmentCount) { $this->container['attachmentCount'] = $attachmentCount; - return $this; } /** @@ -436,7 +350,6 @@ class GetTransacEmailContent implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -448,7 +361,6 @@ class GetTransacEmailContent implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -459,13 +371,12 @@ class GetTransacEmailContent implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -477,7 +388,6 @@ class GetTransacEmailContent implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -485,15 +395,10 @@ class GetTransacEmailContent implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailContentEvents.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailContentEvents.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailContentEvents.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailContentEvents.php index 15896a9..4de1e61 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailContentEvents.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailContentEvents.php @@ -1,4 +1,5 @@ 'string', - 'time' => '\DateTime' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['name' => 'string', 'time' => '\\DateTime']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'name' => null, - 'time' => 'date-time' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['name' => null, 'time' => 'date-time']; /** * Array of property to type mappings. Used for (de)serialization * @@ -80,7 +67,6 @@ class GetTransacEmailContentEvents implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -90,38 +76,25 @@ class GetTransacEmailContentEvents implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'name' => 'name', - 'time' => 'time' - ]; - + protected static $attributeMap = ['name' => 'name', 'time' => 'time']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'name' => 'setName', - 'time' => 'setTime' - ]; - + protected static $setters = ['name' => 'setName', 'time' => 'setTime']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'name' => 'getName', - 'time' => 'getTime' - ]; - + protected static $getters = ['name' => 'getName', 'time' => 'getTime']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -132,7 +105,6 @@ class GetTransacEmailContentEvents implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -142,7 +114,6 @@ class GetTransacEmailContentEvents implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -152,7 +123,6 @@ class GetTransacEmailContentEvents implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -162,18 +132,12 @@ class GetTransacEmailContentEvents implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -185,7 +149,6 @@ class GetTransacEmailContentEvents implements ModelInterface, ArrayAccess $this->container['name'] = isset($data['name']) ? $data['name'] : null; $this->container['time'] = isset($data['time']) ? $data['time'] : null; } - /** * Show all the invalid properties with reasons. * @@ -194,7 +157,6 @@ class GetTransacEmailContentEvents implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['name'] === null) { $invalidProperties[] = "'name' can't be null"; } @@ -203,7 +165,6 @@ class GetTransacEmailContentEvents implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -212,10 +173,8 @@ class GetTransacEmailContentEvents implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets name * @@ -225,7 +184,6 @@ class GetTransacEmailContentEvents implements ModelInterface, ArrayAccess { return $this->container['name']; } - /** * Sets name * @@ -236,10 +194,8 @@ class GetTransacEmailContentEvents implements ModelInterface, ArrayAccess public function setName($name) { $this->container['name'] = $name; - return $this; } - /** * Gets time * @@ -249,7 +205,6 @@ class GetTransacEmailContentEvents implements ModelInterface, ArrayAccess { return $this->container['time']; } - /** * Sets time * @@ -260,7 +215,6 @@ class GetTransacEmailContentEvents implements ModelInterface, ArrayAccess public function setTime($time) { $this->container['time'] = $time; - return $this; } /** @@ -274,7 +228,6 @@ class GetTransacEmailContentEvents implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -286,7 +239,6 @@ class GetTransacEmailContentEvents implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -297,13 +249,12 @@ class GetTransacEmailContentEvents implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -315,7 +266,6 @@ class GetTransacEmailContentEvents implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -323,15 +273,10 @@ class GetTransacEmailContentEvents implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailsList.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailsList.php similarity index 80% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailsList.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailsList.php index 486ff66..9b18de4 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailsList.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailsList.php @@ -1,4 +1,5 @@ '\SendinBlue\Client\Model\GetTransacEmailsListTransactionalEmails[]' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['transactionalEmails' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacEmailsListTransactionalEmails[]']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'transactionalEmails' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['transactionalEmails' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -78,7 +67,6 @@ class GetTransacEmailsList implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -88,35 +76,25 @@ class GetTransacEmailsList implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'transactionalEmails' => 'transactionalEmails' - ]; - + protected static $attributeMap = ['transactionalEmails' => 'transactionalEmails']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'transactionalEmails' => 'setTransactionalEmails' - ]; - + protected static $setters = ['transactionalEmails' => 'setTransactionalEmails']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'transactionalEmails' => 'getTransactionalEmails' - ]; - + protected static $getters = ['transactionalEmails' => 'getTransactionalEmails']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -127,7 +105,6 @@ class GetTransacEmailsList implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -137,7 +114,6 @@ class GetTransacEmailsList implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -147,7 +123,6 @@ class GetTransacEmailsList implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -157,18 +132,12 @@ class GetTransacEmailsList implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -179,7 +148,6 @@ class GetTransacEmailsList implements ModelInterface, ArrayAccess { $this->container['transactionalEmails'] = isset($data['transactionalEmails']) ? $data['transactionalEmails'] : null; } - /** * Show all the invalid properties with reasons. * @@ -188,10 +156,8 @@ class GetTransacEmailsList implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -200,10 +166,8 @@ class GetTransacEmailsList implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets transactionalEmails * @@ -213,7 +177,6 @@ class GetTransacEmailsList implements ModelInterface, ArrayAccess { return $this->container['transactionalEmails']; } - /** * Sets transactionalEmails * @@ -224,7 +187,6 @@ class GetTransacEmailsList implements ModelInterface, ArrayAccess public function setTransactionalEmails($transactionalEmails) { $this->container['transactionalEmails'] = $transactionalEmails; - return $this; } /** @@ -238,7 +200,6 @@ class GetTransacEmailsList implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -250,7 +211,6 @@ class GetTransacEmailsList implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -261,13 +221,12 @@ class GetTransacEmailsList implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -279,7 +238,6 @@ class GetTransacEmailsList implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -287,15 +245,10 @@ class GetTransacEmailsList implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailsListTransactionalEmails.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailsListTransactionalEmails.php similarity index 74% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailsListTransactionalEmails.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailsListTransactionalEmails.php index e27ef85..258030e 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailsListTransactionalEmails.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacEmailsListTransactionalEmails.php @@ -1,4 +1,5 @@ 'string', - 'subject' => 'string', - 'templateId' => 'int', - 'messageId' => 'string', - 'uuid' => 'string', - 'date' => '\DateTime' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['email' => 'string', 'subject' => 'string', 'templateId' => 'int', 'messageId' => 'string', 'uuid' => 'string', 'date' => '\\DateTime', 'from' => 'string', 'tags' => 'string[]']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'email' => 'email', - 'subject' => null, - 'templateId' => 'int64', - 'messageId' => null, - 'uuid' => null, - 'date' => 'date-time' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['email' => 'email', 'subject' => null, 'templateId' => 'int64', 'messageId' => null, 'uuid' => null, 'date' => 'date-time', 'from' => 'email', 'tags' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -88,7 +67,6 @@ class GetTransacEmailsListTransactionalEmails implements ModelInterface, ArrayAc { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -98,50 +76,25 @@ class GetTransacEmailsListTransactionalEmails implements ModelInterface, ArrayAc { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'email' => 'email', - 'subject' => 'subject', - 'templateId' => 'templateId', - 'messageId' => 'messageId', - 'uuid' => 'uuid', - 'date' => 'date' - ]; - + protected static $attributeMap = ['email' => 'email', 'subject' => 'subject', 'templateId' => 'templateId', 'messageId' => 'messageId', 'uuid' => 'uuid', 'date' => 'date', 'from' => 'from', 'tags' => 'tags']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'email' => 'setEmail', - 'subject' => 'setSubject', - 'templateId' => 'setTemplateId', - 'messageId' => 'setMessageId', - 'uuid' => 'setUuid', - 'date' => 'setDate' - ]; - + protected static $setters = ['email' => 'setEmail', 'subject' => 'setSubject', 'templateId' => 'setTemplateId', 'messageId' => 'setMessageId', 'uuid' => 'setUuid', 'date' => 'setDate', 'from' => 'setFrom', 'tags' => 'setTags']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'email' => 'getEmail', - 'subject' => 'getSubject', - 'templateId' => 'getTemplateId', - 'messageId' => 'getMessageId', - 'uuid' => 'getUuid', - 'date' => 'getDate' - ]; - + protected static $getters = ['email' => 'getEmail', 'subject' => 'getSubject', 'templateId' => 'getTemplateId', 'messageId' => 'getMessageId', 'uuid' => 'getUuid', 'date' => 'getDate', 'from' => 'getFrom', 'tags' => 'getTags']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -152,7 +105,6 @@ class GetTransacEmailsListTransactionalEmails implements ModelInterface, ArrayAc { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -162,7 +114,6 @@ class GetTransacEmailsListTransactionalEmails implements ModelInterface, ArrayAc { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -172,7 +123,6 @@ class GetTransacEmailsListTransactionalEmails implements ModelInterface, ArrayAc { return self::$getters; } - /** * The original name of the model. * @@ -182,18 +132,12 @@ class GetTransacEmailsListTransactionalEmails implements ModelInterface, ArrayAc { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -208,8 +152,9 @@ class GetTransacEmailsListTransactionalEmails implements ModelInterface, ArrayAc $this->container['messageId'] = isset($data['messageId']) ? $data['messageId'] : null; $this->container['uuid'] = isset($data['uuid']) ? $data['uuid'] : null; $this->container['date'] = isset($data['date']) ? $data['date'] : null; + $this->container['from'] = isset($data['from']) ? $data['from'] : null; + $this->container['tags'] = isset($data['tags']) ? $data['tags'] : null; } - /** * Show all the invalid properties with reasons. * @@ -218,7 +163,6 @@ class GetTransacEmailsListTransactionalEmails implements ModelInterface, ArrayAc public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['email'] === null) { $invalidProperties[] = "'email' can't be null"; } @@ -236,7 +180,6 @@ class GetTransacEmailsListTransactionalEmails implements ModelInterface, ArrayAc } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -245,10 +188,8 @@ class GetTransacEmailsListTransactionalEmails implements ModelInterface, ArrayAc */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets email * @@ -258,7 +199,6 @@ class GetTransacEmailsListTransactionalEmails implements ModelInterface, ArrayAc { return $this->container['email']; } - /** * Sets email * @@ -269,10 +209,8 @@ class GetTransacEmailsListTransactionalEmails implements ModelInterface, ArrayAc public function setEmail($email) { $this->container['email'] = $email; - return $this; } - /** * Gets subject * @@ -282,7 +220,6 @@ class GetTransacEmailsListTransactionalEmails implements ModelInterface, ArrayAc { return $this->container['subject']; } - /** * Sets subject * @@ -293,10 +230,8 @@ class GetTransacEmailsListTransactionalEmails implements ModelInterface, ArrayAc public function setSubject($subject) { $this->container['subject'] = $subject; - return $this; } - /** * Gets templateId * @@ -306,7 +241,6 @@ class GetTransacEmailsListTransactionalEmails implements ModelInterface, ArrayAc { return $this->container['templateId']; } - /** * Sets templateId * @@ -317,10 +251,8 @@ class GetTransacEmailsListTransactionalEmails implements ModelInterface, ArrayAc public function setTemplateId($templateId) { $this->container['templateId'] = $templateId; - return $this; } - /** * Gets messageId * @@ -330,7 +262,6 @@ class GetTransacEmailsListTransactionalEmails implements ModelInterface, ArrayAc { return $this->container['messageId']; } - /** * Sets messageId * @@ -341,10 +272,8 @@ class GetTransacEmailsListTransactionalEmails implements ModelInterface, ArrayAc public function setMessageId($messageId) { $this->container['messageId'] = $messageId; - return $this; } - /** * Gets uuid * @@ -354,7 +283,6 @@ class GetTransacEmailsListTransactionalEmails implements ModelInterface, ArrayAc { return $this->container['uuid']; } - /** * Sets uuid * @@ -365,10 +293,8 @@ class GetTransacEmailsListTransactionalEmails implements ModelInterface, ArrayAc public function setUuid($uuid) { $this->container['uuid'] = $uuid; - return $this; } - /** * Gets date * @@ -378,7 +304,6 @@ class GetTransacEmailsListTransactionalEmails implements ModelInterface, ArrayAc { return $this->container['date']; } - /** * Sets date * @@ -389,7 +314,48 @@ class GetTransacEmailsListTransactionalEmails implements ModelInterface, ArrayAc public function setDate($date) { $this->container['date'] = $date; - + return $this; + } + /** + * Gets from + * + * @return string + */ + public function getFrom() + { + return $this->container['from']; + } + /** + * Sets from + * + * @param string $from Email address of the sender from which the email was sent + * + * @return $this + */ + public function setFrom($from) + { + $this->container['from'] = $from; + return $this; + } + /** + * Gets tags + * + * @return string[] + */ + public function getTags() + { + return $this->container['tags']; + } + /** + * Sets tags + * + * @param string[] $tags Tags used for your email + * + * @return $this + */ + public function setTags($tags) + { + $this->container['tags'] = $tags; return $this; } /** @@ -403,7 +369,6 @@ class GetTransacEmailsListTransactionalEmails implements ModelInterface, ArrayAc { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -415,7 +380,6 @@ class GetTransacEmailsListTransactionalEmails implements ModelInterface, ArrayAc { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -426,13 +390,12 @@ class GetTransacEmailsListTransactionalEmails implements ModelInterface, ArrayAc */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -444,7 +407,6 @@ class GetTransacEmailsListTransactionalEmails implements ModelInterface, ArrayAc { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -452,15 +414,10 @@ class GetTransacEmailsListTransactionalEmails implements ModelInterface, ArrayAc */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacSmsReport.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacSmsReport.php similarity index 81% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacSmsReport.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacSmsReport.php index 24767e0..321506a 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacSmsReport.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacSmsReport.php @@ -1,4 +1,5 @@ '\SendinBlue\Client\Model\GetTransacSmsReportReports[]' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['reports' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\GetTransacSmsReportReports[]']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'reports' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['reports' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -78,7 +67,6 @@ class GetTransacSmsReport implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -88,35 +76,25 @@ class GetTransacSmsReport implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'reports' => 'reports' - ]; - + protected static $attributeMap = ['reports' => 'reports']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'reports' => 'setReports' - ]; - + protected static $setters = ['reports' => 'setReports']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'reports' => 'getReports' - ]; - + protected static $getters = ['reports' => 'getReports']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -127,7 +105,6 @@ class GetTransacSmsReport implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -137,7 +114,6 @@ class GetTransacSmsReport implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -147,7 +123,6 @@ class GetTransacSmsReport implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -157,18 +132,12 @@ class GetTransacSmsReport implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -179,7 +148,6 @@ class GetTransacSmsReport implements ModelInterface, ArrayAccess { $this->container['reports'] = isset($data['reports']) ? $data['reports'] : null; } - /** * Show all the invalid properties with reasons. * @@ -188,10 +156,8 @@ class GetTransacSmsReport implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -200,10 +166,8 @@ class GetTransacSmsReport implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets reports * @@ -213,7 +177,6 @@ class GetTransacSmsReport implements ModelInterface, ArrayAccess { return $this->container['reports']; } - /** * Sets reports * @@ -224,7 +187,6 @@ class GetTransacSmsReport implements ModelInterface, ArrayAccess public function setReports($reports) { $this->container['reports'] = $reports; - return $this; } /** @@ -238,7 +200,6 @@ class GetTransacSmsReport implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -250,7 +211,6 @@ class GetTransacSmsReport implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -261,13 +221,12 @@ class GetTransacSmsReport implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -279,7 +238,6 @@ class GetTransacSmsReport implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -287,15 +245,10 @@ class GetTransacSmsReport implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacSmsReportReports.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacSmsReportReports.php similarity index 80% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacSmsReportReports.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacSmsReportReports.php index 8cf6600..3bd4222 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetTransacSmsReportReports.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetTransacSmsReportReports.php @@ -1,4 +1,5 @@ '\DateTime', - 'requests' => 'int', - 'delivered' => 'int', - 'hardBounces' => 'int', - 'softBounces' => 'int', - 'blocked' => 'int', - 'unsubscribed' => 'int', - 'replied' => 'int', - 'accepted' => 'int', - 'rejected' => 'int' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['date' => '\\DateTime', 'requests' => 'int', 'delivered' => 'int', 'hardBounces' => 'int', 'softBounces' => 'int', 'blocked' => 'int', 'unsubscribed' => 'int', 'replied' => 'int', 'accepted' => 'int', 'rejected' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'date' => 'date', - 'requests' => 'int64', - 'delivered' => 'int64', - 'hardBounces' => 'int64', - 'softBounces' => 'int64', - 'blocked' => 'int64', - 'unsubscribed' => 'int64', - 'replied' => 'int64', - 'accepted' => 'int64', - 'rejected' => 'int64' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['date' => 'date', 'requests' => 'int64', 'delivered' => 'int64', 'hardBounces' => 'int64', 'softBounces' => 'int64', 'blocked' => 'int64', 'unsubscribed' => 'int64', 'replied' => 'int64', 'accepted' => 'int64', 'rejected' => 'int64']; /** * Array of property to type mappings. Used for (de)serialization * @@ -96,7 +67,6 @@ class GetTransacSmsReportReports implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -106,62 +76,25 @@ class GetTransacSmsReportReports implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'date' => 'date', - 'requests' => 'requests', - 'delivered' => 'delivered', - 'hardBounces' => 'hardBounces', - 'softBounces' => 'softBounces', - 'blocked' => 'blocked', - 'unsubscribed' => 'unsubscribed', - 'replied' => 'replied', - 'accepted' => 'accepted', - 'rejected' => 'rejected' - ]; - + protected static $attributeMap = ['date' => 'date', 'requests' => 'requests', 'delivered' => 'delivered', 'hardBounces' => 'hardBounces', 'softBounces' => 'softBounces', 'blocked' => 'blocked', 'unsubscribed' => 'unsubscribed', 'replied' => 'replied', 'accepted' => 'accepted', 'rejected' => 'rejected']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'date' => 'setDate', - 'requests' => 'setRequests', - 'delivered' => 'setDelivered', - 'hardBounces' => 'setHardBounces', - 'softBounces' => 'setSoftBounces', - 'blocked' => 'setBlocked', - 'unsubscribed' => 'setUnsubscribed', - 'replied' => 'setReplied', - 'accepted' => 'setAccepted', - 'rejected' => 'setRejected' - ]; - + protected static $setters = ['date' => 'setDate', 'requests' => 'setRequests', 'delivered' => 'setDelivered', 'hardBounces' => 'setHardBounces', 'softBounces' => 'setSoftBounces', 'blocked' => 'setBlocked', 'unsubscribed' => 'setUnsubscribed', 'replied' => 'setReplied', 'accepted' => 'setAccepted', 'rejected' => 'setRejected']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'date' => 'getDate', - 'requests' => 'getRequests', - 'delivered' => 'getDelivered', - 'hardBounces' => 'getHardBounces', - 'softBounces' => 'getSoftBounces', - 'blocked' => 'getBlocked', - 'unsubscribed' => 'getUnsubscribed', - 'replied' => 'getReplied', - 'accepted' => 'getAccepted', - 'rejected' => 'getRejected' - ]; - + protected static $getters = ['date' => 'getDate', 'requests' => 'getRequests', 'delivered' => 'getDelivered', 'hardBounces' => 'getHardBounces', 'softBounces' => 'getSoftBounces', 'blocked' => 'getBlocked', 'unsubscribed' => 'getUnsubscribed', 'replied' => 'getReplied', 'accepted' => 'getAccepted', 'rejected' => 'getRejected']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -172,7 +105,6 @@ class GetTransacSmsReportReports implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -182,7 +114,6 @@ class GetTransacSmsReportReports implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -192,7 +123,6 @@ class GetTransacSmsReportReports implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -202,18 +132,12 @@ class GetTransacSmsReportReports implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -233,7 +157,6 @@ class GetTransacSmsReportReports implements ModelInterface, ArrayAccess $this->container['accepted'] = isset($data['accepted']) ? $data['accepted'] : null; $this->container['rejected'] = isset($data['rejected']) ? $data['rejected'] : null; } - /** * Show all the invalid properties with reasons. * @@ -242,7 +165,6 @@ class GetTransacSmsReportReports implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['date'] === null) { $invalidProperties[] = "'date' can't be null"; } @@ -275,7 +197,6 @@ class GetTransacSmsReportReports implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -284,10 +205,8 @@ class GetTransacSmsReportReports implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets date * @@ -297,7 +216,6 @@ class GetTransacSmsReportReports implements ModelInterface, ArrayAccess { return $this->container['date']; } - /** * Sets date * @@ -308,10 +226,8 @@ class GetTransacSmsReportReports implements ModelInterface, ArrayAccess public function setDate($date) { $this->container['date'] = $date; - return $this; } - /** * Gets requests * @@ -321,7 +237,6 @@ class GetTransacSmsReportReports implements ModelInterface, ArrayAccess { return $this->container['requests']; } - /** * Sets requests * @@ -332,10 +247,8 @@ class GetTransacSmsReportReports implements ModelInterface, ArrayAccess public function setRequests($requests) { $this->container['requests'] = $requests; - return $this; } - /** * Gets delivered * @@ -345,7 +258,6 @@ class GetTransacSmsReportReports implements ModelInterface, ArrayAccess { return $this->container['delivered']; } - /** * Sets delivered * @@ -356,10 +268,8 @@ class GetTransacSmsReportReports implements ModelInterface, ArrayAccess public function setDelivered($delivered) { $this->container['delivered'] = $delivered; - return $this; } - /** * Gets hardBounces * @@ -369,7 +279,6 @@ class GetTransacSmsReportReports implements ModelInterface, ArrayAccess { return $this->container['hardBounces']; } - /** * Sets hardBounces * @@ -380,10 +289,8 @@ class GetTransacSmsReportReports implements ModelInterface, ArrayAccess public function setHardBounces($hardBounces) { $this->container['hardBounces'] = $hardBounces; - return $this; } - /** * Gets softBounces * @@ -393,7 +300,6 @@ class GetTransacSmsReportReports implements ModelInterface, ArrayAccess { return $this->container['softBounces']; } - /** * Sets softBounces * @@ -404,10 +310,8 @@ class GetTransacSmsReportReports implements ModelInterface, ArrayAccess public function setSoftBounces($softBounces) { $this->container['softBounces'] = $softBounces; - return $this; } - /** * Gets blocked * @@ -417,7 +321,6 @@ class GetTransacSmsReportReports implements ModelInterface, ArrayAccess { return $this->container['blocked']; } - /** * Sets blocked * @@ -428,10 +331,8 @@ class GetTransacSmsReportReports implements ModelInterface, ArrayAccess public function setBlocked($blocked) { $this->container['blocked'] = $blocked; - return $this; } - /** * Gets unsubscribed * @@ -441,7 +342,6 @@ class GetTransacSmsReportReports implements ModelInterface, ArrayAccess { return $this->container['unsubscribed']; } - /** * Sets unsubscribed * @@ -452,10 +352,8 @@ class GetTransacSmsReportReports implements ModelInterface, ArrayAccess public function setUnsubscribed($unsubscribed) { $this->container['unsubscribed'] = $unsubscribed; - return $this; } - /** * Gets replied * @@ -465,7 +363,6 @@ class GetTransacSmsReportReports implements ModelInterface, ArrayAccess { return $this->container['replied']; } - /** * Sets replied * @@ -476,10 +373,8 @@ class GetTransacSmsReportReports implements ModelInterface, ArrayAccess public function setReplied($replied) { $this->container['replied'] = $replied; - return $this; } - /** * Gets accepted * @@ -489,7 +384,6 @@ class GetTransacSmsReportReports implements ModelInterface, ArrayAccess { return $this->container['accepted']; } - /** * Sets accepted * @@ -500,10 +394,8 @@ class GetTransacSmsReportReports implements ModelInterface, ArrayAccess public function setAccepted($accepted) { $this->container['accepted'] = $accepted; - return $this; } - /** * Gets rejected * @@ -513,7 +405,6 @@ class GetTransacSmsReportReports implements ModelInterface, ArrayAccess { return $this->container['rejected']; } - /** * Sets rejected * @@ -524,7 +415,6 @@ class GetTransacSmsReportReports implements ModelInterface, ArrayAccess public function setRejected($rejected) { $this->container['rejected'] = $rejected; - return $this; } /** @@ -538,7 +428,6 @@ class GetTransacSmsReportReports implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -550,7 +439,6 @@ class GetTransacSmsReportReports implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -561,13 +449,12 @@ class GetTransacSmsReportReports implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -579,7 +466,6 @@ class GetTransacSmsReportReports implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -587,15 +473,10 @@ class GetTransacSmsReportReports implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetWebhook.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetWebhook.php similarity index 77% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetWebhook.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetWebhook.php index fdccd4c..2fa1a6b 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetWebhook.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetWebhook.php @@ -1,4 +1,5 @@ 'string', - 'id' => 'int', - 'description' => 'string', - 'events' => 'string[]', - 'type' => 'string', - 'createdAt' => '\DateTime', - 'modifiedAt' => '\DateTime' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['url' => 'string', 'id' => 'int', 'description' => 'string', 'events' => 'string[]', 'type' => 'string', 'createdAt' => '\\DateTime', 'modifiedAt' => '\\DateTime']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'url' => 'url', - 'id' => 'int64', - 'description' => null, - 'events' => null, - 'type' => null, - 'createdAt' => 'date-time', - 'modifiedAt' => 'date-time' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['url' => 'url', 'id' => 'int64', 'description' => null, 'events' => null, 'type' => null, 'createdAt' => 'date-time', 'modifiedAt' => 'date-time']; /** * Array of property to type mappings. Used for (de)serialization * @@ -90,7 +67,6 @@ class GetWebhook implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -100,53 +76,25 @@ class GetWebhook implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'url' => 'url', - 'id' => 'id', - 'description' => 'description', - 'events' => 'events', - 'type' => 'type', - 'createdAt' => 'createdAt', - 'modifiedAt' => 'modifiedAt' - ]; - + protected static $attributeMap = ['url' => 'url', 'id' => 'id', 'description' => 'description', 'events' => 'events', 'type' => 'type', 'createdAt' => 'createdAt', 'modifiedAt' => 'modifiedAt']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'url' => 'setUrl', - 'id' => 'setId', - 'description' => 'setDescription', - 'events' => 'setEvents', - 'type' => 'setType', - 'createdAt' => 'setCreatedAt', - 'modifiedAt' => 'setModifiedAt' - ]; - + protected static $setters = ['url' => 'setUrl', 'id' => 'setId', 'description' => 'setDescription', 'events' => 'setEvents', 'type' => 'setType', 'createdAt' => 'setCreatedAt', 'modifiedAt' => 'setModifiedAt']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'url' => 'getUrl', - 'id' => 'getId', - 'description' => 'getDescription', - 'events' => 'getEvents', - 'type' => 'getType', - 'createdAt' => 'getCreatedAt', - 'modifiedAt' => 'getModifiedAt' - ]; - + protected static $getters = ['url' => 'getUrl', 'id' => 'getId', 'description' => 'getDescription', 'events' => 'getEvents', 'type' => 'getType', 'createdAt' => 'getCreatedAt', 'modifiedAt' => 'getModifiedAt']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -157,7 +105,6 @@ class GetWebhook implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -167,7 +114,6 @@ class GetWebhook implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -177,7 +123,6 @@ class GetWebhook implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -187,12 +132,8 @@ class GetWebhook implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - const TYPE_MARKETING = 'marketing'; const TYPE_TRANSAC = 'transac'; - - - /** * Gets allowable values of the enum * @@ -200,20 +141,14 @@ class GetWebhook implements ModelInterface, ArrayAccess */ public function getTypeAllowableValues() { - return [ - self::TYPE_MARKETING, - self::TYPE_TRANSAC, - ]; + return [self::TYPE_MARKETING, self::TYPE_TRANSAC]; } - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -230,7 +165,6 @@ class GetWebhook implements ModelInterface, ArrayAccess $this->container['createdAt'] = isset($data['createdAt']) ? $data['createdAt'] : null; $this->container['modifiedAt'] = isset($data['modifiedAt']) ? $data['modifiedAt'] : null; } - /** * Show all the invalid properties with reasons. * @@ -239,7 +173,6 @@ class GetWebhook implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['url'] === null) { $invalidProperties[] = "'url' can't be null"; } @@ -256,13 +189,9 @@ class GetWebhook implements ModelInterface, ArrayAccess $invalidProperties[] = "'type' can't be null"; } $allowedValues = $this->getTypeAllowableValues(); - if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value for 'type', must be one of '%s'", - implode("', '", $allowedValues) - ); + if (!\is_null($this->container['type']) && !\in_array($this->container['type'], $allowedValues, \true)) { + $invalidProperties[] = \sprintf("invalid value for 'type', must be one of '%s'", \implode("', '", $allowedValues)); } - if ($this->container['createdAt'] === null) { $invalidProperties[] = "'createdAt' can't be null"; } @@ -271,7 +200,6 @@ class GetWebhook implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -280,10 +208,8 @@ class GetWebhook implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets url * @@ -293,7 +219,6 @@ class GetWebhook implements ModelInterface, ArrayAccess { return $this->container['url']; } - /** * Sets url * @@ -304,10 +229,8 @@ class GetWebhook implements ModelInterface, ArrayAccess public function setUrl($url) { $this->container['url'] = $url; - return $this; } - /** * Gets id * @@ -317,7 +240,6 @@ class GetWebhook implements ModelInterface, ArrayAccess { return $this->container['id']; } - /** * Sets id * @@ -328,10 +250,8 @@ class GetWebhook implements ModelInterface, ArrayAccess public function setId($id) { $this->container['id'] = $id; - return $this; } - /** * Gets description * @@ -341,7 +261,6 @@ class GetWebhook implements ModelInterface, ArrayAccess { return $this->container['description']; } - /** * Sets description * @@ -352,10 +271,8 @@ class GetWebhook implements ModelInterface, ArrayAccess public function setDescription($description) { $this->container['description'] = $description; - return $this; } - /** * Gets events * @@ -365,7 +282,6 @@ class GetWebhook implements ModelInterface, ArrayAccess { return $this->container['events']; } - /** * Sets events * @@ -376,10 +292,8 @@ class GetWebhook implements ModelInterface, ArrayAccess public function setEvents($events) { $this->container['events'] = $events; - return $this; } - /** * Gets type * @@ -389,7 +303,6 @@ class GetWebhook implements ModelInterface, ArrayAccess { return $this->container['type']; } - /** * Sets type * @@ -400,19 +313,12 @@ class GetWebhook implements ModelInterface, ArrayAccess public function setType($type) { $allowedValues = $this->getTypeAllowableValues(); - if (!in_array($type, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'type', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); + if (!\in_array($type, $allowedValues, \true)) { + throw new \InvalidArgumentException(\sprintf("Invalid value for 'type', must be one of '%s'", \implode("', '", $allowedValues))); } $this->container['type'] = $type; - return $this; } - /** * Gets createdAt * @@ -422,7 +328,6 @@ class GetWebhook implements ModelInterface, ArrayAccess { return $this->container['createdAt']; } - /** * Sets createdAt * @@ -433,10 +338,8 @@ class GetWebhook implements ModelInterface, ArrayAccess public function setCreatedAt($createdAt) { $this->container['createdAt'] = $createdAt; - return $this; } - /** * Gets modifiedAt * @@ -446,7 +349,6 @@ class GetWebhook implements ModelInterface, ArrayAccess { return $this->container['modifiedAt']; } - /** * Sets modifiedAt * @@ -457,7 +359,6 @@ class GetWebhook implements ModelInterface, ArrayAccess public function setModifiedAt($modifiedAt) { $this->container['modifiedAt'] = $modifiedAt; - return $this; } /** @@ -471,7 +372,6 @@ class GetWebhook implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -483,7 +383,6 @@ class GetWebhook implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -494,13 +393,12 @@ class GetWebhook implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -512,7 +410,6 @@ class GetWebhook implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -520,15 +417,10 @@ class GetWebhook implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetWebhooks.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetWebhooks.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetWebhooks.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetWebhooks.php index ffd15fa..1ba43f7 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/GetWebhooks.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/GetWebhooks.php @@ -1,4 +1,5 @@ 'object[]' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['webhooks' => 'object[]']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'webhooks' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['webhooks' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -78,7 +67,6 @@ class GetWebhooks implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -88,35 +76,25 @@ class GetWebhooks implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'webhooks' => 'webhooks' - ]; - + protected static $attributeMap = ['webhooks' => 'webhooks']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'webhooks' => 'setWebhooks' - ]; - + protected static $setters = ['webhooks' => 'setWebhooks']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'webhooks' => 'getWebhooks' - ]; - + protected static $getters = ['webhooks' => 'getWebhooks']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -127,7 +105,6 @@ class GetWebhooks implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -137,7 +114,6 @@ class GetWebhooks implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -147,7 +123,6 @@ class GetWebhooks implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -157,18 +132,12 @@ class GetWebhooks implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -179,7 +148,6 @@ class GetWebhooks implements ModelInterface, ArrayAccess { $this->container['webhooks'] = isset($data['webhooks']) ? $data['webhooks'] : null; } - /** * Show all the invalid properties with reasons. * @@ -188,13 +156,11 @@ class GetWebhooks implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['webhooks'] === null) { $invalidProperties[] = "'webhooks' can't be null"; } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -203,10 +169,8 @@ class GetWebhooks implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets webhooks * @@ -216,7 +180,6 @@ class GetWebhooks implements ModelInterface, ArrayAccess { return $this->container['webhooks']; } - /** * Sets webhooks * @@ -227,7 +190,6 @@ class GetWebhooks implements ModelInterface, ArrayAccess public function setWebhooks($webhooks) { $this->container['webhooks'] = $webhooks; - return $this; } /** @@ -241,7 +203,6 @@ class GetWebhooks implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -253,7 +214,6 @@ class GetWebhooks implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -264,13 +224,12 @@ class GetWebhooks implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -282,7 +241,6 @@ class GetWebhooks implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -290,15 +248,10 @@ class GetWebhooks implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/ManageIp.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/ManageIp.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/ManageIp.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/ManageIp.php index 60b4616..e7a70ae 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/ManageIp.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/ManageIp.php @@ -1,4 +1,5 @@ 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['ip' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'ip' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['ip' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -78,7 +67,6 @@ class ManageIp implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -88,35 +76,25 @@ class ManageIp implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'ip' => 'ip' - ]; - + protected static $attributeMap = ['ip' => 'ip']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'ip' => 'setIp' - ]; - + protected static $setters = ['ip' => 'setIp']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'ip' => 'getIp' - ]; - + protected static $getters = ['ip' => 'getIp']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -127,7 +105,6 @@ class ManageIp implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -137,7 +114,6 @@ class ManageIp implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -147,7 +123,6 @@ class ManageIp implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -157,18 +132,12 @@ class ManageIp implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -179,7 +148,6 @@ class ManageIp implements ModelInterface, ArrayAccess { $this->container['ip'] = isset($data['ip']) ? $data['ip'] : null; } - /** * Show all the invalid properties with reasons. * @@ -188,10 +156,8 @@ class ManageIp implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -200,10 +166,8 @@ class ManageIp implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets ip * @@ -213,7 +177,6 @@ class ManageIp implements ModelInterface, ArrayAccess { return $this->container['ip']; } - /** * Sets ip * @@ -224,7 +187,6 @@ class ManageIp implements ModelInterface, ArrayAccess public function setIp($ip) { $this->container['ip'] = $ip; - return $this; } /** @@ -238,7 +200,6 @@ class ManageIp implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -250,7 +211,6 @@ class ManageIp implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -261,13 +221,12 @@ class ManageIp implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -279,7 +238,6 @@ class ManageIp implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -287,15 +245,10 @@ class ManageIp implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/ModelInterface.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/ModelInterface.php similarity index 98% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/ModelInterface.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/ModelInterface.php index d87ff71..785be72 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/ModelInterface.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/ModelInterface.php @@ -1,4 +1,5 @@ '\SendinBlue\Client\Model\PostContactInfoContacts' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['contacts' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\PostContactInfoContacts']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'contacts' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['contacts' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -78,7 +67,6 @@ class PostContactInfo implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -88,35 +76,25 @@ class PostContactInfo implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'contacts' => 'contacts' - ]; - + protected static $attributeMap = ['contacts' => 'contacts']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'contacts' => 'setContacts' - ]; - + protected static $setters = ['contacts' => 'setContacts']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'contacts' => 'getContacts' - ]; - + protected static $getters = ['contacts' => 'getContacts']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -127,7 +105,6 @@ class PostContactInfo implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -137,7 +114,6 @@ class PostContactInfo implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -147,7 +123,6 @@ class PostContactInfo implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -157,18 +132,12 @@ class PostContactInfo implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -179,7 +148,6 @@ class PostContactInfo implements ModelInterface, ArrayAccess { $this->container['contacts'] = isset($data['contacts']) ? $data['contacts'] : null; } - /** * Show all the invalid properties with reasons. * @@ -188,13 +156,11 @@ class PostContactInfo implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['contacts'] === null) { $invalidProperties[] = "'contacts' can't be null"; } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -203,10 +169,8 @@ class PostContactInfo implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets contacts * @@ -216,7 +180,6 @@ class PostContactInfo implements ModelInterface, ArrayAccess { return $this->container['contacts']; } - /** * Sets contacts * @@ -227,7 +190,6 @@ class PostContactInfo implements ModelInterface, ArrayAccess public function setContacts($contacts) { $this->container['contacts'] = $contacts; - return $this; } /** @@ -241,7 +203,6 @@ class PostContactInfo implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -253,7 +214,6 @@ class PostContactInfo implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -264,13 +224,12 @@ class PostContactInfo implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -282,7 +241,6 @@ class PostContactInfo implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -290,15 +248,10 @@ class PostContactInfo implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/PostContactInfoContacts.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/PostContactInfoContacts.php similarity index 75% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/PostContactInfoContacts.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/PostContactInfoContacts.php index 196b0b2..dd22586 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/PostContactInfoContacts.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/PostContactInfoContacts.php @@ -1,4 +1,5 @@ 'string[]', - 'failure' => 'string[]', - 'total' => 'int' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['success' => 'string[]', 'failure' => 'string[]', 'total' => 'int', 'processId' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'success' => 'email', - 'failure' => 'email', - 'total' => 'int64' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['success' => 'email', 'failure' => 'email', 'total' => 'int64', 'processId' => 'int64']; /** * Array of property to type mappings. Used for (de)serialization * @@ -82,7 +67,6 @@ class PostContactInfoContacts implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -92,41 +76,25 @@ class PostContactInfoContacts implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'success' => 'success', - 'failure' => 'failure', - 'total' => 'total' - ]; - + protected static $attributeMap = ['success' => 'success', 'failure' => 'failure', 'total' => 'total', 'processId' => 'processId']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'success' => 'setSuccess', - 'failure' => 'setFailure', - 'total' => 'setTotal' - ]; - + protected static $setters = ['success' => 'setSuccess', 'failure' => 'setFailure', 'total' => 'setTotal', 'processId' => 'setProcessId']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'success' => 'getSuccess', - 'failure' => 'getFailure', - 'total' => 'getTotal' - ]; - + protected static $getters = ['success' => 'getSuccess', 'failure' => 'getFailure', 'total' => 'getTotal', 'processId' => 'getProcessId']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -137,7 +105,6 @@ class PostContactInfoContacts implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -147,7 +114,6 @@ class PostContactInfoContacts implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -157,7 +123,6 @@ class PostContactInfoContacts implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -167,18 +132,12 @@ class PostContactInfoContacts implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -190,8 +149,8 @@ class PostContactInfoContacts implements ModelInterface, ArrayAccess $this->container['success'] = isset($data['success']) ? $data['success'] : null; $this->container['failure'] = isset($data['failure']) ? $data['failure'] : null; $this->container['total'] = isset($data['total']) ? $data['total'] : null; + $this->container['processId'] = isset($data['processId']) ? $data['processId'] : null; } - /** * Show all the invalid properties with reasons. * @@ -200,10 +159,8 @@ class PostContactInfoContacts implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -212,10 +169,8 @@ class PostContactInfoContacts implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets success * @@ -225,7 +180,6 @@ class PostContactInfoContacts implements ModelInterface, ArrayAccess { return $this->container['success']; } - /** * Sets success * @@ -236,10 +190,8 @@ class PostContactInfoContacts implements ModelInterface, ArrayAccess public function setSuccess($success) { $this->container['success'] = $success; - return $this; } - /** * Gets failure * @@ -249,7 +201,6 @@ class PostContactInfoContacts implements ModelInterface, ArrayAccess { return $this->container['failure']; } - /** * Sets failure * @@ -260,10 +211,8 @@ class PostContactInfoContacts implements ModelInterface, ArrayAccess public function setFailure($failure) { $this->container['failure'] = $failure; - return $this; } - /** * Gets total * @@ -273,7 +222,6 @@ class PostContactInfoContacts implements ModelInterface, ArrayAccess { return $this->container['total']; } - /** * Sets total * @@ -284,7 +232,27 @@ class PostContactInfoContacts implements ModelInterface, ArrayAccess public function setTotal($total) { $this->container['total'] = $total; - + return $this; + } + /** + * Gets processId + * + * @return int + */ + public function getProcessId() + { + return $this->container['processId']; + } + /** + * Sets processId + * + * @param int $processId Id of the process created to remove contacts from list when user opts for \"all\" option. + * + * @return $this + */ + public function setProcessId($processId) + { + $this->container['processId'] = $processId; return $this; } /** @@ -298,7 +266,6 @@ class PostContactInfoContacts implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -310,7 +277,6 @@ class PostContactInfoContacts implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -321,13 +287,12 @@ class PostContactInfoContacts implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -339,7 +304,6 @@ class PostContactInfoContacts implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -347,15 +311,10 @@ class PostContactInfoContacts implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/PostSendFailed.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/PostSendFailed.php similarity index 79% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/PostSendFailed.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/PostSendFailed.php index 34c3f03..8428b45 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/PostSendFailed.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/PostSendFailed.php @@ -1,4 +1,5 @@ 'int', - 'message' => 'string', - 'unexistingEmails' => 'string[]', - 'withoutListEmails' => 'string[]', - 'blackListedEmails' => 'string[]' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['code' => 'int', 'message' => 'string', 'unexistingEmails' => 'string[]', 'withoutListEmails' => 'string[]', 'blackListedEmails' => 'string[]']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'code' => 'int64', - 'message' => null, - 'unexistingEmails' => 'email', - 'withoutListEmails' => 'email', - 'blackListedEmails' => 'email' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['code' => 'int64', 'message' => null, 'unexistingEmails' => 'email', 'withoutListEmails' => 'email', 'blackListedEmails' => 'email']; /** * Array of property to type mappings. Used for (de)serialization * @@ -86,7 +67,6 @@ class PostSendFailed implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -96,47 +76,25 @@ class PostSendFailed implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'unexistingEmails' => 'unexistingEmails', - 'withoutListEmails' => 'withoutListEmails', - 'blackListedEmails' => 'blackListedEmails' - ]; - + protected static $attributeMap = ['code' => 'code', 'message' => 'message', 'unexistingEmails' => 'unexistingEmails', 'withoutListEmails' => 'withoutListEmails', 'blackListedEmails' => 'blackListedEmails']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'unexistingEmails' => 'setUnexistingEmails', - 'withoutListEmails' => 'setWithoutListEmails', - 'blackListedEmails' => 'setBlackListedEmails' - ]; - + protected static $setters = ['code' => 'setCode', 'message' => 'setMessage', 'unexistingEmails' => 'setUnexistingEmails', 'withoutListEmails' => 'setWithoutListEmails', 'blackListedEmails' => 'setBlackListedEmails']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'unexistingEmails' => 'getUnexistingEmails', - 'withoutListEmails' => 'getWithoutListEmails', - 'blackListedEmails' => 'getBlackListedEmails' - ]; - + protected static $getters = ['code' => 'getCode', 'message' => 'getMessage', 'unexistingEmails' => 'getUnexistingEmails', 'withoutListEmails' => 'getWithoutListEmails', 'blackListedEmails' => 'getBlackListedEmails']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -147,7 +105,6 @@ class PostSendFailed implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -157,7 +114,6 @@ class PostSendFailed implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -167,7 +123,6 @@ class PostSendFailed implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -177,18 +132,12 @@ class PostSendFailed implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -203,7 +152,6 @@ class PostSendFailed implements ModelInterface, ArrayAccess $this->container['withoutListEmails'] = isset($data['withoutListEmails']) ? $data['withoutListEmails'] : null; $this->container['blackListedEmails'] = isset($data['blackListedEmails']) ? $data['blackListedEmails'] : null; } - /** * Show all the invalid properties with reasons. * @@ -212,7 +160,6 @@ class PostSendFailed implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['code'] === null) { $invalidProperties[] = "'code' can't be null"; } @@ -221,7 +168,6 @@ class PostSendFailed implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -230,10 +176,8 @@ class PostSendFailed implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets code * @@ -243,7 +187,6 @@ class PostSendFailed implements ModelInterface, ArrayAccess { return $this->container['code']; } - /** * Sets code * @@ -254,10 +197,8 @@ class PostSendFailed implements ModelInterface, ArrayAccess public function setCode($code) { $this->container['code'] = $code; - return $this; } - /** * Gets message * @@ -267,7 +208,6 @@ class PostSendFailed implements ModelInterface, ArrayAccess { return $this->container['message']; } - /** * Sets message * @@ -278,10 +218,8 @@ class PostSendFailed implements ModelInterface, ArrayAccess public function setMessage($message) { $this->container['message'] = $message; - return $this; } - /** * Gets unexistingEmails * @@ -291,7 +229,6 @@ class PostSendFailed implements ModelInterface, ArrayAccess { return $this->container['unexistingEmails']; } - /** * Sets unexistingEmails * @@ -302,10 +239,8 @@ class PostSendFailed implements ModelInterface, ArrayAccess public function setUnexistingEmails($unexistingEmails) { $this->container['unexistingEmails'] = $unexistingEmails; - return $this; } - /** * Gets withoutListEmails * @@ -315,7 +250,6 @@ class PostSendFailed implements ModelInterface, ArrayAccess { return $this->container['withoutListEmails']; } - /** * Sets withoutListEmails * @@ -326,10 +260,8 @@ class PostSendFailed implements ModelInterface, ArrayAccess public function setWithoutListEmails($withoutListEmails) { $this->container['withoutListEmails'] = $withoutListEmails; - return $this; } - /** * Gets blackListedEmails * @@ -339,7 +271,6 @@ class PostSendFailed implements ModelInterface, ArrayAccess { return $this->container['blackListedEmails']; } - /** * Sets blackListedEmails * @@ -350,7 +281,6 @@ class PostSendFailed implements ModelInterface, ArrayAccess public function setBlackListedEmails($blackListedEmails) { $this->container['blackListedEmails'] = $blackListedEmails; - return $this; } /** @@ -364,7 +294,6 @@ class PostSendFailed implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -376,7 +305,6 @@ class PostSendFailed implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -387,13 +315,12 @@ class PostSendFailed implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -405,7 +332,6 @@ class PostSendFailed implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -413,15 +339,10 @@ class PostSendFailed implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/PostSendSmsTestFailed.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/PostSendSmsTestFailed.php similarity index 80% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/PostSendSmsTestFailed.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/PostSendSmsTestFailed.php index 9c632eb..18706ca 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/PostSendSmsTestFailed.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/PostSendSmsTestFailed.php @@ -1,4 +1,5 @@ 'int', - 'message' => 'string', - 'unexistingSms' => 'string[]', - 'withoutListSms' => 'string[]' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['code' => 'int', 'message' => 'string', 'unexistingSms' => 'string[]', 'withoutListSms' => 'string[]']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'code' => 'int64', - 'message' => null, - 'unexistingSms' => 'email', - 'withoutListSms' => 'email' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['code' => 'int64', 'message' => null, 'unexistingSms' => 'email', 'withoutListSms' => 'email']; /** * Array of property to type mappings. Used for (de)serialization * @@ -84,7 +67,6 @@ class PostSendSmsTestFailed implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -94,44 +76,25 @@ class PostSendSmsTestFailed implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'code' => 'code', - 'message' => 'message', - 'unexistingSms' => 'unexistingSms', - 'withoutListSms' => 'withoutListSms' - ]; - + protected static $attributeMap = ['code' => 'code', 'message' => 'message', 'unexistingSms' => 'unexistingSms', 'withoutListSms' => 'withoutListSms']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'code' => 'setCode', - 'message' => 'setMessage', - 'unexistingSms' => 'setUnexistingSms', - 'withoutListSms' => 'setWithoutListSms' - ]; - + protected static $setters = ['code' => 'setCode', 'message' => 'setMessage', 'unexistingSms' => 'setUnexistingSms', 'withoutListSms' => 'setWithoutListSms']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'code' => 'getCode', - 'message' => 'getMessage', - 'unexistingSms' => 'getUnexistingSms', - 'withoutListSms' => 'getWithoutListSms' - ]; - + protected static $getters = ['code' => 'getCode', 'message' => 'getMessage', 'unexistingSms' => 'getUnexistingSms', 'withoutListSms' => 'getWithoutListSms']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -142,7 +105,6 @@ class PostSendSmsTestFailed implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -152,7 +114,6 @@ class PostSendSmsTestFailed implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -162,7 +123,6 @@ class PostSendSmsTestFailed implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -172,18 +132,12 @@ class PostSendSmsTestFailed implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -197,7 +151,6 @@ class PostSendSmsTestFailed implements ModelInterface, ArrayAccess $this->container['unexistingSms'] = isset($data['unexistingSms']) ? $data['unexistingSms'] : null; $this->container['withoutListSms'] = isset($data['withoutListSms']) ? $data['withoutListSms'] : null; } - /** * Show all the invalid properties with reasons. * @@ -206,7 +159,6 @@ class PostSendSmsTestFailed implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['code'] === null) { $invalidProperties[] = "'code' can't be null"; } @@ -215,7 +167,6 @@ class PostSendSmsTestFailed implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -224,10 +175,8 @@ class PostSendSmsTestFailed implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets code * @@ -237,7 +186,6 @@ class PostSendSmsTestFailed implements ModelInterface, ArrayAccess { return $this->container['code']; } - /** * Sets code * @@ -248,10 +196,8 @@ class PostSendSmsTestFailed implements ModelInterface, ArrayAccess public function setCode($code) { $this->container['code'] = $code; - return $this; } - /** * Gets message * @@ -261,7 +207,6 @@ class PostSendSmsTestFailed implements ModelInterface, ArrayAccess { return $this->container['message']; } - /** * Sets message * @@ -272,10 +217,8 @@ class PostSendSmsTestFailed implements ModelInterface, ArrayAccess public function setMessage($message) { $this->container['message'] = $message; - return $this; } - /** * Gets unexistingSms * @@ -285,7 +228,6 @@ class PostSendSmsTestFailed implements ModelInterface, ArrayAccess { return $this->container['unexistingSms']; } - /** * Sets unexistingSms * @@ -296,10 +238,8 @@ class PostSendSmsTestFailed implements ModelInterface, ArrayAccess public function setUnexistingSms($unexistingSms) { $this->container['unexistingSms'] = $unexistingSms; - return $this; } - /** * Gets withoutListSms * @@ -309,7 +249,6 @@ class PostSendSmsTestFailed implements ModelInterface, ArrayAccess { return $this->container['withoutListSms']; } - /** * Sets withoutListSms * @@ -320,7 +259,6 @@ class PostSendSmsTestFailed implements ModelInterface, ArrayAccess public function setWithoutListSms($withoutListSms) { $this->container['withoutListSms'] = $withoutListSms; - return $this; } /** @@ -334,7 +272,6 @@ class PostSendSmsTestFailed implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -346,7 +283,6 @@ class PostSendSmsTestFailed implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -357,13 +293,12 @@ class PostSendSmsTestFailed implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -375,7 +310,6 @@ class PostSendSmsTestFailed implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -383,15 +317,10 @@ class PostSendSmsTestFailed implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RemainingCreditModel.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RemainingCreditModel.php similarity index 81% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RemainingCreditModel.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RemainingCreditModel.php index 64d3ce4..52b2c98 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RemainingCreditModel.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RemainingCreditModel.php @@ -1,4 +1,5 @@ '\SendinBlue\Client\Model\RemainingCreditModelChild', - 'reseller' => '\SendinBlue\Client\Model\RemainingCreditModelReseller' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['child' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RemainingCreditModelChild', 'reseller' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RemainingCreditModelReseller']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'child' => null, - 'reseller' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['child' => null, 'reseller' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -80,7 +67,6 @@ class RemainingCreditModel implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -90,38 +76,25 @@ class RemainingCreditModel implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'child' => 'child', - 'reseller' => 'reseller' - ]; - + protected static $attributeMap = ['child' => 'child', 'reseller' => 'reseller']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'child' => 'setChild', - 'reseller' => 'setReseller' - ]; - + protected static $setters = ['child' => 'setChild', 'reseller' => 'setReseller']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'child' => 'getChild', - 'reseller' => 'getReseller' - ]; - + protected static $getters = ['child' => 'getChild', 'reseller' => 'getReseller']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -132,7 +105,6 @@ class RemainingCreditModel implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -142,7 +114,6 @@ class RemainingCreditModel implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -152,7 +123,6 @@ class RemainingCreditModel implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -162,18 +132,12 @@ class RemainingCreditModel implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -185,7 +149,6 @@ class RemainingCreditModel implements ModelInterface, ArrayAccess $this->container['child'] = isset($data['child']) ? $data['child'] : null; $this->container['reseller'] = isset($data['reseller']) ? $data['reseller'] : null; } - /** * Show all the invalid properties with reasons. * @@ -194,7 +157,6 @@ class RemainingCreditModel implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['child'] === null) { $invalidProperties[] = "'child' can't be null"; } @@ -203,7 +165,6 @@ class RemainingCreditModel implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -212,10 +173,8 @@ class RemainingCreditModel implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets child * @@ -225,7 +184,6 @@ class RemainingCreditModel implements ModelInterface, ArrayAccess { return $this->container['child']; } - /** * Sets child * @@ -236,10 +194,8 @@ class RemainingCreditModel implements ModelInterface, ArrayAccess public function setChild($child) { $this->container['child'] = $child; - return $this; } - /** * Gets reseller * @@ -249,7 +205,6 @@ class RemainingCreditModel implements ModelInterface, ArrayAccess { return $this->container['reseller']; } - /** * Sets reseller * @@ -260,7 +215,6 @@ class RemainingCreditModel implements ModelInterface, ArrayAccess public function setReseller($reseller) { $this->container['reseller'] = $reseller; - return $this; } /** @@ -274,7 +228,6 @@ class RemainingCreditModel implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -286,7 +239,6 @@ class RemainingCreditModel implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -297,13 +249,12 @@ class RemainingCreditModel implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -315,7 +266,6 @@ class RemainingCreditModel implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -323,15 +273,10 @@ class RemainingCreditModel implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RemainingCreditModelChild.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RemainingCreditModelChild.php similarity index 80% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RemainingCreditModelChild.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RemainingCreditModelChild.php index e203b97..64e2724 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RemainingCreditModelChild.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RemainingCreditModelChild.php @@ -1,4 +1,5 @@ 'int', - 'email' => 'int' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['sms' => 'double', 'email' => 'double']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'sms' => 'int64', - 'email' => 'int64' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['sms' => 'double', 'email' => 'double']; /** * Array of property to type mappings. Used for (de)serialization * @@ -81,7 +68,6 @@ class RemainingCreditModelChild implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -91,38 +77,25 @@ class RemainingCreditModelChild implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'sms' => 'sms', - 'email' => 'email' - ]; - + protected static $attributeMap = ['sms' => 'sms', 'email' => 'email']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'sms' => 'setSms', - 'email' => 'setEmail' - ]; - + protected static $setters = ['sms' => 'setSms', 'email' => 'setEmail']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'sms' => 'getSms', - 'email' => 'getEmail' - ]; - + protected static $getters = ['sms' => 'getSms', 'email' => 'getEmail']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -133,7 +106,6 @@ class RemainingCreditModelChild implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -143,7 +115,6 @@ class RemainingCreditModelChild implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -153,7 +124,6 @@ class RemainingCreditModelChild implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -163,18 +133,12 @@ class RemainingCreditModelChild implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -186,7 +150,6 @@ class RemainingCreditModelChild implements ModelInterface, ArrayAccess $this->container['sms'] = isset($data['sms']) ? $data['sms'] : null; $this->container['email'] = isset($data['email']) ? $data['email'] : null; } - /** * Show all the invalid properties with reasons. * @@ -195,7 +158,6 @@ class RemainingCreditModelChild implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['sms'] === null) { $invalidProperties[] = "'sms' can't be null"; } @@ -204,7 +166,6 @@ class RemainingCreditModelChild implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -213,55 +174,48 @@ class RemainingCreditModelChild implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets sms * - * @return int + * @return double */ public function getSms() { return $this->container['sms']; } - /** * Sets sms * - * @param int $sms SMS Credits remaining for child account + * @param double $sms SMS Credits remaining for child account * * @return $this */ public function setSms($sms) { $this->container['sms'] = $sms; - return $this; } - /** * Gets email * - * @return int + * @return double */ public function getEmail() { return $this->container['email']; } - /** * Sets email * - * @param int $email Email Credits remaining for child account + * @param double $email Email Credits remaining for child account * * @return $this */ public function setEmail($email) { $this->container['email'] = $email; - return $this; } /** @@ -275,7 +229,6 @@ class RemainingCreditModelChild implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -287,7 +240,6 @@ class RemainingCreditModelChild implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -298,13 +250,12 @@ class RemainingCreditModelChild implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -316,7 +267,6 @@ class RemainingCreditModelChild implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -324,15 +274,10 @@ class RemainingCreditModelChild implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RemainingCreditModelReseller.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RemainingCreditModelReseller.php similarity index 80% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RemainingCreditModelReseller.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RemainingCreditModelReseller.php index bd25822..041b4cc 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RemainingCreditModelReseller.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RemainingCreditModelReseller.php @@ -1,4 +1,5 @@ 'int', - 'email' => 'int' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['sms' => 'double', 'email' => 'double']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'sms' => 'int64', - 'email' => 'int64' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['sms' => 'double', 'email' => 'double']; /** * Array of property to type mappings. Used for (de)serialization * @@ -80,7 +67,6 @@ class RemainingCreditModelReseller implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -90,38 +76,25 @@ class RemainingCreditModelReseller implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'sms' => 'sms', - 'email' => 'email' - ]; - + protected static $attributeMap = ['sms' => 'sms', 'email' => 'email']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'sms' => 'setSms', - 'email' => 'setEmail' - ]; - + protected static $setters = ['sms' => 'setSms', 'email' => 'setEmail']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'sms' => 'getSms', - 'email' => 'getEmail' - ]; - + protected static $getters = ['sms' => 'getSms', 'email' => 'getEmail']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -132,7 +105,6 @@ class RemainingCreditModelReseller implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -142,7 +114,6 @@ class RemainingCreditModelReseller implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -152,7 +123,6 @@ class RemainingCreditModelReseller implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -162,18 +132,12 @@ class RemainingCreditModelReseller implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -185,7 +149,6 @@ class RemainingCreditModelReseller implements ModelInterface, ArrayAccess $this->container['sms'] = isset($data['sms']) ? $data['sms'] : null; $this->container['email'] = isset($data['email']) ? $data['email'] : null; } - /** * Show all the invalid properties with reasons. * @@ -194,7 +157,6 @@ class RemainingCreditModelReseller implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['sms'] === null) { $invalidProperties[] = "'sms' can't be null"; } @@ -203,7 +165,6 @@ class RemainingCreditModelReseller implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -212,55 +173,48 @@ class RemainingCreditModelReseller implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets sms * - * @return int + * @return double */ public function getSms() { return $this->container['sms']; } - /** * Sets sms * - * @param int $sms SMS Credits remaining for reseller account + * @param double $sms SMS Credits remaining for reseller account * * @return $this */ public function setSms($sms) { $this->container['sms'] = $sms; - return $this; } - /** * Gets email * - * @return int + * @return double */ public function getEmail() { return $this->container['email']; } - /** * Sets email * - * @param int $email Email Credits remaining for reseller account + * @param double $email Email Credits remaining for reseller account * * @return $this */ public function setEmail($email) { $this->container['email'] = $email; - return $this; } /** @@ -274,7 +228,6 @@ class RemainingCreditModelReseller implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -286,7 +239,6 @@ class RemainingCreditModelReseller implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -297,13 +249,12 @@ class RemainingCreditModelReseller implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -315,7 +266,6 @@ class RemainingCreditModelReseller implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -323,15 +273,10 @@ class RemainingCreditModelReseller implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RemoveContactFromList.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RemoveContactFromList.php similarity index 79% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RemoveContactFromList.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RemoveContactFromList.php index d8f46ec..8bffc70 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RemoveContactFromList.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RemoveContactFromList.php @@ -1,4 +1,5 @@ 'string[]', - 'all' => 'bool' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['emails' => 'string[]', 'all' => 'bool']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'emails' => 'email', - 'all' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['emails' => 'email', 'all' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -80,7 +67,6 @@ class RemoveContactFromList implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -90,38 +76,25 @@ class RemoveContactFromList implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'emails' => 'emails', - 'all' => 'all' - ]; - + protected static $attributeMap = ['emails' => 'emails', 'all' => 'all']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'emails' => 'setEmails', - 'all' => 'setAll' - ]; - + protected static $setters = ['emails' => 'setEmails', 'all' => 'setAll']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'emails' => 'getEmails', - 'all' => 'getAll' - ]; - + protected static $getters = ['emails' => 'getEmails', 'all' => 'getAll']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -132,7 +105,6 @@ class RemoveContactFromList implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -142,7 +114,6 @@ class RemoveContactFromList implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -152,7 +123,6 @@ class RemoveContactFromList implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -162,18 +132,12 @@ class RemoveContactFromList implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -185,7 +149,6 @@ class RemoveContactFromList implements ModelInterface, ArrayAccess $this->container['emails'] = isset($data['emails']) ? $data['emails'] : null; $this->container['all'] = isset($data['all']) ? $data['all'] : null; } - /** * Show all the invalid properties with reasons. * @@ -194,10 +157,8 @@ class RemoveContactFromList implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -206,10 +167,8 @@ class RemoveContactFromList implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets emails * @@ -219,21 +178,18 @@ class RemoveContactFromList implements ModelInterface, ArrayAccess { return $this->container['emails']; } - /** * Sets emails * - * @param string[] $emails Required if 'all' is false. Emails to remove from a list + * @param string[] $emails Required if 'all' is false. Emails to remove from a list. You can pass a maximum of 150 emails for removal in one request. * * @return $this */ public function setEmails($emails) { $this->container['emails'] = $emails; - return $this; } - /** * Gets all * @@ -243,18 +199,16 @@ class RemoveContactFromList implements ModelInterface, ArrayAccess { return $this->container['all']; } - /** * Sets all * - * @param bool $all Required if 'emails' is empty. Remove all existing contacts from a list + * @param bool $all Required if 'emails' is empty. Remove all existing contacts from a list. A process will be created in this scenario. You can fetch the process details to know about the progress * * @return $this */ public function setAll($all) { $this->container['all'] = $all; - return $this; } /** @@ -268,7 +222,6 @@ class RemoveContactFromList implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -280,7 +233,6 @@ class RemoveContactFromList implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -291,13 +243,12 @@ class RemoveContactFromList implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -309,7 +260,6 @@ class RemoveContactFromList implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -317,15 +267,10 @@ class RemoveContactFromList implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RemoveCredits.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RemoveCredits.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RemoveCredits.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RemoveCredits.php index 5837194..fbe3121 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RemoveCredits.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RemoveCredits.php @@ -1,4 +1,5 @@ 'int', - 'email' => 'int' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['sms' => 'int', 'email' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'sms' => 'int64', - 'email' => 'int64' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['sms' => 'int64', 'email' => 'int64']; /** * Array of property to type mappings. Used for (de)serialization * @@ -80,7 +67,6 @@ class RemoveCredits implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -90,38 +76,25 @@ class RemoveCredits implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'sms' => 'sms', - 'email' => 'email' - ]; - + protected static $attributeMap = ['sms' => 'sms', 'email' => 'email']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'sms' => 'setSms', - 'email' => 'setEmail' - ]; - + protected static $setters = ['sms' => 'setSms', 'email' => 'setEmail']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'sms' => 'getSms', - 'email' => 'getEmail' - ]; - + protected static $getters = ['sms' => 'getSms', 'email' => 'getEmail']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -132,7 +105,6 @@ class RemoveCredits implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -142,7 +114,6 @@ class RemoveCredits implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -152,7 +123,6 @@ class RemoveCredits implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -162,18 +132,12 @@ class RemoveCredits implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -185,7 +149,6 @@ class RemoveCredits implements ModelInterface, ArrayAccess $this->container['sms'] = isset($data['sms']) ? $data['sms'] : null; $this->container['email'] = isset($data['email']) ? $data['email'] : null; } - /** * Show all the invalid properties with reasons. * @@ -194,10 +157,8 @@ class RemoveCredits implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -206,10 +167,8 @@ class RemoveCredits implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets sms * @@ -219,7 +178,6 @@ class RemoveCredits implements ModelInterface, ArrayAccess { return $this->container['sms']; } - /** * Sets sms * @@ -230,10 +188,8 @@ class RemoveCredits implements ModelInterface, ArrayAccess public function setSms($sms) { $this->container['sms'] = $sms; - return $this; } - /** * Gets email * @@ -243,7 +199,6 @@ class RemoveCredits implements ModelInterface, ArrayAccess { return $this->container['email']; } - /** * Sets email * @@ -254,7 +209,6 @@ class RemoveCredits implements ModelInterface, ArrayAccess public function setEmail($email) { $this->container['email'] = $email; - return $this; } /** @@ -268,7 +222,6 @@ class RemoveCredits implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -280,7 +233,6 @@ class RemoveCredits implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -291,13 +243,12 @@ class RemoveCredits implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -309,7 +260,6 @@ class RemoveCredits implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -317,15 +267,10 @@ class RemoveCredits implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RequestContactExport.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RequestContactExport.php similarity index 78% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RequestContactExport.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RequestContactExport.php index 627f2bc..00e0908 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RequestContactExport.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RequestContactExport.php @@ -1,4 +1,5 @@ 'string[]', - 'contactFilter' => 'object', - 'customContactFilter' => '\SendinBlue\Client\Model\RequestContactExportCustomContactFilter', - 'notifyUrl' => 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['exportAttributes' => 'string[]', 'contactFilter' => 'object', 'customContactFilter' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RequestContactExportCustomContactFilter', 'notifyUrl' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'exportAttributes' => null, - 'contactFilter' => null, - 'customContactFilter' => null, - 'notifyUrl' => 'url' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['exportAttributes' => null, 'contactFilter' => null, 'customContactFilter' => null, 'notifyUrl' => 'url']; /** * Array of property to type mappings. Used for (de)serialization * @@ -84,7 +67,6 @@ class RequestContactExport implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -94,44 +76,25 @@ class RequestContactExport implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'exportAttributes' => 'exportAttributes', - 'contactFilter' => 'contactFilter', - 'customContactFilter' => 'customContactFilter', - 'notifyUrl' => 'notifyUrl' - ]; - + protected static $attributeMap = ['exportAttributes' => 'exportAttributes', 'contactFilter' => 'contactFilter', 'customContactFilter' => 'customContactFilter', 'notifyUrl' => 'notifyUrl']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'exportAttributes' => 'setExportAttributes', - 'contactFilter' => 'setContactFilter', - 'customContactFilter' => 'setCustomContactFilter', - 'notifyUrl' => 'setNotifyUrl' - ]; - + protected static $setters = ['exportAttributes' => 'setExportAttributes', 'contactFilter' => 'setContactFilter', 'customContactFilter' => 'setCustomContactFilter', 'notifyUrl' => 'setNotifyUrl']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'exportAttributes' => 'getExportAttributes', - 'contactFilter' => 'getContactFilter', - 'customContactFilter' => 'getCustomContactFilter', - 'notifyUrl' => 'getNotifyUrl' - ]; - + protected static $getters = ['exportAttributes' => 'getExportAttributes', 'contactFilter' => 'getContactFilter', 'customContactFilter' => 'getCustomContactFilter', 'notifyUrl' => 'getNotifyUrl']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -142,7 +105,6 @@ class RequestContactExport implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -152,7 +114,6 @@ class RequestContactExport implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -162,7 +123,6 @@ class RequestContactExport implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -172,18 +132,12 @@ class RequestContactExport implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -197,7 +151,6 @@ class RequestContactExport implements ModelInterface, ArrayAccess $this->container['customContactFilter'] = isset($data['customContactFilter']) ? $data['customContactFilter'] : null; $this->container['notifyUrl'] = isset($data['notifyUrl']) ? $data['notifyUrl'] : null; } - /** * Show all the invalid properties with reasons. * @@ -206,10 +159,8 @@ class RequestContactExport implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -218,10 +169,8 @@ class RequestContactExport implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets exportAttributes * @@ -231,7 +180,6 @@ class RequestContactExport implements ModelInterface, ArrayAccess { return $this->container['exportAttributes']; } - /** * Sets exportAttributes * @@ -242,10 +190,8 @@ class RequestContactExport implements ModelInterface, ArrayAccess public function setExportAttributes($exportAttributes) { $this->container['exportAttributes'] = $exportAttributes; - return $this; } - /** * Gets contactFilter * @@ -255,21 +201,18 @@ class RequestContactExport implements ModelInterface, ArrayAccess { return $this->container['contactFilter']; } - /** * Sets contactFilter * - * @param object $contactFilter This attribute has been deprecated and will be removed by January 1st, 2021. Only one of the two filter options (contactFilter or customContactFilter) can be passed in the request. Set the filter for the contacts to be exported. For example, {'blacklisted':true} will export all the blacklisted contacts. + * @param object $contactFilter This attribute has been deprecated and will be removed by January 1st, 2021. Only one of the two filter options (contactFilter or customContactFilter) can be passed in the request. Set the filter for the contacts to be exported. For example, {\"blacklisted\":true} will export all the blacklisted contacts. * * @return $this */ public function setContactFilter($contactFilter) { $this->container['contactFilter'] = $contactFilter; - return $this; } - /** * Gets customContactFilter * @@ -279,7 +222,6 @@ class RequestContactExport implements ModelInterface, ArrayAccess { return $this->container['customContactFilter']; } - /** * Sets customContactFilter * @@ -290,10 +232,8 @@ class RequestContactExport implements ModelInterface, ArrayAccess public function setCustomContactFilter($customContactFilter) { $this->container['customContactFilter'] = $customContactFilter; - return $this; } - /** * Gets notifyUrl * @@ -303,18 +243,16 @@ class RequestContactExport implements ModelInterface, ArrayAccess { return $this->container['notifyUrl']; } - /** * Sets notifyUrl * - * @param string $notifyUrl Webhook that will be called once the export process is finished + * @param string $notifyUrl Webhook that will be called once the export process is finished. For reference, https://help.sendinblue.com/hc/en-us/articles/360007666479 * * @return $this */ public function setNotifyUrl($notifyUrl) { $this->container['notifyUrl'] = $notifyUrl; - return $this; } /** @@ -328,7 +266,6 @@ class RequestContactExport implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -340,7 +277,6 @@ class RequestContactExport implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -351,13 +287,12 @@ class RequestContactExport implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -369,7 +304,6 @@ class RequestContactExport implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -377,15 +311,10 @@ class RequestContactExport implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RequestContactExportCustomContactFilter.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RequestContactExportCustomContactFilter.php similarity index 70% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RequestContactExportCustomContactFilter.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RequestContactExportCustomContactFilter.php index aaa2f5f..5b8e17c 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RequestContactExportCustomContactFilter.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RequestContactExportCustomContactFilter.php @@ -1,4 +1,5 @@ 'string', - 'actionForEmailCampaigns' => 'string', - 'actionForSmsCampaigns' => 'string', - 'listId' => 'int', - 'emailCampaignId' => 'int', - 'smsCampaignId' => 'int' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['actionForContacts' => 'string', 'actionForEmailCampaigns' => 'string', 'actionForSmsCampaigns' => 'string', 'listId' => 'int', 'emailCampaignId' => 'int', 'smsCampaignId' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'actionForContacts' => null, - 'actionForEmailCampaigns' => null, - 'actionForSmsCampaigns' => null, - 'listId' => 'int64', - 'emailCampaignId' => 'int64', - 'smsCampaignId' => 'int64' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['actionForContacts' => null, 'actionForEmailCampaigns' => null, 'actionForSmsCampaigns' => null, 'listId' => 'int64', 'emailCampaignId' => 'int64', 'smsCampaignId' => 'int64']; /** * Array of property to type mappings. Used for (de)serialization * @@ -89,7 +68,6 @@ class RequestContactExportCustomContactFilter implements ModelInterface, ArrayAc { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -99,50 +77,25 @@ class RequestContactExportCustomContactFilter implements ModelInterface, ArrayAc { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'actionForContacts' => 'actionForContacts', - 'actionForEmailCampaigns' => 'actionForEmailCampaigns', - 'actionForSmsCampaigns' => 'actionForSmsCampaigns', - 'listId' => 'listId', - 'emailCampaignId' => 'emailCampaignId', - 'smsCampaignId' => 'smsCampaignId' - ]; - + protected static $attributeMap = ['actionForContacts' => 'actionForContacts', 'actionForEmailCampaigns' => 'actionForEmailCampaigns', 'actionForSmsCampaigns' => 'actionForSmsCampaigns', 'listId' => 'listId', 'emailCampaignId' => 'emailCampaignId', 'smsCampaignId' => 'smsCampaignId']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'actionForContacts' => 'setActionForContacts', - 'actionForEmailCampaigns' => 'setActionForEmailCampaigns', - 'actionForSmsCampaigns' => 'setActionForSmsCampaigns', - 'listId' => 'setListId', - 'emailCampaignId' => 'setEmailCampaignId', - 'smsCampaignId' => 'setSmsCampaignId' - ]; - + protected static $setters = ['actionForContacts' => 'setActionForContacts', 'actionForEmailCampaigns' => 'setActionForEmailCampaigns', 'actionForSmsCampaigns' => 'setActionForSmsCampaigns', 'listId' => 'setListId', 'emailCampaignId' => 'setEmailCampaignId', 'smsCampaignId' => 'setSmsCampaignId']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'actionForContacts' => 'getActionForContacts', - 'actionForEmailCampaigns' => 'getActionForEmailCampaigns', - 'actionForSmsCampaigns' => 'getActionForSmsCampaigns', - 'listId' => 'getListId', - 'emailCampaignId' => 'getEmailCampaignId', - 'smsCampaignId' => 'getSmsCampaignId' - ]; - + protected static $getters = ['actionForContacts' => 'getActionForContacts', 'actionForEmailCampaigns' => 'getActionForEmailCampaigns', 'actionForSmsCampaigns' => 'getActionForSmsCampaigns', 'listId' => 'getListId', 'emailCampaignId' => 'getEmailCampaignId', 'smsCampaignId' => 'getSmsCampaignId']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -153,7 +106,6 @@ class RequestContactExportCustomContactFilter implements ModelInterface, ArrayAc { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -163,7 +115,6 @@ class RequestContactExportCustomContactFilter implements ModelInterface, ArrayAc { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -173,7 +124,6 @@ class RequestContactExportCustomContactFilter implements ModelInterface, ArrayAc { return self::$getters; } - /** * The original name of the model. * @@ -183,7 +133,6 @@ class RequestContactExportCustomContactFilter implements ModelInterface, ArrayAc { return self::$swaggerModelName; } - const ACTION_FOR_CONTACTS_ALL_CONTACTS = 'allContacts'; const ACTION_FOR_CONTACTS_SUBSCRIBED = 'subscribed'; const ACTION_FOR_CONTACTS_UNSUBSCRIBED = 'unsubscribed'; @@ -198,9 +147,6 @@ class RequestContactExportCustomContactFilter implements ModelInterface, ArrayAc const ACTION_FOR_SMS_CAMPAIGNS_HARD_BOUNCES = 'hardBounces'; const ACTION_FOR_SMS_CAMPAIGNS_SOFT_BOUNCES = 'softBounces'; const ACTION_FOR_SMS_CAMPAIGNS_UNSUBSCRIBED = 'unsubscribed'; - - - /** * Gets allowable values of the enum * @@ -208,14 +154,8 @@ class RequestContactExportCustomContactFilter implements ModelInterface, ArrayAc */ public function getActionForContactsAllowableValues() { - return [ - self::ACTION_FOR_CONTACTS_ALL_CONTACTS, - self::ACTION_FOR_CONTACTS_SUBSCRIBED, - self::ACTION_FOR_CONTACTS_UNSUBSCRIBED, - self::ACTION_FOR_CONTACTS_UNSUBSCRIBED_PER_LIST, - ]; + return [self::ACTION_FOR_CONTACTS_ALL_CONTACTS, self::ACTION_FOR_CONTACTS_SUBSCRIBED, self::ACTION_FOR_CONTACTS_UNSUBSCRIBED, self::ACTION_FOR_CONTACTS_UNSUBSCRIBED_PER_LIST]; } - /** * Gets allowable values of the enum * @@ -223,17 +163,8 @@ class RequestContactExportCustomContactFilter implements ModelInterface, ArrayAc */ public function getActionForEmailCampaignsAllowableValues() { - return [ - self::ACTION_FOR_EMAIL_CAMPAIGNS_OPENERS, - self::ACTION_FOR_EMAIL_CAMPAIGNS_NON_OPENERS, - self::ACTION_FOR_EMAIL_CAMPAIGNS_CLICKERS, - self::ACTION_FOR_EMAIL_CAMPAIGNS_NON_CLICKERS, - self::ACTION_FOR_EMAIL_CAMPAIGNS_UNSUBSCRIBED, - self::ACTION_FOR_EMAIL_CAMPAIGNS_HARD_BOUNCES, - self::ACTION_FOR_EMAIL_CAMPAIGNS_SOFT_BOUNCES, - ]; + return [self::ACTION_FOR_EMAIL_CAMPAIGNS_OPENERS, self::ACTION_FOR_EMAIL_CAMPAIGNS_NON_OPENERS, self::ACTION_FOR_EMAIL_CAMPAIGNS_CLICKERS, self::ACTION_FOR_EMAIL_CAMPAIGNS_NON_CLICKERS, self::ACTION_FOR_EMAIL_CAMPAIGNS_UNSUBSCRIBED, self::ACTION_FOR_EMAIL_CAMPAIGNS_HARD_BOUNCES, self::ACTION_FOR_EMAIL_CAMPAIGNS_SOFT_BOUNCES]; } - /** * Gets allowable values of the enum * @@ -241,21 +172,14 @@ class RequestContactExportCustomContactFilter implements ModelInterface, ArrayAc */ public function getActionForSmsCampaignsAllowableValues() { - return [ - self::ACTION_FOR_SMS_CAMPAIGNS_HARD_BOUNCES, - self::ACTION_FOR_SMS_CAMPAIGNS_SOFT_BOUNCES, - self::ACTION_FOR_SMS_CAMPAIGNS_UNSUBSCRIBED, - ]; + return [self::ACTION_FOR_SMS_CAMPAIGNS_HARD_BOUNCES, self::ACTION_FOR_SMS_CAMPAIGNS_SOFT_BOUNCES, self::ACTION_FOR_SMS_CAMPAIGNS_UNSUBSCRIBED]; } - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -271,7 +195,6 @@ class RequestContactExportCustomContactFilter implements ModelInterface, ArrayAc $this->container['emailCampaignId'] = isset($data['emailCampaignId']) ? $data['emailCampaignId'] : null; $this->container['smsCampaignId'] = isset($data['smsCampaignId']) ? $data['smsCampaignId'] : null; } - /** * Show all the invalid properties with reasons. * @@ -280,34 +203,20 @@ class RequestContactExportCustomContactFilter implements ModelInterface, ArrayAc public function listInvalidProperties() { $invalidProperties = []; - $allowedValues = $this->getActionForContactsAllowableValues(); - if (!is_null($this->container['actionForContacts']) && !in_array($this->container['actionForContacts'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value for 'actionForContacts', must be one of '%s'", - implode("', '", $allowedValues) - ); + if (!\is_null($this->container['actionForContacts']) && !\in_array($this->container['actionForContacts'], $allowedValues, \true)) { + $invalidProperties[] = \sprintf("invalid value for 'actionForContacts', must be one of '%s'", \implode("', '", $allowedValues)); } - $allowedValues = $this->getActionForEmailCampaignsAllowableValues(); - if (!is_null($this->container['actionForEmailCampaigns']) && !in_array($this->container['actionForEmailCampaigns'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value for 'actionForEmailCampaigns', must be one of '%s'", - implode("', '", $allowedValues) - ); + if (!\is_null($this->container['actionForEmailCampaigns']) && !\in_array($this->container['actionForEmailCampaigns'], $allowedValues, \true)) { + $invalidProperties[] = \sprintf("invalid value for 'actionForEmailCampaigns', must be one of '%s'", \implode("', '", $allowedValues)); } - $allowedValues = $this->getActionForSmsCampaignsAllowableValues(); - if (!is_null($this->container['actionForSmsCampaigns']) && !in_array($this->container['actionForSmsCampaigns'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value for 'actionForSmsCampaigns', must be one of '%s'", - implode("', '", $allowedValues) - ); + if (!\is_null($this->container['actionForSmsCampaigns']) && !\in_array($this->container['actionForSmsCampaigns'], $allowedValues, \true)) { + $invalidProperties[] = \sprintf("invalid value for 'actionForSmsCampaigns', must be one of '%s'", \implode("', '", $allowedValues)); } - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -316,10 +225,8 @@ class RequestContactExportCustomContactFilter implements ModelInterface, ArrayAc */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets actionForContacts * @@ -329,7 +236,6 @@ class RequestContactExportCustomContactFilter implements ModelInterface, ArrayAc { return $this->container['actionForContacts']; } - /** * Sets actionForContacts * @@ -340,19 +246,12 @@ class RequestContactExportCustomContactFilter implements ModelInterface, ArrayAc public function setActionForContacts($actionForContacts) { $allowedValues = $this->getActionForContactsAllowableValues(); - if (!is_null($actionForContacts) && !in_array($actionForContacts, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'actionForContacts', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); + if (!\is_null($actionForContacts) && !\in_array($actionForContacts, $allowedValues, \true)) { + throw new \InvalidArgumentException(\sprintf("Invalid value for 'actionForContacts', must be one of '%s'", \implode("', '", $allowedValues))); } $this->container['actionForContacts'] = $actionForContacts; - return $this; } - /** * Gets actionForEmailCampaigns * @@ -362,7 +261,6 @@ class RequestContactExportCustomContactFilter implements ModelInterface, ArrayAc { return $this->container['actionForEmailCampaigns']; } - /** * Sets actionForEmailCampaigns * @@ -373,19 +271,12 @@ class RequestContactExportCustomContactFilter implements ModelInterface, ArrayAc public function setActionForEmailCampaigns($actionForEmailCampaigns) { $allowedValues = $this->getActionForEmailCampaignsAllowableValues(); - if (!is_null($actionForEmailCampaigns) && !in_array($actionForEmailCampaigns, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'actionForEmailCampaigns', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); + if (!\is_null($actionForEmailCampaigns) && !\in_array($actionForEmailCampaigns, $allowedValues, \true)) { + throw new \InvalidArgumentException(\sprintf("Invalid value for 'actionForEmailCampaigns', must be one of '%s'", \implode("', '", $allowedValues))); } $this->container['actionForEmailCampaigns'] = $actionForEmailCampaigns; - return $this; } - /** * Gets actionForSmsCampaigns * @@ -395,7 +286,6 @@ class RequestContactExportCustomContactFilter implements ModelInterface, ArrayAc { return $this->container['actionForSmsCampaigns']; } - /** * Sets actionForSmsCampaigns * @@ -406,19 +296,12 @@ class RequestContactExportCustomContactFilter implements ModelInterface, ArrayAc public function setActionForSmsCampaigns($actionForSmsCampaigns) { $allowedValues = $this->getActionForSmsCampaignsAllowableValues(); - if (!is_null($actionForSmsCampaigns) && !in_array($actionForSmsCampaigns, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'actionForSmsCampaigns', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); + if (!\is_null($actionForSmsCampaigns) && !\in_array($actionForSmsCampaigns, $allowedValues, \true)) { + throw new \InvalidArgumentException(\sprintf("Invalid value for 'actionForSmsCampaigns', must be one of '%s'", \implode("', '", $allowedValues))); } $this->container['actionForSmsCampaigns'] = $actionForSmsCampaigns; - return $this; } - /** * Gets listId * @@ -428,7 +311,6 @@ class RequestContactExportCustomContactFilter implements ModelInterface, ArrayAc { return $this->container['listId']; } - /** * Sets listId * @@ -439,10 +321,8 @@ class RequestContactExportCustomContactFilter implements ModelInterface, ArrayAc public function setListId($listId) { $this->container['listId'] = $listId; - return $this; } - /** * Gets emailCampaignId * @@ -452,7 +332,6 @@ class RequestContactExportCustomContactFilter implements ModelInterface, ArrayAc { return $this->container['emailCampaignId']; } - /** * Sets emailCampaignId * @@ -463,10 +342,8 @@ class RequestContactExportCustomContactFilter implements ModelInterface, ArrayAc public function setEmailCampaignId($emailCampaignId) { $this->container['emailCampaignId'] = $emailCampaignId; - return $this; } - /** * Gets smsCampaignId * @@ -476,7 +353,6 @@ class RequestContactExportCustomContactFilter implements ModelInterface, ArrayAc { return $this->container['smsCampaignId']; } - /** * Sets smsCampaignId * @@ -487,7 +363,6 @@ class RequestContactExportCustomContactFilter implements ModelInterface, ArrayAc public function setSmsCampaignId($smsCampaignId) { $this->container['smsCampaignId'] = $smsCampaignId; - return $this; } /** @@ -501,7 +376,6 @@ class RequestContactExportCustomContactFilter implements ModelInterface, ArrayAc { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -513,7 +387,6 @@ class RequestContactExportCustomContactFilter implements ModelInterface, ArrayAc { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -524,13 +397,12 @@ class RequestContactExportCustomContactFilter implements ModelInterface, ArrayAc */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -542,7 +414,6 @@ class RequestContactExportCustomContactFilter implements ModelInterface, ArrayAc { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -550,15 +421,10 @@ class RequestContactExportCustomContactFilter implements ModelInterface, ArrayAc */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RequestContactImport.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RequestContactImport.php similarity index 77% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RequestContactImport.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RequestContactImport.php index 089051f..c68391b 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RequestContactImport.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RequestContactImport.php @@ -1,4 +1,5 @@ 'string', - 'fileBody' => 'string', - 'listIds' => 'int[]', - 'notifyUrl' => 'string', - 'newList' => '\SendinBlue\Client\Model\RequestContactImportNewList', - 'emailBlacklist' => 'bool', - 'smsBlacklist' => 'bool', - 'updateExistingContacts' => 'bool', - 'emptyContactsAttributes' => 'bool' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['fileUrl' => 'string', 'fileBody' => 'string', 'listIds' => 'int[]', 'notifyUrl' => 'string', 'newList' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\RequestContactImportNewList', 'emailBlacklist' => 'bool', 'smsBlacklist' => 'bool', 'updateExistingContacts' => 'bool', 'emptyContactsAttributes' => 'bool']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'fileUrl' => 'url', - 'fileBody' => null, - 'listIds' => 'int64', - 'notifyUrl' => 'url', - 'newList' => null, - 'emailBlacklist' => null, - 'smsBlacklist' => null, - 'updateExistingContacts' => null, - 'emptyContactsAttributes' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['fileUrl' => 'url', 'fileBody' => null, 'listIds' => 'int64', 'notifyUrl' => 'url', 'newList' => null, 'emailBlacklist' => null, 'smsBlacklist' => null, 'updateExistingContacts' => null, 'emptyContactsAttributes' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -94,7 +67,6 @@ class RequestContactImport implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -104,59 +76,25 @@ class RequestContactImport implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'fileUrl' => 'fileUrl', - 'fileBody' => 'fileBody', - 'listIds' => 'listIds', - 'notifyUrl' => 'notifyUrl', - 'newList' => 'newList', - 'emailBlacklist' => 'emailBlacklist', - 'smsBlacklist' => 'smsBlacklist', - 'updateExistingContacts' => 'updateExistingContacts', - 'emptyContactsAttributes' => 'emptyContactsAttributes' - ]; - + protected static $attributeMap = ['fileUrl' => 'fileUrl', 'fileBody' => 'fileBody', 'listIds' => 'listIds', 'notifyUrl' => 'notifyUrl', 'newList' => 'newList', 'emailBlacklist' => 'emailBlacklist', 'smsBlacklist' => 'smsBlacklist', 'updateExistingContacts' => 'updateExistingContacts', 'emptyContactsAttributes' => 'emptyContactsAttributes']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'fileUrl' => 'setFileUrl', - 'fileBody' => 'setFileBody', - 'listIds' => 'setListIds', - 'notifyUrl' => 'setNotifyUrl', - 'newList' => 'setNewList', - 'emailBlacklist' => 'setEmailBlacklist', - 'smsBlacklist' => 'setSmsBlacklist', - 'updateExistingContacts' => 'setUpdateExistingContacts', - 'emptyContactsAttributes' => 'setEmptyContactsAttributes' - ]; - + protected static $setters = ['fileUrl' => 'setFileUrl', 'fileBody' => 'setFileBody', 'listIds' => 'setListIds', 'notifyUrl' => 'setNotifyUrl', 'newList' => 'setNewList', 'emailBlacklist' => 'setEmailBlacklist', 'smsBlacklist' => 'setSmsBlacklist', 'updateExistingContacts' => 'setUpdateExistingContacts', 'emptyContactsAttributes' => 'setEmptyContactsAttributes']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'fileUrl' => 'getFileUrl', - 'fileBody' => 'getFileBody', - 'listIds' => 'getListIds', - 'notifyUrl' => 'getNotifyUrl', - 'newList' => 'getNewList', - 'emailBlacklist' => 'getEmailBlacklist', - 'smsBlacklist' => 'getSmsBlacklist', - 'updateExistingContacts' => 'getUpdateExistingContacts', - 'emptyContactsAttributes' => 'getEmptyContactsAttributes' - ]; - + protected static $getters = ['fileUrl' => 'getFileUrl', 'fileBody' => 'getFileBody', 'listIds' => 'getListIds', 'notifyUrl' => 'getNotifyUrl', 'newList' => 'getNewList', 'emailBlacklist' => 'getEmailBlacklist', 'smsBlacklist' => 'getSmsBlacklist', 'updateExistingContacts' => 'getUpdateExistingContacts', 'emptyContactsAttributes' => 'getEmptyContactsAttributes']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -167,7 +105,6 @@ class RequestContactImport implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -177,7 +114,6 @@ class RequestContactImport implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -187,7 +123,6 @@ class RequestContactImport implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -197,18 +132,12 @@ class RequestContactImport implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -222,12 +151,11 @@ class RequestContactImport implements ModelInterface, ArrayAccess $this->container['listIds'] = isset($data['listIds']) ? $data['listIds'] : null; $this->container['notifyUrl'] = isset($data['notifyUrl']) ? $data['notifyUrl'] : null; $this->container['newList'] = isset($data['newList']) ? $data['newList'] : null; - $this->container['emailBlacklist'] = isset($data['emailBlacklist']) ? $data['emailBlacklist'] : false; - $this->container['smsBlacklist'] = isset($data['smsBlacklist']) ? $data['smsBlacklist'] : false; - $this->container['updateExistingContacts'] = isset($data['updateExistingContacts']) ? $data['updateExistingContacts'] : true; - $this->container['emptyContactsAttributes'] = isset($data['emptyContactsAttributes']) ? $data['emptyContactsAttributes'] : false; + $this->container['emailBlacklist'] = isset($data['emailBlacklist']) ? $data['emailBlacklist'] : \false; + $this->container['smsBlacklist'] = isset($data['smsBlacklist']) ? $data['smsBlacklist'] : \false; + $this->container['updateExistingContacts'] = isset($data['updateExistingContacts']) ? $data['updateExistingContacts'] : \true; + $this->container['emptyContactsAttributes'] = isset($data['emptyContactsAttributes']) ? $data['emptyContactsAttributes'] : \false; } - /** * Show all the invalid properties with reasons. * @@ -236,10 +164,8 @@ class RequestContactImport implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -248,10 +174,8 @@ class RequestContactImport implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets fileUrl * @@ -261,7 +185,6 @@ class RequestContactImport implements ModelInterface, ArrayAccess { return $this->container['fileUrl']; } - /** * Sets fileUrl * @@ -272,10 +195,8 @@ class RequestContactImport implements ModelInterface, ArrayAccess public function setFileUrl($fileUrl) { $this->container['fileUrl'] = $fileUrl; - return $this; } - /** * Gets fileBody * @@ -285,21 +206,18 @@ class RequestContactImport implements ModelInterface, ArrayAccess { return $this->container['fileBody']; } - /** * Sets fileBody * - * @param string $fileBody Mandatory if fileUrl is not defined. CSV content to be imported. Use semicolon to separate multiple attributes + * @param string $fileBody Mandatory if fileUrl is not defined. CSV content to be imported. Use semicolon to separate multiple attributes. Maximum allowed file body size is 10MB . However we recommend a safe limit of around 8 MB to avoid the issues caused due to increase of file body size while parsing. Please use fileUrl instead to import bigger files. * * @return $this */ public function setFileBody($fileBody) { $this->container['fileBody'] = $fileBody; - return $this; } - /** * Gets listIds * @@ -309,7 +227,6 @@ class RequestContactImport implements ModelInterface, ArrayAccess { return $this->container['listIds']; } - /** * Sets listIds * @@ -320,10 +237,8 @@ class RequestContactImport implements ModelInterface, ArrayAccess public function setListIds($listIds) { $this->container['listIds'] = $listIds; - return $this; } - /** * Gets notifyUrl * @@ -333,21 +248,18 @@ class RequestContactImport implements ModelInterface, ArrayAccess { return $this->container['notifyUrl']; } - /** * Sets notifyUrl * - * @param string $notifyUrl URL that will be called once the export process is finished + * @param string $notifyUrl URL that will be called once the import process is finished. For reference, https://help.sendinblue.com/hc/en-us/articles/360007666479 * * @return $this */ public function setNotifyUrl($notifyUrl) { $this->container['notifyUrl'] = $notifyUrl; - return $this; } - /** * Gets newList * @@ -357,7 +269,6 @@ class RequestContactImport implements ModelInterface, ArrayAccess { return $this->container['newList']; } - /** * Sets newList * @@ -368,10 +279,8 @@ class RequestContactImport implements ModelInterface, ArrayAccess public function setNewList($newList) { $this->container['newList'] = $newList; - return $this; } - /** * Gets emailBlacklist * @@ -381,7 +290,6 @@ class RequestContactImport implements ModelInterface, ArrayAccess { return $this->container['emailBlacklist']; } - /** * Sets emailBlacklist * @@ -392,10 +300,8 @@ class RequestContactImport implements ModelInterface, ArrayAccess public function setEmailBlacklist($emailBlacklist) { $this->container['emailBlacklist'] = $emailBlacklist; - return $this; } - /** * Gets smsBlacklist * @@ -405,7 +311,6 @@ class RequestContactImport implements ModelInterface, ArrayAccess { return $this->container['smsBlacklist']; } - /** * Sets smsBlacklist * @@ -416,10 +321,8 @@ class RequestContactImport implements ModelInterface, ArrayAccess public function setSmsBlacklist($smsBlacklist) { $this->container['smsBlacklist'] = $smsBlacklist; - return $this; } - /** * Gets updateExistingContacts * @@ -429,7 +332,6 @@ class RequestContactImport implements ModelInterface, ArrayAccess { return $this->container['updateExistingContacts']; } - /** * Sets updateExistingContacts * @@ -440,10 +342,8 @@ class RequestContactImport implements ModelInterface, ArrayAccess public function setUpdateExistingContacts($updateExistingContacts) { $this->container['updateExistingContacts'] = $updateExistingContacts; - return $this; } - /** * Gets emptyContactsAttributes * @@ -453,7 +353,6 @@ class RequestContactImport implements ModelInterface, ArrayAccess { return $this->container['emptyContactsAttributes']; } - /** * Sets emptyContactsAttributes * @@ -464,7 +363,6 @@ class RequestContactImport implements ModelInterface, ArrayAccess public function setEmptyContactsAttributes($emptyContactsAttributes) { $this->container['emptyContactsAttributes'] = $emptyContactsAttributes; - return $this; } /** @@ -478,7 +376,6 @@ class RequestContactImport implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -490,7 +387,6 @@ class RequestContactImport implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -501,13 +397,12 @@ class RequestContactImport implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -519,7 +414,6 @@ class RequestContactImport implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -527,15 +421,10 @@ class RequestContactImport implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RequestContactImportNewList.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RequestContactImportNewList.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RequestContactImportNewList.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RequestContactImportNewList.php index 7b75a55..a378968 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RequestContactImportNewList.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RequestContactImportNewList.php @@ -1,4 +1,5 @@ 'string', - 'folderId' => 'int' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['listName' => 'string', 'folderId' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'listName' => null, - 'folderId' => 'int64' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['listName' => null, 'folderId' => 'int64']; /** * Array of property to type mappings. Used for (de)serialization * @@ -81,7 +68,6 @@ class RequestContactImportNewList implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -91,38 +77,25 @@ class RequestContactImportNewList implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'listName' => 'listName', - 'folderId' => 'folderId' - ]; - + protected static $attributeMap = ['listName' => 'listName', 'folderId' => 'folderId']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'listName' => 'setListName', - 'folderId' => 'setFolderId' - ]; - + protected static $setters = ['listName' => 'setListName', 'folderId' => 'setFolderId']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'listName' => 'getListName', - 'folderId' => 'getFolderId' - ]; - + protected static $getters = ['listName' => 'getListName', 'folderId' => 'getFolderId']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -133,7 +106,6 @@ class RequestContactImportNewList implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -143,7 +115,6 @@ class RequestContactImportNewList implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -153,7 +124,6 @@ class RequestContactImportNewList implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -163,18 +133,12 @@ class RequestContactImportNewList implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -186,7 +150,6 @@ class RequestContactImportNewList implements ModelInterface, ArrayAccess $this->container['listName'] = isset($data['listName']) ? $data['listName'] : null; $this->container['folderId'] = isset($data['folderId']) ? $data['folderId'] : null; } - /** * Show all the invalid properties with reasons. * @@ -195,10 +158,8 @@ class RequestContactImportNewList implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -207,10 +168,8 @@ class RequestContactImportNewList implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets listName * @@ -220,7 +179,6 @@ class RequestContactImportNewList implements ModelInterface, ArrayAccess { return $this->container['listName']; } - /** * Sets listName * @@ -231,10 +189,8 @@ class RequestContactImportNewList implements ModelInterface, ArrayAccess public function setListName($listName) { $this->container['listName'] = $listName; - return $this; } - /** * Gets folderId * @@ -244,7 +200,6 @@ class RequestContactImportNewList implements ModelInterface, ArrayAccess { return $this->container['folderId']; } - /** * Sets folderId * @@ -255,7 +210,6 @@ class RequestContactImportNewList implements ModelInterface, ArrayAccess public function setFolderId($folderId) { $this->container['folderId'] = $folderId; - return $this; } /** @@ -269,7 +223,6 @@ class RequestContactImportNewList implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -281,7 +234,6 @@ class RequestContactImportNewList implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -292,13 +244,12 @@ class RequestContactImportNewList implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -310,7 +261,6 @@ class RequestContactImportNewList implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -318,15 +268,10 @@ class RequestContactImportNewList implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RequestSMSRecipientExport.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RequestSMSRecipientExport.php similarity index 74% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RequestSMSRecipientExport.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RequestSMSRecipientExport.php index 655fa25..85ceaeb 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/RequestSMSRecipientExport.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/RequestSMSRecipientExport.php @@ -1,4 +1,5 @@ 'string', - 'recipientsType' => 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['notifyURL' => 'string', 'recipientsType' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'notifyURL' => 'url', - 'recipientsType' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['notifyURL' => 'url', 'recipientsType' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -80,7 +67,6 @@ class RequestSmsRecipientExport implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -90,38 +76,25 @@ class RequestSmsRecipientExport implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'notifyURL' => 'notifyURL', - 'recipientsType' => 'recipientsType' - ]; - + protected static $attributeMap = ['notifyURL' => 'notifyURL', 'recipientsType' => 'recipientsType']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'notifyURL' => 'setNotifyURL', - 'recipientsType' => 'setRecipientsType' - ]; - + protected static $setters = ['notifyURL' => 'setNotifyURL', 'recipientsType' => 'setRecipientsType']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'notifyURL' => 'getNotifyURL', - 'recipientsType' => 'getRecipientsType' - ]; - + protected static $getters = ['notifyURL' => 'getNotifyURL', 'recipientsType' => 'getRecipientsType']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -132,7 +105,6 @@ class RequestSmsRecipientExport implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -142,7 +114,6 @@ class RequestSmsRecipientExport implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -152,7 +123,6 @@ class RequestSmsRecipientExport implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -162,16 +132,12 @@ class RequestSmsRecipientExport implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - const RECIPIENTS_TYPE_ALL = 'all'; const RECIPIENTS_TYPE_DELIVERED = 'delivered'; const RECIPIENTS_TYPE_ANSWERED = 'answered'; const RECIPIENTS_TYPE_SOFT_BOUNCES = 'softBounces'; const RECIPIENTS_TYPE_HARD_BOUNCES = 'hardBounces'; const RECIPIENTS_TYPE_UNSUBSCRIBED = 'unsubscribed'; - - - /** * Gets allowable values of the enum * @@ -179,24 +145,14 @@ class RequestSmsRecipientExport implements ModelInterface, ArrayAccess */ public function getRecipientsTypeAllowableValues() { - return [ - self::RECIPIENTS_TYPE_ALL, - self::RECIPIENTS_TYPE_DELIVERED, - self::RECIPIENTS_TYPE_ANSWERED, - self::RECIPIENTS_TYPE_SOFT_BOUNCES, - self::RECIPIENTS_TYPE_HARD_BOUNCES, - self::RECIPIENTS_TYPE_UNSUBSCRIBED, - ]; + return [self::RECIPIENTS_TYPE_ALL, self::RECIPIENTS_TYPE_DELIVERED, self::RECIPIENTS_TYPE_ANSWERED, self::RECIPIENTS_TYPE_SOFT_BOUNCES, self::RECIPIENTS_TYPE_HARD_BOUNCES, self::RECIPIENTS_TYPE_UNSUBSCRIBED]; } - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -208,7 +164,6 @@ class RequestSmsRecipientExport implements ModelInterface, ArrayAccess $this->container['notifyURL'] = isset($data['notifyURL']) ? $data['notifyURL'] : null; $this->container['recipientsType'] = isset($data['recipientsType']) ? $data['recipientsType'] : null; } - /** * Show all the invalid properties with reasons. * @@ -217,21 +172,15 @@ class RequestSmsRecipientExport implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['recipientsType'] === null) { $invalidProperties[] = "'recipientsType' can't be null"; } $allowedValues = $this->getRecipientsTypeAllowableValues(); - if (!is_null($this->container['recipientsType']) && !in_array($this->container['recipientsType'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value for 'recipientsType', must be one of '%s'", - implode("', '", $allowedValues) - ); + if (!\is_null($this->container['recipientsType']) && !\in_array($this->container['recipientsType'], $allowedValues, \true)) { + $invalidProperties[] = \sprintf("invalid value for 'recipientsType', must be one of '%s'", \implode("', '", $allowedValues)); } - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -240,10 +189,8 @@ class RequestSmsRecipientExport implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets notifyURL * @@ -253,21 +200,18 @@ class RequestSmsRecipientExport implements ModelInterface, ArrayAccess { return $this->container['notifyURL']; } - /** * Sets notifyURL * - * @param string $notifyURL URL that will be called once the export process is finished + * @param string $notifyURL URL that will be called once the export process is finished. For reference, https://help.sendinblue.com/hc/en-us/articles/360007666479 * * @return $this */ public function setNotifyURL($notifyURL) { $this->container['notifyURL'] = $notifyURL; - return $this; } - /** * Gets recipientsType * @@ -277,7 +221,6 @@ class RequestSmsRecipientExport implements ModelInterface, ArrayAccess { return $this->container['recipientsType']; } - /** * Sets recipientsType * @@ -288,16 +231,10 @@ class RequestSmsRecipientExport implements ModelInterface, ArrayAccess public function setRecipientsType($recipientsType) { $allowedValues = $this->getRecipientsTypeAllowableValues(); - if (!in_array($recipientsType, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'recipientsType', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); + if (!\in_array($recipientsType, $allowedValues, \true)) { + throw new \InvalidArgumentException(\sprintf("Invalid value for 'recipientsType', must be one of '%s'", \implode("', '", $allowedValues))); } $this->container['recipientsType'] = $recipientsType; - return $this; } /** @@ -311,7 +248,6 @@ class RequestSmsRecipientExport implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -323,7 +259,6 @@ class RequestSmsRecipientExport implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -334,13 +269,12 @@ class RequestSmsRecipientExport implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -352,7 +286,6 @@ class RequestSmsRecipientExport implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -360,15 +293,10 @@ class RequestSmsRecipientExport implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendEmail.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendEmail.php similarity index 77% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendEmail.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendEmail.php index 3ecd6be..ee9aa5f 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendEmail.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendEmail.php @@ -1,4 +1,5 @@ 'string[]', - 'emailBcc' => 'string[]', - 'emailCc' => 'string[]', - 'replyTo' => 'string', - 'attachmentUrl' => 'string', - 'attachment' => '\SendinBlue\Client\Model\SendEmailAttachment[]', - 'headers' => 'object', - 'attributes' => 'object', - 'tags' => 'string[]' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['emailTo' => 'string[]', 'emailBcc' => 'string[]', 'emailCc' => 'string[]', 'replyTo' => 'string', 'attachmentUrl' => 'string', 'attachment' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendEmailAttachment[]', 'headers' => 'object', 'attributes' => 'object', 'tags' => 'string[]']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'emailTo' => 'email', - 'emailBcc' => 'email', - 'emailCc' => 'email', - 'replyTo' => 'email', - 'attachmentUrl' => 'url', - 'attachment' => null, - 'headers' => null, - 'attributes' => null, - 'tags' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['emailTo' => 'email', 'emailBcc' => 'email', 'emailCc' => 'email', 'replyTo' => 'email', 'attachmentUrl' => 'url', 'attachment' => null, 'headers' => null, 'attributes' => null, 'tags' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -94,7 +67,6 @@ class SendEmail implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -104,59 +76,25 @@ class SendEmail implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'emailTo' => 'emailTo', - 'emailBcc' => 'emailBcc', - 'emailCc' => 'emailCc', - 'replyTo' => 'replyTo', - 'attachmentUrl' => 'attachmentUrl', - 'attachment' => 'attachment', - 'headers' => 'headers', - 'attributes' => 'attributes', - 'tags' => 'tags' - ]; - + protected static $attributeMap = ['emailTo' => 'emailTo', 'emailBcc' => 'emailBcc', 'emailCc' => 'emailCc', 'replyTo' => 'replyTo', 'attachmentUrl' => 'attachmentUrl', 'attachment' => 'attachment', 'headers' => 'headers', 'attributes' => 'attributes', 'tags' => 'tags']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'emailTo' => 'setEmailTo', - 'emailBcc' => 'setEmailBcc', - 'emailCc' => 'setEmailCc', - 'replyTo' => 'setReplyTo', - 'attachmentUrl' => 'setAttachmentUrl', - 'attachment' => 'setAttachment', - 'headers' => 'setHeaders', - 'attributes' => 'setAttributes', - 'tags' => 'setTags' - ]; - + protected static $setters = ['emailTo' => 'setEmailTo', 'emailBcc' => 'setEmailBcc', 'emailCc' => 'setEmailCc', 'replyTo' => 'setReplyTo', 'attachmentUrl' => 'setAttachmentUrl', 'attachment' => 'setAttachment', 'headers' => 'setHeaders', 'attributes' => 'setAttributes', 'tags' => 'setTags']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'emailTo' => 'getEmailTo', - 'emailBcc' => 'getEmailBcc', - 'emailCc' => 'getEmailCc', - 'replyTo' => 'getReplyTo', - 'attachmentUrl' => 'getAttachmentUrl', - 'attachment' => 'getAttachment', - 'headers' => 'getHeaders', - 'attributes' => 'getAttributes', - 'tags' => 'getTags' - ]; - + protected static $getters = ['emailTo' => 'getEmailTo', 'emailBcc' => 'getEmailBcc', 'emailCc' => 'getEmailCc', 'replyTo' => 'getReplyTo', 'attachmentUrl' => 'getAttachmentUrl', 'attachment' => 'getAttachment', 'headers' => 'getHeaders', 'attributes' => 'getAttributes', 'tags' => 'getTags']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -167,7 +105,6 @@ class SendEmail implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -177,7 +114,6 @@ class SendEmail implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -187,7 +123,6 @@ class SendEmail implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -197,18 +132,12 @@ class SendEmail implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -227,7 +156,6 @@ class SendEmail implements ModelInterface, ArrayAccess $this->container['attributes'] = isset($data['attributes']) ? $data['attributes'] : null; $this->container['tags'] = isset($data['tags']) ? $data['tags'] : null; } - /** * Show all the invalid properties with reasons. * @@ -236,13 +164,11 @@ class SendEmail implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['emailTo'] === null) { $invalidProperties[] = "'emailTo' can't be null"; } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -251,10 +177,8 @@ class SendEmail implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets emailTo * @@ -264,7 +188,6 @@ class SendEmail implements ModelInterface, ArrayAccess { return $this->container['emailTo']; } - /** * Sets emailTo * @@ -275,10 +198,8 @@ class SendEmail implements ModelInterface, ArrayAccess public function setEmailTo($emailTo) { $this->container['emailTo'] = $emailTo; - return $this; } - /** * Gets emailBcc * @@ -288,7 +209,6 @@ class SendEmail implements ModelInterface, ArrayAccess { return $this->container['emailBcc']; } - /** * Sets emailBcc * @@ -299,10 +219,8 @@ class SendEmail implements ModelInterface, ArrayAccess public function setEmailBcc($emailBcc) { $this->container['emailBcc'] = $emailBcc; - return $this; } - /** * Gets emailCc * @@ -312,7 +230,6 @@ class SendEmail implements ModelInterface, ArrayAccess { return $this->container['emailCc']; } - /** * Sets emailCc * @@ -323,10 +240,8 @@ class SendEmail implements ModelInterface, ArrayAccess public function setEmailCc($emailCc) { $this->container['emailCc'] = $emailCc; - return $this; } - /** * Gets replyTo * @@ -336,7 +251,6 @@ class SendEmail implements ModelInterface, ArrayAccess { return $this->container['replyTo']; } - /** * Sets replyTo * @@ -347,10 +261,8 @@ class SendEmail implements ModelInterface, ArrayAccess public function setReplyTo($replyTo) { $this->container['replyTo'] = $replyTo; - return $this; } - /** * Gets attachmentUrl * @@ -360,7 +272,6 @@ class SendEmail implements ModelInterface, ArrayAccess { return $this->container['attachmentUrl']; } - /** * Sets attachmentUrl * @@ -371,10 +282,8 @@ class SendEmail implements ModelInterface, ArrayAccess public function setAttachmentUrl($attachmentUrl) { $this->container['attachmentUrl'] = $attachmentUrl; - return $this; } - /** * Gets attachment * @@ -384,21 +293,18 @@ class SendEmail implements ModelInterface, ArrayAccess { return $this->container['attachment']; } - /** * Sets attachment * - * @param \SendinBlue\Client\Model\SendEmailAttachment[] $attachment Pass the list of content (base64 encoded) and name of the attachment. For example, [{'content':'base64 encoded content 1', 'name':'attcahment1'}, {'content':'base64 encoded content 2', 'name':'attcahment2'}]. + * @param \SendinBlue\Client\Model\SendEmailAttachment[] $attachment Pass the list of content (base64 encoded) and name of the attachment. For example, [{\"content\":\"base64 encoded content 1\", \"name\":\"attcahment1\"}, {\"content\":\"base64 encoded content 2\", \"name\":\"attcahment2\"}]. * * @return $this */ public function setAttachment($attachment) { $this->container['attachment'] = $attachment; - return $this; } - /** * Gets headers * @@ -408,21 +314,18 @@ class SendEmail implements ModelInterface, ArrayAccess { return $this->container['headers']; } - /** * Sets headers * - * @param object $headers Pass the set of headers that shall be sent along the mail headers in the original email. 'sender.ip' header can be set (only for dedicated ip users) to mention the IP to be used for sending transactional emails. For example, {'Content-Type':'text/html', 'charset':'iso-8859-1', 'sender.ip':'1.2.3.4'} + * @param object $headers Pass the set of headers that shall be sent along the mail headers in the original email. 'sender.ip' header can be set (only for dedicated ip users) to mention the IP to be used for sending transactional emails. Headers are allowed in `This-Case-Only` (i.e. words separated by hyphen with first letter of each word in capital letter), they will be converted to such case styling if not in this format in the request payload. For example, {\"Content-Type\":\"text/html\", \"charset\":\"iso-8859-1\", \"sender.ip\":\"1.2.3.4\"} * * @return $this */ public function setHeaders($headers) { $this->container['headers'] = $headers; - return $this; } - /** * Gets attributes * @@ -432,21 +335,18 @@ class SendEmail implements ModelInterface, ArrayAccess { return $this->container['attributes']; } - /** * Sets attributes * - * @param object $attributes Pass the set of attributes to customize the template. For example, {'FNAME':'Joe', 'LNAME':'Doe'} + * @param object $attributes Pass the set of attributes to customize the template. For example, {\"FNAME\":\"Joe\", \"LNAME\":\"Doe\"} * * @return $this */ public function setAttributes($attributes) { $this->container['attributes'] = $attributes; - return $this; } - /** * Gets tags * @@ -456,7 +356,6 @@ class SendEmail implements ModelInterface, ArrayAccess { return $this->container['tags']; } - /** * Sets tags * @@ -467,7 +366,6 @@ class SendEmail implements ModelInterface, ArrayAccess public function setTags($tags) { $this->container['tags'] = $tags; - return $this; } /** @@ -481,7 +379,6 @@ class SendEmail implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -493,7 +390,6 @@ class SendEmail implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -504,13 +400,12 @@ class SendEmail implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -522,7 +417,6 @@ class SendEmail implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -530,15 +424,10 @@ class SendEmail implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendEmailAttachment.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendEmailAttachment.php similarity index 77% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendEmailAttachment.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendEmailAttachment.php index 15bbdf5..90fa01f 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendEmailAttachment.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendEmailAttachment.php @@ -1,4 +1,5 @@ 'string', - 'name' => 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['content' => 'string', 'name' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'content' => 'byte', - 'name' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['content' => 'byte', 'name' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -80,7 +67,6 @@ class SendEmailAttachment implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -90,38 +76,25 @@ class SendEmailAttachment implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'content' => 'content', - 'name' => 'name' - ]; - + protected static $attributeMap = ['content' => 'content', 'name' => 'name']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'content' => 'setContent', - 'name' => 'setName' - ]; - + protected static $setters = ['content' => 'setContent', 'name' => 'setName']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'content' => 'getContent', - 'name' => 'getName' - ]; - + protected static $getters = ['content' => 'getContent', 'name' => 'getName']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -132,7 +105,6 @@ class SendEmailAttachment implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -142,7 +114,6 @@ class SendEmailAttachment implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -152,7 +123,6 @@ class SendEmailAttachment implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -162,18 +132,12 @@ class SendEmailAttachment implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -185,7 +149,6 @@ class SendEmailAttachment implements ModelInterface, ArrayAccess $this->container['content'] = isset($data['content']) ? $data['content'] : null; $this->container['name'] = isset($data['name']) ? $data['name'] : null; } - /** * Show all the invalid properties with reasons. * @@ -194,20 +157,17 @@ class SendEmailAttachment implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['content'] === null) { $invalidProperties[] = "'content' can't be null"; } - if (!preg_match("/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/", $this->container['content'])) { - $invalidProperties[] = "invalid value for 'content', must be conform to the pattern /^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/."; + if (!\preg_match("/^(?:[A-Za-z0-9+\\/]{4})*(?:[A-Za-z0-9+\\/]{2}==|[A-Za-z0-9+\\/]{3}=)?\$/", $this->container['content'])) { + $invalidProperties[] = "invalid value for 'content', must be conform to the pattern /^(?:[A-Za-z0-9+\\/]{4})*(?:[A-Za-z0-9+\\/]{2}==|[A-Za-z0-9+\\/]{3}=)?\$/."; } - if ($this->container['name'] === null) { $invalidProperties[] = "'name' can't be null"; } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -216,10 +176,8 @@ class SendEmailAttachment implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets content * @@ -229,7 +187,6 @@ class SendEmailAttachment implements ModelInterface, ArrayAccess { return $this->container['content']; } - /** * Sets content * @@ -239,16 +196,12 @@ class SendEmailAttachment implements ModelInterface, ArrayAccess */ public function setContent($content) { - - if ((!preg_match("/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/", $content))) { - throw new \InvalidArgumentException("invalid value for $content when calling SendEmailAttachment., must conform to the pattern /^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/."); + if (!\preg_match("/^(?:[A-Za-z0-9+\\/]{4})*(?:[A-Za-z0-9+\\/]{2}==|[A-Za-z0-9+\\/]{3}=)?\$/", $content)) { + throw new \InvalidArgumentException("invalid value for {$content} when calling SendEmailAttachment., must conform to the pattern /^(?:[A-Za-z0-9+\\/]{4})*(?:[A-Za-z0-9+\\/]{2}==|[A-Za-z0-9+\\/]{3}=)?\$/."); } - $this->container['content'] = $content; - return $this; } - /** * Gets name * @@ -258,7 +211,6 @@ class SendEmailAttachment implements ModelInterface, ArrayAccess { return $this->container['name']; } - /** * Sets name * @@ -269,7 +221,6 @@ class SendEmailAttachment implements ModelInterface, ArrayAccess public function setName($name) { $this->container['name'] = $name; - return $this; } /** @@ -283,7 +234,6 @@ class SendEmailAttachment implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -295,7 +245,6 @@ class SendEmailAttachment implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -306,13 +255,12 @@ class SendEmailAttachment implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -324,7 +272,6 @@ class SendEmailAttachment implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -332,15 +279,10 @@ class SendEmailAttachment implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendReport.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendReport.php similarity index 75% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendReport.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendReport.php index e9949be..59ed91f 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendReport.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendReport.php @@ -1,4 +1,5 @@ 'string', - 'email' => '\SendinBlue\Client\Model\SendReportEmail' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['language' => 'string', 'email' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendReportEmail']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'language' => null, - 'email' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['language' => null, 'email' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -80,7 +67,6 @@ class SendReport implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -90,38 +76,25 @@ class SendReport implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'language' => 'language', - 'email' => 'email' - ]; - + protected static $attributeMap = ['language' => 'language', 'email' => 'email']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'language' => 'setLanguage', - 'email' => 'setEmail' - ]; - + protected static $setters = ['language' => 'setLanguage', 'email' => 'setEmail']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'language' => 'getLanguage', - 'email' => 'getEmail' - ]; - + protected static $getters = ['language' => 'getLanguage', 'email' => 'getEmail']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -132,7 +105,6 @@ class SendReport implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -142,7 +114,6 @@ class SendReport implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -152,7 +123,6 @@ class SendReport implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -162,16 +132,12 @@ class SendReport implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - const LANGUAGE_FR = 'fr'; const LANGUAGE_ES = 'es'; const LANGUAGE_PT = 'pt'; const LANGUAGE_IT = 'it'; const LANGUAGE_DE = 'de'; const LANGUAGE_EN = 'en'; - - - /** * Gets allowable values of the enum * @@ -179,24 +145,14 @@ class SendReport implements ModelInterface, ArrayAccess */ public function getLanguageAllowableValues() { - return [ - self::LANGUAGE_FR, - self::LANGUAGE_ES, - self::LANGUAGE_PT, - self::LANGUAGE_IT, - self::LANGUAGE_DE, - self::LANGUAGE_EN, - ]; + return [self::LANGUAGE_FR, self::LANGUAGE_ES, self::LANGUAGE_PT, self::LANGUAGE_IT, self::LANGUAGE_DE, self::LANGUAGE_EN]; } - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -208,7 +164,6 @@ class SendReport implements ModelInterface, ArrayAccess $this->container['language'] = isset($data['language']) ? $data['language'] : 'fr'; $this->container['email'] = isset($data['email']) ? $data['email'] : null; } - /** * Show all the invalid properties with reasons. * @@ -217,21 +172,15 @@ class SendReport implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - $allowedValues = $this->getLanguageAllowableValues(); - if (!is_null($this->container['language']) && !in_array($this->container['language'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value for 'language', must be one of '%s'", - implode("', '", $allowedValues) - ); + if (!\is_null($this->container['language']) && !\in_array($this->container['language'], $allowedValues, \true)) { + $invalidProperties[] = \sprintf("invalid value for 'language', must be one of '%s'", \implode("', '", $allowedValues)); } - if ($this->container['email'] === null) { $invalidProperties[] = "'email' can't be null"; } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -240,10 +189,8 @@ class SendReport implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets language * @@ -253,7 +200,6 @@ class SendReport implements ModelInterface, ArrayAccess { return $this->container['language']; } - /** * Sets language * @@ -264,19 +210,12 @@ class SendReport implements ModelInterface, ArrayAccess public function setLanguage($language) { $allowedValues = $this->getLanguageAllowableValues(); - if (!is_null($language) && !in_array($language, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'language', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); + if (!\is_null($language) && !\in_array($language, $allowedValues, \true)) { + throw new \InvalidArgumentException(\sprintf("Invalid value for 'language', must be one of '%s'", \implode("', '", $allowedValues))); } $this->container['language'] = $language; - return $this; } - /** * Gets email * @@ -286,7 +225,6 @@ class SendReport implements ModelInterface, ArrayAccess { return $this->container['email']; } - /** * Sets email * @@ -297,7 +235,6 @@ class SendReport implements ModelInterface, ArrayAccess public function setEmail($email) { $this->container['email'] = $email; - return $this; } /** @@ -311,7 +248,6 @@ class SendReport implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -323,7 +259,6 @@ class SendReport implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -334,13 +269,12 @@ class SendReport implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -352,7 +286,6 @@ class SendReport implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -360,15 +293,10 @@ class SendReport implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendReportEmail.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendReportEmail.php similarity index 76% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendReportEmail.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendReportEmail.php index e145810..1987606 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendReportEmail.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendReportEmail.php @@ -1,4 +1,5 @@ 'string', - 'to' => 'string[]', - 'contentType' => 'string', - 'bcc' => 'string[]', - 'cc' => 'string[]', - 'body' => 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['subject' => 'string', 'to' => 'string[]', 'contentType' => 'string', 'bcc' => 'string[]', 'cc' => 'string[]', 'body' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'subject' => null, - 'to' => 'email', - 'contentType' => null, - 'bcc' => 'email', - 'cc' => 'email', - 'body' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['subject' => null, 'to' => 'email', 'contentType' => null, 'bcc' => 'email', 'cc' => 'email', 'body' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -89,7 +68,6 @@ class SendReportEmail implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -99,50 +77,25 @@ class SendReportEmail implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'subject' => 'subject', - 'to' => 'to', - 'contentType' => 'contentType', - 'bcc' => 'bcc', - 'cc' => 'cc', - 'body' => 'body' - ]; - + protected static $attributeMap = ['subject' => 'subject', 'to' => 'to', 'contentType' => 'contentType', 'bcc' => 'bcc', 'cc' => 'cc', 'body' => 'body']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'subject' => 'setSubject', - 'to' => 'setTo', - 'contentType' => 'setContentType', - 'bcc' => 'setBcc', - 'cc' => 'setCc', - 'body' => 'setBody' - ]; - + protected static $setters = ['subject' => 'setSubject', 'to' => 'setTo', 'contentType' => 'setContentType', 'bcc' => 'setBcc', 'cc' => 'setCc', 'body' => 'setBody']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'subject' => 'getSubject', - 'to' => 'getTo', - 'contentType' => 'getContentType', - 'bcc' => 'getBcc', - 'cc' => 'getCc', - 'body' => 'getBody' - ]; - + protected static $getters = ['subject' => 'getSubject', 'to' => 'getTo', 'contentType' => 'getContentType', 'bcc' => 'getBcc', 'cc' => 'getCc', 'body' => 'getBody']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -153,7 +106,6 @@ class SendReportEmail implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -163,7 +115,6 @@ class SendReportEmail implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -173,7 +124,6 @@ class SendReportEmail implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -183,12 +133,8 @@ class SendReportEmail implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - const CONTENT_TYPE_TEXT = 'text'; const CONTENT_TYPE_HTML = 'html'; - - - /** * Gets allowable values of the enum * @@ -196,20 +142,14 @@ class SendReportEmail implements ModelInterface, ArrayAccess */ public function getContentTypeAllowableValues() { - return [ - self::CONTENT_TYPE_TEXT, - self::CONTENT_TYPE_HTML, - ]; + return [self::CONTENT_TYPE_TEXT, self::CONTENT_TYPE_HTML]; } - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -225,7 +165,6 @@ class SendReportEmail implements ModelInterface, ArrayAccess $this->container['cc'] = isset($data['cc']) ? $data['cc'] : null; $this->container['body'] = isset($data['body']) ? $data['body'] : null; } - /** * Show all the invalid properties with reasons. * @@ -234,7 +173,6 @@ class SendReportEmail implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['subject'] === null) { $invalidProperties[] = "'subject' can't be null"; } @@ -242,19 +180,14 @@ class SendReportEmail implements ModelInterface, ArrayAccess $invalidProperties[] = "'to' can't be null"; } $allowedValues = $this->getContentTypeAllowableValues(); - if (!is_null($this->container['contentType']) && !in_array($this->container['contentType'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value for 'contentType', must be one of '%s'", - implode("', '", $allowedValues) - ); + if (!\is_null($this->container['contentType']) && !\in_array($this->container['contentType'], $allowedValues, \true)) { + $invalidProperties[] = \sprintf("invalid value for 'contentType', must be one of '%s'", \implode("', '", $allowedValues)); } - if ($this->container['body'] === null) { $invalidProperties[] = "'body' can't be null"; } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -263,10 +196,8 @@ class SendReportEmail implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets subject * @@ -276,7 +207,6 @@ class SendReportEmail implements ModelInterface, ArrayAccess { return $this->container['subject']; } - /** * Sets subject * @@ -287,10 +217,8 @@ class SendReportEmail implements ModelInterface, ArrayAccess public function setSubject($subject) { $this->container['subject'] = $subject; - return $this; } - /** * Gets to * @@ -300,7 +228,6 @@ class SendReportEmail implements ModelInterface, ArrayAccess { return $this->container['to']; } - /** * Sets to * @@ -311,10 +238,8 @@ class SendReportEmail implements ModelInterface, ArrayAccess public function setTo($to) { $this->container['to'] = $to; - return $this; } - /** * Gets contentType * @@ -324,7 +249,6 @@ class SendReportEmail implements ModelInterface, ArrayAccess { return $this->container['contentType']; } - /** * Sets contentType * @@ -335,19 +259,12 @@ class SendReportEmail implements ModelInterface, ArrayAccess public function setContentType($contentType) { $allowedValues = $this->getContentTypeAllowableValues(); - if (!is_null($contentType) && !in_array($contentType, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'contentType', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); + if (!\is_null($contentType) && !\in_array($contentType, $allowedValues, \true)) { + throw new \InvalidArgumentException(\sprintf("Invalid value for 'contentType', must be one of '%s'", \implode("', '", $allowedValues))); } $this->container['contentType'] = $contentType; - return $this; } - /** * Gets bcc * @@ -357,7 +274,6 @@ class SendReportEmail implements ModelInterface, ArrayAccess { return $this->container['bcc']; } - /** * Sets bcc * @@ -368,10 +284,8 @@ class SendReportEmail implements ModelInterface, ArrayAccess public function setBcc($bcc) { $this->container['bcc'] = $bcc; - return $this; } - /** * Gets cc * @@ -381,7 +295,6 @@ class SendReportEmail implements ModelInterface, ArrayAccess { return $this->container['cc']; } - /** * Sets cc * @@ -392,10 +305,8 @@ class SendReportEmail implements ModelInterface, ArrayAccess public function setCc($cc) { $this->container['cc'] = $cc; - return $this; } - /** * Gets body * @@ -405,7 +316,6 @@ class SendReportEmail implements ModelInterface, ArrayAccess { return $this->container['body']; } - /** * Sets body * @@ -416,7 +326,6 @@ class SendReportEmail implements ModelInterface, ArrayAccess public function setBody($body) { $this->container['body'] = $body; - return $this; } /** @@ -430,7 +339,6 @@ class SendReportEmail implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -442,7 +350,6 @@ class SendReportEmail implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -453,13 +360,12 @@ class SendReportEmail implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -471,7 +377,6 @@ class SendReportEmail implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -479,15 +384,10 @@ class SendReportEmail implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSms.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSms.php similarity index 80% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSms.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSms.php index c991b8a..1c46398 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSms.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSms.php @@ -1,4 +1,5 @@ 'string', - 'messageId' => 'int', - 'smsCount' => 'int', - 'usedCredits' => 'float', - 'remainingCredits' => 'float' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['reference' => 'string', 'messageId' => 'int', 'smsCount' => 'int', 'usedCredits' => 'float', 'remainingCredits' => 'float']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'reference' => null, - 'messageId' => 'int64', - 'smsCount' => 'int64', - 'usedCredits' => 'float', - 'remainingCredits' => 'float' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['reference' => null, 'messageId' => 'int64', 'smsCount' => 'int64', 'usedCredits' => 'float', 'remainingCredits' => 'float']; /** * Array of property to type mappings. Used for (de)serialization * @@ -86,7 +67,6 @@ class SendSms implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -96,47 +76,25 @@ class SendSms implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'reference' => 'reference', - 'messageId' => 'messageId', - 'smsCount' => 'smsCount', - 'usedCredits' => 'usedCredits', - 'remainingCredits' => 'remainingCredits' - ]; - + protected static $attributeMap = ['reference' => 'reference', 'messageId' => 'messageId', 'smsCount' => 'smsCount', 'usedCredits' => 'usedCredits', 'remainingCredits' => 'remainingCredits']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'reference' => 'setReference', - 'messageId' => 'setMessageId', - 'smsCount' => 'setSmsCount', - 'usedCredits' => 'setUsedCredits', - 'remainingCredits' => 'setRemainingCredits' - ]; - + protected static $setters = ['reference' => 'setReference', 'messageId' => 'setMessageId', 'smsCount' => 'setSmsCount', 'usedCredits' => 'setUsedCredits', 'remainingCredits' => 'setRemainingCredits']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'reference' => 'getReference', - 'messageId' => 'getMessageId', - 'smsCount' => 'getSmsCount', - 'usedCredits' => 'getUsedCredits', - 'remainingCredits' => 'getRemainingCredits' - ]; - + protected static $getters = ['reference' => 'getReference', 'messageId' => 'getMessageId', 'smsCount' => 'getSmsCount', 'usedCredits' => 'getUsedCredits', 'remainingCredits' => 'getRemainingCredits']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -147,7 +105,6 @@ class SendSms implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -157,7 +114,6 @@ class SendSms implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -167,7 +123,6 @@ class SendSms implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -177,18 +132,12 @@ class SendSms implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -203,7 +152,6 @@ class SendSms implements ModelInterface, ArrayAccess $this->container['usedCredits'] = isset($data['usedCredits']) ? $data['usedCredits'] : null; $this->container['remainingCredits'] = isset($data['remainingCredits']) ? $data['remainingCredits'] : null; } - /** * Show all the invalid properties with reasons. * @@ -212,7 +160,6 @@ class SendSms implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['reference'] === null) { $invalidProperties[] = "'reference' can't be null"; } @@ -221,7 +168,6 @@ class SendSms implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -230,10 +176,8 @@ class SendSms implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets reference * @@ -243,7 +187,6 @@ class SendSms implements ModelInterface, ArrayAccess { return $this->container['reference']; } - /** * Sets reference * @@ -254,10 +197,8 @@ class SendSms implements ModelInterface, ArrayAccess public function setReference($reference) { $this->container['reference'] = $reference; - return $this; } - /** * Gets messageId * @@ -267,7 +208,6 @@ class SendSms implements ModelInterface, ArrayAccess { return $this->container['messageId']; } - /** * Sets messageId * @@ -278,10 +218,8 @@ class SendSms implements ModelInterface, ArrayAccess public function setMessageId($messageId) { $this->container['messageId'] = $messageId; - return $this; } - /** * Gets smsCount * @@ -291,7 +229,6 @@ class SendSms implements ModelInterface, ArrayAccess { return $this->container['smsCount']; } - /** * Sets smsCount * @@ -302,10 +239,8 @@ class SendSms implements ModelInterface, ArrayAccess public function setSmsCount($smsCount) { $this->container['smsCount'] = $smsCount; - return $this; } - /** * Gets usedCredits * @@ -315,7 +250,6 @@ class SendSms implements ModelInterface, ArrayAccess { return $this->container['usedCredits']; } - /** * Sets usedCredits * @@ -326,10 +260,8 @@ class SendSms implements ModelInterface, ArrayAccess public function setUsedCredits($usedCredits) { $this->container['usedCredits'] = $usedCredits; - return $this; } - /** * Gets remainingCredits * @@ -339,7 +271,6 @@ class SendSms implements ModelInterface, ArrayAccess { return $this->container['remainingCredits']; } - /** * Sets remainingCredits * @@ -350,7 +281,6 @@ class SendSms implements ModelInterface, ArrayAccess public function setRemainingCredits($remainingCredits) { $this->container['remainingCredits'] = $remainingCredits; - return $this; } /** @@ -364,7 +294,6 @@ class SendSms implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -376,7 +305,6 @@ class SendSms implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -387,13 +315,12 @@ class SendSms implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -405,7 +332,6 @@ class SendSms implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -413,15 +339,10 @@ class SendSms implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmail.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmail.php similarity index 73% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmail.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmail.php index 81f0047..356a01f 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmail.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmail.php @@ -1,4 +1,5 @@ '\SendinBlue\Client\Model\SendSmtpEmailSender', - 'to' => '\SendinBlue\Client\Model\SendSmtpEmailTo[]', - 'bcc' => '\SendinBlue\Client\Model\SendSmtpEmailBcc[]', - 'cc' => '\SendinBlue\Client\Model\SendSmtpEmailCc[]', - 'htmlContent' => 'string', - 'textContent' => 'string', - 'subject' => 'string', - 'replyTo' => '\SendinBlue\Client\Model\SendSmtpEmailReplyTo', - 'attachment' => '\SendinBlue\Client\Model\SendSmtpEmailAttachment[]', - 'headers' => 'object', - 'templateId' => 'int', - 'params' => 'object', - 'tags' => 'string[]' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['sender' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendSmtpEmailSender', 'to' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendSmtpEmailTo[]', 'bcc' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendSmtpEmailBcc[]', 'cc' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendSmtpEmailCc[]', 'htmlContent' => 'string', 'textContent' => 'string', 'subject' => 'string', 'replyTo' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendSmtpEmailReplyTo', 'attachment' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\SendSmtpEmailAttachment[]', 'headers' => 'object', 'templateId' => 'int', 'params' => 'object', 'tags' => 'string[]']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'sender' => null, - 'to' => null, - 'bcc' => null, - 'cc' => null, - 'htmlContent' => null, - 'textContent' => null, - 'subject' => null, - 'replyTo' => null, - 'attachment' => null, - 'headers' => null, - 'templateId' => 'int64', - 'params' => null, - 'tags' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['sender' => null, 'to' => null, 'bcc' => null, 'cc' => null, 'htmlContent' => null, 'textContent' => null, 'subject' => null, 'replyTo' => null, 'attachment' => null, 'headers' => null, 'templateId' => 'int64', 'params' => null, 'tags' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -102,7 +67,6 @@ class SendSmtpEmail implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -112,71 +76,25 @@ class SendSmtpEmail implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'sender' => 'sender', - 'to' => 'to', - 'bcc' => 'bcc', - 'cc' => 'cc', - 'htmlContent' => 'htmlContent', - 'textContent' => 'textContent', - 'subject' => 'subject', - 'replyTo' => 'replyTo', - 'attachment' => 'attachment', - 'headers' => 'headers', - 'templateId' => 'templateId', - 'params' => 'params', - 'tags' => 'tags' - ]; - + protected static $attributeMap = ['sender' => 'sender', 'to' => 'to', 'bcc' => 'bcc', 'cc' => 'cc', 'htmlContent' => 'htmlContent', 'textContent' => 'textContent', 'subject' => 'subject', 'replyTo' => 'replyTo', 'attachment' => 'attachment', 'headers' => 'headers', 'templateId' => 'templateId', 'params' => 'params', 'tags' => 'tags']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'sender' => 'setSender', - 'to' => 'setTo', - 'bcc' => 'setBcc', - 'cc' => 'setCc', - 'htmlContent' => 'setHtmlContent', - 'textContent' => 'setTextContent', - 'subject' => 'setSubject', - 'replyTo' => 'setReplyTo', - 'attachment' => 'setAttachment', - 'headers' => 'setHeaders', - 'templateId' => 'setTemplateId', - 'params' => 'setParams', - 'tags' => 'setTags' - ]; - + protected static $setters = ['sender' => 'setSender', 'to' => 'setTo', 'bcc' => 'setBcc', 'cc' => 'setCc', 'htmlContent' => 'setHtmlContent', 'textContent' => 'setTextContent', 'subject' => 'setSubject', 'replyTo' => 'setReplyTo', 'attachment' => 'setAttachment', 'headers' => 'setHeaders', 'templateId' => 'setTemplateId', 'params' => 'setParams', 'tags' => 'setTags']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'sender' => 'getSender', - 'to' => 'getTo', - 'bcc' => 'getBcc', - 'cc' => 'getCc', - 'htmlContent' => 'getHtmlContent', - 'textContent' => 'getTextContent', - 'subject' => 'getSubject', - 'replyTo' => 'getReplyTo', - 'attachment' => 'getAttachment', - 'headers' => 'getHeaders', - 'templateId' => 'getTemplateId', - 'params' => 'getParams', - 'tags' => 'getTags' - ]; - + protected static $getters = ['sender' => 'getSender', 'to' => 'getTo', 'bcc' => 'getBcc', 'cc' => 'getCc', 'htmlContent' => 'getHtmlContent', 'textContent' => 'getTextContent', 'subject' => 'getSubject', 'replyTo' => 'getReplyTo', 'attachment' => 'getAttachment', 'headers' => 'getHeaders', 'templateId' => 'getTemplateId', 'params' => 'getParams', 'tags' => 'getTags']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -187,7 +105,6 @@ class SendSmtpEmail implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -197,7 +114,6 @@ class SendSmtpEmail implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -207,7 +123,6 @@ class SendSmtpEmail implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -217,18 +132,12 @@ class SendSmtpEmail implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -251,7 +160,6 @@ class SendSmtpEmail implements ModelInterface, ArrayAccess $this->container['params'] = isset($data['params']) ? $data['params'] : null; $this->container['tags'] = isset($data['tags']) ? $data['tags'] : null; } - /** * Show all the invalid properties with reasons. * @@ -260,13 +168,11 @@ class SendSmtpEmail implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['to'] === null) { $invalidProperties[] = "'to' can't be null"; } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -275,10 +181,8 @@ class SendSmtpEmail implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets sender * @@ -288,7 +192,6 @@ class SendSmtpEmail implements ModelInterface, ArrayAccess { return $this->container['sender']; } - /** * Sets sender * @@ -299,10 +202,8 @@ class SendSmtpEmail implements ModelInterface, ArrayAccess public function setSender($sender) { $this->container['sender'] = $sender; - return $this; } - /** * Gets to * @@ -312,21 +213,18 @@ class SendSmtpEmail implements ModelInterface, ArrayAccess { return $this->container['to']; } - /** * Sets to * - * @param \SendinBlue\Client\Model\SendSmtpEmailTo[] $to List of email addresses and names (optional) of the recipients. For example, [{'name':'Jimmy', 'email':'jimmy98@example.com'}, {'name':'Joe', 'email':'joe@example.com'}] + * @param \SendinBlue\Client\Model\SendSmtpEmailTo[] $to List of email addresses and names (optional) of the recipients. For example, [{\"name\":\"Jimmy\", \"email\":\"jimmy98@example.com\"}, {\"name\":\"Joe\", \"email\":\"joe@example.com\"}] * * @return $this */ public function setTo($to) { $this->container['to'] = $to; - return $this; } - /** * Gets bcc * @@ -336,7 +234,6 @@ class SendSmtpEmail implements ModelInterface, ArrayAccess { return $this->container['bcc']; } - /** * Sets bcc * @@ -347,10 +244,8 @@ class SendSmtpEmail implements ModelInterface, ArrayAccess public function setBcc($bcc) { $this->container['bcc'] = $bcc; - return $this; } - /** * Gets cc * @@ -360,7 +255,6 @@ class SendSmtpEmail implements ModelInterface, ArrayAccess { return $this->container['cc']; } - /** * Sets cc * @@ -371,10 +265,8 @@ class SendSmtpEmail implements ModelInterface, ArrayAccess public function setCc($cc) { $this->container['cc'] = $cc; - return $this; } - /** * Gets htmlContent * @@ -384,7 +276,6 @@ class SendSmtpEmail implements ModelInterface, ArrayAccess { return $this->container['htmlContent']; } - /** * Sets htmlContent * @@ -395,10 +286,8 @@ class SendSmtpEmail implements ModelInterface, ArrayAccess public function setHtmlContent($htmlContent) { $this->container['htmlContent'] = $htmlContent; - return $this; } - /** * Gets textContent * @@ -408,7 +297,6 @@ class SendSmtpEmail implements ModelInterface, ArrayAccess { return $this->container['textContent']; } - /** * Sets textContent * @@ -419,10 +307,8 @@ class SendSmtpEmail implements ModelInterface, ArrayAccess public function setTextContent($textContent) { $this->container['textContent'] = $textContent; - return $this; } - /** * Gets subject * @@ -432,7 +318,6 @@ class SendSmtpEmail implements ModelInterface, ArrayAccess { return $this->container['subject']; } - /** * Sets subject * @@ -443,10 +328,8 @@ class SendSmtpEmail implements ModelInterface, ArrayAccess public function setSubject($subject) { $this->container['subject'] = $subject; - return $this; } - /** * Gets replyTo * @@ -456,7 +339,6 @@ class SendSmtpEmail implements ModelInterface, ArrayAccess { return $this->container['replyTo']; } - /** * Sets replyTo * @@ -467,10 +349,8 @@ class SendSmtpEmail implements ModelInterface, ArrayAccess public function setReplyTo($replyTo) { $this->container['replyTo'] = $replyTo; - return $this; } - /** * Gets attachment * @@ -480,21 +360,18 @@ class SendSmtpEmail implements ModelInterface, ArrayAccess { return $this->container['attachment']; } - /** * Sets attachment * - * @param \SendinBlue\Client\Model\SendSmtpEmailAttachment[] $attachment Pass the absolute URL (no local file) or the base64 content of the attachment along with the attachment name (Mandatory if attachment content is passed). For example, `[{\"url\":\"https://attachment.domain.com/myAttachmentFromUrl.jpg\", \"name\":\"My attachment 1\"}, {\"content\":\"base64 exmaple content\", \"name\":\"My attachment 2\"}]`. Allowed extensions for attachment file: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub, eps, odt, mp3, m4a, m4v, wma, ogg, flac, wav, aif, aifc, aiff, mp4, mov, avi, mkv, mpeg, mpg and wmv ( If 'templateId' is passed and is in New Template Language format then both attachment url and content are accepted. If template is in Old template Language format, then 'attachment' is ignored ) + * @param \SendinBlue\Client\Model\SendSmtpEmailAttachment[] $attachment Pass the absolute URL (no local file) or the base64 content of the attachment along with the attachment name (Mandatory if attachment content is passed). For example, `[{\"url\":\"https://attachment.domain.com/myAttachmentFromUrl.jpg\", \"name\":\"myAttachmentFromUrl.jpg\"}, {\"content\":\"base64 example content\", \"name\":\"myAttachmentFromBase64.jpg\"}]`. Allowed extensions for attachment file: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub, eps, odt, mp3, m4a, m4v, wma, ogg, flac, wav, aif, aifc, aiff, mp4, mov, avi, mkv, mpeg, mpg and wmv ( If 'templateId' is passed and is in New Template Language format then both attachment url and content are accepted. If template is in Old template Language format, then 'attachment' is ignored ) * * @return $this */ public function setAttachment($attachment) { $this->container['attachment'] = $attachment; - return $this; } - /** * Gets headers * @@ -504,21 +381,18 @@ class SendSmtpEmail implements ModelInterface, ArrayAccess { return $this->container['headers']; } - /** * Sets headers * - * @param object $headers Pass the set of custom headers (not the standard headers) that shall be sent along the mail headers in the original email. 'sender.ip' header can be set (only for dedicated ip users) to mention the IP to be used for sending transactional emails. For example, `{\"sender.ip\":\"1.2.3.4\", \"X-Mailin-custom\":\"some_custom_header\"}`. + * @param object $headers Pass the set of custom headers (not the standard headers) that shall be sent along the mail headers in the original email. 'sender.ip' header can be set (only for dedicated ip users) to mention the IP to be used for sending transactional emails. Headers are allowed in `This-Case-Only` (i.e. words separated by hyphen with first letter of each word in capital letter), they will be converted to such case styling if not in this format in the request payload. For example, `{\"sender.ip\":\"1.2.3.4\", \"X-Mailin-custom\":\"some_custom_header\"}`. * * @return $this */ public function setHeaders($headers) { $this->container['headers'] = $headers; - return $this; } - /** * Gets templateId * @@ -528,7 +402,6 @@ class SendSmtpEmail implements ModelInterface, ArrayAccess { return $this->container['templateId']; } - /** * Sets templateId * @@ -539,10 +412,8 @@ class SendSmtpEmail implements ModelInterface, ArrayAccess public function setTemplateId($templateId) { $this->container['templateId'] = $templateId; - return $this; } - /** * Gets params * @@ -552,21 +423,18 @@ class SendSmtpEmail implements ModelInterface, ArrayAccess { return $this->container['params']; } - /** * Sets params * - * @param object $params Pass the set of attributes to customize the template. For example, {'FNAME':'Joe', 'LNAME':'Doe'}. It's considered only if template is in New Template Language format. Alternatively, you can pass the set of attributes to customize the template for each recipient. For this the email will be the key and its value will be a JSON containing attributes specific to each recipient. For example, `{'abc@example.com':{'name':'ABC', 'age':21}, 'xyz@example.com':{'name':'XYZ', 'age':25}}` + * @param object $params Pass the set of attributes to customize the template. For example, {\"FNAME\":\"Joe\", \"LNAME\":\"Doe\"}. It's considered only if template is in New Template Language format. * * @return $this */ public function setParams($params) { $this->container['params'] = $params; - return $this; } - /** * Gets tags * @@ -576,7 +444,6 @@ class SendSmtpEmail implements ModelInterface, ArrayAccess { return $this->container['tags']; } - /** * Sets tags * @@ -587,7 +454,6 @@ class SendSmtpEmail implements ModelInterface, ArrayAccess public function setTags($tags) { $this->container['tags'] = $tags; - return $this; } /** @@ -601,7 +467,6 @@ class SendSmtpEmail implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -613,7 +478,6 @@ class SendSmtpEmail implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -624,13 +488,12 @@ class SendSmtpEmail implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -642,7 +505,6 @@ class SendSmtpEmail implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -650,15 +512,10 @@ class SendSmtpEmail implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailAttachment.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailAttachment.php similarity index 76% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailAttachment.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailAttachment.php index 1bc49fd..ed5766e 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailAttachment.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailAttachment.php @@ -1,4 +1,5 @@ 'string', - 'content' => 'string', - 'name' => 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['url' => 'string', 'content' => 'string', 'name' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'url' => 'url', - 'content' => 'byte', - 'name' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['url' => 'url', 'content' => 'byte', 'name' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -82,7 +67,6 @@ class SendSmtpEmailAttachment implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -92,41 +76,25 @@ class SendSmtpEmailAttachment implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'url' => 'url', - 'content' => 'content', - 'name' => 'name' - ]; - + protected static $attributeMap = ['url' => 'url', 'content' => 'content', 'name' => 'name']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'url' => 'setUrl', - 'content' => 'setContent', - 'name' => 'setName' - ]; - + protected static $setters = ['url' => 'setUrl', 'content' => 'setContent', 'name' => 'setName']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'url' => 'getUrl', - 'content' => 'getContent', - 'name' => 'getName' - ]; - + protected static $getters = ['url' => 'getUrl', 'content' => 'getContent', 'name' => 'getName']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -137,7 +105,6 @@ class SendSmtpEmailAttachment implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -147,7 +114,6 @@ class SendSmtpEmailAttachment implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -157,7 +123,6 @@ class SendSmtpEmailAttachment implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -167,18 +132,12 @@ class SendSmtpEmailAttachment implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -191,7 +150,6 @@ class SendSmtpEmailAttachment implements ModelInterface, ArrayAccess $this->container['content'] = isset($data['content']) ? $data['content'] : null; $this->container['name'] = isset($data['name']) ? $data['name'] : null; } - /** * Show all the invalid properties with reasons. * @@ -200,14 +158,11 @@ class SendSmtpEmailAttachment implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - - if (!is_null($this->container['content']) && !preg_match("/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/", $this->container['content'])) { - $invalidProperties[] = "invalid value for 'content', must be conform to the pattern /^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/."; + if (!\is_null($this->container['content']) && !\preg_match("/^(?:[A-Za-z0-9+\\/]{4})*(?:[A-Za-z0-9+\\/]{2}==|[A-Za-z0-9+\\/]{3}=)?\$/", $this->container['content'])) { + $invalidProperties[] = "invalid value for 'content', must be conform to the pattern /^(?:[A-Za-z0-9+\\/]{4})*(?:[A-Za-z0-9+\\/]{2}==|[A-Za-z0-9+\\/]{3}=)?\$/."; } - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -216,10 +171,8 @@ class SendSmtpEmailAttachment implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets url * @@ -229,7 +182,6 @@ class SendSmtpEmailAttachment implements ModelInterface, ArrayAccess { return $this->container['url']; } - /** * Sets url * @@ -240,10 +192,8 @@ class SendSmtpEmailAttachment implements ModelInterface, ArrayAccess public function setUrl($url) { $this->container['url'] = $url; - return $this; } - /** * Gets content * @@ -253,7 +203,6 @@ class SendSmtpEmailAttachment implements ModelInterface, ArrayAccess { return $this->container['content']; } - /** * Sets content * @@ -263,16 +212,12 @@ class SendSmtpEmailAttachment implements ModelInterface, ArrayAccess */ public function setContent($content) { - - if (!is_null($content) && (!preg_match("/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/", $content))) { - throw new \InvalidArgumentException("invalid value for $content when calling SendSmtpEmailAttachment., must conform to the pattern /^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/."); + if (!\is_null($content) && !\preg_match("/^(?:[A-Za-z0-9+\\/]{4})*(?:[A-Za-z0-9+\\/]{2}==|[A-Za-z0-9+\\/]{3}=)?\$/", $content)) { + throw new \InvalidArgumentException("invalid value for {$content} when calling SendSmtpEmailAttachment., must conform to the pattern /^(?:[A-Za-z0-9+\\/]{4})*(?:[A-Za-z0-9+\\/]{2}==|[A-Za-z0-9+\\/]{3}=)?\$/."); } - $this->container['content'] = $content; - return $this; } - /** * Gets name * @@ -282,7 +227,6 @@ class SendSmtpEmailAttachment implements ModelInterface, ArrayAccess { return $this->container['name']; } - /** * Sets name * @@ -293,7 +237,6 @@ class SendSmtpEmailAttachment implements ModelInterface, ArrayAccess public function setName($name) { $this->container['name'] = $name; - return $this; } /** @@ -307,7 +250,6 @@ class SendSmtpEmailAttachment implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -319,7 +261,6 @@ class SendSmtpEmailAttachment implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -330,13 +271,12 @@ class SendSmtpEmailAttachment implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -348,7 +288,6 @@ class SendSmtpEmailAttachment implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -356,15 +295,10 @@ class SendSmtpEmailAttachment implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailBcc.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailBcc.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailBcc.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailBcc.php index 9861837..d7f56be 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailBcc.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailBcc.php @@ -1,4 +1,5 @@ 'string', - 'name' => 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['email' => 'string', 'name' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'email' => 'email', - 'name' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['email' => 'email', 'name' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -80,7 +67,6 @@ class SendSmtpEmailBcc implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -90,38 +76,25 @@ class SendSmtpEmailBcc implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'email' => 'email', - 'name' => 'name' - ]; - + protected static $attributeMap = ['email' => 'email', 'name' => 'name']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'email' => 'setEmail', - 'name' => 'setName' - ]; - + protected static $setters = ['email' => 'setEmail', 'name' => 'setName']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'email' => 'getEmail', - 'name' => 'getName' - ]; - + protected static $getters = ['email' => 'getEmail', 'name' => 'getName']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -132,7 +105,6 @@ class SendSmtpEmailBcc implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -142,7 +114,6 @@ class SendSmtpEmailBcc implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -152,7 +123,6 @@ class SendSmtpEmailBcc implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -162,18 +132,12 @@ class SendSmtpEmailBcc implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -185,7 +149,6 @@ class SendSmtpEmailBcc implements ModelInterface, ArrayAccess $this->container['email'] = isset($data['email']) ? $data['email'] : null; $this->container['name'] = isset($data['name']) ? $data['name'] : null; } - /** * Show all the invalid properties with reasons. * @@ -194,13 +157,11 @@ class SendSmtpEmailBcc implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['email'] === null) { $invalidProperties[] = "'email' can't be null"; } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -209,10 +170,8 @@ class SendSmtpEmailBcc implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets email * @@ -222,7 +181,6 @@ class SendSmtpEmailBcc implements ModelInterface, ArrayAccess { return $this->container['email']; } - /** * Sets email * @@ -233,10 +191,8 @@ class SendSmtpEmailBcc implements ModelInterface, ArrayAccess public function setEmail($email) { $this->container['email'] = $email; - return $this; } - /** * Gets name * @@ -246,7 +202,6 @@ class SendSmtpEmailBcc implements ModelInterface, ArrayAccess { return $this->container['name']; } - /** * Sets name * @@ -257,7 +212,6 @@ class SendSmtpEmailBcc implements ModelInterface, ArrayAccess public function setName($name) { $this->container['name'] = $name; - return $this; } /** @@ -271,7 +225,6 @@ class SendSmtpEmailBcc implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -283,7 +236,6 @@ class SendSmtpEmailBcc implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -294,13 +246,12 @@ class SendSmtpEmailBcc implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -312,7 +263,6 @@ class SendSmtpEmailBcc implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -320,15 +270,10 @@ class SendSmtpEmailBcc implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailCc.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailCc.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailCc.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailCc.php index 9104228..a142481 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailCc.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailCc.php @@ -1,4 +1,5 @@ 'string', - 'name' => 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['email' => 'string', 'name' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'email' => 'email', - 'name' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['email' => 'email', 'name' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -80,7 +67,6 @@ class SendSmtpEmailCc implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -90,38 +76,25 @@ class SendSmtpEmailCc implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'email' => 'email', - 'name' => 'name' - ]; - + protected static $attributeMap = ['email' => 'email', 'name' => 'name']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'email' => 'setEmail', - 'name' => 'setName' - ]; - + protected static $setters = ['email' => 'setEmail', 'name' => 'setName']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'email' => 'getEmail', - 'name' => 'getName' - ]; - + protected static $getters = ['email' => 'getEmail', 'name' => 'getName']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -132,7 +105,6 @@ class SendSmtpEmailCc implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -142,7 +114,6 @@ class SendSmtpEmailCc implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -152,7 +123,6 @@ class SendSmtpEmailCc implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -162,18 +132,12 @@ class SendSmtpEmailCc implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -185,7 +149,6 @@ class SendSmtpEmailCc implements ModelInterface, ArrayAccess $this->container['email'] = isset($data['email']) ? $data['email'] : null; $this->container['name'] = isset($data['name']) ? $data['name'] : null; } - /** * Show all the invalid properties with reasons. * @@ -194,13 +157,11 @@ class SendSmtpEmailCc implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['email'] === null) { $invalidProperties[] = "'email' can't be null"; } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -209,10 +170,8 @@ class SendSmtpEmailCc implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets email * @@ -222,7 +181,6 @@ class SendSmtpEmailCc implements ModelInterface, ArrayAccess { return $this->container['email']; } - /** * Sets email * @@ -233,10 +191,8 @@ class SendSmtpEmailCc implements ModelInterface, ArrayAccess public function setEmail($email) { $this->container['email'] = $email; - return $this; } - /** * Gets name * @@ -246,7 +202,6 @@ class SendSmtpEmailCc implements ModelInterface, ArrayAccess { return $this->container['name']; } - /** * Sets name * @@ -257,7 +212,6 @@ class SendSmtpEmailCc implements ModelInterface, ArrayAccess public function setName($name) { $this->container['name'] = $name; - return $this; } /** @@ -271,7 +225,6 @@ class SendSmtpEmailCc implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -283,7 +236,6 @@ class SendSmtpEmailCc implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -294,13 +246,12 @@ class SendSmtpEmailCc implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -312,7 +263,6 @@ class SendSmtpEmailCc implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -320,15 +270,10 @@ class SendSmtpEmailCc implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailReplyTo.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailReplyTo.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailReplyTo.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailReplyTo.php index 8bee479..c8a4623 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailReplyTo.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailReplyTo.php @@ -1,4 +1,5 @@ 'string', - 'name' => 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['email' => 'string', 'name' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'email' => 'email', - 'name' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['email' => 'email', 'name' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -81,7 +68,6 @@ class SendSmtpEmailReplyTo implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -91,38 +77,25 @@ class SendSmtpEmailReplyTo implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'email' => 'email', - 'name' => 'name' - ]; - + protected static $attributeMap = ['email' => 'email', 'name' => 'name']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'email' => 'setEmail', - 'name' => 'setName' - ]; - + protected static $setters = ['email' => 'setEmail', 'name' => 'setName']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'email' => 'getEmail', - 'name' => 'getName' - ]; - + protected static $getters = ['email' => 'getEmail', 'name' => 'getName']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -133,7 +106,6 @@ class SendSmtpEmailReplyTo implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -143,7 +115,6 @@ class SendSmtpEmailReplyTo implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -153,7 +124,6 @@ class SendSmtpEmailReplyTo implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -163,18 +133,12 @@ class SendSmtpEmailReplyTo implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -186,7 +150,6 @@ class SendSmtpEmailReplyTo implements ModelInterface, ArrayAccess $this->container['email'] = isset($data['email']) ? $data['email'] : null; $this->container['name'] = isset($data['name']) ? $data['name'] : null; } - /** * Show all the invalid properties with reasons. * @@ -195,13 +158,11 @@ class SendSmtpEmailReplyTo implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['email'] === null) { $invalidProperties[] = "'email' can't be null"; } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -210,10 +171,8 @@ class SendSmtpEmailReplyTo implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets email * @@ -223,7 +182,6 @@ class SendSmtpEmailReplyTo implements ModelInterface, ArrayAccess { return $this->container['email']; } - /** * Sets email * @@ -234,10 +192,8 @@ class SendSmtpEmailReplyTo implements ModelInterface, ArrayAccess public function setEmail($email) { $this->container['email'] = $email; - return $this; } - /** * Gets name * @@ -247,7 +203,6 @@ class SendSmtpEmailReplyTo implements ModelInterface, ArrayAccess { return $this->container['name']; } - /** * Sets name * @@ -258,7 +213,6 @@ class SendSmtpEmailReplyTo implements ModelInterface, ArrayAccess public function setName($name) { $this->container['name'] = $name; - return $this; } /** @@ -272,7 +226,6 @@ class SendSmtpEmailReplyTo implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -284,7 +237,6 @@ class SendSmtpEmailReplyTo implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -295,13 +247,12 @@ class SendSmtpEmailReplyTo implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -313,7 +264,6 @@ class SendSmtpEmailReplyTo implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -321,15 +271,10 @@ class SendSmtpEmailReplyTo implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailSender.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailSender.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailSender.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailSender.php index e146ea4..cee6381 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailSender.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailSender.php @@ -1,4 +1,5 @@ 'string', - 'email' => 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['name' => 'string', 'email' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'name' => null, - 'email' => 'email' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['name' => null, 'email' => 'email']; /** * Array of property to type mappings. Used for (de)serialization * @@ -81,7 +68,6 @@ class SendSmtpEmailSender implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -91,38 +77,25 @@ class SendSmtpEmailSender implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'name' => 'name', - 'email' => 'email' - ]; - + protected static $attributeMap = ['name' => 'name', 'email' => 'email']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'name' => 'setName', - 'email' => 'setEmail' - ]; - + protected static $setters = ['name' => 'setName', 'email' => 'setEmail']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'name' => 'getName', - 'email' => 'getEmail' - ]; - + protected static $getters = ['name' => 'getName', 'email' => 'getEmail']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -133,7 +106,6 @@ class SendSmtpEmailSender implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -143,7 +115,6 @@ class SendSmtpEmailSender implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -153,7 +124,6 @@ class SendSmtpEmailSender implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -163,18 +133,12 @@ class SendSmtpEmailSender implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -186,7 +150,6 @@ class SendSmtpEmailSender implements ModelInterface, ArrayAccess $this->container['name'] = isset($data['name']) ? $data['name'] : null; $this->container['email'] = isset($data['email']) ? $data['email'] : null; } - /** * Show all the invalid properties with reasons. * @@ -195,13 +158,11 @@ class SendSmtpEmailSender implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['email'] === null) { $invalidProperties[] = "'email' can't be null"; } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -210,10 +171,8 @@ class SendSmtpEmailSender implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets name * @@ -223,7 +182,6 @@ class SendSmtpEmailSender implements ModelInterface, ArrayAccess { return $this->container['name']; } - /** * Sets name * @@ -234,10 +192,8 @@ class SendSmtpEmailSender implements ModelInterface, ArrayAccess public function setName($name) { $this->container['name'] = $name; - return $this; } - /** * Gets email * @@ -247,7 +203,6 @@ class SendSmtpEmailSender implements ModelInterface, ArrayAccess { return $this->container['email']; } - /** * Sets email * @@ -258,7 +213,6 @@ class SendSmtpEmailSender implements ModelInterface, ArrayAccess public function setEmail($email) { $this->container['email'] = $email; - return $this; } /** @@ -272,7 +226,6 @@ class SendSmtpEmailSender implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -284,7 +237,6 @@ class SendSmtpEmailSender implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -295,13 +247,12 @@ class SendSmtpEmailSender implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -313,7 +264,6 @@ class SendSmtpEmailSender implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -321,15 +271,10 @@ class SendSmtpEmailSender implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailTo.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailTo.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailTo.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailTo.php index dd046a5..5191942 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailTo.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendSmtpEmailTo.php @@ -1,4 +1,5 @@ 'string', - 'name' => 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['email' => 'string', 'name' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'email' => 'email', - 'name' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['email' => 'email', 'name' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -80,7 +67,6 @@ class SendSmtpEmailTo implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -90,38 +76,25 @@ class SendSmtpEmailTo implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'email' => 'email', - 'name' => 'name' - ]; - + protected static $attributeMap = ['email' => 'email', 'name' => 'name']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'email' => 'setEmail', - 'name' => 'setName' - ]; - + protected static $setters = ['email' => 'setEmail', 'name' => 'setName']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'email' => 'getEmail', - 'name' => 'getName' - ]; - + protected static $getters = ['email' => 'getEmail', 'name' => 'getName']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -132,7 +105,6 @@ class SendSmtpEmailTo implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -142,7 +114,6 @@ class SendSmtpEmailTo implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -152,7 +123,6 @@ class SendSmtpEmailTo implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -162,18 +132,12 @@ class SendSmtpEmailTo implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -185,7 +149,6 @@ class SendSmtpEmailTo implements ModelInterface, ArrayAccess $this->container['email'] = isset($data['email']) ? $data['email'] : null; $this->container['name'] = isset($data['name']) ? $data['name'] : null; } - /** * Show all the invalid properties with reasons. * @@ -194,13 +157,11 @@ class SendSmtpEmailTo implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['email'] === null) { $invalidProperties[] = "'email' can't be null"; } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -209,10 +170,8 @@ class SendSmtpEmailTo implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets email * @@ -222,7 +181,6 @@ class SendSmtpEmailTo implements ModelInterface, ArrayAccess { return $this->container['email']; } - /** * Sets email * @@ -233,10 +191,8 @@ class SendSmtpEmailTo implements ModelInterface, ArrayAccess public function setEmail($email) { $this->container['email'] = $email; - return $this; } - /** * Gets name * @@ -246,7 +202,6 @@ class SendSmtpEmailTo implements ModelInterface, ArrayAccess { return $this->container['name']; } - /** * Sets name * @@ -257,7 +212,6 @@ class SendSmtpEmailTo implements ModelInterface, ArrayAccess public function setName($name) { $this->container['name'] = $name; - return $this; } /** @@ -271,7 +225,6 @@ class SendSmtpEmailTo implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -283,7 +236,6 @@ class SendSmtpEmailTo implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -294,13 +246,12 @@ class SendSmtpEmailTo implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -312,7 +263,6 @@ class SendSmtpEmailTo implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -320,15 +270,10 @@ class SendSmtpEmailTo implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendTemplateEmail.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendTemplateEmail.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendTemplateEmail.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendTemplateEmail.php index 8fa7c5a..8ea106d 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendTemplateEmail.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendTemplateEmail.php @@ -1,4 +1,5 @@ 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['messageId' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'messageId' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['messageId' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -78,7 +67,6 @@ class SendTemplateEmail implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -88,35 +76,25 @@ class SendTemplateEmail implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'messageId' => 'messageId' - ]; - + protected static $attributeMap = ['messageId' => 'messageId']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'messageId' => 'setMessageId' - ]; - + protected static $setters = ['messageId' => 'setMessageId']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'messageId' => 'getMessageId' - ]; - + protected static $getters = ['messageId' => 'getMessageId']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -127,7 +105,6 @@ class SendTemplateEmail implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -137,7 +114,6 @@ class SendTemplateEmail implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -147,7 +123,6 @@ class SendTemplateEmail implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -157,18 +132,12 @@ class SendTemplateEmail implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -179,7 +148,6 @@ class SendTemplateEmail implements ModelInterface, ArrayAccess { $this->container['messageId'] = isset($data['messageId']) ? $data['messageId'] : null; } - /** * Show all the invalid properties with reasons. * @@ -188,13 +156,11 @@ class SendTemplateEmail implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['messageId'] === null) { $invalidProperties[] = "'messageId' can't be null"; } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -203,10 +169,8 @@ class SendTemplateEmail implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets messageId * @@ -216,7 +180,6 @@ class SendTemplateEmail implements ModelInterface, ArrayAccess { return $this->container['messageId']; } - /** * Sets messageId * @@ -227,7 +190,6 @@ class SendTemplateEmail implements ModelInterface, ArrayAccess public function setMessageId($messageId) { $this->container['messageId'] = $messageId; - return $this; } /** @@ -241,7 +203,6 @@ class SendTemplateEmail implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -253,7 +214,6 @@ class SendTemplateEmail implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -264,13 +224,12 @@ class SendTemplateEmail implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -282,7 +241,6 @@ class SendTemplateEmail implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -290,15 +248,10 @@ class SendTemplateEmail implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendTestEmail.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendTestEmail.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendTestEmail.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendTestEmail.php index 126c77f..c67691f 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendTestEmail.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendTestEmail.php @@ -1,4 +1,5 @@ 'string[]' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['emailTo' => 'string[]']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'emailTo' => 'email' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['emailTo' => 'email']; /** * Array of property to type mappings. Used for (de)serialization * @@ -78,7 +67,6 @@ class SendTestEmail implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -88,35 +76,25 @@ class SendTestEmail implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'emailTo' => 'emailTo' - ]; - + protected static $attributeMap = ['emailTo' => 'emailTo']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'emailTo' => 'setEmailTo' - ]; - + protected static $setters = ['emailTo' => 'setEmailTo']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'emailTo' => 'getEmailTo' - ]; - + protected static $getters = ['emailTo' => 'getEmailTo']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -127,7 +105,6 @@ class SendTestEmail implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -137,7 +114,6 @@ class SendTestEmail implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -147,7 +123,6 @@ class SendTestEmail implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -157,18 +132,12 @@ class SendTestEmail implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -179,7 +148,6 @@ class SendTestEmail implements ModelInterface, ArrayAccess { $this->container['emailTo'] = isset($data['emailTo']) ? $data['emailTo'] : null; } - /** * Show all the invalid properties with reasons. * @@ -188,10 +156,8 @@ class SendTestEmail implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -200,10 +166,8 @@ class SendTestEmail implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets emailTo * @@ -213,7 +177,6 @@ class SendTestEmail implements ModelInterface, ArrayAccess { return $this->container['emailTo']; } - /** * Sets emailTo * @@ -224,7 +187,6 @@ class SendTestEmail implements ModelInterface, ArrayAccess public function setEmailTo($emailTo) { $this->container['emailTo'] = $emailTo; - return $this; } /** @@ -238,7 +200,6 @@ class SendTestEmail implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -250,7 +211,6 @@ class SendTestEmail implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -261,13 +221,12 @@ class SendTestEmail implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -279,7 +238,6 @@ class SendTestEmail implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -287,15 +245,10 @@ class SendTestEmail implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendTestSms.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendTestSms.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendTestSms.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendTestSms.php index b9e957b..ffd2aa6 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendTestSms.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendTestSms.php @@ -1,4 +1,5 @@ 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['phoneNumber' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'phoneNumber' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['phoneNumber' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -78,7 +67,6 @@ class SendTestSms implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -88,35 +76,25 @@ class SendTestSms implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'phoneNumber' => 'phoneNumber' - ]; - + protected static $attributeMap = ['phoneNumber' => 'phoneNumber']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'phoneNumber' => 'setPhoneNumber' - ]; - + protected static $setters = ['phoneNumber' => 'setPhoneNumber']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'phoneNumber' => 'getPhoneNumber' - ]; - + protected static $getters = ['phoneNumber' => 'getPhoneNumber']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -127,7 +105,6 @@ class SendTestSms implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -137,7 +114,6 @@ class SendTestSms implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -147,7 +123,6 @@ class SendTestSms implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -157,18 +132,12 @@ class SendTestSms implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -179,7 +148,6 @@ class SendTestSms implements ModelInterface, ArrayAccess { $this->container['phoneNumber'] = isset($data['phoneNumber']) ? $data['phoneNumber'] : null; } - /** * Show all the invalid properties with reasons. * @@ -188,10 +156,8 @@ class SendTestSms implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -200,10 +166,8 @@ class SendTestSms implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets phoneNumber * @@ -213,7 +177,6 @@ class SendTestSms implements ModelInterface, ArrayAccess { return $this->container['phoneNumber']; } - /** * Sets phoneNumber * @@ -224,7 +187,6 @@ class SendTestSms implements ModelInterface, ArrayAccess public function setPhoneNumber($phoneNumber) { $this->container['phoneNumber'] = $phoneNumber; - return $this; } /** @@ -238,7 +200,6 @@ class SendTestSms implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -250,7 +211,6 @@ class SendTestSms implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -261,13 +221,12 @@ class SendTestSms implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -279,7 +238,6 @@ class SendTestSms implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -287,15 +245,10 @@ class SendTestSms implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendTransacSms.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendTransacSms.php similarity index 77% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendTransacSms.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendTransacSms.php index 01420c8..c1a4b8a 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/SendTransacSms.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/SendTransacSms.php @@ -1,4 +1,5 @@ 'string', - 'recipient' => 'string', - 'content' => 'string', - 'type' => 'string', - 'tag' => 'string', - 'webUrl' => 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['sender' => 'string', 'recipient' => 'string', 'content' => 'string', 'type' => 'string', 'tag' => 'string', 'webUrl' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'sender' => null, - 'recipient' => null, - 'content' => null, - 'type' => null, - 'tag' => null, - 'webUrl' => 'url' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['sender' => null, 'recipient' => null, 'content' => null, 'type' => null, 'tag' => null, 'webUrl' => 'url']; /** * Array of property to type mappings. Used for (de)serialization * @@ -88,7 +67,6 @@ class SendTransacSms implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -98,50 +76,25 @@ class SendTransacSms implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'sender' => 'sender', - 'recipient' => 'recipient', - 'content' => 'content', - 'type' => 'type', - 'tag' => 'tag', - 'webUrl' => 'webUrl' - ]; - + protected static $attributeMap = ['sender' => 'sender', 'recipient' => 'recipient', 'content' => 'content', 'type' => 'type', 'tag' => 'tag', 'webUrl' => 'webUrl']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'sender' => 'setSender', - 'recipient' => 'setRecipient', - 'content' => 'setContent', - 'type' => 'setType', - 'tag' => 'setTag', - 'webUrl' => 'setWebUrl' - ]; - + protected static $setters = ['sender' => 'setSender', 'recipient' => 'setRecipient', 'content' => 'setContent', 'type' => 'setType', 'tag' => 'setTag', 'webUrl' => 'setWebUrl']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'sender' => 'getSender', - 'recipient' => 'getRecipient', - 'content' => 'getContent', - 'type' => 'getType', - 'tag' => 'getTag', - 'webUrl' => 'getWebUrl' - ]; - + protected static $getters = ['sender' => 'getSender', 'recipient' => 'getRecipient', 'content' => 'getContent', 'type' => 'getType', 'tag' => 'getTag', 'webUrl' => 'getWebUrl']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -152,7 +105,6 @@ class SendTransacSms implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -162,7 +114,6 @@ class SendTransacSms implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -172,7 +123,6 @@ class SendTransacSms implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -182,12 +132,8 @@ class SendTransacSms implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - const TYPE_TRANSACTIONAL = 'transactional'; const TYPE_MARKETING = 'marketing'; - - - /** * Gets allowable values of the enum * @@ -195,20 +141,14 @@ class SendTransacSms implements ModelInterface, ArrayAccess */ public function getTypeAllowableValues() { - return [ - self::TYPE_TRANSACTIONAL, - self::TYPE_MARKETING, - ]; + return [self::TYPE_TRANSACTIONAL, self::TYPE_MARKETING]; } - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -224,7 +164,6 @@ class SendTransacSms implements ModelInterface, ArrayAccess $this->container['tag'] = isset($data['tag']) ? $data['tag'] : null; $this->container['webUrl'] = isset($data['webUrl']) ? $data['webUrl'] : null; } - /** * Show all the invalid properties with reasons. * @@ -233,14 +172,12 @@ class SendTransacSms implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['sender'] === null) { $invalidProperties[] = "'sender' can't be null"; } - if ((mb_strlen($this->container['sender']) > 11)) { + if (\mb_strlen($this->container['sender']) > 11) { $invalidProperties[] = "invalid value for 'sender', the character length must be smaller than or equal to 11."; } - if ($this->container['recipient'] === null) { $invalidProperties[] = "'recipient' can't be null"; } @@ -248,16 +185,11 @@ class SendTransacSms implements ModelInterface, ArrayAccess $invalidProperties[] = "'content' can't be null"; } $allowedValues = $this->getTypeAllowableValues(); - if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value for 'type', must be one of '%s'", - implode("', '", $allowedValues) - ); + if (!\is_null($this->container['type']) && !\in_array($this->container['type'], $allowedValues, \true)) { + $invalidProperties[] = \sprintf("invalid value for 'type', must be one of '%s'", \implode("', '", $allowedValues)); } - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -266,10 +198,8 @@ class SendTransacSms implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets sender * @@ -279,7 +209,6 @@ class SendTransacSms implements ModelInterface, ArrayAccess { return $this->container['sender']; } - /** * Sets sender * @@ -289,15 +218,12 @@ class SendTransacSms implements ModelInterface, ArrayAccess */ public function setSender($sender) { - if ((mb_strlen($sender) > 11)) { + if (\mb_strlen($sender) > 11) { throw new \InvalidArgumentException('invalid length for $sender when calling SendTransacSms., must be smaller than or equal to 11.'); } - $this->container['sender'] = $sender; - return $this; } - /** * Gets recipient * @@ -307,7 +233,6 @@ class SendTransacSms implements ModelInterface, ArrayAccess { return $this->container['recipient']; } - /** * Sets recipient * @@ -318,10 +243,8 @@ class SendTransacSms implements ModelInterface, ArrayAccess public function setRecipient($recipient) { $this->container['recipient'] = $recipient; - return $this; } - /** * Gets content * @@ -331,7 +254,6 @@ class SendTransacSms implements ModelInterface, ArrayAccess { return $this->container['content']; } - /** * Sets content * @@ -342,10 +264,8 @@ class SendTransacSms implements ModelInterface, ArrayAccess public function setContent($content) { $this->container['content'] = $content; - return $this; } - /** * Gets type * @@ -355,7 +275,6 @@ class SendTransacSms implements ModelInterface, ArrayAccess { return $this->container['type']; } - /** * Sets type * @@ -366,19 +285,12 @@ class SendTransacSms implements ModelInterface, ArrayAccess public function setType($type) { $allowedValues = $this->getTypeAllowableValues(); - if (!is_null($type) && !in_array($type, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'type', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); + if (!\is_null($type) && !\in_array($type, $allowedValues, \true)) { + throw new \InvalidArgumentException(\sprintf("Invalid value for 'type', must be one of '%s'", \implode("', '", $allowedValues))); } $this->container['type'] = $type; - return $this; } - /** * Gets tag * @@ -388,7 +300,6 @@ class SendTransacSms implements ModelInterface, ArrayAccess { return $this->container['tag']; } - /** * Sets tag * @@ -399,10 +310,8 @@ class SendTransacSms implements ModelInterface, ArrayAccess public function setTag($tag) { $this->container['tag'] = $tag; - return $this; } - /** * Gets webUrl * @@ -412,7 +321,6 @@ class SendTransacSms implements ModelInterface, ArrayAccess { return $this->container['webUrl']; } - /** * Sets webUrl * @@ -423,7 +331,6 @@ class SendTransacSms implements ModelInterface, ArrayAccess public function setWebUrl($webUrl) { $this->container['webUrl'] = $webUrl; - return $this; } /** @@ -437,7 +344,6 @@ class SendTransacSms implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -449,7 +355,6 @@ class SendTransacSms implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -460,13 +365,12 @@ class SendTransacSms implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -478,7 +382,6 @@ class SendTransacSms implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -486,15 +389,10 @@ class SendTransacSms implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateAttribute.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateAttribute.php similarity index 80% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateAttribute.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateAttribute.php index a26ef99..20f6ccf 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateAttribute.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateAttribute.php @@ -1,4 +1,5 @@ 'string', - 'enumeration' => '\SendinBlue\Client\Model\UpdateAttributeEnumeration[]' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['value' => 'string', 'enumeration' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateAttributeEnumeration[]']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'value' => null, - 'enumeration' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['value' => null, 'enumeration' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -80,7 +67,6 @@ class UpdateAttribute implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -90,38 +76,25 @@ class UpdateAttribute implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'value' => 'value', - 'enumeration' => 'enumeration' - ]; - + protected static $attributeMap = ['value' => 'value', 'enumeration' => 'enumeration']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'value' => 'setValue', - 'enumeration' => 'setEnumeration' - ]; - + protected static $setters = ['value' => 'setValue', 'enumeration' => 'setEnumeration']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'value' => 'getValue', - 'enumeration' => 'getEnumeration' - ]; - + protected static $getters = ['value' => 'getValue', 'enumeration' => 'getEnumeration']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -132,7 +105,6 @@ class UpdateAttribute implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -142,7 +114,6 @@ class UpdateAttribute implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -152,7 +123,6 @@ class UpdateAttribute implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -162,18 +132,12 @@ class UpdateAttribute implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -185,7 +149,6 @@ class UpdateAttribute implements ModelInterface, ArrayAccess $this->container['value'] = isset($data['value']) ? $data['value'] : null; $this->container['enumeration'] = isset($data['enumeration']) ? $data['enumeration'] : null; } - /** * Show all the invalid properties with reasons. * @@ -194,10 +157,8 @@ class UpdateAttribute implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -206,10 +167,8 @@ class UpdateAttribute implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets value * @@ -219,7 +178,6 @@ class UpdateAttribute implements ModelInterface, ArrayAccess { return $this->container['value']; } - /** * Sets value * @@ -230,10 +188,8 @@ class UpdateAttribute implements ModelInterface, ArrayAccess public function setValue($value) { $this->container['value'] = $value; - return $this; } - /** * Gets enumeration * @@ -243,18 +199,16 @@ class UpdateAttribute implements ModelInterface, ArrayAccess { return $this->container['enumeration']; } - /** * Sets enumeration * - * @param \SendinBlue\Client\Model\UpdateAttributeEnumeration[] $enumeration List of the values and labels that the attribute can take. Use only if the attribute's category is \"category\". For example, [{'value':1, 'label':'male'}, {'value':2, 'label':'female'}] + * @param \SendinBlue\Client\Model\UpdateAttributeEnumeration[] $enumeration List of the values and labels that the attribute can take. Use only if the attribute's category is \"category\". For example, [{\"value\":1, \"label\":\"male\"}, {\"value\":2, \"label\":\"female\"}] * * @return $this */ public function setEnumeration($enumeration) { $this->container['enumeration'] = $enumeration; - return $this; } /** @@ -268,7 +222,6 @@ class UpdateAttribute implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -280,7 +233,6 @@ class UpdateAttribute implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -291,13 +243,12 @@ class UpdateAttribute implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -309,7 +260,6 @@ class UpdateAttribute implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -317,15 +267,10 @@ class UpdateAttribute implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateAttributeEnumeration.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateAttributeEnumeration.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateAttributeEnumeration.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateAttributeEnumeration.php index 0023dad..ec2d00f 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateAttributeEnumeration.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateAttributeEnumeration.php @@ -1,4 +1,5 @@ 'int', - 'label' => 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['value' => 'int', 'label' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'value' => null, - 'label' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['value' => null, 'label' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -80,7 +67,6 @@ class UpdateAttributeEnumeration implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -90,38 +76,25 @@ class UpdateAttributeEnumeration implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'value' => 'value', - 'label' => 'label' - ]; - + protected static $attributeMap = ['value' => 'value', 'label' => 'label']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'value' => 'setValue', - 'label' => 'setLabel' - ]; - + protected static $setters = ['value' => 'setValue', 'label' => 'setLabel']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'value' => 'getValue', - 'label' => 'getLabel' - ]; - + protected static $getters = ['value' => 'getValue', 'label' => 'getLabel']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -132,7 +105,6 @@ class UpdateAttributeEnumeration implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -142,7 +114,6 @@ class UpdateAttributeEnumeration implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -152,7 +123,6 @@ class UpdateAttributeEnumeration implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -162,18 +132,12 @@ class UpdateAttributeEnumeration implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -185,7 +149,6 @@ class UpdateAttributeEnumeration implements ModelInterface, ArrayAccess $this->container['value'] = isset($data['value']) ? $data['value'] : null; $this->container['label'] = isset($data['label']) ? $data['label'] : null; } - /** * Show all the invalid properties with reasons. * @@ -194,7 +157,6 @@ class UpdateAttributeEnumeration implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['value'] === null) { $invalidProperties[] = "'value' can't be null"; } @@ -203,7 +165,6 @@ class UpdateAttributeEnumeration implements ModelInterface, ArrayAccess } return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -212,10 +173,8 @@ class UpdateAttributeEnumeration implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets value * @@ -225,7 +184,6 @@ class UpdateAttributeEnumeration implements ModelInterface, ArrayAccess { return $this->container['value']; } - /** * Sets value * @@ -236,10 +194,8 @@ class UpdateAttributeEnumeration implements ModelInterface, ArrayAccess public function setValue($value) { $this->container['value'] = $value; - return $this; } - /** * Gets label * @@ -249,7 +205,6 @@ class UpdateAttributeEnumeration implements ModelInterface, ArrayAccess { return $this->container['label']; } - /** * Sets label * @@ -260,7 +215,6 @@ class UpdateAttributeEnumeration implements ModelInterface, ArrayAccess public function setLabel($label) { $this->container['label'] = $label; - return $this; } /** @@ -274,7 +228,6 @@ class UpdateAttributeEnumeration implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -286,7 +239,6 @@ class UpdateAttributeEnumeration implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -297,13 +249,12 @@ class UpdateAttributeEnumeration implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -315,7 +266,6 @@ class UpdateAttributeEnumeration implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -323,15 +273,10 @@ class UpdateAttributeEnumeration implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateCampaignStatus.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateCampaignStatus.php similarity index 75% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateCampaignStatus.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateCampaignStatus.php index d4d0168..c747850 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateCampaignStatus.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateCampaignStatus.php @@ -1,4 +1,5 @@ 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['status' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'status' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['status' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -79,7 +68,6 @@ class UpdateCampaignStatus implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -89,35 +77,25 @@ class UpdateCampaignStatus implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'status' => 'status' - ]; - + protected static $attributeMap = ['status' => 'status']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'status' => 'setStatus' - ]; - + protected static $setters = ['status' => 'setStatus']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'status' => 'getStatus' - ]; - + protected static $getters = ['status' => 'getStatus']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -128,7 +106,6 @@ class UpdateCampaignStatus implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -138,7 +115,6 @@ class UpdateCampaignStatus implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -148,7 +124,6 @@ class UpdateCampaignStatus implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -158,7 +133,6 @@ class UpdateCampaignStatus implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - const STATUS_SUSPENDED = 'suspended'; const STATUS_ARCHIVE = 'archive'; const STATUS_DARCHIVE = 'darchive'; @@ -167,9 +141,6 @@ class UpdateCampaignStatus implements ModelInterface, ArrayAccess const STATUS_REPLICATE = 'replicate'; const STATUS_REPLICATE_TEMPLATE = 'replicateTemplate'; const STATUS_DRAFT = 'draft'; - - - /** * Gets allowable values of the enum * @@ -177,26 +148,14 @@ class UpdateCampaignStatus implements ModelInterface, ArrayAccess */ public function getStatusAllowableValues() { - return [ - self::STATUS_SUSPENDED, - self::STATUS_ARCHIVE, - self::STATUS_DARCHIVE, - self::STATUS_SENT, - self::STATUS_QUEUED, - self::STATUS_REPLICATE, - self::STATUS_REPLICATE_TEMPLATE, - self::STATUS_DRAFT, - ]; + return [self::STATUS_SUSPENDED, self::STATUS_ARCHIVE, self::STATUS_DARCHIVE, self::STATUS_SENT, self::STATUS_QUEUED, self::STATUS_REPLICATE, self::STATUS_REPLICATE_TEMPLATE, self::STATUS_DRAFT]; } - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -207,7 +166,6 @@ class UpdateCampaignStatus implements ModelInterface, ArrayAccess { $this->container['status'] = isset($data['status']) ? $data['status'] : null; } - /** * Show all the invalid properties with reasons. * @@ -216,18 +174,12 @@ class UpdateCampaignStatus implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - $allowedValues = $this->getStatusAllowableValues(); - if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value for 'status', must be one of '%s'", - implode("', '", $allowedValues) - ); + if (!\is_null($this->container['status']) && !\in_array($this->container['status'], $allowedValues, \true)) { + $invalidProperties[] = \sprintf("invalid value for 'status', must be one of '%s'", \implode("', '", $allowedValues)); } - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -236,10 +188,8 @@ class UpdateCampaignStatus implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets status * @@ -249,7 +199,6 @@ class UpdateCampaignStatus implements ModelInterface, ArrayAccess { return $this->container['status']; } - /** * Sets status * @@ -260,16 +209,10 @@ class UpdateCampaignStatus implements ModelInterface, ArrayAccess public function setStatus($status) { $allowedValues = $this->getStatusAllowableValues(); - if (!is_null($status) && !in_array($status, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'status', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); + if (!\is_null($status) && !\in_array($status, $allowedValues, \true)) { + throw new \InvalidArgumentException(\sprintf("Invalid value for 'status', must be one of '%s'", \implode("', '", $allowedValues))); } $this->container['status'] = $status; - return $this; } /** @@ -283,7 +226,6 @@ class UpdateCampaignStatus implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -295,7 +237,6 @@ class UpdateCampaignStatus implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -306,13 +247,12 @@ class UpdateCampaignStatus implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -324,7 +264,6 @@ class UpdateCampaignStatus implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -332,15 +271,10 @@ class UpdateCampaignStatus implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateChild.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateChild.php similarity index 80% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateChild.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateChild.php index 7ab3c77..1af6bee 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateChild.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateChild.php @@ -1,4 +1,5 @@ 'string', - 'firstName' => 'string', - 'lastName' => 'string', - 'companyName' => 'string', - 'password' => 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['email' => 'string', 'firstName' => 'string', 'lastName' => 'string', 'companyName' => 'string', 'password' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'email' => 'email', - 'firstName' => null, - 'lastName' => null, - 'companyName' => null, - 'password' => 'password' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['email' => 'email', 'firstName' => null, 'lastName' => null, 'companyName' => null, 'password' => 'password']; /** * Array of property to type mappings. Used for (de)serialization * @@ -86,7 +67,6 @@ class UpdateChild implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -96,47 +76,25 @@ class UpdateChild implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'email' => 'email', - 'firstName' => 'firstName', - 'lastName' => 'lastName', - 'companyName' => 'companyName', - 'password' => 'password' - ]; - + protected static $attributeMap = ['email' => 'email', 'firstName' => 'firstName', 'lastName' => 'lastName', 'companyName' => 'companyName', 'password' => 'password']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'email' => 'setEmail', - 'firstName' => 'setFirstName', - 'lastName' => 'setLastName', - 'companyName' => 'setCompanyName', - 'password' => 'setPassword' - ]; - + protected static $setters = ['email' => 'setEmail', 'firstName' => 'setFirstName', 'lastName' => 'setLastName', 'companyName' => 'setCompanyName', 'password' => 'setPassword']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'email' => 'getEmail', - 'firstName' => 'getFirstName', - 'lastName' => 'getLastName', - 'companyName' => 'getCompanyName', - 'password' => 'getPassword' - ]; - + protected static $getters = ['email' => 'getEmail', 'firstName' => 'getFirstName', 'lastName' => 'getLastName', 'companyName' => 'getCompanyName', 'password' => 'getPassword']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -147,7 +105,6 @@ class UpdateChild implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -157,7 +114,6 @@ class UpdateChild implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -167,7 +123,6 @@ class UpdateChild implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -177,18 +132,12 @@ class UpdateChild implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -203,7 +152,6 @@ class UpdateChild implements ModelInterface, ArrayAccess $this->container['companyName'] = isset($data['companyName']) ? $data['companyName'] : null; $this->container['password'] = isset($data['password']) ? $data['password'] : null; } - /** * Show all the invalid properties with reasons. * @@ -212,10 +160,8 @@ class UpdateChild implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -224,10 +170,8 @@ class UpdateChild implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets email * @@ -237,7 +181,6 @@ class UpdateChild implements ModelInterface, ArrayAccess { return $this->container['email']; } - /** * Sets email * @@ -248,10 +191,8 @@ class UpdateChild implements ModelInterface, ArrayAccess public function setEmail($email) { $this->container['email'] = $email; - return $this; } - /** * Gets firstName * @@ -261,7 +202,6 @@ class UpdateChild implements ModelInterface, ArrayAccess { return $this->container['firstName']; } - /** * Sets firstName * @@ -272,10 +212,8 @@ class UpdateChild implements ModelInterface, ArrayAccess public function setFirstName($firstName) { $this->container['firstName'] = $firstName; - return $this; } - /** * Gets lastName * @@ -285,7 +223,6 @@ class UpdateChild implements ModelInterface, ArrayAccess { return $this->container['lastName']; } - /** * Sets lastName * @@ -296,10 +233,8 @@ class UpdateChild implements ModelInterface, ArrayAccess public function setLastName($lastName) { $this->container['lastName'] = $lastName; - return $this; } - /** * Gets companyName * @@ -309,7 +244,6 @@ class UpdateChild implements ModelInterface, ArrayAccess { return $this->container['companyName']; } - /** * Sets companyName * @@ -320,10 +254,8 @@ class UpdateChild implements ModelInterface, ArrayAccess public function setCompanyName($companyName) { $this->container['companyName'] = $companyName; - return $this; } - /** * Gets password * @@ -333,7 +265,6 @@ class UpdateChild implements ModelInterface, ArrayAccess { return $this->container['password']; } - /** * Sets password * @@ -344,7 +275,6 @@ class UpdateChild implements ModelInterface, ArrayAccess public function setPassword($password) { $this->container['password'] = $password; - return $this; } /** @@ -358,7 +288,6 @@ class UpdateChild implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -370,7 +299,6 @@ class UpdateChild implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -381,13 +309,12 @@ class UpdateChild implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -399,7 +326,6 @@ class UpdateChild implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -407,15 +333,10 @@ class UpdateChild implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateChildAccountStatus.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateChildAccountStatus.php similarity index 74% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateChildAccountStatus.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateChildAccountStatus.php index 6e4ed51..da1db2f 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateChildAccountStatus.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateChildAccountStatus.php @@ -1,4 +1,5 @@ 'bool', - 'transactionalSms' => 'bool', - 'marketingAutomation' => 'bool' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['transactionalEmail' => 'bool', 'transactionalSms' => 'bool', 'marketingAutomation' => 'bool', 'smsCampaign' => 'bool']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'transactionalEmail' => null, - 'transactionalSms' => null, - 'marketingAutomation' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['transactionalEmail' => null, 'transactionalSms' => null, 'marketingAutomation' => null, 'smsCampaign' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -82,7 +67,6 @@ class UpdateChildAccountStatus implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -92,41 +76,25 @@ class UpdateChildAccountStatus implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'transactionalEmail' => 'transactionalEmail', - 'transactionalSms' => 'transactionalSms', - 'marketingAutomation' => 'marketingAutomation' - ]; - + protected static $attributeMap = ['transactionalEmail' => 'transactionalEmail', 'transactionalSms' => 'transactionalSms', 'marketingAutomation' => 'marketingAutomation', 'smsCampaign' => 'smsCampaign']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'transactionalEmail' => 'setTransactionalEmail', - 'transactionalSms' => 'setTransactionalSms', - 'marketingAutomation' => 'setMarketingAutomation' - ]; - + protected static $setters = ['transactionalEmail' => 'setTransactionalEmail', 'transactionalSms' => 'setTransactionalSms', 'marketingAutomation' => 'setMarketingAutomation', 'smsCampaign' => 'setSmsCampaign']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'transactionalEmail' => 'getTransactionalEmail', - 'transactionalSms' => 'getTransactionalSms', - 'marketingAutomation' => 'getMarketingAutomation' - ]; - + protected static $getters = ['transactionalEmail' => 'getTransactionalEmail', 'transactionalSms' => 'getTransactionalSms', 'marketingAutomation' => 'getMarketingAutomation', 'smsCampaign' => 'getSmsCampaign']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -137,7 +105,6 @@ class UpdateChildAccountStatus implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -147,7 +114,6 @@ class UpdateChildAccountStatus implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -157,7 +123,6 @@ class UpdateChildAccountStatus implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -167,18 +132,12 @@ class UpdateChildAccountStatus implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -190,8 +149,8 @@ class UpdateChildAccountStatus implements ModelInterface, ArrayAccess $this->container['transactionalEmail'] = isset($data['transactionalEmail']) ? $data['transactionalEmail'] : null; $this->container['transactionalSms'] = isset($data['transactionalSms']) ? $data['transactionalSms'] : null; $this->container['marketingAutomation'] = isset($data['marketingAutomation']) ? $data['marketingAutomation'] : null; + $this->container['smsCampaign'] = isset($data['smsCampaign']) ? $data['smsCampaign'] : null; } - /** * Show all the invalid properties with reasons. * @@ -200,10 +159,8 @@ class UpdateChildAccountStatus implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -212,10 +169,8 @@ class UpdateChildAccountStatus implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets transactionalEmail * @@ -225,7 +180,6 @@ class UpdateChildAccountStatus implements ModelInterface, ArrayAccess { return $this->container['transactionalEmail']; } - /** * Sets transactionalEmail * @@ -236,10 +190,8 @@ class UpdateChildAccountStatus implements ModelInterface, ArrayAccess public function setTransactionalEmail($transactionalEmail) { $this->container['transactionalEmail'] = $transactionalEmail; - return $this; } - /** * Gets transactionalSms * @@ -249,7 +201,6 @@ class UpdateChildAccountStatus implements ModelInterface, ArrayAccess { return $this->container['transactionalSms']; } - /** * Sets transactionalSms * @@ -260,10 +211,8 @@ class UpdateChildAccountStatus implements ModelInterface, ArrayAccess public function setTransactionalSms($transactionalSms) { $this->container['transactionalSms'] = $transactionalSms; - return $this; } - /** * Gets marketingAutomation * @@ -273,7 +222,6 @@ class UpdateChildAccountStatus implements ModelInterface, ArrayAccess { return $this->container['marketingAutomation']; } - /** * Sets marketingAutomation * @@ -284,7 +232,27 @@ class UpdateChildAccountStatus implements ModelInterface, ArrayAccess public function setMarketingAutomation($marketingAutomation) { $this->container['marketingAutomation'] = $marketingAutomation; - + return $this; + } + /** + * Gets smsCampaign + * + * @return bool + */ + public function getSmsCampaign() + { + return $this->container['smsCampaign']; + } + /** + * Sets smsCampaign + * + * @param bool $smsCampaign Status of SMS Campaign Platform activation for your account (true=enabled, false=disabled) + * + * @return $this + */ + public function setSmsCampaign($smsCampaign) + { + $this->container['smsCampaign'] = $smsCampaign; return $this; } /** @@ -298,7 +266,6 @@ class UpdateChildAccountStatus implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -310,7 +277,6 @@ class UpdateChildAccountStatus implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -321,13 +287,12 @@ class UpdateChildAccountStatus implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -339,7 +304,6 @@ class UpdateChildAccountStatus implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -347,15 +311,10 @@ class UpdateChildAccountStatus implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateChildDomain.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateChildDomain.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateChildDomain.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateChildDomain.php index 9e3f8b2..6c4d785 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateChildDomain.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateChildDomain.php @@ -1,4 +1,5 @@ 'string' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['domain' => 'string']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'domain' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['domain' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -78,7 +67,6 @@ class UpdateChildDomain implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -88,35 +76,25 @@ class UpdateChildDomain implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'domain' => 'domain' - ]; - + protected static $attributeMap = ['domain' => 'domain']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'domain' => 'setDomain' - ]; - + protected static $setters = ['domain' => 'setDomain']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'domain' => 'getDomain' - ]; - + protected static $getters = ['domain' => 'getDomain']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -127,7 +105,6 @@ class UpdateChildDomain implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -137,7 +114,6 @@ class UpdateChildDomain implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -147,7 +123,6 @@ class UpdateChildDomain implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -157,18 +132,12 @@ class UpdateChildDomain implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -179,7 +148,6 @@ class UpdateChildDomain implements ModelInterface, ArrayAccess { $this->container['domain'] = isset($data['domain']) ? $data['domain'] : null; } - /** * Show all the invalid properties with reasons. * @@ -188,10 +156,8 @@ class UpdateChildDomain implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -200,10 +166,8 @@ class UpdateChildDomain implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets domain * @@ -213,7 +177,6 @@ class UpdateChildDomain implements ModelInterface, ArrayAccess { return $this->container['domain']; } - /** * Sets domain * @@ -224,7 +187,6 @@ class UpdateChildDomain implements ModelInterface, ArrayAccess public function setDomain($domain) { $this->container['domain'] = $domain; - return $this; } /** @@ -238,7 +200,6 @@ class UpdateChildDomain implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -250,7 +211,6 @@ class UpdateChildDomain implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -261,13 +221,12 @@ class UpdateChildDomain implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -279,7 +238,6 @@ class UpdateChildDomain implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -287,15 +245,10 @@ class UpdateChildDomain implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateContact.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateContact.php similarity index 76% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateContact.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateContact.php index cf69fb7..250c93f 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateContact.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateContact.php @@ -1,4 +1,5 @@ 'object', - 'emailBlacklisted' => 'bool', - 'smsBlacklisted' => 'bool', - 'listIds' => 'int[]', - 'unlinkListIds' => 'int[]', - 'smtpBlacklistSender' => 'string[]' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['attributes' => 'object', 'emailBlacklisted' => 'bool', 'smsBlacklisted' => 'bool', 'listIds' => 'int[]', 'unlinkListIds' => 'int[]', 'smtpBlacklistSender' => 'string[]']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'attributes' => null, - 'emailBlacklisted' => null, - 'smsBlacklisted' => null, - 'listIds' => 'int64', - 'unlinkListIds' => 'int64', - 'smtpBlacklistSender' => 'email' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['attributes' => null, 'emailBlacklisted' => null, 'smsBlacklisted' => null, 'listIds' => 'int64', 'unlinkListIds' => 'int64', 'smtpBlacklistSender' => 'email']; /** * Array of property to type mappings. Used for (de)serialization * @@ -88,7 +67,6 @@ class UpdateContact implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -98,50 +76,25 @@ class UpdateContact implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'attributes' => 'attributes', - 'emailBlacklisted' => 'emailBlacklisted', - 'smsBlacklisted' => 'smsBlacklisted', - 'listIds' => 'listIds', - 'unlinkListIds' => 'unlinkListIds', - 'smtpBlacklistSender' => 'smtpBlacklistSender' - ]; - + protected static $attributeMap = ['attributes' => 'attributes', 'emailBlacklisted' => 'emailBlacklisted', 'smsBlacklisted' => 'smsBlacklisted', 'listIds' => 'listIds', 'unlinkListIds' => 'unlinkListIds', 'smtpBlacklistSender' => 'smtpBlacklistSender']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'attributes' => 'setAttributes', - 'emailBlacklisted' => 'setEmailBlacklisted', - 'smsBlacklisted' => 'setSmsBlacklisted', - 'listIds' => 'setListIds', - 'unlinkListIds' => 'setUnlinkListIds', - 'smtpBlacklistSender' => 'setSmtpBlacklistSender' - ]; - + protected static $setters = ['attributes' => 'setAttributes', 'emailBlacklisted' => 'setEmailBlacklisted', 'smsBlacklisted' => 'setSmsBlacklisted', 'listIds' => 'setListIds', 'unlinkListIds' => 'setUnlinkListIds', 'smtpBlacklistSender' => 'setSmtpBlacklistSender']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'attributes' => 'getAttributes', - 'emailBlacklisted' => 'getEmailBlacklisted', - 'smsBlacklisted' => 'getSmsBlacklisted', - 'listIds' => 'getListIds', - 'unlinkListIds' => 'getUnlinkListIds', - 'smtpBlacklistSender' => 'getSmtpBlacklistSender' - ]; - + protected static $getters = ['attributes' => 'getAttributes', 'emailBlacklisted' => 'getEmailBlacklisted', 'smsBlacklisted' => 'getSmsBlacklisted', 'listIds' => 'getListIds', 'unlinkListIds' => 'getUnlinkListIds', 'smtpBlacklistSender' => 'getSmtpBlacklistSender']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -152,7 +105,6 @@ class UpdateContact implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -162,7 +114,6 @@ class UpdateContact implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -172,7 +123,6 @@ class UpdateContact implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -182,18 +132,12 @@ class UpdateContact implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -209,7 +153,6 @@ class UpdateContact implements ModelInterface, ArrayAccess $this->container['unlinkListIds'] = isset($data['unlinkListIds']) ? $data['unlinkListIds'] : null; $this->container['smtpBlacklistSender'] = isset($data['smtpBlacklistSender']) ? $data['smtpBlacklistSender'] : null; } - /** * Show all the invalid properties with reasons. * @@ -218,10 +161,8 @@ class UpdateContact implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -230,10 +171,8 @@ class UpdateContact implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets attributes * @@ -243,21 +182,18 @@ class UpdateContact implements ModelInterface, ArrayAccess { return $this->container['attributes']; } - /** * Sets attributes * - * @param object $attributes Pass the set of attributes to be updated. These attributes must be present in your account. To update existing email address of a contact with the new one please pass EMAIL in attribtes. For example, { 'EMAIL':'newemail@domain.com', 'FNAME':'Ellie', 'LNAME':'Roger'} `{ \"EMAIL\":\"newemail@domain.com\", \"FNAME\":\"Ellie\", \"LNAME\":\"Roger\"}`. Keep in mind transactional attributes can be updated the same way as normal attributes. Mobile Number in \"SMS\" field should be passed with proper country code. For example {'SMS':'+91xxxxxxxxxx'} or {'SMS':'0091xxxxxxxxxx'} + * @param object $attributes Pass the set of attributes to be updated. These attributes must be present in your account. To update existing email address of a contact with the new one please pass EMAIL in attribtes. For example, `{ \"EMAIL\":\"newemail@domain.com\", \"FNAME\":\"Ellie\", \"LNAME\":\"Roger\"}`. Keep in mind transactional attributes can be updated the same way as normal attributes. Mobile Number in \"SMS\" field should be passed with proper country code. For example {\"SMS\":\"+91xxxxxxxxxx\"} or {\"SMS\":\"0091xxxxxxxxxx\"} * * @return $this */ public function setAttributes($attributes) { $this->container['attributes'] = $attributes; - return $this; } - /** * Gets emailBlacklisted * @@ -267,7 +203,6 @@ class UpdateContact implements ModelInterface, ArrayAccess { return $this->container['emailBlacklisted']; } - /** * Sets emailBlacklisted * @@ -278,10 +213,8 @@ class UpdateContact implements ModelInterface, ArrayAccess public function setEmailBlacklisted($emailBlacklisted) { $this->container['emailBlacklisted'] = $emailBlacklisted; - return $this; } - /** * Gets smsBlacklisted * @@ -291,7 +224,6 @@ class UpdateContact implements ModelInterface, ArrayAccess { return $this->container['smsBlacklisted']; } - /** * Sets smsBlacklisted * @@ -302,10 +234,8 @@ class UpdateContact implements ModelInterface, ArrayAccess public function setSmsBlacklisted($smsBlacklisted) { $this->container['smsBlacklisted'] = $smsBlacklisted; - return $this; } - /** * Gets listIds * @@ -315,7 +245,6 @@ class UpdateContact implements ModelInterface, ArrayAccess { return $this->container['listIds']; } - /** * Sets listIds * @@ -326,10 +255,8 @@ class UpdateContact implements ModelInterface, ArrayAccess public function setListIds($listIds) { $this->container['listIds'] = $listIds; - return $this; } - /** * Gets unlinkListIds * @@ -339,7 +266,6 @@ class UpdateContact implements ModelInterface, ArrayAccess { return $this->container['unlinkListIds']; } - /** * Sets unlinkListIds * @@ -350,10 +276,8 @@ class UpdateContact implements ModelInterface, ArrayAccess public function setUnlinkListIds($unlinkListIds) { $this->container['unlinkListIds'] = $unlinkListIds; - return $this; } - /** * Gets smtpBlacklistSender * @@ -363,7 +287,6 @@ class UpdateContact implements ModelInterface, ArrayAccess { return $this->container['smtpBlacklistSender']; } - /** * Sets smtpBlacklistSender * @@ -374,7 +297,6 @@ class UpdateContact implements ModelInterface, ArrayAccess public function setSmtpBlacklistSender($smtpBlacklistSender) { $this->container['smtpBlacklistSender'] = $smtpBlacklistSender; - return $this; } /** @@ -388,7 +310,6 @@ class UpdateContact implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -400,7 +321,6 @@ class UpdateContact implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -411,13 +331,12 @@ class UpdateContact implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -429,7 +348,6 @@ class UpdateContact implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -437,15 +355,10 @@ class UpdateContact implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateEmailCampaign.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateEmailCampaign.php similarity index 74% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateEmailCampaign.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateEmailCampaign.php index 30edd3c..c3f339a 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateEmailCampaign.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateEmailCampaign.php @@ -1,4 +1,5 @@ 'string', - 'sender' => '\SendinBlue\Client\Model\UpdateEmailCampaignSender', - 'name' => 'string', - 'htmlContent' => 'string', - 'htmlUrl' => 'string', - 'scheduledAt' => '\DateTime', - 'subject' => 'string', - 'replyTo' => 'string', - 'toField' => 'string', - 'recipients' => '\SendinBlue\Client\Model\UpdateEmailCampaignRecipients', - 'attachmentUrl' => 'string', - 'inlineImageActivation' => 'bool', - 'mirrorActive' => 'bool', - 'recurring' => 'bool', - 'footer' => 'string', - 'header' => 'string', - 'utmCampaign' => 'string', - 'params' => 'object', - 'sendAtBestTime' => 'bool', - 'abTesting' => 'bool', - 'subjectA' => 'string', - 'subjectB' => 'string', - 'splitRule' => 'int', - 'winnerCriteria' => 'string', - 'winnerDelay' => 'int', - 'ipWarmupEnable' => 'bool', - 'initialQuota' => 'int', - 'increaseRate' => 'int' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['tag' => 'string', 'sender' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateEmailCampaignSender', 'name' => 'string', 'htmlContent' => 'string', 'htmlUrl' => 'string', 'scheduledAt' => '\\DateTime', 'subject' => 'string', 'replyTo' => 'string', 'toField' => 'string', 'recipients' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateEmailCampaignRecipients', 'attachmentUrl' => 'string', 'inlineImageActivation' => 'bool', 'mirrorActive' => 'bool', 'recurring' => 'bool', 'footer' => 'string', 'header' => 'string', 'utmCampaign' => 'string', 'params' => 'object', 'sendAtBestTime' => 'bool', 'abTesting' => 'bool', 'subjectA' => 'string', 'subjectB' => 'string', 'splitRule' => 'int', 'winnerCriteria' => 'string', 'winnerDelay' => 'int', 'ipWarmupEnable' => 'bool', 'initialQuota' => 'int', 'increaseRate' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'tag' => null, - 'sender' => null, - 'name' => null, - 'htmlContent' => null, - 'htmlUrl' => 'url', - 'scheduledAt' => 'date-time', - 'subject' => null, - 'replyTo' => 'email', - 'toField' => null, - 'recipients' => null, - 'attachmentUrl' => 'url', - 'inlineImageActivation' => null, - 'mirrorActive' => null, - 'recurring' => null, - 'footer' => null, - 'header' => null, - 'utmCampaign' => null, - 'params' => null, - 'sendAtBestTime' => null, - 'abTesting' => null, - 'subjectA' => null, - 'subjectB' => null, - 'splitRule' => 'int64', - 'winnerCriteria' => null, - 'winnerDelay' => 'int64', - 'ipWarmupEnable' => null, - 'initialQuota' => 'int64', - 'increaseRate' => 'int64' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['tag' => null, 'sender' => null, 'name' => null, 'htmlContent' => null, 'htmlUrl' => 'url', 'scheduledAt' => 'date-time', 'subject' => null, 'replyTo' => 'email', 'toField' => null, 'recipients' => null, 'attachmentUrl' => 'url', 'inlineImageActivation' => null, 'mirrorActive' => null, 'recurring' => null, 'footer' => null, 'header' => null, 'utmCampaign' => null, 'params' => null, 'sendAtBestTime' => null, 'abTesting' => null, 'subjectA' => null, 'subjectB' => null, 'splitRule' => 'int64', 'winnerCriteria' => null, 'winnerDelay' => 'int64', 'ipWarmupEnable' => null, 'initialQuota' => 'int64', 'increaseRate' => 'int64']; /** * Array of property to type mappings. Used for (de)serialization * @@ -132,7 +67,6 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -142,116 +76,25 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'tag' => 'tag', - 'sender' => 'sender', - 'name' => 'name', - 'htmlContent' => 'htmlContent', - 'htmlUrl' => 'htmlUrl', - 'scheduledAt' => 'scheduledAt', - 'subject' => 'subject', - 'replyTo' => 'replyTo', - 'toField' => 'toField', - 'recipients' => 'recipients', - 'attachmentUrl' => 'attachmentUrl', - 'inlineImageActivation' => 'inlineImageActivation', - 'mirrorActive' => 'mirrorActive', - 'recurring' => 'recurring', - 'footer' => 'footer', - 'header' => 'header', - 'utmCampaign' => 'utmCampaign', - 'params' => 'params', - 'sendAtBestTime' => 'sendAtBestTime', - 'abTesting' => 'abTesting', - 'subjectA' => 'subjectA', - 'subjectB' => 'subjectB', - 'splitRule' => 'splitRule', - 'winnerCriteria' => 'winnerCriteria', - 'winnerDelay' => 'winnerDelay', - 'ipWarmupEnable' => 'ipWarmupEnable', - 'initialQuota' => 'initialQuota', - 'increaseRate' => 'increaseRate' - ]; - + protected static $attributeMap = ['tag' => 'tag', 'sender' => 'sender', 'name' => 'name', 'htmlContent' => 'htmlContent', 'htmlUrl' => 'htmlUrl', 'scheduledAt' => 'scheduledAt', 'subject' => 'subject', 'replyTo' => 'replyTo', 'toField' => 'toField', 'recipients' => 'recipients', 'attachmentUrl' => 'attachmentUrl', 'inlineImageActivation' => 'inlineImageActivation', 'mirrorActive' => 'mirrorActive', 'recurring' => 'recurring', 'footer' => 'footer', 'header' => 'header', 'utmCampaign' => 'utmCampaign', 'params' => 'params', 'sendAtBestTime' => 'sendAtBestTime', 'abTesting' => 'abTesting', 'subjectA' => 'subjectA', 'subjectB' => 'subjectB', 'splitRule' => 'splitRule', 'winnerCriteria' => 'winnerCriteria', 'winnerDelay' => 'winnerDelay', 'ipWarmupEnable' => 'ipWarmupEnable', 'initialQuota' => 'initialQuota', 'increaseRate' => 'increaseRate']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'tag' => 'setTag', - 'sender' => 'setSender', - 'name' => 'setName', - 'htmlContent' => 'setHtmlContent', - 'htmlUrl' => 'setHtmlUrl', - 'scheduledAt' => 'setScheduledAt', - 'subject' => 'setSubject', - 'replyTo' => 'setReplyTo', - 'toField' => 'setToField', - 'recipients' => 'setRecipients', - 'attachmentUrl' => 'setAttachmentUrl', - 'inlineImageActivation' => 'setInlineImageActivation', - 'mirrorActive' => 'setMirrorActive', - 'recurring' => 'setRecurring', - 'footer' => 'setFooter', - 'header' => 'setHeader', - 'utmCampaign' => 'setUtmCampaign', - 'params' => 'setParams', - 'sendAtBestTime' => 'setSendAtBestTime', - 'abTesting' => 'setAbTesting', - 'subjectA' => 'setSubjectA', - 'subjectB' => 'setSubjectB', - 'splitRule' => 'setSplitRule', - 'winnerCriteria' => 'setWinnerCriteria', - 'winnerDelay' => 'setWinnerDelay', - 'ipWarmupEnable' => 'setIpWarmupEnable', - 'initialQuota' => 'setInitialQuota', - 'increaseRate' => 'setIncreaseRate' - ]; - + protected static $setters = ['tag' => 'setTag', 'sender' => 'setSender', 'name' => 'setName', 'htmlContent' => 'setHtmlContent', 'htmlUrl' => 'setHtmlUrl', 'scheduledAt' => 'setScheduledAt', 'subject' => 'setSubject', 'replyTo' => 'setReplyTo', 'toField' => 'setToField', 'recipients' => 'setRecipients', 'attachmentUrl' => 'setAttachmentUrl', 'inlineImageActivation' => 'setInlineImageActivation', 'mirrorActive' => 'setMirrorActive', 'recurring' => 'setRecurring', 'footer' => 'setFooter', 'header' => 'setHeader', 'utmCampaign' => 'setUtmCampaign', 'params' => 'setParams', 'sendAtBestTime' => 'setSendAtBestTime', 'abTesting' => 'setAbTesting', 'subjectA' => 'setSubjectA', 'subjectB' => 'setSubjectB', 'splitRule' => 'setSplitRule', 'winnerCriteria' => 'setWinnerCriteria', 'winnerDelay' => 'setWinnerDelay', 'ipWarmupEnable' => 'setIpWarmupEnable', 'initialQuota' => 'setInitialQuota', 'increaseRate' => 'setIncreaseRate']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'tag' => 'getTag', - 'sender' => 'getSender', - 'name' => 'getName', - 'htmlContent' => 'getHtmlContent', - 'htmlUrl' => 'getHtmlUrl', - 'scheduledAt' => 'getScheduledAt', - 'subject' => 'getSubject', - 'replyTo' => 'getReplyTo', - 'toField' => 'getToField', - 'recipients' => 'getRecipients', - 'attachmentUrl' => 'getAttachmentUrl', - 'inlineImageActivation' => 'getInlineImageActivation', - 'mirrorActive' => 'getMirrorActive', - 'recurring' => 'getRecurring', - 'footer' => 'getFooter', - 'header' => 'getHeader', - 'utmCampaign' => 'getUtmCampaign', - 'params' => 'getParams', - 'sendAtBestTime' => 'getSendAtBestTime', - 'abTesting' => 'getAbTesting', - 'subjectA' => 'getSubjectA', - 'subjectB' => 'getSubjectB', - 'splitRule' => 'getSplitRule', - 'winnerCriteria' => 'getWinnerCriteria', - 'winnerDelay' => 'getWinnerDelay', - 'ipWarmupEnable' => 'getIpWarmupEnable', - 'initialQuota' => 'getInitialQuota', - 'increaseRate' => 'getIncreaseRate' - ]; - + protected static $getters = ['tag' => 'getTag', 'sender' => 'getSender', 'name' => 'getName', 'htmlContent' => 'getHtmlContent', 'htmlUrl' => 'getHtmlUrl', 'scheduledAt' => 'getScheduledAt', 'subject' => 'getSubject', 'replyTo' => 'getReplyTo', 'toField' => 'getToField', 'recipients' => 'getRecipients', 'attachmentUrl' => 'getAttachmentUrl', 'inlineImageActivation' => 'getInlineImageActivation', 'mirrorActive' => 'getMirrorActive', 'recurring' => 'getRecurring', 'footer' => 'getFooter', 'header' => 'getHeader', 'utmCampaign' => 'getUtmCampaign', 'params' => 'getParams', 'sendAtBestTime' => 'getSendAtBestTime', 'abTesting' => 'getAbTesting', 'subjectA' => 'getSubjectA', 'subjectB' => 'getSubjectB', 'splitRule' => 'getSplitRule', 'winnerCriteria' => 'getWinnerCriteria', 'winnerDelay' => 'getWinnerDelay', 'ipWarmupEnable' => 'getIpWarmupEnable', 'initialQuota' => 'getInitialQuota', 'increaseRate' => 'getIncreaseRate']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -262,7 +105,6 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -272,7 +114,6 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -282,7 +123,6 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -292,12 +132,8 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - const WINNER_CRITERIA_OPEN = 'open'; const WINNER_CRITERIA_CLICK = 'click'; - - - /** * Gets allowable values of the enum * @@ -305,20 +141,14 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess */ public function getWinnerCriteriaAllowableValues() { - return [ - self::WINNER_CRITERIA_OPEN, - self::WINNER_CRITERIA_CLICK, - ]; + return [self::WINNER_CRITERIA_OPEN, self::WINNER_CRITERIA_CLICK]; } - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -338,25 +168,24 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess $this->container['toField'] = isset($data['toField']) ? $data['toField'] : null; $this->container['recipients'] = isset($data['recipients']) ? $data['recipients'] : null; $this->container['attachmentUrl'] = isset($data['attachmentUrl']) ? $data['attachmentUrl'] : null; - $this->container['inlineImageActivation'] = isset($data['inlineImageActivation']) ? $data['inlineImageActivation'] : false; + $this->container['inlineImageActivation'] = isset($data['inlineImageActivation']) ? $data['inlineImageActivation'] : \false; $this->container['mirrorActive'] = isset($data['mirrorActive']) ? $data['mirrorActive'] : null; - $this->container['recurring'] = isset($data['recurring']) ? $data['recurring'] : false; + $this->container['recurring'] = isset($data['recurring']) ? $data['recurring'] : \false; $this->container['footer'] = isset($data['footer']) ? $data['footer'] : null; $this->container['header'] = isset($data['header']) ? $data['header'] : null; $this->container['utmCampaign'] = isset($data['utmCampaign']) ? $data['utmCampaign'] : null; $this->container['params'] = isset($data['params']) ? $data['params'] : null; $this->container['sendAtBestTime'] = isset($data['sendAtBestTime']) ? $data['sendAtBestTime'] : null; - $this->container['abTesting'] = isset($data['abTesting']) ? $data['abTesting'] : false; + $this->container['abTesting'] = isset($data['abTesting']) ? $data['abTesting'] : \false; $this->container['subjectA'] = isset($data['subjectA']) ? $data['subjectA'] : null; $this->container['subjectB'] = isset($data['subjectB']) ? $data['subjectB'] : null; $this->container['splitRule'] = isset($data['splitRule']) ? $data['splitRule'] : null; $this->container['winnerCriteria'] = isset($data['winnerCriteria']) ? $data['winnerCriteria'] : null; $this->container['winnerDelay'] = isset($data['winnerDelay']) ? $data['winnerDelay'] : null; - $this->container['ipWarmupEnable'] = isset($data['ipWarmupEnable']) ? $data['ipWarmupEnable'] : false; + $this->container['ipWarmupEnable'] = isset($data['ipWarmupEnable']) ? $data['ipWarmupEnable'] : \false; $this->container['initialQuota'] = isset($data['initialQuota']) ? $data['initialQuota'] : null; $this->container['increaseRate'] = isset($data['increaseRate']) ? $data['increaseRate'] : null; } - /** * Show all the invalid properties with reasons. * @@ -365,42 +194,30 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - - if (!is_null($this->container['splitRule']) && ($this->container['splitRule'] > 50)) { + if (!\is_null($this->container['splitRule']) && $this->container['splitRule'] > 50) { $invalidProperties[] = "invalid value for 'splitRule', must be smaller than or equal to 50."; } - - if (!is_null($this->container['splitRule']) && ($this->container['splitRule'] < 1)) { + if (!\is_null($this->container['splitRule']) && $this->container['splitRule'] < 1) { $invalidProperties[] = "invalid value for 'splitRule', must be bigger than or equal to 1."; } - $allowedValues = $this->getWinnerCriteriaAllowableValues(); - if (!is_null($this->container['winnerCriteria']) && !in_array($this->container['winnerCriteria'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value for 'winnerCriteria', must be one of '%s'", - implode("', '", $allowedValues) - ); + if (!\is_null($this->container['winnerCriteria']) && !\in_array($this->container['winnerCriteria'], $allowedValues, \true)) { + $invalidProperties[] = \sprintf("invalid value for 'winnerCriteria', must be one of '%s'", \implode("', '", $allowedValues)); } - - if (!is_null($this->container['winnerDelay']) && ($this->container['winnerDelay'] > 168)) { + if (!\is_null($this->container['winnerDelay']) && $this->container['winnerDelay'] > 168) { $invalidProperties[] = "invalid value for 'winnerDelay', must be smaller than or equal to 168."; } - - if (!is_null($this->container['winnerDelay']) && ($this->container['winnerDelay'] < 1)) { + if (!\is_null($this->container['winnerDelay']) && $this->container['winnerDelay'] < 1) { $invalidProperties[] = "invalid value for 'winnerDelay', must be bigger than or equal to 1."; } - - if (!is_null($this->container['increaseRate']) && ($this->container['increaseRate'] > 100)) { + if (!\is_null($this->container['increaseRate']) && $this->container['increaseRate'] > 100) { $invalidProperties[] = "invalid value for 'increaseRate', must be smaller than or equal to 100."; } - - if (!is_null($this->container['increaseRate']) && ($this->container['increaseRate'] < 0)) { + if (!\is_null($this->container['increaseRate']) && $this->container['increaseRate'] < 0) { $invalidProperties[] = "invalid value for 'increaseRate', must be bigger than or equal to 0."; } - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -409,10 +226,8 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets tag * @@ -422,7 +237,6 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['tag']; } - /** * Sets tag * @@ -433,10 +247,8 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess public function setTag($tag) { $this->container['tag'] = $tag; - return $this; } - /** * Gets sender * @@ -446,7 +258,6 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['sender']; } - /** * Sets sender * @@ -457,10 +268,8 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess public function setSender($sender) { $this->container['sender'] = $sender; - return $this; } - /** * Gets name * @@ -470,7 +279,6 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['name']; } - /** * Sets name * @@ -481,10 +289,8 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess public function setName($name) { $this->container['name'] = $name; - return $this; } - /** * Gets htmlContent * @@ -494,7 +300,6 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['htmlContent']; } - /** * Sets htmlContent * @@ -505,10 +310,8 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess public function setHtmlContent($htmlContent) { $this->container['htmlContent'] = $htmlContent; - return $this; } - /** * Gets htmlUrl * @@ -518,7 +321,6 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['htmlUrl']; } - /** * Sets htmlUrl * @@ -529,10 +331,8 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess public function setHtmlUrl($htmlUrl) { $this->container['htmlUrl'] = $htmlUrl; - return $this; } - /** * Gets scheduledAt * @@ -542,7 +342,6 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['scheduledAt']; } - /** * Sets scheduledAt * @@ -553,10 +352,8 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess public function setScheduledAt($scheduledAt) { $this->container['scheduledAt'] = $scheduledAt; - return $this; } - /** * Gets subject * @@ -566,7 +363,6 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['subject']; } - /** * Sets subject * @@ -577,10 +373,8 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess public function setSubject($subject) { $this->container['subject'] = $subject; - return $this; } - /** * Gets replyTo * @@ -590,7 +384,6 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['replyTo']; } - /** * Sets replyTo * @@ -601,10 +394,8 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess public function setReplyTo($replyTo) { $this->container['replyTo'] = $replyTo; - return $this; } - /** * Gets toField * @@ -614,7 +405,6 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['toField']; } - /** * Sets toField * @@ -625,10 +415,8 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess public function setToField($toField) { $this->container['toField'] = $toField; - return $this; } - /** * Gets recipients * @@ -638,7 +426,6 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['recipients']; } - /** * Sets recipients * @@ -649,10 +436,8 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess public function setRecipients($recipients) { $this->container['recipients'] = $recipients; - return $this; } - /** * Gets attachmentUrl * @@ -662,7 +447,6 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['attachmentUrl']; } - /** * Sets attachmentUrl * @@ -673,10 +457,8 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess public function setAttachmentUrl($attachmentUrl) { $this->container['attachmentUrl'] = $attachmentUrl; - return $this; } - /** * Gets inlineImageActivation * @@ -686,7 +468,6 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['inlineImageActivation']; } - /** * Sets inlineImageActivation * @@ -697,10 +478,8 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess public function setInlineImageActivation($inlineImageActivation) { $this->container['inlineImageActivation'] = $inlineImageActivation; - return $this; } - /** * Gets mirrorActive * @@ -710,7 +489,6 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['mirrorActive']; } - /** * Sets mirrorActive * @@ -721,10 +499,8 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess public function setMirrorActive($mirrorActive) { $this->container['mirrorActive'] = $mirrorActive; - return $this; } - /** * Gets recurring * @@ -734,7 +510,6 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['recurring']; } - /** * Sets recurring * @@ -745,10 +520,8 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess public function setRecurring($recurring) { $this->container['recurring'] = $recurring; - return $this; } - /** * Gets footer * @@ -758,7 +531,6 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['footer']; } - /** * Sets footer * @@ -769,10 +541,8 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess public function setFooter($footer) { $this->container['footer'] = $footer; - return $this; } - /** * Gets header * @@ -782,7 +552,6 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['header']; } - /** * Sets header * @@ -793,10 +562,8 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess public function setHeader($header) { $this->container['header'] = $header; - return $this; } - /** * Gets utmCampaign * @@ -806,7 +573,6 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['utmCampaign']; } - /** * Sets utmCampaign * @@ -817,10 +583,8 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess public function setUtmCampaign($utmCampaign) { $this->container['utmCampaign'] = $utmCampaign; - return $this; } - /** * Gets params * @@ -830,21 +594,18 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['params']; } - /** * Sets params * - * @param object $params Pass the set of attributes to customize the type 'classic' campaign. For example, {'FNAME':'Joe', 'LNAME':'Doe'}. The 'params' field will get updated, only if the campaign is in New Template Language, else ignored. The New Template Language is dependent on the values of 'subject', 'htmlContent/htmlUrl', 'sender.name' & 'toField' + * @param object $params Pass the set of attributes to customize the type 'classic' campaign. For example, {\"FNAME\":\"Joe\", \"LNAME\":\"Doe\"}. The 'params' field will get updated, only if the campaign is in New Template Language, else ignored. The New Template Language is dependent on the values of 'subject', 'htmlContent/htmlUrl', 'sender.name' & 'toField' * * @return $this */ public function setParams($params) { $this->container['params'] = $params; - return $this; } - /** * Gets sendAtBestTime * @@ -854,7 +615,6 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['sendAtBestTime']; } - /** * Sets sendAtBestTime * @@ -865,10 +625,8 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess public function setSendAtBestTime($sendAtBestTime) { $this->container['sendAtBestTime'] = $sendAtBestTime; - return $this; } - /** * Gets abTesting * @@ -878,7 +636,6 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['abTesting']; } - /** * Sets abTesting * @@ -889,10 +646,8 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess public function setAbTesting($abTesting) { $this->container['abTesting'] = $abTesting; - return $this; } - /** * Gets subjectA * @@ -902,7 +657,6 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['subjectA']; } - /** * Sets subjectA * @@ -913,10 +667,8 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess public function setSubjectA($subjectA) { $this->container['subjectA'] = $subjectA; - return $this; } - /** * Gets subjectB * @@ -926,7 +678,6 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['subjectB']; } - /** * Sets subjectB * @@ -937,10 +688,8 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess public function setSubjectB($subjectB) { $this->container['subjectB'] = $subjectB; - return $this; } - /** * Gets splitRule * @@ -950,7 +699,6 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['splitRule']; } - /** * Sets splitRule * @@ -960,19 +708,15 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess */ public function setSplitRule($splitRule) { - - if (!is_null($splitRule) && ($splitRule > 50)) { + if (!\is_null($splitRule) && $splitRule > 50) { throw new \InvalidArgumentException('invalid value for $splitRule when calling UpdateEmailCampaign., must be smaller than or equal to 50.'); } - if (!is_null($splitRule) && ($splitRule < 1)) { + if (!\is_null($splitRule) && $splitRule < 1) { throw new \InvalidArgumentException('invalid value for $splitRule when calling UpdateEmailCampaign., must be bigger than or equal to 1.'); } - $this->container['splitRule'] = $splitRule; - return $this; } - /** * Gets winnerCriteria * @@ -982,7 +726,6 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['winnerCriteria']; } - /** * Sets winnerCriteria * @@ -993,19 +736,12 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess public function setWinnerCriteria($winnerCriteria) { $allowedValues = $this->getWinnerCriteriaAllowableValues(); - if (!is_null($winnerCriteria) && !in_array($winnerCriteria, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'winnerCriteria', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); + if (!\is_null($winnerCriteria) && !\in_array($winnerCriteria, $allowedValues, \true)) { + throw new \InvalidArgumentException(\sprintf("Invalid value for 'winnerCriteria', must be one of '%s'", \implode("', '", $allowedValues))); } $this->container['winnerCriteria'] = $winnerCriteria; - return $this; } - /** * Gets winnerDelay * @@ -1015,7 +751,6 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['winnerDelay']; } - /** * Sets winnerDelay * @@ -1025,19 +760,15 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess */ public function setWinnerDelay($winnerDelay) { - - if (!is_null($winnerDelay) && ($winnerDelay > 168)) { + if (!\is_null($winnerDelay) && $winnerDelay > 168) { throw new \InvalidArgumentException('invalid value for $winnerDelay when calling UpdateEmailCampaign., must be smaller than or equal to 168.'); } - if (!is_null($winnerDelay) && ($winnerDelay < 1)) { + if (!\is_null($winnerDelay) && $winnerDelay < 1) { throw new \InvalidArgumentException('invalid value for $winnerDelay when calling UpdateEmailCampaign., must be bigger than or equal to 1.'); } - $this->container['winnerDelay'] = $winnerDelay; - return $this; } - /** * Gets ipWarmupEnable * @@ -1047,7 +778,6 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['ipWarmupEnable']; } - /** * Sets ipWarmupEnable * @@ -1058,10 +788,8 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess public function setIpWarmupEnable($ipWarmupEnable) { $this->container['ipWarmupEnable'] = $ipWarmupEnable; - return $this; } - /** * Gets initialQuota * @@ -1071,7 +799,6 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['initialQuota']; } - /** * Sets initialQuota * @@ -1082,10 +809,8 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess public function setInitialQuota($initialQuota) { $this->container['initialQuota'] = $initialQuota; - return $this; } - /** * Gets increaseRate * @@ -1095,7 +820,6 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess { return $this->container['increaseRate']; } - /** * Sets increaseRate * @@ -1105,16 +829,13 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess */ public function setIncreaseRate($increaseRate) { - - if (!is_null($increaseRate) && ($increaseRate > 100)) { + if (!\is_null($increaseRate) && $increaseRate > 100) { throw new \InvalidArgumentException('invalid value for $increaseRate when calling UpdateEmailCampaign., must be smaller than or equal to 100.'); } - if (!is_null($increaseRate) && ($increaseRate < 0)) { + if (!\is_null($increaseRate) && $increaseRate < 0) { throw new \InvalidArgumentException('invalid value for $increaseRate when calling UpdateEmailCampaign., must be bigger than or equal to 0.'); } - $this->container['increaseRate'] = $increaseRate; - return $this; } /** @@ -1128,7 +849,6 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -1140,7 +860,6 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -1151,13 +870,12 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -1169,7 +887,6 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -1177,15 +894,10 @@ class UpdateEmailCampaign implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateEmailCampaignRecipients.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateEmailCampaignRecipients.php similarity index 81% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateEmailCampaignRecipients.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateEmailCampaignRecipients.php index 07b0a4a..1fbdcd4 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateEmailCampaignRecipients.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateEmailCampaignRecipients.php @@ -1,4 +1,5 @@ 'int[]', - 'listIds' => 'int[]' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['exclusionListIds' => 'int[]', 'listIds' => 'int[]']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'exclusionListIds' => 'int64', - 'listIds' => 'int64' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['exclusionListIds' => 'int64', 'listIds' => 'int64']; /** * Array of property to type mappings. Used for (de)serialization * @@ -81,7 +68,6 @@ class UpdateEmailCampaignRecipients implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -91,38 +77,25 @@ class UpdateEmailCampaignRecipients implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'exclusionListIds' => 'exclusionListIds', - 'listIds' => 'listIds' - ]; - + protected static $attributeMap = ['exclusionListIds' => 'exclusionListIds', 'listIds' => 'listIds']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'exclusionListIds' => 'setExclusionListIds', - 'listIds' => 'setListIds' - ]; - + protected static $setters = ['exclusionListIds' => 'setExclusionListIds', 'listIds' => 'setListIds']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'exclusionListIds' => 'getExclusionListIds', - 'listIds' => 'getListIds' - ]; - + protected static $getters = ['exclusionListIds' => 'getExclusionListIds', 'listIds' => 'getListIds']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -133,7 +106,6 @@ class UpdateEmailCampaignRecipients implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -143,7 +115,6 @@ class UpdateEmailCampaignRecipients implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -153,7 +124,6 @@ class UpdateEmailCampaignRecipients implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -163,18 +133,12 @@ class UpdateEmailCampaignRecipients implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -186,7 +150,6 @@ class UpdateEmailCampaignRecipients implements ModelInterface, ArrayAccess $this->container['exclusionListIds'] = isset($data['exclusionListIds']) ? $data['exclusionListIds'] : null; $this->container['listIds'] = isset($data['listIds']) ? $data['listIds'] : null; } - /** * Show all the invalid properties with reasons. * @@ -195,10 +158,8 @@ class UpdateEmailCampaignRecipients implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -207,10 +168,8 @@ class UpdateEmailCampaignRecipients implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets exclusionListIds * @@ -220,7 +179,6 @@ class UpdateEmailCampaignRecipients implements ModelInterface, ArrayAccess { return $this->container['exclusionListIds']; } - /** * Sets exclusionListIds * @@ -231,10 +189,8 @@ class UpdateEmailCampaignRecipients implements ModelInterface, ArrayAccess public function setExclusionListIds($exclusionListIds) { $this->container['exclusionListIds'] = $exclusionListIds; - return $this; } - /** * Gets listIds * @@ -244,7 +200,6 @@ class UpdateEmailCampaignRecipients implements ModelInterface, ArrayAccess { return $this->container['listIds']; } - /** * Sets listIds * @@ -255,7 +210,6 @@ class UpdateEmailCampaignRecipients implements ModelInterface, ArrayAccess public function setListIds($listIds) { $this->container['listIds'] = $listIds; - return $this; } /** @@ -269,7 +223,6 @@ class UpdateEmailCampaignRecipients implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -281,7 +234,6 @@ class UpdateEmailCampaignRecipients implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -292,13 +244,12 @@ class UpdateEmailCampaignRecipients implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -310,7 +261,6 @@ class UpdateEmailCampaignRecipients implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -318,15 +268,10 @@ class UpdateEmailCampaignRecipients implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateEmailCampaignSender.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateEmailCampaignSender.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateEmailCampaignSender.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateEmailCampaignSender.php index 7049b81..b7d38d4 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateEmailCampaignSender.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateEmailCampaignSender.php @@ -1,4 +1,5 @@ 'string', - 'email' => 'string', - 'id' => 'int' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['name' => 'string', 'email' => 'string', 'id' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'name' => null, - 'email' => 'email', - 'id' => 'int64' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['name' => null, 'email' => 'email', 'id' => 'int64']; /** * Array of property to type mappings. Used for (de)serialization * @@ -83,7 +68,6 @@ class UpdateEmailCampaignSender implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -93,41 +77,25 @@ class UpdateEmailCampaignSender implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'name' => 'name', - 'email' => 'email', - 'id' => 'id' - ]; - + protected static $attributeMap = ['name' => 'name', 'email' => 'email', 'id' => 'id']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'name' => 'setName', - 'email' => 'setEmail', - 'id' => 'setId' - ]; - + protected static $setters = ['name' => 'setName', 'email' => 'setEmail', 'id' => 'setId']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'name' => 'getName', - 'email' => 'getEmail', - 'id' => 'getId' - ]; - + protected static $getters = ['name' => 'getName', 'email' => 'getEmail', 'id' => 'getId']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -138,7 +106,6 @@ class UpdateEmailCampaignSender implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -148,7 +115,6 @@ class UpdateEmailCampaignSender implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -158,7 +124,6 @@ class UpdateEmailCampaignSender implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -168,18 +133,12 @@ class UpdateEmailCampaignSender implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -192,7 +151,6 @@ class UpdateEmailCampaignSender implements ModelInterface, ArrayAccess $this->container['email'] = isset($data['email']) ? $data['email'] : null; $this->container['id'] = isset($data['id']) ? $data['id'] : null; } - /** * Show all the invalid properties with reasons. * @@ -201,10 +159,8 @@ class UpdateEmailCampaignSender implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -213,10 +169,8 @@ class UpdateEmailCampaignSender implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets name * @@ -226,7 +180,6 @@ class UpdateEmailCampaignSender implements ModelInterface, ArrayAccess { return $this->container['name']; } - /** * Sets name * @@ -237,10 +190,8 @@ class UpdateEmailCampaignSender implements ModelInterface, ArrayAccess public function setName($name) { $this->container['name'] = $name; - return $this; } - /** * Gets email * @@ -250,7 +201,6 @@ class UpdateEmailCampaignSender implements ModelInterface, ArrayAccess { return $this->container['email']; } - /** * Sets email * @@ -261,10 +211,8 @@ class UpdateEmailCampaignSender implements ModelInterface, ArrayAccess public function setEmail($email) { $this->container['email'] = $email; - return $this; } - /** * Gets id * @@ -274,7 +222,6 @@ class UpdateEmailCampaignSender implements ModelInterface, ArrayAccess { return $this->container['id']; } - /** * Sets id * @@ -285,7 +232,6 @@ class UpdateEmailCampaignSender implements ModelInterface, ArrayAccess public function setId($id) { $this->container['id'] = $id; - return $this; } /** @@ -299,7 +245,6 @@ class UpdateEmailCampaignSender implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -311,7 +256,6 @@ class UpdateEmailCampaignSender implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -322,13 +266,12 @@ class UpdateEmailCampaignSender implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -340,7 +283,6 @@ class UpdateEmailCampaignSender implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -348,15 +290,10 @@ class UpdateEmailCampaignSender implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateList.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateList.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateList.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateList.php index 325f0a1..92ab5cc 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateList.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateList.php @@ -1,4 +1,5 @@ 'string', - 'folderId' => 'int' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['name' => 'string', 'folderId' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'name' => null, - 'folderId' => 'int64' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['name' => null, 'folderId' => 'int64']; /** * Array of property to type mappings. Used for (de)serialization * @@ -80,7 +67,6 @@ class UpdateList implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -90,38 +76,25 @@ class UpdateList implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'name' => 'name', - 'folderId' => 'folderId' - ]; - + protected static $attributeMap = ['name' => 'name', 'folderId' => 'folderId']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'name' => 'setName', - 'folderId' => 'setFolderId' - ]; - + protected static $setters = ['name' => 'setName', 'folderId' => 'setFolderId']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'name' => 'getName', - 'folderId' => 'getFolderId' - ]; - + protected static $getters = ['name' => 'getName', 'folderId' => 'getFolderId']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -132,7 +105,6 @@ class UpdateList implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -142,7 +114,6 @@ class UpdateList implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -152,7 +123,6 @@ class UpdateList implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -162,18 +132,12 @@ class UpdateList implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -185,7 +149,6 @@ class UpdateList implements ModelInterface, ArrayAccess $this->container['name'] = isset($data['name']) ? $data['name'] : null; $this->container['folderId'] = isset($data['folderId']) ? $data['folderId'] : null; } - /** * Show all the invalid properties with reasons. * @@ -194,10 +157,8 @@ class UpdateList implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -206,10 +167,8 @@ class UpdateList implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets name * @@ -219,7 +178,6 @@ class UpdateList implements ModelInterface, ArrayAccess { return $this->container['name']; } - /** * Sets name * @@ -230,10 +188,8 @@ class UpdateList implements ModelInterface, ArrayAccess public function setName($name) { $this->container['name'] = $name; - return $this; } - /** * Gets folderId * @@ -243,7 +199,6 @@ class UpdateList implements ModelInterface, ArrayAccess { return $this->container['folderId']; } - /** * Sets folderId * @@ -254,7 +209,6 @@ class UpdateList implements ModelInterface, ArrayAccess public function setFolderId($folderId) { $this->container['folderId'] = $folderId; - return $this; } /** @@ -268,7 +222,6 @@ class UpdateList implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -280,7 +233,6 @@ class UpdateList implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -291,13 +243,12 @@ class UpdateList implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -309,7 +260,6 @@ class UpdateList implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -317,15 +267,10 @@ class UpdateList implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateSender.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateSender.php similarity index 81% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateSender.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateSender.php index 38ffdef..0577302 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateSender.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateSender.php @@ -1,4 +1,5 @@ 'string', - 'email' => 'string', - 'ips' => '\SendinBlue\Client\Model\CreateSenderIps[]' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['name' => 'string', 'email' => 'string', 'ips' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateSenderIps[]']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'name' => null, - 'email' => 'email', - 'ips' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['name' => null, 'email' => 'email', 'ips' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -82,7 +67,6 @@ class UpdateSender implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -92,41 +76,25 @@ class UpdateSender implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'name' => 'name', - 'email' => 'email', - 'ips' => 'ips' - ]; - + protected static $attributeMap = ['name' => 'name', 'email' => 'email', 'ips' => 'ips']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'name' => 'setName', - 'email' => 'setEmail', - 'ips' => 'setIps' - ]; - + protected static $setters = ['name' => 'setName', 'email' => 'setEmail', 'ips' => 'setIps']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'name' => 'getName', - 'email' => 'getEmail', - 'ips' => 'getIps' - ]; - + protected static $getters = ['name' => 'getName', 'email' => 'getEmail', 'ips' => 'getIps']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -137,7 +105,6 @@ class UpdateSender implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -147,7 +114,6 @@ class UpdateSender implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -157,7 +123,6 @@ class UpdateSender implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -167,18 +132,12 @@ class UpdateSender implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -191,7 +150,6 @@ class UpdateSender implements ModelInterface, ArrayAccess $this->container['email'] = isset($data['email']) ? $data['email'] : null; $this->container['ips'] = isset($data['ips']) ? $data['ips'] : null; } - /** * Show all the invalid properties with reasons. * @@ -200,10 +158,8 @@ class UpdateSender implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -212,10 +168,8 @@ class UpdateSender implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets name * @@ -225,7 +179,6 @@ class UpdateSender implements ModelInterface, ArrayAccess { return $this->container['name']; } - /** * Sets name * @@ -236,10 +189,8 @@ class UpdateSender implements ModelInterface, ArrayAccess public function setName($name) { $this->container['name'] = $name; - return $this; } - /** * Gets email * @@ -249,7 +200,6 @@ class UpdateSender implements ModelInterface, ArrayAccess { return $this->container['email']; } - /** * Sets email * @@ -260,10 +210,8 @@ class UpdateSender implements ModelInterface, ArrayAccess public function setEmail($email) { $this->container['email'] = $email; - return $this; } - /** * Gets ips * @@ -273,7 +221,6 @@ class UpdateSender implements ModelInterface, ArrayAccess { return $this->container['ips']; } - /** * Sets ips * @@ -284,7 +231,6 @@ class UpdateSender implements ModelInterface, ArrayAccess public function setIps($ips) { $this->container['ips'] = $ips; - return $this; } /** @@ -298,7 +244,6 @@ class UpdateSender implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -310,7 +255,6 @@ class UpdateSender implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -321,13 +265,12 @@ class UpdateSender implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -339,7 +282,6 @@ class UpdateSender implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -347,15 +289,10 @@ class UpdateSender implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateSmsCampaign.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateSmsCampaign.php similarity index 79% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateSmsCampaign.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateSmsCampaign.php index 55ad73e..7ede7d4 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateSmsCampaign.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateSmsCampaign.php @@ -1,4 +1,5 @@ 'string', - 'sender' => 'string', - 'content' => 'string', - 'recipients' => '\SendinBlue\Client\Model\CreateSmsCampaignRecipients', - 'scheduledAt' => '\DateTime' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['name' => 'string', 'sender' => 'string', 'content' => 'string', 'recipients' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\CreateSmsCampaignRecipients', 'scheduledAt' => '\\DateTime']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'name' => null, - 'sender' => null, - 'content' => null, - 'recipients' => null, - 'scheduledAt' => 'date-time' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['name' => null, 'sender' => null, 'content' => null, 'recipients' => null, 'scheduledAt' => 'date-time']; /** * Array of property to type mappings. Used for (de)serialization * @@ -86,7 +67,6 @@ class UpdateSmsCampaign implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -96,47 +76,25 @@ class UpdateSmsCampaign implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'name' => 'name', - 'sender' => 'sender', - 'content' => 'content', - 'recipients' => 'recipients', - 'scheduledAt' => 'scheduledAt' - ]; - + protected static $attributeMap = ['name' => 'name', 'sender' => 'sender', 'content' => 'content', 'recipients' => 'recipients', 'scheduledAt' => 'scheduledAt']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'name' => 'setName', - 'sender' => 'setSender', - 'content' => 'setContent', - 'recipients' => 'setRecipients', - 'scheduledAt' => 'setScheduledAt' - ]; - + protected static $setters = ['name' => 'setName', 'sender' => 'setSender', 'content' => 'setContent', 'recipients' => 'setRecipients', 'scheduledAt' => 'setScheduledAt']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'name' => 'getName', - 'sender' => 'getSender', - 'content' => 'getContent', - 'recipients' => 'getRecipients', - 'scheduledAt' => 'getScheduledAt' - ]; - + protected static $getters = ['name' => 'getName', 'sender' => 'getSender', 'content' => 'getContent', 'recipients' => 'getRecipients', 'scheduledAt' => 'getScheduledAt']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -147,7 +105,6 @@ class UpdateSmsCampaign implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -157,7 +114,6 @@ class UpdateSmsCampaign implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -167,7 +123,6 @@ class UpdateSmsCampaign implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -177,18 +132,12 @@ class UpdateSmsCampaign implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -203,7 +152,6 @@ class UpdateSmsCampaign implements ModelInterface, ArrayAccess $this->container['recipients'] = isset($data['recipients']) ? $data['recipients'] : null; $this->container['scheduledAt'] = isset($data['scheduledAt']) ? $data['scheduledAt'] : null; } - /** * Show all the invalid properties with reasons. * @@ -212,14 +160,11 @@ class UpdateSmsCampaign implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - - if (!is_null($this->container['sender']) && (mb_strlen($this->container['sender']) > 11)) { + if (!\is_null($this->container['sender']) && \mb_strlen($this->container['sender']) > 11) { $invalidProperties[] = "invalid value for 'sender', the character length must be smaller than or equal to 11."; } - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -228,10 +173,8 @@ class UpdateSmsCampaign implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets name * @@ -241,7 +184,6 @@ class UpdateSmsCampaign implements ModelInterface, ArrayAccess { return $this->container['name']; } - /** * Sets name * @@ -252,10 +194,8 @@ class UpdateSmsCampaign implements ModelInterface, ArrayAccess public function setName($name) { $this->container['name'] = $name; - return $this; } - /** * Gets sender * @@ -265,7 +205,6 @@ class UpdateSmsCampaign implements ModelInterface, ArrayAccess { return $this->container['sender']; } - /** * Sets sender * @@ -275,15 +214,12 @@ class UpdateSmsCampaign implements ModelInterface, ArrayAccess */ public function setSender($sender) { - if (!is_null($sender) && (mb_strlen($sender) > 11)) { + if (!\is_null($sender) && \mb_strlen($sender) > 11) { throw new \InvalidArgumentException('invalid length for $sender when calling UpdateSmsCampaign., must be smaller than or equal to 11.'); } - $this->container['sender'] = $sender; - return $this; } - /** * Gets content * @@ -293,7 +229,6 @@ class UpdateSmsCampaign implements ModelInterface, ArrayAccess { return $this->container['content']; } - /** * Sets content * @@ -304,10 +239,8 @@ class UpdateSmsCampaign implements ModelInterface, ArrayAccess public function setContent($content) { $this->container['content'] = $content; - return $this; } - /** * Gets recipients * @@ -317,7 +250,6 @@ class UpdateSmsCampaign implements ModelInterface, ArrayAccess { return $this->container['recipients']; } - /** * Sets recipients * @@ -328,10 +260,8 @@ class UpdateSmsCampaign implements ModelInterface, ArrayAccess public function setRecipients($recipients) { $this->container['recipients'] = $recipients; - return $this; } - /** * Gets scheduledAt * @@ -341,7 +271,6 @@ class UpdateSmsCampaign implements ModelInterface, ArrayAccess { return $this->container['scheduledAt']; } - /** * Sets scheduledAt * @@ -352,7 +281,6 @@ class UpdateSmsCampaign implements ModelInterface, ArrayAccess public function setScheduledAt($scheduledAt) { $this->container['scheduledAt'] = $scheduledAt; - return $this; } /** @@ -366,7 +294,6 @@ class UpdateSmsCampaign implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -378,7 +305,6 @@ class UpdateSmsCampaign implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -389,13 +315,12 @@ class UpdateSmsCampaign implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -407,7 +332,6 @@ class UpdateSmsCampaign implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -415,15 +339,10 @@ class UpdateSmsCampaign implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateSmtpTemplate.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateSmtpTemplate.php similarity index 79% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateSmtpTemplate.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateSmtpTemplate.php index abe79d0..ce4b38f 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateSmtpTemplate.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateSmtpTemplate.php @@ -1,4 +1,5 @@ 'string', - 'sender' => '\SendinBlue\Client\Model\UpdateSmtpTemplateSender', - 'templateName' => 'string', - 'htmlContent' => 'string', - 'htmlUrl' => 'string', - 'subject' => 'string', - 'replyTo' => 'string', - 'toField' => 'string', - 'attachmentUrl' => 'string', - 'isActive' => 'bool' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['tag' => 'string', 'sender' => 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\UpdateSmtpTemplateSender', 'templateName' => 'string', 'htmlContent' => 'string', 'htmlUrl' => 'string', 'subject' => 'string', 'replyTo' => 'string', 'toField' => 'string', 'attachmentUrl' => 'string', 'isActive' => 'bool']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'tag' => null, - 'sender' => null, - 'templateName' => null, - 'htmlContent' => null, - 'htmlUrl' => 'url', - 'subject' => null, - 'replyTo' => 'email', - 'toField' => null, - 'attachmentUrl' => 'url', - 'isActive' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['tag' => null, 'sender' => null, 'templateName' => null, 'htmlContent' => null, 'htmlUrl' => 'url', 'subject' => null, 'replyTo' => 'email', 'toField' => null, 'attachmentUrl' => 'url', 'isActive' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -96,7 +67,6 @@ class UpdateSmtpTemplate implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -106,62 +76,25 @@ class UpdateSmtpTemplate implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'tag' => 'tag', - 'sender' => 'sender', - 'templateName' => 'templateName', - 'htmlContent' => 'htmlContent', - 'htmlUrl' => 'htmlUrl', - 'subject' => 'subject', - 'replyTo' => 'replyTo', - 'toField' => 'toField', - 'attachmentUrl' => 'attachmentUrl', - 'isActive' => 'isActive' - ]; - + protected static $attributeMap = ['tag' => 'tag', 'sender' => 'sender', 'templateName' => 'templateName', 'htmlContent' => 'htmlContent', 'htmlUrl' => 'htmlUrl', 'subject' => 'subject', 'replyTo' => 'replyTo', 'toField' => 'toField', 'attachmentUrl' => 'attachmentUrl', 'isActive' => 'isActive']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'tag' => 'setTag', - 'sender' => 'setSender', - 'templateName' => 'setTemplateName', - 'htmlContent' => 'setHtmlContent', - 'htmlUrl' => 'setHtmlUrl', - 'subject' => 'setSubject', - 'replyTo' => 'setReplyTo', - 'toField' => 'setToField', - 'attachmentUrl' => 'setAttachmentUrl', - 'isActive' => 'setIsActive' - ]; - + protected static $setters = ['tag' => 'setTag', 'sender' => 'setSender', 'templateName' => 'setTemplateName', 'htmlContent' => 'setHtmlContent', 'htmlUrl' => 'setHtmlUrl', 'subject' => 'setSubject', 'replyTo' => 'setReplyTo', 'toField' => 'setToField', 'attachmentUrl' => 'setAttachmentUrl', 'isActive' => 'setIsActive']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'tag' => 'getTag', - 'sender' => 'getSender', - 'templateName' => 'getTemplateName', - 'htmlContent' => 'getHtmlContent', - 'htmlUrl' => 'getHtmlUrl', - 'subject' => 'getSubject', - 'replyTo' => 'getReplyTo', - 'toField' => 'getToField', - 'attachmentUrl' => 'getAttachmentUrl', - 'isActive' => 'getIsActive' - ]; - + protected static $getters = ['tag' => 'getTag', 'sender' => 'getSender', 'templateName' => 'getTemplateName', 'htmlContent' => 'getHtmlContent', 'htmlUrl' => 'getHtmlUrl', 'subject' => 'getSubject', 'replyTo' => 'getReplyTo', 'toField' => 'getToField', 'attachmentUrl' => 'getAttachmentUrl', 'isActive' => 'getIsActive']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -172,7 +105,6 @@ class UpdateSmtpTemplate implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -182,7 +114,6 @@ class UpdateSmtpTemplate implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -192,7 +123,6 @@ class UpdateSmtpTemplate implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -202,18 +132,12 @@ class UpdateSmtpTemplate implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -233,7 +157,6 @@ class UpdateSmtpTemplate implements ModelInterface, ArrayAccess $this->container['attachmentUrl'] = isset($data['attachmentUrl']) ? $data['attachmentUrl'] : null; $this->container['isActive'] = isset($data['isActive']) ? $data['isActive'] : null; } - /** * Show all the invalid properties with reasons. * @@ -242,10 +165,8 @@ class UpdateSmtpTemplate implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -254,10 +175,8 @@ class UpdateSmtpTemplate implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets tag * @@ -267,7 +186,6 @@ class UpdateSmtpTemplate implements ModelInterface, ArrayAccess { return $this->container['tag']; } - /** * Sets tag * @@ -278,10 +196,8 @@ class UpdateSmtpTemplate implements ModelInterface, ArrayAccess public function setTag($tag) { $this->container['tag'] = $tag; - return $this; } - /** * Gets sender * @@ -291,7 +207,6 @@ class UpdateSmtpTemplate implements ModelInterface, ArrayAccess { return $this->container['sender']; } - /** * Sets sender * @@ -302,10 +217,8 @@ class UpdateSmtpTemplate implements ModelInterface, ArrayAccess public function setSender($sender) { $this->container['sender'] = $sender; - return $this; } - /** * Gets templateName * @@ -315,7 +228,6 @@ class UpdateSmtpTemplate implements ModelInterface, ArrayAccess { return $this->container['templateName']; } - /** * Sets templateName * @@ -326,10 +238,8 @@ class UpdateSmtpTemplate implements ModelInterface, ArrayAccess public function setTemplateName($templateName) { $this->container['templateName'] = $templateName; - return $this; } - /** * Gets htmlContent * @@ -339,7 +249,6 @@ class UpdateSmtpTemplate implements ModelInterface, ArrayAccess { return $this->container['htmlContent']; } - /** * Sets htmlContent * @@ -350,10 +259,8 @@ class UpdateSmtpTemplate implements ModelInterface, ArrayAccess public function setHtmlContent($htmlContent) { $this->container['htmlContent'] = $htmlContent; - return $this; } - /** * Gets htmlUrl * @@ -363,7 +270,6 @@ class UpdateSmtpTemplate implements ModelInterface, ArrayAccess { return $this->container['htmlUrl']; } - /** * Sets htmlUrl * @@ -374,10 +280,8 @@ class UpdateSmtpTemplate implements ModelInterface, ArrayAccess public function setHtmlUrl($htmlUrl) { $this->container['htmlUrl'] = $htmlUrl; - return $this; } - /** * Gets subject * @@ -387,7 +291,6 @@ class UpdateSmtpTemplate implements ModelInterface, ArrayAccess { return $this->container['subject']; } - /** * Sets subject * @@ -398,10 +301,8 @@ class UpdateSmtpTemplate implements ModelInterface, ArrayAccess public function setSubject($subject) { $this->container['subject'] = $subject; - return $this; } - /** * Gets replyTo * @@ -411,7 +312,6 @@ class UpdateSmtpTemplate implements ModelInterface, ArrayAccess { return $this->container['replyTo']; } - /** * Sets replyTo * @@ -422,10 +322,8 @@ class UpdateSmtpTemplate implements ModelInterface, ArrayAccess public function setReplyTo($replyTo) { $this->container['replyTo'] = $replyTo; - return $this; } - /** * Gets toField * @@ -435,7 +333,6 @@ class UpdateSmtpTemplate implements ModelInterface, ArrayAccess { return $this->container['toField']; } - /** * Sets toField * @@ -446,10 +343,8 @@ class UpdateSmtpTemplate implements ModelInterface, ArrayAccess public function setToField($toField) { $this->container['toField'] = $toField; - return $this; } - /** * Gets attachmentUrl * @@ -459,7 +354,6 @@ class UpdateSmtpTemplate implements ModelInterface, ArrayAccess { return $this->container['attachmentUrl']; } - /** * Sets attachmentUrl * @@ -470,10 +364,8 @@ class UpdateSmtpTemplate implements ModelInterface, ArrayAccess public function setAttachmentUrl($attachmentUrl) { $this->container['attachmentUrl'] = $attachmentUrl; - return $this; } - /** * Gets isActive * @@ -483,7 +375,6 @@ class UpdateSmtpTemplate implements ModelInterface, ArrayAccess { return $this->container['isActive']; } - /** * Sets isActive * @@ -494,7 +385,6 @@ class UpdateSmtpTemplate implements ModelInterface, ArrayAccess public function setIsActive($isActive) { $this->container['isActive'] = $isActive; - return $this; } /** @@ -508,7 +398,6 @@ class UpdateSmtpTemplate implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -520,7 +409,6 @@ class UpdateSmtpTemplate implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -531,13 +419,12 @@ class UpdateSmtpTemplate implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -549,7 +436,6 @@ class UpdateSmtpTemplate implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -557,15 +443,10 @@ class UpdateSmtpTemplate implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateSmtpTemplateSender.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateSmtpTemplateSender.php similarity index 82% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateSmtpTemplateSender.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateSmtpTemplateSender.php index 6b71098..95fa814 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateSmtpTemplateSender.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateSmtpTemplateSender.php @@ -1,4 +1,5 @@ 'string', - 'email' => 'string', - 'id' => 'int' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['name' => 'string', 'email' => 'string', 'id' => 'int']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'name' => null, - 'email' => 'email', - 'id' => 'int64' - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['name' => null, 'email' => 'email', 'id' => 'int64']; /** * Array of property to type mappings. Used for (de)serialization * @@ -83,7 +68,6 @@ class UpdateSmtpTemplateSender implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -93,41 +77,25 @@ class UpdateSmtpTemplateSender implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'name' => 'name', - 'email' => 'email', - 'id' => 'id' - ]; - + protected static $attributeMap = ['name' => 'name', 'email' => 'email', 'id' => 'id']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'name' => 'setName', - 'email' => 'setEmail', - 'id' => 'setId' - ]; - + protected static $setters = ['name' => 'setName', 'email' => 'setEmail', 'id' => 'setId']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'name' => 'getName', - 'email' => 'getEmail', - 'id' => 'getId' - ]; - + protected static $getters = ['name' => 'getName', 'email' => 'getEmail', 'id' => 'getId']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -138,7 +106,6 @@ class UpdateSmtpTemplateSender implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -148,7 +115,6 @@ class UpdateSmtpTemplateSender implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -158,7 +124,6 @@ class UpdateSmtpTemplateSender implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -168,18 +133,12 @@ class UpdateSmtpTemplateSender implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - - - - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -192,7 +151,6 @@ class UpdateSmtpTemplateSender implements ModelInterface, ArrayAccess $this->container['email'] = isset($data['email']) ? $data['email'] : null; $this->container['id'] = isset($data['id']) ? $data['id'] : null; } - /** * Show all the invalid properties with reasons. * @@ -201,10 +159,8 @@ class UpdateSmtpTemplateSender implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -213,10 +169,8 @@ class UpdateSmtpTemplateSender implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets name * @@ -226,7 +180,6 @@ class UpdateSmtpTemplateSender implements ModelInterface, ArrayAccess { return $this->container['name']; } - /** * Sets name * @@ -237,10 +190,8 @@ class UpdateSmtpTemplateSender implements ModelInterface, ArrayAccess public function setName($name) { $this->container['name'] = $name; - return $this; } - /** * Gets email * @@ -250,7 +201,6 @@ class UpdateSmtpTemplateSender implements ModelInterface, ArrayAccess { return $this->container['email']; } - /** * Sets email * @@ -261,10 +211,8 @@ class UpdateSmtpTemplateSender implements ModelInterface, ArrayAccess public function setEmail($email) { $this->container['email'] = $email; - return $this; } - /** * Gets id * @@ -274,7 +222,6 @@ class UpdateSmtpTemplateSender implements ModelInterface, ArrayAccess { return $this->container['id']; } - /** * Sets id * @@ -285,7 +232,6 @@ class UpdateSmtpTemplateSender implements ModelInterface, ArrayAccess public function setId($id) { $this->container['id'] = $id; - return $this; } /** @@ -299,7 +245,6 @@ class UpdateSmtpTemplateSender implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -311,7 +256,6 @@ class UpdateSmtpTemplateSender implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -322,13 +266,12 @@ class UpdateSmtpTemplateSender implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -340,7 +283,6 @@ class UpdateSmtpTemplateSender implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -348,15 +290,10 @@ class UpdateSmtpTemplateSender implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateWebhook.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateWebhook.php similarity index 76% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateWebhook.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateWebhook.php index f6adcbe..88c5107 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateWebhook.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UpdateWebhook.php @@ -1,4 +1,5 @@ 'string', - 'description' => 'string', - 'events' => 'string[]' - ]; - + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = ['url' => 'string', 'description' => 'string', 'events' => 'string[]']; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $swaggerFormats = [ - 'url' => 'url', - 'description' => null, - 'events' => null - ]; - + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['url' => 'url', 'description' => null, 'events' => null]; /** * Array of property to type mappings. Used for (de)serialization * @@ -82,7 +67,6 @@ class UpdateWebhook implements ModelInterface, ArrayAccess { return self::$swaggerTypes; } - /** * Array of property to format mappings. Used for (de)serialization * @@ -92,41 +76,25 @@ class UpdateWebhook implements ModelInterface, ArrayAccess { return self::$swaggerFormats; } - /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ - protected static $attributeMap = [ - 'url' => 'url', - 'description' => 'description', - 'events' => 'events' - ]; - + protected static $attributeMap = ['url' => 'url', 'description' => 'description', 'events' => 'events']; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ - protected static $setters = [ - 'url' => 'setUrl', - 'description' => 'setDescription', - 'events' => 'setEvents' - ]; - + protected static $setters = ['url' => 'setUrl', 'description' => 'setDescription', 'events' => 'setEvents']; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ - protected static $getters = [ - 'url' => 'getUrl', - 'description' => 'getDescription', - 'events' => 'getEvents' - ]; - + protected static $getters = ['url' => 'getUrl', 'description' => 'getDescription', 'events' => 'getEvents']; /** * Array of attributes where the key is the local name, * and the value is the original name @@ -137,7 +105,6 @@ class UpdateWebhook implements ModelInterface, ArrayAccess { return self::$attributeMap; } - /** * Array of attributes to setter functions (for deserialization of responses) * @@ -147,7 +114,6 @@ class UpdateWebhook implements ModelInterface, ArrayAccess { return self::$setters; } - /** * Array of attributes to getter functions (for serialization of requests) * @@ -157,7 +123,6 @@ class UpdateWebhook implements ModelInterface, ArrayAccess { return self::$getters; } - /** * The original name of the model. * @@ -167,7 +132,6 @@ class UpdateWebhook implements ModelInterface, ArrayAccess { return self::$swaggerModelName; } - const EVENTS_HARD_BOUNCE = 'hardBounce'; const EVENTS_SOFT_BOUNCE = 'softBounce'; const EVENTS_BLOCKED = 'blocked'; @@ -183,9 +147,6 @@ class UpdateWebhook implements ModelInterface, ArrayAccess const EVENTS_LIST_ADDITION = 'listAddition'; const EVENTS_CONTACT_UPDATED = 'contactUpdated'; const EVENTS_CONTACT_DELETED = 'contactDeleted'; - - - /** * Gets allowable values of the enum * @@ -193,33 +154,14 @@ class UpdateWebhook implements ModelInterface, ArrayAccess */ public function getEventsAllowableValues() { - return [ - self::EVENTS_HARD_BOUNCE, - self::EVENTS_SOFT_BOUNCE, - self::EVENTS_BLOCKED, - self::EVENTS_SPAM, - self::EVENTS_DELIVERED, - self::EVENTS_REQUEST, - self::EVENTS_CLICK, - self::EVENTS_INVALID, - self::EVENTS_DEFERRED, - self::EVENTS_OPENED, - self::EVENTS_UNIQUE_OPENED, - self::EVENTS_UNSUBSCRIBED, - self::EVENTS_LIST_ADDITION, - self::EVENTS_CONTACT_UPDATED, - self::EVENTS_CONTACT_DELETED, - ]; + return [self::EVENTS_HARD_BOUNCE, self::EVENTS_SOFT_BOUNCE, self::EVENTS_BLOCKED, self::EVENTS_SPAM, self::EVENTS_DELIVERED, self::EVENTS_REQUEST, self::EVENTS_CLICK, self::EVENTS_INVALID, self::EVENTS_DEFERRED, self::EVENTS_OPENED, self::EVENTS_UNIQUE_OPENED, self::EVENTS_UNSUBSCRIBED, self::EVENTS_LIST_ADDITION, self::EVENTS_CONTACT_UPDATED, self::EVENTS_CONTACT_DELETED]; } - - /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; - /** * Constructor * @@ -232,7 +174,6 @@ class UpdateWebhook implements ModelInterface, ArrayAccess $this->container['description'] = isset($data['description']) ? $data['description'] : null; $this->container['events'] = isset($data['events']) ? $data['events'] : null; } - /** * Show all the invalid properties with reasons. * @@ -241,10 +182,8 @@ class UpdateWebhook implements ModelInterface, ArrayAccess public function listInvalidProperties() { $invalidProperties = []; - return $invalidProperties; } - /** * Validate all the properties in the model * return true if all passed @@ -253,10 +192,8 @@ class UpdateWebhook implements ModelInterface, ArrayAccess */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return \count($this->listInvalidProperties()) === 0; } - - /** * Gets url * @@ -266,7 +203,6 @@ class UpdateWebhook implements ModelInterface, ArrayAccess { return $this->container['url']; } - /** * Sets url * @@ -277,10 +213,8 @@ class UpdateWebhook implements ModelInterface, ArrayAccess public function setUrl($url) { $this->container['url'] = $url; - return $this; } - /** * Gets description * @@ -290,7 +224,6 @@ class UpdateWebhook implements ModelInterface, ArrayAccess { return $this->container['description']; } - /** * Sets description * @@ -301,10 +234,8 @@ class UpdateWebhook implements ModelInterface, ArrayAccess public function setDescription($description) { $this->container['description'] = $description; - return $this; } - /** * Gets events * @@ -314,7 +245,6 @@ class UpdateWebhook implements ModelInterface, ArrayAccess { return $this->container['events']; } - /** * Sets events * @@ -325,16 +255,10 @@ class UpdateWebhook implements ModelInterface, ArrayAccess public function setEvents($events) { $allowedValues = $this->getEventsAllowableValues(); - if (!is_null($events) && array_diff($events, $allowedValues)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'events', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); + if (!\is_null($events) && \array_diff($events, $allowedValues)) { + throw new \InvalidArgumentException(\sprintf("Invalid value for 'events', must be one of '%s'", \implode("', '", $allowedValues))); } $this->container['events'] = $events; - return $this; } /** @@ -348,7 +272,6 @@ class UpdateWebhook implements ModelInterface, ArrayAccess { return isset($this->container[$offset]); } - /** * Gets offset. * @@ -360,7 +283,6 @@ class UpdateWebhook implements ModelInterface, ArrayAccess { return isset($this->container[$offset]) ? $this->container[$offset] : null; } - /** * Sets value based on offset. * @@ -371,13 +293,12 @@ class UpdateWebhook implements ModelInterface, ArrayAccess */ public function offsetSet($offset, $value) { - if (is_null($offset)) { + if (\is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } - /** * Unsets offset. * @@ -389,7 +310,6 @@ class UpdateWebhook implements ModelInterface, ArrayAccess { unset($this->container[$offset]); } - /** * Gets the string presentation of the object * @@ -397,15 +317,10 @@ class UpdateWebhook implements ModelInterface, ArrayAccess */ public function __toString() { - if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); } - - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); } } - - diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UploadImageToGallery.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UploadImageToGallery.php new file mode 100644 index 0000000..adaa692 --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/Model/UploadImageToGallery.php @@ -0,0 +1,279 @@ + 'string', 'name' => 'string']; + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = ['imageUrl' => null, 'name' => null]; + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = ['imageUrl' => 'imageUrl', 'name' => 'name']; + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = ['imageUrl' => 'setImageUrl', 'name' => 'setName']; + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = ['imageUrl' => 'getImageUrl', 'name' => 'getName']; + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['imageUrl'] = isset($data['imageUrl']) ? $data['imageUrl'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + } + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + if ($this->container['imageUrl'] === null) { + $invalidProperties[] = "'imageUrl' can't be null"; + } + return $invalidProperties; + } + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return \count($this->listInvalidProperties()) === 0; + } + /** + * Gets imageUrl + * + * @return string + */ + public function getImageUrl() + { + return $this->container['imageUrl']; + } + /** + * Sets imageUrl + * + * @param string $imageUrl The absolute url of the image (no local file). Maximum allowed size for image is 2MB. Allowed extensions for images are - jpeg, jpg, png, bmp, gif. + * + * @return $this + */ + public function setImageUrl($imageUrl) + { + $this->container['imageUrl'] = $imageUrl; + return $this; + } + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + /** + * Sets name + * + * @param string $name Name of the image. + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (\is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (\defined('JSON_PRETTY_PRINT')) { + // use JSON pretty print + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this), \JSON_PRETTY_PRINT); + } + return \json_encode(\WPMailSMTP\Vendor\SendinBlue\Client\ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/ObjectSerializer.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/ObjectSerializer.php similarity index 71% rename from wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/ObjectSerializer.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/ObjectSerializer.php index 8af09f3..c94ec23 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/sendinblue/api-v3-sdk/lib/ObjectSerializer.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/sendinblue/api-v3-sdk/lib/ObjectSerializer.php @@ -1,4 +1,5 @@ format('Y-m-d') : $data->format(\DateTime::ATOM); - } elseif (is_array($data)) { + return $format === 'date' ? $data->format('Y-m-d') : $data->format(\DateTime::ATOM); + } elseif (\is_array($data)) { foreach ($data as $property => $value) { $data[$property] = self::sanitizeForSerialization($value); } return $data; } elseif ($data instanceof \stdClass) { foreach ($data as $property => $value) { - $data->$property = self::sanitizeForSerialization($value); + $data->{$property} = self::sanitizeForSerialization($value); } return $data; - } elseif (is_object($data)) { + } elseif (\is_object($data)) { $values = []; $formats = $data::swaggerFormats(); foreach ($data::swaggerTypes() as $property => $swaggerType) { $getter = $data::getters()[$property]; - $value = $data->$getter(); - if ($value !== null - && !in_array($swaggerType, ['DateTime', 'bool', 'boolean', 'byte', 'double', 'float', 'int', 'integer', 'mixed', 'number', 'object', 'string', 'void'], true) - && method_exists($swaggerType, 'getAllowableEnumValues') - && !in_array($value, $swaggerType::getAllowableEnumValues(), true)) { - $imploded = implode("', '", $swaggerType::getAllowableEnumValues()); - throw new \InvalidArgumentException("Invalid value for enum '$swaggerType', must be one of: '$imploded'"); + $value = $data->{$getter}(); + if ($value !== null && !\in_array($swaggerType, ['DateTime', 'bool', 'boolean', 'byte', 'double', 'float', 'int', 'integer', 'mixed', 'number', 'object', 'string', 'void'], \true) && \method_exists($swaggerType, 'getAllowableEnumValues') && !\in_array($value, $swaggerType::getAllowableEnumValues(), \true)) { + $imploded = \implode("', '", $swaggerType::getAllowableEnumValues()); + throw new \InvalidArgumentException("Invalid value for enum '{$swaggerType}', must be one of: '{$imploded}'"); } if ($value !== null) { $values[$data::attributeMap()[$property]] = self::sanitizeForSerialization($value, $swaggerType, $formats[$property]); } } - return (object)$values; + return (object) $values; } else { - return (string)$data; + return (string) $data; } } - /** * Sanitize filename by removing path. * e.g. ../../sun.gif becomes sun.gif @@ -97,13 +91,12 @@ class ObjectSerializer */ public static function sanitizeFilename($filename) { - if (preg_match("/.*[\/\\\\](.*)$/", $filename, $match)) { + if (\preg_match("/.*[\\/\\\\](.*)\$/", $filename, $match)) { return $match[1]; } else { return $filename; } } - /** * Take value and turn it into a string suitable for inclusion in * the path, by url-encoding. @@ -114,9 +107,8 @@ class ObjectSerializer */ public static function toPathValue($value) { - return rawurlencode(self::toString($value)); + return \rawurlencode(self::toString($value)); } - /** * Take value and turn it into a string suitable for inclusion in * the query, by imploding comma-separated if it's an object. @@ -129,13 +121,12 @@ class ObjectSerializer */ public static function toQueryValue($object) { - if (is_array($object)) { - return implode(',', $object); + if (\is_array($object)) { + return \implode(',', $object); } else { return self::toString($object); } } - /** * Take value and turn it into a string suitable for inclusion in * the header. If it's a string, pass through unchanged @@ -149,7 +140,6 @@ class ObjectSerializer { return self::toString($value); } - /** * Take value and turn it into a string suitable for inclusion in * the http body (form parameter). If it's a string, pass through unchanged @@ -167,7 +157,6 @@ class ObjectSerializer return self::toString($value); } } - /** * Take value and turn it into a string suitable for inclusion in * the parameter. If it's a string, pass through unchanged @@ -179,13 +168,13 @@ class ObjectSerializer */ public static function toString($value) { - if ($value instanceof \DateTime) { // datetime in ISO8601 format + if ($value instanceof \DateTime) { + // datetime in ISO8601 format return $value->format(\DateTime::ATOM); } else { return $value; } } - /** * Serialize an array to a string. * @@ -196,30 +185,26 @@ class ObjectSerializer * * @return string */ - public static function serializeCollection(array $collection, $collectionFormat, $allowCollectionFormatMulti = false) + public static function serializeCollection(array $collection, $collectionFormat, $allowCollectionFormatMulti = \false) { - if ($allowCollectionFormatMulti && ('multi' === $collectionFormat)) { + if ($allowCollectionFormatMulti && 'multi' === $collectionFormat) { // http_build_query() almost does the job for us. We just // need to fix the result of multidimensional arrays. - return preg_replace('/%5B[0-9]+%5D=/', '=', http_build_query($collection, '', '&')); + return \preg_replace('/%5B[0-9]+%5D=/', '=', \http_build_query($collection, '', '&')); } switch ($collectionFormat) { case 'pipes': - return implode('|', $collection); - + return \implode('|', $collection); case 'tsv': - return implode("\t", $collection); - + return \implode("\t", $collection); case 'ssv': - return implode(' ', $collection); - + return \implode(' ', $collection); case 'csv': - // Deliberate fall through. CSV is default format. + // Deliberate fall through. CSV is default format. default: - return implode(',', $collection); + return \implode(',', $collection); } } - /** * Deserialize a JSON string into an object * @@ -234,28 +219,29 @@ class ObjectSerializer { if (null === $data) { return null; - } elseif (substr($class, 0, 4) === 'map[') { // for associative array e.g. map[string,int] - $inner = substr($class, 4, -1); + } elseif (\substr($class, 0, 4) === 'map[') { + // for associative array e.g. map[string,int] + $inner = \substr($class, 4, -1); $deserialized = []; - if (strrpos($inner, ",") !== false) { - $subClass_array = explode(',', $inner, 2); + if (\strrpos($inner, ",") !== \false) { + $subClass_array = \explode(',', $inner, 2); $subClass = $subClass_array[1]; foreach ($data as $key => $value) { $deserialized[$key] = self::deserialize($value, $subClass, null); } } return $deserialized; - } elseif (strcasecmp(substr($class, -2), '[]') === 0) { - $subClass = substr($class, 0, -2); + } elseif (\strcasecmp(\substr($class, -2), '[]') === 0) { + $subClass = \substr($class, 0, -2); $values = []; foreach ($data as $key => $value) { $values[] = self::deserialize($value, $subClass, null); } return $values; } elseif ($class === 'object') { - settype($data, 'array'); + \settype($data, 'array'); return $data; - } elseif ($class === '\DateTime') { + } elseif ($class === '\\DateTime') { // Some API's return an invalid, empty string as a // date-time property. DateTime::__construct() will return // the current time for empty input which is probably not @@ -267,53 +253,47 @@ class ObjectSerializer } else { return null; } - } elseif (in_array($class, ['DateTime', 'bool', 'boolean', 'byte', 'double', 'float', 'int', 'integer', 'mixed', 'number', 'object', 'string', 'void'], true)) { - settype($data, $class); + } elseif (\in_array($class, ['DateTime', 'bool', 'boolean', 'byte', 'double', 'float', 'int', 'integer', 'mixed', 'number', 'object', 'string', 'void'], \true)) { + \settype($data, $class); return $data; - } elseif ($class === '\SplFileObject') { + } elseif ($class === '\\SplFileObject') { /** @var \Psr\Http\Message\StreamInterface $data */ - // determine file name - if (array_key_exists('Content-Disposition', $httpHeaders) && - preg_match('/inline; filename=[\'"]?([^\'"\s]+)[\'"]?$/i', $httpHeaders['Content-Disposition'], $match)) { - $filename = Configuration::getDefaultConfiguration()->getTempFolderPath() . DIRECTORY_SEPARATOR . self::sanitizeFilename($match[1]); + if (\array_key_exists('Content-Disposition', $httpHeaders) && \preg_match('/inline; filename=[\'"]?([^\'"\\s]+)[\'"]?$/i', $httpHeaders['Content-Disposition'], $match)) { + $filename = \WPMailSMTP\Vendor\SendinBlue\Client\Configuration::getDefaultConfiguration()->getTempFolderPath() . \DIRECTORY_SEPARATOR . self::sanitizeFilename($match[1]); } else { - $filename = tempnam(Configuration::getDefaultConfiguration()->getTempFolderPath(), ''); + $filename = \tempnam(\WPMailSMTP\Vendor\SendinBlue\Client\Configuration::getDefaultConfiguration()->getTempFolderPath(), ''); } - - $file = fopen($filename, 'w'); + $file = \fopen($filename, 'w'); while ($chunk = $data->read(200)) { - fwrite($file, $chunk); + \fwrite($file, $chunk); } - fclose($file); - + \fclose($file); return new \SplFileObject($filename, 'r'); - } elseif (method_exists($class, 'getAllowableEnumValues')) { - if (!in_array($data, $class::getAllowableEnumValues(), true)) { - $imploded = implode("', '", $class::getAllowableEnumValues()); - throw new \InvalidArgumentException("Invalid value for enum '$class', must be one of: '$imploded'"); + } elseif (\method_exists($class, 'getAllowableEnumValues')) { + if (!\in_array($data, $class::getAllowableEnumValues(), \true)) { + $imploded = \implode("', '", $class::getAllowableEnumValues()); + throw new \InvalidArgumentException("Invalid value for enum '{$class}', must be one of: '{$imploded}'"); } return $data; } else { // If a discriminator is defined and points to a valid subclass, use it. $discriminator = $class::DISCRIMINATOR; - if (!empty($discriminator) && isset($data->{$discriminator}) && is_string($data->{$discriminator})) { - $subclass = '\SendinBlue\Client\Model\\' . $data->{$discriminator}; - if (is_subclass_of($subclass, $class)) { + if (!empty($discriminator) && isset($data->{$discriminator}) && \is_string($data->{$discriminator})) { + $subclass = 'WPMailSMTP\\Vendor\\SendinBlue\\Client\\Model\\' . $data->{$discriminator}; + if (\is_subclass_of($subclass, $class)) { $class = $subclass; } } $instance = new $class(); foreach ($instance::swaggerTypes() as $property => $type) { $propertySetter = $instance::setters()[$property]; - if (!isset($propertySetter) || !isset($data->{$instance::attributeMap()[$property]})) { continue; } - $propertyValue = $data->{$instance::attributeMap()[$property]}; if (isset($propertyValue)) { - $instance->$propertySetter(self::deserialize($propertyValue, $type, null)); + $instance->{$propertySetter}(self::deserialize($propertyValue, $type, null)); } } return $instance; diff --git a/wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-intl-idn/Idn.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/symfony/polyfill-intl-idn/Idn.php similarity index 67% rename from wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-intl-idn/Idn.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/symfony/polyfill-intl-idn/Idn.php index f54ffd5..de9155b 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-intl-idn/Idn.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/symfony/polyfill-intl-idn/Idn.php @@ -24,8 +24,7 @@ * Originally forked from * https://github.com/true/php-punycode/blob/v2.1.1/src/Punycode.php */ - -namespace Symfony\Polyfill\Intl\Idn; +namespace WPMailSMTP\Vendor\Symfony\Polyfill\Intl\Idn; /** * Partial intl implementation in pure PHP. @@ -45,102 +44,63 @@ final class Idn { const INTL_IDNA_VARIANT_2003 = 0; const INTL_IDNA_VARIANT_UTS46 = 1; - - private static $encodeTable = array( - 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', - 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', - 'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', - ); - - private static $decodeTable = array( - 'a' => 0, 'b' => 1, 'c' => 2, 'd' => 3, 'e' => 4, 'f' => 5, - 'g' => 6, 'h' => 7, 'i' => 8, 'j' => 9, 'k' => 10, 'l' => 11, - 'm' => 12, 'n' => 13, 'o' => 14, 'p' => 15, 'q' => 16, 'r' => 17, - 's' => 18, 't' => 19, 'u' => 20, 'v' => 21, 'w' => 22, 'x' => 23, - 'y' => 24, 'z' => 25, '0' => 26, '1' => 27, '2' => 28, '3' => 29, - '4' => 30, '5' => 31, '6' => 32, '7' => 33, '8' => 34, '9' => 35, - ); - + private static $encodeTable = array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'); + private static $decodeTable = array('a' => 0, 'b' => 1, 'c' => 2, 'd' => 3, 'e' => 4, 'f' => 5, 'g' => 6, 'h' => 7, 'i' => 8, 'j' => 9, 'k' => 10, 'l' => 11, 'm' => 12, 'n' => 13, 'o' => 14, 'p' => 15, 'q' => 16, 'r' => 17, 's' => 18, 't' => 19, 'u' => 20, 'v' => 21, 'w' => 22, 'x' => 23, 'y' => 24, 'z' => 25, '0' => 26, '1' => 27, '2' => 28, '3' => 29, '4' => 30, '5' => 31, '6' => 32, '7' => 33, '8' => 34, '9' => 35); public static function idn_to_ascii($domain, $options, $variant, &$idna_info = array()) { if (\PHP_VERSION_ID >= 70200 && self::INTL_IDNA_VARIANT_2003 === $variant) { - @trigger_error('idn_to_ascii(): INTL_IDNA_VARIANT_2003 is deprecated', E_USER_DEPRECATED); + @\trigger_error('idn_to_ascii(): INTL_IDNA_VARIANT_2003 is deprecated', \E_USER_DEPRECATED); } - if (self::INTL_IDNA_VARIANT_UTS46 === $variant) { - $domain = mb_strtolower($domain, 'utf-8'); + $domain = \mb_strtolower($domain, 'utf-8'); } - - $parts = explode('.', $domain); - + $parts = \explode('.', $domain); foreach ($parts as $i => &$part) { if ('' === $part && \count($parts) > 1 + $i) { - return false; + return \false; } - if (false === $part = self::encodePart($part)) { - return false; + if (\false === ($part = self::encodePart($part))) { + return \false; } } - - $output = implode('.', $parts); - - $idna_info = array( - 'result' => \strlen($output) > 255 ? false : $output, - 'isTransitionalDifferent' => false, - 'errors' => 0, - ); - + $output = \implode('.', $parts); + $idna_info = array('result' => \strlen($output) > 255 ? \false : $output, 'isTransitionalDifferent' => \false, 'errors' => 0); return $idna_info['result']; } - public static function idn_to_utf8($domain, $options, $variant, &$idna_info = array()) { if (\PHP_VERSION_ID >= 70200 && self::INTL_IDNA_VARIANT_2003 === $variant) { - @trigger_error('idn_to_utf8(): INTL_IDNA_VARIANT_2003 is deprecated', E_USER_DEPRECATED); + @\trigger_error('idn_to_utf8(): INTL_IDNA_VARIANT_2003 is deprecated', \E_USER_DEPRECATED); } - - $parts = explode('.', $domain); - + $parts = \explode('.', $domain); foreach ($parts as &$part) { $length = \strlen($part); if ($length < 1 || 63 < $length) { continue; } - if (0 !== strpos($part, 'xn--')) { + if (0 !== \strpos($part, 'xn--')) { continue; } - - $part = substr($part, 4); + $part = \substr($part, 4); $part = self::decodePart($part); } - - $output = implode('.', $parts); - - $idna_info = array( - 'result' => \strlen($output) > 255 ? false : $output, - 'isTransitionalDifferent' => false, - 'errors' => 0, - ); - + $output = \implode('.', $parts); + $idna_info = array('result' => \strlen($output) > 255 ? \false : $output, 'isTransitionalDifferent' => \false, 'errors' => 0); return $idna_info['result']; } - private static function encodePart($input) { if (\substr($input, 0, 1) === '-' || \substr($input, -1) === '-') { - return false; + return \false; } - $codePoints = self::listCodePoints($input); - $n = 128; $bias = 72; $delta = 0; $h = $b = \count($codePoints['basic']); - $output = ''; foreach ($codePoints['basic'] as $code) { - $output .= mb_chr($code, 'utf-8'); + $output .= \mb_chr($code, 'utf-8'); } if ($input === $output) { return $output; @@ -148,17 +108,14 @@ final class Idn if ($b > 0) { $output .= '-'; } - - $codePoints['nonBasic'] = array_unique($codePoints['nonBasic']); - sort($codePoints['nonBasic']); - + $codePoints['nonBasic'] = \array_unique($codePoints['nonBasic']); + \sort($codePoints['nonBasic']); $i = 0; - $length = mb_strlen($input, 'utf-8'); + $length = \mb_strlen($input, 'utf-8'); while ($h < $length) { $m = $codePoints['nonBasic'][$i++]; $delta += ($m - $n) * ($h + 1); $n = $m; - foreach ($codePoints['all'] as $c) { if ($c < $n || $c < 128) { ++$delta; @@ -170,51 +127,37 @@ final class Idn if ($q < $t) { break; } - - $code = $t + (($q - $t) % (36 - $t)); + $code = $t + ($q - $t) % (36 - $t); $output .= self::$encodeTable[$code]; - $q = ($q - $t) / (36 - $t); } - $output .= self::$encodeTable[$q]; - $bias = self::adapt($delta, $h + 1, ($h === $b)); + $bias = self::adapt($delta, $h + 1, $h === $b); $delta = 0; ++$h; } } - ++$delta; ++$n; } - - $output = 'xn--'.$output; - - return \strlen($output) < 1 || 63 < \strlen($output) ? false : strtolower($output); + $output = 'xn--' . $output; + return \strlen($output) < 1 || 63 < \strlen($output) ? \false : \strtolower($output); } - private static function listCodePoints($input) { - $codePoints = array( - 'all' => array(), - 'basic' => array(), - 'nonBasic' => array(), - ); - - $length = mb_strlen($input, 'utf-8'); + $codePoints = array('all' => array(), 'basic' => array(), 'nonBasic' => array()); + $length = \mb_strlen($input, 'utf-8'); for ($i = 0; $i < $length; ++$i) { - $char = mb_substr($input, $i, 1, 'utf-8'); - $code = mb_ord($char, 'utf-8'); + $char = \mb_substr($input, $i, 1, 'utf-8'); + $code = \mb_ord($char, 'utf-8'); if ($code < 128) { $codePoints['all'][] = $codePoints['basic'][] = $code; } else { $codePoints['all'][] = $codePoints['nonBasic'][] = $code; } } - return $codePoints; } - private static function calculateThreshold($k, $bias) { if ($k <= $bias + 1) { @@ -223,65 +166,51 @@ final class Idn if ($k >= $bias + 26) { return 26; } - return $k - $bias; } - private static function adapt($delta, $numPoints, $firstTime) { $delta = (int) ($firstTime ? $delta / 700 : $delta / 2); $delta += (int) ($delta / $numPoints); - $k = 0; while ($delta > 35 * 13) { $delta = (int) ($delta / 35); $k = $k + 36; } - return $k + (int) (36 * $delta / ($delta + 38)); } - private static function decodePart($input) { $n = 128; $i = 0; $bias = 72; $output = ''; - - $pos = strrpos($input, '-'); - if (false !== $pos) { - $output = substr($input, 0, $pos++); + $pos = \strrpos($input, '-'); + if (\false !== $pos) { + $output = \substr($input, 0, $pos++); } else { $pos = 0; } - $outputLength = \strlen($output); $inputLength = \strlen($input); - while ($pos < $inputLength) { $oldi = $i; $w = 1; - for ($k = 36;; $k += 36) { $digit = self::$decodeTable[$input[$pos++]]; $i += $digit * $w; $t = self::calculateThreshold($k, $bias); - if ($digit < $t) { break; } - $w *= 36 - $t; } - $bias = self::adapt($i - $oldi, ++$outputLength, 0 === $oldi); $n = $n + (int) ($i / $outputLength); $i = $i % $outputLength; - $output = mb_substr($output, 0, $i, 'utf-8').mb_chr($n, 'utf-8').mb_substr($output, $i, $outputLength - 1, 'utf-8'); - + $output = \mb_substr($output, 0, $i, 'utf-8') . \mb_chr($n, 'utf-8') . \mb_substr($output, $i, $outputLength - 1, 'utf-8'); ++$i; } - return $output; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-intl-idn/LICENSE b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/symfony/polyfill-intl-idn/LICENSE similarity index 100% rename from wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-intl-idn/LICENSE rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/symfony/polyfill-intl-idn/LICENSE diff --git a/wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-intl-idn/bootstrap.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/symfony/polyfill-intl-idn/bootstrap.php similarity index 98% rename from wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-intl-idn/bootstrap.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/symfony/polyfill-intl-idn/bootstrap.php index f02d5de..90a59ab 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-intl-idn/bootstrap.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/symfony/polyfill-intl-idn/bootstrap.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -use Symfony\Polyfill\Intl\Idn as p; +use WPMailSMTP\Vendor\Symfony\Polyfill\Intl\Idn as p; if (extension_loaded('intl')) { return; diff --git a/wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-mbstring/LICENSE b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/symfony/polyfill-mbstring/LICENSE similarity index 100% rename from wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-mbstring/LICENSE rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/symfony/polyfill-mbstring/LICENSE diff --git a/wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-mbstring/Mbstring.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/symfony/polyfill-mbstring/Mbstring.php similarity index 63% rename from wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-mbstring/Mbstring.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/symfony/polyfill-mbstring/Mbstring.php index 15503bc..8a0bbcb 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-mbstring/Mbstring.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/symfony/polyfill-mbstring/Mbstring.php @@ -8,8 +8,7 @@ * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ - -namespace Symfony\Polyfill\Mbstring; +namespace WPMailSMTP\Vendor\Symfony\Polyfill\Mbstring; /** * Partial mbstring implementation in PHP, iconv based, UTF-8 centric. @@ -67,234 +66,185 @@ namespace Symfony\Polyfill\Mbstring; */ final class Mbstring { - const MB_CASE_FOLD = PHP_INT_MAX; - + const MB_CASE_FOLD = \PHP_INT_MAX; private static $encodingList = array('ASCII', 'UTF-8'); private static $language = 'neutral'; private static $internalEncoding = 'UTF-8'; - private static $caseFold = array( - array('µ', 'ſ', "\xCD\x85", 'ς', "\xCF\x90", "\xCF\x91", "\xCF\x95", "\xCF\x96", "\xCF\xB0", "\xCF\xB1", "\xCF\xB5", "\xE1\xBA\x9B", "\xE1\xBE\xBE"), - array('μ', 's', 'ι', 'σ', 'β', 'θ', 'φ', 'π', 'κ', 'ρ', 'ε', "\xE1\xB9\xA1", 'ι'), - ); - + private static $caseFold = array(array('µ', 'ſ', "ͅ", 'ς', "ϐ", "ϑ", "ϕ", "ϖ", "ϰ", "ϱ", "ϵ", "ẛ", "ι"), array('μ', 's', 'ι', 'σ', 'β', 'θ', 'φ', 'π', 'κ', 'ρ', 'ε', "ṡ", 'ι')); public static function mb_convert_encoding($s, $toEncoding, $fromEncoding = null) { - if (\is_array($fromEncoding) || false !== strpos($fromEncoding, ',')) { + if (\is_array($fromEncoding) || \false !== \strpos($fromEncoding, ',')) { $fromEncoding = self::mb_detect_encoding($s, $fromEncoding); } else { $fromEncoding = self::getEncoding($fromEncoding); } - $toEncoding = self::getEncoding($toEncoding); - if ('BASE64' === $fromEncoding) { - $s = base64_decode($s); + $s = \base64_decode($s); $fromEncoding = $toEncoding; } - if ('BASE64' === $toEncoding) { - return base64_encode($s); + return \base64_encode($s); } - if ('HTML-ENTITIES' === $toEncoding || 'HTML' === $toEncoding) { if ('HTML-ENTITIES' === $fromEncoding || 'HTML' === $fromEncoding) { $fromEncoding = 'Windows-1252'; } if ('UTF-8' !== $fromEncoding) { - $s = iconv($fromEncoding, 'UTF-8//IGNORE', $s); + $s = \iconv($fromEncoding, 'UTF-8//IGNORE', $s); } - - return preg_replace_callback('/[\x80-\xFF]+/', array(__CLASS__, 'html_encoding_callback'), $s); + return \preg_replace_callback('/[\\x80-\\xFF]+/', array(__CLASS__, 'html_encoding_callback'), $s); } - if ('HTML-ENTITIES' === $fromEncoding) { - $s = html_entity_decode($s, ENT_COMPAT, 'UTF-8'); + $s = \html_entity_decode($s, \ENT_COMPAT, 'UTF-8'); $fromEncoding = 'UTF-8'; } - - return iconv($fromEncoding, $toEncoding.'//IGNORE', $s); + return \iconv($fromEncoding, $toEncoding . '//IGNORE', $s); } - public static function mb_convert_variables($toEncoding, $fromEncoding, &$a = null, &$b = null, &$c = null, &$d = null, &$e = null, &$f = null) { $vars = array(&$a, &$b, &$c, &$d, &$e, &$f); - - $ok = true; - array_walk_recursive($vars, function (&$v) use (&$ok, $toEncoding, $fromEncoding) { - if (false === $v = Mbstring::mb_convert_encoding($v, $toEncoding, $fromEncoding)) { - $ok = false; + $ok = \true; + \array_walk_recursive($vars, function (&$v) use(&$ok, $toEncoding, $fromEncoding) { + if (\false === ($v = \WPMailSMTP\Vendor\Symfony\Polyfill\Mbstring\Mbstring::mb_convert_encoding($v, $toEncoding, $fromEncoding))) { + $ok = \false; } }); - - return $ok ? $fromEncoding : false; + return $ok ? $fromEncoding : \false; } - public static function mb_decode_mimeheader($s) { - return iconv_mime_decode($s, 2, self::$internalEncoding); + return \iconv_mime_decode($s, 2, self::$internalEncoding); } - public static function mb_encode_mimeheader($s, $charset = null, $transferEncoding = null, $linefeed = null, $indent = null) { - trigger_error('mb_encode_mimeheader() is bugged. Please use iconv_mime_encode() instead', E_USER_WARNING); + \trigger_error('mb_encode_mimeheader() is bugged. Please use iconv_mime_encode() instead', \E_USER_WARNING); } - public static function mb_decode_numericentity($s, $convmap, $encoding = null) { if (null !== $s && !\is_scalar($s) && !(\is_object($s) && \method_exists($s, '__toString'))) { - trigger_error('mb_decode_numericentity() expects parameter 1 to be string, '.\gettype($s).' given', E_USER_WARNING); - + \trigger_error('mb_decode_numericentity() expects parameter 1 to be string, ' . \gettype($s) . ' given', \E_USER_WARNING); return null; } - if (!\is_array($convmap) || !$convmap) { - return false; + return \false; } - if (null !== $encoding && !\is_scalar($encoding)) { - trigger_error('mb_decode_numericentity() expects parameter 3 to be string, '.\gettype($s).' given', E_USER_WARNING); - - return ''; // Instead of null (cf. mb_encode_numericentity). + \trigger_error('mb_decode_numericentity() expects parameter 3 to be string, ' . \gettype($s) . ' given', \E_USER_WARNING); + return ''; + // Instead of null (cf. mb_encode_numericentity). } - $s = (string) $s; if ('' === $s) { return ''; } - $encoding = self::getEncoding($encoding); - if ('UTF-8' === $encoding) { $encoding = null; - if (!preg_match('//u', $s)) { - $s = @iconv('UTF-8', 'UTF-8//IGNORE', $s); + if (!\preg_match('//u', $s)) { + $s = @\iconv('UTF-8', 'UTF-8//IGNORE', $s); } } else { - $s = iconv($encoding, 'UTF-8//IGNORE', $s); + $s = \iconv($encoding, 'UTF-8//IGNORE', $s); } - - $cnt = floor(\count($convmap) / 4) * 4; - + $cnt = \floor(\count($convmap) / 4) * 4; for ($i = 0; $i < $cnt; $i += 4) { // collector_decode_htmlnumericentity ignores $convmap[$i + 3] $convmap[$i] += $convmap[$i + 2]; $convmap[$i + 1] += $convmap[$i + 2]; } - - $s = preg_replace_callback('/&#(?:0*([0-9]+)|x0*([0-9a-fA-F]+))(?!&);?/', function (array $m) use ($cnt, $convmap) { - $c = isset($m[2]) ? (int) hexdec($m[2]) : $m[1]; + $s = \preg_replace_callback('/&#(?:0*([0-9]+)|x0*([0-9a-fA-F]+))(?!&);?/', function (array $m) use($cnt, $convmap) { + $c = isset($m[2]) ? (int) \hexdec($m[2]) : $m[1]; for ($i = 0; $i < $cnt; $i += 4) { if ($c >= $convmap[$i] && $c <= $convmap[$i + 1]) { - return Mbstring::mb_chr($c - $convmap[$i + 2]); + return \WPMailSMTP\Vendor\Symfony\Polyfill\Mbstring\Mbstring::mb_chr($c - $convmap[$i + 2]); } } - return $m[0]; }, $s); - if (null === $encoding) { return $s; } - - return iconv('UTF-8', $encoding.'//IGNORE', $s); + return \iconv('UTF-8', $encoding . '//IGNORE', $s); } - - public static function mb_encode_numericentity($s, $convmap, $encoding = null, $is_hex = false) + public static function mb_encode_numericentity($s, $convmap, $encoding = null, $is_hex = \false) { if (null !== $s && !\is_scalar($s) && !(\is_object($s) && \method_exists($s, '__toString'))) { - trigger_error('mb_encode_numericentity() expects parameter 1 to be string, '.\gettype($s).' given', E_USER_WARNING); - + \trigger_error('mb_encode_numericentity() expects parameter 1 to be string, ' . \gettype($s) . ' given', \E_USER_WARNING); return null; } - if (!\is_array($convmap) || !$convmap) { - return false; + return \false; } - if (null !== $encoding && !\is_scalar($encoding)) { - trigger_error('mb_encode_numericentity() expects parameter 3 to be string, '.\gettype($s).' given', E_USER_WARNING); - - return null; // Instead of '' (cf. mb_decode_numericentity). + \trigger_error('mb_encode_numericentity() expects parameter 3 to be string, ' . \gettype($s) . ' given', \E_USER_WARNING); + return null; + // Instead of '' (cf. mb_decode_numericentity). } - if (null !== $is_hex && !\is_scalar($is_hex)) { - trigger_error('mb_encode_numericentity() expects parameter 4 to be boolean, '.\gettype($s).' given', E_USER_WARNING); - + \trigger_error('mb_encode_numericentity() expects parameter 4 to be boolean, ' . \gettype($s) . ' given', \E_USER_WARNING); return null; } - $s = (string) $s; if ('' === $s) { return ''; } - $encoding = self::getEncoding($encoding); - if ('UTF-8' === $encoding) { $encoding = null; - if (!preg_match('//u', $s)) { - $s = @iconv('UTF-8', 'UTF-8//IGNORE', $s); + if (!\preg_match('//u', $s)) { + $s = @\iconv('UTF-8', 'UTF-8//IGNORE', $s); } } else { - $s = iconv($encoding, 'UTF-8//IGNORE', $s); + $s = \iconv($encoding, 'UTF-8//IGNORE', $s); } - - static $ulenMask = array("\xC0" => 2, "\xD0" => 2, "\xE0" => 3, "\xF0" => 4); - - $cnt = floor(\count($convmap) / 4) * 4; + static $ulenMask = array("" => 2, "" => 2, "" => 3, "" => 4); + $cnt = \floor(\count($convmap) / 4) * 4; $i = 0; $len = \strlen($s); $result = ''; - while ($i < $len) { - $ulen = $s[$i] < "\x80" ? 1 : $ulenMask[$s[$i] & "\xF0"]; - $uchr = substr($s, $i, $ulen); + $ulen = $s[$i] < "" ? 1 : $ulenMask[$s[$i] & ""]; + $uchr = \substr($s, $i, $ulen); $i += $ulen; $c = self::mb_ord($uchr); - for ($j = 0; $j < $cnt; $j += 4) { if ($c >= $convmap[$j] && $c <= $convmap[$j + 1]) { - $cOffset = ($c + $convmap[$j + 2]) & $convmap[$j + 3]; - $result .= $is_hex ? sprintf('&#x%X;', $cOffset) : '&#'.$cOffset.';'; + $cOffset = $c + $convmap[$j + 2] & $convmap[$j + 3]; + $result .= $is_hex ? \sprintf('&#x%X;', $cOffset) : '&#' . $cOffset . ';'; continue 2; } } $result .= $uchr; } - if (null === $encoding) { return $result; } - - return iconv('UTF-8', $encoding.'//IGNORE', $result); + return \iconv('UTF-8', $encoding . '//IGNORE', $result); } - public static function mb_convert_case($s, $mode, $encoding = null) { $s = (string) $s; if ('' === $s) { return ''; } - $encoding = self::getEncoding($encoding); - if ('UTF-8' === $encoding) { $encoding = null; - if (!preg_match('//u', $s)) { - $s = @iconv('UTF-8', 'UTF-8//IGNORE', $s); + if (!\preg_match('//u', $s)) { + $s = @\iconv('UTF-8', 'UTF-8//IGNORE', $s); } } else { - $s = iconv($encoding, 'UTF-8//IGNORE', $s); + $s = \iconv($encoding, 'UTF-8//IGNORE', $s); } - - if (MB_CASE_TITLE == $mode) { + if (\MB_CASE_TITLE == $mode) { static $titleRegexp = null; if (null === $titleRegexp) { $titleRegexp = self::getData('titleCaseRegexp'); } - $s = preg_replace_callback($titleRegexp, array(__CLASS__, 'title_case'), $s); + $s = \preg_replace_callback($titleRegexp, array(__CLASS__, 'title_case'), $s); } else { - if (MB_CASE_UPPER == $mode) { + if (\MB_CASE_UPPER == $mode) { static $upper = null; if (null === $upper) { $upper = self::getData('upperCase'); @@ -302,217 +252,177 @@ final class Mbstring $map = $upper; } else { if (self::MB_CASE_FOLD === $mode) { - $s = str_replace(self::$caseFold[0], self::$caseFold[1], $s); + $s = \str_replace(self::$caseFold[0], self::$caseFold[1], $s); } - static $lower = null; if (null === $lower) { $lower = self::getData('lowerCase'); } $map = $lower; } - - static $ulenMask = array("\xC0" => 2, "\xD0" => 2, "\xE0" => 3, "\xF0" => 4); - + static $ulenMask = array("" => 2, "" => 2, "" => 3, "" => 4); $i = 0; $len = \strlen($s); - while ($i < $len) { - $ulen = $s[$i] < "\x80" ? 1 : $ulenMask[$s[$i] & "\xF0"]; - $uchr = substr($s, $i, $ulen); + $ulen = $s[$i] < "" ? 1 : $ulenMask[$s[$i] & ""]; + $uchr = \substr($s, $i, $ulen); $i += $ulen; - if (isset($map[$uchr])) { $uchr = $map[$uchr]; $nlen = \strlen($uchr); - if ($nlen == $ulen) { $nlen = $i; do { $s[--$nlen] = $uchr[--$ulen]; } while ($ulen); } else { - $s = substr_replace($s, $uchr, $i - $ulen, $ulen); + $s = \substr_replace($s, $uchr, $i - $ulen, $ulen); $len += $nlen - $ulen; $i += $nlen - $ulen; } } } } - if (null === $encoding) { return $s; } - - return iconv('UTF-8', $encoding.'//IGNORE', $s); + return \iconv('UTF-8', $encoding . '//IGNORE', $s); } - public static function mb_internal_encoding($encoding = null) { if (null === $encoding) { return self::$internalEncoding; } - $encoding = self::getEncoding($encoding); - - if ('UTF-8' === $encoding || false !== @iconv($encoding, $encoding, ' ')) { + if ('UTF-8' === $encoding || \false !== @\iconv($encoding, $encoding, ' ')) { self::$internalEncoding = $encoding; - - return true; + return \true; } - - return false; + return \false; } - public static function mb_language($lang = null) { if (null === $lang) { return self::$language; } - - switch ($lang = strtolower($lang)) { + switch ($lang = \strtolower($lang)) { case 'uni': case 'neutral': self::$language = $lang; - - return true; + return \true; } - - return false; + return \false; } - public static function mb_list_encodings() { return array('UTF-8'); } - public static function mb_encoding_aliases($encoding) { - switch (strtoupper($encoding)) { + switch (\strtoupper($encoding)) { case 'UTF8': case 'UTF-8': return array('utf8'); } - - return false; + return \false; } - public static function mb_check_encoding($var = null, $encoding = null) { if (null === $encoding) { if (null === $var) { - return false; + return \false; } $encoding = self::$internalEncoding; } - - return self::mb_detect_encoding($var, array($encoding)) || false !== @iconv($encoding, $encoding, $var); + return self::mb_detect_encoding($var, array($encoding)) || \false !== @\iconv($encoding, $encoding, $var); } - - public static function mb_detect_encoding($str, $encodingList = null, $strict = false) + public static function mb_detect_encoding($str, $encodingList = null, $strict = \false) { if (null === $encodingList) { $encodingList = self::$encodingList; } else { if (!\is_array($encodingList)) { - $encodingList = array_map('trim', explode(',', $encodingList)); + $encodingList = \array_map('trim', \explode(',', $encodingList)); } - $encodingList = array_map('strtoupper', $encodingList); + $encodingList = \array_map('strtoupper', $encodingList); } - foreach ($encodingList as $enc) { switch ($enc) { case 'ASCII': - if (!preg_match('/[\x80-\xFF]/', $str)) { + if (!\preg_match('/[\\x80-\\xFF]/', $str)) { return $enc; } break; - case 'UTF8': case 'UTF-8': - if (preg_match('//u', $str)) { + if (\preg_match('//u', $str)) { return 'UTF-8'; } break; - default: - if (0 === strncmp($enc, 'ISO-8859-', 9)) { + if (0 === \strncmp($enc, 'ISO-8859-', 9)) { return $enc; } } } - - return false; + return \false; } - public static function mb_detect_order($encodingList = null) { if (null === $encodingList) { return self::$encodingList; } - if (!\is_array($encodingList)) { - $encodingList = array_map('trim', explode(',', $encodingList)); + $encodingList = \array_map('trim', \explode(',', $encodingList)); } - $encodingList = array_map('strtoupper', $encodingList); - + $encodingList = \array_map('strtoupper', $encodingList); foreach ($encodingList as $enc) { switch ($enc) { default: - if (strncmp($enc, 'ISO-8859-', 9)) { - return false; + if (\strncmp($enc, 'ISO-8859-', 9)) { + return \false; } - // no break + // no break case 'ASCII': case 'UTF8': case 'UTF-8': } } - self::$encodingList = $encodingList; - - return true; + return \true; } - public static function mb_strlen($s, $encoding = null) { $encoding = self::getEncoding($encoding); if ('CP850' === $encoding || 'ASCII' === $encoding) { return \strlen($s); } - - return @iconv_strlen($s, $encoding); + return @\iconv_strlen($s, $encoding); } - public static function mb_strpos($haystack, $needle, $offset = 0, $encoding = null) { $encoding = self::getEncoding($encoding); if ('CP850' === $encoding || 'ASCII' === $encoding) { - return strpos($haystack, $needle, $offset); + return \strpos($haystack, $needle, $offset); } - $needle = (string) $needle; if ('' === $needle) { - trigger_error(__METHOD__.': Empty delimiter', E_USER_WARNING); - - return false; + \trigger_error(__METHOD__ . ': Empty delimiter', \E_USER_WARNING); + return \false; } - - return iconv_strpos($haystack, $needle, $offset, $encoding); + return \iconv_strpos($haystack, $needle, $offset, $encoding); } - public static function mb_strrpos($haystack, $needle, $offset = 0, $encoding = null) { $encoding = self::getEncoding($encoding); if ('CP850' === $encoding || 'ASCII' === $encoding) { - return strrpos($haystack, $needle, $offset); + return \strrpos($haystack, $needle, $offset); } - if ($offset != (int) $offset) { $offset = 0; } elseif ($offset = (int) $offset) { if ($offset < 0) { - if (0 > $offset += self::mb_strlen($needle)) { + if (0 > ($offset += self::mb_strlen($needle))) { $haystack = self::mb_substr($haystack, 0, $offset, $encoding); } $offset = 0; @@ -520,328 +430,248 @@ final class Mbstring $haystack = self::mb_substr($haystack, $offset, 2147483647, $encoding); } } - - $pos = iconv_strrpos($haystack, $needle, $encoding); - - return false !== $pos ? $offset + $pos : false; + $pos = \iconv_strrpos($haystack, $needle, $encoding); + return \false !== $pos ? $offset + $pos : \false; } - public static function mb_str_split($string, $split_length = 1, $encoding = null) { if (null !== $string && !\is_scalar($string) && !(\is_object($string) && \method_exists($string, '__toString'))) { - trigger_error('mb_str_split() expects parameter 1 to be string, '.\gettype($string).' given', E_USER_WARNING); - + \trigger_error('mb_str_split() expects parameter 1 to be string, ' . \gettype($string) . ' given', \E_USER_WARNING); return null; } - - if (1 > $split_length = (int) $split_length) { - trigger_error('The length of each segment must be greater than zero', E_USER_WARNING); - - return false; + if (1 > ($split_length = (int) $split_length)) { + \trigger_error('The length of each segment must be greater than zero', \E_USER_WARNING); + return \false; } - if (null === $encoding) { - $encoding = mb_internal_encoding(); + $encoding = \mb_internal_encoding(); } - - if ('UTF-8' === $encoding = self::getEncoding($encoding)) { + if ('UTF-8' === ($encoding = self::getEncoding($encoding))) { $rx = '/('; while (65535 < $split_length) { $rx .= '.{65535}'; $split_length -= 65535; } - $rx .= '.{'.$split_length.'})/us'; - - return preg_split($rx, $string, null, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY); + $rx .= '.{' . $split_length . '})/us'; + return \preg_split($rx, $string, null, \PREG_SPLIT_DELIM_CAPTURE | \PREG_SPLIT_NO_EMPTY); } - $result = array(); - $length = mb_strlen($string, $encoding); - + $length = \mb_strlen($string, $encoding); for ($i = 0; $i < $length; $i += $split_length) { - $result[] = mb_substr($string, $i, $split_length, $encoding); + $result[] = \mb_substr($string, $i, $split_length, $encoding); } - return $result; } - public static function mb_strtolower($s, $encoding = null) { - return self::mb_convert_case($s, MB_CASE_LOWER, $encoding); + return self::mb_convert_case($s, \MB_CASE_LOWER, $encoding); } - public static function mb_strtoupper($s, $encoding = null) { - return self::mb_convert_case($s, MB_CASE_UPPER, $encoding); + return self::mb_convert_case($s, \MB_CASE_UPPER, $encoding); } - public static function mb_substitute_character($c = null) { - if (0 === strcasecmp($c, 'none')) { - return true; + if (0 === \strcasecmp($c, 'none')) { + return \true; } - - return null !== $c ? false : 'none'; + return null !== $c ? \false : 'none'; } - public static function mb_substr($s, $start, $length = null, $encoding = null) { $encoding = self::getEncoding($encoding); if ('CP850' === $encoding || 'ASCII' === $encoding) { - return (string) substr($s, $start, null === $length ? 2147483647 : $length); + return (string) \substr($s, $start, null === $length ? 2147483647 : $length); } - if ($start < 0) { - $start = iconv_strlen($s, $encoding) + $start; + $start = \iconv_strlen($s, $encoding) + $start; if ($start < 0) { $start = 0; } } - if (null === $length) { $length = 2147483647; } elseif ($length < 0) { - $length = iconv_strlen($s, $encoding) + $length - $start; + $length = \iconv_strlen($s, $encoding) + $length - $start; if ($length < 0) { return ''; } } - - return (string) iconv_substr($s, $start, $length, $encoding); + return (string) \iconv_substr($s, $start, $length, $encoding); } - public static function mb_stripos($haystack, $needle, $offset = 0, $encoding = null) { $haystack = self::mb_convert_case($haystack, self::MB_CASE_FOLD, $encoding); $needle = self::mb_convert_case($needle, self::MB_CASE_FOLD, $encoding); - return self::mb_strpos($haystack, $needle, $offset, $encoding); } - - public static function mb_stristr($haystack, $needle, $part = false, $encoding = null) + public static function mb_stristr($haystack, $needle, $part = \false, $encoding = null) { $pos = self::mb_stripos($haystack, $needle, 0, $encoding); - return self::getSubpart($pos, $part, $haystack, $encoding); } - - public static function mb_strrchr($haystack, $needle, $part = false, $encoding = null) + public static function mb_strrchr($haystack, $needle, $part = \false, $encoding = null) { $encoding = self::getEncoding($encoding); if ('CP850' === $encoding || 'ASCII' === $encoding) { - return strrchr($haystack, $needle, $part); + return \strrchr($haystack, $needle, $part); } $needle = self::mb_substr($needle, 0, 1, $encoding); - $pos = iconv_strrpos($haystack, $needle, $encoding); - + $pos = \iconv_strrpos($haystack, $needle, $encoding); return self::getSubpart($pos, $part, $haystack, $encoding); } - - public static function mb_strrichr($haystack, $needle, $part = false, $encoding = null) + public static function mb_strrichr($haystack, $needle, $part = \false, $encoding = null) { $needle = self::mb_substr($needle, 0, 1, $encoding); $pos = self::mb_strripos($haystack, $needle, $encoding); - return self::getSubpart($pos, $part, $haystack, $encoding); } - public static function mb_strripos($haystack, $needle, $offset = 0, $encoding = null) { $haystack = self::mb_convert_case($haystack, self::MB_CASE_FOLD, $encoding); $needle = self::mb_convert_case($needle, self::MB_CASE_FOLD, $encoding); - return self::mb_strrpos($haystack, $needle, $offset, $encoding); } - - public static function mb_strstr($haystack, $needle, $part = false, $encoding = null) + public static function mb_strstr($haystack, $needle, $part = \false, $encoding = null) { - $pos = strpos($haystack, $needle); - if (false === $pos) { - return false; + $pos = \strpos($haystack, $needle); + if (\false === $pos) { + return \false; } if ($part) { - return substr($haystack, 0, $pos); + return \substr($haystack, 0, $pos); } - - return substr($haystack, $pos); + return \substr($haystack, $pos); } - public static function mb_get_info($type = 'all') { - $info = array( - 'internal_encoding' => self::$internalEncoding, - 'http_output' => 'pass', - 'http_output_conv_mimetypes' => '^(text/|application/xhtml\+xml)', - 'func_overload' => 0, - 'func_overload_list' => 'no overload', - 'mail_charset' => 'UTF-8', - 'mail_header_encoding' => 'BASE64', - 'mail_body_encoding' => 'BASE64', - 'illegal_chars' => 0, - 'encoding_translation' => 'Off', - 'language' => self::$language, - 'detect_order' => self::$encodingList, - 'substitute_character' => 'none', - 'strict_detection' => 'Off', - ); - + $info = array('internal_encoding' => self::$internalEncoding, 'http_output' => 'pass', 'http_output_conv_mimetypes' => '^(text/|application/xhtml\\+xml)', 'func_overload' => 0, 'func_overload_list' => 'no overload', 'mail_charset' => 'UTF-8', 'mail_header_encoding' => 'BASE64', 'mail_body_encoding' => 'BASE64', 'illegal_chars' => 0, 'encoding_translation' => 'Off', 'language' => self::$language, 'detect_order' => self::$encodingList, 'substitute_character' => 'none', 'strict_detection' => 'Off'); if ('all' === $type) { return $info; } if (isset($info[$type])) { return $info[$type]; } - - return false; + return \false; } - public static function mb_http_input($type = '') { - return false; + return \false; } - public static function mb_http_output($encoding = null) { return null !== $encoding ? 'pass' === $encoding : 'pass'; } - public static function mb_strwidth($s, $encoding = null) { $encoding = self::getEncoding($encoding); - if ('UTF-8' !== $encoding) { - $s = iconv($encoding, 'UTF-8//IGNORE', $s); + $s = \iconv($encoding, 'UTF-8//IGNORE', $s); } - - $s = preg_replace('/[\x{1100}-\x{115F}\x{2329}\x{232A}\x{2E80}-\x{303E}\x{3040}-\x{A4CF}\x{AC00}-\x{D7A3}\x{F900}-\x{FAFF}\x{FE10}-\x{FE19}\x{FE30}-\x{FE6F}\x{FF00}-\x{FF60}\x{FFE0}-\x{FFE6}\x{20000}-\x{2FFFD}\x{30000}-\x{3FFFD}]/u', '', $s, -1, $wide); - - return ($wide << 1) + iconv_strlen($s, 'UTF-8'); + $s = \preg_replace('/[\\x{1100}-\\x{115F}\\x{2329}\\x{232A}\\x{2E80}-\\x{303E}\\x{3040}-\\x{A4CF}\\x{AC00}-\\x{D7A3}\\x{F900}-\\x{FAFF}\\x{FE10}-\\x{FE19}\\x{FE30}-\\x{FE6F}\\x{FF00}-\\x{FF60}\\x{FFE0}-\\x{FFE6}\\x{20000}-\\x{2FFFD}\\x{30000}-\\x{3FFFD}]/u', '', $s, -1, $wide); + return ($wide << 1) + \iconv_strlen($s, 'UTF-8'); } - public static function mb_substr_count($haystack, $needle, $encoding = null) { - return substr_count($haystack, $needle); + return \substr_count($haystack, $needle); } - public static function mb_output_handler($contents, $status) { return $contents; } - public static function mb_chr($code, $encoding = null) { - if (0x80 > $code %= 0x200000) { + if (0x80 > ($code %= 0x200000)) { $s = \chr($code); } elseif (0x800 > $code) { - $s = \chr(0xC0 | $code >> 6).\chr(0x80 | $code & 0x3F); + $s = \chr(0xc0 | $code >> 6) . \chr(0x80 | $code & 0x3f); } elseif (0x10000 > $code) { - $s = \chr(0xE0 | $code >> 12).\chr(0x80 | $code >> 6 & 0x3F).\chr(0x80 | $code & 0x3F); + $s = \chr(0xe0 | $code >> 12) . \chr(0x80 | $code >> 6 & 0x3f) . \chr(0x80 | $code & 0x3f); } else { - $s = \chr(0xF0 | $code >> 18).\chr(0x80 | $code >> 12 & 0x3F).\chr(0x80 | $code >> 6 & 0x3F).\chr(0x80 | $code & 0x3F); + $s = \chr(0xf0 | $code >> 18) . \chr(0x80 | $code >> 12 & 0x3f) . \chr(0x80 | $code >> 6 & 0x3f) . \chr(0x80 | $code & 0x3f); } - - if ('UTF-8' !== $encoding = self::getEncoding($encoding)) { - $s = mb_convert_encoding($s, $encoding, 'UTF-8'); + if ('UTF-8' !== ($encoding = self::getEncoding($encoding))) { + $s = \mb_convert_encoding($s, $encoding, 'UTF-8'); } - return $s; } - public static function mb_ord($s, $encoding = null) { - if ('UTF-8' !== $encoding = self::getEncoding($encoding)) { - $s = mb_convert_encoding($s, 'UTF-8', $encoding); + if ('UTF-8' !== ($encoding = self::getEncoding($encoding))) { + $s = \mb_convert_encoding($s, 'UTF-8', $encoding); } - if (1 === \strlen($s)) { return \ord($s); } - - $code = ($s = unpack('C*', substr($s, 0, 4))) ? $s[1] : 0; - if (0xF0 <= $code) { - return (($code - 0xF0) << 18) + (($s[2] - 0x80) << 12) + (($s[3] - 0x80) << 6) + $s[4] - 0x80; + $code = ($s = \unpack('C*', \substr($s, 0, 4))) ? $s[1] : 0; + if (0xf0 <= $code) { + return ($code - 0xf0 << 18) + ($s[2] - 0x80 << 12) + ($s[3] - 0x80 << 6) + $s[4] - 0x80; } - if (0xE0 <= $code) { - return (($code - 0xE0) << 12) + (($s[2] - 0x80) << 6) + $s[3] - 0x80; + if (0xe0 <= $code) { + return ($code - 0xe0 << 12) + ($s[2] - 0x80 << 6) + $s[3] - 0x80; } - if (0xC0 <= $code) { - return (($code - 0xC0) << 6) + $s[2] - 0x80; + if (0xc0 <= $code) { + return ($code - 0xc0 << 6) + $s[2] - 0x80; } - return $code; } - private static function getSubpart($pos, $part, $haystack, $encoding) { - if (false === $pos) { - return false; + if (\false === $pos) { + return \false; } if ($part) { return self::mb_substr($haystack, 0, $pos, $encoding); } - return self::mb_substr($haystack, $pos, null, $encoding); } - private static function html_encoding_callback(array $m) { $i = 1; $entities = ''; - $m = unpack('C*', htmlentities($m[0], ENT_COMPAT, 'UTF-8')); - + $m = \unpack('C*', \htmlentities($m[0], \ENT_COMPAT, 'UTF-8')); while (isset($m[$i])) { if (0x80 > $m[$i]) { $entities .= \chr($m[$i++]); continue; } - if (0xF0 <= $m[$i]) { - $c = (($m[$i++] - 0xF0) << 18) + (($m[$i++] - 0x80) << 12) + (($m[$i++] - 0x80) << 6) + $m[$i++] - 0x80; - } elseif (0xE0 <= $m[$i]) { - $c = (($m[$i++] - 0xE0) << 12) + (($m[$i++] - 0x80) << 6) + $m[$i++] - 0x80; + if (0xf0 <= $m[$i]) { + $c = ($m[$i++] - 0xf0 << 18) + ($m[$i++] - 0x80 << 12) + ($m[$i++] - 0x80 << 6) + $m[$i++] - 0x80; + } elseif (0xe0 <= $m[$i]) { + $c = ($m[$i++] - 0xe0 << 12) + ($m[$i++] - 0x80 << 6) + $m[$i++] - 0x80; } else { - $c = (($m[$i++] - 0xC0) << 6) + $m[$i++] - 0x80; + $c = ($m[$i++] - 0xc0 << 6) + $m[$i++] - 0x80; } - - $entities .= '&#'.$c.';'; + $entities .= '&#' . $c . ';'; } - return $entities; } - private static function title_case(array $s) { - return self::mb_convert_case($s[1], MB_CASE_UPPER, 'UTF-8').self::mb_convert_case($s[2], MB_CASE_LOWER, 'UTF-8'); + return self::mb_convert_case($s[1], \MB_CASE_UPPER, 'UTF-8') . self::mb_convert_case($s[2], \MB_CASE_LOWER, 'UTF-8'); } - private static function getData($file) { - if (file_exists($file = __DIR__.'/Resources/unidata/'.$file.'.php')) { + if (\file_exists($file = __DIR__ . '/Resources/unidata/' . $file . '.php')) { return require $file; } - - return false; + return \false; } - private static function getEncoding($encoding) { if (null === $encoding) { return self::$internalEncoding; } - if ('UTF-8' === $encoding) { return 'UTF-8'; } - - $encoding = strtoupper($encoding); - + $encoding = \strtoupper($encoding); if ('8BIT' === $encoding || 'BINARY' === $encoding) { return 'CP850'; } - if ('UTF8' === $encoding) { return 'UTF-8'; } - return $encoding; } } diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php new file mode 100644 index 0000000..5b9b2ba --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php @@ -0,0 +1,5 @@ + 'a', 'B' => 'b', 'C' => 'c', 'D' => 'd', 'E' => 'e', 'F' => 'f', 'G' => 'g', 'H' => 'h', 'I' => 'i', 'J' => 'j', 'K' => 'k', 'L' => 'l', 'M' => 'm', 'N' => 'n', 'O' => 'o', 'P' => 'p', 'Q' => 'q', 'R' => 'r', 'S' => 's', 'T' => 't', 'U' => 'u', 'V' => 'v', 'W' => 'w', 'X' => 'x', 'Y' => 'y', 'Z' => 'z', 'À' => 'à', 'Á' => 'á', 'Â' => 'â', 'Ã' => 'ã', 'Ä' => 'ä', 'Å' => 'å', 'Æ' => 'æ', 'Ç' => 'ç', 'È' => 'è', 'É' => 'é', 'Ê' => 'ê', 'Ë' => 'ë', 'Ì' => 'ì', 'Í' => 'í', 'Î' => 'î', 'Ï' => 'ï', 'Ð' => 'ð', 'Ñ' => 'ñ', 'Ò' => 'ò', 'Ó' => 'ó', 'Ô' => 'ô', 'Õ' => 'õ', 'Ö' => 'ö', 'Ø' => 'ø', 'Ù' => 'ù', 'Ú' => 'ú', 'Û' => 'û', 'Ü' => 'ü', 'Ý' => 'ý', 'Þ' => 'þ', 'Ā' => 'ā', 'Ă' => 'ă', 'Ą' => 'ą', 'Ć' => 'ć', 'Ĉ' => 'ĉ', 'Ċ' => 'ċ', 'Č' => 'č', 'Ď' => 'ď', 'Đ' => 'đ', 'Ē' => 'ē', 'Ĕ' => 'ĕ', 'Ė' => 'ė', 'Ę' => 'ę', 'Ě' => 'ě', 'Ĝ' => 'ĝ', 'Ğ' => 'ğ', 'Ġ' => 'ġ', 'Ģ' => 'ģ', 'Ĥ' => 'ĥ', 'Ħ' => 'ħ', 'Ĩ' => 'ĩ', 'Ī' => 'ī', 'Ĭ' => 'ĭ', 'Į' => 'į', 'İ' => 'i', 'IJ' => 'ij', 'Ĵ' => 'ĵ', 'Ķ' => 'ķ', 'Ĺ' => 'ĺ', 'Ļ' => 'ļ', 'Ľ' => 'ľ', 'Ŀ' => 'ŀ', 'Ł' => 'ł', 'Ń' => 'ń', 'Ņ' => 'ņ', 'Ň' => 'ň', 'Ŋ' => 'ŋ', 'Ō' => 'ō', 'Ŏ' => 'ŏ', 'Ő' => 'ő', 'Œ' => 'œ', 'Ŕ' => 'ŕ', 'Ŗ' => 'ŗ', 'Ř' => 'ř', 'Ś' => 'ś', 'Ŝ' => 'ŝ', 'Ş' => 'ş', 'Š' => 'š', 'Ţ' => 'ţ', 'Ť' => 'ť', 'Ŧ' => 'ŧ', 'Ũ' => 'ũ', 'Ū' => 'ū', 'Ŭ' => 'ŭ', 'Ů' => 'ů', 'Ű' => 'ű', 'Ų' => 'ų', 'Ŵ' => 'ŵ', 'Ŷ' => 'ŷ', 'Ÿ' => 'ÿ', 'Ź' => 'ź', 'Ż' => 'ż', 'Ž' => 'ž', 'Ɓ' => 'ɓ', 'Ƃ' => 'ƃ', 'Ƅ' => 'ƅ', 'Ɔ' => 'ɔ', 'Ƈ' => 'ƈ', 'Ɖ' => 'ɖ', 'Ɗ' => 'ɗ', 'Ƌ' => 'ƌ', 'Ǝ' => 'ǝ', 'Ə' => 'ə', 'Ɛ' => 'ɛ', 'Ƒ' => 'ƒ', 'Ɠ' => 'ɠ', 'Ɣ' => 'ɣ', 'Ɩ' => 'ɩ', 'Ɨ' => 'ɨ', 'Ƙ' => 'ƙ', 'Ɯ' => 'ɯ', 'Ɲ' => 'ɲ', 'Ɵ' => 'ɵ', 'Ơ' => 'ơ', 'Ƣ' => 'ƣ', 'Ƥ' => 'ƥ', 'Ʀ' => 'ʀ', 'Ƨ' => 'ƨ', 'Ʃ' => 'ʃ', 'Ƭ' => 'ƭ', 'Ʈ' => 'ʈ', 'Ư' => 'ư', 'Ʊ' => 'ʊ', 'Ʋ' => 'ʋ', 'Ƴ' => 'ƴ', 'Ƶ' => 'ƶ', 'Ʒ' => 'ʒ', 'Ƹ' => 'ƹ', 'Ƽ' => 'ƽ', 'DŽ' => 'dž', 'Dž' => 'dž', 'LJ' => 'lj', 'Lj' => 'lj', 'NJ' => 'nj', 'Nj' => 'nj', 'Ǎ' => 'ǎ', 'Ǐ' => 'ǐ', 'Ǒ' => 'ǒ', 'Ǔ' => 'ǔ', 'Ǖ' => 'ǖ', 'Ǘ' => 'ǘ', 'Ǚ' => 'ǚ', 'Ǜ' => 'ǜ', 'Ǟ' => 'ǟ', 'Ǡ' => 'ǡ', 'Ǣ' => 'ǣ', 'Ǥ' => 'ǥ', 'Ǧ' => 'ǧ', 'Ǩ' => 'ǩ', 'Ǫ' => 'ǫ', 'Ǭ' => 'ǭ', 'Ǯ' => 'ǯ', 'DZ' => 'dz', 'Dz' => 'dz', 'Ǵ' => 'ǵ', 'Ƕ' => 'ƕ', 'Ƿ' => 'ƿ', 'Ǹ' => 'ǹ', 'Ǻ' => 'ǻ', 'Ǽ' => 'ǽ', 'Ǿ' => 'ǿ', 'Ȁ' => 'ȁ', 'Ȃ' => 'ȃ', 'Ȅ' => 'ȅ', 'Ȇ' => 'ȇ', 'Ȉ' => 'ȉ', 'Ȋ' => 'ȋ', 'Ȍ' => 'ȍ', 'Ȏ' => 'ȏ', 'Ȑ' => 'ȑ', 'Ȓ' => 'ȓ', 'Ȕ' => 'ȕ', 'Ȗ' => 'ȗ', 'Ș' => 'ș', 'Ț' => 'ț', 'Ȝ' => 'ȝ', 'Ȟ' => 'ȟ', 'Ƞ' => 'ƞ', 'Ȣ' => 'ȣ', 'Ȥ' => 'ȥ', 'Ȧ' => 'ȧ', 'Ȩ' => 'ȩ', 'Ȫ' => 'ȫ', 'Ȭ' => 'ȭ', 'Ȯ' => 'ȯ', 'Ȱ' => 'ȱ', 'Ȳ' => 'ȳ', 'Ⱥ' => 'ⱥ', 'Ȼ' => 'ȼ', 'Ƚ' => 'ƚ', 'Ⱦ' => 'ⱦ', 'Ɂ' => 'ɂ', 'Ƀ' => 'ƀ', 'Ʉ' => 'ʉ', 'Ʌ' => 'ʌ', 'Ɇ' => 'ɇ', 'Ɉ' => 'ɉ', 'Ɋ' => 'ɋ', 'Ɍ' => 'ɍ', 'Ɏ' => 'ɏ', 'Ͱ' => 'ͱ', 'Ͳ' => 'ͳ', 'Ͷ' => 'ͷ', 'Ϳ' => 'ϳ', 'Ά' => 'ά', 'Έ' => 'έ', 'Ή' => 'ή', 'Ί' => 'ί', 'Ό' => 'ό', 'Ύ' => 'ύ', 'Ώ' => 'ώ', 'Α' => 'α', 'Β' => 'β', 'Γ' => 'γ', 'Δ' => 'δ', 'Ε' => 'ε', 'Ζ' => 'ζ', 'Η' => 'η', 'Θ' => 'θ', 'Ι' => 'ι', 'Κ' => 'κ', 'Λ' => 'λ', 'Μ' => 'μ', 'Ν' => 'ν', 'Ξ' => 'ξ', 'Ο' => 'ο', 'Π' => 'π', 'Ρ' => 'ρ', 'Σ' => 'σ', 'Τ' => 'τ', 'Υ' => 'υ', 'Φ' => 'φ', 'Χ' => 'χ', 'Ψ' => 'ψ', 'Ω' => 'ω', 'Ϊ' => 'ϊ', 'Ϋ' => 'ϋ', 'Ϗ' => 'ϗ', 'Ϙ' => 'ϙ', 'Ϛ' => 'ϛ', 'Ϝ' => 'ϝ', 'Ϟ' => 'ϟ', 'Ϡ' => 'ϡ', 'Ϣ' => 'ϣ', 'Ϥ' => 'ϥ', 'Ϧ' => 'ϧ', 'Ϩ' => 'ϩ', 'Ϫ' => 'ϫ', 'Ϭ' => 'ϭ', 'Ϯ' => 'ϯ', 'ϴ' => 'θ', 'Ϸ' => 'ϸ', 'Ϲ' => 'ϲ', 'Ϻ' => 'ϻ', 'Ͻ' => 'ͻ', 'Ͼ' => 'ͼ', 'Ͽ' => 'ͽ', 'Ѐ' => 'ѐ', 'Ё' => 'ё', 'Ђ' => 'ђ', 'Ѓ' => 'ѓ', 'Є' => 'є', 'Ѕ' => 'ѕ', 'І' => 'і', 'Ї' => 'ї', 'Ј' => 'ј', 'Љ' => 'љ', 'Њ' => 'њ', 'Ћ' => 'ћ', 'Ќ' => 'ќ', 'Ѝ' => 'ѝ', 'Ў' => 'ў', 'Џ' => 'џ', 'А' => 'а', 'Б' => 'б', 'В' => 'в', 'Г' => 'г', 'Д' => 'д', 'Е' => 'е', 'Ж' => 'ж', 'З' => 'з', 'И' => 'и', 'Й' => 'й', 'К' => 'к', 'Л' => 'л', 'М' => 'м', 'Н' => 'н', 'О' => 'о', 'П' => 'п', 'Р' => 'р', 'С' => 'с', 'Т' => 'т', 'У' => 'у', 'Ф' => 'ф', 'Х' => 'х', 'Ц' => 'ц', 'Ч' => 'ч', 'Ш' => 'ш', 'Щ' => 'щ', 'Ъ' => 'ъ', 'Ы' => 'ы', 'Ь' => 'ь', 'Э' => 'э', 'Ю' => 'ю', 'Я' => 'я', 'Ѡ' => 'ѡ', 'Ѣ' => 'ѣ', 'Ѥ' => 'ѥ', 'Ѧ' => 'ѧ', 'Ѩ' => 'ѩ', 'Ѫ' => 'ѫ', 'Ѭ' => 'ѭ', 'Ѯ' => 'ѯ', 'Ѱ' => 'ѱ', 'Ѳ' => 'ѳ', 'Ѵ' => 'ѵ', 'Ѷ' => 'ѷ', 'Ѹ' => 'ѹ', 'Ѻ' => 'ѻ', 'Ѽ' => 'ѽ', 'Ѿ' => 'ѿ', 'Ҁ' => 'ҁ', 'Ҋ' => 'ҋ', 'Ҍ' => 'ҍ', 'Ҏ' => 'ҏ', 'Ґ' => 'ґ', 'Ғ' => 'ғ', 'Ҕ' => 'ҕ', 'Җ' => 'җ', 'Ҙ' => 'ҙ', 'Қ' => 'қ', 'Ҝ' => 'ҝ', 'Ҟ' => 'ҟ', 'Ҡ' => 'ҡ', 'Ң' => 'ң', 'Ҥ' => 'ҥ', 'Ҧ' => 'ҧ', 'Ҩ' => 'ҩ', 'Ҫ' => 'ҫ', 'Ҭ' => 'ҭ', 'Ү' => 'ү', 'Ұ' => 'ұ', 'Ҳ' => 'ҳ', 'Ҵ' => 'ҵ', 'Ҷ' => 'ҷ', 'Ҹ' => 'ҹ', 'Һ' => 'һ', 'Ҽ' => 'ҽ', 'Ҿ' => 'ҿ', 'Ӏ' => 'ӏ', 'Ӂ' => 'ӂ', 'Ӄ' => 'ӄ', 'Ӆ' => 'ӆ', 'Ӈ' => 'ӈ', 'Ӊ' => 'ӊ', 'Ӌ' => 'ӌ', 'Ӎ' => 'ӎ', 'Ӑ' => 'ӑ', 'Ӓ' => 'ӓ', 'Ӕ' => 'ӕ', 'Ӗ' => 'ӗ', 'Ә' => 'ә', 'Ӛ' => 'ӛ', 'Ӝ' => 'ӝ', 'Ӟ' => 'ӟ', 'Ӡ' => 'ӡ', 'Ӣ' => 'ӣ', 'Ӥ' => 'ӥ', 'Ӧ' => 'ӧ', 'Ө' => 'ө', 'Ӫ' => 'ӫ', 'Ӭ' => 'ӭ', 'Ӯ' => 'ӯ', 'Ӱ' => 'ӱ', 'Ӳ' => 'ӳ', 'Ӵ' => 'ӵ', 'Ӷ' => 'ӷ', 'Ӹ' => 'ӹ', 'Ӻ' => 'ӻ', 'Ӽ' => 'ӽ', 'Ӿ' => 'ӿ', 'Ԁ' => 'ԁ', 'Ԃ' => 'ԃ', 'Ԅ' => 'ԅ', 'Ԇ' => 'ԇ', 'Ԉ' => 'ԉ', 'Ԋ' => 'ԋ', 'Ԍ' => 'ԍ', 'Ԏ' => 'ԏ', 'Ԑ' => 'ԑ', 'Ԓ' => 'ԓ', 'Ԕ' => 'ԕ', 'Ԗ' => 'ԗ', 'Ԙ' => 'ԙ', 'Ԛ' => 'ԛ', 'Ԝ' => 'ԝ', 'Ԟ' => 'ԟ', 'Ԡ' => 'ԡ', 'Ԣ' => 'ԣ', 'Ԥ' => 'ԥ', 'Ԧ' => 'ԧ', 'Ԩ' => 'ԩ', 'Ԫ' => 'ԫ', 'Ԭ' => 'ԭ', 'Ԯ' => 'ԯ', 'Ա' => 'ա', 'Բ' => 'բ', 'Գ' => 'գ', 'Դ' => 'դ', 'Ե' => 'ե', 'Զ' => 'զ', 'Է' => 'է', 'Ը' => 'ը', 'Թ' => 'թ', 'Ժ' => 'ժ', 'Ի' => 'ի', 'Լ' => 'լ', 'Խ' => 'խ', 'Ծ' => 'ծ', 'Կ' => 'կ', 'Հ' => 'հ', 'Ձ' => 'ձ', 'Ղ' => 'ղ', 'Ճ' => 'ճ', 'Մ' => 'մ', 'Յ' => 'յ', 'Ն' => 'ն', 'Շ' => 'շ', 'Ո' => 'ո', 'Չ' => 'չ', 'Պ' => 'պ', 'Ջ' => 'ջ', 'Ռ' => 'ռ', 'Ս' => 'ս', 'Վ' => 'վ', 'Տ' => 'տ', 'Ր' => 'ր', 'Ց' => 'ց', 'Ւ' => 'ւ', 'Փ' => 'փ', 'Ք' => 'ք', 'Օ' => 'օ', 'Ֆ' => 'ֆ', 'Ⴀ' => 'ⴀ', 'Ⴁ' => 'ⴁ', 'Ⴂ' => 'ⴂ', 'Ⴃ' => 'ⴃ', 'Ⴄ' => 'ⴄ', 'Ⴅ' => 'ⴅ', 'Ⴆ' => 'ⴆ', 'Ⴇ' => 'ⴇ', 'Ⴈ' => 'ⴈ', 'Ⴉ' => 'ⴉ', 'Ⴊ' => 'ⴊ', 'Ⴋ' => 'ⴋ', 'Ⴌ' => 'ⴌ', 'Ⴍ' => 'ⴍ', 'Ⴎ' => 'ⴎ', 'Ⴏ' => 'ⴏ', 'Ⴐ' => 'ⴐ', 'Ⴑ' => 'ⴑ', 'Ⴒ' => 'ⴒ', 'Ⴓ' => 'ⴓ', 'Ⴔ' => 'ⴔ', 'Ⴕ' => 'ⴕ', 'Ⴖ' => 'ⴖ', 'Ⴗ' => 'ⴗ', 'Ⴘ' => 'ⴘ', 'Ⴙ' => 'ⴙ', 'Ⴚ' => 'ⴚ', 'Ⴛ' => 'ⴛ', 'Ⴜ' => 'ⴜ', 'Ⴝ' => 'ⴝ', 'Ⴞ' => 'ⴞ', 'Ⴟ' => 'ⴟ', 'Ⴠ' => 'ⴠ', 'Ⴡ' => 'ⴡ', 'Ⴢ' => 'ⴢ', 'Ⴣ' => 'ⴣ', 'Ⴤ' => 'ⴤ', 'Ⴥ' => 'ⴥ', 'Ⴧ' => 'ⴧ', 'Ⴭ' => 'ⴭ', 'Ꭰ' => 'ꭰ', 'Ꭱ' => 'ꭱ', 'Ꭲ' => 'ꭲ', 'Ꭳ' => 'ꭳ', 'Ꭴ' => 'ꭴ', 'Ꭵ' => 'ꭵ', 'Ꭶ' => 'ꭶ', 'Ꭷ' => 'ꭷ', 'Ꭸ' => 'ꭸ', 'Ꭹ' => 'ꭹ', 'Ꭺ' => 'ꭺ', 'Ꭻ' => 'ꭻ', 'Ꭼ' => 'ꭼ', 'Ꭽ' => 'ꭽ', 'Ꭾ' => 'ꭾ', 'Ꭿ' => 'ꭿ', 'Ꮀ' => 'ꮀ', 'Ꮁ' => 'ꮁ', 'Ꮂ' => 'ꮂ', 'Ꮃ' => 'ꮃ', 'Ꮄ' => 'ꮄ', 'Ꮅ' => 'ꮅ', 'Ꮆ' => 'ꮆ', 'Ꮇ' => 'ꮇ', 'Ꮈ' => 'ꮈ', 'Ꮉ' => 'ꮉ', 'Ꮊ' => 'ꮊ', 'Ꮋ' => 'ꮋ', 'Ꮌ' => 'ꮌ', 'Ꮍ' => 'ꮍ', 'Ꮎ' => 'ꮎ', 'Ꮏ' => 'ꮏ', 'Ꮐ' => 'ꮐ', 'Ꮑ' => 'ꮑ', 'Ꮒ' => 'ꮒ', 'Ꮓ' => 'ꮓ', 'Ꮔ' => 'ꮔ', 'Ꮕ' => 'ꮕ', 'Ꮖ' => 'ꮖ', 'Ꮗ' => 'ꮗ', 'Ꮘ' => 'ꮘ', 'Ꮙ' => 'ꮙ', 'Ꮚ' => 'ꮚ', 'Ꮛ' => 'ꮛ', 'Ꮜ' => 'ꮜ', 'Ꮝ' => 'ꮝ', 'Ꮞ' => 'ꮞ', 'Ꮟ' => 'ꮟ', 'Ꮠ' => 'ꮠ', 'Ꮡ' => 'ꮡ', 'Ꮢ' => 'ꮢ', 'Ꮣ' => 'ꮣ', 'Ꮤ' => 'ꮤ', 'Ꮥ' => 'ꮥ', 'Ꮦ' => 'ꮦ', 'Ꮧ' => 'ꮧ', 'Ꮨ' => 'ꮨ', 'Ꮩ' => 'ꮩ', 'Ꮪ' => 'ꮪ', 'Ꮫ' => 'ꮫ', 'Ꮬ' => 'ꮬ', 'Ꮭ' => 'ꮭ', 'Ꮮ' => 'ꮮ', 'Ꮯ' => 'ꮯ', 'Ꮰ' => 'ꮰ', 'Ꮱ' => 'ꮱ', 'Ꮲ' => 'ꮲ', 'Ꮳ' => 'ꮳ', 'Ꮴ' => 'ꮴ', 'Ꮵ' => 'ꮵ', 'Ꮶ' => 'ꮶ', 'Ꮷ' => 'ꮷ', 'Ꮸ' => 'ꮸ', 'Ꮹ' => 'ꮹ', 'Ꮺ' => 'ꮺ', 'Ꮻ' => 'ꮻ', 'Ꮼ' => 'ꮼ', 'Ꮽ' => 'ꮽ', 'Ꮾ' => 'ꮾ', 'Ꮿ' => 'ꮿ', 'Ᏸ' => 'ᏸ', 'Ᏹ' => 'ᏹ', 'Ᏺ' => 'ᏺ', 'Ᏻ' => 'ᏻ', 'Ᏼ' => 'ᏼ', 'Ᏽ' => 'ᏽ', 'Ა' => 'ა', 'Ბ' => 'ბ', 'Გ' => 'გ', 'Დ' => 'დ', 'Ე' => 'ე', 'Ვ' => 'ვ', 'Ზ' => 'ზ', 'Თ' => 'თ', 'Ი' => 'ი', 'Კ' => 'კ', 'Ლ' => 'ლ', 'Მ' => 'მ', 'Ნ' => 'ნ', 'Ო' => 'ო', 'Პ' => 'პ', 'Ჟ' => 'ჟ', 'Რ' => 'რ', 'Ს' => 'ს', 'Ტ' => 'ტ', 'Უ' => 'უ', 'Ფ' => 'ფ', 'Ქ' => 'ქ', 'Ღ' => 'ღ', 'Ყ' => 'ყ', 'Შ' => 'შ', 'Ჩ' => 'ჩ', 'Ც' => 'ც', 'Ძ' => 'ძ', 'Წ' => 'წ', 'Ჭ' => 'ჭ', 'Ხ' => 'ხ', 'Ჯ' => 'ჯ', 'Ჰ' => 'ჰ', 'Ჱ' => 'ჱ', 'Ჲ' => 'ჲ', 'Ჳ' => 'ჳ', 'Ჴ' => 'ჴ', 'Ჵ' => 'ჵ', 'Ჶ' => 'ჶ', 'Ჷ' => 'ჷ', 'Ჸ' => 'ჸ', 'Ჹ' => 'ჹ', 'Ჺ' => 'ჺ', 'Ჽ' => 'ჽ', 'Ჾ' => 'ჾ', 'Ჿ' => 'ჿ', 'Ḁ' => 'ḁ', 'Ḃ' => 'ḃ', 'Ḅ' => 'ḅ', 'Ḇ' => 'ḇ', 'Ḉ' => 'ḉ', 'Ḋ' => 'ḋ', 'Ḍ' => 'ḍ', 'Ḏ' => 'ḏ', 'Ḑ' => 'ḑ', 'Ḓ' => 'ḓ', 'Ḕ' => 'ḕ', 'Ḗ' => 'ḗ', 'Ḙ' => 'ḙ', 'Ḛ' => 'ḛ', 'Ḝ' => 'ḝ', 'Ḟ' => 'ḟ', 'Ḡ' => 'ḡ', 'Ḣ' => 'ḣ', 'Ḥ' => 'ḥ', 'Ḧ' => 'ḧ', 'Ḩ' => 'ḩ', 'Ḫ' => 'ḫ', 'Ḭ' => 'ḭ', 'Ḯ' => 'ḯ', 'Ḱ' => 'ḱ', 'Ḳ' => 'ḳ', 'Ḵ' => 'ḵ', 'Ḷ' => 'ḷ', 'Ḹ' => 'ḹ', 'Ḻ' => 'ḻ', 'Ḽ' => 'ḽ', 'Ḿ' => 'ḿ', 'Ṁ' => 'ṁ', 'Ṃ' => 'ṃ', 'Ṅ' => 'ṅ', 'Ṇ' => 'ṇ', 'Ṉ' => 'ṉ', 'Ṋ' => 'ṋ', 'Ṍ' => 'ṍ', 'Ṏ' => 'ṏ', 'Ṑ' => 'ṑ', 'Ṓ' => 'ṓ', 'Ṕ' => 'ṕ', 'Ṗ' => 'ṗ', 'Ṙ' => 'ṙ', 'Ṛ' => 'ṛ', 'Ṝ' => 'ṝ', 'Ṟ' => 'ṟ', 'Ṡ' => 'ṡ', 'Ṣ' => 'ṣ', 'Ṥ' => 'ṥ', 'Ṧ' => 'ṧ', 'Ṩ' => 'ṩ', 'Ṫ' => 'ṫ', 'Ṭ' => 'ṭ', 'Ṯ' => 'ṯ', 'Ṱ' => 'ṱ', 'Ṳ' => 'ṳ', 'Ṵ' => 'ṵ', 'Ṷ' => 'ṷ', 'Ṹ' => 'ṹ', 'Ṻ' => 'ṻ', 'Ṽ' => 'ṽ', 'Ṿ' => 'ṿ', 'Ẁ' => 'ẁ', 'Ẃ' => 'ẃ', 'Ẅ' => 'ẅ', 'Ẇ' => 'ẇ', 'Ẉ' => 'ẉ', 'Ẋ' => 'ẋ', 'Ẍ' => 'ẍ', 'Ẏ' => 'ẏ', 'Ẑ' => 'ẑ', 'Ẓ' => 'ẓ', 'Ẕ' => 'ẕ', 'ẞ' => 'ß', 'Ạ' => 'ạ', 'Ả' => 'ả', 'Ấ' => 'ấ', 'Ầ' => 'ầ', 'Ẩ' => 'ẩ', 'Ẫ' => 'ẫ', 'Ậ' => 'ậ', 'Ắ' => 'ắ', 'Ằ' => 'ằ', 'Ẳ' => 'ẳ', 'Ẵ' => 'ẵ', 'Ặ' => 'ặ', 'Ẹ' => 'ẹ', 'Ẻ' => 'ẻ', 'Ẽ' => 'ẽ', 'Ế' => 'ế', 'Ề' => 'ề', 'Ể' => 'ể', 'Ễ' => 'ễ', 'Ệ' => 'ệ', 'Ỉ' => 'ỉ', 'Ị' => 'ị', 'Ọ' => 'ọ', 'Ỏ' => 'ỏ', 'Ố' => 'ố', 'Ồ' => 'ồ', 'Ổ' => 'ổ', 'Ỗ' => 'ỗ', 'Ộ' => 'ộ', 'Ớ' => 'ớ', 'Ờ' => 'ờ', 'Ở' => 'ở', 'Ỡ' => 'ỡ', 'Ợ' => 'ợ', 'Ụ' => 'ụ', 'Ủ' => 'ủ', 'Ứ' => 'ứ', 'Ừ' => 'ừ', 'Ử' => 'ử', 'Ữ' => 'ữ', 'Ự' => 'ự', 'Ỳ' => 'ỳ', 'Ỵ' => 'ỵ', 'Ỷ' => 'ỷ', 'Ỹ' => 'ỹ', 'Ỻ' => 'ỻ', 'Ỽ' => 'ỽ', 'Ỿ' => 'ỿ', 'Ἀ' => 'ἀ', 'Ἁ' => 'ἁ', 'Ἂ' => 'ἂ', 'Ἃ' => 'ἃ', 'Ἄ' => 'ἄ', 'Ἅ' => 'ἅ', 'Ἆ' => 'ἆ', 'Ἇ' => 'ἇ', 'Ἐ' => 'ἐ', 'Ἑ' => 'ἑ', 'Ἒ' => 'ἒ', 'Ἓ' => 'ἓ', 'Ἔ' => 'ἔ', 'Ἕ' => 'ἕ', 'Ἠ' => 'ἠ', 'Ἡ' => 'ἡ', 'Ἢ' => 'ἢ', 'Ἣ' => 'ἣ', 'Ἤ' => 'ἤ', 'Ἥ' => 'ἥ', 'Ἦ' => 'ἦ', 'Ἧ' => 'ἧ', 'Ἰ' => 'ἰ', 'Ἱ' => 'ἱ', 'Ἲ' => 'ἲ', 'Ἳ' => 'ἳ', 'Ἴ' => 'ἴ', 'Ἵ' => 'ἵ', 'Ἶ' => 'ἶ', 'Ἷ' => 'ἷ', 'Ὀ' => 'ὀ', 'Ὁ' => 'ὁ', 'Ὂ' => 'ὂ', 'Ὃ' => 'ὃ', 'Ὄ' => 'ὄ', 'Ὅ' => 'ὅ', 'Ὑ' => 'ὑ', 'Ὓ' => 'ὓ', 'Ὕ' => 'ὕ', 'Ὗ' => 'ὗ', 'Ὠ' => 'ὠ', 'Ὡ' => 'ὡ', 'Ὢ' => 'ὢ', 'Ὣ' => 'ὣ', 'Ὤ' => 'ὤ', 'Ὥ' => 'ὥ', 'Ὦ' => 'ὦ', 'Ὧ' => 'ὧ', 'ᾈ' => 'ᾀ', 'ᾉ' => 'ᾁ', 'ᾊ' => 'ᾂ', 'ᾋ' => 'ᾃ', 'ᾌ' => 'ᾄ', 'ᾍ' => 'ᾅ', 'ᾎ' => 'ᾆ', 'ᾏ' => 'ᾇ', 'ᾘ' => 'ᾐ', 'ᾙ' => 'ᾑ', 'ᾚ' => 'ᾒ', 'ᾛ' => 'ᾓ', 'ᾜ' => 'ᾔ', 'ᾝ' => 'ᾕ', 'ᾞ' => 'ᾖ', 'ᾟ' => 'ᾗ', 'ᾨ' => 'ᾠ', 'ᾩ' => 'ᾡ', 'ᾪ' => 'ᾢ', 'ᾫ' => 'ᾣ', 'ᾬ' => 'ᾤ', 'ᾭ' => 'ᾥ', 'ᾮ' => 'ᾦ', 'ᾯ' => 'ᾧ', 'Ᾰ' => 'ᾰ', 'Ᾱ' => 'ᾱ', 'Ὰ' => 'ὰ', 'Ά' => 'ά', 'ᾼ' => 'ᾳ', 'Ὲ' => 'ὲ', 'Έ' => 'έ', 'Ὴ' => 'ὴ', 'Ή' => 'ή', 'ῌ' => 'ῃ', 'Ῐ' => 'ῐ', 'Ῑ' => 'ῑ', 'Ὶ' => 'ὶ', 'Ί' => 'ί', 'Ῠ' => 'ῠ', 'Ῡ' => 'ῡ', 'Ὺ' => 'ὺ', 'Ύ' => 'ύ', 'Ῥ' => 'ῥ', 'Ὸ' => 'ὸ', 'Ό' => 'ό', 'Ὼ' => 'ὼ', 'Ώ' => 'ώ', 'ῼ' => 'ῳ', 'Ω' => 'ω', 'K' => 'k', 'Å' => 'å', 'Ⅎ' => 'ⅎ', 'Ⅰ' => 'ⅰ', 'Ⅱ' => 'ⅱ', 'Ⅲ' => 'ⅲ', 'Ⅳ' => 'ⅳ', 'Ⅴ' => 'ⅴ', 'Ⅵ' => 'ⅵ', 'Ⅶ' => 'ⅶ', 'Ⅷ' => 'ⅷ', 'Ⅸ' => 'ⅸ', 'Ⅹ' => 'ⅹ', 'Ⅺ' => 'ⅺ', 'Ⅻ' => 'ⅻ', 'Ⅼ' => 'ⅼ', 'Ⅽ' => 'ⅽ', 'Ⅾ' => 'ⅾ', 'Ⅿ' => 'ⅿ', 'Ↄ' => 'ↄ', 'Ⓐ' => 'ⓐ', 'Ⓑ' => 'ⓑ', 'Ⓒ' => 'ⓒ', 'Ⓓ' => 'ⓓ', 'Ⓔ' => 'ⓔ', 'Ⓕ' => 'ⓕ', 'Ⓖ' => 'ⓖ', 'Ⓗ' => 'ⓗ', 'Ⓘ' => 'ⓘ', 'Ⓙ' => 'ⓙ', 'Ⓚ' => 'ⓚ', 'Ⓛ' => 'ⓛ', 'Ⓜ' => 'ⓜ', 'Ⓝ' => 'ⓝ', 'Ⓞ' => 'ⓞ', 'Ⓟ' => 'ⓟ', 'Ⓠ' => 'ⓠ', 'Ⓡ' => 'ⓡ', 'Ⓢ' => 'ⓢ', 'Ⓣ' => 'ⓣ', 'Ⓤ' => 'ⓤ', 'Ⓥ' => 'ⓥ', 'Ⓦ' => 'ⓦ', 'Ⓧ' => 'ⓧ', 'Ⓨ' => 'ⓨ', 'Ⓩ' => 'ⓩ', 'Ⰰ' => 'ⰰ', 'Ⰱ' => 'ⰱ', 'Ⰲ' => 'ⰲ', 'Ⰳ' => 'ⰳ', 'Ⰴ' => 'ⰴ', 'Ⰵ' => 'ⰵ', 'Ⰶ' => 'ⰶ', 'Ⰷ' => 'ⰷ', 'Ⰸ' => 'ⰸ', 'Ⰹ' => 'ⰹ', 'Ⰺ' => 'ⰺ', 'Ⰻ' => 'ⰻ', 'Ⰼ' => 'ⰼ', 'Ⰽ' => 'ⰽ', 'Ⰾ' => 'ⰾ', 'Ⰿ' => 'ⰿ', 'Ⱀ' => 'ⱀ', 'Ⱁ' => 'ⱁ', 'Ⱂ' => 'ⱂ', 'Ⱃ' => 'ⱃ', 'Ⱄ' => 'ⱄ', 'Ⱅ' => 'ⱅ', 'Ⱆ' => 'ⱆ', 'Ⱇ' => 'ⱇ', 'Ⱈ' => 'ⱈ', 'Ⱉ' => 'ⱉ', 'Ⱊ' => 'ⱊ', 'Ⱋ' => 'ⱋ', 'Ⱌ' => 'ⱌ', 'Ⱍ' => 'ⱍ', 'Ⱎ' => 'ⱎ', 'Ⱏ' => 'ⱏ', 'Ⱐ' => 'ⱐ', 'Ⱑ' => 'ⱑ', 'Ⱒ' => 'ⱒ', 'Ⱓ' => 'ⱓ', 'Ⱔ' => 'ⱔ', 'Ⱕ' => 'ⱕ', 'Ⱖ' => 'ⱖ', 'Ⱗ' => 'ⱗ', 'Ⱘ' => 'ⱘ', 'Ⱙ' => 'ⱙ', 'Ⱚ' => 'ⱚ', 'Ⱛ' => 'ⱛ', 'Ⱜ' => 'ⱜ', 'Ⱝ' => 'ⱝ', 'Ⱞ' => 'ⱞ', 'Ⱡ' => 'ⱡ', 'Ɫ' => 'ɫ', 'Ᵽ' => 'ᵽ', 'Ɽ' => 'ɽ', 'Ⱨ' => 'ⱨ', 'Ⱪ' => 'ⱪ', 'Ⱬ' => 'ⱬ', 'Ɑ' => 'ɑ', 'Ɱ' => 'ɱ', 'Ɐ' => 'ɐ', 'Ɒ' => 'ɒ', 'Ⱳ' => 'ⱳ', 'Ⱶ' => 'ⱶ', 'Ȿ' => 'ȿ', 'Ɀ' => 'ɀ', 'Ⲁ' => 'ⲁ', 'Ⲃ' => 'ⲃ', 'Ⲅ' => 'ⲅ', 'Ⲇ' => 'ⲇ', 'Ⲉ' => 'ⲉ', 'Ⲋ' => 'ⲋ', 'Ⲍ' => 'ⲍ', 'Ⲏ' => 'ⲏ', 'Ⲑ' => 'ⲑ', 'Ⲓ' => 'ⲓ', 'Ⲕ' => 'ⲕ', 'Ⲗ' => 'ⲗ', 'Ⲙ' => 'ⲙ', 'Ⲛ' => 'ⲛ', 'Ⲝ' => 'ⲝ', 'Ⲟ' => 'ⲟ', 'Ⲡ' => 'ⲡ', 'Ⲣ' => 'ⲣ', 'Ⲥ' => 'ⲥ', 'Ⲧ' => 'ⲧ', 'Ⲩ' => 'ⲩ', 'Ⲫ' => 'ⲫ', 'Ⲭ' => 'ⲭ', 'Ⲯ' => 'ⲯ', 'Ⲱ' => 'ⲱ', 'Ⲳ' => 'ⲳ', 'Ⲵ' => 'ⲵ', 'Ⲷ' => 'ⲷ', 'Ⲹ' => 'ⲹ', 'Ⲻ' => 'ⲻ', 'Ⲽ' => 'ⲽ', 'Ⲿ' => 'ⲿ', 'Ⳁ' => 'ⳁ', 'Ⳃ' => 'ⳃ', 'Ⳅ' => 'ⳅ', 'Ⳇ' => 'ⳇ', 'Ⳉ' => 'ⳉ', 'Ⳋ' => 'ⳋ', 'Ⳍ' => 'ⳍ', 'Ⳏ' => 'ⳏ', 'Ⳑ' => 'ⳑ', 'Ⳓ' => 'ⳓ', 'Ⳕ' => 'ⳕ', 'Ⳗ' => 'ⳗ', 'Ⳙ' => 'ⳙ', 'Ⳛ' => 'ⳛ', 'Ⳝ' => 'ⳝ', 'Ⳟ' => 'ⳟ', 'Ⳡ' => 'ⳡ', 'Ⳣ' => 'ⳣ', 'Ⳬ' => 'ⳬ', 'Ⳮ' => 'ⳮ', 'Ⳳ' => 'ⳳ', 'Ꙁ' => 'ꙁ', 'Ꙃ' => 'ꙃ', 'Ꙅ' => 'ꙅ', 'Ꙇ' => 'ꙇ', 'Ꙉ' => 'ꙉ', 'Ꙋ' => 'ꙋ', 'Ꙍ' => 'ꙍ', 'Ꙏ' => 'ꙏ', 'Ꙑ' => 'ꙑ', 'Ꙓ' => 'ꙓ', 'Ꙕ' => 'ꙕ', 'Ꙗ' => 'ꙗ', 'Ꙙ' => 'ꙙ', 'Ꙛ' => 'ꙛ', 'Ꙝ' => 'ꙝ', 'Ꙟ' => 'ꙟ', 'Ꙡ' => 'ꙡ', 'Ꙣ' => 'ꙣ', 'Ꙥ' => 'ꙥ', 'Ꙧ' => 'ꙧ', 'Ꙩ' => 'ꙩ', 'Ꙫ' => 'ꙫ', 'Ꙭ' => 'ꙭ', 'Ꚁ' => 'ꚁ', 'Ꚃ' => 'ꚃ', 'Ꚅ' => 'ꚅ', 'Ꚇ' => 'ꚇ', 'Ꚉ' => 'ꚉ', 'Ꚋ' => 'ꚋ', 'Ꚍ' => 'ꚍ', 'Ꚏ' => 'ꚏ', 'Ꚑ' => 'ꚑ', 'Ꚓ' => 'ꚓ', 'Ꚕ' => 'ꚕ', 'Ꚗ' => 'ꚗ', 'Ꚙ' => 'ꚙ', 'Ꚛ' => 'ꚛ', 'Ꜣ' => 'ꜣ', 'Ꜥ' => 'ꜥ', 'Ꜧ' => 'ꜧ', 'Ꜩ' => 'ꜩ', 'Ꜫ' => 'ꜫ', 'Ꜭ' => 'ꜭ', 'Ꜯ' => 'ꜯ', 'Ꜳ' => 'ꜳ', 'Ꜵ' => 'ꜵ', 'Ꜷ' => 'ꜷ', 'Ꜹ' => 'ꜹ', 'Ꜻ' => 'ꜻ', 'Ꜽ' => 'ꜽ', 'Ꜿ' => 'ꜿ', 'Ꝁ' => 'ꝁ', 'Ꝃ' => 'ꝃ', 'Ꝅ' => 'ꝅ', 'Ꝇ' => 'ꝇ', 'Ꝉ' => 'ꝉ', 'Ꝋ' => 'ꝋ', 'Ꝍ' => 'ꝍ', 'Ꝏ' => 'ꝏ', 'Ꝑ' => 'ꝑ', 'Ꝓ' => 'ꝓ', 'Ꝕ' => 'ꝕ', 'Ꝗ' => 'ꝗ', 'Ꝙ' => 'ꝙ', 'Ꝛ' => 'ꝛ', 'Ꝝ' => 'ꝝ', 'Ꝟ' => 'ꝟ', 'Ꝡ' => 'ꝡ', 'Ꝣ' => 'ꝣ', 'Ꝥ' => 'ꝥ', 'Ꝧ' => 'ꝧ', 'Ꝩ' => 'ꝩ', 'Ꝫ' => 'ꝫ', 'Ꝭ' => 'ꝭ', 'Ꝯ' => 'ꝯ', 'Ꝺ' => 'ꝺ', 'Ꝼ' => 'ꝼ', 'Ᵹ' => 'ᵹ', 'Ꝿ' => 'ꝿ', 'Ꞁ' => 'ꞁ', 'Ꞃ' => 'ꞃ', 'Ꞅ' => 'ꞅ', 'Ꞇ' => 'ꞇ', 'Ꞌ' => 'ꞌ', 'Ɥ' => 'ɥ', 'Ꞑ' => 'ꞑ', 'Ꞓ' => 'ꞓ', 'Ꞗ' => 'ꞗ', 'Ꞙ' => 'ꞙ', 'Ꞛ' => 'ꞛ', 'Ꞝ' => 'ꞝ', 'Ꞟ' => 'ꞟ', 'Ꞡ' => 'ꞡ', 'Ꞣ' => 'ꞣ', 'Ꞥ' => 'ꞥ', 'Ꞧ' => 'ꞧ', 'Ꞩ' => 'ꞩ', 'Ɦ' => 'ɦ', 'Ɜ' => 'ɜ', 'Ɡ' => 'ɡ', 'Ɬ' => 'ɬ', 'Ɪ' => 'ɪ', 'Ʞ' => 'ʞ', 'Ʇ' => 'ʇ', 'Ʝ' => 'ʝ', 'Ꭓ' => 'ꭓ', 'Ꞵ' => 'ꞵ', 'Ꞷ' => 'ꞷ', 'Ꞹ' => 'ꞹ', 'Ꞻ' => 'ꞻ', 'Ꞽ' => 'ꞽ', 'Ꞿ' => 'ꞿ', 'Ꟃ' => 'ꟃ', 'Ꞔ' => 'ꞔ', 'Ʂ' => 'ʂ', 'Ᶎ' => 'ᶎ', 'Ꟈ' => 'ꟈ', 'Ꟊ' => 'ꟊ', 'Ꟶ' => 'ꟶ', 'A' => 'a', 'B' => 'b', 'C' => 'c', 'D' => 'd', 'E' => 'e', 'F' => 'f', 'G' => 'g', 'H' => 'h', 'I' => 'i', 'J' => 'j', 'K' => 'k', 'L' => 'l', 'M' => 'm', 'N' => 'n', 'O' => 'o', 'P' => 'p', 'Q' => 'q', 'R' => 'r', 'S' => 's', 'T' => 't', 'U' => 'u', 'V' => 'v', 'W' => 'w', 'X' => 'x', 'Y' => 'y', 'Z' => 'z', '𐐀' => '𐐨', '𐐁' => '𐐩', '𐐂' => '𐐪', '𐐃' => '𐐫', '𐐄' => '𐐬', '𐐅' => '𐐭', '𐐆' => '𐐮', '𐐇' => '𐐯', '𐐈' => '𐐰', '𐐉' => '𐐱', '𐐊' => '𐐲', '𐐋' => '𐐳', '𐐌' => '𐐴', '𐐍' => '𐐵', '𐐎' => '𐐶', '𐐏' => '𐐷', '𐐐' => '𐐸', '𐐑' => '𐐹', '𐐒' => '𐐺', '𐐓' => '𐐻', '𐐔' => '𐐼', '𐐕' => '𐐽', '𐐖' => '𐐾', '𐐗' => '𐐿', '𐐘' => '𐑀', '𐐙' => '𐑁', '𐐚' => '𐑂', '𐐛' => '𐑃', '𐐜' => '𐑄', '𐐝' => '𐑅', '𐐞' => '𐑆', '𐐟' => '𐑇', '𐐠' => '𐑈', '𐐡' => '𐑉', '𐐢' => '𐑊', '𐐣' => '𐑋', '𐐤' => '𐑌', '𐐥' => '𐑍', '𐐦' => '𐑎', '𐐧' => '𐑏', '𐒰' => '𐓘', '𐒱' => '𐓙', '𐒲' => '𐓚', '𐒳' => '𐓛', '𐒴' => '𐓜', '𐒵' => '𐓝', '𐒶' => '𐓞', '𐒷' => '𐓟', '𐒸' => '𐓠', '𐒹' => '𐓡', '𐒺' => '𐓢', '𐒻' => '𐓣', '𐒼' => '𐓤', '𐒽' => '𐓥', '𐒾' => '𐓦', '𐒿' => '𐓧', '𐓀' => '𐓨', '𐓁' => '𐓩', '𐓂' => '𐓪', '𐓃' => '𐓫', '𐓄' => '𐓬', '𐓅' => '𐓭', '𐓆' => '𐓮', '𐓇' => '𐓯', '𐓈' => '𐓰', '𐓉' => '𐓱', '𐓊' => '𐓲', '𐓋' => '𐓳', '𐓌' => '𐓴', '𐓍' => '𐓵', '𐓎' => '𐓶', '𐓏' => '𐓷', '𐓐' => '𐓸', '𐓑' => '𐓹', '𐓒' => '𐓺', '𐓓' => '𐓻', '𐲀' => '𐳀', '𐲁' => '𐳁', '𐲂' => '𐳂', '𐲃' => '𐳃', '𐲄' => '𐳄', '𐲅' => '𐳅', '𐲆' => '𐳆', '𐲇' => '𐳇', '𐲈' => '𐳈', '𐲉' => '𐳉', '𐲊' => '𐳊', '𐲋' => '𐳋', '𐲌' => '𐳌', '𐲍' => '𐳍', '𐲎' => '𐳎', '𐲏' => '𐳏', '𐲐' => '𐳐', '𐲑' => '𐳑', '𐲒' => '𐳒', '𐲓' => '𐳓', '𐲔' => '𐳔', '𐲕' => '𐳕', '𐲖' => '𐳖', '𐲗' => '𐳗', '𐲘' => '𐳘', '𐲙' => '𐳙', '𐲚' => '𐳚', '𐲛' => '𐳛', '𐲜' => '𐳜', '𐲝' => '𐳝', '𐲞' => '𐳞', '𐲟' => '𐳟', '𐲠' => '𐳠', '𐲡' => '𐳡', '𐲢' => '𐳢', '𐲣' => '𐳣', '𐲤' => '𐳤', '𐲥' => '𐳥', '𐲦' => '𐳦', '𐲧' => '𐳧', '𐲨' => '𐳨', '𐲩' => '𐳩', '𐲪' => '𐳪', '𐲫' => '𐳫', '𐲬' => '𐳬', '𐲭' => '𐳭', '𐲮' => '𐳮', '𐲯' => '𐳯', '𐲰' => '𐳰', '𐲱' => '𐳱', '𐲲' => '𐳲', '𑢠' => '𑣀', '𑢡' => '𑣁', '𑢢' => '𑣂', '𑢣' => '𑣃', '𑢤' => '𑣄', '𑢥' => '𑣅', '𑢦' => '𑣆', '𑢧' => '𑣇', '𑢨' => '𑣈', '𑢩' => '𑣉', '𑢪' => '𑣊', '𑢫' => '𑣋', '𑢬' => '𑣌', '𑢭' => '𑣍', '𑢮' => '𑣎', '𑢯' => '𑣏', '𑢰' => '𑣐', '𑢱' => '𑣑', '𑢲' => '𑣒', '𑢳' => '𑣓', '𑢴' => '𑣔', '𑢵' => '𑣕', '𑢶' => '𑣖', '𑢷' => '𑣗', '𑢸' => '𑣘', '𑢹' => '𑣙', '𑢺' => '𑣚', '𑢻' => '𑣛', '𑢼' => '𑣜', '𑢽' => '𑣝', '𑢾' => '𑣞', '𑢿' => '𑣟', '𖹀' => '𖹠', '𖹁' => '𖹡', '𖹂' => '𖹢', '𖹃' => '𖹣', '𖹄' => '𖹤', '𖹅' => '𖹥', '𖹆' => '𖹦', '𖹇' => '𖹧', '𖹈' => '𖹨', '𖹉' => '𖹩', '𖹊' => '𖹪', '𖹋' => '𖹫', '𖹌' => '𖹬', '𖹍' => '𖹭', '𖹎' => '𖹮', '𖹏' => '𖹯', '𖹐' => '𖹰', '𖹑' => '𖹱', '𖹒' => '𖹲', '𖹓' => '𖹳', '𖹔' => '𖹴', '𖹕' => '𖹵', '𖹖' => '𖹶', '𖹗' => '𖹷', '𖹘' => '𖹸', '𖹙' => '𖹹', '𖹚' => '𖹺', '𖹛' => '𖹻', '𖹜' => '𖹼', '𖹝' => '𖹽', '𖹞' => '𖹾', '𖹟' => '𖹿', '𞤀' => '𞤢', '𞤁' => '𞤣', '𞤂' => '𞤤', '𞤃' => '𞤥', '𞤄' => '𞤦', '𞤅' => '𞤧', '𞤆' => '𞤨', '𞤇' => '𞤩', '𞤈' => '𞤪', '𞤉' => '𞤫', '𞤊' => '𞤬', '𞤋' => '𞤭', '𞤌' => '𞤮', '𞤍' => '𞤯', '𞤎' => '𞤰', '𞤏' => '𞤱', '𞤐' => '𞤲', '𞤑' => '𞤳', '𞤒' => '𞤴', '𞤓' => '𞤵', '𞤔' => '𞤶', '𞤕' => '𞤷', '𞤖' => '𞤸', '𞤗' => '𞤹', '𞤘' => '𞤺', '𞤙' => '𞤻', '𞤚' => '𞤼', '𞤛' => '𞤽', '𞤜' => '𞤾', '𞤝' => '𞤿', '𞤞' => '𞥀', '𞤟' => '𞥁', '𞤠' => '𞥂', '𞤡' => '𞥃'); diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/symfony/polyfill-mbstring/Resources/unidata/titleCaseRegexp.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/symfony/polyfill-mbstring/Resources/unidata/titleCaseRegexp.php new file mode 100644 index 0000000..92d2cda --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/symfony/polyfill-mbstring/Resources/unidata/titleCaseRegexp.php @@ -0,0 +1,6 @@ + 'A', 'b' => 'B', 'c' => 'C', 'd' => 'D', 'e' => 'E', 'f' => 'F', 'g' => 'G', 'h' => 'H', 'i' => 'I', 'j' => 'J', 'k' => 'K', 'l' => 'L', 'm' => 'M', 'n' => 'N', 'o' => 'O', 'p' => 'P', 'q' => 'Q', 'r' => 'R', 's' => 'S', 't' => 'T', 'u' => 'U', 'v' => 'V', 'w' => 'W', 'x' => 'X', 'y' => 'Y', 'z' => 'Z', 'µ' => 'Μ', 'à' => 'À', 'á' => 'Á', 'â' => 'Â', 'ã' => 'Ã', 'ä' => 'Ä', 'å' => 'Å', 'æ' => 'Æ', 'ç' => 'Ç', 'è' => 'È', 'é' => 'É', 'ê' => 'Ê', 'ë' => 'Ë', 'ì' => 'Ì', 'í' => 'Í', 'î' => 'Î', 'ï' => 'Ï', 'ð' => 'Ð', 'ñ' => 'Ñ', 'ò' => 'Ò', 'ó' => 'Ó', 'ô' => 'Ô', 'õ' => 'Õ', 'ö' => 'Ö', 'ø' => 'Ø', 'ù' => 'Ù', 'ú' => 'Ú', 'û' => 'Û', 'ü' => 'Ü', 'ý' => 'Ý', 'þ' => 'Þ', 'ÿ' => 'Ÿ', 'ā' => 'Ā', 'ă' => 'Ă', 'ą' => 'Ą', 'ć' => 'Ć', 'ĉ' => 'Ĉ', 'ċ' => 'Ċ', 'č' => 'Č', 'ď' => 'Ď', 'đ' => 'Đ', 'ē' => 'Ē', 'ĕ' => 'Ĕ', 'ė' => 'Ė', 'ę' => 'Ę', 'ě' => 'Ě', 'ĝ' => 'Ĝ', 'ğ' => 'Ğ', 'ġ' => 'Ġ', 'ģ' => 'Ģ', 'ĥ' => 'Ĥ', 'ħ' => 'Ħ', 'ĩ' => 'Ĩ', 'ī' => 'Ī', 'ĭ' => 'Ĭ', 'į' => 'Į', 'ı' => 'I', 'ij' => 'IJ', 'ĵ' => 'Ĵ', 'ķ' => 'Ķ', 'ĺ' => 'Ĺ', 'ļ' => 'Ļ', 'ľ' => 'Ľ', 'ŀ' => 'Ŀ', 'ł' => 'Ł', 'ń' => 'Ń', 'ņ' => 'Ņ', 'ň' => 'Ň', 'ŋ' => 'Ŋ', 'ō' => 'Ō', 'ŏ' => 'Ŏ', 'ő' => 'Ő', 'œ' => 'Œ', 'ŕ' => 'Ŕ', 'ŗ' => 'Ŗ', 'ř' => 'Ř', 'ś' => 'Ś', 'ŝ' => 'Ŝ', 'ş' => 'Ş', 'š' => 'Š', 'ţ' => 'Ţ', 'ť' => 'Ť', 'ŧ' => 'Ŧ', 'ũ' => 'Ũ', 'ū' => 'Ū', 'ŭ' => 'Ŭ', 'ů' => 'Ů', 'ű' => 'Ű', 'ų' => 'Ų', 'ŵ' => 'Ŵ', 'ŷ' => 'Ŷ', 'ź' => 'Ź', 'ż' => 'Ż', 'ž' => 'Ž', 'ſ' => 'S', 'ƀ' => 'Ƀ', 'ƃ' => 'Ƃ', 'ƅ' => 'Ƅ', 'ƈ' => 'Ƈ', 'ƌ' => 'Ƌ', 'ƒ' => 'Ƒ', 'ƕ' => 'Ƕ', 'ƙ' => 'Ƙ', 'ƚ' => 'Ƚ', 'ƞ' => 'Ƞ', 'ơ' => 'Ơ', 'ƣ' => 'Ƣ', 'ƥ' => 'Ƥ', 'ƨ' => 'Ƨ', 'ƭ' => 'Ƭ', 'ư' => 'Ư', 'ƴ' => 'Ƴ', 'ƶ' => 'Ƶ', 'ƹ' => 'Ƹ', 'ƽ' => 'Ƽ', 'ƿ' => 'Ƿ', 'Dž' => 'DŽ', 'dž' => 'DŽ', 'Lj' => 'LJ', 'lj' => 'LJ', 'Nj' => 'NJ', 'nj' => 'NJ', 'ǎ' => 'Ǎ', 'ǐ' => 'Ǐ', 'ǒ' => 'Ǒ', 'ǔ' => 'Ǔ', 'ǖ' => 'Ǖ', 'ǘ' => 'Ǘ', 'ǚ' => 'Ǚ', 'ǜ' => 'Ǜ', 'ǝ' => 'Ǝ', 'ǟ' => 'Ǟ', 'ǡ' => 'Ǡ', 'ǣ' => 'Ǣ', 'ǥ' => 'Ǥ', 'ǧ' => 'Ǧ', 'ǩ' => 'Ǩ', 'ǫ' => 'Ǫ', 'ǭ' => 'Ǭ', 'ǯ' => 'Ǯ', 'Dz' => 'DZ', 'dz' => 'DZ', 'ǵ' => 'Ǵ', 'ǹ' => 'Ǹ', 'ǻ' => 'Ǻ', 'ǽ' => 'Ǽ', 'ǿ' => 'Ǿ', 'ȁ' => 'Ȁ', 'ȃ' => 'Ȃ', 'ȅ' => 'Ȅ', 'ȇ' => 'Ȇ', 'ȉ' => 'Ȉ', 'ȋ' => 'Ȋ', 'ȍ' => 'Ȍ', 'ȏ' => 'Ȏ', 'ȑ' => 'Ȑ', 'ȓ' => 'Ȓ', 'ȕ' => 'Ȕ', 'ȗ' => 'Ȗ', 'ș' => 'Ș', 'ț' => 'Ț', 'ȝ' => 'Ȝ', 'ȟ' => 'Ȟ', 'ȣ' => 'Ȣ', 'ȥ' => 'Ȥ', 'ȧ' => 'Ȧ', 'ȩ' => 'Ȩ', 'ȫ' => 'Ȫ', 'ȭ' => 'Ȭ', 'ȯ' => 'Ȯ', 'ȱ' => 'Ȱ', 'ȳ' => 'Ȳ', 'ȼ' => 'Ȼ', 'ȿ' => 'Ȿ', 'ɀ' => 'Ɀ', 'ɂ' => 'Ɂ', 'ɇ' => 'Ɇ', 'ɉ' => 'Ɉ', 'ɋ' => 'Ɋ', 'ɍ' => 'Ɍ', 'ɏ' => 'Ɏ', 'ɐ' => 'Ɐ', 'ɑ' => 'Ɑ', 'ɒ' => 'Ɒ', 'ɓ' => 'Ɓ', 'ɔ' => 'Ɔ', 'ɖ' => 'Ɖ', 'ɗ' => 'Ɗ', 'ə' => 'Ə', 'ɛ' => 'Ɛ', 'ɜ' => 'Ɜ', 'ɠ' => 'Ɠ', 'ɡ' => 'Ɡ', 'ɣ' => 'Ɣ', 'ɥ' => 'Ɥ', 'ɦ' => 'Ɦ', 'ɨ' => 'Ɨ', 'ɩ' => 'Ɩ', 'ɪ' => 'Ɪ', 'ɫ' => 'Ɫ', 'ɬ' => 'Ɬ', 'ɯ' => 'Ɯ', 'ɱ' => 'Ɱ', 'ɲ' => 'Ɲ', 'ɵ' => 'Ɵ', 'ɽ' => 'Ɽ', 'ʀ' => 'Ʀ', 'ʂ' => 'Ʂ', 'ʃ' => 'Ʃ', 'ʇ' => 'Ʇ', 'ʈ' => 'Ʈ', 'ʉ' => 'Ʉ', 'ʊ' => 'Ʊ', 'ʋ' => 'Ʋ', 'ʌ' => 'Ʌ', 'ʒ' => 'Ʒ', 'ʝ' => 'Ʝ', 'ʞ' => 'Ʞ', 'ͅ' => 'Ι', 'ͱ' => 'Ͱ', 'ͳ' => 'Ͳ', 'ͷ' => 'Ͷ', 'ͻ' => 'Ͻ', 'ͼ' => 'Ͼ', 'ͽ' => 'Ͽ', 'ά' => 'Ά', 'έ' => 'Έ', 'ή' => 'Ή', 'ί' => 'Ί', 'α' => 'Α', 'β' => 'Β', 'γ' => 'Γ', 'δ' => 'Δ', 'ε' => 'Ε', 'ζ' => 'Ζ', 'η' => 'Η', 'θ' => 'Θ', 'ι' => 'Ι', 'κ' => 'Κ', 'λ' => 'Λ', 'μ' => 'Μ', 'ν' => 'Ν', 'ξ' => 'Ξ', 'ο' => 'Ο', 'π' => 'Π', 'ρ' => 'Ρ', 'ς' => 'Σ', 'σ' => 'Σ', 'τ' => 'Τ', 'υ' => 'Υ', 'φ' => 'Φ', 'χ' => 'Χ', 'ψ' => 'Ψ', 'ω' => 'Ω', 'ϊ' => 'Ϊ', 'ϋ' => 'Ϋ', 'ό' => 'Ό', 'ύ' => 'Ύ', 'ώ' => 'Ώ', 'ϐ' => 'Β', 'ϑ' => 'Θ', 'ϕ' => 'Φ', 'ϖ' => 'Π', 'ϗ' => 'Ϗ', 'ϙ' => 'Ϙ', 'ϛ' => 'Ϛ', 'ϝ' => 'Ϝ', 'ϟ' => 'Ϟ', 'ϡ' => 'Ϡ', 'ϣ' => 'Ϣ', 'ϥ' => 'Ϥ', 'ϧ' => 'Ϧ', 'ϩ' => 'Ϩ', 'ϫ' => 'Ϫ', 'ϭ' => 'Ϭ', 'ϯ' => 'Ϯ', 'ϰ' => 'Κ', 'ϱ' => 'Ρ', 'ϲ' => 'Ϲ', 'ϳ' => 'Ϳ', 'ϵ' => 'Ε', 'ϸ' => 'Ϸ', 'ϻ' => 'Ϻ', 'а' => 'А', 'б' => 'Б', 'в' => 'В', 'г' => 'Г', 'д' => 'Д', 'е' => 'Е', 'ж' => 'Ж', 'з' => 'З', 'и' => 'И', 'й' => 'Й', 'к' => 'К', 'л' => 'Л', 'м' => 'М', 'н' => 'Н', 'о' => 'О', 'п' => 'П', 'р' => 'Р', 'с' => 'С', 'т' => 'Т', 'у' => 'У', 'ф' => 'Ф', 'х' => 'Х', 'ц' => 'Ц', 'ч' => 'Ч', 'ш' => 'Ш', 'щ' => 'Щ', 'ъ' => 'Ъ', 'ы' => 'Ы', 'ь' => 'Ь', 'э' => 'Э', 'ю' => 'Ю', 'я' => 'Я', 'ѐ' => 'Ѐ', 'ё' => 'Ё', 'ђ' => 'Ђ', 'ѓ' => 'Ѓ', 'є' => 'Є', 'ѕ' => 'Ѕ', 'і' => 'І', 'ї' => 'Ї', 'ј' => 'Ј', 'љ' => 'Љ', 'њ' => 'Њ', 'ћ' => 'Ћ', 'ќ' => 'Ќ', 'ѝ' => 'Ѝ', 'ў' => 'Ў', 'џ' => 'Џ', 'ѡ' => 'Ѡ', 'ѣ' => 'Ѣ', 'ѥ' => 'Ѥ', 'ѧ' => 'Ѧ', 'ѩ' => 'Ѩ', 'ѫ' => 'Ѫ', 'ѭ' => 'Ѭ', 'ѯ' => 'Ѯ', 'ѱ' => 'Ѱ', 'ѳ' => 'Ѳ', 'ѵ' => 'Ѵ', 'ѷ' => 'Ѷ', 'ѹ' => 'Ѹ', 'ѻ' => 'Ѻ', 'ѽ' => 'Ѽ', 'ѿ' => 'Ѿ', 'ҁ' => 'Ҁ', 'ҋ' => 'Ҋ', 'ҍ' => 'Ҍ', 'ҏ' => 'Ҏ', 'ґ' => 'Ґ', 'ғ' => 'Ғ', 'ҕ' => 'Ҕ', 'җ' => 'Җ', 'ҙ' => 'Ҙ', 'қ' => 'Қ', 'ҝ' => 'Ҝ', 'ҟ' => 'Ҟ', 'ҡ' => 'Ҡ', 'ң' => 'Ң', 'ҥ' => 'Ҥ', 'ҧ' => 'Ҧ', 'ҩ' => 'Ҩ', 'ҫ' => 'Ҫ', 'ҭ' => 'Ҭ', 'ү' => 'Ү', 'ұ' => 'Ұ', 'ҳ' => 'Ҳ', 'ҵ' => 'Ҵ', 'ҷ' => 'Ҷ', 'ҹ' => 'Ҹ', 'һ' => 'Һ', 'ҽ' => 'Ҽ', 'ҿ' => 'Ҿ', 'ӂ' => 'Ӂ', 'ӄ' => 'Ӄ', 'ӆ' => 'Ӆ', 'ӈ' => 'Ӈ', 'ӊ' => 'Ӊ', 'ӌ' => 'Ӌ', 'ӎ' => 'Ӎ', 'ӏ' => 'Ӏ', 'ӑ' => 'Ӑ', 'ӓ' => 'Ӓ', 'ӕ' => 'Ӕ', 'ӗ' => 'Ӗ', 'ә' => 'Ә', 'ӛ' => 'Ӛ', 'ӝ' => 'Ӝ', 'ӟ' => 'Ӟ', 'ӡ' => 'Ӡ', 'ӣ' => 'Ӣ', 'ӥ' => 'Ӥ', 'ӧ' => 'Ӧ', 'ө' => 'Ө', 'ӫ' => 'Ӫ', 'ӭ' => 'Ӭ', 'ӯ' => 'Ӯ', 'ӱ' => 'Ӱ', 'ӳ' => 'Ӳ', 'ӵ' => 'Ӵ', 'ӷ' => 'Ӷ', 'ӹ' => 'Ӹ', 'ӻ' => 'Ӻ', 'ӽ' => 'Ӽ', 'ӿ' => 'Ӿ', 'ԁ' => 'Ԁ', 'ԃ' => 'Ԃ', 'ԅ' => 'Ԅ', 'ԇ' => 'Ԇ', 'ԉ' => 'Ԉ', 'ԋ' => 'Ԋ', 'ԍ' => 'Ԍ', 'ԏ' => 'Ԏ', 'ԑ' => 'Ԑ', 'ԓ' => 'Ԓ', 'ԕ' => 'Ԕ', 'ԗ' => 'Ԗ', 'ԙ' => 'Ԙ', 'ԛ' => 'Ԛ', 'ԝ' => 'Ԝ', 'ԟ' => 'Ԟ', 'ԡ' => 'Ԡ', 'ԣ' => 'Ԣ', 'ԥ' => 'Ԥ', 'ԧ' => 'Ԧ', 'ԩ' => 'Ԩ', 'ԫ' => 'Ԫ', 'ԭ' => 'Ԭ', 'ԯ' => 'Ԯ', 'ա' => 'Ա', 'բ' => 'Բ', 'գ' => 'Գ', 'դ' => 'Դ', 'ե' => 'Ե', 'զ' => 'Զ', 'է' => 'Է', 'ը' => 'Ը', 'թ' => 'Թ', 'ժ' => 'Ժ', 'ի' => 'Ի', 'լ' => 'Լ', 'խ' => 'Խ', 'ծ' => 'Ծ', 'կ' => 'Կ', 'հ' => 'Հ', 'ձ' => 'Ձ', 'ղ' => 'Ղ', 'ճ' => 'Ճ', 'մ' => 'Մ', 'յ' => 'Յ', 'ն' => 'Ն', 'շ' => 'Շ', 'ո' => 'Ո', 'չ' => 'Չ', 'պ' => 'Պ', 'ջ' => 'Ջ', 'ռ' => 'Ռ', 'ս' => 'Ս', 'վ' => 'Վ', 'տ' => 'Տ', 'ր' => 'Ր', 'ց' => 'Ց', 'ւ' => 'Ւ', 'փ' => 'Փ', 'ք' => 'Ք', 'օ' => 'Օ', 'ֆ' => 'Ֆ', 'ა' => 'Ა', 'ბ' => 'Ბ', 'გ' => 'Გ', 'დ' => 'Დ', 'ე' => 'Ე', 'ვ' => 'Ვ', 'ზ' => 'Ზ', 'თ' => 'Თ', 'ი' => 'Ი', 'კ' => 'Კ', 'ლ' => 'Ლ', 'მ' => 'Მ', 'ნ' => 'Ნ', 'ო' => 'Ო', 'პ' => 'Პ', 'ჟ' => 'Ჟ', 'რ' => 'Რ', 'ს' => 'Ს', 'ტ' => 'Ტ', 'უ' => 'Უ', 'ფ' => 'Ფ', 'ქ' => 'Ქ', 'ღ' => 'Ღ', 'ყ' => 'Ყ', 'შ' => 'Შ', 'ჩ' => 'Ჩ', 'ც' => 'Ც', 'ძ' => 'Ძ', 'წ' => 'Წ', 'ჭ' => 'Ჭ', 'ხ' => 'Ხ', 'ჯ' => 'Ჯ', 'ჰ' => 'Ჰ', 'ჱ' => 'Ჱ', 'ჲ' => 'Ჲ', 'ჳ' => 'Ჳ', 'ჴ' => 'Ჴ', 'ჵ' => 'Ჵ', 'ჶ' => 'Ჶ', 'ჷ' => 'Ჷ', 'ჸ' => 'Ჸ', 'ჹ' => 'Ჹ', 'ჺ' => 'Ჺ', 'ჽ' => 'Ჽ', 'ჾ' => 'Ჾ', 'ჿ' => 'Ჿ', 'ᏸ' => 'Ᏸ', 'ᏹ' => 'Ᏹ', 'ᏺ' => 'Ᏺ', 'ᏻ' => 'Ᏻ', 'ᏼ' => 'Ᏼ', 'ᏽ' => 'Ᏽ', 'ᲀ' => 'В', 'ᲁ' => 'Д', 'ᲂ' => 'О', 'ᲃ' => 'С', 'ᲄ' => 'Т', 'ᲅ' => 'Т', 'ᲆ' => 'Ъ', 'ᲇ' => 'Ѣ', 'ᲈ' => 'Ꙋ', 'ᵹ' => 'Ᵹ', 'ᵽ' => 'Ᵽ', 'ᶎ' => 'Ᶎ', 'ḁ' => 'Ḁ', 'ḃ' => 'Ḃ', 'ḅ' => 'Ḅ', 'ḇ' => 'Ḇ', 'ḉ' => 'Ḉ', 'ḋ' => 'Ḋ', 'ḍ' => 'Ḍ', 'ḏ' => 'Ḏ', 'ḑ' => 'Ḑ', 'ḓ' => 'Ḓ', 'ḕ' => 'Ḕ', 'ḗ' => 'Ḗ', 'ḙ' => 'Ḙ', 'ḛ' => 'Ḛ', 'ḝ' => 'Ḝ', 'ḟ' => 'Ḟ', 'ḡ' => 'Ḡ', 'ḣ' => 'Ḣ', 'ḥ' => 'Ḥ', 'ḧ' => 'Ḧ', 'ḩ' => 'Ḩ', 'ḫ' => 'Ḫ', 'ḭ' => 'Ḭ', 'ḯ' => 'Ḯ', 'ḱ' => 'Ḱ', 'ḳ' => 'Ḳ', 'ḵ' => 'Ḵ', 'ḷ' => 'Ḷ', 'ḹ' => 'Ḹ', 'ḻ' => 'Ḻ', 'ḽ' => 'Ḽ', 'ḿ' => 'Ḿ', 'ṁ' => 'Ṁ', 'ṃ' => 'Ṃ', 'ṅ' => 'Ṅ', 'ṇ' => 'Ṇ', 'ṉ' => 'Ṉ', 'ṋ' => 'Ṋ', 'ṍ' => 'Ṍ', 'ṏ' => 'Ṏ', 'ṑ' => 'Ṑ', 'ṓ' => 'Ṓ', 'ṕ' => 'Ṕ', 'ṗ' => 'Ṗ', 'ṙ' => 'Ṙ', 'ṛ' => 'Ṛ', 'ṝ' => 'Ṝ', 'ṟ' => 'Ṟ', 'ṡ' => 'Ṡ', 'ṣ' => 'Ṣ', 'ṥ' => 'Ṥ', 'ṧ' => 'Ṧ', 'ṩ' => 'Ṩ', 'ṫ' => 'Ṫ', 'ṭ' => 'Ṭ', 'ṯ' => 'Ṯ', 'ṱ' => 'Ṱ', 'ṳ' => 'Ṳ', 'ṵ' => 'Ṵ', 'ṷ' => 'Ṷ', 'ṹ' => 'Ṹ', 'ṻ' => 'Ṻ', 'ṽ' => 'Ṽ', 'ṿ' => 'Ṿ', 'ẁ' => 'Ẁ', 'ẃ' => 'Ẃ', 'ẅ' => 'Ẅ', 'ẇ' => 'Ẇ', 'ẉ' => 'Ẉ', 'ẋ' => 'Ẋ', 'ẍ' => 'Ẍ', 'ẏ' => 'Ẏ', 'ẑ' => 'Ẑ', 'ẓ' => 'Ẓ', 'ẕ' => 'Ẕ', 'ẛ' => 'Ṡ', 'ạ' => 'Ạ', 'ả' => 'Ả', 'ấ' => 'Ấ', 'ầ' => 'Ầ', 'ẩ' => 'Ẩ', 'ẫ' => 'Ẫ', 'ậ' => 'Ậ', 'ắ' => 'Ắ', 'ằ' => 'Ằ', 'ẳ' => 'Ẳ', 'ẵ' => 'Ẵ', 'ặ' => 'Ặ', 'ẹ' => 'Ẹ', 'ẻ' => 'Ẻ', 'ẽ' => 'Ẽ', 'ế' => 'Ế', 'ề' => 'Ề', 'ể' => 'Ể', 'ễ' => 'Ễ', 'ệ' => 'Ệ', 'ỉ' => 'Ỉ', 'ị' => 'Ị', 'ọ' => 'Ọ', 'ỏ' => 'Ỏ', 'ố' => 'Ố', 'ồ' => 'Ồ', 'ổ' => 'Ổ', 'ỗ' => 'Ỗ', 'ộ' => 'Ộ', 'ớ' => 'Ớ', 'ờ' => 'Ờ', 'ở' => 'Ở', 'ỡ' => 'Ỡ', 'ợ' => 'Ợ', 'ụ' => 'Ụ', 'ủ' => 'Ủ', 'ứ' => 'Ứ', 'ừ' => 'Ừ', 'ử' => 'Ử', 'ữ' => 'Ữ', 'ự' => 'Ự', 'ỳ' => 'Ỳ', 'ỵ' => 'Ỵ', 'ỷ' => 'Ỷ', 'ỹ' => 'Ỹ', 'ỻ' => 'Ỻ', 'ỽ' => 'Ỽ', 'ỿ' => 'Ỿ', 'ἀ' => 'Ἀ', 'ἁ' => 'Ἁ', 'ἂ' => 'Ἂ', 'ἃ' => 'Ἃ', 'ἄ' => 'Ἄ', 'ἅ' => 'Ἅ', 'ἆ' => 'Ἆ', 'ἇ' => 'Ἇ', 'ἐ' => 'Ἐ', 'ἑ' => 'Ἑ', 'ἒ' => 'Ἒ', 'ἓ' => 'Ἓ', 'ἔ' => 'Ἔ', 'ἕ' => 'Ἕ', 'ἠ' => 'Ἠ', 'ἡ' => 'Ἡ', 'ἢ' => 'Ἢ', 'ἣ' => 'Ἣ', 'ἤ' => 'Ἤ', 'ἥ' => 'Ἥ', 'ἦ' => 'Ἦ', 'ἧ' => 'Ἧ', 'ἰ' => 'Ἰ', 'ἱ' => 'Ἱ', 'ἲ' => 'Ἲ', 'ἳ' => 'Ἳ', 'ἴ' => 'Ἴ', 'ἵ' => 'Ἵ', 'ἶ' => 'Ἶ', 'ἷ' => 'Ἷ', 'ὀ' => 'Ὀ', 'ὁ' => 'Ὁ', 'ὂ' => 'Ὂ', 'ὃ' => 'Ὃ', 'ὄ' => 'Ὄ', 'ὅ' => 'Ὅ', 'ὑ' => 'Ὑ', 'ὓ' => 'Ὓ', 'ὕ' => 'Ὕ', 'ὗ' => 'Ὗ', 'ὠ' => 'Ὠ', 'ὡ' => 'Ὡ', 'ὢ' => 'Ὢ', 'ὣ' => 'Ὣ', 'ὤ' => 'Ὤ', 'ὥ' => 'Ὥ', 'ὦ' => 'Ὦ', 'ὧ' => 'Ὧ', 'ὰ' => 'Ὰ', 'ά' => 'Ά', 'ὲ' => 'Ὲ', 'έ' => 'Έ', 'ὴ' => 'Ὴ', 'ή' => 'Ή', 'ὶ' => 'Ὶ', 'ί' => 'Ί', 'ὸ' => 'Ὸ', 'ό' => 'Ό', 'ὺ' => 'Ὺ', 'ύ' => 'Ύ', 'ὼ' => 'Ὼ', 'ώ' => 'Ώ', 'ᾀ' => 'ᾈ', 'ᾁ' => 'ᾉ', 'ᾂ' => 'ᾊ', 'ᾃ' => 'ᾋ', 'ᾄ' => 'ᾌ', 'ᾅ' => 'ᾍ', 'ᾆ' => 'ᾎ', 'ᾇ' => 'ᾏ', 'ᾐ' => 'ᾘ', 'ᾑ' => 'ᾙ', 'ᾒ' => 'ᾚ', 'ᾓ' => 'ᾛ', 'ᾔ' => 'ᾜ', 'ᾕ' => 'ᾝ', 'ᾖ' => 'ᾞ', 'ᾗ' => 'ᾟ', 'ᾠ' => 'ᾨ', 'ᾡ' => 'ᾩ', 'ᾢ' => 'ᾪ', 'ᾣ' => 'ᾫ', 'ᾤ' => 'ᾬ', 'ᾥ' => 'ᾭ', 'ᾦ' => 'ᾮ', 'ᾧ' => 'ᾯ', 'ᾰ' => 'Ᾰ', 'ᾱ' => 'Ᾱ', 'ᾳ' => 'ᾼ', 'ι' => 'Ι', 'ῃ' => 'ῌ', 'ῐ' => 'Ῐ', 'ῑ' => 'Ῑ', 'ῠ' => 'Ῠ', 'ῡ' => 'Ῡ', 'ῥ' => 'Ῥ', 'ῳ' => 'ῼ', 'ⅎ' => 'Ⅎ', 'ⅰ' => 'Ⅰ', 'ⅱ' => 'Ⅱ', 'ⅲ' => 'Ⅲ', 'ⅳ' => 'Ⅳ', 'ⅴ' => 'Ⅴ', 'ⅵ' => 'Ⅵ', 'ⅶ' => 'Ⅶ', 'ⅷ' => 'Ⅷ', 'ⅸ' => 'Ⅸ', 'ⅹ' => 'Ⅹ', 'ⅺ' => 'Ⅺ', 'ⅻ' => 'Ⅻ', 'ⅼ' => 'Ⅼ', 'ⅽ' => 'Ⅽ', 'ⅾ' => 'Ⅾ', 'ⅿ' => 'Ⅿ', 'ↄ' => 'Ↄ', 'ⓐ' => 'Ⓐ', 'ⓑ' => 'Ⓑ', 'ⓒ' => 'Ⓒ', 'ⓓ' => 'Ⓓ', 'ⓔ' => 'Ⓔ', 'ⓕ' => 'Ⓕ', 'ⓖ' => 'Ⓖ', 'ⓗ' => 'Ⓗ', 'ⓘ' => 'Ⓘ', 'ⓙ' => 'Ⓙ', 'ⓚ' => 'Ⓚ', 'ⓛ' => 'Ⓛ', 'ⓜ' => 'Ⓜ', 'ⓝ' => 'Ⓝ', 'ⓞ' => 'Ⓞ', 'ⓟ' => 'Ⓟ', 'ⓠ' => 'Ⓠ', 'ⓡ' => 'Ⓡ', 'ⓢ' => 'Ⓢ', 'ⓣ' => 'Ⓣ', 'ⓤ' => 'Ⓤ', 'ⓥ' => 'Ⓥ', 'ⓦ' => 'Ⓦ', 'ⓧ' => 'Ⓧ', 'ⓨ' => 'Ⓨ', 'ⓩ' => 'Ⓩ', 'ⰰ' => 'Ⰰ', 'ⰱ' => 'Ⰱ', 'ⰲ' => 'Ⰲ', 'ⰳ' => 'Ⰳ', 'ⰴ' => 'Ⰴ', 'ⰵ' => 'Ⰵ', 'ⰶ' => 'Ⰶ', 'ⰷ' => 'Ⰷ', 'ⰸ' => 'Ⰸ', 'ⰹ' => 'Ⰹ', 'ⰺ' => 'Ⰺ', 'ⰻ' => 'Ⰻ', 'ⰼ' => 'Ⰼ', 'ⰽ' => 'Ⰽ', 'ⰾ' => 'Ⰾ', 'ⰿ' => 'Ⰿ', 'ⱀ' => 'Ⱀ', 'ⱁ' => 'Ⱁ', 'ⱂ' => 'Ⱂ', 'ⱃ' => 'Ⱃ', 'ⱄ' => 'Ⱄ', 'ⱅ' => 'Ⱅ', 'ⱆ' => 'Ⱆ', 'ⱇ' => 'Ⱇ', 'ⱈ' => 'Ⱈ', 'ⱉ' => 'Ⱉ', 'ⱊ' => 'Ⱊ', 'ⱋ' => 'Ⱋ', 'ⱌ' => 'Ⱌ', 'ⱍ' => 'Ⱍ', 'ⱎ' => 'Ⱎ', 'ⱏ' => 'Ⱏ', 'ⱐ' => 'Ⱐ', 'ⱑ' => 'Ⱑ', 'ⱒ' => 'Ⱒ', 'ⱓ' => 'Ⱓ', 'ⱔ' => 'Ⱔ', 'ⱕ' => 'Ⱕ', 'ⱖ' => 'Ⱖ', 'ⱗ' => 'Ⱗ', 'ⱘ' => 'Ⱘ', 'ⱙ' => 'Ⱙ', 'ⱚ' => 'Ⱚ', 'ⱛ' => 'Ⱛ', 'ⱜ' => 'Ⱜ', 'ⱝ' => 'Ⱝ', 'ⱞ' => 'Ⱞ', 'ⱡ' => 'Ⱡ', 'ⱥ' => 'Ⱥ', 'ⱦ' => 'Ⱦ', 'ⱨ' => 'Ⱨ', 'ⱪ' => 'Ⱪ', 'ⱬ' => 'Ⱬ', 'ⱳ' => 'Ⱳ', 'ⱶ' => 'Ⱶ', 'ⲁ' => 'Ⲁ', 'ⲃ' => 'Ⲃ', 'ⲅ' => 'Ⲅ', 'ⲇ' => 'Ⲇ', 'ⲉ' => 'Ⲉ', 'ⲋ' => 'Ⲋ', 'ⲍ' => 'Ⲍ', 'ⲏ' => 'Ⲏ', 'ⲑ' => 'Ⲑ', 'ⲓ' => 'Ⲓ', 'ⲕ' => 'Ⲕ', 'ⲗ' => 'Ⲗ', 'ⲙ' => 'Ⲙ', 'ⲛ' => 'Ⲛ', 'ⲝ' => 'Ⲝ', 'ⲟ' => 'Ⲟ', 'ⲡ' => 'Ⲡ', 'ⲣ' => 'Ⲣ', 'ⲥ' => 'Ⲥ', 'ⲧ' => 'Ⲧ', 'ⲩ' => 'Ⲩ', 'ⲫ' => 'Ⲫ', 'ⲭ' => 'Ⲭ', 'ⲯ' => 'Ⲯ', 'ⲱ' => 'Ⲱ', 'ⲳ' => 'Ⲳ', 'ⲵ' => 'Ⲵ', 'ⲷ' => 'Ⲷ', 'ⲹ' => 'Ⲹ', 'ⲻ' => 'Ⲻ', 'ⲽ' => 'Ⲽ', 'ⲿ' => 'Ⲿ', 'ⳁ' => 'Ⳁ', 'ⳃ' => 'Ⳃ', 'ⳅ' => 'Ⳅ', 'ⳇ' => 'Ⳇ', 'ⳉ' => 'Ⳉ', 'ⳋ' => 'Ⳋ', 'ⳍ' => 'Ⳍ', 'ⳏ' => 'Ⳏ', 'ⳑ' => 'Ⳑ', 'ⳓ' => 'Ⳓ', 'ⳕ' => 'Ⳕ', 'ⳗ' => 'Ⳗ', 'ⳙ' => 'Ⳙ', 'ⳛ' => 'Ⳛ', 'ⳝ' => 'Ⳝ', 'ⳟ' => 'Ⳟ', 'ⳡ' => 'Ⳡ', 'ⳣ' => 'Ⳣ', 'ⳬ' => 'Ⳬ', 'ⳮ' => 'Ⳮ', 'ⳳ' => 'Ⳳ', 'ⴀ' => 'Ⴀ', 'ⴁ' => 'Ⴁ', 'ⴂ' => 'Ⴂ', 'ⴃ' => 'Ⴃ', 'ⴄ' => 'Ⴄ', 'ⴅ' => 'Ⴅ', 'ⴆ' => 'Ⴆ', 'ⴇ' => 'Ⴇ', 'ⴈ' => 'Ⴈ', 'ⴉ' => 'Ⴉ', 'ⴊ' => 'Ⴊ', 'ⴋ' => 'Ⴋ', 'ⴌ' => 'Ⴌ', 'ⴍ' => 'Ⴍ', 'ⴎ' => 'Ⴎ', 'ⴏ' => 'Ⴏ', 'ⴐ' => 'Ⴐ', 'ⴑ' => 'Ⴑ', 'ⴒ' => 'Ⴒ', 'ⴓ' => 'Ⴓ', 'ⴔ' => 'Ⴔ', 'ⴕ' => 'Ⴕ', 'ⴖ' => 'Ⴖ', 'ⴗ' => 'Ⴗ', 'ⴘ' => 'Ⴘ', 'ⴙ' => 'Ⴙ', 'ⴚ' => 'Ⴚ', 'ⴛ' => 'Ⴛ', 'ⴜ' => 'Ⴜ', 'ⴝ' => 'Ⴝ', 'ⴞ' => 'Ⴞ', 'ⴟ' => 'Ⴟ', 'ⴠ' => 'Ⴠ', 'ⴡ' => 'Ⴡ', 'ⴢ' => 'Ⴢ', 'ⴣ' => 'Ⴣ', 'ⴤ' => 'Ⴤ', 'ⴥ' => 'Ⴥ', 'ⴧ' => 'Ⴧ', 'ⴭ' => 'Ⴭ', 'ꙁ' => 'Ꙁ', 'ꙃ' => 'Ꙃ', 'ꙅ' => 'Ꙅ', 'ꙇ' => 'Ꙇ', 'ꙉ' => 'Ꙉ', 'ꙋ' => 'Ꙋ', 'ꙍ' => 'Ꙍ', 'ꙏ' => 'Ꙏ', 'ꙑ' => 'Ꙑ', 'ꙓ' => 'Ꙓ', 'ꙕ' => 'Ꙕ', 'ꙗ' => 'Ꙗ', 'ꙙ' => 'Ꙙ', 'ꙛ' => 'Ꙛ', 'ꙝ' => 'Ꙝ', 'ꙟ' => 'Ꙟ', 'ꙡ' => 'Ꙡ', 'ꙣ' => 'Ꙣ', 'ꙥ' => 'Ꙥ', 'ꙧ' => 'Ꙧ', 'ꙩ' => 'Ꙩ', 'ꙫ' => 'Ꙫ', 'ꙭ' => 'Ꙭ', 'ꚁ' => 'Ꚁ', 'ꚃ' => 'Ꚃ', 'ꚅ' => 'Ꚅ', 'ꚇ' => 'Ꚇ', 'ꚉ' => 'Ꚉ', 'ꚋ' => 'Ꚋ', 'ꚍ' => 'Ꚍ', 'ꚏ' => 'Ꚏ', 'ꚑ' => 'Ꚑ', 'ꚓ' => 'Ꚓ', 'ꚕ' => 'Ꚕ', 'ꚗ' => 'Ꚗ', 'ꚙ' => 'Ꚙ', 'ꚛ' => 'Ꚛ', 'ꜣ' => 'Ꜣ', 'ꜥ' => 'Ꜥ', 'ꜧ' => 'Ꜧ', 'ꜩ' => 'Ꜩ', 'ꜫ' => 'Ꜫ', 'ꜭ' => 'Ꜭ', 'ꜯ' => 'Ꜯ', 'ꜳ' => 'Ꜳ', 'ꜵ' => 'Ꜵ', 'ꜷ' => 'Ꜷ', 'ꜹ' => 'Ꜹ', 'ꜻ' => 'Ꜻ', 'ꜽ' => 'Ꜽ', 'ꜿ' => 'Ꜿ', 'ꝁ' => 'Ꝁ', 'ꝃ' => 'Ꝃ', 'ꝅ' => 'Ꝅ', 'ꝇ' => 'Ꝇ', 'ꝉ' => 'Ꝉ', 'ꝋ' => 'Ꝋ', 'ꝍ' => 'Ꝍ', 'ꝏ' => 'Ꝏ', 'ꝑ' => 'Ꝑ', 'ꝓ' => 'Ꝓ', 'ꝕ' => 'Ꝕ', 'ꝗ' => 'Ꝗ', 'ꝙ' => 'Ꝙ', 'ꝛ' => 'Ꝛ', 'ꝝ' => 'Ꝝ', 'ꝟ' => 'Ꝟ', 'ꝡ' => 'Ꝡ', 'ꝣ' => 'Ꝣ', 'ꝥ' => 'Ꝥ', 'ꝧ' => 'Ꝧ', 'ꝩ' => 'Ꝩ', 'ꝫ' => 'Ꝫ', 'ꝭ' => 'Ꝭ', 'ꝯ' => 'Ꝯ', 'ꝺ' => 'Ꝺ', 'ꝼ' => 'Ꝼ', 'ꝿ' => 'Ꝿ', 'ꞁ' => 'Ꞁ', 'ꞃ' => 'Ꞃ', 'ꞅ' => 'Ꞅ', 'ꞇ' => 'Ꞇ', 'ꞌ' => 'Ꞌ', 'ꞑ' => 'Ꞑ', 'ꞓ' => 'Ꞓ', 'ꞔ' => 'Ꞔ', 'ꞗ' => 'Ꞗ', 'ꞙ' => 'Ꞙ', 'ꞛ' => 'Ꞛ', 'ꞝ' => 'Ꞝ', 'ꞟ' => 'Ꞟ', 'ꞡ' => 'Ꞡ', 'ꞣ' => 'Ꞣ', 'ꞥ' => 'Ꞥ', 'ꞧ' => 'Ꞧ', 'ꞩ' => 'Ꞩ', 'ꞵ' => 'Ꞵ', 'ꞷ' => 'Ꞷ', 'ꞹ' => 'Ꞹ', 'ꞻ' => 'Ꞻ', 'ꞽ' => 'Ꞽ', 'ꞿ' => 'Ꞿ', 'ꟃ' => 'Ꟃ', 'ꟈ' => 'Ꟈ', 'ꟊ' => 'Ꟊ', 'ꟶ' => 'Ꟶ', 'ꭓ' => 'Ꭓ', 'ꭰ' => 'Ꭰ', 'ꭱ' => 'Ꭱ', 'ꭲ' => 'Ꭲ', 'ꭳ' => 'Ꭳ', 'ꭴ' => 'Ꭴ', 'ꭵ' => 'Ꭵ', 'ꭶ' => 'Ꭶ', 'ꭷ' => 'Ꭷ', 'ꭸ' => 'Ꭸ', 'ꭹ' => 'Ꭹ', 'ꭺ' => 'Ꭺ', 'ꭻ' => 'Ꭻ', 'ꭼ' => 'Ꭼ', 'ꭽ' => 'Ꭽ', 'ꭾ' => 'Ꭾ', 'ꭿ' => 'Ꭿ', 'ꮀ' => 'Ꮀ', 'ꮁ' => 'Ꮁ', 'ꮂ' => 'Ꮂ', 'ꮃ' => 'Ꮃ', 'ꮄ' => 'Ꮄ', 'ꮅ' => 'Ꮅ', 'ꮆ' => 'Ꮆ', 'ꮇ' => 'Ꮇ', 'ꮈ' => 'Ꮈ', 'ꮉ' => 'Ꮉ', 'ꮊ' => 'Ꮊ', 'ꮋ' => 'Ꮋ', 'ꮌ' => 'Ꮌ', 'ꮍ' => 'Ꮍ', 'ꮎ' => 'Ꮎ', 'ꮏ' => 'Ꮏ', 'ꮐ' => 'Ꮐ', 'ꮑ' => 'Ꮑ', 'ꮒ' => 'Ꮒ', 'ꮓ' => 'Ꮓ', 'ꮔ' => 'Ꮔ', 'ꮕ' => 'Ꮕ', 'ꮖ' => 'Ꮖ', 'ꮗ' => 'Ꮗ', 'ꮘ' => 'Ꮘ', 'ꮙ' => 'Ꮙ', 'ꮚ' => 'Ꮚ', 'ꮛ' => 'Ꮛ', 'ꮜ' => 'Ꮜ', 'ꮝ' => 'Ꮝ', 'ꮞ' => 'Ꮞ', 'ꮟ' => 'Ꮟ', 'ꮠ' => 'Ꮠ', 'ꮡ' => 'Ꮡ', 'ꮢ' => 'Ꮢ', 'ꮣ' => 'Ꮣ', 'ꮤ' => 'Ꮤ', 'ꮥ' => 'Ꮥ', 'ꮦ' => 'Ꮦ', 'ꮧ' => 'Ꮧ', 'ꮨ' => 'Ꮨ', 'ꮩ' => 'Ꮩ', 'ꮪ' => 'Ꮪ', 'ꮫ' => 'Ꮫ', 'ꮬ' => 'Ꮬ', 'ꮭ' => 'Ꮭ', 'ꮮ' => 'Ꮮ', 'ꮯ' => 'Ꮯ', 'ꮰ' => 'Ꮰ', 'ꮱ' => 'Ꮱ', 'ꮲ' => 'Ꮲ', 'ꮳ' => 'Ꮳ', 'ꮴ' => 'Ꮴ', 'ꮵ' => 'Ꮵ', 'ꮶ' => 'Ꮶ', 'ꮷ' => 'Ꮷ', 'ꮸ' => 'Ꮸ', 'ꮹ' => 'Ꮹ', 'ꮺ' => 'Ꮺ', 'ꮻ' => 'Ꮻ', 'ꮼ' => 'Ꮼ', 'ꮽ' => 'Ꮽ', 'ꮾ' => 'Ꮾ', 'ꮿ' => 'Ꮿ', 'a' => 'A', 'b' => 'B', 'c' => 'C', 'd' => 'D', 'e' => 'E', 'f' => 'F', 'g' => 'G', 'h' => 'H', 'i' => 'I', 'j' => 'J', 'k' => 'K', 'l' => 'L', 'm' => 'M', 'n' => 'N', 'o' => 'O', 'p' => 'P', 'q' => 'Q', 'r' => 'R', 's' => 'S', 't' => 'T', 'u' => 'U', 'v' => 'V', 'w' => 'W', 'x' => 'X', 'y' => 'Y', 'z' => 'Z', '𐐨' => '𐐀', '𐐩' => '𐐁', '𐐪' => '𐐂', '𐐫' => '𐐃', '𐐬' => '𐐄', '𐐭' => '𐐅', '𐐮' => '𐐆', '𐐯' => '𐐇', '𐐰' => '𐐈', '𐐱' => '𐐉', '𐐲' => '𐐊', '𐐳' => '𐐋', '𐐴' => '𐐌', '𐐵' => '𐐍', '𐐶' => '𐐎', '𐐷' => '𐐏', '𐐸' => '𐐐', '𐐹' => '𐐑', '𐐺' => '𐐒', '𐐻' => '𐐓', '𐐼' => '𐐔', '𐐽' => '𐐕', '𐐾' => '𐐖', '𐐿' => '𐐗', '𐑀' => '𐐘', '𐑁' => '𐐙', '𐑂' => '𐐚', '𐑃' => '𐐛', '𐑄' => '𐐜', '𐑅' => '𐐝', '𐑆' => '𐐞', '𐑇' => '𐐟', '𐑈' => '𐐠', '𐑉' => '𐐡', '𐑊' => '𐐢', '𐑋' => '𐐣', '𐑌' => '𐐤', '𐑍' => '𐐥', '𐑎' => '𐐦', '𐑏' => '𐐧', '𐓘' => '𐒰', '𐓙' => '𐒱', '𐓚' => '𐒲', '𐓛' => '𐒳', '𐓜' => '𐒴', '𐓝' => '𐒵', '𐓞' => '𐒶', '𐓟' => '𐒷', '𐓠' => '𐒸', '𐓡' => '𐒹', '𐓢' => '𐒺', '𐓣' => '𐒻', '𐓤' => '𐒼', '𐓥' => '𐒽', '𐓦' => '𐒾', '𐓧' => '𐒿', '𐓨' => '𐓀', '𐓩' => '𐓁', '𐓪' => '𐓂', '𐓫' => '𐓃', '𐓬' => '𐓄', '𐓭' => '𐓅', '𐓮' => '𐓆', '𐓯' => '𐓇', '𐓰' => '𐓈', '𐓱' => '𐓉', '𐓲' => '𐓊', '𐓳' => '𐓋', '𐓴' => '𐓌', '𐓵' => '𐓍', '𐓶' => '𐓎', '𐓷' => '𐓏', '𐓸' => '𐓐', '𐓹' => '𐓑', '𐓺' => '𐓒', '𐓻' => '𐓓', '𐳀' => '𐲀', '𐳁' => '𐲁', '𐳂' => '𐲂', '𐳃' => '𐲃', '𐳄' => '𐲄', '𐳅' => '𐲅', '𐳆' => '𐲆', '𐳇' => '𐲇', '𐳈' => '𐲈', '𐳉' => '𐲉', '𐳊' => '𐲊', '𐳋' => '𐲋', '𐳌' => '𐲌', '𐳍' => '𐲍', '𐳎' => '𐲎', '𐳏' => '𐲏', '𐳐' => '𐲐', '𐳑' => '𐲑', '𐳒' => '𐲒', '𐳓' => '𐲓', '𐳔' => '𐲔', '𐳕' => '𐲕', '𐳖' => '𐲖', '𐳗' => '𐲗', '𐳘' => '𐲘', '𐳙' => '𐲙', '𐳚' => '𐲚', '𐳛' => '𐲛', '𐳜' => '𐲜', '𐳝' => '𐲝', '𐳞' => '𐲞', '𐳟' => '𐲟', '𐳠' => '𐲠', '𐳡' => '𐲡', '𐳢' => '𐲢', '𐳣' => '𐲣', '𐳤' => '𐲤', '𐳥' => '𐲥', '𐳦' => '𐲦', '𐳧' => '𐲧', '𐳨' => '𐲨', '𐳩' => '𐲩', '𐳪' => '𐲪', '𐳫' => '𐲫', '𐳬' => '𐲬', '𐳭' => '𐲭', '𐳮' => '𐲮', '𐳯' => '𐲯', '𐳰' => '𐲰', '𐳱' => '𐲱', '𐳲' => '𐲲', '𑣀' => '𑢠', '𑣁' => '𑢡', '𑣂' => '𑢢', '𑣃' => '𑢣', '𑣄' => '𑢤', '𑣅' => '𑢥', '𑣆' => '𑢦', '𑣇' => '𑢧', '𑣈' => '𑢨', '𑣉' => '𑢩', '𑣊' => '𑢪', '𑣋' => '𑢫', '𑣌' => '𑢬', '𑣍' => '𑢭', '𑣎' => '𑢮', '𑣏' => '𑢯', '𑣐' => '𑢰', '𑣑' => '𑢱', '𑣒' => '𑢲', '𑣓' => '𑢳', '𑣔' => '𑢴', '𑣕' => '𑢵', '𑣖' => '𑢶', '𑣗' => '𑢷', '𑣘' => '𑢸', '𑣙' => '𑢹', '𑣚' => '𑢺', '𑣛' => '𑢻', '𑣜' => '𑢼', '𑣝' => '𑢽', '𑣞' => '𑢾', '𑣟' => '𑢿', '𖹠' => '𖹀', '𖹡' => '𖹁', '𖹢' => '𖹂', '𖹣' => '𖹃', '𖹤' => '𖹄', '𖹥' => '𖹅', '𖹦' => '𖹆', '𖹧' => '𖹇', '𖹨' => '𖹈', '𖹩' => '𖹉', '𖹪' => '𖹊', '𖹫' => '𖹋', '𖹬' => '𖹌', '𖹭' => '𖹍', '𖹮' => '𖹎', '𖹯' => '𖹏', '𖹰' => '𖹐', '𖹱' => '𖹑', '𖹲' => '𖹒', '𖹳' => '𖹓', '𖹴' => '𖹔', '𖹵' => '𖹕', '𖹶' => '𖹖', '𖹷' => '𖹗', '𖹸' => '𖹘', '𖹹' => '𖹙', '𖹺' => '𖹚', '𖹻' => '𖹛', '𖹼' => '𖹜', '𖹽' => '𖹝', '𖹾' => '𖹞', '𖹿' => '𖹟', '𞤢' => '𞤀', '𞤣' => '𞤁', '𞤤' => '𞤂', '𞤥' => '𞤃', '𞤦' => '𞤄', '𞤧' => '𞤅', '𞤨' => '𞤆', '𞤩' => '𞤇', '𞤪' => '𞤈', '𞤫' => '𞤉', '𞤬' => '𞤊', '𞤭' => '𞤋', '𞤮' => '𞤌', '𞤯' => '𞤍', '𞤰' => '𞤎', '𞤱' => '𞤏', '𞤲' => '𞤐', '𞤳' => '𞤑', '𞤴' => '𞤒', '𞤵' => '𞤓', '𞤶' => '𞤔', '𞤷' => '𞤕', '𞤸' => '𞤖', '𞤹' => '𞤗', '𞤺' => '𞤘', '𞤻' => '𞤙', '𞤼' => '𞤚', '𞤽' => '𞤛', '𞤾' => '𞤜', '𞤿' => '𞤝', '𞥀' => '𞤞', '𞥁' => '𞤟', '𞥂' => '𞤠', '𞥃' => '𞤡'); diff --git a/wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-mbstring/bootstrap.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/symfony/polyfill-mbstring/bootstrap.php similarity index 99% rename from wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-mbstring/bootstrap.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/symfony/polyfill-mbstring/bootstrap.php index b36a092..99dd1de 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-mbstring/bootstrap.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/symfony/polyfill-mbstring/bootstrap.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -use Symfony\Polyfill\Mbstring as p; +use WPMailSMTP\Vendor\Symfony\Polyfill\Mbstring as p; if (!function_exists('mb_convert_encoding')) { function mb_convert_encoding($s, $to, $from = null) { return p\Mbstring::mb_convert_encoding($s, $to, $from); } diff --git a/wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-php72/LICENSE b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/symfony/polyfill-php72/LICENSE similarity index 100% rename from wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-php72/LICENSE rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/symfony/polyfill-php72/LICENSE diff --git a/wp-content/plugins/wp-mail-smtp/vendor_prefixed/symfony/polyfill-php72/Php72.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/symfony/polyfill-php72/Php72.php new file mode 100644 index 0000000..681864c --- /dev/null +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/symfony/polyfill-php72/Php72.php @@ -0,0 +1,176 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ +namespace WPMailSMTP\Vendor\Symfony\Polyfill\Php72; + +/** + * @author Nicolas Grekas + * @author Dariusz Rumiński + * + * @internal + */ +final class Php72 +{ + private static $hashMask; + public static function utf8_encode($s) + { + $s .= $s; + $len = \strlen($s); + for ($i = $len >> 1, $j = 0; $i < $len; ++$i, ++$j) { + switch (\true) { + case $s[$i] < "": + $s[$j] = $s[$i]; + break; + case $s[$i] < "": + $s[$j] = ""; + $s[++$j] = $s[$i]; + break; + default: + $s[$j] = ""; + $s[++$j] = \chr(\ord($s[$i]) - 64); + break; + } + } + return \substr($s, 0, $j); + } + public static function utf8_decode($s) + { + $s = (string) $s; + $len = \strlen($s); + for ($i = 0, $j = 0; $i < $len; ++$i, ++$j) { + switch ($s[$i] & "") { + case "": + case "": + $c = \ord($s[$i] & "\37") << 6 | \ord($s[++$i] & "?"); + $s[$j] = $c < 256 ? \chr($c) : '?'; + break; + case "": + ++$i; + // no break + case "": + $s[$j] = '?'; + $i += 2; + break; + default: + $s[$j] = $s[$i]; + } + } + return \substr($s, 0, $j); + } + public static function php_os_family() + { + if ('\\' === \DIRECTORY_SEPARATOR) { + return 'Windows'; + } + $map = array('Darwin' => 'Darwin', 'DragonFly' => 'BSD', 'FreeBSD' => 'BSD', 'NetBSD' => 'BSD', 'OpenBSD' => 'BSD', 'Linux' => 'Linux', 'SunOS' => 'Solaris'); + return isset($map[\PHP_OS]) ? $map[\PHP_OS] : 'Unknown'; + } + public static function spl_object_id($object) + { + if (null === self::$hashMask) { + self::initHashMask(); + } + if (null === ($hash = \spl_object_hash($object))) { + return; + } + // On 32-bit systems, PHP_INT_SIZE is 4, + return self::$hashMask ^ \hexdec(\substr($hash, 16 - (\PHP_INT_SIZE * 2 - 1), \PHP_INT_SIZE * 2 - 1)); + } + public static function sapi_windows_vt100_support($stream, $enable = null) + { + if (!\is_resource($stream)) { + \trigger_error('sapi_windows_vt100_support() expects parameter 1 to be resource, ' . \gettype($stream) . ' given', \E_USER_WARNING); + return \false; + } + $meta = \stream_get_meta_data($stream); + if ('STDIO' !== $meta['stream_type']) { + \trigger_error('sapi_windows_vt100_support() was not able to analyze the specified stream', \E_USER_WARNING); + return \false; + } + // We cannot actually disable vt100 support if it is set + if (\false === $enable || !self::stream_isatty($stream)) { + return \false; + } + // The native function does not apply to stdin + $meta = \array_map('strtolower', $meta); + $stdin = 'php://stdin' === $meta['uri'] || 'php://fd/0' === $meta['uri']; + return !$stdin && (\false !== \getenv('ANSICON') || 'ON' === \getenv('ConEmuANSI') || 'xterm' === \getenv('TERM') || 'Hyper' === \getenv('TERM_PROGRAM')); + } + public static function stream_isatty($stream) + { + if (!\is_resource($stream)) { + \trigger_error('stream_isatty() expects parameter 1 to be resource, ' . \gettype($stream) . ' given', \E_USER_WARNING); + return \false; + } + if ('\\' === \DIRECTORY_SEPARATOR) { + $stat = @\fstat($stream); + // Check if formatted mode is S_IFCHR + return $stat ? 020000 === ($stat['mode'] & 0170000) : \false; + } + return \function_exists('posix_isatty') && @\posix_isatty($stream); + } + private static function initHashMask() + { + $obj = (object) array(); + self::$hashMask = -1; + // check if we are nested in an output buffering handler to prevent a fatal error with ob_start() below + $obFuncs = array('ob_clean', 'ob_end_clean', 'ob_flush', 'ob_end_flush', 'ob_get_contents', 'ob_get_flush'); + foreach (\debug_backtrace(\PHP_VERSION_ID >= 50400 ? \DEBUG_BACKTRACE_IGNORE_ARGS : \false) as $frame) { + if (isset($frame['function'][0]) && !isset($frame['class']) && 'o' === $frame['function'][0] && \in_array($frame['function'], $obFuncs)) { + $frame['line'] = 0; + break; + } + } + if (!empty($frame['line'])) { + \ob_start(); + \debug_zval_dump($obj); + self::$hashMask = (int) \substr(\ob_get_clean(), 17); + } + self::$hashMask ^= \hexdec(\substr(\spl_object_hash($obj), 16 - (\PHP_INT_SIZE * 2 - 1), \PHP_INT_SIZE * 2 - 1)); + } + public static function mb_chr($code, $encoding = null) + { + if (0x80 > ($code %= 0x200000)) { + $s = \chr($code); + } elseif (0x800 > $code) { + $s = \chr(0xc0 | $code >> 6) . \chr(0x80 | $code & 0x3f); + } elseif (0x10000 > $code) { + $s = \chr(0xe0 | $code >> 12) . \chr(0x80 | $code >> 6 & 0x3f) . \chr(0x80 | $code & 0x3f); + } else { + $s = \chr(0xf0 | $code >> 18) . \chr(0x80 | $code >> 12 & 0x3f) . \chr(0x80 | $code >> 6 & 0x3f) . \chr(0x80 | $code & 0x3f); + } + if ('UTF-8' !== $encoding) { + $s = \mb_convert_encoding($s, $encoding, 'UTF-8'); + } + return $s; + } + public static function mb_ord($s, $encoding = null) + { + if (null == $encoding) { + $s = \mb_convert_encoding($s, 'UTF-8'); + } elseif ('UTF-8' !== $encoding) { + $s = \mb_convert_encoding($s, 'UTF-8', $encoding); + } + if (1 === \strlen($s)) { + return \ord($s); + } + $code = ($s = \unpack('C*', \substr($s, 0, 4))) ? $s[1] : 0; + if (0xf0 <= $code) { + return ($code - 0xf0 << 18) + ($s[2] - 0x80 << 12) + ($s[3] - 0x80 << 6) + $s[4] - 0x80; + } + if (0xe0 <= $code) { + return ($code - 0xe0 << 12) + ($s[2] - 0x80 << 6) + $s[3] - 0x80; + } + if (0xc0 <= $code) { + return ($code - 0xc0 << 6) + $s[2] - 0x80; + } + return $code; + } +} diff --git a/wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-php72/bootstrap.php b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/symfony/polyfill-php72/bootstrap.php similarity index 97% rename from wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-php72/bootstrap.php rename to wp-content/plugins/wp-mail-smtp/vendor_prefixed/symfony/polyfill-php72/bootstrap.php index a27a900..e0254b4 100644 --- a/wp-content/plugins/wp-mail-smtp/vendor/symfony/polyfill-php72/bootstrap.php +++ b/wp-content/plugins/wp-mail-smtp/vendor_prefixed/symfony/polyfill-php72/bootstrap.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -use Symfony\Polyfill\Php72 as p; +use WPMailSMTP\Vendor\Symfony\Polyfill\Php72 as p; if (PHP_VERSION_ID >= 70200) { return; diff --git a/wp-content/plugins/wp-mail-smtp/wp-mail-smtp.php b/wp-content/plugins/wp-mail-smtp/wp-mail-smtp.php index d28cd25..6a1ddb5 100644 --- a/wp-content/plugins/wp-mail-smtp/wp-mail-smtp.php +++ b/wp-content/plugins/wp-mail-smtp/wp-mail-smtp.php @@ -1,83 +1,83 @@ -