Creative Mail – Easier WordPress & WooCommerce Email Marketing - Version 1.6.2

Version Description

Download this release

Release Info

Developer constantcontact
Plugin Icon 128x128 Creative Mail – Easier WordPress & WooCommerce Email Marketing
Version 1.6.2
Comparing to
See all releases

Code changes from version 1.6.1 to 1.6.2

Files changed (51) hide show
  1. CHANGELOG.md +4 -0
  2. README.md +2 -1
  3. assets/css/admin.css +17 -2
  4. composer.json +1 -11
  5. composer.lock +2 -323
  6. creative-mail-plugin.php +3 -3
  7. readme.txt +2 -1
  8. src/Helpers/ValidationHelper.php +0 -12
  9. src/Managers/IntegrationManager.php +0 -2
  10. src/Modules/Contacts/Handlers/FormidablePluginHandler.php +82 -12
  11. src/Modules/Contacts/Models/FormidableContactForm.php +1 -0
  12. src/Modules/WooCommerce/Models/WCStoreInformation.php +61 -1
  13. src/views/available-integrations.php +16 -5
  14. src/views/settings.php +12 -11
  15. vendor/autoload.php +1 -1
  16. vendor/bin/phpstan +0 -8
  17. vendor/bin/phpstan.phar +0 -0
  18. vendor/composer/autoload_classmap.php +0 -31
  19. vendor/composer/autoload_files.php +0 -11
  20. vendor/composer/autoload_psr4.php +0 -3
  21. vendor/composer/autoload_real.php +4 -22
  22. vendor/composer/autoload_static.php +5 -62
  23. vendor/composer/installed.json +0 -332
  24. vendor/firebase/php-jwt/.github/actions/entrypoint.sh +0 -18
  25. vendor/firebase/php-jwt/.github/workflows/tests.yml +0 -77
  26. vendor/phpstan/extension-installer/.github/workflows/build.yml +0 -113
  27. vendor/phpstan/extension-installer/.github/workflows/release.yml +0 -33
  28. vendor/phpstan/extension-installer/.gitignore +0 -3
  29. vendor/phpstan/extension-installer/LICENSE +0 -21
  30. vendor/phpstan/extension-installer/README.md +0 -73
  31. vendor/phpstan/extension-installer/build-cs/.gitignore +0 -2
  32. vendor/phpstan/extension-installer/build-cs/composer.json +0 -7
  33. vendor/phpstan/extension-installer/build.xml +0 -90
  34. vendor/phpstan/extension-installer/composer.json +0 -30
  35. vendor/phpstan/extension-installer/phpcs.xml +0 -57
  36. vendor/phpstan/extension-installer/phpstan.neon +0 -2
  37. vendor/phpstan/extension-installer/src/Plugin.php +0 -149
  38. vendor/phpstan/phpstan/LICENSE +0 -21
  39. vendor/phpstan/phpstan/README.md +0 -101
  40. vendor/phpstan/phpstan/bootstrap.php +0 -60
  41. vendor/phpstan/phpstan/composer.json +0 -19
  42. vendor/phpstan/phpstan/conf/bleedingEdge.neon +0 -2
  43. vendor/phpstan/phpstan/phpstan +0 -8
  44. vendor/phpstan/phpstan/phpstan.phar +0 -0
  45. vendor/phpstan/phpstan/phpstan.phar.asc +0 -16
  46. vendor/symfony/polyfill-php73/LICENSE +0 -19
  47. vendor/symfony/polyfill-php73/Php73.php +0 -43
  48. vendor/symfony/polyfill-php73/README.md +0 -18
  49. vendor/symfony/polyfill-php73/Resources/stubs/JsonException.php +0 -16
  50. vendor/symfony/polyfill-php73/bootstrap.php +0 -31
  51. vendor/symfony/polyfill-php73/composer.json +0 -36
CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
  Changelog
2
  =========
3
 
 
 
 
 
4
  #### 1.6.1 - October 28th, 2022
5
  - Security update
6
 
1
  Changelog
2
  =========
3
 
4
+ #### 1.6.2 - November 2nd, 2022
5
+ - Security updates
6
+ - Removal of Unsupported Plugin (Caldera Forms)
7
+
8
  #### 1.6.1 - October 28th, 2022
9
  - Security update
10
 
README.md CHANGED
@@ -3,7 +3,7 @@ Contributors: Constant Contact
3
  Tags: email, marketing, newsletter, subscribe, contact form, constant contact, crm, automations, ecommerce, promotion, offers, retargeting
4
  Requires at least: 4.9
5
  Tested up to: 6.0.2
6
- Stable tag: 1.6.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  Requires PHP: 7.2
@@ -93,6 +93,7 @@ Creative Mail by Constant Contact [Privacy Notice](https://www.endurance.com/pri
93
  6. Enhance your brand with LogoBuilder
94
 
95
  == Changelog ==
 
96
  * 1.6.1 - Security update
97
  * 1.6.0 - Security update, Bug fixes and Support to sync Address Fields for Contact Form 7
98
  * 1.5.4 - Migration to WordPress version 6.0.2 and Checkout mail templates update
3
  Tags: email, marketing, newsletter, subscribe, contact form, constant contact, crm, automations, ecommerce, promotion, offers, retargeting
4
  Requires at least: 4.9
5
  Tested up to: 6.0.2
6
+ Stable tag: 1.6.2
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  Requires PHP: 7.2
93
  6. Enhance your brand with LogoBuilder
94
 
95
  == Changelog ==
96
+ * 1.6.2 - Security updates and removal of Unsupported Plugin (Caldera Forms)
97
  * 1.6.1 - Security update
98
  * 1.6.0 - Security update, Bug fixes and Support to sync Address Fields for Contact Form 7
99
  * 1.5.4 - Migration to WordPress version 6.0.2 and Checkout mail templates update
assets/css/admin.css CHANGED
@@ -830,7 +830,6 @@ p.ce4wp-subtitle {
830
  display: flex;
831
  }
832
  }
