Changeset 2952051
- Timestamp:
- 08/11/2023 08:10:47 AM (3 years ago)
- Location:
- astrology
- Files:
-
- 32 edited
- 1 copied
-
tags/1.1.3 (copied) (copied from astrology/trunk)
-
tags/1.1.3/astrology.php (modified) (2 diffs)
-
tags/1.1.3/dependencies/vendor/autoload.php (modified) (1 diff)
-
tags/1.1.3/dependencies/vendor/composer/ClassLoader.php (modified) (25 diffs)
-
tags/1.1.3/dependencies/vendor/composer/autoload_real.php (modified) (2 diffs)
-
tags/1.1.3/dependencies/vendor/composer/autoload_static.php (modified) (2 diffs)
-
tags/1.1.3/dependencies/vendor/prokerala/astrology-sdk/src/Common/Api/Authentication/Oauth2.php (modified) (1 diff)
-
tags/1.1.3/dependencies/vendor/symfony/cache/Adapter/AbstractAdapter.php (modified) (1 diff)
-
tags/1.1.3/dependencies/vendor/symfony/cache/Adapter/ProxyAdapter.php (modified) (1 diff)
-
tags/1.1.3/dependencies/vendor/symfony/cache/Traits/ApcuTrait.php (modified) (1 diff)
-
tags/1.1.3/readme.txt (modified) (7 diffs)
-
tags/1.1.3/src/Front/Controller/ReportControllerTrait.php (modified) (1 diff)
-
tags/1.1.3/src/Front/Report/ChartController.php (modified) (2 diffs)
-
tags/1.1.3/src/vendor/autoload.php (modified) (1 diff)
-
tags/1.1.3/src/vendor/composer/ClassLoader.php (modified) (25 diffs)
-
tags/1.1.3/src/vendor/composer/autoload_real.php (modified) (2 diffs)
-
tags/1.1.3/src/vendor/composer/autoload_static.php (modified) (2 diffs)
-
trunk/astrology.php (modified) (2 diffs)
-
trunk/dependencies/vendor/autoload.php (modified) (1 diff)
-
trunk/dependencies/vendor/composer/ClassLoader.php (modified) (25 diffs)
-
trunk/dependencies/vendor/composer/autoload_real.php (modified) (2 diffs)
-
trunk/dependencies/vendor/composer/autoload_static.php (modified) (2 diffs)
-
trunk/dependencies/vendor/prokerala/astrology-sdk/src/Common/Api/Authentication/Oauth2.php (modified) (1 diff)
-
trunk/dependencies/vendor/symfony/cache/Adapter/AbstractAdapter.php (modified) (1 diff)
-
trunk/dependencies/vendor/symfony/cache/Adapter/ProxyAdapter.php (modified) (1 diff)
-
trunk/dependencies/vendor/symfony/cache/Traits/ApcuTrait.php (modified) (1 diff)
-
trunk/readme.txt (modified) (7 diffs)
-
trunk/src/Front/Controller/ReportControllerTrait.php (modified) (1 diff)
-
trunk/src/Front/Report/ChartController.php (modified) (2 diffs)
-
trunk/src/vendor/autoload.php (modified) (1 diff)
-
trunk/src/vendor/composer/ClassLoader.php (modified) (25 diffs)
-
trunk/src/vendor/composer/autoload_real.php (modified) (2 diffs)
-
trunk/src/vendor/composer/autoload_static.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
astrology/tags/1.1.3/astrology.php
r2830560 r2952051 12 12 * Plugin URI: https://api.prokerala.com 13 13 * Description: Integrate astrology calculators powered by Prokerala's Astrology API 14 * Version: 1.1. 214 * Version: 1.1.3 15 15 * Author: Prokerala 16 16 * Author URI: https://www.prokerala.com … … 46 46 use Prokerala\WP\Astrology\Plugin; 47 47 48 const PK_ASTROLOGY_VERSION = '1.1. 2';48 const PK_ASTROLOGY_VERSION = '1.1.3'; 49 49 const PK_ASTROLOGY_PHP_MINIMUM = '7.2.0'; 50 50 const PK_ASTROLOGY_PLUGIN_MAIN_FILE = __FILE__; -
astrology/tags/1.1.3/dependencies/vendor/autoload.php
r2830560 r2952051 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInit b68ffd5d71617cdaee40683a48ad5f9e::getLoader();25 return ComposerAutoloaderInit2f574f619eebf4624df2a3e5276554b5::getLoader(); -
astrology/tags/1.1.3/dependencies/vendor/composer/ClassLoader.php
r2819586 r2952051 43 43 class ClassLoader 44 44 { 45 /** @var ?string */ 45 /** @var \Closure(string):void */ 46 private static $includeFile; 47 48 /** @var string|null */ 46 49 private $vendorDir; 47 50 48 51 // PSR-4 49 52 /** 50 * @var array[] 51 * @psalm-var array<string, array<string, int>> 53 * @var array<string, array<string, int>> 52 54 */ 53 55 private $prefixLengthsPsr4 = array(); 54 56 /** 55 * @var array[] 56 * @psalm-var array<string, array<int, string>> 57 * @var array<string, list<string>> 57 58 */ 58 59 private $prefixDirsPsr4 = array(); 59 60 /** 60 * @var array[] 61 * @psalm-var array<string, string> 61 * @var list<string> 62 62 */ 63 63 private $fallbackDirsPsr4 = array(); … … 65 65 // PSR-0 66 66 /** 67 * @var array[] 68 * @psalm-var array<string, array<string, string[]>> 67 * List of PSR-0 prefixes 68 * 69 * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2'))) 70 * 71 * @var array<string, array<string, list<string>>> 69 72 */ 70 73 private $prefixesPsr0 = array(); 71 74 /** 72 * @var array[] 73 * @psalm-var array<string, string> 75 * @var list<string> 74 76 */ 75 77 private $fallbackDirsPsr0 = array(); … … 79 81 80 82 /** 81 * @var string[] 82 * @psalm-var array<string, string> 83 * @var array<string, string> 83 84 */ 84 85 private $classMap = array(); … … 88 89 89 90 /** 90 * @var bool[] 91 * @psalm-var array<string, bool> 91 * @var array<string, bool> 92 92 */ 93 93 private $missingClasses = array(); 94 94 95 /** @var ?string*/95 /** @var string|null */ 96 96 private $apcuPrefix; 97 97 98 98 /** 99 * @var self[]99 * @var array<string, self> 100 100 */ 101 101 private static $registeredLoaders = array(); 102 102 103 103 /** 104 * @param ?string$vendorDir104 * @param string|null $vendorDir 105 105 */ 106 106 public function __construct($vendorDir = null) 107 107 { 108 108 $this->vendorDir = $vendorDir; 109 } 110 111 /** 112 * @return string[] 109 self::initializeIncludeClosure(); 110 } 111 112 /** 113 * @return array<string, list<string>> 113 114 */ 114 115 public function getPrefixes() … … 122 123 123 124 /** 124 * @return array[] 125 * @psalm-return array<string, array<int, string>> 125 * @return array<string, list<string>> 126 126 */ 127 127 public function getPrefixesPsr4() … … 131 131 132 132 /** 133 * @return array[] 134 * @psalm-return array<string, string> 133 * @return list<string> 135 134 */ 136 135 public function getFallbackDirs() … … 140 139 141 140 /** 142 * @return array[] 143 * @psalm-return array<string, string> 141 * @return list<string> 144 142 */ 145 143 public function getFallbackDirsPsr4() … … 149 147 150 148 /** 151 * @return string[] Array of classname => path 152 * @psalm-return array<string, string> 149 * @return array<string, string> Array of classname => path 153 150 */ 154 151 public function getClassMap() … … 158 155 159 156 /** 160 * @param string[] $classMap Class to filename map 161 * @psalm-param array<string, string> $classMap 157 * @param array<string, string> $classMap Class to filename map 162 158 * 163 159 * @return void … … 176 172 * appending or prepending to the ones previously set for this prefix. 177 173 * 178 * @param string $prefix The prefix179 * @param string[]|string $paths The PSR-0 root directories180 * @param bool $prepend Whether to prepend the directories174 * @param string $prefix The prefix 175 * @param list<string>|string $paths The PSR-0 root directories 176 * @param bool $prepend Whether to prepend the directories 181 177 * 182 178 * @return void … … 184 180 public function add($prefix, $paths, $prepend = false) 185 181 { 182 $paths = (array) $paths; 186 183 if (!$prefix) { 187 184 if ($prepend) { 188 185 $this->fallbackDirsPsr0 = array_merge( 189 (array)$paths,186 $paths, 190 187 $this->fallbackDirsPsr0 191 188 ); … … 193 190 $this->fallbackDirsPsr0 = array_merge( 194 191 $this->fallbackDirsPsr0, 195 (array)$paths192 $paths 196 193 ); 197 194 } … … 202 199 $first = $prefix[0]; 203 200 if (!isset($this->prefixesPsr0[$first][$prefix])) { 204 $this->prefixesPsr0[$first][$prefix] = (array)$paths;201 $this->prefixesPsr0[$first][$prefix] = $paths; 205 202 206 203 return; … … 208 205 if ($prepend) { 209 206 $this->prefixesPsr0[$first][$prefix] = array_merge( 210 (array)$paths,207 $paths, 211 208 $this->prefixesPsr0[$first][$prefix] 212 209 ); … … 214 211 $this->prefixesPsr0[$first][$prefix] = array_merge( 215 212 $this->prefixesPsr0[$first][$prefix], 216 (array)$paths213 $paths 217 214 ); 218 215 } … … 223 220 * appending or prepending to the ones previously set for this namespace. 224 221 * 225 * @param string $prefix The prefix/namespace, with trailing '\\'226 * @param string[]|string $paths The PSR-4 base directories227 * @param bool $prepend Whether to prepend the directories222 * @param string $prefix The prefix/namespace, with trailing '\\' 223 * @param list<string>|string $paths The PSR-4 base directories 224 * @param bool $prepend Whether to prepend the directories 228 225 * 229 226 * @throws \InvalidArgumentException … … 233 230 public function addPsr4($prefix, $paths, $prepend = false) 234 231 { 232 $paths = (array) $paths; 235 233 if (!$prefix) { 236 234 // Register directories for the root namespace. 237 235 if ($prepend) { 238 236 $this->fallbackDirsPsr4 = array_merge( 239 (array)$paths,237 $paths, 240 238 $this->fallbackDirsPsr4 241 239 ); … … 243 241 $this->fallbackDirsPsr4 = array_merge( 244 242 $this->fallbackDirsPsr4, 245 (array)$paths243 $paths 246 244 ); 247 245 } … … 253 251 } 254 252 $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; 255 $this->prefixDirsPsr4[$prefix] = (array)$paths;253 $this->prefixDirsPsr4[$prefix] = $paths; 256 254 } elseif ($prepend) { 257 255 // Prepend directories for an already registered namespace. 258 256 $this->prefixDirsPsr4[$prefix] = array_merge( 259 (array)$paths,257 $paths, 260 258 $this->prefixDirsPsr4[$prefix] 261 259 ); … … 264 262 $this->prefixDirsPsr4[$prefix] = array_merge( 265 263 $this->prefixDirsPsr4[$prefix], 266 (array)$paths264 $paths 267 265 ); 268 266 } … … 273 271 * replacing any others previously set for this prefix. 274 272 * 275 * @param string $prefix The prefix276 * @param string[]|string $paths The PSR-0 base directories273 * @param string $prefix The prefix 274 * @param list<string>|string $paths The PSR-0 base directories 277 275 * 278 276 * @return void … … 291 289 * replacing any others previously set for this namespace. 292 290 * 293 * @param string $prefix The prefix/namespace, with trailing '\\'294 * @param string[]|string $paths The PSR-4 base directories291 * @param string $prefix The prefix/namespace, with trailing '\\' 292 * @param list<string>|string $paths The PSR-4 base directories 295 293 * 296 294 * @throws \InvalidArgumentException … … 426 424 { 427 425 if ($file = $this->findFile($class)) { 428 includeFile($file); 426 $includeFile = self::$includeFile; 427 $includeFile($file); 429 428 430 429 return true; … … 477 476 478 477 /** 479 * Returns the currently registered loaders indexed by their corresponding vendor directories.480 * 481 * @return self[]478 * Returns the currently registered loaders keyed by their corresponding vendor directories. 479 * 480 * @return array<string, self> 482 481 */ 483 482 public static function getRegisteredLoaders() … … 556 555 return false; 557 556 } 557 558 /** 559 * @return void 560 */ 561 private static function initializeIncludeClosure() 562 { 563 if (self::$includeFile !== null) { 564 return; 565 } 566 567 /** 568 * Scope isolated include. 569 * 570 * Prevents access to $this/self from included files. 571 * 572 * @param string $file 573 * @return void 574 */ 575 self::$includeFile = \Closure::bind(static function($file) { 576 include $file; 577 }, null, null); 578 } 558 579 } 559 560 /**561 * Scope isolated include.562 *563 * Prevents access to $this/self from included files.564 *565 * @param string $file566 * @return void567 * @private568 */569 function includeFile($file)570 {571 include $file;572 } -
astrology/tags/1.1.3/dependencies/vendor/composer/autoload_real.php
r2830560 r2952051 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit b68ffd5d71617cdaee40683a48ad5f9e5 class ComposerAutoloaderInit2f574f619eebf4624df2a3e5276554b5 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit b68ffd5d71617cdaee40683a48ad5f9e', 'loadClassLoader'), true, true);25 spl_autoload_register(array('ComposerAutoloaderInit2f574f619eebf4624df2a3e5276554b5', 'loadClassLoader'), true, true); 26 26 self::$loader = $loader = new \Prokerala_WP_Astrology_Composer\Autoload\ClassLoader(\dirname(__DIR__)); 27 spl_autoload_unregister(array('ComposerAutoloaderInit b68ffd5d71617cdaee40683a48ad5f9e', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInit2f574f619eebf4624df2a3e5276554b5', 'loadClassLoader')); 28 28 29 29 require __DIR__ . '/autoload_static.php'; 30 call_user_func(\Prokerala_WP_Astrology_Composer\Autoload\ComposerStaticInit b68ffd5d71617cdaee40683a48ad5f9e::getInitializer($loader));30 call_user_func(\Prokerala_WP_Astrology_Composer\Autoload\ComposerStaticInit2f574f619eebf4624df2a3e5276554b5::getInitializer($loader)); 31 31 32 32 $loader->setClassMapAuthoritative(true); -
astrology/tags/1.1.3/dependencies/vendor/composer/autoload_static.php
r2830560 r2952051 5 5 namespace Prokerala_WP_Astrology_Composer\Autoload; 6 6 7 class ComposerStaticInit b68ffd5d71617cdaee40683a48ad5f9e7 class ComposerStaticInit2f574f619eebf4624df2a3e5276554b5 8 8 { 9 9 public static $classMap = array ( … … 504 504 { 505 505 return \Closure::bind(function () use ($loader) { 506 $loader->classMap = ComposerStaticInit b68ffd5d71617cdaee40683a48ad5f9e::$classMap;506 $loader->classMap = ComposerStaticInit2f574f619eebf4624df2a3e5276554b5::$classMap; 507 507 508 508 }, null, ClassLoader::class); -
astrology/tags/1.1.3/dependencies/vendor/prokerala/astrology-sdk/src/Common/Api/Authentication/Oauth2.php
r2819586 r2952051 89 89 public function handleError(\stdClass $response, int $code) : void 90 90 { 91 ($ cache = $this->cache) ? $cache->delete(self::CACHE_KEY) : null;91 ($nullsafeVariable1 = $this->cache) ? $nullsafeVariable1->delete(self::CACHE_KEY) : null; 92 92 if (isset($response->errors[0]) && '643' === $response->errors[0]->code) { 93 93 throw new TokenExpiredException($response->errors[0]->detail); -
astrology/tags/1.1.3/dependencies/vendor/symfony/cache/Adapter/AbstractAdapter.php
r2819586 r2952051 43 43 $item->value = $v = $value; 44 44 $item->isHit = $isHit; 45 // Detect wrapped values that encode for their expiry and creation duration 46 // For compactness, these values are packed in the key of an array using 47 // magic numbers in the form 9D-..-..-..-..-00-..-..-..-5F 45 48 reset($v); 46 49 // Detect wrapped values that encode for their expiry and creation duration -
astrology/tags/1.1.3/dependencies/vendor/symfony/cache/Adapter/ProxyAdapter.php
r2819586 r2952051 49 49 $item->innerItem = $innerItem; 50 50 $item->poolHash = $poolHash; 51 // Detect wrapped values that encode for their expiry and creation duration 52 // For compactness, these values are packed in the key of an array using 53 // magic numbers in the form 9D-..-..-..-..-00-..-..-..-5F 51 54 reset($v); 52 55 // Detect wrapped values that encode for their expiry and creation duration -
astrology/tags/1.1.3/dependencies/vendor/symfony/cache/Traits/ApcuTrait.php
r2819586 r2952051 103 103 } catch (\Throwable $e) { 104 104 if (1 === \count($values)) { 105 // Workaround https://github.com/krakjoe/apcu/issues/170 105 106 reset($values); 106 107 // Workaround https://github.com/krakjoe/apcu/issues/170 -
astrology/tags/1.1.3/readme.txt
r2830560 r2952051 3 3 Tags: astrology, prokerala 4 4 Requires at least: 5.6 5 Tested up to: 6. 1.16 Stable tag: 1.1. 27 Requires PHP: 7.2.0 5 Tested up to: 6.3 6 Stable tag: 1.1.3 7 Requires PHP: 7.2.0+ 8 8 License: GPLV2+ 9 9 … … 22 22 == Available Services == 23 23 24 * Daily Horoscope Predictions 25 * Numerology Calculators 24 26 * Daily Panchang Calculators 25 27 * Panchang … … 85 87 - `Numerology` 86 88 - `Panchang` 89 - `Papasamyam` 87 90 - `PapasamyamCheck` 88 - `Papasamyam`89 91 - `PlanetPosition` 90 92 - `Porutham` … … 98 100 The `display_charts` option allows showing _Rasi_ / _Navamsa_ chart in Kundli result. This will cost two additional API calls. The value of the attribute must be `lagna,navamsa`. 99 101 100 `[astrology report="Kundli" display_charts="lagna,rasi"]`102 [astrology report="Kundli" display_charts="lagna,rasi"] 101 103 102 104 - `result_type` … … 104 106 In calculators that support `basic` and `advanced` results, the result type can be forced using the `result_type` attribute. Settings this attribute will remove the corresponding input fields from the form. 105 107 106 `[astrology report="Kundli" result_type="advanced"]`108 [astrology report="Kundli" result_type="advanced"] 107 109 108 110 - `chart_style` … … 110 112 You can set the `chart_style` attribute to one of `north-indian`, `south-indian` or `east-indian` to force the result chart style. Setting this attribute will remove the corresponding input fields from the form. 111 113 112 `[astrology report="Kundli" chart_style="south-indian"]`114 [astrology report="Kundli" chart_style="south-indian"] 113 115 114 116 - `sign` … … 131 133 132 134 == Changelog == 135 136 = 1.1.3 = 137 * Fix error message when saving shortcode without ayanamsa attribute 138 * Fix interchanged default value for chart_type and chart_style 133 139 134 140 = 1.1.2 = -
astrology/tags/1.1.3/src/Front/Controller/ReportControllerTrait.php
r2819586 r2952051 128 128 */ 129 129 protected function get_input_ayanamsa() { 130 return isset( $_POST['ayanamsa'] ) ? (int) $_POST['ayanamsa'] : ''; 130 if ( ! isset( $_SERVER['REQUEST_METHOD'] ) || 'POST' !== $_SERVER['REQUEST_METHOD'] ) { 131 return ''; 132 } 133 134 return isset( $_POST['ayanamsa'] ) ? (int) $_POST['ayanamsa'] : 1; 131 135 } 132 136 -
astrology/tags/1.1.3/src/Front/Report/ChartController.php
r2819586 r2952051 69 69 'datetime' => new \DateTimeImmutable( 'now', $this->get_timezone() ), 70 70 'chart_type' => 'rasi', 71 'chart_style' => ' south-indian',71 'chart_style' => 'north-indian', 72 72 'chart_types' => [ 73 73 'rasi', … … 138 138 public function get_attribute_defaults() { 139 139 return $this->getCommonAttributeDefaults() + [ 140 'chart_ style'=> 'rasi',141 'chart_ type'=> 'north-indian',140 'chart_type' => 'rasi', 141 'chart_style' => 'north-indian', 142 142 ]; 143 143 } -
astrology/tags/1.1.3/src/vendor/autoload.php
r2830560 r2952051 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInit 0c3a1662369a018c256975583ada52b7::getLoader();25 return ComposerAutoloaderInitdb96f25851238fcdd1f6ef2ae6ce1d13::getLoader(); -
astrology/tags/1.1.3/src/vendor/composer/ClassLoader.php
r2819586 r2952051 43 43 class ClassLoader 44 44 { 45 /** @var ?string */ 45 /** @var \Closure(string):void */ 46 private static $includeFile; 47 48 /** @var string|null */ 46 49 private $vendorDir; 47 50 48 51 // PSR-4 49 52 /** 50 * @var array[] 51 * @psalm-var array<string, array<string, int>> 53 * @var array<string, array<string, int>> 52 54 */ 53 55 private $prefixLengthsPsr4 = array(); 54 56 /** 55 * @var array[] 56 * @psalm-var array<string, array<int, string>> 57 * @var array<string, list<string>> 57 58 */ 58 59 private $prefixDirsPsr4 = array(); 59 60 /** 60 * @var array[] 61 * @psalm-var array<string, string> 61 * @var list<string> 62 62 */ 63 63 private $fallbackDirsPsr4 = array(); … … 65 65 // PSR-0 66 66 /** 67 * @var array[] 68 * @psalm-var array<string, array<string, string[]>> 67 * List of PSR-0 prefixes 68 * 69 * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2'))) 70 * 71 * @var array<string, array<string, list<string>>> 69 72 */ 70 73 private $prefixesPsr0 = array(); 71 74 /** 72 * @var array[] 73 * @psalm-var array<string, string> 75 * @var list<string> 74 76 */ 75 77 private $fallbackDirsPsr0 = array(); … … 79 81 80 82 /** 81 * @var string[] 82 * @psalm-var array<string, string> 83 * @var array<string, string> 83 84 */ 84 85 private $classMap = array(); … … 88 89 89 90 /** 90 * @var bool[] 91 * @psalm-var array<string, bool> 91 * @var array<string, bool> 92 92 */ 93 93 private $missingClasses = array(); 94 94 95 /** @var ?string*/95 /** @var string|null */ 96 96 private $apcuPrefix; 97 97 98 98 /** 99 * @var self[]99 * @var array<string, self> 100 100 */ 101 101 private static $registeredLoaders = array(); 102 102 103 103 /** 104 * @param ?string$vendorDir104 * @param string|null $vendorDir 105 105 */ 106 106 public function __construct($vendorDir = null) 107 107 { 108 108 $this->vendorDir = $vendorDir; 109 } 110 111 /** 112 * @return string[] 109 self::initializeIncludeClosure(); 110 } 111 112 /** 113 * @return array<string, list<string>> 113 114 */ 114 115 public function getPrefixes() … … 122 123 123 124 /** 124 * @return array[] 125 * @psalm-return array<string, array<int, string>> 125 * @return array<string, list<string>> 126 126 */ 127 127 public function getPrefixesPsr4() … … 131 131 132 132 /** 133 * @return array[] 134 * @psalm-return array<string, string> 133 * @return list<string> 135 134 */ 136 135 public function getFallbackDirs() … … 140 139 141 140 /** 142 * @return array[] 143 * @psalm-return array<string, string> 141 * @return list<string> 144 142 */ 145 143 public function getFallbackDirsPsr4() … … 149 147 150 148 /** 151 * @return string[] Array of classname => path 152 * @psalm-return array<string, string> 149 * @return array<string, string> Array of classname => path 153 150 */ 154 151 public function getClassMap() … … 158 155 159 156 /** 160 * @param string[] $classMap Class to filename map 161 * @psalm-param array<string, string> $classMap 157 * @param array<string, string> $classMap Class to filename map 162 158 * 163 159 * @return void … … 176 172 * appending or prepending to the ones previously set for this prefix. 177 173 * 178 * @param string $prefix The prefix179 * @param string[]|string $paths The PSR-0 root directories180 * @param bool $prepend Whether to prepend the directories174 * @param string $prefix The prefix 175 * @param list<string>|string $paths The PSR-0 root directories 176 * @param bool $prepend Whether to prepend the directories 181 177 * 182 178 * @return void … … 184 180 public function add($prefix, $paths, $prepend = false) 185 181 { 182 $paths = (array) $paths; 186 183 if (!$prefix) { 187 184 if ($prepend) { 188 185 $this->fallbackDirsPsr0 = array_merge( 189 (array)$paths,186 $paths, 190 187 $this->fallbackDirsPsr0 191 188 ); … … 193 190 $this->fallbackDirsPsr0 = array_merge( 194 191 $this->fallbackDirsPsr0, 195 (array)$paths192 $paths 196 193 ); 197 194 } … … 202 199 $first = $prefix[0]; 203 200 if (!isset($this->prefixesPsr0[$first][$prefix])) { 204 $this->prefixesPsr0[$first][$prefix] = (array)$paths;201 $this->prefixesPsr0[$first][$prefix] = $paths; 205 202 206 203 return; … … 208 205 if ($prepend) { 209 206 $this->prefixesPsr0[$first][$prefix] = array_merge( 210 (array)$paths,207 $paths, 211 208 $this->prefixesPsr0[$first][$prefix] 212 209 ); … … 214 211 $this->prefixesPsr0[$first][$prefix] = array_merge( 215 212 $this->prefixesPsr0[$first][$prefix], 216 (array)$paths213 $paths 217 214 ); 218 215 } … … 223 220 * appending or prepending to the ones previously set for this namespace. 224 221 * 225 * @param string $prefix The prefix/namespace, with trailing '\\'226 * @param string[]|string $paths The PSR-4 base directories227 * @param bool $prepend Whether to prepend the directories222 * @param string $prefix The prefix/namespace, with trailing '\\' 223 * @param list<string>|string $paths The PSR-4 base directories 224 * @param bool $prepend Whether to prepend the directories 228 225 * 229 226 * @throws \InvalidArgumentException … … 233 230 public function addPsr4($prefix, $paths, $prepend = false) 234 231 { 232 $paths = (array) $paths; 235 233 if (!$prefix) { 236 234 // Register directories for the root namespace. 237 235 if ($prepend) { 238 236 $this->fallbackDirsPsr4 = array_merge( 239 (array)$paths,237 $paths, 240 238 $this->fallbackDirsPsr4 241 239 ); … … 243 241 $this->fallbackDirsPsr4 = array_merge( 244 242 $this->fallbackDirsPsr4, 245 (array)$paths243 $paths 246 244 ); 247 245 } … … 253 251 } 254 252 $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; 255 $this->prefixDirsPsr4[$prefix] = (array)$paths;253 $this->prefixDirsPsr4[$prefix] = $paths; 256 254 } elseif ($prepend) { 257 255 // Prepend directories for an already registered namespace. 258 256 $this->prefixDirsPsr4[$prefix] = array_merge( 259 (array)$paths,257 $paths, 260 258 $this->prefixDirsPsr4[$prefix] 261 259 ); … … 264 262 $this->prefixDirsPsr4[$prefix] = array_merge( 265 263 $this->prefixDirsPsr4[$prefix], 266 (array)$paths264 $paths 267 265 ); 268 266 } … … 273 271 * replacing any others previously set for this prefix. 274 272 * 275 * @param string $prefix The prefix276 * @param string[]|string $paths The PSR-0 base directories273 * @param string $prefix The prefix 274 * @param list<string>|string $paths The PSR-0 base directories 277 275 * 278 276 * @return void … … 291 289 * replacing any others previously set for this namespace. 292 290 * 293 * @param string $prefix The prefix/namespace, with trailing '\\'294 * @param string[]|string $paths The PSR-4 base directories291 * @param string $prefix The prefix/namespace, with trailing '\\' 292 * @param list<string>|string $paths The PSR-4 base directories 295 293 * 296 294 * @throws \InvalidArgumentException … … 426 424 { 427 425 if ($file = $this->findFile($class)) { 428 includeFile($file); 426 $includeFile = self::$includeFile; 427 $includeFile($file); 429 428 430 429 return true; … … 477 476 478 477 /** 479 * Returns the currently registered loaders indexed by their corresponding vendor directories.480 * 481 * @return self[]478 * Returns the currently registered loaders keyed by their corresponding vendor directories. 479 * 480 * @return array<string, self> 482 481 */ 483 482 public static function getRegisteredLoaders() … … 556 555 return false; 557 556 } 557 558 /** 559 * @return void 560 */ 561 private static function initializeIncludeClosure() 562 { 563 if (self::$includeFile !== null) { 564 return; 565 } 566 567 /** 568 * Scope isolated include. 569 * 570 * Prevents access to $this/self from included files. 571 * 572 * @param string $file 573 * @return void 574 */ 575 self::$includeFile = \Closure::bind(static function($file) { 576 include $file; 577 }, null, null); 578 } 558 579 } 559 560 /**561 * Scope isolated include.562 *563 * Prevents access to $this/self from included files.564 *565 * @param string $file566 * @return void567 * @private568 */569 function includeFile($file)570 {571 include $file;572 } -
astrology/tags/1.1.3/src/vendor/composer/autoload_real.php
r2830560 r2952051 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 0c3a1662369a018c256975583ada52b75 class ComposerAutoloaderInitdb96f25851238fcdd1f6ef2ae6ce1d13 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit 0c3a1662369a018c256975583ada52b7', 'loadClassLoader'), true, true);25 spl_autoload_register(array('ComposerAutoloaderInitdb96f25851238fcdd1f6ef2ae6ce1d13', 'loadClassLoader'), true, true); 26 26 self::$loader = $loader = new \Prokerala_WP_Astrology_Composer\Autoload\ClassLoader(\dirname(__DIR__)); 27 spl_autoload_unregister(array('ComposerAutoloaderInit 0c3a1662369a018c256975583ada52b7', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInitdb96f25851238fcdd1f6ef2ae6ce1d13', 'loadClassLoader')); 28 28 29 29 require __DIR__ . '/autoload_static.php'; 30 call_user_func(\Prokerala_WP_Astrology_Composer\Autoload\ComposerStaticInit 0c3a1662369a018c256975583ada52b7::getInitializer($loader));30 call_user_func(\Prokerala_WP_Astrology_Composer\Autoload\ComposerStaticInitdb96f25851238fcdd1f6ef2ae6ce1d13::getInitializer($loader)); 31 31 32 32 $loader->setClassMapAuthoritative(true); -
astrology/tags/1.1.3/src/vendor/composer/autoload_static.php
r2830560 r2952051 5 5 namespace Prokerala_WP_Astrology_Composer\Autoload; 6 6 7 class ComposerStaticInit 0c3a1662369a018c256975583ada52b77 class ComposerStaticInitdb96f25851238fcdd1f6ef2ae6ce1d13 8 8 { 9 9 public static $classMap = array ( … … 44 44 { 45 45 return \Closure::bind(function () use ($loader) { 46 $loader->classMap = ComposerStaticInit 0c3a1662369a018c256975583ada52b7::$classMap;46 $loader->classMap = ComposerStaticInitdb96f25851238fcdd1f6ef2ae6ce1d13::$classMap; 47 47 48 48 }, null, ClassLoader::class); -
astrology/trunk/astrology.php
r2830560 r2952051 12 12 * Plugin URI: https://api.prokerala.com 13 13 * Description: Integrate astrology calculators powered by Prokerala's Astrology API 14 * Version: 1.1. 214 * Version: 1.1.3 15 15 * Author: Prokerala 16 16 * Author URI: https://www.prokerala.com … … 46 46 use Prokerala\WP\Astrology\Plugin; 47 47 48 const PK_ASTROLOGY_VERSION = '1.1. 2';48 const PK_ASTROLOGY_VERSION = '1.1.3'; 49 49 const PK_ASTROLOGY_PHP_MINIMUM = '7.2.0'; 50 50 const PK_ASTROLOGY_PLUGIN_MAIN_FILE = __FILE__; -
astrology/trunk/dependencies/vendor/autoload.php
r2830560 r2952051 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInit b68ffd5d71617cdaee40683a48ad5f9e::getLoader();25 return ComposerAutoloaderInit2f574f619eebf4624df2a3e5276554b5::getLoader(); -
astrology/trunk/dependencies/vendor/composer/ClassLoader.php
r2819586 r2952051 43 43 class ClassLoader 44 44 { 45 /** @var ?string */ 45 /** @var \Closure(string):void */ 46 private static $includeFile; 47 48 /** @var string|null */ 46 49 private $vendorDir; 47 50 48 51 // PSR-4 49 52 /** 50 * @var array[] 51 * @psalm-var array<string, array<string, int>> 53 * @var array<string, array<string, int>> 52 54 */ 53 55 private $prefixLengthsPsr4 = array(); 54 56 /** 55 * @var array[] 56 * @psalm-var array<string, array<int, string>> 57 * @var array<string, list<string>> 57 58 */ 58 59 private $prefixDirsPsr4 = array(); 59 60 /** 60 * @var array[] 61 * @psalm-var array<string, string> 61 * @var list<string> 62 62 */ 63 63 private $fallbackDirsPsr4 = array(); … … 65 65 // PSR-0 66 66 /** 67 * @var array[] 68 * @psalm-var array<string, array<string, string[]>> 67 * List of PSR-0 prefixes 68 * 69 * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2'))) 70 * 71 * @var array<string, array<string, list<string>>> 69 72 */ 70 73 private $prefixesPsr0 = array(); 71 74 /** 72 * @var array[] 73 * @psalm-var array<string, string> 75 * @var list<string> 74 76 */ 75 77 private $fallbackDirsPsr0 = array(); … … 79 81 80 82 /** 81 * @var string[] 82 * @psalm-var array<string, string> 83 * @var array<string, string> 83 84 */ 84 85 private $classMap = array(); … … 88 89 89 90 /** 90 * @var bool[] 91 * @psalm-var array<string, bool> 91 * @var array<string, bool> 92 92 */ 93 93 private $missingClasses = array(); 94 94 95 /** @var ?string*/95 /** @var string|null */ 96 96 private $apcuPrefix; 97 97 98 98 /** 99 * @var self[]99 * @var array<string, self> 100 100 */ 101 101 private static $registeredLoaders = array(); 102 102 103 103 /** 104 * @param ?string$vendorDir104 * @param string|null $vendorDir 105 105 */ 106 106 public function __construct($vendorDir = null) 107 107 { 108 108 $this->vendorDir = $vendorDir; 109 } 110 111 /** 112 * @return string[] 109 self::initializeIncludeClosure(); 110 } 111 112 /** 113 * @return array<string, list<string>> 113 114 */ 114 115 public function getPrefixes() … … 122 123 123 124 /** 124 * @return array[] 125 * @psalm-return array<string, array<int, string>> 125 * @return array<string, list<string>> 126 126 */ 127 127 public function getPrefixesPsr4() … … 131 131 132 132 /** 133 * @return array[] 134 * @psalm-return array<string, string> 133 * @return list<string> 135 134 */ 136 135 public function getFallbackDirs() … … 140 139 141 140 /** 142 * @return array[] 143 * @psalm-return array<string, string> 141 * @return list<string> 144 142 */ 145 143 public function getFallbackDirsPsr4() … … 149 147 150 148 /** 151 * @return string[] Array of classname => path 152 * @psalm-return array<string, string> 149 * @return array<string, string> Array of classname => path 153 150 */ 154 151 public function getClassMap() … … 158 155 159 156 /** 160 * @param string[] $classMap Class to filename map 161 * @psalm-param array<string, string> $classMap 157 * @param array<string, string> $classMap Class to filename map 162 158 * 163 159 * @return void … … 176 172 * appending or prepending to the ones previously set for this prefix. 177 173 * 178 * @param string $prefix The prefix179 * @param string[]|string $paths The PSR-0 root directories180 * @param bool $prepend Whether to prepend the directories174 * @param string $prefix The prefix 175 * @param list<string>|string $paths The PSR-0 root directories 176 * @param bool $prepend Whether to prepend the directories 181 177 * 182 178 * @return void … … 184 180 public function add($prefix, $paths, $prepend = false) 185 181 { 182 $paths = (array) $paths; 186 183 if (!$prefix) { 187 184 if ($prepend) { 188 185 $this->fallbackDirsPsr0 = array_merge( 189 (array)$paths,186 $paths, 190 187 $this->fallbackDirsPsr0 191 188 ); … … 193 190 $this->fallbackDirsPsr0 = array_merge( 194 191 $this->fallbackDirsPsr0, 195 (array)$paths192 $paths 196 193 ); 197 194 } … … 202 199 $first = $prefix[0]; 203 200 if (!isset($this->prefixesPsr0[$first][$prefix])) { 204 $this->prefixesPsr0[$first][$prefix] = (array)$paths;201 $this->prefixesPsr0[$first][$prefix] = $paths; 205 202 206 203 return; … … 208 205 if ($prepend) { 209 206 $this->prefixesPsr0[$first][$prefix] = array_merge( 210 (array)$paths,207 $paths, 211 208 $this->prefixesPsr0[$first][$prefix] 212 209 ); … … 214 211 $this->prefixesPsr0[$first][$prefix] = array_merge( 215 212 $this->prefixesPsr0[$first][$prefix], 216 (array)$paths213 $paths 217 214 ); 218 215 } … … 223 220 * appending or prepending to the ones previously set for this namespace. 224 221 * 225 * @param string $prefix The prefix/namespace, with trailing '\\'226 * @param string[]|string $paths The PSR-4 base directories227 * @param bool $prepend Whether to prepend the directories222 * @param string $prefix The prefix/namespace, with trailing '\\' 223 * @param list<string>|string $paths The PSR-4 base directories 224 * @param bool $prepend Whether to prepend the directories 228 225 * 229 226 * @throws \InvalidArgumentException … … 233 230 public function addPsr4($prefix, $paths, $prepend = false) 234 231 { 232 $paths = (array) $paths; 235 233 if (!$prefix) { 236 234 // Register directories for the root namespace. 237 235 if ($prepend) { 238 236 $this->fallbackDirsPsr4 = array_merge( 239 (array)$paths,237 $paths, 240 238 $this->fallbackDirsPsr4 241 239 ); … … 243 241 $this->fallbackDirsPsr4 = array_merge( 244 242 $this->fallbackDirsPsr4, 245 (array)$paths243 $paths 246 244 ); 247 245 } … … 253 251 } 254 252 $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; 255 $this->prefixDirsPsr4[$prefix] = (array)$paths;253 $this->prefixDirsPsr4[$prefix] = $paths; 256 254 } elseif ($prepend) { 257 255 // Prepend directories for an already registered namespace. 258 256 $this->prefixDirsPsr4[$prefix] = array_merge( 259 (array)$paths,257 $paths, 260 258 $this->prefixDirsPsr4[$prefix] 261 259 ); … … 264 262 $this->prefixDirsPsr4[$prefix] = array_merge( 265 263 $this->prefixDirsPsr4[$prefix], 266 (array)$paths264 $paths 267 265 ); 268 266 } … … 273 271 * replacing any others previously set for this prefix. 274 272 * 275 * @param string $prefix The prefix276 * @param string[]|string $paths The PSR-0 base directories273 * @param string $prefix The prefix 274 * @param list<string>|string $paths The PSR-0 base directories 277 275 * 278 276 * @return void … … 291 289 * replacing any others previously set for this namespace. 292 290 * 293 * @param string $prefix The prefix/namespace, with trailing '\\'294 * @param string[]|string $paths The PSR-4 base directories291 * @param string $prefix The prefix/namespace, with trailing '\\' 292 * @param list<string>|string $paths The PSR-4 base directories 295 293 * 296 294 * @throws \InvalidArgumentException … … 426 424 { 427 425 if ($file = $this->findFile($class)) { 428 includeFile($file); 426 $includeFile = self::$includeFile; 427 $includeFile($file); 429 428 430 429 return true; … … 477 476 478 477 /** 479 * Returns the currently registered loaders indexed by their corresponding vendor directories.480 * 481 * @return self[]478 * Returns the currently registered loaders keyed by their corresponding vendor directories. 479 * 480 * @return array<string, self> 482 481 */ 483 482 public static function getRegisteredLoaders() … … 556 555 return false; 557 556 } 557 558 /** 559 * @return void 560 */ 561 private static function initializeIncludeClosure() 562 { 563 if (self::$includeFile !== null) { 564 return; 565 } 566 567 /** 568 * Scope isolated include. 569 * 570 * Prevents access to $this/self from included files. 571 * 572 * @param string $file 573 * @return void 574 */ 575 self::$includeFile = \Closure::bind(static function($file) { 576 include $file; 577 }, null, null); 578 } 558 579 } 559 560 /**561 * Scope isolated include.562 *563 * Prevents access to $this/self from included files.564 *565 * @param string $file566 * @return void567 * @private568 */569 function includeFile($file)570 {571 include $file;572 } -
astrology/trunk/dependencies/vendor/composer/autoload_real.php
r2830560 r2952051 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit b68ffd5d71617cdaee40683a48ad5f9e5 class ComposerAutoloaderInit2f574f619eebf4624df2a3e5276554b5 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit b68ffd5d71617cdaee40683a48ad5f9e', 'loadClassLoader'), true, true);25 spl_autoload_register(array('ComposerAutoloaderInit2f574f619eebf4624df2a3e5276554b5', 'loadClassLoader'), true, true); 26 26 self::$loader = $loader = new \Prokerala_WP_Astrology_Composer\Autoload\ClassLoader(\dirname(__DIR__)); 27 spl_autoload_unregister(array('ComposerAutoloaderInit b68ffd5d71617cdaee40683a48ad5f9e', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInit2f574f619eebf4624df2a3e5276554b5', 'loadClassLoader')); 28 28 29 29 require __DIR__ . '/autoload_static.php'; 30 call_user_func(\Prokerala_WP_Astrology_Composer\Autoload\ComposerStaticInit b68ffd5d71617cdaee40683a48ad5f9e::getInitializer($loader));30 call_user_func(\Prokerala_WP_Astrology_Composer\Autoload\ComposerStaticInit2f574f619eebf4624df2a3e5276554b5::getInitializer($loader)); 31 31 32 32 $loader->setClassMapAuthoritative(true); -
astrology/trunk/dependencies/vendor/composer/autoload_static.php
r2830560 r2952051 5 5 namespace Prokerala_WP_Astrology_Composer\Autoload; 6 6 7 class ComposerStaticInit b68ffd5d71617cdaee40683a48ad5f9e7 class ComposerStaticInit2f574f619eebf4624df2a3e5276554b5 8 8 { 9 9 public static $classMap = array ( … … 504 504 { 505 505 return \Closure::bind(function () use ($loader) { 506 $loader->classMap = ComposerStaticInit b68ffd5d71617cdaee40683a48ad5f9e::$classMap;506 $loader->classMap = ComposerStaticInit2f574f619eebf4624df2a3e5276554b5::$classMap; 507 507 508 508 }, null, ClassLoader::class); -
astrology/trunk/dependencies/vendor/prokerala/astrology-sdk/src/Common/Api/Authentication/Oauth2.php
r2819586 r2952051 89 89 public function handleError(\stdClass $response, int $code) : void 90 90 { 91 ($ cache = $this->cache) ? $cache->delete(self::CACHE_KEY) : null;91 ($nullsafeVariable1 = $this->cache) ? $nullsafeVariable1->delete(self::CACHE_KEY) : null; 92 92 if (isset($response->errors[0]) && '643' === $response->errors[0]->code) { 93 93 throw new TokenExpiredException($response->errors[0]->detail); -
astrology/trunk/dependencies/vendor/symfony/cache/Adapter/AbstractAdapter.php
r2819586 r2952051 43 43 $item->value = $v = $value; 44 44 $item->isHit = $isHit; 45 // Detect wrapped values that encode for their expiry and creation duration 46 // For compactness, these values are packed in the key of an array using 47 // magic numbers in the form 9D-..-..-..-..-00-..-..-..-5F 45 48 reset($v); 46 49 // Detect wrapped values that encode for their expiry and creation duration -
astrology/trunk/dependencies/vendor/symfony/cache/Adapter/ProxyAdapter.php
r2819586 r2952051 49 49 $item->innerItem = $innerItem; 50 50 $item->poolHash = $poolHash; 51 // Detect wrapped values that encode for their expiry and creation duration 52 // For compactness, these values are packed in the key of an array using 53 // magic numbers in the form 9D-..-..-..-..-00-..-..-..-5F 51 54 reset($v); 52 55 // Detect wrapped values that encode for their expiry and creation duration -
astrology/trunk/dependencies/vendor/symfony/cache/Traits/ApcuTrait.php
r2819586 r2952051 103 103 } catch (\Throwable $e) { 104 104 if (1 === \count($values)) { 105 // Workaround https://github.com/krakjoe/apcu/issues/170 105 106 reset($values); 106 107 // Workaround https://github.com/krakjoe/apcu/issues/170 -
astrology/trunk/readme.txt
r2830560 r2952051 3 3 Tags: astrology, prokerala 4 4 Requires at least: 5.6 5 Tested up to: 6. 1.16 Stable tag: 1.1. 27 Requires PHP: 7.2.0 5 Tested up to: 6.3 6 Stable tag: 1.1.3 7 Requires PHP: 7.2.0+ 8 8 License: GPLV2+ 9 9 … … 22 22 == Available Services == 23 23 24 * Daily Horoscope Predictions 25 * Numerology Calculators 24 26 * Daily Panchang Calculators 25 27 * Panchang … … 85 87 - `Numerology` 86 88 - `Panchang` 89 - `Papasamyam` 87 90 - `PapasamyamCheck` 88 - `Papasamyam`89 91 - `PlanetPosition` 90 92 - `Porutham` … … 98 100 The `display_charts` option allows showing _Rasi_ / _Navamsa_ chart in Kundli result. This will cost two additional API calls. The value of the attribute must be `lagna,navamsa`. 99 101 100 `[astrology report="Kundli" display_charts="lagna,rasi"]`102 [astrology report="Kundli" display_charts="lagna,rasi"] 101 103 102 104 - `result_type` … … 104 106 In calculators that support `basic` and `advanced` results, the result type can be forced using the `result_type` attribute. Settings this attribute will remove the corresponding input fields from the form. 105 107 106 `[astrology report="Kundli" result_type="advanced"]`108 [astrology report="Kundli" result_type="advanced"] 107 109 108 110 - `chart_style` … … 110 112 You can set the `chart_style` attribute to one of `north-indian`, `south-indian` or `east-indian` to force the result chart style. Setting this attribute will remove the corresponding input fields from the form. 111 113 112 `[astrology report="Kundli" chart_style="south-indian"]`114 [astrology report="Kundli" chart_style="south-indian"] 113 115 114 116 - `sign` … … 131 133 132 134 == Changelog == 135 136 = 1.1.3 = 137 * Fix error message when saving shortcode without ayanamsa attribute 138 * Fix interchanged default value for chart_type and chart_style 133 139 134 140 = 1.1.2 = -
astrology/trunk/src/Front/Controller/ReportControllerTrait.php
r2819586 r2952051 128 128 */ 129 129 protected function get_input_ayanamsa() { 130 return isset( $_POST['ayanamsa'] ) ? (int) $_POST['ayanamsa'] : ''; 130 if ( ! isset( $_SERVER['REQUEST_METHOD'] ) || 'POST' !== $_SERVER['REQUEST_METHOD'] ) { 131 return ''; 132 } 133 134 return isset( $_POST['ayanamsa'] ) ? (int) $_POST['ayanamsa'] : 1; 131 135 } 132 136 -
astrology/trunk/src/Front/Report/ChartController.php
r2819586 r2952051 69 69 'datetime' => new \DateTimeImmutable( 'now', $this->get_timezone() ), 70 70 'chart_type' => 'rasi', 71 'chart_style' => ' south-indian',71 'chart_style' => 'north-indian', 72 72 'chart_types' => [ 73 73 'rasi', … … 138 138 public function get_attribute_defaults() { 139 139 return $this->getCommonAttributeDefaults() + [ 140 'chart_ style'=> 'rasi',141 'chart_ type'=> 'north-indian',140 'chart_type' => 'rasi', 141 'chart_style' => 'north-indian', 142 142 ]; 143 143 } -
astrology/trunk/src/vendor/autoload.php
r2830560 r2952051 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInit 0c3a1662369a018c256975583ada52b7::getLoader();25 return ComposerAutoloaderInitdb96f25851238fcdd1f6ef2ae6ce1d13::getLoader(); -
astrology/trunk/src/vendor/composer/ClassLoader.php
r2819586 r2952051 43 43 class ClassLoader 44 44 { 45 /** @var ?string */ 45 /** @var \Closure(string):void */ 46 private static $includeFile; 47 48 /** @var string|null */ 46 49 private $vendorDir; 47 50 48 51 // PSR-4 49 52 /** 50 * @var array[] 51 * @psalm-var array<string, array<string, int>> 53 * @var array<string, array<string, int>> 52 54 */ 53 55 private $prefixLengthsPsr4 = array(); 54 56 /** 55 * @var array[] 56 * @psalm-var array<string, array<int, string>> 57 * @var array<string, list<string>> 57 58 */ 58 59 private $prefixDirsPsr4 = array(); 59 60 /** 60 * @var array[] 61 * @psalm-var array<string, string> 61 * @var list<string> 62 62 */ 63 63 private $fallbackDirsPsr4 = array(); … … 65 65 // PSR-0 66 66 /** 67 * @var array[] 68 * @psalm-var array<string, array<string, string[]>> 67 * List of PSR-0 prefixes 68 * 69 * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2'))) 70 * 71 * @var array<string, array<string, list<string>>> 69 72 */ 70 73 private $prefixesPsr0 = array(); 71 74 /** 72 * @var array[] 73 * @psalm-var array<string, string> 75 * @var list<string> 74 76 */ 75 77 private $fallbackDirsPsr0 = array(); … … 79 81 80 82 /** 81 * @var string[] 82 * @psalm-var array<string, string> 83 * @var array<string, string> 83 84 */ 84 85 private $classMap = array(); … … 88 89 89 90 /** 90 * @var bool[] 91 * @psalm-var array<string, bool> 91 * @var array<string, bool> 92 92 */ 93 93 private $missingClasses = array(); 94 94 95 /** @var ?string*/95 /** @var string|null */ 96 96 private $apcuPrefix; 97 97 98 98 /** 99 * @var self[]99 * @var array<string, self> 100 100 */ 101 101 private static $registeredLoaders = array(); 102 102 103 103 /** 104 * @param ?string$vendorDir104 * @param string|null $vendorDir 105 105 */ 106 106 public function __construct($vendorDir = null) 107 107 { 108 108 $this->vendorDir = $vendorDir; 109 } 110 111 /** 112 * @return string[] 109 self::initializeIncludeClosure(); 110 } 111 112 /** 113 * @return array<string, list<string>> 113 114 */ 114 115 public function getPrefixes() … … 122 123 123 124 /** 124 * @return array[] 125 * @psalm-return array<string, array<int, string>> 125 * @return array<string, list<string>> 126 126 */ 127 127 public function getPrefixesPsr4() … … 131 131 132 132 /** 133 * @return array[] 134 * @psalm-return array<string, string> 133 * @return list<string> 135 134 */ 136 135 public function getFallbackDirs() … … 140 139 141 140 /** 142 * @return array[] 143 * @psalm-return array<string, string> 141 * @return list<string> 144 142 */ 145 143 public function getFallbackDirsPsr4() … … 149 147 150 148 /** 151 * @return string[] Array of classname => path 152 * @psalm-return array<string, string> 149 * @return array<string, string> Array of classname => path 153 150 */ 154 151 public function getClassMap() … … 158 155 159 156 /** 160 * @param string[] $classMap Class to filename map 161 * @psalm-param array<string, string> $classMap 157 * @param array<string, string> $classMap Class to filename map 162 158 * 163 159 * @return void … … 176 172 * appending or prepending to the ones previously set for this prefix. 177 173 * 178 * @param string $prefix The prefix179 * @param string[]|string $paths The PSR-0 root directories180 * @param bool $prepend Whether to prepend the directories174 * @param string $prefix The prefix 175 * @param list<string>|string $paths The PSR-0 root directories 176 * @param bool $prepend Whether to prepend the directories 181 177 * 182 178 * @return void … … 184 180 public function add($prefix, $paths, $prepend = false) 185 181 { 182 $paths = (array) $paths; 186 183 if (!$prefix) { 187 184 if ($prepend) { 188 185 $this->fallbackDirsPsr0 = array_merge( 189 (array)$paths,186 $paths, 190 187 $this->fallbackDirsPsr0 191 188 ); … … 193 190 $this->fallbackDirsPsr0 = array_merge( 194 191 $this->fallbackDirsPsr0, 195 (array)$paths192 $paths 196 193 ); 197 194 } … … 202 199 $first = $prefix[0]; 203 200 if (!isset($this->prefixesPsr0[$first][$prefix])) { 204 $this->prefixesPsr0[$first][$prefix] = (array)$paths;201 $this->prefixesPsr0[$first][$prefix] = $paths; 205 202 206 203 return; … … 208 205 if ($prepend) { 209 206 $this->prefixesPsr0[$first][$prefix] = array_merge( 210 (array)$paths,207 $paths, 211 208 $this->prefixesPsr0[$first][$prefix] 212 209 ); … … 214 211 $this->prefixesPsr0[$first][$prefix] = array_merge( 215 212 $this->prefixesPsr0[$first][$prefix], 216 (array)$paths213 $paths 217 214 ); 218 215 } … … 223 220 * appending or prepending to the ones previously set for this namespace. 224 221 * 225 * @param string $prefix The prefix/namespace, with trailing '\\'226 * @param string[]|string $paths The PSR-4 base directories227 * @param bool $prepend Whether to prepend the directories222 * @param string $prefix The prefix/namespace, with trailing '\\' 223 * @param list<string>|string $paths The PSR-4 base directories 224 * @param bool $prepend Whether to prepend the directories 228 225 * 229 226 * @throws \InvalidArgumentException … … 233 230 public function addPsr4($prefix, $paths, $prepend = false) 234 231 { 232 $paths = (array) $paths; 235 233 if (!$prefix) { 236 234 // Register directories for the root namespace. 237 235 if ($prepend) { 238 236 $this->fallbackDirsPsr4 = array_merge( 239 (array)$paths,237 $paths, 240 238 $this->fallbackDirsPsr4 241 239 ); … … 243 241 $this->fallbackDirsPsr4 = array_merge( 244 242 $this->fallbackDirsPsr4, 245 (array)$paths243 $paths 246 244 ); 247 245 } … … 253 251 } 254 252 $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; 255 $this->prefixDirsPsr4[$prefix] = (array)$paths;253 $this->prefixDirsPsr4[$prefix] = $paths; 256 254 } elseif ($prepend) { 257 255 // Prepend directories for an already registered namespace. 258 256 $this->prefixDirsPsr4[$prefix] = array_merge( 259 (array)$paths,257 $paths, 260 258 $this->prefixDirsPsr4[$prefix] 261 259 ); … … 264 262 $this->prefixDirsPsr4[$prefix] = array_merge( 265 263 $this->prefixDirsPsr4[$prefix], 266 (array)$paths264 $paths 267 265 ); 268 266 } … … 273 271 * replacing any others previously set for this prefix. 274 272 * 275 * @param string $prefix The prefix276 * @param string[]|string $paths The PSR-0 base directories273 * @param string $prefix The prefix 274 * @param list<string>|string $paths The PSR-0 base directories 277 275 * 278 276 * @return void … … 291 289 * replacing any others previously set for this namespace. 292 290 * 293 * @param string $prefix The prefix/namespace, with trailing '\\'294 * @param string[]|string $paths The PSR-4 base directories291 * @param string $prefix The prefix/namespace, with trailing '\\' 292 * @param list<string>|string $paths The PSR-4 base directories 295 293 * 296 294 * @throws \InvalidArgumentException … … 426 424 { 427 425 if ($file = $this->findFile($class)) { 428 includeFile($file); 426 $includeFile = self::$includeFile; 427 $includeFile($file); 429 428 430 429 return true; … … 477 476 478 477 /** 479 * Returns the currently registered loaders indexed by their corresponding vendor directories.480 * 481 * @return self[]478 * Returns the currently registered loaders keyed by their corresponding vendor directories. 479 * 480 * @return array<string, self> 482 481 */ 483 482 public static function getRegisteredLoaders() … … 556 555 return false; 557 556 } 557 558 /** 559 * @return void 560 */ 561 private static function initializeIncludeClosure() 562 { 563 if (self::$includeFile !== null) { 564 return; 565 } 566 567 /** 568 * Scope isolated include. 569 * 570 * Prevents access to $this/self from included files. 571 * 572 * @param string $file 573 * @return void 574 */ 575 self::$includeFile = \Closure::bind(static function($file) { 576 include $file; 577 }, null, null); 578 } 558 579 } 559 560 /**561 * Scope isolated include.562 *563 * Prevents access to $this/self from included files.564 *565 * @param string $file566 * @return void567 * @private568 */569 function includeFile($file)570 {571 include $file;572 } -
astrology/trunk/src/vendor/composer/autoload_real.php
r2830560 r2952051 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 0c3a1662369a018c256975583ada52b75 class ComposerAutoloaderInitdb96f25851238fcdd1f6ef2ae6ce1d13 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit 0c3a1662369a018c256975583ada52b7', 'loadClassLoader'), true, true);25 spl_autoload_register(array('ComposerAutoloaderInitdb96f25851238fcdd1f6ef2ae6ce1d13', 'loadClassLoader'), true, true); 26 26 self::$loader = $loader = new \Prokerala_WP_Astrology_Composer\Autoload\ClassLoader(\dirname(__DIR__)); 27 spl_autoload_unregister(array('ComposerAutoloaderInit 0c3a1662369a018c256975583ada52b7', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInitdb96f25851238fcdd1f6ef2ae6ce1d13', 'loadClassLoader')); 28 28 29 29 require __DIR__ . '/autoload_static.php'; 30 call_user_func(\Prokerala_WP_Astrology_Composer\Autoload\ComposerStaticInit 0c3a1662369a018c256975583ada52b7::getInitializer($loader));30 call_user_func(\Prokerala_WP_Astrology_Composer\Autoload\ComposerStaticInitdb96f25851238fcdd1f6ef2ae6ce1d13::getInitializer($loader)); 31 31 32 32 $loader->setClassMapAuthoritative(true); -
astrology/trunk/src/vendor/composer/autoload_static.php
r2830560 r2952051 5 5 namespace Prokerala_WP_Astrology_Composer\Autoload; 6 6 7 class ComposerStaticInit 0c3a1662369a018c256975583ada52b77 class ComposerStaticInitdb96f25851238fcdd1f6ef2ae6ce1d13 8 8 { 9 9 public static $classMap = array ( … … 44 44 { 45 45 return \Closure::bind(function () use ($loader) { 46 $loader->classMap = ComposerStaticInit 0c3a1662369a018c256975583ada52b7::$classMap;46 $loader->classMap = ComposerStaticInitdb96f25851238fcdd1f6ef2ae6ce1d13::$classMap; 47 47 48 48 }, null, ClassLoader::class);
Note: See TracChangeset
for help on using the changeset viewer.