Changeset 3327943
- Timestamp:
- 07/15/2025 06:30:09 AM (9 months ago)
- Location:
- blockart-blocks
- Files:
-
- 8 added
- 62 edited
- 1 copied
-
tags/2.2.10 (copied) (copied from blockart-blocks/trunk)
-
tags/2.2.10/blockart.php (modified) (2 diffs)
-
tags/2.2.10/changelog.txt (modified) (1 diff)
-
tags/2.2.10/includes/RestApi/Controllers/LibraryDataController.php (modified) (3 diffs)
-
tags/2.2.10/includes/Update.php (modified) (2 diffs)
-
tags/2.2.10/readme.txt (modified) (2 diffs)
-
tags/2.2.10/vendor/autoload.php (modified) (1 diff)
-
tags/2.2.10/vendor/composer/autoload_classmap.php (modified) (2 diffs)
-
tags/2.2.10/vendor/composer/autoload_real.php (modified) (5 diffs)
-
tags/2.2.10/vendor/composer/autoload_static.php (modified) (4 diffs)
-
tags/2.2.10/vendor/composer/installed.json (modified) (6 diffs)
-
tags/2.2.10/vendor/composer/installed.php (modified) (2 diffs)
-
tags/2.2.10/vendor/halaxa/json-machine/CHANGELOG.md (modified) (8 diffs)
-
tags/2.2.10/vendor/halaxa/json-machine/README.md (modified) (1 diff)
-
tags/2.2.10/vendor/halaxa/json-machine/src/FileChunks.php (modified) (1 diff)
-
tags/2.2.10/vendor/halaxa/json-machine/src/Parser.php (modified) (1 diff)
-
tags/2.2.10/vendor/halaxa/json-machine/src/Tokens.php (modified) (4 diffs)
-
tags/2.2.10/vendor/halaxa/json-machine/src/autoloader.php (modified) (2 diffs)
-
tags/2.2.10/vendor/sabberworm/php-css-parser/CHANGELOG.md (modified) (4 diffs)
-
tags/2.2.10/vendor/sabberworm/php-css-parser/src/CSSElement.php (added)
-
tags/2.2.10/vendor/sabberworm/php-css-parser/src/CSSList/CSSBlockList.php (modified) (2 diffs)
-
tags/2.2.10/vendor/sabberworm/php-css-parser/src/CSSList/CSSList.php (modified) (6 diffs)
-
tags/2.2.10/vendor/sabberworm/php-css-parser/src/CSSList/Document.php (modified) (2 diffs)
-
tags/2.2.10/vendor/sabberworm/php-css-parser/src/Comment/Comment.php (modified) (3 diffs)
-
tags/2.2.10/vendor/sabberworm/php-css-parser/src/Parsing/SourceException.php (modified) (3 diffs)
-
tags/2.2.10/vendor/sabberworm/php-css-parser/src/Position (added)
-
tags/2.2.10/vendor/sabberworm/php-css-parser/src/Position/Position.php (added)
-
tags/2.2.10/vendor/sabberworm/php-css-parser/src/Position/Positionable.php (added)
-
tags/2.2.10/vendor/sabberworm/php-css-parser/src/Property/CSSNamespace.php (modified) (2 diffs)
-
tags/2.2.10/vendor/sabberworm/php-css-parser/src/Property/Charset.php (modified) (3 diffs)
-
tags/2.2.10/vendor/sabberworm/php-css-parser/src/Property/Import.php (modified) (4 diffs)
-
tags/2.2.10/vendor/sabberworm/php-css-parser/src/Rule/Rule.php (modified) (6 diffs)
-
tags/2.2.10/vendor/sabberworm/php-css-parser/src/RuleSet/DeclarationBlock.php (modified) (4 diffs)
-
tags/2.2.10/vendor/sabberworm/php-css-parser/src/RuleSet/RuleSet.php (modified) (10 diffs)
-
tags/2.2.10/vendor/sabberworm/php-css-parser/src/Value/CSSFunction.php (modified) (1 diff)
-
tags/2.2.10/vendor/sabberworm/php-css-parser/src/Value/Value.php (modified) (4 diffs)
-
trunk/blockart.php (modified) (2 diffs)
-
trunk/changelog.txt (modified) (1 diff)
-
trunk/includes/RestApi/Controllers/LibraryDataController.php (modified) (3 diffs)
-
trunk/includes/Update.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_classmap.php (modified) (2 diffs)
-
trunk/vendor/composer/autoload_real.php (modified) (5 diffs)
-
trunk/vendor/composer/autoload_static.php (modified) (4 diffs)
-
trunk/vendor/composer/installed.json (modified) (6 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/vendor/halaxa/json-machine/CHANGELOG.md (modified) (8 diffs)
-
trunk/vendor/halaxa/json-machine/README.md (modified) (1 diff)
-
trunk/vendor/halaxa/json-machine/src/FileChunks.php (modified) (1 diff)
-
trunk/vendor/halaxa/json-machine/src/Parser.php (modified) (1 diff)
-
trunk/vendor/halaxa/json-machine/src/Tokens.php (modified) (4 diffs)
-
trunk/vendor/halaxa/json-machine/src/autoloader.php (modified) (2 diffs)
-
trunk/vendor/sabberworm/php-css-parser/CHANGELOG.md (modified) (4 diffs)
-
trunk/vendor/sabberworm/php-css-parser/src/CSSElement.php (added)
-
trunk/vendor/sabberworm/php-css-parser/src/CSSList/CSSBlockList.php (modified) (2 diffs)
-
trunk/vendor/sabberworm/php-css-parser/src/CSSList/CSSList.php (modified) (6 diffs)
-
trunk/vendor/sabberworm/php-css-parser/src/CSSList/Document.php (modified) (2 diffs)
-
trunk/vendor/sabberworm/php-css-parser/src/Comment/Comment.php (modified) (3 diffs)
-
trunk/vendor/sabberworm/php-css-parser/src/Parsing/SourceException.php (modified) (3 diffs)
-
trunk/vendor/sabberworm/php-css-parser/src/Position (added)
-
trunk/vendor/sabberworm/php-css-parser/src/Position/Position.php (added)
-
trunk/vendor/sabberworm/php-css-parser/src/Position/Positionable.php (added)
-
trunk/vendor/sabberworm/php-css-parser/src/Property/CSSNamespace.php (modified) (2 diffs)
-
trunk/vendor/sabberworm/php-css-parser/src/Property/Charset.php (modified) (3 diffs)
-
trunk/vendor/sabberworm/php-css-parser/src/Property/Import.php (modified) (4 diffs)
-
trunk/vendor/sabberworm/php-css-parser/src/Rule/Rule.php (modified) (6 diffs)
-
trunk/vendor/sabberworm/php-css-parser/src/RuleSet/DeclarationBlock.php (modified) (4 diffs)
-
trunk/vendor/sabberworm/php-css-parser/src/RuleSet/RuleSet.php (modified) (10 diffs)
-
trunk/vendor/sabberworm/php-css-parser/src/Value/CSSFunction.php (modified) (1 diff)
-
trunk/vendor/sabberworm/php-css-parser/src/Value/Value.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
blockart-blocks/tags/2.2.10/blockart.php
r3320504 r3327943 5 5 * Author: WPBlockArt 6 6 * Author URI: https://wpblockart.com/ 7 * Version: 2.2. 97 * Version: 2.2.10 8 8 * Requires at least: 5.5 9 9 * Requires PHP: 7.4 … … 20 20 defined( 'ABSPATH' ) || exit; 21 21 22 ! defined( 'BLOCKART_VERSION' ) && define( 'BLOCKART_VERSION', '2.2. 9' );22 ! defined( 'BLOCKART_VERSION' ) && define( 'BLOCKART_VERSION', '2.2.10' ); 23 23 ! defined( 'BLOCKART_PLUGIN_FILE' ) && define( 'BLOCKART_PLUGIN_FILE', __FILE__ ); 24 24 ! defined( 'BLOCKART_PLUGIN_DIR' ) && define( 'BLOCKART_PLUGIN_DIR', dirname( BLOCKART_PLUGIN_FILE ) ); -
blockart-blocks/tags/2.2.10/changelog.txt
r3320504 r3327943 1 1 == Changelog == 2 = 2.2.10 - 15-07-2025 = 3 * Fix - PHP Error. 4 2 5 = 2.2.9 - 01-07-2025 = 3 6 * Added - Link Option to Timeline Block. -
blockart-blocks/tags/2.2.10/includes/RestApi/Controllers/LibraryDataController.php
r3021722 r3327943 100 100 */ 101 101 protected function prepare_items_for_response( $data, $request ) { 102 $categorizer = function ( $data_to_categorize ) {102 $categorizer = function ( $data_to_categorize ) { 103 103 $result = array(); 104 104 foreach ( $data_to_categorize as $item ) { … … 139 139 * 140 140 * @param boolean $force 141 * @return array 141 * 142 * @return \WP_Error 142 143 */ 143 144 protected function fetch( $force = false ) { … … 166 167 $data = wp_remote_retrieve_body( $response ); 167 168 $data = json_decode( $data, true ); 168 169 set_transient( '_blockart_library_data', $data, WEEK_IN_SECONDS ); 169 if ( 170 is_array( $data ) && 171 isset( $data['sections'], $data['templates'] ) && 172 is_array( $data['sections'] ) && 173 is_array( $data['templates'] ) 174 ) { 175 set_transient( '_blockart_library_data', $data, WEEK_IN_SECONDS ); 176 } else { 177 return new \WP_Error( 178 'invalid_data', 179 esc_html__( 'Invalid data received from the library.', 'blockart' ), 180 array( 'status' => 500 ) 181 ); 182 } 170 183 } 171 184 -
blockart-blocks/tags/2.2.10/includes/Update.php
r3054382 r3327943 48 48 $this->update_to_2_0_9(); 49 49 } 50 if ( version_compare( $old_version, '2. 1.0', '<' ) ) {51 $this->update_to_2_ 1_0();50 if ( version_compare( $old_version, '2.2.10', '<' ) ) { 51 $this->update_to_2_2_10(); 52 52 } 53 53 54 } 54 55 … … 118 119 delete_transient( '_blockart_library_data' ); 119 120 } 121 122 /** 123 * Update to 2.2.10. 124 * 125 * @return void 126 */ 127 private function update_to_2_2_10() { 128 delete_transient( '_blockart_library_data' ); 129 } 120 130 } -
blockart-blocks/tags/2.2.10/readme.txt
r3320504 r3327943 5 5 Tested up to: 6.8 6 6 Requires PHP: 7.4 7 Stable tag: 2.2. 97 Stable tag: 2.2.10 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 249 249 250 250 == Changelog == 251 = 2.2.10 - 15-07-2025 = 252 * Fix - PHP Error. 253 251 254 = 2.2.9 - 01-07-2025 = 252 255 * Added - Link Option to Timeline Block. -
blockart-blocks/tags/2.2.10/vendor/autoload.php
r3320504 r3327943 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit 995ba1463eb3e341a332e70ce1584dcf::getLoader();7 return ComposerAutoloaderInit6e4a9e677d578210d8453abf61d2bef1::getLoader(); -
blockart-blocks/tags/2.2.10/vendor/composer/autoload_classmap.php
r3306181 r3327943 205 205 'JsonMachine\\TokensWithDebugging' => $vendorDir . '/halaxa/json-machine/src/TokensWithDebugging.php', 206 206 'JsonMachine\\ValidJsonPointers' => $vendorDir . '/halaxa/json-machine/src/ValidJsonPointers.php', 207 'Sabberworm\\CSS\\CSSElement' => $vendorDir . '/sabberworm/php-css-parser/src/CSSElement.php', 207 208 'Sabberworm\\CSS\\CSSList\\AtRuleBlockList' => $vendorDir . '/sabberworm/php-css-parser/src/CSSList/AtRuleBlockList.php', 208 209 'Sabberworm\\CSS\\CSSList\\CSSBlockList' => $vendorDir . '/sabberworm/php-css-parser/src/CSSList/CSSBlockList.php', … … 221 222 'Sabberworm\\CSS\\Parsing\\UnexpectedEOFException' => $vendorDir . '/sabberworm/php-css-parser/src/Parsing/UnexpectedEOFException.php', 222 223 'Sabberworm\\CSS\\Parsing\\UnexpectedTokenException' => $vendorDir . '/sabberworm/php-css-parser/src/Parsing/UnexpectedTokenException.php', 224 'Sabberworm\\CSS\\Position\\Position' => $vendorDir . '/sabberworm/php-css-parser/src/Position/Position.php', 225 'Sabberworm\\CSS\\Position\\Positionable' => $vendorDir . '/sabberworm/php-css-parser/src/Position/Positionable.php', 223 226 'Sabberworm\\CSS\\Property\\AtRule' => $vendorDir . '/sabberworm/php-css-parser/src/Property/AtRule.php', 224 227 'Sabberworm\\CSS\\Property\\CSSNamespace' => $vendorDir . '/sabberworm/php-css-parser/src/Property/CSSNamespace.php', -
blockart-blocks/tags/2.2.10/vendor/composer/autoload_real.php
r3320504 r3327943 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 995ba1463eb3e341a332e70ce1584dcf5 class ComposerAutoloaderInit6e4a9e677d578210d8453abf61d2bef1 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit 995ba1463eb3e341a332e70ce1584dcf', 'loadClassLoader'), true, true);25 spl_autoload_register(array('ComposerAutoloaderInit6e4a9e677d578210d8453abf61d2bef1', 'loadClassLoader'), true, true); 26 26 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__))); 27 spl_autoload_unregister(array('ComposerAutoloaderInit 995ba1463eb3e341a332e70ce1584dcf', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInit6e4a9e677d578210d8453abf61d2bef1', '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 __DIR__ . '/autoload_static.php'; 32 32 33 call_user_func(\Composer\Autoload\ComposerStaticInit 995ba1463eb3e341a332e70ce1584dcf::getInitializer($loader));33 call_user_func(\Composer\Autoload\ComposerStaticInit6e4a9e677d578210d8453abf61d2bef1::getInitializer($loader)); 34 34 } else { 35 35 $map = require __DIR__ . '/autoload_namespaces.php'; … … 52 52 53 53 if ($useStaticLoader) { 54 $includeFiles = Composer\Autoload\ComposerStaticInit 995ba1463eb3e341a332e70ce1584dcf::$files;54 $includeFiles = Composer\Autoload\ComposerStaticInit6e4a9e677d578210d8453abf61d2bef1::$files; 55 55 } else { 56 56 $includeFiles = require __DIR__ . '/autoload_files.php'; 57 57 } 58 58 foreach ($includeFiles as $fileIdentifier => $file) { 59 composerRequire 995ba1463eb3e341a332e70ce1584dcf($fileIdentifier, $file);59 composerRequire6e4a9e677d578210d8453abf61d2bef1($fileIdentifier, $file); 60 60 } 61 61 … … 69 69 * @return void 70 70 */ 71 function composerRequire 995ba1463eb3e341a332e70ce1584dcf($fileIdentifier, $file)71 function composerRequire6e4a9e677d578210d8453abf61d2bef1($fileIdentifier, $file) 72 72 { 73 73 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
blockart-blocks/tags/2.2.10/vendor/composer/autoload_static.php
r3320504 r3327943 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 995ba1463eb3e341a332e70ce1584dcf7 class ComposerStaticInit6e4a9e677d578210d8453abf61d2bef1 8 8 { 9 9 public static $files = array ( … … 255 255 'JsonMachine\\TokensWithDebugging' => __DIR__ . '/..' . '/halaxa/json-machine/src/TokensWithDebugging.php', 256 256 'JsonMachine\\ValidJsonPointers' => __DIR__ . '/..' . '/halaxa/json-machine/src/ValidJsonPointers.php', 257 'Sabberworm\\CSS\\CSSElement' => __DIR__ . '/..' . '/sabberworm/php-css-parser/src/CSSElement.php', 257 258 'Sabberworm\\CSS\\CSSList\\AtRuleBlockList' => __DIR__ . '/..' . '/sabberworm/php-css-parser/src/CSSList/AtRuleBlockList.php', 258 259 'Sabberworm\\CSS\\CSSList\\CSSBlockList' => __DIR__ . '/..' . '/sabberworm/php-css-parser/src/CSSList/CSSBlockList.php', … … 271 272 'Sabberworm\\CSS\\Parsing\\UnexpectedEOFException' => __DIR__ . '/..' . '/sabberworm/php-css-parser/src/Parsing/UnexpectedEOFException.php', 272 273 'Sabberworm\\CSS\\Parsing\\UnexpectedTokenException' => __DIR__ . '/..' . '/sabberworm/php-css-parser/src/Parsing/UnexpectedTokenException.php', 274 'Sabberworm\\CSS\\Position\\Position' => __DIR__ . '/..' . '/sabberworm/php-css-parser/src/Position/Position.php', 275 'Sabberworm\\CSS\\Position\\Positionable' => __DIR__ . '/..' . '/sabberworm/php-css-parser/src/Position/Positionable.php', 273 276 'Sabberworm\\CSS\\Property\\AtRule' => __DIR__ . '/..' . '/sabberworm/php-css-parser/src/Property/AtRule.php', 274 277 'Sabberworm\\CSS\\Property\\CSSNamespace' => __DIR__ . '/..' . '/sabberworm/php-css-parser/src/Property/CSSNamespace.php', … … 300 303 { 301 304 return \Closure::bind(function () use ($loader) { 302 $loader->prefixLengthsPsr4 = ComposerStaticInit 995ba1463eb3e341a332e70ce1584dcf::$prefixLengthsPsr4;303 $loader->prefixDirsPsr4 = ComposerStaticInit 995ba1463eb3e341a332e70ce1584dcf::$prefixDirsPsr4;304 $loader->classMap = ComposerStaticInit 995ba1463eb3e341a332e70ce1584dcf::$classMap;305 $loader->prefixLengthsPsr4 = ComposerStaticInit6e4a9e677d578210d8453abf61d2bef1::$prefixLengthsPsr4; 306 $loader->prefixDirsPsr4 = ComposerStaticInit6e4a9e677d578210d8453abf61d2bef1::$prefixDirsPsr4; 307 $loader->classMap = ComposerStaticInit6e4a9e677d578210d8453abf61d2bef1::$classMap; 305 308 306 309 }, null, ClassLoader::class); -
blockart-blocks/tags/2.2.10/vendor/composer/installed.json
r3306181 r3327943 156 156 { 157 157 "name": "halaxa/json-machine", 158 "version": "1.2. 3",159 "version_normalized": "1.2. 3.0",158 "version": "1.2.5", 159 "version_normalized": "1.2.5.0", 160 160 "source": { 161 161 "type": "git", 162 162 "url": "https://github.com/halaxa/json-machine.git", 163 "reference": " 58fb6e97c53c3341bb1f3685b8bdbeedf3f9616c"163 "reference": "d0f84abf79ac98145d478b66d2bcf363d706477c" 164 164 }, 165 165 "dist": { 166 166 "type": "zip", 167 "url": "https://api.github.com/repos/halaxa/json-machine/zipball/ 58fb6e97c53c3341bb1f3685b8bdbeedf3f9616c",168 "reference": " 58fb6e97c53c3341bb1f3685b8bdbeedf3f9616c",167 "url": "https://api.github.com/repos/halaxa/json-machine/zipball/d0f84abf79ac98145d478b66d2bcf363d706477c", 168 "reference": "d0f84abf79ac98145d478b66d2bcf363d706477c", 169 169 "shasum": "" 170 170 }, … … 182 182 "guzzlehttp/guzzle": "To run example with GuzzleHttp" 183 183 }, 184 "time": "2025-0 5-30T12:36:04+00:00",184 "time": "2025-07-07T13:38:34+00:00", 185 185 "type": "library", 186 186 "installation-source": "dist", … … 209 209 "support": { 210 210 "issues": "https://github.com/halaxa/json-machine/issues", 211 "source": "https://github.com/halaxa/json-machine/tree/1.2. 3"211 "source": "https://github.com/halaxa/json-machine/tree/1.2.5" 212 212 }, 213 213 "funding": [ … … 221 221 { 222 222 "name": "sabberworm/php-css-parser", 223 "version": "v8. 8.0",224 "version_normalized": "8. 8.0.0",223 "version": "v8.9.0", 224 "version_normalized": "8.9.0.0", 225 225 "source": { 226 226 "type": "git", 227 227 "url": "https://github.com/MyIntervals/PHP-CSS-Parser.git", 228 "reference": " 3de493bdddfd1f051249af725c7e0d2c38fed740"228 "reference": "d8e916507b88e389e26d4ab03c904a082aa66bb9" 229 229 }, 230 230 "dist": { 231 231 "type": "zip", 232 "url": "https://api.github.com/repos/MyIntervals/PHP-CSS-Parser/zipball/ 3de493bdddfd1f051249af725c7e0d2c38fed740",233 "reference": " 3de493bdddfd1f051249af725c7e0d2c38fed740",232 "url": "https://api.github.com/repos/MyIntervals/PHP-CSS-Parser/zipball/d8e916507b88e389e26d4ab03c904a082aa66bb9", 233 "reference": "d8e916507b88e389e26d4ab03c904a082aa66bb9", 234 234 "shasum": "" 235 235 }, … … 239 239 }, 240 240 "require-dev": { 241 "phpunit/phpunit": "5.7.27 || 6.5.14 || 7.5.20 || 8.5.41" 241 "phpunit/phpunit": "5.7.27 || 6.5.14 || 7.5.20 || 8.5.41", 242 "rawr/cross-data-providers": "^2.0.0" 242 243 }, 243 244 "suggest": { 244 245 "ext-mbstring": "for parsing UTF-8 CSS" 245 246 }, 246 "time": "2025-0 3-23T17:59:05+00:00",247 "time": "2025-07-11T13:20:48+00:00", 247 248 "type": "library", 248 249 "extra": { … … 283 284 "support": { 284 285 "issues": "https://github.com/MyIntervals/PHP-CSS-Parser/issues", 285 "source": "https://github.com/MyIntervals/PHP-CSS-Parser/tree/v8. 8.0"286 "source": "https://github.com/MyIntervals/PHP-CSS-Parser/tree/v8.9.0" 286 287 }, 287 288 "install-path": "../sabberworm/php-css-parser" -
blockart-blocks/tags/2.2.10/vendor/composer/installed.php
r3306181 r3327943 21 21 ), 22 22 'halaxa/json-machine' => array( 23 'pretty_version' => '1.2. 3',24 'version' => '1.2. 3.0',23 'pretty_version' => '1.2.5', 24 'version' => '1.2.5.0', 25 25 'type' => 'library', 26 26 'install_path' => __DIR__ . '/../halaxa/json-machine', 27 27 'aliases' => array(), 28 'reference' => ' 58fb6e97c53c3341bb1f3685b8bdbeedf3f9616c',28 'reference' => 'd0f84abf79ac98145d478b66d2bcf363d706477c', 29 29 'dev_requirement' => false, 30 30 ), … … 36 36 ), 37 37 'sabberworm/php-css-parser' => array( 38 'pretty_version' => 'v8. 8.0',39 'version' => '8. 8.0.0',38 'pretty_version' => 'v8.9.0', 39 'version' => '8.9.0.0', 40 40 'type' => 'library', 41 41 'install_path' => __DIR__ . '/../sabberworm/php-css-parser', 42 42 'aliases' => array(), 43 'reference' => ' 3de493bdddfd1f051249af725c7e0d2c38fed740',43 'reference' => 'd8e916507b88e389e26d4ab03c904a082aa66bb9', 44 44 'dev_requirement' => false, 45 45 ), -
blockart-blocks/tags/2.2.10/vendor/halaxa/json-machine/CHANGELOG.md
r3306181 r3327943 10 10 ## master 11 11 Nothing yet 12 13 <br> 14 15 ## 1.2.5 - 2025-07-07 16 - Slight performance optimization of the tokenizing process (about +7 % speed gain) 17 18 <br> 19 20 ## 1.2.4 - 2025-06-16 21 ### Fixed 22 - The key of a scalar value after a compound value is lost ([#125](https://github.com/halaxa/json-machine/issues/125)). Thanks [@smiletoeverybody](https://github.com/smiletoeverybody) 12 23 13 24 <br> … … 22 33 ## 1.2.2 - 2025-04-30 23 34 ### Changed 24 - Leaner release package ( #124). Thanks [@robotomarvin](https://github.com/robotomarvin)35 - Leaner release package ([#124](https://github.com/halaxa/json-machine/issues/124)). Thanks [@robotomarvin](https://github.com/robotomarvin) 25 36 26 37 <br> … … 28 39 ## 1.2.1 - 2025-04-25 29 40 ### Fixed 30 - File autoloading without composer ( #122). Thanks [@bahco](https://github.com/bahco)31 - Crash on `null` value in `RecursiveItems` ( #119). Thanks [@bark92](https://github.com/bark92)41 - File autoloading without composer ([#122](https://github.com/halaxa/json-machine/issues/122)). Thanks [@bahco](https://github.com/bahco) 42 - Crash on `null` value in `RecursiveItems` ([#119](https://github.com/halaxa/json-machine/issues/119)). Thanks [@bark92](https://github.com/bark92) 32 43 <br> 33 44 … … 43 54 - Exception on misspelled option name suggests a correct one. 44 55 ### Fixed 45 - Wrong key when combining list and scalar value pointers ( #110). Thanks [@daniel-sc](https://github.com/daniel-sc)56 - Wrong key when combining list and scalar value pointers ([#110](https://github.com/halaxa/json-machine/issues/110)). Thanks [@daniel-sc](https://github.com/daniel-sc) 46 57 ### Removed 47 58 - Removed support for PHP 7.0, 7.1 … … 54 65 - Added PHPStan to build pipeline 55 66 ### Fixed 56 - Fixed the case when non-intersecting pointers were considered intersecting ( #106). Thanks [@XedinUnknown](https://github.com/XedinUnknown)67 - Fixed the case when non-intersecting pointers were considered intersecting ([#106](https://github.com/halaxa/json-machine/issues/106)). Thanks [@XedinUnknown](https://github.com/XedinUnknown) 57 68 58 69 <br> … … 60 71 ## 1.1.3 - 2022-10-12 61 72 ### Fixed 62 - Fix the parsing of nested sub-trees that use wildcards ( #83). Thanks [@cerbero90](https://github.com/cerbero90)73 - Fix the parsing of nested sub-trees that use wildcards ([#83](https://github.com/halaxa/json-machine/issues/83)). Thanks [@cerbero90](https://github.com/cerbero90) 63 74 64 75 <br> … … 69 80 70 81 ### Fixed 71 - Meaningful error on invalid token. ( #86)72 - Added missing return type annotation. ( #84)82 - Meaningful error on invalid token. ([#86](https://github.com/halaxa/json-machine/issues/86)) 83 - Added missing return type annotation. ([#84](https://github.com/halaxa/json-machine/issues/84)) 73 84 74 85 <br> … … 169 180 ## 0.6.1 170 181 ### Fixed bugs 171 - Empty dict at the end of an item was causing Syntax error in the next item. Reason: closing `}` did not set object key expectation to `false`. ( #41 via PR #42).182 - Empty dict at the end of an item was causing Syntax error in the next item. Reason: closing `}` did not set object key expectation to `false`. ([#41](https://github.com/halaxa/json-machine/issues/41) via PR [#42](https://github.com/halaxa/json-machine/issues/42)). 172 183 173 184 <br> -
blockart-blocks/tags/2.2.10/vendor/halaxa/json-machine/README.md
r3306181 r3327943 89 89 - Ease of use. Just iterate JSON of any size with `foreach`. No events and callbacks. 90 90 - Efficient iteration on any subtree of the document, specified by [JSON Pointer](#json-pointer) 91 - Speed. Performance critical code contains no unnecessary function calls, no regular expressions91 - Speed. Performance critical code is optimized for speed with JIT in mind, 92 92 and uses native `json_decode` to decode JSON document items by default. See [Decoders](#decoders). 93 93 - Parses not only streams but any iterable that produces JSON chunks. -
blockart-blocks/tags/2.2.10/vendor/halaxa/json-machine/src/FileChunks.php
r3021722 r3327943 20 20 * @param int $chunkSize 21 21 */ 22 public function __construct($fileName, $chunkSize = 1024 * 8)22 public function __construct($fileName, $chunkSize = 1024 * 16) 23 23 { 24 24 $this->fileName = $fileName; -
blockart-blocks/tags/2.2.10/vendor/halaxa/json-machine/src/Parser.php
r3306181 r3327943 267 267 case ']': 268 268 --$currentLevel; 269 if ($currentLevel < $iteratorLevel) { 270 $iteratorStruct = null; 271 } 269 272 $inObject = $stack[$currentLevel] == '{'; 270 273 // no break -
blockart-blocks/tags/2.2.10/vendor/halaxa/json-machine/src/Tokens.php
r3306181 r3327943 38 38 private function createGenerator(): Generator 39 39 { 40 $regex = '/ 41 [{}\[\],:] 42 #| true|false|null 43 #| [\deE.+-]+ 44 #| (t|tr|tru|f|fa|fal|fals|n|nu|nul)$ 45 | [^\xEF\xBB\xBF\s{}\[\],:]+ # todo make matching logic positive as in comments above and solve 2 failing tests 46 /x'; 40 $regex = '/ [{}\[\],:] | [^\xEF\xBB\xBF\s{}\[\],:]+ /x'; 47 41 48 42 $inString = 0; … … 50 44 51 45 foreach ($this->jsonChunks as $jsonChunk) { 52 $chunk Items = explode('"', $carry.$jsonChunk);46 $chunkBlocks = explode('"', $carry.$jsonChunk); 53 47 $carry = ''; 54 48 55 $chunkItemsLastSafeIndex = count($chunk Items) - 2;49 $chunkItemsLastSafeIndex = count($chunkBlocks) - 2; 56 50 for ($i = 0; $i <= $chunkItemsLastSafeIndex; ++$i) { 57 51 if ($inString) { 58 if ($this->stringIsEscaping($chunk Items[$i])) {59 $carry .= $chunk Items[$i].'"';52 if ($this->stringIsEscaping($chunkBlocks[$i])) { 53 $carry .= $chunkBlocks[$i].'"'; 60 54 } else { 61 yield '"'.$carry.$chunkItems[$i].'"';55 yield "\"$carry$chunkBlocks[$i]\""; 62 56 $carry = ''; 63 57 $inString = 0; 64 58 } 65 59 } else { 66 preg_match_all($regex, $chunkItems[$i], $matches); 67 yield from $matches[0]; 60 $chunkBlock = trim($chunkBlocks[$i]); 61 if (strlen($chunkBlock) == 1) { 62 yield $chunkBlock; 63 } else { 64 preg_match_all($regex, $chunkBlock, $matches); 65 yield from $matches[0]; 66 } 68 67 $inString = 1; 69 68 } … … 71 70 72 71 if ($inString) { 73 $carry .= $chunk Items[$i];72 $carry .= $chunkBlocks[$i]; 74 73 } else { 75 preg_match_all($regex, $chunk Items[$i], $matches);74 preg_match_all($regex, $chunkBlocks[$i], $matches); 76 75 $carry = array_pop($matches[0]); 77 76 yield from $matches[0]; … … 88 87 $i = strlen($token); 89 88 $slashes = 0; 90 while (--$i >= 0 && isset($token[$i]) &&$token[$i] === '\\') {89 while (--$i >= 0 && $token[$i] === '\\') { 91 90 ++$slashes; 92 91 } -
blockart-blocks/tags/2.2.10/vendor/halaxa/json-machine/src/autoloader.php
r3306181 r3327943 42 42 } 43 43 44 // @codeCoverageIgnoreStart 44 45 $files = json_decode(file_get_contents(__DIR__.'/../composer.json'), true)['autoload']['files']; 45 46 foreach ($files as $file) { … … 47 48 } 48 49 49 // @codeCoverageIgnoreStart50 50 return [Autoloading::class, 'autoloader']; 51 51 // @codeCoverageIgnoreEnd -
blockart-blocks/tags/2.2.10/vendor/sabberworm/php-css-parser/CHANGELOG.md
r3306181 r3327943 16 16 ### Fixed 17 17 18 ## 8.9.0: New features, bug fixes and deprecations 19 20 ### Added 21 22 - `RuleSet::removeMatchingRules()` method 23 (for the implementing classes `AtRuleSet` and `DeclarationBlock`) (#1249) 24 - `RuleSet::removeAllRules()` method 25 (for the implementing classes `AtRuleSet` and `DeclarationBlock`) (#1249) 26 - Add Interface `CSSElement` (#1231) 27 - Methods `getLineNumber` and `getColumnNumber` which return a nullable `int` 28 for the following classes: 29 `Comment`, `CSSList`, `SourceException`, `Charset`, `CSSNamespace`, `Import`, 30 `Rule`, `DeclarationBlock`, `RuleSet`, `CSSFunction`, `Value` (#1225, #1263) 31 - `Positionable` interface for CSS items that may have a position 32 (line and perhaps column number) in the parsed CSS (#1221) 33 34 ### Changed 35 36 - Parameters for `getAllValues()` are deconflated, so it now takes three (all 37 optional), allowing `$element` and `$ruleSearchPattern` to be specified 38 separately (#1241) 39 - Implement `Positionable` in the following CSS item classes: 40 `Comment`, `CSSList`, `SourceException`, `Charset`, `CSSNamespace`, `Import`, 41 `Rule`, `DeclarationBlock`, `RuleSet`, `CSSFunction`, `Value` (#1225) 42 43 ### Deprecated 44 45 - Support for PHP < 7.2 is deprecated; version 9.0 will require PHP 7.2 or later 46 (#1264) 47 - Passing a `string` or `null` to `RuleSet::removeRule()` is deprecated 48 (implementing classes are `AtRuleSet` and `DeclarationBlock`); 49 use `removeMatchingRules()` or `removeAllRules()` instead (#1249) 50 - Passing a `Rule` to `RuleSet::getRules()` or `getRulesAssoc()` is deprecated, 51 affecting the implementing classes `AtRuleSet` and `DeclarationBlock` 52 (call e.g. `getRules($rule->getRule())` instead) (#1248) 53 - Passing a string as the first argument to `getAllValues()` is deprecated; 54 the search pattern should now be passed as the second argument (#1241) 55 - Passing a Boolean as the second argument to `getAllValues()` is deprecated; 56 the flag for searching in function arguments should now be passed as the third 57 argument (#1241) 58 - `getLineNo()` is deprecated in these classes (use `getLineNumber()` instead): 59 `Comment`, `CSSList`, `SourceException`, `Charset`, `CSSNamespace`, `Import`, 60 `Rule`, `DeclarationBlock`, `RuleSet`, `CSSFunction`, `Value` (#1225, #1233) 61 - `Rule::getColNo()` is deprecated (use `getColumnNumber()` instead) 62 (#1225, #1233) 63 - Providing zero as the line number argument to `Rule::setPosition()` is 64 deprecated (pass `null` instead if there is no line number) (#1225, #1233) 65 66 ### Fixed 67 68 - Set line number when `RuleSet::addRule()` called with only column number set 69 (#1265) 70 - Ensure first rule added with `RuleSet::addRule()` has valid position (#1262) 71 18 72 ## 8.8.0: Bug fixes and deprecations 19 73 … … 24 78 ### Changed 25 79 26 - Mark the `OutputFormat` theconstructor as `@internal` (#1131)80 - Mark the `OutputFormat` constructor as `@internal` (#1131) 27 81 - Mark `OutputFormatter` as `@internal` (#896) 28 82 - Mark `Selector::isValid()` as `@internal` (#1037) … … 36 90 - Deprecate `OutputFormat::get()` and `::set()` (#1107) 37 91 - Deprecate support for `-webkit-calc` and `-moz-calc` (#1086) 92 - Deprecate magic method forwarding from `OutputFormat` to `OutputFormatter` 93 (#894) 38 94 - Deprecate `__toString()` (#1006) 39 95 - Deprecate greedy calculation of selector specificity (#1018) … … 62 118 ### Deprecated 63 119 64 - Deprecate magic method forwarding from `OutputFormat` to `OutputFormatter`65 (#894)66 120 - Deprecate the expansion of shorthand properties (#719) 67 121 - Deprecate `Parser::setCharset()` and `Parser::getCharset()` (#703) -
blockart-blocks/tags/2.2.10/vendor/sabberworm/php-css-parser/src/CSSList/CSSBlockList.php
r2993158 r3327943 3 3 namespace Sabberworm\CSS\CSSList; 4 4 5 use Sabberworm\CSS\CSSElement; 5 6 use Sabberworm\CSS\Property\Selector; 6 7 use Sabberworm\CSS\Rule\Rule; … … 60 61 61 62 /** 62 * @param CSSList|Rule|RuleSet|Value $oElement 63 * Returns all `Value` objects found recursively in `Rule`s in the tree. 64 * 65 * @param CSSElement|string|null $element 66 * This is the `CSSList` or `RuleSet` to start the search from (defaults to the whole document). 67 * If a string is given, it is used as a rule name filter. 68 * Passing a string for this parameter is deprecated in version 8.9.0, and will not work from v9.0; 69 * use the following parameter to pass a rule name filter instead. 70 * @param string|bool|null $ruleSearchPatternOrSearchInFunctionArguments 71 * This allows filtering rules by property name 72 * (e.g. if "color" is passed, only `Value`s from `color` properties will be returned, 73 * or if "font-" is provided, `Value`s from all font rules, like `font-size`, and including `font` itself, 74 * will be returned). 75 * If a Boolean is provided, it is treated as the `$searchInFunctionArguments` argument. 76 * Passing a Boolean for this parameter is deprecated in version 8.9.0, and will not work from v9.0; 77 * use the `$searchInFunctionArguments` parameter instead. 78 * @param bool $searchInFunctionArguments whether to also return Value objects used as Function arguments. 79 * 80 * @return array<int, Value> 81 * 82 * @see RuleSet->getRules() 83 */ 84 public function getAllValues( 85 $element = null, 86 $ruleSearchPatternOrSearchInFunctionArguments = null, 87 $searchInFunctionArguments = false 88 ) { 89 if (\is_bool($ruleSearchPatternOrSearchInFunctionArguments)) { 90 $searchInFunctionArguments = $ruleSearchPatternOrSearchInFunctionArguments; 91 $searchString = null; 92 } else { 93 $searchString = $ruleSearchPatternOrSearchInFunctionArguments; 94 } 95 96 if ($element === null) { 97 $element = $this; 98 } elseif (\is_string($element)) { 99 $searchString = $element; 100 $element = $this; 101 } 102 103 $result = []; 104 $this->allValues($element, $result, $searchString, $searchInFunctionArguments); 105 return $result; 106 } 107 108 /** 109 * @param CSSElement|string $oElement 63 110 * @param array<int, Value> $aResult 64 111 * @param string|null $sSearchString -
blockart-blocks/tags/2.2.10/vendor/sabberworm/php-css-parser/src/CSSList/CSSList.php
r3306181 r3327943 5 5 use Sabberworm\CSS\Comment\Comment; 6 6 use Sabberworm\CSS\Comment\Commentable; 7 use Sabberworm\CSS\CSSElement; 7 8 use Sabberworm\CSS\OutputFormat; 8 9 use Sabberworm\CSS\Parsing\ParserState; … … 10 11 use Sabberworm\CSS\Parsing\UnexpectedEOFException; 11 12 use Sabberworm\CSS\Parsing\UnexpectedTokenException; 13 use Sabberworm\CSS\Position\Position; 14 use Sabberworm\CSS\Position\Positionable; 12 15 use Sabberworm\CSS\Property\AtRule; 13 16 use Sabberworm\CSS\Property\Charset; … … 30 33 * It can also contain `Import` and `Charset` objects stemming from at-rules. 31 34 */ 32 abstract class CSSList implements Renderable, Commentable35 abstract class CSSList implements Commentable, CSSElement, Positionable 33 36 { 37 use Position; 38 34 39 /** 35 40 * @var array<array-key, Comment> … … 45 50 */ 46 51 protected $aContents; 47 48 /**49 * @var int50 *51 * @internal since 8.8.052 */53 protected $iLineNo;54 52 55 53 /** … … 60 58 $this->aComments = []; 61 59 $this->aContents = []; 62 $this-> iLineNo = $iLineNo;60 $this->setPosition($iLineNo); 63 61 } 64 62 … … 260 258 261 259 /** 262 * @return int263 */264 public function getLineNo()265 {266 return $this->iLineNo;267 }268 269 /**270 260 * Prepends an item to the list of contents. 271 261 * -
blockart-blocks/tags/2.2.10/vendor/sabberworm/php-css-parser/src/CSSList/Document.php
r3306181 r3327943 9 9 use Sabberworm\CSS\RuleSet\DeclarationBlock; 10 10 use Sabberworm\CSS\RuleSet\RuleSet; 11 use Sabberworm\CSS\Value\Value;12 11 13 12 /** … … 75 74 $aResult = []; 76 75 $this->allRuleSets($aResult); 77 return $aResult;78 }79 80 /**81 * Returns all `Value` objects found recursively in `Rule`s in the tree.82 *83 * @param CSSList|RuleSet|string $mElement84 * the `CSSList` or `RuleSet` to start the search from (defaults to the whole document).85 * If a string is given, it is used as rule name filter.86 * @param bool $bSearchInFunctionArguments whether to also return Value objects used as Function arguments.87 *88 * @return array<int, Value>89 *90 * @see RuleSet->getRules()91 */92 public function getAllValues($mElement = null, $bSearchInFunctionArguments = false)93 {94 $sSearchString = null;95 if ($mElement === null) {96 $mElement = $this;97 } elseif (is_string($mElement)) {98 $sSearchString = $mElement;99 $mElement = $this;100 }101 /** @var array<int, Value> $aResult */102 $aResult = [];103 $this->allValues($mElement, $aResult, $sSearchString, $bSearchInFunctionArguments);104 76 return $aResult; 105 77 } -
blockart-blocks/tags/2.2.10/vendor/sabberworm/php-css-parser/src/Comment/Comment.php
r3306181 r3327943 5 5 use Sabberworm\CSS\OutputFormat; 6 6 use Sabberworm\CSS\Renderable; 7 use Sabberworm\CSS\Position\Position; 8 use Sabberworm\CSS\Position\Positionable; 7 9 8 class Comment implements Renderable10 class Comment implements Positionable, Renderable 9 11 { 10 /** 11 * @var int 12 * 13 * @internal since 8.8.0 14 */ 15 protected $iLineNo; 12 use Position; 16 13 17 14 /** … … 29 26 { 30 27 $this->sComment = $sComment; 31 $this-> iLineNo = $iLineNo;28 $this->setPosition($iLineNo); 32 29 } 33 30 … … 38 35 { 39 36 return $this->sComment; 40 }41 42 /**43 * @return int44 */45 public function getLineNo()46 {47 return $this->iLineNo;48 37 } 49 38 -
blockart-blocks/tags/2.2.10/vendor/sabberworm/php-css-parser/src/Parsing/SourceException.php
r2993158 r3327943 3 3 namespace Sabberworm\CSS\Parsing; 4 4 5 class SourceException extends \Exception 5 use Sabberworm\CSS\Position\Position; 6 use Sabberworm\CSS\Position\Positionable; 7 8 class SourceException extends \Exception implements Positionable 6 9 { 7 /** 8 * @var int 9 */ 10 private $iLineNo; 10 use Position; 11 11 12 12 /** … … 16 16 public function __construct($sMessage, $iLineNo = 0) 17 17 { 18 $this-> iLineNo = $iLineNo;18 $this->setPosition($iLineNo); 19 19 if (!empty($iLineNo)) { 20 20 $sMessage .= " [line no: $iLineNo]"; … … 22 22 parent::__construct($sMessage); 23 23 } 24 25 /**26 * @return int27 */28 public function getLineNo()29 {30 return $this->iLineNo;31 }32 24 } -
blockart-blocks/tags/2.2.10/vendor/sabberworm/php-css-parser/src/Property/CSSNamespace.php
r3306181 r3327943 5 5 use Sabberworm\CSS\Comment\Comment; 6 6 use Sabberworm\CSS\OutputFormat; 7 use Sabberworm\CSS\Position\Position; 8 use Sabberworm\CSS\Position\Positionable; 7 9 8 10 /** 9 11 * `CSSNamespace` represents an `@namespace` rule. 10 12 */ 11 class CSSNamespace implements AtRule 13 class CSSNamespace implements AtRule, Positionable 12 14 { 15 use Position; 16 13 17 /** 14 18 * @var string … … 42 46 $this->mUrl = $mUrl; 43 47 $this->sPrefix = $sPrefix; 44 $this-> iLineNo = $iLineNo;48 $this->setPosition($iLineNo); 45 49 $this->aComments = []; 46 }47 48 /**49 * @return int50 */51 public function getLineNo()52 {53 return $this->iLineNo;54 50 } 55 51 -
blockart-blocks/tags/2.2.10/vendor/sabberworm/php-css-parser/src/Property/Charset.php
r3306181 r3327943 5 5 use Sabberworm\CSS\Comment\Comment; 6 6 use Sabberworm\CSS\OutputFormat; 7 use Sabberworm\CSS\Position\Position; 8 use Sabberworm\CSS\Position\Positionable; 7 9 use Sabberworm\CSS\Value\CSSString; 8 10 … … 15 17 * - Must not appear more than once. 16 18 */ 17 class Charset implements AtRule 19 class Charset implements AtRule, Positionable 18 20 { 21 use Position; 22 19 23 /** 20 24 * @var CSSString … … 43 47 { 44 48 $this->oCharset = $oCharset; 45 $this-> iLineNo = $iLineNo;49 $this->setPosition($iLineNo); 46 50 $this->aComments = []; 47 }48 49 /**50 * @return int51 */52 public function getLineNo()53 {54 return $this->iLineNo;55 51 } 56 52 -
blockart-blocks/tags/2.2.10/vendor/sabberworm/php-css-parser/src/Property/Import.php
r3306181 r3327943 5 5 use Sabberworm\CSS\Comment\Comment; 6 6 use Sabberworm\CSS\OutputFormat; 7 use Sabberworm\CSS\Position\Position; 8 use Sabberworm\CSS\Position\Positionable; 7 9 use Sabberworm\CSS\Value\URL; 8 10 … … 10 12 * Class representing an `@import` rule. 11 13 */ 12 class Import implements AtRule 14 class Import implements AtRule, Positionable 13 15 { 16 use Position; 17 14 18 /** 15 19 * @var URL … … 21 25 */ 22 26 private $sMediaQuery; 23 24 /**25 * @var int26 *27 * @internal since 8.8.028 */29 protected $iLineNo;30 27 31 28 /** … … 45 42 $this->oLocation = $oLocation; 46 43 $this->sMediaQuery = $sMediaQuery; 47 $this-> iLineNo = $iLineNo;44 $this->setPosition($iLineNo); 48 45 $this->aComments = []; 49 }50 51 /**52 * @return int53 */54 public function getLineNo()55 {56 return $this->iLineNo;57 46 } 58 47 -
blockart-blocks/tags/2.2.10/vendor/sabberworm/php-css-parser/src/Rule/Rule.php
r3306181 r3327943 5 5 use Sabberworm\CSS\Comment\Comment; 6 6 use Sabberworm\CSS\Comment\Commentable; 7 use Sabberworm\CSS\CSSElement; 7 8 use Sabberworm\CSS\OutputFormat; 8 9 use Sabberworm\CSS\Parsing\ParserState; 9 10 use Sabberworm\CSS\Parsing\UnexpectedEOFException; 10 11 use Sabberworm\CSS\Parsing\UnexpectedTokenException; 11 use Sabberworm\CSS\Renderable; 12 use Sabberworm\CSS\Position\Position; 13 use Sabberworm\CSS\Position\Positionable; 12 14 use Sabberworm\CSS\Value\RuleValueList; 13 15 use Sabberworm\CSS\Value\Value; … … 18 20 * In CSS, `Rule`s are expressed as follows: “key: value[0][0] value[0][1], value[1][0] value[1][1];” 19 21 */ 20 class Rule implements Renderable, Commentable22 class Rule implements Commentable, CSSElement, Positionable 21 23 { 24 use Position; 25 22 26 /** 23 27 * @var string … … 39 43 */ 40 44 private $aIeHack; 41 42 /**43 * @var int44 */45 protected $iLineNo;46 47 /**48 * @var int49 *50 * @internal since 8.8.051 */52 protected $iColNo;53 45 54 46 /** … … 70 62 $this->bIsImportant = false; 71 63 $this->aIeHack = []; 72 $this->iLineNo = $iLineNo; 73 $this->iColNo = $iColNo; 64 $this->setPosition($iLineNo, $iColNo); 74 65 $this->aComments = []; 75 66 } … … 144 135 145 136 /** 146 * @return int147 */148 public function getLineNo()149 {150 return $this->iLineNo;151 }152 153 /**154 * @return int155 */156 public function getColNo()157 {158 return $this->iColNo;159 }160 161 /**162 * @param int $iLine163 * @param int $iColumn164 *165 * @return void166 */167 public function setPosition($iLine, $iColumn)168 {169 $this->iColNo = $iColumn;170 $this->iLineNo = $iLine;171 }172 173 /**174 137 * @param string $sRule 175 138 * … … 296 259 if (!$this->mValue instanceof RuleValueList || $this->mValue->getListSeparator() !== $sType) { 297 260 $mCurrentValue = $this->mValue; 298 $this->mValue = new RuleValueList($sType, $this-> iLineNo);261 $this->mValue = new RuleValueList($sType, $this->getLineNumber()); 299 262 if ($mCurrentValue) { 300 263 $this->mValue->addListComponent($mCurrentValue); -
blockart-blocks/tags/2.2.10/vendor/sabberworm/php-css-parser/src/RuleSet/DeclarationBlock.php
r3306181 r3327943 435 435 'background-attachment' => ['scroll'], 436 436 'background-position' => [ 437 new Size(0, '%', false, $this-> iLineNo),438 new Size(0, '%', false, $this-> iLineNo),437 new Size(0, '%', false, $this->getLineNo()), 438 new Size(0, '%', false, $this->getLineNo()), 439 439 ], 440 440 ]; … … 802 802 } 803 803 if ($aLHValues[0] !== 'normal') { 804 $val = new RuleValueList('/', $this-> iLineNo);804 $val = new RuleValueList('/', $this->getLineNo()); 805 805 $val->addListComponent($aFSValues[0]); 806 806 $val->addListComponent($aLHValues[0]); … … 818 818 $aFFValues = $mRuleValue->getListComponents(); 819 819 } 820 $oFFValue = new RuleValueList(',', $this-> iLineNo);820 $oFFValue = new RuleValueList(',', $this->getLineNo()); 821 821 $oFFValue->setListComponents($aFFValues); 822 822 $oNewRule->addValue($oFFValue); … … 852 852 if (count($this->aSelectors) === 0) { 853 853 // If all the selectors have been removed, this declaration block becomes invalid 854 throw new OutputException("Attempt to print declaration block with missing selector", $this->iLineNo); 854 throw new OutputException( 855 'Attempt to print declaration block with missing selector', 856 $this->getLineNumber() 857 ); 855 858 } 856 859 $sResult .= $oOutputFormat->sBeforeDeclarationBlock; -
blockart-blocks/tags/2.2.10/vendor/sabberworm/php-css-parser/src/RuleSet/RuleSet.php
r3306181 r3327943 5 5 use Sabberworm\CSS\Comment\Comment; 6 6 use Sabberworm\CSS\Comment\Commentable; 7 use Sabberworm\CSS\CSSElement; 7 8 use Sabberworm\CSS\OutputFormat; 8 9 use Sabberworm\CSS\Parsing\ParserState; 9 10 use Sabberworm\CSS\Parsing\UnexpectedEOFException; 10 11 use Sabberworm\CSS\Parsing\UnexpectedTokenException; 12 use Sabberworm\CSS\Position\Position; 13 use Sabberworm\CSS\Position\Positionable; 11 14 use Sabberworm\CSS\Renderable; 12 15 use Sabberworm\CSS\Rule\Rule; … … 21 24 * (which accepts either a `Rule` or a rule name; optionally suffixed by a dash to remove all related rules). 22 25 */ 23 abstract class RuleSet implements Renderable, Commentable26 abstract class RuleSet implements CSSElement, Commentable, Positionable 24 27 { 28 use Position; 29 25 30 /** 26 31 * the rules in this rule set, using the property name as the key, … … 32 37 33 38 /** 34 * @var int39 * @var array<array-key, Comment> 35 40 * 36 41 * @internal since 8.8.0 37 42 */ 38 protected $iLineNo;39 40 /**41 * @var array<array-key, Comment>42 *43 * @internal since 8.8.044 */45 43 protected $aComments; 46 44 … … 51 49 { 52 50 $this->aRules = []; 53 $this-> iLineNo = $iLineNo;51 $this->setPosition($iLineNo); 54 52 $this->aComments = []; 55 53 } … … 104 102 105 103 /** 106 * @return int107 */108 public function getLineNo()109 {110 return $this->iLineNo;111 }112 113 /**114 104 * @param Rule|null $oSibling 115 105 * … … 132 122 } 133 123 } 134 if ($oRule->getLineN o() === 0 && $oRule->getColNo() === 0) {124 if ($oRule->getLineNumber() === null) { 135 125 //this node is added manually, give it the next best line 126 $columnNumber = $oRule->getColNo(); 136 127 $rules = $this->getRules(); 137 128 $pos = count($rules); 138 129 if ($pos > 0) { 139 130 $last = $rules[$pos - 1]; 140 $oRule->setPosition($last->getLineNo() + 1, 0); 141 } 131 $oRule->setPosition($last->getLineNo() + 1, $columnNumber); 132 } else { 133 $oRule->setPosition(1, $columnNumber); 134 } 135 } elseif ($oRule->getColumnNumber() === null) { 136 $oRule->setPosition($oRule->getLineNumber(), 0); 142 137 } 143 138 … … 157 152 * If the pattern ends with a dash, all rules starting with the pattern are returned 158 153 * as well as one matching the pattern with the dash excluded. 159 * Passing a Rule behaves like calling `getRules($mRule->getRule())`. 154 * Passing a `Rule` for this parameter is deprecated in version 8.9.0, and will not work from v9.0. 155 * Call `getRules($rule->getRule())` instead. 160 156 * 161 157 * @return array<int, Rule> … … 216 212 * Pattern to search for. If null, returns all rules. If the pattern ends with a dash, 217 213 * all rules starting with the pattern are returned as well as one matching the pattern with the dash 218 * excluded. Passing a Rule behaves like calling `getRules($mRule->getRule())`. 214 * excluded. 215 * Passing a `Rule` for this parameter is deprecated in version 8.9.0, and will not work from v9.0. 216 * Call `getRulesAssoc($rule->getRule())` instead. 219 217 * 220 218 * @return array<string, Rule> … … 231 229 232 230 /** 233 * Removes a rule from this RuleSet. This accepts all the possible values that `getRules()` accepts. 234 * 235 * If given a Rule, it will only remove this particular rule (by identity). 236 * If given a name, it will remove all rules by that name. 237 * 238 * Note: this is different from pre-v.2.0 behaviour of PHP-CSS-Parser, where passing a Rule instance would 239 * remove all rules with the same name. To get the old behaviour, use `removeRule($oRule->getRule())`. 231 * Removes a `Rule` from this `RuleSet` by identity. 240 232 * 241 233 * @param Rule|string|null $mRule 242 * pattern to remove. If $mRule is null, all rules are removed. If the pattern ends in a dash, 243 * all rules starting with the pattern are removed as well as one matching the pattern with the dash 244 * excluded. Passing a Rule behaves matches by identity. 245 * 246 * @return void 234 * `Rule` to remove. 235 * Passing a `string` or `null` is deprecated in version 8.9.0, and will no longer work from v9.0. 236 * Use `removeMatchingRules()` or `removeAllRules()` instead. 247 237 */ 248 238 public function removeRule($mRule) … … 258 248 } 259 249 } 250 } elseif ($mRule !== null) { 251 $this->removeMatchingRules($mRule); 260 252 } else { 261 foreach ($this->aRules as $sName => $aRules) { 262 // Either no search rule is given or the search rule matches the found rule exactly 263 // or the search rule ends in “-” and the found rule starts with the search rule or equals it 264 // (without the trailing dash). 265 if ( 266 !$mRule || $sName === $mRule 267 || (strrpos($mRule, '-') === strlen($mRule) - strlen('-') 268 && (strpos($sName, $mRule) === 0 || $sName === substr($mRule, 0, -1))) 269 ) { 270 unset($this->aRules[$sName]); 271 } 272 } 273 } 253 $this->removeAllRules(); 254 } 255 } 256 257 /** 258 * Removes rules by property name or search pattern. 259 * 260 * @param string $searchPattern 261 * pattern to remove. 262 * If the pattern ends in a dash, 263 * all rules starting with the pattern are removed as well as one matching the pattern with the dash 264 * excluded. 265 */ 266 public function removeMatchingRules($searchPattern) 267 { 268 foreach ($this->aRules as $propertyName => $rules) { 269 // Either the search rule matches the found rule exactly 270 // or the search rule ends in “-” and the found rule starts with the search rule or equals it 271 // (without the trailing dash). 272 if ( 273 $propertyName === $searchPattern 274 || (\strrpos($searchPattern, '-') === \strlen($searchPattern) - \strlen('-') 275 && (\strpos($propertyName, $searchPattern) === 0 276 || $propertyName === \substr($searchPattern, 0, -1))) 277 ) { 278 unset($this->aRules[$propertyName]); 279 } 280 } 281 } 282 283 public function removeAllRules() 284 { 285 $this->aRules = []; 274 286 } 275 287 -
blockart-blocks/tags/2.2.10/vendor/sabberworm/php-css-parser/src/Value/CSSFunction.php
r3306181 r3327943 35 35 } 36 36 $this->sName = $sName; 37 $this-> iLineNo = $iLineNo;37 $this->setPosition($iLineNo); // TODO: redundant? 38 38 parent::__construct($aArguments, $sSeparator, $iLineNo); 39 39 } -
blockart-blocks/tags/2.2.10/vendor/sabberworm/php-css-parser/src/Value/Value.php
r3306181 r3327943 3 3 namespace Sabberworm\CSS\Value; 4 4 5 use Sabberworm\CSS\CSSElement; 5 6 use Sabberworm\CSS\Parsing\ParserState; 6 7 use Sabberworm\CSS\Parsing\SourceException; 7 8 use Sabberworm\CSS\Parsing\UnexpectedEOFException; 8 9 use Sabberworm\CSS\Parsing\UnexpectedTokenException; 9 use Sabberworm\CSS\Renderable; 10 use Sabberworm\CSS\Position\Position; 11 use Sabberworm\CSS\Position\Positionable; 10 12 11 13 /** … … 13 15 * abstract subclass `ValueList`. 14 16 */ 15 abstract class Value implements Renderable17 abstract class Value implements CSSElement, Positionable 16 18 { 17 /** 18 * @var int 19 * 20 * @internal since 8.8.0 21 */ 22 protected $iLineNo; 19 use Position; 23 20 24 21 /** … … 27 24 public function __construct($iLineNo = 0) 28 25 { 29 $this-> iLineNo = $iLineNo;26 $this->setPosition($iLineNo); 30 27 } 31 28 … … 219 216 return "U+{$sRange}"; 220 217 } 221 222 /**223 * @return int224 */225 public function getLineNo()226 {227 return $this->iLineNo;228 }229 218 } -
blockart-blocks/trunk/blockart.php
r3320504 r3327943 5 5 * Author: WPBlockArt 6 6 * Author URI: https://wpblockart.com/ 7 * Version: 2.2. 97 * Version: 2.2.10 8 8 * Requires at least: 5.5 9 9 * Requires PHP: 7.4 … … 20 20 defined( 'ABSPATH' ) || exit; 21 21 22 ! defined( 'BLOCKART_VERSION' ) && define( 'BLOCKART_VERSION', '2.2. 9' );22 ! defined( 'BLOCKART_VERSION' ) && define( 'BLOCKART_VERSION', '2.2.10' ); 23 23 ! defined( 'BLOCKART_PLUGIN_FILE' ) && define( 'BLOCKART_PLUGIN_FILE', __FILE__ ); 24 24 ! defined( 'BLOCKART_PLUGIN_DIR' ) && define( 'BLOCKART_PLUGIN_DIR', dirname( BLOCKART_PLUGIN_FILE ) ); -
blockart-blocks/trunk/changelog.txt
r3320504 r3327943 1 1 == Changelog == 2 = 2.2.10 - 15-07-2025 = 3 * Fix - PHP Error. 4 2 5 = 2.2.9 - 01-07-2025 = 3 6 * Added - Link Option to Timeline Block. -
blockart-blocks/trunk/includes/RestApi/Controllers/LibraryDataController.php
r3021722 r3327943 100 100 */ 101 101 protected function prepare_items_for_response( $data, $request ) { 102 $categorizer = function ( $data_to_categorize ) {102 $categorizer = function ( $data_to_categorize ) { 103 103 $result = array(); 104 104 foreach ( $data_to_categorize as $item ) { … … 139 139 * 140 140 * @param boolean $force 141 * @return array 141 * 142 * @return \WP_Error 142 143 */ 143 144 protected function fetch( $force = false ) { … … 166 167 $data = wp_remote_retrieve_body( $response ); 167 168 $data = json_decode( $data, true ); 168 169 set_transient( '_blockart_library_data', $data, WEEK_IN_SECONDS ); 169 if ( 170 is_array( $data ) && 171 isset( $data['sections'], $data['templates'] ) && 172 is_array( $data['sections'] ) && 173 is_array( $data['templates'] ) 174 ) { 175 set_transient( '_blockart_library_data', $data, WEEK_IN_SECONDS ); 176 } else { 177 return new \WP_Error( 178 'invalid_data', 179 esc_html__( 'Invalid data received from the library.', 'blockart' ), 180 array( 'status' => 500 ) 181 ); 182 } 170 183 } 171 184 -
blockart-blocks/trunk/includes/Update.php
r3054382 r3327943 48 48 $this->update_to_2_0_9(); 49 49 } 50 if ( version_compare( $old_version, '2. 1.0', '<' ) ) {51 $this->update_to_2_ 1_0();50 if ( version_compare( $old_version, '2.2.10', '<' ) ) { 51 $this->update_to_2_2_10(); 52 52 } 53 53 54 } 54 55 … … 118 119 delete_transient( '_blockart_library_data' ); 119 120 } 121 122 /** 123 * Update to 2.2.10. 124 * 125 * @return void 126 */ 127 private function update_to_2_2_10() { 128 delete_transient( '_blockart_library_data' ); 129 } 120 130 } -
blockart-blocks/trunk/readme.txt
r3320504 r3327943 5 5 Tested up to: 6.8 6 6 Requires PHP: 7.4 7 Stable tag: 2.2. 97 Stable tag: 2.2.10 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 249 249 250 250 == Changelog == 251 = 2.2.10 - 15-07-2025 = 252 * Fix - PHP Error. 253 251 254 = 2.2.9 - 01-07-2025 = 252 255 * Added - Link Option to Timeline Block. -
blockart-blocks/trunk/vendor/autoload.php
r3320504 r3327943 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit 995ba1463eb3e341a332e70ce1584dcf::getLoader();7 return ComposerAutoloaderInit6e4a9e677d578210d8453abf61d2bef1::getLoader(); -
blockart-blocks/trunk/vendor/composer/autoload_classmap.php
r3306181 r3327943 205 205 'JsonMachine\\TokensWithDebugging' => $vendorDir . '/halaxa/json-machine/src/TokensWithDebugging.php', 206 206 'JsonMachine\\ValidJsonPointers' => $vendorDir . '/halaxa/json-machine/src/ValidJsonPointers.php', 207 'Sabberworm\\CSS\\CSSElement' => $vendorDir . '/sabberworm/php-css-parser/src/CSSElement.php', 207 208 'Sabberworm\\CSS\\CSSList\\AtRuleBlockList' => $vendorDir . '/sabberworm/php-css-parser/src/CSSList/AtRuleBlockList.php', 208 209 'Sabberworm\\CSS\\CSSList\\CSSBlockList' => $vendorDir . '/sabberworm/php-css-parser/src/CSSList/CSSBlockList.php', … … 221 222 'Sabberworm\\CSS\\Parsing\\UnexpectedEOFException' => $vendorDir . '/sabberworm/php-css-parser/src/Parsing/UnexpectedEOFException.php', 222 223 'Sabberworm\\CSS\\Parsing\\UnexpectedTokenException' => $vendorDir . '/sabberworm/php-css-parser/src/Parsing/UnexpectedTokenException.php', 224 'Sabberworm\\CSS\\Position\\Position' => $vendorDir . '/sabberworm/php-css-parser/src/Position/Position.php', 225 'Sabberworm\\CSS\\Position\\Positionable' => $vendorDir . '/sabberworm/php-css-parser/src/Position/Positionable.php', 223 226 'Sabberworm\\CSS\\Property\\AtRule' => $vendorDir . '/sabberworm/php-css-parser/src/Property/AtRule.php', 224 227 'Sabberworm\\CSS\\Property\\CSSNamespace' => $vendorDir . '/sabberworm/php-css-parser/src/Property/CSSNamespace.php', -
blockart-blocks/trunk/vendor/composer/autoload_real.php
r3320504 r3327943 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 995ba1463eb3e341a332e70ce1584dcf5 class ComposerAutoloaderInit6e4a9e677d578210d8453abf61d2bef1 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit 995ba1463eb3e341a332e70ce1584dcf', 'loadClassLoader'), true, true);25 spl_autoload_register(array('ComposerAutoloaderInit6e4a9e677d578210d8453abf61d2bef1', 'loadClassLoader'), true, true); 26 26 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__))); 27 spl_autoload_unregister(array('ComposerAutoloaderInit 995ba1463eb3e341a332e70ce1584dcf', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInit6e4a9e677d578210d8453abf61d2bef1', '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 __DIR__ . '/autoload_static.php'; 32 32 33 call_user_func(\Composer\Autoload\ComposerStaticInit 995ba1463eb3e341a332e70ce1584dcf::getInitializer($loader));33 call_user_func(\Composer\Autoload\ComposerStaticInit6e4a9e677d578210d8453abf61d2bef1::getInitializer($loader)); 34 34 } else { 35 35 $map = require __DIR__ . '/autoload_namespaces.php'; … … 52 52 53 53 if ($useStaticLoader) { 54 $includeFiles = Composer\Autoload\ComposerStaticInit 995ba1463eb3e341a332e70ce1584dcf::$files;54 $includeFiles = Composer\Autoload\ComposerStaticInit6e4a9e677d578210d8453abf61d2bef1::$files; 55 55 } else { 56 56 $includeFiles = require __DIR__ . '/autoload_files.php'; 57 57 } 58 58 foreach ($includeFiles as $fileIdentifier => $file) { 59 composerRequire 995ba1463eb3e341a332e70ce1584dcf($fileIdentifier, $file);59 composerRequire6e4a9e677d578210d8453abf61d2bef1($fileIdentifier, $file); 60 60 } 61 61 … … 69 69 * @return void 70 70 */ 71 function composerRequire 995ba1463eb3e341a332e70ce1584dcf($fileIdentifier, $file)71 function composerRequire6e4a9e677d578210d8453abf61d2bef1($fileIdentifier, $file) 72 72 { 73 73 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
blockart-blocks/trunk/vendor/composer/autoload_static.php
r3320504 r3327943 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 995ba1463eb3e341a332e70ce1584dcf7 class ComposerStaticInit6e4a9e677d578210d8453abf61d2bef1 8 8 { 9 9 public static $files = array ( … … 255 255 'JsonMachine\\TokensWithDebugging' => __DIR__ . '/..' . '/halaxa/json-machine/src/TokensWithDebugging.php', 256 256 'JsonMachine\\ValidJsonPointers' => __DIR__ . '/..' . '/halaxa/json-machine/src/ValidJsonPointers.php', 257 'Sabberworm\\CSS\\CSSElement' => __DIR__ . '/..' . '/sabberworm/php-css-parser/src/CSSElement.php', 257 258 'Sabberworm\\CSS\\CSSList\\AtRuleBlockList' => __DIR__ . '/..' . '/sabberworm/php-css-parser/src/CSSList/AtRuleBlockList.php', 258 259 'Sabberworm\\CSS\\CSSList\\CSSBlockList' => __DIR__ . '/..' . '/sabberworm/php-css-parser/src/CSSList/CSSBlockList.php', … … 271 272 'Sabberworm\\CSS\\Parsing\\UnexpectedEOFException' => __DIR__ . '/..' . '/sabberworm/php-css-parser/src/Parsing/UnexpectedEOFException.php', 272 273 'Sabberworm\\CSS\\Parsing\\UnexpectedTokenException' => __DIR__ . '/..' . '/sabberworm/php-css-parser/src/Parsing/UnexpectedTokenException.php', 274 'Sabberworm\\CSS\\Position\\Position' => __DIR__ . '/..' . '/sabberworm/php-css-parser/src/Position/Position.php', 275 'Sabberworm\\CSS\\Position\\Positionable' => __DIR__ . '/..' . '/sabberworm/php-css-parser/src/Position/Positionable.php', 273 276 'Sabberworm\\CSS\\Property\\AtRule' => __DIR__ . '/..' . '/sabberworm/php-css-parser/src/Property/AtRule.php', 274 277 'Sabberworm\\CSS\\Property\\CSSNamespace' => __DIR__ . '/..' . '/sabberworm/php-css-parser/src/Property/CSSNamespace.php', … … 300 303 { 301 304 return \Closure::bind(function () use ($loader) { 302 $loader->prefixLengthsPsr4 = ComposerStaticInit 995ba1463eb3e341a332e70ce1584dcf::$prefixLengthsPsr4;303 $loader->prefixDirsPsr4 = ComposerStaticInit 995ba1463eb3e341a332e70ce1584dcf::$prefixDirsPsr4;304 $loader->classMap = ComposerStaticInit 995ba1463eb3e341a332e70ce1584dcf::$classMap;305 $loader->prefixLengthsPsr4 = ComposerStaticInit6e4a9e677d578210d8453abf61d2bef1::$prefixLengthsPsr4; 306 $loader->prefixDirsPsr4 = ComposerStaticInit6e4a9e677d578210d8453abf61d2bef1::$prefixDirsPsr4; 307 $loader->classMap = ComposerStaticInit6e4a9e677d578210d8453abf61d2bef1::$classMap; 305 308 306 309 }, null, ClassLoader::class); -
blockart-blocks/trunk/vendor/composer/installed.json
r3306181 r3327943 156 156 { 157 157 "name": "halaxa/json-machine", 158 "version": "1.2. 3",159 "version_normalized": "1.2. 3.0",158 "version": "1.2.5", 159 "version_normalized": "1.2.5.0", 160 160 "source": { 161 161 "type": "git", 162 162 "url": "https://github.com/halaxa/json-machine.git", 163 "reference": " 58fb6e97c53c3341bb1f3685b8bdbeedf3f9616c"163 "reference": "d0f84abf79ac98145d478b66d2bcf363d706477c" 164 164 }, 165 165 "dist": { 166 166 "type": "zip", 167 "url": "https://api.github.com/repos/halaxa/json-machine/zipball/ 58fb6e97c53c3341bb1f3685b8bdbeedf3f9616c",168 "reference": " 58fb6e97c53c3341bb1f3685b8bdbeedf3f9616c",167 "url": "https://api.github.com/repos/halaxa/json-machine/zipball/d0f84abf79ac98145d478b66d2bcf363d706477c", 168 "reference": "d0f84abf79ac98145d478b66d2bcf363d706477c", 169 169 "shasum": "" 170 170 }, … … 182 182 "guzzlehttp/guzzle": "To run example with GuzzleHttp" 183 183 }, 184 "time": "2025-0 5-30T12:36:04+00:00",184 "time": "2025-07-07T13:38:34+00:00", 185 185 "type": "library", 186 186 "installation-source": "dist", … … 209 209 "support": { 210 210 "issues": "https://github.com/halaxa/json-machine/issues", 211 "source": "https://github.com/halaxa/json-machine/tree/1.2. 3"211 "source": "https://github.com/halaxa/json-machine/tree/1.2.5" 212 212 }, 213 213 "funding": [ … … 221 221 { 222 222 "name": "sabberworm/php-css-parser", 223 "version": "v8. 8.0",224 "version_normalized": "8. 8.0.0",223 "version": "v8.9.0", 224 "version_normalized": "8.9.0.0", 225 225 "source": { 226 226 "type": "git", 227 227 "url": "https://github.com/MyIntervals/PHP-CSS-Parser.git", 228 "reference": " 3de493bdddfd1f051249af725c7e0d2c38fed740"228 "reference": "d8e916507b88e389e26d4ab03c904a082aa66bb9" 229 229 }, 230 230 "dist": { 231 231 "type": "zip", 232 "url": "https://api.github.com/repos/MyIntervals/PHP-CSS-Parser/zipball/ 3de493bdddfd1f051249af725c7e0d2c38fed740",233 "reference": " 3de493bdddfd1f051249af725c7e0d2c38fed740",232 "url": "https://api.github.com/repos/MyIntervals/PHP-CSS-Parser/zipball/d8e916507b88e389e26d4ab03c904a082aa66bb9", 233 "reference": "d8e916507b88e389e26d4ab03c904a082aa66bb9", 234 234 "shasum": "" 235 235 }, … … 239 239 }, 240 240 "require-dev": { 241 "phpunit/phpunit": "5.7.27 || 6.5.14 || 7.5.20 || 8.5.41" 241 "phpunit/phpunit": "5.7.27 || 6.5.14 || 7.5.20 || 8.5.41", 242 "rawr/cross-data-providers": "^2.0.0" 242 243 }, 243 244 "suggest": { 244 245 "ext-mbstring": "for parsing UTF-8 CSS" 245 246 }, 246 "time": "2025-0 3-23T17:59:05+00:00",247 "time": "2025-07-11T13:20:48+00:00", 247 248 "type": "library", 248 249 "extra": { … … 283 284 "support": { 284 285 "issues": "https://github.com/MyIntervals/PHP-CSS-Parser/issues", 285 "source": "https://github.com/MyIntervals/PHP-CSS-Parser/tree/v8. 8.0"286 "source": "https://github.com/MyIntervals/PHP-CSS-Parser/tree/v8.9.0" 286 287 }, 287 288 "install-path": "../sabberworm/php-css-parser" -
blockart-blocks/trunk/vendor/composer/installed.php
r3306181 r3327943 21 21 ), 22 22 'halaxa/json-machine' => array( 23 'pretty_version' => '1.2. 3',24 'version' => '1.2. 3.0',23 'pretty_version' => '1.2.5', 24 'version' => '1.2.5.0', 25 25 'type' => 'library', 26 26 'install_path' => __DIR__ . '/../halaxa/json-machine', 27 27 'aliases' => array(), 28 'reference' => ' 58fb6e97c53c3341bb1f3685b8bdbeedf3f9616c',28 'reference' => 'd0f84abf79ac98145d478b66d2bcf363d706477c', 29 29 'dev_requirement' => false, 30 30 ), … … 36 36 ), 37 37 'sabberworm/php-css-parser' => array( 38 'pretty_version' => 'v8. 8.0',39 'version' => '8. 8.0.0',38 'pretty_version' => 'v8.9.0', 39 'version' => '8.9.0.0', 40 40 'type' => 'library', 41 41 'install_path' => __DIR__ . '/../sabberworm/php-css-parser', 42 42 'aliases' => array(), 43 'reference' => ' 3de493bdddfd1f051249af725c7e0d2c38fed740',43 'reference' => 'd8e916507b88e389e26d4ab03c904a082aa66bb9', 44 44 'dev_requirement' => false, 45 45 ), -
blockart-blocks/trunk/vendor/halaxa/json-machine/CHANGELOG.md
r3306181 r3327943 10 10 ## master 11 11 Nothing yet 12 13 <br> 14 15 ## 1.2.5 - 2025-07-07 16 - Slight performance optimization of the tokenizing process (about +7 % speed gain) 17 18 <br> 19 20 ## 1.2.4 - 2025-06-16 21 ### Fixed 22 - The key of a scalar value after a compound value is lost ([#125](https://github.com/halaxa/json-machine/issues/125)). Thanks [@smiletoeverybody](https://github.com/smiletoeverybody) 12 23 13 24 <br> … … 22 33 ## 1.2.2 - 2025-04-30 23 34 ### Changed 24 - Leaner release package ( #124). Thanks [@robotomarvin](https://github.com/robotomarvin)35 - Leaner release package ([#124](https://github.com/halaxa/json-machine/issues/124)). Thanks [@robotomarvin](https://github.com/robotomarvin) 25 36 26 37 <br> … … 28 39 ## 1.2.1 - 2025-04-25 29 40 ### Fixed 30 - File autoloading without composer ( #122). Thanks [@bahco](https://github.com/bahco)31 - Crash on `null` value in `RecursiveItems` ( #119). Thanks [@bark92](https://github.com/bark92)41 - File autoloading without composer ([#122](https://github.com/halaxa/json-machine/issues/122)). Thanks [@bahco](https://github.com/bahco) 42 - Crash on `null` value in `RecursiveItems` ([#119](https://github.com/halaxa/json-machine/issues/119)). Thanks [@bark92](https://github.com/bark92) 32 43 <br> 33 44 … … 43 54 - Exception on misspelled option name suggests a correct one. 44 55 ### Fixed 45 - Wrong key when combining list and scalar value pointers ( #110). Thanks [@daniel-sc](https://github.com/daniel-sc)56 - Wrong key when combining list and scalar value pointers ([#110](https://github.com/halaxa/json-machine/issues/110)). Thanks [@daniel-sc](https://github.com/daniel-sc) 46 57 ### Removed 47 58 - Removed support for PHP 7.0, 7.1 … … 54 65 - Added PHPStan to build pipeline 55 66 ### Fixed 56 - Fixed the case when non-intersecting pointers were considered intersecting ( #106). Thanks [@XedinUnknown](https://github.com/XedinUnknown)67 - Fixed the case when non-intersecting pointers were considered intersecting ([#106](https://github.com/halaxa/json-machine/issues/106)). Thanks [@XedinUnknown](https://github.com/XedinUnknown) 57 68 58 69 <br> … … 60 71 ## 1.1.3 - 2022-10-12 61 72 ### Fixed 62 - Fix the parsing of nested sub-trees that use wildcards ( #83). Thanks [@cerbero90](https://github.com/cerbero90)73 - Fix the parsing of nested sub-trees that use wildcards ([#83](https://github.com/halaxa/json-machine/issues/83)). Thanks [@cerbero90](https://github.com/cerbero90) 63 74 64 75 <br> … … 69 80 70 81 ### Fixed 71 - Meaningful error on invalid token. ( #86)72 - Added missing return type annotation. ( #84)82 - Meaningful error on invalid token. ([#86](https://github.com/halaxa/json-machine/issues/86)) 83 - Added missing return type annotation. ([#84](https://github.com/halaxa/json-machine/issues/84)) 73 84 74 85 <br> … … 169 180 ## 0.6.1 170 181 ### Fixed bugs 171 - Empty dict at the end of an item was causing Syntax error in the next item. Reason: closing `}` did not set object key expectation to `false`. ( #41 via PR #42).182 - Empty dict at the end of an item was causing Syntax error in the next item. Reason: closing `}` did not set object key expectation to `false`. ([#41](https://github.com/halaxa/json-machine/issues/41) via PR [#42](https://github.com/halaxa/json-machine/issues/42)). 172 183 173 184 <br> -
blockart-blocks/trunk/vendor/halaxa/json-machine/README.md
r3306181 r3327943 89 89 - Ease of use. Just iterate JSON of any size with `foreach`. No events and callbacks. 90 90 - Efficient iteration on any subtree of the document, specified by [JSON Pointer](#json-pointer) 91 - Speed. Performance critical code contains no unnecessary function calls, no regular expressions91 - Speed. Performance critical code is optimized for speed with JIT in mind, 92 92 and uses native `json_decode` to decode JSON document items by default. See [Decoders](#decoders). 93 93 - Parses not only streams but any iterable that produces JSON chunks. -
blockart-blocks/trunk/vendor/halaxa/json-machine/src/FileChunks.php
r3021722 r3327943 20 20 * @param int $chunkSize 21 21 */ 22 public function __construct($fileName, $chunkSize = 1024 * 8)22 public function __construct($fileName, $chunkSize = 1024 * 16) 23 23 { 24 24 $this->fileName = $fileName; -
blockart-blocks/trunk/vendor/halaxa/json-machine/src/Parser.php
r3306181 r3327943 267 267 case ']': 268 268 --$currentLevel; 269 if ($currentLevel < $iteratorLevel) { 270 $iteratorStruct = null; 271 } 269 272 $inObject = $stack[$currentLevel] == '{'; 270 273 // no break -
blockart-blocks/trunk/vendor/halaxa/json-machine/src/Tokens.php
r3306181 r3327943 38 38 private function createGenerator(): Generator 39 39 { 40 $regex = '/ 41 [{}\[\],:] 42 #| true|false|null 43 #| [\deE.+-]+ 44 #| (t|tr|tru|f|fa|fal|fals|n|nu|nul)$ 45 | [^\xEF\xBB\xBF\s{}\[\],:]+ # todo make matching logic positive as in comments above and solve 2 failing tests 46 /x'; 40 $regex = '/ [{}\[\],:] | [^\xEF\xBB\xBF\s{}\[\],:]+ /x'; 47 41 48 42 $inString = 0; … … 50 44 51 45 foreach ($this->jsonChunks as $jsonChunk) { 52 $chunk Items = explode('"', $carry.$jsonChunk);46 $chunkBlocks = explode('"', $carry.$jsonChunk); 53 47 $carry = ''; 54 48 55 $chunkItemsLastSafeIndex = count($chunk Items) - 2;49 $chunkItemsLastSafeIndex = count($chunkBlocks) - 2; 56 50 for ($i = 0; $i <= $chunkItemsLastSafeIndex; ++$i) { 57 51 if ($inString) { 58 if ($this->stringIsEscaping($chunk Items[$i])) {59 $carry .= $chunk Items[$i].'"';52 if ($this->stringIsEscaping($chunkBlocks[$i])) { 53 $carry .= $chunkBlocks[$i].'"'; 60 54 } else { 61 yield '"'.$carry.$chunkItems[$i].'"';55 yield "\"$carry$chunkBlocks[$i]\""; 62 56 $carry = ''; 63 57 $inString = 0; 64 58 } 65 59 } else { 66 preg_match_all($regex, $chunkItems[$i], $matches); 67 yield from $matches[0]; 60 $chunkBlock = trim($chunkBlocks[$i]); 61 if (strlen($chunkBlock) == 1) { 62 yield $chunkBlock; 63 } else { 64 preg_match_all($regex, $chunkBlock, $matches); 65 yield from $matches[0]; 66 } 68 67 $inString = 1; 69 68 } … … 71 70 72 71 if ($inString) { 73 $carry .= $chunk Items[$i];72 $carry .= $chunkBlocks[$i]; 74 73 } else { 75 preg_match_all($regex, $chunk Items[$i], $matches);74 preg_match_all($regex, $chunkBlocks[$i], $matches); 76 75 $carry = array_pop($matches[0]); 77 76 yield from $matches[0]; … … 88 87 $i = strlen($token); 89 88 $slashes = 0; 90 while (--$i >= 0 && isset($token[$i]) &&$token[$i] === '\\') {89 while (--$i >= 0 && $token[$i] === '\\') { 91 90 ++$slashes; 92 91 } -
blockart-blocks/trunk/vendor/halaxa/json-machine/src/autoloader.php
r3306181 r3327943 42 42 } 43 43 44 // @codeCoverageIgnoreStart 44 45 $files = json_decode(file_get_contents(__DIR__.'/../composer.json'), true)['autoload']['files']; 45 46 foreach ($files as $file) { … … 47 48 } 48 49 49 // @codeCoverageIgnoreStart50 50 return [Autoloading::class, 'autoloader']; 51 51 // @codeCoverageIgnoreEnd -
blockart-blocks/trunk/vendor/sabberworm/php-css-parser/CHANGELOG.md
r3306181 r3327943 16 16 ### Fixed 17 17 18 ## 8.9.0: New features, bug fixes and deprecations 19 20 ### Added 21 22 - `RuleSet::removeMatchingRules()` method 23 (for the implementing classes `AtRuleSet` and `DeclarationBlock`) (#1249) 24 - `RuleSet::removeAllRules()` method 25 (for the implementing classes `AtRuleSet` and `DeclarationBlock`) (#1249) 26 - Add Interface `CSSElement` (#1231) 27 - Methods `getLineNumber` and `getColumnNumber` which return a nullable `int` 28 for the following classes: 29 `Comment`, `CSSList`, `SourceException`, `Charset`, `CSSNamespace`, `Import`, 30 `Rule`, `DeclarationBlock`, `RuleSet`, `CSSFunction`, `Value` (#1225, #1263) 31 - `Positionable` interface for CSS items that may have a position 32 (line and perhaps column number) in the parsed CSS (#1221) 33 34 ### Changed 35 36 - Parameters for `getAllValues()` are deconflated, so it now takes three (all 37 optional), allowing `$element` and `$ruleSearchPattern` to be specified 38 separately (#1241) 39 - Implement `Positionable` in the following CSS item classes: 40 `Comment`, `CSSList`, `SourceException`, `Charset`, `CSSNamespace`, `Import`, 41 `Rule`, `DeclarationBlock`, `RuleSet`, `CSSFunction`, `Value` (#1225) 42 43 ### Deprecated 44 45 - Support for PHP < 7.2 is deprecated; version 9.0 will require PHP 7.2 or later 46 (#1264) 47 - Passing a `string` or `null` to `RuleSet::removeRule()` is deprecated 48 (implementing classes are `AtRuleSet` and `DeclarationBlock`); 49 use `removeMatchingRules()` or `removeAllRules()` instead (#1249) 50 - Passing a `Rule` to `RuleSet::getRules()` or `getRulesAssoc()` is deprecated, 51 affecting the implementing classes `AtRuleSet` and `DeclarationBlock` 52 (call e.g. `getRules($rule->getRule())` instead) (#1248) 53 - Passing a string as the first argument to `getAllValues()` is deprecated; 54 the search pattern should now be passed as the second argument (#1241) 55 - Passing a Boolean as the second argument to `getAllValues()` is deprecated; 56 the flag for searching in function arguments should now be passed as the third 57 argument (#1241) 58 - `getLineNo()` is deprecated in these classes (use `getLineNumber()` instead): 59 `Comment`, `CSSList`, `SourceException`, `Charset`, `CSSNamespace`, `Import`, 60 `Rule`, `DeclarationBlock`, `RuleSet`, `CSSFunction`, `Value` (#1225, #1233) 61 - `Rule::getColNo()` is deprecated (use `getColumnNumber()` instead) 62 (#1225, #1233) 63 - Providing zero as the line number argument to `Rule::setPosition()` is 64 deprecated (pass `null` instead if there is no line number) (#1225, #1233) 65 66 ### Fixed 67 68 - Set line number when `RuleSet::addRule()` called with only column number set 69 (#1265) 70 - Ensure first rule added with `RuleSet::addRule()` has valid position (#1262) 71 18 72 ## 8.8.0: Bug fixes and deprecations 19 73 … … 24 78 ### Changed 25 79 26 - Mark the `OutputFormat` theconstructor as `@internal` (#1131)80 - Mark the `OutputFormat` constructor as `@internal` (#1131) 27 81 - Mark `OutputFormatter` as `@internal` (#896) 28 82 - Mark `Selector::isValid()` as `@internal` (#1037) … … 36 90 - Deprecate `OutputFormat::get()` and `::set()` (#1107) 37 91 - Deprecate support for `-webkit-calc` and `-moz-calc` (#1086) 92 - Deprecate magic method forwarding from `OutputFormat` to `OutputFormatter` 93 (#894) 38 94 - Deprecate `__toString()` (#1006) 39 95 - Deprecate greedy calculation of selector specificity (#1018) … … 62 118 ### Deprecated 63 119 64 - Deprecate magic method forwarding from `OutputFormat` to `OutputFormatter`65 (#894)66 120 - Deprecate the expansion of shorthand properties (#719) 67 121 - Deprecate `Parser::setCharset()` and `Parser::getCharset()` (#703) -
blockart-blocks/trunk/vendor/sabberworm/php-css-parser/src/CSSList/CSSBlockList.php
r2993158 r3327943 3 3 namespace Sabberworm\CSS\CSSList; 4 4 5 use Sabberworm\CSS\CSSElement; 5 6 use Sabberworm\CSS\Property\Selector; 6 7 use Sabberworm\CSS\Rule\Rule; … … 60 61 61 62 /** 62 * @param CSSList|Rule|RuleSet|Value $oElement 63 * Returns all `Value` objects found recursively in `Rule`s in the tree. 64 * 65 * @param CSSElement|string|null $element 66 * This is the `CSSList` or `RuleSet` to start the search from (defaults to the whole document). 67 * If a string is given, it is used as a rule name filter. 68 * Passing a string for this parameter is deprecated in version 8.9.0, and will not work from v9.0; 69 * use the following parameter to pass a rule name filter instead. 70 * @param string|bool|null $ruleSearchPatternOrSearchInFunctionArguments 71 * This allows filtering rules by property name 72 * (e.g. if "color" is passed, only `Value`s from `color` properties will be returned, 73 * or if "font-" is provided, `Value`s from all font rules, like `font-size`, and including `font` itself, 74 * will be returned). 75 * If a Boolean is provided, it is treated as the `$searchInFunctionArguments` argument. 76 * Passing a Boolean for this parameter is deprecated in version 8.9.0, and will not work from v9.0; 77 * use the `$searchInFunctionArguments` parameter instead. 78 * @param bool $searchInFunctionArguments whether to also return Value objects used as Function arguments. 79 * 80 * @return array<int, Value> 81 * 82 * @see RuleSet->getRules() 83 */ 84 public function getAllValues( 85 $element = null, 86 $ruleSearchPatternOrSearchInFunctionArguments = null, 87 $searchInFunctionArguments = false 88 ) { 89 if (\is_bool($ruleSearchPatternOrSearchInFunctionArguments)) { 90 $searchInFunctionArguments = $ruleSearchPatternOrSearchInFunctionArguments; 91 $searchString = null; 92 } else { 93 $searchString = $ruleSearchPatternOrSearchInFunctionArguments; 94 } 95 96 if ($element === null) { 97 $element = $this; 98 } elseif (\is_string($element)) { 99 $searchString = $element; 100 $element = $this; 101 } 102 103 $result = []; 104 $this->allValues($element, $result, $searchString, $searchInFunctionArguments); 105 return $result; 106 } 107 108 /** 109 * @param CSSElement|string $oElement 63 110 * @param array<int, Value> $aResult 64 111 * @param string|null $sSearchString -
blockart-blocks/trunk/vendor/sabberworm/php-css-parser/src/CSSList/CSSList.php
r3306181 r3327943 5 5 use Sabberworm\CSS\Comment\Comment; 6 6 use Sabberworm\CSS\Comment\Commentable; 7 use Sabberworm\CSS\CSSElement; 7 8 use Sabberworm\CSS\OutputFormat; 8 9 use Sabberworm\CSS\Parsing\ParserState; … … 10 11 use Sabberworm\CSS\Parsing\UnexpectedEOFException; 11 12 use Sabberworm\CSS\Parsing\UnexpectedTokenException; 13 use Sabberworm\CSS\Position\Position; 14 use Sabberworm\CSS\Position\Positionable; 12 15 use Sabberworm\CSS\Property\AtRule; 13 16 use Sabberworm\CSS\Property\Charset; … … 30 33 * It can also contain `Import` and `Charset` objects stemming from at-rules. 31 34 */ 32 abstract class CSSList implements Renderable, Commentable35 abstract class CSSList implements Commentable, CSSElement, Positionable 33 36 { 37 use Position; 38 34 39 /** 35 40 * @var array<array-key, Comment> … … 45 50 */ 46 51 protected $aContents; 47 48 /**49 * @var int50 *51 * @internal since 8.8.052 */53 protected $iLineNo;54 52 55 53 /** … … 60 58 $this->aComments = []; 61 59 $this->aContents = []; 62 $this-> iLineNo = $iLineNo;60 $this->setPosition($iLineNo); 63 61 } 64 62 … … 260 258 261 259 /** 262 * @return int263 */264 public function getLineNo()265 {266 return $this->iLineNo;267 }268 269 /**270 260 * Prepends an item to the list of contents. 271 261 * -
blockart-blocks/trunk/vendor/sabberworm/php-css-parser/src/CSSList/Document.php
r3306181 r3327943 9 9 use Sabberworm\CSS\RuleSet\DeclarationBlock; 10 10 use Sabberworm\CSS\RuleSet\RuleSet; 11 use Sabberworm\CSS\Value\Value;12 11 13 12 /** … … 75 74 $aResult = []; 76 75 $this->allRuleSets($aResult); 77 return $aResult;78 }79 80 /**81 * Returns all `Value` objects found recursively in `Rule`s in the tree.82 *83 * @param CSSList|RuleSet|string $mElement84 * the `CSSList` or `RuleSet` to start the search from (defaults to the whole document).85 * If a string is given, it is used as rule name filter.86 * @param bool $bSearchInFunctionArguments whether to also return Value objects used as Function arguments.87 *88 * @return array<int, Value>89 *90 * @see RuleSet->getRules()91 */92 public function getAllValues($mElement = null, $bSearchInFunctionArguments = false)93 {94 $sSearchString = null;95 if ($mElement === null) {96 $mElement = $this;97 } elseif (is_string($mElement)) {98 $sSearchString = $mElement;99 $mElement = $this;100 }101 /** @var array<int, Value> $aResult */102 $aResult = [];103 $this->allValues($mElement, $aResult, $sSearchString, $bSearchInFunctionArguments);104 76 return $aResult; 105 77 } -
blockart-blocks/trunk/vendor/sabberworm/php-css-parser/src/Comment/Comment.php
r3306181 r3327943 5 5 use Sabberworm\CSS\OutputFormat; 6 6 use Sabberworm\CSS\Renderable; 7 use Sabberworm\CSS\Position\Position; 8 use Sabberworm\CSS\Position\Positionable; 7 9 8 class Comment implements Renderable10 class Comment implements Positionable, Renderable 9 11 { 10 /** 11 * @var int 12 * 13 * @internal since 8.8.0 14 */ 15 protected $iLineNo; 12 use Position; 16 13 17 14 /** … … 29 26 { 30 27 $this->sComment = $sComment; 31 $this-> iLineNo = $iLineNo;28 $this->setPosition($iLineNo); 32 29 } 33 30 … … 38 35 { 39 36 return $this->sComment; 40 }41 42 /**43 * @return int44 */45 public function getLineNo()46 {47 return $this->iLineNo;48 37 } 49 38 -
blockart-blocks/trunk/vendor/sabberworm/php-css-parser/src/Parsing/SourceException.php
r2993158 r3327943 3 3 namespace Sabberworm\CSS\Parsing; 4 4 5 class SourceException extends \Exception 5 use Sabberworm\CSS\Position\Position; 6 use Sabberworm\CSS\Position\Positionable; 7 8 class SourceException extends \Exception implements Positionable 6 9 { 7 /** 8 * @var int 9 */ 10 private $iLineNo; 10 use Position; 11 11 12 12 /** … … 16 16 public function __construct($sMessage, $iLineNo = 0) 17 17 { 18 $this-> iLineNo = $iLineNo;18 $this->setPosition($iLineNo); 19 19 if (!empty($iLineNo)) { 20 20 $sMessage .= " [line no: $iLineNo]"; … … 22 22 parent::__construct($sMessage); 23 23 } 24 25 /**26 * @return int27 */28 public function getLineNo()29 {30 return $this->iLineNo;31 }32 24 } -
blockart-blocks/trunk/vendor/sabberworm/php-css-parser/src/Property/CSSNamespace.php
r3306181 r3327943 5 5 use Sabberworm\CSS\Comment\Comment; 6 6 use Sabberworm\CSS\OutputFormat; 7 use Sabberworm\CSS\Position\Position; 8 use Sabberworm\CSS\Position\Positionable; 7 9 8 10 /** 9 11 * `CSSNamespace` represents an `@namespace` rule. 10 12 */ 11 class CSSNamespace implements AtRule 13 class CSSNamespace implements AtRule, Positionable 12 14 { 15 use Position; 16 13 17 /** 14 18 * @var string … … 42 46 $this->mUrl = $mUrl; 43 47 $this->sPrefix = $sPrefix; 44 $this-> iLineNo = $iLineNo;48 $this->setPosition($iLineNo); 45 49 $this->aComments = []; 46 }47 48 /**49 * @return int50 */51 public function getLineNo()52 {53 return $this->iLineNo;54 50 } 55 51 -
blockart-blocks/trunk/vendor/sabberworm/php-css-parser/src/Property/Charset.php
r3306181 r3327943 5 5 use Sabberworm\CSS\Comment\Comment; 6 6 use Sabberworm\CSS\OutputFormat; 7 use Sabberworm\CSS\Position\Position; 8 use Sabberworm\CSS\Position\Positionable; 7 9 use Sabberworm\CSS\Value\CSSString; 8 10 … … 15 17 * - Must not appear more than once. 16 18 */ 17 class Charset implements AtRule 19 class Charset implements AtRule, Positionable 18 20 { 21 use Position; 22 19 23 /** 20 24 * @var CSSString … … 43 47 { 44 48 $this->oCharset = $oCharset; 45 $this-> iLineNo = $iLineNo;49 $this->setPosition($iLineNo); 46 50 $this->aComments = []; 47 }48 49 /**50 * @return int51 */52 public function getLineNo()53 {54 return $this->iLineNo;55 51 } 56 52 -
blockart-blocks/trunk/vendor/sabberworm/php-css-parser/src/Property/Import.php
r3306181 r3327943 5 5 use Sabberworm\CSS\Comment\Comment; 6 6 use Sabberworm\CSS\OutputFormat; 7 use Sabberworm\CSS\Position\Position; 8 use Sabberworm\CSS\Position\Positionable; 7 9 use Sabberworm\CSS\Value\URL; 8 10 … … 10 12 * Class representing an `@import` rule. 11 13 */ 12 class Import implements AtRule 14 class Import implements AtRule, Positionable 13 15 { 16 use Position; 17 14 18 /** 15 19 * @var URL … … 21 25 */ 22 26 private $sMediaQuery; 23 24 /**25 * @var int26 *27 * @internal since 8.8.028 */29 protected $iLineNo;30 27 31 28 /** … … 45 42 $this->oLocation = $oLocation; 46 43 $this->sMediaQuery = $sMediaQuery; 47 $this-> iLineNo = $iLineNo;44 $this->setPosition($iLineNo); 48 45 $this->aComments = []; 49 }50 51 /**52 * @return int53 */54 public function getLineNo()55 {56 return $this->iLineNo;57 46 } 58 47 -
blockart-blocks/trunk/vendor/sabberworm/php-css-parser/src/Rule/Rule.php
r3306181 r3327943 5 5 use Sabberworm\CSS\Comment\Comment; 6 6 use Sabberworm\CSS\Comment\Commentable; 7 use Sabberworm\CSS\CSSElement; 7 8 use Sabberworm\CSS\OutputFormat; 8 9 use Sabberworm\CSS\Parsing\ParserState; 9 10 use Sabberworm\CSS\Parsing\UnexpectedEOFException; 10 11 use Sabberworm\CSS\Parsing\UnexpectedTokenException; 11 use Sabberworm\CSS\Renderable; 12 use Sabberworm\CSS\Position\Position; 13 use Sabberworm\CSS\Position\Positionable; 12 14 use Sabberworm\CSS\Value\RuleValueList; 13 15 use Sabberworm\CSS\Value\Value; … … 18 20 * In CSS, `Rule`s are expressed as follows: “key: value[0][0] value[0][1], value[1][0] value[1][1];” 19 21 */ 20 class Rule implements Renderable, Commentable22 class Rule implements Commentable, CSSElement, Positionable 21 23 { 24 use Position; 25 22 26 /** 23 27 * @var string … … 39 43 */ 40 44 private $aIeHack; 41 42 /**43 * @var int44 */45 protected $iLineNo;46 47 /**48 * @var int49 *50 * @internal since 8.8.051 */52 protected $iColNo;53 45 54 46 /** … … 70 62 $this->bIsImportant = false; 71 63 $this->aIeHack = []; 72 $this->iLineNo = $iLineNo; 73 $this->iColNo = $iColNo; 64 $this->setPosition($iLineNo, $iColNo); 74 65 $this->aComments = []; 75 66 } … … 144 135 145 136 /** 146 * @return int147 */148 public function getLineNo()149 {150 return $this->iLineNo;151 }152 153 /**154 * @return int155 */156 public function getColNo()157 {158 return $this->iColNo;159 }160 161 /**162 * @param int $iLine163 * @param int $iColumn164 *165 * @return void166 */167 public function setPosition($iLine, $iColumn)168 {169 $this->iColNo = $iColumn;170 $this->iLineNo = $iLine;171 }172 173 /**174 137 * @param string $sRule 175 138 * … … 296 259 if (!$this->mValue instanceof RuleValueList || $this->mValue->getListSeparator() !== $sType) { 297 260 $mCurrentValue = $this->mValue; 298 $this->mValue = new RuleValueList($sType, $this-> iLineNo);261 $this->mValue = new RuleValueList($sType, $this->getLineNumber()); 299 262 if ($mCurrentValue) { 300 263 $this->mValue->addListComponent($mCurrentValue); -
blockart-blocks/trunk/vendor/sabberworm/php-css-parser/src/RuleSet/DeclarationBlock.php
r3306181 r3327943 435 435 'background-attachment' => ['scroll'], 436 436 'background-position' => [ 437 new Size(0, '%', false, $this-> iLineNo),438 new Size(0, '%', false, $this-> iLineNo),437 new Size(0, '%', false, $this->getLineNo()), 438 new Size(0, '%', false, $this->getLineNo()), 439 439 ], 440 440 ]; … … 802 802 } 803 803 if ($aLHValues[0] !== 'normal') { 804 $val = new RuleValueList('/', $this-> iLineNo);804 $val = new RuleValueList('/', $this->getLineNo()); 805 805 $val->addListComponent($aFSValues[0]); 806 806 $val->addListComponent($aLHValues[0]); … … 818 818 $aFFValues = $mRuleValue->getListComponents(); 819 819 } 820 $oFFValue = new RuleValueList(',', $this-> iLineNo);820 $oFFValue = new RuleValueList(',', $this->getLineNo()); 821 821 $oFFValue->setListComponents($aFFValues); 822 822 $oNewRule->addValue($oFFValue); … … 852 852 if (count($this->aSelectors) === 0) { 853 853 // If all the selectors have been removed, this declaration block becomes invalid 854 throw new OutputException("Attempt to print declaration block with missing selector", $this->iLineNo); 854 throw new OutputException( 855 'Attempt to print declaration block with missing selector', 856 $this->getLineNumber() 857 ); 855 858 } 856 859 $sResult .= $oOutputFormat->sBeforeDeclarationBlock; -
blockart-blocks/trunk/vendor/sabberworm/php-css-parser/src/RuleSet/RuleSet.php
r3306181 r3327943 5 5 use Sabberworm\CSS\Comment\Comment; 6 6 use Sabberworm\CSS\Comment\Commentable; 7 use Sabberworm\CSS\CSSElement; 7 8 use Sabberworm\CSS\OutputFormat; 8 9 use Sabberworm\CSS\Parsing\ParserState; 9 10 use Sabberworm\CSS\Parsing\UnexpectedEOFException; 10 11 use Sabberworm\CSS\Parsing\UnexpectedTokenException; 12 use Sabberworm\CSS\Position\Position; 13 use Sabberworm\CSS\Position\Positionable; 11 14 use Sabberworm\CSS\Renderable; 12 15 use Sabberworm\CSS\Rule\Rule; … … 21 24 * (which accepts either a `Rule` or a rule name; optionally suffixed by a dash to remove all related rules). 22 25 */ 23 abstract class RuleSet implements Renderable, Commentable26 abstract class RuleSet implements CSSElement, Commentable, Positionable 24 27 { 28 use Position; 29 25 30 /** 26 31 * the rules in this rule set, using the property name as the key, … … 32 37 33 38 /** 34 * @var int39 * @var array<array-key, Comment> 35 40 * 36 41 * @internal since 8.8.0 37 42 */ 38 protected $iLineNo;39 40 /**41 * @var array<array-key, Comment>42 *43 * @internal since 8.8.044 */45 43 protected $aComments; 46 44 … … 51 49 { 52 50 $this->aRules = []; 53 $this-> iLineNo = $iLineNo;51 $this->setPosition($iLineNo); 54 52 $this->aComments = []; 55 53 } … … 104 102 105 103 /** 106 * @return int107 */108 public function getLineNo()109 {110 return $this->iLineNo;111 }112 113 /**114 104 * @param Rule|null $oSibling 115 105 * … … 132 122 } 133 123 } 134 if ($oRule->getLineN o() === 0 && $oRule->getColNo() === 0) {124 if ($oRule->getLineNumber() === null) { 135 125 //this node is added manually, give it the next best line 126 $columnNumber = $oRule->getColNo(); 136 127 $rules = $this->getRules(); 137 128 $pos = count($rules); 138 129 if ($pos > 0) { 139 130 $last = $rules[$pos - 1]; 140 $oRule->setPosition($last->getLineNo() + 1, 0); 141 } 131 $oRule->setPosition($last->getLineNo() + 1, $columnNumber); 132 } else { 133 $oRule->setPosition(1, $columnNumber); 134 } 135 } elseif ($oRule->getColumnNumber() === null) { 136 $oRule->setPosition($oRule->getLineNumber(), 0); 142 137 } 143 138 … … 157 152 * If the pattern ends with a dash, all rules starting with the pattern are returned 158 153 * as well as one matching the pattern with the dash excluded. 159 * Passing a Rule behaves like calling `getRules($mRule->getRule())`. 154 * Passing a `Rule` for this parameter is deprecated in version 8.9.0, and will not work from v9.0. 155 * Call `getRules($rule->getRule())` instead. 160 156 * 161 157 * @return array<int, Rule> … … 216 212 * Pattern to search for. If null, returns all rules. If the pattern ends with a dash, 217 213 * all rules starting with the pattern are returned as well as one matching the pattern with the dash 218 * excluded. Passing a Rule behaves like calling `getRules($mRule->getRule())`. 214 * excluded. 215 * Passing a `Rule` for this parameter is deprecated in version 8.9.0, and will not work from v9.0. 216 * Call `getRulesAssoc($rule->getRule())` instead. 219 217 * 220 218 * @return array<string, Rule> … … 231 229 232 230 /** 233 * Removes a rule from this RuleSet. This accepts all the possible values that `getRules()` accepts. 234 * 235 * If given a Rule, it will only remove this particular rule (by identity). 236 * If given a name, it will remove all rules by that name. 237 * 238 * Note: this is different from pre-v.2.0 behaviour of PHP-CSS-Parser, where passing a Rule instance would 239 * remove all rules with the same name. To get the old behaviour, use `removeRule($oRule->getRule())`. 231 * Removes a `Rule` from this `RuleSet` by identity. 240 232 * 241 233 * @param Rule|string|null $mRule 242 * pattern to remove. If $mRule is null, all rules are removed. If the pattern ends in a dash, 243 * all rules starting with the pattern are removed as well as one matching the pattern with the dash 244 * excluded. Passing a Rule behaves matches by identity. 245 * 246 * @return void 234 * `Rule` to remove. 235 * Passing a `string` or `null` is deprecated in version 8.9.0, and will no longer work from v9.0. 236 * Use `removeMatchingRules()` or `removeAllRules()` instead. 247 237 */ 248 238 public function removeRule($mRule) … … 258 248 } 259 249 } 250 } elseif ($mRule !== null) { 251 $this->removeMatchingRules($mRule); 260 252 } else { 261 foreach ($this->aRules as $sName => $aRules) { 262 // Either no search rule is given or the search rule matches the found rule exactly 263 // or the search rule ends in “-” and the found rule starts with the search rule or equals it 264 // (without the trailing dash). 265 if ( 266 !$mRule || $sName === $mRule 267 || (strrpos($mRule, '-') === strlen($mRule) - strlen('-') 268 && (strpos($sName, $mRule) === 0 || $sName === substr($mRule, 0, -1))) 269 ) { 270 unset($this->aRules[$sName]); 271 } 272 } 273 } 253 $this->removeAllRules(); 254 } 255 } 256 257 /** 258 * Removes rules by property name or search pattern. 259 * 260 * @param string $searchPattern 261 * pattern to remove. 262 * If the pattern ends in a dash, 263 * all rules starting with the pattern are removed as well as one matching the pattern with the dash 264 * excluded. 265 */ 266 public function removeMatchingRules($searchPattern) 267 { 268 foreach ($this->aRules as $propertyName => $rules) { 269 // Either the search rule matches the found rule exactly 270 // or the search rule ends in “-” and the found rule starts with the search rule or equals it 271 // (without the trailing dash). 272 if ( 273 $propertyName === $searchPattern 274 || (\strrpos($searchPattern, '-') === \strlen($searchPattern) - \strlen('-') 275 && (\strpos($propertyName, $searchPattern) === 0 276 || $propertyName === \substr($searchPattern, 0, -1))) 277 ) { 278 unset($this->aRules[$propertyName]); 279 } 280 } 281 } 282 283 public function removeAllRules() 284 { 285 $this->aRules = []; 274 286 } 275 287 -
blockart-blocks/trunk/vendor/sabberworm/php-css-parser/src/Value/CSSFunction.php
r3306181 r3327943 35 35 } 36 36 $this->sName = $sName; 37 $this-> iLineNo = $iLineNo;37 $this->setPosition($iLineNo); // TODO: redundant? 38 38 parent::__construct($aArguments, $sSeparator, $iLineNo); 39 39 } -
blockart-blocks/trunk/vendor/sabberworm/php-css-parser/src/Value/Value.php
r3306181 r3327943 3 3 namespace Sabberworm\CSS\Value; 4 4 5 use Sabberworm\CSS\CSSElement; 5 6 use Sabberworm\CSS\Parsing\ParserState; 6 7 use Sabberworm\CSS\Parsing\SourceException; 7 8 use Sabberworm\CSS\Parsing\UnexpectedEOFException; 8 9 use Sabberworm\CSS\Parsing\UnexpectedTokenException; 9 use Sabberworm\CSS\Renderable; 10 use Sabberworm\CSS\Position\Position; 11 use Sabberworm\CSS\Position\Positionable; 10 12 11 13 /** … … 13 15 * abstract subclass `ValueList`. 14 16 */ 15 abstract class Value implements Renderable17 abstract class Value implements CSSElement, Positionable 16 18 { 17 /** 18 * @var int 19 * 20 * @internal since 8.8.0 21 */ 22 protected $iLineNo; 19 use Position; 23 20 24 21 /** … … 27 24 public function __construct($iLineNo = 0) 28 25 { 29 $this-> iLineNo = $iLineNo;26 $this->setPosition($iLineNo); 30 27 } 31 28 … … 219 216 return "U+{$sRange}"; 220 217 } 221 222 /**223 * @return int224 */225 public function getLineNo()226 {227 return $this->iLineNo;228 }229 218 }
Note: See TracChangeset
for help on using the changeset viewer.