Changeset 2659372
- Timestamp:
- 01/18/2022 01:19:00 PM (4 years ago)
- Location:
- astrology
- Files:
-
- 2 added
- 2 deleted
- 140 edited
- 1 copied
-
tags/1.0.6 (copied) (copied from astrology/trunk)
-
tags/1.0.6/astrology.php (modified) (1 diff)
-
tags/1.0.6/dependencies/vendor/autoload.php (modified) (1 diff)
-
tags/1.0.6/dependencies/vendor/composer/autoload_classmap.php (modified) (1 diff)
-
tags/1.0.6/dependencies/vendor/composer/autoload_real.php (modified) (3 diffs)
-
tags/1.0.6/dependencies/vendor/composer/autoload_static.php (modified) (3 diffs)
-
tags/1.0.6/dependencies/vendor/kriswallsmith/buzz/lib/Client/AbstractClient.php (modified) (1 diff)
-
tags/1.0.6/dependencies/vendor/kriswallsmith/buzz/lib/Client/MultiCurl.php (modified) (1 diff)
-
tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/auspicious-period.php (modified) (1 diff)
-
tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/birth-details.php (modified) (1 diff)
-
tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/chart.php (modified) (1 diff)
-
tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/choghadiya.php (modified) (1 diff)
-
tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/inauspicious-period.php (modified) (1 diff)
-
tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/kaal-sarp-dosha.php (modified) (1 diff)
-
tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/kundli-matching.php (modified) (1 diff)
-
tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/kundli.php (modified) (1 diff)
-
tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/mangal-dosha.php (modified) (1 diff)
-
tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/nakshatra-porutham.php (modified) (1 diff)
-
tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/panchang.php (modified) (1 diff)
-
tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/papa-samyam-check.php (modified) (1 diff)
-
tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/papasamyam.php (modified) (1 diff)
-
tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/planet-position.php (modified) (1 diff)
-
tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/porutham.php (modified) (1 diff)
-
tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/sade-sati.php (modified) (1 diff)
-
tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/src/Api/Astrology/Result/Horoscope/BirthDetails.php (modified) (1 diff)
-
tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/src/Api/Astrology/Result/HoroscopeMatching/NakshatraPorutham.php (modified) (3 diffs)
-
tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/src/Api/Astrology/Result/HoroscopeMatching/Porutham.php (modified) (3 diffs)
-
tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/src/Api/Astrology/Result/HoroscopeMatching/Porutham/BasicMatch.php (added)
-
tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/src/Api/Astrology/Result/HoroscopeMatching/Porutham/Match.php (deleted)
-
tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/src/Api/Astrology/Result/HoroscopeMatching/ThirumanaPorutham.php (modified) (3 diffs)
-
tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/src/Api/Astrology/Result/Panchang/Panchang.php (modified) (1 diff)
-
tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/src/Api/Astrology/Traits/Service/TimeZoneAwareTrait.php (modified) (1 diff)
-
tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/src/Api/Astrology/Transformer.php (modified) (2 diffs)
-
tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/src/Common/Api/Client.php (modified) (1 diff)
-
tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/thirumana-porutham.php (modified) (1 diff)
-
tags/1.0.6/dependencies/vendor/symfony/cache-contracts/CacheTrait.php (modified) (1 diff)
-
tags/1.0.6/dependencies/vendor/symfony/cache-contracts/ItemInterface.php (modified) (1 diff)
-
tags/1.0.6/dependencies/vendor/symfony/cache/Adapter/AbstractAdapter.php (modified) (1 diff)
-
tags/1.0.6/dependencies/vendor/symfony/cache/Adapter/AbstractTagAwareAdapter.php (modified) (1 diff)
-
tags/1.0.6/dependencies/vendor/symfony/cache/Adapter/ArrayAdapter.php (modified) (1 diff)
-
tags/1.0.6/dependencies/vendor/symfony/cache/Adapter/ProxyAdapter.php (modified) (1 diff)
-
tags/1.0.6/dependencies/vendor/symfony/cache/Adapter/TagAwareAdapter.php (modified) (2 diffs)
-
tags/1.0.6/dependencies/vendor/symfony/cache/LockRegistry.php (modified) (1 diff)
-
tags/1.0.6/dependencies/vendor/symfony/cache/Traits/AbstractAdapterTrait.php (modified) (2 diffs)
-
tags/1.0.6/dependencies/vendor/symfony/cache/Traits/AbstractTrait.php (modified) (1 diff)
-
tags/1.0.6/dependencies/vendor/symfony/cache/Traits/ApcuTrait.php (modified) (1 diff)
-
tags/1.0.6/dependencies/vendor/symfony/cache/Traits/ContractsTrait.php (modified) (3 diffs)
-
tags/1.0.6/dependencies/vendor/symfony/cache/Traits/MemcachedTrait.php (modified) (2 diffs)
-
tags/1.0.6/dependencies/vendor/symfony/cache/Traits/PdoTrait.php (modified) (2 diffs)
-
tags/1.0.6/dependencies/vendor/symfony/cache/Traits/RedisTrait.php (modified) (1 diff)
-
tags/1.0.6/dependencies/vendor/symfony/polyfill-php73/Resources/stubs/JsonException.php (modified) (1 diff)
-
tags/1.0.6/dependencies/vendor/symfony/polyfill-php80/Resources/stubs/UnhandledMatchError.php (modified) (1 diff)
-
tags/1.0.6/dependencies/vendor/symfony/polyfill-php80/Resources/stubs/ValueError.php (modified) (1 diff)
-
tags/1.0.6/dependencies/vendor/symfony/service-contracts/ServiceLocatorTrait.php (modified) (1 diff)
-
tags/1.0.6/dependencies/vendor/symfony/service-contracts/ServiceSubscriberInterface.php (modified) (1 diff)
-
tags/1.0.6/dependencies/vendor/symfony/service-contracts/ServiceSubscriberTrait.php (modified) (3 diffs)
-
tags/1.0.6/dependencies/vendor/symfony/service-contracts/Test/ServiceLocatorTest.php (modified) (3 diffs)
-
tags/1.0.6/dependencies/vendor/symfony/var-exporter/Internal/Exporter.php (modified) (7 diffs)
-
tags/1.0.6/dependencies/vendor/symfony/var-exporter/Internal/Registry.php (modified) (1 diff)
-
tags/1.0.6/readme.txt (modified) (2 diffs)
-
tags/1.0.6/src/Admin/SettingsPage.php (modified) (2 diffs)
-
tags/1.0.6/src/Front/Report/AuspiciousPeriodController.php (modified) (1 diff)
-
tags/1.0.6/src/Front/Report/ChoghadiyaController.php (modified) (1 diff)
-
tags/1.0.6/src/Front/Report/InauspiciousPeriodController.php (modified) (1 diff)
-
tags/1.0.6/src/Front/Report/KundliMatchingController.php (modified) (2 diffs)
-
tags/1.0.6/src/Front/Report/NakshatraPoruthamController.php (modified) (3 diffs)
-
tags/1.0.6/src/Front/Report/PanchangController.php (modified) (1 diff)
-
tags/1.0.6/src/Front/Report/PoruthamController.php (modified) (4 diffs)
-
tags/1.0.6/src/Front/Report/SadeSatiController.php (modified) (1 diff)
-
tags/1.0.6/src/Front/Report/ThirumanaPoruthamController.php (modified) (3 diffs)
-
tags/1.0.6/src/vendor/autoload.php (modified) (1 diff)
-
tags/1.0.6/src/vendor/composer/autoload_real.php (modified) (3 diffs)
-
tags/1.0.6/src/vendor/composer/autoload_static.php (modified) (2 diffs)
-
trunk/astrology.php (modified) (1 diff)
-
trunk/dependencies/vendor/autoload.php (modified) (1 diff)
-
trunk/dependencies/vendor/composer/autoload_classmap.php (modified) (1 diff)
-
trunk/dependencies/vendor/composer/autoload_real.php (modified) (3 diffs)
-
trunk/dependencies/vendor/composer/autoload_static.php (modified) (3 diffs)
-
trunk/dependencies/vendor/kriswallsmith/buzz/lib/Client/AbstractClient.php (modified) (1 diff)
-
trunk/dependencies/vendor/kriswallsmith/buzz/lib/Client/MultiCurl.php (modified) (1 diff)
-
trunk/dependencies/vendor/prokerala/astrology-sdk/auspicious-period.php (modified) (1 diff)
-
trunk/dependencies/vendor/prokerala/astrology-sdk/birth-details.php (modified) (1 diff)
-
trunk/dependencies/vendor/prokerala/astrology-sdk/chart.php (modified) (1 diff)
-
trunk/dependencies/vendor/prokerala/astrology-sdk/choghadiya.php (modified) (1 diff)
-
trunk/dependencies/vendor/prokerala/astrology-sdk/inauspicious-period.php (modified) (1 diff)
-
trunk/dependencies/vendor/prokerala/astrology-sdk/kaal-sarp-dosha.php (modified) (1 diff)
-
trunk/dependencies/vendor/prokerala/astrology-sdk/kundli-matching.php (modified) (1 diff)
-
trunk/dependencies/vendor/prokerala/astrology-sdk/kundli.php (modified) (1 diff)
-
trunk/dependencies/vendor/prokerala/astrology-sdk/mangal-dosha.php (modified) (1 diff)
-
trunk/dependencies/vendor/prokerala/astrology-sdk/nakshatra-porutham.php (modified) (1 diff)
-
trunk/dependencies/vendor/prokerala/astrology-sdk/panchang.php (modified) (1 diff)
-
trunk/dependencies/vendor/prokerala/astrology-sdk/papa-samyam-check.php (modified) (1 diff)
-
trunk/dependencies/vendor/prokerala/astrology-sdk/papasamyam.php (modified) (1 diff)
-
trunk/dependencies/vendor/prokerala/astrology-sdk/planet-position.php (modified) (1 diff)
-
trunk/dependencies/vendor/prokerala/astrology-sdk/porutham.php (modified) (1 diff)
-
trunk/dependencies/vendor/prokerala/astrology-sdk/sade-sati.php (modified) (1 diff)
-
trunk/dependencies/vendor/prokerala/astrology-sdk/src/Api/Astrology/Result/Horoscope/BirthDetails.php (modified) (1 diff)
-
trunk/dependencies/vendor/prokerala/astrology-sdk/src/Api/Astrology/Result/HoroscopeMatching/NakshatraPorutham.php (modified) (3 diffs)
-
trunk/dependencies/vendor/prokerala/astrology-sdk/src/Api/Astrology/Result/HoroscopeMatching/Porutham.php (modified) (3 diffs)
-
trunk/dependencies/vendor/prokerala/astrology-sdk/src/Api/Astrology/Result/HoroscopeMatching/Porutham/BasicMatch.php (added)
-
trunk/dependencies/vendor/prokerala/astrology-sdk/src/Api/Astrology/Result/HoroscopeMatching/Porutham/Match.php (deleted)
-
trunk/dependencies/vendor/prokerala/astrology-sdk/src/Api/Astrology/Result/HoroscopeMatching/ThirumanaPorutham.php (modified) (3 diffs)
-
trunk/dependencies/vendor/prokerala/astrology-sdk/src/Api/Astrology/Result/Panchang/Panchang.php (modified) (1 diff)
-
trunk/dependencies/vendor/prokerala/astrology-sdk/src/Api/Astrology/Traits/Service/TimeZoneAwareTrait.php (modified) (1 diff)
-
trunk/dependencies/vendor/prokerala/astrology-sdk/src/Api/Astrology/Transformer.php (modified) (2 diffs)
-
trunk/dependencies/vendor/prokerala/astrology-sdk/src/Common/Api/Client.php (modified) (1 diff)
-
trunk/dependencies/vendor/prokerala/astrology-sdk/thirumana-porutham.php (modified) (1 diff)
-
trunk/dependencies/vendor/symfony/cache-contracts/CacheTrait.php (modified) (1 diff)
-
trunk/dependencies/vendor/symfony/cache-contracts/ItemInterface.php (modified) (1 diff)
-
trunk/dependencies/vendor/symfony/cache/Adapter/AbstractAdapter.php (modified) (1 diff)
-
trunk/dependencies/vendor/symfony/cache/Adapter/AbstractTagAwareAdapter.php (modified) (1 diff)
-
trunk/dependencies/vendor/symfony/cache/Adapter/ArrayAdapter.php (modified) (1 diff)
-
trunk/dependencies/vendor/symfony/cache/Adapter/ProxyAdapter.php (modified) (1 diff)
-
trunk/dependencies/vendor/symfony/cache/Adapter/TagAwareAdapter.php (modified) (2 diffs)
-
trunk/dependencies/vendor/symfony/cache/LockRegistry.php (modified) (1 diff)
-
trunk/dependencies/vendor/symfony/cache/Traits/AbstractAdapterTrait.php (modified) (2 diffs)
-
trunk/dependencies/vendor/symfony/cache/Traits/AbstractTrait.php (modified) (1 diff)
-
trunk/dependencies/vendor/symfony/cache/Traits/ApcuTrait.php (modified) (1 diff)
-
trunk/dependencies/vendor/symfony/cache/Traits/ContractsTrait.php (modified) (3 diffs)
-
trunk/dependencies/vendor/symfony/cache/Traits/MemcachedTrait.php (modified) (2 diffs)
-
trunk/dependencies/vendor/symfony/cache/Traits/PdoTrait.php (modified) (2 diffs)
-
trunk/dependencies/vendor/symfony/cache/Traits/RedisTrait.php (modified) (1 diff)
-
trunk/dependencies/vendor/symfony/polyfill-php73/Resources/stubs/JsonException.php (modified) (1 diff)
-
trunk/dependencies/vendor/symfony/polyfill-php80/Resources/stubs/UnhandledMatchError.php (modified) (1 diff)
-
trunk/dependencies/vendor/symfony/polyfill-php80/Resources/stubs/ValueError.php (modified) (1 diff)
-
trunk/dependencies/vendor/symfony/service-contracts/ServiceLocatorTrait.php (modified) (1 diff)
-
trunk/dependencies/vendor/symfony/service-contracts/ServiceSubscriberInterface.php (modified) (1 diff)
-
trunk/dependencies/vendor/symfony/service-contracts/ServiceSubscriberTrait.php (modified) (3 diffs)
-
trunk/dependencies/vendor/symfony/service-contracts/Test/ServiceLocatorTest.php (modified) (3 diffs)
-
trunk/dependencies/vendor/symfony/var-exporter/Internal/Exporter.php (modified) (7 diffs)
-
trunk/dependencies/vendor/symfony/var-exporter/Internal/Registry.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/src/Admin/SettingsPage.php (modified) (2 diffs)
-
trunk/src/Front/Report/AuspiciousPeriodController.php (modified) (1 diff)
-
trunk/src/Front/Report/ChoghadiyaController.php (modified) (1 diff)
-
trunk/src/Front/Report/InauspiciousPeriodController.php (modified) (1 diff)
-
trunk/src/Front/Report/KundliMatchingController.php (modified) (2 diffs)
-
trunk/src/Front/Report/NakshatraPoruthamController.php (modified) (3 diffs)
-
trunk/src/Front/Report/PanchangController.php (modified) (1 diff)
-
trunk/src/Front/Report/PoruthamController.php (modified) (4 diffs)
-
trunk/src/Front/Report/SadeSatiController.php (modified) (1 diff)
-
trunk/src/Front/Report/ThirumanaPoruthamController.php (modified) (3 diffs)
-
trunk/src/vendor/autoload.php (modified) (1 diff)
-
trunk/src/vendor/composer/autoload_real.php (modified) (3 diffs)
-
trunk/src/vendor/composer/autoload_static.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
astrology/tags/1.0.6/astrology.php
r2612561 r2659372 12 12 * Plugin URI: https://api.prokerala.com 13 13 * Description: Integrate astrology calculators powered by Prokerala's Astrology API 14 * Version: 1.0. 514 * Version: 1.0.6 15 15 * Author: Prokerala 16 16 * Author URI: https://www.prokerala.com -
astrology/tags/1.0.6/dependencies/vendor/autoload.php
r2612561 r2659372 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit 64b03242fe32186abafab7033e7ee983::getLoader();7 return ComposerAutoloaderInitd01d759ab9e60f8b7ca4bcb4fc4e62a3::getLoader(); -
astrology/tags/1.0.6/dependencies/vendor/composer/autoload_classmap.php
r2612549 r2659372 42 42 'Prokerala\\Api\\Astrology\\Result\\HoroscopeMatching\\Porutham' => $vendorDir . '/prokerala/astrology-sdk/src/Api/Astrology/Result/HoroscopeMatching/Porutham.php', 43 43 'Prokerala\\Api\\Astrology\\Result\\HoroscopeMatching\\Porutham\\AdvancedMatch' => $vendorDir . '/prokerala/astrology-sdk/src/Api/Astrology/Result/HoroscopeMatching/Porutham/AdvancedMatch.php', 44 'Prokerala\\Api\\Astrology\\Result\\HoroscopeMatching\\Porutham\\ Match' => $vendorDir . '/prokerala/astrology-sdk/src/Api/Astrology/Result/HoroscopeMatching/Porutham/Match.php',44 'Prokerala\\Api\\Astrology\\Result\\HoroscopeMatching\\Porutham\\BasicMatch' => $vendorDir . '/prokerala/astrology-sdk/src/Api/Astrology/Result/HoroscopeMatching/Porutham/BasicMatch.php', 45 45 'Prokerala\\Api\\Astrology\\Result\\HoroscopeMatching\\Porutham\\Profile' => $vendorDir . '/prokerala/astrology-sdk/src/Api/Astrology/Result/HoroscopeMatching/Porutham/Profile.php', 46 46 'Prokerala\\Api\\Astrology\\Result\\HoroscopeMatching\\ProfileInfo' => $vendorDir . '/prokerala/astrology-sdk/src/Api/Astrology/Result/HoroscopeMatching/ProfileInfo.php', -
astrology/tags/1.0.6/dependencies/vendor/composer/autoload_real.php
r2612561 r2659372 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 64b03242fe32186abafab7033e7ee9835 class ComposerAutoloaderInitd01d759ab9e60f8b7ca4bcb4fc4e62a3 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit 64b03242fe32186abafab7033e7ee983', 'loadClassLoader'), true, true);25 spl_autoload_register(array('ComposerAutoloaderInitd01d759ab9e60f8b7ca4bcb4fc4e62a3', 'loadClassLoader'), true, true); 26 26 self::$loader = $loader = new \Prokerala_WP_Astrology_Composer\Autoload\ClassLoader(); 27 spl_autoload_unregister(array('ComposerAutoloaderInit 64b03242fe32186abafab7033e7ee983', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInitd01d759ab9e60f8b7ca4bcb4fc4e62a3', 'loadClassLoader')); 28 28 29 29 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); … … 31 31 require_once __DIR__ . '/autoload_static.php'; 32 32 33 call_user_func(\Prokerala_WP_Astrology_Composer\Autoload\ComposerStaticInit 64b03242fe32186abafab7033e7ee983::getInitializer($loader));33 call_user_func(\Prokerala_WP_Astrology_Composer\Autoload\ComposerStaticInitd01d759ab9e60f8b7ca4bcb4fc4e62a3::getInitializer($loader)); 34 34 } else { 35 35 $classMap = require __DIR__ . '/autoload_classmap.php'; -
astrology/tags/1.0.6/dependencies/vendor/composer/autoload_static.php
r2612561 r2659372 5 5 namespace Prokerala_WP_Astrology_Composer\Autoload; 6 6 7 class ComposerStaticInit 64b03242fe32186abafab7033e7ee9837 class ComposerStaticInitd01d759ab9e60f8b7ca4bcb4fc4e62a3 8 8 { 9 9 public static $classMap = array ( … … 43 43 'Prokerala\\Api\\Astrology\\Result\\HoroscopeMatching\\Porutham' => __DIR__ . '/..' . '/prokerala/astrology-sdk/src/Api/Astrology/Result/HoroscopeMatching/Porutham.php', 44 44 'Prokerala\\Api\\Astrology\\Result\\HoroscopeMatching\\Porutham\\AdvancedMatch' => __DIR__ . '/..' . '/prokerala/astrology-sdk/src/Api/Astrology/Result/HoroscopeMatching/Porutham/AdvancedMatch.php', 45 'Prokerala\\Api\\Astrology\\Result\\HoroscopeMatching\\Porutham\\ Match' => __DIR__ . '/..' . '/prokerala/astrology-sdk/src/Api/Astrology/Result/HoroscopeMatching/Porutham/Match.php',45 'Prokerala\\Api\\Astrology\\Result\\HoroscopeMatching\\Porutham\\BasicMatch' => __DIR__ . '/..' . '/prokerala/astrology-sdk/src/Api/Astrology/Result/HoroscopeMatching/Porutham/BasicMatch.php', 46 46 'Prokerala\\Api\\Astrology\\Result\\HoroscopeMatching\\Porutham\\Profile' => __DIR__ . '/..' . '/prokerala/astrology-sdk/src/Api/Astrology/Result/HoroscopeMatching/Porutham/Profile.php', 47 47 'Prokerala\\Api\\Astrology\\Result\\HoroscopeMatching\\ProfileInfo' => __DIR__ . '/..' . '/prokerala/astrology-sdk/src/Api/Astrology/Result/HoroscopeMatching/ProfileInfo.php', … … 345 345 { 346 346 return \Closure::bind(function () use ($loader) { 347 $loader->classMap = ComposerStaticInit 64b03242fe32186abafab7033e7ee983::$classMap;347 $loader->classMap = ComposerStaticInitd01d759ab9e60f8b7ca4bcb4fc4e62a3::$classMap; 348 348 349 349 }, null, ClassLoader::class); -
astrology/tags/1.0.6/dependencies/vendor/kriswallsmith/buzz/lib/Client/AbstractClient.php
r2513947 r2659372 12 12 { 13 13 /** 14 * @var OptionsResolver 14 * @var OptionsResolver|null 15 15 */ 16 16 private $optionsResolver; -
astrology/tags/1.0.6/dependencies/vendor/kriswallsmith/buzz/lib/Client/MultiCurl.php
r2513947 r2659372 48 48 { 49 49 parent::__construct($responseFactory, $options); 50 if (\PHP_VERSION_ID < 70215 || \PHP_VERSION_ID === 70300 || \PHP_VERSION_ID === 70301 || !(\CURL_VERSION_HTTP2 & \curl_version()['features'])) {50 if (\PHP_VERSION_ID < 70215 || \PHP_VERSION_ID === 70300 || \PHP_VERSION_ID === 70301 || \PHP_VERSION_ID >= 80000 || !(\CURL_VERSION_HTTP2 & \curl_version()['features'])) { 51 51 // Dont use HTTP/2 push when it's unsupported or buggy, see https://bugs.php.net/76675 52 52 $this->serverPushSupported = \false; -
astrology/tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/auspicious-period.php
r2513947 r2659372 16 16 use Prokerala\Common\Api\Exception\RateLimitExceededException; 17 17 include 'prepend.inc.php'; 18 /** @var \Prokerala\Common\Api\Client $client */ 18 19 /** 19 20 * AuspiciousPeriod. -
astrology/tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/birth-details.php
r2513947 r2659372 15 15 use Prokerala\Common\Api\Exception\RateLimitExceededException; 16 16 include 'prepend.inc.php'; 17 /** @var \Prokerala\Common\Api\Client $client */ 17 18 /** 18 19 * Kaal Sarp Dosha. -
astrology/tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/chart.php
r2513947 r2659372 15 15 use Prokerala\Common\Api\Exception\RateLimitExceededException; 16 16 include 'prepend.inc.php'; 17 /** @var \Prokerala\Common\Api\Client $client */ 17 18 /** 18 19 * InauspiciousPeriod. -
astrology/tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/choghadiya.php
r2513947 r2659372 16 16 use Prokerala\Common\Api\Exception\RateLimitExceededException; 17 17 include 'prepend.inc.php'; 18 /** @var \Prokerala\Common\Api\Client $client */ 18 19 /** 19 20 * Choghadiya. -
astrology/tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/inauspicious-period.php
r2513947 r2659372 16 16 use Prokerala\Common\Api\Exception\RateLimitExceededException; 17 17 include 'prepend.inc.php'; 18 /** @var \Prokerala\Common\Api\Client $client */ 18 19 /** 19 20 * InauspiciousPeriod. -
astrology/tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/kaal-sarp-dosha.php
r2513947 r2659372 15 15 use Prokerala\Common\Api\Exception\RateLimitExceededException; 16 16 include 'prepend.inc.php'; 17 /** @var \Prokerala\Common\Api\Client $client */ 17 18 /** 18 19 * Kaal Sarp Dosha. -
astrology/tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/kundli-matching.php
r2513947 r2659372 17 17 use Prokerala\Common\Api\Exception\RateLimitExceededException; 18 18 include 'prepend.inc.php'; 19 /** @var \Prokerala\Common\Api\Client $client */ 19 20 /** 20 21 * Nakshatra Porutham. -
astrology/tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/kundli.php
r2513947 r2659372 16 16 use Prokerala\Common\Api\Exception\RateLimitExceededException; 17 17 include 'prepend.inc.php'; 18 /** @var \Prokerala\Common\Api\Client $client */ 18 19 /** 19 20 * Kaal Sarp Dosha. -
astrology/tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/mangal-dosha.php
r2513947 r2659372 15 15 use Prokerala\Common\Api\Exception\RateLimitExceededException; 16 16 include 'prepend.inc.php'; 17 /** @var \Prokerala\Common\Api\Client $client */ 17 18 /** 18 19 * Mangal Dosha. -
astrology/tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/nakshatra-porutham.php
r2513947 r2659372 16 16 use Prokerala\Common\Api\Exception\RateLimitExceededException; 17 17 include 'prepend.inc.php'; 18 /** @var \Prokerala\Common\Api\Client $client */ 18 19 /** 19 20 * Nakshatra Porutham. -
astrology/tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/panchang.php
r2513947 r2659372 16 16 use Prokerala\Common\Api\Exception\RateLimitExceededException; 17 17 include 'prepend.inc.php'; 18 /** @var \Prokerala\Common\Api\Client $client */ 18 19 /** 19 20 * Panchang. -
astrology/tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/papa-samyam-check.php
r2513947 r2659372 17 17 use Prokerala\Common\Api\Exception\RateLimitExceededException; 18 18 include 'prepend.inc.php'; 19 /** @var \Prokerala\Common\Api\Client $client */ 19 20 /** 20 21 * Nakshatra Porutham. -
astrology/tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/papasamyam.php
r2513947 r2659372 15 15 use Prokerala\Common\Api\Exception\RateLimitExceededException; 16 16 include 'prepend.inc.php'; 17 /** @var \Prokerala\Common\Api\Client $client */ 17 18 /** 18 19 * Kaal Sarp Dosha. -
astrology/tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/planet-position.php
r2513947 r2659372 15 15 use Prokerala\Common\Api\Exception\RateLimitExceededException; 16 16 include 'prepend.inc.php'; 17 /** @var \Prokerala\Common\Api\Client $client */ 17 18 /** 18 19 * Kaal Sarp Dosha. -
astrology/tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/porutham.php
r2513947 r2659372 17 17 use Prokerala\Common\Api\Exception\RateLimitExceededException; 18 18 include 'prepend.inc.php'; 19 /** @var \Prokerala\Common\Api\Client $client */ 19 20 /** 20 21 * Porutham. -
astrology/tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/sade-sati.php
r2513947 r2659372 16 16 use Prokerala\Common\Api\Exception\RateLimitExceededException; 17 17 include 'prepend.inc.php'; 18 /** @var \Prokerala\Common\Api\Client $client */ 18 19 /** 19 20 * Sade Sati. -
astrology/tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/src/Api/Astrology/Result/Horoscope/BirthDetails.php
r2513947 r2659372 37 37 private $zodiac; 38 38 /** 39 * @var Nakshatra\NakshatraInfo39 * @var \Prokerala\Api\Astrology\Result\Horoscope\Nakshatra\NakshatraInfo 40 40 */ 41 41 private $additionalInfo; 42 /**43 * BirthDetails constructor.44 *45 * @param Nakshatra\NakshatraInfo $additionalInfo46 */47 42 public function __construct(\Prokerala\Api\Astrology\Result\Element\Nakshatra $nakshatra, \Prokerala\Api\Astrology\Result\Element\Rasi $chandraRasi, \Prokerala\Api\Astrology\Result\Element\Rasi $sooryaRasi, \Prokerala\Api\Astrology\Result\Element\Zodiac $zodiac, \Prokerala\Api\Astrology\Result\Horoscope\Nakshatra\NakshatraInfo $additionalInfo) 48 43 { -
astrology/tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/src/Api/Astrology/Result/HoroscopeMatching/NakshatraPorutham.php
r2513947 r2659372 29 29 private $message; 30 30 /** 31 * @var Porutham\ Match[]31 * @var Porutham\BasicMatch[] 32 32 */ 33 33 private $matches; … … 35 35 * @param float $maximumPoints 36 36 * @param float $obtainedPoints 37 * @param Porutham\ Match[] $matches37 * @param Porutham\BasicMatch[] $matches 38 38 */ 39 39 public function __construct($maximumPoints, $obtainedPoints, \Prokerala\Api\Astrology\Result\HoroscopeMatching\Message $message, array $matches) … … 66 66 } 67 67 /** 68 * @return Porutham\ Match[]68 * @return Porutham\BasicMatch[] 69 69 */ 70 70 public function getMatches() -
astrology/tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/src/Api/Astrology/Result/HoroscopeMatching/Porutham.php
r2513947 r2659372 38 38 private $message; 39 39 /** 40 * @var Porutham\ Match[]40 * @var Porutham\BasicMatch[] 41 41 */ 42 42 private $matches; … … 46 46 * @param float $maximumPoints 47 47 * @param float $totalPoints 48 * @param Porutham\ Match[] $matches48 * @param Porutham\BasicMatch[] $matches 49 49 */ 50 50 public function __construct(\Prokerala\Api\Astrology\Result\HoroscopeMatching\Porutham\Profile $girlInfo, \Prokerala\Api\Astrology\Result\HoroscopeMatching\Porutham\Profile $boyInfo, $maximumPoints, $totalPoints, \Prokerala\Api\Astrology\Result\HoroscopeMatching\Message $message, array $matches) … … 93 93 } 94 94 /** 95 * @return Porutham\ Match[]95 * @return Porutham\BasicMatch[] 96 96 */ 97 97 public function getMatches() -
astrology/tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/src/Api/Astrology/Result/HoroscopeMatching/ThirumanaPorutham.php
r2513947 r2659372 25 25 private $obtainedPoints; 26 26 /** 27 * @var Porutham\ Match[]27 * @var Porutham\BasicMatch[] 28 28 */ 29 29 private $matches; … … 37 37 * @param float $maximumPoints 38 38 * @param float $obtainedPoints 39 * @param Porutham\ Match[] $matches39 * @param Porutham\BasicMatch[] $matches 40 40 */ 41 41 public function __construct($maximumPoints, $obtainedPoints, \Prokerala\Api\Astrology\Result\HoroscopeMatching\Message $message, array $matches) … … 68 68 } 69 69 /** 70 * @return Porutham\ Match[]70 * @return Porutham\BasicMatch[] 71 71 */ 72 72 public function getMatches() -
astrology/tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/src/Api/Astrology/Result/Panchang/Panchang.php
r2513947 r2659372 72 72 } 73 73 /** 74 * @return mixed74 * @return string 75 75 */ 76 76 public function getVaara() -
astrology/tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/src/Api/Astrology/Traits/Service/TimeZoneAwareTrait.php
r2513947 r2659372 41 41 { 42 42 $transformer->setParamConverter('string', \DateTimeInterface::class, function ($data) { 43 return new \DateTimeImmutable($data,$this->getTimeZone());43 return (new \DateTimeImmutable($data))->setTimezone($this->getTimeZone()); 44 44 }); 45 45 } -
astrology/tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/src/Api/Astrology/Transformer.php
r2612549 r2659372 69 69 } 70 70 /** 71 * @param string $class 71 * @param string $className 72 72 * @param \stdClass $data 73 73 * … … 127 127 } 128 128 /** 129 * @param ReflectionMethod $docComment130 129 * @param string $namespace 131 130 * -
astrology/tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/src/Common/Api/Client.php
r2513947 r2659372 44 44 * @param array $input request parameters 45 45 * 46 * @return array46 * @return \stdClass 47 47 */ 48 48 public function process($path, $input) -
astrology/tags/1.0.6/dependencies/vendor/prokerala/astrology-sdk/thirumana-porutham.php
r2513947 r2659372 16 16 use Prokerala\Common\Api\Exception\RateLimitExceededException; 17 17 include 'prepend.inc.php'; 18 /** @var \Prokerala\Common\Api\Client $client */ 18 19 /** 19 20 * Thirumana Porutham. -
astrology/tags/1.0.6/dependencies/vendor/symfony/cache-contracts/CacheTrait.php
r2513947 r2659372 25 25 /** 26 26 * {@inheritdoc} 27 * 28 * @return mixed 27 29 */ 28 30 public function get(string $key, callable $callback, float $beta = null, array &$metadata = null) -
astrology/tags/1.0.6/dependencies/vendor/symfony/cache-contracts/ItemInterface.php
r2513947 r2659372 24 24 * References the Unix timestamp stating when the item will expire. 25 25 */ 26 const METADATA_EXPIRY = 'expiry';26 public const METADATA_EXPIRY = 'expiry'; 27 27 /** 28 28 * References the time the item took to be created, in milliseconds. 29 29 */ 30 const METADATA_CTIME = 'ctime';30 public const METADATA_CTIME = 'ctime'; 31 31 /** 32 32 * References the list of tags that were assigned to the item, as string[]. 33 33 */ 34 const METADATA_TAGS = 'tags';34 public const METADATA_TAGS = 'tags'; 35 35 /** 36 36 * Reserved characters that cannot be used in a key or tag. 37 37 */ 38 const RESERVED_CHARACTERS = '{}()/\\@:';38 public const RESERVED_CHARACTERS = '{}()/\\@:'; 39 39 /** 40 40 * Adds a tag to a cache item. -
astrology/tags/1.0.6/dependencies/vendor/symfony/cache/Adapter/AbstractAdapter.php
r2612549 r2659372 63 63 if (null === $item->expiry) { 64 64 $ttl = 0 < $defaultLifetime ? $defaultLifetime : 0; 65 } elseif ( 0 ===$item->expiry) {65 } elseif (!$item->expiry) { 66 66 $ttl = 0; 67 67 } elseif (0 >= ($ttl = (int) (0.1 + $item->expiry - $now))) { -
astrology/tags/1.0.6/dependencies/vendor/symfony/cache/Adapter/AbstractTagAwareAdapter.php
r2612549 r2659372 70 70 if (null === $item->expiry) { 71 71 $ttl = 0 < $defaultLifetime ? $defaultLifetime : 0; 72 } elseif ( 0 ===$item->expiry) {72 } elseif (!$item->expiry) { 73 73 $ttl = 0; 74 74 } elseif (0 >= ($ttl = (int) (0.1 + $item->expiry - $now))) { -
astrology/tags/1.0.6/dependencies/vendor/symfony/cache/Adapter/ArrayAdapter.php
r2612549 r2659372 105 105 $value = $item["\x00*\x00value"]; 106 106 $expiry = $item["\x00*\x00expiry"]; 107 if (0 === $expiry) { 108 $expiry = \PHP_INT_MAX; 109 } 110 if (null !== $expiry && $expiry <= \microtime(\true)) { 111 $this->deleteItem($key); 112 return \true; 107 if (null !== $expiry) { 108 if (!$expiry) { 109 $expiry = \PHP_INT_MAX; 110 } elseif ($expiry <= \microtime(\true)) { 111 $this->deleteItem($key); 112 return \true; 113 } 113 114 } 114 115 if ($this->storeSerialized && null === ($value = $this->freeze($value, $key))) { -
astrology/tags/1.0.6/dependencies/vendor/symfony/cache/Adapter/ProxyAdapter.php
r2612549 r2659372 77 77 } 78 78 $innerItem->set($item["\x00*\x00value"]); 79 $innerItem->expiresAt(null !== $item["\x00*\x00expiry"] ? \DateTime::createFromFormat('U.u', \sprintf('%.6F', 0 === $item["\x00*\x00expiry"] ? \PHP_INT_MAX :$item["\x00*\x00expiry"])) : null);79 $innerItem->expiresAt(null !== $item["\x00*\x00expiry"] ? \DateTime::createFromFormat('U.u', \sprintf('%.6F', $item["\x00*\x00expiry"])) : null); 80 80 }, 81 81 null, -
astrology/tags/1.0.6/dependencies/vendor/symfony/cache/Adapter/TagAwareAdapter.php
r2612549 r2659372 126 126 public function hasItem($key) 127 127 { 128 if ( $this->deferred) {128 if (\is_string($key) && isset($this->deferred[$key])) { 129 129 $this->commit(); 130 130 } … … 161 161 public function getItems(array $keys = []) 162 162 { 163 if ($this->deferred) {164 $this->commit();165 }166 163 $tagKeys = []; 164 $commit = \false; 167 165 foreach ($keys as $key) { 168 166 if ('' !== $key && \is_string($key)) { 167 $commit = $commit || isset($this->deferred[$key]); 169 168 $key = static::TAGS_PREFIX . $key; 170 169 $tagKeys[$key] = $key; 171 170 } 171 } 172 if ($commit) { 173 $this->commit(); 172 174 } 173 175 try { -
astrology/tags/1.0.6/dependencies/vendor/symfony/cache/LockRegistry.php
r2612549 r2659372 56 56 } 57 57 $key = self::$files ? \abs(\crc32($item->getKey())) % \count(self::$files) : -1; 58 if ($key < 0 || (self::$lockedFiles[$key] ?? \false)|| !($lock = self::open($key))) {58 if ($key < 0 || self::$lockedFiles || !($lock = self::open($key))) { 59 59 return $callback($item, $save); 60 60 } -
astrology/tags/1.0.6/dependencies/vendor/symfony/cache/Traits/AbstractAdapterTrait.php
r2612549 r2659372 35 35 public function getItem($key) 36 36 { 37 if ($this->deferred) { 37 $id = $this->getId($key); 38 if (isset($this->deferred[$key])) { 38 39 $this->commit(); 39 40 } 40 $id = $this->getId($key);41 41 $f = $this->createCacheItem; 42 42 $isHit = \false; … … 57 57 public function getItems(array $keys = []) 58 58 { 59 if ($this->deferred) {60 $this->commit();61 }62 59 $ids = []; 60 $commit = \false; 63 61 foreach ($keys as $key) { 64 62 $ids[] = $this->getId($key); 63 $commit = $commit || isset($this->deferred[$key]); 64 } 65 if ($commit) { 66 $this->commit(); 65 67 } 66 68 try { -
astrology/tags/1.0.6/dependencies/vendor/symfony/cache/Traits/AbstractTrait.php
r2513947 r2659372 251 251 \Prokerala\Astrology\Vendor\Symfony\Component\Cache\CacheItem::validateKey($key); 252 252 $this->ids[$key] = $key; 253 if (\count($this->ids) > 1000) { 254 \array_splice($this->ids, 0, 500); 255 // stop memory leak if there are many keys 256 } 253 257 if (null === $this->maxIdLength) { 254 258 return $this->namespace . $this->namespaceVersion . $key; -
astrology/tags/1.0.6/dependencies/vendor/symfony/cache/Traits/ApcuTrait.php
r2612549 r2659372 49 49 try { 50 50 $values = []; 51 foreach (\apcu_fetch($ids, $ok) ?: [] as $k => $v) { 51 $ids = \array_flip($ids); 52 foreach (\apcu_fetch(\array_keys($ids), $ok) ?: [] as $k => $v) { 53 if (!isset($ids[$k])) { 54 // work around https://github.com/krakjoe/apcu/issues/247 55 $k = \key($ids); 56 } 57 unset($ids[$k]); 52 58 if (null !== $v || $ok) { 53 59 $values[$k] = $v; -
astrology/tags/1.0.6/dependencies/vendor/symfony/cache/Traits/ContractsTrait.php
r2513947 r2659372 29 29 doGet as private contractsGet; 30 30 } 31 private $callbackWrapper = [\Prokerala\Astrology\Vendor\Symfony\Component\Cache\LockRegistry::class, 'compute'];31 private $callbackWrapper; 32 32 private $computing = []; 33 33 /** … … 38 38 public function setCallbackWrapper(?callable $callbackWrapper) : callable 39 39 { 40 if (!isset($this->callbackWrapper)) { 41 $this->callbackWrapper = \Closure::fromCallable([\Prokerala\Astrology\Vendor\Symfony\Component\Cache\LockRegistry::class, 'compute']); 42 if (\in_array(\PHP_SAPI, ['cli', 'phpdbg'], \true)) { 43 $this->setCallbackWrapper(null); 44 } 45 } 40 46 $previousWrapper = $this->callbackWrapper; 41 $this->callbackWrapper = $callbackWrapper ?? function (callable $callback, \Prokerala\Astrology\Vendor\Symfony\Contracts\Cache\ItemInterface $item, bool &$save, \Prokerala\Astrology\Vendor\Symfony\Contracts\Cache\CacheInterface $pool, \Closure $setMetadata, ?\Psr\Log\LoggerInterface $logger) {47 $this->callbackWrapper = $callbackWrapper ?? static function (callable $callback, \Prokerala\Astrology\Vendor\Symfony\Contracts\Cache\ItemInterface $item, bool &$save, \Prokerala\Astrology\Vendor\Symfony\Contracts\Cache\CacheInterface $pool, \Closure $setMetadata, ?\Psr\Log\LoggerInterface $logger) { 42 48 return $callback($item, $save); 43 49 }; … … 67 73 $this->computing[$key] = $key; 68 74 $startTime = \microtime(\true); 75 if (!isset($this->callbackWrapper)) { 76 $this->setCallbackWrapper($this->setCallbackWrapper(null)); 77 } 69 78 try { 70 79 $value = ($this->callbackWrapper)($callback, $item, $save, $pool, function (\Prokerala\Astrology\Vendor\Symfony\Component\Cache\CacheItem $item) use($setMetadata, $startTime, &$metadata) { -
astrology/tags/1.0.6/dependencies/vendor/symfony/cache/Traits/MemcachedTrait.php
r2612549 r2659372 224 224 { 225 225 try { 226 $encodedIds = \array_map( 'self::encodeKey', $ids);226 $encodedIds = \array_map([__CLASS__, 'encodeKey'], $ids); 227 227 $encodedResult = $this->checkResultCode($this->getClient()->getMulti($encodedIds)); 228 228 $result = []; … … 248 248 { 249 249 $ok = \true; 250 $encodedIds = \array_map( 'self::encodeKey', $ids);250 $encodedIds = \array_map([__CLASS__, 'encodeKey'], $ids); 251 251 foreach ($this->checkResultCode($this->getClient()->deleteMulti($encodedIds)) as $result) { 252 252 if (\Memcached::RES_SUCCESS !== $result && \Memcached::RES_NOTFOUND !== $result) { -
astrology/tags/1.0.6/dependencies/vendor/symfony/cache/Traits/PdoTrait.php
r2612549 r2659372 131 131 throw new \DomainException(\sprintf('Creating the cache table is currently not implemented for PDO driver "%s".', $this->driver)); 132 132 } 133 if ( \method_exists($conn, 'executeStatement')) {133 if ($conn instanceof \Prokerala\Astrology\Vendor\Doctrine\DBAL\Connection && \method_exists($conn, 'executeStatement')) { 134 134 $conn->executeStatement($sql); 135 135 } else { … … 243 243 } 244 244 try { 245 if ( \method_exists($conn, 'executeStatement')) {245 if ($conn instanceof \Prokerala\Astrology\Vendor\Doctrine\DBAL\Connection && \method_exists($conn, 'executeStatement')) { 246 246 $conn->executeStatement($sql); 247 247 } else { -
astrology/tags/1.0.6/dependencies/vendor/symfony/cache/Traits/RedisTrait.php
r2612549 r2659372 118 118 } 119 119 if (isset($params['host']) || isset($params['path'])) { 120 if (!isset($params['dbindex']) && isset($params['path']) && \preg_match('#/(\\d+)$#', $params['path'], $m)) { 121 $params['dbindex'] = $m[1]; 122 $params['path'] = \substr($params['path'], 0, -\strlen($m[0])); 120 if (!isset($params['dbindex']) && isset($params['path'])) { 121 if (\preg_match('#/(\\d+)$#', $params['path'], $m)) { 122 $params['dbindex'] = $m[1]; 123 $params['path'] = \substr($params['path'], 0, -\strlen($m[0])); 124 } elseif (isset($params['host'])) { 125 throw new \Prokerala\Astrology\Vendor\Symfony\Component\Cache\Exception\InvalidArgumentException(\sprintf('Invalid Redis DSN: "%s", the "dbindex" parameter must be a number.', $dsn)); 126 } 123 127 } 124 128 if (isset($params['host'])) { -
astrology/tags/1.0.6/dependencies/vendor/symfony/polyfill-php73/Resources/stubs/JsonException.php
r2612549 r2659372 11 11 * file that was distributed with this source code. 12 12 */ 13 class JsonException extends \Exception 14 { 13 if (\PHP_VERSION_ID < 70300) { 14 class JsonException extends \Exception 15 { 16 } 15 17 } -
astrology/tags/1.0.6/dependencies/vendor/symfony/polyfill-php80/Resources/stubs/UnhandledMatchError.php
r2513947 r2659372 3 3 namespace Prokerala\Astrology\Vendor; 4 4 5 class UnhandledMatchError extends \Error 6 { 5 if (\PHP_VERSION_ID < 80000) { 6 class UnhandledMatchError extends \Error 7 { 8 } 7 9 } -
astrology/tags/1.0.6/dependencies/vendor/symfony/polyfill-php80/Resources/stubs/ValueError.php
r2513947 r2659372 3 3 namespace Prokerala\Astrology\Vendor; 4 4 5 class ValueError extends \Error 6 { 5 if (\PHP_VERSION_ID < 80000) { 6 class ValueError extends \Error 7 { 8 } 7 9 } -
astrology/tags/1.0.6/dependencies/vendor/symfony/service-contracts/ServiceLocatorTrait.php
r2513947 r2659372 45 45 /** 46 46 * {@inheritdoc} 47 * 48 * @return mixed 47 49 */ 48 50 public function get($id) -
astrology/tags/1.0.6/dependencies/vendor/symfony/service-contracts/ServiceSubscriberInterface.php
r2513947 r2659372 47 47 * * ['Psr\Log\LoggerInterface' => '?Psr\Log\LoggerInterface'] 48 48 * 49 * @return arrayThe required service types, optionally keyed by service names49 * @return string[] The required service types, optionally keyed by service names 50 50 */ 51 51 public static function getSubscribedServices(); -
astrology/tags/1.0.6/dependencies/vendor/symfony/service-contracts/ServiceSubscriberTrait.php
r2513947 r2659372 22 22 /** @var ContainerInterface */ 23 23 protected $container; 24 /** 25 * {@inheritdoc} 26 */ 24 27 public static function getSubscribedServices() : array 25 28 { … … 33 36 continue; 34 37 } 35 if (self::class === $method->getDeclaringClass()->name && ($returnType = $method->getReturnType()) && !$returnType->isBuiltin()) {36 $services[self::class . '::' . $method->name] = '?' . ($returnType instanceof \ReflectionNamedType ? $returnType->getName() : $type);38 if (self::class !== $method->getDeclaringClass()->name) { 39 continue; 37 40 } 41 if (!($returnType = $method->getReturnType()) instanceof \ReflectionNamedType) { 42 continue; 43 } 44 if ($returnType->isBuiltin()) { 45 continue; 46 } 47 $services[self::class . '::' . $method->name] = '?' . $returnType->getName(); 38 48 } 39 49 return $services; … … 41 51 /** 42 52 * @required 53 * 54 * @return ContainerInterface|null 43 55 */ 44 56 public function setContainer(\Psr\Container\ContainerInterface $container) -
astrology/tags/1.0.6/dependencies/vendor/symfony/service-contracts/Test/ServiceLocatorTest.php
r2513947 r2659372 16 16 abstract class ServiceLocatorTest extends \Prokerala\Astrology\Vendor\PHPUnit\Framework\TestCase 17 17 { 18 /** 19 * @return ContainerInterface 20 */ 18 21 protected function getServiceLocator(array $factories) 19 22 { … … 60 63 { 61 64 if (!$this->getExpectedException()) { 62 $this->expectException( 'Psr\\Container\\NotFoundExceptionInterface');65 $this->expectException(\Psr\Container\NotFoundExceptionInterface::class); 63 66 $this->expectExceptionMessage('The service "foo" has a dependency on a non-existent service "bar". This locator only knows about the "foo" service.'); 64 67 } … … 70 73 public function testThrowsOnCircularReference() 71 74 { 72 $this->expectException( 'Psr\\Container\\ContainerExceptionInterface');75 $this->expectException(\Psr\Container\ContainerExceptionInterface::class); 73 76 $this->expectExceptionMessage('Circular reference detected for service "bar", path: "bar -> baz -> bar".'); 74 77 $locator = $this->getServiceLocator(['foo' => function () use(&$locator) { -
astrology/tags/1.0.6/dependencies/vendor/symfony/var-exporter/Internal/Exporter.php
r2612549 r2659372 83 83 $properties = []; 84 84 $sleep = null; 85 $arrayValue = (array) $value;86 85 $proto = \Prokerala\Astrology\Vendor\Symfony\Component\VarExporter\Internal\Registry::$prototypes[$class]; 87 86 if (($value instanceof \ArrayIterator || $value instanceof \ArrayObject) && null !== $proto) { 88 87 // ArrayIterator and ArrayObject need special care because their "flags" 89 88 // option changes the behavior of the (array) casting operator. 90 $properties = self::getArrayObjectProperties($value, $arrayValue, $proto);89 [$arrayValue, $properties] = self::getArrayObjectProperties($value, $proto); 91 90 // populates Registry::$prototypes[$class] with a new instance 92 91 \Prokerala\Astrology\Vendor\Symfony\Component\VarExporter\Internal\Registry::getClassReflector($class, \Prokerala\Astrology\Vendor\Symfony\Component\VarExporter\Internal\Registry::$instantiableWithoutConstructor[$class], \Prokerala\Astrology\Vendor\Symfony\Component\VarExporter\Internal\Registry::$cloneable[$class]); … … 99 98 } 100 99 $properties = ['SplObjectStorage' => ["\x00" => $properties]]; 100 $arrayValue = (array) $value; 101 101 } elseif ($value instanceof \Serializable || $value instanceof \__PHP_Incomplete_Class) { 102 102 ++$objectsCount; … … 104 104 $value = new \Prokerala\Astrology\Vendor\Symfony\Component\VarExporter\Internal\Reference($id); 105 105 goto handle_value; 106 } 107 if (\method_exists($class, '__sleep')) { 108 if (!\is_array($sleep = $value->__sleep())) { 109 \trigger_error('serialize(): __sleep should return an array only containing the names of instance-variables to serialize', \E_USER_NOTICE); 110 $value = null; 111 goto handle_value; 112 } 113 foreach ($sleep as $name) { 114 if (\property_exists($value, $name) && !$reflector->hasProperty($name)) { 115 $arrayValue[$name] = $value->{$name}; 106 } else { 107 if (\method_exists($class, '__sleep')) { 108 if (!\is_array($sleep = $value->__sleep())) { 109 \trigger_error('serialize(): __sleep should return an array only containing the names of instance-variables to serialize', \E_USER_NOTICE); 110 $value = null; 111 goto handle_value; 116 112 } 117 } 118 $sleep = \array_flip($sleep); 113 $sleep = \array_flip($sleep); 114 } 115 $arrayValue = (array) $value; 119 116 } 120 117 $proto = (array) $proto; … … 200 197 if (\is_string($value)) { 201 198 $code = \sprintf("'%s'", \addcslashes($value, "'\\")); 202 $code = \preg_replace_callback( '/([\\0\\r\\n]++)(.)/', function ($m) use($subIndent) {203 $m[1] = \sprintf('\'."%s".\'', \str_replace(["\x00", "\r", "\n", '\\n\\'], ['\\0', '\\r', '\\n', '\\n"' . "\n" . $subIndent . '."\\'], $m[1]));199 $code = \preg_replace_callback("/((?:[\\0\\r\\n]|||||||||)++)(.)/", function ($m) use($subIndent) { 200 $m[1] = \sprintf('\'."%s".\'', \str_replace(["\x00", "\r", "\n", "", "", "", "", "", "", "", "", "", '\\n\\'], ['\\0', '\\r', '\\n', '\\u{202A}', '\\u{202B}', '\\u{202D}', '\\u{202E}', '\\u{2066}', '\\u{2067}', '\\u{2068}', '\\u{202C}', '\\u{2069}', '\\n"' . "\n" . $subIndent . '."\\'], $m[1])); 204 201 if ("'" === $m[2]) { 205 202 return \substr($m[1], 0, -2); … … 254 251 $r = '\\' . \Prokerala\Astrology\Vendor\Symfony\Component\VarExporter\Internal\Registry::class; 255 252 $j = -1; 256 foreach ($value as $k => $class) {253 foreach ($value->classes as $k => $class) { 257 254 if (':' === ($class[1] ?? null)) { 258 255 $serializables[$k] = $class; … … 324 321 * @param \ArrayIterator|\ArrayObject $proto 325 322 */ 326 private static function getArrayObjectProperties($value, array &$arrayValue,$proto) : array323 private static function getArrayObjectProperties($value, $proto) : array 327 324 { 328 325 $reflector = $value instanceof \ArrayIterator ? 'ArrayIterator' : 'ArrayObject'; 329 326 $reflector = \Prokerala\Astrology\Vendor\Symfony\Component\VarExporter\Internal\Registry::$reflectors[$reflector] ?? \Prokerala\Astrology\Vendor\Symfony\Component\VarExporter\Internal\Registry::getClassReflector($reflector); 330 $properties = [$arrayValue , $reflector->getMethod('getFlags')->invoke($value), $value instanceof \ArrayObject ? $reflector->getMethod('getIteratorClass')->invoke($value) : 'ArrayIterator'];327 $properties = [$arrayValue = (array) $value, $reflector->getMethod('getFlags')->invoke($value), $value instanceof \ArrayObject ? $reflector->getMethod('getIteratorClass')->invoke($value) : 'ArrayIterator']; 331 328 $reflector = $reflector->getMethod('setFlags'); 332 329 $reflector->invoke($proto, \ArrayObject::STD_PROP_LIST); … … 347 344 $properties = [$reflector->class => ["\x00" => $properties]]; 348 345 } 349 return $properties;346 return [$arrayValue, $properties]; 350 347 } 351 348 } -
astrology/tags/1.0.6/dependencies/vendor/symfony/var-exporter/Internal/Registry.php
r2513947 r2659372 25 25 public static $cloneable = []; 26 26 public static $instantiableWithoutConstructor = []; 27 public $classes = []; 27 28 public function __construct(array $classes) 28 29 { 29 foreach ($classes as $i => $class) { 30 $this->{$i} = $class; 31 } 30 $this->classes = $classes; 32 31 } 33 32 public static function unserialize($objects, $serializables) -
astrology/tags/1.0.6/readme.txt
r2612549 r2659372 3 3 Tags: astrology, prokerala 4 4 Requires at least: 5.5 5 Tested up to: 5.8. 16 Stable tag: 1.0. 55 Tested up to: 5.8.3 6 Stable tag: 1.0.6 7 7 Requires PHP: 7.2.0 8 8 License: GPLV2+ … … 117 117 == Changelog == 118 118 119 = 1.0.6 = 120 * Fix datetimes reverting to UTC 121 119 122 = 1.0.5 = 120 123 * Location parameters where not being passed correctly -
astrology/tags/1.0.6/src/Admin/SettingsPage.php
r2612549 r2659372 236 236 */ 237 237 public function render_timezone() { // phpcs:ignore Generic.Metrics.CyclomaticComplexity.TooHigh 238 239 $regions = $this->get_timezone_list(); 240 $current = $this->config->get_option( 'timezone' ); 241 242 echo '<select id="astrology_plugin_setting_timezone" name="astrology_plugin_options[timezone]">'; 243 foreach ( $regions as $region => $zones ) { 244 echo "<optgroup label='{$region}'>"; 245 foreach ( $zones as $zone => $label ) { 246 echo "<option value='{$zone}'" . ( $current === $zone ? ' selected' : '' ) . ">{$label}</option>"; 247 } 248 echo '</optgroup>'; 249 } 250 echo '</select>'; 251 } 252 253 /** 254 * Generate list of timezones 255 * 256 * @since 1.0.6 257 * 258 * @return array 259 */ 260 private function get_timezone_list() { 261 238 262 $tz_list = \DateTimeZone::listIdentifiers( \DateTimeZone::ALL ); 239 263 $now = new \DateTimeImmutable(); … … 256 280 ); 257 281 258 $current = $this->config->get_option( 'timezone' ); 259 260 echo '<select id="astrology_plugin_setting_timezone" name="astrology_plugin_options[timezone]">'; 261 foreach ( $regions as $region => $zones ) { 262 echo "<optgroup label='{$region}'>"; 263 foreach ( $zones as $zone => $label ) { 264 echo "<option value='{$zone}'" . ( $current === $zone ? ' selected' : '' ) . ">{$label}</option>"; 265 } 266 echo '</optgroup>'; 267 } 268 echo '</select>'; 282 return $regions; 269 283 } 270 284 -
astrology/tags/1.0.6/src/Front/Report/AuspiciousPeriodController.php
r2513947 r2659372 89 89 $method = new AuspiciousPeriod( $client ); 90 90 $method->setAyanamsa( $this->get_input_ayanamsa() ); 91 $method->setTimeZone( $tz ); 91 92 $result = $method->process( $location, $datetime ); 92 93 -
astrology/tags/1.0.6/src/Front/Report/ChoghadiyaController.php
r2513947 r2659372 89 89 $method = new Choghadiya( $client ); 90 90 $method->setAyanamsa( $this->get_input_ayanamsa() ); 91 $method->setTimeZone( $tz ); 91 92 $result = $method->process( $location, $datetime ); 92 93 -
astrology/tags/1.0.6/src/Front/Report/InauspiciousPeriodController.php
r2513947 r2659372 90 90 $method = new InauspiciousPeriod( $client ); 91 91 $method->setAyanamsa( $this->get_input_ayanamsa() ); 92 $method->setTimeZone( $tz ); 92 93 $result = $method->process( $location, $datetime ); 93 94 -
astrology/tags/1.0.6/src/Front/Report/KundliMatchingController.php
r2513947 r2659372 105 105 $result = $method->process( $girl_profile, $boy_profile, $advanced ); 106 106 107 $girl_info = $result->getGirlInfo(); 108 $boy_info = $result->getBoyInfo(); 109 $boy_koot = $boy_info->getKoot(); 110 $girl_koot = $girl_info->getKoot(); 111 112 $girl_nakshatra = $girl_info->getNakshatra(); 113 $boy_nakshatra = $boy_info->getNakshatra(); 114 $girl_nakshatra_lord = $girl_nakshatra->getLord(); 115 $boy_nakshatra_lord = $boy_nakshatra->getLord(); 116 117 $girl_rasi = $girl_info->getRasi(); 118 $boy_rasi = $boy_info->getRasi(); 119 $girl_rasi_lord = $girl_rasi->getLord(); 120 $boy_rasi_lord = $boy_rasi->getLord(); 121 122 $compatibility_result['boyInfo']['koot'] = $boy_koot->getKoot(); 123 $compatibility_result['girlInfo']['koot'] = $girl_koot->getKoot(); 124 125 $compatibility_result['girlInfo']['nakshatra'] = [ 126 'id' => $girl_nakshatra->getId(), 127 'name' => $girl_nakshatra->getName(), 128 'pada' => $girl_nakshatra->getPada(), 129 'lord' => [ 130 'id' => $girl_nakshatra_lord->getId(), 131 'name' => $girl_nakshatra_lord->getName(), 132 'vedicName' => $girl_nakshatra_lord->getVedicName(), 133 ], 134 ]; 135 136 $compatibility_result['boyInfo']['nakshatra'] = [ 137 'id' => $boy_nakshatra->getId(), 138 'name' => $boy_nakshatra->getName(), 139 'pada' => $boy_nakshatra->getPada(), 140 'lord' => [ 141 'id' => $boy_nakshatra_lord->getId(), 142 'name' => $boy_nakshatra_lord->getName(), 143 'vedicName' => $boy_nakshatra_lord->getVedicName(), 144 ], 145 ]; 146 147 $compatibility_result['girlInfo']['rasi'] = [ 148 'id' => $girl_rasi->getId(), 149 'name' => $girl_rasi->getName(), 150 'lord' => [ 151 'id' => $girl_rasi_lord->getId(), 152 'name' => $girl_rasi_lord->getName(), 153 'vedicName' => $girl_rasi_lord->getVedicName(), 154 ], 155 ]; 156 157 $compatibility_result['boyInfo']['rasi'] = [ 158 'id' => $boy_rasi->getId(), 159 'name' => $boy_rasi->getName(), 160 'lord' => [ 161 'id' => $boy_rasi_lord->getId(), 162 'name' => $boy_rasi_lord->getName(), 163 'vedicName' => $boy_rasi_lord->getVedicName(), 164 ], 165 ]; 166 167 $message = $result->getMessage(); 168 $compatibility_result['message'] = [ 169 'type' => $message->getType(), 170 'description' => $message->getDescription(), 171 ]; 172 173 $guna_milan = $result->getGunaMilan(); 174 $compatibility_result['gunaMilan'] = [ 175 'totalPoints' => $guna_milan->getTotalPoints(), 176 'maximumPoints' => $guna_milan->getMaximumPoints(), 177 ]; 178 179 if ( $advanced ) { 180 $ar_guna = $guna_milan->getGuna(); 181 182 foreach ( $ar_guna as $guna ) { 183 $compatibility_result['gunaMilan']['guna'][] = [ 184 'id' => $guna->getId(), 185 'name' => $guna->getName(), 186 'girlKoot' => $guna->getGirlKoot(), 187 'boyKoot' => $guna->getBoyKoot(), 188 'maximumPoints' => $guna->getMaximumPoints(), 189 'obtainedPoints' => $guna->getObtainedPoints(), 190 'description' => $guna->getDescription(), 191 ]; 192 } 193 $compatibility_result['exceptions'] = $result->getExceptions(); 194 195 $girl_mangal_dosha_details = $result->getGirlMangalDoshaDetails(); 196 $boy_mangal_dosha_details = $result->getBoyMangalDoshaDetails(); 197 198 $compatibility_result['girlMangalDoshaDetails'] = [ 199 'hasMangalDosha' => $girl_mangal_dosha_details->hasDosha(), 200 'hasException' => $girl_mangal_dosha_details->hasException(), 201 'mangalDoshaType' => $girl_mangal_dosha_details->getDoshaType(), 202 'description' => $girl_mangal_dosha_details->getDescription(), 203 ]; 204 205 $compatibility_result['boyMangalDoshaDetails'] = [ 206 'hasMangalDosha' => $boy_mangal_dosha_details->hasDosha(), 207 'hasException' => $boy_mangal_dosha_details->hasException(), 208 'mangalDoshaType' => $boy_mangal_dosha_details->getDoshaType(), 209 'description' => $boy_mangal_dosha_details->getDescription(), 210 ]; 211 } 107 $compatibility_result = $this->get_compatibility_result( $result, $advanced ); 212 108 213 109 return $this->render( … … 222 118 ); 223 119 } 120 121 /** 122 * Get compatability result 123 * 124 * @param object $result API Result. 125 * @param int $advanced Advanced Result. 126 * @return array 127 */ 128 private function get_compatibility_result( $result, $advanced ) { 129 $compatibility_result = []; 130 $girl_info = $result->getGirlInfo(); 131 $girl_nakshatra = $girl_info->getNakshatra(); 132 $girl_nakshatra_lord = $girl_nakshatra->getLord(); 133 $girl_rasi = $girl_info->getRasi(); 134 $girl_rasi_lord = $girl_rasi->getLord(); 135 $girl_koot = $girl_info->getKoot(); 136 137 $compatibility_result['girlInfo']['koot'] = $girl_koot->getKoot(); 138 $compatibility_result['girlInfo']['nakshatra'] = [ 139 'id' => $girl_nakshatra->getId(), 140 'name' => $girl_nakshatra->getName(), 141 'pada' => $girl_nakshatra->getPada(), 142 'lord' => [ 143 'id' => $girl_nakshatra_lord->getId(), 144 'name' => $girl_nakshatra_lord->getName(), 145 'vedicName' => $girl_nakshatra_lord->getVedicName(), 146 ], 147 ]; 148 149 $compatibility_result['girlInfo']['rasi'] = [ 150 'id' => $girl_rasi->getId(), 151 'name' => $girl_rasi->getName(), 152 'lord' => [ 153 'id' => $girl_rasi_lord->getId(), 154 'name' => $girl_rasi_lord->getName(), 155 'vedicName' => $girl_rasi_lord->getVedicName(), 156 ], 157 ]; 158 159 $boy_info = $result->getBoyInfo(); 160 $boy_nakshatra = $boy_info->getNakshatra(); 161 $boy_nakshatra_lord = $boy_nakshatra->getLord(); 162 $boy_rasi = $boy_info->getRasi(); 163 $boy_rasi_lord = $boy_rasi->getLord(); 164 165 $boy_koot = $boy_info->getKoot(); 166 $compatibility_result['boyInfo']['koot'] = $boy_koot->getKoot(); 167 $compatibility_result['boyInfo']['nakshatra'] = [ 168 'id' => $boy_nakshatra->getId(), 169 'name' => $boy_nakshatra->getName(), 170 'pada' => $boy_nakshatra->getPada(), 171 'lord' => [ 172 'id' => $boy_nakshatra_lord->getId(), 173 'name' => $boy_nakshatra_lord->getName(), 174 'vedicName' => $boy_nakshatra_lord->getVedicName(), 175 ], 176 ]; 177 $compatibility_result['boyInfo']['rasi'] = [ 178 'id' => $boy_rasi->getId(), 179 'name' => $boy_rasi->getName(), 180 'lord' => [ 181 'id' => $boy_rasi_lord->getId(), 182 'name' => $boy_rasi_lord->getName(), 183 'vedicName' => $boy_rasi_lord->getVedicName(), 184 ], 185 ]; 186 187 $message = $result->getMessage(); 188 $compatibility_result['message'] = [ 189 'type' => $message->getType(), 190 'description' => $message->getDescription(), 191 ]; 192 193 $guna_milan = $result->getGunaMilan(); 194 $compatibility_result['gunaMilan'] = [ 195 'totalPoints' => $guna_milan->getTotalPoints(), 196 'maximumPoints' => $guna_milan->getMaximumPoints(), 197 ]; 198 199 if ( ! $advanced ) { 200 return $compatibility_result; 201 } 202 203 $ar_guna = $guna_milan->getGuna(); 204 205 foreach ( $ar_guna as $guna ) { 206 $compatibility_result['gunaMilan']['guna'][] = [ 207 'id' => $guna->getId(), 208 'name' => $guna->getName(), 209 'girlKoot' => $guna->getGirlKoot(), 210 'boyKoot' => $guna->getBoyKoot(), 211 'maximumPoints' => $guna->getMaximumPoints(), 212 'obtainedPoints' => $guna->getObtainedPoints(), 213 'description' => $guna->getDescription(), 214 ]; 215 } 216 $compatibility_result['exceptions'] = $result->getExceptions(); 217 218 $girl_mangal_dosha_details = $result->getGirlMangalDoshaDetails(); 219 $boy_mangal_dosha_details = $result->getBoyMangalDoshaDetails(); 220 221 $compatibility_result['girlMangalDoshaDetails'] = [ 222 'hasMangalDosha' => $girl_mangal_dosha_details->hasDosha(), 223 'hasException' => $girl_mangal_dosha_details->hasException(), 224 'mangalDoshaType' => $girl_mangal_dosha_details->getDoshaType(), 225 'description' => $girl_mangal_dosha_details->getDescription(), 226 ]; 227 228 $compatibility_result['boyMangalDoshaDetails'] = [ 229 'hasMangalDosha' => $boy_mangal_dosha_details->hasDosha(), 230 'hasException' => $boy_mangal_dosha_details->hasException(), 231 'mangalDoshaType' => $boy_mangal_dosha_details->getDoshaType(), 232 'description' => $boy_mangal_dosha_details->getDescription(), 233 ]; 234 235 return $compatibility_result; 236 } 224 237 } -
astrology/tags/1.0.6/src/Front/Report/NakshatraPoruthamController.php
r2513947 r2659372 114 114 * @return string 115 115 */ 116 public function process( $options = [] ) { 116 public function process( $options = [] ) { // phpcs:ignore Generic.Metrics.CyclomaticComplexity.MaxExceeded 117 117 $client = $this->get_api_client(); 118 118 … … 131 131 $method = new NakshatraPorutham( $client ); 132 132 $result = $method->process( $girl_profile, $boy_profile, $advanced ); 133 134 $compatibility_result = $this->get_compatibility_result( $result, $advanced ); 135 136 return $this->render( 137 'result/nakshatra-porutham', 138 [ 139 'result' => $compatibility_result, 140 'result_type' => $result_type, 141 'options' => $this->get_options(), 142 ] 143 ); 144 } 145 146 /** 147 * Get compatability result 148 * 149 * @param object $result API Result. 150 * @param int $advanced Advanced Result. 151 * @return array 152 */ 153 private function get_compatibility_result( $result, $advanced ) { 133 154 134 155 $compatibility_result = []; … … 156 177 } 157 178 158 return $this->render( 159 'result/nakshatra-porutham', 160 [ 161 'result' => $compatibility_result, 162 'result_type' => $result_type, 163 'options' => $this->get_options(), 164 ] 165 ); 179 return $compatibility_result; 166 180 } 167 181 } -
astrology/tags/1.0.6/src/Front/Report/PanchangController.php
r2513947 r2659372 93 93 $method = new Panchang( $client ); 94 94 $method->setAyanamsa( $this->get_input_ayanamsa() ); 95 $method->setTimeZone( $tz ); 95 96 $result = $method->process( $location, $datetime, $advanced ); 96 97 -
astrology/tags/1.0.6/src/Front/Report/PoruthamController.php
r2513947 r2659372 105 105 $result = $method->process( $girl_profile, $boy_profile, $system, $advanced ); 106 106 107 $compatibility_result = $this->get_compatibility_result( $result, $advanced ); 108 109 return $this->render( 110 'result/porutham', 111 [ 112 'result' => $compatibility_result, 113 'result_type' => $result_type, 114 'girl_dob' => $girl_dob, 115 'boy_dob' => $boy_dob, 116 'options' => $this->get_options(), 117 ] 118 ); 119 } 120 121 /** 122 * Get compatability result 123 * 124 * @param object $result API Result. 125 * @param int $advanced Advanced Result. 126 * @return array 127 */ 128 private function get_compatibility_result( $result, $advanced ) { 107 129 $compatibility_result = []; 108 $girl_info = $result->getGirlInfo(); 109 $girl_nakshatra = $girl_info->getNakshatra(); 110 $girl_rasi = $girl_info->getRasi(); 111 112 $boy_info = $result->getBoyInfo(); 113 $boy_nakshatra = $boy_info->getNakshatra(); 114 $boy_rasi = $boy_info->getRasi(); 115 130 131 $girl_info = $result->getGirlInfo(); 132 $girl_nakshatra = $girl_info->getNakshatra(); 133 $girl_rasi = $girl_info->getRasi(); 116 134 $girl_nakshatra_lord = $girl_nakshatra->getLord(); 117 $boy_nakshatra_lord = $boy_nakshatra->getLord(); 118 119 $girl_rasi_lord = $girl_rasi->getLord(); 120 $boy_rasi_lord = $boy_rasi->getLord(); 135 $girl_rasi_lord = $girl_rasi->getLord(); 121 136 122 137 $compatibility_result['girlInfo'] = [ … … 142 157 ]; 143 158 144 $compatibility_result['boyInfo'] = [ 159 $boy_info = $result->getBoyInfo(); 160 $boy_nakshatra = $boy_info->getNakshatra(); 161 $boy_rasi = $boy_info->getRasi(); 162 $boy_nakshatra_lord = $boy_nakshatra->getLord(); 163 $boy_rasi_lord = $boy_rasi->getLord(); 164 165 $compatibility_result['boyInfo'] = [ 145 166 'nakshatra' => [ 146 167 'id' => $boy_nakshatra->getId(), … … 163 184 ], 164 185 ]; 186 165 187 $compatibility_result['maximumPoints'] = $result->getMaximumPoints(); 166 188 $compatibility_result['totalPoints'] = $result->getTotalPoints(); … … 187 209 } 188 210 189 return $this->render( 190 'result/porutham', 191 [ 192 'result' => $compatibility_result, 193 'result_type' => $result_type, 194 'girl_dob' => $girl_dob, 195 'boy_dob' => $boy_dob, 196 'options' => $this->get_options(), 197 ] 198 ); 211 return $compatibility_result; 199 212 } 200 213 } -
astrology/tags/1.0.6/src/Front/Report/SadeSatiController.php
r2513947 r2659372 93 93 $method = new SadeSati( $client ); 94 94 $method->setAyanamsa( $this->get_input_ayanamsa() ); 95 $method->setTimeZone( $tz ); 95 96 $result = $method->process( $location, $datetime, $advanced ); 96 97 -
astrology/tags/1.0.6/src/Front/Report/ThirumanaPoruthamController.php
r2513947 r2659372 115 115 * @return string 116 116 */ 117 public function process( $options = [] ) { 117 public function process( $options = [] ) { // phpcs:ignore Generic.Metrics.CyclomaticComplexity.MaxExceeded 118 118 $client = $this->get_api_client(); 119 119 … … 132 132 $method = new ThirumanaPorutham( $client ); 133 133 $result = $method->process( $girl_profile, $boy_profile, $advanced ); 134 135 $compatibility_result = $this->get_compatibility_result( $result, $advanced ); 136 137 return $this->render( 138 'result/thirumana-porutham', 139 [ 140 'result' => $compatibility_result, 141 'result_type' => $result_type, 142 'options' => $this->get_options(), 143 ] 144 ); 145 } 146 147 148 /** 149 * Get compatability result 150 * 151 * @param object $result API Result. 152 * @param int $advanced Advanced Result. 153 * @return array 154 */ 155 private function get_compatibility_result( $result, $advanced ) { 134 156 135 157 $compatibility_result = []; … … 155 177 } 156 178 157 return $this->render( 158 'result/thirumana-porutham', 159 [ 160 'result' => $compatibility_result, 161 'result_type' => $result_type, 162 'options' => $this->get_options(), 163 ] 164 ); 179 return $compatibility_result; 165 180 } 166 181 } -
astrology/tags/1.0.6/src/vendor/autoload.php
r2612561 r2659372 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit 6a88b6845a58df8520cf6b713d0a8bfa::getLoader();7 return ComposerAutoloaderInitb0ae5ced78786f966cfb7da5a0828a2d::getLoader(); -
astrology/tags/1.0.6/src/vendor/composer/autoload_real.php
r2612561 r2659372 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 6a88b6845a58df8520cf6b713d0a8bfa5 class ComposerAutoloaderInitb0ae5ced78786f966cfb7da5a0828a2d 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit 6a88b6845a58df8520cf6b713d0a8bfa', 'loadClassLoader'), true, true);25 spl_autoload_register(array('ComposerAutoloaderInitb0ae5ced78786f966cfb7da5a0828a2d', 'loadClassLoader'), true, true); 26 26 self::$loader = $loader = new \Prokerala_WP_Astrology_Composer\Autoload\ClassLoader(); 27 spl_autoload_unregister(array('ComposerAutoloaderInit 6a88b6845a58df8520cf6b713d0a8bfa', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInitb0ae5ced78786f966cfb7da5a0828a2d', 'loadClassLoader')); 28 28 29 29 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); … … 31 31 require_once __DIR__ . '/autoload_static.php'; 32 32 33 call_user_func(\Prokerala_WP_Astrology_Composer\Autoload\ComposerStaticInit 6a88b6845a58df8520cf6b713d0a8bfa::getInitializer($loader));33 call_user_func(\Prokerala_WP_Astrology_Composer\Autoload\ComposerStaticInitb0ae5ced78786f966cfb7da5a0828a2d::getInitializer($loader)); 34 34 } else { 35 35 $classMap = require __DIR__ . '/autoload_classmap.php'; -
astrology/tags/1.0.6/src/vendor/composer/autoload_static.php
r2612561 r2659372 5 5 namespace Prokerala_WP_Astrology_Composer\Autoload; 6 6 7 class ComposerStaticInit 6a88b6845a58df8520cf6b713d0a8bfa7 class ComposerStaticInitb0ae5ced78786f966cfb7da5a0828a2d 8 8 { 9 9 public static $classMap = array ( … … 41 41 { 42 42 return \Closure::bind(function () use ($loader) { 43 $loader->classMap = ComposerStaticInit 6a88b6845a58df8520cf6b713d0a8bfa::$classMap;43 $loader->classMap = ComposerStaticInitb0ae5ced78786f966cfb7da5a0828a2d::$classMap; 44 44 45 45 }, null, ClassLoader::class); -
astrology/trunk/astrology.php
r2612561 r2659372 12 12 * Plugin URI: https://api.prokerala.com 13 13 * Description: Integrate astrology calculators powered by Prokerala's Astrology API 14 * Version: 1.0. 514 * Version: 1.0.6 15 15 * Author: Prokerala 16 16 * Author URI: https://www.prokerala.com -
astrology/trunk/dependencies/vendor/autoload.php
r2612561 r2659372 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit 64b03242fe32186abafab7033e7ee983::getLoader();7 return ComposerAutoloaderInitd01d759ab9e60f8b7ca4bcb4fc4e62a3::getLoader(); -
astrology/trunk/dependencies/vendor/composer/autoload_classmap.php
r2612549 r2659372 42 42 'Prokerala\\Api\\Astrology\\Result\\HoroscopeMatching\\Porutham' => $vendorDir . '/prokerala/astrology-sdk/src/Api/Astrology/Result/HoroscopeMatching/Porutham.php', 43 43 'Prokerala\\Api\\Astrology\\Result\\HoroscopeMatching\\Porutham\\AdvancedMatch' => $vendorDir . '/prokerala/astrology-sdk/src/Api/Astrology/Result/HoroscopeMatching/Porutham/AdvancedMatch.php', 44 'Prokerala\\Api\\Astrology\\Result\\HoroscopeMatching\\Porutham\\ Match' => $vendorDir . '/prokerala/astrology-sdk/src/Api/Astrology/Result/HoroscopeMatching/Porutham/Match.php',44 'Prokerala\\Api\\Astrology\\Result\\HoroscopeMatching\\Porutham\\BasicMatch' => $vendorDir . '/prokerala/astrology-sdk/src/Api/Astrology/Result/HoroscopeMatching/Porutham/BasicMatch.php', 45 45 'Prokerala\\Api\\Astrology\\Result\\HoroscopeMatching\\Porutham\\Profile' => $vendorDir . '/prokerala/astrology-sdk/src/Api/Astrology/Result/HoroscopeMatching/Porutham/Profile.php', 46 46 'Prokerala\\Api\\Astrology\\Result\\HoroscopeMatching\\ProfileInfo' => $vendorDir . '/prokerala/astrology-sdk/src/Api/Astrology/Result/HoroscopeMatching/ProfileInfo.php', -
astrology/trunk/dependencies/vendor/composer/autoload_real.php
r2612561 r2659372 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 64b03242fe32186abafab7033e7ee9835 class ComposerAutoloaderInitd01d759ab9e60f8b7ca4bcb4fc4e62a3 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit 64b03242fe32186abafab7033e7ee983', 'loadClassLoader'), true, true);25 spl_autoload_register(array('ComposerAutoloaderInitd01d759ab9e60f8b7ca4bcb4fc4e62a3', 'loadClassLoader'), true, true); 26 26 self::$loader = $loader = new \Prokerala_WP_Astrology_Composer\Autoload\ClassLoader(); 27 spl_autoload_unregister(array('ComposerAutoloaderInit 64b03242fe32186abafab7033e7ee983', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInitd01d759ab9e60f8b7ca4bcb4fc4e62a3', 'loadClassLoader')); 28 28 29 29 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); … … 31 31 require_once __DIR__ . '/autoload_static.php'; 32 32 33 call_user_func(\Prokerala_WP_Astrology_Composer\Autoload\ComposerStaticInit 64b03242fe32186abafab7033e7ee983::getInitializer($loader));33 call_user_func(\Prokerala_WP_Astrology_Composer\Autoload\ComposerStaticInitd01d759ab9e60f8b7ca4bcb4fc4e62a3::getInitializer($loader)); 34 34 } else { 35 35 $classMap = require __DIR__ . '/autoload_classmap.php'; -
astrology/trunk/dependencies/vendor/composer/autoload_static.php
r2612561 r2659372 5 5 namespace Prokerala_WP_Astrology_Composer\Autoload; 6 6 7 class ComposerStaticInit 64b03242fe32186abafab7033e7ee9837 class ComposerStaticInitd01d759ab9e60f8b7ca4bcb4fc4e62a3 8 8 { 9 9 public static $classMap = array ( … … 43 43 'Prokerala\\Api\\Astrology\\Result\\HoroscopeMatching\\Porutham' => __DIR__ . '/..' . '/prokerala/astrology-sdk/src/Api/Astrology/Result/HoroscopeMatching/Porutham.php', 44 44 'Prokerala\\Api\\Astrology\\Result\\HoroscopeMatching\\Porutham\\AdvancedMatch' => __DIR__ . '/..' . '/prokerala/astrology-sdk/src/Api/Astrology/Result/HoroscopeMatching/Porutham/AdvancedMatch.php', 45 'Prokerala\\Api\\Astrology\\Result\\HoroscopeMatching\\Porutham\\ Match' => __DIR__ . '/..' . '/prokerala/astrology-sdk/src/Api/Astrology/Result/HoroscopeMatching/Porutham/Match.php',45 'Prokerala\\Api\\Astrology\\Result\\HoroscopeMatching\\Porutham\\BasicMatch' => __DIR__ . '/..' . '/prokerala/astrology-sdk/src/Api/Astrology/Result/HoroscopeMatching/Porutham/BasicMatch.php', 46 46 'Prokerala\\Api\\Astrology\\Result\\HoroscopeMatching\\Porutham\\Profile' => __DIR__ . '/..' . '/prokerala/astrology-sdk/src/Api/Astrology/Result/HoroscopeMatching/Porutham/Profile.php', 47 47 'Prokerala\\Api\\Astrology\\Result\\HoroscopeMatching\\ProfileInfo' => __DIR__ . '/..' . '/prokerala/astrology-sdk/src/Api/Astrology/Result/HoroscopeMatching/ProfileInfo.php', … … 345 345 { 346 346 return \Closure::bind(function () use ($loader) { 347 $loader->classMap = ComposerStaticInit 64b03242fe32186abafab7033e7ee983::$classMap;347 $loader->classMap = ComposerStaticInitd01d759ab9e60f8b7ca4bcb4fc4e62a3::$classMap; 348 348 349 349 }, null, ClassLoader::class); -
astrology/trunk/dependencies/vendor/kriswallsmith/buzz/lib/Client/AbstractClient.php
r2513947 r2659372 12 12 { 13 13 /** 14 * @var OptionsResolver 14 * @var OptionsResolver|null 15 15 */ 16 16 private $optionsResolver; -
astrology/trunk/dependencies/vendor/kriswallsmith/buzz/lib/Client/MultiCurl.php
r2513947 r2659372 48 48 { 49 49 parent::__construct($responseFactory, $options); 50 if (\PHP_VERSION_ID < 70215 || \PHP_VERSION_ID === 70300 || \PHP_VERSION_ID === 70301 || !(\CURL_VERSION_HTTP2 & \curl_version()['features'])) {50 if (\PHP_VERSION_ID < 70215 || \PHP_VERSION_ID === 70300 || \PHP_VERSION_ID === 70301 || \PHP_VERSION_ID >= 80000 || !(\CURL_VERSION_HTTP2 & \curl_version()['features'])) { 51 51 // Dont use HTTP/2 push when it's unsupported or buggy, see https://bugs.php.net/76675 52 52 $this->serverPushSupported = \false; -
astrology/trunk/dependencies/vendor/prokerala/astrology-sdk/auspicious-period.php
r2513947 r2659372 16 16 use Prokerala\Common\Api\Exception\RateLimitExceededException; 17 17 include 'prepend.inc.php'; 18 /** @var \Prokerala\Common\Api\Client $client */ 18 19 /** 19 20 * AuspiciousPeriod. -
astrology/trunk/dependencies/vendor/prokerala/astrology-sdk/birth-details.php
r2513947 r2659372 15 15 use Prokerala\Common\Api\Exception\RateLimitExceededException; 16 16 include 'prepend.inc.php'; 17 /** @var \Prokerala\Common\Api\Client $client */ 17 18 /** 18 19 * Kaal Sarp Dosha. -
astrology/trunk/dependencies/vendor/prokerala/astrology-sdk/chart.php
r2513947 r2659372 15 15 use Prokerala\Common\Api\Exception\RateLimitExceededException; 16 16 include 'prepend.inc.php'; 17 /** @var \Prokerala\Common\Api\Client $client */ 17 18 /** 18 19 * InauspiciousPeriod. -
astrology/trunk/dependencies/vendor/prokerala/astrology-sdk/choghadiya.php
r2513947 r2659372 16 16 use Prokerala\Common\Api\Exception\RateLimitExceededException; 17 17 include 'prepend.inc.php'; 18 /** @var \Prokerala\Common\Api\Client $client */ 18 19 /** 19 20 * Choghadiya. -
astrology/trunk/dependencies/vendor/prokerala/astrology-sdk/inauspicious-period.php
r2513947 r2659372 16 16 use Prokerala\Common\Api\Exception\RateLimitExceededException; 17 17 include 'prepend.inc.php'; 18 /** @var \Prokerala\Common\Api\Client $client */ 18 19 /** 19 20 * InauspiciousPeriod. -
astrology/trunk/dependencies/vendor/prokerala/astrology-sdk/kaal-sarp-dosha.php
r2513947 r2659372 15 15 use Prokerala\Common\Api\Exception\RateLimitExceededException; 16 16 include 'prepend.inc.php'; 17 /** @var \Prokerala\Common\Api\Client $client */ 17 18 /** 18 19 * Kaal Sarp Dosha. -
astrology/trunk/dependencies/vendor/prokerala/astrology-sdk/kundli-matching.php
r2513947 r2659372 17 17 use Prokerala\Common\Api\Exception\RateLimitExceededException; 18 18 include 'prepend.inc.php'; 19 /** @var \Prokerala\Common\Api\Client $client */ 19 20 /** 20 21 * Nakshatra Porutham. -
astrology/trunk/dependencies/vendor/prokerala/astrology-sdk/kundli.php
r2513947 r2659372 16 16 use Prokerala\Common\Api\Exception\RateLimitExceededException; 17 17 include 'prepend.inc.php'; 18 /** @var \Prokerala\Common\Api\Client $client */ 18 19 /** 19 20 * Kaal Sarp Dosha. -
astrology/trunk/dependencies/vendor/prokerala/astrology-sdk/mangal-dosha.php
r2513947 r2659372 15 15 use Prokerala\Common\Api\Exception\RateLimitExceededException; 16 16 include 'prepend.inc.php'; 17 /** @var \Prokerala\Common\Api\Client $client */ 17 18 /** 18 19 * Mangal Dosha. -
astrology/trunk/dependencies/vendor/prokerala/astrology-sdk/nakshatra-porutham.php
r2513947 r2659372 16 16 use Prokerala\Common\Api\Exception\RateLimitExceededException; 17 17 include 'prepend.inc.php'; 18 /** @var \Prokerala\Common\Api\Client $client */ 18 19 /** 19 20 * Nakshatra Porutham. -
astrology/trunk/dependencies/vendor/prokerala/astrology-sdk/panchang.php
r2513947 r2659372 16 16 use Prokerala\Common\Api\Exception\RateLimitExceededException; 17 17 include 'prepend.inc.php'; 18 /** @var \Prokerala\Common\Api\Client $client */ 18 19 /** 19 20 * Panchang. -
astrology/trunk/dependencies/vendor/prokerala/astrology-sdk/papa-samyam-check.php
r2513947 r2659372 17 17 use Prokerala\Common\Api\Exception\RateLimitExceededException; 18 18 include 'prepend.inc.php'; 19 /** @var \Prokerala\Common\Api\Client $client */ 19 20 /** 20 21 * Nakshatra Porutham. -
astrology/trunk/dependencies/vendor/prokerala/astrology-sdk/papasamyam.php
r2513947 r2659372 15 15 use Prokerala\Common\Api\Exception\RateLimitExceededException; 16 16 include 'prepend.inc.php'; 17 /** @var \Prokerala\Common\Api\Client $client */ 17 18 /** 18 19 * Kaal Sarp Dosha. -
astrology/trunk/dependencies/vendor/prokerala/astrology-sdk/planet-position.php
r2513947 r2659372 15 15 use Prokerala\Common\Api\Exception\RateLimitExceededException; 16 16 include 'prepend.inc.php'; 17 /** @var \Prokerala\Common\Api\Client $client */ 17 18 /** 18 19 * Kaal Sarp Dosha. -
astrology/trunk/dependencies/vendor/prokerala/astrology-sdk/porutham.php
r2513947 r2659372 17 17 use Prokerala\Common\Api\Exception\RateLimitExceededException; 18 18 include 'prepend.inc.php'; 19 /** @var \Prokerala\Common\Api\Client $client */ 19 20 /** 20 21 * Porutham. -
astrology/trunk/dependencies/vendor/prokerala/astrology-sdk/sade-sati.php
r2513947 r2659372 16 16 use Prokerala\Common\Api\Exception\RateLimitExceededException; 17 17 include 'prepend.inc.php'; 18 /** @var \Prokerala\Common\Api\Client $client */ 18 19 /** 19 20 * Sade Sati. -
astrology/trunk/dependencies/vendor/prokerala/astrology-sdk/src/Api/Astrology/Result/Horoscope/BirthDetails.php
r2513947 r2659372 37 37 private $zodiac; 38 38 /** 39 * @var Nakshatra\NakshatraInfo39 * @var \Prokerala\Api\Astrology\Result\Horoscope\Nakshatra\NakshatraInfo 40 40 */ 41 41 private $additionalInfo; 42 /**43 * BirthDetails constructor.44 *45 * @param Nakshatra\NakshatraInfo $additionalInfo46 */47 42 public function __construct(\Prokerala\Api\Astrology\Result\Element\Nakshatra $nakshatra, \Prokerala\Api\Astrology\Result\Element\Rasi $chandraRasi, \Prokerala\Api\Astrology\Result\Element\Rasi $sooryaRasi, \Prokerala\Api\Astrology\Result\Element\Zodiac $zodiac, \Prokerala\Api\Astrology\Result\Horoscope\Nakshatra\NakshatraInfo $additionalInfo) 48 43 { -
astrology/trunk/dependencies/vendor/prokerala/astrology-sdk/src/Api/Astrology/Result/HoroscopeMatching/NakshatraPorutham.php
r2513947 r2659372 29 29 private $message; 30 30 /** 31 * @var Porutham\ Match[]31 * @var Porutham\BasicMatch[] 32 32 */ 33 33 private $matches; … … 35 35 * @param float $maximumPoints 36 36 * @param float $obtainedPoints 37 * @param Porutham\ Match[] $matches37 * @param Porutham\BasicMatch[] $matches 38 38 */ 39 39 public function __construct($maximumPoints, $obtainedPoints, \Prokerala\Api\Astrology\Result\HoroscopeMatching\Message $message, array $matches) … … 66 66 } 67 67 /** 68 * @return Porutham\ Match[]68 * @return Porutham\BasicMatch[] 69 69 */ 70 70 public function getMatches() -
astrology/trunk/dependencies/vendor/prokerala/astrology-sdk/src/Api/Astrology/Result/HoroscopeMatching/Porutham.php
r2513947 r2659372 38 38 private $message; 39 39 /** 40 * @var Porutham\ Match[]40 * @var Porutham\BasicMatch[] 41 41 */ 42 42 private $matches; … … 46 46 * @param float $maximumPoints 47 47 * @param float $totalPoints 48 * @param Porutham\ Match[] $matches48 * @param Porutham\BasicMatch[] $matches 49 49 */ 50 50 public function __construct(\Prokerala\Api\Astrology\Result\HoroscopeMatching\Porutham\Profile $girlInfo, \Prokerala\Api\Astrology\Result\HoroscopeMatching\Porutham\Profile $boyInfo, $maximumPoints, $totalPoints, \Prokerala\Api\Astrology\Result\HoroscopeMatching\Message $message, array $matches) … … 93 93 } 94 94 /** 95 * @return Porutham\ Match[]95 * @return Porutham\BasicMatch[] 96 96 */ 97 97 public function getMatches() -
astrology/trunk/dependencies/vendor/prokerala/astrology-sdk/src/Api/Astrology/Result/HoroscopeMatching/ThirumanaPorutham.php
r2513947 r2659372 25 25 private $obtainedPoints; 26 26 /** 27 * @var Porutham\ Match[]27 * @var Porutham\BasicMatch[] 28 28 */ 29 29 private $matches; … … 37 37 * @param float $maximumPoints 38 38 * @param float $obtainedPoints 39 * @param Porutham\ Match[] $matches39 * @param Porutham\BasicMatch[] $matches 40 40 */ 41 41 public function __construct($maximumPoints, $obtainedPoints, \Prokerala\Api\Astrology\Result\HoroscopeMatching\Message $message, array $matches) … … 68 68 } 69 69 /** 70 * @return Porutham\ Match[]70 * @return Porutham\BasicMatch[] 71 71 */ 72 72 public function getMatches() -
astrology/trunk/dependencies/vendor/prokerala/astrology-sdk/src/Api/Astrology/Result/Panchang/Panchang.php
r2513947 r2659372 72 72 } 73 73 /** 74 * @return mixed74 * @return string 75 75 */ 76 76 public function getVaara() -
astrology/trunk/dependencies/vendor/prokerala/astrology-sdk/src/Api/Astrology/Traits/Service/TimeZoneAwareTrait.php
r2513947 r2659372 41 41 { 42 42 $transformer->setParamConverter('string', \DateTimeInterface::class, function ($data) { 43 return new \DateTimeImmutable($data,$this->getTimeZone());43 return (new \DateTimeImmutable($data))->setTimezone($this->getTimeZone()); 44 44 }); 45 45 } -
astrology/trunk/dependencies/vendor/prokerala/astrology-sdk/src/Api/Astrology/Transformer.php
r2612549 r2659372 69 69 } 70 70 /** 71 * @param string $class 71 * @param string $className 72 72 * @param \stdClass $data 73 73 * … … 127 127 } 128 128 /** 129 * @param ReflectionMethod $docComment130 129 * @param string $namespace 131 130 * -
astrology/trunk/dependencies/vendor/prokerala/astrology-sdk/src/Common/Api/Client.php
r2513947 r2659372 44 44 * @param array $input request parameters 45 45 * 46 * @return array46 * @return \stdClass 47 47 */ 48 48 public function process($path, $input) -
astrology/trunk/dependencies/vendor/prokerala/astrology-sdk/thirumana-porutham.php
r2513947 r2659372 16 16 use Prokerala\Common\Api\Exception\RateLimitExceededException; 17 17 include 'prepend.inc.php'; 18 /** @var \Prokerala\Common\Api\Client $client */ 18 19 /** 19 20 * Thirumana Porutham. -
astrology/trunk/dependencies/vendor/symfony/cache-contracts/CacheTrait.php
r2513947 r2659372 25 25 /** 26 26 * {@inheritdoc} 27 * 28 * @return mixed 27 29 */ 28 30 public function get(string $key, callable $callback, float $beta = null, array &$metadata = null) -
astrology/trunk/dependencies/vendor/symfony/cache-contracts/ItemInterface.php
r2513947 r2659372 24 24 * References the Unix timestamp stating when the item will expire. 25 25 */ 26 const METADATA_EXPIRY = 'expiry';26 public const METADATA_EXPIRY = 'expiry'; 27 27 /** 28 28 * References the time the item took to be created, in milliseconds. 29 29 */ 30 const METADATA_CTIME = 'ctime';30 public const METADATA_CTIME = 'ctime'; 31 31 /** 32 32 * References the list of tags that were assigned to the item, as string[]. 33 33 */ 34 const METADATA_TAGS = 'tags';34 public const METADATA_TAGS = 'tags'; 35 35 /** 36 36 * Reserved characters that cannot be used in a key or tag. 37 37 */ 38 const RESERVED_CHARACTERS = '{}()/\\@:';38 public const RESERVED_CHARACTERS = '{}()/\\@:'; 39 39 /** 40 40 * Adds a tag to a cache item. -
astrology/trunk/dependencies/vendor/symfony/cache/Adapter/AbstractAdapter.php
r2612549 r2659372 63 63 if (null === $item->expiry) { 64 64 $ttl = 0 < $defaultLifetime ? $defaultLifetime : 0; 65 } elseif ( 0 ===$item->expiry) {65 } elseif (!$item->expiry) { 66 66 $ttl = 0; 67 67 } elseif (0 >= ($ttl = (int) (0.1 + $item->expiry - $now))) { -
astrology/trunk/dependencies/vendor/symfony/cache/Adapter/AbstractTagAwareAdapter.php
r2612549 r2659372 70 70 if (null === $item->expiry) { 71 71 $ttl = 0 < $defaultLifetime ? $defaultLifetime : 0; 72 } elseif ( 0 ===$item->expiry) {72 } elseif (!$item->expiry) { 73 73 $ttl = 0; 74 74 } elseif (0 >= ($ttl = (int) (0.1 + $item->expiry - $now))) { -
astrology/trunk/dependencies/vendor/symfony/cache/Adapter/ArrayAdapter.php
r2612549 r2659372 105 105 $value = $item["\x00*\x00value"]; 106 106 $expiry = $item["\x00*\x00expiry"]; 107 if (0 === $expiry) { 108 $expiry = \PHP_INT_MAX; 109 } 110 if (null !== $expiry && $expiry <= \microtime(\true)) { 111 $this->deleteItem($key); 112 return \true; 107 if (null !== $expiry) { 108 if (!$expiry) { 109 $expiry = \PHP_INT_MAX; 110 } elseif ($expiry <= \microtime(\true)) { 111 $this->deleteItem($key); 112 return \true; 113 } 113 114 } 114 115 if ($this->storeSerialized && null === ($value = $this->freeze($value, $key))) { -
astrology/trunk/dependencies/vendor/symfony/cache/Adapter/ProxyAdapter.php
r2612549 r2659372 77 77 } 78 78 $innerItem->set($item["\x00*\x00value"]); 79 $innerItem->expiresAt(null !== $item["\x00*\x00expiry"] ? \DateTime::createFromFormat('U.u', \sprintf('%.6F', 0 === $item["\x00*\x00expiry"] ? \PHP_INT_MAX :$item["\x00*\x00expiry"])) : null);79 $innerItem->expiresAt(null !== $item["\x00*\x00expiry"] ? \DateTime::createFromFormat('U.u', \sprintf('%.6F', $item["\x00*\x00expiry"])) : null); 80 80 }, 81 81 null, -
astrology/trunk/dependencies/vendor/symfony/cache/Adapter/TagAwareAdapter.php
r2612549 r2659372 126 126 public function hasItem($key) 127 127 { 128 if ( $this->deferred) {128 if (\is_string($key) && isset($this->deferred[$key])) { 129 129 $this->commit(); 130 130 } … … 161 161 public function getItems(array $keys = []) 162 162 { 163 if ($this->deferred) {164 $this->commit();165 }166 163 $tagKeys = []; 164 $commit = \false; 167 165 foreach ($keys as $key) { 168 166 if ('' !== $key && \is_string($key)) { 167 $commit = $commit || isset($this->deferred[$key]); 169 168 $key = static::TAGS_PREFIX . $key; 170 169 $tagKeys[$key] = $key; 171 170 } 171 } 172 if ($commit) { 173 $this->commit(); 172 174 } 173 175 try { -
astrology/trunk/dependencies/vendor/symfony/cache/LockRegistry.php
r2612549 r2659372 56 56 } 57 57 $key = self::$files ? \abs(\crc32($item->getKey())) % \count(self::$files) : -1; 58 if ($key < 0 || (self::$lockedFiles[$key] ?? \false)|| !($lock = self::open($key))) {58 if ($key < 0 || self::$lockedFiles || !($lock = self::open($key))) { 59 59 return $callback($item, $save); 60 60 } -
astrology/trunk/dependencies/vendor/symfony/cache/Traits/AbstractAdapterTrait.php
r2612549 r2659372 35 35 public function getItem($key) 36 36 { 37 if ($this->deferred) { 37 $id = $this->getId($key); 38 if (isset($this->deferred[$key])) { 38 39 $this->commit(); 39 40 } 40 $id = $this->getId($key);41 41 $f = $this->createCacheItem; 42 42 $isHit = \false; … … 57 57 public function getItems(array $keys = []) 58 58 { 59 if ($this->deferred) {60 $this->commit();61 }62 59 $ids = []; 60 $commit = \false; 63 61 foreach ($keys as $key) { 64 62 $ids[] = $this->getId($key); 63 $commit = $commit || isset($this->deferred[$key]); 64 } 65 if ($commit) { 66 $this->commit(); 65 67 } 66 68 try { -
astrology/trunk/dependencies/vendor/symfony/cache/Traits/AbstractTrait.php
r2513947 r2659372 251 251 \Prokerala\Astrology\Vendor\Symfony\Component\Cache\CacheItem::validateKey($key); 252 252 $this->ids[$key] = $key; 253 if (\count($this->ids) > 1000) { 254 \array_splice($this->ids, 0, 500); 255 // stop memory leak if there are many keys 256 } 253 257 if (null === $this->maxIdLength) { 254 258 return $this->namespace . $this->namespaceVersion . $key; -
astrology/trunk/dependencies/vendor/symfony/cache/Traits/ApcuTrait.php
r2612549 r2659372 49 49 try { 50 50 $values = []; 51 foreach (\apcu_fetch($ids, $ok) ?: [] as $k => $v) { 51 $ids = \array_flip($ids); 52 foreach (\apcu_fetch(\array_keys($ids), $ok) ?: [] as $k => $v) { 53 if (!isset($ids[$k])) { 54 // work around https://github.com/krakjoe/apcu/issues/247 55 $k = \key($ids); 56 } 57 unset($ids[$k]); 52 58 if (null !== $v || $ok) { 53 59 $values[$k] = $v; -
astrology/trunk/dependencies/vendor/symfony/cache/Traits/ContractsTrait.php
r2513947 r2659372 29 29 doGet as private contractsGet; 30 30 } 31 private $callbackWrapper = [\Prokerala\Astrology\Vendor\Symfony\Component\Cache\LockRegistry::class, 'compute'];31 private $callbackWrapper; 32 32 private $computing = []; 33 33 /** … … 38 38 public function setCallbackWrapper(?callable $callbackWrapper) : callable 39 39 { 40 if (!isset($this->callbackWrapper)) { 41 $this->callbackWrapper = \Closure::fromCallable([\Prokerala\Astrology\Vendor\Symfony\Component\Cache\LockRegistry::class, 'compute']); 42 if (\in_array(\PHP_SAPI, ['cli', 'phpdbg'], \true)) { 43 $this->setCallbackWrapper(null); 44 } 45 } 40 46 $previousWrapper = $this->callbackWrapper; 41 $this->callbackWrapper = $callbackWrapper ?? function (callable $callback, \Prokerala\Astrology\Vendor\Symfony\Contracts\Cache\ItemInterface $item, bool &$save, \Prokerala\Astrology\Vendor\Symfony\Contracts\Cache\CacheInterface $pool, \Closure $setMetadata, ?\Psr\Log\LoggerInterface $logger) {47 $this->callbackWrapper = $callbackWrapper ?? static function (callable $callback, \Prokerala\Astrology\Vendor\Symfony\Contracts\Cache\ItemInterface $item, bool &$save, \Prokerala\Astrology\Vendor\Symfony\Contracts\Cache\CacheInterface $pool, \Closure $setMetadata, ?\Psr\Log\LoggerInterface $logger) { 42 48 return $callback($item, $save); 43 49 }; … … 67 73 $this->computing[$key] = $key; 68 74 $startTime = \microtime(\true); 75 if (!isset($this->callbackWrapper)) { 76 $this->setCallbackWrapper($this->setCallbackWrapper(null)); 77 } 69 78 try { 70 79 $value = ($this->callbackWrapper)($callback, $item, $save, $pool, function (\Prokerala\Astrology\Vendor\Symfony\Component\Cache\CacheItem $item) use($setMetadata, $startTime, &$metadata) { -
astrology/trunk/dependencies/vendor/symfony/cache/Traits/MemcachedTrait.php
r2612549 r2659372 224 224 { 225 225 try { 226 $encodedIds = \array_map( 'self::encodeKey', $ids);226 $encodedIds = \array_map([__CLASS__, 'encodeKey'], $ids); 227 227 $encodedResult = $this->checkResultCode($this->getClient()->getMulti($encodedIds)); 228 228 $result = []; … … 248 248 { 249 249 $ok = \true; 250 $encodedIds = \array_map( 'self::encodeKey', $ids);250 $encodedIds = \array_map([__CLASS__, 'encodeKey'], $ids); 251 251 foreach ($this->checkResultCode($this->getClient()->deleteMulti($encodedIds)) as $result) { 252 252 if (\Memcached::RES_SUCCESS !== $result && \Memcached::RES_NOTFOUND !== $result) { -
astrology/trunk/dependencies/vendor/symfony/cache/Traits/PdoTrait.php
r2612549 r2659372 131 131 throw new \DomainException(\sprintf('Creating the cache table is currently not implemented for PDO driver "%s".', $this->driver)); 132 132 } 133 if ( \method_exists($conn, 'executeStatement')) {133 if ($conn instanceof \Prokerala\Astrology\Vendor\Doctrine\DBAL\Connection && \method_exists($conn, 'executeStatement')) { 134 134 $conn->executeStatement($sql); 135 135 } else { … … 243 243 } 244 244 try { 245 if ( \method_exists($conn, 'executeStatement')) {245 if ($conn instanceof \Prokerala\Astrology\Vendor\Doctrine\DBAL\Connection && \method_exists($conn, 'executeStatement')) { 246 246 $conn->executeStatement($sql); 247 247 } else { -
astrology/trunk/dependencies/vendor/symfony/cache/Traits/RedisTrait.php
r2612549 r2659372 118 118 } 119 119 if (isset($params['host']) || isset($params['path'])) { 120 if (!isset($params['dbindex']) && isset($params['path']) && \preg_match('#/(\\d+)$#', $params['path'], $m)) { 121 $params['dbindex'] = $m[1]; 122 $params['path'] = \substr($params['path'], 0, -\strlen($m[0])); 120 if (!isset($params['dbindex']) && isset($params['path'])) { 121 if (\preg_match('#/(\\d+)$#', $params['path'], $m)) { 122 $params['dbindex'] = $m[1]; 123 $params['path'] = \substr($params['path'], 0, -\strlen($m[0])); 124 } elseif (isset($params['host'])) { 125 throw new \Prokerala\Astrology\Vendor\Symfony\Component\Cache\Exception\InvalidArgumentException(\sprintf('Invalid Redis DSN: "%s", the "dbindex" parameter must be a number.', $dsn)); 126 } 123 127 } 124 128 if (isset($params['host'])) { -
astrology/trunk/dependencies/vendor/symfony/polyfill-php73/Resources/stubs/JsonException.php
r2612549 r2659372 11 11 * file that was distributed with this source code. 12 12 */ 13 class JsonException extends \Exception 14 { 13 if (\PHP_VERSION_ID < 70300) { 14 class JsonException extends \Exception 15 { 16 } 15 17 } -
astrology/trunk/dependencies/vendor/symfony/polyfill-php80/Resources/stubs/UnhandledMatchError.php
r2513947 r2659372 3 3 namespace Prokerala\Astrology\Vendor; 4 4 5 class UnhandledMatchError extends \Error 6 { 5 if (\PHP_VERSION_ID < 80000) { 6 class UnhandledMatchError extends \Error 7 { 8 } 7 9 } -
astrology/trunk/dependencies/vendor/symfony/polyfill-php80/Resources/stubs/ValueError.php
r2513947 r2659372 3 3 namespace Prokerala\Astrology\Vendor; 4 4 5 class ValueError extends \Error 6 { 5 if (\PHP_VERSION_ID < 80000) { 6 class ValueError extends \Error 7 { 8 } 7 9 } -
astrology/trunk/dependencies/vendor/symfony/service-contracts/ServiceLocatorTrait.php
r2513947 r2659372 45 45 /** 46 46 * {@inheritdoc} 47 * 48 * @return mixed 47 49 */ 48 50 public function get($id) -
astrology/trunk/dependencies/vendor/symfony/service-contracts/ServiceSubscriberInterface.php
r2513947 r2659372 47 47 * * ['Psr\Log\LoggerInterface' => '?Psr\Log\LoggerInterface'] 48 48 * 49 * @return arrayThe required service types, optionally keyed by service names49 * @return string[] The required service types, optionally keyed by service names 50 50 */ 51 51 public static function getSubscribedServices(); -
astrology/trunk/dependencies/vendor/symfony/service-contracts/ServiceSubscriberTrait.php
r2513947 r2659372 22 22 /** @var ContainerInterface */ 23 23 protected $container; 24 /** 25 * {@inheritdoc} 26 */ 24 27 public static function getSubscribedServices() : array 25 28 { … … 33 36 continue; 34 37 } 35 if (self::class === $method->getDeclaringClass()->name && ($returnType = $method->getReturnType()) && !$returnType->isBuiltin()) {36 $services[self::class . '::' . $method->name] = '?' . ($returnType instanceof \ReflectionNamedType ? $returnType->getName() : $type);38 if (self::class !== $method->getDeclaringClass()->name) { 39 continue; 37 40 } 41 if (!($returnType = $method->getReturnType()) instanceof \ReflectionNamedType) { 42 continue; 43 } 44 if ($returnType->isBuiltin()) { 45 continue; 46 } 47 $services[self::class . '::' . $method->name] = '?' . $returnType->getName(); 38 48 } 39 49 return $services; … … 41 51 /** 42 52 * @required 53 * 54 * @return ContainerInterface|null 43 55 */ 44 56 public function setContainer(\Psr\Container\ContainerInterface $container) -
astrology/trunk/dependencies/vendor/symfony/service-contracts/Test/ServiceLocatorTest.php
r2513947 r2659372 16 16 abstract class ServiceLocatorTest extends \Prokerala\Astrology\Vendor\PHPUnit\Framework\TestCase 17 17 { 18 /** 19 * @return ContainerInterface 20 */ 18 21 protected function getServiceLocator(array $factories) 19 22 { … … 60 63 { 61 64 if (!$this->getExpectedException()) { 62 $this->expectException( 'Psr\\Container\\NotFoundExceptionInterface');65 $this->expectException(\Psr\Container\NotFoundExceptionInterface::class); 63 66 $this->expectExceptionMessage('The service "foo" has a dependency on a non-existent service "bar". This locator only knows about the "foo" service.'); 64 67 } … … 70 73 public function testThrowsOnCircularReference() 71 74 { 72 $this->expectException( 'Psr\\Container\\ContainerExceptionInterface');75 $this->expectException(\Psr\Container\ContainerExceptionInterface::class); 73 76 $this->expectExceptionMessage('Circular reference detected for service "bar", path: "bar -> baz -> bar".'); 74 77 $locator = $this->getServiceLocator(['foo' => function () use(&$locator) { -
astrology/trunk/dependencies/vendor/symfony/var-exporter/Internal/Exporter.php
r2612549 r2659372 83 83 $properties = []; 84 84 $sleep = null; 85 $arrayValue = (array) $value;86 85 $proto = \Prokerala\Astrology\Vendor\Symfony\Component\VarExporter\Internal\Registry::$prototypes[$class]; 87 86 if (($value instanceof \ArrayIterator || $value instanceof \ArrayObject) && null !== $proto) { 88 87 // ArrayIterator and ArrayObject need special care because their "flags" 89 88 // option changes the behavior of the (array) casting operator. 90 $properties = self::getArrayObjectProperties($value, $arrayValue, $proto);89 [$arrayValue, $properties] = self::getArrayObjectProperties($value, $proto); 91 90 // populates Registry::$prototypes[$class] with a new instance 92 91 \Prokerala\Astrology\Vendor\Symfony\Component\VarExporter\Internal\Registry::getClassReflector($class, \Prokerala\Astrology\Vendor\Symfony\Component\VarExporter\Internal\Registry::$instantiableWithoutConstructor[$class], \Prokerala\Astrology\Vendor\Symfony\Component\VarExporter\Internal\Registry::$cloneable[$class]); … … 99 98 } 100 99 $properties = ['SplObjectStorage' => ["\x00" => $properties]]; 100 $arrayValue = (array) $value; 101 101 } elseif ($value instanceof \Serializable || $value instanceof \__PHP_Incomplete_Class) { 102 102 ++$objectsCount; … … 104 104 $value = new \Prokerala\Astrology\Vendor\Symfony\Component\VarExporter\Internal\Reference($id); 105 105 goto handle_value; 106 } 107 if (\method_exists($class, '__sleep')) { 108 if (!\is_array($sleep = $value->__sleep())) { 109 \trigger_error('serialize(): __sleep should return an array only containing the names of instance-variables to serialize', \E_USER_NOTICE); 110 $value = null; 111 goto handle_value; 112 } 113 foreach ($sleep as $name) { 114 if (\property_exists($value, $name) && !$reflector->hasProperty($name)) { 115 $arrayValue[$name] = $value->{$name}; 106 } else { 107 if (\method_exists($class, '__sleep')) { 108 if (!\is_array($sleep = $value->__sleep())) { 109 \trigger_error('serialize(): __sleep should return an array only containing the names of instance-variables to serialize', \E_USER_NOTICE); 110 $value = null; 111 goto handle_value; 116 112 } 117 } 118 $sleep = \array_flip($sleep); 113 $sleep = \array_flip($sleep); 114 } 115 $arrayValue = (array) $value; 119 116 } 120 117 $proto = (array) $proto; … … 200 197 if (\is_string($value)) { 201 198 $code = \sprintf("'%s'", \addcslashes($value, "'\\")); 202 $code = \preg_replace_callback( '/([\\0\\r\\n]++)(.)/', function ($m) use($subIndent) {203 $m[1] = \sprintf('\'."%s".\'', \str_replace(["\x00", "\r", "\n", '\\n\\'], ['\\0', '\\r', '\\n', '\\n"' . "\n" . $subIndent . '."\\'], $m[1]));199 $code = \preg_replace_callback("/((?:[\\0\\r\\n]|||||||||)++)(.)/", function ($m) use($subIndent) { 200 $m[1] = \sprintf('\'."%s".\'', \str_replace(["\x00", "\r", "\n", "", "", "", "", "", "", "", "", "", '\\n\\'], ['\\0', '\\r', '\\n', '\\u{202A}', '\\u{202B}', '\\u{202D}', '\\u{202E}', '\\u{2066}', '\\u{2067}', '\\u{2068}', '\\u{202C}', '\\u{2069}', '\\n"' . "\n" . $subIndent . '."\\'], $m[1])); 204 201 if ("'" === $m[2]) { 205 202 return \substr($m[1], 0, -2); … … 254 251 $r = '\\' . \Prokerala\Astrology\Vendor\Symfony\Component\VarExporter\Internal\Registry::class; 255 252 $j = -1; 256 foreach ($value as $k => $class) {253 foreach ($value->classes as $k => $class) { 257 254 if (':' === ($class[1] ?? null)) { 258 255 $serializables[$k] = $class; … … 324 321 * @param \ArrayIterator|\ArrayObject $proto 325 322 */ 326 private static function getArrayObjectProperties($value, array &$arrayValue,$proto) : array323 private static function getArrayObjectProperties($value, $proto) : array 327 324 { 328 325 $reflector = $value instanceof \ArrayIterator ? 'ArrayIterator' : 'ArrayObject'; 329 326 $reflector = \Prokerala\Astrology\Vendor\Symfony\Component\VarExporter\Internal\Registry::$reflectors[$reflector] ?? \Prokerala\Astrology\Vendor\Symfony\Component\VarExporter\Internal\Registry::getClassReflector($reflector); 330 $properties = [$arrayValue , $reflector->getMethod('getFlags')->invoke($value), $value instanceof \ArrayObject ? $reflector->getMethod('getIteratorClass')->invoke($value) : 'ArrayIterator'];327 $properties = [$arrayValue = (array) $value, $reflector->getMethod('getFlags')->invoke($value), $value instanceof \ArrayObject ? $reflector->getMethod('getIteratorClass')->invoke($value) : 'ArrayIterator']; 331 328 $reflector = $reflector->getMethod('setFlags'); 332 329 $reflector->invoke($proto, \ArrayObject::STD_PROP_LIST); … … 347 344 $properties = [$reflector->class => ["\x00" => $properties]]; 348 345 } 349 return $properties;346 return [$arrayValue, $properties]; 350 347 } 351 348 } -
astrology/trunk/dependencies/vendor/symfony/var-exporter/Internal/Registry.php
r2513947 r2659372 25 25 public static $cloneable = []; 26 26 public static $instantiableWithoutConstructor = []; 27 public $classes = []; 27 28 public function __construct(array $classes) 28 29 { 29 foreach ($classes as $i => $class) { 30 $this->{$i} = $class; 31 } 30 $this->classes = $classes; 32 31 } 33 32 public static function unserialize($objects, $serializables) -
astrology/trunk/readme.txt
r2612549 r2659372 3 3 Tags: astrology, prokerala 4 4 Requires at least: 5.5 5 Tested up to: 5.8. 16 Stable tag: 1.0. 55 Tested up to: 5.8.3 6 Stable tag: 1.0.6 7 7 Requires PHP: 7.2.0 8 8 License: GPLV2+ … … 117 117 == Changelog == 118 118 119 = 1.0.6 = 120 * Fix datetimes reverting to UTC 121 119 122 = 1.0.5 = 120 123 * Location parameters where not being passed correctly -
astrology/trunk/src/Admin/SettingsPage.php
r2612549 r2659372 236 236 */ 237 237 public function render_timezone() { // phpcs:ignore Generic.Metrics.CyclomaticComplexity.TooHigh 238 239 $regions = $this->get_timezone_list(); 240 $current = $this->config->get_option( 'timezone' ); 241 242 echo '<select id="astrology_plugin_setting_timezone" name="astrology_plugin_options[timezone]">'; 243 foreach ( $regions as $region => $zones ) { 244 echo "<optgroup label='{$region}'>"; 245 foreach ( $zones as $zone => $label ) { 246 echo "<option value='{$zone}'" . ( $current === $zone ? ' selected' : '' ) . ">{$label}</option>"; 247 } 248 echo '</optgroup>'; 249 } 250 echo '</select>'; 251 } 252 253 /** 254 * Generate list of timezones 255 * 256 * @since 1.0.6 257 * 258 * @return array 259 */ 260 private function get_timezone_list() { 261 238 262 $tz_list = \DateTimeZone::listIdentifiers( \DateTimeZone::ALL ); 239 263 $now = new \DateTimeImmutable(); … … 256 280 ); 257 281 258 $current = $this->config->get_option( 'timezone' ); 259 260 echo '<select id="astrology_plugin_setting_timezone" name="astrology_plugin_options[timezone]">'; 261 foreach ( $regions as $region => $zones ) { 262 echo "<optgroup label='{$region}'>"; 263 foreach ( $zones as $zone => $label ) { 264 echo "<option value='{$zone}'" . ( $current === $zone ? ' selected' : '' ) . ">{$label}</option>"; 265 } 266 echo '</optgroup>'; 267 } 268 echo '</select>'; 282 return $regions; 269 283 } 270 284 -
astrology/trunk/src/Front/Report/AuspiciousPeriodController.php
r2513947 r2659372 89 89 $method = new AuspiciousPeriod( $client ); 90 90 $method->setAyanamsa( $this->get_input_ayanamsa() ); 91 $method->setTimeZone( $tz ); 91 92 $result = $method->process( $location, $datetime ); 92 93 -
astrology/trunk/src/Front/Report/ChoghadiyaController.php
r2513947 r2659372 89 89 $method = new Choghadiya( $client ); 90 90 $method->setAyanamsa( $this->get_input_ayanamsa() ); 91 $method->setTimeZone( $tz ); 91 92 $result = $method->process( $location, $datetime ); 92 93 -
astrology/trunk/src/Front/Report/InauspiciousPeriodController.php
r2513947 r2659372 90 90 $method = new InauspiciousPeriod( $client ); 91 91 $method->setAyanamsa( $this->get_input_ayanamsa() ); 92 $method->setTimeZone( $tz ); 92 93 $result = $method->process( $location, $datetime ); 93 94 -
astrology/trunk/src/Front/Report/KundliMatchingController.php
r2513947 r2659372 105 105 $result = $method->process( $girl_profile, $boy_profile, $advanced ); 106 106 107 $girl_info = $result->getGirlInfo(); 108 $boy_info = $result->getBoyInfo(); 109 $boy_koot = $boy_info->getKoot(); 110 $girl_koot = $girl_info->getKoot(); 111 112 $girl_nakshatra = $girl_info->getNakshatra(); 113 $boy_nakshatra = $boy_info->getNakshatra(); 114 $girl_nakshatra_lord = $girl_nakshatra->getLord(); 115 $boy_nakshatra_lord = $boy_nakshatra->getLord(); 116 117 $girl_rasi = $girl_info->getRasi(); 118 $boy_rasi = $boy_info->getRasi(); 119 $girl_rasi_lord = $girl_rasi->getLord(); 120 $boy_rasi_lord = $boy_rasi->getLord(); 121 122 $compatibility_result['boyInfo']['koot'] = $boy_koot->getKoot(); 123 $compatibility_result['girlInfo']['koot'] = $girl_koot->getKoot(); 124 125 $compatibility_result['girlInfo']['nakshatra'] = [ 126 'id' => $girl_nakshatra->getId(), 127 'name' => $girl_nakshatra->getName(), 128 'pada' => $girl_nakshatra->getPada(), 129 'lord' => [ 130 'id' => $girl_nakshatra_lord->getId(), 131 'name' => $girl_nakshatra_lord->getName(), 132 'vedicName' => $girl_nakshatra_lord->getVedicName(), 133 ], 134 ]; 135 136 $compatibility_result['boyInfo']['nakshatra'] = [ 137 'id' => $boy_nakshatra->getId(), 138 'name' => $boy_nakshatra->getName(), 139 'pada' => $boy_nakshatra->getPada(), 140 'lord' => [ 141 'id' => $boy_nakshatra_lord->getId(), 142 'name' => $boy_nakshatra_lord->getName(), 143 'vedicName' => $boy_nakshatra_lord->getVedicName(), 144 ], 145 ]; 146 147 $compatibility_result['girlInfo']['rasi'] = [ 148 'id' => $girl_rasi->getId(), 149 'name' => $girl_rasi->getName(), 150 'lord' => [ 151 'id' => $girl_rasi_lord->getId(), 152 'name' => $girl_rasi_lord->getName(), 153 'vedicName' => $girl_rasi_lord->getVedicName(), 154 ], 155 ]; 156 157 $compatibility_result['boyInfo']['rasi'] = [ 158 'id' => $boy_rasi->getId(), 159 'name' => $boy_rasi->getName(), 160 'lord' => [ 161 'id' => $boy_rasi_lord->getId(), 162 'name' => $boy_rasi_lord->getName(), 163 'vedicName' => $boy_rasi_lord->getVedicName(), 164 ], 165 ]; 166 167 $message = $result->getMessage(); 168 $compatibility_result['message'] = [ 169 'type' => $message->getType(), 170 'description' => $message->getDescription(), 171 ]; 172 173 $guna_milan = $result->getGunaMilan(); 174 $compatibility_result['gunaMilan'] = [ 175 'totalPoints' => $guna_milan->getTotalPoints(), 176 'maximumPoints' => $guna_milan->getMaximumPoints(), 177 ]; 178 179 if ( $advanced ) { 180 $ar_guna = $guna_milan->getGuna(); 181 182 foreach ( $ar_guna as $guna ) { 183 $compatibility_result['gunaMilan']['guna'][] = [ 184 'id' => $guna->getId(), 185 'name' => $guna->getName(), 186 'girlKoot' => $guna->getGirlKoot(), 187 'boyKoot' => $guna->getBoyKoot(), 188 'maximumPoints' => $guna->getMaximumPoints(), 189 'obtainedPoints' => $guna->getObtainedPoints(), 190 'description' => $guna->getDescription(), 191 ]; 192 } 193 $compatibility_result['exceptions'] = $result->getExceptions(); 194 195 $girl_mangal_dosha_details = $result->getGirlMangalDoshaDetails(); 196 $boy_mangal_dosha_details = $result->getBoyMangalDoshaDetails(); 197 198 $compatibility_result['girlMangalDoshaDetails'] = [ 199 'hasMangalDosha' => $girl_mangal_dosha_details->hasDosha(), 200 'hasException' => $girl_mangal_dosha_details->hasException(), 201 'mangalDoshaType' => $girl_mangal_dosha_details->getDoshaType(), 202 'description' => $girl_mangal_dosha_details->getDescription(), 203 ]; 204 205 $compatibility_result['boyMangalDoshaDetails'] = [ 206 'hasMangalDosha' => $boy_mangal_dosha_details->hasDosha(), 207 'hasException' => $boy_mangal_dosha_details->hasException(), 208 'mangalDoshaType' => $boy_mangal_dosha_details->getDoshaType(), 209 'description' => $boy_mangal_dosha_details->getDescription(), 210 ]; 211 } 107 $compatibility_result = $this->get_compatibility_result( $result, $advanced ); 212 108 213 109 return $this->render( … … 222 118 ); 223 119 } 120 121 /** 122 * Get compatability result 123 * 124 * @param object $result API Result. 125 * @param int $advanced Advanced Result. 126 * @return array 127 */ 128 private function get_compatibility_result( $result, $advanced ) { 129 $compatibility_result = []; 130 $girl_info = $result->getGirlInfo(); 131 $girl_nakshatra = $girl_info->getNakshatra(); 132 $girl_nakshatra_lord = $girl_nakshatra->getLord(); 133 $girl_rasi = $girl_info->getRasi(); 134 $girl_rasi_lord = $girl_rasi->getLord(); 135 $girl_koot = $girl_info->getKoot(); 136 137 $compatibility_result['girlInfo']['koot'] = $girl_koot->getKoot(); 138 $compatibility_result['girlInfo']['nakshatra'] = [ 139 'id' => $girl_nakshatra->getId(), 140 'name' => $girl_nakshatra->getName(), 141 'pada' => $girl_nakshatra->getPada(), 142 'lord' => [ 143 'id' => $girl_nakshatra_lord->getId(), 144 'name' => $girl_nakshatra_lord->getName(), 145 'vedicName' => $girl_nakshatra_lord->getVedicName(), 146 ], 147 ]; 148 149 $compatibility_result['girlInfo']['rasi'] = [ 150 'id' => $girl_rasi->getId(), 151 'name' => $girl_rasi->getName(), 152 'lord' => [ 153 'id' => $girl_rasi_lord->getId(), 154 'name' => $girl_rasi_lord->getName(), 155 'vedicName' => $girl_rasi_lord->getVedicName(), 156 ], 157 ]; 158 159 $boy_info = $result->getBoyInfo(); 160 $boy_nakshatra = $boy_info->getNakshatra(); 161 $boy_nakshatra_lord = $boy_nakshatra->getLord(); 162 $boy_rasi = $boy_info->getRasi(); 163 $boy_rasi_lord = $boy_rasi->getLord(); 164 165 $boy_koot = $boy_info->getKoot(); 166 $compatibility_result['boyInfo']['koot'] = $boy_koot->getKoot(); 167 $compatibility_result['boyInfo']['nakshatra'] = [ 168 'id' => $boy_nakshatra->getId(), 169 'name' => $boy_nakshatra->getName(), 170 'pada' => $boy_nakshatra->getPada(), 171 'lord' => [ 172 'id' => $boy_nakshatra_lord->getId(), 173 'name' => $boy_nakshatra_lord->getName(), 174 'vedicName' => $boy_nakshatra_lord->getVedicName(), 175 ], 176 ]; 177 $compatibility_result['boyInfo']['rasi'] = [ 178 'id' => $boy_rasi->getId(), 179 'name' => $boy_rasi->getName(), 180 'lord' => [ 181 'id' => $boy_rasi_lord->getId(), 182 'name' => $boy_rasi_lord->getName(), 183 'vedicName' => $boy_rasi_lord->getVedicName(), 184 ], 185 ]; 186 187 $message = $result->getMessage(); 188 $compatibility_result['message'] = [ 189 'type' => $message->getType(), 190 'description' => $message->getDescription(), 191 ]; 192 193 $guna_milan = $result->getGunaMilan(); 194 $compatibility_result['gunaMilan'] = [ 195 'totalPoints' => $guna_milan->getTotalPoints(), 196 'maximumPoints' => $guna_milan->getMaximumPoints(), 197 ]; 198 199 if ( ! $advanced ) { 200 return $compatibility_result; 201 } 202 203 $ar_guna = $guna_milan->getGuna(); 204 205 foreach ( $ar_guna as $guna ) { 206 $compatibility_result['gunaMilan']['guna'][] = [ 207 'id' => $guna->getId(), 208 'name' => $guna->getName(), 209 'girlKoot' => $guna->getGirlKoot(), 210 'boyKoot' => $guna->getBoyKoot(), 211 'maximumPoints' => $guna->getMaximumPoints(), 212 'obtainedPoints' => $guna->getObtainedPoints(), 213 'description' => $guna->getDescription(), 214 ]; 215 } 216 $compatibility_result['exceptions'] = $result->getExceptions(); 217 218 $girl_mangal_dosha_details = $result->getGirlMangalDoshaDetails(); 219 $boy_mangal_dosha_details = $result->getBoyMangalDoshaDetails(); 220 221 $compatibility_result['girlMangalDoshaDetails'] = [ 222 'hasMangalDosha' => $girl_mangal_dosha_details->hasDosha(), 223 'hasException' => $girl_mangal_dosha_details->hasException(), 224 'mangalDoshaType' => $girl_mangal_dosha_details->getDoshaType(), 225 'description' => $girl_mangal_dosha_details->getDescription(), 226 ]; 227 228 $compatibility_result['boyMangalDoshaDetails'] = [ 229 'hasMangalDosha' => $boy_mangal_dosha_details->hasDosha(), 230 'hasException' => $boy_mangal_dosha_details->hasException(), 231 'mangalDoshaType' => $boy_mangal_dosha_details->getDoshaType(), 232 'description' => $boy_mangal_dosha_details->getDescription(), 233 ]; 234 235 return $compatibility_result; 236 } 224 237 } -
astrology/trunk/src/Front/Report/NakshatraPoruthamController.php
r2513947 r2659372 114 114 * @return string 115 115 */ 116 public function process( $options = [] ) { 116 public function process( $options = [] ) { // phpcs:ignore Generic.Metrics.CyclomaticComplexity.MaxExceeded 117 117 $client = $this->get_api_client(); 118 118 … … 131 131 $method = new NakshatraPorutham( $client ); 132 132 $result = $method->process( $girl_profile, $boy_profile, $advanced ); 133 134 $compatibility_result = $this->get_compatibility_result( $result, $advanced ); 135 136 return $this->render( 137 'result/nakshatra-porutham', 138 [ 139 'result' => $compatibility_result, 140 'result_type' => $result_type, 141 'options' => $this->get_options(), 142 ] 143 ); 144 } 145 146 /** 147 * Get compatability result 148 * 149 * @param object $result API Result. 150 * @param int $advanced Advanced Result. 151 * @return array 152 */ 153 private function get_compatibility_result( $result, $advanced ) { 133 154 134 155 $compatibility_result = []; … … 156 177 } 157 178 158 return $this->render( 159 'result/nakshatra-porutham', 160 [ 161 'result' => $compatibility_result, 162 'result_type' => $result_type, 163 'options' => $this->get_options(), 164 ] 165 ); 179 return $compatibility_result; 166 180 } 167 181 } -
astrology/trunk/src/Front/Report/PanchangController.php
r2513947 r2659372 93 93 $method = new Panchang( $client ); 94 94 $method->setAyanamsa( $this->get_input_ayanamsa() ); 95 $method->setTimeZone( $tz ); 95 96 $result = $method->process( $location, $datetime, $advanced ); 96 97 -
astrology/trunk/src/Front/Report/PoruthamController.php
r2513947 r2659372 105 105 $result = $method->process( $girl_profile, $boy_profile, $system, $advanced ); 106 106 107 $compatibility_result = $this->get_compatibility_result( $result, $advanced ); 108 109 return $this->render( 110 'result/porutham', 111 [ 112 'result' => $compatibility_result, 113 'result_type' => $result_type, 114 'girl_dob' => $girl_dob, 115 'boy_dob' => $boy_dob, 116 'options' => $this->get_options(), 117 ] 118 ); 119 } 120 121 /** 122 * Get compatability result 123 * 124 * @param object $result API Result. 125 * @param int $advanced Advanced Result. 126 * @return array 127 */ 128 private function get_compatibility_result( $result, $advanced ) { 107 129 $compatibility_result = []; 108 $girl_info = $result->getGirlInfo(); 109 $girl_nakshatra = $girl_info->getNakshatra(); 110 $girl_rasi = $girl_info->getRasi(); 111 112 $boy_info = $result->getBoyInfo(); 113 $boy_nakshatra = $boy_info->getNakshatra(); 114 $boy_rasi = $boy_info->getRasi(); 115 130 131 $girl_info = $result->getGirlInfo(); 132 $girl_nakshatra = $girl_info->getNakshatra(); 133 $girl_rasi = $girl_info->getRasi(); 116 134 $girl_nakshatra_lord = $girl_nakshatra->getLord(); 117 $boy_nakshatra_lord = $boy_nakshatra->getLord(); 118 119 $girl_rasi_lord = $girl_rasi->getLord(); 120 $boy_rasi_lord = $boy_rasi->getLord(); 135 $girl_rasi_lord = $girl_rasi->getLord(); 121 136 122 137 $compatibility_result['girlInfo'] = [ … … 142 157 ]; 143 158 144 $compatibility_result['boyInfo'] = [ 159 $boy_info = $result->getBoyInfo(); 160 $boy_nakshatra = $boy_info->getNakshatra(); 161 $boy_rasi = $boy_info->getRasi(); 162 $boy_nakshatra_lord = $boy_nakshatra->getLord(); 163 $boy_rasi_lord = $boy_rasi->getLord(); 164 165 $compatibility_result['boyInfo'] = [ 145 166 'nakshatra' => [ 146 167 'id' => $boy_nakshatra->getId(), … … 163 184 ], 164 185 ]; 186 165 187 $compatibility_result['maximumPoints'] = $result->getMaximumPoints(); 166 188 $compatibility_result['totalPoints'] = $result->getTotalPoints(); … … 187 209 } 188 210 189 return $this->render( 190 'result/porutham', 191 [ 192 'result' => $compatibility_result, 193 'result_type' => $result_type, 194 'girl_dob' => $girl_dob, 195 'boy_dob' => $boy_dob, 196 'options' => $this->get_options(), 197 ] 198 ); 211 return $compatibility_result; 199 212 } 200 213 } -
astrology/trunk/src/Front/Report/SadeSatiController.php
r2513947 r2659372 93 93 $method = new SadeSati( $client ); 94 94 $method->setAyanamsa( $this->get_input_ayanamsa() ); 95 $method->setTimeZone( $tz ); 95 96 $result = $method->process( $location, $datetime, $advanced ); 96 97 -
astrology/trunk/src/Front/Report/ThirumanaPoruthamController.php
r2513947 r2659372 115 115 * @return string 116 116 */ 117 public function process( $options = [] ) { 117 public function process( $options = [] ) { // phpcs:ignore Generic.Metrics.CyclomaticComplexity.MaxExceeded 118 118 $client = $this->get_api_client(); 119 119 … … 132 132 $method = new ThirumanaPorutham( $client ); 133 133 $result = $method->process( $girl_profile, $boy_profile, $advanced ); 134 135 $compatibility_result = $this->get_compatibility_result( $result, $advanced ); 136 137 return $this->render( 138 'result/thirumana-porutham', 139 [ 140 'result' => $compatibility_result, 141 'result_type' => $result_type, 142 'options' => $this->get_options(), 143 ] 144 ); 145 } 146 147 148 /** 149 * Get compatability result 150 * 151 * @param object $result API Result. 152 * @param int $advanced Advanced Result. 153 * @return array 154 */ 155 private function get_compatibility_result( $result, $advanced ) { 134 156 135 157 $compatibility_result = []; … … 155 177 } 156 178 157 return $this->render( 158 'result/thirumana-porutham', 159 [ 160 'result' => $compatibility_result, 161 'result_type' => $result_type, 162 'options' => $this->get_options(), 163 ] 164 ); 179 return $compatibility_result; 165 180 } 166 181 } -
astrology/trunk/src/vendor/autoload.php
r2612561 r2659372 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit 6a88b6845a58df8520cf6b713d0a8bfa::getLoader();7 return ComposerAutoloaderInitb0ae5ced78786f966cfb7da5a0828a2d::getLoader(); -
astrology/trunk/src/vendor/composer/autoload_real.php
r2612561 r2659372 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 6a88b6845a58df8520cf6b713d0a8bfa5 class ComposerAutoloaderInitb0ae5ced78786f966cfb7da5a0828a2d 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit 6a88b6845a58df8520cf6b713d0a8bfa', 'loadClassLoader'), true, true);25 spl_autoload_register(array('ComposerAutoloaderInitb0ae5ced78786f966cfb7da5a0828a2d', 'loadClassLoader'), true, true); 26 26 self::$loader = $loader = new \Prokerala_WP_Astrology_Composer\Autoload\ClassLoader(); 27 spl_autoload_unregister(array('ComposerAutoloaderInit 6a88b6845a58df8520cf6b713d0a8bfa', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInitb0ae5ced78786f966cfb7da5a0828a2d', 'loadClassLoader')); 28 28 29 29 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); … … 31 31 require_once __DIR__ . '/autoload_static.php'; 32 32 33 call_user_func(\Prokerala_WP_Astrology_Composer\Autoload\ComposerStaticInit 6a88b6845a58df8520cf6b713d0a8bfa::getInitializer($loader));33 call_user_func(\Prokerala_WP_Astrology_Composer\Autoload\ComposerStaticInitb0ae5ced78786f966cfb7da5a0828a2d::getInitializer($loader)); 34 34 } else { 35 35 $classMap = require __DIR__ . '/autoload_classmap.php'; -
astrology/trunk/src/vendor/composer/autoload_static.php
r2612561 r2659372 5 5 namespace Prokerala_WP_Astrology_Composer\Autoload; 6 6 7 class ComposerStaticInit 6a88b6845a58df8520cf6b713d0a8bfa7 class ComposerStaticInitb0ae5ced78786f966cfb7da5a0828a2d 8 8 { 9 9 public static $classMap = array ( … … 41 41 { 42 42 return \Closure::bind(function () use ($loader) { 43 $loader->classMap = ComposerStaticInit 6a88b6845a58df8520cf6b713d0a8bfa::$classMap;43 $loader->classMap = ComposerStaticInitb0ae5ced78786f966cfb7da5a0828a2d::$classMap; 44 44 45 45 }, null, ClassLoader::class);
Note: See TracChangeset
for help on using the changeset viewer.