833
-
834
  @media (max-width:450px) {
835
  .ce4wp-grid-item-card {
836
  margin: 0 !important;
@@ -923,7 +922,6 @@ p.ce4wp-subtitle {
923
  right: 0px;
924
  bottom: 0px;
925
  top: 0px;
926
- left: 0px;
927
  }
928
  .ce4wp-dialog-root * {
929
  box-sizing: border-box;
@@ -1339,3 +1337,20 @@ p.ce4wp-subtitle {
1339
  stroke-dashoffset: -125px;
1340
  }
1341
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
830
  display: flex;
831
  }
832
  }
 
833
  @media (max-width:450px) {
834
  .ce4wp-grid-item-card {
835
  margin: 0 !important;
922
  right: 0px;
923
  bottom: 0px;
924
  top: 0px;
 
925
  }
926
  .ce4wp-dialog-root * {
927
  box-sizing: border-box;
1337
  stroke-dashoffset: -125px;
1338
  }
1339
  }
1340
+ @media (max-width: 782px) {
1341
+ .ce4wp-dialog-root {
1342
+ left: -25px;
1343
+ right: -25px;
1344
+ }
1345
+ }
1346
+ @media (min-width: 783px) and (max-width: 960px) {
1347
+ .ce4wp-dialog-root {
1348
+ left: 10px;
1349
+ right: -25px;
1350
+ }
1351
+ }
1352
+ @media (min-width: 960px) {
1353
+ .ce4wp-dialog-root {
1354
+ left: 160px;
1355
+ }
1356
+ }
composer.json CHANGED
@@ -1,10 +1,6 @@
1
  {
2
  "config": {
3
- "optimize-autoloader": true,
4
- "allow-plugins": {
5
- "dealerdirect/phpcodesniffer-composer-installer": true,
6
- "phpstan/extension-installer": true
7
- }
8
  },
9
  "require": {
10
  "defuse/php-encryption": "^2.2",
@@ -17,12 +13,6 @@
17
  "squizlabs/php_codesniffer": "*",
18
  "phpcompatibility/php-compatibility": "^9.3"
19
  },
20
- "require-dev": {
21
- "phpstan/phpstan": "^1.8",
22
- "szepeviktor/phpstan-wordpress": "^1.1",
23
- "phpstan/extension-installer": "^1.1",
24
- "php-stubs/woocommerce-stubs": "^6.9"
25
- },
26
  "autoload": {
27
  "psr-4": {
28
  "CreativeMail\\Managers\\": "src/managers/",
1
  {
2
  "config": {
3
+ "optimize-autoloader": true
 
 
 
 
4
  },
5
  "require": {
6
  "defuse/php-encryption": "^2.2",
13
  "squizlabs/php_codesniffer": "*",
14
  "phpcompatibility/php-compatibility": "^9.3"
15
  },
 
 
 
 
 
 
16
  "autoload": {
17
  "psr-4": {
18
  "CreativeMail\\Managers\\": "src/managers/",
composer.lock CHANGED
@@ -4,7 +4,7 @@
4
  "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
5
  "This file is @generated automatically"
6
  ],
7
- "content-hash": "a595f3993052611cb44112c86eb8ba52",
8
  "packages": [
9
  {
10
  "name": "a5hleyrich/wp-background-processing",
@@ -365,328 +365,7 @@
365
  "time": "2022-06-18T07:21:10+00:00"
366
  }
367
  ],
368
- "packages-dev": [
369
- {
370
- "name": "php-stubs/woocommerce-stubs",
371
- "version": "v6.9.4",
372
- "source": {
373
- "type": "git",
374
- "url": "https://github.com/php-stubs/woocommerce-stubs.git",
375
- "reference": "823aa38297d9013b96c5eab2846c260bbe12b975"
376
- },
377
- "dist": {
378
- "type": "zip",
379
- "url": "https://api.github.com/repos/php-stubs/woocommerce-stubs/zipball/823aa38297d9013b96c5eab2846c260bbe12b975",
380
- "reference": "823aa38297d9013b96c5eab2846c260bbe12b975",
381
- "shasum": ""
382
- },
383
- "require": {
384
- "php-stubs/wordpress-stubs": "^5.3 || ^6.0"
385
- },
386
- "require-dev": {
387
- "php": "~7.1 || ~8.0",
388
- "php-stubs/generator": "^0.8.0"
389
- },
390
- "suggest": {
391
- "symfony/polyfill-php73": "Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions",
392
- "szepeviktor/phpstan-wordpress": "WordPress extensions for PHPStan"
393
- },
394
- "type": "library",
395
- "notification-url": "https://packagist.org/downloads/",
396
- "license": [
397
- "MIT"
398
- ],
399
- "description": "WooCommerce function and class declaration stubs for static analysis.",
400
- "homepage": "https://github.com/php-stubs/woocommerce-stubs",
401
- "keywords": [
402
- "PHPStan",
403
- "static analysis",
404
- "woocommerce",
405
- "wordpress"
406
- ],
407
- "time": "2022-10-12T08:01:21+00:00"
408
- },
409
- {
410
- "name": "php-stubs/wordpress-stubs",
411
- "version": "v6.0.2",
412
- "source": {
413
- "type": "git",
414
- "url": "https://github.com/php-stubs/wordpress-stubs.git",
415
- "reference": "165b84f082db851e76ec51bebcde550d03976893"
416
- },
417
- "dist": {
418
- "type": "zip",
419
- "url": "https://api.github.com/repos/php-stubs/wordpress-stubs/zipball/165b84f082db851e76ec51bebcde550d03976893",
420
- "reference": "165b84f082db851e76ec51bebcde550d03976893",
421
- "shasum": ""
422
- },
423
- "replace": {
424
- "giacocorsiglia/wordpress-stubs": "*"
425
- },
426
- "require-dev": {
427
- "nikic/php-parser": "< 4.12.0",
428
- "php": "~7.3 || ~8.0",
429
- "php-stubs/generator": "^0.8.1",
430
- "phpdocumentor/reflection-docblock": "^5.3",
431
- "phpstan/phpstan": "^1.2"
432
- },
433
- "suggest": {
434
- "paragonie/sodium_compat": "Pure PHP implementation of libsodium",
435
- "symfony/polyfill-php73": "Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions",
436
- "szepeviktor/phpstan-wordpress": "WordPress extensions for PHPStan"
437
- },
438
- "type": "library",
439
- "notification-url": "https://packagist.org/downloads/",
440
- "license": [
441
- "MIT"
442
- ],
443
- "description": "WordPress function and class declaration stubs for static analysis.",
444
- "homepage": "https://github.com/php-stubs/wordpress-stubs",
445
- "keywords": [
446
- "PHPStan",
447
- "static analysis",
448
- "wordpress"
449
- ],
450
- "time": "2022-09-30T17:46:11+00:00"
451
- },
452
- {
453
- "name": "phpstan/extension-installer",
454
- "version": "1.1.0",
455
- "source": {
456
- "type": "git",
457
- "url": "https://github.com/phpstan/extension-installer.git",
458
- "reference": "66c7adc9dfa38b6b5838a9fb728b68a7d8348051"
459
- },
460
- "dist": {
461
- "type": "zip",
462
- "url": "https://api.github.com/repos/phpstan/extension-installer/zipball/66c7adc9dfa38b6b5838a9fb728b68a7d8348051",
463
- "reference": "66c7adc9dfa38b6b5838a9fb728b68a7d8348051",
464
- "shasum": ""
465
- },
466
- "require": {
467
- "composer-plugin-api": "^1.1 || ^2.0",
468
- "php": "^7.1 || ^8.0",
469
- "phpstan/phpstan": ">=0.11.6"
470
- },
471
- "require-dev": {
472
- "composer/composer": "^1.8",
473
- "phing/phing": "^2.16.3",
474
- "php-parallel-lint/php-parallel-lint": "^1.2.0",
475
- "phpstan/phpstan-strict-rules": "^0.11 || ^0.12"
476
- },
477
- "type": "composer-plugin",
478
- "extra": {
479
- "class": "PHPStan\\ExtensionInstaller\\Plugin"
480
- },
481
- "autoload": {
482
- "psr-4": {
483
- "PHPStan\\ExtensionInstaller\\": "src/"
484
- }
485
- },
486
- "notification-url": "https://packagist.org/downloads/",
487
- "license": [
488
- "MIT"
489
- ],
490
- "description": "Composer plugin for automatic installation of PHPStan extensions",
491
- "time": "2020-12-13T13:06:13+00:00"
492
- },
493
- {
494
- "name": "phpstan/phpstan",
495
- "version": "1.8.11",
496
- "source": {
497
- "type": "git",
498
- "url": "https://github.com/phpstan/phpstan.git",
499
- "reference": "46e223dd68a620da18855c23046ddb00940b4014"
500
- },
501
- "dist": {
502
- "type": "zip",
503
- "url": "https://api.github.com/repos/phpstan/phpstan/zipball/46e223dd68a620da18855c23046ddb00940b4014",
504
- "reference": "46e223dd68a620da18855c23046ddb00940b4014",
505
- "shasum": ""
506
- },
507
- "require": {
508
- "php": "^7.2|^8.0"
509
- },
510
- "conflict": {
511
- "phpstan/phpstan-shim": "*"
512
- },
513
- "bin": [
514
- "phpstan",
515
- "phpstan.phar"
516
- ],
517
- "type": "library",
518
- "autoload": {
519
- "files": [
520
- "bootstrap.php"
521
- ]
522
- },
523
- "notification-url": "https://packagist.org/downloads/",
524
- "license": [
525
- "MIT"
526
- ],
527
- "description": "PHPStan - PHP Static Analysis Tool",
528
- "keywords": [
529
- "dev",
530
- "static analysis"
531
- ],
532
- "funding": [
533
- {
534
- "url": "https://github.com/ondrejmirtes",
535
- "type": "github"
536
- },
537
- {
538
- "url": "https://github.com/phpstan",
539
- "type": "github"
540
- },
541
- {
542
- "url": "https://tidelift.com/funding/github/packagist/phpstan/phpstan",
543
- "type": "tidelift"
544
- }
545
- ],
546
- "time": "2022-10-24T15:45:13+00:00"
547
- },
548
- {
549
- "name": "symfony/polyfill-php73",
550
- "version": "v1.26.0",
551
- "source": {
552
- "type": "git",
553
- "url": "https://github.com/symfony/polyfill-php73.git",
554
- "reference": "e440d35fa0286f77fb45b79a03fedbeda9307e85"
555
- },
556
- "dist": {
557
- "type": "zip",
558
- "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/e440d35fa0286f77fb45b79a03fedbeda9307e85",
559
- "reference": "e440d35fa0286f77fb45b79a03fedbeda9307e85",
560
- "shasum": ""
561
- },
562
- "require": {
563
- "php": ">=7.1"
564
- },
565
- "type": "library",
566
- "extra": {
567
- "branch-alias": {
568
- "dev-main": "1.26-dev"
569
- },
570
- "thanks": {
571
- "name": "symfony/polyfill",
572
- "url": "https://github.com/symfony/polyfill"
573
- }
574
- },
575
- "autoload": {
576
- "files": [
577
- "bootstrap.php"
578
- ],
579
- "psr-4": {
580
- "Symfony\\Polyfill\\Php73\\": ""
581
- },
582
- "classmap": [
583
- "Resources/stubs"
584
- ]
585
- },
586
- "notification-url": "https://packagist.org/downloads/",
587
- "license": [
588
- "MIT"
589
- ],
590
- "authors": [
591
- {
592
- "name": "Nicolas Grekas",
593
- "email": "p@tchwork.com"
594
- },
595
- {
596
- "name": "Symfony Community",
597
- "homepage": "https://symfony.com/contributors"
598
- }
599
- ],
600
- "description": "Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions",
601
- "homepage": "https://symfony.com",
602
- "keywords": [
603
- "compatibility",
604
- "polyfill",
605
- "portable",
606
- "shim"
607
- ],
608
- "funding": [
609
- {
610
- "url": "https://symfony.com/sponsor",
611
- "type": "custom"
612
- },
613
- {
614
- "url": "https://github.com/fabpot",
615
- "type": "github"
616
- },
617
- {
618
- "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
619
- "type": "tidelift"
620
- }
621
- ],
622
- "time": "2022-05-24T11:49:31+00:00"
623
- },
624
- {
625
- "name": "szepeviktor/phpstan-wordpress",
626
- "version": "v1.1.3",
627
- "source": {
628
- "type": "git",
629
- "url": "https://github.com/szepeviktor/phpstan-wordpress.git",
630
- "reference": "e644df734e1bbe95810e0f617d17df091048a94e"
631
- },
632
- "dist": {
633
- "type": "zip",
634
- "url": "https://api.github.com/repos/szepeviktor/phpstan-wordpress/zipball/e644df734e1bbe95810e0f617d17df091048a94e",
635
- "reference": "e644df734e1bbe95810e0f617d17df091048a94e",
636
- "shasum": ""
637
- },
638
- "require": {
639
- "php": "^7.2 || ^8.0",
640
- "php-stubs/wordpress-stubs": "^4.7 || ^5.0 || ^6.0",
641
- "phpstan/phpstan": "^1.6",
642
- "symfony/polyfill-php73": "^1.12.0"
643
- },
644
- "require-dev": {
645
- "composer/composer": "^2.1.14",
646
- "dealerdirect/phpcodesniffer-composer-installer": "^0.7",
647
- "php-parallel-lint/php-parallel-lint": "^1.1",
648
- "phpstan/phpstan-strict-rules": "^1.2",
649
- "phpunit/phpunit": "^8 || ^9",
650
- "szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset": "^0.6"
651
- },
652
- "type": "phpstan-extension",
653
- "extra": {
654
- "phpstan": {
655
- "includes": [
656
- "extension.neon"
657
- ]
658
- }
659
- },
660
- "autoload": {
661
- "psr-4": {
662
- "SzepeViktor\\PHPStan\\WordPress\\": "src/"
663
- }
664
- },
665
- "notification-url": "https://packagist.org/downloads/",
666
- "license": [
667
- "MIT"
668
- ],
669
- "description": "WordPress extensions for PHPStan",
670
- "keywords": [
671
- "PHPStan",
672
- "code analyse",
673
- "code analysis",
674
- "static analysis",
675
- "wordpress"
676
- ],
677
- "funding": [
678
- {
679
- "url": "https://www.paypal.me/szepeviktor",
680
- "type": "custom"
681
- },
682
- {
683
- "url": "https://github.com/szepeviktor",
684
- "type": "github"
685
- }
686
- ],
687
- "time": "2022-09-22T13:14:50+00:00"
688
- }
689
- ],
690
  "aliases": [],
691
  "minimum-stability": "stable",
692
  "stability-flags": [],
4
  "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
5
  "This file is @generated automatically"
6
  ],
7
+ "content-hash": "5ad81651576102a4444707540c3dfb6c",
8
  "packages": [
9
  {
10
  "name": "a5hleyrich/wp-background-processing",
365
  "time": "2022-06-18T07:21:10+00:00"
366
  }
367
  ],
368
+ "packages-dev": [],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
369
  "aliases": [],
370
  "minimum-stability": "stable",
371
  "stability-flags": [],
creative-mail-plugin.php CHANGED
@@ -9,7 +9,7 @@
9
  * Plugin URI: https://wordpress.org/plugins/creative-mail-by-constant-contact/
10
  * Description: Free email marketing designed specifically for WordPress, Jetpack and WooCommerce. Send newsletters, promotions, updates and transactional e-commerce emails. Simple and easy, powered by Constant Contact’s rock solid reliability.
11
  * Author: Constant Contact
12
- * Version: 1.6.1
13
  * Author URI: https://www.constantcontact.com
14
  * WC requires at least: 3.6.0
15
  * WC tested up to: 6.8.2
@@ -20,7 +20,7 @@ use CreativeMail\Blocks\LoadBlock;
20
  define('CE4WP_PLUGIN_DIR', __DIR__ . '/');
21
  define('CE4WP_PLUGIN_URL', plugin_dir_url(__FILE__) . '/');
22
  define('CE4WP_PLUGIN_FILE', __FILE__);
23
- define('CE4WP_PLUGIN_VERSION', '1.6.1');
24
  define('CE4WP_INSTANCE_UUID_KEY', 'ce4wp_instance_uuid');
25
  define('CE4WP_INSTANCE_HANDSHAKE_TOKEN', 'ce4wp_handshake_token');
26
  define('CE4WP_INSTANCE_HANDSHAKE_EXPIRATION', 'ce4wp_handshake_expiration');
@@ -37,7 +37,7 @@ define('CE4WP_CHECKOUT_CHECKBOX_ENABLED', 'ce4wp_checkout_checkbox_enabled');
37
  define('CE4WP_APP_GATEWAY_URL', 'https://app-gateway.creativemail.com/');
38
  define('CE4WP_APP_URL', 'https://app.creativemail.com/');
39
  define('CE4WP_ENVIRONMENT', 'PRODUCTION');
40
- define('CE4WP_BUILD_NUMBER', '1907');
41
  define('CE4WP_RAYGUN_PHP_KEY', 'Z85xL3mkgnW13Ri9DajGUg');
42
  define('CE4WP_BATCH_SIZE', 500);
43
  define('CE4WP_WC_API_KEY_ID', 'ce4wp_woocommerce_api_key_id');
9
  * Plugin URI: https://wordpress.org/plugins/creative-mail-by-constant-contact/
10
  * Description: Free email marketing designed specifically for WordPress, Jetpack and WooCommerce. Send newsletters, promotions, updates and transactional e-commerce emails. Simple and easy, powered by Constant Contact’s rock solid reliability.
11
  * Author: Constant Contact
12
+ * Version: 1.6.2
13
  * Author URI: https://www.constantcontact.com
14
  * WC requires at least: 3.6.0
15
  * WC tested up to: 6.8.2
20
  define('CE4WP_PLUGIN_DIR', __DIR__ . '/');
21
  define('CE4WP_PLUGIN_URL', plugin_dir_url(__FILE__) . '/');
22
  define('CE4WP_PLUGIN_FILE', __FILE__);
23
+ define('CE4WP_PLUGIN_VERSION', '1.6.2');
24
  define('CE4WP_INSTANCE_UUID_KEY', 'ce4wp_instance_uuid');
25
  define('CE4WP_INSTANCE_HANDSHAKE_TOKEN', 'ce4wp_handshake_token');
26
  define('CE4WP_INSTANCE_HANDSHAKE_EXPIRATION', 'ce4wp_handshake_expiration');
37
  define('CE4WP_APP_GATEWAY_URL', 'https://app-gateway.creativemail.com/');
38
  define('CE4WP_APP_URL', 'https://app.creativemail.com/');
39
  define('CE4WP_ENVIRONMENT', 'PRODUCTION');
40
+ define('CE4WP_BUILD_NUMBER', '1933');
41
  define('CE4WP_RAYGUN_PHP_KEY', 'Z85xL3mkgnW13Ri9DajGUg');
42
  define('CE4WP_BATCH_SIZE', 500);
43
  define('CE4WP_WC_API_KEY_ID', 'ce4wp_woocommerce_api_key_id');
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: Constant Contact
3
  Tags: email, marketing, newsletter, subscribe, contact form, constant contact, crm, automations, ecommerce, promotion, offers, retargeting
4
  Requires at least: 4.9
5
  Tested up to: 6.0.2
6
- Stable tag: 1.6.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  Requires PHP: 7.2
@@ -102,6 +102,7 @@ Creative Mail by Constant Contact [Privacy Notice](https://www.endurance.com/pri
102
  6. Enhance your brand with LogoBuilder
103
 
104
  == Changelog ==
 
105
  * 1.6.1 - Security update
106
  * 1.6.0 - Security update, Bug fixes and Support to sync Address Fields for Contact Form 7
107
  * 1.5.4 - Migration to WordPress version 6.0.2 and Checkout mail templates update
3
  Tags: email, marketing, newsletter, subscribe, contact form, constant contact, crm, automations, ecommerce, promotion, offers, retargeting
4
  Requires at least: 4.9
5
  Tested up to: 6.0.2
6
+ Stable tag: 1.6.2
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  Requires PHP: 7.2
102
  6. Enhance your brand with LogoBuilder
103
 
104
  == Changelog ==
105
+ * 1.6.2 - Security updates and removal of Unsupported Plugin (Caldera Forms)
106
  * 1.6.1 - Security update
107
  * 1.6.0 - Security update, Bug fixes and Support to sync Address Fields for Contact Form 7
108
  * 1.5.4 - Migration to WordPress version 6.0.2 and Checkout mail templates update
src/Helpers/ValidationHelper.php DELETED
@@ -1,12 +0,0 @@
1
- <?php
2
-
3
- namespace CreativeMail\Helpers;
4
-
5
-
6
- class ValidationHelper
7
- {
8
- public static function is_null_or_empty($value)
9
- {
10
- return empty($value);
11
- }
12
- }
 
 
 
 
 
 
 
 
 
 
 
 
src/Managers/IntegrationManager.php CHANGED
@@ -16,7 +16,6 @@ use CreativeMail\Modules\Contacts\Handlers\WooCommercePluginHandler;
16
  use CreativeMail\Modules\Contacts\Handlers\WpFormsPluginHandler;
17
  use CreativeMail\Modules\Contacts\Handlers\JetpackPluginHandler;
18
  use CreativeMail\Modules\Contacts\Handlers\NinjaFormsPluginHandler;
19
- use CreativeMail\Modules\Contacts\Handlers\CalderaPluginHandler;
20
  use CreativeMail\Modules\Contacts\Handlers\CreativeMailPluginHandler;
21
  use Exception;
22
  use ReflectionClass;
@@ -48,7 +47,6 @@ class IntegrationManager {
48
  new Integration('gravityforms', 'Gravity Forms', 'gravityforms/gravityforms.php', GravityFormsPluginHandler::class, false, 'https://www.gravityforms.com/'),
49
  new Integration('elementor', 'Elementor', 'elementor/elementor.php', ElementorPluginHandler::class, false),
50
  new Integration('ninjaforms', 'Ninja Forms', 'ninja-forms/ninja-forms.php', NinjaFormsPluginHandler::class, false, admin_url('plugin-install.php?tab=plugin-information&plugin=ninja-forms&TB_iframe=true&width=772&height=1144')),
51
- new Integration('caldera', 'Caldera Forms', 'caldera-forms/caldera-core.php', CalderaPluginHandler::class, false, admin_url('plugin-install.php?tab=plugin-information&plugin=caldera-forms&TB_iframe=true&width=772&height=1144')),
52
  new Integration('bluehost', 'Bluehost Builder', "wb4wp-wordpress-plugin-bluehost-$environment/wb4wp-plugin.php", BlueHostBuilderPluginHandler::class, false, 'https://www.bluehost.com/'),
53
  new Integration('formidable', 'Formidable', 'formidable/formidable.php', FormidablePluginHandler::class, false, admin_url('plugin-install.php?tab=plugin-information&plugin=formidable&TB_iframe=true&width=772&height=1144')),
54
  new Integration('creativemail', 'CreativeMail', 'creativ-email-wordpress-plugin/creative-mail-plugin.php', CreativeMailPluginHandler::class, true, null, true, true),
16
  use CreativeMail\Modules\Contacts\Handlers\WpFormsPluginHandler;
17
  use CreativeMail\Modules\Contacts\Handlers\JetpackPluginHandler;
18
  use CreativeMail\Modules\Contacts\Handlers\NinjaFormsPluginHandler;
 
19
  use CreativeMail\Modules\Contacts\Handlers\CreativeMailPluginHandler;
20
  use Exception;
21
  use ReflectionClass;
47
  new Integration('gravityforms', 'Gravity Forms', 'gravityforms/gravityforms.php', GravityFormsPluginHandler::class, false, 'https://www.gravityforms.com/'),
48
  new Integration('elementor', 'Elementor', 'elementor/elementor.php', ElementorPluginHandler::class, false),
49
  new Integration('ninjaforms', 'Ninja Forms', 'ninja-forms/ninja-forms.php', NinjaFormsPluginHandler::class, false, admin_url('plugin-install.php?tab=plugin-information&plugin=ninja-forms&TB_iframe=true&width=772&height=1144')),
 
50
  new Integration('bluehost', 'Bluehost Builder', "wb4wp-wordpress-plugin-bluehost-$environment/wb4wp-plugin.php", BlueHostBuilderPluginHandler::class, false, 'https://www.bluehost.com/'),
51
  new Integration('formidable', 'Formidable', 'formidable/formidable.php', FormidablePluginHandler::class, false, admin_url('plugin-install.php?tab=plugin-information&plugin=formidable&TB_iframe=true&width=772&height=1144')),
52
  new Integration('creativemail', 'CreativeMail', 'creativ-email-wordpress-plugin/creative-mail-plugin.php', CreativeMailPluginHandler::class, true, null, true, true),
src/Modules/Contacts/Handlers/FormidablePluginHandler.php CHANGED
@@ -4,6 +4,7 @@ namespace CreativeMail\Modules\Contacts\Handlers;
4
 
5
  define('CE4WP_FRM_EVENTTYPE', 'WordPress - Formidable');
6
 
 
7
  use CreativeMail\Managers\RaygunManager;
8
  use CreativeMail\Modules\Contacts\Models\ContactModel;
9
  use CreativeMail\Modules\Contacts\Models\FormidableContactForm;
@@ -11,15 +12,29 @@ use CreativeMail\Modules\Contacts\Models\OptActionBy;
11
  use Exception;
12
  use FrmField; // Formidable Field Class.
13
  use FrmForm; // Formidable Forms Class.
14
- use stdClass;
15
 
 
 
 
 
 
16
  class FormidablePluginHandler extends BaseContactFormPluginHandler {
17
-
 
 
18
  public function __construct() {
19
  parent::__construct();
20
  }
21
 
22
- private function FindEntryValues( $entry, $formidableContact ) {
 
 
 
 
 
 
 
 
23
  if ( $this->isNullOrEmpty($entry) ) {
24
  return null;
25
  }
@@ -39,6 +54,15 @@ class FormidablePluginHandler extends BaseContactFormPluginHandler {
39
  }
40
  }
41
 
 
 
 
 
 
 
 
 
 
42
  public function convertToContactModel( $contact ) {
43
  $contactModel = new ContactModel();
44
  $contactModel->setEventType(CE4WP_FRM_EVENTTYPE);
@@ -68,21 +92,43 @@ class FormidablePluginHandler extends BaseContactFormPluginHandler {
68
  return $contactModel;
69
  }
70
 
71
- public function ceHandleFormidableFormSubmission( $entry_id, $form_id ) {
 
 
 
 
 
 
 
 
72
  try {
73
  $formidableContact = new FormidableContactForm();
 
 
74
  // Map entry values to the field meta.
75
  $entry = FrmField::get_all_for_form($form_id);
76
 
77
- if ( isset ( $_POST['frm_submit_entry_2'] )
78
- && wp_verify_nonce(
79
- sanitize_text_field( wp_unslash( $_POST['frm_submit_entry_2']) ),
80
- 'frm_submit_entry_nonce' )
81
- ) {
82
- if ( isset ($_POST['item_meta']) ) {
83
- $entryFieldData = array_map( 'sanitize_text_field', wp_unslash( $_POST['item_meta'] ) );
84
  }
85
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
86
  foreach ( $entry as $field ) {
87
  if ( ! empty($entryFieldData[ $field->id ]) ) {
88
  $field->entryValue = $entryFieldData[ $field->id ];
@@ -103,14 +149,31 @@ class FormidablePluginHandler extends BaseContactFormPluginHandler {
103
  }
104
  }
105
 
 
 
 
 
 
106
  public function registerHooks() {
107
  add_action('frm_after_create_entry', array( $this, 'ceHandleFormidableFormSubmission' ), 30, 2);
108
  }
109
 
 
 
 
 
 
110
  public function unregisterHooks() {
111
  remove_action('frm_after_create_entry', array( $this, 'ceHandleFormidableFormSubmission' ));
112
  }
113
 
 
 
 
 
 
 
 
114
  public function get_contacts( $limit = null ) {
115
  if ( ! is_int($limit) || $limit <= 0 ) {
116
  $limit = null;
@@ -134,7 +197,7 @@ class FormidablePluginHandler extends BaseContactFormPluginHandler {
134
 
135
  // Get the contact data for each entry.
136
  foreach ( $mappedEntries as $entry ) {
137
- $formidableContact = new stdClass();
138
 
139
  // Convert to contactModel.
140
  $this->FindEntryValues($entry, $formidableContact);
@@ -166,6 +229,13 @@ class FormidablePluginHandler extends BaseContactFormPluginHandler {
166
  }
167
  }
168
 
 
 
 
 
 
 
 
169
  private function CombineEntryData( array $entryResults ) {
170
  $entries = array();
171
  foreach ( $entryResults as $entryRow ) {
4
 
5
  define('CE4WP_FRM_EVENTTYPE', 'WordPress - Formidable');
6
 
7
+ use CreativeMail\Exceptions\CreativeMailException;
8
  use CreativeMail\Managers\RaygunManager;
9
  use CreativeMail\Modules\Contacts\Models\ContactModel;
10
  use CreativeMail\Modules\Contacts\Models\FormidableContactForm;
12
  use Exception;
13
  use FrmField; // Formidable Field Class.
14
  use FrmForm; // Formidable Forms Class.
 
15
 
16
+ /**
17
+ * Class FormidablePluginHandler
18
+ *
19
+ * @package CreativeMail\Modules\Contacts\Handlers
20
+ */
21
  class FormidablePluginHandler extends BaseContactFormPluginHandler {
22
+ /**
23
+ * Constructor
24
+ */
25
  public function __construct() {
26
  parent::__construct();
27
  }
28
 
29
+ /**
30
+ * Find the entries from the submitted FE form.
31
+ *
32
+ * @param ?array $entry The entry form data.
33
+ * @param FormidableContactForm $formidableContact The contact container to hold the data.
34
+ *
35
+ * @return void|null
36
+ */
37
+ private function FindEntryValues( ?array $entry, FormidableContactForm $formidableContact ) {
38
  if ( $this->isNullOrEmpty($entry) ) {
39
  return null;
40
  }
54
  }
55
  }
56
 
57
+ /**
58
+ * Prepare the data and send it as a ContactModel.
59
+ *
60
+ * @param FormidableContactForm $contact The contact container to hold the data.
61
+ *
62
+ * @return ContactModel
63
+ *
64
+ * @throws Exception If the contact is not valid.
65
+ */
66
  public function convertToContactModel( $contact ) {
67
  $contactModel = new ContactModel();
68
  $contactModel->setEventType(CE4WP_FRM_EVENTTYPE);
92
  return $contactModel;
93
  }
94
 
95
+ /**
96
+ * Get the Formidable form data from the FE.
97
+ *
98
+ * @param int $entry_id The entry ID.
99
+ * @param int $form_id The form ID.
100
+ *
101
+ * @return void
102
+ */
103
+ public function ceHandleFormidableFormSubmission( int $entry_id, int $form_id ) {
104
  try {
105
  $formidableContact = new FormidableContactForm();
106
+ $nonce_key_prefix = 'frm_submit_entry';
107
+ $nonce_action = 'frm_submit_entry_nonce';
108
  // Map entry values to the field meta.
109
  $entry = FrmField::get_all_for_form($form_id);
110
 
111
+ // Looks for the nonce in the $_POST array.
112
+ // @codingStandardsIgnoreLine
113
+ foreach ( $_POST as $key => $value ) {
114
+ if ( is_string(strstr($key, $nonce_key_prefix)) ) {
115
+ $form_nonce = $value;
116
+ $post_key = $key;
 
117
  }
118
  }
119
+ if ( empty ($form_nonce) || empty($post_key) ) {
120
+ $exception = new CreativeMailException('Formidable Form Integration - Nonce not found');
121
+ RaygunManager::get_instance()->exception_handler($exception);
122
+ return;
123
+ }
124
+
125
+ if ( isset ( $_POST[ $post_key ] )
126
+ && wp_verify_nonce( sanitize_text_field( wp_unslash( $form_nonce ) ), $nonce_action )
127
+ && isset ($_POST['item_meta'])
128
+ ) {
129
+ $entryFieldData = array_map( 'sanitize_text_field', wp_unslash( $_POST['item_meta'] ) );
130
+ }
131
+
132
  foreach ( $entry as $field ) {
133
  if ( ! empty($entryFieldData[ $field->id ]) ) {
134
  $field->entryValue = $entryFieldData[ $field->id ];
149
  }
150
  }
151
 
152
+ /**
153
+ * Register the Hooks associated with Formidable Plugin
154
+ *
155
+ * @return void
156
+ */
157
  public function registerHooks() {
158
  add_action('frm_after_create_entry', array( $this, 'ceHandleFormidableFormSubmission' ), 30, 2);
159
  }
160
 
161
+ /**
162
+ * Unregister the Hooks associated with Formidable Plugin
163
+ *
164
+ * @return void
165
+ */
166
  public function unregisterHooks() {
167
  remove_action('frm_after_create_entry', array( $this, 'ceHandleFormidableFormSubmission' ));
168
  }
169
 
170
+ /**
171
+ * Get the contacts from the Form Plugin
172
+ *
173
+ * @param ?int $limit The limit of contacts to return.
174
+ *
175
+ * @return array|void|null
176
+ */
177
  public function get_contacts( $limit = null ) {
178
  if ( ! is_int($limit) || $limit <= 0 ) {
179
  $limit = null;
197
 
198
  // Get the contact data for each entry.
199
  foreach ( $mappedEntries as $entry ) {
200
+ $formidableContact = new FormidableContactForm();
201
 
202
  // Convert to contactModel.
203
  $this->FindEntryValues($entry, $formidableContact);
229
  }
230
  }
231
 
232
+ /**
233
+ * Combine the entry data into a single array.
234
+ *
235
+ * @param array $entryResults The entry results.
236
+ *
237
+ * @return array
238
+ */
239
  private function CombineEntryData( array $entryResults ) {
240
  $entries = array();
241
  foreach ( $entryResults as $entryRow ) {
src/Modules/Contacts/Models/FormidableContactForm.php CHANGED
@@ -8,4 +8,5 @@ class FormidableContactForm {
8
  public string $birthday;
9
  public string $phone;
10
  public string $email;
 
11
  }
8
  public string $birthday;
9
  public string $phone;
10
  public string $email;
11
+ public string $isSync;
12
  }
src/Modules/WooCommerce/Models/WCStoreInformation.php CHANGED
@@ -6,20 +6,80 @@ namespace CreativeMail\Modules\WooCommerce\Models;
6
  use CreativeMail\Helpers\OptionsHelper;
7
  use WC_Countries;
8
 
 
 
 
9
  class WCStoreInformation {
10
-
 
 
 
 
11
  public $address1;
 
 
 
 
 
12
  public $address2;
 
 
 
 
 
13
  public $city;
 
 
 
 
 
14
  public $postcode;
 
 
 
 
 
15
  public $state;
 
 
 
 
 
16
  public $country;
 
 
 
 
 
17
  public $country_code;
 
 
 
 
 
18
  public $currency;
 
 
 
 
 
19
  public $currency_symbol;
 
 
 
 
 
20
  public $email_from;
 
 
 
 
 
21
  public $email_name;
22
 
 
 
 
23
  public function __construct() {
24
  if ( in_array('woocommerce/woocommerce.php', apply_filters('active_plugins', get_option('active_plugins')), true) ) {
25
  $this->address1 = WC()->countries->get_base_address();
6
  use CreativeMail\Helpers\OptionsHelper;
7
  use WC_Countries;
8
 
9
+ /**
10
+ * Class WCStoreInformation
11
+ */
12
  class WCStoreInformation {
13
+ /**
14
+ * The first customer address field.
15
+ *
16
+ * @var string
17
+ */
18
  public $address1;
19
+ /**
20
+ * The second customer address field.
21
+ *
22
+ * @var string
23
+ */
24
  public $address2;
25
+ /**
26
+ * The city of the customer.
27
+ *
28
+ * @var string
29
+ */
30
  public $city;
31
+ /**
32
+ * The customer postcode.
33
+ *
34
+ * @var string
35
+ */
36
  public $postcode;
37
+ /**
38
+ * The customer State.
39
+ *
40
+ * @var string
41
+ */
42
  public $state;
43
+ /**
44
+ * The customer country.
45
+ *
46
+ * @var mixed
47
+ */
48
  public $country;
49
+ /**
50
+ * The customer country code.
51
+ *
52
+ * @var string
53
+ */
54
  public $country_code;
55
+ /**
56
+ * The customer currency.
57
+ *
58
+ * @var string
59
+ */
60
  public $currency;
61
+ /**
62
+ * The customer currency symbol.
63
+ *
64
+ * @var string
65
+ */
66
  public $currency_symbol;
67
+ /**
68
+ * The customer email from field.
69
+ *
70
+ * @var mixed|null
71
+ */
72
  public $email_from;
73
+ /**
74
+ * The customer Email name.
75
+ *
76
+ * @var mixed|null
77
+ */
78
  public $email_name;
79
 
80
+ /**
81
+ * WCStoreInformation constructor.
82
+ */
83
  public function __construct() {
84
  if ( in_array('woocommerce/woocommerce.php', apply_filters('active_plugins', get_option('active_plugins')), true) ) {
85
  $this->address1 = WC()->countries->get_base_address();
src/views/available-integrations.php CHANGED
@@ -3,11 +3,13 @@
3
  use CreativeMail\CreativeMail;
4
  use CreativeMail\Helpers\EnvironmentHelper;
5
 
 
 
 
6
  $supported_integrations = CreativeMail::get_instance()->get_integration_manager()->get_supported_integrations(true);
7
  $active_plugin_count = count(CreativeMail::get_instance()->get_integration_manager()->get_active_plugins());
8
- $ce4wp_title = 0 == $active_plugin_count ? 'We support contact synchronization from the following plugins:' : 'Plugins we also support';
9
  $title_class = 0 == $active_plugin_count ? 'ce4wp-body2' : 'ce4wp-plugin-support-title';
10
-
11
  ?>
12
  <script type="application/javascript">
13
  function showPluginModal(name, url) {
@@ -16,12 +18,21 @@ $title_class = 0 == $active_plugin_count ? 'ce4wp-body2' : 'ce4wp-plu
16
  }
17
  // Check if url is relative.
18
  if (url.indexOf('plugin-install.php') >= 0) {
 
19
  document.getElementById('plugin-store-title').textContent = name;
20
- document.getElementById('plugin-store-iframe').src = url;
21
- document.getElementById('plugin-store-iframe').title = name;
22
  document.getElementById('plugin-store-modal').style.display = "block";
 
 
 
 
 
 
 
 
 
 
23
  } else {
24
- var win = window.open(url, '_blank');
25
  win.focus();
26
  }
27
  }
3
  use CreativeMail\CreativeMail;
4
  use CreativeMail\Helpers\EnvironmentHelper;
5
 
6
+ $ce4wp_sync_text = __( 'We support contact synchronization from the following plugins:', 'creative-mail-by-constant-contact' );
7
+ $ce4wp_plugins_text = __( 'Plugins we also support', 'creative-mail-by-constant-contact' );
8
+
9
  $supported_integrations = CreativeMail::get_instance()->get_integration_manager()->get_supported_integrations(true);
10
  $active_plugin_count = count(CreativeMail::get_instance()->get_integration_manager()->get_active_plugins());
11
+ $ce4wp_title = 0 == $active_plugin_count ? $ce4wp_sync_text : $ce4wp_plugins_text;
12
  $title_class = 0 == $active_plugin_count ? 'ce4wp-body2' : 'ce4wp-plugin-support-title';
 
13
  ?>
14
  <script type="application/javascript">
15
  function showPluginModal(name, url) {
18
  }
19
  // Check if url is relative.
20
  if (url.indexOf('plugin-install.php') >= 0) {
21
+ const ce4wpIframe = document.getElementById('plugin-store-iframe');
22
  document.getElementById('plugin-store-title').textContent = name;
 
 
23
  document.getElementById('plugin-store-modal').style.display = "block";
24
+
25
+ ce4wpIframe.src = url;
26
+ ce4wpIframe.title = name;
27
+ ce4wpIframe.onload = function() {
28
+ const ce4wpIframeInstallButton = ce4wpIframe
29
+ .contentWindow
30
+ .document
31
+ .getElementById('plugin_install_from_iframe');
32
+ ce4wpIframeInstallButton.replaceWith(ce4wpIframeInstallButton.cloneNode(true));
33
+ };
34
  } else {
35
+ let win = window.open(url, '_blank');
36
  win.focus();
37
  }
38
  }
src/views/settings.php CHANGED
@@ -7,7 +7,8 @@ use CreativeMail\Helpers\OptionsHelper;
7
  if ( isset ( $_SERVER['REQUEST_METHOD'] ) && 'POST' === $_SERVER['REQUEST_METHOD'] && isset ( $_POST['action'] ) ) {
8
  if ( 'disconnect' === $_POST['action']
9
  && isset( $_POST['disconnect_nonce'] )
10
- && wp_verify_nonce( sanitize_text_field ( wp_unslash ( $_POST['disconnect_nonce'] ) ), 'disconnect' ) ) {
 
11
  OptionsHelper::clear_options(true);
12
  // @phpstan-ignore-next-line
13
  $this->instance_id = null;
@@ -16,8 +17,8 @@ if ( isset ( $_SERVER['REQUEST_METHOD'] ) && 'POST' === $_SERVER['REQUEST_METHOD
16
  if ( 'change_activated_plugins' === $_POST['action']
17
  && isset ( $_POST['activated_plugins_nonce'] )
18
  && wp_verify_nonce(
19
- sanitize_text_field ( wp_unslash ( $_POST['activated_plugins_nonce'] ) ), 'activated_plugins' )
20
- ) {
21
  $activated_plugins = array();
22
  if ( isset($_POST['activated_plugins']) ) {
23
  $activated_plugins = array_map( 'sanitize_text_field', wp_unslash( $_POST['activated_plugins'] ) );
@@ -28,19 +29,19 @@ if ( isset ( $_SERVER['REQUEST_METHOD'] ) && 'POST' === $_SERVER['REQUEST_METHOD
28
  if ( 'change_marketing_information' === $_POST['action']
29
  && isset ( $_POST['marketing_consent_nonce'] )
30
  && wp_verify_nonce(
31
- sanitize_text_field( wp_unslash($_POST['marketing_consent_nonce']) ), 'marketing_consent' )
32
- ) {
33
  if ( array_key_exists( 'ce4wp_show_marketing_checkbox', $_POST )
34
- && sanitize_key( $_POST['ce4wp_show_marketing_checkbox'] ) === 'on' ) {
 
35
  OptionsHelper::set_checkout_checkbox_enabled('1');
36
- } else {
 
37
  OptionsHelper::set_checkout_checkbox_enabled('0');
38
  }
39
  OptionsHelper::set_checkout_checkbox_text(
40
- sanitize_text_field(
41
- wp_unslash(
42
- $_POST['ce4wp_checkbox_text'] ?? ''
43
- ) ) );
44
  }
45
  }
46
 
7
  if ( isset ( $_SERVER['REQUEST_METHOD'] ) && 'POST' === $_SERVER['REQUEST_METHOD'] && isset ( $_POST['action'] ) ) {
8
  if ( 'disconnect' === $_POST['action']
9
  && isset( $_POST['disconnect_nonce'] )
10
+ && wp_verify_nonce( sanitize_text_field ( wp_unslash ( $_POST['disconnect_nonce'] ) ), 'disconnect' ) )
11
+ {
12
  OptionsHelper::clear_options(true);
13
  // @phpstan-ignore-next-line
14
  $this->instance_id = null;
17
  if ( 'change_activated_plugins' === $_POST['action']
18
  && isset ( $_POST['activated_plugins_nonce'] )
19
  && wp_verify_nonce(
20
+ sanitize_text_field ( wp_unslash ( $_POST['activated_plugins_nonce'] ) ), 'activated_plugins' ) )
21
+ {
22
  $activated_plugins = array();
23
  if ( isset($_POST['activated_plugins']) ) {
24
  $activated_plugins = array_map( 'sanitize_text_field', wp_unslash( $_POST['activated_plugins'] ) );
29
  if ( 'change_marketing_information' === $_POST['action']
30
  && isset ( $_POST['marketing_consent_nonce'] )
31
  && wp_verify_nonce(
32
+ sanitize_text_field( wp_unslash($_POST['marketing_consent_nonce']) ), 'marketing_consent' ) )
33
+ {
34
  if ( array_key_exists( 'ce4wp_show_marketing_checkbox', $_POST )
35
+ && sanitize_key( $_POST['ce4wp_show_marketing_checkbox'] ) === 'on' )
36
+ {
37
  OptionsHelper::set_checkout_checkbox_enabled('1');
38
+ } else
39
+ {
40
  OptionsHelper::set_checkout_checkbox_enabled('0');
41
  }
42
  OptionsHelper::set_checkout_checkbox_text(
43
+ sanitize_text_field( wp_unslash( $_POST['ce4wp_checkbox_text'] ?? '' ) )
44
+ );
 
 
45
  }
46
  }
47
 
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit315811124a911e9493d5fdf73305051b::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInitcf64331d344d60cdd7c271d9659d62f2::getLoader();
vendor/bin/phpstan DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env php
2
- <?php
3
-
4
- declare (strict_types=1);
5
-
6
- Phar::loadPhar(__DIR__ . '/phpstan.phar', 'phpstan.phar');
7
-
8
- require 'phar://phpstan.phar/bin/phpstan';
 
 
 
 
 
 
 
 
vendor/bin/phpstan.phar DELETED
Binary file
vendor/composer/autoload_classmap.php CHANGED
@@ -101,9 +101,6 @@ return array(
101
  'Firebase\\JWT\\JWT' => $vendorDir . '/firebase/php-jwt/src/JWT.php',
102
  'Firebase\\JWT\\Key' => $vendorDir . '/firebase/php-jwt/src/Key.php',
103
  'Firebase\\JWT\\SignatureInvalidException' => $vendorDir . '/firebase/php-jwt/src/SignatureInvalidException.php',
104
- 'JsonException' => $vendorDir . '/symfony/polyfill-php73/Resources/stubs/JsonException.php',
105
- 'PHPStan\\ExtensionInstaller\\GeneratedConfig' => $vendorDir . '/phpstan/extension-installer/src/GeneratedConfig.php',
106
- 'PHPStan\\ExtensionInstaller\\Plugin' => $vendorDir . '/phpstan/extension-installer/src/Plugin.php',
107
  'Raygun4php\\Raygun4PhpException' => $vendorDir . '/mindscape/raygun4php/src/Raygun4php/Raygun4PhpException.php',
108
  'Raygun4php\\RaygunClient' => $vendorDir . '/mindscape/raygun4php/src/Raygun4php/RaygunClient.php',
109
  'Raygun4php\\RaygunClientMessage' => $vendorDir . '/mindscape/raygun4php/src/Raygun4php/RaygunClientMessage.php',
@@ -114,34 +111,6 @@ return array(
114
  'Raygun4php\\RaygunMessage' => $vendorDir . '/mindscape/raygun4php/src/Raygun4php/RaygunMessage.php',
115
  'Raygun4php\\RaygunMessageDetails' => $vendorDir . '/mindscape/raygun4php/src/Raygun4php/RaygunMessageDetails.php',
116
  'Raygun4php\\RaygunRequestMessage' => $vendorDir . '/mindscape/raygun4php/src/Raygun4php/RaygunRequestMessage.php',
117
- 'Symfony\\Polyfill\\Php73\\Php73' => $vendorDir . '/symfony/polyfill-php73/Php73.php',
118
- 'SzepeViktor\\PHPStan\\WordPress\\ApplyFiltersDynamicFunctionReturnTypeExtension' => $vendorDir . '/szepeviktor/phpstan-wordpress/src/ApplyFiltersDynamicFunctionReturnTypeExtension.php',
119
- 'SzepeViktor\\PHPStan\\WordPress\\CurrentTimeDynamicFunctionReturnTypeExtension' => $vendorDir . '/szepeviktor/phpstan-wordpress/src/CurrentTimeDynamicFunctionReturnTypeExtension.php',
120
- 'SzepeViktor\\PHPStan\\WordPress\\EchoParameterDynamicFunctionReturnTypeExtension' => $vendorDir . '/szepeviktor/phpstan-wordpress/src/EchoParameterDynamicFunctionReturnTypeExtension.php',
121
- 'SzepeViktor\\PHPStan\\WordPress\\GetCommentDynamicFunctionReturnTypeExtension' => $vendorDir . '/szepeviktor/phpstan-wordpress/src/GetCommentDynamicFunctionReturnTypeExtension.php',
122
- 'SzepeViktor\\PHPStan\\WordPress\\GetListTableDynamicFunctionReturnTypeExtension' => $vendorDir . '/szepeviktor/phpstan-wordpress/src/GetListTableDynamicFunctionReturnTypeExtension.php',
123
- 'SzepeViktor\\PHPStan\\WordPress\\GetObjectTaxonomiesDynamicFunctionReturnTypeExtension' => $vendorDir . '/szepeviktor/phpstan-wordpress/src/GetObjectTaxonomiesDynamicFunctionReturnTypeExtension.php',
124
- 'SzepeViktor\\PHPStan\\WordPress\\GetPostDynamicFunctionReturnTypeExtension' => $vendorDir . '/szepeviktor/phpstan-wordpress/src/GetPostDynamicFunctionReturnTypeExtension.php',
125
- 'SzepeViktor\\PHPStan\\WordPress\\GetPostsDynamicFunctionReturnTypeExtension' => $vendorDir . '/szepeviktor/phpstan-wordpress/src/GetPostsDynamicFunctionReturnTypeExtension.php',
126
- 'SzepeViktor\\PHPStan\\WordPress\\GetSitesDynamicFunctionReturnTypeExtension' => $vendorDir . '/szepeviktor/phpstan-wordpress/src/GetSitesDynamicFunctionReturnTypeExtension.php',
127
- 'SzepeViktor\\PHPStan\\WordPress\\GetTaxonomiesDynamicFunctionReturnTypeExtension' => $vendorDir . '/szepeviktor/phpstan-wordpress/src/GetTaxonomiesDynamicFunctionReturnTypeExtension.php',
128
- 'SzepeViktor\\PHPStan\\WordPress\\GetTermsDynamicFunctionReturnTypeExtension' => $vendorDir . '/szepeviktor/phpstan-wordpress/src/GetTermsDynamicFunctionReturnTypeExtension.php',
129
- 'SzepeViktor\\PHPStan\\WordPress\\HasFilterDynamicFunctionReturnTypeExtension' => $vendorDir . '/szepeviktor/phpstan-wordpress/src/HasFilterDynamicFunctionReturnTypeExtension.php',
130
- 'SzepeViktor\\PHPStan\\WordPress\\HookDocBlock' => $vendorDir . '/szepeviktor/phpstan-wordpress/src/HookDocBlock.php',
131
- 'SzepeViktor\\PHPStan\\WordPress\\HookDocsParamException' => $vendorDir . '/szepeviktor/phpstan-wordpress/src/HookDocsParamException.php',
132
- 'SzepeViktor\\PHPStan\\WordPress\\HookDocsRule' => $vendorDir . '/szepeviktor/phpstan-wordpress/src/HookDocsRule.php',
133
- 'SzepeViktor\\PHPStan\\WordPress\\HookDocsVisitor' => $vendorDir . '/szepeviktor/phpstan-wordpress/src/HookDocsVisitor.php',
134
- 'SzepeViktor\\PHPStan\\WordPress\\IsWpErrorFunctionTypeSpecifyingExtension' => $vendorDir . '/szepeviktor/phpstan-wordpress/src/IsWpErrorFunctionTypeSpecifyingExtension.php',
135
- 'SzepeViktor\\PHPStan\\WordPress\\IsWpErrorRule' => $vendorDir . '/szepeviktor/phpstan-wordpress/src/IsWpErrorRule.php',
136
- 'SzepeViktor\\PHPStan\\WordPress\\MySQL2DateDynamicFunctionReturnTypeExtension' => $vendorDir . '/szepeviktor/phpstan-wordpress/src/MySQL2DateDynamicFunctionReturnTypeExtension.php',
137
- 'SzepeViktor\\PHPStan\\WordPress\\RedirectCanonicalDynamicFunctionReturnTypeExtension' => $vendorDir . '/szepeviktor/phpstan-wordpress/src/RedirectCanonicalDynamicFunctionReturnTypeExtension.php',
138
- 'SzepeViktor\\PHPStan\\WordPress\\ShortcodeAttsDynamicFunctionReturnTypeExtension' => $vendorDir . '/szepeviktor/phpstan-wordpress/src/ShortcodeAttsDynamicFunctionReturnTypeExtension.php',
139
- 'SzepeViktor\\PHPStan\\WordPress\\StringOrArrayDynamicFunctionReturnTypeExtension' => $vendorDir . '/szepeviktor/phpstan-wordpress/src/StringOrArrayDynamicFunctionReturnTypeExtension.php',
140
- 'SzepeViktor\\PHPStan\\WordPress\\TermExistsDynamicFunctionReturnTypeExtension' => $vendorDir . '/szepeviktor/phpstan-wordpress/src/TermExistsDynamicFunctionReturnTypeExtension.php',
141
- 'SzepeViktor\\PHPStan\\WordPress\\WPErrorParameterDynamicFunctionReturnTypeExtension' => $vendorDir . '/szepeviktor/phpstan-wordpress/src/WPErrorParameterDynamicFunctionReturnTypeExtension.php',
142
- 'SzepeViktor\\PHPStan\\WordPress\\WpParseUrlFunctionDynamicReturnTypeExtension' => $vendorDir . '/szepeviktor/phpstan-wordpress/src/WpParseUrlFunctionDynamicReturnTypeExtension.php',
143
- 'SzepeViktor\\PHPStan\\WordPress\\WpThemeGetDynamicMethodReturnTypeExtension' => $vendorDir . '/szepeviktor/phpstan-wordpress/src/WpThemeGetDynamicMethodReturnTypeExtension.php',
144
- 'SzepeViktor\\PHPStan\\WordPress\\WpThemeMagicPropertiesClassReflectionExtension' => $vendorDir . '/szepeviktor/phpstan-wordpress/src/WpThemeMagicPropertiesClassReflectionExtension.php',
145
  'WP_Async_Request' => $vendorDir . '/a5hleyrich/wp-background-processing/classes/wp-async-request.php',
146
  'WP_Background_Process' => $vendorDir . '/a5hleyrich/wp-background-processing/classes/wp-background-process.php',
147
  );
101
  'Firebase\\JWT\\JWT' => $vendorDir . '/firebase/php-jwt/src/JWT.php',
102
  'Firebase\\JWT\\Key' => $vendorDir . '/firebase/php-jwt/src/Key.php',
103
  'Firebase\\JWT\\SignatureInvalidException' => $vendorDir . '/firebase/php-jwt/src/SignatureInvalidException.php',
 
 
 
104
  'Raygun4php\\Raygun4PhpException' => $vendorDir . '/mindscape/raygun4php/src/Raygun4php/Raygun4PhpException.php',
105
  'Raygun4php\\RaygunClient' => $vendorDir . '/mindscape/raygun4php/src/Raygun4php/RaygunClient.php',
106
  'Raygun4php\\RaygunClientMessage' => $vendorDir . '/mindscape/raygun4php/src/Raygun4php/RaygunClientMessage.php',
111
  'Raygun4php\\RaygunMessage' => $vendorDir . '/mindscape/raygun4php/src/Raygun4php/RaygunMessage.php',
112
  'Raygun4php\\RaygunMessageDetails' => $vendorDir . '/mindscape/raygun4php/src/Raygun4php/RaygunMessageDetails.php',
113
  'Raygun4php\\RaygunRequestMessage' => $vendorDir . '/mindscape/raygun4php/src/Raygun4php/RaygunRequestMessage.php',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
114
  'WP_Async_Request' => $vendorDir . '/a5hleyrich/wp-background-processing/classes/wp-async-request.php',
115
  'WP_Background_Process' => $vendorDir . '/a5hleyrich/wp-background-processing/classes/wp-background-process.php',
116
  );
vendor/composer/autoload_files.php DELETED
@@ -1,11 +0,0 @@
1
- <?php
2
-
3
- // autoload_files.php @generated by Composer
4
-
5
- $vendorDir = dirname(dirname(__FILE__));
6
- $baseDir = dirname($vendorDir);
7
-
8
- return array(
9
- '9b38cf48e83f5d8f60375221cd213eee' => $vendorDir . '/phpstan/phpstan/bootstrap.php',
10
- '0d59ee240a4cd96ddbb4ff164fccea4d' => $vendorDir . '/symfony/polyfill-php73/bootstrap.php',
11
- );
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/autoload_psr4.php CHANGED
@@ -6,9 +6,6 @@ $vendorDir = dirname(dirname(__FILE__));
6
  $baseDir = dirname($vendorDir);
7
 
8
  return array(
9
- 'SzepeViktor\\PHPStan\\WordPress\\' => array($vendorDir . '/szepeviktor/phpstan-wordpress/src'),
10
- 'Symfony\\Polyfill\\Php73\\' => array($vendorDir . '/symfony/polyfill-php73'),
11
- 'PHPStan\\ExtensionInstaller\\' => array($vendorDir . '/phpstan/extension-installer/src'),
12
  'Firebase\\JWT\\' => array($vendorDir . '/firebase/php-jwt/src'),
13
  'Defuse\\Crypto\\' => array($vendorDir . '/defuse/php-encryption/src'),
14
  'CreativeMail\\Modules\\' => array($baseDir . '/src/modules'),
6
  $baseDir = dirname($vendorDir);
7
 
8
  return array(
 
 
 
9
  'Firebase\\JWT\\' => array($vendorDir . '/firebase/php-jwt/src'),
10
  'Defuse\\Crypto\\' => array($vendorDir . '/defuse/php-encryption/src'),
11
  'CreativeMail\\Modules\\' => array($baseDir . '/src/modules'),
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit315811124a911e9493d5fdf73305051b
6
  {
7
  private static $loader;
8
 
@@ -22,15 +22,15 @@ class ComposerAutoloaderInit315811124a911e9493d5fdf73305051b
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInit315811124a911e9493d5fdf73305051b', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
- spl_autoload_unregister(array('ComposerAutoloaderInit315811124a911e9493d5fdf73305051b', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require_once __DIR__ . '/autoload_static.php';
32
 
33
- call_user_func(\Composer\Autoload\ComposerStaticInit315811124a911e9493d5fdf73305051b::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
@@ -50,24 +50,6 @@ class ComposerAutoloaderInit315811124a911e9493d5fdf73305051b
50
 
51
  $loader->register(true);
52
 
53
- if ($useStaticLoader) {
54
- $includeFiles = Composer\Autoload\ComposerStaticInit315811124a911e9493d5fdf73305051b::$files;
55
- } else {
56
- $includeFiles = require __DIR__ . '/autoload_files.php';
57
- }
58
- foreach ($includeFiles as $fileIdentifier => $file) {
59
- composerRequire315811124a911e9493d5fdf73305051b($fileIdentifier, $file);
60
- }
61
-
62
  return $loader;
63
  }
64
  }
65
-
66
- function composerRequire315811124a911e9493d5fdf73305051b($fileIdentifier, $file)
67
- {
68
- if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
69
- require $file;
70
-
71
- $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
72
- }
73
- }
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInitcf64331d344d60cdd7c271d9659d62f2
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInitcf64331d344d60cdd7c271d9659d62f2', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
+ spl_autoload_unregister(array('ComposerAutoloaderInitcf64331d344d60cdd7c271d9659d62f2', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require_once __DIR__ . '/autoload_static.php';
32
 
33
+ call_user_func(\Composer\Autoload\ComposerStaticInitcf64331d344d60cdd7c271d9659d62f2::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
50
 
51
  $loader->register(true);
52
 
 
 
 
 
 
 
 
 
 
53
  return $loader;
54
  }
55
  }
 
 
 
 
 
 
 
 
 
vendor/composer/autoload_static.php CHANGED
@@ -4,23 +4,9 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit315811124a911e9493d5fdf73305051b
8
  {
9
- public static $files = array (
10
- '9b38cf48e83f5d8f60375221cd213eee' => __DIR__ . '/..' . '/phpstan/phpstan/bootstrap.php',
11
- '0d59ee240a4cd96ddbb4ff164fccea4d' => __DIR__ . '/..' . '/symfony/polyfill-php73/bootstrap.php',
12
- );
13
-
14
  public static $prefixLengthsPsr4 = array (
15
- 'S' =>
16
- array (
17
- 'SzepeViktor\\PHPStan\\WordPress\\' => 30,
18
- 'Symfony\\Polyfill\\Php73\\' => 23,
19
- ),
20
- 'P' =>
21
- array (
22
- 'PHPStan\\ExtensionInstaller\\' => 27,
23
- ),
24
  'F' =>
25
  array (
26
  'Firebase\\JWT\\' => 13,
@@ -43,18 +29,6 @@ class ComposerStaticInit315811124a911e9493d5fdf73305051b
43
  );
44
 
45
  public static $prefixDirsPsr4 = array (
46
- 'SzepeViktor\\PHPStan\\WordPress\\' =>
47
- array (
48
- 0 => __DIR__ . '/..' . '/szepeviktor/phpstan-wordpress/src',
49
- ),
50
- 'Symfony\\Polyfill\\Php73\\' =>
51
- array (
52
- 0 => __DIR__ . '/..' . '/symfony/polyfill-php73',
53
- ),
54
- 'PHPStan\\ExtensionInstaller\\' =>
55
- array (
56
- 0 => __DIR__ . '/..' . '/phpstan/extension-installer/src',
57
- ),
58
  'Firebase\\JWT\\' =>
59
  array (
60
  0 => __DIR__ . '/..' . '/firebase/php-jwt/src',
@@ -203,9 +177,6 @@ class ComposerStaticInit315811124a911e9493d5fdf73305051b
203
  'Firebase\\JWT\\JWT' => __DIR__ . '/..' . '/firebase/php-jwt/src/JWT.php',
204
  'Firebase\\JWT\\Key' => __DIR__ . '/..' . '/firebase/php-jwt/src/Key.php',
205
  'Firebase\\JWT\\SignatureInvalidException' => __DIR__ . '/..' . '/firebase/php-jwt/src/SignatureInvalidException.php',
206
- 'JsonException' => __DIR__ . '/..' . '/symfony/polyfill-php73/Resources/stubs/JsonException.php',
207
- 'PHPStan\\ExtensionInstaller\\GeneratedConfig' => __DIR__ . '/..' . '/phpstan/extension-installer/src/GeneratedConfig.php',
208
- 'PHPStan\\ExtensionInstaller\\Plugin' => __DIR__ . '/..' . '/phpstan/extension-installer/src/Plugin.php',
209
  'Raygun4php\\Raygun4PhpException' => __DIR__ . '/..' . '/mindscape/raygun4php/src/Raygun4php/Raygun4PhpException.php',
210
  'Raygun4php\\RaygunClient' => __DIR__ . '/..' . '/mindscape/raygun4php/src/Raygun4php/RaygunClient.php',
211
  'Raygun4php\\RaygunClientMessage' => __DIR__ . '/..' . '/mindscape/raygun4php/src/Raygun4php/RaygunClientMessage.php',
@@ -216,34 +187,6 @@ class ComposerStaticInit315811124a911e9493d5fdf73305051b
216
  'Raygun4php\\RaygunMessage' => __DIR__ . '/..' . '/mindscape/raygun4php/src/Raygun4php/RaygunMessage.php',
217
  'Raygun4php\\RaygunMessageDetails' => __DIR__ . '/..' . '/mindscape/raygun4php/src/Raygun4php/RaygunMessageDetails.php',
218
  'Raygun4php\\RaygunRequestMessage' => __DIR__ . '/..' . '/mindscape/raygun4php/src/Raygun4php/RaygunRequestMessage.php',
219
- 'Symfony\\Polyfill\\Php73\\Php73' => __DIR__ . '/..' . '/symfony/polyfill-php73/Php73.php',
220
- 'SzepeViktor\\PHPStan\\WordPress\\ApplyFiltersDynamicFunctionReturnTypeExtension' => __DIR__ . '/..' . '/szepeviktor/phpstan-wordpress/src/ApplyFiltersDynamicFunctionReturnTypeExtension.php',
221
- 'SzepeViktor\\PHPStan\\WordPress\\CurrentTimeDynamicFunctionReturnTypeExtension' => __DIR__ . '/..' . '/szepeviktor/phpstan-wordpress/src/CurrentTimeDynamicFunctionReturnTypeExtension.php',
222
- 'SzepeViktor\\PHPStan\\WordPress\\EchoParameterDynamicFunctionReturnTypeExtension' => __DIR__ . '/..' . '/szepeviktor/phpstan-wordpress/src/EchoParameterDynamicFunctionReturnTypeExtension.php',
223
- 'SzepeViktor\\PHPStan\\WordPress\\GetCommentDynamicFunctionReturnTypeExtension' => __DIR__ . '/..' . '/szepeviktor/phpstan-wordpress/src/GetCommentDynamicFunctionReturnTypeExtension.php',
224
- 'SzepeViktor\\PHPStan\\WordPress\\GetListTableDynamicFunctionReturnTypeExtension' => __DIR__ . '/..' . '/szepeviktor/phpstan-wordpress/src/GetListTableDynamicFunctionReturnTypeExtension.php',
225
- 'SzepeViktor\\PHPStan\\WordPress\\GetObjectTaxonomiesDynamicFunctionReturnTypeExtension' => __DIR__ . '/..' . '/szepeviktor/phpstan-wordpress/src/GetObjectTaxonomiesDynamicFunctionReturnTypeExtension.php',
226
- 'SzepeViktor\\PHPStan\\WordPress\\GetPostDynamicFunctionReturnTypeExtension' => __DIR__ . '/..' . '/szepeviktor/phpstan-wordpress/src/GetPostDynamicFunctionReturnTypeExtension.php',
227
- 'SzepeViktor\\PHPStan\\WordPress\\GetPostsDynamicFunctionReturnTypeExtension' => __DIR__ . '/..' . '/szepeviktor/phpstan-wordpress/src/GetPostsDynamicFunctionReturnTypeExtension.php',
228
- 'SzepeViktor\\PHPStan\\WordPress\\GetSitesDynamicFunctionReturnTypeExtension' => __DIR__ . '/..' . '/szepeviktor/phpstan-wordpress/src/GetSitesDynamicFunctionReturnTypeExtension.php',
229
- 'SzepeViktor\\PHPStan\\WordPress\\GetTaxonomiesDynamicFunctionReturnTypeExtension' => __DIR__ . '/..' . '/szepeviktor/phpstan-wordpress/src/GetTaxonomiesDynamicFunctionReturnTypeExtension.php',
230
- 'SzepeViktor\\PHPStan\\WordPress\\GetTermsDynamicFunctionReturnTypeExtension' => __DIR__ . '/..' . '/szepeviktor/phpstan-wordpress/src/GetTermsDynamicFunctionReturnTypeExtension.php',
231
- 'SzepeViktor\\PHPStan\\WordPress\\HasFilterDynamicFunctionReturnTypeExtension' => __DIR__ . '/..' . '/szepeviktor/phpstan-wordpress/src/HasFilterDynamicFunctionReturnTypeExtension.php',
232
- 'SzepeViktor\\PHPStan\\WordPress\\HookDocBlock' => __DIR__ . '/..' . '/szepeviktor/phpstan-wordpress/src/HookDocBlock.php',
233
- 'SzepeViktor\\PHPStan\\WordPress\\HookDocsParamException' => __DIR__ . '/..' . '/szepeviktor/phpstan-wordpress/src/HookDocsParamException.php',
234
- 'SzepeViktor\\PHPStan\\WordPress\\HookDocsRule' => __DIR__ . '/..' . '/szepeviktor/phpstan-wordpress/src/HookDocsRule.php',
235
- 'SzepeViktor\\PHPStan\\WordPress\\HookDocsVisitor' => __DIR__ . '/..' . '/szepeviktor/phpstan-wordpress/src/HookDocsVisitor.php',
236
- 'SzepeViktor\\PHPStan\\WordPress\\IsWpErrorFunctionTypeSpecifyingExtension' => __DIR__ . '/..' . '/szepeviktor/phpstan-wordpress/src/IsWpErrorFunctionTypeSpecifyingExtension.php',
237
- 'SzepeViktor\\PHPStan\\WordPress\\IsWpErrorRule' => __DIR__ . '/..' . '/szepeviktor/phpstan-wordpress/src/IsWpErrorRule.php',
238
- 'SzepeViktor\\PHPStan\\WordPress\\MySQL2DateDynamicFunctionReturnTypeExtension' => __DIR__ . '/..' . '/szepeviktor/phpstan-wordpress/src/MySQL2DateDynamicFunctionReturnTypeExtension.php',
239
- 'SzepeViktor\\PHPStan\\WordPress\\RedirectCanonicalDynamicFunctionReturnTypeExtension' => __DIR__ . '/..' . '/szepeviktor/phpstan-wordpress/src/RedirectCanonicalDynamicFunctionReturnTypeExtension.php',
240
- 'SzepeViktor\\PHPStan\\WordPress\\ShortcodeAttsDynamicFunctionReturnTypeExtension' => __DIR__ . '/..' . '/szepeviktor/phpstan-wordpress/src/ShortcodeAttsDynamicFunctionReturnTypeExtension.php',
241
- 'SzepeViktor\\PHPStan\\WordPress\\StringOrArrayDynamicFunctionReturnTypeExtension' => __DIR__ . '/..' . '/szepeviktor/phpstan-wordpress/src/StringOrArrayDynamicFunctionReturnTypeExtension.php',
242
- 'SzepeViktor\\PHPStan\\WordPress\\TermExistsDynamicFunctionReturnTypeExtension' => __DIR__ . '/..' . '/szepeviktor/phpstan-wordpress/src/TermExistsDynamicFunctionReturnTypeExtension.php',
243
- 'SzepeViktor\\PHPStan\\WordPress\\WPErrorParameterDynamicFunctionReturnTypeExtension' => __DIR__ . '/..' . '/szepeviktor/phpstan-wordpress/src/WPErrorParameterDynamicFunctionReturnTypeExtension.php',
244
- 'SzepeViktor\\PHPStan\\WordPress\\WpParseUrlFunctionDynamicReturnTypeExtension' => __DIR__ . '/..' . '/szepeviktor/phpstan-wordpress/src/WpParseUrlFunctionDynamicReturnTypeExtension.php',
245
- 'SzepeViktor\\PHPStan\\WordPress\\WpThemeGetDynamicMethodReturnTypeExtension' => __DIR__ . '/..' . '/szepeviktor/phpstan-wordpress/src/WpThemeGetDynamicMethodReturnTypeExtension.php',
246
- 'SzepeViktor\\PHPStan\\WordPress\\WpThemeMagicPropertiesClassReflectionExtension' => __DIR__ . '/..' . '/szepeviktor/phpstan-wordpress/src/WpThemeMagicPropertiesClassReflectionExtension.php',
247
  'WP_Async_Request' => __DIR__ . '/..' . '/a5hleyrich/wp-background-processing/classes/wp-async-request.php',
248
  'WP_Background_Process' => __DIR__ . '/..' . '/a5hleyrich/wp-background-processing/classes/wp-background-process.php',
249
  );
@@ -251,10 +194,10 @@ class ComposerStaticInit315811124a911e9493d5fdf73305051b
251
  public static function getInitializer(ClassLoader $loader)
252
  {
253
  return \Closure::bind(function () use ($loader) {
254
- $loader->prefixLengthsPsr4 = ComposerStaticInit315811124a911e9493d5fdf73305051b::$prefixLengthsPsr4;
255
- $loader->prefixDirsPsr4 = ComposerStaticInit315811124a911e9493d5fdf73305051b::$prefixDirsPsr4;
256
- $loader->prefixesPsr0 = ComposerStaticInit315811124a911e9493d5fdf73305051b::$prefixesPsr0;
257
- $loader->classMap = ComposerStaticInit315811124a911e9493d5fdf73305051b::$classMap;
258
 
259
  }, null, ClassLoader::class);
260
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInitcf64331d344d60cdd7c271d9659d62f2
8
  {
 
 
 
 
 
9
  public static $prefixLengthsPsr4 = array (
 
 
 
 
 
 
 
 
 
10
  'F' =>
11
  array (
12
  'Firebase\\JWT\\' => 13,
29
  );
30
 
31
  public static $prefixDirsPsr4 = array (
 
 
 
 
 
 
 
 
 
 
 
 
32
  'Firebase\\JWT\\' =>
33
  array (
34
  0 => __DIR__ . '/..' . '/firebase/php-jwt/src',
177
  'Firebase\\JWT\\JWT' => __DIR__ . '/..' . '/firebase/php-jwt/src/JWT.php',
178
  'Firebase\\JWT\\Key' => __DIR__ . '/..' . '/firebase/php-jwt/src/Key.php',
179
  'Firebase\\JWT\\SignatureInvalidException' => __DIR__ . '/..' . '/firebase/php-jwt/src/SignatureInvalidException.php',
 
 
 
180
  'Raygun4php\\Raygun4PhpException' => __DIR__ . '/..' . '/mindscape/raygun4php/src/Raygun4php/Raygun4PhpException.php',
181
  'Raygun4php\\RaygunClient' => __DIR__ . '/..' . '/mindscape/raygun4php/src/Raygun4php/RaygunClient.php',
182
  'Raygun4php\\RaygunClientMessage' => __DIR__ . '/..' . '/mindscape/raygun4php/src/Raygun4php/RaygunClientMessage.php',
187
  'Raygun4php\\RaygunMessage' => __DIR__ . '/..' . '/mindscape/raygun4php/src/Raygun4php/RaygunMessage.php',
188
  'Raygun4php\\RaygunMessageDetails' => __DIR__ . '/..' . '/mindscape/raygun4php/src/Raygun4php/RaygunMessageDetails.php',
189
  'Raygun4php\\RaygunRequestMessage' => __DIR__ . '/..' . '/mindscape/raygun4php/src/Raygun4php/RaygunRequestMessage.php',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
190
  'WP_Async_Request' => __DIR__ . '/..' . '/a5hleyrich/wp-background-processing/classes/wp-async-request.php',
191
  'WP_Background_Process' => __DIR__ . '/..' . '/a5hleyrich/wp-background-processing/classes/wp-background-process.php',
192
  );
194
  public static function getInitializer(ClassLoader $loader)
195
  {
196
  return \Closure::bind(function () use ($loader) {
197
+ $loader->prefixLengthsPsr4 = ComposerStaticInitcf64331d344d60cdd7c271d9659d62f2::$prefixLengthsPsr4;
198
+ $loader->prefixDirsPsr4 = ComposerStaticInitcf64331d344d60cdd7c271d9659d62f2::$prefixDirsPsr4;
199
+ $loader->prefixesPsr0 = ComposerStaticInitcf64331d344d60cdd7c271d9659d62f2::$prefixesPsr0;
200
+ $loader->classMap = ComposerStaticInitcf64331d344d60cdd7c271d9659d62f2::$classMap;
201
 
202
  }, null, ClassLoader::class);
203
  }
vendor/composer/installed.json CHANGED
@@ -258,93 +258,6 @@
258
  "random"
259
  ]
260
  },
261
- {
262
- "name": "php-stubs/woocommerce-stubs",
263
- "version": "v6.9.4",
264
- "version_normalized": "6.9.4.0",
265
- "source": {
266
- "type": "git",
267
- "url": "https://github.com/php-stubs/woocommerce-stubs.git",
268
- "reference": "823aa38297d9013b96c5eab2846c260bbe12b975"
269
- },
270
- "dist": {
271
- "type": "zip",
272
- "url": "https://api.github.com/repos/php-stubs/woocommerce-stubs/zipball/823aa38297d9013b96c5eab2846c260bbe12b975",
273
- "reference": "823aa38297d9013b96c5eab2846c260bbe12b975",
274
- "shasum": ""
275
- },
276
- "require": {
277
- "php-stubs/wordpress-stubs": "^5.3 || ^6.0"
278
- },
279
- "require-dev": {
280
- "php": "~7.1 || ~8.0",
281
- "php-stubs/generator": "^0.8.0"
282
- },
283
- "suggest": {
284
- "symfony/polyfill-php73": "Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions",
285
- "szepeviktor/phpstan-wordpress": "WordPress extensions for PHPStan"
286
- },
287
- "time": "2022-10-12T08:01:21+00:00",
288
- "type": "library",
289
- "installation-source": "dist",
290
- "notification-url": "https://packagist.org/downloads/",
291
- "license": [
292
- "MIT"
293
- ],
294
- "description": "WooCommerce function and class declaration stubs for static analysis.",
295
- "homepage": "https://github.com/php-stubs/woocommerce-stubs",
296
- "keywords": [
297
- "PHPStan",
298
- "static analysis",
299
- "woocommerce",
300
- "wordpress"
301
- ]
302
- },
303
- {
304
- "name": "php-stubs/wordpress-stubs",
305
- "version": "v6.0.2",
306
- "version_normalized": "6.0.2.0",
307
- "source": {
308
- "type": "git",
309
- "url": "https://github.com/php-stubs/wordpress-stubs.git",
310
- "reference": "165b84f082db851e76ec51bebcde550d03976893"
311
- },
312
- "dist": {
313
- "type": "zip",
314
- "url": "https://api.github.com/repos/php-stubs/wordpress-stubs/zipball/165b84f082db851e76ec51bebcde550d03976893",
315
- "reference": "165b84f082db851e76ec51bebcde550d03976893",
316
- "shasum": ""
317
- },
318
- "replace": {
319
- "giacocorsiglia/wordpress-stubs": "*"
320
- },
321
- "require-dev": {
322
- "nikic/php-parser": "< 4.12.0",
323
- "php": "~7.3 || ~8.0",
324
- "php-stubs/generator": "^0.8.1",
325
- "phpdocumentor/reflection-docblock": "^5.3",
326
- "phpstan/phpstan": "^1.2"
327
- },
328
- "suggest": {
329
- "paragonie/sodium_compat": "Pure PHP implementation of libsodium",
330
- "symfony/polyfill-php73": "Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions",
331
- "szepeviktor/phpstan-wordpress": "WordPress extensions for PHPStan"
332
- },
333
- "time": "2022-09-30T17:46:11+00:00",
334
- "type": "library",
335
- "installation-source": "dist",
336
- "notification-url": "https://packagist.org/downloads/",
337
- "license": [
338
- "MIT"
339
- ],
340
- "description": "WordPress function and class declaration stubs for static analysis.",
341
- "homepage": "https://github.com/php-stubs/wordpress-stubs",
342
- "keywords": [
343
- "PHPStan",
344
- "static analysis",
345
- "wordpress"
346
- ]
347
- },
348
  {
349
  "name": "phpcompatibility/php-compatibility",
350
  "version": "9.3.5",
@@ -405,106 +318,6 @@
405
  "standards"
406
  ]
407
  },
408
- {
409
- "name": "phpstan/extension-installer",
410
- "version": "1.1.0",
411
- "version_normalized": "1.1.0.0",
412
- "source": {
413
- "type": "git",
414
- "url": "https://github.com/phpstan/extension-installer.git",
415
- "reference": "66c7adc9dfa38b6b5838a9fb728b68a7d8348051"
416
- },
417
- "dist": {
418
- "type": "zip",
419
- "url": "https://api.github.com/repos/phpstan/extension-installer/zipball/66c7adc9dfa38b6b5838a9fb728b68a7d8348051",
420
- "reference": "66c7adc9dfa38b6b5838a9fb728b68a7d8348051",
421
- "shasum": ""
422
- },
423
- "require": {
424
- "composer-plugin-api": "^1.1 || ^2.0",
425
- "php": "^7.1 || ^8.0",
426
- "phpstan/phpstan": ">=0.11.6"
427
- },
428
- "require-dev": {
429
- "composer/composer": "^1.8",
430
- "phing/phing": "^2.16.3",
431
- "php-parallel-lint/php-parallel-lint": "^1.2.0",
432
- "phpstan/phpstan-strict-rules": "^0.11 || ^0.12"
433
- },
434
- "time": "2020-12-13T13:06:13+00:00",
435
- "type": "composer-plugin",
436
- "extra": {
437
- "class": "PHPStan\\ExtensionInstaller\\Plugin"
438
- },
439
- "installation-source": "dist",
440
- "autoload": {
441
- "psr-4": {
442
- "PHPStan\\ExtensionInstaller\\": "src/"
443
- }
444
- },
445
- "notification-url": "https://packagist.org/downloads/",
446
- "license": [
447
- "MIT"
448
- ],
449
- "description": "Composer plugin for automatic installation of PHPStan extensions"
450
- },
451
- {
452
- "name": "phpstan/phpstan",
453
- "version": "1.8.11",
454
- "version_normalized": "1.8.11.0",
455
- "source": {
456
- "type": "git",
457
- "url": "https://github.com/phpstan/phpstan.git",
458
- "reference": "46e223dd68a620da18855c23046ddb00940b4014"
459
- },
460
- "dist": {
461
- "type": "zip",
462
- "url": "https://api.github.com/repos/phpstan/phpstan/zipball/46e223dd68a620da18855c23046ddb00940b4014",
463
- "reference": "46e223dd68a620da18855c23046ddb00940b4014",
464
- "shasum": ""
465
- },
466
- "require": {
467
- "php": "^7.2|^8.0"
468
- },
469
- "conflict": {
470
- "phpstan/phpstan-shim": "*"
471
- },
472
- "time": "2022-10-24T15:45:13+00:00",
473
- "bin": [
474
- "phpstan",
475
- "phpstan.phar"
476
- ],
477
- "type": "library",
478
- "installation-source": "dist",
479
- "autoload": {
480
- "files": [
481
- "bootstrap.php"
482
- ]
483
- },
484
- "notification-url": "https://packagist.org/downloads/",
485
- "license": [
486
- "MIT"
487
- ],
488
- "description": "PHPStan - PHP Static Analysis Tool",
489
- "keywords": [
490
- "dev",
491
- "static analysis"
492
- ],
493
- "funding": [
494
- {
495
- "url": "https://github.com/ondrejmirtes",
496
- "type": "github"
497
- },
498
- {
499
- "url": "https://github.com/phpstan",
500
- "type": "github"
501
- },
502
- {
503
- "url": "https://tidelift.com/funding/github/packagist/phpstan/phpstan",
504
- "type": "tidelift"
505
- }
506
- ]
507
- },
508
  {
509
  "name": "squizlabs/php_codesniffer",
510
  "version": "3.7.1",
@@ -557,150 +370,5 @@
557
  "phpcs",
558
  "standards"
559
  ]
560
- },
561
- {
562
- "name": "symfony/polyfill-php73",
563
- "version": "v1.26.0",
564
- "version_normalized": "1.26.0.0",
565
- "source": {
566
- "type": "git",
567
- "url": "https://github.com/symfony/polyfill-php73.git",
568
- "reference": "e440d35fa0286f77fb45b79a03fedbeda9307e85"
569
- },
570
- "dist": {
571
- "type": "zip",
572
- "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/e440d35fa0286f77fb45b79a03fedbeda9307e85",
573
- "reference": "e440d35fa0286f77fb45b79a03fedbeda9307e85",
574
- "shasum": ""
575
- },
576
- "require": {
577
- "php": ">=7.1"
578
- },
579
- "time": "2022-05-24T11:49:31+00:00",
580
- "type": "library",
581
- "extra": {
582
- "branch-alias": {
583
- "dev-main": "1.26-dev"
584
- },
585
- "thanks": {
586
- "name": "symfony/polyfill",
587
- "url": "https://github.com/symfony/polyfill"
588
- }
589
- },
590
- "installation-source": "dist",
591
- "autoload": {
592
- "files": [
593
- "bootstrap.php"
594
- ],
595
- "psr-4": {
596
- "Symfony\\Polyfill\\Php73\\": ""
597
- },
598
- "classmap": [
599
- "Resources/stubs"
600
- ]
601
- },
602
- "notification-url": "https://packagist.org/downloads/",
603
- "license": [
604
- "MIT"
605
- ],
606
- "authors": [
607
- {
608
- "name": "Nicolas Grekas",
609
- "email": "p@tchwork.com"
610
- },
611
- {
612
- "name": "Symfony Community",
613
- "homepage": "https://symfony.com/contributors"
614
- }
615
- ],
616
- "description": "Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions",
617
- "homepage": "https://symfony.com",
618
- "keywords": [
619
- "compatibility",
620
- "polyfill",
621
- "portable",
622
- "shim"
623
- ],
624
- "funding": [
625
- {
626
- "url": "https://symfony.com/sponsor",
627
- "type": "custom"
628
- },
629
- {
630
- "url": "https://github.com/fabpot",
631
- "type": "github"
632
- },
633
- {
634
- "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
635
- "type": "tidelift"
636
- }
637
- ]
638
- },
639
- {
640
- "name": "szepeviktor/phpstan-wordpress",
641
- "version": "v1.1.3",
642
- "version_normalized": "1.1.3.0",
643
- "source": {
644
- "type": "git",
645
- "url": "https://github.com/szepeviktor/phpstan-wordpress.git",
646
- "reference": "e644df734e1bbe95810e0f617d17df091048a94e"
647
- },
648
- "dist": {
649
- "type": "zip",
650
- "url": "https://api.github.com/repos/szepeviktor/phpstan-wordpress/zipball/e644df734e1bbe95810e0f617d17df091048a94e",
651
- "reference": "e644df734e1bbe95810e0f617d17df091048a94e",
652
- "shasum": ""
653
- },
654
- "require": {
655
- "php": "^7.2 || ^8.0",
656
- "php-stubs/wordpress-stubs": "^4.7 || ^5.0 || ^6.0",
657
- "phpstan/phpstan": "^1.6",
658
- "symfony/polyfill-php73": "^1.12.0"
659
- },
660
- "require-dev": {
661
- "composer/composer": "^2.1.14",
662
- "dealerdirect/phpcodesniffer-composer-installer": "^0.7",
663
- "php-parallel-lint/php-parallel-lint": "^1.1",
664
- "phpstan/phpstan-strict-rules": "^1.2",
665
- "phpunit/phpunit": "^8 || ^9",
666
- "szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset": "^0.6"
667
- },
668
- "time": "2022-09-22T13:14:50+00:00",
669
- "type": "phpstan-extension",
670
- "extra": {
671
- "phpstan": {
672
- "includes": [
673
- "extension.neon"
674
- ]
675
- }
676
- },
677
- "installation-source": "dist",
678
- "autoload": {
679
- "psr-4": {
680
- "SzepeViktor\\PHPStan\\WordPress\\": "src/"
681
- }
682
- },
683
- "notification-url": "https://packagist.org/downloads/",
684
- "license": [
685
- "MIT"
686
- ],
687
- "description": "WordPress extensions for PHPStan",
688
- "keywords": [
689
- "PHPStan",
690
- "code analyse",
691
- "code analysis",
692
- "static analysis",
693
- "wordpress"
694
- ],
695
- "funding": [
696
- {
697
- "url": "https://www.paypal.me/szepeviktor",
698
- "type": "custom"
699
- },
700
- {
701
- "url": "https://github.com/szepeviktor",
702
- "type": "github"
703
- }
704
- ]
705
  }
706
  ]
258
  "random"
259
  ]
260
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
261
  {
262
  "name": "phpcompatibility/php-compatibility",
263
  "version": "9.3.5",
318
  "standards"
319
  ]
320
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
321
  {
322
  "name": "squizlabs/php_codesniffer",
323
  "version": "3.7.1",
370
  "phpcs",
371
  "standards"
372
  ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
373
  }
374
  ]
vendor/firebase/php-jwt/.github/actions/entrypoint.sh DELETED
@@ -1,18 +0,0 @@
1
- #!/bin/sh -l
2
-
3
- apt-get update && \
4
- apt-get install -y --no-install-recommends \
5
- git \
6
- zip \
7
- curl \
8
- unzip \
9
- wget
10
-
11
- curl --silent --show-error https://getcomposer.org/installer | php
12
- php composer.phar self-update
13
-
14
- echo "---Installing dependencies ---"
15
- php composer.phar update
16
-
17
- echo "---Running unit tests ---"
18
- vendor/bin/phpunit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/firebase/php-jwt/.github/workflows/tests.yml DELETED
@@ -1,77 +0,0 @@
1
- name: Test Suite
2
- on:
3
- push:
4
- branches:
5
- - master
6
- pull_request:
7
-
8
- jobs:
9
- test:
10
- runs-on: ubuntu-latest
11
- strategy:
12
- matrix:
13
- php: [ "5.6", "7.0", "7.1", "7.2", "7.3", "7.4", "8.0" ]
14
- name: PHP ${{matrix.php }} Unit Test
15
- steps:
16
- - uses: actions/checkout@v2
17
- - name: Setup PHP
18
- uses: shivammathur/setup-php@v2
19
- with:
20
- php-version: ${{ matrix.php }}
21
- - name: Install Dependencies
22
- uses: nick-invision/retry@v1
23
- with:
24
- timeout_minutes: 10
25
- max_attempts: 3
26
- command: composer install
27
- - name: Run Script
28
- run: vendor/bin/phpunit
29
-
30
- # use dockerfiles for old versions of php (setup-php times out for those).
31
- test_php55:
32
- name: "PHP 5.5 Unit Test"
33
- runs-on: ubuntu-latest
34
- steps:
35
- - name: Checkout
36
- uses: actions/checkout@v2
37
- - name: Run Unit Tests
38
- uses: docker://php:5.5-cli
39
- with:
40
- entrypoint: ./.github/actions/entrypoint.sh
41
-
42
- test_php54:
43
- name: "PHP 5.4 Unit Test"
44
- runs-on: ubuntu-latest
45
- steps:
46
- - name: Checkout
47
- uses: actions/checkout@v2
48
- - name: Run Unit Tests
49
- uses: docker://php:5.4-cli
50
- with:
51
- entrypoint: ./.github/actions/entrypoint.sh
52
-
53
- test_php53:
54
- name: "PHP 5.3 Unit Test"
55
- runs-on: ubuntu-latest
56
- steps:
57
- - name: Checkout
58
- uses: actions/checkout@v2
59
- - name: Run Unit Tests
60
- uses: docker://tomsowerby/php-5.3:cli
61
- with:
62
- entrypoint: ./.github/actions/entrypoint.sh
63
-
64
- style:
65
- runs-on: ubuntu-latest
66
- name: PHP Style Check
67
- steps:
68
- - uses: actions/checkout@v2
69
- - name: Setup PHP
70
- uses: shivammathur/setup-php@v2
71
- with:
72
- php-version: "7.0"
73
- - name: Run Script
74
- run: |
75
- composer require friendsofphp/php-cs-fixer
76
- vendor/bin/php-cs-fixer fix --diff --dry-run .
77
- vendor/bin/php-cs-fixer fix --rules=native_function_invocation --allow-risky=yes --diff src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/phpstan/extension-installer/.github/workflows/build.yml DELETED
@@ -1,113 +0,0 @@
1
- # https://help.github.com/en/categories/automating-your-workflow-with-github-actions
2
-
3
- name: "Build"
4
-
5
- on:
6
- pull_request:
7
- push:
8
- branches:
9
- - "master"
10
-
11
- jobs:
12
- lint:
13
- name: "Lint"
14
- runs-on: "ubuntu-latest"
15
-
16
- strategy:
17
- matrix:
18
- php-version:
19
- - "7.1"
20
- - "7.2"
21
- - "7.3"
22
- - "7.4"
23
- - "8.0"
24
-
25
- steps:
26
- - name: "Checkout"
27
- uses: "actions/checkout@v2"
28
-
29
- - name: "Install PHP"
30
- uses: "shivammathur/setup-php@v2"
31
- with:
32
- coverage: "none"
33
- php-version: "${{ matrix.php-version }}"
34
-
35
- - name: "Validate Composer"
36
- run: "composer validate"
37
-
38
- - name: "Install dependencies"
39
- run: "composer install --no-interaction --no-progress --no-suggest"
40
-
41
- - name: "Lint"
42
- run: "vendor/bin/phing lint"
43
-
44
- coding-standards:
45
- name: "Coding Standard"
46
-
47
- runs-on: "ubuntu-latest"
48
-
49
- steps:
50
- - name: "Checkout"
51
- uses: "actions/checkout@v2"
52
-
53
- - name: "Install PHP"
54
- uses: "shivammathur/setup-php@v2"
55
- with:
56
- coverage: "none"
57
- php-version: "7.4"
58
-
59
- - name: "Validate Composer"
60
- run: "composer validate"
61
-
62
- - name: "Install dependencies"
63
- run: "composer install --no-interaction --no-progress --no-suggest"
64
-
65
- - name: "Lint"
66
- run: "vendor/bin/phing lint"
67
-
68
- - name: "Coding Standard"
69
- run: "vendor/bin/phing cs"
70
-
71
- static-analysis:
72
- name: "PHPStan"
73
- runs-on: "ubuntu-latest"
74
-
75
- strategy:
76
- fail-fast: false
77
- matrix:
78
- php-version:
79
- - "7.1"
80
- - "7.2"
81
- - "7.3"
82
- - "7.4"
83
- - "8.0"
84
- dependencies:
85
- - "lowest"
86
- - "highest"
87
-
88
- steps:
89
- - name: "Checkout"
90
- uses: "actions/checkout@v2"
91
-
92
- - name: "Install PHP"
93
- uses: "shivammathur/setup-php@v2"
94
- with:
95
- coverage: "none"
96
- php-version: "${{ matrix.php-version }}"
97
- extensions: mbstring
98
- tools: composer:v2
99
-
100
- - name: "Install lowest dependencies"
101
- if: ${{ matrix.dependencies == 'lowest' }}
102
- run: "composer update --prefer-lowest --no-interaction --no-progress --no-suggest"
103
-
104
- - name: "Install highest dependencies"
105
- if: ${{ matrix.dependencies == 'highest' }}
106
- run: "composer update --no-interaction --no-progress --no-suggest"
107
-
108
- - name: "Update PHPStan"
109
- if: matrix.php-version == '8.0'
110
- run: "composer require --dev phpstan/phpstan:'^0.12.60' --update-with-dependencies"
111
-
112
- - name: "PHPStan"
113
- run: "vendor/bin/phing phpstan"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/phpstan/extension-installer/.github/workflows/release.yml DELETED
@@ -1,33 +0,0 @@
1
- # https://help.github.com/en/categories/automating-your-workflow-with-github-actions
2
-
3
- name: "Create release"
4
-
5
- on:
6
- push:
7
- tags:
8
- - '*'
9
-
10
- jobs:
11
- deploy:
12
- name: "Deploy"
13
- runs-on: "ubuntu-latest"
14
-
15
- steps:
16
- - name: "Checkout"
17
- uses: "actions/checkout@v2"
18
-
19
- - name: Generate changelog
20
- id: changelog
21
- uses: metcalfc/changelog-generator@v0.4.4
22
- with:
23
- myToken: ${{ secrets.GITHUB_TOKEN }}
24
-
25
- - name: "Create release"
26
- id: create-release
27
- uses: actions/create-release@v1
28
- env:
29
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30
- with:
31
- tag_name: ${{ github.ref }}
32
- release_name: ${{ github.ref }}
33
- body: ${{ steps.changelog.outputs.changelog }}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/phpstan/extension-installer/.gitignore DELETED
@@ -1,3 +0,0 @@
1
- /src/GeneratedConfig.php
2
- /vendor
3
- composer.lock
 
 
 
vendor/phpstan/extension-installer/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2019 Ondřej Mirtes
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/phpstan/extension-installer/README.md DELETED
@@ -1,73 +0,0 @@
1
- # PHPStan Extension Installer
2
-
3
- [![Build](https://github.com/phpstan/extension-installer/workflows/Build/badge.svg)](https://github.com/phpstan/extension-installer/actions)
4
- [![Latest Stable Version](https://poser.pugx.org/phpstan/extension-installer/v/stable)](https://packagist.org/packages/phpstan/extension-installer)
5
- [![License](https://poser.pugx.org/phpstan/extension-installer/license)](https://packagist.org/packages/phpstan/extension-installer)
6
-
7
- Composer plugin for automatic installation of [PHPStan](https://phpstan.org/) extensions.
8
-
9
- # Motivation
10
-
11
- ```diff
12
- diff --git a/phpstan.neon b/phpstan.neon
13
- index db4e3df32e..2ca30fa20a 100644
14
- --- a/phpstan.neon
15
- +++ b/phpstan.neon
16
- @@ -1,12 +1,3 @@
17
- -includes:
18
- - - vendor/phpstan/phpstan-doctrine/extension.neon
19
- - - vendor/phpstan/phpstan-doctrine/rules.neon
20
- - - vendor/phpstan/phpstan-nette/extension.neon
21
- - - vendor/phpstan/phpstan-nette/rules.neon
22
- - - vendor/phpstan/phpstan-phpunit/extension.neon
23
- - - vendor/phpstan/phpstan-phpunit/rules.neon
24
- - - vendor/phpstan/phpstan-strict-rules/rules.neon
25
- -
26
- parameters:
27
- autoload_directories:
28
- - %rootDir%/../../../build/SlevomatSniffs
29
- diff --git a/composer.json b/composer.json
30
- index 1b578dd624..f6ebf6e477 100644
31
- --- a/composer.json
32
- +++ b/composer.json
33
- @@ -142,6 +142,7 @@
34
- "jakub-onderka/php-parallel-lint": "1.0.0",
35
- "justinrainbow/json-schema": "5.2.8",
36
- "ondrejmirtes/mocktainer": "0.8",
37
- + "phpstan/extension-installer": "^1.0",
38
- "phpstan/phpstan": "^0.11.7",
39
- "phpstan/phpstan-doctrine": "^0.11.3",
40
- "phpstan/phpstan-nette": "^0.11.1",
41
- ```
42
-
43
- ## Usage
44
-
45
- ```bash
46
- composer require --dev phpstan/extension-installer
47
- ```
48
-
49
- And that's it.
50
-
51
- ## Instructions for extension developers
52
-
53
- It's best (but optional) to set the extension's composer package [type](https://getcomposer.org/doc/04-schema.md#type) to `phpstan-extension` for this plugin to be able to recognize it and to be [discoverable on Packagist](https://packagist.org/explore/?type=phpstan-extension).
54
-
55
- Only one feature is supported right now: PHPStan is able to automatically include the extension's config files, without you having to mention them in your `phpstan.neon`'s `includes` section.
56
-
57
- For this, you have to add a `phpstan` key in the extension `composer.json`'s `extra` section like so:
58
-
59
- ```json
60
- {
61
- "extra": {
62
- "phpstan": {
63
- "includes": [
64
- "extension.neon"
65
- ]
66
- }
67
- }
68
- }
69
- ```
70
-
71
- ## Limitations
72
-
73
- The extension installer depends on Composer script events, therefore you cannot use `--no-scripts` flag.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/phpstan/extension-installer/build-cs/.gitignore DELETED
@@ -1,2 +0,0 @@
1
- /composer.lock
2
- /vendor
 
 
vendor/phpstan/extension-installer/build-cs/composer.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "require-dev": {
3
- "consistence/coding-standard": "^3.10",
4
- "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
5
- "slevomat/coding-standard": "^6.4"
6
- }
7
- }
 
 
 
 
 
 
 
vendor/phpstan/extension-installer/build.xml DELETED
@@ -1,90 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <project name="PHPStan Extension Installer" default="check">
3
-
4
- <target name="check" depends="
5
- composer,
6
- lint,
7
- cs,
8
- phpstan
9
- "/>
10
-
11
- <target name="composer">
12
- <exec
13
- executable="composer"
14
- logoutput="true"
15
- passthru="true"
16
- checkreturn="true"
17
- >
18
- <arg value="install"/>
19
- </exec>
20
- </target>
21
-
22
- <target name="lint">
23
- <exec
24
- executable="vendor/bin/parallel-lint"
25
- logoutput="true"
26
- passthru="true"
27
- checkreturn="true"
28
- >
29
- <arg path="src" />
30
- </exec>
31
- </target>
32
-
33
- <target name="cs">
34
- <exec
35
- executable="composer"
36
- logoutput="true"
37
- passthru="true"
38
- checkreturn="true"
39
- >
40
- <arg value="install"/>
41
- <arg value="--working-dir"/>
42
- <arg path="build-cs"/>
43
- <arg value="--ansi"/>
44
- </exec>
45
- <exec
46
- executable="build-cs/vendor/bin/phpcs"
47
- logoutput="true"
48
- passthru="true"
49
- checkreturn="true"
50
- >
51
- <arg value="--extensions=php"/>
52
- <arg value="--encoding=utf-8"/>
53
- <arg value="--tab-width=4"/>
54
- <arg value="-sp"/>
55
- <arg path="src"/>
56
- </exec>
57
- </target>
58
-
59
- <target name="cs-fix">
60
- <exec
61
- executable="build-cs/vendor/bin/phpcbf"
62
- logoutput="true"
63
- passthru="true"
64
- checkreturn="true"
65
- >
66
- <arg value="--extensions=php"/>
67
- <arg value="--encoding=utf-8"/>
68
- <arg value="--tab-width=4"/>
69
- <arg value="-sp"/>
70
- <arg path="src"/>
71
- </exec>
72
- </target>
73
-
74
- <target name="phpstan">
75
- <exec
76
- executable="vendor/bin/phpstan"
77
- logoutput="true"
78
- passthru="true"
79
- checkreturn="true"
80
- >
81
- <arg value="analyse"/>
82
- <arg value="-l"/>
83
- <arg value="7"/>
84
- <arg value="-c"/>
85
- <arg path="phpstan.neon"/>
86
- <arg path="src"/>
87
- </exec>
88
- </target>
89
-
90
- </project>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/phpstan/extension-installer/composer.json DELETED
@@ -1,30 +0,0 @@
1
- {
2
- "name": "phpstan/extension-installer",
3
- "type": "composer-plugin",
4
- "description": "Composer plugin for automatic installation of PHPStan extensions",
5
- "license": [
6
- "MIT"
7
- ],
8
- "require": {
9
- "php": "^7.1 || ^8.0",
10
- "composer-plugin-api": "^1.1 || ^2.0",
11
- "phpstan/phpstan": ">=0.11.6"
12
- },
13
- "require-dev": {
14
- "composer/composer": "^1.8",
15
- "phing/phing": "^2.16.3",
16
- "php-parallel-lint/php-parallel-lint": "^1.2.0",
17
- "phpstan/phpstan-strict-rules": "^0.11 || ^0.12"
18
- },
19
- "config": {
20
- "sort-packages": true
21
- },
22
- "extra": {
23
- "class": "PHPStan\\ExtensionInstaller\\Plugin"
24
- },
25
- "autoload": {
26
- "psr-4": {
27
- "PHPStan\\ExtensionInstaller\\": "src/"
28
- }
29
- }
30
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/phpstan/extension-installer/phpcs.xml DELETED
@@ -1,57 +0,0 @@
1
- <?xml version="1.0"?>
2
- <ruleset name="PHPStan extension installer">
3
- <rule ref="build-cs/vendor/consistence/coding-standard/Consistence/ruleset.xml">
4
- <exclude name="Squiz.Functions.GlobalFunction.Found"/>
5
- <exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameAfterKeyword"/>
6
- <exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameInAnnotation"/>
7
- <exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedExceptions"/>
8
- <exclude name="SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly"/>
9
- <exclude name="Squiz.PHP.Heredoc.NotAllowed"/>
10
- </rule>
11
- <rule ref="SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses">
12
- <properties>
13
- <property name="caseSensitive" value="false"/>
14
- </properties>
15
- </rule>
16
- <rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
17
- <properties>
18
- <property name="newlinesCountBetweenOpenTagAndDeclare" value="0"/>
19
- </properties>
20
- </rule>
21
- <rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint">
22
- <properties>
23
- <property name="usefulAnnotations" type="array" value="
24
- @dataProvider,
25
- @requires
26
- "/>
27
- <property name="enableObjectTypeHint" value="false"/>
28
- </properties>
29
- <exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversableParameterTypeHintSpecification"/>
30
- <exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversableReturnTypeHintSpecification"/>
31
- </rule>
32
- <rule ref="SlevomatCodingStandard.TypeHints.PropertyTypeHint">
33
- <properties>
34
- <property name="enableNativeTypeHint" value="false"/>
35
- </properties>
36
- <exclude name="SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingTraversableTypeHintSpecification"/>
37
- </rule>
38
- <rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint">
39
- <properties>
40
- <property name="enableObjectTypeHint" value="false"/>
41
- </properties>
42
- <exclude name="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification"/>
43
- </rule>
44
- <rule ref="SlevomatCodingStandard.ControlStructures.AssignmentInCondition"/>
45
- <rule ref="SlevomatCodingStandard.Operators.DisallowEqualOperators"/>
46
- <rule ref="SlevomatCodingStandard.ControlStructures.EarlyExit"/>
47
- <rule ref="SlevomatCodingStandard.Classes.SuperfluousAbstractClassNaming"/>
48
- <rule ref="SlevomatCodingStandard.Classes.SuperfluousInterfaceNaming"/>
49
- <!-- <rule ref="SlevomatCodingStandard.ControlStructures.DisallowShortTernaryOperator"/>-->
50
- <!-- <rule ref="SlevomatCodingStandard.Namespaces.RequireOneNamespaceInFile"/> -->
51
- <!-- <rule ref="SlevomatCodingStandard.PHP.ShortList"/> -->
52
- <rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName">
53
- <properties>
54
- <property name="rootNamespaces" type="array" value="src=>PHPStan\ExtensionInstaller"/>
55
- </properties>
56
- </rule>
57
- </ruleset>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/phpstan/extension-installer/phpstan.neon DELETED
@@ -1,2 +0,0 @@
1
- includes:
2
- - vendor/phpstan/phpstan-strict-rules/rules.neon
 
 
vendor/phpstan/extension-installer/src/Plugin.php DELETED
@@ -1,149 +0,0 @@
1
- <?php declare(strict_types = 1);
2
-
3
- namespace PHPStan\ExtensionInstaller;
4
-
5
- use Composer\Composer;
6
- use Composer\EventDispatcher\EventSubscriberInterface;
7
- use Composer\IO\IOInterface;
8
- use Composer\Plugin\PluginInterface;
9
- use Composer\Script\Event;
10
- use Composer\Script\ScriptEvents;
11
- use Composer\Util\Filesystem;
12
- use function array_keys;
13
- use function file_exists;
14
- use function file_put_contents;
15
- use function in_array;
16
- use function is_file;
17
- use function md5;
18
- use function md5_file;
19
- use function sprintf;
20
- use function strpos;
21
- use function var_export;
22
-
23
- final class Plugin implements PluginInterface, EventSubscriberInterface
24
- {
25
-
26
- /** @var string */
27
- private static $generatedFileTemplate = <<<'PHP'
28
- <?php declare(strict_types = 1);
29
-
30
- namespace PHPStan\ExtensionInstaller;
31
-
32
- /**
33
- * This class is generated by phpstan/extension-installer.
34
- * @internal
35
- */
36
- final class GeneratedConfig
37
- {
38
-
39
- public const EXTENSIONS = %s;
40
-
41
- public const NOT_INSTALLED = %s;
42
-
43
- private function __construct()
44
- {
45
- }
46
-
47
- }
48
-
49
- PHP;
50
-
51
- public function activate(Composer $composer, IOInterface $io): void
52
- {
53
- // noop
54
- }
55
-
56
- public function deactivate(Composer $composer, IOInterface $io): void
57
- {
58
- // noop
59
- }
60
-
61
- public function uninstall(Composer $composer, IOInterface $io): void
62
- {
63
- // noop
64
- }
65
-
66
- /**
67
- * @return array<string, string>
68
- */
69
- public static function getSubscribedEvents(): array
70
- {
71
- return [
72
- ScriptEvents::POST_INSTALL_CMD => 'process',
73
- ScriptEvents::POST_UPDATE_CMD => 'process',
74
- ];
75
- }
76
-
77
- public function process(Event $event): void
78
- {
79
- $io = $event->getIO();
80
-
81
- if (!file_exists(__DIR__)) {
82
- $io->write('<info>phpstan/extension-installer:</info> Package not found (probably scheduled for removal); extensions installation skipped.');
83
- return;
84
- }
85
-
86
- $composer = $event->getComposer();
87
- $installationManager = $composer->getInstallationManager();
88
-
89
- $generatedConfigFilePath = __DIR__ . '/GeneratedConfig.php';
90
- $oldGeneratedConfigFileHash = null;
91
- if (is_file($generatedConfigFilePath)) {
92
- $oldGeneratedConfigFileHash = md5_file($generatedConfigFilePath);
93
- }
94
- $notInstalledPackages = [];
95
- $installedPackages = [];
96
-
97
- $data = [];
98
- $fs = new Filesystem();
99
- foreach ($composer->getRepositoryManager()->getLocalRepository()->getPackages() as $package) {
100
- if (
101
- $package->getType() !== 'phpstan-extension'
102
- && !isset($package->getExtra()['phpstan'])
103
- ) {
104
- if (
105
- strpos($package->getName(), 'phpstan') !== false
106
- && !in_array($package->getName(), [
107
- 'phpstan/phpstan',
108
- 'phpstan/phpstan-shim',
109
- 'phpstan/phpdoc-parser',
110
- 'phpstan/extension-installer',
111
- ], true)
112
- ) {
113
- $notInstalledPackages[$package->getName()] = $package->getFullPrettyVersion();
114
- }
115
- continue;
116
- }
117
- $absoluteInstallPath = $installationManager->getInstallPath($package);
118
- $data[$package->getName()] = [
119
- 'install_path' => $absoluteInstallPath,
120
- 'relative_install_path' => $fs->findShortestPath(dirname($generatedConfigFilePath), $absoluteInstallPath, true),
121
- 'extra' => $package->getExtra()['phpstan'] ?? null,
122
- 'version' => $package->getFullPrettyVersion(),
123
- ];
124
-
125
- $installedPackages[$package->getName()] = true;
126
- }
127
-
128
- ksort($data);
129
- ksort($installedPackages);
130
- ksort($notInstalledPackages);
131
-
132
- $generatedConfigFileContents = sprintf(self::$generatedFileTemplate, var_export($data, true), var_export($notInstalledPackages, true));
133
- file_put_contents($generatedConfigFilePath, $generatedConfigFileContents);
134
- $io->write('<info>phpstan/extension-installer:</info> Extensions installed');
135
-
136
- if ($oldGeneratedConfigFileHash === md5($generatedConfigFileContents)) {
137
- return;
138
- }
139
-
140
- foreach (array_keys($installedPackages) as $name) {
141
- $io->write(sprintf('> <info>%s:</info> installed', $name));
142
- }
143
-
144
- foreach (array_keys($notInstalledPackages) as $name) {
145
- $io->write(sprintf('> <comment>%s:</comment> not supported', $name));
146
- }
147
- }
148
-
149
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/phpstan/phpstan/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2016 Ondřej Mirtes
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/phpstan/phpstan/README.md DELETED
@@ -1,101 +0,0 @@
1
- <h1 align="center">PHPStan - PHP Static Analysis Tool</h1>
2
-
3
- <p align="center">
4
- <img src="https://i.imgur.com/WaRKPlC.png" alt="PHPStan" width="300" height="300">
5
- </p>
6
-
7
- <p align="center">
8
- <a href="https://github.com/phpstan/phpstan/actions"><img src="https://github.com/phpstan/phpstan/workflows/Tests/badge.svg" alt="Build Status"></a>
9
- <a href="https://packagist.org/packages/phpstan/phpstan"><img src="https://poser.pugx.org/phpstan/phpstan/v/stable" alt="Latest Stable Version"></a>
10
- <a href="https://packagist.org/packages/phpstan/phpstan/stats"><img src="https://poser.pugx.org/phpstan/phpstan/downloads" alt="Total Downloads"></a>
11
- <a href="https://choosealicense.com/licenses/mit/"><img src="https://poser.pugx.org/phpstan/phpstan/license" alt="License"></a>
12
- <a href="https://phpstan.org/"><img src="https://img.shields.io/badge/PHPStan-enabled-brightgreen.svg?style=flat" alt="PHPStan Enabled"></a>
13
- </p>
14
-
15
- ------
16
-
17
- PHPStan focuses on finding errors in your code without actually running it. It catches whole classes of bugs
18
- even before you write tests for the code. It moves PHP closer to compiled languages in the sense that the correctness of each line of the code
19
- can be checked before you run the actual line.
20
-
21
- **[Read more about PHPStan »](https://phpstan.org/)**
22
-
23
- **[Try out PHPStan on the on-line playground! »](https://phpstan.org/try)**
24
-
25
- ## Sponsors
26
-
27
- <a href="https://coders.thecodingmachine.com/phpstan"><img src="https://i.imgur.com/kQhNOTP.png" alt="TheCodingMachine" width="247" height="64"></a>
28
- &nbsp;&nbsp;&nbsp;
29
- <a href="https://packagist.com/?utm_source=phpstan&utm_medium=readme&utm_campaign=sponsorlogo"><img src="https://i.imgur.com/B2T63Do.png" alt="Private Packagist" width="283" height="64"></a>
30
- <br>
31
- <a href="https://careers.tuigroup.com/jobs/"><img src="https://i.imgur.com/uw5rAlR.png" alt="Musement" width="247" height="49"></a>
32
- &nbsp;&nbsp;&nbsp;
33
- <a href="https://blackfire.io/docs/introduction?utm_source=phpstan&utm_medium=github_readme&utm_campaign=logo"><img src="https://i.imgur.com/zR8rsqk.png" alt="Blackfire.io" width="254" height="64"></a>
34
- <br>
35
- <a href="https://www.iodigital.com/"><img src="https://i.imgur.com/fJlw1n9.png" alt="iO" width="254" height="65"></a>
36
- &nbsp;&nbsp;&nbsp;
37
- <a href="https://jobs.ticketswap.com/"><img src="https://i.imgur.com/lhzcutK.png" alt="TicketSwap" width="269" height="64"></a>
38
- <br>
39
- <a href="https://www.startupjobs.cz/startup/shipmonk"><img src="https://i.imgur.com/bAC47za.jpg" alt="ShipMonk" width="290" height="64"></a>
40
- &nbsp;&nbsp;&nbsp;
41
- <a href="https://togetter.com/"><img src="https://i.imgur.com/x9n5cj3.png" alt="Togetter" width="283" height="64"></a>
42
- <br>
43
- <a href="https://join.rightcapital.com/?utm_source=phpstan&utm_medium=github&utm_campaign=sponsorship"><img src="https://i.imgur.com/1AhB5tW.png" alt="RightCapital" width="283" height="64"></a>
44
- &nbsp;&nbsp;&nbsp;
45
- <a href="https://www.contentkingapp.com/?ref=php-developer&utm_source=phpstan&utm_medium=referral&utm_campaign=sponsorship"><img src="https://i.imgur.com/HHhbPGN.png" alt="ContentKing" width="283" height="64"></a>
46
- <br>
47
- <a href="https://zol.fr?utm_source=phpstan"><img src="https://i.imgur.com/dzDgd4s.png" alt="ZOL" width="283" height="64"></a>
48
- &nbsp;&nbsp;&nbsp;
49
- <a href="https://www.psyonix.com/"><img src="https://i.imgur.com/p8svxQZ.png" alt="Psyonix" width="254" height="65"></a>
50
- <br>
51
- <a href="https://www.shopware.com/en/"><img src="https://i.imgur.com/L4X5w9s.png" alt="Shopware" width="284" height="64"></a>
52
- &nbsp;&nbsp;&nbsp;
53
- <a href="https://craftcms.com/"><img src="https://i.imgur.com/xJWThke.png" alt="Craft CMS" width="283" height="64"></a>
54
- <br>
55
- <a href="https://www.worksome.com/"><img src="https://i.imgur.com/TQKSwOl.png" alt="Worksome" width="283" height="64"></a>
56
- &nbsp;&nbsp;&nbsp;
57
- <a href="https://www.campoint.net/"><img src="https://i.imgur.com/fR6eMUm.png" alt="campoint AG" width="283" height="64"></a>
58
- <br>
59
- <a href="https://www.crisp.nl/"><img src="https://i.imgur.com/jRJyPve.png" alt="Crisp.nl" width="283" height="64"></a>
60
- &nbsp;&nbsp;&nbsp;
61
- <a href="https://inviqa.com/"><img src="https://i.imgur.com/G99rj45.png" alt="Inviqa" width="254" height="65"></a>
62
-
63
-
64
- [**You can now sponsor my open-source work on PHPStan through GitHub Sponsors.**](https://github.com/sponsors/ondrejmirtes)
65
-
66
- Does GitHub already have your 💳? Do you use PHPStan to find 🐛 before they reach production? [Send a couple of 💸 a month my way too.](https://github.com/sponsors/ondrejmirtes) Thank you!
67
-
68
- One-time donations [through PayPal](https://paypal.me/phpstan) are also accepted. To request an invoice, [contact me](mailto:ondrej@mirtes.cz) through e-mail.
69
-
70
- ## Documentation
71
-
72
- All the documentation lives on the [phpstan.org website](https://phpstan.org/):
73
-
74
- * [Getting Started & User Guide](https://phpstan.org/user-guide/getting-started)
75
- * [Config Reference](https://phpstan.org/config-reference)
76
- * [PHPDocs Basics](https://phpstan.org/writing-php-code/phpdocs-basics) & [PHPDoc Types](https://phpstan.org/writing-php-code/phpdoc-types)
77
- * [Extension Library](https://phpstan.org/user-guide/extension-library)
78
- * [Developing Extensions](https://phpstan.org/developing-extensions/extension-types)
79
- * [API Reference](https://apiref.phpstan.org/)
80
-
81
- ## PHPStan Pro
82
-
83
- PHPStan Pro is a paid add-on on top of open-source PHPStan Static Analysis Tool with these premium features:
84
-
85
- * Web UI for browsing found errors, you can click and open your editor of choice on the offending line.
86
- * Continuous analysis (watch mode): scans changed files in the background, refreshes the UI automatically.
87
- * Interactive fixer: lets you choose the right fix for found errors :blush:
88
-
89
- Try it on PHPStan 0.12.45 or later by running it with the `--pro` option. You can create an account either by following the on-screen instructions, or by visiting [account.phpstan.com](https://account.phpstan.com/).
90
-
91
- After 30-day free trial period it costs 7 EUR for individuals monthly, 70 EUR for teams (up to 25 members). By paying for PHPStan Pro, you're supporting the development of open-source PHPStan.
92
-
93
- You can read more about it on [PHPStan's website](https://phpstan.org/blog/introducing-phpstan-pro).
94
-
95
- ## Code of Conduct
96
-
97
- This project adheres to a [Contributor Code of Conduct](https://github.com/phpstan/phpstan/blob/master/CODE_OF_CONDUCT.md). By participating in this project and its community, you are expected to uphold this code.
98
-
99
- ## Contributing
100
-
101
- Any contributions are welcome. PHPStan's source code open to pull requests lives at [`phpstan/phpstan-src`](https://github.com/phpstan/phpstan-src).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/phpstan/phpstan/bootstrap.php DELETED
@@ -1,60 +0,0 @@
1
- <?php declare(strict_types = 1);
2
-
3
- namespace PHPStan;
4
-
5
- use Composer\Autoload\ClassLoader;
6
-
7
- final class PharAutoloader
8
- {
9
- /** @var ClassLoader */
10
- private static $composerAutoloader;
11
-
12
- final public static function loadClass(string $class): void {
13
- if (!extension_loaded('phar') || defined('__PHPSTAN_RUNNING__')) {
14
- return;
15
- }
16
-
17
- if (strpos($class, '_PHPStan_') === 0) {
18
- if (!in_array('phar', stream_get_wrappers(), true)) {
19
- throw new \Exception('Phar wrapper is not registered. Please review your php.ini settings.');
20
- }
21
-
22
- if (self::$composerAutoloader === null) {
23
- self::$composerAutoloader = require 'phar://' . __DIR__ . '/phpstan.phar/vendor/autoload.php';
24
- require_once 'phar://' . __DIR__ . '/phpstan.phar/vendor/jetbrains/phpstorm-stubs/PhpStormStubsMap.php';
25
- require_once 'phar://' . __DIR__ . '/phpstan.phar/vendor/react/async/src/functions_include.php';
26
- require_once 'phar://' . __DIR__ . '/phpstan.phar/vendor/react/promise-stream/src/functions_include.php';
27
- require_once 'phar://' . __DIR__ . '/phpstan.phar/vendor/react/promise-timer/src/functions_include.php';
28
- require_once 'phar://' . __DIR__ . '/phpstan.phar/vendor/react/promise/src/functions_include.php';
29
- require_once 'phar://' . __DIR__ . '/phpstan.phar/vendor/ringcentral/psr7/src/functions_include.php';
30
- }
31
- self::$composerAutoloader->loadClass($class);
32
-
33
- return;
34
- }
35
- if (strpos($class, 'PHPStan\\') !== 0 || strpos($class, 'PHPStan\\PhpDocParser\\') === 0) {
36
- return;
37
- }
38
-
39
- if (!in_array('phar', stream_get_wrappers(), true)) {
40
- throw new \Exception('Phar wrapper is not registered. Please review your php.ini settings.');
41
- }
42
-
43
- $filename = str_replace('\\', DIRECTORY_SEPARATOR, $class);
44
- if (strpos($class, 'PHPStan\\BetterReflection\\') === 0) {
45
- $filename = substr($filename, strlen('PHPStan\\BetterReflection\\'));
46
- $filepath = 'phar://' . __DIR__ . '/phpstan.phar/vendor/ondrejmirtes/better-reflection/src/' . $filename . '.php';
47
- } else {
48
- $filename = substr($filename, strlen('PHPStan\\'));
49
- $filepath = 'phar://' . __DIR__ . '/phpstan.phar/src/' . $filename . '.php';
50
- }
51
-
52
- if (!file_exists($filepath)) {
53
- return;
54
- }
55
-
56
- require $filepath;
57
- }
58
- }
59
-
60
- spl_autoload_register([PharAutoloader::class, 'loadClass']);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/phpstan/phpstan/composer.json DELETED
@@ -1,19 +0,0 @@
1
- {
2
- "name": "phpstan/phpstan",
3
- "description": "PHPStan - PHP Static Analysis Tool",
4
- "license": ["MIT"],
5
- "keywords": ["dev", "static analysis"],
6
- "require": {
7
- "php": "^7.2|^8.0"
8
- },
9
- "conflict": {
10
- "phpstan/phpstan-shim": "*"
11
- },
12
- "bin": [
13
- "phpstan",
14
- "phpstan.phar"
15
- ],
16
- "autoload": {
17
- "files": ["bootstrap.php"]
18
- }
19
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/phpstan/phpstan/conf/bleedingEdge.neon DELETED
@@ -1,2 +0,0 @@
1
- includes:
2
- - phar://phpstan.phar/conf/bleedingEdge.neon
 
 
vendor/phpstan/phpstan/phpstan DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env php
2
- <?php
3
-
4
- declare (strict_types=1);
5
-
6
- Phar::loadPhar(__DIR__ . '/phpstan.phar', 'phpstan.phar');
7
-
8
- require 'phar://phpstan.phar/bin/phpstan';
 
 
 
 
 
 
 
 
vendor/phpstan/phpstan/phpstan.phar DELETED
Binary file
vendor/phpstan/phpstan/phpstan.phar.asc DELETED
@@ -1,16 +0,0 @@
1
- -----BEGIN PGP SIGNATURE-----
2
-
3
- iQIzBAABCgAdFiEE0yaA1ZV9xxFr4pwUzxoQjQ565yAFAmNWsvsACgkQzxoQjQ56
4
- 5yDRxBAAjWCLhtqGMBf/5UB8lDTa8+jKeeeXw7tdRQtsEIL5KdRVCFGrpPDWA0pi
5
- /F9akCBG1gYCPxAX5gD6khEWgSxQ6PItxupskpQWRYlYqHC0EA3CyYGecpBb6F9l
6
- jRHQIlSzrAiuVI3hTX5EAUHxbPxhTC0zO+wKcvM0jLsOCtUQrWWSp12Nr7GZTxWw
7
- 6IM3IKRdPnAMHwuoVWOcocR01NAkvpoWK1GtTfhu4E0c2XLsUpbW1rtiZQvf3W/H
8
- yT47rran+dYOy9scE4sxNRtB4NZ6Bk5GKwR8XzUu1N7X5dL+/NPax4p0CKthyG+n
9
- /VZdsIv8LnWCqXOOg1cjfYy/zlT8NUB/wmXpWDyxsw/T7Tc81QzJ1oqXcHq1oBXQ
10
- OqbYAuZzk+nXSt6KhybYgKx1VyG6L4Xchu30ly5hlEHexoZCzWm8BZM2Ii3mT5gT
11
- dSBDVghNs0dmgP7hRI5uBNtyE+Mnip23Nj3d4/Hg4AFSkmUOkugbWr7Gl8H6rKwi
12
- w5p2i/RCQ6F+UwmSCd+/ZeL88heHO/loR6O2Cj/lCbEXP1djZuIiyv+gZ3FnB4Mr
13
- s6sB1lQ2ocOyD20B8DLOg5IVdoIAsCtZ3PViZp4NG7oh9N117HQ/+H83GHjmZZn6
14
- eVW3iw6stdGR6FpIZKdMsaKKPHCfNmuogVDpd8nabmbxl+GlH2g=
15
- =TOxZ
16
- -----END PGP SIGNATURE-----
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/symfony/polyfill-php73/LICENSE DELETED
@@ -1,19 +0,0 @@
1
- Copyright (c) 2018-2019 Fabien Potencier
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining a copy
4
- of this software and associated documentation files (the "Software"), to deal
5
- in the Software without restriction, including without limitation the rights
6
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
- copies of the Software, and to permit persons to whom the Software is furnished
8
- to do so, subject to the following conditions:
9
-
10
- The above copyright notice and this permission notice shall be included in all
11
- copies or substantial portions of the Software.
12
-
13
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
- THE SOFTWARE.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/symfony/polyfill-php73/Php73.php DELETED
@@ -1,43 +0,0 @@
1
- <?php
2
-
3
- /*
4
- * This file is part of the Symfony package.
5
- *
6
- * (c) Fabien Potencier <fabien@symfony.com>
7
- *
8
- * For the full copyright and license information, please view the LICENSE
9
- * file that was distributed with this source code.
10
- */
11
-
12
- namespace Symfony\Polyfill\Php73;
13
-
14
- /**
15
- * @author Gabriel Caruso <carusogabriel34@gmail.com>
16
- * @author Ion Bazan <ion.bazan@gmail.com>
17
- *
18
- * @internal
19
- */
20
- final class Php73
21
- {
22
- public static $startAt = 1533462603;
23
-
24
- /**
25
- * @param bool $asNum
26
- *
27
- * @return array|float|int
28
- */
29
- public static function hrtime($asNum = false)
30
- {
31
- $ns = microtime(false);
32
- $s = substr($ns, 11) - self::$startAt;
33
- $ns = 1E9 * (float) $ns;
34
-
35
- if ($asNum) {
36
- $ns += $s * 1E9;
37
-
38
- return \PHP_INT_SIZE === 4 ? $ns : (int) $ns;
39
- }
40
-
41
- return [$s, (int) $ns];
42
- }
43
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/symfony/polyfill-php73/README.md DELETED
@@ -1,18 +0,0 @@
1
- Symfony Polyfill / Php73
2
- ========================
3
-
4
- This component provides functions added to PHP 7.3 core:
5
-
6
- - [`array_key_first`](https://php.net/array_key_first)
7
- - [`array_key_last`](https://php.net/array_key_last)
8
- - [`hrtime`](https://php.net/function.hrtime)
9
- - [`is_countable`](https://php.net/is_countable)
10
- - [`JsonException`](https://php.net/JsonException)
11
-
12
- More information can be found in the
13
- [main Polyfill README](https://github.com/symfony/polyfill/blob/main/README.md).
14
-
15
- License
16
- =======
17
-
18
- This library is released under the [MIT license](LICENSE).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/symfony/polyfill-php73/Resources/stubs/JsonException.php DELETED
@@ -1,16 +0,0 @@
1
- <?php
2
-
3
- /*
4
- * This file is part of the Symfony package.
5
- *
6
- * (c) Fabien Potencier <fabien@symfony.com>
7
- *
8
- * For the full copyright and license information, please view the LICENSE
9
- * file that was distributed with this source code.
10
- */
11
-
12
- if (\PHP_VERSION_ID < 70300) {
13
- class JsonException extends Exception
14
- {
15
- }
16
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/symfony/polyfill-php73/bootstrap.php DELETED
@@ -1,31 +0,0 @@
1
- <?php
2
-
3
- /*
4
- * This file is part of the Symfony package.
5
- *
6
- * (c) Fabien Potencier <fabien@symfony.com>
7
- *
8
- * For the full copyright and license information, please view the LICENSE
9
- * file that was distributed with this source code.
10
- */
11
-
12
- use Symfony\Polyfill\Php73 as p;
13
-
14
- if (\PHP_VERSION_ID >= 70300) {
15
- return;
16
- }
17
-
18
- if (!function_exists('is_countable')) {
19
- function is_countable($value) { return is_array($value) || $value instanceof Countable || $value instanceof ResourceBundle || $value instanceof SimpleXmlElement; }
20
- }
21
- if (!function_exists('hrtime')) {
22
- require_once __DIR__.'/Php73.php';
23
- p\Php73::$startAt = (int) microtime(true);
24
- function hrtime($as_number = false) { return p\Php73::hrtime($as_number); }
25
- }
26
- if (!function_exists('array_key_first')) {
27
- function array_key_first(array $array) { foreach ($array as $key => $value) { return $key; } }
28
- }
29
- if (!function_exists('array_key_last')) {
30
- function array_key_last(array $array) { return key(array_slice($array, -1, 1, true)); }
31
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/symfony/polyfill-php73/composer.json DELETED
@@ -1,36 +0,0 @@
1
- {
2
- "name": "symfony/polyfill-php73",
3
- "type": "library",
4
- "description": "Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions",
5
- "keywords": ["polyfill", "shim", "compatibility", "portable"],
6
- "homepage": "https://symfony.com",
7
- "license": "MIT",
8
- "authors": [
9
- {
10
- "name": "Nicolas Grekas",
11
- "email": "p@tchwork.com"
12
- },
13
- {
14
- "name": "Symfony Community",
15
- "homepage": "https://symfony.com/contributors"
16
- }
17
- ],
18
- "require": {
19
- "php": ">=7.1"
20
- },
21
- "autoload": {
22
- "psr-4": { "Symfony\\Polyfill\\Php73\\": "" },
23
- "files": [ "bootstrap.php" ],
24
- "classmap": [ "Resources/stubs" ]
25
- },
26
- "minimum-stability": "dev",
27
- "extra": {
28
- "branch-alias": {
29
- "dev-main": "1.26-dev"
30
- },
31
- "thanks": {
32
- "name": "symfony/polyfill",
33
- "url": "https://github.com/symfony/polyfill"
34
- }
35
- }
36
- }