WooCommerce PayPal Payments - Version 1.1.0

Version Description

  • Add - Buy Now Pay Later for UK. #104
  • Add - DE now has 12 month installments. #106
  • Fix - Check phone for empty string. #102
Download this release

Release Info

Developer woothemes
Plugin Icon 128x128 WooCommerce PayPal Payments
Version 1.1.0
Comparing to
See all releases

Code changes from version 1.0.4 to 1.1.0

Files changed (121) hide show
  1. changelog.txt +5 -0
  2. modules/ppcp-button/src/Endpoint/class-createorderendpoint.php +5 -1
  3. modules/ppcp-button/src/Helper/class-messagesapply.php +2 -0
  4. modules/ppcp-wc-gateway/services.php +49 -26
  5. modules/ppcp-wc-gateway/src/Gateway/class-paypalgateway.php +1 -1
  6. package-lock.json +2 -10
  7. patchwork.json +5 -0
  8. readme.txt +6 -1
  9. vendor/autoload.php +1 -1
  10. vendor/composer/autoload_psr4.php +0 -2
  11. vendor/composer/autoload_real.php +7 -7
  12. vendor/composer/autoload_static.php +4 -20
  13. vendor/composer/installed.json +0 -190
  14. vendor/composer/installers/LICENSE +0 -19
  15. vendor/composer/installers/composer.json +0 -119
  16. vendor/composer/installers/phpstan.neon.dist +0 -10
  17. vendor/composer/installers/src/Composer/Installers/AglInstaller.php +0 -21
  18. vendor/composer/installers/src/Composer/Installers/AimeosInstaller.php +0 -9
  19. vendor/composer/installers/src/Composer/Installers/AnnotateCmsInstaller.php +0 -11
  20. vendor/composer/installers/src/Composer/Installers/AsgardInstaller.php +0 -49
  21. vendor/composer/installers/src/Composer/Installers/AttogramInstaller.php +0 -9
  22. vendor/composer/installers/src/Composer/Installers/BaseInstaller.php +0 -137
  23. vendor/composer/installers/src/Composer/Installers/BitrixInstaller.php +0 -126
  24. vendor/composer/installers/src/Composer/Installers/BonefishInstaller.php +0 -9
  25. vendor/composer/installers/src/Composer/Installers/CakePHPInstaller.php +0 -65
  26. vendor/composer/installers/src/Composer/Installers/ChefInstaller.php +0 -11
  27. vendor/composer/installers/src/Composer/Installers/CiviCrmInstaller.php +0 -9
  28. vendor/composer/installers/src/Composer/Installers/ClanCatsFrameworkInstaller.php +0 -10
  29. vendor/composer/installers/src/Composer/Installers/CockpitInstaller.php +0 -32
  30. vendor/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php +0 -11
  31. vendor/composer/installers/src/Composer/Installers/Concrete5Installer.php +0 -13
  32. vendor/composer/installers/src/Composer/Installers/CraftInstaller.php +0 -35
  33. vendor/composer/installers/src/Composer/Installers/CroogoInstaller.php +0 -21
  34. vendor/composer/installers/src/Composer/Installers/DecibelInstaller.php +0 -10
  35. vendor/composer/installers/src/Composer/Installers/DframeInstaller.php +0 -10
  36. vendor/composer/installers/src/Composer/Installers/DokuWikiInstaller.php +0 -50
  37. vendor/composer/installers/src/Composer/Installers/DolibarrInstaller.php +0 -16
  38. vendor/composer/installers/src/Composer/Installers/DrupalInstaller.php +0 -22
  39. vendor/composer/installers/src/Composer/Installers/ElggInstaller.php +0 -9
  40. vendor/composer/installers/src/Composer/Installers/EliasisInstaller.php +0 -12
  41. vendor/composer/installers/src/Composer/Installers/ExpressionEngineInstaller.php +0 -29
  42. vendor/composer/installers/src/Composer/Installers/EzPlatformInstaller.php +0 -10
  43. vendor/composer/installers/src/Composer/Installers/FuelInstaller.php +0 -11
  44. vendor/composer/installers/src/Composer/Installers/FuelphpInstaller.php +0 -9
  45. vendor/composer/installers/src/Composer/Installers/GravInstaller.php +0 -30
  46. vendor/composer/installers/src/Composer/Installers/HuradInstaller.php +0 -25
  47. vendor/composer/installers/src/Composer/Installers/ImageCMSInstaller.php +0 -11
  48. vendor/composer/installers/src/Composer/Installers/Installer.php +0 -294
  49. vendor/composer/installers/src/Composer/Installers/ItopInstaller.php +0 -9
  50. vendor/composer/installers/src/Composer/Installers/JoomlaInstaller.php +0 -15
  51. vendor/composer/installers/src/Composer/Installers/KanboardInstaller.php +0 -18
  52. vendor/composer/installers/src/Composer/Installers/KirbyInstaller.php +0 -11
  53. vendor/composer/installers/src/Composer/Installers/KnownInstaller.php +0 -11
  54. vendor/composer/installers/src/Composer/Installers/KodiCMSInstaller.php +0 -10
  55. vendor/composer/installers/src/Composer/Installers/KohanaInstaller.php +0 -9
  56. vendor/composer/installers/src/Composer/Installers/LanManagementSystemInstaller.php +0 -27
  57. vendor/composer/installers/src/Composer/Installers/LaravelInstaller.php +0 -9
  58. vendor/composer/installers/src/Composer/Installers/LavaLiteInstaller.php +0 -10
  59. vendor/composer/installers/src/Composer/Installers/LithiumInstaller.php +0 -10
  60. vendor/composer/installers/src/Composer/Installers/MODULEWorkInstaller.php +0 -9
  61. vendor/composer/installers/src/Composer/Installers/MODXEvoInstaller.php +0 -16
  62. vendor/composer/installers/src/Composer/Installers/MagentoInstaller.php +0 -11
  63. vendor/composer/installers/src/Composer/Installers/MajimaInstaller.php +0 -37
  64. vendor/composer/installers/src/Composer/Installers/MakoInstaller.php +0 -9
  65. vendor/composer/installers/src/Composer/Installers/MantisBTInstaller.php +0 -23
  66. vendor/composer/installers/src/Composer/Installers/MauticInstaller.php +0 -25
  67. vendor/composer/installers/src/Composer/Installers/MayaInstaller.php +0 -33
  68. vendor/composer/installers/src/Composer/Installers/MediaWikiInstaller.php +0 -51
  69. vendor/composer/installers/src/Composer/Installers/MicroweberInstaller.php +0 -119
  70. vendor/composer/installers/src/Composer/Installers/ModxInstaller.php +0 -12
  71. vendor/composer/installers/src/Composer/Installers/MoodleInstaller.php +0 -59
  72. vendor/composer/installers/src/Composer/Installers/OctoberInstaller.php +0 -47
  73. vendor/composer/installers/src/Composer/Installers/OntoWikiInstaller.php +0 -24
  74. vendor/composer/installers/src/Composer/Installers/OsclassInstaller.php +0 -14
  75. vendor/composer/installers/src/Composer/Installers/OxidInstaller.php +0 -59
  76. vendor/composer/installers/src/Composer/Installers/PPIInstaller.php +0 -9
  77. vendor/composer/installers/src/Composer/Installers/PhiftyInstaller.php +0 -11
  78. vendor/composer/installers/src/Composer/Installers/PhpBBInstaller.php +0 -11
  79. vendor/composer/installers/src/Composer/Installers/PimcoreInstaller.php +0 -21
  80. vendor/composer/installers/src/Composer/Installers/PiwikInstaller.php +0 -32
  81. vendor/composer/installers/src/Composer/Installers/PlentymarketsInstaller.php +0 -29
  82. vendor/composer/installers/src/Composer/Installers/Plugin.php +0 -27
  83. vendor/composer/installers/src/Composer/Installers/PortoInstaller.php +0 -9
  84. vendor/composer/installers/src/Composer/Installers/PrestashopInstaller.php +0 -10
  85. vendor/composer/installers/src/Composer/Installers/ProcessWireInstaller.php +0 -22
  86. vendor/composer/installers/src/Composer/Installers/PuppetInstaller.php +0 -11
  87. vendor/composer/installers/src/Composer/Installers/PxcmsInstaller.php +0 -63
  88. vendor/composer/installers/src/Composer/Installers/RadPHPInstaller.php +0 -24
  89. vendor/composer/installers/src/Composer/Installers/ReIndexInstaller.php +0 -10
  90. vendor/composer/installers/src/Composer/Installers/Redaxo5Installer.php +0 -10
  91. vendor/composer/installers/src/Composer/Installers/RedaxoInstaller.php +0 -10
  92. vendor/composer/installers/src/Composer/Installers/RoundcubeInstaller.php +0 -22
  93. vendor/composer/installers/src/Composer/Installers/SMFInstaller.php +0 -10
  94. vendor/composer/installers/src/Composer/Installers/ShopwareInstaller.php +0 -60
  95. vendor/composer/installers/src/Composer/Installers/SilverStripeInstaller.php +0 -35
  96. vendor/composer/installers/src/Composer/Installers/SiteDirectInstaller.php +0 -25
  97. vendor/composer/installers/src/Composer/Installers/StarbugInstaller.php +0 -12
  98. vendor/composer/installers/src/Composer/Installers/SyDESInstaller.php +0 -47
  99. vendor/composer/installers/src/Composer/Installers/SyliusInstaller.php +0 -9
  100. vendor/composer/installers/src/Composer/Installers/Symfony1Installer.php +0 -26
  101. vendor/composer/installers/src/Composer/Installers/TYPO3CmsInstaller.php +0 -16
  102. vendor/composer/installers/src/Composer/Installers/TYPO3FlowInstaller.php +0 -38
  103. vendor/composer/installers/src/Composer/Installers/TaoInstaller.php +0 -30
  104. vendor/composer/installers/src/Composer/Installers/TheliaInstaller.php +0 -12
  105. vendor/composer/installers/src/Composer/Installers/TuskInstaller.php +0 -14
  106. vendor/composer/installers/src/Composer/Installers/UserFrostingInstaller.php +0 -9
  107. vendor/composer/installers/src/Composer/Installers/VanillaInstaller.php +0 -10
  108. vendor/composer/installers/src/Composer/Installers/VgmcpInstaller.php +0 -49
  109. vendor/composer/installers/src/Composer/Installers/WHMCSInstaller.php +0 -21
  110. vendor/composer/installers/src/Composer/Installers/WolfCMSInstaller.php +0 -9
  111. vendor/composer/installers/src/Composer/Installers/WordPressInstaller.php +0 -12
  112. vendor/composer/installers/src/Composer/Installers/YawikInstaller.php +0 -32
  113. vendor/composer/installers/src/Composer/Installers/ZendInstaller.php +0 -11
  114. vendor/composer/installers/src/Composer/Installers/ZikulaInstaller.php +0 -10
  115. vendor/composer/installers/src/bootstrap.php +0 -13
  116. vendor/oomphinc/composer-installers-extender/README.md +0 -45
  117. vendor/oomphinc/composer-installers-extender/composer.json +0 -27
  118. vendor/oomphinc/composer-installers-extender/src/Installer.php +0 -35
  119. vendor/oomphinc/composer-installers-extender/src/InstallerHelper.php +0 -15
  120. vendor/oomphinc/composer-installers-extender/src/Plugin.php +0 -16
  121. woocommerce-paypal-payments.php +1 -1
changelog.txt CHANGED
@@ -1,5 +1,10 @@
1
  *** Changelog ***
2
 
 
 
 
 
 
3
  = 1.0.4 - 2021-01-18 =
4
  * Fix - Check if WooCommerce is active before initialize. #99
5
  * Fix - Payment buttons only visible on order-pay site when Mini Cart is enabled; payment fails. #96
1
  *** Changelog ***
2
 
3
+ = 1.1.0 - 2021-02-01 =
4
+ * Add - Buy Now Pay Later for UK. #104
5
+ * Add - DE now has 12 month installments. #106
6
+ * Fix - Check phone for empty string. #102
7
+
8
  = 1.0.4 - 2021-01-18 =
9
  * Fix - Check if WooCommerce is active before initialize. #99
10
  * Fix - Payment buttons only visible on order-pay site when Mini Cart is enabled; payment fails. #96
modules/ppcp-button/src/Endpoint/class-createorderendpoint.php CHANGED
@@ -9,6 +9,7 @@ declare(strict_types=1);
9
 
10
  namespace WooCommerce\PayPalCommerce\Button\Endpoint;
11
 
 
12
  use WooCommerce\PayPalCommerce\ApiClient\Entity\Order;
13
  use WooCommerce\PayPalCommerce\ApiClient\Entity\Payer;
14
  use WooCommerce\PayPalCommerce\ApiClient\Entity\PaymentMethod;
@@ -16,7 +17,6 @@ use WooCommerce\PayPalCommerce\ApiClient\Exception\PayPalApiException;
16
  use WooCommerce\PayPalCommerce\ApiClient\Factory\PayerFactory;
17
  use WooCommerce\PayPalCommerce\ApiClient\Factory\PurchaseUnitFactory;
18
  use WooCommerce\PayPalCommerce\ApiClient\Repository\CartRepository;
19
- use WooCommerce\PayPalCommerce\ApiClient\Endpoint\OrderEndpoint;
20
  use WooCommerce\PayPalCommerce\Button\Helper\EarlyOrderHandler;
21
  use WooCommerce\PayPalCommerce\Session\SessionHandler;
22
  use WooCommerce\PayPalCommerce\WcGateway\Settings\Settings;
@@ -215,7 +215,11 @@ class CreateOrderEndpoint implements EndpointInterface {
215
  $number = preg_replace( '/[^0-9]/', '', $number );
216
  $number = substr( $number, 0, 14 );
217
  $data['payer']['phone']['phone_number']['national_number'] = $number;
 
 
 
218
  }
 
219
  $payer = $this->payer_factory->from_paypal_response( json_decode( wp_json_encode( $data['payer'] ) ) );
220
  }
221
  return $payer;
9
 
10
  namespace WooCommerce\PayPalCommerce\Button\Endpoint;
11
 
12
+ use WooCommerce\PayPalCommerce\ApiClient\Endpoint\OrderEndpoint;
13
  use WooCommerce\PayPalCommerce\ApiClient\Entity\Order;
14
  use WooCommerce\PayPalCommerce\ApiClient\Entity\Payer;
15
  use WooCommerce\PayPalCommerce\ApiClient\Entity\PaymentMethod;
17
  use WooCommerce\PayPalCommerce\ApiClient\Factory\PayerFactory;
18
  use WooCommerce\PayPalCommerce\ApiClient\Factory\PurchaseUnitFactory;
19
  use WooCommerce\PayPalCommerce\ApiClient\Repository\CartRepository;
 
20
  use WooCommerce\PayPalCommerce\Button\Helper\EarlyOrderHandler;
21
  use WooCommerce\PayPalCommerce\Session\SessionHandler;
22
  use WooCommerce\PayPalCommerce\WcGateway\Settings\Settings;
215
  $number = preg_replace( '/[^0-9]/', '', $number );
216
  $number = substr( $number, 0, 14 );
217
  $data['payer']['phone']['phone_number']['national_number'] = $number;
218
+ if ( empty( $data['payer']['phone']['phone_number']['national_number'] ) ) {
219
+ unset( $data['payer']['phone'] );
220
+ }
221
  }
222
+
223
  $payer = $this->payer_factory->from_paypal_response( json_decode( wp_json_encode( $data['payer'] ) ) );
224
  }
225
  return $payer;
