create-berna-stencil 1.0.15 → 1.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitignore +2 -1
- package/bin/create.js +1 -1
- package/package.json +3 -2
- package/src/api/core/composer.json +1 -2
- package/src/api/core/vendor/autoload.php +1 -1
- package/src/api/core/vendor/composer/autoload_real.php +5 -5
- package/src/api/core/vendor/composer/autoload_static.php +15 -15
- package/src/api/core/vendor/composer/installed.json +7 -7
- package/src/api/core/vendor/composer/installed.php +2 -2
- package/src/api/core/vendor/graham-campbell/result-type/LICENSE +21 -21
- package/src/api/core/vendor/graham-campbell/result-type/composer.json +33 -33
- package/src/api/core/vendor/graham-campbell/result-type/src/Error.php +121 -121
- package/src/api/core/vendor/graham-campbell/result-type/src/Result.php +69 -69
- package/src/api/core/vendor/graham-campbell/result-type/src/Success.php +120 -120
- package/src/api/core/vendor/phpmailer/phpmailer/COMMITMENT +46 -46
- package/src/api/core/vendor/phpmailer/phpmailer/LICENSE +501 -501
- package/src/api/core/vendor/phpmailer/phpmailer/README.md +232 -232
- package/src/api/core/vendor/phpmailer/phpmailer/SECURITY.md +37 -37
- package/src/api/core/vendor/phpmailer/phpmailer/SMTPUTF8.md +48 -48
- package/src/api/core/vendor/phpmailer/phpmailer/VERSION +1 -1
- package/src/api/core/vendor/phpmailer/phpmailer/composer.json +84 -84
- package/src/api/core/vendor/phpmailer/phpmailer/get_oauth_token.php +182 -182
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-af.php +26 -26
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-ar.php +27 -27
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-as.php +35 -35
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-az.php +27 -27
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-ba.php +27 -27
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-be.php +27 -27
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-bg.php +27 -27
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-bn.php +35 -35
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-ca.php +27 -27
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-cs.php +28 -28
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-da.php +39 -39
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-de.php +28 -28
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-el.php +33 -33
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-eo.php +37 -37
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-es.php +38 -38
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-et.php +28 -28
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-fa.php +28 -28
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-fi.php +27 -27
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-fo.php +27 -27
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-fr.php +36 -36
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-gl.php +27 -27
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-he.php +27 -27
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-hi.php +35 -35
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-hr.php +27 -27
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-hu.php +27 -27
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-hy.php +27 -27
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-id.php +31 -31
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-it.php +28 -28
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-ja.php +37 -37
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-ka.php +27 -27
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-ko.php +27 -27
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-ku.php +27 -27
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-lt.php +27 -27
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-lv.php +27 -27
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-mg.php +27 -27
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-mn.php +27 -27
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-ms.php +27 -27
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-nb.php +37 -37
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-nl.php +38 -38
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-pl.php +33 -33
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-pt.php +34 -34
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-pt_br.php +38 -38
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-ro.php +33 -33
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-ru.php +36 -36
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-si.php +34 -34
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-sk.php +30 -30
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-sl.php +36 -36
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-sr.php +28 -28
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-sr_latn.php +28 -28
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-sv.php +27 -27
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-tl.php +28 -28
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-tr.php +38 -38
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-uk.php +28 -28
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-ur.php +30 -30
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-vi.php +27 -27
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-zh.php +29 -29
- package/src/api/core/vendor/phpmailer/phpmailer/language/phpmailer.lang-zh_cn.php +36 -36
- package/src/api/core/vendor/phpmailer/phpmailer/src/DSNConfigurator.php +245 -245
- package/src/api/core/vendor/phpmailer/phpmailer/src/Exception.php +40 -40
- package/src/api/core/vendor/phpmailer/phpmailer/src/OAuth.php +139 -139
- package/src/api/core/vendor/phpmailer/phpmailer/src/OAuthTokenProvider.php +44 -44
- package/src/api/core/vendor/phpmailer/phpmailer/src/PHPMailer.php +5525 -5525
- package/src/api/core/vendor/phpmailer/phpmailer/src/POP3.php +470 -470
- package/src/api/core/vendor/phpmailer/phpmailer/src/SMTP.php +1617 -1617
- package/src/api/core/vendor/phpoption/phpoption/LICENSE +200 -200
- package/src/api/core/vendor/phpoption/phpoption/composer.json +50 -50
- package/src/api/core/vendor/phpoption/phpoption/src/PhpOption/LazyOption.php +175 -175
- package/src/api/core/vendor/phpoption/phpoption/src/PhpOption/None.php +136 -136
- package/src/api/core/vendor/phpoption/phpoption/src/PhpOption/Option.php +434 -434
- package/src/api/core/vendor/phpoption/phpoption/src/PhpOption/Some.php +169 -169
- package/src/api/core/vendor/symfony/polyfill-ctype/Ctype.php +232 -232
- package/src/api/core/vendor/symfony/polyfill-ctype/LICENSE +19 -19
- package/src/api/core/vendor/symfony/polyfill-ctype/README.md +12 -12
- package/src/api/core/vendor/symfony/polyfill-ctype/bootstrap.php +50 -50
- package/src/api/core/vendor/symfony/polyfill-ctype/bootstrap80.php +46 -46
- package/src/api/core/vendor/symfony/polyfill-ctype/composer.json +38 -38
- package/src/api/core/vendor/symfony/polyfill-mbstring/LICENSE +19 -19
- package/src/api/core/vendor/symfony/polyfill-mbstring/Mbstring.php +1077 -1077
- package/src/api/core/vendor/symfony/polyfill-mbstring/README.md +13 -13
- package/src/api/core/vendor/symfony/polyfill-mbstring/Resources/unidata/caseFolding.php +119 -119
- package/src/api/core/vendor/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php +1397 -1397
- package/src/api/core/vendor/symfony/polyfill-mbstring/Resources/unidata/titleCaseRegexp.php +5 -5
- package/src/api/core/vendor/symfony/polyfill-mbstring/Resources/unidata/upperCase.php +1489 -1489
- package/src/api/core/vendor/symfony/polyfill-mbstring/bootstrap.php +171 -171
- package/src/api/core/vendor/symfony/polyfill-mbstring/bootstrap80.php +167 -167
- package/src/api/core/vendor/symfony/polyfill-mbstring/composer.json +39 -39
- package/src/api/core/vendor/symfony/polyfill-php80/LICENSE +19 -19
- package/src/api/core/vendor/symfony/polyfill-php80/Php80.php +115 -115
- package/src/api/core/vendor/symfony/polyfill-php80/PhpToken.php +106 -106
- package/src/api/core/vendor/symfony/polyfill-php80/README.md +25 -25
- package/src/api/core/vendor/symfony/polyfill-php80/Resources/stubs/Attribute.php +31 -31
- package/src/api/core/vendor/symfony/polyfill-php80/Resources/stubs/PhpToken.php +16 -16
- package/src/api/core/vendor/symfony/polyfill-php80/Resources/stubs/Stringable.php +20 -20
- package/src/api/core/vendor/symfony/polyfill-php80/Resources/stubs/UnhandledMatchError.php +16 -16
- package/src/api/core/vendor/symfony/polyfill-php80/Resources/stubs/ValueError.php +16 -16
- package/src/api/core/vendor/symfony/polyfill-php80/bootstrap.php +42 -42
- package/src/api/core/vendor/symfony/polyfill-php80/composer.json +37 -37
- package/src/api/core/vendor/vlucas/phpdotenv/LICENSE +30 -30
- package/src/api/core/vendor/vlucas/phpdotenv/composer.json +60 -60
- package/src/api/core/vendor/vlucas/phpdotenv/src/Dotenv.php +267 -267
- package/src/api/core/vendor/vlucas/phpdotenv/src/Exception/ExceptionInterface.php +12 -12
- package/src/api/core/vendor/vlucas/phpdotenv/src/Exception/InvalidEncodingException.php +12 -12
- package/src/api/core/vendor/vlucas/phpdotenv/src/Exception/InvalidFileException.php +12 -12
- package/src/api/core/vendor/vlucas/phpdotenv/src/Exception/InvalidPathException.php +12 -12
- package/src/api/core/vendor/vlucas/phpdotenv/src/Exception/ValidationException.php +12 -12
- package/src/api/core/vendor/vlucas/phpdotenv/src/Loader/Loader.php +48 -48
- package/src/api/core/vendor/vlucas/phpdotenv/src/Loader/LoaderInterface.php +20 -20
- package/src/api/core/vendor/vlucas/phpdotenv/src/Loader/Resolver.php +65 -65
- package/src/api/core/vendor/vlucas/phpdotenv/src/Parser/Entry.php +59 -59
- package/src/api/core/vendor/vlucas/phpdotenv/src/Parser/EntryParser.php +299 -299
- package/src/api/core/vendor/vlucas/phpdotenv/src/Parser/Lexer.php +58 -58
- package/src/api/core/vendor/vlucas/phpdotenv/src/Parser/Lines.php +127 -127
- package/src/api/core/vendor/vlucas/phpdotenv/src/Parser/Parser.php +53 -53
- package/src/api/core/vendor/vlucas/phpdotenv/src/Parser/ParserInterface.php +19 -19
- package/src/api/core/vendor/vlucas/phpdotenv/src/Parser/Value.php +88 -88
- package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/AdapterInterface.php +15 -15
- package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/ApacheAdapter.php +89 -89
- package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/ArrayAdapter.php +80 -80
- package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/EnvConstAdapter.php +88 -88
- package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/GuardedWriter.php +85 -85
- package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/ImmutableWriter.php +110 -110
- package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/MultiReader.php +48 -48
- package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/MultiWriter.php +64 -64
- package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/PutenvAdapter.php +91 -91
- package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/ReaderInterface.php +17 -17
- package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/ReplacingWriter.php +104 -104
- package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/ServerConstAdapter.php +88 -88
- package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/Adapter/WriterInterface.php +27 -27
- package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/AdapterRepository.php +107 -107
- package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/RepositoryBuilder.php +272 -272
- package/src/api/core/vendor/vlucas/phpdotenv/src/Repository/RepositoryInterface.php +51 -51
- package/src/api/core/vendor/vlucas/phpdotenv/src/Store/File/Paths.php +44 -44
- package/src/api/core/vendor/vlucas/phpdotenv/src/Store/File/Reader.php +81 -81
- package/src/api/core/vendor/vlucas/phpdotenv/src/Store/FileStore.php +72 -72
- package/src/api/core/vendor/vlucas/phpdotenv/src/Store/StoreBuilder.php +141 -141
- package/src/api/core/vendor/vlucas/phpdotenv/src/Store/StoreInterface.php +17 -17
- package/src/api/core/vendor/vlucas/phpdotenv/src/Store/StringStore.php +37 -37
- package/src/api/core/vendor/vlucas/phpdotenv/src/Util/Regex.php +112 -112
- package/src/api/core/vendor/vlucas/phpdotenv/src/Util/Str.php +108 -108
- package/src/api/core/vendor/vlucas/phpdotenv/src/Validator.php +207 -207
- package/src/api/core/vendor/graham-campbell/result-type/.gitattributes +0 -9
- package/src/api/core/vendor/graham-campbell/result-type/.github/CODE_OF_CONDUCT.md +0 -132
- package/src/api/core/vendor/graham-campbell/result-type/.github/CONTRIBUTING.md +0 -31
- package/src/api/core/vendor/graham-campbell/result-type/.github/FUNDING.yml +0 -2
- package/src/api/core/vendor/graham-campbell/result-type/.github/SECURITY.md +0 -14
- package/src/api/core/vendor/graham-campbell/result-type/.github/workflows/stale.yml +0 -11
- package/src/api/core/vendor/graham-campbell/result-type/.github/workflows/tests.yml +0 -40
- package/src/api/core/vendor/graham-campbell/result-type/CHANGELOG.md +0 -53
- package/src/api/core/vendor/graham-campbell/result-type/README.md +0 -42
- package/src/api/core/vendor/graham-campbell/result-type/phpunit.xml.dist +0 -13
- package/src/api/core/vendor/graham-campbell/result-type/tests/ResultTest.php +0 -95
- package/src/api/core/vendor/phpmailer/phpmailer/.codecov.yml +0 -21
- package/src/api/core/vendor/phpmailer/phpmailer/.editorconfig +0 -15
- package/src/api/core/vendor/phpmailer/phpmailer/.gitattributes +0 -17
- package/src/api/core/vendor/phpmailer/phpmailer/.github/FUNDING.yml +0 -6
- package/src/api/core/vendor/phpmailer/phpmailer/.github/ISSUE_TEMPLATE/bug_report.md +0 -23
- package/src/api/core/vendor/phpmailer/phpmailer/.github/actions/build-docs/Dockerfile +0 -15
- package/src/api/core/vendor/phpmailer/phpmailer/.github/actions/build-docs/entrypoint.sh +0 -5
- package/src/api/core/vendor/phpmailer/phpmailer/.github/dependabot.yml +0 -21
- package/src/api/core/vendor/phpmailer/phpmailer/.github/workflows/docs.yaml +0 -30
- package/src/api/core/vendor/phpmailer/phpmailer/.github/workflows/scorecards.yml +0 -61
- package/src/api/core/vendor/phpmailer/phpmailer/.github/workflows/tests.yml +0 -237
- package/src/api/core/vendor/phpmailer/phpmailer/.phan/config.php +0 -41
- package/src/api/core/vendor/phpmailer/phpmailer/UPGRADING.md +0 -125
- package/src/api/core/vendor/phpmailer/phpmailer/changelog.md +0 -1122
- package/src/api/core/vendor/phpmailer/phpmailer/docs/README.md +0 -9
- package/src/api/core/vendor/phpmailer/phpmailer/examples/DKIM_gen_keys.phps +0 -81
- package/src/api/core/vendor/phpmailer/phpmailer/examples/DKIM_sign.phps +0 -46
- package/src/api/core/vendor/phpmailer/phpmailer/examples/README.md +0 -96
- package/src/api/core/vendor/phpmailer/phpmailer/examples/azure_xoauth2.phps +0 -126
- package/src/api/core/vendor/phpmailer/phpmailer/examples/callback.phps +0 -76
- package/src/api/core/vendor/phpmailer/phpmailer/examples/contactform-ajax.phps +0 -146
- package/src/api/core/vendor/phpmailer/phpmailer/examples/contactform.phps +0 -95
- package/src/api/core/vendor/phpmailer/phpmailer/examples/contents.html +0 -17
- package/src/api/core/vendor/phpmailer/phpmailer/examples/contentsutf8.html +0 -23
- package/src/api/core/vendor/phpmailer/phpmailer/examples/exceptions.phps +0 -40
- package/src/api/core/vendor/phpmailer/phpmailer/examples/extending.phps +0 -72
- package/src/api/core/vendor/phpmailer/phpmailer/examples/gmail.phps +0 -106
- package/src/api/core/vendor/phpmailer/phpmailer/examples/gmail_xoauth.phps +0 -121
- package/src/api/core/vendor/phpmailer/phpmailer/examples/images/PHPMailer card logo.afdesign +0 -0
- package/src/api/core/vendor/phpmailer/phpmailer/examples/images/PHPMailer card logo.png +0 -0
- package/src/api/core/vendor/phpmailer/phpmailer/examples/images/PHPMailer card logo.svg +0 -209
- package/src/api/core/vendor/phpmailer/phpmailer/examples/images/phpmailer.png +0 -0
- package/src/api/core/vendor/phpmailer/phpmailer/examples/images/phpmailer_mini.png +0 -0
- package/src/api/core/vendor/phpmailer/phpmailer/examples/mail.phps +0 -35
- package/src/api/core/vendor/phpmailer/phpmailer/examples/mailing_list.phps +0 -96
- package/src/api/core/vendor/phpmailer/phpmailer/examples/pop_before_smtp.phps +0 -60
- package/src/api/core/vendor/phpmailer/phpmailer/examples/send_file_upload.phps +0 -60
- package/src/api/core/vendor/phpmailer/phpmailer/examples/send_multiple_file_upload.phps +0 -60
- package/src/api/core/vendor/phpmailer/phpmailer/examples/sendmail.phps +0 -37
- package/src/api/core/vendor/phpmailer/phpmailer/examples/sendoauth2.phps +0 -100
- package/src/api/core/vendor/phpmailer/phpmailer/examples/simple_contact_form.phps +0 -102
- package/src/api/core/vendor/phpmailer/phpmailer/examples/smime_signed_mail.phps +0 -99
- package/src/api/core/vendor/phpmailer/phpmailer/examples/smtp.phps +0 -62
- package/src/api/core/vendor/phpmailer/phpmailer/examples/smtp_check.phps +0 -60
- package/src/api/core/vendor/phpmailer/phpmailer/examples/smtp_low_memory.phps +0 -117
- package/src/api/core/vendor/phpmailer/phpmailer/examples/smtp_no_auth.phps +0 -53
- package/src/api/core/vendor/phpmailer/phpmailer/examples/ssl_options.phps +0 -81
- package/src/api/core/vendor/phpmailer/phpmailer/phpcs.xml.dist +0 -52
- package/src/api/core/vendor/phpmailer/phpmailer/phpdoc.dist.xml +0 -20
- package/src/api/core/vendor/phpmailer/phpmailer/phpunit.xml.dist +0 -36
- package/src/api/core/vendor/phpmailer/phpmailer/test/DebugLogTestListener.php +0 -47
- package/src/api/core/vendor/phpmailer/phpmailer/test/Fixtures/FileIsAccessibleTest/accessible.txt +0 -1
- package/src/api/core/vendor/phpmailer/phpmailer/test/Fixtures/FileIsAccessibleTest/inaccessible.txt +0 -1
- package/src/api/core/vendor/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-fr.php +0 -10
- package/src/api/core/vendor/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-nl.php +0 -10
- package/src/api/core/vendor/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-xa_scri_cc.php +0 -9
- package/src/api/core/vendor/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-xb_scri.php +0 -9
- package/src/api/core/vendor/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-xc_cc.php +0 -9
- package/src/api/core/vendor/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-xd_cc.php +0 -9
- package/src/api/core/vendor/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-xd_scri.php +0 -9
- package/src/api/core/vendor/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-xe.php +0 -9
- package/src/api/core/vendor/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-xx.php +0 -9
- package/src/api/core/vendor/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-yy.php +0 -16
- package/src/api/core/vendor/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-yz.php +0 -16
- package/src/api/core/vendor/phpmailer/phpmailer/test/Fixtures/LocalizationTest/phpmailer.lang-zz.php +0 -20
- package/src/api/core/vendor/phpmailer/phpmailer/test/Language/TranslationCompletenessTest.php +0 -97
- package/src/api/core/vendor/phpmailer/phpmailer/test/OAuth/OAuthTest.php +0 -76
- package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/AddEmbeddedImageTest.php +0 -178
- package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/AddStringAttachmentTest.php +0 -147
- package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/AddStringEmbeddedImageTest.php +0 -161
- package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/AddrFormatTest.php +0 -70
- package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/AuthCRAMMD5Test.php +0 -48
- package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/CustomHeaderTest.php +0 -285
- package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/DKIMTest.php +0 -258
- package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/DKIMWithoutExceptionsTest.php +0 -46
- package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/DSNConfiguratorTest.php +0 -221
- package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/EncodeQTest.php +0 -110
- package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/EncodeStringTest.php +0 -135
- package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/FileIsAccessibleTest.php +0 -103
- package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/FilenameToTypeTest.php +0 -74
- package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/GenerateIdTest.php +0 -75
- package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/GetLastMessageIDTest.php +0 -110
- package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/HasLineLongerThanMaxTest.php +0 -158
- package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/Html2TextTest.php +0 -231
- package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/ICalTest.php +0 -126
- package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/IsPermittedPathTest.php +0 -108
- package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/IsValidHostTest.php +0 -107
- package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/LocalizationTest.php +0 -505
- package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/MailTransportTest.php +0 -261
- package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/MbPathinfoTest.php +0 -171
- package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/MimeTypesTest.php +0 -70
- package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/NormalizeBreaksTest.php +0 -111
- package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/PHPMailerTest.php +0 -1388
- package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/ParseAddressesTest.php +0 -321
- package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/PunyencodeAddressTest.php +0 -141
- package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/QuotedStringTest.php +0 -70
- package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/ReplyToGetSetClearTest.php +0 -444
- package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/SetErrorTest.php +0 -154
- package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/SetFromTest.php +0 -202
- package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/SetTest.php +0 -81
- package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/SetWordWrapTest.php +0 -120
- package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/Utf8CharBoundaryTest.php +0 -66
- package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/ValidateAddressCustomValidatorTest.php +0 -116
- package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/ValidateAddressTest.php +0 -485
- package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/WrapTextTest.php +0 -125
- package/src/api/core/vendor/phpmailer/phpmailer/test/PHPMailer/XMailerTest.php +0 -75
- package/src/api/core/vendor/phpmailer/phpmailer/test/POP3/PopBeforeSmtpTest.php +0 -139
- package/src/api/core/vendor/phpmailer/phpmailer/test/PreSendTestCase.php +0 -46
- package/src/api/core/vendor/phpmailer/phpmailer/test/Security/DenialOfServiceVectorsTest.php +0 -52
- package/src/api/core/vendor/phpmailer/phpmailer/test/SendTestCase.php +0 -126
- package/src/api/core/vendor/phpmailer/phpmailer/test/TestCase.php +0 -392
- package/src/api/core/vendor/phpmailer/phpmailer/test/fakepopserver.sh +0 -126
- package/src/api/core/vendor/phpmailer/phpmailer/test/fakesendmail.sh +0 -22
- package/src/api/core/vendor/phpmailer/phpmailer/test/runfakepopserver.sh +0 -12
- package/src/api/core/vendor/phpmailer/phpmailer/test/testbootstrap-dist.php +0 -8
- package/src/api/core/vendor/phpmailer/phpmailer/test/validators.php +0 -12
- package/src/api/core/vendor/phpoption/phpoption/.gitattributes +0 -13
- package/src/api/core/vendor/phpoption/phpoption/.github/CODE_OF_CONDUCT.md +0 -132
- package/src/api/core/vendor/phpoption/phpoption/.github/CONTRIBUTING.md +0 -30
- package/src/api/core/vendor/phpoption/phpoption/.github/FUNDING.yml +0 -2
- package/src/api/core/vendor/phpoption/phpoption/.github/SECURITY.md +0 -14
- package/src/api/core/vendor/phpoption/phpoption/.github/workflows/static.yml +0 -40
- package/src/api/core/vendor/phpoption/phpoption/.github/workflows/tests.yml +0 -40
- package/src/api/core/vendor/phpoption/phpoption/Makefile +0 -17
- package/src/api/core/vendor/phpoption/phpoption/README.md +0 -201
- package/src/api/core/vendor/phpoption/phpoption/phpstan-baseline.neon +0 -44
- package/src/api/core/vendor/phpoption/phpoption/phpstan.neon.dist +0 -7
- package/src/api/core/vendor/phpoption/phpoption/phpunit.xml.dist +0 -13
- package/src/api/core/vendor/phpoption/phpoption/tests/PhpOption/Tests/EnsureTest.php +0 -72
- package/src/api/core/vendor/phpoption/phpoption/tests/PhpOption/Tests/LazyOptionTest.php +0 -357
- package/src/api/core/vendor/phpoption/phpoption/tests/PhpOption/Tests/NoneTest.php +0 -153
- package/src/api/core/vendor/phpoption/phpoption/tests/PhpOption/Tests/OptionTest.php +0 -166
- package/src/api/core/vendor/phpoption/phpoption/tests/PhpOption/Tests/SomeTest.php +0 -194
- package/src/api/core/vendor/phpoption/phpoption/tests/bootstrap.php +0 -8
- package/src/api/core/vendor/phpoption/phpoption/vendor-bin/phpstan/composer.json +0 -8
- package/src/api/core/vendor/vlucas/phpdotenv/.editorconfig +0 -15
- package/src/api/core/vendor/vlucas/phpdotenv/.gitattributes +0 -15
- package/src/api/core/vendor/vlucas/phpdotenv/.github/CODE_OF_CONDUCT.md +0 -132
- package/src/api/core/vendor/vlucas/phpdotenv/.github/CONTRIBUTING.md +0 -30
- package/src/api/core/vendor/vlucas/phpdotenv/.github/FUNDING.yml +0 -2
- package/src/api/core/vendor/vlucas/phpdotenv/.github/SECURITY.md +0 -14
- package/src/api/core/vendor/vlucas/phpdotenv/.github/workflows/static.yml +0 -40
- package/src/api/core/vendor/vlucas/phpdotenv/.github/workflows/tests.yml +0 -70
- package/src/api/core/vendor/vlucas/phpdotenv/Makefile +0 -17
- package/src/api/core/vendor/vlucas/phpdotenv/README.md +0 -370
- package/src/api/core/vendor/vlucas/phpdotenv/UPGRADING.md +0 -196
- package/src/api/core/vendor/vlucas/phpdotenv/phpstan-baseline.neon +0 -157
- package/src/api/core/vendor/vlucas/phpdotenv/phpstan.neon.dist +0 -7
- package/src/api/core/vendor/vlucas/phpdotenv/phpunit.xml.dist +0 -13
- package/src/api/core/vendor/vlucas/phpdotenv/tests/Dotenv/DotenvTest.php +0 -387
- package/src/api/core/vendor/vlucas/phpdotenv/tests/Dotenv/Loader/LoaderTest.php +0 -86
- package/src/api/core/vendor/vlucas/phpdotenv/tests/Dotenv/Parser/EntryParserTest.php +0 -234
- package/src/api/core/vendor/vlucas/phpdotenv/tests/Dotenv/Parser/LexerTest.php +0 -40
- package/src/api/core/vendor/vlucas/phpdotenv/tests/Dotenv/Parser/LinesTest.php +0 -53
- package/src/api/core/vendor/vlucas/phpdotenv/tests/Dotenv/Parser/ParserTest.php +0 -98
- package/src/api/core/vendor/vlucas/phpdotenv/tests/Dotenv/Repository/Adapter/ArrayAdapterTest.php +0 -57
- package/src/api/core/vendor/vlucas/phpdotenv/tests/Dotenv/Repository/Adapter/EnvConstAdapterTest.php +0 -75
- package/src/api/core/vendor/vlucas/phpdotenv/tests/Dotenv/Repository/Adapter/PutenvAdapterTest.php +0 -52
- package/src/api/core/vendor/vlucas/phpdotenv/tests/Dotenv/Repository/Adapter/ServerConstAdapterTest.php +0 -75
- package/src/api/core/vendor/vlucas/phpdotenv/tests/Dotenv/Repository/RepositoryTest.php +0 -305
- package/src/api/core/vendor/vlucas/phpdotenv/tests/Dotenv/Store/StoreTest.php +0 -141
- package/src/api/core/vendor/vlucas/phpdotenv/tests/Dotenv/ValidatorTest.php +0 -479
- package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/.env +0 -5
- package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/assertions.env +0 -18
- package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/booleans.env +0 -33
- package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/commented.env +0 -15
- package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/empty.env +0 -1
- package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/example.env +0 -1
- package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/exported.env +0 -7
- package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/immutable.env +0 -1
- package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/integers.env +0 -17
- package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/large.env +0 -2
- package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/multibyte.env +0 -3
- package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/multiline.env +0 -14
- package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/multiple.env +0 -4
- package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/mutable.env +0 -1
- package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/nested.env +0 -15
- package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/quoted.env +0 -11
- package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/specialchars.env +0 -8
- package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/unicodevarnames.env +0 -2
- package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/utf8-with-bom-encoding.env +0 -3
- package/src/api/core/vendor/vlucas/phpdotenv/tests/fixtures/env/windows.env +0 -1
- package/src/api/core/vendor/vlucas/phpdotenv/vendor-bin/phpstan/composer.json +0 -15
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
<?php
|
|
2
|
-
|
|
3
|
-
declare(strict_types=1);
|
|
4
|
-
|
|
5
|
-
/*
|
|
6
|
-
* This file is part of Result Type.
|
|
7
|
-
*
|
|
8
|
-
* (c) Graham Campbell <hello@gjcampbell.co.uk>
|
|
9
|
-
*
|
|
10
|
-
* For the full copyright and license information, please view the LICENSE
|
|
11
|
-
* file that was distributed with this source code.
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
namespace GrahamCampbell\ResultType;
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* @template T
|
|
18
|
-
* @template E
|
|
19
|
-
*/
|
|
20
|
-
abstract class Result
|
|
21
|
-
{
|
|
22
|
-
/**
|
|
23
|
-
* Get the success option value.
|
|
24
|
-
*
|
|
25
|
-
* @return \PhpOption\Option<T>
|
|
26
|
-
*/
|
|
27
|
-
abstract public function success();
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Map over the success value.
|
|
31
|
-
*
|
|
32
|
-
* @template S
|
|
33
|
-
*
|
|
34
|
-
* @param callable(T):S $f
|
|
35
|
-
*
|
|
36
|
-
* @return \GrahamCampbell\ResultType\Result<S,E>
|
|
37
|
-
*/
|
|
38
|
-
abstract public function map(callable $f);
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Flat map over the success value.
|
|
42
|
-
*
|
|
43
|
-
* @template S
|
|
44
|
-
* @template F
|
|
45
|
-
*
|
|
46
|
-
* @param callable(T):\GrahamCampbell\ResultType\Result<S,F> $f
|
|
47
|
-
*
|
|
48
|
-
* @return \GrahamCampbell\ResultType\Result<S,F>
|
|
49
|
-
*/
|
|
50
|
-
abstract public function flatMap(callable $f);
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Get the error option value.
|
|
54
|
-
*
|
|
55
|
-
* @return \PhpOption\Option<E>
|
|
56
|
-
*/
|
|
57
|
-
abstract public function error();
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Map over the error value.
|
|
61
|
-
*
|
|
62
|
-
* @template F
|
|
63
|
-
*
|
|
64
|
-
* @param callable(E):F $f
|
|
65
|
-
*
|
|
66
|
-
* @return \GrahamCampbell\ResultType\Result<T,F>
|
|
67
|
-
*/
|
|
68
|
-
abstract public function mapError(callable $f);
|
|
69
|
-
}
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
declare(strict_types=1);
|
|
4
|
+
|
|
5
|
+
/*
|
|
6
|
+
* This file is part of Result Type.
|
|
7
|
+
*
|
|
8
|
+
* (c) Graham Campbell <hello@gjcampbell.co.uk>
|
|
9
|
+
*
|
|
10
|
+
* For the full copyright and license information, please view the LICENSE
|
|
11
|
+
* file that was distributed with this source code.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
namespace GrahamCampbell\ResultType;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @template T
|
|
18
|
+
* @template E
|
|
19
|
+
*/
|
|
20
|
+
abstract class Result
|
|
21
|
+
{
|
|
22
|
+
/**
|
|
23
|
+
* Get the success option value.
|
|
24
|
+
*
|
|
25
|
+
* @return \PhpOption\Option<T>
|
|
26
|
+
*/
|
|
27
|
+
abstract public function success();
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Map over the success value.
|
|
31
|
+
*
|
|
32
|
+
* @template S
|
|
33
|
+
*
|
|
34
|
+
* @param callable(T):S $f
|
|
35
|
+
*
|
|
36
|
+
* @return \GrahamCampbell\ResultType\Result<S,E>
|
|
37
|
+
*/
|
|
38
|
+
abstract public function map(callable $f);
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Flat map over the success value.
|
|
42
|
+
*
|
|
43
|
+
* @template S
|
|
44
|
+
* @template F
|
|
45
|
+
*
|
|
46
|
+
* @param callable(T):\GrahamCampbell\ResultType\Result<S,F> $f
|
|
47
|
+
*
|
|
48
|
+
* @return \GrahamCampbell\ResultType\Result<S,F>
|
|
49
|
+
*/
|
|
50
|
+
abstract public function flatMap(callable $f);
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Get the error option value.
|
|
54
|
+
*
|
|
55
|
+
* @return \PhpOption\Option<E>
|
|
56
|
+
*/
|
|
57
|
+
abstract public function error();
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Map over the error value.
|
|
61
|
+
*
|
|
62
|
+
* @template F
|
|
63
|
+
*
|
|
64
|
+
* @param callable(E):F $f
|
|
65
|
+
*
|
|
66
|
+
* @return \GrahamCampbell\ResultType\Result<T,F>
|
|
67
|
+
*/
|
|
68
|
+
abstract public function mapError(callable $f);
|
|
69
|
+
}
|
|
@@ -1,120 +1,120 @@
|
|
|
1
|
-
<?php
|
|
2
|
-
|
|
3
|
-
declare(strict_types=1);
|
|
4
|
-
|
|
5
|
-
/*
|
|
6
|
-
* This file is part of Result Type.
|
|
7
|
-
*
|
|
8
|
-
* (c) Graham Campbell <hello@gjcampbell.co.uk>
|
|
9
|
-
*
|
|
10
|
-
* For the full copyright and license information, please view the LICENSE
|
|
11
|
-
* file that was distributed with this source code.
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
namespace GrahamCampbell\ResultType;
|
|
15
|
-
|
|
16
|
-
use PhpOption\None;
|
|
17
|
-
use PhpOption\Some;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* @template T
|
|
21
|
-
* @template E
|
|
22
|
-
*
|
|
23
|
-
* @extends \GrahamCampbell\ResultType\Result<T,E>
|
|
24
|
-
*/
|
|
25
|
-
final class Success extends Result
|
|
26
|
-
{
|
|
27
|
-
/**
|
|
28
|
-
* @var T
|
|
29
|
-
*/
|
|
30
|
-
private $value;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Internal constructor for a success value.
|
|
34
|
-
*
|
|
35
|
-
* @param T $value
|
|
36
|
-
*
|
|
37
|
-
* @return void
|
|
38
|
-
*/
|
|
39
|
-
private function __construct($value)
|
|
40
|
-
{
|
|
41
|
-
$this->value = $value;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Create a new error value.
|
|
46
|
-
*
|
|
47
|
-
* @template S
|
|
48
|
-
*
|
|
49
|
-
* @param S $value
|
|
50
|
-
*
|
|
51
|
-
* @return \GrahamCampbell\ResultType\Result<S,E>
|
|
52
|
-
*/
|
|
53
|
-
public static function create($value)
|
|
54
|
-
{
|
|
55
|
-
return new self($value);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Get the success option value.
|
|
60
|
-
*
|
|
61
|
-
* @return \PhpOption\Option<T>
|
|
62
|
-
*/
|
|
63
|
-
public function success()
|
|
64
|
-
{
|
|
65
|
-
return Some::create($this->value);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Map over the success value.
|
|
70
|
-
*
|
|
71
|
-
* @template S
|
|
72
|
-
*
|
|
73
|
-
* @param callable(T):S $f
|
|
74
|
-
*
|
|
75
|
-
* @return \GrahamCampbell\ResultType\Result<S,E>
|
|
76
|
-
*/
|
|
77
|
-
public function map(callable $f)
|
|
78
|
-
{
|
|
79
|
-
return self::create($f($this->value));
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Flat map over the success value.
|
|
84
|
-
*
|
|
85
|
-
* @template S
|
|
86
|
-
* @template F
|
|
87
|
-
*
|
|
88
|
-
* @param callable(T):\GrahamCampbell\ResultType\Result<S,F> $f
|
|
89
|
-
*
|
|
90
|
-
* @return \GrahamCampbell\ResultType\Result<S,F>
|
|
91
|
-
*/
|
|
92
|
-
public function flatMap(callable $f)
|
|
93
|
-
{
|
|
94
|
-
return $f($this->value);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* Get the error option value.
|
|
99
|
-
*
|
|
100
|
-
* @return \PhpOption\Option<E>
|
|
101
|
-
*/
|
|
102
|
-
public function error()
|
|
103
|
-
{
|
|
104
|
-
return None::create();
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* Map over the error value.
|
|
109
|
-
*
|
|
110
|
-
* @template F
|
|
111
|
-
*
|
|
112
|
-
* @param callable(E):F $f
|
|
113
|
-
*
|
|
114
|
-
* @return \GrahamCampbell\ResultType\Result<T,F>
|
|
115
|
-
*/
|
|
116
|
-
public function mapError(callable $f)
|
|
117
|
-
{
|
|
118
|
-
return self::create($this->value);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
declare(strict_types=1);
|
|
4
|
+
|
|
5
|
+
/*
|
|
6
|
+
* This file is part of Result Type.
|
|
7
|
+
*
|
|
8
|
+
* (c) Graham Campbell <hello@gjcampbell.co.uk>
|
|
9
|
+
*
|
|
10
|
+
* For the full copyright and license information, please view the LICENSE
|
|
11
|
+
* file that was distributed with this source code.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
namespace GrahamCampbell\ResultType;
|
|
15
|
+
|
|
16
|
+
use PhpOption\None;
|
|
17
|
+
use PhpOption\Some;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @template T
|
|
21
|
+
* @template E
|
|
22
|
+
*
|
|
23
|
+
* @extends \GrahamCampbell\ResultType\Result<T,E>
|
|
24
|
+
*/
|
|
25
|
+
final class Success extends Result
|
|
26
|
+
{
|
|
27
|
+
/**
|
|
28
|
+
* @var T
|
|
29
|
+
*/
|
|
30
|
+
private $value;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Internal constructor for a success value.
|
|
34
|
+
*
|
|
35
|
+
* @param T $value
|
|
36
|
+
*
|
|
37
|
+
* @return void
|
|
38
|
+
*/
|
|
39
|
+
private function __construct($value)
|
|
40
|
+
{
|
|
41
|
+
$this->value = $value;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Create a new error value.
|
|
46
|
+
*
|
|
47
|
+
* @template S
|
|
48
|
+
*
|
|
49
|
+
* @param S $value
|
|
50
|
+
*
|
|
51
|
+
* @return \GrahamCampbell\ResultType\Result<S,E>
|
|
52
|
+
*/
|
|
53
|
+
public static function create($value)
|
|
54
|
+
{
|
|
55
|
+
return new self($value);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Get the success option value.
|
|
60
|
+
*
|
|
61
|
+
* @return \PhpOption\Option<T>
|
|
62
|
+
*/
|
|
63
|
+
public function success()
|
|
64
|
+
{
|
|
65
|
+
return Some::create($this->value);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Map over the success value.
|
|
70
|
+
*
|
|
71
|
+
* @template S
|
|
72
|
+
*
|
|
73
|
+
* @param callable(T):S $f
|
|
74
|
+
*
|
|
75
|
+
* @return \GrahamCampbell\ResultType\Result<S,E>
|
|
76
|
+
*/
|
|
77
|
+
public function map(callable $f)
|
|
78
|
+
{
|
|
79
|
+
return self::create($f($this->value));
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Flat map over the success value.
|
|
84
|
+
*
|
|
85
|
+
* @template S
|
|
86
|
+
* @template F
|
|
87
|
+
*
|
|
88
|
+
* @param callable(T):\GrahamCampbell\ResultType\Result<S,F> $f
|
|
89
|
+
*
|
|
90
|
+
* @return \GrahamCampbell\ResultType\Result<S,F>
|
|
91
|
+
*/
|
|
92
|
+
public function flatMap(callable $f)
|
|
93
|
+
{
|
|
94
|
+
return $f($this->value);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Get the error option value.
|
|
99
|
+
*
|
|
100
|
+
* @return \PhpOption\Option<E>
|
|
101
|
+
*/
|
|
102
|
+
public function error()
|
|
103
|
+
{
|
|
104
|
+
return None::create();
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Map over the error value.
|
|
109
|
+
*
|
|
110
|
+
* @template F
|
|
111
|
+
*
|
|
112
|
+
* @param callable(E):F $f
|
|
113
|
+
*
|
|
114
|
+
* @return \GrahamCampbell\ResultType\Result<T,F>
|
|
115
|
+
*/
|
|
116
|
+
public function mapError(callable $f)
|
|
117
|
+
{
|
|
118
|
+
return self::create($this->value);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
GPL Cooperation Commitment
|
|
2
|
-
Version 1.0
|
|
3
|
-
|
|
4
|
-
Before filing or continuing to prosecute any legal proceeding or claim
|
|
5
|
-
(other than a Defensive Action) arising from termination of a Covered
|
|
6
|
-
License, we commit to extend to the person or entity ('you') accused
|
|
7
|
-
of violating the Covered License the following provisions regarding
|
|
8
|
-
cure and reinstatement, taken from GPL version 3. As used here, the
|
|
9
|
-
term 'this License' refers to the specific Covered License being
|
|
10
|
-
enforced.
|
|
11
|
-
|
|
12
|
-
However, if you cease all violation of this License, then your
|
|
13
|
-
license from a particular copyright holder is reinstated (a)
|
|
14
|
-
provisionally, unless and until the copyright holder explicitly
|
|
15
|
-
and finally terminates your license, and (b) permanently, if the
|
|
16
|
-
copyright holder fails to notify you of the violation by some
|
|
17
|
-
reasonable means prior to 60 days after the cessation.
|
|
18
|
-
|
|
19
|
-
Moreover, your license from a particular copyright holder is
|
|
20
|
-
reinstated permanently if the copyright holder notifies you of the
|
|
21
|
-
violation by some reasonable means, this is the first time you
|
|
22
|
-
have received notice of violation of this License (for any work)
|
|
23
|
-
from that copyright holder, and you cure the violation prior to 30
|
|
24
|
-
days after your receipt of the notice.
|
|
25
|
-
|
|
26
|
-
We intend this Commitment to be irrevocable, and binding and
|
|
27
|
-
enforceable against us and assignees of or successors to our
|
|
28
|
-
copyrights.
|
|
29
|
-
|
|
30
|
-
Definitions
|
|
31
|
-
|
|
32
|
-
'Covered License' means the GNU General Public License, version 2
|
|
33
|
-
(GPLv2), the GNU Lesser General Public License, version 2.1
|
|
34
|
-
(LGPLv2.1), or the GNU Library General Public License, version 2
|
|
35
|
-
(LGPLv2), all as published by the Free Software Foundation.
|
|
36
|
-
|
|
37
|
-
'Defensive Action' means a legal proceeding or claim that We bring
|
|
38
|
-
against you in response to a prior proceeding or claim initiated by
|
|
39
|
-
you or your affiliate.
|
|
40
|
-
|
|
41
|
-
'We' means each contributor to this repository as of the date of
|
|
42
|
-
inclusion of this file, including subsidiaries of a corporate
|
|
43
|
-
contributor.
|
|
44
|
-
|
|
45
|
-
This work is available under a Creative Commons Attribution-ShareAlike
|
|
46
|
-
4.0 International license (https://creativecommons.org/licenses/by-sa/4.0/).
|
|
1
|
+
GPL Cooperation Commitment
|
|
2
|
+
Version 1.0
|
|
3
|
+
|
|
4
|
+
Before filing or continuing to prosecute any legal proceeding or claim
|
|
5
|
+
(other than a Defensive Action) arising from termination of a Covered
|
|
6
|
+
License, we commit to extend to the person or entity ('you') accused
|
|
7
|
+
of violating the Covered License the following provisions regarding
|
|
8
|
+
cure and reinstatement, taken from GPL version 3. As used here, the
|
|
9
|
+
term 'this License' refers to the specific Covered License being
|
|
10
|
+
enforced.
|
|
11
|
+
|
|
12
|
+
However, if you cease all violation of this License, then your
|
|
13
|
+
license from a particular copyright holder is reinstated (a)
|
|
14
|
+
provisionally, unless and until the copyright holder explicitly
|
|
15
|
+
and finally terminates your license, and (b) permanently, if the
|
|
16
|
+
copyright holder fails to notify you of the violation by some
|
|
17
|
+
reasonable means prior to 60 days after the cessation.
|
|
18
|
+
|
|
19
|
+
Moreover, your license from a particular copyright holder is
|
|
20
|
+
reinstated permanently if the copyright holder notifies you of the
|
|
21
|
+
violation by some reasonable means, this is the first time you
|
|
22
|
+
have received notice of violation of this License (for any work)
|
|
23
|
+
from that copyright holder, and you cure the violation prior to 30
|
|
24
|
+
days after your receipt of the notice.
|
|
25
|
+
|
|
26
|
+
We intend this Commitment to be irrevocable, and binding and
|
|
27
|
+
enforceable against us and assignees of or successors to our
|
|
28
|
+
copyrights.
|
|
29
|
+
|
|
30
|
+
Definitions
|
|
31
|
+
|
|
32
|
+
'Covered License' means the GNU General Public License, version 2
|
|
33
|
+
(GPLv2), the GNU Lesser General Public License, version 2.1
|
|
34
|
+
(LGPLv2.1), or the GNU Library General Public License, version 2
|
|
35
|
+
(LGPLv2), all as published by the Free Software Foundation.
|
|
36
|
+
|
|
37
|
+
'Defensive Action' means a legal proceeding or claim that We bring
|
|
38
|
+
against you in response to a prior proceeding or claim initiated by
|
|
39
|
+
you or your affiliate.
|
|
40
|
+
|
|
41
|
+
'We' means each contributor to this repository as of the date of
|
|
42
|
+
inclusion of this file, including subsidiaries of a corporate
|
|
43
|
+
contributor.
|
|
44
|
+
|
|
45
|
+
This work is available under a Creative Commons Attribution-ShareAlike
|
|
46
|
+
4.0 International license (https://creativecommons.org/licenses/by-sa/4.0/).
|