modules/ppcp-button/src/Helper/class-messagesapply.php CHANGED
@@ -22,6 +22,8 @@ class MessagesApply {
22
  */
23
  private $countries = array(
24
  'US',
 
 
25
  );
26
 
27
  /**
22
  */
23
  private $countries = array(
24
  'US',
25
+ 'DE',
26
+ 'GB',
27
  );
28
 
29
  /**
modules/ppcp-wc-gateway/services.php CHANGED
@@ -541,7 +541,7 @@ return array(
541
  'default' => false,
542
  'desc_tip' => true,
543
  'description' => __(
544
- 'If you enable this setting, PayPal will be instructed not to allow the buyer to use funding sources that take additional time to complete (for example, eChecks). Instead, the buyer will be required to use an instant funding source, such as an instant transfer, a credit/debit card, or PayPal Credit.',
545
  'woocommerce-paypal-payments'
546
  ),
547
  'label' => __( 'Require Instant Payment', 'woocommerce-paypal-payments' ),
@@ -603,7 +603,7 @@ return array(
603
  ),
604
  'options' => array(
605
  'card' => _x( 'Credit or debit cards', 'Name of payment method', 'woocommerce-paypal-payments' ),
606
- 'credit' => _x( 'PayPal Credit', 'Name of payment method', 'woocommerce-paypal-payments' ),
607
  'sepa' => _x( 'SEPA-Lastschrift', 'Name of payment method', 'woocommerce-paypal-payments' ),
608
  'bancontact' => _x( 'Bancontact', 'Name of payment method', 'woocommerce-paypal-payments' ),
609
  'eps' => _x( 'eps', 'Name of payment method', 'woocommerce-paypal-payments' ),
@@ -796,7 +796,7 @@ return array(
796
  'gateway' => 'paypal',
797
  ),
798
  'message_heading' => array(
799
- 'heading' => __( 'Credit Messaging on Checkout', 'woocommerce-paypal-payments' ),
800
  'type' => 'ppcp-heading',
801
  'screens' => array(
802
  State::STATE_PROGRESSIVE,
@@ -804,7 +804,7 @@ return array(
804
  ),
805
  'requirements' => array( 'messages' ),
806
  'gateway' => 'paypal',
807
- 'description' => str_replace( '<a>', '<a href="https://www.paypal.com/us/business/buy-now-pay-later">', __( 'Customize the appearance of <a>PayPal Credit messages</a> on checkout to promote special financing offers, which help increase sales.', 'woocommerce-paypal-payments' ) ),
808
  'class' => array( 'ppcp-subheading' ),
809
  ),
810
  'message_enabled' => array(
@@ -820,7 +820,7 @@ return array(
820
  'gateway' => 'paypal',
821
  ),
822
  'message_layout' => array(
823
- 'title' => __( 'Credit Messaging layout', 'woocommerce-paypal-payments' ),
824
  'type' => 'select',
825
  'class' => array(),
826
  'input_class' => array( 'wc-enhanced-select' ),
@@ -842,7 +842,7 @@ return array(
842
  'gateway' => 'paypal',
843
  ),
844
  'message_logo' => array(
845
- 'title' => __( 'Credit Messaging logo', 'woocommerce-paypal-payments' ),
846
  'type' => 'select',
847
  'class' => array(),
848
  'input_class' => array( 'wc-enhanced-select' ),
@@ -866,7 +866,7 @@ return array(
866
  'gateway' => 'paypal',
867
  ),
868
  'message_position' => array(
869
- 'title' => __( 'Credit Messaging logo position', 'woocommerce-paypal-payments' ),
870
  'type' => 'select',
871
  'class' => array(),
872
  'input_class' => array( 'wc-enhanced-select' ),
@@ -889,7 +889,7 @@ return array(
889
  'gateway' => 'paypal',
890
  ),
891
  'message_color' => array(
892
- 'title' => __( 'Credit Messaging text color', 'woocommerce-paypal-payments' ),
893
  'type' => 'select',
894
  'class' => array(),
895
  'input_class' => array( 'wc-enhanced-select' ),
@@ -913,7 +913,7 @@ return array(
913
  'gateway' => 'paypal',
914
  ),
915
  'message_flex_color' => array(
916
- 'title' => __( 'Credit Messaging color', 'woocommerce-paypal-payments' ),
917
  'type' => 'select',
918
  'class' => array(),
919
  'input_class' => array( 'wc-enhanced-select' ),
@@ -940,7 +940,7 @@ return array(
940
  'gateway' => 'paypal',
941
  ),
942
  'message_flex_ratio' => array(
943
- 'title' => __( 'Credit Messaging ratio', 'woocommerce-paypal-payments' ),
944
  'type' => 'select',
945
  'class' => array(),
946
  'input_class' => array( 'wc-enhanced-select' ),
@@ -1099,7 +1099,7 @@ return array(
1099
  ),
1100
 
1101
  'message_product_heading' => array(
1102
- 'heading' => __( 'Credit Messaging on Single Product Page', 'woocommerce-paypal-payments' ),
1103
  'type' => 'ppcp-heading',
1104
  'screens' => array(
1105
  State::STATE_PROGRESSIVE,
@@ -1107,7 +1107,7 @@ return array(
1107
  ),
1108
  'requirements' => array( 'messages' ),
1109
  'gateway' => 'paypal',
1110
- 'description' => str_replace( '<a>', '<a href="https://www.paypal.com/us/business/buy-now-pay-later">', __( 'Customize the appearance of <a>PayPal Credit messages</a> on product pages to promote special financing offers, which help increase sales.', 'woocommerce-paypal-payments' ) ),
1111
  'class' => array( 'ppcp-subheading' ),
1112
  ),
1113
  'message_product_enabled' => array(
@@ -1123,7 +1123,7 @@ return array(
1123
  'gateway' => 'paypal',
1124
  ),
1125
  'message_product_layout' => array(
1126
- 'title' => __( 'Credit Messaging layout', 'woocommerce-paypal-payments' ),
1127
  'type' => 'select',
1128
  'class' => array(),
1129
  'input_class' => array( 'wc-enhanced-select' ),
@@ -1145,7 +1145,7 @@ return array(
1145
  'gateway' => 'paypal',
1146
  ),
1147
  'message_product_logo' => array(
1148
- 'title' => __( 'Credit Messaging logo', 'woocommerce-paypal-payments' ),
1149
  'type' => 'select',
1150
  'class' => array(),
1151
  'input_class' => array( 'wc-enhanced-select' ),
@@ -1169,7 +1169,7 @@ return array(
1169
  'gateway' => 'paypal',
1170
  ),
1171
  'message_product_position' => array(
1172
- 'title' => __( 'Credit Messaging logo position', 'woocommerce-paypal-payments' ),
1173
  'type' => 'select',
1174
  'class' => array(),
1175
  'input_class' => array( 'wc-enhanced-select' ),
@@ -1192,7 +1192,7 @@ return array(
1192
  'gateway' => 'paypal',
1193
  ),
1194
  'message_product_color' => array(
1195
- 'title' => __( 'Credit Messaging text color', 'woocommerce-paypal-payments' ),
1196
  'type' => 'select',
1197
  'class' => array(),
1198
  'input_class' => array( 'wc-enhanced-select' ),
@@ -1216,7 +1216,7 @@ return array(
1216
  'gateway' => 'paypal',
1217
  ),
1218
  'message_product_flex_color' => array(
1219
- 'title' => __( 'Credit Messaging color', 'woocommerce-paypal-payments' ),
1220
  'type' => 'select',
1221
  'class' => array(),
1222
  'input_class' => array( 'wc-enhanced-select' ),
@@ -1243,7 +1243,7 @@ return array(
1243
  'gateway' => 'paypal',
1244
  ),
1245
  'message_product_flex_ratio' => array(
1246
- 'title' => __( 'Credit Messaging ratio', 'woocommerce-paypal-payments' ),
1247
  'type' => 'select',
1248
  'class' => array(),
1249
  'input_class' => array( 'wc-enhanced-select' ),
@@ -1402,7 +1402,7 @@ return array(
1402
  ),
1403
 
1404
  'message_cart_heading' => array(
1405
- 'heading' => __( 'Credit Messaging on Cart', 'woocommerce-paypal-payments' ),
1406
  'type' => 'ppcp-heading',
1407
  'screens' => array(
1408
  State::STATE_PROGRESSIVE,
@@ -1410,7 +1410,7 @@ return array(
1410
  ),
1411
  'requirements' => array( 'messages' ),
1412
  'gateway' => 'paypal',
1413
- 'description' => str_replace( '<a>', '<a href="https://www.paypal.com/us/business/buy-now-pay-later">', __( 'Customize the appearance of <a>PayPal Credit messages</a> on your cart page to promote special financing offers, which help increase sales.', 'woocommerce-paypal-payments' ) ),
1414
  'class' => array( 'ppcp-subheading' ),
1415
  ),
1416
  'message_cart_enabled' => array(
@@ -1426,7 +1426,7 @@ return array(
1426
  'gateway' => 'paypal',
1427
  ),
1428
  'message_cart_layout' => array(
1429
- 'title' => __( 'Credit Messaging layout', 'woocommerce-paypal-payments' ),
1430
  'type' => 'select',
1431
  'class' => array(),
1432
  'input_class' => array( 'wc-enhanced-select' ),
@@ -1448,7 +1448,7 @@ return array(
1448
  'gateway' => 'paypal',
1449
  ),
1450
  'message_cart_logo' => array(
1451
- 'title' => __( 'Credit Messaging logo', 'woocommerce-paypal-payments' ),
1452
  'type' => 'select',
1453
  'class' => array(),
1454
  'input_class' => array( 'wc-enhanced-select' ),
@@ -1472,7 +1472,7 @@ return array(
1472
  'gateway' => 'paypal',
1473
  ),
1474
  'message_cart_position' => array(
1475
- 'title' => __( 'Credit Messaging logo position', 'woocommerce-paypal-payments' ),
1476
  'type' => 'select',
1477
  'class' => array(),
1478
  'input_class' => array( 'wc-enhanced-select' ),
@@ -1495,7 +1495,7 @@ return array(
1495
  'gateway' => 'paypal',
1496
  ),
1497
  'message_cart_color' => array(
1498
- 'title' => __( 'Credit Messaging text color', 'woocommerce-paypal-payments' ),
1499
  'type' => 'select',
1500
  'class' => array(),
1501
  'input_class' => array( 'wc-enhanced-select' ),
@@ -1519,7 +1519,7 @@ return array(
1519
  'gateway' => 'paypal',
1520
  ),
1521
  'message_cart_flex_color' => array(
1522
- 'title' => __( 'Credit Messaging color', 'woocommerce-paypal-payments' ),
1523
  'type' => 'select',
1524
  'class' => array(),
1525
  'input_class' => array( 'wc-enhanced-select' ),
@@ -1546,7 +1546,7 @@ return array(
1546
  'gateway' => 'paypal',
1547
  ),
1548
  'message_cart_flex_ratio' => array(
1549
- 'title' => __( 'Credit Messaging ratio', 'woocommerce-paypal-payments' ),
1550
  'type' => 'select',
1551
  'class' => array(),
1552
  'input_class' => array( 'wc-enhanced-select' ),
@@ -1785,6 +1785,29 @@ return array(
1785
  unset( $fields['disable_funding']['options']['card'] );
1786
  }
1787
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1788
  $dcc_applies = $container->get( 'api.helpers.dccapplies' );
1789
  /**
1790
  * Depending on your store location, some credit cards can't be used.
541
  'default' => false,
542
  'desc_tip' => true,
543
  'description' => __(
544
+ 'If you enable this setting, PayPal will be instructed not to allow the buyer to use funding sources that take additional time to complete (for example, eChecks). Instead, the buyer will be required to use an instant funding source, such as an instant transfer, a credit/debit card, or Pay Later.',
545
  'woocommerce-paypal-payments'
546
  ),
547
  'label' => __( 'Require Instant Payment', 'woocommerce-paypal-payments' ),
603
  ),
604
  'options' => array(
605
  'card' => _x( 'Credit or debit cards', 'Name of payment method', 'woocommerce-paypal-payments' ),
606
+ 'credit' => _x( 'Pay Later', 'Name of payment method', 'woocommerce-paypal-payments' ),
607
  'sepa' => _x( 'SEPA-Lastschrift', 'Name of payment method', 'woocommerce-paypal-payments' ),
608
  'bancontact' => _x( 'Bancontact', 'Name of payment method', 'woocommerce-paypal-payments' ),
609
  'eps' => _x( 'eps', 'Name of payment method', 'woocommerce-paypal-payments' ),
796
  'gateway' => 'paypal',
797
  ),
798
  'message_heading' => array(
799
+ 'heading' => __( 'Pay Later on Checkout', 'woocommerce-paypal-payments' ),
800
  'type' => 'ppcp-heading',
801
  'screens' => array(
802
  State::STATE_PROGRESSIVE,
804
  ),
805
  'requirements' => array( 'messages' ),
806
  'gateway' => 'paypal',
807
+ 'description' => str_replace( '<a>', '<a href="https://www.paypal.com/us/business/buy-now-pay-later">', __( 'Customize the appearance of <a>Pay Later messages</a> on checkout to promote special financing offers, which help increase sales.', 'woocommerce-paypal-payments' ) ),
808
  'class' => array( 'ppcp-subheading' ),
809
  ),
810
  'message_enabled' => array(
820
  'gateway' => 'paypal',
821
  ),
822
  'message_layout' => array(
823
+ 'title' => __( 'Pay Later Messaging layout', 'woocommerce-paypal-payments' ),
824
  'type' => 'select',
825
  'class' => array(),
826
  'input_class' => array( 'wc-enhanced-select' ),
842
  'gateway' => 'paypal',
843
  ),
844
  'message_logo' => array(
845
+ 'title' => __( 'Pay Later Messaging logo', 'woocommerce-paypal-payments' ),
846
  'type' => 'select',
847
  'class' => array(),
848
  'input_class' => array( 'wc-enhanced-select' ),
866
  'gateway' => 'paypal',
867
  ),
868
  'message_position' => array(
869
+ 'title' => __( 'Pay Later Messaging logo position', 'woocommerce-paypal-payments' ),
870
  'type' => 'select',
871
  'class' => array(),
872
  'input_class' => array( 'wc-enhanced-select' ),
889
  'gateway' => 'paypal',
890
  ),
891
  'message_color' => array(
892
+ 'title' => __( 'Pay Later Messaging text color', 'woocommerce-paypal-payments' ),
893
  'type' => 'select',
894
  'class' => array(),
895
  'input_class' => array( 'wc-enhanced-select' ),
913
  'gateway' => 'paypal',
914
  ),
915
  'message_flex_color' => array(
916
+ 'title' => __( 'Pay Later Messaging color', 'woocommerce-paypal-payments' ),
917
  'type' => 'select',
918
  'class' => array(),
919
  'input_class' => array( 'wc-enhanced-select' ),
940
  'gateway' => 'paypal',
941
  ),
942
  'message_flex_ratio' => array(
943
+ 'title' => __( 'Pay Later Messaging ratio', 'woocommerce-paypal-payments' ),
944
  'type' => 'select',
945
  'class' => array(),
946
  'input_class' => array( 'wc-enhanced-select' ),
1099
  ),
1100
 
1101
  'message_product_heading' => array(
1102
+ 'heading' => __( 'Pay Later on Single Product Page', 'woocommerce-paypal-payments' ),
1103
  'type' => 'ppcp-heading',
1104
  'screens' => array(
1105
  State::STATE_PROGRESSIVE,
1107
  ),
1108
  'requirements' => array( 'messages' ),
1109
  'gateway' => 'paypal',
1110
+ 'description' => str_replace( '<a>', '<a href="https://www.paypal.com/us/business/buy-now-pay-later">', __( 'Customize the appearance of <a>Pay Later messages</a> on product pages to promote special financing offers, which help increase sales.', 'woocommerce-paypal-payments' ) ),
1111
  'class' => array( 'ppcp-subheading' ),
1112
  ),
1113
  'message_product_enabled' => array(
1123
  'gateway' => 'paypal',
1124
  ),
1125
  'message_product_layout' => array(
1126
+ 'title' => __( 'Pay Later Messaging layout', 'woocommerce-paypal-payments' ),
1127
  'type' => 'select',
1128
  'class' => array(),
1129
  'input_class' => array( 'wc-enhanced-select' ),
1145
  'gateway' => 'paypal',
1146
  ),
1147
  'message_product_logo' => array(
1148
+ 'title' => __( 'Pay Later Messaging logo', 'woocommerce-paypal-payments' ),
1149
  'type' => 'select',
1150
  'class' => array(),
1151
  'input_class' => array( 'wc-enhanced-select' ),
1169
  'gateway' => 'paypal',
1170
  ),
1171
  'message_product_position' => array(
1172
+ 'title' => __( 'Pay Later Messaging logo position', 'woocommerce-paypal-payments' ),
1173
  'type' => 'select',
1174
  'class' => array(),
1175
  'input_class' => array( 'wc-enhanced-select' ),
1192
  'gateway' => 'paypal',
1193
  ),
1194
  'message_product_color' => array(
1195
+ 'title' => __( 'Pay Later Messaging text color', 'woocommerce-paypal-payments' ),
1196
  'type' => 'select',
1197
  'class' => array(),
1198
  'input_class' => array( 'wc-enhanced-select' ),
1216
  'gateway' => 'paypal',
1217
  ),
1218
  'message_product_flex_color' => array(
1219
+ 'title' => __( 'Pay Later Messaging color', 'woocommerce-paypal-payments' ),
1220
  'type' => 'select',
1221
  'class' => array(),
1222
  'input_class' => array( 'wc-enhanced-select' ),
1243
  'gateway' => 'paypal',
1244
  ),
1245
  'message_product_flex_ratio' => array(
1246
+ 'title' => __( 'Pay Later Messaging ratio', 'woocommerce-paypal-payments' ),
1247
  'type' => 'select',
1248
  'class' => array(),
1249
  'input_class' => array( 'wc-enhanced-select' ),
1402
  ),
1403
 
1404
  'message_cart_heading' => array(
1405
+ 'heading' => __( 'Pay Later on Cart', 'woocommerce-paypal-payments' ),
1406
  'type' => 'ppcp-heading',
1407
  'screens' => array(
1408
  State::STATE_PROGRESSIVE,
1410
  ),
1411
  'requirements' => array( 'messages' ),
1412
  'gateway' => 'paypal',
1413
+ 'description' => str_replace( '<a>', '<a href="https://www.paypal.com/us/business/buy-now-pay-later">', __( 'Customize the appearance of <a>Pay Later messages</a> on your cart page to promote special financing offers, which help increase sales.', 'woocommerce-paypal-payments' ) ),
1414
  'class' => array( 'ppcp-subheading' ),
1415
  ),
1416
  'message_cart_enabled' => array(
1426
  'gateway' => 'paypal',
1427
  ),
1428
  'message_cart_layout' => array(
1429
+ 'title' => __( 'Pay Later Messaging layout', 'woocommerce-paypal-payments' ),
1430
  'type' => 'select',
1431
  'class' => array(),
1432
  'input_class' => array( 'wc-enhanced-select' ),
1448
  'gateway' => 'paypal',
1449
  ),
1450
  'message_cart_logo' => array(
1451
+ 'title' => __( 'Pay Later Messaging logo', 'woocommerce-paypal-payments' ),
1452
  'type' => 'select',
1453
  'class' => array(),
1454
  'input_class' => array( 'wc-enhanced-select' ),
1472
  'gateway' => 'paypal',
1473
  ),
1474
  'message_cart_position' => array(
1475
+ 'title' => __( 'Pay Later Messaging logo position', 'woocommerce-paypal-payments' ),
1476
  'type' => 'select',
1477
  'class' => array(),
1478
  'input_class' => array( 'wc-enhanced-select' ),
1495
  'gateway' => 'paypal',
1496
  ),
1497
  'message_cart_color' => array(
1498
+ 'title' => __( 'Pay Later Messaging text color', 'woocommerce-paypal-payments' ),
1499
  'type' => 'select',
1500
  'class' => array(),
1501
  'input_class' => array( 'wc-enhanced-select' ),
1519
  'gateway' => 'paypal',
1520
  ),
1521
  'message_cart_flex_color' => array(
1522
+ 'title' => __( 'Pay Later Messaging color', 'woocommerce-paypal-payments' ),
1523
  'type' => 'select',
1524
  'class' => array(),
1525
  'input_class' => array( 'wc-enhanced-select' ),
1546
  'gateway' => 'paypal',
1547
  ),
1548
  'message_cart_flex_ratio' => array(
1549
+ 'title' => __( 'Pay Later Messaging ratio', 'woocommerce-paypal-payments' ),
1550
  'type' => 'select',
1551
  'class' => array(),
1552
  'input_class' => array( 'wc-enhanced-select' ),
1785
  unset( $fields['disable_funding']['options']['card'] );
1786
  }
1787
 
1788
+ /**
1789
+ * Set Pay in 3 heading and description for UK.
1790
+ */
1791
+ if ( 'GB' === $country ) {
1792
+ $fields['message_heading']['heading'] = __( 'Pay Later Messaging on Checkout', 'woocommerce-paypal-payments' );
1793
+ $fields['message_heading']['description'] = __( 'Display pay later messaging on your site for offers like Pay in 3, which lets customers pay with 3 interest-free monthly payments. We’ll show messages on your site to promote this feature for you. You may not promote pay later offers with any other content, marketing, or materials.', 'woocommerce-paypal-payments' );
1794
+
1795
+ $fields['message_product_heading']['heading'] = __( 'Pay Later Messaging on Single Product Page', 'woocommerce-paypal-payments' );
1796
+ $fields['message_product_heading']['description'] = __( 'Display pay later messaging on your site for offers like Pay in 3, which lets customers pay with 3 interest-free monthly payments. We’ll show messages on your site to promote this feature for you. You may not promote pay later offers with any other content, marketing, or materials.', 'woocommerce-paypal-payments' );
1797
+
1798
+ $fields['message_cart_heading']['heading'] = __( 'Pay Later Messaging on Cart', 'woocommerce-paypal-payments' );
1799
+ $fields['message_cart_heading']['description'] = __( 'Display pay later messaging on your site for offers like Pay in 3, which lets customers pay with 3 interest-free monthly payments. We’ll show messages on your site to promote this feature for you. You may not promote pay later offers with any other content, marketing, or materials.', 'woocommerce-paypal-payments' );
1800
+ }
1801
+
1802
+ /**
1803
+ * Set Pay Later link for DE
1804
+ */
1805
+ if ( 'DE' === $country ) {
1806
+ $fields['message_heading']['description'] = str_replace( '<a>', '<a href="https://www.paypal.com/de/webapps/mpp/installments">', __( 'Customize the appearance of <a>Pay Later messages</a> on checkout to promote special financing offers, which help increase sales.', 'woocommerce-paypal-payments' ) );
1807
+ $fields['message_product_heading']['description'] = str_replace( '<a>', '<a href="https://www.paypal.com/de/webapps/mpp/installments">', __( 'Customize the appearance of <a>Pay Later messages</a> on checkout to promote special financing offers, which help increase sales.', 'woocommerce-paypal-payments' ) );
1808
+ $fields['message_cart_heading']['description'] = str_replace( '<a>', '<a href="https://www.paypal.com/de/webapps/mpp/installments">', __( 'Customize the appearance of <a>Pay Later messages</a> on checkout to promote special financing offers, which help increase sales.', 'woocommerce-paypal-payments' ) );
1809
+ }
1810
+
1811
  $dcc_applies = $container->get( 'api.helpers.dccapplies' );
1812
  /**
1813
  * Depending on your store location, some credit cards can't be used.
modules/ppcp-wc-gateway/src/Gateway/class-paypalgateway.php CHANGED
@@ -290,7 +290,7 @@ class PayPalGateway extends \WC_Payment_Gateway {
290
  }
291
 
292
  return __(
293
- 'Accept PayPal, PayPal Credit and alternative payment types.',
294
  'woocommerce-paypal-payments'
295
  );
296
  }
290
  }
291
 
292
  return __(
293
+ 'Accept PayPal, Pay Later and alternative payment types.',
294
  'woocommerce-paypal-payments'
295
  );
296
  }
package-lock.json CHANGED
@@ -1,13 +1,5 @@
1
  {
2
  "name": "woocommerce-paypal-payments",
3
- "version": "1.0.4",
4
- "lockfileVersion": 2,
5
- "requires": true,
6
- "packages": {
7
- "": {
8
- "version": "1.0.4",
9
- "license": "GPL-2.0",
10
- "devDependencies": {}
11
- }
12
- }
13
  }
1
  {
2
  "name": "woocommerce-paypal-payments",
3
+ "version": "1.1.0",
4
+ "lockfileVersion": 1
 
 
 
 
 
 
 
 
5
  }
patchwork.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ {
2
+ "redefinable-internals": [
3
+ "json_decode"
4
+ ]
5
+ }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: woocommerce, paypal, payments, ecommerce, e-commerce, store, sales, sell,
4
  Requires at least: 5.3
5
  Tested up to: 5.6
6
  Requires PHP: 7.0
7
- Stable tag: 1.0.4
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -58,6 +58,11 @@ Follow the steps below to connect the plugin to your PayPal account:
58
 
59
  == Changelog ==
60
 
 
 
 
 
 
61
  = 1.0.4 =
62
  * Fix - Check if WooCommerce is active before initialize. #99
63
  * Fix - Payment buttons only visible on order-pay site when Mini Cart is enabled; payment fails. #96
4
  Requires at least: 5.3
5
  Tested up to: 5.6
6
  Requires PHP: 7.0
7
+ Stable tag: 1.1.0
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
58
 
59
  == Changelog ==
60
 
61
+ = 1.1.0 =
62
+ * Add - Buy Now Pay Later for UK. #104
63
+ * Add - DE now has 12 month installments. #106
64
+ * Fix - Check phone for empty string. #102
65
+
66
  = 1.0.4 =
67
  * Fix - Check if WooCommerce is active before initialize. #99
68
  * Fix - Payment buttons only visible on order-pay site when Mini Cart is enabled; payment fails. #96
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInitd155c2047eaef319e1c9510b94fc195a::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit1d807336893326b54d6d768e9f857b17::getLoader();
vendor/composer/autoload_psr4.php CHANGED
@@ -8,7 +8,6 @@ $baseDir = dirname($vendorDir);
8
  return array(
9
  'Psr\\Log\\' => array($vendorDir . '/psr/log/Psr/Log'),
10
  'Psr\\Container\\' => array($vendorDir . '/psr/container/src'),
11
- 'OomphInc\\ComposerInstallersExtender\\' => array($vendorDir . '/oomphinc/composer-installers-extender/src'),
12
  'Interop\\Container\\' => array($vendorDir . '/container-interop/service-provider/src'),
13
  'Dhii\\Wp\\Containers\\' => array($vendorDir . '/dhii/wp-containers/src'),
14
  'Dhii\\Util\\String\\' => array($vendorDir . '/dhii/stringable-interface/src'),
@@ -19,5 +18,4 @@ return array(
19
  'Dhii\\Data\\' => array($vendorDir . '/dhii/data-key-value-aware-interface/src'),
20
  'Dhii\\Container\\' => array($vendorDir . '/dhii/containers/src'),
21
  'Dhii\\Collection\\' => array($vendorDir . '/dhii/collections-interface/src'),
22
- 'Composer\\Installers\\' => array($vendorDir . '/composer/installers/src/Composer/Installers'),
23
  );
8
  return array(
9
  'Psr\\Log\\' => array($vendorDir . '/psr/log/Psr/Log'),
10
  'Psr\\Container\\' => array($vendorDir . '/psr/container/src'),
 
11
  'Interop\\Container\\' => array($vendorDir . '/container-interop/service-provider/src'),
12
  'Dhii\\Wp\\Containers\\' => array($vendorDir . '/dhii/wp-containers/src'),
13
  'Dhii\\Util\\String\\' => array($vendorDir . '/dhii/stringable-interface/src'),
18
  'Dhii\\Data\\' => array($vendorDir . '/dhii/data-key-value-aware-interface/src'),
19
  'Dhii\\Container\\' => array($vendorDir . '/dhii/containers/src'),
20
  'Dhii\\Collection\\' => array($vendorDir . '/dhii/collections-interface/src'),
 
21
  );
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInitd155c2047eaef319e1c9510b94fc195a
6
  {
7
  private static $loader;
8
 
@@ -22,15 +22,15 @@ class ComposerAutoloaderInitd155c2047eaef319e1c9510b94fc195a
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInitd155c2047eaef319e1c9510b94fc195a', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
- spl_autoload_unregister(array('ComposerAutoloaderInitd155c2047eaef319e1c9510b94fc195a', '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\ComposerStaticInitd155c2047eaef319e1c9510b94fc195a::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
@@ -51,19 +51,19 @@ class ComposerAutoloaderInitd155c2047eaef319e1c9510b94fc195a
51
  $loader->register(true);
52
 
53
  if ($useStaticLoader) {
54
- $includeFiles = Composer\Autoload\ComposerStaticInitd155c2047eaef319e1c9510b94fc195a::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
- composerRequired155c2047eaef319e1c9510b94fc195a($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
- function composerRequired155c2047eaef319e1c9510b94fc195a($fileIdentifier, $file)
67
  {
68
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
69
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit1d807336893326b54d6d768e9f857b17
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInit1d807336893326b54d6d768e9f857b17', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
+ spl_autoload_unregister(array('ComposerAutoloaderInit1d807336893326b54d6d768e9f857b17', '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\ComposerStaticInit1d807336893326b54d6d768e9f857b17::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
51
  $loader->register(true);
52
 
53
  if ($useStaticLoader) {
54
+ $includeFiles = Composer\Autoload\ComposerStaticInit1d807336893326b54d6d768e9f857b17::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
+ composerRequire1d807336893326b54d6d768e9f857b17($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
+ function composerRequire1d807336893326b54d6d768e9f857b17($fileIdentifier, $file)
67
  {
68
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
69
  require $file;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInitd155c2047eaef319e1c9510b94fc195a
8
  {
9
  public static $files = array (
10
  '7b11c4dc42b3b3023073cb14e519683c' => __DIR__ . '/..' . '/ralouphie/getallheaders/src/getallheaders.php',
@@ -16,10 +16,6 @@ class ComposerStaticInitd155c2047eaef319e1c9510b94fc195a
16
  'Psr\\Log\\' => 8,
17
  'Psr\\Container\\' => 14,
18
  ),
19
- 'O' =>
20
- array (
21
- 'OomphInc\\ComposerInstallersExtender\\' => 36,
22
- ),
23
  'I' =>
24
  array (
25
  'Interop\\Container\\' => 18,
@@ -36,10 +32,6 @@ class ComposerStaticInitd155c2047eaef319e1c9510b94fc195a
36
  'Dhii\\Container\\' => 15,
37
  'Dhii\\Collection\\' => 16,
38
  ),
39
- 'C' =>
40
- array (
41
- 'Composer\\Installers\\' => 20,
42
- ),
43
  );
44
 
45
  public static $prefixDirsPsr4 = array (
@@ -51,10 +43,6 @@ class ComposerStaticInitd155c2047eaef319e1c9510b94fc195a
51
  array (
52
  0 => __DIR__ . '/..' . '/psr/container/src',
53
  ),
54
- 'OomphInc\\ComposerInstallersExtender\\' =>
55
- array (
56
- 0 => __DIR__ . '/..' . '/oomphinc/composer-installers-extender/src',
57
- ),
58
  'Interop\\Container\\' =>
59
  array (
60
  0 => __DIR__ . '/..' . '/container-interop/service-provider/src',
@@ -95,10 +83,6 @@ class ComposerStaticInitd155c2047eaef319e1c9510b94fc195a
95
  array (
96
  0 => __DIR__ . '/..' . '/dhii/collections-interface/src',
97
  ),
98
- 'Composer\\Installers\\' =>
99
- array (
100
- 0 => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers',
101
- ),
102
  );
103
 
104
  public static $classMap = array (
@@ -252,9 +236,9 @@ class ComposerStaticInitd155c2047eaef319e1c9510b94fc195a
252
  public static function getInitializer(ClassLoader $loader)
253
  {
254
  return \Closure::bind(function () use ($loader) {
255
- $loader->prefixLengthsPsr4 = ComposerStaticInitd155c2047eaef319e1c9510b94fc195a::$prefixLengthsPsr4;
256
- $loader->prefixDirsPsr4 = ComposerStaticInitd155c2047eaef319e1c9510b94fc195a::$prefixDirsPsr4;
257
- $loader->classMap = ComposerStaticInitd155c2047eaef319e1c9510b94fc195a::$classMap;
258
 
259
  }, null, ClassLoader::class);
260
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit1d807336893326b54d6d768e9f857b17
8
  {
9
  public static $files = array (
10
  '7b11c4dc42b3b3023073cb14e519683c' => __DIR__ . '/..' . '/ralouphie/getallheaders/src/getallheaders.php',
16
  'Psr\\Log\\' => 8,
17
  'Psr\\Container\\' => 14,
18
  ),
 
 
 
 
19
  'I' =>
20
  array (
21
  'Interop\\Container\\' => 18,
32
  'Dhii\\Container\\' => 15,
33
  'Dhii\\Collection\\' => 16,
34
  ),
 
 
 
 
35
  );
36
 
37
  public static $prefixDirsPsr4 = array (
43
  array (
44
  0 => __DIR__ . '/..' . '/psr/container/src',
45
  ),
 
 
 
 
46
  'Interop\\Container\\' =>
47
  array (
48
  0 => __DIR__ . '/..' . '/container-interop/service-provider/src',
83
  array (
84
  0 => __DIR__ . '/..' . '/dhii/collections-interface/src',
85
  ),
 
 
 
 
86
  );
87
 
88
  public static $classMap = array (
236
  public static function getInitializer(ClassLoader $loader)
237
  {
238
  return \Closure::bind(function () use ($loader) {
239
+ $loader->prefixLengthsPsr4 = ComposerStaticInit1d807336893326b54d6d768e9f857b17::$prefixLengthsPsr4;
240
+ $loader->prefixDirsPsr4 = ComposerStaticInit1d807336893326b54d6d768e9f857b17::$prefixDirsPsr4;
241
+ $loader->classMap = ComposerStaticInit1d807336893326b54d6d768e9f857b17::$classMap;
242
 
243
  }, null, ClassLoader::class);
244
  }
vendor/composer/installed.json CHANGED
@@ -1,150 +1,4 @@
1
  [
2
- {
3
- "name": "composer/installers",
4
- "version": "v1.10.0",
5
- "version_normalized": "1.10.0.0",
6
- "source": {
7
- "type": "git",
8
- "url": "https://github.com/composer/installers.git",
9
- "reference": "1a0357fccad9d1cc1ea0c9a05b8847fbccccb78d"
10
- },
11
- "dist": {
12
- "type": "zip",
13
- "url": "https://api.github.com/repos/composer/installers/zipball/1a0357fccad9d1cc1ea0c9a05b8847fbccccb78d",
14
- "reference": "1a0357fccad9d1cc1ea0c9a05b8847fbccccb78d",
15
- "shasum": ""
16
- },
17
- "require": {
18
- "composer-plugin-api": "^1.0 || ^2.0"
19
- },
20
- "replace": {
21
- "roundcube/plugin-installer": "*",
22
- "shama/baton": "*"
23
- },
24
- "require-dev": {
25
- "composer/composer": "1.6.* || ^2.0",
26
- "composer/semver": "^1 || ^3",
27
- "phpstan/phpstan": "^0.12.55",
28
- "phpstan/phpstan-phpunit": "^0.12.16",
29
- "symfony/phpunit-bridge": "^4.2 || ^5",
30
- "symfony/process": "^2.3"
31
- },
32
- "time": "2021-01-14T11:07:16+00:00",
33
- "type": "composer-plugin",
34
- "extra": {
35
- "class": "Composer\\Installers\\Plugin",
36
- "branch-alias": {
37
- "dev-main": "1.x-dev"
38
- }
39
- },
40
- "installation-source": "dist",
41
- "autoload": {
42
- "psr-4": {
43
- "Composer\\Installers\\": "src/Composer/Installers"
44
- }
45
- },
46
- "notification-url": "https://packagist.org/downloads/",
47
- "license": [
48
- "MIT"
49
- ],
50
- "authors": [
51
- {
52
- "name": "Kyle Robinson Young",
53
- "email": "kyle@dontkry.com",
54
- "homepage": "https://github.com/shama"
55
- }
56
- ],
57
- "description": "A multi-framework Composer library installer",
58
- "homepage": "https://composer.github.io/installers/",
59
- "keywords": [
60
- "Craft",
61
- "Dolibarr",
62
- "Eliasis",
63
- "Hurad",
64
- "ImageCMS",
65
- "Kanboard",
66
- "Lan Management System",
67
- "MODX Evo",
68
- "MantisBT",
69
- "Mautic",
70
- "Maya",
71
- "OXID",
72
- "Plentymarkets",
73
- "Porto",
74
- "RadPHP",
75
- "SMF",
76
- "Starbug",
77
- "Thelia",
78
- "Whmcs",
79
- "WolfCMS",
80
- "agl",
81
- "aimeos",
82
- "annotatecms",
83
- "attogram",
84
- "bitrix",
85
- "cakephp",
86
- "chef",
87
- "cockpit",
88
- "codeigniter",
89
- "concrete5",
90
- "croogo",
91
- "dokuwiki",
92
- "drupal",
93
- "eZ Platform",
94
- "elgg",
95
- "expressionengine",
96
- "fuelphp",
97
- "grav",
98
- "installer",
99
- "itop",
100
- "joomla",
101
- "known",
102
- "kohana",
103
- "laravel",
104
- "lavalite",
105
- "lithium",
106
- "magento",
107
- "majima",
108
- "mako",
109
- "mediawiki",
110
- "modulework",
111
- "modx",
112
- "moodle",
113
- "osclass",
114
- "phpbb",
115
- "piwik",
116
- "ppi",
117
- "processwire",
118
- "puppet",
119
- "pxcms",
120
- "reindex",
121
- "roundcube",
122
- "shopware",
123
- "silverstripe",
124
- "sydes",
125
- "sylius",
126
- "symfony",
127
- "typo3",
128
- "wordpress",
129
- "yawik",
130
- "zend",
131
- "zikula"
132
- ],
133
- "funding": [
134
- {
135
- "url": "https://packagist.com",
136
- "type": "custom"
137
- },
138
- {
139
- "url": "https://github.com/composer",
140
- "type": "github"
141
- },
142
- {
143
- "url": "https://tidelift.com/funding/github/packagist/composer/composer",
144
- "type": "tidelift"
145
- }
146
- ]
147
- },
148
  {
149
  "name": "container-interop/service-provider",
150
  "version": "v0.4.0",
@@ -645,50 +499,6 @@
645
  "wordpress"
646
  ]
647
  },
648
- {
649
- "name": "oomphinc/composer-installers-extender",
650
- "version": "v1.1.2",
651
- "version_normalized": "1.1.2.0",
652
- "source": {
653
- "type": "git",
654
- "url": "https://github.com/oomphinc/composer-installers-extender.git",
655
- "reference": "ca1c4b16b0905c81d1e77e608f36a2eff1a56f56"
656
- },
657
- "dist": {
658
- "type": "zip",
659
- "url": "https://api.github.com/repos/oomphinc/composer-installers-extender/zipball/ca1c4b16b0905c81d1e77e608f36a2eff1a56f56",
660
- "reference": "ca1c4b16b0905c81d1e77e608f36a2eff1a56f56",
661
- "shasum": ""
662
- },
663
- "require": {
664
- "composer-plugin-api": "^1.0",
665
- "composer/installers": "^1.0"
666
- },
667
- "time": "2017-03-31T16:57:39+00:00",
668
- "type": "composer-plugin",
669
- "extra": {
670
- "class": "OomphInc\\ComposerInstallersExtender\\Plugin"
671
- },
672
- "installation-source": "dist",
673
- "autoload": {
674
- "psr-4": {
675
- "OomphInc\\ComposerInstallersExtender\\": "src/"
676
- }
677
- },
678
- "notification-url": "https://packagist.org/downloads/",
679
- "license": [
680
- "MIT"
681
- ],
682
- "authors": [
683
- {
684
- "name": "Stephen Beemsterboer",
685
- "email": "stephen@oomphinc.com",
686
- "homepage": "https://github.com/balbuf"
687
- }
688
- ],
689
- "description": "Extend the composer/installers plugin to accept any arbitrary package type.",
690
- "homepage": "http://www.oomphinc.com/"
691
- },
692
  {
693
  "name": "psr/container",
694
  "version": "1.0.0",
1
  [
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  {
3
  "name": "container-interop/service-provider",
4
  "version": "v0.4.0",
499
  "wordpress"
500
  ]
501
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
502
  {
503
  "name": "psr/container",
504
  "version": "1.0.0",
vendor/composer/installers/LICENSE DELETED
@@ -1,19 +0,0 @@
1
- Copyright (c) 2012 Kyle Robinson Young
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/composer/installers/composer.json DELETED
@@ -1,119 +0,0 @@
1
- {
2
- "name": "composer/installers",
3
- "type": "composer-plugin",
4
- "license": "MIT",
5
- "description": "A multi-framework Composer library installer",
6
- "keywords": [
7
- "installer",
8
- "Aimeos",
9
- "AGL",
10
- "AnnotateCms",
11
- "Attogram",
12
- "Bitrix",
13
- "CakePHP",
14
- "Chef",
15
- "Cockpit",
16
- "CodeIgniter",
17
- "concrete5",
18
- "Craft",
19
- "Croogo",
20
- "DokuWiki",
21
- "Dolibarr",
22
- "Drupal",
23
- "Elgg",
24
- "Eliasis",
25
- "ExpressionEngine",
26
- "eZ Platform",
27
- "FuelPHP",
28
- "Grav",
29
- "Hurad",
30
- "ImageCMS",
31
- "iTop",
32
- "Joomla",
33
- "Kanboard",
34
- "Known",
35
- "Kohana",
36
- "Lan Management System",
37
- "Laravel",
38
- "Lavalite",
39
- "Lithium",
40
- "Magento",
41
- "majima",
42
- "Mako",
43
- "MantisBT",
44
- "Mautic",
45
- "Maya",
46
- "MODX",
47
- "MODX Evo",
48
- "MediaWiki",
49
- "OXID",
50
- "osclass",
51
- "MODULEWork",
52
- "Moodle",
53
- "Piwik",
54
- "pxcms",
55
- "phpBB",
56
- "Plentymarkets",
57
- "PPI",
58
- "Puppet",
59
- "Porto",
60
- "ProcessWire",
61
- "RadPHP",
62
- "ReIndex",
63
- "Roundcube",
64
- "shopware",
65
- "SilverStripe",
66
- "SMF",
67
- "Starbug",
68
- "SyDES",
69
- "Sylius",
70
- "symfony",
71
- "Thelia",
72
- "TYPO3",
73
- "WHMCS",
74
- "WolfCMS",
75
- "WordPress",
76
- "YAWIK",
77
- "Zend",
78
- "Zikula"
79
- ],
80
- "homepage": "https://composer.github.io/installers/",
81
- "authors": [
82
- {
83
- "name": "Kyle Robinson Young",
84
- "email": "kyle@dontkry.com",
85
- "homepage": "https://github.com/shama"
86
- }
87
- ],
88
- "autoload": {
89
- "psr-4": { "Composer\\Installers\\": "src/Composer/Installers" }
90
- },
91
- "autoload-dev": {
92
- "psr-4": { "Composer\\Installers\\Test\\": "tests/Composer/Installers/Test" }
93
- },
94
- "extra": {
95
- "class": "Composer\\Installers\\Plugin",
96
- "branch-alias": {
97
- "dev-main": "1.x-dev"
98
- }
99
- },
100
- "replace": {
101
- "shama/baton": "*",
102
- "roundcube/plugin-installer": "*"
103
- },
104
- "require": {
105
- "composer-plugin-api": "^1.0 || ^2.0"
106
- },
107
- "require-dev": {
108
- "composer/composer": "1.6.* || ^2.0",
109
- "composer/semver": "^1 || ^3",
110
- "symfony/phpunit-bridge": "^4.2 || ^5",
111
- "phpstan/phpstan": "^0.12.55",
112
- "symfony/process": "^2.3",
113
- "phpstan/phpstan-phpunit": "^0.12.16"
114
- },
115
- "scripts": {
116
- "test": "SYMFONY_PHPUNIT_REMOVE_RETURN_TYPEHINT=1 vendor/bin/simple-phpunit",
117
- "phpstan": "vendor/bin/phpstan analyse"
118
- }
119
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/phpstan.neon.dist DELETED
@@ -1,10 +0,0 @@
1
- parameters:
2
- level: 5
3
- paths:
4
- - src
5
- - tests
6
- excludes_analyse:
7
- - tests/Composer/Installers/Test/PolyfillTestCase.php
8
-
9
- includes:
10
- - vendor/phpstan/phpstan-phpunit/extension.neon
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/AglInstaller.php DELETED
@@ -1,21 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class AglInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'module' => 'More/{$name}/',
8
- );
9
-
10
- /**
11
- * Format package name to CamelCase
12
- */
13
- public function inflectPackageVars($vars)
14
- {
15
- $vars['name'] = preg_replace_callback('/(?:^|_|-)(.?)/', function ($matches) {
16
- return strtoupper($matches[1]);
17
- }, $vars['name']);
18
-
19
- return $vars;
20
- }
21
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/AimeosInstaller.php DELETED
@@ -1,9 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class AimeosInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'extension' => 'ext/{$name}/',
8
- );
9
- }
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/AnnotateCmsInstaller.php DELETED
@@ -1,11 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class AnnotateCmsInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'module' => 'addons/modules/{$name}/',
8
- 'component' => 'addons/components/{$name}/',
9
- 'service' => 'addons/services/{$name}/',
10
- );
11
- }
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/AsgardInstaller.php DELETED
@@ -1,49 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class AsgardInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'module' => 'Modules/{$name}/',
8
- 'theme' => 'Themes/{$name}/'
9
- );
10
-
11
- /**
12
- * Format package name.
13
- *
14
- * For package type asgard-module, cut off a trailing '-plugin' if present.
15
- *
16
- * For package type asgard-theme, cut off a trailing '-theme' if present.
17
- *
18
- */
19
- public function inflectPackageVars($vars)
20
- {
21
- if ($vars['type'] === 'asgard-module') {
22
- return $this->inflectPluginVars($vars);
23
- }
24
-
25
- if ($vars['type'] === 'asgard-theme') {
26
- return $this->inflectThemeVars($vars);
27
- }
28
-
29
- return $vars;
30
- }
31
-
32
- protected function inflectPluginVars($vars)
33
- {
34
- $vars['name'] = preg_replace('/-module$/', '', $vars['name']);
35
- $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']);
36
- $vars['name'] = str_replace(' ', '', ucwords($vars['name']));
37
-
38
- return $vars;
39
- }
40
-
41
- protected function inflectThemeVars($vars)
42
- {
43
- $vars['name'] = preg_replace('/-theme$/', '', $vars['name']);
44
- $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']);
45
- $vars['name'] = str_replace(' ', '', ucwords($vars['name']));
46
-
47
- return $vars;
48
- }
49
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/AttogramInstaller.php DELETED
@@ -1,9 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class AttogramInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'module' => 'modules/{$name}/',
8
- );
9
- }
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/BaseInstaller.php DELETED
@@ -1,137 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- use Composer\IO\IOInterface;
5
- use Composer\Composer;
6
- use Composer\Package\PackageInterface;
7
-
8
- abstract class BaseInstaller
9
- {
10
- protected $locations = array();
11
- protected $composer;
12
- protected $package;
13
- protected $io;
14
-
15
- /**
16
- * Initializes base installer.
17
- *
18
- * @param PackageInterface $package
19
- * @param Composer $composer
20
- * @param IOInterface $io
21
- */
22
- public function __construct(PackageInterface $package = null, Composer $composer = null, IOInterface $io = null)
23
- {
24
- $this->composer = $composer;
25
- $this->package = $package;
26
- $this->io = $io;
27
- }
28
-
29
- /**
30
- * Return the install path based on package type.
31
- *
32
- * @param PackageInterface $package
33
- * @param string $frameworkType
34
- * @return string
35
- */
36
- public function getInstallPath(PackageInterface $package, $frameworkType = '')
37
- {
38
- $type = $this->package->getType();
39
-
40
- $prettyName = $this->package->getPrettyName();
41
- if (strpos($prettyName, '/') !== false) {
42
- list($vendor, $name) = explode('/', $prettyName);
43
- } else {
44
- $vendor = '';
45
- $name = $prettyName;
46
- }
47
-
48
- $availableVars = $this->inflectPackageVars(compact('name', 'vendor', 'type'));
49
-
50
- $extra = $package->getExtra();
51
- if (!empty($extra['installer-name'])) {
52
- $availableVars['name'] = $extra['installer-name'];
53
- }
54
-
55
- if ($this->composer->getPackage()) {
56
- $extra = $this->composer->getPackage()->getExtra();
57
- if (!empty($extra['installer-paths'])) {
58
- $customPath = $this->mapCustomInstallPaths($extra['installer-paths'], $prettyName, $type, $vendor);
59
- if ($customPath !== false) {
60
- return $this->templatePath($customPath, $availableVars);
61
- }
62
- }
63
- }
64
-
65
- $packageType = substr($type, strlen($frameworkType) + 1);
66
- $locations = $this->getLocations();
67
- if (!isset($locations[$packageType])) {
68
- throw new \InvalidArgumentException(sprintf('Package type "%s" is not supported', $type));
69
- }
70
-
71
- return $this->templatePath($locations[$packageType], $availableVars);
72
- }
73
-
74
- /**
75
- * For an installer to override to modify the vars per installer.
76
- *
77
- * @param array<string, string> $vars This will normally receive array{name: string, vendor: string, type: string}
78
- * @return array<string, string>
79
- */
80
- public function inflectPackageVars($vars)
81
- {
82
- return $vars;
83
- }
84
-
85
- /**
86
- * Gets the installer's locations
87
- *
88
- * @return array<string, string> map of package types => install path
89
- */
90
- public function getLocations()
91
- {
92
- return $this->locations;
93
- }
94
-
95
- /**
96
- * Replace vars in a path
97
- *
98
- * @param string $path
99
- * @param array<string, string> $vars
100
- * @return string
101
- */
102
- protected function templatePath($path, array $vars = array())
103
- {
104
- if (strpos($path, '{') !== false) {
105
- extract($vars);
106
- preg_match_all('@\{\$([A-Za-z0-9_]*)\}@i', $path, $matches);
107
- if (!empty($matches[1])) {
108
- foreach ($matches[1] as $var) {
109
- $path = str_replace('{$' . $var . '}', $$var, $path);
110
- }
111
- }
112
- }
113
-
114
- return $path;
115
- }
116
-
117
- /**
118
- * Search through a passed paths array for a custom install path.
119
- *
120
- * @param array $paths
121
- * @param string $name
122
- * @param string $type
123
- * @param string $vendor = NULL
124
- * @return string|false
125
- */
126
- protected function mapCustomInstallPaths(array $paths, $name, $type, $vendor = NULL)
127
- {
128
- foreach ($paths as $path => $names) {
129
- $names = (array) $names;
130
- if (in_array($name, $names) || in_array('type:' . $type, $names) || in_array('vendor:' . $vendor, $names)) {
131
- return $path;
132
- }
133
- }
134
-
135
- return false;
136
- }
137
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/BitrixInstaller.php DELETED
@@ -1,126 +0,0 @@
1
- <?php
2
-
3
- namespace Composer\Installers;
4
-
5
- use Composer\Util\Filesystem;
6
-
7
- /**
8
- * Installer for Bitrix Framework. Supported types of extensions:
9
- * - `bitrix-d7-module` — copy the module to directory `bitrix/modules/<vendor>.<name>`.
10
- * - `bitrix-d7-component` — copy the component to directory `bitrix/components/<vendor>/<name>`.
11
- * - `bitrix-d7-template` — copy the template to directory `bitrix/templates/<vendor>_<name>`.
12
- *
13
- * You can set custom path to directory with Bitrix kernel in `composer.json`:
14
- *
15
- * ```json
16
- * {
17
- * "extra": {
18
- * "bitrix-dir": "s1/bitrix"
19
- * }
20
- * }
21
- * ```
22
- *
23
- * @author Nik Samokhvalov <nik@samokhvalov.info>
24
- * @author Denis Kulichkin <onexhovia@gmail.com>
25
- */
26
- class BitrixInstaller extends BaseInstaller
27
- {
28
- protected $locations = array(
29
- 'module' => '{$bitrix_dir}/modules/{$name}/', // deprecated, remove on the major release (Backward compatibility will be broken)
30
- 'component' => '{$bitrix_dir}/components/{$name}/', // deprecated, remove on the major release (Backward compatibility will be broken)
31
- 'theme' => '{$bitrix_dir}/templates/{$name}/', // deprecated, remove on the major release (Backward compatibility will be broken)
32
- 'd7-module' => '{$bitrix_dir}/modules/{$vendor}.{$name}/',
33
- 'd7-component' => '{$bitrix_dir}/components/{$vendor}/{$name}/',
34
- 'd7-template' => '{$bitrix_dir}/templates/{$vendor}_{$name}/',
35
- );
36
-
37
- /**
38
- * @var array Storage for informations about duplicates at all the time of installation packages.
39
- */
40
- private static $checkedDuplicates = array();
41
-
42
- /**
43
- * {@inheritdoc}
44
- */
45
- public function inflectPackageVars($vars)
46
- {
47
- if ($this->composer->getPackage()) {
48
- $extra = $this->composer->getPackage()->getExtra();
49
-
50
- if (isset($extra['bitrix-dir'])) {
51
- $vars['bitrix_dir'] = $extra['bitrix-dir'];
52
- }
53
- }
54
-
55
- if (!isset($vars['bitrix_dir'])) {
56
- $vars['bitrix_dir'] = 'bitrix';
57
- }
58
-
59
- return parent::inflectPackageVars($vars);
60
- }
61
-
62
- /**
63
- * {@inheritdoc}
64
- */
65
- protected function templatePath($path, array $vars = array())
66
- {
67
- $templatePath = parent::templatePath($path, $vars);
68
- $this->checkDuplicates($templatePath, $vars);
69
-
70
- return $templatePath;
71
- }
72
-
73
- /**
74
- * Duplicates search packages.
75
- *
76
- * @param string $path
77
- * @param array $vars
78
- */
79
- protected function checkDuplicates($path, array $vars = array())
80
- {
81
- $packageType = substr($vars['type'], strlen('bitrix') + 1);
82
- $localDir = explode('/', $vars['bitrix_dir']);
83
- array_pop($localDir);
84
- $localDir[] = 'local';
85
- $localDir = implode('/', $localDir);
86
-
87
- $oldPath = str_replace(
88
- array('{$bitrix_dir}', '{$name}'),
89
- array($localDir, $vars['name']),
90
- $this->locations[$packageType]
91
- );
92
-
93
- if (in_array($oldPath, static::$checkedDuplicates)) {
94
- return;
95
- }
96
-
97
- if ($oldPath !== $path && file_exists($oldPath) && $this->io && $this->io->isInteractive()) {
98
-
99
- $this->io->writeError(' <error>Duplication of packages:</error>');
100
- $this->io->writeError(' <info>Package ' . $oldPath . ' will be called instead package ' . $path . '</info>');
101
-
102
- while (true) {
103
- switch ($this->io->ask(' <info>Delete ' . $oldPath . ' [y,n,?]?</info> ', '?')) {
104
- case 'y':
105
- $fs = new Filesystem();
106
- $fs->removeDirectory($oldPath);
107
- break 2;
108
-
109
- case 'n':
110
- break 2;
111
-
112
- case '?':
113
- default:
114
- $this->io->writeError(array(
115
- ' y - delete package ' . $oldPath . ' and to continue with the installation',
116
- ' n - don\'t delete and to continue with the installation',
117
- ));
118
- $this->io->writeError(' ? - print help');
119
- break;
120
- }
121
- }
122
- }
123
-
124
- static::$checkedDuplicates[] = $oldPath;
125
- }
126
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/BonefishInstaller.php DELETED
@@ -1,9 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class BonefishInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'package' => 'Packages/{$vendor}/{$name}/'
8
- );
9
- }
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/CakePHPInstaller.php DELETED
@@ -1,65 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- use Composer\DependencyResolver\Pool;
5
- use Composer\Semver\Constraint\Constraint;
6
-
7
- class CakePHPInstaller extends BaseInstaller
8
- {
9
- protected $locations = array(
10
- 'plugin' => 'Plugin/{$name}/',
11
- );
12
-
13
- /**
14
- * Format package name to CamelCase
15
- */
16
- public function inflectPackageVars($vars)
17
- {
18
- if ($this->matchesCakeVersion('>=', '3.0.0')) {
19
- return $vars;
20
- }
21
-
22
- $nameParts = explode('/', $vars['name']);
23
- foreach ($nameParts as &$value) {
24
- $value = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $value));
25
- $value = str_replace(array('-', '_'), ' ', $value);
26
- $value = str_replace(' ', '', ucwords($value));
27
- }
28
- $vars['name'] = implode('/', $nameParts);
29
-
30
- return $vars;
31
- }
32
-
33
- /**
34
- * Change the default plugin location when cakephp >= 3.0
35
- */
36
- public function getLocations()
37
- {
38
- if ($this->matchesCakeVersion('>=', '3.0.0')) {
39
- $this->locations['plugin'] = $this->composer->getConfig()->get('vendor-dir') . '/{$vendor}/{$name}/';
40
- }
41
- return $this->locations;
42
- }
43
-
44
- /**
45
- * Check if CakePHP version matches against a version
46
- *
47
- * @param string $matcher
48
- * @param string $version
49
- * @return bool
50
- */
51
- protected function matchesCakeVersion($matcher, $version)
52
- {
53
- $repositoryManager = $this->composer->getRepositoryManager();
54
- if (! $repositoryManager) {
55
- return false;
56
- }
57
-
58
- $repos = $repositoryManager->getLocalRepository();
59
- if (!$repos) {
60
- return false;
61
- }
62
-
63
- return $repos->findPackage('cakephp/cakephp', new Constraint($matcher, $version)) !== null;
64
- }
65
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/ChefInstaller.php DELETED
@@ -1,11 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class ChefInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'cookbook' => 'Chef/{$vendor}/{$name}/',
8
- 'role' => 'Chef/roles/{$name}/',
9
- );
10
- }
11
-
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/CiviCrmInstaller.php DELETED
@@ -1,9 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class CiviCrmInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'ext' => 'ext/{$name}/'
8
- );
9
- }
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/ClanCatsFrameworkInstaller.php DELETED
@@ -1,10 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class ClanCatsFrameworkInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'ship' => 'CCF/orbit/{$name}/',
8
- 'theme' => 'CCF/app/themes/{$name}/',
9
- );
10
- }
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/CockpitInstaller.php DELETED
@@ -1,32 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class CockpitInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'module' => 'cockpit/modules/addons/{$name}/',
8
- );
9
-
10
- /**
11
- * Format module name.
12
- *
13
- * Strip `module-` prefix from package name.
14
- *
15
- * {@inheritDoc}
16
- */
17
- public function inflectPackageVars($vars)
18
- {
19
- if ($vars['type'] == 'cockpit-module') {
20
- return $this->inflectModuleVars($vars);
21
- }
22
-
23
- return $vars;
24
- }
25
-
26
- public function inflectModuleVars($vars)
27
- {
28
- $vars['name'] = ucfirst(preg_replace('/cockpit-/i', '', $vars['name']));
29
-
30
- return $vars;
31
- }
32
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php DELETED
@@ -1,11 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class CodeIgniterInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'library' => 'application/libraries/{$name}/',
8
- 'third-party' => 'application/third_party/{$name}/',
9
- 'module' => 'application/modules/{$name}/',
10
- );
11
- }
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/Concrete5Installer.php DELETED
@@ -1,13 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class Concrete5Installer extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'core' => 'concrete/',
8
- 'block' => 'application/blocks/{$name}/',
9
- 'package' => 'packages/{$name}/',
10
- 'theme' => 'application/themes/{$name}/',
11
- 'update' => 'updates/{$name}/',
12
- );
13
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/CraftInstaller.php DELETED
@@ -1,35 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- /**
5
- * Installer for Craft Plugins
6
- */
7
- class CraftInstaller extends BaseInstaller
8
- {
9
- const NAME_PREFIX = 'craft';
10
- const NAME_SUFFIX = 'plugin';
11
-
12
- protected $locations = array(
13
- 'plugin' => 'craft/plugins/{$name}/',
14
- );
15
-
16
- /**
17
- * Strip `craft-` prefix and/or `-plugin` suffix from package names
18
- *
19
- * @param array $vars
20
- *
21
- * @return array
22
- */
23
- final public function inflectPackageVars($vars)
24
- {
25
- return $this->inflectPluginVars($vars);
26
- }
27
-
28
- private function inflectPluginVars($vars)
29
- {
30
- $vars['name'] = preg_replace('/-' . self::NAME_SUFFIX . '$/i', '', $vars['name']);
31
- $vars['name'] = preg_replace('/^' . self::NAME_PREFIX . '-/i', '', $vars['name']);
32
-
33
- return $vars;
34
- }
35
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/CroogoInstaller.php DELETED
@@ -1,21 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class CroogoInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'plugin' => 'Plugin/{$name}/',
8
- 'theme' => 'View/Themed/{$name}/',
9
- );
10
-
11
- /**
12
- * Format package name to CamelCase
13
- */
14
- public function inflectPackageVars($vars)
15
- {
16
- $vars['name'] = strtolower(str_replace(array('-', '_'), ' ', $vars['name']));
17
- $vars['name'] = str_replace(' ', '', ucwords($vars['name']));
18
-
19
- return $vars;
20
- }
21
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/DecibelInstaller.php DELETED
@@ -1,10 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class DecibelInstaller extends BaseInstaller
5
- {
6
- /** @var array */
7
- protected $locations = array(
8
- 'app' => 'app/{$name}/',
9
- );
10
- }
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/DframeInstaller.php DELETED
@@ -1,10 +0,0 @@
1
- <?php
2
-
3
- namespace Composer\Installers;
4
-
5
- class DframeInstaller extends BaseInstaller
6
- {
7
- protected $locations = array(
8
- 'module' => 'modules/{$vendor}/{$name}/',
9
- );
10
- }
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/DokuWikiInstaller.php DELETED
@@ -1,50 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class DokuWikiInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'plugin' => 'lib/plugins/{$name}/',
8
- 'template' => 'lib/tpl/{$name}/',
9
- );
10
-
11
- /**
12
- * Format package name.
13
- *
14
- * For package type dokuwiki-plugin, cut off a trailing '-plugin',
15
- * or leading dokuwiki_ if present.
16
- *
17
- * For package type dokuwiki-template, cut off a trailing '-template' if present.
18
- *
19
- */
20
- public function inflectPackageVars($vars)
21
- {
22
-
23
- if ($vars['type'] === 'dokuwiki-plugin') {
24
- return $this->inflectPluginVars($vars);
25
- }
26
-
27
- if ($vars['type'] === 'dokuwiki-template') {
28
- return $this->inflectTemplateVars($vars);
29
- }
30
-
31
- return $vars;
32
- }
33
-
34
- protected function inflectPluginVars($vars)
35
- {
36
- $vars['name'] = preg_replace('/-plugin$/', '', $vars['name']);
37
- $vars['name'] = preg_replace('/^dokuwiki_?-?/', '', $vars['name']);
38
-
39
- return $vars;
40
- }
41
-
42
- protected function inflectTemplateVars($vars)
43
- {
44
- $vars['name'] = preg_replace('/-template$/', '', $vars['name']);
45
- $vars['name'] = preg_replace('/^dokuwiki_?-?/', '', $vars['name']);
46
-
47
- return $vars;
48
- }
49
-
50
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/DolibarrInstaller.php DELETED
@@ -1,16 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- /**
5
- * Class DolibarrInstaller
6
- *
7
- * @package Composer\Installers
8
- * @author Raphaël Doursenaud <rdoursenaud@gpcsolutions.fr>
9
- */
10
- class DolibarrInstaller extends BaseInstaller
11
- {
12
- //TODO: Add support for scripts and themes
13
- protected $locations = array(
14
- 'module' => 'htdocs/custom/{$name}/',
15
- );
16
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/DrupalInstaller.php DELETED
@@ -1,22 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class DrupalInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'core' => 'core/',
8
- 'module' => 'modules/{$name}/',
9
- 'theme' => 'themes/{$name}/',
10
- 'library' => 'libraries/{$name}/',
11
- 'profile' => 'profiles/{$name}/',
12
- 'database-driver' => 'drivers/lib/Drupal/Driver/Database/{$name}/',
13
- 'drush' => 'drush/{$name}/',
14
- 'custom-theme' => 'themes/custom/{$name}/',
15
- 'custom-module' => 'modules/custom/{$name}/',
16
- 'custom-profile' => 'profiles/custom/{$name}/',
17
- 'drupal-multisite' => 'sites/{$name}/',
18
- 'console' => 'console/{$name}/',
19
- 'console-language' => 'console/language/{$name}/',
20
- 'config' => 'config/sync/',
21
- );
22
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/ElggInstaller.php DELETED
@@ -1,9 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class ElggInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'plugin' => 'mod/{$name}/',
8
- );
9
- }
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/EliasisInstaller.php DELETED
@@ -1,12 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class EliasisInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'component' => 'components/{$name}/',
8
- 'module' => 'modules/{$name}/',
9
- 'plugin' => 'plugins/{$name}/',
10
- 'template' => 'templates/{$name}/',
11
- );
12
- }
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/ExpressionEngineInstaller.php DELETED
@@ -1,29 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- use Composer\Package\PackageInterface;
5
-
6
- class ExpressionEngineInstaller extends BaseInstaller
7
- {
8
-
9
- protected $locations = array();
10
-
11
- private $ee2Locations = array(
12
- 'addon' => 'system/expressionengine/third_party/{$name}/',
13
- 'theme' => 'themes/third_party/{$name}/',
14
- );
15
-
16
- private $ee3Locations = array(
17
- 'addon' => 'system/user/addons/{$name}/',
18
- 'theme' => 'themes/user/{$name}/',
19
- );
20
-
21
- public function getInstallPath(PackageInterface $package, $frameworkType = '')
22
- {
23
-
24
- $version = "{$frameworkType}Locations";
25
- $this->locations = $this->$version;
26
-
27
- return parent::getInstallPath($package, $frameworkType);
28
- }
29
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/EzPlatformInstaller.php DELETED
@@ -1,10 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class EzPlatformInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'meta-assets' => 'web/assets/ezplatform/',
8
- 'assets' => 'web/assets/ezplatform/{$name}/',
9
- );
10
- }
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/FuelInstaller.php DELETED
@@ -1,11 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class FuelInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'module' => 'fuel/app/modules/{$name}/',
8
- 'package' => 'fuel/packages/{$name}/',
9
- 'theme' => 'fuel/app/themes/{$name}/',
10
- );
11
- }
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/FuelphpInstaller.php DELETED
@@ -1,9 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class FuelphpInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'component' => 'components/{$name}/',
8
- );
9
- }
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/GravInstaller.php DELETED
@@ -1,30 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class GravInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'plugin' => 'user/plugins/{$name}/',
8
- 'theme' => 'user/themes/{$name}/',
9
- );
10
-
11
- /**
12
- * Format package name
13
- *
14
- * @param array $vars
15
- *
16
- * @return array
17
- */
18
- public function inflectPackageVars($vars)
19
- {
20
- $restrictedWords = implode('|', array_keys($this->locations));
21
-
22
- $vars['name'] = strtolower($vars['name']);
23
- $vars['name'] = preg_replace('/^(?:grav-)?(?:(?:'.$restrictedWords.')-)?(.*?)(?:-(?:'.$restrictedWords.'))?$/ui',
24
- '$1',
25
- $vars['name']
26
- );
27
-
28
- return $vars;
29
- }
30
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/HuradInstaller.php DELETED
@@ -1,25 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class HuradInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'plugin' => 'plugins/{$name}/',
8
- 'theme' => 'plugins/{$name}/',
9
- );
10
-
11
- /**
12
- * Format package name to CamelCase
13
- */
14
- public function inflectPackageVars($vars)
15
- {
16
- $nameParts = explode('/', $vars['name']);
17
- foreach ($nameParts as &$value) {
18
- $value = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $value));
19
- $value = str_replace(array('-', '_'), ' ', $value);
20
- $value = str_replace(' ', '', ucwords($value));
21
- }
22
- $vars['name'] = implode('/', $nameParts);
23
- return $vars;
24
- }
25
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/ImageCMSInstaller.php DELETED
@@ -1,11 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class ImageCMSInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'template' => 'templates/{$name}/',
8
- 'module' => 'application/modules/{$name}/',
9
- 'library' => 'application/libraries/{$name}/',
10
- );
11
- }
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/Installer.php DELETED
@@ -1,294 +0,0 @@
1
- <?php
2
-
3
- namespace Composer\Installers;
4
-
5
- use Composer\Composer;
6
- use Composer\Installer\BinaryInstaller;
7
- use Composer\Installer\LibraryInstaller;
8
- use Composer\IO\IOInterface;
9
- use Composer\Package\PackageInterface;
10
- use Composer\Repository\InstalledRepositoryInterface;
11
- use Composer\Util\Filesystem;
12
- use React\Promise\PromiseInterface;
13
-
14
- class Installer extends LibraryInstaller
15
- {
16
-
17
- /**
18
- * Package types to installer class map
19
- *
20
- * @var array
21
- */
22
- private $supportedTypes = array(
23
- 'aimeos' => 'AimeosInstaller',
24
- 'asgard' => 'AsgardInstaller',
25
- 'attogram' => 'AttogramInstaller',
26
- 'agl' => 'AglInstaller',
27
- 'annotatecms' => 'AnnotateCmsInstaller',
28
- 'bitrix' => 'BitrixInstaller',
29
- 'bonefish' => 'BonefishInstaller',
30
- 'cakephp' => 'CakePHPInstaller',
31
- 'chef' => 'ChefInstaller',
32
- 'civicrm' => 'CiviCrmInstaller',
33
- 'ccframework' => 'ClanCatsFrameworkInstaller',
34
- 'cockpit' => 'CockpitInstaller',
35
- 'codeigniter' => 'CodeIgniterInstaller',
36
- 'concrete5' => 'Concrete5Installer',
37
- 'craft' => 'CraftInstaller',
38
- 'croogo' => 'CroogoInstaller',
39
- 'dframe' => 'DframeInstaller',
40
- 'dokuwiki' => 'DokuWikiInstaller',
41
- 'dolibarr' => 'DolibarrInstaller',
42
- 'decibel' => 'DecibelInstaller',
43
- 'drupal' => 'DrupalInstaller',
44
- 'elgg' => 'ElggInstaller',
45
- 'eliasis' => 'EliasisInstaller',
46
- 'ee3' => 'ExpressionEngineInstaller',
47
- 'ee2' => 'ExpressionEngineInstaller',
48
- 'ezplatform' => 'EzPlatformInstaller',
49
- 'fuel' => 'FuelInstaller',
50
- 'fuelphp' => 'FuelphpInstaller',
51
- 'grav' => 'GravInstaller',
52
- 'hurad' => 'HuradInstaller',
53
- 'imagecms' => 'ImageCMSInstaller',
54
- 'itop' => 'ItopInstaller',
55
- 'joomla' => 'JoomlaInstaller',
56
- 'kanboard' => 'KanboardInstaller',
57
- 'kirby' => 'KirbyInstaller',
58
- 'known' => 'KnownInstaller',
59
- 'kodicms' => 'KodiCMSInstaller',
60
- 'kohana' => 'KohanaInstaller',
61
- 'lms' => 'LanManagementSystemInstaller',
62
- 'laravel' => 'LaravelInstaller',
63
- 'lavalite' => 'LavaLiteInstaller',
64
- 'lithium' => 'LithiumInstaller',
65
- 'magento' => 'MagentoInstaller',
66
- 'majima' => 'MajimaInstaller',
67
- 'mantisbt' => 'MantisBTInstaller',
68
- 'mako' => 'MakoInstaller',
69
- 'maya' => 'MayaInstaller',
70
- 'mautic' => 'MauticInstaller',
71
- 'mediawiki' => 'MediaWikiInstaller',
72
- 'microweber' => 'MicroweberInstaller',
73
- 'modulework' => 'MODULEWorkInstaller',
74
- 'modx' => 'ModxInstaller',
75
- 'modxevo' => 'MODXEvoInstaller',
76
- 'moodle' => 'MoodleInstaller',
77
- 'october' => 'OctoberInstaller',
78
- 'ontowiki' => 'OntoWikiInstaller',
79
- 'oxid' => 'OxidInstaller',
80
- 'osclass' => 'OsclassInstaller',
81
- 'pxcms' => 'PxcmsInstaller',
82
- 'phpbb' => 'PhpBBInstaller',
83
- 'pimcore' => 'PimcoreInstaller',
84
- 'piwik' => 'PiwikInstaller',
85
- 'plentymarkets'=> 'PlentymarketsInstaller',
86
- 'ppi' => 'PPIInstaller',
87
- 'puppet' => 'PuppetInstaller',
88
- 'radphp' => 'RadPHPInstaller',
89
- 'phifty' => 'PhiftyInstaller',
90
- 'porto' => 'PortoInstaller',
91
- 'processwire' => 'ProcessWireInstaller',
92
- 'redaxo' => 'RedaxoInstaller',
93
- 'redaxo5' => 'Redaxo5Installer',
94
- 'reindex' => 'ReIndexInstaller',
95
- 'roundcube' => 'RoundcubeInstaller',
96
- 'shopware' => 'ShopwareInstaller',
97
- 'sitedirect' => 'SiteDirectInstaller',
98
- 'silverstripe' => 'SilverStripeInstaller',
99
- 'smf' => 'SMFInstaller',
100
- 'starbug' => 'StarbugInstaller',
101
- 'sydes' => 'SyDESInstaller',
102
- 'sylius' => 'SyliusInstaller',
103
- 'symfony1' => 'Symfony1Installer',
104
- 'tao' => 'TaoInstaller',
105
- 'thelia' => 'TheliaInstaller',
106
- 'tusk' => 'TuskInstaller',
107
- 'typo3-cms' => 'TYPO3CmsInstaller',
108
- 'typo3-flow' => 'TYPO3FlowInstaller',
109
- 'userfrosting' => 'UserFrostingInstaller',
110
- 'vanilla' => 'VanillaInstaller',
111
- 'whmcs' => 'WHMCSInstaller',
112
- 'wolfcms' => 'WolfCMSInstaller',
113
- 'wordpress' => 'WordPressInstaller',
114
- 'yawik' => 'YawikInstaller',
115
- 'zend' => 'ZendInstaller',
116
- 'zikula' => 'ZikulaInstaller',
117
- 'prestashop' => 'PrestashopInstaller'
118
- );
119
-
120
- /**
121
- * Installer constructor.
122
- *
123
- * Disables installers specified in main composer extra installer-disable
124
- * list
125
- *
126
- * @param IOInterface $io
127
- * @param Composer $composer
128
- * @param string $type
129
- * @param Filesystem|null $filesystem
130
- * @param BinaryInstaller|null $binaryInstaller
131
- */
132
- public function __construct(
133
- IOInterface $io,
134
- Composer $composer,
135
- $type = 'library',
136
- Filesystem $filesystem = null,
137
- BinaryInstaller $binaryInstaller = null
138
- ) {
139
- parent::__construct($io, $composer, $type, $filesystem,
140
- $binaryInstaller);
141
- $this->removeDisabledInstallers();
142
- }
143
-
144
- /**
145
- * {@inheritDoc}
146
- */
147
- public function getInstallPath(PackageInterface $package)
148
- {
149
- $type = $package->getType();
150
- $frameworkType = $this->findFrameworkType($type);
151
-
152
- if ($frameworkType === false) {
153
- throw new \InvalidArgumentException(
154
- 'Sorry the package type of this package is not yet supported.'
155
- );
156
- }
157
-
158
- $class = 'Composer\\Installers\\' . $this->supportedTypes[$frameworkType];
159
- $installer = new $class($package, $this->composer, $this->getIO());
160
-
161
- return $installer->getInstallPath($package, $frameworkType);
162
- }
163
-
164
- public function uninstall(InstalledRepositoryInterface $repo, PackageInterface $package)
165
- {
166
- $installPath = $this->getPackageBasePath($package);
167
- $io = $this->io;
168
- $outputStatus = function () use ($io, $installPath) {
169
- $io->write(sprintf('Deleting %s - %s', $installPath, !file_exists($installPath) ? '<comment>deleted</comment>' : '<error>not deleted</error>'));
170
- };
171
-
172
- $promise = parent::uninstall($repo, $package);
173
-
174
- // Composer v2 might return a promise here
175
- if ($promise instanceof PromiseInterface) {
176
- return $promise->then($outputStatus);
177
- }
178
-
179
- // If not, execute the code right away as parent::uninstall executed synchronously (composer v1, or v2 without async)
180
- $outputStatus();
181
-
182
- return null;
183
- }
184
-
185
- /**
186
- * {@inheritDoc}
187
- */
188
- public function supports($packageType)
189
- {
190
- $frameworkType = $this->findFrameworkType($packageType);
191
-
192
- if ($frameworkType === false) {
193
- return false;
194
- }
195
-
196
- $locationPattern = $this->getLocationPattern($frameworkType);
197
-
198
- return preg_match('#' . $frameworkType . '-' . $locationPattern . '#', $packageType, $matches) === 1;
199
- }
200
-
201
- /**
202
- * Finds a supported framework type if it exists and returns it
203
- *
204
- * @param string $type
205
- * @return string|false
206
- */
207
- protected function findFrameworkType($type)
208
- {
209
- krsort($this->supportedTypes);
210
-
211
- foreach ($this->supportedTypes as $key => $val) {
212
- if ($key === substr($type, 0, strlen($key))) {
213
- return substr($type, 0, strlen($key));
214
- }
215
- }
216
-
217
- return false;
218
- }
219
-
220
- /**
221
- * Get the second part of the regular expression to check for support of a
222
- * package type
223
- *
224
- * @param string $frameworkType
225
- * @return string
226
- */
227
- protected function getLocationPattern($frameworkType)
228
- {
229
- $pattern = false;
230
- if (!empty($this->supportedTypes[$frameworkType])) {
231
- $frameworkClass = 'Composer\\Installers\\' . $this->supportedTypes[$frameworkType];
232
- /** @var BaseInstaller $framework */
233
- $framework = new $frameworkClass(null, $this->composer, $this->getIO());
234
- $locations = array_keys($framework->getLocations());
235
- $pattern = $locations ? '(' . implode('|', $locations) . ')' : false;
236
- }
237
-
238
- return $pattern ? : '(\w+)';
239
- }
240
-
241
- /**
242
- * Get I/O object
243
- *
244
- * @return IOInterface
245
- */
246
- private function getIO()
247
- {
248
- return $this->io;
249
- }
250
-
251
- /**
252
- * Look for installers set to be disabled in composer's extra config and
253
- * remove them from the list of supported installers.
254
- *
255
- * Globals:
256
- * - true, "all", and "*" - disable all installers.
257
- * - false - enable all installers (useful with
258
- * wikimedia/composer-merge-plugin or similar)
259
- *
260
- * @return void
261
- */
262
- protected function removeDisabledInstallers()
263
- {
264
- $extra = $this->composer->getPackage()->getExtra();
265
-
266
- if (!isset($extra['installer-disable']) || $extra['installer-disable'] === false) {
267
- // No installers are disabled
268
- return;
269
- }
270
-
271
- // Get installers to disable
272
- $disable = $extra['installer-disable'];
273
-
274
- // Ensure $disabled is an array
275
- if (!is_array($disable)) {
276
- $disable = array($disable);
277
- }
278
-
279
- // Check which installers should be disabled
280
- $all = array(true, "all", "*");
281
- $intersect = array_intersect($all, $disable);
282
- if (!empty($intersect)) {
283
- // Disable all installers
284
- $this->supportedTypes = array();
285
- } else {
286
- // Disable specified installers
287
- foreach ($disable as $key => $installer) {
288
- if (is_string($installer) && key_exists($installer, $this->supportedTypes)) {
289
- unset($this->supportedTypes[$installer]);
290
- }
291
- }
292
- }
293
- }
294
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/ItopInstaller.php DELETED
@@ -1,9 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class ItopInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'extension' => 'extensions/{$name}/',
8
- );
9
- }
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/JoomlaInstaller.php DELETED
@@ -1,15 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class JoomlaInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'component' => 'components/{$name}/',
8
- 'module' => 'modules/{$name}/',
9
- 'template' => 'templates/{$name}/',
10
- 'plugin' => 'plugins/{$name}/',
11
- 'library' => 'libraries/{$name}/',
12
- );
13
-
14
- // TODO: Add inflector for mod_ and com_ names
15
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/KanboardInstaller.php DELETED
@@ -1,18 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- /**
5
- *
6
- * Installer for kanboard plugins
7
- *
8
- * kanboard.net
9
- *
10
- * Class KanboardInstaller
11
- * @package Composer\Installers
12
- */
13
- class KanboardInstaller extends BaseInstaller
14
- {
15
- protected $locations = array(
16
- 'plugin' => 'plugins/{$name}/',
17
- );
18
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/KirbyInstaller.php DELETED
@@ -1,11 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class KirbyInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'plugin' => 'site/plugins/{$name}/',
8
- 'field' => 'site/fields/{$name}/',
9
- 'tag' => 'site/tags/{$name}/'
10
- );
11
- }
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/KnownInstaller.php DELETED
@@ -1,11 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class KnownInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'plugin' => 'IdnoPlugins/{$name}/',
8
- 'theme' => 'Themes/{$name}/',
9
- 'console' => 'ConsolePlugins/{$name}/',
10
- );
11
- }
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/KodiCMSInstaller.php DELETED
@@ -1,10 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class KodiCMSInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'plugin' => 'cms/plugins/{$name}/',
8
- 'media' => 'cms/media/vendor/{$name}/'
9
- );
10
- }
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/KohanaInstaller.php DELETED
@@ -1,9 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class KohanaInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'module' => 'modules/{$name}/',
8
- );
9
- }
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/LanManagementSystemInstaller.php DELETED
@@ -1,27 +0,0 @@
1
- <?php
2
-
3
- namespace Composer\Installers;
4
-
5
- class LanManagementSystemInstaller extends BaseInstaller
6
- {
7
-
8
- protected $locations = array(
9
- 'plugin' => 'plugins/{$name}/',
10
- 'template' => 'templates/{$name}/',
11
- 'document-template' => 'documents/templates/{$name}/',
12
- 'userpanel-module' => 'userpanel/modules/{$name}/',
13
- );
14
-
15
- /**
16
- * Format package name to CamelCase
17
- */
18
- public function inflectPackageVars($vars)
19
- {
20
- $vars['name'] = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $vars['name']));
21
- $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']);
22
- $vars['name'] = str_replace(' ', '', ucwords($vars['name']));
23
-
24
- return $vars;
25
- }
26
-
27
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/LaravelInstaller.php DELETED
@@ -1,9 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class LaravelInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'library' => 'libraries/{$name}/',
8
- );
9
- }
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/LavaLiteInstaller.php DELETED
@@ -1,10 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class LavaLiteInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'package' => 'packages/{$vendor}/{$name}/',
8
- 'theme' => 'public/themes/{$name}/',
9
- );
10
- }
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/LithiumInstaller.php DELETED
@@ -1,10 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class LithiumInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'library' => 'libraries/{$name}/',
8
- 'source' => 'libraries/_source/{$name}/',
9
- );
10
- }
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/MODULEWorkInstaller.php DELETED
@@ -1,9 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class MODULEWorkInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'module' => 'modules/{$name}/',
8
- );
9
- }
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/MODXEvoInstaller.php DELETED
@@ -1,16 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- /**
5
- * An installer to handle MODX Evolution specifics when installing packages.
6
- */
7
- class MODXEvoInstaller extends BaseInstaller
8
- {
9
- protected $locations = array(
10
- 'snippet' => 'assets/snippets/{$name}/',
11
- 'plugin' => 'assets/plugins/{$name}/',
12
- 'module' => 'assets/modules/{$name}/',
13
- 'template' => 'assets/templates/{$name}/',
14
- 'lib' => 'assets/lib/{$name}/'
15
- );
16
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/MagentoInstaller.php DELETED
@@ -1,11 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class MagentoInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'theme' => 'app/design/frontend/{$name}/',
8
- 'skin' => 'skin/frontend/default/{$name}/',
9
- 'library' => 'lib/{$name}/',
10
- );
11
- }
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/MajimaInstaller.php DELETED
@@ -1,37 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- /**
5
- * Plugin/theme installer for majima
6
- * @author David Neustadt
7
- */
8
- class MajimaInstaller extends BaseInstaller
9
- {
10
- protected $locations = array(
11
- 'plugin' => 'plugins/{$name}/',
12
- );
13
-
14
- /**
15
- * Transforms the names
16
- * @param array $vars
17
- * @return array
18
- */
19
- public function inflectPackageVars($vars)
20
- {
21
- return $this->correctPluginName($vars);
22
- }
23
-
24
- /**
25
- * Change hyphenated names to camelcase
26
- * @param array $vars
27
- * @return array
28
- */
29
- private function correctPluginName($vars)
30
- {
31
- $camelCasedName = preg_replace_callback('/(-[a-z])/', function ($matches) {
32
- return strtoupper($matches[0][1]);
33
- }, $vars['name']);
34
- $vars['name'] = ucfirst($camelCasedName);
35
- return $vars;
36
- }
37
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/MakoInstaller.php DELETED
@@ -1,9 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class MakoInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'package' => 'app/packages/{$name}/',
8
- );
9
- }
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/MantisBTInstaller.php DELETED
@@ -1,23 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- use Composer\DependencyResolver\Pool;
5
-
6
- class MantisBTInstaller extends BaseInstaller
7
- {
8
- protected $locations = array(
9
- 'plugin' => 'plugins/{$name}/',
10
- );
11
-
12
- /**
13
- * Format package name to CamelCase
14
- */
15
- public function inflectPackageVars($vars)
16
- {
17
- $vars['name'] = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $vars['name']));
18
- $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']);
19
- $vars['name'] = str_replace(' ', '', ucwords($vars['name']));
20
-
21
- return $vars;
22
- }
23
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/MauticInstaller.php DELETED
@@ -1,25 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class MauticInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'plugin' => 'plugins/{$name}/',
8
- 'theme' => 'themes/{$name}/',
9
- );
10
-
11
- /**
12
- * Format package name of mautic-plugins to CamelCase
13
- */
14
- public function inflectPackageVars($vars)
15
- {
16
- if ($vars['type'] == 'mautic-plugin') {
17
- $vars['name'] = preg_replace_callback('/(-[a-z])/', function ($matches) {
18
- return strtoupper($matches[0][1]);
19
- }, ucfirst($vars['name']));
20
- }
21
-
22
- return $vars;
23
- }
24
-
25
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/MayaInstaller.php DELETED
@@ -1,33 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class MayaInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'module' => 'modules/{$name}/',
8
- );
9
-
10
- /**
11
- * Format package name.
12
- *
13
- * For package type maya-module, cut off a trailing '-module' if present.
14
- *
15
- */
16
- public function inflectPackageVars($vars)
17
- {
18
- if ($vars['type'] === 'maya-module') {
19
- return $this->inflectModuleVars($vars);
20
- }
21
-
22
- return $vars;
23
- }
24
-
25
- protected function inflectModuleVars($vars)
26
- {
27
- $vars['name'] = preg_replace('/-module$/', '', $vars['name']);
28
- $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']);
29
- $vars['name'] = str_replace(' ', '', ucwords($vars['name']));
30
-
31
- return $vars;
32
- }
33
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/MediaWikiInstaller.php DELETED
@@ -1,51 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class MediaWikiInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'core' => 'core/',
8
- 'extension' => 'extensions/{$name}/',
9
- 'skin' => 'skins/{$name}/',
10
- );
11
-
12
- /**
13
- * Format package name.
14
- *
15
- * For package type mediawiki-extension, cut off a trailing '-extension' if present and transform
16
- * to CamelCase keeping existing uppercase chars.
17
- *
18
- * For package type mediawiki-skin, cut off a trailing '-skin' if present.
19
- *
20
- */
21
- public function inflectPackageVars($vars)
22
- {
23
-
24
- if ($vars['type'] === 'mediawiki-extension') {
25
- return $this->inflectExtensionVars($vars);
26
- }
27
-
28
- if ($vars['type'] === 'mediawiki-skin') {
29
- return $this->inflectSkinVars($vars);
30
- }
31
-
32
- return $vars;
33
- }
34
-
35
- protected function inflectExtensionVars($vars)
36
- {
37
- $vars['name'] = preg_replace('/-extension$/', '', $vars['name']);
38
- $vars['name'] = str_replace('-', ' ', $vars['name']);
39
- $vars['name'] = str_replace(' ', '', ucwords($vars['name']));
40
-
41
- return $vars;
42
- }
43
-
44
- protected function inflectSkinVars($vars)
45
- {
46
- $vars['name'] = preg_replace('/-skin$/', '', $vars['name']);
47
-
48
- return $vars;
49
- }
50
-
51
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/MicroweberInstaller.php DELETED
@@ -1,119 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class MicroweberInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'module' => 'userfiles/modules/{$install_item_dir}/',
8
- 'module-skin' => 'userfiles/modules/{$install_item_dir}/templates/',
9
- 'template' => 'userfiles/templates/{$install_item_dir}/',
10
- 'element' => 'userfiles/elements/{$install_item_dir}/',
11
- 'vendor' => 'vendor/{$install_item_dir}/',
12
- 'components' => 'components/{$install_item_dir}/'
13
- );
14
-
15
- /**
16
- * Format package name.
17
- *
18
- * For package type microweber-module, cut off a trailing '-module' if present
19
- *
20
- * For package type microweber-template, cut off a trailing '-template' if present.
21
- *
22
- */
23
- public function inflectPackageVars($vars)
24
- {
25
-
26
-
27
- if ($this->package->getTargetDir()) {
28
- $vars['install_item_dir'] = $this->package->getTargetDir();
29
- } else {
30
- $vars['install_item_dir'] = $vars['name'];
31
- if ($vars['type'] === 'microweber-template') {
32
- return $this->inflectTemplateVars($vars);
33
- }
34
- if ($vars['type'] === 'microweber-templates') {
35
- return $this->inflectTemplatesVars($vars);
36
- }
37
- if ($vars['type'] === 'microweber-core') {
38
- return $this->inflectCoreVars($vars);
39
- }
40
- if ($vars['type'] === 'microweber-adapter') {
41
- return $this->inflectCoreVars($vars);
42
- }
43
- if ($vars['type'] === 'microweber-module') {
44
- return $this->inflectModuleVars($vars);
45
- }
46
- if ($vars['type'] === 'microweber-modules') {
47
- return $this->inflectModulesVars($vars);
48
- }
49
- if ($vars['type'] === 'microweber-skin') {
50
- return $this->inflectSkinVars($vars);
51
- }
52
- if ($vars['type'] === 'microweber-element' or $vars['type'] === 'microweber-elements') {
53
- return $this->inflectElementVars($vars);
54
- }
55
- }
56
-
57
-
58
- return $vars;
59
- }
60
-
61
- protected function inflectTemplateVars($vars)
62
- {
63
- $vars['install_item_dir'] = preg_replace('/-template$/', '', $vars['install_item_dir']);
64
- $vars['install_item_dir'] = preg_replace('/template-$/', '', $vars['install_item_dir']);
65
-
66
- return $vars;
67
- }
68
-
69
- protected function inflectTemplatesVars($vars)
70
- {
71
- $vars['install_item_dir'] = preg_replace('/-templates$/', '', $vars['install_item_dir']);
72
- $vars['install_item_dir'] = preg_replace('/templates-$/', '', $vars['install_item_dir']);
73
-
74
- return $vars;
75
- }
76
-
77
- protected function inflectCoreVars($vars)
78
- {
79
- $vars['install_item_dir'] = preg_replace('/-providers$/', '', $vars['install_item_dir']);
80
- $vars['install_item_dir'] = preg_replace('/-provider$/', '', $vars['install_item_dir']);
81
- $vars['install_item_dir'] = preg_replace('/-adapter$/', '', $vars['install_item_dir']);
82
-
83
- return $vars;
84
- }
85
-
86
- protected function inflectModuleVars($vars)
87
- {
88
- $vars['install_item_dir'] = preg_replace('/-module$/', '', $vars['install_item_dir']);
89
- $vars['install_item_dir'] = preg_replace('/module-$/', '', $vars['install_item_dir']);
90
-
91
- return $vars;
92
- }
93
-
94
- protected function inflectModulesVars($vars)
95
- {
96
- $vars['install_item_dir'] = preg_replace('/-modules$/', '', $vars['install_item_dir']);
97
- $vars['install_item_dir'] = preg_replace('/modules-$/', '', $vars['install_item_dir']);
98
-
99
- return $vars;
100
- }
101
-
102
- protected function inflectSkinVars($vars)
103
- {
104
- $vars['install_item_dir'] = preg_replace('/-skin$/', '', $vars['install_item_dir']);
105
- $vars['install_item_dir'] = preg_replace('/skin-$/', '', $vars['install_item_dir']);
106
-
107
- return $vars;
108
- }
109
-
110
- protected function inflectElementVars($vars)
111
- {
112
- $vars['install_item_dir'] = preg_replace('/-elements$/', '', $vars['install_item_dir']);
113
- $vars['install_item_dir'] = preg_replace('/elements-$/', '', $vars['install_item_dir']);
114
- $vars['install_item_dir'] = preg_replace('/-element$/', '', $vars['install_item_dir']);
115
- $vars['install_item_dir'] = preg_replace('/element-$/', '', $vars['install_item_dir']);
116
-
117
- return $vars;
118
- }
119
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/ModxInstaller.php DELETED
@@ -1,12 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- /**
5
- * An installer to handle MODX specifics when installing packages.
6
- */
7
- class ModxInstaller extends BaseInstaller
8
- {
9
- protected $locations = array(
10
- 'extra' => 'core/packages/{$name}/'
11
- );
12
- }
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/MoodleInstaller.php DELETED
@@ -1,59 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class MoodleInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'mod' => 'mod/{$name}/',
8
- 'admin_report' => 'admin/report/{$name}/',
9
- 'atto' => 'lib/editor/atto/plugins/{$name}/',
10
- 'tool' => 'admin/tool/{$name}/',
11
- 'assignment' => 'mod/assignment/type/{$name}/',
12
- 'assignsubmission' => 'mod/assign/submission/{$name}/',
13
- 'assignfeedback' => 'mod/assign/feedback/{$name}/',
14
- 'auth' => 'auth/{$name}/',
15
- 'availability' => 'availability/condition/{$name}/',
16
- 'block' => 'blocks/{$name}/',
17
- 'booktool' => 'mod/book/tool/{$name}/',
18
- 'cachestore' => 'cache/stores/{$name}/',
19
- 'cachelock' => 'cache/locks/{$name}/',
20
- 'calendartype' => 'calendar/type/{$name}/',
21
- 'fileconverter' => 'files/converter/{$name}/',
22
- 'format' => 'course/format/{$name}/',
23
- 'coursereport' => 'course/report/{$name}/',
24
- 'customcertelement' => 'mod/customcert/element/{$name}/',
25
- 'datafield' => 'mod/data/field/{$name}/',
26
- 'datapreset' => 'mod/data/preset/{$name}/',
27
- 'editor' => 'lib/editor/{$name}/',
28
- 'enrol' => 'enrol/{$name}/',
29
- 'filter' => 'filter/{$name}/',
30
- 'gradeexport' => 'grade/export/{$name}/',
31
- 'gradeimport' => 'grade/import/{$name}/',
32
- 'gradereport' => 'grade/report/{$name}/',
33
- 'gradingform' => 'grade/grading/form/{$name}/',
34
- 'local' => 'local/{$name}/',
35
- 'logstore' => 'admin/tool/log/store/{$name}/',
36
- 'ltisource' => 'mod/lti/source/{$name}/',
37
- 'ltiservice' => 'mod/lti/service/{$name}/',
38
- 'message' => 'message/output/{$name}/',
39
- 'mnetservice' => 'mnet/service/{$name}/',
40
- 'plagiarism' => 'plagiarism/{$name}/',
41
- 'portfolio' => 'portfolio/{$name}/',
42
- 'qbehaviour' => 'question/behaviour/{$name}/',
43
- 'qformat' => 'question/format/{$name}/',
44
- 'qtype' => 'question/type/{$name}/',
45
- 'quizaccess' => 'mod/quiz/accessrule/{$name}/',
46
- 'quiz' => 'mod/quiz/report/{$name}/',
47
- 'report' => 'report/{$name}/',
48
- 'repository' => 'repository/{$name}/',
49
- 'scormreport' => 'mod/scorm/report/{$name}/',
50
- 'search' => 'search/engine/{$name}/',
51
- 'theme' => 'theme/{$name}/',
52
- 'tinymce' => 'lib/editor/tinymce/plugins/{$name}/',
53
- 'profilefield' => 'user/profile/field/{$name}/',
54
- 'webservice' => 'webservice/{$name}/',
55
- 'workshopallocation' => 'mod/workshop/allocation/{$name}/',
56
- 'workshopeval' => 'mod/workshop/eval/{$name}/',
57
- 'workshopform' => 'mod/workshop/form/{$name}/'
58
- );
59
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/OctoberInstaller.php DELETED
@@ -1,47 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class OctoberInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'module' => 'modules/{$name}/',
8
- 'plugin' => 'plugins/{$vendor}/{$name}/',
9
- 'theme' => 'themes/{$name}/'
10
- );
11
-
12
- /**
13
- * Format package name.
14
- *
15
- * For package type october-plugin, cut off a trailing '-plugin' if present.
16
- *
17
- * For package type october-theme, cut off a trailing '-theme' if present.
18
- *
19
- */
20
- public function inflectPackageVars($vars)
21
- {
22
- if ($vars['type'] === 'october-plugin') {
23
- return $this->inflectPluginVars($vars);
24
- }
25
-
26
- if ($vars['type'] === 'october-theme') {
27
- return $this->inflectThemeVars($vars);
28
- }
29
-
30
- return $vars;
31
- }
32
-
33
- protected function inflectPluginVars($vars)
34
- {
35
- $vars['name'] = preg_replace('/^oc-|-plugin$/', '', $vars['name']);
36
- $vars['vendor'] = preg_replace('/[^a-z0-9_]/i', '', $vars['vendor']);
37
-
38
- return $vars;
39
- }
40
-
41
- protected function inflectThemeVars($vars)
42
- {
43
- $vars['name'] = preg_replace('/^oc-|-theme$/', '', $vars['name']);
44
-
45
- return $vars;
46
- }
47
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/OntoWikiInstaller.php DELETED
@@ -1,24 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class OntoWikiInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'extension' => 'extensions/{$name}/',
8
- 'theme' => 'extensions/themes/{$name}/',
9
- 'translation' => 'extensions/translations/{$name}/',
10
- );
11
-
12
- /**
13
- * Format package name to lower case and remove ".ontowiki" suffix
14
- */
15
- public function inflectPackageVars($vars)
16
- {
17
- $vars['name'] = strtolower($vars['name']);
18
- $vars['name'] = preg_replace('/.ontowiki$/', '', $vars['name']);
19
- $vars['name'] = preg_replace('/-theme$/', '', $vars['name']);
20
- $vars['name'] = preg_replace('/-translation$/', '', $vars['name']);
21
-
22
- return $vars;
23
- }
24
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/OsclassInstaller.php DELETED
@@ -1,14 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
-
5
- class OsclassInstaller extends BaseInstaller
6
- {
7
-
8
- protected $locations = array(
9
- 'plugin' => 'oc-content/plugins/{$name}/',
10
- 'theme' => 'oc-content/themes/{$name}/',
11
- 'language' => 'oc-content/languages/{$name}/',
12
- );
13
-
14
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/OxidInstaller.php DELETED
@@ -1,59 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- use Composer\Package\PackageInterface;
5
-
6
- class OxidInstaller extends BaseInstaller
7
- {
8
- const VENDOR_PATTERN = '/^modules\/(?P<vendor>.+)\/.+/';
9
-
10
- protected $locations = array(
11
- 'module' => 'modules/{$name}/',
12
- 'theme' => 'application/views/{$name}/',
13
- 'out' => 'out/{$name}/',
14
- );
15
-
16
- /**
17
- * getInstallPath
18
- *
19
- * @param PackageInterface $package
20
- * @param string $frameworkType
21
- * @return string
22
- */
23
- public function getInstallPath(PackageInterface $package, $frameworkType = '')
24
- {
25
- $installPath = parent::getInstallPath($package, $frameworkType);
26
- $type = $this->package->getType();
27
- if ($type === 'oxid-module') {
28
- $this->prepareVendorDirectory($installPath);
29
- }
30
- return $installPath;
31
- }
32
-
33
- /**
34
- * prepareVendorDirectory
35
- *
36
- * Makes sure there is a vendormetadata.php file inside
37
- * the vendor folder if there is a vendor folder.
38
- *
39
- * @param string $installPath
40
- * @return void
41
- */
42
- protected function prepareVendorDirectory($installPath)
43
- {
44
- $matches = '';
45
- $hasVendorDirectory = preg_match(self::VENDOR_PATTERN, $installPath, $matches);
46
- if (!$hasVendorDirectory) {
47
- return;
48
- }
49
-
50
- $vendorDirectory = $matches['vendor'];
51
- $vendorPath = getcwd() . '/modules/' . $vendorDirectory;
52
- if (!file_exists($vendorPath)) {
53
- mkdir($vendorPath, 0755, true);
54
- }
55
-
56
- $vendorMetaDataPath = $vendorPath . '/vendormetadata.php';
57
- touch($vendorMetaDataPath);
58
- }
59
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/PPIInstaller.php DELETED
@@ -1,9 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class PPIInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'module' => 'modules/{$name}/',
8
- );
9
- }
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/PhiftyInstaller.php DELETED
@@ -1,11 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class PhiftyInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'bundle' => 'bundles/{$name}/',
8
- 'library' => 'libraries/{$name}/',
9
- 'framework' => 'frameworks/{$name}/',
10
- );
11
- }
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/PhpBBInstaller.php DELETED
@@ -1,11 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class PhpBBInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'extension' => 'ext/{$vendor}/{$name}/',
8
- 'language' => 'language/{$name}/',
9
- 'style' => 'styles/{$name}/',
10
- );
11
- }
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/PimcoreInstaller.php DELETED
@@ -1,21 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class PimcoreInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'plugin' => 'plugins/{$name}/',
8
- );
9
-
10
- /**
11
- * Format package name to CamelCase
12
- */
13
- public function inflectPackageVars($vars)
14
- {
15
- $vars['name'] = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $vars['name']));
16
- $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']);
17
- $vars['name'] = str_replace(' ', '', ucwords($vars['name']));
18
-
19
- return $vars;
20
- }
21
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/PiwikInstaller.php DELETED
@@ -1,32 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- /**
5
- * Class PiwikInstaller
6
- *
7
- * @package Composer\Installers
8
- */
9
- class PiwikInstaller extends BaseInstaller
10
- {
11
- /**
12
- * @var array
13
- */
14
- protected $locations = array(
15
- 'plugin' => 'plugins/{$name}/',
16
- );
17
-
18
- /**
19
- * Format package name to CamelCase
20
- * @param array $vars
21
- *
22
- * @return array
23
- */
24
- public function inflectPackageVars($vars)
25
- {
26
- $vars['name'] = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $vars['name']));
27
- $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']);
28
- $vars['name'] = str_replace(' ', '', ucwords($vars['name']));
29
-
30
- return $vars;
31
- }
32
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/PlentymarketsInstaller.php DELETED
@@ -1,29 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class PlentymarketsInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'plugin' => '{$name}/'
8
- );
9
-
10
- /**
11
- * Remove hyphen, "plugin" and format to camelcase
12
- * @param array $vars
13
- *
14
- * @return array
15
- */
16
- public function inflectPackageVars($vars)
17
- {
18
- $vars['name'] = explode("-", $vars['name']);
19
- foreach ($vars['name'] as $key => $name) {
20
- $vars['name'][$key] = ucfirst($vars['name'][$key]);
21
- if (strcasecmp($name, "Plugin") == 0) {
22
- unset($vars['name'][$key]);
23
- }
24
- }
25
- $vars['name'] = implode("",$vars['name']);
26
-
27
- return $vars;
28
- }
29
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/Plugin.php DELETED
@@ -1,27 +0,0 @@
1
- <?php
2
-
3
- namespace Composer\Installers;
4
-
5
- use Composer\Composer;
6
- use Composer\IO\IOInterface;
7
- use Composer\Plugin\PluginInterface;
8
-
9
- class Plugin implements PluginInterface
10
- {
11
- private $installer;
12
-
13
- public function activate(Composer $composer, IOInterface $io)
14
- {
15
- $this->installer = new Installer($io, $composer);
16
- $composer->getInstallationManager()->addInstaller($this->installer);
17
- }
18
-
19
- public function deactivate(Composer $composer, IOInterface $io)
20
- {
21
- $composer->getInstallationManager()->removeInstaller($this->installer);
22
- }
23
-
24
- public function uninstall(Composer $composer, IOInterface $io)
25
- {
26
- }
27
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/PortoInstaller.php DELETED
@@ -1,9 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class PortoInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'container' => 'app/Containers/{$name}/',
8
- );
9
- }
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/PrestashopInstaller.php DELETED
@@ -1,10 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class PrestashopInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'module' => 'modules/{$name}/',
8
- 'theme' => 'themes/{$name}/',
9
- );
10
- }
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/ProcessWireInstaller.php DELETED
@@ -1,22 +0,0 @@
1
- <?php
2
-
3
- namespace Composer\Installers;
4
-
5
- class ProcessWireInstaller extends BaseInstaller
6
- {
7
- protected $locations = array(
8
- 'module' => 'site/modules/{$name}/',
9
- );
10
-
11
- /**
12
- * Format package name to CamelCase
13
- */
14
- public function inflectPackageVars($vars)
15
- {
16
- $vars['name'] = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $vars['name']));
17
- $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']);
18
- $vars['name'] = str_replace(' ', '', ucwords($vars['name']));
19
-
20
- return $vars;
21
- }
22
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/PuppetInstaller.php DELETED
@@ -1,11 +0,0 @@
1
- <?php
2
-
3
- namespace Composer\Installers;
4
-
5
- class PuppetInstaller extends BaseInstaller
6
- {
7
-
8
- protected $locations = array(
9
- 'module' => 'modules/{$name}/',
10
- );
11
- }
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/PxcmsInstaller.php DELETED
@@ -1,63 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class PxcmsInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'module' => 'app/Modules/{$name}/',
8
- 'theme' => 'themes/{$name}/',
9
- );
10
-
11
- /**
12
- * Format package name.
13
- *
14
- * @param array $vars
15
- *
16
- * @return array
17
- */
18
- public function inflectPackageVars($vars)
19
- {
20
- if ($vars['type'] === 'pxcms-module') {
21
- return $this->inflectModuleVars($vars);
22
- }
23
-
24
- if ($vars['type'] === 'pxcms-theme') {
25
- return $this->inflectThemeVars($vars);
26
- }
27
-
28
- return $vars;
29
- }
30
-
31
- /**
32
- * For package type pxcms-module, cut off a trailing '-plugin' if present.
33
- *
34
- * return string
35
- */
36
- protected function inflectModuleVars($vars)
37
- {
38
- $vars['name'] = str_replace('pxcms-', '', $vars['name']); // strip out pxcms- just incase (legacy)
39
- $vars['name'] = str_replace('module-', '', $vars['name']); // strip out module-
40
- $vars['name'] = preg_replace('/-module$/', '', $vars['name']); // strip out -module
41
- $vars['name'] = str_replace('-', '_', $vars['name']); // make -'s be _'s
42
- $vars['name'] = ucwords($vars['name']); // make module name camelcased
43
-
44
- return $vars;
45
- }
46
-
47
-
48
- /**
49
- * For package type pxcms-module, cut off a trailing '-plugin' if present.
50
- *
51
- * return string
52
- */
53
- protected function inflectThemeVars($vars)
54
- {
55
- $vars['name'] = str_replace('pxcms-', '', $vars['name']); // strip out pxcms- just incase (legacy)
56
- $vars['name'] = str_replace('theme-', '', $vars['name']); // strip out theme-
57
- $vars['name'] = preg_replace('/-theme$/', '', $vars['name']); // strip out -theme
58
- $vars['name'] = str_replace('-', '_', $vars['name']); // make -'s be _'s
59
- $vars['name'] = ucwords($vars['name']); // make module name camelcased
60
-
61
- return $vars;
62
- }
63
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/RadPHPInstaller.php DELETED
@@ -1,24 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class RadPHPInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'bundle' => 'src/{$name}/'
8
- );
9
-
10
- /**
11
- * Format package name to CamelCase
12
- */
13
- public function inflectPackageVars($vars)
14
- {
15
- $nameParts = explode('/', $vars['name']);
16
- foreach ($nameParts as &$value) {
17
- $value = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $value));
18
- $value = str_replace(array('-', '_'), ' ', $value);
19
- $value = str_replace(' ', '', ucwords($value));
20
- }
21
- $vars['name'] = implode('/', $nameParts);
22
- return $vars;
23
- }
24
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/ReIndexInstaller.php DELETED
@@ -1,10 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class ReIndexInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'theme' => 'themes/{$name}/',
8
- 'plugin' => 'plugins/{$name}/'
9
- );
10
- }
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/Redaxo5Installer.php DELETED
@@ -1,10 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class Redaxo5Installer extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'addon' => 'redaxo/src/addons/{$name}/',
8
- 'bestyle-plugin' => 'redaxo/src/addons/be_style/plugins/{$name}/'
9
- );
10
- }
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/RedaxoInstaller.php DELETED
@@ -1,10 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class RedaxoInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'addon' => 'redaxo/include/addons/{$name}/',
8
- 'bestyle-plugin' => 'redaxo/include/addons/be_style/plugins/{$name}/'
9
- );
10
- }
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/RoundcubeInstaller.php DELETED
@@ -1,22 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class RoundcubeInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'plugin' => 'plugins/{$name}/',
8
- );
9
-
10
- /**
11
- * Lowercase name and changes the name to a underscores
12
- *
13
- * @param array $vars
14
- * @return array
15
- */
16
- public function inflectPackageVars($vars)
17
- {
18
- $vars['name'] = strtolower(str_replace('-', '_', $vars['name']));
19
-
20
- return $vars;
21
- }
22
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/SMFInstaller.php DELETED
@@ -1,10 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class SMFInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'module' => 'Sources/{$name}/',
8
- 'theme' => 'Themes/{$name}/',
9
- );
10
- }
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/ShopwareInstaller.php DELETED
@@ -1,60 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- /**
5
- * Plugin/theme installer for shopware
6
- * @author Benjamin Boit
7
- */
8
- class ShopwareInstaller extends BaseInstaller
9
- {
10
- protected $locations = array(
11
- 'backend-plugin' => 'engine/Shopware/Plugins/Local/Backend/{$name}/',
12
- 'core-plugin' => 'engine/Shopware/Plugins/Local/Core/{$name}/',
13
- 'frontend-plugin' => 'engine/Shopware/Plugins/Local/Frontend/{$name}/',
14
- 'theme' => 'templates/{$name}/',
15
- 'plugin' => 'custom/plugins/{$name}/',
16
- 'frontend-theme' => 'themes/Frontend/{$name}/',
17
- );
18
-
19
- /**
20
- * Transforms the names
21
- * @param array $vars
22
- * @return array
23
- */
24
- public function inflectPackageVars($vars)
25
- {
26
- if ($vars['type'] === 'shopware-theme') {
27
- return $this->correctThemeName($vars);
28
- }
29
-
30
- return $this->correctPluginName($vars);
31
- }
32
-
33
- /**
34
- * Changes the name to a camelcased combination of vendor and name
35
- * @param array $vars
36
- * @return array
37
- */
38
- private function correctPluginName($vars)
39
- {
40
- $camelCasedName = preg_replace_callback('/(-[a-z])/', function ($matches) {
41
- return strtoupper($matches[0][1]);
42
- }, $vars['name']);
43
-
44
- $vars['name'] = ucfirst($vars['vendor']) . ucfirst($camelCasedName);
45
-
46
- return $vars;
47
- }
48
-
49
- /**
50
- * Changes the name to a underscore separated name
51
- * @param array $vars
52
- * @return array
53
- */
54
- private function correctThemeName($vars)
55
- {
56
- $vars['name'] = str_replace('-', '_', $vars['name']);
57
-
58
- return $vars;
59
- }
60
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/SilverStripeInstaller.php DELETED
@@ -1,35 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- use Composer\Package\PackageInterface;
5
-
6
- class SilverStripeInstaller extends BaseInstaller
7
- {
8
- protected $locations = array(
9
- 'module' => '{$name}/',
10
- 'theme' => 'themes/{$name}/',
11
- );
12
-
13
- /**
14
- * Return the install path based on package type.
15
- *
16
- * Relies on built-in BaseInstaller behaviour with one exception: silverstripe/framework
17
- * must be installed to 'sapphire' and not 'framework' if the version is <3.0.0
18
- *
19
- * @param PackageInterface $package
20
- * @param string $frameworkType
21
- * @return string
22
- */
23
- public function getInstallPath(PackageInterface $package, $frameworkType = '')
24
- {
25
- if (
26
- $package->getName() == 'silverstripe/framework'
27
- && preg_match('/^\d+\.\d+\.\d+/', $package->getVersion())
28
- && version_compare($package->getVersion(), '2.999.999') < 0
29
- ) {
30
- return $this->templatePath($this->locations['module'], array('name' => 'sapphire'));
31
- }
32
-
33
- return parent::getInstallPath($package, $frameworkType);
34
- }
35
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/SiteDirectInstaller.php DELETED
@@ -1,25 +0,0 @@
1
- <?php
2
-
3
- namespace Composer\Installers;
4
-
5
- class SiteDirectInstaller extends BaseInstaller
6
- {
7
- protected $locations = array(
8
- 'module' => 'modules/{$vendor}/{$name}/',
9
- 'plugin' => 'plugins/{$vendor}/{$name}/'
10
- );
11
-
12
- public function inflectPackageVars($vars)
13
- {
14
- return $this->parseVars($vars);
15
- }
16
-
17
- protected function parseVars($vars)
18
- {
19
- $vars['vendor'] = strtolower($vars['vendor']) == 'sitedirect' ? 'SiteDirect' : $vars['vendor'];
20
- $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']);
21
- $vars['name'] = str_replace(' ', '', ucwords($vars['name']));
22
-
23
- return $vars;
24
- }
25
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/StarbugInstaller.php DELETED
@@ -1,12 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class StarbugInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'module' => 'modules/{$name}/',
8
- 'theme' => 'themes/{$name}/',
9
- 'custom-module' => 'app/modules/{$name}/',
10
- 'custom-theme' => 'app/themes/{$name}/'
11
- );
12
- }
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/SyDESInstaller.php DELETED
@@ -1,47 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class SyDESInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'module' => 'app/modules/{$name}/',
8
- 'theme' => 'themes/{$name}/',
9
- );
10
-
11
- /**
12
- * Format module name.
13
- *
14
- * Strip `sydes-` prefix and a trailing '-theme' or '-module' from package name if present.
15
- *
16
- * {@inerhitDoc}
17
- */
18
- public function inflectPackageVars($vars)
19
- {
20
- if ($vars['type'] == 'sydes-module') {
21
- return $this->inflectModuleVars($vars);
22
- }
23
-
24
- if ($vars['type'] === 'sydes-theme') {
25
- return $this->inflectThemeVars($vars);
26
- }
27
-
28
- return $vars;
29
- }
30
-
31
- public function inflectModuleVars($vars)
32
- {
33
- $vars['name'] = preg_replace('/(^sydes-|-module$)/i', '', $vars['name']);
34
- $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']);
35
- $vars['name'] = str_replace(' ', '', ucwords($vars['name']));
36
-
37
- return $vars;
38
- }
39
-
40
- protected function inflectThemeVars($vars)
41
- {
42
- $vars['name'] = preg_replace('/(^sydes-|-theme$)/', '', $vars['name']);
43
- $vars['name'] = strtolower($vars['name']);
44
-
45
- return $vars;
46
- }
47
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/SyliusInstaller.php DELETED
@@ -1,9 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class SyliusInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'theme' => 'themes/{$name}/',
8
- );
9
- }
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/Symfony1Installer.php DELETED
@@ -1,26 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- /**
5
- * Plugin installer for symfony 1.x
6
- *
7
- * @author Jérôme Tamarelle <jerome@tamarelle.net>
8
- */
9
- class Symfony1Installer extends BaseInstaller
10
- {
11
- protected $locations = array(
12
- 'plugin' => 'plugins/{$name}/',
13
- );
14
-
15
- /**
16
- * Format package name to CamelCase
17
- */
18
- public function inflectPackageVars($vars)
19
- {
20
- $vars['name'] = preg_replace_callback('/(-[a-z])/', function ($matches) {
21
- return strtoupper($matches[0][1]);
22
- }, $vars['name']);
23
-
24
- return $vars;
25
- }
26
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/TYPO3CmsInstaller.php DELETED
@@ -1,16 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- /**
5
- * Extension installer for TYPO3 CMS
6
- *
7
- * @deprecated since 1.0.25, use https://packagist.org/packages/typo3/cms-composer-installers instead
8
- *
9
- * @author Sascha Egerer <sascha.egerer@dkd.de>
10
- */
11
- class TYPO3CmsInstaller extends BaseInstaller
12
- {
13
- protected $locations = array(
14
- 'extension' => 'typo3conf/ext/{$name}/',
15
- );
16
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/TYPO3FlowInstaller.php DELETED
@@ -1,38 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- /**
5
- * An installer to handle TYPO3 Flow specifics when installing packages.
6
- */
7
- class TYPO3FlowInstaller extends BaseInstaller
8
- {
9
- protected $locations = array(
10
- 'package' => 'Packages/Application/{$name}/',
11
- 'framework' => 'Packages/Framework/{$name}/',
12
- 'plugin' => 'Packages/Plugins/{$name}/',
13
- 'site' => 'Packages/Sites/{$name}/',
14
- 'boilerplate' => 'Packages/Boilerplates/{$name}/',
15
- 'build' => 'Build/{$name}/',
16
- );
17
-
18
- /**
19
- * Modify the package name to be a TYPO3 Flow style key.
20
- *
21
- * @param array $vars
22
- * @return array
23
- */
24
- public function inflectPackageVars($vars)
25
- {
26
- $autoload = $this->package->getAutoload();
27
- if (isset($autoload['psr-0']) && is_array($autoload['psr-0'])) {
28
- $namespace = key($autoload['psr-0']);
29
- $vars['name'] = str_replace('\\', '.', $namespace);
30
- }
31
- if (isset($autoload['psr-4']) && is_array($autoload['psr-4'])) {
32
- $namespace = key($autoload['psr-4']);
33
- $vars['name'] = rtrim(str_replace('\\', '.', $namespace), '.');
34
- }
35
-
36
- return $vars;
37
- }
38
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/TaoInstaller.php DELETED
@@ -1,30 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- /**
5
- * An installer to handle TAO extensions.
6
- */
7
- class TaoInstaller extends BaseInstaller
8
- {
9
- const EXTRA_TAO_EXTENSION_NAME = 'tao-extension-name';
10
-
11
- protected $locations = array(
12
- 'extension' => '{$name}'
13
- );
14
-
15
- public function inflectPackageVars($vars)
16
- {
17
- $extra = $this->package->getExtra();
18
-
19
- if (array_key_exists(self::EXTRA_TAO_EXTENSION_NAME, $extra)) {
20
- $vars['name'] = $extra[self::EXTRA_TAO_EXTENSION_NAME];
21
- return $vars;
22
- }
23
-
24
- $vars['name'] = str_replace('extension-', '', $vars['name']);
25
- $vars['name'] = str_replace('-', ' ', $vars['name']);
26
- $vars['name'] = lcfirst(str_replace(' ', '', ucwords($vars['name'])));
27
-
28
- return $vars;
29
- }
30
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/TheliaInstaller.php DELETED
@@ -1,12 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class TheliaInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'module' => 'local/modules/{$name}/',
8
- 'frontoffice-template' => 'templates/frontOffice/{$name}/',
9
- 'backoffice-template' => 'templates/backOffice/{$name}/',
10
- 'email-template' => 'templates/email/{$name}/',
11
- );
12
- }
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/TuskInstaller.php DELETED
@@ -1,14 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
- /**
4
- * Composer installer for 3rd party Tusk utilities
5
- * @author Drew Ewing <drew@phenocode.com>
6
- */
7
- class TuskInstaller extends BaseInstaller
8
- {
9
- protected $locations = array(
10
- 'task' => '.tusk/tasks/{$name}/',
11
- 'command' => '.tusk/commands/{$name}/',
12
- 'asset' => 'assets/tusk/{$name}/',
13
- );
14
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/UserFrostingInstaller.php DELETED
@@ -1,9 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class UserFrostingInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'sprinkle' => 'app/sprinkles/{$name}/',
8
- );
9
- }
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/VanillaInstaller.php DELETED
@@ -1,10 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class VanillaInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'plugin' => 'plugins/{$name}/',
8
- 'theme' => 'themes/{$name}/',
9
- );
10
- }
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/VgmcpInstaller.php DELETED
@@ -1,49 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class VgmcpInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'bundle' => 'src/{$vendor}/{$name}/',
8
- 'theme' => 'themes/{$name}/'
9
- );
10
-
11
- /**
12
- * Format package name.
13
- *
14
- * For package type vgmcp-bundle, cut off a trailing '-bundle' if present.
15
- *
16
- * For package type vgmcp-theme, cut off a trailing '-theme' if present.
17
- *
18
- */
19
- public function inflectPackageVars($vars)
20
- {
21
- if ($vars['type'] === 'vgmcp-bundle') {
22
- return $this->inflectPluginVars($vars);
23
- }
24
-
25
- if ($vars['type'] === 'vgmcp-theme') {
26
- return $this->inflectThemeVars($vars);
27
- }
28
-
29
- return $vars;
30
- }
31
-
32
- protected function inflectPluginVars($vars)
33
- {
34
- $vars['name'] = preg_replace('/-bundle$/', '', $vars['name']);
35
- $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']);
36
- $vars['name'] = str_replace(' ', '', ucwords($vars['name']));
37
-
38
- return $vars;
39
- }
40
-
41
- protected function inflectThemeVars($vars)
42
- {
43
- $vars['name'] = preg_replace('/-theme$/', '', $vars['name']);
44
- $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']);
45
- $vars['name'] = str_replace(' ', '', ucwords($vars['name']));
46
-
47
- return $vars;
48
- }
49
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/WHMCSInstaller.php DELETED
@@ -1,21 +0,0 @@
1
- <?php
2
-
3
- namespace Composer\Installers;
4
-
5
- class WHMCSInstaller extends BaseInstaller
6
- {
7
- protected $locations = array(
8
- 'addons' => 'modules/addons/{$vendor}_{$name}/',
9
- 'fraud' => 'modules/fraud/{$vendor}_{$name}/',
10
- 'gateways' => 'modules/gateways/{$vendor}_{$name}/',
11
- 'notifications' => 'modules/notifications/{$vendor}_{$name}/',
12
- 'registrars' => 'modules/registrars/{$vendor}_{$name}/',
13
- 'reports' => 'modules/reports/{$vendor}_{$name}/',
14
- 'security' => 'modules/security/{$vendor}_{$name}/',
15
- 'servers' => 'modules/servers/{$vendor}_{$name}/',
16
- 'social' => 'modules/social/{$vendor}_{$name}/',
17
- 'support' => 'modules/support/{$vendor}_{$name}/',
18
- 'templates' => 'templates/{$vendor}_{$name}/',
19
- 'includes' => 'includes/{$vendor}_{$name}/'
20
- );
21
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/WolfCMSInstaller.php DELETED
@@ -1,9 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class WolfCMSInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'plugin' => 'wolf/plugins/{$name}/',
8
- );
9
- }
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/WordPressInstaller.php DELETED
@@ -1,12 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class WordPressInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'plugin' => 'wp-content/plugins/{$name}/',
8
- 'theme' => 'wp-content/themes/{$name}/',
9
- 'muplugin' => 'wp-content/mu-plugins/{$name}/',
10
- 'dropin' => 'wp-content/{$name}/',
11
- );
12
- }
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/YawikInstaller.php DELETED
@@ -1,32 +0,0 @@
1
- <?php
2
- /**
3
- * Created by PhpStorm.
4
- * User: cbleek
5
- * Date: 25.03.16
6
- * Time: 20:55
7
- */
8
-
9
- namespace Composer\Installers;
10
-
11
-
12
- class YawikInstaller extends BaseInstaller
13
- {
14
- protected $locations = array(
15
- 'module' => 'module/{$name}/',
16
- );
17
-
18
- /**
19
- * Format package name to CamelCase
20
- * @param array $vars
21
- *
22
- * @return array
23
- */
24
- public function inflectPackageVars($vars)
25
- {
26
- $vars['name'] = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $vars['name']));
27
- $vars['name'] = str_replace(array('-', '_'), ' ', $vars['name']);
28
- $vars['name'] = str_replace(' ', '', ucwords($vars['name']));
29
-
30
- return $vars;
31
- }
32
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/ZendInstaller.php DELETED
@@ -1,11 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class ZendInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'library' => 'library/{$name}/',
8
- 'extra' => 'extras/library/{$name}/',
9
- 'module' => 'module/{$name}/',
10
- );
11
- }
 
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/Composer/Installers/ZikulaInstaller.php DELETED
@@ -1,10 +0,0 @@
1
- <?php
2
- namespace Composer\Installers;
3
-
4
- class ZikulaInstaller extends BaseInstaller
5
- {
6
- protected $locations = array(
7
- 'module' => 'modules/{$vendor}-{$name}/',
8
- 'theme' => 'themes/{$vendor}-{$name}/'
9
- );
10
- }
 
 
 
 
 
 
 
 
 
 
vendor/composer/installers/src/bootstrap.php DELETED
@@ -1,13 +0,0 @@
1
- <?php
2
- function includeIfExists($file)
3
- {
4
- if (file_exists($file)) {
5
- return include $file;
6
- }
7
- }
8
- if ((!$loader = includeIfExists(__DIR__ . '/../vendor/autoload.php')) && (!$loader = includeIfExists(__DIR__ . '/../../../autoload.php'))) {
9
- die('You must set up the project dependencies, run the following commands:'.PHP_EOL.
10
- 'curl -s http://getcomposer.org/installer | php'.PHP_EOL.
11
- 'php composer.phar install'.PHP_EOL);
12
- }
13
- return $loader;
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/oomphinc/composer-installers-extender/README.md DELETED
@@ -1,45 +0,0 @@
1
- # Composer Installers Extender
2
-
3
- The `composer-installers-extender` is a plugin for [Composer](https://getcomposer.org/) that allows
4
- any package to be installed to a directory other than the default `vendor/` directory within
5
- the repo on a package-by-package basis. This plugin extends the [`composer/installers`](https://github.com/composer/installers)
6
- plugin to allow any arbitrary package type to be handled by their custom installer and specified explicitly in the
7
- `"installer-paths"` mapping in the `"extra"` data property.
8
-
9
- `composer/installers` has a finite set of supported package types and we recognize the need for
10
- any arbitrary package type to be installed to a specific directory other than `vendor/`. This plugin
11
- allows additional package types to be handled by `composer/installers`, benefiting from their explicit install path
12
- mapping and token replacement of package properties.
13
-
14
- ## How to Use
15
- Add `oomphinc/composer-installers-extender` as a dependency of your project.
16
- ```sh
17
- composer require oomphinc/composer-installers-extender
18
- ```
19
- `composer/installers` is a dependency of this plugin and will be automatically required as well.
20
-
21
- To support additional package types, add an array of these types in the `"extra"` property in your `composer.json`:
22
- ```
23
- "extra": {
24
- "installer-types": ["library"]
25
- }
26
- ```
27
- Then, you can add mappings for packages of these types in the same way that you would add package types
28
- that are supported by [`composer/installers`](https://github.com/composer/installers#custom-install-paths):
29
- ```
30
- "extra": {
31
- "installer-types": ["library"],
32
- "installer-paths": {
33
- "special/package/": ["my/package"],
34
- "path/to/libraries/{$name}/": ["type:library"]
35
- }
36
- }
37
- ```
38
- By default, packages that do not specify a `type` will be considered type `library`. Adding support for this type
39
- allows any of these packages to be placed in a different install path.
40
-
41
- If a type has been added to `"installer-types"`, the plugin will attempt to find an explicit installer path in the mapping.
42
- If there is no match either by name or by type, the default installer path for all packages will be used instead.
43
-
44
- Please see the README for [`composer/installers`](https://github.com/composer/installers) to see the supported
45
- syntax for package and type matching as well as the supported replacement tokens in the path (e.g. `{$name}`).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/oomphinc/composer-installers-extender/composer.json DELETED
@@ -1,27 +0,0 @@
1
- {
2
- "name": "oomphinc/composer-installers-extender",
3
- "description": "Extend the composer/installers plugin to accept any arbitrary package type.",
4
- "homepage": "http://www.oomphinc.com/",
5
- "type": "composer-plugin",
6
- "license": "MIT",
7
- "authors": [
8
- {
9
- "name": "Stephen Beemsterboer",
10
- "email": "stephen@oomphinc.com",
11
- "homepage": "https://github.com/balbuf"
12
- }
13
- ],
14
- "support": {
15
- "issues": "https://github.com/oomphinc/composer-installers-extender/issues"
16
- },
17
- "autoload": {
18
- "psr-4": {"OomphInc\\ComposerInstallersExtender\\": "src/"}
19
- },
20
- "extra": {
21
- "class": "OomphInc\\ComposerInstallersExtender\\Plugin"
22
- },
23
- "require": {
24
- "composer-plugin-api": "^1.0",
25
- "composer/installers": "^1.0"
26
- }
27
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/oomphinc/composer-installers-extender/src/Installer.php DELETED
@@ -1,35 +0,0 @@
1
- <?php
2
-
3
- namespace OomphInc\ComposerInstallersExtender;
4
-
5
- use Composer\Installer\LibraryInstaller;
6
- use Composer\Installers\Installer as ComposerInstaller;
7
- use Composer\Package\PackageInterface;
8
-
9
- class Installer extends ComposerInstaller {
10
-
11
- protected $packageTypes;
12
-
13
- public function getInstallPath( PackageInterface $package ) {
14
- $installer = new InstallerHelper( $package, $this->composer, $this->io );
15
- $path = $installer->getInstallPath( $package, $package->getType() );
16
- // if the path is false, use the default installer path instead
17
- return $path !== false ? $path : LibraryInstaller::getInstallPath( $package );
18
- }
19
-
20
- public function supports( $packageType ) {
21
- // grab the package types once
22
- if ( !isset( $this->packageTypes ) ) {
23
- $this->packageTypes = false;
24
- if ( $this->composer->getPackage() ) {
25
- // get data from the 'extra' field
26
- $extra = $this->composer->getPackage()->getExtra();
27
- if ( !empty( $extra['installer-types'] ) ) {
28
- $this->packageTypes = (array) $extra['installer-types'];
29
- }
30
- }
31
- }
32
- return is_array( $this->packageTypes ) && in_array( $packageType, $this->packageTypes );
33
- }
34
-
35
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/oomphinc/composer-installers-extender/src/InstallerHelper.php DELETED
@@ -1,15 +0,0 @@
1
- <?php
2
-
3
- namespace OomphInc\ComposerInstallersExtender;
4
-
5
- use Composer\Installers\BaseInstaller;
6
-
7
- class InstallerHelper extends BaseInstaller {
8
-
9
- function getLocations() {
10
- // it will be looking for a key of FALSE, which evaluates to 0, i.e. the first element
11
- // that element value being false signals the installer to use the default path
12
- return array( false );
13
- }
14
-
15
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/oomphinc/composer-installers-extender/src/Plugin.php DELETED
@@ -1,16 +0,0 @@
1
- <?php
2
-
3
- namespace OomphInc\ComposerInstallersExtender;
4
-
5
- use Composer\Composer;
6
- use Composer\IO\IOInterface;
7
- use Composer\Plugin\PluginInterface;
8
-
9
- class Plugin implements PluginInterface {
10
-
11
- public function activate( Composer $composer, IOInterface $io ) {
12
- $installer = new Installer( $io, $composer );
13
- $composer->getInstallationManager()->addInstaller( $installer );
14
- }
15
-
16
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
woocommerce-paypal-payments.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: WooCommerce PayPal Payments
4
  * Plugin URI: https://woocommerce.com/products/woocommerce-paypal-payments/
5
  * Description: PayPal's latest complete payments processing solution. Accept PayPal, PayPal Credit, credit/debit cards, alternative digital wallets local payment types and bank accounts. Turn on only PayPal options or process a full suite of payment methods. Enable global transaction with extensive currency and country coverage.
6
- * Version: 1.0.4
7
  * Author: WooCommerce
8
  * Author URI: https://woocommerce.com/
9
  * License: GPL-2.0
3
  * Plugin Name: WooCommerce PayPal Payments
4
  * Plugin URI: https://woocommerce.com/products/woocommerce-paypal-payments/
5
  * Description: PayPal's latest complete payments processing solution. Accept PayPal, PayPal Credit, credit/debit cards, alternative digital wallets local payment types and bank accounts. Turn on only PayPal options or process a full suite of payment methods. Enable global transaction with extensive currency and country coverage.
6
+ * Version: 1.1.0
7
  * Author: WooCommerce
8
  * Author URI: https://woocommerce.com/
9
  * License: GPL-2.0