From af6068d4664ac2c3ae173f81d3c1ef3fe77186bb Mon Sep 17 00:00:00 2001 From: Akshay Urankar Date: Tue, 27 Aug 2024 13:10:00 +0530 Subject: [PATCH 01/29] added support for phpstan --- composer.json | 16 +- composer.lock | 5399 ++++++++++++++++++++- lib/astra-notices/.phpunit.result.cache | 1 + lib/astra-notices/class-astra-notices.php | 8 +- lib/astra-notices/composer.json | 19 +- lib/astra-notices/notices.css | 39 + phpstan-baseline.neon | 13 + phpstan.neon | 40 + stubs-generator.php | 11 + tests/php/stubs/lite-stubs.php | 3059 ++++++++++++ 10 files changed, 8463 insertions(+), 142 deletions(-) create mode 100644 lib/astra-notices/.phpunit.result.cache create mode 100644 lib/astra-notices/notices.css create mode 100644 phpstan-baseline.neon create mode 100644 phpstan.neon create mode 100644 stubs-generator.php create mode 100644 tests/php/stubs/lite-stubs.php diff --git a/composer.json b/composer.json index 307e72a2..d8a24692 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,7 @@ { "require": { - "brainstormforce/astra-notices": "^1.1" + "brainstormforce/astra-notices": "^1.1", + "wp-cli/wp-cli-bundle": "^2.11" }, "extra": { "installer-paths": { @@ -11,12 +12,19 @@ }, "require-dev": { "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0", - "wp-coding-standards/wpcs": "dev-master", - "phpcompatibility/phpcompatibility-wp": "*" + "wp-coding-standards/wpcs": "^3.1", + "phpcompatibility/phpcompatibility-wp": "*", + "phpstan/phpstan": "^1.11", + "php-stubs/generator": "^0.8.4", + "php-stubs/wordpress-stubs": "^6.6", + "szepeviktor/phpstan-wordpress": "^1.3", + "squizlabs/php_codesniffer": "^3.5" }, "scripts": { "format": "phpcbf --standard=phpcs.xml.dist --report-summary --report-source", - "lint": "phpcs --standard=phpcs.xml.dist --report-summary --report-source" + "lint": "phpcs --standard=phpcs.xml.dist --report-summary --report-source", + "gen-stubs": "vendor/bin/generate-stubs artifact/phpstan/ultimate-addons-for-beaver-builder-lite/ --out=tests/php/stubs/lite-stubs.php && rm -rf artifact/phpstan", + "phpstan": "vendor/bin/phpstan --memory-limit=2048M analyse" }, "config": { "allow-plugins": { diff --git a/composer.lock b/composer.lock index 0bcbf64a..a20abbf1 100644 --- a/composer.lock +++ b/composer.lock @@ -4,36 +4,39 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "5456482e681d059f0a4fe9b4f47e3d70", + "content-hash": "b32e4a4be7fe3301fec4cbce01d4f4a9", "packages": [ { "name": "brainstormforce/astra-notices", - "version": "1.1.8", + "version": "1.1.11", "source": { "type": "git", "url": "https://github.com/brainstormforce/astra-notices.git", - "reference": "9e46068fa861816d88cae4bbed86adac30743809" + "reference": "742c8879a3a9154a55fbf628324af96154d2697f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/brainstormforce/astra-notices/zipball/9e46068fa861816d88cae4bbed86adac30743809", - "reference": "9e46068fa861816d88cae4bbed86adac30743809", + "url": "https://api.github.com/repos/brainstormforce/astra-notices/zipball/742c8879a3a9154a55fbf628324af96154d2697f", + "reference": "742c8879a3a9154a55fbf628324af96154d2697f", "shasum": "" }, "require": { - "composer/installers": "^1.11" + "composer/installers": "^2.0" }, "require-dev": { "dealerdirect/phpcodesniffer-composer-installer": "^0.7.1", "phpcompatibility/phpcompatibility-wp": "^2.1", - "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5", + "phpunit/phpunit": "^7", + "roots/wordpress": "^5.9", "wp-cli/dist-archive-command": "^2.0", - "wp-coding-standards/wpcs": "^2.3" + "wp-coding-standards/wpcs": "^2.3", + "wp-phpunit/wp-phpunit": "^5", + "yoast/phpunit-polyfills": "^1.0" }, "type": "wordpress-plugin", "notification-url": "https://packagist.org/downloads/", "license": [ - "GPL v3" + "GPL-3.0-or-later" ], "authors": [ { @@ -44,45 +47,306 @@ "description": "Easily create admin notices", "support": { "issues": "https://github.com/brainstormforce/astra-notices/issues", - "source": "https://github.com/brainstormforce/astra-notices/tree/1.1.8" + "source": "https://github.com/brainstormforce/astra-notices/tree/1.1.11" }, - "time": "2021-07-07T09:51:07+00:00" + "time": "2022-02-09T09:14:49+00:00" + }, + { + "name": "composer/ca-bundle", + "version": "1.5.1", + "source": { + "type": "git", + "url": "https://github.com/composer/ca-bundle.git", + "reference": "063d9aa8696582f5a41dffbbaf3c81024f0a604a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/ca-bundle/zipball/063d9aa8696582f5a41dffbbaf3c81024f0a604a", + "reference": "063d9aa8696582f5a41dffbbaf3c81024f0a604a", + "shasum": "" + }, + "require": { + "ext-openssl": "*", + "ext-pcre": "*", + "php": "^7.2 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^1.10", + "psr/log": "^1.0 || ^2.0 || ^3.0", + "symfony/phpunit-bridge": "^4.2 || ^5", + "symfony/process": "^4.0 || ^5.0 || ^6.0 || ^7.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Composer\\CaBundle\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + } + ], + "description": "Lets you find a path to the system CA bundle, and includes a fallback to the Mozilla CA bundle.", + "keywords": [ + "cabundle", + "cacert", + "certificate", + "ssl", + "tls" + ], + "support": { + "irc": "irc://irc.freenode.org/composer", + "issues": "https://github.com/composer/ca-bundle/issues", + "source": "https://github.com/composer/ca-bundle/tree/1.5.1" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "time": "2024-07-08T15:28:20+00:00" + }, + { + "name": "composer/class-map-generator", + "version": "1.3.4", + "source": { + "type": "git", + "url": "https://github.com/composer/class-map-generator.git", + "reference": "b1b3fd0b4eaf3ddf3ee230bc340bf3fff454a1a3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/class-map-generator/zipball/b1b3fd0b4eaf3ddf3ee230bc340bf3fff454a1a3", + "reference": "b1b3fd0b4eaf3ddf3ee230bc340bf3fff454a1a3", + "shasum": "" + }, + "require": { + "composer/pcre": "^2.1 || ^3.1", + "php": "^7.2 || ^8.0", + "symfony/finder": "^4.4 || ^5.3 || ^6 || ^7" + }, + "require-dev": { + "phpstan/phpstan": "^1.6", + "phpstan/phpstan-deprecation-rules": "^1", + "phpstan/phpstan-phpunit": "^1", + "phpstan/phpstan-strict-rules": "^1.1", + "symfony/filesystem": "^5.4 || ^6", + "symfony/phpunit-bridge": "^5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Composer\\ClassMapGenerator\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "https://seld.be" + } + ], + "description": "Utilities to scan PHP code and generate class maps.", + "keywords": [ + "classmap" + ], + "support": { + "issues": "https://github.com/composer/class-map-generator/issues", + "source": "https://github.com/composer/class-map-generator/tree/1.3.4" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "time": "2024-06-12T14:13:04+00:00" + }, + { + "name": "composer/composer", + "version": "2.7.8", + "source": { + "type": "git", + "url": "https://github.com/composer/composer.git", + "reference": "a2edd4e4414c17008ab585e0c62574fdb644ebfc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/composer/zipball/a2edd4e4414c17008ab585e0c62574fdb644ebfc", + "reference": "a2edd4e4414c17008ab585e0c62574fdb644ebfc", + "shasum": "" + }, + "require": { + "composer/ca-bundle": "^1.5", + "composer/class-map-generator": "^1.3.3", + "composer/metadata-minifier": "^1.0", + "composer/pcre": "^2.2 || ^3.2", + "composer/semver": "^3.3", + "composer/spdx-licenses": "^1.5.7", + "composer/xdebug-handler": "^2.0.2 || ^3.0.3", + "justinrainbow/json-schema": "^5.3", + "php": "^7.2.5 || ^8.0", + "psr/log": "^1.0 || ^2.0 || ^3.0", + "react/promise": "^3.2", + "seld/jsonlint": "^1.4", + "seld/phar-utils": "^1.2", + "seld/signal-handler": "^2.0", + "symfony/console": "^5.4.35 || ^6.3.12 || ^7.0.3", + "symfony/filesystem": "^5.4.35 || ^6.3.12 || ^7.0.3", + "symfony/finder": "^5.4.35 || ^6.3.12 || ^7.0.3", + "symfony/polyfill-php73": "^1.24", + "symfony/polyfill-php80": "^1.24", + "symfony/polyfill-php81": "^1.24", + "symfony/process": "^5.4.35 || ^6.3.12 || ^7.0.3" + }, + "require-dev": { + "phpstan/phpstan": "^1.11.8", + "phpstan/phpstan-deprecation-rules": "^1.2.0", + "phpstan/phpstan-phpunit": "^1.4.0", + "phpstan/phpstan-strict-rules": "^1.6.0", + "phpstan/phpstan-symfony": "^1.4.0", + "symfony/phpunit-bridge": "^6.4.3 || ^7.0.1" + }, + "suggest": { + "ext-openssl": "Enabling the openssl extension allows you to access https URLs for repositories and packages", + "ext-zip": "Enabling the zip extension allows you to unzip archives", + "ext-zlib": "Allow gzip compression of HTTP requests" + }, + "bin": [ + "bin/composer" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.7-dev" + }, + "phpstan": { + "includes": [ + "phpstan/rules.neon" + ] + } + }, + "autoload": { + "psr-4": { + "Composer\\": "src/Composer/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nils Adermann", + "email": "naderman@naderman.de", + "homepage": "https://www.naderman.de" + }, + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "https://seld.be" + } + ], + "description": "Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere.", + "homepage": "https://getcomposer.org/", + "keywords": [ + "autoload", + "dependency", + "package" + ], + "support": { + "irc": "ircs://irc.libera.chat:6697/composer", + "issues": "https://github.com/composer/composer/issues", + "security": "https://github.com/composer/composer/security/policy", + "source": "https://github.com/composer/composer/tree/2.7.8" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "time": "2024-08-22T13:28:36+00:00" }, { "name": "composer/installers", - "version": "v1.11.0", + "version": "v2.3.0", "source": { "type": "git", "url": "https://github.com/composer/installers.git", - "reference": "ae03311f45dfe194412081526be2e003960df74b" + "reference": "12fb2dfe5e16183de69e784a7b84046c43d97e8e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/installers/zipball/ae03311f45dfe194412081526be2e003960df74b", - "reference": "ae03311f45dfe194412081526be2e003960df74b", + "url": "https://api.github.com/repos/composer/installers/zipball/12fb2dfe5e16183de69e784a7b84046c43d97e8e", + "reference": "12fb2dfe5e16183de69e784a7b84046c43d97e8e", "shasum": "" }, "require": { - "composer-plugin-api": "^1.0 || ^2.0" - }, - "replace": { - "roundcube/plugin-installer": "*", - "shama/baton": "*" + "composer-plugin-api": "^1.0 || ^2.0", + "php": "^7.2 || ^8.0" }, "require-dev": { - "composer/composer": "1.6.* || ^2.0", - "composer/semver": "^1 || ^3", - "phpstan/phpstan": "^0.12.55", - "phpstan/phpstan-phpunit": "^0.12.16", - "symfony/phpunit-bridge": "^4.2 || ^5", - "symfony/process": "^2.3" + "composer/composer": "^1.10.27 || ^2.7", + "composer/semver": "^1.7.2 || ^3.4.0", + "phpstan/phpstan": "^1.11", + "phpstan/phpstan-phpunit": "^1", + "symfony/phpunit-bridge": "^7.1.1", + "symfony/process": "^5 || ^6 || ^7" }, "type": "composer-plugin", "extra": { "class": "Composer\\Installers\\Plugin", "branch-alias": { - "dev-main": "1.x-dev" - } + "dev-main": "2.x-dev" + }, + "plugin-modifies-install-path": true }, "autoload": { "psr-4": { @@ -103,7 +367,6 @@ "description": "A multi-framework Composer library installer", "homepage": "https://composer.github.io/installers/", "keywords": [ - "Craft", "Dolibarr", "Eliasis", "Hurad", @@ -124,7 +387,6 @@ "Whmcs", "WolfCMS", "agl", - "aimeos", "annotatecms", "attogram", "bitrix", @@ -133,6 +395,7 @@ "cockpit", "codeigniter", "concrete5", + "concreteCMS", "croogo", "dokuwiki", "drupal", @@ -143,7 +406,6 @@ "grav", "installer", "itop", - "joomla", "known", "kohana", "laravel", @@ -152,12 +414,14 @@ "magento", "majima", "mako", + "matomo", "mediawiki", "miaoxing", "modulework", "modx", "moodle", "osclass", + "pantheon", "phpbb", "piwik", "ppi", @@ -170,9 +434,7 @@ "silverstripe", "sydes", "sylius", - "symfony", "tastyigniter", - "typo3", "wordpress", "yawik", "zend", @@ -180,7 +442,7 @@ ], "support": { "issues": "https://github.com/composer/installers/issues", - "source": "https://github.com/composer/installers/tree/v1.11.0" + "source": "https://github.com/composer/installers/tree/v2.3.0" }, "funding": [ { @@ -196,79 +458,4600 @@ "type": "tidelift" } ], - "time": "2021-04-28T06:42:17+00:00" - } - ], - "packages-dev": [ + "time": "2024-06-24T20:46:46+00:00" + }, { - "name": "dealerdirect/phpcodesniffer-composer-installer", - "version": "v0.7.1", + "name": "composer/metadata-minifier", + "version": "1.0.0", "source": { "type": "git", - "url": "https://github.com/Dealerdirect/phpcodesniffer-composer-installer.git", - "reference": "fe390591e0241955f22eb9ba327d137e501c771c" + "url": "https://github.com/composer/metadata-minifier.git", + "reference": "c549d23829536f0d0e984aaabbf02af91f443207" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Dealerdirect/phpcodesniffer-composer-installer/zipball/fe390591e0241955f22eb9ba327d137e501c771c", - "reference": "fe390591e0241955f22eb9ba327d137e501c771c", + "url": "https://api.github.com/repos/composer/metadata-minifier/zipball/c549d23829536f0d0e984aaabbf02af91f443207", + "reference": "c549d23829536f0d0e984aaabbf02af91f443207", "shasum": "" }, "require": { - "composer-plugin-api": "^1.0 || ^2.0", - "php": ">=5.3", - "squizlabs/php_codesniffer": "^2.0 || ^3.0 || ^4.0" + "php": "^5.3.2 || ^7.0 || ^8.0" + }, + "require-dev": { + "composer/composer": "^2", + "phpstan/phpstan": "^0.12.55", + "symfony/phpunit-bridge": "^4.2 || ^5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Composer\\MetadataMinifier\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + } + ], + "description": "Small utility library that handles metadata minification and expansion.", + "keywords": [ + "composer", + "compression" + ], + "support": { + "issues": "https://github.com/composer/metadata-minifier/issues", + "source": "https://github.com/composer/metadata-minifier/tree/1.0.0" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "time": "2021-04-07T13:37:33+00:00" + }, + { + "name": "composer/pcre", + "version": "3.3.0", + "source": { + "type": "git", + "url": "https://github.com/composer/pcre.git", + "reference": "1637e067347a0c40bbb1e3cd786b20dcab556a81" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/pcre/zipball/1637e067347a0c40bbb1e3cd786b20dcab556a81", + "reference": "1637e067347a0c40bbb1e3cd786b20dcab556a81", + "shasum": "" + }, + "require": { + "php": "^7.4 || ^8.0" + }, + "conflict": { + "phpstan/phpstan": "<1.11.10" + }, + "require-dev": { + "phpstan/phpstan": "^1.11.10", + "phpstan/phpstan-strict-rules": "^1.1", + "phpunit/phpunit": "^8 || ^9" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.x-dev" + }, + "phpstan": { + "includes": [ + "extension.neon" + ] + } + }, + "autoload": { + "psr-4": { + "Composer\\Pcre\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + } + ], + "description": "PCRE wrapping library that offers type-safe preg_* replacements.", + "keywords": [ + "PCRE", + "preg", + "regex", + "regular expression" + ], + "support": { + "issues": "https://github.com/composer/pcre/issues", + "source": "https://github.com/composer/pcre/tree/3.3.0" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "time": "2024-08-19T19:43:53+00:00" + }, + { + "name": "composer/semver", + "version": "3.4.2", + "source": { + "type": "git", + "url": "https://github.com/composer/semver.git", + "reference": "c51258e759afdb17f1fd1fe83bc12baaef6309d6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/semver/zipball/c51258e759afdb17f1fd1fe83bc12baaef6309d6", + "reference": "c51258e759afdb17f1fd1fe83bc12baaef6309d6", + "shasum": "" + }, + "require": { + "php": "^5.3.2 || ^7.0 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^1.4", + "symfony/phpunit-bridge": "^4.2 || ^5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Composer\\Semver\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nils Adermann", + "email": "naderman@naderman.de", + "homepage": "http://www.naderman.de" + }, + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + }, + { + "name": "Rob Bast", + "email": "rob.bast@gmail.com", + "homepage": "http://robbast.nl" + } + ], + "description": "Semver library that offers utilities, version constraint parsing and validation.", + "keywords": [ + "semantic", + "semver", + "validation", + "versioning" + ], + "support": { + "irc": "ircs://irc.libera.chat:6697/composer", + "issues": "https://github.com/composer/semver/issues", + "source": "https://github.com/composer/semver/tree/3.4.2" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "time": "2024-07-12T11:35:52+00:00" + }, + { + "name": "composer/spdx-licenses", + "version": "1.5.8", + "source": { + "type": "git", + "url": "https://github.com/composer/spdx-licenses.git", + "reference": "560bdcf8deb88ae5d611c80a2de8ea9d0358cc0a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/spdx-licenses/zipball/560bdcf8deb88ae5d611c80a2de8ea9d0358cc0a", + "reference": "560bdcf8deb88ae5d611c80a2de8ea9d0358cc0a", + "shasum": "" + }, + "require": { + "php": "^5.3.2 || ^7.0 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^0.12.55", + "symfony/phpunit-bridge": "^4.2 || ^5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Composer\\Spdx\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nils Adermann", + "email": "naderman@naderman.de", + "homepage": "http://www.naderman.de" + }, + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + }, + { + "name": "Rob Bast", + "email": "rob.bast@gmail.com", + "homepage": "http://robbast.nl" + } + ], + "description": "SPDX licenses list and validation library.", + "keywords": [ + "license", + "spdx", + "validator" + ], + "support": { + "irc": "ircs://irc.libera.chat:6697/composer", + "issues": "https://github.com/composer/spdx-licenses/issues", + "source": "https://github.com/composer/spdx-licenses/tree/1.5.8" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "time": "2023-11-20T07:44:33+00:00" + }, + { + "name": "composer/xdebug-handler", + "version": "3.0.5", + "source": { + "type": "git", + "url": "https://github.com/composer/xdebug-handler.git", + "reference": "6c1925561632e83d60a44492e0b344cf48ab85ef" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/6c1925561632e83d60a44492e0b344cf48ab85ef", + "reference": "6c1925561632e83d60a44492e0b344cf48ab85ef", + "shasum": "" + }, + "require": { + "composer/pcre": "^1 || ^2 || ^3", + "php": "^7.2.5 || ^8.0", + "psr/log": "^1 || ^2 || ^3" + }, + "require-dev": { + "phpstan/phpstan": "^1.0", + "phpstan/phpstan-strict-rules": "^1.1", + "phpunit/phpunit": "^8.5 || ^9.6 || ^10.5" + }, + "type": "library", + "autoload": { + "psr-4": { + "Composer\\XdebugHandler\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "John Stevenson", + "email": "john-stevenson@blueyonder.co.uk" + } + ], + "description": "Restarts a process without Xdebug.", + "keywords": [ + "Xdebug", + "performance" + ], + "support": { + "irc": "ircs://irc.libera.chat:6697/composer", + "issues": "https://github.com/composer/xdebug-handler/issues", + "source": "https://github.com/composer/xdebug-handler/tree/3.0.5" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "time": "2024-05-06T16:37:16+00:00" + }, + { + "name": "eftec/bladeone", + "version": "3.52", + "source": { + "type": "git", + "url": "https://github.com/EFTEC/BladeOne.git", + "reference": "a19bf66917de0b29836983db87a455a4f6e32148" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/EFTEC/BladeOne/zipball/a19bf66917de0b29836983db87a455a4f6e32148", + "reference": "a19bf66917de0b29836983db87a455a4f6e32148", + "shasum": "" + }, + "require": { + "ext-json": "*", + "php": ">=5.6" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^2.16.1", + "phpunit/phpunit": "^5.7", + "squizlabs/php_codesniffer": "^3.5.4" + }, + "suggest": { + "eftec/bladeonehtml": "Extension to create forms", + "ext-mbstring": "This extension is used if it's active" + }, + "type": "library", + "autoload": { + "psr-4": { + "eftec\\bladeone\\": "lib/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jorge Patricio Castro Castillo", + "email": "jcastro@eftec.cl" + } + ], + "description": "The standalone version Blade Template Engine from Laravel in a single php file", + "homepage": "https://github.com/EFTEC/BladeOne", + "keywords": [ + "blade", + "php", + "template", + "templating", + "view" + ], + "support": { + "issues": "https://github.com/EFTEC/BladeOne/issues", + "source": "https://github.com/EFTEC/BladeOne/tree/3.52" + }, + "time": "2021-04-17T13:49:01+00:00" + }, + { + "name": "gettext/gettext", + "version": "v4.8.12", + "source": { + "type": "git", + "url": "https://github.com/php-gettext/Gettext.git", + "reference": "11af89ee6c087db3cf09ce2111a150bca5c46e12" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-gettext/Gettext/zipball/11af89ee6c087db3cf09ce2111a150bca5c46e12", + "reference": "11af89ee6c087db3cf09ce2111a150bca5c46e12", + "shasum": "" + }, + "require": { + "gettext/languages": "^2.3", + "php": ">=5.4.0" + }, + "require-dev": { + "illuminate/view": "^5.0.x-dev", + "phpunit/phpunit": "^4.8|^5.7|^6.5", + "squizlabs/php_codesniffer": "^3.0", + "symfony/yaml": "~2", + "twig/extensions": "*", + "twig/twig": "^1.31|^2.0" + }, + "suggest": { + "illuminate/view": "Is necessary if you want to use the Blade extractor", + "symfony/yaml": "Is necessary if you want to use the Yaml extractor/generator", + "twig/extensions": "Is necessary if you want to use the Twig extractor", + "twig/twig": "Is necessary if you want to use the Twig extractor" + }, + "type": "library", + "autoload": { + "psr-4": { + "Gettext\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Oscar Otero", + "email": "oom@oscarotero.com", + "homepage": "http://oscarotero.com", + "role": "Developer" + } + ], + "description": "PHP gettext manager", + "homepage": "https://github.com/oscarotero/Gettext", + "keywords": [ + "JS", + "gettext", + "i18n", + "mo", + "po", + "translation" + ], + "support": { + "email": "oom@oscarotero.com", + "issues": "https://github.com/oscarotero/Gettext/issues", + "source": "https://github.com/php-gettext/Gettext/tree/v4.8.12" + }, + "funding": [ + { + "url": "https://paypal.me/oscarotero", + "type": "custom" + }, + { + "url": "https://github.com/oscarotero", + "type": "github" + }, + { + "url": "https://www.patreon.com/misteroom", + "type": "patreon" + } + ], + "time": "2024-05-18T10:25:07+00:00" + }, + { + "name": "gettext/languages", + "version": "2.10.0", + "source": { + "type": "git", + "url": "https://github.com/php-gettext/Languages.git", + "reference": "4d61d67fe83a2ad85959fe6133d6d9ba7dddd1ab" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-gettext/Languages/zipball/4d61d67fe83a2ad85959fe6133d6d9ba7dddd1ab", + "reference": "4d61d67fe83a2ad85959fe6133d6d9ba7dddd1ab", + "shasum": "" + }, + "require": { + "php": ">=5.3" + }, + "require-dev": { + "phpunit/phpunit": "^4.8 || ^5.7 || ^6.5 || ^7.5 || ^8.4" + }, + "bin": [ + "bin/export-plural-rules" + ], + "type": "library", + "autoload": { + "psr-4": { + "Gettext\\Languages\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Michele Locati", + "email": "mlocati@gmail.com", + "role": "Developer" + } + ], + "description": "gettext languages with plural rules", + "homepage": "https://github.com/php-gettext/Languages", + "keywords": [ + "cldr", + "i18n", + "internationalization", + "l10n", + "language", + "languages", + "localization", + "php", + "plural", + "plural rules", + "plurals", + "translate", + "translations", + "unicode" + ], + "support": { + "issues": "https://github.com/php-gettext/Languages/issues", + "source": "https://github.com/php-gettext/Languages/tree/2.10.0" + }, + "funding": [ + { + "url": "https://paypal.me/mlocati", + "type": "custom" + }, + { + "url": "https://github.com/mlocati", + "type": "github" + } + ], + "time": "2022-10-18T15:00:10+00:00" + }, + { + "name": "justinrainbow/json-schema", + "version": "5.3.0", + "source": { + "type": "git", + "url": "https://github.com/jsonrainbow/json-schema.git", + "reference": "feb2ca6dd1cebdaf1ed60a4c8de2e53ce11c4fd8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/jsonrainbow/json-schema/zipball/feb2ca6dd1cebdaf1ed60a4c8de2e53ce11c4fd8", + "reference": "feb2ca6dd1cebdaf1ed60a4c8de2e53ce11c4fd8", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "~2.2.20||~2.15.1", + "json-schema/json-schema-test-suite": "1.2.0", + "phpunit/phpunit": "^4.8.35" + }, + "bin": [ + "bin/validate-json" + ], + "type": "library", + "autoload": { + "psr-4": { + "JsonSchema\\": "src/JsonSchema/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Bruno Prieto Reis", + "email": "bruno.p.reis@gmail.com" + }, + { + "name": "Justin Rainbow", + "email": "justin.rainbow@gmail.com" + }, + { + "name": "Igor Wiedler", + "email": "igor@wiedler.ch" + }, + { + "name": "Robert Schönthal", + "email": "seroscho@googlemail.com" + } + ], + "description": "A library to validate a json schema.", + "homepage": "https://github.com/justinrainbow/json-schema", + "keywords": [ + "json", + "schema" + ], + "support": { + "issues": "https://github.com/jsonrainbow/json-schema/issues", + "source": "https://github.com/jsonrainbow/json-schema/tree/5.3.0" + }, + "time": "2024-07-06T21:00:26+00:00" + }, + { + "name": "mck89/peast", + "version": "v1.16.3", + "source": { + "type": "git", + "url": "https://github.com/mck89/peast.git", + "reference": "645ec21b650bc2aced18285c85f220d22afc1430" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/mck89/peast/zipball/645ec21b650bc2aced18285c85f220d22afc1430", + "reference": "645ec21b650bc2aced18285c85f220d22afc1430", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "php": ">=5.4.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.16.3-dev" + } + }, + "autoload": { + "psr-4": { + "Peast\\": "lib/Peast/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Marco Marchiò", + "email": "marco.mm89@gmail.com" + } + ], + "description": "Peast is PHP library that generates AST for JavaScript code", + "support": { + "issues": "https://github.com/mck89/peast/issues", + "source": "https://github.com/mck89/peast/tree/v1.16.3" + }, + "time": "2024-07-23T14:00:32+00:00" + }, + { + "name": "mustache/mustache", + "version": "v2.14.2", + "source": { + "type": "git", + "url": "https://github.com/bobthecow/mustache.php.git", + "reference": "e62b7c3849d22ec55f3ec425507bf7968193a6cb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/bobthecow/mustache.php/zipball/e62b7c3849d22ec55f3ec425507bf7968193a6cb", + "reference": "e62b7c3849d22ec55f3ec425507bf7968193a6cb", + "shasum": "" + }, + "require": { + "php": ">=5.2.4" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "~1.11", + "phpunit/phpunit": "~3.7|~4.0|~5.0" + }, + "type": "library", + "autoload": { + "psr-0": { + "Mustache": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Justin Hileman", + "email": "justin@justinhileman.info", + "homepage": "http://justinhileman.com" + } + ], + "description": "A Mustache implementation in PHP.", + "homepage": "https://github.com/bobthecow/mustache.php", + "keywords": [ + "mustache", + "templating" + ], + "support": { + "issues": "https://github.com/bobthecow/mustache.php/issues", + "source": "https://github.com/bobthecow/mustache.php/tree/v2.14.2" + }, + "time": "2022-08-23T13:07:01+00:00" + }, + { + "name": "nb/oxymel", + "version": "v0.1.0", + "source": { + "type": "git", + "url": "https://github.com/nb/oxymel.git", + "reference": "cbe626ef55d5c4cc9b5e6e3904b395861ea76e3c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nb/oxymel/zipball/cbe626ef55d5c4cc9b5e6e3904b395861ea76e3c", + "reference": "cbe626ef55d5c4cc9b5e6e3904b395861ea76e3c", + "shasum": "" + }, + "require": { + "php": ">=5.2.4" + }, + "type": "library", + "autoload": { + "psr-0": { + "Oxymel": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nikolay Bachiyski", + "email": "nb@nikolay.bg", + "homepage": "http://extrapolate.me/" + } + ], + "description": "A sweet XML builder", + "homepage": "https://github.com/nb/oxymel", + "keywords": [ + "xml" + ], + "support": { + "issues": "https://github.com/nb/oxymel/issues", + "source": "https://github.com/nb/oxymel/tree/master" + }, + "time": "2013-02-24T15:01:54+00:00" + }, + { + "name": "psr/container", + "version": "2.0.2", + "source": { + "type": "git", + "url": "https://github.com/php-fig/container.git", + "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/container/zipball/c71ecc56dfe541dbd90c5360474fbc405f8d5963", + "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963", + "shasum": "" + }, + "require": { + "php": ">=7.4.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Container\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common Container Interface (PHP FIG PSR-11)", + "homepage": "https://github.com/php-fig/container", + "keywords": [ + "PSR-11", + "container", + "container-interface", + "container-interop", + "psr" + ], + "support": { + "issues": "https://github.com/php-fig/container/issues", + "source": "https://github.com/php-fig/container/tree/2.0.2" + }, + "time": "2021-11-05T16:47:00+00:00" + }, + { + "name": "psr/log", + "version": "3.0.1", + "source": { + "type": "git", + "url": "https://github.com/php-fig/log.git", + "reference": "79dff0b268932c640297f5208d6298f71855c03e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/log/zipball/79dff0b268932c640297f5208d6298f71855c03e", + "reference": "79dff0b268932c640297f5208d6298f71855c03e", + "shasum": "" + }, + "require": { + "php": ">=8.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Log\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for logging libraries", + "homepage": "https://github.com/php-fig/log", + "keywords": [ + "log", + "psr", + "psr-3" + ], + "support": { + "source": "https://github.com/php-fig/log/tree/3.0.1" + }, + "time": "2024-08-21T13:31:24+00:00" + }, + { + "name": "react/promise", + "version": "v3.2.0", + "source": { + "type": "git", + "url": "https://github.com/reactphp/promise.git", + "reference": "8a164643313c71354582dc850b42b33fa12a4b63" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/reactphp/promise/zipball/8a164643313c71354582dc850b42b33fa12a4b63", + "reference": "8a164643313c71354582dc850b42b33fa12a4b63", + "shasum": "" + }, + "require": { + "php": ">=7.1.0" + }, + "require-dev": { + "phpstan/phpstan": "1.10.39 || 1.4.10", + "phpunit/phpunit": "^9.6 || ^7.5" + }, + "type": "library", + "autoload": { + "files": [ + "src/functions_include.php" + ], + "psr-4": { + "React\\Promise\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jan Sorgalla", + "email": "jsorgalla@gmail.com", + "homepage": "https://sorgalla.com/" + }, + { + "name": "Christian Lück", + "email": "christian@clue.engineering", + "homepage": "https://clue.engineering/" + }, + { + "name": "Cees-Jan Kiewiet", + "email": "reactphp@ceesjankiewiet.nl", + "homepage": "https://wyrihaximus.net/" + }, + { + "name": "Chris Boden", + "email": "cboden@gmail.com", + "homepage": "https://cboden.dev/" + } + ], + "description": "A lightweight implementation of CommonJS Promises/A for PHP", + "keywords": [ + "promise", + "promises" + ], + "support": { + "issues": "https://github.com/reactphp/promise/issues", + "source": "https://github.com/reactphp/promise/tree/v3.2.0" + }, + "funding": [ + { + "url": "https://opencollective.com/reactphp", + "type": "open_collective" + } + ], + "time": "2024-05-24T10:39:05+00:00" + }, + { + "name": "seld/jsonlint", + "version": "1.11.0", + "source": { + "type": "git", + "url": "https://github.com/Seldaek/jsonlint.git", + "reference": "1748aaf847fc731cfad7725aec413ee46f0cc3a2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Seldaek/jsonlint/zipball/1748aaf847fc731cfad7725aec413ee46f0cc3a2", + "reference": "1748aaf847fc731cfad7725aec413ee46f0cc3a2", + "shasum": "" + }, + "require": { + "php": "^5.3 || ^7.0 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^1.11", + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0 || ^8.5.13" + }, + "bin": [ + "bin/jsonlint" + ], + "type": "library", + "autoload": { + "psr-4": { + "Seld\\JsonLint\\": "src/Seld/JsonLint/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "https://seld.be" + } + ], + "description": "JSON Linter", + "keywords": [ + "json", + "linter", + "parser", + "validator" + ], + "support": { + "issues": "https://github.com/Seldaek/jsonlint/issues", + "source": "https://github.com/Seldaek/jsonlint/tree/1.11.0" + }, + "funding": [ + { + "url": "https://github.com/Seldaek", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/seld/jsonlint", + "type": "tidelift" + } + ], + "time": "2024-07-11T14:55:45+00:00" + }, + { + "name": "seld/phar-utils", + "version": "1.2.1", + "source": { + "type": "git", + "url": "https://github.com/Seldaek/phar-utils.git", + "reference": "ea2f4014f163c1be4c601b9b7bd6af81ba8d701c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Seldaek/phar-utils/zipball/ea2f4014f163c1be4c601b9b7bd6af81ba8d701c", + "reference": "ea2f4014f163c1be4c601b9b7bd6af81ba8d701c", + "shasum": "" + }, + "require": { + "php": ">=5.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Seld\\PharUtils\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be" + } + ], + "description": "PHAR file format utilities, for when PHP phars you up", + "keywords": [ + "phar" + ], + "support": { + "issues": "https://github.com/Seldaek/phar-utils/issues", + "source": "https://github.com/Seldaek/phar-utils/tree/1.2.1" + }, + "time": "2022-08-31T10:31:18+00:00" + }, + { + "name": "seld/signal-handler", + "version": "2.0.2", + "source": { + "type": "git", + "url": "https://github.com/Seldaek/signal-handler.git", + "reference": "04a6112e883ad76c0ada8e4a9f7520bbfdb6bb98" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Seldaek/signal-handler/zipball/04a6112e883ad76c0ada8e4a9f7520bbfdb6bb98", + "reference": "04a6112e883ad76c0ada8e4a9f7520bbfdb6bb98", + "shasum": "" + }, + "require": { + "php": ">=7.2.0" + }, + "require-dev": { + "phpstan/phpstan": "^1", + "phpstan/phpstan-deprecation-rules": "^1.0", + "phpstan/phpstan-phpunit": "^1", + "phpstan/phpstan-strict-rules": "^1.3", + "phpunit/phpunit": "^7.5.20 || ^8.5.23", + "psr/log": "^1 || ^2 || ^3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.x-dev" + } + }, + "autoload": { + "psr-4": { + "Seld\\Signal\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + } + ], + "description": "Simple unix signal handler that silently fails where signals are not supported for easy cross-platform development", + "keywords": [ + "posix", + "sigint", + "signal", + "sigterm", + "unix" + ], + "support": { + "issues": "https://github.com/Seldaek/signal-handler/issues", + "source": "https://github.com/Seldaek/signal-handler/tree/2.0.2" + }, + "time": "2023-09-03T09:24:00+00:00" + }, + { + "name": "symfony/console", + "version": "v6.4.10", + "source": { + "type": "git", + "url": "https://github.com/symfony/console.git", + "reference": "504974cbe43d05f83b201d6498c206f16fc0cdbc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/console/zipball/504974cbe43d05f83b201d6498c206f16fc0cdbc", + "reference": "504974cbe43d05f83b201d6498c206f16fc0cdbc", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/polyfill-mbstring": "~1.0", + "symfony/service-contracts": "^2.5|^3", + "symfony/string": "^5.4|^6.0|^7.0" + }, + "conflict": { + "symfony/dependency-injection": "<5.4", + "symfony/dotenv": "<5.4", + "symfony/event-dispatcher": "<5.4", + "symfony/lock": "<5.4", + "symfony/process": "<5.4" + }, + "provide": { + "psr/log-implementation": "1.0|2.0|3.0" + }, + "require-dev": { + "psr/log": "^1|^2|^3", + "symfony/config": "^5.4|^6.0|^7.0", + "symfony/dependency-injection": "^5.4|^6.0|^7.0", + "symfony/event-dispatcher": "^5.4|^6.0|^7.0", + "symfony/http-foundation": "^6.4|^7.0", + "symfony/http-kernel": "^6.4|^7.0", + "symfony/lock": "^5.4|^6.0|^7.0", + "symfony/messenger": "^5.4|^6.0|^7.0", + "symfony/process": "^5.4|^6.0|^7.0", + "symfony/stopwatch": "^5.4|^6.0|^7.0", + "symfony/var-dumper": "^5.4|^6.0|^7.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Console\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Eases the creation of beautiful and testable command line interfaces", + "homepage": "https://symfony.com", + "keywords": [ + "cli", + "command-line", + "console", + "terminal" + ], + "support": { + "source": "https://github.com/symfony/console/tree/v6.4.10" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-07-26T12:30:32+00:00" + }, + { + "name": "symfony/deprecation-contracts", + "version": "v3.5.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/deprecation-contracts.git", + "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1", + "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.5-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "autoload": { + "files": [ + "function.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "A generic function and convention to trigger deprecation notices", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-04-18T09:32:20+00:00" + }, + { + "name": "symfony/filesystem", + "version": "v6.4.9", + "source": { + "type": "git", + "url": "https://github.com/symfony/filesystem.git", + "reference": "b51ef8059159330b74a4d52f68e671033c0fe463" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/b51ef8059159330b74a4d52f68e671033c0fe463", + "reference": "b51ef8059159330b74a4d52f68e671033c0fe463", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "symfony/polyfill-ctype": "~1.8", + "symfony/polyfill-mbstring": "~1.8" + }, + "require-dev": { + "symfony/process": "^5.4|^6.4|^7.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Filesystem\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides basic utilities for the filesystem", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/filesystem/tree/v6.4.9" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-06-28T09:49:33+00:00" + }, + { + "name": "symfony/finder", + "version": "v6.4.10", + "source": { + "type": "git", + "url": "https://github.com/symfony/finder.git", + "reference": "af29198d87112bebdd397bd7735fbd115997824c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/finder/zipball/af29198d87112bebdd397bd7735fbd115997824c", + "reference": "af29198d87112bebdd397bd7735fbd115997824c", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "symfony/filesystem": "^6.0|^7.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Finder\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Finds files and directories via an intuitive fluent interface", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/finder/tree/v6.4.10" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-07-24T07:06:38+00:00" + }, + { + "name": "symfony/polyfill-ctype", + "version": "v1.30.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-ctype.git", + "reference": "0424dff1c58f028c451efff2045f5d92410bd540" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/0424dff1c58f028c451efff2045f5d92410bd540", + "reference": "0424dff1c58f028c451efff2045f5d92410bd540", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "provide": { + "ext-ctype": "*" + }, + "suggest": { + "ext-ctype": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Ctype\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Gert de Pagter", + "email": "BackEndTea@gmail.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for ctype functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "ctype", + "polyfill", + "portable" + ], + "support": { + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.30.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-05-31T15:07:36+00:00" + }, + { + "name": "symfony/polyfill-intl-grapheme", + "version": "v1.30.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-grapheme.git", + "reference": "64647a7c30b2283f5d49b874d84a18fc22054b7a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/64647a7c30b2283f5d49b874d84a18fc22054b7a", + "reference": "64647a7c30b2283f5d49b874d84a18fc22054b7a", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Intl\\Grapheme\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for intl's grapheme_* functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "grapheme", + "intl", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.30.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-05-31T15:07:36+00:00" + }, + { + "name": "symfony/polyfill-intl-normalizer", + "version": "v1.30.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-normalizer.git", + "reference": "a95281b0be0d9ab48050ebd988b967875cdb9fdb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/a95281b0be0d9ab48050ebd988b967875cdb9fdb", + "reference": "a95281b0be0d9ab48050ebd988b967875cdb9fdb", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Intl\\Normalizer\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for intl's Normalizer class and related functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "intl", + "normalizer", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.30.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-05-31T15:07:36+00:00" + }, + { + "name": "symfony/polyfill-mbstring", + "version": "v1.30.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-mbstring.git", + "reference": "fd22ab50000ef01661e2a31d850ebaa297f8e03c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/fd22ab50000ef01661e2a31d850ebaa297f8e03c", + "reference": "fd22ab50000ef01661e2a31d850ebaa297f8e03c", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "provide": { + "ext-mbstring": "*" + }, + "suggest": { + "ext-mbstring": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Mbstring\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for the Mbstring extension", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "mbstring", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.30.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-06-19T12:30:46+00:00" + }, + { + "name": "symfony/polyfill-php73", + "version": "v1.30.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php73.git", + "reference": "ec444d3f3f6505bb28d11afa41e75faadebc10a1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/ec444d3f3f6505bb28d11afa41e75faadebc10a1", + "reference": "ec444d3f3f6505bb28d11afa41e75faadebc10a1", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php73\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php73/tree/v1.30.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-05-31T15:07:36+00:00" + }, + { + "name": "symfony/polyfill-php80", + "version": "v1.30.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php80.git", + "reference": "77fa7995ac1b21ab60769b7323d600a991a90433" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/77fa7995ac1b21ab60769b7323d600a991a90433", + "reference": "77fa7995ac1b21ab60769b7323d600a991a90433", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php80\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ion Bazan", + "email": "ion.bazan@gmail.com" + }, + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php80/tree/v1.30.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-05-31T15:07:36+00:00" + }, + { + "name": "symfony/polyfill-php81", + "version": "v1.30.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php81.git", + "reference": "3fb075789fb91f9ad9af537c4012d523085bd5af" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/3fb075789fb91f9ad9af537c4012d523085bd5af", + "reference": "3fb075789fb91f9ad9af537c4012d523085bd5af", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php81\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.1+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php81/tree/v1.30.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-06-19T12:30:46+00:00" + }, + { + "name": "symfony/process", + "version": "v6.4.8", + "source": { + "type": "git", + "url": "https://github.com/symfony/process.git", + "reference": "8d92dd79149f29e89ee0f480254db595f6a6a2c5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/process/zipball/8d92dd79149f29e89ee0f480254db595f6a6a2c5", + "reference": "8d92dd79149f29e89ee0f480254db595f6a6a2c5", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Process\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Executes commands in sub-processes", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/process/tree/v6.4.8" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-05-31T14:49:08+00:00" + }, + { + "name": "symfony/service-contracts", + "version": "v3.5.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/service-contracts.git", + "reference": "bd1d9e59a81d8fa4acdcea3f617c581f7475a80f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/bd1d9e59a81d8fa4acdcea3f617c581f7475a80f", + "reference": "bd1d9e59a81d8fa4acdcea3f617c581f7475a80f", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "psr/container": "^1.1|^2.0", + "symfony/deprecation-contracts": "^2.5|^3" + }, + "conflict": { + "ext-psr": "<1.1|>=2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.5-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\Service\\": "" + }, + "exclude-from-classmap": [ + "/Test/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Generic abstractions related to writing services", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "support": { + "source": "https://github.com/symfony/service-contracts/tree/v3.5.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-04-18T09:32:20+00:00" + }, + { + "name": "symfony/string", + "version": "v6.4.10", + "source": { + "type": "git", + "url": "https://github.com/symfony/string.git", + "reference": "ccf9b30251719567bfd46494138327522b9a9446" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/string/zipball/ccf9b30251719567bfd46494138327522b9a9446", + "reference": "ccf9b30251719567bfd46494138327522b9a9446", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "symfony/polyfill-ctype": "~1.8", + "symfony/polyfill-intl-grapheme": "~1.0", + "symfony/polyfill-intl-normalizer": "~1.0", + "symfony/polyfill-mbstring": "~1.0" + }, + "conflict": { + "symfony/translation-contracts": "<2.5" + }, + "require-dev": { + "symfony/error-handler": "^5.4|^6.0|^7.0", + "symfony/http-client": "^5.4|^6.0|^7.0", + "symfony/intl": "^6.2|^7.0", + "symfony/translation-contracts": "^2.5|^3.0", + "symfony/var-exporter": "^5.4|^6.0|^7.0" + }, + "type": "library", + "autoload": { + "files": [ + "Resources/functions.php" + ], + "psr-4": { + "Symfony\\Component\\String\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way", + "homepage": "https://symfony.com", + "keywords": [ + "grapheme", + "i18n", + "string", + "unicode", + "utf-8", + "utf8" + ], + "support": { + "source": "https://github.com/symfony/string/tree/v6.4.10" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-07-22T10:21:14+00:00" + }, + { + "name": "wp-cli/cache-command", + "version": "v2.1.3", + "source": { + "type": "git", + "url": "https://github.com/wp-cli/cache-command.git", + "reference": "1dbb59e5ed126b9a2fa9d521d29910f3f4eb0f97" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/wp-cli/cache-command/zipball/1dbb59e5ed126b9a2fa9d521d29910f3f4eb0f97", + "reference": "1dbb59e5ed126b9a2fa9d521d29910f3f4eb0f97", + "shasum": "" + }, + "require": { + "wp-cli/wp-cli": "^2.5" + }, + "require-dev": { + "wp-cli/entity-command": "^1.3 || ^2", + "wp-cli/wp-cli-tests": "^4" + }, + "type": "wp-cli-package", + "extra": { + "branch-alias": { + "dev-main": "2.x-dev" + }, + "bundled": true, + "commands": [ + "cache", + "cache add", + "cache decr", + "cache delete", + "cache flush", + "cache flush-group", + "cache get", + "cache incr", + "cache replace", + "cache set", + "cache supports", + "cache type", + "transient", + "transient delete", + "transient get", + "transient set", + "transient type", + "transient list" + ] + }, + "autoload": { + "files": [ + "cache-command.php" + ], + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Daniel Bachhuber", + "email": "daniel@runcommand.io", + "homepage": "https://runcommand.io" + } + ], + "description": "Manages object and transient caches.", + "homepage": "https://github.com/wp-cli/cache-command", + "support": { + "issues": "https://github.com/wp-cli/cache-command/issues", + "source": "https://github.com/wp-cli/cache-command/tree/v2.1.3" + }, + "time": "2024-04-26T14:54:22+00:00" + }, + { + "name": "wp-cli/checksum-command", + "version": "v2.2.5", + "source": { + "type": "git", + "url": "https://github.com/wp-cli/checksum-command.git", + "reference": "f6911998734018da08f75464a168feb0d07b4475" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/wp-cli/checksum-command/zipball/f6911998734018da08f75464a168feb0d07b4475", + "reference": "f6911998734018da08f75464a168feb0d07b4475", + "shasum": "" + }, + "require": { + "wp-cli/wp-cli": "^2.5" + }, + "require-dev": { + "wp-cli/extension-command": "^1.2 || ^2", + "wp-cli/wp-cli-tests": "^4" + }, + "type": "wp-cli-package", + "extra": { + "branch-alias": { + "dev-main": "2.x-dev" + }, + "bundled": true, + "commands": [ + "core verify-checksums", + "plugin verify-checksums" + ] + }, + "autoload": { + "files": [ + "checksum-command.php" + ], + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Daniel Bachhuber", + "email": "daniel@runcommand.io", + "homepage": "https://runcommand.io" + } + ], + "description": "Verifies file integrity by comparing to published checksums.", + "homepage": "https://github.com/wp-cli/checksum-command", + "support": { + "issues": "https://github.com/wp-cli/checksum-command/issues", + "source": "https://github.com/wp-cli/checksum-command/tree/v2.2.5" + }, + "time": "2023-11-10T21:54:15+00:00" + }, + { + "name": "wp-cli/config-command", + "version": "v2.3.6", + "source": { + "type": "git", + "url": "https://github.com/wp-cli/config-command.git", + "reference": "82a64ae0dbd8bc91e2bf0446666ae24650223775" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/wp-cli/config-command/zipball/82a64ae0dbd8bc91e2bf0446666ae24650223775", + "reference": "82a64ae0dbd8bc91e2bf0446666ae24650223775", + "shasum": "" + }, + "require": { + "wp-cli/wp-cli": "^2.5", + "wp-cli/wp-config-transformer": "^1.2.1" + }, + "require-dev": { + "wp-cli/db-command": "^1.3 || ^2", + "wp-cli/wp-cli-tests": "^4.2.8" + }, + "type": "wp-cli-package", + "extra": { + "branch-alias": { + "dev-main": "2.x-dev" + }, + "bundled": true, + "commands": [ + "config", + "config edit", + "config delete", + "config create", + "config get", + "config has", + "config is-true", + "config list", + "config path", + "config set", + "config shuffle-salts" + ] + }, + "autoload": { + "files": [ + "config-command.php" + ], + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Daniel Bachhuber", + "email": "daniel@runcommand.io", + "homepage": "https://runcommand.io" + }, + { + "name": "Alain Schlesser", + "email": "alain.schlesser@gmail.com", + "homepage": "https://www.alainschlesser.com" + } + ], + "description": "Generates and reads the wp-config.php file.", + "homepage": "https://github.com/wp-cli/config-command", + "support": { + "issues": "https://github.com/wp-cli/config-command/issues", + "source": "https://github.com/wp-cli/config-command/tree/v2.3.6" + }, + "time": "2024-08-05T13:34:06+00:00" + }, + { + "name": "wp-cli/core-command", + "version": "v2.1.18", + "source": { + "type": "git", + "url": "https://github.com/wp-cli/core-command.git", + "reference": "f7580f93fe66a5584fa7b7c42bd2c0c1435c9d2e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/wp-cli/core-command/zipball/f7580f93fe66a5584fa7b7c42bd2c0c1435c9d2e", + "reference": "f7580f93fe66a5584fa7b7c42bd2c0c1435c9d2e", + "shasum": "" + }, + "require": { + "composer/semver": "^1.4 || ^2 || ^3", + "wp-cli/wp-cli": "^2.5.1" + }, + "require-dev": { + "wp-cli/checksum-command": "^1 || ^2", + "wp-cli/db-command": "^1.3 || ^2", + "wp-cli/entity-command": "^1.3 || ^2", + "wp-cli/extension-command": "^1.2 || ^2", + "wp-cli/wp-cli-tests": "^4" + }, + "type": "wp-cli-package", + "extra": { + "branch-alias": { + "dev-main": "2.x-dev" + }, + "bundled": true, + "commands": [ + "core", + "core check-update", + "core download", + "core install", + "core is-installed", + "core multisite-convert", + "core multisite-install", + "core update", + "core update-db", + "core version" + ] + }, + "autoload": { + "files": [ + "core-command.php" + ], + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Daniel Bachhuber", + "email": "daniel@runcommand.io", + "homepage": "https://runcommand.io" + } + ], + "description": "Downloads, installs, updates, and manages a WordPress installation.", + "homepage": "https://github.com/wp-cli/core-command", + "support": { + "issues": "https://github.com/wp-cli/core-command/issues", + "source": "https://github.com/wp-cli/core-command/tree/v2.1.18" + }, + "time": "2024-04-12T09:36:36+00:00" + }, + { + "name": "wp-cli/cron-command", + "version": "v2.3.0", + "source": { + "type": "git", + "url": "https://github.com/wp-cli/cron-command.git", + "reference": "2108295a2f30de77d3ee70b1a60d1b542c2dfd79" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/wp-cli/cron-command/zipball/2108295a2f30de77d3ee70b1a60d1b542c2dfd79", + "reference": "2108295a2f30de77d3ee70b1a60d1b542c2dfd79", + "shasum": "" + }, + "require": { + "wp-cli/wp-cli": "^2.5" + }, + "require-dev": { + "wp-cli/entity-command": "^1.3 || ^2", + "wp-cli/eval-command": "^2.0", + "wp-cli/server-command": "^2.0", + "wp-cli/wp-cli-tests": "^4" + }, + "type": "wp-cli-package", + "extra": { + "branch-alias": { + "dev-main": "2.x-dev" + }, + "bundled": true, + "commands": [ + "cron", + "cron test", + "cron event", + "cron event delete", + "cron event list", + "cron event run", + "cron event schedule", + "cron schedule", + "cron schedule list", + "cron event unschedule" + ] + }, + "autoload": { + "files": [ + "cron-command.php" + ], + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Daniel Bachhuber", + "email": "daniel@runcommand.io", + "homepage": "https://runcommand.io" + } + ], + "description": "Tests, runs, and deletes WP-Cron events; manages WP-Cron schedules.", + "homepage": "https://github.com/wp-cli/cron-command", + "support": { + "issues": "https://github.com/wp-cli/cron-command/issues", + "source": "https://github.com/wp-cli/cron-command/tree/v2.3.0" + }, + "time": "2024-02-15T10:23:39+00:00" + }, + { + "name": "wp-cli/db-command", + "version": "v2.1.1", + "source": { + "type": "git", + "url": "https://github.com/wp-cli/db-command.git", + "reference": "60ee5535e4b39e2d930894b7f435a2e488171c27" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/wp-cli/db-command/zipball/60ee5535e4b39e2d930894b7f435a2e488171c27", + "reference": "60ee5535e4b39e2d930894b7f435a2e488171c27", + "shasum": "" + }, + "require": { + "wp-cli/wp-cli": "^2.5" + }, + "require-dev": { + "wp-cli/entity-command": "^1.3 || ^2", + "wp-cli/wp-cli-tests": "^4" + }, + "type": "wp-cli-package", + "extra": { + "branch-alias": { + "dev-main": "2.x-dev" + }, + "bundled": true, + "commands": [ + "db", + "db clean", + "db create", + "db drop", + "db reset", + "db check", + "db optimize", + "db prefix", + "db repair", + "db cli", + "db query", + "db export", + "db import", + "db search", + "db tables", + "db size", + "db columns" + ] + }, + "autoload": { + "files": [ + "db-command.php" + ], + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Daniel Bachhuber", + "email": "daniel@runcommand.io", + "homepage": "https://runcommand.io" + } + ], + "description": "Performs basic database operations using credentials stored in wp-config.php.", + "homepage": "https://github.com/wp-cli/db-command", + "support": { + "issues": "https://github.com/wp-cli/db-command/issues", + "source": "https://github.com/wp-cli/db-command/tree/v2.1.1" + }, + "time": "2024-07-10T17:31:56+00:00" + }, + { + "name": "wp-cli/embed-command", + "version": "v2.0.16", + "source": { + "type": "git", + "url": "https://github.com/wp-cli/embed-command.git", + "reference": "edfa448396484770a419ac7a17b0ec194ae76654" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/wp-cli/embed-command/zipball/edfa448396484770a419ac7a17b0ec194ae76654", + "reference": "edfa448396484770a419ac7a17b0ec194ae76654", + "shasum": "" + }, + "require": { + "wp-cli/wp-cli": "^2.5" + }, + "require-dev": { + "wp-cli/entity-command": "^1.3 || ^2", + "wp-cli/wp-cli-tests": "^4" + }, + "type": "wp-cli-package", + "extra": { + "branch-alias": { + "dev-main": "2.x-dev" + }, + "bundled": true, + "commands": [ + "embed", + "embed fetch", + "embed provider", + "embed provider list", + "embed provider match", + "embed handler", + "embed handler list", + "embed cache", + "embed cache clear", + "embed cache find", + "embed cache trigger" + ] + }, + "autoload": { + "files": [ + "embed-command.php" + ], + "psr-4": { + "WP_CLI\\Embeds\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Pascal Birchler", + "homepage": "https://pascalbirchler.com/" + } + ], + "description": "Inspects oEmbed providers, clears embed cache, and more.", + "homepage": "https://github.com/wp-cli/embed-command", + "support": { + "issues": "https://github.com/wp-cli/embed-command/issues", + "source": "https://github.com/wp-cli/embed-command/tree/v2.0.16" + }, + "time": "2024-04-04T11:57:03+00:00" + }, + { + "name": "wp-cli/entity-command", + "version": "v2.8.1", + "source": { + "type": "git", + "url": "https://github.com/wp-cli/entity-command.git", + "reference": "c270cc9a2367cb8f5845f26a6b5e203397c91392" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/wp-cli/entity-command/zipball/c270cc9a2367cb8f5845f26a6b5e203397c91392", + "reference": "c270cc9a2367cb8f5845f26a6b5e203397c91392", + "shasum": "" + }, + "require": { + "wp-cli/wp-cli": "^2.11" + }, + "require-dev": { + "wp-cli/cache-command": "^1 || ^2", + "wp-cli/db-command": "^1.3 || ^2", + "wp-cli/extension-command": "^1.2 || ^2", + "wp-cli/media-command": "^1.1 || ^2", + "wp-cli/super-admin-command": "^1 || ^2", + "wp-cli/wp-cli-tests": "^4" + }, + "type": "wp-cli-package", + "extra": { + "branch-alias": { + "dev-main": "2.x-dev" + }, + "bundled": true, + "commands": [ + "comment", + "comment approve", + "comment count", + "comment create", + "comment delete", + "comment exists", + "comment generate", + "comment get", + "comment list", + "comment meta", + "comment meta add", + "comment meta delete", + "comment meta get", + "comment meta list", + "comment meta patch", + "comment meta pluck", + "comment meta update", + "comment recount", + "comment spam", + "comment status", + "comment trash", + "comment unapprove", + "comment unspam", + "comment untrash", + "comment update", + "menu", + "menu create", + "menu delete", + "menu item", + "menu item add-custom", + "menu item add-post", + "menu item add-term", + "menu item delete", + "menu item list", + "menu item update", + "menu list", + "menu location", + "menu location assign", + "menu location list", + "menu location remove", + "network meta", + "network meta add", + "network meta delete", + "network meta get", + "network meta list", + "network meta patch", + "network meta pluck", + "network meta update", + "option", + "option add", + "option delete", + "option get", + "option list", + "option patch", + "option pluck", + "option update", + "option set-autoload", + "option get-autoload", + "post", + "post create", + "post delete", + "post edit", + "post exists", + "post generate", + "post get", + "post list", + "post meta", + "post meta add", + "post meta clean-duplicates", + "post meta delete", + "post meta get", + "post meta list", + "post meta patch", + "post meta pluck", + "post meta update", + "post term", + "post term add", + "post term list", + "post term remove", + "post term set", + "post update", + "post url-to-id", + "post-type", + "post-type get", + "post-type list", + "site", + "site activate", + "site archive", + "site create", + "site generate", + "site deactivate", + "site delete", + "site empty", + "site list", + "site mature", + "site meta", + "site meta add", + "site meta delete", + "site meta get", + "site meta list", + "site meta patch", + "site meta pluck", + "site meta update", + "site option", + "site private", + "site public", + "site spam", + "site unarchive", + "site unmature", + "site unspam", + "taxonomy", + "taxonomy get", + "taxonomy list", + "term", + "term create", + "term delete", + "term generate", + "term get", + "term list", + "term meta", + "term meta add", + "term meta delete", + "term meta get", + "term meta list", + "term meta patch", + "term meta pluck", + "term meta update", + "term recount", + "term update", + "user", + "user add-cap", + "user add-role", + "user application-password", + "user application-password create", + "user application-password delete", + "user application-password exists", + "user application-password get", + "user application-password list", + "user application-password record-usage", + "user application-password update", + "user create", + "user delete", + "user exists", + "user generate", + "user get", + "user import-csv", + "user list", + "user list-caps", + "user meta", + "user meta add", + "user meta delete", + "user meta get", + "user meta list", + "user meta patch", + "user meta pluck", + "user meta update", + "user remove-cap", + "user remove-role", + "user reset-password", + "user session", + "user session destroy", + "user session list", + "user set-role", + "user signup", + "user signup activate", + "user signup delete", + "user signup get", + "user signup list", + "user spam", + "user term", + "user term add", + "user term list", + "user term remove", + "user term set", + "user unspam", + "user update" + ] + }, + "autoload": { + "files": [ + "entity-command.php" + ], + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Daniel Bachhuber", + "email": "daniel@runcommand.io", + "homepage": "https://runcommand.io" + } + ], + "description": "Manage WordPress comments, menus, options, posts, sites, terms, and users.", + "homepage": "https://github.com/wp-cli/entity-command", + "support": { + "issues": "https://github.com/wp-cli/entity-command/issues", + "source": "https://github.com/wp-cli/entity-command/tree/v2.8.1" + }, + "time": "2024-07-29T13:52:21+00:00" + }, + { + "name": "wp-cli/eval-command", + "version": "v2.2.4", + "source": { + "type": "git", + "url": "https://github.com/wp-cli/eval-command.git", + "reference": "5a9c605ae52d118f582693209d2f1c5c4f214b76" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/wp-cli/eval-command/zipball/5a9c605ae52d118f582693209d2f1c5c4f214b76", + "reference": "5a9c605ae52d118f582693209d2f1c5c4f214b76", + "shasum": "" + }, + "require": { + "wp-cli/wp-cli": "^2.5" + }, + "require-dev": { + "wp-cli/wp-cli-tests": "^4" + }, + "type": "wp-cli-package", + "extra": { + "branch-alias": { + "dev-main": "2.x-dev" + }, + "bundled": true, + "commands": [ + "eval", + "eval-file" + ] + }, + "autoload": { + "files": [ + "eval-command.php" + ], + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Daniel Bachhuber", + "email": "daniel@runcommand.io", + "homepage": "https://runcommand.io" + } + ], + "description": "Executes arbitrary PHP code or files.", + "homepage": "https://github.com/wp-cli/eval-command", + "support": { + "issues": "https://github.com/wp-cli/eval-command/issues", + "source": "https://github.com/wp-cli/eval-command/tree/v2.2.4" + }, + "time": "2023-08-30T14:51:36+00:00" + }, + { + "name": "wp-cli/export-command", + "version": "v2.1.12", + "source": { + "type": "git", + "url": "https://github.com/wp-cli/export-command.git", + "reference": "31e3d714ac6d6f0af613c34b33dbc02b85dc2e68" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/wp-cli/export-command/zipball/31e3d714ac6d6f0af613c34b33dbc02b85dc2e68", + "reference": "31e3d714ac6d6f0af613c34b33dbc02b85dc2e68", + "shasum": "" + }, + "require": { + "nb/oxymel": "~0.1.0", + "wp-cli/wp-cli": "^2.5" + }, + "require-dev": { + "wp-cli/db-command": "^1.3 || ^2", + "wp-cli/entity-command": "^1.3 || ^2", + "wp-cli/extension-command": "^1.2 || ^2", + "wp-cli/import-command": "^1 || ^2", + "wp-cli/media-command": "^1 || ^2", + "wp-cli/wp-cli-tests": "^4" + }, + "type": "wp-cli-package", + "extra": { + "branch-alias": { + "dev-main": "2.x-dev" + }, + "bundled": true, + "commands": [ + "export" + ] + }, + "autoload": { + "files": [ + "export-command.php" + ], + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Daniel Bachhuber", + "email": "daniel@runcommand.io", + "homepage": "https://runcommand.io" + } + ], + "description": "Exports WordPress content to a WXR file.", + "homepage": "https://github.com/wp-cli/export-command", + "support": { + "issues": "https://github.com/wp-cli/export-command/issues", + "source": "https://github.com/wp-cli/export-command/tree/v2.1.12" + }, + "time": "2023-09-18T21:41:00+00:00" + }, + { + "name": "wp-cli/extension-command", + "version": "v2.1.22", + "source": { + "type": "git", + "url": "https://github.com/wp-cli/extension-command.git", + "reference": "7baa058ae33e78a8e19f6a189203ed08e03a21be" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/wp-cli/extension-command/zipball/7baa058ae33e78a8e19f6a189203ed08e03a21be", + "reference": "7baa058ae33e78a8e19f6a189203ed08e03a21be", + "shasum": "" + }, + "require": { + "composer/semver": "^1.4 || ^2 || ^3", + "wp-cli/wp-cli": "^2.10" + }, + "require-dev": { + "wp-cli/cache-command": "^2.0", + "wp-cli/entity-command": "^1.3 || ^2", + "wp-cli/language-command": "^2.0", + "wp-cli/scaffold-command": "^1.2 || ^2", + "wp-cli/wp-cli-tests": "^4" + }, + "type": "wp-cli-package", + "extra": { + "branch-alias": { + "dev-main": "2.x-dev" + }, + "bundled": true, + "commands": [ + "plugin", + "plugin activate", + "plugin deactivate", + "plugin delete", + "plugin get", + "plugin install", + "plugin is-installed", + "plugin list", + "plugin path", + "plugin search", + "plugin status", + "plugin toggle", + "plugin uninstall", + "plugin update", + "theme", + "theme activate", + "theme delete", + "theme disable", + "theme enable", + "theme get", + "theme install", + "theme is-installed", + "theme list", + "theme mod", + "theme mod get", + "theme mod set", + "theme mod remove", + "theme path", + "theme search", + "theme status", + "theme update", + "theme mod list" + ] + }, + "autoload": { + "files": [ + "extension-command.php" + ], + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Daniel Bachhuber", + "email": "daniel@runcommand.io", + "homepage": "https://runcommand.io" + }, + { + "name": "Alain Schlesser", + "email": "alain.schlesser@gmail.com", + "homepage": "https://www.alainschlesser.com" + } + ], + "description": "Manages plugins and themes, including installs, activations, and updates.", + "homepage": "https://github.com/wp-cli/extension-command", + "support": { + "issues": "https://github.com/wp-cli/extension-command/issues", + "source": "https://github.com/wp-cli/extension-command/tree/v2.1.22" + }, + "time": "2024-06-04T12:24:31+00:00" + }, + { + "name": "wp-cli/i18n-command", + "version": "v2.6.2", + "source": { + "type": "git", + "url": "https://github.com/wp-cli/i18n-command.git", + "reference": "53518a11f314119e320597c7a8274f11b1295bdc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/wp-cli/i18n-command/zipball/53518a11f314119e320597c7a8274f11b1295bdc", + "reference": "53518a11f314119e320597c7a8274f11b1295bdc", + "shasum": "" + }, + "require": { + "eftec/bladeone": "3.52", + "gettext/gettext": "^4.8", + "mck89/peast": "^1.13.11", + "wp-cli/wp-cli": "^2.5" + }, + "require-dev": { + "wp-cli/scaffold-command": "^1.2 || ^2", + "wp-cli/wp-cli-tests": "^4" + }, + "suggest": { + "ext-json": "Used for reading and generating JSON translation files", + "ext-mbstring": "Used for calculating include/exclude matches in code extraction" + }, + "type": "wp-cli-package", + "extra": { + "branch-alias": { + "dev-main": "2.x-dev" + }, + "bundled": true, + "commands": [ + "i18n", + "i18n make-pot", + "i18n make-json", + "i18n make-mo", + "i18n make-php", + "i18n update-po" + ] + }, + "autoload": { + "files": [ + "i18n-command.php" + ], + "psr-4": { + "WP_CLI\\I18n\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Pascal Birchler", + "homepage": "https://pascalbirchler.com/" + } + ], + "description": "Provides internationalization tools for WordPress projects.", + "homepage": "https://github.com/wp-cli/i18n-command", + "support": { + "issues": "https://github.com/wp-cli/i18n-command/issues", + "source": "https://github.com/wp-cli/i18n-command/tree/v2.6.2" + }, + "time": "2024-07-03T12:50:00+00:00" + }, + { + "name": "wp-cli/import-command", + "version": "v2.0.12", + "source": { + "type": "git", + "url": "https://github.com/wp-cli/import-command.git", + "reference": "7aafa54bf7c122dfbd777b5e5fbb5907af38e504" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/wp-cli/import-command/zipball/7aafa54bf7c122dfbd777b5e5fbb5907af38e504", + "reference": "7aafa54bf7c122dfbd777b5e5fbb5907af38e504", + "shasum": "" + }, + "require": { + "wp-cli/wp-cli": "^2.5" + }, + "require-dev": { + "wp-cli/entity-command": "^1.3 || ^2", + "wp-cli/export-command": "^1 || ^2", + "wp-cli/extension-command": "^1.2 || ^2", + "wp-cli/wp-cli-tests": "^4" + }, + "type": "wp-cli-package", + "extra": { + "branch-alias": { + "dev-main": "2.x-dev" + }, + "bundled": true, + "commands": [ + "import" + ] + }, + "autoload": { + "files": [ + "import-command.php" + ], + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Daniel Bachhuber", + "email": "daniel@runcommand.io", + "homepage": "https://runcommand.io" + } + ], + "description": "Imports content from a given WXR file.", + "homepage": "https://github.com/wp-cli/import-command", + "support": { + "issues": "https://github.com/wp-cli/import-command/issues", + "source": "https://github.com/wp-cli/import-command/tree/v2.0.12" + }, + "time": "2023-08-30T15:53:58+00:00" + }, + { + "name": "wp-cli/language-command", + "version": "v2.0.21", + "source": { + "type": "git", + "url": "https://github.com/wp-cli/language-command.git", + "reference": "a9b5ae5976ebb48ee5465cf2f8d9afc863bc4e1c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/wp-cli/language-command/zipball/a9b5ae5976ebb48ee5465cf2f8d9afc863bc4e1c", + "reference": "a9b5ae5976ebb48ee5465cf2f8d9afc863bc4e1c", + "shasum": "" + }, + "require": { + "wp-cli/wp-cli": "^2.5" + }, + "require-dev": { + "wp-cli/db-command": "^1.3 || ^2", + "wp-cli/entity-command": "^1.3 || ^2", + "wp-cli/extension-command": "^1.2 || ^2", + "wp-cli/wp-cli-tests": "^4" + }, + "type": "wp-cli-package", + "extra": { + "branch-alias": { + "dev-main": "2.x-dev" + }, + "bundled": true, + "commands": [ + "language", + "language core", + "language core activate", + "language core is-installed", + "language core install", + "language core list", + "language core uninstall", + "language core update", + "language plugin", + "language plugin is-installed", + "language plugin install", + "language plugin list", + "language plugin uninstall", + "language plugin update", + "language theme", + "language theme is-installed", + "language theme install", + "language theme list", + "language theme uninstall", + "language theme update" + ] + }, + "autoload": { + "files": [ + "language-command.php" + ], + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Daniel Bachhuber", + "email": "daniel@runcommand.io", + "homepage": "https://runcommand.io" + } + ], + "description": "Installs, activates, and manages language packs.", + "homepage": "https://github.com/wp-cli/language-command", + "support": { + "issues": "https://github.com/wp-cli/language-command/issues", + "source": "https://github.com/wp-cli/language-command/tree/v2.0.21" + }, + "time": "2024-06-21T10:12:40+00:00" + }, + { + "name": "wp-cli/maintenance-mode-command", + "version": "v2.1.1", + "source": { + "type": "git", + "url": "https://github.com/wp-cli/maintenance-mode-command.git", + "reference": "a329a536eb96890654b913b5499b300fcc3f8eab" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/wp-cli/maintenance-mode-command/zipball/a329a536eb96890654b913b5499b300fcc3f8eab", + "reference": "a329a536eb96890654b913b5499b300fcc3f8eab", + "shasum": "" + }, + "require": { + "wp-cli/wp-cli": "^2.5" + }, + "require-dev": { + "wp-cli/wp-cli-tests": "^4" + }, + "type": "wp-cli-package", + "extra": { + "branch-alias": { + "dev-main": "2.x-dev" + }, + "bundled": true, + "commands": [ + "maintenance-mode", + "maintenance-mode activate", + "maintenance-mode deactivate", + "maintenance-mode status", + "maintenance-mode is-active" + ] + }, + "autoload": { + "files": [ + "maintenance-mode-command.php" + ], + "psr-4": { + "WP_CLI\\MaintenanceMode\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Thrijith Thankachan", + "email": "thrijith13@gmail.com", + "homepage": "https://thrijith.com" + } + ], + "description": "Activates, deactivates or checks the status of the maintenance mode of a site.", + "homepage": "https://github.com/wp-cli/maintenance-mode-command", + "support": { + "issues": "https://github.com/wp-cli/maintenance-mode-command/issues", + "source": "https://github.com/wp-cli/maintenance-mode-command/tree/v2.1.1" + }, + "time": "2024-04-04T11:28:11+00:00" + }, + { + "name": "wp-cli/media-command", + "version": "v2.2.0", + "source": { + "type": "git", + "url": "https://github.com/wp-cli/media-command.git", + "reference": "8eefc101713713871c1802e387b87348f6a048d5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/wp-cli/media-command/zipball/8eefc101713713871c1802e387b87348f6a048d5", + "reference": "8eefc101713713871c1802e387b87348f6a048d5", + "shasum": "" + }, + "require": { + "wp-cli/wp-cli": "^2.5" + }, + "require-dev": { + "wp-cli/entity-command": "^1.3 || ^2", + "wp-cli/extension-command": "^2.0", + "wp-cli/wp-cli-tests": "^4" + }, + "type": "wp-cli-package", + "extra": { + "branch-alias": { + "dev-main": "2.x-dev" + }, + "bundled": true, + "commands": [ + "media", + "media import", + "media regenerate", + "media image-size" + ] + }, + "autoload": { + "files": [ + "media-command.php" + ], + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Daniel Bachhuber", + "email": "daniel@runcommand.io", + "homepage": "https://runcommand.io" + } + ], + "description": "Imports files as attachments, regenerates thumbnails, or lists registered image sizes.", + "homepage": "https://github.com/wp-cli/media-command", + "support": { + "issues": "https://github.com/wp-cli/media-command/issues", + "source": "https://github.com/wp-cli/media-command/tree/v2.2.0" + }, + "time": "2024-06-06T09:32:12+00:00" + }, + { + "name": "wp-cli/mustangostang-spyc", + "version": "0.6.3", + "source": { + "type": "git", + "url": "https://github.com/wp-cli/spyc.git", + "reference": "6aa0b4da69ce9e9a2c8402dab8d43cf32c581cc7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/wp-cli/spyc/zipball/6aa0b4da69ce9e9a2c8402dab8d43cf32c581cc7", + "reference": "6aa0b4da69ce9e9a2c8402dab8d43cf32c581cc7", + "shasum": "" + }, + "require": { + "php": ">=5.3.1" + }, + "require-dev": { + "phpunit/phpunit": "4.3.*@dev" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "0.5.x-dev" + } + }, + "autoload": { + "files": [ + "includes/functions.php" + ], + "psr-4": { + "Mustangostang\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "mustangostang", + "email": "vlad.andersen@gmail.com" + } + ], + "description": "A simple YAML loader/dumper class for PHP (WP-CLI fork)", + "homepage": "https://github.com/mustangostang/spyc/", + "support": { + "source": "https://github.com/wp-cli/spyc/tree/autoload" + }, + "time": "2017-04-25T11:26:20+00:00" + }, + { + "name": "wp-cli/package-command", + "version": "v2.5.2", + "source": { + "type": "git", + "url": "https://github.com/wp-cli/package-command.git", + "reference": "3370dd88ddf906992bda3a28c8c387c8f4f33073" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/wp-cli/package-command/zipball/3370dd88ddf906992bda3a28c8c387c8f4f33073", + "reference": "3370dd88ddf906992bda3a28c8c387c8f4f33073", + "shasum": "" + }, + "require": { + "composer/composer": "^1.10.23 || ^2.2.17", + "ext-json": "*", + "wp-cli/wp-cli": "^2.8" + }, + "require-dev": { + "wp-cli/scaffold-command": "^1 || ^2", + "wp-cli/wp-cli-tests": "^4" + }, + "type": "wp-cli-package", + "extra": { + "branch-alias": { + "dev-main": "2.x-dev" + }, + "bundled": true, + "commands": [ + "package", + "package browse", + "package install", + "package list", + "package update", + "package uninstall" + ] + }, + "autoload": { + "files": [ + "package-command.php" + ], + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Daniel Bachhuber", + "email": "daniel@runcommand.io", + "homepage": "https://runcommand.io" + } + ], + "description": "Lists, installs, and removes WP-CLI packages.", + "homepage": "https://github.com/wp-cli/package-command", + "support": { + "issues": "https://github.com/wp-cli/package-command/issues", + "source": "https://github.com/wp-cli/package-command/tree/v2.5.2" + }, + "time": "2024-05-22T05:26:05+00:00" + }, + { + "name": "wp-cli/php-cli-tools", + "version": "v0.11.22", + "source": { + "type": "git", + "url": "https://github.com/wp-cli/php-cli-tools.git", + "reference": "a6bb94664ca36d0962f9c2ff25591c315a550c51" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/wp-cli/php-cli-tools/zipball/a6bb94664ca36d0962f9c2ff25591c315a550c51", + "reference": "a6bb94664ca36d0962f9c2ff25591c315a550c51", + "shasum": "" + }, + "require": { + "php": ">= 5.3.0" + }, + "require-dev": { + "roave/security-advisories": "dev-latest", + "wp-cli/wp-cli-tests": "^4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "0.11.x-dev" + } + }, + "autoload": { + "files": [ + "lib/cli/cli.php" + ], + "psr-0": { + "cli": "lib/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Daniel Bachhuber", + "email": "daniel@handbuilt.co", + "role": "Maintainer" + }, + { + "name": "James Logsdon", + "email": "jlogsdon@php.net", + "role": "Developer" + } + ], + "description": "Console utilities for PHP", + "homepage": "http://github.com/wp-cli/php-cli-tools", + "keywords": [ + "cli", + "console" + ], + "support": { + "issues": "https://github.com/wp-cli/php-cli-tools/issues", + "source": "https://github.com/wp-cli/php-cli-tools/tree/v0.11.22" + }, + "time": "2023-12-03T19:25:05+00:00" + }, + { + "name": "wp-cli/rewrite-command", + "version": "v2.0.13", + "source": { + "type": "git", + "url": "https://github.com/wp-cli/rewrite-command.git", + "reference": "293f9de9905b9d0199d72ff0d17e837228e47a10" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/wp-cli/rewrite-command/zipball/293f9de9905b9d0199d72ff0d17e837228e47a10", + "reference": "293f9de9905b9d0199d72ff0d17e837228e47a10", + "shasum": "" + }, + "require": { + "wp-cli/wp-cli": "^2.5" + }, + "require-dev": { + "wp-cli/entity-command": "^1.3 || ^2", + "wp-cli/wp-cli-tests": "^4" + }, + "type": "wp-cli-package", + "extra": { + "branch-alias": { + "dev-main": "2.x-dev" + }, + "bundled": true, + "commands": [ + "rewrite", + "rewrite flush", + "rewrite list", + "rewrite structure" + ] + }, + "autoload": { + "files": [ + "rewrite-command.php" + ], + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Daniel Bachhuber", + "email": "daniel@runcommand.io", + "homepage": "https://runcommand.io" + } + ], + "description": "Lists or flushes the site's rewrite rules, updates the permalink structure.", + "homepage": "https://github.com/wp-cli/rewrite-command", + "support": { + "issues": "https://github.com/wp-cli/rewrite-command/issues", + "source": "https://github.com/wp-cli/rewrite-command/tree/v2.0.13" + }, + "time": "2023-08-30T15:25:42+00:00" + }, + { + "name": "wp-cli/role-command", + "version": "v2.0.14", + "source": { + "type": "git", + "url": "https://github.com/wp-cli/role-command.git", + "reference": "7680178016a1811421897aeb9eeae9e81e6893ac" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/wp-cli/role-command/zipball/7680178016a1811421897aeb9eeae9e81e6893ac", + "reference": "7680178016a1811421897aeb9eeae9e81e6893ac", + "shasum": "" + }, + "require": { + "wp-cli/wp-cli": "^2.5" + }, + "require-dev": { + "wp-cli/wp-cli-tests": "^4" + }, + "type": "wp-cli-package", + "extra": { + "branch-alias": { + "dev-main": "2.x-dev" + }, + "bundled": true, + "commands": [ + "role", + "role create", + "role delete", + "role exists", + "role list", + "role reset", + "cap", + "cap add", + "cap list", + "cap remove" + ] + }, + "autoload": { + "files": [ + "role-command.php" + ], + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Daniel Bachhuber", + "email": "daniel@runcommand.io", + "homepage": "https://runcommand.io" + } + ], + "description": "Adds, removes, lists, and resets roles and capabilities.", + "homepage": "https://github.com/wp-cli/role-command", + "support": { + "issues": "https://github.com/wp-cli/role-command/issues", + "source": "https://github.com/wp-cli/role-command/tree/v2.0.14" + }, + "time": "2023-08-30T16:18:53+00:00" + }, + { + "name": "wp-cli/scaffold-command", + "version": "v2.3.0", + "source": { + "type": "git", + "url": "https://github.com/wp-cli/scaffold-command.git", + "reference": "7a7d145c260ead64fa93a59498d60def970d5214" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/wp-cli/scaffold-command/zipball/7a7d145c260ead64fa93a59498d60def970d5214", + "reference": "7a7d145c260ead64fa93a59498d60def970d5214", + "shasum": "" + }, + "require": { + "wp-cli/wp-cli": "^2.5" + }, + "require-dev": { + "wp-cli/extension-command": "^1.2 || ^2", + "wp-cli/wp-cli-tests": "^4" + }, + "type": "wp-cli-package", + "extra": { + "branch-alias": { + "dev-main": "2.x-dev" + }, + "bundled": true, + "commands": [ + "scaffold", + "scaffold underscores", + "scaffold block", + "scaffold child-theme", + "scaffold plugin", + "scaffold plugin-tests", + "scaffold post-type", + "scaffold taxonomy", + "scaffold theme-tests" + ] + }, + "autoload": { + "files": [ + "scaffold-command.php" + ], + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Daniel Bachhuber", + "email": "daniel@runcommand.io", + "homepage": "https://runcommand.io" + } + ], + "description": "Generates code for post types, taxonomies, blocks, plugins, child themes, etc.", + "homepage": "https://github.com/wp-cli/scaffold-command", + "support": { + "issues": "https://github.com/wp-cli/scaffold-command/issues", + "source": "https://github.com/wp-cli/scaffold-command/tree/v2.3.0" + }, + "time": "2024-04-26T21:05:48+00:00" + }, + { + "name": "wp-cli/search-replace-command", + "version": "v2.1.7", + "source": { + "type": "git", + "url": "https://github.com/wp-cli/search-replace-command.git", + "reference": "89e1653c9b888179a121a8354c75fc5e8ca7931d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/wp-cli/search-replace-command/zipball/89e1653c9b888179a121a8354c75fc5e8ca7931d", + "reference": "89e1653c9b888179a121a8354c75fc5e8ca7931d", + "shasum": "" + }, + "require": { + "wp-cli/wp-cli": "^2.5" + }, + "require-dev": { + "wp-cli/db-command": "^1.3 || ^2", + "wp-cli/entity-command": "^1.3 || ^2", + "wp-cli/extension-command": "^1.2 || ^2", + "wp-cli/wp-cli-tests": "^4" + }, + "type": "wp-cli-package", + "extra": { + "branch-alias": { + "dev-main": "2.x-dev" + }, + "bundled": true, + "commands": [ + "search-replace" + ] + }, + "autoload": { + "files": [ + "search-replace-command.php" + ], + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Daniel Bachhuber", + "email": "daniel@runcommand.io", + "homepage": "https://runcommand.io" + } + ], + "description": "Searches/replaces strings in the database.", + "homepage": "https://github.com/wp-cli/search-replace-command", + "support": { + "issues": "https://github.com/wp-cli/search-replace-command/issues", + "source": "https://github.com/wp-cli/search-replace-command/tree/v2.1.7" + }, + "time": "2024-06-28T09:30:38+00:00" + }, + { + "name": "wp-cli/server-command", + "version": "v2.0.13", + "source": { + "type": "git", + "url": "https://github.com/wp-cli/server-command.git", + "reference": "42babfa0fdd517cd8bdd66528b3c9027d6d14a29" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/wp-cli/server-command/zipball/42babfa0fdd517cd8bdd66528b3c9027d6d14a29", + "reference": "42babfa0fdd517cd8bdd66528b3c9027d6d14a29", + "shasum": "" + }, + "require": { + "wp-cli/wp-cli": "^2.5" + }, + "require-dev": { + "wp-cli/entity-command": "^2", + "wp-cli/wp-cli-tests": "^4" + }, + "type": "wp-cli-package", + "extra": { + "branch-alias": { + "dev-main": "2.x-dev" + }, + "bundled": true, + "commands": [ + "server" + ] + }, + "autoload": { + "files": [ + "server-command.php" + ], + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Daniel Bachhuber", + "email": "daniel@runcommand.io", + "homepage": "https://runcommand.io" + } + ], + "description": "Launches PHP's built-in web server for a specific WordPress installation.", + "homepage": "https://github.com/wp-cli/server-command", + "support": { + "issues": "https://github.com/wp-cli/server-command/issues", + "source": "https://github.com/wp-cli/server-command/tree/v2.0.13" + }, + "time": "2023-08-30T15:27:57+00:00" + }, + { + "name": "wp-cli/shell-command", + "version": "v2.0.14", + "source": { + "type": "git", + "url": "https://github.com/wp-cli/shell-command.git", + "reference": "f470d04a597e294ef29ad73dace9d4de98df7c42" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/wp-cli/shell-command/zipball/f470d04a597e294ef29ad73dace9d4de98df7c42", + "reference": "f470d04a597e294ef29ad73dace9d4de98df7c42", + "shasum": "" + }, + "require": { + "wp-cli/wp-cli": "^2.5" + }, + "require-dev": { + "wp-cli/wp-cli-tests": "^4" + }, + "type": "wp-cli-package", + "extra": { + "branch-alias": { + "dev-main": "2.x-dev" + }, + "bundled": true, + "commands": [ + "shell" + ] + }, + "autoload": { + "files": [ + "shell-command.php" + ], + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Daniel Bachhuber", + "email": "daniel@runcommand.io", + "homepage": "https://runcommand.io" + } + ], + "description": "Opens an interactive PHP console for running and testing PHP code.", + "homepage": "https://github.com/wp-cli/shell-command", + "support": { + "issues": "https://github.com/wp-cli/shell-command/issues", + "source": "https://github.com/wp-cli/shell-command/tree/v2.0.14" + }, + "time": "2023-08-30T15:58:08+00:00" + }, + { + "name": "wp-cli/super-admin-command", + "version": "v2.0.14", + "source": { + "type": "git", + "url": "https://github.com/wp-cli/super-admin-command.git", + "reference": "0fc8a6146d0450a8b522485e50886e976f5249b6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/wp-cli/super-admin-command/zipball/0fc8a6146d0450a8b522485e50886e976f5249b6", + "reference": "0fc8a6146d0450a8b522485e50886e976f5249b6", + "shasum": "" + }, + "require": { + "wp-cli/wp-cli": "^2.5" + }, + "require-dev": { + "wp-cli/entity-command": "^1.3 || ^2", + "wp-cli/wp-cli-tests": "^4" + }, + "type": "wp-cli-package", + "extra": { + "branch-alias": { + "dev-main": "2.x-dev" + }, + "bundled": true, + "commands": [ + "super-admin", + "super-admin add", + "super-admin list", + "super-admin remove" + ] + }, + "autoload": { + "files": [ + "super-admin-command.php" + ], + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Daniel Bachhuber", + "email": "daniel@runcommand.io", + "homepage": "https://runcommand.io" + } + ], + "description": "Lists, adds, or removes super admin users on a multisite installation.", + "homepage": "https://github.com/wp-cli/super-admin-command", + "support": { + "issues": "https://github.com/wp-cli/super-admin-command/issues", + "source": "https://github.com/wp-cli/super-admin-command/tree/v2.0.14" + }, + "time": "2024-02-26T12:17:45+00:00" + }, + { + "name": "wp-cli/widget-command", + "version": "v2.1.10", + "source": { + "type": "git", + "url": "https://github.com/wp-cli/widget-command.git", + "reference": "7062ed3fdfa17265320737f43efe5651d783f439" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/wp-cli/widget-command/zipball/7062ed3fdfa17265320737f43efe5651d783f439", + "reference": "7062ed3fdfa17265320737f43efe5651d783f439", + "shasum": "" + }, + "require": { + "wp-cli/wp-cli": "^2.5" + }, + "require-dev": { + "wp-cli/extension-command": "^1.2 || ^2", + "wp-cli/wp-cli-tests": "^4" + }, + "type": "wp-cli-package", + "extra": { + "branch-alias": { + "dev-main": "2.x-dev" + }, + "bundled": true, + "commands": [ + "widget", + "widget add", + "widget deactivate", + "widget delete", + "widget list", + "widget move", + "widget reset", + "widget update", + "sidebar", + "sidebar list" + ] + }, + "autoload": { + "files": [ + "widget-command.php" + ], + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Daniel Bachhuber", + "email": "daniel@runcommand.io", + "homepage": "https://runcommand.io" + } + ], + "description": "Adds, moves, and removes widgets; lists sidebars.", + "homepage": "https://github.com/wp-cli/widget-command", + "support": { + "issues": "https://github.com/wp-cli/widget-command/issues", + "source": "https://github.com/wp-cli/widget-command/tree/v2.1.10" + }, + "time": "2024-04-19T13:21:01+00:00" + }, + { + "name": "wp-cli/wp-cli", + "version": "v2.11.0", + "source": { + "type": "git", + "url": "https://github.com/wp-cli/wp-cli.git", + "reference": "53f0df112901fcf95099d0f501912a209429b6a9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/wp-cli/wp-cli/zipball/53f0df112901fcf95099d0f501912a209429b6a9", + "reference": "53f0df112901fcf95099d0f501912a209429b6a9", + "shasum": "" + }, + "require": { + "ext-curl": "*", + "mustache/mustache": "^2.14.1", + "php": "^5.6 || ^7.0 || ^8.0", + "symfony/finder": ">2.7", + "wp-cli/mustangostang-spyc": "^0.6.3", + "wp-cli/php-cli-tools": "~0.11.2" + }, + "require-dev": { + "roave/security-advisories": "dev-latest", + "wp-cli/db-command": "^1.3 || ^2", + "wp-cli/entity-command": "^1.2 || ^2", + "wp-cli/extension-command": "^1.1 || ^2", + "wp-cli/package-command": "^1 || ^2", + "wp-cli/wp-cli-tests": "^4.0.1" + }, + "suggest": { + "ext-readline": "Include for a better --prompt implementation", + "ext-zip": "Needed to support extraction of ZIP archives when doing downloads or updates" + }, + "bin": [ + "bin/wp", + "bin/wp.bat" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.11.x-dev" + } + }, + "autoload": { + "psr-0": { + "WP_CLI\\": "php/" + }, + "classmap": [ + "php/class-wp-cli.php", + "php/class-wp-cli-command.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "WP-CLI framework", + "homepage": "https://wp-cli.org", + "keywords": [ + "cli", + "wordpress" + ], + "support": { + "docs": "https://make.wordpress.org/cli/handbook/", + "issues": "https://github.com/wp-cli/wp-cli/issues", + "source": "https://github.com/wp-cli/wp-cli" + }, + "time": "2024-08-08T03:04:55+00:00" + }, + { + "name": "wp-cli/wp-cli-bundle", + "version": "v2.11.0", + "source": { + "type": "git", + "url": "https://github.com/wp-cli/wp-cli-bundle.git", + "reference": "f77a284ccf92023981046edf63111ab427106d05" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/wp-cli/wp-cli-bundle/zipball/f77a284ccf92023981046edf63111ab427106d05", + "reference": "f77a284ccf92023981046edf63111ab427106d05", + "shasum": "" + }, + "require": { + "php": ">=5.6", + "wp-cli/cache-command": "^2", + "wp-cli/checksum-command": "^2.1", + "wp-cli/config-command": "^2.1", + "wp-cli/core-command": "^2.1", + "wp-cli/cron-command": "^2", + "wp-cli/db-command": "^2", + "wp-cli/embed-command": "^2", + "wp-cli/entity-command": "^2", + "wp-cli/eval-command": "^2", + "wp-cli/export-command": "^2", + "wp-cli/extension-command": "^2.1", + "wp-cli/i18n-command": "^2", + "wp-cli/import-command": "^2", + "wp-cli/language-command": "^2", + "wp-cli/maintenance-mode-command": "^2", + "wp-cli/media-command": "^2", + "wp-cli/package-command": "^2.1", + "wp-cli/rewrite-command": "^2", + "wp-cli/role-command": "^2", + "wp-cli/scaffold-command": "^2", + "wp-cli/search-replace-command": "^2", + "wp-cli/server-command": "^2", + "wp-cli/shell-command": "^2", + "wp-cli/super-admin-command": "^2", + "wp-cli/widget-command": "^2", + "wp-cli/wp-cli": "^2.11.0" + }, + "require-dev": { + "roave/security-advisories": "dev-latest", + "wp-cli/wp-cli-tests": "^4" + }, + "suggest": { + "psy/psysh": "Enhanced `wp shell` functionality" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.11.x-dev" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "WP-CLI bundle package with default commands.", + "homepage": "https://wp-cli.org", + "keywords": [ + "cli", + "wordpress" + ], + "support": { + "docs": "https://make.wordpress.org/cli/handbook/", + "issues": "https://github.com/wp-cli/wp-cli-bundle/issues", + "source": "https://github.com/wp-cli/wp-cli-bundle" + }, + "time": "2024-08-08T03:29:34+00:00" + }, + { + "name": "wp-cli/wp-config-transformer", + "version": "v1.3.6", + "source": { + "type": "git", + "url": "https://github.com/wp-cli/wp-config-transformer.git", + "reference": "88f516f44dce1660fc4b780da513e3ca12d7d24f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/wp-cli/wp-config-transformer/zipball/88f516f44dce1660fc4b780da513e3ca12d7d24f", + "reference": "88f516f44dce1660fc4b780da513e3ca12d7d24f", + "shasum": "" + }, + "require": { + "php": "^5.6 || ^7.0 || ^8.0" + }, + "require-dev": { + "wp-cli/wp-cli-tests": "^4.0" + }, + "type": "library", + "autoload": { + "files": [ + "src/WPConfigTransformer.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Frankie Jarrett", + "email": "fjarrett@gmail.com" + } + ], + "description": "Programmatically edit a wp-config.php file.", + "homepage": "https://github.com/wp-cli/wp-config-transformer", + "support": { + "issues": "https://github.com/wp-cli/wp-config-transformer/issues", + "source": "https://github.com/wp-cli/wp-config-transformer/tree/v1.3.6" + }, + "time": "2024-05-23T06:32:14+00:00" + } + ], + "packages-dev": [ + { + "name": "dealerdirect/phpcodesniffer-composer-installer", + "version": "v0.7.2", + "source": { + "type": "git", + "url": "https://github.com/Dealerdirect/phpcodesniffer-composer-installer.git", + "reference": "1c968e542d8843d7cd71de3c5c9c3ff3ad71a1db" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Dealerdirect/phpcodesniffer-composer-installer/zipball/1c968e542d8843d7cd71de3c5c9c3ff3ad71a1db", + "reference": "1c968e542d8843d7cd71de3c5c9c3ff3ad71a1db", + "shasum": "" + }, + "require": { + "composer-plugin-api": "^1.0 || ^2.0", + "php": ">=5.3", + "squizlabs/php_codesniffer": "^2.0 || ^3.1.0 || ^4.0" + }, + "require-dev": { + "composer/composer": "*", + "php-parallel-lint/php-parallel-lint": "^1.3.1", + "phpcompatibility/php-compatibility": "^9.0" + }, + "type": "composer-plugin", + "extra": { + "class": "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin" + }, + "autoload": { + "psr-4": { + "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Franck Nijhof", + "email": "franck.nijhof@dealerdirect.com", + "homepage": "http://www.frenck.nl", + "role": "Developer / IT Manager" + }, + { + "name": "Contributors", + "homepage": "https://github.com/Dealerdirect/phpcodesniffer-composer-installer/graphs/contributors" + } + ], + "description": "PHP_CodeSniffer Standards Composer Installer Plugin", + "homepage": "http://www.dealerdirect.com", + "keywords": [ + "PHPCodeSniffer", + "PHP_CodeSniffer", + "code quality", + "codesniffer", + "composer", + "installer", + "phpcbf", + "phpcs", + "plugin", + "qa", + "quality", + "standard", + "standards", + "style guide", + "stylecheck", + "tests" + ], + "support": { + "issues": "https://github.com/dealerdirect/phpcodesniffer-composer-installer/issues", + "source": "https://github.com/dealerdirect/phpcodesniffer-composer-installer" + }, + "time": "2022-02-04T12:51:07+00:00" + }, + { + "name": "nikic/php-parser", + "version": "v4.19.1", + "source": { + "type": "git", + "url": "https://github.com/nikic/PHP-Parser.git", + "reference": "4e1b88d21c69391150ace211e9eaf05810858d0b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/4e1b88d21c69391150ace211e9eaf05810858d0b", + "reference": "4e1b88d21c69391150ace211e9eaf05810858d0b", + "shasum": "" + }, + "require": { + "ext-tokenizer": "*", + "php": ">=7.1" + }, + "require-dev": { + "ircmaxell/php-yacc": "^0.0.7", + "phpunit/phpunit": "^6.5 || ^7.0 || ^8.0 || ^9.0" + }, + "bin": [ + "bin/php-parse" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.9-dev" + } + }, + "autoload": { + "psr-4": { + "PhpParser\\": "lib/PhpParser" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Nikita Popov" + } + ], + "description": "A PHP parser written in PHP", + "keywords": [ + "parser", + "php" + ], + "support": { + "issues": "https://github.com/nikic/PHP-Parser/issues", + "source": "https://github.com/nikic/PHP-Parser/tree/v4.19.1" + }, + "time": "2024-03-17T08:10:35+00:00" + }, + { + "name": "php-stubs/generator", + "version": "v0.8.4", + "source": { + "type": "git", + "url": "https://github.com/php-stubs/generator.git", + "reference": "bf758105124218225d59e698913ac852ee7d79c7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-stubs/generator/zipball/bf758105124218225d59e698913ac852ee7d79c7", + "reference": "bf758105124218225d59e698913ac852ee7d79c7", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^4.10", + "php": "^7.3 || ^8.0", + "symfony/console": "^5.1 || ^6.0", + "symfony/filesystem": "^5.0 || ^6.0", + "symfony/finder": "^5.0 || ^6.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^2.16 || ^3.12", + "phpunit/phpunit": "^9.4", + "vimeo/psalm": "^4.1" + }, + "bin": [ + "bin/generate-stubs" + ], + "type": "library", + "autoload": { + "psr-4": { + "StubsGenerator\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Giaco Corsiglia", + "email": "GiacoCorsiglia@gmail.com" + } + ], + "description": "Generate stubs from any PHP code for IDE completion and static analysis.", + "homepage": "https://github.com/php-stubs/generator", + "keywords": [ + "ide", + "static analysis" + ], + "support": { + "issues": "https://github.com/php-stubs/generator/issues", + "source": "https://github.com/php-stubs/generator/tree/v0.8.4" + }, + "time": "2023-07-24T16:33:51+00:00" + }, + { + "name": "php-stubs/wordpress-stubs", + "version": "v6.6.0", + "source": { + "type": "git", + "url": "https://github.com/php-stubs/wordpress-stubs.git", + "reference": "86e8753e89d59849276dcdd91b9a7dd78bb4abe2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-stubs/wordpress-stubs/zipball/86e8753e89d59849276dcdd91b9a7dd78bb4abe2", + "reference": "86e8753e89d59849276dcdd91b9a7dd78bb4abe2", + "shasum": "" }, "require-dev": { - "composer/composer": "*", - "phpcompatibility/php-compatibility": "^9.0", - "sensiolabs/security-checker": "^4.1.0" - }, - "type": "composer-plugin", - "extra": { - "class": "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin" + "dealerdirect/phpcodesniffer-composer-installer": "^1.0", + "nikic/php-parser": "^4.13", + "php": "^7.4 || ^8.0", + "php-stubs/generator": "^0.8.3", + "phpdocumentor/reflection-docblock": "^5.4.1", + "phpstan/phpstan": "^1.10.49", + "phpunit/phpunit": "^9.5", + "szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset": "^1.0", + "wp-coding-standards/wpcs": "3.1.0 as 2.3.0" }, - "autoload": { - "psr-4": { - "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\": "src/" - } + "suggest": { + "paragonie/sodium_compat": "Pure PHP implementation of libsodium", + "symfony/polyfill-php80": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", + "szepeviktor/phpstan-wordpress": "WordPress extensions for PHPStan" }, + "type": "library", "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], - "authors": [ - { - "name": "Franck Nijhof", - "email": "franck.nijhof@dealerdirect.com", - "homepage": "http://www.frenck.nl", - "role": "Developer / IT Manager" - } - ], - "description": "PHP_CodeSniffer Standards Composer Installer Plugin", - "homepage": "http://www.dealerdirect.com", + "description": "WordPress function and class declaration stubs for static analysis.", + "homepage": "https://github.com/php-stubs/wordpress-stubs", "keywords": [ - "PHPCodeSniffer", - "PHP_CodeSniffer", - "code quality", - "codesniffer", - "composer", - "installer", - "phpcs", - "plugin", - "qa", - "quality", - "standard", - "standards", - "style guide", - "stylecheck", - "tests" + "PHPStan", + "static analysis", + "wordpress" ], "support": { - "issues": "https://github.com/dealerdirect/phpcodesniffer-composer-installer/issues", - "source": "https://github.com/dealerdirect/phpcodesniffer-composer-installer" + "issues": "https://github.com/php-stubs/wordpress-stubs/issues", + "source": "https://github.com/php-stubs/wordpress-stubs/tree/v6.6.0" }, - "time": "2020-12-07T18:04:37+00:00" + "time": "2024-07-17T08:50:38+00:00" }, { "name": "phpcompatibility/php-compatibility", @@ -334,28 +5117,28 @@ }, { "name": "phpcompatibility/phpcompatibility-paragonie", - "version": "1.3.1", + "version": "1.3.3", "source": { "type": "git", "url": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie.git", - "reference": "ddabec839cc003651f2ce695c938686d1086cf43" + "reference": "293975b465e0e709b571cbf0c957c6c0a7b9a2ac" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityParagonie/zipball/ddabec839cc003651f2ce695c938686d1086cf43", - "reference": "ddabec839cc003651f2ce695c938686d1086cf43", + "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityParagonie/zipball/293975b465e0e709b571cbf0c957c6c0a7b9a2ac", + "reference": "293975b465e0e709b571cbf0c957c6c0a7b9a2ac", "shasum": "" }, "require": { "phpcompatibility/php-compatibility": "^9.0" }, "require-dev": { - "dealerdirect/phpcodesniffer-composer-installer": "^0.7", + "dealerdirect/phpcodesniffer-composer-installer": "^1.0", "paragonie/random_compat": "dev-master", "paragonie/sodium_compat": "dev-master" }, "suggest": { - "dealerdirect/phpcodesniffer-composer-installer": "^0.7 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.", + "dealerdirect/phpcodesniffer-composer-installer": "^1.0 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.", "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues." }, "type": "phpcodesniffer-standard", @@ -380,26 +5163,42 @@ "paragonie", "phpcs", "polyfill", - "standards" + "standards", + "static analysis" ], "support": { "issues": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie/issues", + "security": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie/security/policy", "source": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie" }, - "time": "2021-02-15T10:24:51+00:00" + "funding": [ + { + "url": "https://github.com/PHPCompatibility", + "type": "github" + }, + { + "url": "https://github.com/jrfnl", + "type": "github" + }, + { + "url": "https://opencollective.com/php_codesniffer", + "type": "open_collective" + } + ], + "time": "2024-04-24T21:30:46+00:00" }, { "name": "phpcompatibility/phpcompatibility-wp", - "version": "2.1.1", + "version": "2.1.5", "source": { "type": "git", "url": "https://github.com/PHPCompatibility/PHPCompatibilityWP.git", - "reference": "b7dc0cd7a8f767ccac5e7637550ea1c50a67b09e" + "reference": "01c1ff2704a58e46f0cb1ca9d06aee07b3589082" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityWP/zipball/b7dc0cd7a8f767ccac5e7637550ea1c50a67b09e", - "reference": "b7dc0cd7a8f767ccac5e7637550ea1c50a67b09e", + "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityWP/zipball/01c1ff2704a58e46f0cb1ca9d06aee07b3589082", + "reference": "01c1ff2704a58e46f0cb1ca9d06aee07b3589082", "shasum": "" }, "require": { @@ -407,10 +5206,10 @@ "phpcompatibility/phpcompatibility-paragonie": "^1.0" }, "require-dev": { - "dealerdirect/phpcodesniffer-composer-installer": "^0.7" + "dealerdirect/phpcodesniffer-composer-installer": "^1.0" }, "suggest": { - "dealerdirect/phpcodesniffer-composer-installer": "^0.7 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.", + "dealerdirect/phpcodesniffer-composer-installer": "^1.0 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.", "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues." }, "type": "phpcodesniffer-standard", @@ -434,26 +5233,266 @@ "compatibility", "phpcs", "standards", + "static analysis", "wordpress" ], "support": { "issues": "https://github.com/PHPCompatibility/PHPCompatibilityWP/issues", + "security": "https://github.com/PHPCompatibility/PHPCompatibilityWP/security/policy", "source": "https://github.com/PHPCompatibility/PHPCompatibilityWP" }, - "time": "2021-02-15T12:58:46+00:00" + "funding": [ + { + "url": "https://github.com/PHPCompatibility", + "type": "github" + }, + { + "url": "https://github.com/jrfnl", + "type": "github" + }, + { + "url": "https://opencollective.com/php_codesniffer", + "type": "open_collective" + } + ], + "time": "2024-04-24T21:37:59+00:00" + }, + { + "name": "phpcsstandards/phpcsextra", + "version": "1.2.1", + "source": { + "type": "git", + "url": "https://github.com/PHPCSStandards/PHPCSExtra.git", + "reference": "11d387c6642b6e4acaf0bd9bf5203b8cca1ec489" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHPCSStandards/PHPCSExtra/zipball/11d387c6642b6e4acaf0bd9bf5203b8cca1ec489", + "reference": "11d387c6642b6e4acaf0bd9bf5203b8cca1ec489", + "shasum": "" + }, + "require": { + "php": ">=5.4", + "phpcsstandards/phpcsutils": "^1.0.9", + "squizlabs/php_codesniffer": "^3.8.0" + }, + "require-dev": { + "php-parallel-lint/php-console-highlighter": "^1.0", + "php-parallel-lint/php-parallel-lint": "^1.3.2", + "phpcsstandards/phpcsdevcs": "^1.1.6", + "phpcsstandards/phpcsdevtools": "^1.2.1", + "phpunit/phpunit": "^4.5 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0" + }, + "type": "phpcodesniffer-standard", + "extra": { + "branch-alias": { + "dev-stable": "1.x-dev", + "dev-develop": "1.x-dev" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-3.0-or-later" + ], + "authors": [ + { + "name": "Juliette Reinders Folmer", + "homepage": "https://github.com/jrfnl", + "role": "lead" + }, + { + "name": "Contributors", + "homepage": "https://github.com/PHPCSStandards/PHPCSExtra/graphs/contributors" + } + ], + "description": "A collection of sniffs and standards for use with PHP_CodeSniffer.", + "keywords": [ + "PHP_CodeSniffer", + "phpcbf", + "phpcodesniffer-standard", + "phpcs", + "standards", + "static analysis" + ], + "support": { + "issues": "https://github.com/PHPCSStandards/PHPCSExtra/issues", + "security": "https://github.com/PHPCSStandards/PHPCSExtra/security/policy", + "source": "https://github.com/PHPCSStandards/PHPCSExtra" + }, + "funding": [ + { + "url": "https://github.com/PHPCSStandards", + "type": "github" + }, + { + "url": "https://github.com/jrfnl", + "type": "github" + }, + { + "url": "https://opencollective.com/php_codesniffer", + "type": "open_collective" + } + ], + "time": "2023-12-08T16:49:07+00:00" + }, + { + "name": "phpcsstandards/phpcsutils", + "version": "1.0.12", + "source": { + "type": "git", + "url": "https://github.com/PHPCSStandards/PHPCSUtils.git", + "reference": "87b233b00daf83fb70f40c9a28692be017ea7c6c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHPCSStandards/PHPCSUtils/zipball/87b233b00daf83fb70f40c9a28692be017ea7c6c", + "reference": "87b233b00daf83fb70f40c9a28692be017ea7c6c", + "shasum": "" + }, + "require": { + "dealerdirect/phpcodesniffer-composer-installer": "^0.4.1 || ^0.5 || ^0.6.2 || ^0.7 || ^1.0", + "php": ">=5.4", + "squizlabs/php_codesniffer": "^3.10.0 || 4.0.x-dev@dev" + }, + "require-dev": { + "ext-filter": "*", + "php-parallel-lint/php-console-highlighter": "^1.0", + "php-parallel-lint/php-parallel-lint": "^1.3.2", + "phpcsstandards/phpcsdevcs": "^1.1.6", + "yoast/phpunit-polyfills": "^1.1.0 || ^2.0.0" + }, + "type": "phpcodesniffer-standard", + "extra": { + "branch-alias": { + "dev-stable": "1.x-dev", + "dev-develop": "1.x-dev" + } + }, + "autoload": { + "classmap": [ + "PHPCSUtils/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-3.0-or-later" + ], + "authors": [ + { + "name": "Juliette Reinders Folmer", + "homepage": "https://github.com/jrfnl", + "role": "lead" + }, + { + "name": "Contributors", + "homepage": "https://github.com/PHPCSStandards/PHPCSUtils/graphs/contributors" + } + ], + "description": "A suite of utility functions for use with PHP_CodeSniffer", + "homepage": "https://phpcsutils.com/", + "keywords": [ + "PHP_CodeSniffer", + "phpcbf", + "phpcodesniffer-standard", + "phpcs", + "phpcs3", + "standards", + "static analysis", + "tokens", + "utility" + ], + "support": { + "docs": "https://phpcsutils.com/", + "issues": "https://github.com/PHPCSStandards/PHPCSUtils/issues", + "security": "https://github.com/PHPCSStandards/PHPCSUtils/security/policy", + "source": "https://github.com/PHPCSStandards/PHPCSUtils" + }, + "funding": [ + { + "url": "https://github.com/PHPCSStandards", + "type": "github" + }, + { + "url": "https://github.com/jrfnl", + "type": "github" + }, + { + "url": "https://opencollective.com/php_codesniffer", + "type": "open_collective" + } + ], + "time": "2024-05-20T13:34:27+00:00" + }, + { + "name": "phpstan/phpstan", + "version": "1.11.11", + "source": { + "type": "git", + "url": "https://github.com/phpstan/phpstan.git", + "reference": "707c2aed5d8d0075666e673a5e71440c1d01a5a3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/707c2aed5d8d0075666e673a5e71440c1d01a5a3", + "reference": "707c2aed5d8d0075666e673a5e71440c1d01a5a3", + "shasum": "" + }, + "require": { + "php": "^7.2|^8.0" + }, + "conflict": { + "phpstan/phpstan-shim": "*" + }, + "bin": [ + "phpstan", + "phpstan.phar" + ], + "type": "library", + "autoload": { + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "PHPStan - PHP Static Analysis Tool", + "keywords": [ + "dev", + "static analysis" + ], + "support": { + "docs": "https://phpstan.org/user-guide/getting-started", + "forum": "https://github.com/phpstan/phpstan/discussions", + "issues": "https://github.com/phpstan/phpstan/issues", + "security": "https://github.com/phpstan/phpstan/security/policy", + "source": "https://github.com/phpstan/phpstan-src" + }, + "funding": [ + { + "url": "https://github.com/ondrejmirtes", + "type": "github" + }, + { + "url": "https://github.com/phpstan", + "type": "github" + } + ], + "time": "2024-08-19T14:37:29+00:00" }, { "name": "squizlabs/php_codesniffer", - "version": "3.6.0", + "version": "3.10.2", "source": { "type": "git", - "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", - "reference": "ffced0d2c8fa8e6cdc4d695a743271fab6c38625" + "url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git", + "reference": "86e5f5dd9a840c46810ebe5ff1885581c42a3017" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/ffced0d2c8fa8e6cdc4d695a743271fab6c38625", - "reference": "ffced0d2c8fa8e6cdc4d695a743271fab6c38625", + "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/86e5f5dd9a840c46810ebe5ff1885581c42a3017", + "reference": "86e5f5dd9a840c46810ebe5ff1885581c42a3017", "shasum": "" }, "require": { @@ -463,11 +5502,11 @@ "php": ">=5.4.0" }, "require-dev": { - "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0" + "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.3.4" }, "bin": [ - "bin/phpcs", - "bin/phpcbf" + "bin/phpcbf", + "bin/phpcs" ], "type": "library", "extra": { @@ -482,48 +5521,143 @@ "authors": [ { "name": "Greg Sherwood", - "role": "lead" + "role": "Former lead" + }, + { + "name": "Juliette Reinders Folmer", + "role": "Current lead" + }, + { + "name": "Contributors", + "homepage": "https://github.com/PHPCSStandards/PHP_CodeSniffer/graphs/contributors" } ], "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.", - "homepage": "https://github.com/squizlabs/PHP_CodeSniffer", + "homepage": "https://github.com/PHPCSStandards/PHP_CodeSniffer", "keywords": [ "phpcs", - "standards" + "standards", + "static analysis" + ], + "support": { + "issues": "https://github.com/PHPCSStandards/PHP_CodeSniffer/issues", + "security": "https://github.com/PHPCSStandards/PHP_CodeSniffer/security/policy", + "source": "https://github.com/PHPCSStandards/PHP_CodeSniffer", + "wiki": "https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki" + }, + "funding": [ + { + "url": "https://github.com/PHPCSStandards", + "type": "github" + }, + { + "url": "https://github.com/jrfnl", + "type": "github" + }, + { + "url": "https://opencollective.com/php_codesniffer", + "type": "open_collective" + } + ], + "time": "2024-07-21T23:26:44+00:00" + }, + { + "name": "szepeviktor/phpstan-wordpress", + "version": "v1.3.5", + "source": { + "type": "git", + "url": "https://github.com/szepeviktor/phpstan-wordpress.git", + "reference": "7f8cfe992faa96b6a33bbd75c7bace98864161e7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/szepeviktor/phpstan-wordpress/zipball/7f8cfe992faa96b6a33bbd75c7bace98864161e7", + "reference": "7f8cfe992faa96b6a33bbd75c7bace98864161e7", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0", + "php-stubs/wordpress-stubs": "^4.7 || ^5.0 || ^6.0", + "phpstan/phpstan": "^1.10.31", + "symfony/polyfill-php73": "^1.12.0" + }, + "require-dev": { + "composer/composer": "^2.1.14", + "dealerdirect/phpcodesniffer-composer-installer": "^1.0", + "php-parallel-lint/php-parallel-lint": "^1.1", + "phpstan/phpstan-strict-rules": "^1.2", + "phpunit/phpunit": "^8.0 || ^9.0", + "szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset": "^1.0", + "wp-coding-standards/wpcs": "3.1.0 as 2.3.0" + }, + "suggest": { + "swissspidy/phpstan-no-private": "Detect usage of internal core functions, classes and methods" + }, + "type": "phpstan-extension", + "extra": { + "phpstan": { + "includes": [ + "extension.neon" + ] + } + }, + "autoload": { + "psr-4": { + "SzepeViktor\\PHPStan\\WordPress\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "WordPress extensions for PHPStan", + "keywords": [ + "PHPStan", + "code analyse", + "code analysis", + "static analysis", + "wordpress" ], "support": { - "issues": "https://github.com/squizlabs/PHP_CodeSniffer/issues", - "source": "https://github.com/squizlabs/PHP_CodeSniffer", - "wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki" + "issues": "https://github.com/szepeviktor/phpstan-wordpress/issues", + "source": "https://github.com/szepeviktor/phpstan-wordpress/tree/v1.3.5" }, - "time": "2021-04-09T00:54:41+00:00" + "time": "2024-06-28T22:27:19+00:00" }, { "name": "wp-coding-standards/wpcs", - "version": "dev-master", + "version": "3.1.0", "source": { "type": "git", "url": "https://github.com/WordPress/WordPress-Coding-Standards.git", - "reference": "7da1894633f168fe244afc6de00d141f27517b62" + "reference": "9333efcbff231f10dfd9c56bb7b65818b4733ca7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/WordPress/WordPress-Coding-Standards/zipball/7da1894633f168fe244afc6de00d141f27517b62", - "reference": "7da1894633f168fe244afc6de00d141f27517b62", + "url": "https://api.github.com/repos/WordPress/WordPress-Coding-Standards/zipball/9333efcbff231f10dfd9c56bb7b65818b4733ca7", + "reference": "9333efcbff231f10dfd9c56bb7b65818b4733ca7", "shasum": "" }, "require": { + "ext-filter": "*", + "ext-libxml": "*", + "ext-tokenizer": "*", + "ext-xmlreader": "*", "php": ">=5.4", - "squizlabs/php_codesniffer": "^3.3.1" + "phpcsstandards/phpcsextra": "^1.2.1", + "phpcsstandards/phpcsutils": "^1.0.10", + "squizlabs/php_codesniffer": "^3.9.0" }, "require-dev": { - "dealerdirect/phpcodesniffer-composer-installer": "^0.5 || ^0.6", + "php-parallel-lint/php-console-highlighter": "^1.0.0", + "php-parallel-lint/php-parallel-lint": "^1.3.2", "phpcompatibility/php-compatibility": "^9.0", - "phpcsstandards/phpcsdevtools": "^1.0", - "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0" + "phpcsstandards/phpcsdevtools": "^1.2.0", + "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0" }, "suggest": { - "dealerdirect/phpcodesniffer-composer-installer": "^0.6 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically." + "ext-iconv": "For improved results", + "ext-mbstring": "For improved results" }, "type": "phpcodesniffer-standard", "notification-url": "https://packagist.org/downloads/", @@ -540,6 +5674,7 @@ "keywords": [ "phpcs", "standards", + "static analysis", "wordpress" ], "support": { @@ -547,17 +5682,21 @@ "source": "https://github.com/WordPress/WordPress-Coding-Standards", "wiki": "https://github.com/WordPress/WordPress-Coding-Standards/wiki" }, - "time": "2020-05-13T23:57:56+00:00" + "funding": [ + { + "url": "https://opencollective.com/php_codesniffer", + "type": "custom" + } + ], + "time": "2024-03-25T16:39:00+00:00" } ], "aliases": [], "minimum-stability": "stable", - "stability-flags": { - "wp-coding-standards/wpcs": 20 - }, + "stability-flags": [], "prefer-stable": false, "prefer-lowest": false, "platform": [], "platform-dev": [], - "plugin-api-version": "2.1.0" + "plugin-api-version": "2.6.0" } diff --git a/lib/astra-notices/.phpunit.result.cache b/lib/astra-notices/.phpunit.result.cache new file mode 100644 index 00000000..6737e7f8 --- /dev/null +++ b/lib/astra-notices/.phpunit.result.cache @@ -0,0 +1 @@ +{"version":1,"defects":{"TestDismissNotice::test_user_can_dismiss_notice":4,"TestNoticeVisibleForCorrectRole::test_user_can_see_notice":3,"TestNoticeVisibleForCorrectRole::test_user_can_see_notice_without_capability":6},"times":{"TestDismissNotice::test_user_can_dismiss_notice":0.035999999999999997,"TestNoticeVisibleForCorrectRole::test_user_can_see_notice":0.070999999999999994,"TestNoticeVisibleForCorrectRole::test_user_can_see_notice_without_capability":0.071999999999999995}} \ No newline at end of file diff --git a/lib/astra-notices/class-astra-notices.php b/lib/astra-notices/class-astra-notices.php index 45e201d6..edc05a9f 100644 --- a/lib/astra-notices/class-astra-notices.php +++ b/lib/astra-notices/class-astra-notices.php @@ -28,7 +28,7 @@ class Astra_Notices { * @var array Notices. * @since 1.0.0 */ - private static $version = '1.1.8'; + private static $version = '1.1.11'; /** * Notices @@ -141,6 +141,7 @@ public function dismiss_notice() { * @return void */ public function enqueue_scripts() { + wp_register_style( 'astra-notices', self::get_url() . 'notices.css', array(), self::$version ); wp_register_script( 'astra-notices', self::get_url() . 'notices.js', array( 'jquery' ), self::$version, true ); wp_localize_script( 'astra-notices', @@ -269,14 +270,15 @@ public function show_notices() { */ public static function markup( $notice = array() ) { wp_enqueue_script( 'astra-notices' ); + wp_enqueue_style( 'astra-notices' ); do_action( 'astra_notice_before_markup' ); do_action( "astra_notice_before_markup_{$notice['id']}" ); ?> -
-
+
+
diff --git a/lib/astra-notices/composer.json b/lib/astra-notices/composer.json index 9425642f..3496441a 100644 --- a/lib/astra-notices/composer.json +++ b/lib/astra-notices/composer.json @@ -2,8 +2,7 @@ "name": "brainstormforce/astra-notices", "type": "wordpress-plugin", "description": "Easily create admin notices", - "version": "1.1.8", - "license": "GPL v3", + "license": "GPL-3.0-or-later", "authors": [ { "name": "Brainstorm Force", @@ -11,14 +10,24 @@ } ], "require": { - "composer/installers": "^1.11" + "composer/installers": "^2.0" }, "require-dev": { "dealerdirect/phpcodesniffer-composer-installer": "^0.7.1", "phpcompatibility/phpcompatibility-wp": "^2.1", - "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5", + "phpunit/phpunit": "^7", "wp-cli/dist-archive-command": "^2.0", - "wp-coding-standards/wpcs": "^2.3" + "wp-coding-standards/wpcs": "^2.3", + "wp-phpunit/wp-phpunit": "^5", + "roots/wordpress": "^5.9", + "yoast/phpunit-polyfills": "^1.0" + }, + "config": { + "allow-plugins": { + "composer/installers": true, + "dealerdirect/phpcodesniffer-composer-installer": true, + "roots/wordpress-core-installer": true + } }, "minimum-stability": "stable", "scripts": { diff --git a/lib/astra-notices/notices.css b/lib/astra-notices/notices.css new file mode 100644 index 00000000..ce9e8a37 --- /dev/null +++ b/lib/astra-notices/notices.css @@ -0,0 +1,39 @@ +.astra-review-notice-container { + display: flex; + align-items: center; + padding-top: 10px; +} + +.astra-review-notice-container .dashicons { + font-size: 1.4em; + padding-left: 10px; +} + +.astra-review-notice-container a { + padding-left: 5px; + text-decoration: none; +} + +.astra-review-notice-container .dashicons:first-child { + padding-left: 0; +} + +.astra-notice-container .notice-image img { + max-width: 90px; +} + +.astra-notice-container .notice-content .notice-heading { + padding-bottom: 5px; +} + +.astra-notice-container .notice-content { + margin-left: 15px; +} + +.astra-notice-container { + padding-top: 10px; + padding-bottom: 10px; + display: flex; + justify-content: left; + align-items: center; +} \ No newline at end of file diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon new file mode 100644 index 00000000..95cd2a2c --- /dev/null +++ b/phpstan-baseline.neon @@ -0,0 +1,13 @@ +parameters: + reportUnmatchedIgnoredErrors: false + ignoreErrors: + - + message: "#^Call to static method get_setting() on an unknown class FLTheme\\.$#" + count: 1 + path: test + + #common errors + + - '#type has no value type specified in iterable type array\.$#' + - '#with no value type specified in iterable type array\.$#' + - "#^While loop condition is always true\\.$#" \ No newline at end of file diff --git a/phpstan.neon b/phpstan.neon new file mode 100644 index 00000000..4585b51d --- /dev/null +++ b/phpstan.neon @@ -0,0 +1,40 @@ +# Start command: composer update --classmap-authoritative && vendor/bin/phpstan analyze + +includes: + - phpstan-baseline.neon # Baseline to ignore error temporary + # https://github.com/phpstan/phpstan/blob/master/conf/bleedingEdge.neon + # - vendor/phpstan/phpstan/conf/bleedingEdge.neon + # - phar://phpstan.phar/conf/bleedingEdge.neon + - vendor/szepeviktor/phpstan-wordpress/extension.neon + # - vendor/php-stubs/wordpress-stubs/wordpress-stubs.php +parameters: + level: 9 + inferPrivatePropertyTypeFromConstructor: true + treatPhpDocTypesAsCertain: false + scanFiles: + bootstrapFiles: + - vendor/php-stubs/wordpress-stubs/wordpress-stubs.php + - tests/php/stubs/lite-stubs.php + paths: + - admin + - assets + - classes + - fields + - includes + - languages + - modules + + ignoreErrors: + - '#Call to an undefined method [a-zA-Z0-9\\_]+\:\:add_control\(\).$#' + - '#Call to an undefined method [^\s]+\.$#' + - '#Call to method [^\s]+ on an unknown class Elementor\\[^\s]+\.$#' + - '#Cannot access [^\s]+#' + - '#Parameter [^\s]+#' + - '#Function [^\s]+ not found.#' + - '#Access to an undefined property [^\s]+#' + - '#Static property [^\s]+#' + - '#Call to static method [^\s]+#' + - '#Offset [^\s]+#' + - '#Access to [^\s]+#' + - '#Strict comparison using \=\=\= between ''no'' and true will always evaluate to false.#' + diff --git a/stubs-generator.php b/stubs-generator.php new file mode 100644 index 00000000..6b086672 --- /dev/null +++ b/stubs-generator.php @@ -0,0 +1,11 @@ + [ + 'wordpress' => [ + 'source' => 'https://github.com/WordPress/WordPress.git', + 'tags' => ['v6.5'], + 'output' => __DIR__ . '/stubs/wordpress', + ], + ], +]; diff --git a/tests/php/stubs/lite-stubs.php b/tests/php/stubs/lite-stubs.php new file mode 100644 index 00000000..45678aba --- /dev/null +++ b/tests/php/stubs/lite-stubs.php @@ -0,0 +1,3059 @@ + array( + * 'type' => 'uabb-gradient', + * 'label' => __( 'Gradient', 'uabb' ), + * 'default' => array //Required NULL or Default value + * 'color_one' => '', + * 'color_two' => '', + * 'angle' => '0', + * ) + * ) + * Note : Default value is required here. Either pass it NULL or enter your own value. + * How to access variables + * fl-node- .YOUR-CLASS{ + * YOUR_VARIABLE_NAME ); ?> + * } + * + * @since 1.0 + * @param var $name gets the name for the gradient field. + * @param array $value gets an array of gradient values. + * @param array $field gets an array of field values. + * @param object $settings gets the object of respective fields. + */ + function uabb_gradient($name, $value, $field, $settings) + { + } +} +/** + * Class to enqueue field scripts + * + * @package UABB_Custom_Field_Scripts + */ +class UABB_Custom_Field_Scripts +{ + /** + * Constructor that initializes custom field scripts + * + * @since 1.0 + */ + function __construct() + { + } + /** + * Function that enqueue styles and scripts + * + * @since 1.0 + */ + function custom_field_scripts() + { + } +} +/** + * UABB Spacer Gap Module file. + * + * @package UABB Spacer Gap Module + */ +/** + * Function that initializes UABB Spacer Gap Module. + * + * @class UABBSpacerGap + */ +class UABBSpacerGap extends \FLBuilderModule +{ + /** + * Constructor function that constructs default values for the Spacer Gap Module + * + * @method __construct + */ + public function __construct() + { + } +} +/** + * UABB Button Module file + * + * @package UABB Button Module + */ +/** + * Function that initializes UABB Button Module + * + * @class UABBButtonModule + */ +class UABBButtonModule extends \FLBuilderModule +{ + /** + * Constructor function that constructs default values for the Button Module + * + * @method __construct + */ + public function __construct() + { + } + /** + * Function that gets the button styling. + * + * @method update + * @param object $settings gets the settings for the button module. + */ + public function update($settings) + { + } + /** + * Function that gets the class names. + * + * @method get_classname + */ + public function get_classname() + { + } + /** + * Function that gets the button styling. + * + * @method get_button_style + */ + public function get_button_style() + { + } + /** + * Ensure backwards compatibility with old settings. + * + * @since 1.14.0 + * @param object $settings A module settings object. + * @param object $helper A settings compatibility helper. + * @return object + */ + public function filter_settings($settings, $helper) + { + } +} +/** + * UABB Flip Box Module file + * + * @package UABB Flip Box Module + */ +/** + * Function that initializes UABB Flip Box Module + * + * @class FlipBoxModule + */ +class FlipBoxModule extends \FLBuilderModule +{ + /** + * Constructor function that constructs default values for the Flip Box Module + * + * @method __construct + */ + public function __construct() + { + } + /** + * Function that gets the Icons for the Flip Box module + * + * @method get_icons + * @param string $icon gets an string to check if $icon is referencing an included icon. + */ + public function get_icon($icon = '') + { + } + /** + * Function that renders the button for the button + * + * @method render_button + */ + public function render_button() + { + } + /** + * Function that renders the Icon or Photo for the Flip Box + * + * @method render_icon + */ + public function render_icon() + { + } + /** + * Ensure backwards compatibility with old settings. + * + * @since 1.14.0 + * @param object $settings A module settings object. + * @param object $helper A settings compatibility helper. + * @return object + */ + public function filter_settings($settings, $helper) + { + } +} +/** + * UABB Advanced Icon Module file + * + * @package UABB Advanced Icon Module + */ +/** + * Function that initializes UABB Advanced Icon Module + * + * @class UABBAdvancedIconModule + */ +class UABBAdvancedIconModule extends \FLBuilderModule +{ + /** + * Constructor function that constructs default values for the Advanced Icon module. + * + * @method __construct + */ + public function __construct() + { + } +} +/** + * UABB Image Separator Module file + * + * @package UABB Image Separator Module + */ +/** + * Function that initializes Image Separator Module + * + * @class UABBImageSeparatorModule + */ +class UABBImageSeparatorModule extends \FLBuilderModule +{ + /** + * Variable for Image Separator module + * + * @property $data + * @var $data + */ + public $data = \null; + /** + * Variable for Image Separator module + * + * @property $_editor + * @protected + * @var $_editor + */ + protected $_editor = \null; + /** + * Constructor function that constructs default values for the Image Separator Module + * + * @method __construct + */ + public function __construct() + { + } + /** + * Function to update the Image src + * + * @method update + * @param obejct $settings gets the settings for the object. + */ + public function update($settings) + { + } + /** + * Function to delete the cropped image src + * + * @method delete + */ + public function delete() + { + } + /** + * Function to crop the the existing image + * + * @method crop + */ + public function crop() + { + } + /** + * Function to get the Image src + * + * @method get_data + */ + public function get_data() + { + } + /** + * Function to get the classes for the Image src + * + * @method get_classes + */ + public function get_classes() + { + } + /** + * Function to get src for the Image src + * + * @method get_src + */ + public function get_src() + { + } + /** + * Function to get alternate val for the Image + * + * @method get_alt + */ + public function get_alt() + { + } + /** + * Function to check for the Image src + * + * @method _has_source + * @protected + */ + protected function _has_source() + { + } + /** + * Function to get the editor for the Image src + * + * @method _get_editor + * @protected + */ + protected function _get_editor() + { + } + /** + * Function to get th cropped path for the Image src + * + * @method _get_cropped_path + * @protected + */ + protected function _get_cropped_path() + { + } + /** + * Function to get the uncropped url of the Image src + * + * @method _get_uncropped_url + * @protected + */ + protected function _get_uncropped_url() + { + } + /** + * Function to get the uncropped url of the Image src + * + * @method _get_uncropped_url + * @protected + */ + protected function _get_cropped_demo_url() + { + } + /** + * Ensure backwards compatibility with old settings. + * + * @since 1.14.0 + * @param object $settings A module settings object. + * @param object $helper A settings compatibility helper. + * @return object + */ + public function filter_settings($settings, $helper) + { + } +} +/** + * UABB Slide Box Module file + * + * @package UABB Slide Box Module + */ +/** + * Function that initializes UABB Slide Box Module + * + * @class SlideBoxModule + */ +class SlideBoxModule extends \FLBuilderModule +{ + /** + * Constructor function that constructs default values for the Slide Box Module + * + * @method __construct + */ + public function __construct() + { + } + /** + * Ensure backwards compatibility with old settings. + * + * @since 1.3.0 + * @param object $settings A module settings object. + * @param object $helper A settings compatibility helper. + * @return object + */ + public function filter_settings($settings, $helper) + { + } + /** + * Function that renders the link for the Slide Box + * + * @method render_link + */ + public function render_link() + { + } + /** + * Function that renders the button for the Slide Box + * + * @method render_button + */ + public function render_button() + { + } + /** + * Function that renders the Image for the Slide Box module. + * + * @method render_image + * @param var $pos gets the position of the image. + */ + public function render_image($pos) + { + } + /** + * Function that renders the overlay icon for the Slide Box + * + * @method render_overlay_icon + */ + public function render_overlay_icon() + { + } + /** + * Function that renders the overlay icon for the Slide Box + * + * @method render_overlay_icon + */ + public function render_dropdown_icon() + { + } +} +/** + * UABB Info Table Module file + * + * @package UABB Info Table Module + */ +/** + * Function that initializes Info Table Module + * + * @class UABBInfoTableModule + */ +class UABBInfoTableModule extends \FLBuilderModule +{ + /** + * Constructor function that constructs default values for the Info Table Module + * + * @method __construct + */ + public function __construct() + { + } + /** + * Ensure backwards compatibility with old settings. + * + * @since 1.14.0 + * @param object $settings A module settings object. + * @param object $helper A settings compatibility helper. + * @return object + */ + public function filter_settings($settings, $helper) + { + } +} +/** + * UABB Ribbon Module file + * + * @package UABB Ribbon Module + */ +/** + * Function that initializes UABB Ribbon Module + * + * @class RibbonModule + */ +class RibbonModule extends \FLBuilderModule +{ + /** + * Constructor function that constructs default values for the Ribbon Module + * + * @method __construct + */ + public function __construct() + { + } + /** + * Ensure backwards compatibility with old settings. + * + * @since 1.14.0 + * @param object $settings A module settings object. + * @param object $helper A settings compatibility helper. + * @return object + */ + public function filter_settings($settings, $helper) + { + } + /** + * Function to get the icon for the Progress Bar + * + * @method get_icon + * @param string $icon gets the icon for the module. + */ + public function get_icon($icon = '') + { + } +} +/** + * UABB Info List Module file + * + * @package UABB Info List Module + */ +/** + * Function that initializes Info List Module + * + * @class UABBInfoList + */ +class UABBInfoList extends \FLBuilderModule +{ + /** + * Constructor function that constructs default values for the Info List Module + * + * @method __construct + */ + public function __construct() + { + } + /** + * Function to get the icon for the Info List + * + * @method get_icons + * @param string $icon gets the icon for the module. + */ + public function get_icon($icon = '') + { + } + /** + * Render Image + * + * @method render_image + * @param object $item gets the object for the module. + * @param object $settings gets the settings for the module. + */ + public function render_image($item, $settings) + { + } + /** + * Render text + * + * @method render_text + * @param object $item gets the items. + * @param var $list_item_counter counts the list item counter value. + */ + public function render_each_item($item, $list_item_counter) + { + } + /** + * Render List text + * + * @method render_text + */ + public function render_list() + { + } + /** + * Ensure backwards compatibility with old settings. + * + * @since 1.14.0 + * @param object $settings A module settings object. + * @param object $helper A settings compatibility helper. + * @return object + */ + public function filter_settings($settings, $helper) + { + } +} +/** + * UABB Heading module file + * + * @package UABB Heading + */ +/** + * Function that initializes UABB Heading Module + * + * @class UABBHeadingModule + */ +class UABBHeadingModule extends \FLBuilderModule +{ + /** + * Constructor function that constructs default values for the Heading module. + * + * @method __construct + */ + public function __construct() + { + } + /** + * Function that renders pos. + * + * @method render_image + */ + public function render_image() + { + } + /** + * Ensure backwards compatibility with old settings. + * + * @since 1.14.0 + * @param object $settings A module settings object. + * @param object $helper A settings compatibility helper. + * @return object + */ + public function filter_settings($settings, $helper) + { + } +} +/** + * UABB Star Rating Module file + * + * @package UABB Star Rating + */ +/** + * Function that initializes UABB Table of Content Module + * + * @class UABBStarRatingModule + */ +class UABBStarRatingModule extends \FLBuilderModule +{ + /** + * Constructor function for the module. You must pass the + * name, description, dir and url in an array to the parent class. + * + * @method __construct + */ + public function __construct() + { + } + /** + * Function to get the icon for the Star Rating + * + * @method get_icons + * @param string $icon gets the icon for the module. + */ + public function get_icon($icon = '') + { + } +} +/** + * UABB Image Icon Module file + * + * @package UABB Image Icon Module + */ +/** + * Function that initializes Image Icon Module + * + * @class ImageIconModule + */ +class ImageIconModule extends \FLBuilderModule +{ + /** + * Variable for Image Icon module + * + * @property $data + * @var $data + */ + public $data = \null; + /** + * Variable for Image Icon module + * + * @property $_editor + * @protected + * @var $_editor + */ + protected $_editor = \null; + /** + * Constructor function that constructs default values for the Image icon Module + * + * @method __construct + */ + public function __construct() + { + } + /** + * Function to update the Image src + * + * @method update + * @param object $settings {object}. + */ + public function update($settings) + { + } + /** + * Function to delete the path if not required + * + * @method delete + */ + public function delete() + { + } + /** + * Function for cropping the image + * + * @method crop + */ + public function crop() + { + } + /** + * Function that gets the data for the Image Icon module. + * + * @method get_data + */ + public function get_data() + { + } + /** + * Function that gets classes for the Photo image + * + * @method get_classes + */ + public function get_classes() + { + } + /** + * Function that gets the src for the Uncropped Image URL + * + * @method get_src + */ + public function get_src() + { + } + /** + * Function that gets the alternate value of the Image + * + * @method get_alt + */ + public function get_alt() + { + } + /** + * Function that checks for the source + * + * @method _has_source + * @protected + */ + protected function _has_source() + { + } + /** + * Function that gets the editor + * + * @method _get_editor + * @protected + */ + protected function _get_editor() + { + } + /** + * Function that gets the cropped path + * + * @method _get_cropped_path + * @protected + */ + protected function _get_cropped_path() + { + } + /** + * Functions that gets the uncropped URL of the Image + * + * @method _get_uncropped_url + * @protected + */ + protected function _get_uncropped_url() + { + } + /** + * Functions that gets the cropped demo URL + * + * @method _get_cropped_demo_url + * @protected + */ + protected function _get_cropped_demo_url() + { + } + /** + * Ensure backwards compatibility with old settings. + * + * @since 1.14.0 + * @param object $settings A module settings object. + * @param object $helper A settings compatibility helper. + * @return object + */ + public function filter_settings($settings, $helper) + { + } +} +/** + * UABB Separator Module file + * + * @package UABB Separator Module + */ +/** + * Function that initializes UABB Separator Module + * + * @class UABBSeparatorModule + */ +class UABBSeparatorModule extends \FLBuilderModule +{ + /** + * Constructor function that constructs default values for the Separator module. + * + * @method __construct + */ + public function __construct() + { + } +} +\define('BB_ULTIMATE_ADDON_DIR', \plugin_dir_path(__FILE__)); +\define('BB_ULTIMATE_ADDON_URL', \plugins_url('/', __FILE__)); +\define('BB_ULTIMATE_ADDON_LITE_VERSION', '1.5.11'); +\define('BSF_REMOVE_UABB_FROM_REGISTRATION_LISTING', \true); +\define('BB_ULTIMATE_ADDON_FILE', \trailingslashit(\dirname(__FILE__)) . 'bb-ultimate-addon.php'); +// @codingStandardsIgnoreLine. +\define('BB_ULTIMATE_ADDON_LITE', \true); +\define('BB_ULTIMATE_ADDON_UPGRADE_URL', 'https://www.ultimatebeaver.com/pricing/?utm_source=uabb-dashboard&utm_campaign=uabblite_upgrade&utm_medium=upgrade-button'); +\define('BB_ULTIMATE_ADDON_FB_URL', 'https://www.brainstormforce.com/go/uabb-facebook-group/?utm_source=uabb-dashboard&utm_campaign=Lite&utm_medium=FB'); +\define('BB_ULTIMATE_ADDON_TWITTER_URL', 'https://twitter.com/WeBrainstorm'); +/** + * Initialize the class only after all the plugins are loaded. + */ +function init_uabb() +{ +} +/** + * Initializes recurse function + * + * @param var $base returns the base values. + * @param array $replacements returns the replacements values. + */ +function recurse($base, $replacements) +{ +} +/** + * Provide option to override the element defaults from theme options. + * + * @param var $default Checks if user has set the color, if yes, returns users value else checks for. + * filtered value. + * @return string - hex value for the color + */ +function uabb_theme_base_color($default) +{ +} +/** + * Provide option to override the element defaults from theme options. + * + * @param var $default Checks if user has set the color, if yes, returns users value else checks for. + * filtered value. + * @return string - hex value for the color + */ +function uabb_theme_text_color($default) +{ +} +/** + * Provide option to override the element defaults from theme options. + * + * @param var $default Checks if user has set the color, if yes, returns users value else checks for + * filtered value. + * @return string - hex value for the color + */ +function uabb_theme_link_color($default) +{ +} +/** + * Provide option to override the element defaults from theme options. + * + * @param var $default Checks if user has set the color, if yes, returns users value else checks for filtered value. + * @return string - hex value for the color + */ +function uabb_theme_link_hover_color($default) +{ +} +/** + * Provide option to override the element defaults from theme options. + * + * @param var $default Checks if user has set the font family, if yes, returns users value else checks + * for filtered value. + * @return string - font-family + */ +function uabb_theme_button_font_family($default) +{ +} +/** + * Button Font Size + * + * @param var $default Checks if the user has set Font Size values. + */ +function uabb_theme_button_font_size($default) +{ +} +/** + * Button Font Size + * + * @since 1.3.1 + * @param var $default Checks if the user has set Font Size values. + */ +function uabb_theme_default_button_font_size($default) +{ +} +/** + * Button Line Height + * + * @param var $default Checks if the user has set text transform values. + */ +function uabb_theme_button_line_height($default) +{ +} +/** + * Button Line Height + * + * @since 1.3.1 + * @param var $default Checks if the user has set text transform values. + */ +function uabb_theme_default_button_line_height($default) +{ +} +/** + * Button Letter Spacing + * + * @param var $default Checks if the user has set letter spacing values. + */ +function uabb_theme_button_letter_spacing($default) +{ +} +/** + * Button Letter Spacing + * + * @since 1.3.1 + * @param var $default Checks if the user has set letter spacing values. + */ +function uabb_theme_default_button_letter_spacing($default) +{ +} +/** + * Button Text Transform + * + * @param var $default Checks if the user has set text transform values. + */ +function uabb_theme_button_text_transform($default) +{ +} +/** + * Button Text Transform + * + * @since 1.3.1 + * @param var $default Checks if the user has set text transform values. + */ +function uabb_theme_default_button_text_transform($default) +{ +} +/** + * Provide option to override the element defaults from theme options. + * + * @param var $default Checks if user has set the color, if yes, returns users value else checks for filtered value. + * @return string - hex value for the color + */ +function uabb_theme_button_bg_color($default) +{ +} +/** + * Provide option to override the element defaults from theme options. + * + * @since 1.3.1 + * @param var $default Checks if user has set the color, if yes, returns users value else checks for filtered value. + * @return string - hex value for the color + */ +function uabb_theme_default_button_bg_color($default) +{ +} +/** + * Provide option to override the element defaults from theme options. + * + * @param var $default Checks if user has set the color, if yes, returns users value else checks + * for filtered value. + * @return string - hex value for the color + */ +function uabb_theme_button_bg_hover_color($default) +{ +} +/** + * Provide option to override the element defaults from theme options. + * + * @since 1.3.1 + * @param var $default Checks if user has set the color, if yes, returns users value else checks + * for filtered value. + * @return string - hex value for the color + */ +function uabb_theme_default_button_bg_hover_color($default) +{ +} +/** + * Provide option to override the element defaults from theme options. + * + * @param var $default Checks if user has set the color, if yes, returns users value else checks + * for filtered value. + * @return string - hex value for the color + */ +function uabb_theme_button_text_color($default) +{ +} +/** + * Provide option to override the element defaults from theme options. + * + * @since 1.3.1 + * @param var $default Checks if user has set the text color, if yes, returns users value else checks + * for filtered value. + * @return string - hex value for the text color + */ +function uabb_theme_default_button_text_color($default) +{ +} +/** + * Provide option to override the element defaults from theme options. + * + * @param var $default Checks if user has set the text hover color, if yes, returns users value else checks + * for filtered value. + * + * @return string - hex value for the text hover color + */ +function uabb_theme_button_text_hover_color($default) +{ +} +/** + * Provide option to override the element defaults from theme options. + * + * @since 1.3.1 + * @param var $default Checks if user has set the text hover color, if yes, returns users value else checks + * for filtered value. + * + * @return string - hex value for the text hover color + */ +function uabb_theme_default_button_text_hover_color($default) +{ +} +/** + * Provide option to override the element defaults from theme options. + * + * @param var $default Checks if user has set the color, if yes, returns users value else checks + * for filtered value. + * @return string - padding value + */ +function uabb_theme_button_padding($default) +{ +} +/** + * Provide option to override the element defaults from theme options. + * + * @since 1.3.1 + * @param var $default Checks if user has set the padding, if yes, returns users value else checks + * for filtered value. + * @return string - padding value + */ +function uabb_theme_default_button_padding($default) +{ +} +/** + * Provide option to override the element defaults from theme options. + * + * @param var $default Checks if user has set the padding, if yes, returns users value else checks + * for filtered value. + * @return string - padding value + */ +function uabb_theme_button_vertical_padding($default) +{ +} +/** + * Provide option to override the element defaults from theme options. + * + * @param var $default checks if user has set the padding, if yes, returns users value else checks + * for filtered value. + * @return string - padding value + */ +function uabb_theme_button_horizontal_padding($default) +{ +} +/** + * Provide option to override the element defaults from theme options. + * + * @param var $default Checks if user has set the radius, if yes, returns users value else checks + * for filtered value. + * @return string - radius value + */ +function uabb_theme_button_border_radius($default) +{ +} +/** + * Provide option to override the element defaults from theme options. + * + * @since 1.3.1 + * @param var $default Checks if user has set the width, if yes, returns users value else checks + * for filtered value. + * @return string - width value + */ +function uabb_theme_button_border_width($default) +{ +} +/** + * Provide option to override the element defaults from theme options. + * + * @since 1.3.1 + * @param var $default Checks if user has set the color, if yes, returns users value else checks for + * filtered value. + * @return string - hex value for the border color + */ +function uabb_theme_border_color($default) +{ +} +/** + * Provide option to override the element defaults from theme options. + * + * @since 1.3.1 + * @param var $default Checks if user has set the hover color, if yes, returns users value else checks for + * filtered value. + * @return string - hex value for the border hover color + */ +function uabb_theme_border_hover_color($default) +{ +} +/** + * Provide option to parse a color code. + * + * @param var $code Returns a hex value for color from rgba or #hex color. + * @return string - hex value for the color + */ +function uabb_parse_color_to_hex($code = '') +{ +} +/** + * Provide option to parse a Border param. + * + * @since 1.3.1 + * @param var $default Checks if user has set the Border, if yes, returns users value else checks for + * filtered value. + * @return array - Border value for the Button + */ +function uabb_theme_border($default) +{ +} +/** + * Provide option to override the element defaults from theme options. + * + * @since 1.3.1 + * @param var $default Checks if user has set the radius, if yes, returns users value else checks + * for filtered value. + * @return array - typography value + */ +function uabb_theme_button_typography($default) +{ +} +/** + * Provide option to override the element defaults from theme options. + * + * @since 1.3.1 + * @param var $value Checks if user has set the Padding, if yes, returns users value else checks + * for filtered value. + * @return array - Padding value + */ +function uabb_theme_padding_button($mode, $value) +{ +} +/** +* Kicking this off by calling 'get_instance()' method +*/ +$UABB_Cloud_Templates = \UABB_Cloud_Templates::get_instance(); +/** + * Get timezone string. + * + * @return string timezone string. + * @since 1.0.0 + */ +function wp_timezone_string() +{ +} +/** + * FLBuilder Registered Nested Forms - Button Form Field + * + * @package Button + */ +$version_bb_check = \UABB_Lite_Compatibility::check_bb_version(); +/** + * UABB Image Separator Module front-end file + * + * @package UABB Image Separator Module + */ +if (isset($module) && $module !== null) { + $module->get_classes(); +} else { + // Handle the case where $module is null +} +/** + * This file should be used to render each module instance. + * You have access to two variables in this file: + * + * $module An instance of your module class. + * $settings The module's settings. + * + * @package Slide Box + */ + +// Define $settings if not already defined +if (!isset($settings)) { + $settings = new class { + public $front_img_icon_position = 'default_position'; // Replace with appropriate default + public $rating_title = 'default_title'; // Replace with appropriate default + }; +} + +$pos = $settings->front_img_icon_position; + +/** + * UABB Star Ratting Module front-end CSS php file + * + * @package UABB Star Ratting Module + */ +$title = $settings->rating_title; \ No newline at end of file From 3606b731f77fddfd82d6226baecd8efa52308642 Mon Sep 17 00:00:00 2001 From: Abhishek Date: Thu, 5 Sep 2024 09:32:52 +0530 Subject: [PATCH 02/29] Resolved PHPStan errors --- composer.lock | 83 ++++++++++--------- .../uabb-heading/includes/frontend.css.php | 2 +- modules/uabb-heading/uabb-heading.php | 5 +- modules/uabb-star-rating/uabb-star-rating.php | 18 ++-- phpstan-baseline.neon | 5 ++ phpstan.neon | 1 + tests/php/stubs/lite-stubs.php | 17 ++-- 7 files changed, 72 insertions(+), 59 deletions(-) diff --git a/composer.lock b/composer.lock index a20abbf1..91f15026 100644 --- a/composer.lock +++ b/composer.lock @@ -531,16 +531,16 @@ }, { "name": "composer/pcre", - "version": "3.3.0", + "version": "3.3.1", "source": { "type": "git", "url": "https://github.com/composer/pcre.git", - "reference": "1637e067347a0c40bbb1e3cd786b20dcab556a81" + "reference": "63aaeac21d7e775ff9bc9d45021e1745c97521c4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/pcre/zipball/1637e067347a0c40bbb1e3cd786b20dcab556a81", - "reference": "1637e067347a0c40bbb1e3cd786b20dcab556a81", + "url": "https://api.github.com/repos/composer/pcre/zipball/63aaeac21d7e775ff9bc9d45021e1745c97521c4", + "reference": "63aaeac21d7e775ff9bc9d45021e1745c97521c4", "shasum": "" }, "require": { @@ -590,7 +590,7 @@ ], "support": { "issues": "https://github.com/composer/pcre/issues", - "source": "https://github.com/composer/pcre/tree/3.3.0" + "source": "https://github.com/composer/pcre/tree/3.3.1" }, "funding": [ { @@ -606,7 +606,7 @@ "type": "tidelift" } ], - "time": "2024-08-19T19:43:53+00:00" + "time": "2024-08-27T18:44:43+00:00" }, { "name": "composer/semver", @@ -1608,16 +1608,16 @@ }, { "name": "symfony/console", - "version": "v6.4.10", + "version": "v6.4.11", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "504974cbe43d05f83b201d6498c206f16fc0cdbc" + "reference": "42686880adaacdad1835ee8fc2a9ec5b7bd63998" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/504974cbe43d05f83b201d6498c206f16fc0cdbc", - "reference": "504974cbe43d05f83b201d6498c206f16fc0cdbc", + "url": "https://api.github.com/repos/symfony/console/zipball/42686880adaacdad1835ee8fc2a9ec5b7bd63998", + "reference": "42686880adaacdad1835ee8fc2a9ec5b7bd63998", "shasum": "" }, "require": { @@ -1682,7 +1682,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v6.4.10" + "source": "https://github.com/symfony/console/tree/v6.4.11" }, "funding": [ { @@ -1698,7 +1698,7 @@ "type": "tidelift" } ], - "time": "2024-07-26T12:30:32+00:00" + "time": "2024-08-15T22:48:29+00:00" }, { "name": "symfony/deprecation-contracts", @@ -1835,16 +1835,16 @@ }, { "name": "symfony/finder", - "version": "v6.4.10", + "version": "v6.4.11", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "af29198d87112bebdd397bd7735fbd115997824c" + "reference": "d7eb6daf8cd7e9ac4976e9576b32042ef7253453" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/af29198d87112bebdd397bd7735fbd115997824c", - "reference": "af29198d87112bebdd397bd7735fbd115997824c", + "url": "https://api.github.com/repos/symfony/finder/zipball/d7eb6daf8cd7e9ac4976e9576b32042ef7253453", + "reference": "d7eb6daf8cd7e9ac4976e9576b32042ef7253453", "shasum": "" }, "require": { @@ -1879,7 +1879,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v6.4.10" + "source": "https://github.com/symfony/finder/tree/v6.4.11" }, "funding": [ { @@ -1895,7 +1895,7 @@ "type": "tidelift" } ], - "time": "2024-07-24T07:06:38+00:00" + "time": "2024-08-13T14:27:37+00:00" }, { "name": "symfony/polyfill-ctype", @@ -2449,20 +2449,20 @@ }, { "name": "symfony/process", - "version": "v6.4.8", + "version": "v7.1.3", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "8d92dd79149f29e89ee0f480254db595f6a6a2c5" + "reference": "7f2f542c668ad6c313dc4a5e9c3321f733197eca" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/8d92dd79149f29e89ee0f480254db595f6a6a2c5", - "reference": "8d92dd79149f29e89ee0f480254db595f6a6a2c5", + "url": "https://api.github.com/repos/symfony/process/zipball/7f2f542c668ad6c313dc4a5e9c3321f733197eca", + "reference": "7f2f542c668ad6c313dc4a5e9c3321f733197eca", "shasum": "" }, "require": { - "php": ">=8.1" + "php": ">=8.2" }, "type": "library", "autoload": { @@ -2490,7 +2490,7 @@ "description": "Executes commands in sub-processes", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/process/tree/v6.4.8" + "source": "https://github.com/symfony/process/tree/v7.1.3" }, "funding": [ { @@ -2506,7 +2506,7 @@ "type": "tidelift" } ], - "time": "2024-05-31T14:49:08+00:00" + "time": "2024-07-26T12:44:47+00:00" }, { "name": "symfony/service-contracts", @@ -2593,20 +2593,20 @@ }, { "name": "symfony/string", - "version": "v6.4.10", + "version": "v7.1.4", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "ccf9b30251719567bfd46494138327522b9a9446" + "reference": "6cd670a6d968eaeb1c77c2e76091c45c56bc367b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/ccf9b30251719567bfd46494138327522b9a9446", - "reference": "ccf9b30251719567bfd46494138327522b9a9446", + "url": "https://api.github.com/repos/symfony/string/zipball/6cd670a6d968eaeb1c77c2e76091c45c56bc367b", + "reference": "6cd670a6d968eaeb1c77c2e76091c45c56bc367b", "shasum": "" }, "require": { - "php": ">=8.1", + "php": ">=8.2", "symfony/polyfill-ctype": "~1.8", "symfony/polyfill-intl-grapheme": "~1.0", "symfony/polyfill-intl-normalizer": "~1.0", @@ -2616,11 +2616,12 @@ "symfony/translation-contracts": "<2.5" }, "require-dev": { - "symfony/error-handler": "^5.4|^6.0|^7.0", - "symfony/http-client": "^5.4|^6.0|^7.0", - "symfony/intl": "^6.2|^7.0", + "symfony/emoji": "^7.1", + "symfony/error-handler": "^6.4|^7.0", + "symfony/http-client": "^6.4|^7.0", + "symfony/intl": "^6.4|^7.0", "symfony/translation-contracts": "^2.5|^3.0", - "symfony/var-exporter": "^5.4|^6.0|^7.0" + "symfony/var-exporter": "^6.4|^7.0" }, "type": "library", "autoload": { @@ -2659,7 +2660,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v6.4.10" + "source": "https://github.com/symfony/string/tree/v7.1.4" }, "funding": [ { @@ -2675,7 +2676,7 @@ "type": "tidelift" } ], - "time": "2024-07-22T10:21:14+00:00" + "time": "2024-08-12T09:59:40+00:00" }, { "name": "wp-cli/cache-command", @@ -5425,16 +5426,16 @@ }, { "name": "phpstan/phpstan", - "version": "1.11.11", + "version": "1.12.0", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "707c2aed5d8d0075666e673a5e71440c1d01a5a3" + "reference": "384af967d35b2162f69526c7276acadce534d0e1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/707c2aed5d8d0075666e673a5e71440c1d01a5a3", - "reference": "707c2aed5d8d0075666e673a5e71440c1d01a5a3", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/384af967d35b2162f69526c7276acadce534d0e1", + "reference": "384af967d35b2162f69526c7276acadce534d0e1", "shasum": "" }, "require": { @@ -5479,7 +5480,7 @@ "type": "github" } ], - "time": "2024-08-19T14:37:29+00:00" + "time": "2024-08-27T09:18:05+00:00" }, { "name": "squizlabs/php_codesniffer", diff --git a/modules/uabb-heading/includes/frontend.css.php b/modules/uabb-heading/includes/frontend.css.php index 2a1974b6..73c7d6e4 100644 --- a/modules/uabb-heading/includes/frontend.css.php +++ b/modules/uabb-heading/includes/frontend.css.php @@ -181,7 +181,7 @@ $imageicon_array = array( - 'image_type' => ( 'line_image' === $settings->separator_style ) ? 'photo' : ( ( 'line_icon' === $settings->separator_style ) ? 'icon' : '' ), + 'image_type' => ( 'line_image' === $settings->separator_style ) ? 'photo' : 'icon', // Removed unreachable condition /* Icon Basics */ 'icon' => $settings->icon, 'icon_size' => $settings->icon_size, diff --git a/modules/uabb-heading/uabb-heading.php b/modules/uabb-heading/uabb-heading.php index b4147e4b..b4653fb7 100644 --- a/modules/uabb-heading/uabb-heading.php +++ b/modules/uabb-heading/uabb-heading.php @@ -23,7 +23,7 @@ public function __construct() { 'name' => __( 'Heading', 'uabb' ), 'description' => __( 'Display a title/page heading.', 'uabb' ), 'category' => BB_Ultimate_Addon_Helper::module_cat( BB_Ultimate_Addon_Helper::$basic_modules ), - 'group' => UABB_CAT, + 'group' => defined('UABB_CAT') ? UABB_CAT : '', // Defining the constant 'dir' => BB_ULTIMATE_ADDON_DIR . 'modules/uabb-heading/', 'url' => BB_ULTIMATE_ADDON_URL . 'modules/uabb-heading/', 'partial_refresh' => true, @@ -36,13 +36,14 @@ public function __construct() { * Function that renders pos. * * @method render_image + * @return void // As the method does not return any value and just renders html */ public function render_image() { if ( 'line_image' === $this->settings->separator_style || 'line_icon' === $this->settings->separator_style ) { $imageicon_array = array( /* General Section */ - 'image_type' => ( 'line_image' === $this->settings->separator_style ) ? 'photo' : ( ( 'line_icon' === $this->settings->separator_style ) ? 'icon' : '' ), + 'image_type' => ( 'line_image' === $this->settings->separator_style ) ? 'photo' : 'icon', // Removed unreachable condition, /* Icon Basics */ 'icon' => $this->settings->icon, diff --git a/modules/uabb-star-rating/uabb-star-rating.php b/modules/uabb-star-rating/uabb-star-rating.php index 6fedf26b..45d31169 100644 --- a/modules/uabb-star-rating/uabb-star-rating.php +++ b/modules/uabb-star-rating/uabb-star-rating.php @@ -6,10 +6,12 @@ */ /** - * Function that initializes UABB Table of Content Module + * Class that initializes UABB Star Rating Module * * @class UABBStarRatingModule */ + + class UABBStarRatingModule extends FLBuilderModule { /** @@ -24,7 +26,7 @@ public function __construct() { 'name' => __( 'Star Rating', 'uabb' ), 'description' => __( 'A module for Star Rating.', 'uabb' ), 'category' => BB_Ultimate_Addon_Helper::module_cat( BB_Ultimate_Addon_Helper::$basic_modules ), - 'group' => UABB_CAT, + 'group' => defined('UABB_CAT') ? UABB_CAT : '', 'dir' => BB_ULTIMATE_ADDON_DIR . 'modules/uabb-star-rating/', 'url' => BB_ULTIMATE_ADDON_URL . 'modules/uabb-star-rating/', 'editor_export' => true, // Defaults to true and can be omitted. @@ -43,8 +45,11 @@ public function __construct() { * * @method get_icons * @param string $icon gets the icon for the module. + * @return string Icon path or empty string if not found */ public function get_icon( $icon = '' ) { + + $path = ''; // Default Initialization // check if $icon is referencing an included icon. if ( '' !== $icon && file_exists( BB_ULTIMATE_ADDON_DIR . 'modules/uabb-star-rating/icon/' . $icon ) ) { @@ -52,10 +57,11 @@ public function get_icon( $icon = '' ) { } if ( file_exists( $path ) ) { - return file_get_contents( $path ); // phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents - } else { - return ''; - } + $icon_content = file_get_contents( $path ); + return $icon_content !== false ? $icon_content : ''; + } + + return ''; // Return an empty string if no icon found. } } diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 95cd2a2c..1d12a18b 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -5,6 +5,11 @@ parameters: message: "#^Call to static method get_setting() on an unknown class FLTheme\\.$#" count: 1 path: test + - + identifier: phpDoc.parseError + - + identifier: variable.undefined + #common errors diff --git a/phpstan.neon b/phpstan.neon index 4585b51d..d64fb493 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -24,6 +24,7 @@ parameters: - languages - modules + ignoreErrors: - '#Call to an undefined method [a-zA-Z0-9\\_]+\:\:add_control\(\).$#' - '#Call to an undefined method [^\s]+\.$#' diff --git a/tests/php/stubs/lite-stubs.php b/tests/php/stubs/lite-stubs.php index 45678aba..ab4fa102 100644 --- a/tests/php/stubs/lite-stubs.php +++ b/tests/php/stubs/lite-stubs.php @@ -9,6 +9,14 @@ class WPML_Beaver_Builder_Module_With_Items { if (!class_exists('FLBuilderModule')) { class FLBuilderModule { // Add any necessary properties or methods + /** + * Constructor function that initializes required actions and hooks + * + * @since 1.0 + */ + function __construct($settings = array()) + { + } } } @@ -3006,15 +3014,6 @@ function uabb_theme_padding_button($mode, $value) * Kicking this off by calling 'get_instance()' method */ $UABB_Cloud_Templates = \UABB_Cloud_Templates::get_instance(); -/** - * Get timezone string. - * - * @return string timezone string. - * @since 1.0.0 - */ -function wp_timezone_string() -{ -} /** * FLBuilder Registered Nested Forms - Button Form Field * From 61dfdfb80722cfd7e67b18f6dcb4fa428b52e485 Mon Sep 17 00:00:00 2001 From: Abhishek Date: Thu, 5 Sep 2024 09:44:49 +0530 Subject: [PATCH 03/29] changes reverted from "phpstan.baseline.neon" --- phpstan-baseline.neon | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 1d12a18b..75284321 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -5,10 +5,7 @@ parameters: message: "#^Call to static method get_setting() on an unknown class FLTheme\\.$#" count: 1 path: test - - - identifier: phpDoc.parseError - - - identifier: variable.undefined + #common errors From 9bfbd662604e5725dc5a8c3849faedb5a168671a Mon Sep 17 00:00:00 2001 From: Abhishek Date: Thu, 5 Sep 2024 17:42:29 +0530 Subject: [PATCH 04/29] Resolved PHPStan errors from count of 2714 errors to currently at 2181 --- modules/spacer-gap/includes/frontend.css.php | 25 ++++++++++++++-- modules/spacer-gap/spacer-gap.php | 2 +- modules/uabb-button/includes/frontend.css.php | 29 +++++++++++++++++++ modules/uabb-button/includes/frontend.php | 11 +++++++ modules/uabb-button/uabb-button.php | 11 ++++--- .../uabb-heading/includes/frontend.css.php | 19 ++++++++++++ modules/uabb-heading/includes/frontend.php | 11 +++++++ .../uabb-separator/includes/frontend.css.php | 11 +++++++ modules/uabb-separator/uabb-separator.php | 2 +- .../includes/frontend.css.php | 16 ++++++++++ .../uabb-star-rating/includes/frontend.php | 5 ++++ 11 files changed, 134 insertions(+), 8 deletions(-) diff --git a/modules/spacer-gap/includes/frontend.css.php b/modules/spacer-gap/includes/frontend.css.php index 19f68de8..4e70ca7c 100644 --- a/modules/spacer-gap/includes/frontend.css.php +++ b/modules/spacer-gap/includes/frontend.css.php @@ -6,6 +6,27 @@ */ ?> + + + .fl-node- { width: 100%; } @@ -25,7 +46,7 @@ @media ( max-width: medium_breakpoint ) . 'px'; ?> ) { .fl-node- .uabb-spacer-gap-preview.uabb-spacer-gap { - height: medium_device ) ? $settings->medium_device : 10 ); ?>px; + height: medium_device) ? $settings->medium_device : 10 ); ?>px; clear: both; width: 100%; } @@ -38,7 +59,7 @@ ?> @media ( max-width: responsive_breakpoint ) . 'px'; ?> ) { .fl-node- .uabb-spacer-gap-preview.uabb-spacer-gap { - height: small_device ) ? $settings->small_device : 10 ); ?>px; + height: small_device) ? $settings->small_device : 10 ); ?>px; clear: both; width: 100%; } diff --git a/modules/spacer-gap/spacer-gap.php b/modules/spacer-gap/spacer-gap.php index 10bc65ba..e44e4eb2 100644 --- a/modules/spacer-gap/spacer-gap.php +++ b/modules/spacer-gap/spacer-gap.php @@ -22,7 +22,7 @@ public function __construct() { 'name' => __( 'Spacer / Gap', 'uabb' ), 'description' => __( 'A totally awesome module!', 'uabb' ), 'category' => BB_Ultimate_Addon_Helper::module_cat( BB_Ultimate_Addon_Helper::$basic_modules ), - 'group' => UABB_CAT, + 'group' => defined('UABB_CAT') ? UABB_CAT : '', 'dir' => BB_ULTIMATE_ADDON_DIR . 'modules/spacer-gap/', 'url' => BB_ULTIMATE_ADDON_URL . 'modules/spacer-gap/', 'editor_export' => true, // Defaults to true and can be omitted. diff --git a/modules/uabb-button/includes/frontend.css.php b/modules/uabb-button/includes/frontend.css.php index df47dce4..f0ba1a0a 100644 --- a/modules/uabb-button/includes/frontend.css.php +++ b/modules/uabb-button/includes/frontend.css.php @@ -9,6 +9,35 @@ $version_bb_check = UABB_Lite_Compatibility::check_bb_version(); $converted = UABB_Lite_Compatibility::check_old_page_migration(); +// Ensure $settings is defined and initialized +if (!isset($settings)) { + $settings = new stdClass(); // Create an empty object to avoid undefined errors +} + +// Ensure $global_settings is defined and initialized +if (!isset($global_settings)) { + // Create an empty object to avoid undefined errors + $global_settings = new stdClass(); +} + +// $id = ''; // Ensure $id is always defined +// Ensure $id is defined and initialized +if (!isset($id)) { + $id = ''; // If we do not provide isset check, styling does mot get applied +} + +$border_color = ''; // Ensure $border_color is always defined + +$bg_grad_start = ''; // Ensure $bg_grad_start is always defined + +$bg_hover_grad_start = ''; //Ensure $bg_hover_grad_start is always defined + +$border_hover_color = ''; // Ensure $border_hover_color is always defined + +$padding_top_bottom = ''; // Ensure $padding_top_bottom is always defined + + + $settings->bg_color = uabb_theme_button_bg_color( $settings->bg_color ); $settings->bg_hover_color = uabb_theme_button_bg_hover_color( $settings->bg_hover_color ); $settings->text_color = uabb_theme_button_text_color( $settings->text_color ); diff --git a/modules/uabb-button/includes/frontend.php b/modules/uabb-button/includes/frontend.php index 57e13183..1aea7d64 100644 --- a/modules/uabb-button/includes/frontend.php +++ b/modules/uabb-button/includes/frontend.php @@ -8,6 +8,17 @@ ?> link_nofollow ) ) { $link_nofollow = $settings->link_nofollow; } else { diff --git a/modules/uabb-button/uabb-button.php b/modules/uabb-button/uabb-button.php index f7407bce..5039c7d2 100644 --- a/modules/uabb-button/uabb-button.php +++ b/modules/uabb-button/uabb-button.php @@ -23,7 +23,7 @@ public function __construct() { 'name' => __( 'Button', 'uabb' ), 'description' => __( 'A simple call to action button.', 'uabb' ), 'category' => BB_Ultimate_Addon_Helper::module_cat( BB_Ultimate_Addon_Helper::$basic_modules ), - 'group' => UABB_CAT, + 'group' => defined('UABB_CAT') ? UABB_CAT : '', 'dir' => BB_ULTIMATE_ADDON_DIR . 'modules/uabb-button/', 'url' => BB_ULTIMATE_ADDON_URL . 'modules/uabb-button/', 'editor_export' => true, // Defaults to true and can be omitted. @@ -38,8 +38,9 @@ public function __construct() { * * @method update * @param object $settings gets the settings for the button module. + * @return object Updated settings object */ - public function update( $settings ) { + public function update( $settings ): object { // Remove the old three_d setting. if ( isset( $settings->three_d ) ) { unset( $settings->three_d ); @@ -52,8 +53,9 @@ public function update( $settings ) { * Function that gets the class names. * * @method get_classname + * @return string Classname for the button */ - public function get_classname() { + public function get_classname(): string { $classname = 'uabb-button-wrap uabb-creative-button-wrap'; if ( ! empty( $this->settings->width ) ) { @@ -83,8 +85,9 @@ public function get_classname() { * Function that gets the button styling. * * @method get_button_style + * @return string Button styling string */ - public function get_button_style() { + public function get_button_style(): string { $btn_style = ''; if ( ! empty( $this->settings->style ) && 'transparent' === $this->settings->style ) { diff --git a/modules/uabb-heading/includes/frontend.css.php b/modules/uabb-heading/includes/frontend.css.php index 73c7d6e4..c21ef7a3 100644 --- a/modules/uabb-heading/includes/frontend.css.php +++ b/modules/uabb-heading/includes/frontend.css.php @@ -9,6 +9,25 @@ $version_bb_check = UABB_Lite_Compatibility::check_bb_version(); $converted = UABB_Lite_Compatibility::check_old_page_migration(); +// Ensure $settings is defined and initialized +if (!isset($settings)) { + $settings = new stdClass(); // Create an empty object to avoid undefined errors +} + +// Ensure $id is defined and initialized +if (!isset($id)) { + $id = ''; +} + +// Ensure $global_settings is defined and initialized +if (!isset($global_settings)) { + // Create an empty object to avoid undefined errors + $global_settings = new stdClass(); +} + +// Ensure $position is defined with a default value +$position = '0'; // Default to '0' to avoid undefined variable errors + $settings->title_color = FLBuilderColor::hex_or_rgb( $settings->color ); $settings->desc_color = FLBuilderColor::hex_or_rgb( $settings->desc_color ); $settings->bg_color = FLBuilderColor::hex_or_rgb( $settings->bg_color ); diff --git a/modules/uabb-heading/includes/frontend.php b/modules/uabb-heading/includes/frontend.php index 6762e541..2cebdb2f 100644 --- a/modules/uabb-heading/includes/frontend.php +++ b/modules/uabb-heading/includes/frontend.php @@ -6,6 +6,17 @@ */ global $wp_embed; + +// Ensure $settings is defined and initialized +if (!isset($settings)) { + $settings = new stdClass(); // Create an empty object to avoid undefined errors +} + +// Ensure $settings is defined and initialized +if (!isset($module)) { + $module = new stdClass(); // Create an empty object to avoid undefined errors +} + ?>
separator_position ) { ?> diff --git a/modules/uabb-separator/includes/frontend.css.php b/modules/uabb-separator/includes/frontend.css.php index ce2993af..2073aaa6 100644 --- a/modules/uabb-separator/includes/frontend.css.php +++ b/modules/uabb-separator/includes/frontend.css.php @@ -7,6 +7,17 @@ ?> color = uabb_theme_base_color( FLBuilderColor::hex_or_rgb( $settings->color ) ); $settings->height = ( '' !== trim( $settings->height ) ) ? $settings->height : '1'; $settings->width = ( '' !== trim( $settings->width ) ) ? $settings->width : '100'; diff --git a/modules/uabb-separator/uabb-separator.php b/modules/uabb-separator/uabb-separator.php index 7a90a7c8..38c0f1b4 100644 --- a/modules/uabb-separator/uabb-separator.php +++ b/modules/uabb-separator/uabb-separator.php @@ -23,7 +23,7 @@ public function __construct() { 'name' => __( 'Simple Separator', 'uabb' ), 'description' => __( 'A divider line to separate content.', 'uabb' ), 'category' => BB_Ultimate_Addon_Helper::module_cat( BB_Ultimate_Addon_Helper::$basic_modules ), - 'group' => UABB_CAT, + 'group' => defined('UABB_CAT') ? UABB_CAT : '', //Define the constant before use 'dir' => BB_ULTIMATE_ADDON_DIR . 'modules/uabb-separator/', 'url' => BB_ULTIMATE_ADDON_URL . 'modules/uabb-separator/', 'editor_export' => false, diff --git a/modules/uabb-star-rating/includes/frontend.css.php b/modules/uabb-star-rating/includes/frontend.css.php index 51de7d64..2bdca637 100644 --- a/modules/uabb-star-rating/includes/frontend.css.php +++ b/modules/uabb-star-rating/includes/frontend.css.php @@ -5,6 +5,22 @@ * @package UABB Star Rating Module */ +// Ensure $settings is defined and initialized +if (!isset($settings)) { + $settings = new stdClass(); // Create an empty object to avoid undefined errors +} + +// Ensure $id is defined and initialized +if (!isset($id)) { + $id = ''; +} + +// Ensure $global_settings is defined and initialized +if (!isset($global_settings)) { + // Create an empty object to avoid undefined errors + $global_settings = new stdClass(); +} + $settings->title_color = FLBuilderColor::hex_or_rgb( $settings->title_color ); $settings->rating_unmarked_color = FLBuilderColor::hex_or_rgb( $settings->rating_unmarked_color ); $settings->rating_color = FLBuilderColor::hex_or_rgb( $settings->rating_color ); diff --git a/modules/uabb-star-rating/includes/frontend.php b/modules/uabb-star-rating/includes/frontend.php index 905a9eae..2e9bb2b8 100644 --- a/modules/uabb-star-rating/includes/frontend.php +++ b/modules/uabb-star-rating/includes/frontend.php @@ -5,6 +5,11 @@ * @package UABB Star Ratting Module */ +// Ensure $settings is defined and initialized +if (!isset($settings)) { + $settings = new stdClass(); // Create an empty object to avoid undefined errors +} + $title = $settings->rating_title; $rating = ! empty( $settings->rating ) ? $settings->rating : 0; $layout = 0; From 4a06bf67de6d140e04049916ed111d708120fb30 Mon Sep 17 00:00:00 2001 From: Abhishek Date: Mon, 9 Sep 2024 22:33:39 +0530 Subject: [PATCH 05/29] Resolved PHPStan errors of modules/uabb-button, slide-box, ribbon, info-table, info-list ( WIP ) Note: "PHPDoc tag @method" error is on hold. --- modules/info-list/includes/frontend.css.php | 16 +++ modules/info-list/includes/frontend.js.php | 11 ++ modules/info-list/includes/frontend.php | 10 ++ modules/info-list/info-list.php | 30 +++-- modules/info-table/includes/frontend.css.php | 34 +++++- modules/info-table/includes/frontend.php | 5 + modules/info-table/info-table.php | 2 +- modules/ribbon/includes/frontend.css.php | 17 +++ modules/ribbon/includes/frontend.php | 6 + modules/ribbon/ribbon.php | 26 ++-- modules/slide-box/includes/frontend.css.php | 112 +++++++++++++----- modules/slide-box/includes/frontend.js.php | 10 ++ modules/slide-box/includes/frontend.php | 10 ++ .../slide-box-bb-2-2-compatibility.php | 1 - ...ide-box-bb-less-than-2-2-compatibility.php | 1 - modules/slide-box/slide-box.php | 9 +- modules/uabb-button/includes/frontend.css.php | 12 +- phpstan.neon | 1 + 18 files changed, 255 insertions(+), 58 deletions(-) diff --git a/modules/info-list/includes/frontend.css.php b/modules/info-list/includes/frontend.css.php index 0db283d9..68c6025f 100644 --- a/modules/info-list/includes/frontend.css.php +++ b/modules/info-list/includes/frontend.css.php @@ -9,6 +9,22 @@ $version_bb_check = UABB_Lite_Compatibility::check_bb_version(); $converted = UABB_Lite_Compatibility::check_old_page_migration(); +// Ensure $settings is defined and initialized +if (!isset($settings)) { + $settings = new stdClass(); // Create an empty object to avoid undefined errors +} + +// Ensure $id is defined and initialized +if (!isset($id)) { + $id = ''; +} + +// Ensure $global_settings is defined and initialized +if (!isset($global_settings)) { + // Create an empty object to avoid undefined errors + $global_settings = new stdClass(); +} + /* Variable settings */ $settings->heading_color = FLBuilderColor::hex_or_rgb( $settings->heading_color ); $settings->description_color = FLBuilderColor::hex_or_rgb( $settings->description_color ); diff --git a/modules/info-list/includes/frontend.js.php b/modules/info-list/includes/frontend.js.php index a361b97f..36049eca 100644 --- a/modules/info-list/includes/frontend.js.php +++ b/modules/info-list/includes/frontend.js.php @@ -5,6 +5,17 @@ * @package UABB Info List Module */ + // Ensure $settings is defined and initialized +if (!isset($settings)) { + $settings = new stdClass(); // Create an empty object to avoid undefined errors +} + +// Ensure $id is defined and initialized +if (!isset($id)) { + $id = ''; +} + + ?> (function($) { diff --git a/modules/info-list/includes/frontend.php b/modules/info-list/includes/frontend.php index 8f3178dc..960a4a24 100644 --- a/modules/info-list/includes/frontend.php +++ b/modules/info-list/includes/frontend.php @@ -5,6 +5,16 @@ * @package UABB Info List Module */ +// Ensure $settings is defined and initialized +if (!isset($settings)) { + $settings = new stdClass(); // Create an empty object to avoid undefined errors +} + +// Ensure $settings is defined and initialized +if (!isset($module)) { + $module = new stdClass(); // Create an empty object to avoid undefined errors +} + ?>
    diff --git a/modules/info-list/info-list.php b/modules/info-list/info-list.php index 6f526c65..2cfaa6b2 100644 --- a/modules/info-list/info-list.php +++ b/modules/info-list/info-list.php @@ -22,7 +22,7 @@ public function __construct() { 'name' => __( 'Info List', 'uabb' ), 'description' => __( 'A totally awesome module!', 'uabb' ), 'category' => BB_Ultimate_Addon_Helper::module_cat( BB_Ultimate_Addon_Helper::$basic_modules ), - 'group' => UABB_CAT, + 'group' => defined('UABB_CAT') ? UABB_CAT : '', 'dir' => BB_ULTIMATE_ADDON_DIR . 'modules/info-list/', 'url' => BB_ULTIMATE_ADDON_URL . 'modules/info-list/', 'editor_export' => true, // Defaults to true and can be omitted. @@ -44,18 +44,26 @@ public function __construct() { * @method get_icons * @param string $icon gets the icon for the module. */ - public function get_icon( $icon = '' ) { + public function get_icon( $icon = '' ): string + { + + // Initialize $path before the first if statement + $path = ''; // check if $icon is referencing an included icon. if ( '' !== $icon && file_exists( BB_ULTIMATE_ADDON_DIR . 'modules/info-list/icon/' . $icon ) ) { $path = BB_ULTIMATE_ADDON_DIR . 'modules/info-list/icon/' . $icon; } - if ( file_exists( $path ) ) { - return file_get_contents( $path ); //phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents - } else { - return ''; + if (file_exists($path)) { + $contents = file_get_contents($path); //phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents + if ($contents !== false) { + return $contents; + } } + + // If we reach this point, either the file doesn't exist or file_get_contents failed + return ''; } /** @@ -64,8 +72,10 @@ public function get_icon( $icon = '' ) { * @method render_image * @param object $item gets the object for the module. * @param object $settings gets the settings for the module. + * @return void */ - public function render_image( $item, $settings ) { + public function render_image( $item, $settings ): void + { $infolist_icon_size = isset( $settings->icon_image_size ) ? $settings->icon_image_size : 75; @@ -124,8 +134,9 @@ public function render_image( $item, $settings ) { * @method render_text * @param object $item gets the items. * @param var $list_item_counter counts the list item counter value. + * @return void */ - public function render_each_item( $item, $list_item_counter ) { + public function render_each_item( $item, $list_item_counter ): void{ $target = ''; $nofollow = ''; if ( ! UABB_Lite_Compatibility::check_bb_version() ) { @@ -207,8 +218,9 @@ public function render_each_item( $item, $list_item_counter ) { * Render List text * * @method render_text + * @return void */ - public function render_list() { + public function render_list(): void { $info_list_html = ''; $list_item_counter = 0; foreach ( $this->settings->add_list_item as $item ) { diff --git a/modules/info-table/includes/frontend.css.php b/modules/info-table/includes/frontend.css.php index 3d73abe5..087e3f86 100644 --- a/modules/info-table/includes/frontend.css.php +++ b/modules/info-table/includes/frontend.css.php @@ -9,6 +9,27 @@ $version_bb_check = UABB_Lite_Compatibility::check_bb_version(); $converted = UABB_Lite_Compatibility::check_old_page_migration(); +// Ensure $settings is defined and initialized +if (!isset($settings)) { + $settings = new stdClass(); // Create an empty object to avoid undefined errors +} + +// Ensure $id is defined and initialized +if (!isset($id)) { + $id = ''; +} + +// Ensure $global_settings is defined and initialized +if (!isset($global_settings)) { + // Create an empty object to avoid undefined errors + $global_settings = new stdClass(); +} + +$bg_grad_start = ''; // Ensure $bg_grad_start is always defined + +// Initialize $spacing variable +$spacing = 0; + $settings->btn_text_color = FLBuilderColor::hex_or_rgb( $settings->btn_text_color ); $settings->btn_text_hover_color = FLBuilderColor::hex_or_rgb( $settings->btn_text_hover_color ); $settings->heading_color = FLBuilderColor::hex_or_rgb( $settings->heading_color ); @@ -779,12 +800,19 @@ btn_font_size_unit ) && '' !== $settings->btn_font_size_unit ) { ?> font-size: btn_font_size_unit ); ?>px; - btn_line_height_unit && '' !== $settings->btn_font_size_unit ) { ?> - line-height: btn_font_size_unit ) + 5; ?>px; + btn_line_height_unit && '' !== $settings->btn_font_size_unit ) { ?> + btn_font_size_unit) + 5; + echo "line-height: {$line_height}px;"; + ?> btn_font_size_unit ) && '' === $settings->btn_font_size_unit && isset( $settings->btn_font_size['desktop'] ) && '' !== $settings->btn_font_size['desktop'] ) { ?> font-size: btn_font_size['desktop'] ); ?>px; - line-height: btn_font_size['desktop'] ) + 5; ?>px; + btn_font_size['desktop']) + 5; + echo "line-height: {$line_height}px;"; + ?> btn_font_size['desktop'] ) && '' === $settings->btn_font_size['desktop'] && isset( $settings->btn_line_height['desktop'] ) && '' !== $settings->btn_line_height['desktop'] && '' === $settings->btn_line_height_unit ) { ?> diff --git a/modules/info-table/includes/frontend.php b/modules/info-table/includes/frontend.php index 8e42a093..9cc6dac9 100644 --- a/modules/info-table/includes/frontend.php +++ b/modules/info-table/includes/frontend.php @@ -5,6 +5,11 @@ * @package UABB Info Table Module */ + // Ensure $settings is defined and initialized +if (!isset($settings)) { + $settings = new stdClass(); // Create an empty object to avoid undefined errors +} + if ( isset( $settings->it_link_nofollow ) ) { $link_nofollow = $settings->it_link_nofollow; } else { diff --git a/modules/info-table/info-table.php b/modules/info-table/info-table.php index 73bb23dc..c1c02697 100644 --- a/modules/info-table/info-table.php +++ b/modules/info-table/info-table.php @@ -22,7 +22,7 @@ public function __construct() { 'name' => __( 'Info Table', 'uabb' ), 'description' => __( 'A basic info table.', 'uabb' ), 'category' => BB_Ultimate_Addon_Helper::module_cat( BB_Ultimate_Addon_Helper::$basic_modules ), - 'group' => UABB_CAT, + 'group' => defined('UABB_CAT') ? UABB_CAT : '', 'dir' => BB_ULTIMATE_ADDON_DIR . 'modules/info-table/', 'url' => BB_ULTIMATE_ADDON_URL . 'modules/info-table/', 'editor_export' => true, // Defaults to true and can be omitted. diff --git a/modules/ribbon/includes/frontend.css.php b/modules/ribbon/includes/frontend.css.php index fd1931ef..43268176 100644 --- a/modules/ribbon/includes/frontend.css.php +++ b/modules/ribbon/includes/frontend.css.php @@ -8,6 +8,23 @@ ?> text_tag_selection, $allowed_tags, true ) ? $settings->text_tag_selection : 'h3'; diff --git a/modules/ribbon/ribbon.php b/modules/ribbon/ribbon.php index d1c7b019..20d545dd 100644 --- a/modules/ribbon/ribbon.php +++ b/modules/ribbon/ribbon.php @@ -22,7 +22,7 @@ public function __construct() { 'name' => __( 'Ribbon', 'uabb' ), 'description' => __( 'Ribbon', 'uabb' ), 'category' => BB_Ultimate_Addon_Helper::module_cat( BB_Ultimate_Addon_Helper::$basic_modules ), - 'group' => UABB_CAT, + 'group' => defined('UABB_CAT') ? UABB_CAT : '', 'dir' => BB_ULTIMATE_ADDON_DIR . 'modules/ribbon/', 'url' => BB_ULTIMATE_ADDON_URL . 'modules/ribbon/', 'editor_export' => true, // Defaults to true and can be omitted. @@ -216,17 +216,25 @@ public function filter_settings( $settings, $helper ) { * @method get_icon * @param string $icon gets the icon for the module. */ - public function get_icon( $icon = '' ) { - // check if $icon is referencing an included icon. - if ( '' !== $icon && file_exists( BB_ULTIMATE_ADDON_DIR . 'modules/ribbon/icon/' . $icon ) ) { + public function get_icon($icon = ''): string + { + // Initialize $path before the first if statement + $path = ''; + + // Check if $icon is referencing an included icon + if ('' !== $icon && file_exists(BB_ULTIMATE_ADDON_DIR . 'modules/ribbon/icon/' . $icon)) { $path = BB_ULTIMATE_ADDON_DIR . 'modules/ribbon/icon/' . $icon; } - - if ( file_exists( $path ) ) { - return file_get_contents( $path ); //phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents - } else { - return ''; + + if (file_exists($path)) { + $contents = file_get_contents($path); //phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents + if ($contents !== false) { + return $contents; + } } + + // If we reach this point, either the file doesn't exist or file_get_contents failed + return ''; } } diff --git a/modules/slide-box/includes/frontend.css.php b/modules/slide-box/includes/frontend.css.php index 98eead71..cf7a2b80 100644 --- a/modules/slide-box/includes/frontend.css.php +++ b/modules/slide-box/includes/frontend.css.php @@ -11,6 +11,22 @@ $version_bb_check = UABB_Lite_Compatibility::check_bb_version(); $converted = UABB_Lite_Compatibility::check_old_page_migration(); + // Ensure $settings is defined and initialized +if (!isset($settings)) { + $settings = new stdClass(); // Create an empty object to avoid undefined errors +} + +// Ensure $id is defined and initialized +if (!isset($id)) { + $id = ''; +} + +// Ensure $global_settings is defined and initialized +if (!isset($global_settings)) { + // Create an empty object to avoid undefined errors + $global_settings = new stdClass(); +} + $settings->icon_color = FLBuilderColor::hex_or_rgb( $settings->icon_color ); $settings->icon_hover_color = FLBuilderColor::hex_or_rgb( $settings->icon_hover_color ); $settings->overlay_icon_color = FLBuilderColor::hex_or_rgb( $settings->overlay_icon_color ); @@ -933,12 +949,20 @@ .fl-node- .uabb-slide-box .uabb-slide-box-section-content { front_desc_font_size_unit_responsive ) && '' !== $settings->front_desc_font_size_unit_responsive ) { ?> font-size: front_desc_font_size_unit_responsive ); ?>px; - front_desc_line_height_unit_responsive && '' !== $settings->front_desc_font_size_unit_responsive ) { ?> - line-height: front_desc_font_size_unit_responsive ) + 2; ?>px; - - front_desc_font_size_unit_responsive ) && '' === $settings->front_desc_font_size_unit_responsive && isset( $settings->line_height['small'] ) && '' !== $settings->line_height['small'] ) { ?> - font-size: front_desc_font_size['small'] ); ?>px; - line-height: front_desc_font_size['small'] ) + 2; ?>px; + front_desc_line_height_unit_responsive && '' !== $settings->front_desc_font_size_unit_responsive ) { + $line_height = floatval($settings->front_desc_font_size_unit_responsive) + 2; // ensure it's a numeric value before performing the addition + echo "line-height: {$line_height}px;"; + } + ?> + front_desc_font_size_unit_responsive ) && '' === $settings->front_desc_font_size_unit_responsive && isset( $settings->line_height['small'] ) && '' !== $settings->line_height['small'] ) { ?> + front_desc_font_size['small'] ); + $small_line_height = floatval($small_font_size) + 2; // ensure it's a numeric value before performing the addition + echo "font-size: {$small_font_size}px; line-height: {$small_line_height}px;"; + ?> + front_desc_font_size['small'] ) && '' === $settings->front_desc_font_size['small'] && isset( $settings->front_desc_line_height['small'] ) && '' !== $settings->front_desc_line_height['small'] && '' === $settings->front_desc_line_height_unit && '' === $settings->front_desc_line_height_unit_medium && '' === $settings->front_desc_line_height_unit_responsive ) { ?> @@ -956,12 +980,20 @@ front_title_font_size_unit_responsive ) && '' !== $settings->front_title_font_size_unit_responsive ) { ?> font-size: front_title_font_size_unit_responsive ); ?>px; - front_title_line_height_unit_responsive && '' !== $settings->front_title_font_size_unit_responsive ) { ?> - line-height: front_title_font_size_unit_responsive ) + 2; ?>px; - - front_title_font_size_unit_responsive ) && '' === $settings->front_title_font_size_unit_responsive && isset( $settings->front_title_font_size['small'] ) && '' !== $settings->front_title_font_size['small'] ) { ?> - font-size: front_title_font_size['small'] ); ?>px; - line-height: front_title_font_size['small'] ) + 2; ?>px; + front_title_line_height_unit_responsive && '' !== $settings->front_title_font_size_unit_responsive ) { + $line_height = floatval($settings->front_title_font_size_unit_responsive) + 2; // ensure it's a numeric value before performing the addition + echo "line-height: {$line_height}px;"; + } + ?> + front_title_font_size_unit_responsive ) && '' === $settings->front_title_font_size_unit_responsive && isset( $settings->front_title_font_size['small'] ) && '' !== $settings->front_title_font_size['small'] ) { ?> + front_title_font_size['small'] ); + $small_line_height = floatval($small_font_size) + 2; // ensure it's a numeric value before performing the addition + echo "font-size: {$small_font_size}px; line-height: {$small_line_height}px;"; + ?> + front_title_font_size['small'] ) && '' === $settings->front_title_font_size['small'] && isset( $settings->front_title_line_height['small'] ) && '' !== $settings->front_title_line_height['small'] && '' === $settings->front_title_line_height_unit && '' === $settings->front_title_line_height_unit_medium && '' === $settings->front_title_line_height_unit_responsive ) { ?> @@ -979,12 +1011,20 @@ back_desc_font_size_unit_responsive ) && '' !== $settings->back_desc_font_size_unit_responsive ) { ?> font-size: back_desc_font_size_unit_responsive ); ?>px; - back_desc_line_height_unit_responsive && '' !== $settings->back_desc_font_size_unit_responsive ) { ?> - line-height: back_desc_font_size_unit_responsive ) + 2; ?>px; - - back_desc_font_size_unit_responsive ) && '' === $settings->back_desc_font_size_unit_responsive && isset( $settings->back_desc_font_size['small'] ) && '' !== $settings->back_desc_font_size['small'] ) { ?> - font-size: back_desc_font_size['small'] ); ?>px; - line-height: back_desc_font_size['small'] ) + 2; ?>px; + back_desc_line_height_unit_responsive && '' !== $settings->back_desc_font_size_unit_responsive ) { + + $line_height = floatval($settings->back_desc_font_size_unit_responsive) + 2; // ensure it's a numeric value before performing the addition + echo "line-height: {$line_height}px;"; + } + ?> + back_desc_font_size_unit_responsive ) && '' === $settings->back_desc_font_size_unit_responsive && isset( $settings->back_desc_font_size['small'] ) && '' !== $settings->back_desc_font_size['small'] ) { ?> + back_desc_font_size['small'] ); + $small_line_height = floatval($small_font_size) + 2; // ensure it's a numeric value before performing the addition + echo "font-size: {$small_font_size}px; line-height: {$small_line_height}px;"; + ?> + back_desc_font_size['small'] ) && '' === $settings->back_desc_font_size['small'] && isset( $settings->back_desc_line_height['small'] ) && '' !== $settings->back_desc_line_height['small'] && '' === $settings->back_desc_line_height_unit && '' === $settings->back_desc_line_height_unit_medium && '' === $settings->back_desc_line_height_unit_responsive ) { ?> @@ -1002,12 +1042,19 @@ back_title_font_size_unit_responsive ) && '' !== $settings->back_title_font_size_unit_responsive ) { ?> font-size: back_title_font_size_unit_responsive ); ?>px; - back_title_line_height_unit_responsive && '' !== $settings->back_title_font_size_unit_responsive ) { ?> - line-height: back_title_font_size_unit_responsive ) + 2; ?>px; - + back_title_line_height_unit_responsive && '' !== $settings->back_title_font_size_unit_responsive ) { + $line_height = floatval($settings->back_title_font_size_unit_responsive) + 2; // ensure it's a numeric value before performing the addition + echo "line-height: {$line_height}px;"; + } + ?> back_title_font_size_unit_responsive ) && '' === $settings->back_title_font_size_unit_responsive && isset( $settings->back_title_font_size['small'] ) && '' !== $settings->back_title_font_size['small'] ) { ?> - font-size: back_title_font_size['small'] ); ?>px; - line-height: back_title_font_size['small'] ) + 2; ?>px; + back_title_font_size['small'] ); + $small_line_height = floatval($small_font_size) + 2; // ensure it's a numeric value before performing the addition + echo "font-size: {$small_font_size}px; line-height: {$small_line_height}px;"; + ?> + back_title_font_size['small'] ) && '' === $settings->back_title_font_size['small'] && isset( $settings->back_title_line_height['small'] ) && '' !== $settings->back_title_line_height['small'] && '' === $settings->back_title_line_height_unit && '' === $settings->back_title_line_height_unit_medium && '' === $settings->back_title_line_height_unit_responsive ) { ?> @@ -1024,12 +1071,21 @@ .fl-builder-content .fl-node- .uabb-callout-cta-link { link_font_size_unit_responsive ) && '' !== $settings->link_font_size_unit_responsive ) { ?> font-size: link_font_size_unit_responsive ); ?>px; - link_line_height_unit_responsive && '' !== $settings->link_font_size_unit_responsive ) { ?> - line-height: link_font_size_unit_responsive ) + 2; ?>px; - + link_line_height_unit_responsive && '' !== $settings->link_font_size_unit_responsive ) { + + $line_height = floatval($settings->link_font_size_unit_responsive) + 2; // ensure it's a numeric value before performing the addition + echo "line-height: {$line_height}px;"; + + } + ?> link_font_size_unit_responsive ) && '' === $settings->link_font_size_unit_responsive && isset( $settings->link_font_size['small'] ) && '' !== $settings->link_font_size['small'] ) { ?> - font-size: link_font_size['small'] ); ?>px; - line-height: link_font_size['small'] ) + 2; ?>px; + link_font_size['small'] ); + $small_line_height = floatval($small_font_size) + 2; // ensure it's a numeric value before performing the addition + echo "font-size: {$small_font_size}px; line-height: {$small_line_height}px;"; + ?> + link_font_size['small'] ) && '' === $settings->link_font_size['small'] && isset( $settings->link_line_height['small'] ) && '' !== $settings->link_line_height['small'] && '' === $settings->link_line_height_unit && '' === $settings->link_line_height_unit_medium ) { ?> diff --git a/modules/slide-box/includes/frontend.js.php b/modules/slide-box/includes/frontend.js.php index a1eec1a9..2b3ef07c 100644 --- a/modules/slide-box/includes/frontend.js.php +++ b/modules/slide-box/includes/frontend.js.php @@ -12,6 +12,16 @@ * @package Slide Box */ +// Ensure $settings is defined and initialized +if (!isset($settings)) { + $settings = new stdClass(); // Create an empty object to avoid undefined errors +} + +// Ensure $id is defined and initialized +if (!isset($id)) { + $id = ''; +} + ?> if(! /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) var is_touch_device = false; diff --git a/modules/slide-box/includes/frontend.php b/modules/slide-box/includes/frontend.php index 743d30dd..29ffb97c 100644 --- a/modules/slide-box/includes/frontend.php +++ b/modules/slide-box/includes/frontend.php @@ -9,6 +9,16 @@ * @package Slide Box */ +// Ensure $settings is defined and initialized +if (!isset($settings)) { + $settings = new stdClass(); // Create an empty object to avoid undefined errors +} + +// Ensure $settings is defined and initialized +if (!isset($module)) { + $module = new stdClass(); // Create an empty object to avoid undefined errors +} + $pos = $settings->front_img_icon_position; ?>
    diff --git a/modules/slide-box/slide-box-bb-2-2-compatibility.php b/modules/slide-box/slide-box-bb-2-2-compatibility.php index 1547c935..eb7572bc 100644 --- a/modules/slide-box/slide-box-bb-2-2-compatibility.php +++ b/modules/slide-box/slide-box-bb-2-2-compatibility.php @@ -493,7 +493,6 @@ 'back_background_color' => array( 'type' => 'color', 'label' => __( 'Background Color', 'uabb' ), - 'default' => '', 'show_reset' => true, 'connections' => array( 'color' ), 'show_alpha' => true, diff --git a/modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php b/modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php index 22f717ad..3da853d5 100644 --- a/modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php +++ b/modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php @@ -508,7 +508,6 @@ 'back_background_color' => array( 'type' => 'color', 'label' => __( 'Background Color', 'uabb' ), - 'default' => '', 'show_reset' => true, 'default' => 'f6f6f6', 'preview' => array( diff --git a/modules/slide-box/slide-box.php b/modules/slide-box/slide-box.php index 90bfd781..c3f70d30 100644 --- a/modules/slide-box/slide-box.php +++ b/modules/slide-box/slide-box.php @@ -22,7 +22,7 @@ public function __construct() { 'name' => __( 'Slide Box', 'uabb' ), 'description' => __( 'Slide Box', 'uabb' ), 'category' => BB_Ultimate_Addon_Helper::module_cat( BB_Ultimate_Addon_Helper::$basic_modules ), - 'group' => UABB_CAT, + 'group' => defined('UABB_CAT') ? UABB_CAT : '', 'dir' => BB_ULTIMATE_ADDON_DIR . 'modules/slide-box/', 'url' => BB_ULTIMATE_ADDON_URL . 'modules/slide-box/', 'editor_export' => true, // Defaults to true and can be omitted. @@ -1012,6 +1012,7 @@ public function filter_settings( $settings, $helper ) { * Function that renders the link for the Slide Box * * @method render_link + * @return void */ public function render_link() { if ( isset( $this->settings->link_nofollow ) ) { @@ -1028,6 +1029,7 @@ public function render_link() { * Function that renders the button for the Slide Box * * @method render_button + * @return void */ public function render_button() { if ( 'button' === $this->settings->cta_type ) { @@ -1042,6 +1044,7 @@ public function render_button() { * * @method render_image * @param var $pos gets the position of the image. + * @return void */ public function render_image( $pos ) { if ( $pos === $this->settings->front_img_icon_position ) { @@ -1105,6 +1108,7 @@ public function render_image( $pos ) { * Function that renders the overlay icon for the Slide Box * * @method render_overlay_icon + * @return void */ public function render_overlay_icon() { if ( 'style1' === $this->settings->slide_type && 'yes' === $this->settings->overlay ) { @@ -1122,7 +1126,8 @@ public function render_overlay_icon() { /** * Function that renders the overlay icon for the Slide Box * - * @method render_overlay_icon + * @method render_dropdown_icon + * @return void */ public function render_dropdown_icon() { diff --git a/modules/uabb-button/includes/frontend.css.php b/modules/uabb-button/includes/frontend.css.php index f0ba1a0a..5e2e667c 100644 --- a/modules/uabb-button/includes/frontend.css.php +++ b/modules/uabb-button/includes/frontend.css.php @@ -244,10 +244,14 @@ $border_width = uabb_theme_button_border_width( '' ); - echo ( is_array( $border_width ) && array_key_exists( 'top', $border_width ) ) ? 'border-top-width:' . esc_attr( $border_width['top'] ) . 'px;' : ''; - echo ( is_array( $border_width ) && array_key_exists( 'left', $border_width ) ) ? 'border-left-width:' . esc_attr( $border_width['left'] ) . 'px;' : ''; - echo ( is_array( $border_width ) && array_key_exists( 'right', $border_width ) ) ? 'border-right-width:' . esc_attr( $border_width['right'] ) . 'px;' : ''; - echo ( is_array( $border_width ) && array_key_exists( 'bottom', $border_width ) ) ? 'border-bottom-width:' . esc_attr( $border_width['bottom'] ) . 'px;' : ''; + + // Ensure $border_width is an array before performing array_key_exists checks + if ( is_array( $border_width ) ) { + echo array_key_exists( 'top', $border_width ) ? 'border-top-width:' . esc_attr( $border_width['top'] ) . 'px;' : ''; + echo array_key_exists( 'left', $border_width ) ? 'border-left-width:' . esc_attr( $border_width['left'] ) . 'px;' : ''; + echo array_key_exists( 'right', $border_width ) ? 'border-right-width:' . esc_attr( $border_width['right'] ) . 'px;' : ''; + echo array_key_exists( 'bottom', $border_width ) ? 'border-bottom-width:' . esc_attr( $border_width['bottom'] ) . 'px;' : ''; + } } if ( isset( $settings->button_border_radius ) ) { echo ( '' !== $settings->button_border_radius ) ? 'border-radius:' . esc_attr( $settings->button_border_radius ) . 'px;' : 'border-radius:' . esc_attr( uabb_theme_button_border_radius( '' ) ) . 'px;'; diff --git a/phpstan.neon b/phpstan.neon index d64fb493..d030483e 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -25,6 +25,7 @@ parameters: - modules + ignoreErrors: - '#Call to an undefined method [a-zA-Z0-9\\_]+\:\:add_control\(\).$#' - '#Call to an undefined method [^\s]+\.$#' From 8167e183508743e7d58f5f821ce23ca489b4d68b Mon Sep 17 00:00:00 2001 From: Abhishek Date: Tue, 10 Sep 2024 21:19:07 +0530 Subject: [PATCH 06/29] Resolved PHPStan errors of modules/info-list, image-icon & flip box Note: Checked the frontend on 8.3.8, 8.3.0, 8.2.10, 8.1.23, 8.0.30 PHP versions. --- modules/flip-box/flip-box.php | 15 +++-- modules/flip-box/includes/frontend.css.php | 16 ++++++ modules/flip-box/includes/frontend.js.php | 16 ++++++ modules/flip-box/includes/frontend.php | 11 ++++ modules/image-icon/image-icon.php | 59 ++++++++++++++------ modules/image-icon/includes/frontend.css.php | 21 ++++++- modules/image-icon/includes/frontend.php | 10 ++++ modules/info-list/includes/frontend.css.php | 18 +++--- 8 files changed, 135 insertions(+), 31 deletions(-) diff --git a/modules/flip-box/flip-box.php b/modules/flip-box/flip-box.php index 31ad44eb..c4d162bd 100644 --- a/modules/flip-box/flip-box.php +++ b/modules/flip-box/flip-box.php @@ -22,7 +22,7 @@ public function __construct() { 'name' => __( 'Flip Box', 'uabb' ), 'description' => __( 'Flip Box', 'uabb' ), 'category' => BB_Ultimate_Addon_Helper::module_cat( BB_Ultimate_Addon_Helper::$basic_modules ), - 'group' => UABB_CAT, + 'group' => defined('UABB_CAT') ? UABB_CAT : '', 'dir' => BB_ULTIMATE_ADDON_DIR . 'modules/flip-box/', 'url' => BB_ULTIMATE_ADDON_URL . 'modules/flip-box/', 'editor_export' => true, // Defaults to true and can be omitted. @@ -38,8 +38,10 @@ public function __construct() { * * @method get_icons * @param string $icon gets an string to check if $icon is referencing an included icon. + * @return string Icon path or empty string if not found */ public function get_icon( $icon = '' ) { + $path = ''; // Default Initialization // check if $icon is referencing an included icon. if ( '' !== $icon && file_exists( BB_ULTIMATE_ADDON_DIR . 'modules/flip-box/icon/' . $icon ) ) { @@ -47,10 +49,11 @@ public function get_icon( $icon = '' ) { } if ( file_exists( $path ) ) { - return file_get_contents( $path ); //phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents - } else { - return ''; - } + $icon_content = file_get_contents( $path ); + return $icon_content !== false ? $icon_content : ''; + } + + return ''; // Return an empty string if no icon found. } @@ -58,6 +61,7 @@ public function get_icon( $icon = '' ) { * Function that renders the button for the button * * @method render_button + * @return void */ public function render_button() { if ( 'yes' === $this->settings->show_button ) { @@ -71,6 +75,7 @@ public function render_button() { * Function that renders the Icon or Photo for the Flip Box * * @method render_icon + * @return void */ public function render_icon() { if ( '' !== $this->settings->smile_icon && '' !== $this->settings->smile_icon->icon ) { diff --git a/modules/flip-box/includes/frontend.css.php b/modules/flip-box/includes/frontend.css.php index 12ac4ee2..4988dd80 100644 --- a/modules/flip-box/includes/frontend.css.php +++ b/modules/flip-box/includes/frontend.css.php @@ -9,6 +9,22 @@ $version_bb_check = UABB_Lite_Compatibility::check_bb_version(); $converted = UABB_Lite_Compatibility::check_old_page_migration(); +// Ensure $settings is defined and initialized +if ( ! isset( $settings ) ) { + $settings = new stdClass(); // Create an empty object to avoid undefined errors +} + +// Ensure $id is defined and initialized +if ( ! isset( $id ) ) { + $id = ''; +} + +// Ensure $global_settings is defined and initialized +if ( ! isset( $global_settings ) ) { + // Create an empty object to avoid undefined errors + $global_settings = new stdClass(); +} + $settings->front_background_color = FLBuilderColor::hex_or_rgb( $settings->front_background_color ); $settings->back_background_color = FLBuilderColor::hex_or_rgb( $settings->back_background_color ); diff --git a/modules/flip-box/includes/frontend.js.php b/modules/flip-box/includes/frontend.js.php index 9f3fafbf..cacb3c6b 100644 --- a/modules/flip-box/includes/frontend.js.php +++ b/modules/flip-box/includes/frontend.js.php @@ -5,6 +5,22 @@ * @package UABB Flip Box Module */ +// Ensure $settings is defined and initialized +if ( ! isset( $settings ) ) { + $settings = new stdClass(); // Create an empty object to avoid undefined errors +} + +// Ensure $id is defined and initialized +if ( ! isset( $id ) ) { + $id = ''; +} + +// Ensure $global_settings is defined and initialized +if ( ! isset( $global_settings ) ) { + // Create an empty object to avoid undefined errors + $global_settings = new stdClass(); +} + ?> (function($) { diff --git a/modules/flip-box/includes/frontend.php b/modules/flip-box/includes/frontend.php index 38d914b2..9a100ac2 100644 --- a/modules/flip-box/includes/frontend.php +++ b/modules/flip-box/includes/frontend.php @@ -5,6 +5,17 @@ * @package UABB Flip Box Module */ + // Ensure $settings is defined and initialized +if ( ! isset( $settings ) ) { + $settings = new stdClass(); // Create an empty object to avoid undefined errors +} + +// Ensure $module is defined and initialized +if ( ! isset( $module ) ) { + $module = new stdClass(); // Create an empty object to avoid undefined errors +} + + ?>
    diff --git a/modules/image-icon/image-icon.php b/modules/image-icon/image-icon.php index a5ee3d30..594ec7a5 100644 --- a/modules/image-icon/image-icon.php +++ b/modules/image-icon/image-icon.php @@ -5,6 +5,20 @@ * @package UABB Image Icon Module */ +if ( ! defined( 'FL_BUILDER_DEMO_URL' ) ) { + define( 'FL_BUILDER_DEMO_URL', '' ); +} + +if ( ! defined( 'FL_BUILDER_OLD_DEMO_URL' ) ) { + define( 'FL_BUILDER_OLD_DEMO_URL', '' ); +} + +if ( ! defined( 'FL_BUILDER_DEMO_CACHE_URL' ) ) { + define( 'FL_BUILDER_DEMO_CACHE_URL', '' ); +} + + + /** * Function that initializes Image Icon Module * @@ -15,17 +29,15 @@ class ImageIconModule extends FLBuilderModule { /** * Variable for Image Icon module * - * @property $data - * @var $data + * @var mixed|null */ public $data = null; /** * Variable for Image Icon module * - * @property $_editor * @protected - * @var $_editor + * @var mixed|null */ protected $_editor = null; @@ -40,7 +52,7 @@ public function __construct() { 'name' => __( 'Image / Icon', 'uabb' ), 'description' => __( 'Image / Icon with effect', 'uabb' ), 'category' => BB_Ultimate_Addon_Helper::module_cat( BB_Ultimate_Addon_Helper::$basic_modules ), - 'group' => UABB_CAT, + 'group' => defined( 'UABB_CAT' ) ? UABB_CAT : '', 'dir' => BB_ULTIMATE_ADDON_DIR . 'modules/image-icon/', 'url' => BB_ULTIMATE_ADDON_URL . 'modules/image-icon/', 'icon' => 'format-image.svg', @@ -56,8 +68,9 @@ public function __construct() { * * @method update * @param object $settings {object}. + * @return object */ - public function update( $settings ) { + public function update( $settings ): object { // Make sure we have a photo_src property. if ( ! isset( $settings->photo_src ) ) { $settings->photo_src = ''; @@ -80,8 +93,9 @@ public function update( $settings ) { * Function to delete the path if not required * * @method delete + * @return void */ - public function delete() { + public function delete(): void { $cropped_path = $this->_get_cropped_path(); if ( file_exists( $cropped_path['path'] ) ) { @@ -93,6 +107,7 @@ public function delete() { * Function for cropping the image * * @method crop + * @return string|false */ public function crop() { // Delete an existing crop if it exists. @@ -112,6 +127,10 @@ public function crop() { $new_width = $size['width']; $new_height = $size['height']; + // Initialize crop ratios to prevent undefined variables. + $ratio_1 = 1; + $ratio_2 = 1; + // Get the crop ratios. if ( 'circle' === $this->settings->image_style ) { $ratio_1 = 1; @@ -148,6 +167,7 @@ public function crop() { * Function that gets the data for the Image Icon module. * * @method get_data + * @return object */ public function get_data() { if ( ! $this->data ) { @@ -176,8 +196,9 @@ public function get_data() { * Function that gets classes for the Photo image * * @method get_classes + * @return string */ - public function get_classes() { + public function get_classes(): string { $classes = array( 'uabb-photo-img' ); if ( 'library' === $this->settings->photo_source ) { @@ -205,13 +226,13 @@ public function get_classes() { return implode( ' ', $classes ); } - /** * Function that gets the src for the Uncropped Image URL * * @method get_src + * @return string|null */ - public function get_src() { + public function get_src(): string|null { $src = $this->_get_uncropped_url(); // Return a cropped photo. @@ -244,8 +265,9 @@ public function get_src() { * Function that gets the alternate value of the Image * * @method get_alt + * @return string|null */ - public function get_alt() { + public function get_alt(): string|null { $photo = $this->get_data(); if ( ! empty( $photo->alt ) ) { @@ -257,6 +279,8 @@ public function get_alt() { } elseif ( ! empty( $photo->title ) ) { return htmlspecialchars( $photo->title ); } + + return null; } /** @@ -264,8 +288,9 @@ public function get_alt() { * * @method _has_source * @protected + * @return boolean */ - protected function _has_source() { + protected function _has_source(): bool { if ( 'url' === $this->settings->photo_source && ! empty( $this->settings->photo_url ) ) { return true; } elseif ( 'library' === $this->settings->photo_source && ! empty( $this->settings->photo_src ) ) { @@ -301,9 +326,10 @@ protected function _get_editor() { * Function that gets the cropped path * * @method _get_cropped_path + * @return array * @protected */ - protected function _get_cropped_path() { + protected function _get_cropped_path(): array { $crop = empty( $this->settings->image_style ) ? 'simple' : $this->settings->image_style; $url = $this->_get_uncropped_url(); $cache_dir = FLBuilderModel::get_cache_dir(); @@ -336,9 +362,10 @@ protected function _get_cropped_path() { * Functions that gets the uncropped URL of the Image * * @method _get_uncropped_url + * @return string * @protected */ - protected function _get_uncropped_url() { + protected function _get_uncropped_url(): string { if ( 'url' === $this->settings->photo_source ) { $url = $this->settings->photo_url; } elseif ( ! empty( $this->settings->photo_src ) ) { @@ -353,10 +380,10 @@ protected function _get_uncropped_url() { /** * Functions that gets the cropped demo URL * - * @method _get_cropped_demo_url * @protected + * @return string */ - protected function _get_cropped_demo_url() { + protected function _get_cropped_demo_url(): string { $info = $this->_get_cropped_path(); return FL_BUILDER_DEMO_CACHE_URL . $info['filename']; diff --git a/modules/image-icon/includes/frontend.css.php b/modules/image-icon/includes/frontend.css.php index 246622de..0a4aa9af 100644 --- a/modules/image-icon/includes/frontend.css.php +++ b/modules/image-icon/includes/frontend.css.php @@ -5,6 +5,25 @@ * @package UABB Image Icon Module */ +// Ensure $settings is defined and initialized +if ( ! isset( $settings ) ) { + $settings = new stdClass(); // Create an empty object to avoid undefined errors +} + +// Ensure $id is defined and initialized +if ( ! isset( $id ) ) { + $id = ''; +} + +// Ensure $global_settings is defined and initialized +if ( ! isset( $global_settings ) ) { + // Create an empty object to avoid undefined errors + $global_settings = new stdClass(); +} + +$bg_hover_grad_start = ''; // Ensure $bg_grad_start is always defined +$border_hover_color = ''; // Ensure $border_hover_color is always defined + if ( 'none' !== $settings->image_type ) : $settings->icon_color = FLBuilderColor::hex_or_rgb( $settings->icon_color ); @@ -124,7 +143,7 @@ height: icon_size ); ?>px; width: icon_size ); ?>px; text-align: center; - + icon_style && 'none' !== $settings->icon_border_style ) : ?> diff --git a/modules/image-icon/includes/frontend.php b/modules/image-icon/includes/frontend.php index f6433d75..c3fa08d2 100644 --- a/modules/image-icon/includes/frontend.php +++ b/modules/image-icon/includes/frontend.php @@ -5,6 +5,16 @@ * @package UABB Image Icon Module */ +// Ensure $settings is defined and initialized +if ( ! isset( $settings ) ) { + $settings = new stdClass(); // Create an empty object to avoid undefined errors +} + +// Ensure $module is defined and initialized +if ( ! isset( $module ) ) { + $module = new stdClass(); // Create an empty object to avoid undefined errors +} + ?> image_type && '' !== $settings->image_type ) { ?>
    diff --git a/modules/info-list/includes/frontend.css.php b/modules/info-list/includes/frontend.css.php index 68c6025f..4d3e08fe 100644 --- a/modules/info-list/includes/frontend.css.php +++ b/modules/info-list/includes/frontend.css.php @@ -81,7 +81,7 @@ height: calc( 50% - icon_image_size / 2 ) + $icon_extra_padding - $space_element; ?>px ); top: icon_image_size + $icon_extra_padding_top ); ?>px; - height: calc( 100% - icon_image_size ) + $icon_extra_padding_top; ?>px ); + height: calc( 100% - icon_image_size + $icon_extra_padding_top); ?>px ); } align_items ) : ?> @@ -248,8 +248,8 @@ } space_between_elements ) { ?> .fl-node- .uabb-info-list-wrapper .uabb-info-list-item { - padding-right: space_between_elements ) / 2 ); ?>px; - padding-left: space_between_elements ) / 2 ); ?>px; + padding-right: space_between_elements ) / 2 ); ?>px; + padding-left: space_between_elements ) / 2 ); ?>px; padding-bottom: 0; } @@ -392,7 +392,7 @@ $img_size = getimagesize( $item->photo_url ); endif; - if ( ( null !== intval( $img_size[0] ) ) && ( null !== intval( $img_size[1] ) ) && ( 0 !== intval( $img_size[0] ) ) ) : + if ( ( 0 !== intval( $img_size[0] ) ) && ( 0 !== intval( $img_size[1] ) ) ) : $actual_height = ( intval( $settings->icon_image_size ) * intval( $img_size[1] ) ) / intval( $img_size[0] ); if ( $actual_height > $settings->icon_image_size ) : @@ -406,17 +406,17 @@ .fl-node- .info-list-item-dynamic .uabb-info-list-connector { align_items ) : ?> - top: calc( 50% + icon_image_size - $need_to_add ) / 2 ) + $icon_extra_padding - $space_element; ?>px ); - height: calc( 50% - icon_image_size - $need_to_add ) / 2 ) + $icon_extra_padding - $space_element; ?>px ); + top: calc( 50% + icon_image_size - $need_to_add ) / 2 ) + $icon_extra_padding - $space_element; ?>px ); + height: calc( 50% - icon_image_size - $need_to_add ) / 2 ) + $icon_extra_padding - $space_element; ?>px ); - top: icon_image_size - $need_to_add ) + $icon_extra_padding_top; ?>px; - height: calc( 100% - icon_image_size - $need_to_add ) ) + $icon_extra_padding_top; ?>px ); + top: icon_image_size - $need_to_add + $icon_extra_padding_top); ?>px; + height: calc( 100% - icon_image_size - $need_to_add ) + $icon_extra_padding_top); ?>px ); } align_items ) : ?> .fl-node- .info-list-item-dynamic .uabb-info-list-connector-top { - height: calc( 50% - icon_image_size - $need_to_add ) / 2 ) + $icon_extra_padding + $space_element ); ?>px ); + height: calc( 50% - icon_image_size - $need_to_add ) / 2 ) + $icon_extra_padding + $space_element ); ?>px ); } Date: Wed, 11 Sep 2024 20:28:42 +0530 Subject: [PATCH 07/29] Resolved PHPStan errors in modules, includes, fields and classes folder in WIP Note: - Resolved critical error for lower PHP Version of 7.0 - module/image-separator file in on hold --- classes/uabb-global-functions.php | 52 ++++++++----- classes/uabb-global-integration.php | 78 ++++++++++++++----- classes/uabb-global-settings-form.php | 6 ++ classes/uabb-global-settings.php | 5 ++ classes/wpml/class-wpml-uabb-infolist.php | 12 ++- fields/_config.php | 1 + fields/uabb-gradient/uabb-gradient.php | 1 + includes/admin-settings-icons.php | 4 + includes/admin-settings-modules.php | 5 ++ includes/ui-panel-presets.php | 10 +++ includes/ui-panel-sections.php | 11 +++ modules/advanced-icon/advanced-icon.php | 2 +- .../advanced-icon/includes/frontend.css.php | 16 ++++ modules/advanced-icon/includes/frontend.php | 5 ++ modules/image-icon/image-icon.php | 4 +- .../image-separator/includes/frontend.css.php | 16 ++++ .../image-separator/includes/frontend.js.php | 10 +++ modules/image-separator/includes/frontend.php | 10 +++ 18 files changed, 199 insertions(+), 49 deletions(-) diff --git a/classes/uabb-global-functions.php b/classes/uabb-global-functions.php index 4de5e837..d246783a 100644 --- a/classes/uabb-global-functions.php +++ b/classes/uabb-global-functions.php @@ -36,10 +36,11 @@ /** * Initializes an array to replace recursive function * - * @param var $base returns the bas values. + * @param mixed $base Initial base values, can be an array or any other type. * @param array $replacements returns the replacements values. + * @return mixed Returns an array if $base is an array, otherwise returns the original $base value. */ - function array_replace_recursive( $base, $replacements ) { + function array_replace_recursive( $base, $replacements ): mixed { $base = recurse( $base, $replacements ); // handle the arguments, merge one by one. @@ -60,10 +61,11 @@ function array_replace_recursive( $base, $replacements ) { /** * Initializes recurse function * - * @param var $base returns the base values. + * @param mixed $base Initial base values, can be an array or any other type. * @param array $replacements returns the replacements values. + * @return mixed Returns an array if $base is an array, otherwise returns the original $base value. */ - function recurse( $base, $replacements ) { + function recurse( $base, $replacements ): mixed { foreach ( $replacements as $key => $value ) { // create new key in $base, if it is empty or not an array. if ( ! isset( $base[ $key ] ) || ( isset( $base[ $key ] ) && ! is_array( $base[ $key ] ) ) ) { @@ -201,8 +203,9 @@ function uabb_theme_button_font_family( $default ) { * Button Font Size * * @param var $default Checks if the user has set Font Size values. + * @return string */ -function uabb_theme_button_font_size( $default ) { +function uabb_theme_button_font_size( $default ): string { $font_size = ''; if ( '' === $default ) { @@ -225,8 +228,9 @@ function uabb_theme_button_font_size( $default ) { * * @since 1.3.1 * @param var $default Checks if the user has set Font Size values. + * @return string */ -function uabb_theme_default_button_font_size( $default ) { +function uabb_theme_default_button_font_size( $default ): string { $font_size = ''; if ( '' === $default ) { @@ -247,9 +251,10 @@ function uabb_theme_default_button_font_size( $default ) { /** * Button Line Height * - * @param var $default Checks if the user has set text transform values. + * @param var $default Checks if the user has set text transform values.\ + * @return string */ -function uabb_theme_button_line_height( $default ) { +function uabb_theme_button_line_height( $default ): string { $line_height = ''; if ( '' === $default ) { @@ -272,8 +277,9 @@ function uabb_theme_button_line_height( $default ) { * * @since 1.3.1 * @param var $default Checks if the user has set text transform values. + * @return string */ -function uabb_theme_default_button_line_height( $default ) { +function uabb_theme_default_button_line_height( $default ): string { $line_height = ''; if ( '' === $default ) { @@ -295,8 +301,9 @@ function uabb_theme_default_button_line_height( $default ) { * Button Letter Spacing * * @param var $default Checks if the user has set letter spacing values. + * @return string */ -function uabb_theme_button_letter_spacing( $default ) { +function uabb_theme_button_letter_spacing( $default ): string { $letter_spacing = ''; if ( '' === $default ) { @@ -319,8 +326,9 @@ function uabb_theme_button_letter_spacing( $default ) { * * @since 1.3.1 * @param var $default Checks if the user has set letter spacing values. + * @return string */ -function uabb_theme_default_button_letter_spacing( $default ) { +function uabb_theme_default_button_letter_spacing( $default ): string { $letter_spacing = ''; if ( '' === $default ) { @@ -342,8 +350,9 @@ function uabb_theme_default_button_letter_spacing( $default ) { * Button Text Transform * * @param var $default Checks if the user has set text transform values. + * @return string */ -function uabb_theme_button_text_transform( $default ) { +function uabb_theme_button_text_transform( $default ): string { $text_transform = ''; if ( '' === $default ) { @@ -364,8 +373,9 @@ function uabb_theme_button_text_transform( $default ) { * * @since 1.3.1 * @param var $default Checks if the user has set text transform values. + * @return string */ -function uabb_theme_default_button_text_transform( $default ) { +function uabb_theme_default_button_text_transform( $default ): string { $text_transform = ''; if ( '' === $default ) { @@ -771,7 +781,7 @@ function uabb_theme_border_hover_color( $default ) { /** * Provide option to parse a color code. * - * @param var $code Returns a hex value for color from rgba or #hex color. + * @param string $code Returns a hex value for color from rgba or #hex color. * @return string - hex value for the color */ function uabb_parse_color_to_hex( $code = '' ) { @@ -796,7 +806,7 @@ function uabb_parse_color_to_hex( $code = '' ) { * Provide option to parse a Border param. * * @since 1.3.1 - * @param var $default Checks if user has set the Border, if yes, returns users value else checks for + * @param mixed $default Checks if user has set the Border, if yes, returns users value else checks for * filtered value. * @return array - Border value for the Button */ @@ -805,14 +815,14 @@ function uabb_theme_border( $default ) { $border_width = uabb_theme_button_border_width( '' ); $border_color = uabb_theme_border_color( '' ); $border_radius = uabb_theme_button_border_radius( '' ); - $border = array(); + $border = []; if ( is_array( $default ) && ( ! empty( $default['style'] ) || ! empty( $default['color'] ) || ! empty( $default['width']['top'] ) || ! empty( $default['width']['bottom'] ) || ! empty( $default['width']['left'] ) || ! empty( $default['width']['right'] ) || ! empty( $default['radius']['top_left'] ) || ! empty( $default['radius']['top_right'] ) || ! empty( $default['radius']['bottom_left'] ) || ! empty( $default['radius']['bottom_right'] ) ) ) { $border = $default; } elseif ( is_object( $default ) && ( ! empty( $default->style ) || ! empty( $default->color ) || ! empty( $default->width->top ) || ! empty( $default->width->bottom ) || ! empty( $default->width->left ) || ! empty( $default->width->right ) || ! empty( $default->radius->top_left ) || ! empty( $default->radius->top_right ) || ! empty( $default->radius->bottom_left ) || ! empty( $default->radius->bottom_right ) ) ) { - $border = $default; + $border = (array) $default; //Cast objects to arrays when using them as $default. } else { @@ -932,11 +942,11 @@ function uabb_theme_button_typography( $default ) { * Provide option to override the element defaults from theme options. * * @since 1.3.1 - * @param var $value Checks if user has set the Padding, if yes, returns users value else checks - * for filtered value. - * @return array - Padding value + * @param string $mode The mode of padding (e.g., 'top', 'bottom', etc.). + * @param string $value The padding value to be checked. + * @return string - Padding value */ -function uabb_theme_padding_button( $mode, $value ) { +function uabb_theme_padding_button( $mode, $value ): string { $padding = uabb_theme_default_button_padding( '' ); diff --git a/classes/uabb-global-integration.php b/classes/uabb-global-integration.php index 0c561daf..7ec77d58 100644 --- a/classes/uabb-global-integration.php +++ b/classes/uabb-global-integration.php @@ -17,7 +17,7 @@ class UABBGlobalSettingsOptions { * * @var $uabb_setting_options gets the uabb setting options */ - public $uabb_setting_options; + public object $uabb_setting_options; /** * Constructor function that initializes necessary filters * @@ -54,10 +54,11 @@ function __construct() { * * @since 1.0 * @param object $option gets the options for the UABB settings. - * @param var $color gets the color. - * @param var $opc gets the opacity for the colorpicker. + * @param bool $color gets the color. + * @param bool $opc gets the opacity for the colorpicker. + * @return string */ - function uabb_get_global_option( $option, $color = false, $opc = false ) { + function uabb_get_global_option( $option, $color = false, $opc = false ): string { $uabb_setting_options = $this->uabb_setting_options; if ( isset( $uabb_setting_options->enable_global ) && ( 'no' === $uabb_setting_options->enable_global ) ) { @@ -74,8 +75,10 @@ function uabb_get_global_option( $option, $color = false, $opc = false ) { } /** * Theme Color - + * + * @return string */ - function uabb_global_theme_color() { + function uabb_global_theme_color(): string { $color = $this->uabb_get_global_option( 'theme_color', true ); return $color; @@ -85,8 +88,10 @@ function uabb_global_theme_color() { /** * Text Color - + * + * @return string */ - function uabb_global_text_color() { + function uabb_global_text_color(): string { $color = $this->uabb_get_global_option( 'theme_text_color', true ); return $color; @@ -96,8 +101,10 @@ function uabb_global_text_color() { /** * Link Color - + * + * @return string */ - function uabb_global_link_color() { + function uabb_global_link_color(): string { $color = $this->uabb_get_global_option( 'theme_link_color', true ); return $color; @@ -107,8 +114,10 @@ function uabb_global_link_color() { /** * Link Hover Color - + * + * @return string */ - function uabb_global_link_hover_color() { + function uabb_global_link_hover_color(): string { $color = $this->uabb_get_global_option( 'theme_link_hover_color', true ); return $color; @@ -117,15 +126,20 @@ function uabb_global_link_hover_color() { /** * Button Font Family + * + * @return string */ - function uabb_global_button_font_family() { + function uabb_global_button_font_family(): string { + $btn_font_family = ''; return $btn_font_family; } /** * Button Font Size - + * + * @return string */ - function uabb_global_button_font_size() { + function uabb_global_button_font_size(): string { $font_size = $this->uabb_get_global_option( 'btn_font_size' ); return $font_size; @@ -133,8 +147,10 @@ function uabb_global_button_font_size() { /** * Button Line Height - + * + * @return string */ - function uabb_global_button_line_height() { + function uabb_global_button_line_height(): string { $line_height = $this->uabb_get_global_option( 'btn_line_height' ); return $line_height; @@ -143,8 +159,10 @@ function uabb_global_button_line_height() { /** * Button Letter Spacing - + * + * @return string */ - function uabb_global_button_letter_spacing() { + function uabb_global_button_letter_spacing(): string { $letter_spacing = $this->uabb_get_global_option( 'btn_letter_spacing' ); return $letter_spacing; @@ -153,8 +171,10 @@ function uabb_global_button_letter_spacing() { /** * Button Text Transform - + * + * @return string */ - function uabb_global_button_text_transform() { + function uabb_global_button_text_transform(): string { $text_transform = $this->uabb_get_global_option( 'btn_text_transform' ); return $text_transform; @@ -163,8 +183,10 @@ function uabb_global_button_text_transform() { /** * Button Text Color - + * + * @return string */ - function uabb_global_button_text_color() { + function uabb_global_button_text_color(): string { $color = $this->uabb_get_global_option( 'btn_text_color', true ); return $color; @@ -173,8 +195,10 @@ function uabb_global_button_text_color() { /** * Button Text Hover Color - + * + * @return string */ - function uabb_global_button_text_hover_color() { + function uabb_global_button_text_hover_color(): string { $color = $this->uabb_get_global_option( 'btn_text_hover_color', true ); return $color; @@ -183,8 +207,10 @@ function uabb_global_button_text_hover_color() { /** * Button Background Color - + * + * @return string */ - function uabb_global_button_bg_color() { + function uabb_global_button_bg_color(): string { $color = $this->uabb_get_global_option( 'btn_bg_color', true, true ); return $color; @@ -193,8 +219,10 @@ function uabb_global_button_bg_color() { /** * Button Background Hover Color - + * + * @return string */ - function uabb_global_button_bg_hover_color() { + function uabb_global_button_bg_hover_color(): string { $color = $this->uabb_get_global_option( 'btn_bg_hover_color', true, true ); return $color; @@ -203,8 +231,10 @@ function uabb_global_button_bg_hover_color() { /** * Button Border Radius - + * + * @return string */ - function uabb_global_button_border_radius() { + function uabb_global_button_border_radius(): string { $border_radius = $this->uabb_get_global_option( 'btn_border_radius' ); return $border_radius; @@ -214,8 +244,10 @@ function uabb_global_button_border_radius() { /** * Button Padding - + * + * @return string */ - function uabb_global_button_padding() { + function uabb_global_button_padding(): string { $padding = ''; $v_padding = $this->uabb_get_global_option( 'btn_vertical_padding' ); @@ -229,8 +261,10 @@ function uabb_global_button_padding() { } /** * Button Padding - + * + * @return string */ - function uabb_global_button_vertical_padding() { + function uabb_global_button_vertical_padding(): string { $v_padding = ''; $v_padding = $this->uabb_get_global_option( 'btn_vertical_padding' ); @@ -239,8 +273,10 @@ function uabb_global_button_vertical_padding() { } /** * Button Padding - + * + * @return string */ - function uabb_global_button_horizontal_padding() { + function uabb_global_button_horizontal_padding(): string { $h_padding = ''; $h_padding = $this->uabb_get_global_option( 'btn_horizontal_padding' ); diff --git a/classes/uabb-global-settings-form.php b/classes/uabb-global-settings-form.php index 19b4e473..fa502ee5 100644 --- a/classes/uabb-global-settings-form.php +++ b/classes/uabb-global-settings-form.php @@ -5,6 +5,12 @@ * @package Global Settings Form */ + // Defining the constant +if (!defined('UABB_PREFIX')) { + define('UABB_PREFIX', ''); +} + + FLBuilder::register_settings_form( 'uabb-global', array( diff --git a/classes/uabb-global-settings.php b/classes/uabb-global-settings.php index 731586c9..ed2f0f25 100644 --- a/classes/uabb-global-settings.php +++ b/classes/uabb-global-settings.php @@ -26,6 +26,7 @@ public function __construct() { * Function to add options for UABB Global Settings * * @since 1.0 + * @return void */ function add_options() { @@ -65,6 +66,7 @@ function add_options() { * Function that initializes actions for UABB Global Settings * * @since 1.0 + * @return void */ static public function init_actions() { FLBuilderAJAX::add_action( 'render_uabb_global_settings', 'UABB_Global_Styling::render_uabb_global_settings' ); @@ -75,6 +77,7 @@ static public function init_actions() { * Function to that renders UABB Global Settings * * @since 1.0 + * @return string */ static public function render_uabb_global_settings() { @@ -96,6 +99,7 @@ static public function render_uabb_global_settings() { * Function that gets UABB Global Settings * * @since 1.0 + * @return object */ static public function get_uabb_global_settings() { $settings = UABB_Init::$uabb_options['uabb_global_settings']; @@ -113,6 +117,7 @@ static public function get_uabb_global_settings() { * * @since 1.0 * @param array $settings gets a array of old and new settings values. + * @return bool */ static public function save_uabb_global_settings( $settings = array() ) { $old_settings = self::get_uabb_global_settings(); diff --git a/classes/wpml/class-wpml-uabb-infolist.php b/classes/wpml/class-wpml-uabb-infolist.php index 28c6828f..562787af 100644 --- a/classes/wpml/class-wpml-uabb-infolist.php +++ b/classes/wpml/class-wpml-uabb-infolist.php @@ -16,8 +16,9 @@ class WPML_UABB_Infolist extends WPML_Beaver_Builder_Module_With_Items { * * @since 1.6.7 * @param object $settings an object to get values of Info List. + * @return object */ - public function &get_items( $settings ) { + public function &get_items( $settings ): object { return $settings->add_list_item; } @@ -25,8 +26,9 @@ public function &get_items( $settings ) { * Function that renders Info List's fields value * * @since 1.6.7 + * @return array */ - public function get_fields() { + public function get_fields(): array { return array( 'list_item_title', 'list_item_url', 'list_item_description' ); } @@ -35,8 +37,9 @@ public function get_fields() { * * @since 1.6.7 * @param array $field gets the translated field values of the Info List. + * @return string */ - protected function get_title( $field ) { + protected function get_title( $field ): string { switch ( $field ) { case 'list_item_title': return esc_html__( 'Info List : Title', 'uabb' ); @@ -57,8 +60,9 @@ protected function get_title( $field ) { * * @since 1.6.7 * @param array $field gets an field type of the WPML editor. + * @return string */ - protected function get_editor_type( $field ) { + protected function get_editor_type( $field ): string { switch ( $field ) { case 'list_item_title': return 'LINE'; diff --git a/fields/_config.php b/fields/_config.php index 5cf60f94..64c2582d 100644 --- a/fields/_config.php +++ b/fields/_config.php @@ -27,6 +27,7 @@ function __construct() { * Function that enqueue styles and scripts * * @since 1.0 + * @return void */ function custom_field_scripts() { if ( class_exists( 'FLBuilderModel' ) && FLBuilderModel::is_builder_active() ) { diff --git a/fields/uabb-gradient/uabb-gradient.php b/fields/uabb-gradient/uabb-gradient.php index 0093250b..43492d78 100644 --- a/fields/uabb-gradient/uabb-gradient.php +++ b/fields/uabb-gradient/uabb-gradient.php @@ -58,6 +58,7 @@ function ui_fields( $fields ) { * @param array $value gets an array of gradient values. * @param array $field gets an array of field values. * @param object $settings gets the object of respective fields. + * @return void */ function uabb_gradient( $name, $value, $field, $settings ) { diff --git a/includes/admin-settings-icons.php b/includes/admin-settings-icons.php index 6a38cc7b..04cc9541 100644 --- a/includes/admin-settings-icons.php +++ b/includes/admin-settings-icons.php @@ -5,6 +5,10 @@ * @package UABB Settings Icons */ + // Defining the constant + if (!defined('UABB_PREFIX')) { + define('UABB_PREFIX', ''); +} ?>
    diff --git a/includes/admin-settings-modules.php b/includes/admin-settings-modules.php index 6ac3304d..172486ed 100644 --- a/includes/admin-settings-modules.php +++ b/includes/admin-settings-modules.php @@ -5,6 +5,11 @@ * @package UABB Settings Modules */ + // Defining the constant +if (!defined('UABB_PREFIX')) { + define('UABB_PREFIX', ''); +} + ?>
    diff --git a/includes/ui-panel-presets.php b/includes/ui-panel-presets.php index 519acaea..48f1fb56 100644 --- a/includes/ui-panel-presets.php +++ b/includes/ui-panel-presets.php @@ -7,6 +7,16 @@ * @package Imported preset templates */ +// Ensure required variables are set +$has_editing_cap = isset($has_editing_cap) ? $has_editing_cap : false; +$is_module_template = isset($is_module_template) ? $is_module_template : false; +$module_templates = isset($module_templates) ? $module_templates : array(); + +// Defining the constant +if (!defined('UABB_PREFIX')) { + define('UABB_PREFIX', ''); +} + ?>
    diff --git a/includes/ui-panel-sections.php b/includes/ui-panel-sections.php index d4b1ad88..f60e0485 100644 --- a/includes/ui-panel-sections.php +++ b/includes/ui-panel-sections.php @@ -7,6 +7,17 @@ * @package Templates from sections and presets */ +// Ensure required variables are set +$has_editing_cap = isset($has_editing_cap) ? $has_editing_cap : false; +$is_module_template = isset($is_module_template) ? $is_module_template : false; +$is_row_template = isset($is_row_template) ? $is_row_template : false; +$row_templates = isset($row_templates) ? $row_templates : array(); + +// Defining the constant +if (!defined('UABB_PREFIX')) { + define('UABB_PREFIX', ''); +} + ?>
    diff --git a/modules/advanced-icon/advanced-icon.php b/modules/advanced-icon/advanced-icon.php index 8d267188..505f6982 100644 --- a/modules/advanced-icon/advanced-icon.php +++ b/modules/advanced-icon/advanced-icon.php @@ -23,7 +23,7 @@ public function __construct() { 'name' => __( 'Advanced Icons', 'uabb' ), 'description' => __( 'Display a group of Image / Icons.', 'uabb' ), 'category' => BB_Ultimate_Addon_Helper::module_cat( BB_Ultimate_Addon_Helper::$basic_modules ), - 'group' => UABB_CAT, + 'group' => defined('UABB_CAT') ? UABB_CAT : '', 'dir' => BB_ULTIMATE_ADDON_DIR . 'modules/advanced-icon/', 'url' => BB_ULTIMATE_ADDON_URL . 'modules/advanced-icon/', 'editor_export' => false, // Defaults to true and can be omitted. diff --git a/modules/advanced-icon/includes/frontend.css.php b/modules/advanced-icon/includes/frontend.css.php index 55f69cb9..81d11709 100644 --- a/modules/advanced-icon/includes/frontend.css.php +++ b/modules/advanced-icon/includes/frontend.css.php @@ -8,6 +8,22 @@ ?>
    diff --git a/modules/image-icon/image-icon.php b/modules/image-icon/image-icon.php index 594ec7a5..fa39c67e 100644 --- a/modules/image-icon/image-icon.php +++ b/modules/image-icon/image-icon.php @@ -232,7 +232,7 @@ public function get_classes(): string { * @method get_src * @return string|null */ - public function get_src(): string|null { + public function get_src() { $src = $this->_get_uncropped_url(); // Return a cropped photo. @@ -267,7 +267,7 @@ public function get_src(): string|null { * @method get_alt * @return string|null */ - public function get_alt(): string|null { + public function get_alt() { $photo = $this->get_data(); if ( ! empty( $photo->alt ) ) { diff --git a/modules/image-separator/includes/frontend.css.php b/modules/image-separator/includes/frontend.css.php index 1b5bfbd1..75b4ca6a 100644 --- a/modules/image-separator/includes/frontend.css.php +++ b/modules/image-separator/includes/frontend.css.php @@ -5,6 +5,22 @@ * @package UABB Image Separator Module */ + // Ensure $settings is defined and initialized +if ( ! isset( $settings ) ) { + $settings = new stdClass(); // Create an empty object to avoid undefined errors +} + +// Ensure $id is defined and initialized +if ( ! isset( $id ) ) { + $id = ''; +} + +// Ensure $global_settings is defined and initialized +if ( ! isset( $global_settings ) ) { + // Create an empty object to avoid undefined errors + $global_settings = new stdClass(); +} + $settings->img_bg_color = FLBuilderColor::hex_or_rgb( $settings->img_bg_color ); $settings->img_bg_hover_color = FLBuilderColor::hex_or_rgb( $settings->img_bg_hover_color ); diff --git a/modules/image-separator/includes/frontend.js.php b/modules/image-separator/includes/frontend.js.php index 5236d668..2c3ca6f3 100644 --- a/modules/image-separator/includes/frontend.js.php +++ b/modules/image-separator/includes/frontend.js.php @@ -5,6 +5,16 @@ * @package UABB Image Separator Module */ + // Ensure $settings is defined and initialized +if ( ! isset( $settings ) ) { + $settings = new stdClass(); // Create an empty object to avoid undefined errors +} + +// Ensure $id is defined and initialized +if ( ! isset( $id ) ) { + $id = ''; +} + ?> (function($) { diff --git a/modules/image-separator/includes/frontend.php b/modules/image-separator/includes/frontend.php index 82630a1c..cb4f5f6a 100644 --- a/modules/image-separator/includes/frontend.php +++ b/modules/image-separator/includes/frontend.php @@ -5,6 +5,16 @@ * @package UABB Image Separator Module */ + // Ensure $settings is defined and initialized +if ( ! isset( $settings ) ) { + $settings = new stdClass(); // Create an empty object to avoid undefined errors +} + +// Ensure $module is defined and initialized +if ( ! isset( $module ) ) { + $module = new stdClass(); // Create an empty object to avoid undefined errors +} + $classes = $module->get_classes(); $src = $module->get_src(); $alt = $module->get_alt(); From fd764862b76cd70280687cfe9f352a7110cfc47c Mon Sep 17 00:00:00 2001 From: Abhishek Date: Fri, 13 Sep 2024 16:39:43 +0530 Subject: [PATCH 08/29] PHPStan fixes done. --- .../class-bsf-analytics-stats.php | 7 +- admin/bsf-analytics/class-bsf-analytics.php | 26 +++++-- assets/dynamic-css/uabb-theme-dynamic-css.php | 7 ++ .../class-uabb-admin-settings-multisite.php | 3 +- classes/class-uabb-admin-settings.php | 2 + classes/class-uabb-attachment.php | 6 +- classes/class-uabb-backward.php | 1 + classes/class-uabb-cloud-templates.php | 10 +++ classes/class-uabb-compatibility.php | 10 ++- classes/class-uabb-global-settings.php | 2 + classes/class-uabb-helper.php | 23 +++--- classes/class-uabb-iconfonts.php | 3 + classes/class-uabb-init.php | 10 +++ classes/class-uabb-wpml.php | 4 +- classes/class-ui-panel.php | 25 ++++++- classes/helper.php | 24 ++++--- classes/uabb-bbtheme-global-integration.php | 28 +++++--- classes/uabb-global-functions.php | 2 +- classes/uabb-global-integration.php | 4 +- fields/uabb-gradient/uabb-gradient.php | 5 +- lib/astra-notices/class-astra-notices.php | 2 +- lib/astra-notices/composer.json | 71 ++++++++++--------- modules/image-separator/image-separator.php | 41 ++++++++--- phpstan-baseline.neon | 2 - 24 files changed, 220 insertions(+), 98 deletions(-) diff --git a/admin/bsf-analytics/class-bsf-analytics-stats.php b/admin/bsf-analytics/class-bsf-analytics-stats.php index 2fe30fea..bc177567 100644 --- a/admin/bsf-analytics/class-bsf-analytics-stats.php +++ b/admin/bsf-analytics/class-bsf-analytics-stats.php @@ -105,7 +105,7 @@ private function get_default_stats() { /** * Get installed PHP version. * - * @return float PHP version. + * @return string PHP version. * @since 1.0.0 */ private function get_php_version() { @@ -233,7 +233,7 @@ private function is_content_writable() { /** * Get timezone string. * - * @return string timezone string. + * @return mixed timezone string. * @since 1.0.0 */ function wp_timezone_string() { @@ -243,7 +243,8 @@ function wp_timezone_string() { return $timezone_string; } - $offset = (float) get_option( 'gmt_offset' ); + $offset = get_option( 'gmt_offset' ); + $offset = is_numeric( $offset ) ? (float) $offset : 0; $hours = (int) $offset; $minutes = ( $offset - $hours ); diff --git a/admin/bsf-analytics/class-bsf-analytics.php b/admin/bsf-analytics/class-bsf-analytics.php index 3d541e26..a5c79953 100644 --- a/admin/bsf-analytics/class-bsf-analytics.php +++ b/admin/bsf-analytics/class-bsf-analytics.php @@ -64,13 +64,13 @@ public function __construct() { */ public function bsf_analytics_url() { - $path = wp_normalize_path( BSF_ANALYTICS_PATH ); + $path = wp_normalize_path( defined('BSF_ANALYTICS_PATH') ? BSF_ANALYTICS_PATH : '' ); $theme_dir = wp_normalize_path( get_template_directory() ); if ( strpos( $path, $theme_dir ) !== false ) { return rtrim( get_template_directory_uri() . '/admin/bsf-analytics/', '/' ); } else { - return rtrim( plugin_dir_url( BSF_ANALYTICS_FILE ), '/' ); + return rtrim( plugin_dir_url( defined('BSF_ANALYTICS_FILE') ? BSF_ANALYTICS_FILE : '' ), '/' ); } } @@ -101,15 +101,16 @@ public function enqueue_assets() { $file_rtl = ( is_rtl() ) ? '-rtl' : ''; $css_ext = ( SCRIPT_DEBUG ) ? '.css' : '.min.css'; - $css_uri = BSF_ANALYTICS_URI . '/assets/css/' . $dir_name . '/style' . $file_rtl . $css_ext; + $css_uri = (defined('BSF_ANALYTICS_URI') ? BSF_ANALYTICS_URI : '') . '/assets/css/' . $dir_name . '/style' . $file_rtl . $css_ext; - wp_enqueue_style( 'bsf-analytics-admin-style', $css_uri, false, BSF_ANALYTICS_VERSION, 'all' ); + wp_enqueue_style( 'bsf-analytics-admin-style', $css_uri, false, (defined('BSF_ANALYTICS_VERSION') ? BSF_ANALYTICS_VERSION : ''), 'all' ); } /** * Send analytics API call. * * @since 1.0.0 + * @return void */ public function send() { wp_remote_post( @@ -162,6 +163,7 @@ public function is_white_label_enabled() { * Display admin notice for usage tracking. * * @since 1.0.0 + * @return void */ public function option_notice() { @@ -236,6 +238,7 @@ public function option_notice() { * Process usage tracking opt out. * * @since 1.0.0 + * @return void */ public function handle_optin_optout() { if ( ! isset( $_GET['bsf_analytics_nonce'] ) ) { @@ -268,6 +271,7 @@ public function handle_optin_optout() { * Opt in to usage tracking. * * @since 1.0.0 + * @return void */ private function optin() { update_site_option( 'bsf_analytics_optin', 'yes' ); @@ -277,6 +281,7 @@ private function optin() { * Opt out to usage tracking. * * @since 1.0.0 + * @return void */ private function optout() { update_site_option( 'bsf_analytics_optin', 'no' ); @@ -287,6 +292,7 @@ private function optout() { * * @param array $schedules scheduled array data. * @since 1.0.0 + * @return array */ public function every_two_days_schedule( $schedules ) { $schedules['every_two_days'] = array( @@ -301,6 +307,7 @@ public function every_two_days_schedule( $schedules ) { * Schedule usage tracking event. * * @since 1.0.0 + * @return void */ private function schedule_event() { if ( ! wp_next_scheduled( 'bsf_analytics_send' ) && $this->is_tracking_enabled() ) { @@ -312,6 +319,7 @@ private function schedule_event() { * Unschedule usage tracking event. * * @since 1.0.0 + * @return void */ private function unschedule_event() { wp_clear_scheduled_hook( 'bsf_analytics_send' ); @@ -321,6 +329,7 @@ private function unschedule_event() { * Load analytics stat class. * * @since 1.0.0 + * @return void */ private function includes() { require_once __DIR__ . '/class-bsf-analytics-stats.php'; @@ -330,6 +339,7 @@ private function includes() { * Register usage tracking option in General settings page. * * @since 1.0.0 + * @return void */ public function register_usage_tracking_setting() { @@ -356,6 +366,7 @@ public function register_usage_tracking_setting() { * * @param bool $input Option value. * @since 1.0.0 + * @return string */ public function sanitize_option( $input ) { @@ -370,6 +381,7 @@ public function sanitize_option( $input ) { * Print settings field HTML. * * @since 1.0.0 + * @return void */ public function render_settings_field_html() { ?> @@ -441,7 +453,7 @@ private function get_plugin_name( $plugin_slug ) { /** * Set analytics installed time in option. * - * @return string $time analytics installed time. + * @return string|mixed $time analytics installed time. * @since 1.0.0 */ private function get_analytics_install_time() { @@ -463,6 +475,7 @@ private function get_analytics_install_time() { * @param string $value value of option. * @param string $option Option name. * @since 1.0.0 + * @return void */ public function update_analytics_option_callback( $old_value, $value, $option ) { $this->add_option_to_network( $value ); @@ -474,6 +487,7 @@ public function update_analytics_option_callback( $old_value, $value, $option ) * @param string $option Option name. * @param string $value value of option. * @since 1.0.0 + * @return void */ public function add_analytics_option_callback( $option, $value ) { $this->add_option_to_network( $value ); @@ -483,6 +497,7 @@ public function add_analytics_option_callback( $option, $value ) { * Schedule or unschedule event based on analytics option value. * * @since 1.0.0 + * @return void */ public function schedule_unschedule_event() { @@ -505,6 +520,7 @@ public function schedule_unschedule_event() { * * @param string $value value of option. * @since 1.0.0 + * @return void */ public function add_option_to_network( $value ) { diff --git a/assets/dynamic-css/uabb-theme-dynamic-css.php b/assets/dynamic-css/uabb-theme-dynamic-css.php index 80d08a88..fff9df9d 100644 --- a/assets/dynamic-css/uabb-theme-dynamic-css.php +++ b/assets/dynamic-css/uabb-theme-dynamic-css.php @@ -6,6 +6,13 @@ */ ob_start(); + +// Ensure $global_settings is defined and initialized +if (!isset($global_settings)) { + // Create an empty object to avoid undefined errors + $global_settings = new stdClass(); +} + ?> /* Theme Button diff --git a/classes/class-uabb-admin-settings-multisite.php b/classes/class-uabb-admin-settings-multisite.php index d1f5b4e0..4900c9b3 100644 --- a/classes/class-uabb-admin-settings-multisite.php +++ b/classes/class-uabb-admin-settings-multisite.php @@ -30,8 +30,9 @@ static public function init() { * * @since 1.0 * @param string $url gets the activate redirect URL. + * @return void */ - static public function uabb_lite_redirect_on_activation( $url ) { + static public function uabb_lite_redirect_on_activation( $url ): void { if ( true === get_option( 'uabb_lite_redirect' ) ) { update_option( 'uabb_lite_redirect', false ); if ( ! is_multisite() ) : diff --git a/classes/class-uabb-admin-settings.php b/classes/class-uabb-admin-settings.php index b206c9ca..a9eeeae2 100644 --- a/classes/class-uabb-admin-settings.php +++ b/classes/class-uabb-admin-settings.php @@ -59,6 +59,7 @@ static public function init_hooks() { * Enqueues the needed CSS/JS for the builder's admin settings page. * * @since 1.3.0 + * @return void */ static public function notice_styles_scripts() { // Styles. @@ -82,6 +83,7 @@ public static function add_data_attributes( $allowedposttags, $context ) { * Ask Plugin Rating * * @since 1.3.0 + * @return void */ public static function register_notices() { diff --git a/classes/class-uabb-attachment.php b/classes/class-uabb-attachment.php index bf99f88f..711785a9 100644 --- a/classes/class-uabb-attachment.php +++ b/classes/class-uabb-attachment.php @@ -27,11 +27,11 @@ function __construct() { /** * Add CTA Link field to media uploader * - * @param array $form_fields array, fields to include in attachment form. + * @param array $form_fields array, fields to include in attachment form. * @param object $post object, attachment record in database. - * @return $form_fields, modified form fields + * @return array $form_fields, modified form fields */ - function uabb_attachment_field_cta( $form_fields, $post ) { + function uabb_attachment_field_cta( $form_fields, $post ): array { $form_fields['uabb-cta-link'] = array( 'label' => __( 'Image Link', 'uabb' ), 'input' => 'text', diff --git a/classes/class-uabb-backward.php b/classes/class-uabb-backward.php index 6ddbb67f..2bf5bda4 100644 --- a/classes/class-uabb-backward.php +++ b/classes/class-uabb-backward.php @@ -25,6 +25,7 @@ class UABB_lite_Plugin_Backward { // @codingStandardsIgnoreLine. /** * Initiator + * @return self */ public static function get_instance() { if ( ! isset( self::$instance ) ) { diff --git a/classes/class-uabb-cloud-templates.php b/classes/class-uabb-cloud-templates.php index c435e44d..24a03b0e 100644 --- a/classes/class-uabb-cloud-templates.php +++ b/classes/class-uabb-cloud-templates.php @@ -39,6 +39,7 @@ class UABB_Cloud_Templates { * Initiator * * @since 1.0 + * @return UABB_Cloud_Templates */ public static function get_instance() { if ( ! isset( self::$instance ) ) { @@ -66,6 +67,7 @@ function __construct() { * Transient cloud templates * * @since 1.0 + * @return void */ static function reset_cloud_transient() { @@ -186,6 +188,7 @@ static function reset_cloud_transient() { * * @since 1.0 * @param string $type gets the type of the cloud templates. + * @return int */ static function get_cloud_templates_count( $type = '' ) { $templates = get_site_option( '_uabb_cloud_templats', false ); @@ -225,6 +228,7 @@ static function get_cloud_templates_count( $type = '' ) { * * @since 1.0 * @param string $type gets the type of the cloud templates. + * @return mixed */ static function get_cloud_templates( $type = '' ) { @@ -250,6 +254,7 @@ static function get_cloud_templates( $type = '' ) { * Fetch cloud templates * * @since 1.0 + * @return void */ function fetch_cloud_templates() { if ( ! check_ajax_referer( 'uabb_cloud_nonce', 'form_nonce' ) || ! current_user_can( 'manage_options' ) ) { @@ -269,6 +274,7 @@ function fetch_cloud_templates() { * * @since 1.0 * @param file $dat_file_type gets the DAT file type. + * @return file|string */ function get_right_type_key( $dat_file_type ) { @@ -290,6 +296,7 @@ function get_right_type_key( $dat_file_type ) { * Function that renders load filesystem * * @since 1.0 + * @return void */ public static function load_filesystem() { if ( null === self::$uabb_filesystem ) { @@ -304,6 +311,7 @@ public static function load_filesystem() { * * @since 1.0 * @param string $msg gets an string message. + * @return void */ static function message( $msg ) { if ( ! empty( $msg ) ) { @@ -324,6 +332,7 @@ static function message( $msg ) { * * @since 1.0 * @param string $type gets the type page-templates. + * @return void */ static function template_html( $type = 'page-templates' ) { @@ -463,6 +472,7 @@ static function template_html( $type = 'page-templates' ) { * * @since 1.0 * @param string $dir_name verifies the dir name with bb-ultimate-addon. + * @return array */ static public function create_local_dir( $dir_name = 'bb-ultimate-addon' ) { diff --git a/classes/class-uabb-compatibility.php b/classes/class-uabb-compatibility.php index f1ed614c..781dcf3c 100644 --- a/classes/class-uabb-compatibility.php +++ b/classes/class-uabb-compatibility.php @@ -6,7 +6,11 @@ * @package BB Version Check */ -if ( ! class_exists( 'UABB_Lite_Compatibility' ) ) { +if ( ! class_exists( 'FL_BUILDER_VERSION' ) ) { + + if ( ! defined( 'FL_BUILDER_VERSION' ) ) { + define( 'FL_BUILDER_VERSION', '' ); + } /** * UABB_Plugin_Backward initial setup @@ -49,6 +53,8 @@ class UABB_Lite_Compatibility { /** * Initiator + * + * @return self */ static public function get_instance() { if ( ! isset( self::$instance ) ) { @@ -101,7 +107,7 @@ static public function check_old_page_migration() { * Check if the page is created in between UABB version 1.7.0 - version 1.13.2 * * @since 1.3.0 - * @return bool self::$stable_version_new_page + * @return string self::$stable_version_new_page */ static public function check_stable_version_new_page() { diff --git a/classes/class-uabb-global-settings.php b/classes/class-uabb-global-settings.php index 16070073..fbf71bce 100644 --- a/classes/class-uabb-global-settings.php +++ b/classes/class-uabb-global-settings.php @@ -16,6 +16,7 @@ final class UABBGlobalSetting { * Function that initializes actions for UABB Global Settings. * * @since 1.0 + * @return void */ static public function init() { add_filter( 'fl_builder_ui_js_strings', __CLASS__ . '::add_js_string' ); @@ -26,6 +27,7 @@ static public function init() { * * @param String $js_strings slug. * @since 1.0 + * @return string */ static public function add_js_string( $js_strings ) { diff --git a/classes/class-uabb-helper.php b/classes/class-uabb-helper.php index c76fa8be..ed39423c 100644 --- a/classes/class-uabb-helper.php +++ b/classes/class-uabb-helper.php @@ -35,6 +35,7 @@ function __construct() { * Function that set constants for UABB * * @since 1.0 + * @return void */ function set_constants() { $branding = BB_Ultimate_Addon_Helper::get_builder_uabb_branding(); @@ -61,8 +62,13 @@ function set_constants() { * * @since 1.0 * @param array $cat gets the BB's UI ControlPanel Category. + * @return array|string */ static public function module_cat( $cat ) { + // Defining the constant + if (!defined('UABB_CAT')) { + define('UABB_CAT', ''); + } return class_exists( 'FLBuilderUIContentPanel' ) ? $cat : UABB_CAT; } @@ -70,6 +76,7 @@ static public function module_cat( $cat ) { * Function that renders builder UABB * * @since 1.0 + * @return mixed */ static public function get_builder_uabb() { $uabb = UABB_Init::$uabb_options['fl_builder_uabb']; @@ -106,6 +113,7 @@ static public function get_builder_uabb() { * * @since 1.0 * @param string $request_key gets the request key's value. + * @return mixed */ static public function get_builder_uabb_branding( $request_key = '' ) { $uabb = UABB_Init::$uabb_options['fl_builder_uabb_branding']; @@ -147,6 +155,7 @@ static public function get_builder_uabb_branding( $request_key = '' ) { * Function that renders all the UABB modules * * @since 1.0 + * @return array */ static public function get_all_modules() { $modules_array = array( @@ -172,6 +181,7 @@ static public function get_all_modules() { * Function that renders premium modules * * @since 1.0 + * @return array */ static public function get_premium_modules() { $premium_modules_array = array( @@ -398,12 +408,6 @@ static public function get_premium_modules() { 'class' => '', 'tag_title' => '', ), - 'list-icon' => array( - 'label' => 'List Icon', - 'demo_url' => 'https://www.ultimatebeaver.com/modules/list-icon/', - 'class' => '', - 'tag_title' => '', - ), 'uabb-login-form' => array( 'label' => 'Login Form', 'demo_url' => 'https://www.ultimatebeaver.com/modules/login-form/', @@ -569,6 +573,7 @@ static public function get_premium_modules() { * Function that renders UABB's modules * * @since 1.0 + * @return mixed|void */ static public function get_builder_uabb_modules() { $uabb = UABB_Init::$uabb_options['fl_builder_uabb_modules']; @@ -665,8 +670,8 @@ public static function is_templates_exist( $templates_type = 'all' ) { * * @since 1.0 * @param string $target gets an string for the link. - * @param string $is_nofollow gets an string for is no follow. - * @param string $echo gets an string for echo. + * @param int $is_nofollow gets an string for is no follow. + * @param int $echo gets an string for echo. * @return string */ static public function get_link_rel( $target, $is_nofollow = 0, $echo = 0 ) { @@ -681,7 +686,7 @@ static public function get_link_rel( $target, $is_nofollow = 0, $echo = 0 ) { } if ( '' === $attr ) { - return; + return ''; } $attr = trim( $attr ); diff --git a/classes/class-uabb-iconfonts.php b/classes/class-uabb-iconfonts.php index 84bbfefa..b70a5dad 100644 --- a/classes/class-uabb-iconfonts.php +++ b/classes/class-uabb-iconfonts.php @@ -24,6 +24,7 @@ public function __construct() { * Function that initializes UABB reload Icons * * @since 1.0 + * @return void */ public function init() { add_action( 'wp_ajax_uabb_reload_icons', array( $this, 'reload_icons' ) ); @@ -33,6 +34,7 @@ public function init() { * Function that renders reload Icons * * @since 1.0 + * @return void */ function reload_icons() { @@ -53,6 +55,7 @@ function reload_icons() { * Function that registers UABB Icons * * @since 1.0 + * @return void */ function register_icons() { diff --git a/classes/class-uabb-init.php b/classes/class-uabb-init.php index 1ed21bb2..47b7fe12 100644 --- a/classes/class-uabb-init.php +++ b/classes/class-uabb-init.php @@ -60,6 +60,7 @@ public function __construct() { * * @since 1.0 * @param string $actions gets an link. + * @return string */ function uabb_render_plugin_action_links( $actions ) { @@ -72,6 +73,7 @@ function uabb_render_plugin_action_links( $actions ) { * Function that includes necessary files * * @since 1.0 + * @return void */ function includes() { @@ -110,6 +112,7 @@ function includes() { /** * For Performance. * Set UABB static object to store data from database. + * @return void */ static function set_uabb_options() { self::$uabb_options = array( @@ -127,6 +130,7 @@ static function set_uabb_options() { * @since 1.0 * @param array $defaults gets the array for the form defaults. * @param string $form_type gets an array to check the form type. + * @return array */ function uabb_global_settings_form_defaults( $defaults, $form_type ) { @@ -142,6 +146,7 @@ function uabb_global_settings_form_defaults( $defaults, $form_type ) { * Function that initializes init function * * @since 1.0 + * @return void */ function init() { @@ -174,6 +179,7 @@ function init() { * Function that renders UABB's Text-domain. * * @since 1.0 + * @return bool */ function load_plugin_textdomain() { // Traditional WordPress plugin locale filter. @@ -199,6 +205,7 @@ function load_plugin_textdomain() { * Function that loads UABB's scripts * * @since 1.0 + * @return void */ function load_scripts() { @@ -230,6 +237,7 @@ function load_scripts() { * Function that renders admin notices * * @since 1.0 + * @return void */ function admin_notices() { @@ -264,6 +272,7 @@ function admin_notices() { * Function that loads the modules. * * @since 1.0 + * @return void */ function load_modules() { @@ -293,6 +302,7 @@ function load_modules() { /** * Initialize the class only after all the plugins are loaded. + * @return void */ function init_uabb() { $UABB_Init = new UABB_Init(); // @codingStandardsIgnoreLine. diff --git a/classes/class-uabb-wpml.php b/classes/class-uabb-wpml.php index aa7507ca..32052788 100644 --- a/classes/class-uabb-wpml.php +++ b/classes/class-uabb-wpml.php @@ -29,8 +29,10 @@ static public function init() { * Load files. * * @since 1.2.2 + * + * @return void */ - static public function load_files() { + static public function load_files(): void { if ( class_exists( 'WPML_Page_Builders_Defined' ) ) { require_once BB_ULTIMATE_ADDON_DIR . 'classes/wpml/class-wpml-uabb-infolist.php'; } diff --git a/classes/class-ui-panel.php b/classes/class-ui-panel.php index 012e0b6b..169edd32 100644 --- a/classes/class-ui-panel.php +++ b/classes/class-ui-panel.php @@ -45,6 +45,8 @@ public function __construct() { * Function to add toggle UABB User Interface. * * @since 1.0 + * + * @return void */ function toggle_uabb_ui() { @@ -66,6 +68,8 @@ function toggle_uabb_ui() { * Function that initializes template selector data. * * @since 1.0 + * + * @return void */ public function init() { add_filter( 'fl_builder_template_selector_data', array( $this, 'uabb_fl_builder_template_selector_data' ), 10, 2 ); @@ -78,6 +82,7 @@ public function init() { * @since 1.0 * @param array $template_data Gets the tags for the Template Data. * @param array $template Gets the author for the Template Data. + * @return array */ function uabb_fl_builder_template_selector_data( $template_data, $template ) { $template_data['tags'] = isset( $template->tags ) ? $template->tags : array(); @@ -89,6 +94,7 @@ function uabb_fl_builder_template_selector_data( $template_data, $template ) { * * @since 1.0 * @param string $url Returns the URL of the Affiliate URL. + * @return string */ function uabb_affiliate_url( $url ) { @@ -100,8 +106,13 @@ function uabb_affiliate_url( $url ) { * * @since 1.0 * @param string $url Returns the Key shortcut for showUABBGlobalSettings. + * @return string */ function uabb_bsf_registration_page_url( $url ) { + // Defining the constant + if (!defined('FL_BUILDER_LITE')) { + define('FL_BUILDER_LITE', ''); + } if ( is_multisite() && false === FL_BUILDER_LITE ) { return network_admin_url( '/settings.php?page=uabb-builder-multisite-settings#uabb-license' ); @@ -116,6 +127,7 @@ function uabb_bsf_registration_page_url( $url ) { * @param string $form_heading Gets the form Heading. * @param string $license_status_class Gets the license status class. * @param string $license_status Gets the license status. + * @return string */ function uabb_bsf_license_form_heading( $form_heading, $license_status_class, $license_status ) { @@ -138,6 +150,7 @@ function uabb_bsf_license_form_heading( $form_heading, $license_status_class, $l * Skip Brainstorm Registration screen for UABB users * * @param array $products Gets an array of Products. + * @return array */ function uabb_skip_brainstorm_menu( $products ) { @@ -156,6 +169,7 @@ function uabb_skip_brainstorm_menu( $products ) { * @param file $js Gets the js file contents. * @param array $nodes Gets the nodes of the layout builder. * @param object $global_settings Gets the object for the Layout builder. + * @return string|false */ function fl_uabb_render_js( $js, $nodes, $global_settings ) { $temp = file_get_contents( BB_ULTIMATE_ADDON_DIR . 'assets/js/uabb-frontend.js' ) . $js; @@ -170,6 +184,7 @@ function fl_uabb_render_js( $js, $nodes, $global_settings ) { * @param file $css Gets the CSS file contents. * @param array $nodes Gets the nodes of the layout builder. * @param object $global_settings Gets the object for the Layout builder. + * @return string|false */ function fl_uabb_render_css( $css, $nodes, $global_settings ) { @@ -183,6 +198,7 @@ function fl_uabb_render_css( $css, $nodes, $global_settings ) { * Function that renders Config and templates function * * @since 1.0 + * @return void */ function config() { @@ -211,6 +227,7 @@ function config() { * Load cloud templates * * @since 1.0 + * @return void */ function load_templates() { @@ -247,6 +264,7 @@ function load_templates() { * Function that renders Before Row Layouts * * @since 1.0 + * @return void */ function uabb_panel_before_row_layouts() { ?> @@ -264,7 +282,8 @@ function uabb_panel_before_row_layouts() { * * @since 1.0 * @param array $templates Gets the array of UABB templates. - * @param var $status Checks for the status of UABB templates. + * @param string $status Checks for the status of UABB templates. + * @return array */ static public function uabb_templates_data( $templates, $status = 'exclude' ) { @@ -307,6 +326,7 @@ static public function uabb_templates_data( $templates, $status = 'exclude' ) { * * @since 1.0 * @param array $buttons Gets the buttons array for UI panel. + * @return array */ function builder_ui_bar_buttons( $buttons ) { @@ -343,6 +363,7 @@ function builder_ui_bar_buttons( $buttons ) { * Row panel showing sections - rows & modules * * @since 1.0 + * @return void */ function render_ui() { @@ -384,6 +405,7 @@ function render_ui() { * Function that renders live preview * * @since 1.0 + * @return void */ function render_live_preview() { if ( FLBuilderModel::is_builder_active() ) { @@ -402,6 +424,7 @@ function render_live_preview() { /** * Enqueue Panel CSS and JS + * @return void */ function uabb_panel_css_js() { if ( FLBuilderModel::is_builder_active() ) { diff --git a/classes/helper.php b/classes/helper.php index 2245e86c..64af413a 100644 --- a/classes/helper.php +++ b/classes/helper.php @@ -35,15 +35,17 @@ static public function uabb_font_css( $font ) { $css .= 'font-weight: ' . $font['weight'] . ';'; } - echo esc_attr( $css, array() ); + echo esc_attr( $css); } /** * Initializes an array to replace recursive function * - * @param var $hex returns the bas values. + * @param string $hex returns the bas values. * - * @param array $opacity returns the replacements values. + * @param string $opacity returns the replacements values. + * + * @return string */ static public function uabb_get_color( $hex, $opacity ) { $rgba = $hex; @@ -68,8 +70,8 @@ static public function uabb_get_color( $hex, $opacity ) { * * @param var $color returns the bas values. * - * @param array $opacity returns the replacements values. - * @param array $is_array returns the replacements values. + * @param bool $opacity returns the replacements values. + * @param bool $is_array returns the replacements values. */ static public function uabb_hex2rgba( $color, $opacity = false, $is_array = false ) { @@ -121,8 +123,8 @@ static public function uabb_hex2rgba( $color, $opacity = false, $is_array = fals * * @param var $settings returns the bas values. * - * @param array $name returns the replacements values. - * @param array $opc returns the replacements values. + * @param string $name returns the replacements values. + * @param bool $opc returns the replacements values. */ static public function uabb_colorpicker( $settings, $name = '', $opc = false ) { @@ -154,6 +156,7 @@ static public function uabb_colorpicker( $settings, $name = '', $opc = false ) { * Initializes an array to replace recursive function * * @param var $gradient returns the bas values. + * @return void */ static public function uabb_gradient_css( $gradient ) { $gradient_angle = intval( $gradient['angle'] ); @@ -200,16 +203,15 @@ static public function uabb_gradient_css( $gradient ) { $css .= 'background: -moz-linear-gradient(' . $gradient_angle . 'deg, ' . $color1 . ' 0%, ' . $color2 . ' 100%);'; $css .= 'background: linear-gradient(' . $angle . 'deg, ' . $color1 . ' 0%, ' . $color2 . ' 100%);'; } - echo esc_attr( $css, array() ); + echo esc_attr( $css ); } /** * Get link rel attribute * * @since 1.3.0 * @param string $target gets an string for the link. - * @param string $is_nofollow gets an string for is no follow. - * @param string $echo gets an string for echo. - * @return string + * @param int $is_nofollow gets an string for is no follow. + * @param int $echo gets an string for echo. */ static public function get_link_rel( $target, $is_nofollow = 0, $echo = 0 ) { diff --git a/classes/uabb-bbtheme-global-integration.php b/classes/uabb-bbtheme-global-integration.php index ed5e15f0..398d9eb9 100644 --- a/classes/uabb-bbtheme-global-integration.php +++ b/classes/uabb-bbtheme-global-integration.php @@ -15,9 +15,9 @@ class UABB_BBThemeGlobalIntegration { /** * Gets the Beaver Builder theme's options * - * @var $bb_options + * @var array $bb_options */ - public $bb_options; + public array $bb_options; /** * Constructor function that initializes required actions and hooks */ @@ -69,8 +69,10 @@ function __construct() { /** * Theme Color - + * + * @return string */ - function uabb_global_theme_color() { + function uabb_global_theme_color(): string { $color = $this->bb_options['theme_color']; return $color; @@ -78,8 +80,10 @@ function uabb_global_theme_color() { /** * Theme Text Color - + * + * @return string */ - function uabb_global_text_color() { + function uabb_global_text_color(): string { $color = $this->bb_options['theme_text_color']; return $color; @@ -87,8 +91,10 @@ function uabb_global_text_color() { /** * Button Background Color - + * + * @return string */ - function uabb_global_button_bg_color() { + function uabb_global_button_bg_color(): string { $color = $this->bb_options['btn_bg_color']; return $color; @@ -97,8 +103,10 @@ function uabb_global_button_bg_color() { /** * Button Background Hover Color - + * + * @return string */ - function uabb_global_button_bg_hover_color() { + function uabb_global_button_bg_hover_color(): string { $color = $this->bb_options['btn_bg_hover_color']; return $color; @@ -106,8 +114,10 @@ function uabb_global_button_bg_hover_color() { /** * Button Text Color - + * + * @return string */ - function uabb_global_button_text_color() { + function uabb_global_button_text_color(): string { $color = $this->bb_options['btn_text_color']; return $color; @@ -116,8 +126,10 @@ function uabb_global_button_text_color() { /** * Button Text Hover Color - + * + * @return string */ - function uabb_global_button_text_hover_color() { + function uabb_global_button_text_hover_color(): string { $color = $this->bb_options['btn_text_hover_color']; return $color; diff --git a/classes/uabb-global-functions.php b/classes/uabb-global-functions.php index d246783a..edd0f359 100644 --- a/classes/uabb-global-functions.php +++ b/classes/uabb-global-functions.php @@ -943,7 +943,7 @@ function uabb_theme_button_typography( $default ) { * * @since 1.3.1 * @param string $mode The mode of padding (e.g., 'top', 'bottom', etc.). - * @param string $value The padding value to be checked. + * @param string $value Checks if user has set the Padding, if yes, returns users value else checks * @return string - Padding value */ function uabb_theme_padding_button( $mode, $value ): string { diff --git a/classes/uabb-global-integration.php b/classes/uabb-global-integration.php index 7ec77d58..39ae5f2f 100644 --- a/classes/uabb-global-integration.php +++ b/classes/uabb-global-integration.php @@ -15,9 +15,9 @@ class UABBGlobalSettingsOptions { /** * Constructor function that initializes necessary filters * - * @var $uabb_setting_options gets the uabb setting options + * @var mixed $uabb_setting_options gets the uabb setting options */ - public object $uabb_setting_options; + public $uabb_setting_options; /** * Constructor function that initializes necessary filters * diff --git a/fields/uabb-gradient/uabb-gradient.php b/fields/uabb-gradient/uabb-gradient.php index 43492d78..211dbd7f 100644 --- a/fields/uabb-gradient/uabb-gradient.php +++ b/fields/uabb-gradient/uabb-gradient.php @@ -27,9 +27,10 @@ function __construct() { * Function that renders row's CSS * * @since 1.0 - * @param array $fields gets the fields for the gradient. + * @param array $fields gets the fields for the gradient. + * @return array */ - function ui_fields( $fields ) { + function ui_fields( array $fields ) { $fields['uabb-gradient'] = BB_ULTIMATE_ADDON_DIR . 'fields/uabb-gradient/ui-field-uabb-gradient.php'; return $fields; diff --git a/lib/astra-notices/class-astra-notices.php b/lib/astra-notices/class-astra-notices.php index edc05a9f..0dca35eb 100644 --- a/lib/astra-notices/class-astra-notices.php +++ b/lib/astra-notices/class-astra-notices.php @@ -28,7 +28,7 @@ class Astra_Notices { * @var array Notices. * @since 1.0.0 */ - private static $version = '1.1.11'; + private static $version = '1.1.8'; /** * Notices diff --git a/lib/astra-notices/composer.json b/lib/astra-notices/composer.json index 3496441a..0f129b4d 100644 --- a/lib/astra-notices/composer.json +++ b/lib/astra-notices/composer.json @@ -1,38 +1,39 @@ { - "name": "brainstormforce/astra-notices", - "type": "wordpress-plugin", - "description": "Easily create admin notices", - "license": "GPL-3.0-or-later", - "authors": [ - { - "name": "Brainstorm Force", - "email": "hello@bsf.io" - } - ], - "require": { - "composer/installers": "^2.0" - }, - "require-dev": { - "dealerdirect/phpcodesniffer-composer-installer": "^0.7.1", - "phpcompatibility/phpcompatibility-wp": "^2.1", - "phpunit/phpunit": "^7", - "wp-cli/dist-archive-command": "^2.0", - "wp-coding-standards/wpcs": "^2.3", - "wp-phpunit/wp-phpunit": "^5", - "roots/wordpress": "^5.9", - "yoast/phpunit-polyfills": "^1.0" - }, - "config": { - "allow-plugins": { - "composer/installers": true, - "dealerdirect/phpcodesniffer-composer-installer": true, - "roots/wordpress-core-installer": true - } - }, - "minimum-stability": "stable", - "scripts": { - "format": "vendor/bin/phpcbf", - "lint": "vendor/bin/phpcs", - "test": "vendor/bin/phpunit" + "name": "brainstormforce/astra-notices", + "type": "wordpress-plugin", + "description": "Easily create admin notices", + "version": "1.1.8", + "license": "GPL v3", + "authors": [ + { + "name": "Brainstorm Force", + "email": "hello@bsf.io" } + ], + "require": { + "composer/installers": "^2.0" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "^0.7.1", + "phpcompatibility/phpcompatibility-wp": "^2.1", + "phpunit/phpunit": "^7", + "wp-cli/dist-archive-command": "^2.0", + "wp-coding-standards/wpcs": "^2.3", + "wp-phpunit/wp-phpunit": "^5", + "roots/wordpress": "^5.9", + "yoast/phpunit-polyfills": "^1.0" + }, + "config": { + "allow-plugins": { + "composer/installers": true, + "dealerdirect/phpcodesniffer-composer-installer": true, + "roots/wordpress-core-installer": true + } + }, + "minimum-stability": "stable", + "scripts": { + "format": "vendor/bin/phpcbf", + "lint": "vendor/bin/phpcs", + "test": "vendor/bin/phpunit" + } } diff --git a/modules/image-separator/image-separator.php b/modules/image-separator/image-separator.php index 48f7a84d..822e3fca 100644 --- a/modules/image-separator/image-separator.php +++ b/modules/image-separator/image-separator.php @@ -5,6 +5,7 @@ * @package UABB Image Separator Module */ + /** * Function that initializes Image Separator Module * @@ -16,7 +17,7 @@ class UABBImageSeparatorModule extends FLBuilderModule { * Variable for Image Separator module * * @property $data - * @var $data + * @var mixed|null $data */ public $data = null; @@ -25,7 +26,7 @@ class UABBImageSeparatorModule extends FLBuilderModule { * * @property $_editor * @protected - * @var $_editor + * @var mixed|null $_editor */ protected $_editor = null; @@ -40,7 +41,7 @@ public function __construct() { 'name' => __( 'Image Separator', 'uabb' ), 'description' => __( 'Use Image as a separator ', 'uabb' ), 'category' => BB_Ultimate_Addon_Helper::module_cat( BB_Ultimate_Addon_Helper::$basic_modules ), - 'group' => UABB_CAT, + 'group' => defined('UABB_CAT') ? UABB_CAT : '', 'dir' => BB_ULTIMATE_ADDON_DIR . 'modules/image-separator/', 'url' => BB_ULTIMATE_ADDON_URL . 'modules/image-separator/', 'icon' => 'format-image.svg', @@ -58,9 +59,10 @@ public function __construct() { * Function to update the Image src * * @method update - * @param obejct $settings gets the settings for the object. + * @param object $settings gets the settings for the object. + * @return object */ - public function update( $settings ) { + public function update( $settings ): object { // Make sure we have a photo_src property. if ( ! isset( $settings->photo_src ) ) { $settings->photo_src = ''; @@ -83,8 +85,10 @@ public function update( $settings ) { * Function to delete the cropped image src * * @method delete + * + * @return void */ - public function delete() { + public function delete(): void { $cropped_path = $this->_get_cropped_path(); if ( file_exists( $cropped_path['path'] ) ) { @@ -96,6 +100,7 @@ public function delete() { * Function to crop the the existing image * * @method crop + * @return mixed */ public function crop() { // Delete an existing crop if it exists. @@ -115,6 +120,10 @@ public function crop() { $new_width = $size['width']; $new_height = $size['height']; + // Initialize crop ratios to prevent undefined variables. + $ratio_1 = 1; + $ratio_2 = 1; + // Get the crop ratios. if ( 'circle' === $this->settings->image_style ) { $ratio_1 = 1; @@ -151,8 +160,10 @@ public function crop() { * Function to get the Image src * * @method get_data + * + * @return object */ - public function get_data() { + public function get_data(): object { if ( ! $this->data ) { // Photo source is set to "library". @@ -175,6 +186,7 @@ public function get_data() { * Function to get the classes for the Image src * * @method get_classes + * @return string */ public function get_classes() { $classes = array( 'uabb-photo-img' ); @@ -206,6 +218,7 @@ public function get_classes() { * Function to get src for the Image src * * @method get_src + * @return mixed */ public function get_src() { $src = $this->_get_uncropped_url(); @@ -240,6 +253,7 @@ public function get_src() { * Function to get alternate val for the Image * * @method get_alt + * @return string|null */ public function get_alt() { $photo = $this->get_data(); @@ -253,6 +267,7 @@ public function get_alt() { } elseif ( ! empty( $photo->title ) ) { return htmlspecialchars( $photo->title ); } + return null; } /** @@ -260,8 +275,9 @@ public function get_alt() { * * @method _has_source * @protected + * @return boolean */ - protected function _has_source() { + protected function _has_source(): bool { if ( ! empty( $this->settings->photo_src ) ) { return true; } @@ -296,6 +312,7 @@ protected function _get_editor() { * * @method _get_cropped_path * @protected + * @return array */ protected function _get_cropped_path() { $crop = empty( $this->settings->image_style ) ? 'simple' : $this->settings->image_style; @@ -331,12 +348,13 @@ protected function _get_cropped_path() { * * @method _get_uncropped_url * @protected + * @return string */ - protected function _get_uncropped_url() { + protected function _get_uncropped_url(): string { if ( ! empty( $this->settings->photo_src ) ) { $url = $this->settings->photo_src; } else { - $url = FL_BUILDER_URL . 'img/pixel.png'; + $url = (defined('FL_BUILDER_URL') ? FL_BUILDER_URL : '') . 'img/pixel.png'; } return $url; @@ -347,8 +365,9 @@ protected function _get_uncropped_url() { * * @method _get_uncropped_url * @protected + * @return string */ - protected function _get_cropped_demo_url() { + protected function _get_cropped_demo_url(): string { $info = $this->_get_cropped_path(); return FL_BUILDER_DEMO_CACHE_URL . $info['filename']; diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 75284321..95cd2a2c 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -6,8 +6,6 @@ parameters: count: 1 path: test - - #common errors - '#type has no value type specified in iterable type array\.$#' From 9eb56f523e6b8faafa42cae75840f61f088866c1 Mon Sep 17 00:00:00 2001 From: Abhishek Date: Fri, 13 Sep 2024 16:51:19 +0530 Subject: [PATCH 09/29] Implemented phpstan-baseline.neon file --- phpstan-baseline.neon | 767 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 766 insertions(+), 1 deletion(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 95cd2a2c..c4ac64ff 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -10,4 +10,769 @@ parameters: - '#type has no value type specified in iterable type array\.$#' - '#with no value type specified in iterable type array\.$#' - - "#^While loop condition is always true\\.$#" \ No newline at end of file + - "#^While loop condition is always true\\.$#" + + - + message: "#^Method BSF_Analytics_Stats\\:\\:format_plugin\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: admin/bsf-analytics/class-bsf-analytics-stats.php + + - + message: "#^Method BSF_Analytics_Stats\\:\\:get_active_plugins\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: admin/bsf-analytics/class-bsf-analytics-stats.php + + - + message: "#^Method BSF_Analytics_Stats\\:\\:get_default_stats\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: admin/bsf-analytics/class-bsf-analytics-stats.php + + - + message: "#^Method BSF_Analytics_Stats\\:\\:get_stats\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: admin/bsf-analytics/class-bsf-analytics-stats.php + + - + message: "#^Property BSF_Analytics_Stats\\:\\:\\$plugins type has no value type specified in iterable type array\\.$#" + count: 1 + path: admin/bsf-analytics/class-bsf-analytics-stats.php + + - + message: "#^Action callback returns array but should not return anything\\.$#" + count: 1 + path: admin/bsf-analytics/class-bsf-analytics.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: admin/bsf-analytics/class-bsf-analytics.php + + - + message: "#^Method BSF_Analytics\\:\\:every_two_days_schedule\\(\\) has parameter \\$schedules with no value type specified in iterable type array\\.$#" + count: 1 + path: admin/bsf-analytics/class-bsf-analytics.php + + - + message: "#^Method BSF_Analytics\\:\\:every_two_days_schedule\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: admin/bsf-analytics/class-bsf-analytics.php + + - + message: "#^Method BSF_Analytics\\:\\:get_plugin_name\\(\\) should return string but return statement is missing\\.$#" + count: 1 + path: admin/bsf-analytics/class-bsf-analytics.php + + - + message: "#^Method UABBBuilderAdminSettings\\:\\:add_data_attributes\\(\\) has parameter \\$allowedposttags with no value type specified in iterable type array\\.$#" + count: 1 + path: classes/class-uabb-admin-settings.php + + - + message: "#^Method UABBBuilderAdminSettings\\:\\:add_data_attributes\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: classes/class-uabb-admin-settings.php + + - + message: "#^Property UABBBuilderAdminSettings\\:\\:\\$errors type has no value type specified in iterable type array\\.$#" + count: 1 + path: classes/class-uabb-admin-settings.php + + - + message: "#^Undefined variable\\: \\$icon$#" + count: 1 + path: classes/class-uabb-admin-settings.php + + - + message: "#^Variable \\$icon in empty\\(\\) is never defined\\.$#" + count: 1 + path: classes/class-uabb-admin-settings.php + + - + message: "#^Method UABB_Attachment\\:\\:uabb_attachment_field_cta_save\\(\\) has parameter \\$attachment with no value type specified in iterable type array\\.$#" + count: 1 + path: classes/class-uabb-attachment.php + + - + message: "#^Method UABB_Attachment\\:\\:uabb_attachment_field_cta_save\\(\\) has parameter \\$post with no value type specified in iterable type array\\.$#" + count: 1 + path: classes/class-uabb-attachment.php + + - + message: "#^Method UABB_Attachment\\:\\:uabb_attachment_field_cta_save\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: classes/class-uabb-attachment.php + + - + message: "#^PHPDoc tag @var has invalid value \\(\\$instance Class instance\\.\\)\\: Unexpected token \"\\$instance\", expected type at offset 65$#" + count: 1 + path: classes/class-uabb-backward.php + + - + message: "#^Property UABB_lite_Plugin_Backward\\:\\:\\$instance has no type specified\\.$#" + count: 1 + path: classes/class-uabb-backward.php + + - + message: "#^Comparison operation \"\\<\" between int\\<1, max\\> and 1 is always false\\.$#" + count: 1 + path: classes/class-uabb-cloud-templates.php + + - + message: "#^Function update_site_option invoked with 3 parameters, 2 required\\.$#" + count: 1 + path: classes/class-uabb-cloud-templates.php + + - + message: "#^Method UABB_Cloud_Templates\\:\\:create_local_dir\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: classes/class-uabb-cloud-templates.php + + - + message: "#^Method UABB_Cloud_Templates\\:\\:get_right_type_key\\(\\) has invalid return type file\\.$#" + count: 1 + path: classes/class-uabb-cloud-templates.php + + - + message: "#^PHPDoc tag @var has invalid value \\(\\$cloud_url cloud_url\\)\\: Unexpected token \"\\$cloud_url\", expected type at offset 64$#" + count: 1 + path: classes/class-uabb-cloud-templates.php + + - + message: "#^PHPDoc tag @var has invalid value \\(\\$instance instance\\)\\: Unexpected token \"\\$instance\", expected type at offset 82$#" + count: 1 + path: classes/class-uabb-cloud-templates.php + + - + message: "#^PHPDoc tag @var has invalid value \\(\\$uabb_filesystem UABB filesystem\\)\\: Unexpected token \"\\$uabb_filesystem\", expected type at offset 71$#" + count: 1 + path: classes/class-uabb-cloud-templates.php + + - + message: "#^Property UABB_Cloud_Templates\\:\\:\\$cloud_url has no type specified\\.$#" + count: 1 + path: classes/class-uabb-cloud-templates.php + + - + message: "#^Property UABB_Cloud_Templates\\:\\:\\$instance has no type specified\\.$#" + count: 1 + path: classes/class-uabb-cloud-templates.php + + - + message: "#^Property UABB_Cloud_Templates\\:\\:\\$uabb_filesystem has no type specified\\.$#" + count: 1 + path: classes/class-uabb-cloud-templates.php + + - + message: "#^PHPDoc tag @var has invalid value \\(\\$instance Class instance\\.\\)\\: Unexpected token \"\\$instance\", expected type at offset 65$#" + count: 1 + path: classes/class-uabb-compatibility.php + + - + message: "#^PHPDoc tag @var has invalid value \\(\\$stable_version_new_page\\)\\: Unexpected token \"\\$stable_version_new_page\", expected type at offset 72$#" + count: 1 + path: classes/class-uabb-compatibility.php + + - + message: "#^PHPDoc tag @var has invalid value \\(\\$uabb_migration\\)\\: Unexpected token \"\\$uabb_migration\", expected type at offset 75$#" + count: 1 + path: classes/class-uabb-compatibility.php + + - + message: "#^PHPDoc tag @var has invalid value \\(\\$version_bb_check\\)\\: Unexpected token \"\\$version_bb_check\", expected type at offset 72$#" + count: 1 + path: classes/class-uabb-compatibility.php + + - + message: "#^Property UABB_Lite_Compatibility\\:\\:\\$instance has no type specified\\.$#" + count: 1 + path: classes/class-uabb-compatibility.php + + - + message: "#^Property UABB_Lite_Compatibility\\:\\:\\$stable_version_new_page has no type specified\\.$#" + count: 1 + path: classes/class-uabb-compatibility.php + + - + message: "#^Property UABB_Lite_Compatibility\\:\\:\\$uabb_migration has no type specified\\.$#" + count: 1 + path: classes/class-uabb-compatibility.php + + - + message: "#^Property UABB_Lite_Compatibility\\:\\:\\$version_bb_check has no type specified\\.$#" + count: 1 + path: classes/class-uabb-compatibility.php + + - + message: "#^Cannot assign offset 'uabbGlobalSettings' to string\\.$#" + count: 2 + path: classes/class-uabb-global-settings.php + + - + message: "#^Method UABBGlobalSetting\\:\\:add_js_string\\(\\) should return string but returns array\\\\.$#" + count: 1 + path: classes/class-uabb-global-settings.php + + - + message: "#^Strict comparison using \\=\\=\\= between 'UABB' and '' will always evaluate to false\\.$#" + count: 1 + path: classes/class-uabb-global-settings.php + + - + message: "#^Call to function is_array\\(\\) with int\\<0, max\\> will always evaluate to false\\.$#" + count: 1 + path: classes/class-uabb-helper.php + + - + message: "#^Method BB_Ultimate_Addon_Helper\\:\\:get_all_modules\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: classes/class-uabb-helper.php + + - + message: "#^Method BB_Ultimate_Addon_Helper\\:\\:get_link_rel\\(\\) should return string but return statement is missing\\.$#" + count: 1 + path: classes/class-uabb-helper.php + + - + message: "#^Method BB_Ultimate_Addon_Helper\\:\\:get_premium_modules\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: classes/class-uabb-helper.php + + - + message: "#^Method BB_Ultimate_Addon_Helper\\:\\:module_cat\\(\\) has parameter \\$cat with no value type specified in iterable type array\\.$#" + count: 1 + path: classes/class-uabb-helper.php + + - + message: "#^Method BB_Ultimate_Addon_Helper\\:\\:module_cat\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: classes/class-uabb-helper.php + + - + message: "#^PHPDoc tag @var has invalid value \\(\\$basic_modules Category Strings\\)\\: Unexpected token \"\\$basic_modules\", expected type at offset 83$#" + count: 1 + path: classes/class-uabb-helper.php + + - + message: "#^Property BB_Ultimate_Addon_Helper\\:\\:\\$basic_modules has no type specified\\.$#" + count: 1 + path: classes/class-uabb-helper.php + + - + message: "#^Result of && is always false\\.$#" + count: 1 + path: classes/class-uabb-helper.php + + - + message: "#^Strict comparison using \\=\\=\\= between false and true will always evaluate to false\\.$#" + count: 1 + path: classes/class-uabb-helper.php + + - + message: "#^Argument of an invalid type array\\\\|false supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: classes/class-uabb-iconfonts.php + + - + message: "#^Binary operation \"\\.\" between array and '/' results in an error\\.$#" + count: 5 + path: classes/class-uabb-iconfonts.php + + - + message: "#^Method UABB_IconFonts\\:\\:recurse_copy\\(\\) has no return type specified\\.$#" + count: 1 + path: classes/class-uabb-iconfonts.php + + - + message: "#^Method UABB_IconFonts\\:\\:recurse_copy\\(\\) has parameter \\$dst with no value type specified in iterable type array\\.$#" + count: 1 + path: classes/class-uabb-iconfonts.php + + - + message: "#^Method UABB_IconFonts\\:\\:recurse_copy\\(\\) has parameter \\$src with no value type specified in iterable type array\\.$#" + count: 1 + path: classes/class-uabb-iconfonts.php + + - + message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" + count: 1 + path: classes/class-uabb-init.php + + - + message: "#^Cannot assign new offset to string\\.$#" + count: 1 + path: classes/class-uabb-init.php + + - + message: "#^Method UABB_Init\\:\\:uabb_global_settings_form_defaults\\(\\) has parameter \\$defaults with no value type specified in iterable type array\\.$#" + count: 1 + path: classes/class-uabb-init.php + + - + message: "#^Method UABB_Init\\:\\:uabb_global_settings_form_defaults\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: classes/class-uabb-init.php + + - + message: "#^Comparison operation \"\\<\" between 1 and 1 is always false\\.$#" + count: 1 + path: classes/class-uabb-update.php + + - + message: "#^Method UABB_lite_Plugin_Update\\:\\:get_instance\\(\\) has no return type specified\\.$#" + count: 1 + path: classes/class-uabb-update.php + + - + message: "#^PHPDoc tag @var has invalid value \\(\\$instance Class instance\\.\\)\\: Unexpected token \"\\$instance\", expected type at offset 65$#" + count: 1 + path: classes/class-uabb-update.php + + - + message: "#^Property UABB_lite_Plugin_Update\\:\\:\\$instance has no type specified\\.$#" + count: 1 + path: classes/class-uabb-update.php + + - + message: "#^Method UABBLite_WPML_Translatable\\:\\:wpml_uabb_modules_translate\\(\\) has parameter \\$form with no value type specified in iterable type array\\.$#" + count: 1 + path: classes/class-uabb-wpml.php + + - + message: "#^Method UABBLite_WPML_Translatable\\:\\:wpml_uabb_modules_translate\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: classes/class-uabb-wpml.php + + - + message: "#^Call to function method_exists\\(\\) with 'FLBuilder' and 'register_templates' will always evaluate to false\\.$#" + count: 1 + path: classes/class-ui-panel.php + + - + message: "#^Method UABB_UI_Panels\\:\\:builder_ui_bar_buttons\\(\\) has parameter \\$buttons with no value type specified in iterable type array\\.$#" + count: 1 + path: classes/class-ui-panel.php + + - + message: "#^Method UABB_UI_Panels\\:\\:builder_ui_bar_buttons\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: classes/class-ui-panel.php + + - + message: "#^Method UABB_UI_Panels\\:\\:fl_uabb_render_css\\(\\) has parameter \\$nodes with no value type specified in iterable type array\\.$#" + count: 1 + path: classes/class-ui-panel.php + + - + message: "#^Method UABB_UI_Panels\\:\\:fl_uabb_render_js\\(\\) has parameter \\$nodes with no value type specified in iterable type array\\.$#" + count: 1 + path: classes/class-ui-panel.php + + - + message: "#^Method UABB_UI_Panels\\:\\:uabb_fl_builder_template_selector_data\\(\\) has parameter \\$template with no value type specified in iterable type array\\.$#" + count: 1 + path: classes/class-ui-panel.php + + - + message: "#^Method UABB_UI_Panels\\:\\:uabb_fl_builder_template_selector_data\\(\\) has parameter \\$template_data with no value type specified in iterable type array\\.$#" + count: 1 + path: classes/class-ui-panel.php + + - + message: "#^Method UABB_UI_Panels\\:\\:uabb_fl_builder_template_selector_data\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: classes/class-ui-panel.php + + - + message: "#^Method UABB_UI_Panels\\:\\:uabb_skip_brainstorm_menu\\(\\) has parameter \\$products with no value type specified in iterable type array\\.$#" + count: 1 + path: classes/class-ui-panel.php + + - + message: "#^Method UABB_UI_Panels\\:\\:uabb_skip_brainstorm_menu\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: classes/class-ui-panel.php + + - + message: "#^Method UABB_UI_Panels\\:\\:uabb_templates_data\\(\\) has parameter \\$templates with no value type specified in iterable type array\\.$#" + count: 1 + path: classes/class-ui-panel.php + + - + message: "#^Method UABB_UI_Panels\\:\\:uabb_templates_data\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: classes/class-ui-panel.php + + - + message: "#^Method UABB_Helper\\:\\:get_link_rel\\(\\) has no return type specified\\.$#" + count: 1 + path: classes/helper.php + + - + message: "#^Method UABB_Helper\\:\\:uabb_colorpicker\\(\\) has no return type specified\\.$#" + count: 1 + path: classes/helper.php + + - + message: "#^Method UABB_Helper\\:\\:uabb_font_css\\(\\) has parameter \\$font with no value type specified in iterable type array\\.$#" + count: 1 + path: classes/helper.php + + - + message: "#^Method UABB_Helper\\:\\:uabb_hex2rgba\\(\\) has no return type specified\\.$#" + count: 1 + path: classes/helper.php + + - + message: "#^Property UABB_BBThemeGlobalIntegration\\:\\:\\$bb_options type has no value type specified in iterable type array\\.$#" + count: 1 + path: classes/uabb-bbtheme-global-integration.php + + - + message: "#^Call to function is_array\\(\\) with non\\-falsy\\-string will always evaluate to false\\.$#" + count: 1 + path: classes/uabb-global-functions.php + + - + message: "#^Function array_replace_recursive\\(\\) has parameter \\$replacements with no value type specified in iterable type array\\.$#" + count: 1 + path: classes/uabb-global-functions.php + + - + message: "#^Function recurse\\(\\) has parameter \\$replacements with no value type specified in iterable type array\\.$#" + count: 1 + path: classes/uabb-global-functions.php + + - + message: "#^Function uabb_theme_border\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: classes/uabb-global-functions.php + + - + message: "#^Function uabb_theme_button_typography\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: classes/uabb-global-functions.php + + - + message: "#^Method UABB_Global_Styling\\:\\:save_uabb_global_settings\\(\\) has parameter \\$settings with no value type specified in iterable type array\\.$#" + count: 1 + path: classes/uabb-global-settings.php + + - + message: "#^Method WPML_UABB_Infolist\\:\\:get_editor_type\\(\\) has parameter \\$field with no value type specified in iterable type array\\.$#" + count: 1 + path: classes/wpml/class-wpml-uabb-infolist.php + + - + message: "#^Method WPML_UABB_Infolist\\:\\:get_fields\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: classes/wpml/class-wpml-uabb-infolist.php + + - + message: "#^Method WPML_UABB_Infolist\\:\\:get_title\\(\\) has parameter \\$field with no value type specified in iterable type array\\.$#" + count: 1 + path: classes/wpml/class-wpml-uabb-infolist.php + + - + message: "#^Action callback returns array\\ but should not return anything\\.$#" + count: 1 + path: fields/uabb-gradient/uabb-gradient.php + + - + message: "#^Method UABB_Gradient\\:\\:uabb_gradient\\(\\) has parameter \\$field with no value type specified in iterable type array\\.$#" + count: 1 + path: fields/uabb-gradient/uabb-gradient.php + + - + message: "#^Method UABB_Gradient\\:\\:uabb_gradient\\(\\) has parameter \\$value with no value type specified in iterable type array\\.$#" + count: 1 + path: fields/uabb-gradient/uabb-gradient.php + + - + message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \", expected '\\(' at offset 120$#" + count: 1 + path: modules/advanced-icon/advanced-icon.php + + - + message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \", expected '\\(' at offset 114$#" + count: 1 + path: modules/flip-box/flip-box.php + + - + message: "#^PHPDoc tag @method has invalid value \\(get_icons\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 89$#" + count: 1 + path: modules/flip-box/flip-box.php + + - + message: "#^PHPDoc tag @method has invalid value \\(render_button\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 88$#" + count: 1 + path: modules/flip-box/flip-box.php + + - + message: "#^PHPDoc tag @method has invalid value \\(render_icon\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 95$#" + count: 1 + path: modules/flip-box/flip-box.php + + - + message: "#^Method ImageIconModule\\:\\:_get_cropped_path\\(\\) return type has no value type specified in iterable type array\\.$#" + count: 1 + path: modules/image-icon/image-icon.php + + - + message: "#^Method ImageIconModule\\:\\:_get_editor\\(\\) has no return type specified\\.$#" + count: 1 + path: modules/image-icon/image-icon.php + + - + message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\n\\\\t \", expected '\\(' at offset 113$#" + count: 1 + path: modules/image-icon/image-icon.php + + - + message: "#^PHPDoc tag @method has invalid value \\(_get_cropped_path\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 77$#" + count: 1 + path: modules/image-icon/image-icon.php + + - + message: "#^PHPDoc tag @method has invalid value \\(_get_editor\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 65$#" + count: 1 + path: modules/image-icon/image-icon.php + + - + message: "#^PHPDoc tag @method has invalid value \\(_get_uncropped_url\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 93$#" + count: 1 + path: modules/image-icon/image-icon.php + + - + message: "#^PHPDoc tag @method has invalid value \\(_has_source\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 71$#" + count: 1 + path: modules/image-icon/image-icon.php + + - + message: "#^PHPDoc tag @method has invalid value \\(crop\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 60$#" + count: 1 + path: modules/image-icon/image-icon.php + + - + message: "#^PHPDoc tag @method has invalid value \\(delete\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 74$#" + count: 1 + path: modules/image-icon/image-icon.php + + - + message: "#^PHPDoc tag @method has invalid value \\(get_alt\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 83$#" + count: 1 + path: modules/image-icon/image-icon.php + + - + message: "#^PHPDoc tag @method has invalid value \\(get_classes\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 82$#" + count: 1 + path: modules/image-icon/image-icon.php + + - + message: "#^PHPDoc tag @method has invalid value \\(get_data\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 87$#" + count: 1 + path: modules/image-icon/image-icon.php + + - + message: "#^PHPDoc tag @method has invalid value \\(get_src\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 86$#" + count: 1 + path: modules/image-icon/image-icon.php + + - + message: "#^PHPDoc tag @method has invalid value \\(update\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 63$#" + count: 1 + path: modules/image-icon/image-icon.php + + - + message: "#^Method UABBImageSeparatorModule\\:\\:_get_editor\\(\\) has no return type specified\\.$#" + count: 1 + path: modules/image-separator/image-separator.php + + - + message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\n\\\\t \", expected '\\(' at offset 118$#" + count: 1 + path: modules/image-separator/image-separator.php + + - + message: "#^PHPDoc tag @method has invalid value \\(_get_cropped_path\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 91$#" + count: 1 + path: modules/image-separator/image-separator.php + + - + message: "#^PHPDoc tag @method has invalid value \\(_get_editor\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 80$#" + count: 1 + path: modules/image-separator/image-separator.php + + - + message: "#^PHPDoc tag @method has invalid value \\(_get_uncropped_url\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 93$#" + count: 2 + path: modules/image-separator/image-separator.php + + - + message: "#^PHPDoc tag @method has invalid value \\(_has_source\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 71$#" + count: 1 + path: modules/image-separator/image-separator.php + + - + message: "#^PHPDoc tag @method has invalid value \\(crop\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 68$#" + count: 1 + path: modules/image-separator/image-separator.php + + - + message: "#^PHPDoc tag @method has invalid value \\(delete\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 71$#" + count: 1 + path: modules/image-separator/image-separator.php + + - + message: "#^PHPDoc tag @method has invalid value \\(get_alt\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 75$#" + count: 1 + path: modules/image-separator/image-separator.php + + - + message: "#^PHPDoc tag @method has invalid value \\(get_classes\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 81$#" + count: 1 + path: modules/image-separator/image-separator.php + + - + message: "#^PHPDoc tag @method has invalid value \\(get_data\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 62$#" + count: 1 + path: modules/image-separator/image-separator.php + + - + message: "#^PHPDoc tag @method has invalid value \\(get_src\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 69$#" + count: 1 + path: modules/image-separator/image-separator.php + + - + message: "#^PHPDoc tag @method has invalid value \\(update\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 63$#" + count: 1 + path: modules/image-separator/image-separator.php + + - + message: "#^PHPDoc tag @property has invalid value \\(\\$_editor\\)\\: Unexpected token \"\\$_editor\", expected type at offset 62$#" + count: 1 + path: modules/image-separator/image-separator.php + + - + message: "#^PHPDoc tag @property has invalid value \\(\\$data\\)\\: Unexpected token \"\\$data\", expected type at offset 62$#" + count: 1 + path: modules/image-separator/image-separator.php + + - + message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \", expected '\\(' at offset 115$#" + count: 1 + path: modules/info-list/info-list.php + + - + message: "#^PHPDoc tag @method has invalid value \\(get_icons\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 79$#" + count: 1 + path: modules/info-list/info-list.php + + - + message: "#^PHPDoc tag @method has invalid value \\(render_image\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 52$#" + count: 1 + path: modules/info-list/info-list.php + + - + message: "#^PHPDoc tag @method has invalid value \\(render_text\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 50$#" + count: 1 + path: modules/info-list/info-list.php + + - + message: "#^PHPDoc tag @method has invalid value \\(render_text\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 55$#" + count: 1 + path: modules/info-list/info-list.php + + - + message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \", expected '\\(' at offset 116$#" + count: 1 + path: modules/info-table/info-table.php + + - + message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \", expected '\\(' at offset 112$#" + count: 1 + path: modules/ribbon/ribbon.php + + - + message: "#^PHPDoc tag @method has invalid value \\(get_icon\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 81$#" + count: 1 + path: modules/ribbon/ribbon.php + + - + message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \", expected '\\(' at offset 115$#" + count: 1 + path: modules/slide-box/slide-box.php + + - + message: "#^PHPDoc tag @method has invalid value \\(render_button\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 91$#" + count: 1 + path: modules/slide-box/slide-box.php + + - + message: "#^PHPDoc tag @method has invalid value \\(render_dropdown_icon\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 104$#" + count: 1 + path: modules/slide-box/slide-box.php + + - + message: "#^PHPDoc tag @method has invalid value \\(render_image\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 97$#" + count: 1 + path: modules/slide-box/slide-box.php + + - + message: "#^PHPDoc tag @method has invalid value \\(render_link\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 87$#" + count: 1 + path: modules/slide-box/slide-box.php + + - + message: "#^PHPDoc tag @method has invalid value \\(render_overlay_icon\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 103$#" + count: 1 + path: modules/slide-box/slide-box.php + + - + message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \", expected '\\(' at offset 116$#" + count: 1 + path: modules/spacer-gap/spacer-gap.php + + - + message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \", expected '\\(' at offset 112$#" + count: 1 + path: modules/uabb-button/uabb-button.php + + - + message: "#^PHPDoc tag @method has invalid value \\(get_button_style\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 82$#" + count: 1 + path: modules/uabb-button/uabb-button.php + + - + message: "#^PHPDoc tag @method has invalid value \\(get_classname\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 76$#" + count: 1 + path: modules/uabb-button/uabb-button.php + + - + message: "#^PHPDoc tag @method has invalid value \\(update\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 72$#" + count: 1 + path: modules/uabb-button/uabb-button.php + + - + message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \", expected '\\(' at offset 114$#" + count: 1 + path: modules/uabb-heading/uabb-heading.php + + - + message: "#^PHPDoc tag @method has invalid value \\(render_image\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 66$#" + count: 1 + path: modules/uabb-heading/uabb-heading.php + + - + message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \", expected '\\(' at offset 116$#" + count: 1 + path: modules/uabb-separator/uabb-separator.php + + - + message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \", expected '\\(' at offset 162$#" + count: 1 + path: modules/uabb-star-rating/uabb-star-rating.php + + - + message: "#^PHPDoc tag @method has invalid value \\(get_icons\\)\\: Unexpected token \"\\\\r\\\\n\\\\t\\\\t \\* \", expected '\\(' at offset 84$#" + count: 1 + path: modules/uabb-star-rating/uabb-star-rating.php \ No newline at end of file From f5673b9995b9994406d81e3aafa49d731ee3f5cb Mon Sep 17 00:00:00 2001 From: Abhishek Date: Tue, 17 Sep 2024 11:31:27 +0530 Subject: [PATCH 10/29] Resolved PR comments --- classes/class-uabb-compatibility.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/class-uabb-compatibility.php b/classes/class-uabb-compatibility.php index 781dcf3c..267865c7 100644 --- a/classes/class-uabb-compatibility.php +++ b/classes/class-uabb-compatibility.php @@ -6,7 +6,7 @@ * @package BB Version Check */ -if ( ! class_exists( 'FL_BUILDER_VERSION' ) ) { +if ( ! class_exists( 'UABB_Lite_Compatibility' ) ) { if ( ! defined( 'FL_BUILDER_VERSION' ) ) { define( 'FL_BUILDER_VERSION', '' ); From 0c499fa495a2757e7d4b29d0a36ed6e056af2496 Mon Sep 17 00:00:00 2001 From: Abhishek Date: Tue, 17 Sep 2024 12:29:32 +0530 Subject: [PATCH 11/29] Resolved PHPStan Fatal error found for classic theme --- classes/uabb-global-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/uabb-global-functions.php b/classes/uabb-global-functions.php index edd0f359..ef64eecf 100644 --- a/classes/uabb-global-functions.php +++ b/classes/uabb-global-functions.php @@ -230,7 +230,7 @@ function uabb_theme_button_font_size( $default ): string { * @param var $default Checks if the user has set Font Size values. * @return string */ -function uabb_theme_default_button_font_size( $default ): string { +function uabb_theme_default_button_font_size( $default ) { $font_size = ''; if ( '' === $default ) { From abb87f25dca66926f74d3fd9152408813ad44fd7 Mon Sep 17 00:00:00 2001 From: Akshay Urankar Date: Wed, 18 Sep 2024 13:13:02 +0530 Subject: [PATCH 12/29] added a changelog for phpstan fixes --- README.md | 3 +++ package.json | 4 ++-- readme.txt | 3 +++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3ae35ae9..b0a170c2 100644 --- a/README.md +++ b/README.md @@ -215,6 +215,9 @@ Yes it is! This plugin comes with .po and .mo files. It is already translated in ## Changelog ## +### 1.5.11.1 ### +* Improvement: Improved code quality syntax and security checks for better coding standards and practices. + ### 1.5.11 ### * Improvement: Hardened the security of plugin. * Improvement: Compatibility with Beaver Builder 2.9 diff --git a/package.json b/package.json index 4d3a3d01..372b9fe9 100644 --- a/package.json +++ b/package.json @@ -14,13 +14,13 @@ }, "homepage": "https://github.com/brainstormforce/ultimate-addons-for-beaver-builder-lite#readme", "devDependencies": { - "grunt": "^1.0.1", - "grunt-wp-readme-to-markdown": "^2.0.1", + "grunt": "^1.6.1", "grunt-contrib-clean": "^1.1.0", "grunt-contrib-compress": "^1.4.3", "grunt-contrib-copy": "^1.0.0", "grunt-release": "^0.14.0", "grunt-wp-i18n": "^1.0.2", + "grunt-wp-readme-to-markdown": "^2.0.1", "shelljs": "~0.8.1" } } diff --git a/readme.txt b/readme.txt index 72696cb5..ce0ed2f4 100644 --- a/readme.txt +++ b/readme.txt @@ -215,6 +215,9 @@ Yes it is! This plugin comes with .po and .mo files. It is already translated in == Changelog == += 1.5.11.1 = +* Improvement: Improved code quality syntax and security checks for better coding standards and practices. + = 1.5.11 = * Improvement: Hardened the security of plugin. * Improvement: Compatibility with Beaver Builder 2.9 From 139487074a5fb9ec16327e2f22c81abb1500a385 Mon Sep 17 00:00:00 2001 From: Vijeta Raikar <110518282+vijetaR@users.noreply.github.com> Date: Mon, 23 Sep 2024 15:29:16 +0530 Subject: [PATCH 13/29] Limited Tags --- README.md | 2 +- readme.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3ae35ae9..859d3169 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Ultimate Addons for Beaver Builder - Lite # **Contributors:** [brainstormforce](https://profiles.wordpress.org/brainstormforce/) **Donate link:** https://www.paypal.me/BrainstormForce -**Tags:** beaver builder, beaver builder free, beaver addons, beaver builder addon, beaver builder add ons, beaver builder lite, beaver builder modules, beaver builder addons, beaver builder extensions, beaver addon, beaver builder plugin, beaver builder wordpress +**Tags:** beaver builder, beaver builder free, beaver builder lite, beaver builder addons, beaver builder extensions **Requires at least:** 4.6 **Tested up to:** 6.6 **Stable tag:** 1.5.11 diff --git a/readme.txt b/readme.txt index 72696cb5..575a4aa1 100644 --- a/readme.txt +++ b/readme.txt @@ -1,7 +1,7 @@ === Ultimate Addons for Beaver Builder - Lite === Contributors: brainstormforce Donate link: https://www.paypal.me/BrainstormForce -Tags: beaver builder, beaver builder free, beaver addons, beaver builder addon, beaver builder add ons, beaver builder lite, beaver builder modules, beaver builder addons, beaver builder extensions, beaver addon, beaver builder plugin, beaver builder wordpress +Tags: beaver builder, beaver builder free, beaver builder lite, beaver builder addons, beaver builder extensions Requires at least: 4.6 Tested up to: 6.6 Stable tag: 1.5.11 From cfbe0c2b51c7a066969e3dc612ccb59649df4d3c Mon Sep 17 00:00:00 2001 From: Abhishek Date: Tue, 24 Sep 2024 18:13:09 +0530 Subject: [PATCH 14/29] Resolved PHPCBF --- .../class-bsf-analytics-stats.php | 4 +- admin/bsf-analytics/class-bsf-analytics.php | 12 +- assets/dynamic-css/uabb-theme-dynamic-css.php | 6 +- .../class-uabb-admin-settings-multisite.php | 8 +- classes/class-uabb-admin-settings.php | 44 +- classes/class-uabb-attachment.php | 2 +- classes/class-uabb-backward.php | 2 +- classes/class-uabb-cloud-templates.php | 5 +- classes/class-uabb-compatibility.php | 16 +- classes/class-uabb-global-settings.php | 4 +- classes/class-uabb-helper.php | 27 +- classes/class-uabb-iconfonts.php | 1 - classes/class-uabb-init.php | 5 +- classes/class-uabb-update.php | 3 +- classes/class-uabb-wpml.php | 9 +- classes/class-ui-panel.php | 22 +- classes/helper.php | 29 +- classes/uabb-bbtheme-global-integration.php | 13 +- classes/uabb-global-functions.php | 9 +- classes/uabb-global-integration.php | 41 +- classes/uabb-global-settings-form.php | 6 +- classes/uabb-global-settings.php | 8 +- classes/wpml/class-wpml-uabb-infolist.php | 3 +- includes/admin-settings-icons.php | 6 +- includes/admin-settings-modules.php | 6 +- includes/ui-panel-presets.php | 10 +- includes/ui-panel-sections.php | 12 +- index.php | 1 - lib/astra-notices/class-astra-notices.php | 4 +- modules/advanced-icon/advanced-icon.php | 4 +- .../advanced-icon/includes/frontend.css.php | 16 +- modules/advanced-icon/includes/frontend.php | 6 +- modules/flip-box/flip-box.php | 15 +- modules/flip-box/includes/frontend.php | 2 +- modules/image-separator/image-separator.php | 8 +- .../image-separator/includes/frontend.css.php | 2 +- .../image-separator/includes/frontend.js.php | 2 +- modules/image-separator/includes/frontend.php | 2 +- modules/info-list/includes/frontend.css.php | 16 +- modules/info-list/includes/frontend.js.php | 10 +- modules/info-list/includes/frontend.php | 8 +- modules/info-list/info-list.php | 19 +- modules/info-table/includes/frontend.css.php | 33 +- modules/info-table/includes/frontend.php | 6 +- modules/info-table/info-table.php | 3 +- modules/ribbon/includes/frontend.css.php | 14 +- modules/ribbon/includes/frontend.php | 4 +- modules/ribbon/ribbon.php | 21 +- modules/slide-box/includes/frontend.css.php | 126 +- modules/slide-box/includes/frontend.js.php | 8 +- modules/slide-box/includes/frontend.php | 8 +- ...ide-box-bb-less-than-2-2-compatibility.php | 1 - modules/slide-box/slide-box.php | 10 +- modules/spacer-gap/includes/frontend.css.php | 18 +- modules/spacer-gap/spacer-gap.php | 3 +- modules/uabb-button/includes/frontend.css.php | 16 +- modules/uabb-button/includes/frontend.php | 8 +- modules/uabb-button/uabb-button.php | 2 +- .../uabb-heading/includes/frontend.css.php | 16 +- modules/uabb-heading/includes/frontend.php | 8 +- modules/uabb-heading/uabb-heading.php | 2 +- .../uabb-separator/includes/frontend.css.php | 16 +- modules/uabb-separator/uabb-separator.php | 3 +- .../includes/frontend.css.php | 14 +- .../uabb-star-rating/includes/frontend.php | 4 +- modules/uabb-star-rating/uabb-star-rating.php | 15 +- stubs-generator.php | 18 +- tests/php/stubs/lite-stubs.php | 4540 ++++++++--------- 68 files changed, 2516 insertions(+), 2829 deletions(-) diff --git a/admin/bsf-analytics/class-bsf-analytics-stats.php b/admin/bsf-analytics/class-bsf-analytics-stats.php index bc177567..c51580d8 100644 --- a/admin/bsf-analytics/class-bsf-analytics-stats.php +++ b/admin/bsf-analytics/class-bsf-analytics-stats.php @@ -243,8 +243,8 @@ function wp_timezone_string() { return $timezone_string; } - $offset = get_option( 'gmt_offset' ); - $offset = is_numeric( $offset ) ? (float) $offset : 0; + $offset = get_option( 'gmt_offset' ); + $offset = is_numeric( $offset ) ? (float) $offset : 0; $hours = (int) $offset; $minutes = ( $offset - $hours ); diff --git a/admin/bsf-analytics/class-bsf-analytics.php b/admin/bsf-analytics/class-bsf-analytics.php index a5c79953..9e89e52b 100644 --- a/admin/bsf-analytics/class-bsf-analytics.php +++ b/admin/bsf-analytics/class-bsf-analytics.php @@ -34,7 +34,7 @@ public function __construct() { define( 'BSF_ANALYTICS_FILE', __FILE__ ); define( 'BSF_ANALYTICS_VERSION', '1.0.1' ); - define( 'BSF_ANALYTICS_PATH', dirname( __FILE__ ) ); + define( 'BSF_ANALYTICS_PATH', __DIR__ ); define( 'BSF_ANALYTICS_URI', $this->bsf_analytics_url() ); add_action( 'admin_init', array( $this, 'handle_optin_optout' ) ); @@ -64,13 +64,13 @@ public function __construct() { */ public function bsf_analytics_url() { - $path = wp_normalize_path( defined('BSF_ANALYTICS_PATH') ? BSF_ANALYTICS_PATH : '' ); + $path = wp_normalize_path( defined( 'BSF_ANALYTICS_PATH' ) ? BSF_ANALYTICS_PATH : '' ); $theme_dir = wp_normalize_path( get_template_directory() ); if ( strpos( $path, $theme_dir ) !== false ) { return rtrim( get_template_directory_uri() . '/admin/bsf-analytics/', '/' ); } else { - return rtrim( plugin_dir_url( defined('BSF_ANALYTICS_FILE') ? BSF_ANALYTICS_FILE : '' ), '/' ); + return rtrim( plugin_dir_url( defined( 'BSF_ANALYTICS_FILE' ) ? BSF_ANALYTICS_FILE : '' ), '/' ); } } @@ -101,9 +101,9 @@ public function enqueue_assets() { $file_rtl = ( is_rtl() ) ? '-rtl' : ''; $css_ext = ( SCRIPT_DEBUG ) ? '.css' : '.min.css'; - $css_uri = (defined('BSF_ANALYTICS_URI') ? BSF_ANALYTICS_URI : '') . '/assets/css/' . $dir_name . '/style' . $file_rtl . $css_ext; + $css_uri = ( defined( 'BSF_ANALYTICS_URI' ) ? BSF_ANALYTICS_URI : '' ) . '/assets/css/' . $dir_name . '/style' . $file_rtl . $css_ext; - wp_enqueue_style( 'bsf-analytics-admin-style', $css_uri, false, (defined('BSF_ANALYTICS_VERSION') ? BSF_ANALYTICS_VERSION : ''), 'all' ); + wp_enqueue_style( 'bsf-analytics-admin-style', $css_uri, false, ( defined( 'BSF_ANALYTICS_VERSION' ) ? BSF_ANALYTICS_VERSION : '' ), 'all' ); } /** @@ -411,7 +411,7 @@ public function render_settings_field_html() { */ private function get_product_name() { - $base = wp_normalize_path( dirname( __FILE__ ) ); + $base = wp_normalize_path( __DIR__ ); $theme_dir = wp_normalize_path( get_template_directory() ); if ( false !== strpos( $base, $theme_dir ) ) { diff --git a/assets/dynamic-css/uabb-theme-dynamic-css.php b/assets/dynamic-css/uabb-theme-dynamic-css.php index fff9df9d..c16eb2f8 100644 --- a/assets/dynamic-css/uabb-theme-dynamic-css.php +++ b/assets/dynamic-css/uabb-theme-dynamic-css.php @@ -8,9 +8,9 @@ ob_start(); // Ensure $global_settings is defined and initialized -if (!isset($global_settings)) { - // Create an empty object to avoid undefined errors - $global_settings = new stdClass(); +if ( ! isset( $global_settings ) ) { + // Create an empty object to avoid undefined errors + $global_settings = new stdClass(); } ?> diff --git a/classes/class-uabb-admin-settings-multisite.php b/classes/class-uabb-admin-settings-multisite.php index 4900c9b3..c55595a4 100644 --- a/classes/class-uabb-admin-settings-multisite.php +++ b/classes/class-uabb-admin-settings-multisite.php @@ -19,7 +19,7 @@ final class UABBBuilderMultisiteSettings { * @since 1.0 * @return void */ - static public function init() { + public static function init() { add_action( 'admin_init', __CLASS__ . '::admin_init' ); add_action( 'admin_init', __CLASS__ . '::uabb_lite_redirect_on_activation' ); add_action( 'network_admin_menu', __CLASS__ . '::menu' ); @@ -32,7 +32,7 @@ static public function init() { * @param string $url gets the activate redirect URL. * @return void */ - static public function uabb_lite_redirect_on_activation( $url ): void { + public static function uabb_lite_redirect_on_activation( $url ): void { if ( true === get_option( 'uabb_lite_redirect' ) ) { update_option( 'uabb_lite_redirect', false ); if ( ! is_multisite() ) : @@ -48,7 +48,7 @@ static public function uabb_lite_redirect_on_activation( $url ): void { * @since 1.0 * @return void */ - static public function admin_init() { + public static function admin_init() { if ( is_network_admin() && isset( $_REQUEST['page'] ) && 'uabb-builder-multisite-settings' === $_REQUEST['page'] ) { add_action( 'admin_enqueue_scripts', 'UABBBuilderAdminSettings::styles_scripts' ); UABBBuilderAdminSettings::save(); @@ -61,7 +61,7 @@ static public function admin_init() { * @since 1.0 * @return void */ - static public function menu() { + public static function menu() { $title = UABB_PREFIX; // FLBuilderModel::get_branding();. $cap = 'manage_network_plugins'; $slug = 'uabb-builder-multisite-settings'; diff --git a/classes/class-uabb-admin-settings.php b/classes/class-uabb-admin-settings.php index a9eeeae2..39651a24 100644 --- a/classes/class-uabb-admin-settings.php +++ b/classes/class-uabb-admin-settings.php @@ -20,7 +20,7 @@ final class UABBBuilderAdminSettings { * @since 1.0 * @var array $errors */ - static public $errors = array(); + public static $errors = array(); /** * Initializes the admin settings. @@ -28,7 +28,7 @@ final class UABBBuilderAdminSettings { * @since 1.0 * @return void */ - static public function init() { + public static function init() { add_action( 'after_setup_theme', __CLASS__ . '::init_hooks' ); } @@ -39,7 +39,7 @@ static public function init() { * @since 1.0 * @return void */ - static public function init_hooks() { + public static function init_hooks() { if ( ! is_admin() ) { return; } @@ -61,10 +61,9 @@ static public function init_hooks() { * @since 1.3.0 * @return void */ - static public function notice_styles_scripts() { + public static function notice_styles_scripts() { // Styles. wp_enqueue_style( 'uabb-notice-settings', BB_ULTIMATE_ADDON_URL . 'assets/css/uabb-admin-notice.css', array() ); - } /** * Filters and Returns a list of allowed tags and attributes for a given context. @@ -119,9 +118,9 @@ public static function register_notices() { __( 'Hello! Thank you for choosing the Ultimate Addon for Beaver Builder to build this website!', 'ultimate-addon-for-beaver-builder' ), __( 'Would you please mind sharing your views and give it a 5 star rating on the WordPress repository?', 'ultimate-addon-for-beaver-builder' ), 'https://wordpress.org/support/plugin/ultimate-addons-for-beaver-builder-lite/reviews/?filter=5', - __( 'Ok, you deserve it', 'ultimate-addon-for-beaver-builder'), + __( 'Ok, you deserve it', 'ultimate-addon-for-beaver-builder' ), MONTH_IN_SECONDS, - __( 'Nope, maybe later', 'ultimate-addon-for-beaver-builder'), + __( 'Nope, maybe later', 'ultimate-addon-for-beaver-builder' ), __( 'I already did', 'ultimate-addon-for-beaver-builder' ) ), 'repeat-notice-after' => MONTH_IN_SECONDS, @@ -137,7 +136,7 @@ public static function register_notices() { * @since 1.0 * @return void */ - static public function menu() { + public static function menu() { if ( current_user_can( 'delete_users' ) ) { $title = UABB_PREFIX; @@ -155,7 +154,7 @@ static public function menu() { * @param hook $hook get the hooks for the styles. * @return void */ - static public function styles_scripts( $hook ) { + public static function styles_scripts( $hook ) { wp_register_style( 'uabb-admin-css', BB_ULTIMATE_ADDON_URL . 'assets/css/uabb-admin.css', array() ); wp_register_script( 'uabb-admin-js', BB_ULTIMATE_ADDON_URL . 'assets/js/uabb-admin.js', array( 'jquery' ), '', true ); wp_localize_script( @@ -219,7 +218,7 @@ static public function styles_scripts( $hook ) { * @since 1.0 * @return void */ - static public function render() { + public static function render() { include BB_ULTIMATE_ADDON_DIR . 'includes/admin-settings.php'; } @@ -229,7 +228,7 @@ static public function render() { * @since 1.0 * @return void */ - static public function render_page_class() { + public static function render_page_class() { if ( self::multisite_support() ) { echo 'fl-settings-network-admin'; } else { @@ -243,7 +242,7 @@ static public function render_page_class() { * @since 1.0 * @return void */ - static public function render_page_heading() { + public static function render_page_heading() { if ( ! empty( $icon ) ) { echo ''; @@ -258,7 +257,7 @@ static public function render_page_heading() { * @since 1.0 * @return void */ - static public function render_update_message() { + public static function render_update_message() { if ( ! empty( self::$errors ) ) { foreach ( self::$errors as $message ) { echo wp_kses( @@ -290,7 +289,7 @@ static public function render_update_message() { * @since 1.0 * @return void */ - static public function render_nav_items() { + public static function render_nav_items() { $items['uabb-welcome'] = array( 'title' => __( 'Welcome', 'uabb' ), 'show' => ! is_network_admin() || ! FLBuilderAdminSettings::multisite_support(), @@ -348,7 +347,6 @@ static public function render_nav_items() { echo '
  • ' . esc_html( $data['title'] ) . '
  • '; } } - } /** @@ -357,7 +355,7 @@ static public function render_nav_items() { * @since 1.0 * @return void */ - static public function render_forms() { + public static function render_forms() { self::render_form( 'welcome' ); self::render_form( 'general' ); self::render_form( 'modules' ); @@ -376,7 +374,7 @@ static public function render_forms() { * @param string $type The type of form to render. * @return void */ - static public function render_form( $type ) { + public static function render_form( $type ) { if ( self::has_support( $type ) ) { include BB_ULTIMATE_ADDON_DIR . 'includes/admin-settings-' . $type . '.php'; } @@ -389,7 +387,7 @@ static public function render_form( $type ) { * @param string $type The type of form being rendered. * @return void */ - static public function render_form_action( $type = '' ) { + public static function render_form_action( $type = '' ) { if ( is_network_admin() ) { echo esc_url( network_admin_url( '/settings.php?page=uabb-builder-multisite-settings#' . $type ) ); } else { @@ -404,7 +402,7 @@ static public function render_form_action( $type = '' ) { * @param string $type The type of form being rendered. * @return string The URL for the form action. */ - static public function get_form_action( $type = '' ) { + public static function get_form_action( $type = '' ) { if ( is_network_admin() ) { return network_admin_url( '/settings.php?page=uabb-builder-multisite-settings#' . $type ); } else { @@ -419,7 +417,7 @@ static public function get_form_action( $type = '' ) { * @param string $type The type of form to check. * @return bool */ - static public function has_support( $type ) { + public static function has_support( $type ) { return file_exists( BB_ULTIMATE_ADDON_DIR . 'includes/admin-settings-' . $type . '.php' ); } @@ -429,7 +427,7 @@ static public function has_support( $type ) { * @since 1.0 * @return bool */ - static public function multisite_support() { + public static function multisite_support() { return is_multisite() && class_exists( 'FLBuilderMultisiteSettings' ); } @@ -440,7 +438,7 @@ static public function multisite_support() { * @param string $message The error message to add. * @return void */ - static public function add_error( $message ) { + public static function add_error( $message ) { self::$errors[] = $message; } @@ -450,7 +448,7 @@ static public function add_error( $message ) { * @since 1.0 * @return void */ - static public function save() { + public static function save() { // Only admins can save settings. if ( ! current_user_can( 'delete_users' ) ) { return; diff --git a/classes/class-uabb-attachment.php b/classes/class-uabb-attachment.php index 711785a9..fea40741 100644 --- a/classes/class-uabb-attachment.php +++ b/classes/class-uabb-attachment.php @@ -28,7 +28,7 @@ function __construct() { * Add CTA Link field to media uploader * * @param array $form_fields array, fields to include in attachment form. - * @param object $post object, attachment record in database. + * @param object $post object, attachment record in database. * @return array $form_fields, modified form fields */ function uabb_attachment_field_cta( $form_fields, $post ): array { diff --git a/classes/class-uabb-backward.php b/classes/class-uabb-backward.php index 2bf5bda4..3e26038b 100644 --- a/classes/class-uabb-backward.php +++ b/classes/class-uabb-backward.php @@ -25,6 +25,7 @@ class UABB_lite_Plugin_Backward { // @codingStandardsIgnoreLine. /** * Initiator + * * @return self */ public static function get_instance() { @@ -200,7 +201,6 @@ public function update_data() { /* Update Flag */ update_post_meta( $post_id, '_uabb_lite_converted', 'yes' ); - } /** diff --git a/classes/class-uabb-cloud-templates.php b/classes/class-uabb-cloud-templates.php index 24a03b0e..25c0fd77 100644 --- a/classes/class-uabb-cloud-templates.php +++ b/classes/class-uabb-cloud-templates.php @@ -247,7 +247,6 @@ static function get_cloud_templates( $type = '' ) { } else { return array(); } - } /** @@ -464,7 +463,6 @@ static function template_html( $type = 'page-templates' ) { // Message for no templates found. UABB_Cloud_Templates::message( 'not-found' ); } - } /** @@ -474,7 +472,7 @@ static function template_html( $type = 'page-templates' ) { * @param string $dir_name verifies the dir name with bb-ultimate-addon. * @return array */ - static public function create_local_dir( $dir_name = 'bb-ultimate-addon' ) { + public static function create_local_dir( $dir_name = 'bb-ultimate-addon' ) { $wp_info = wp_upload_dir(); @@ -503,7 +501,6 @@ static public function create_local_dir( $dir_name = 'bb-ultimate-addon' ) { return $dir_info; } - } } diff --git a/classes/class-uabb-compatibility.php b/classes/class-uabb-compatibility.php index 267865c7..a7908ee4 100644 --- a/classes/class-uabb-compatibility.php +++ b/classes/class-uabb-compatibility.php @@ -33,7 +33,7 @@ class UABB_Lite_Compatibility { * @since 1.3.0 * @var $version_bb_check */ - static public $version_bb_check; + public static $version_bb_check; /** * Holds uabb migration status. @@ -41,7 +41,7 @@ class UABB_Lite_Compatibility { * @since 1.3.0 * @var $uabb_migration */ - static public $uabb_migration; + public static $uabb_migration; /** * Holds BB new page status. @@ -49,14 +49,14 @@ class UABB_Lite_Compatibility { * @since 1.3.0 * @var $stable_version_new_page */ - static public $stable_version_new_page; + public static $stable_version_new_page; /** * Initiator - * + * * @return self */ - static public function get_instance() { + public static function get_instance() { if ( ! isset( self::$instance ) ) { self::$instance = new self(); } @@ -69,7 +69,7 @@ static public function get_instance() { * @since 1.3.0 * @return bool self::$version_bb_check */ - static public function check_bb_version() { + public static function check_bb_version() { if ( null === self::$version_bb_check ) { @@ -91,7 +91,7 @@ static public function check_bb_version() { * @since 1.3.0 * @return string self::$uabb_migration */ - static public function check_old_page_migration() { + public static function check_old_page_migration() { if ( null === self::$uabb_migration ) { @@ -109,7 +109,7 @@ static public function check_old_page_migration() { * @since 1.3.0 * @return string self::$stable_version_new_page */ - static public function check_stable_version_new_page() { + public static function check_stable_version_new_page() { if ( null === self::$stable_version_new_page ) { diff --git a/classes/class-uabb-global-settings.php b/classes/class-uabb-global-settings.php index fbf71bce..beb0acb4 100644 --- a/classes/class-uabb-global-settings.php +++ b/classes/class-uabb-global-settings.php @@ -18,7 +18,7 @@ final class UABBGlobalSetting { * @since 1.0 * @return void */ - static public function init() { + public static function init() { add_filter( 'fl_builder_ui_js_strings', __CLASS__ . '::add_js_string' ); } @@ -29,7 +29,7 @@ static public function init() { * @since 1.0 * @return string */ - static public function add_js_string( $js_strings ) { + public static function add_js_string( $js_strings ) { if ( 'UABB' === UABB_PREFIX ) { $js_strings['uabbGlobalSettings'] = esc_attr__( 'UABB - Global Settings', 'uabb' ); diff --git a/classes/class-uabb-helper.php b/classes/class-uabb-helper.php index ed39423c..1d50ad1a 100644 --- a/classes/class-uabb-helper.php +++ b/classes/class-uabb-helper.php @@ -19,7 +19,7 @@ class BB_Ultimate_Addon_Helper { * @since 1.0 * @var $basic_modules Category Strings */ - static public $basic_modules = ''; + public static $basic_modules = ''; /** * Constructor function that initializes required actions and hooks @@ -64,10 +64,10 @@ function set_constants() { * @param array $cat gets the BB's UI ControlPanel Category. * @return array|string */ - static public function module_cat( $cat ) { - // Defining the constant - if (!defined('UABB_CAT')) { - define('UABB_CAT', ''); + public static function module_cat( $cat ) { + // Defining the constant + if ( ! defined( 'UABB_CAT' ) ) { + define( 'UABB_CAT', '' ); } return class_exists( 'FLBuilderUIContentPanel' ) ? $cat : UABB_CAT; } @@ -78,7 +78,7 @@ static public function module_cat( $cat ) { * @since 1.0 * @return mixed */ - static public function get_builder_uabb() { + public static function get_builder_uabb() { $uabb = UABB_Init::$uabb_options['fl_builder_uabb']; $defaults = array( @@ -115,7 +115,7 @@ static public function get_builder_uabb() { * @param string $request_key gets the request key's value. * @return mixed */ - static public function get_builder_uabb_branding( $request_key = '' ) { + public static function get_builder_uabb_branding( $request_key = '' ) { $uabb = UABB_Init::$uabb_options['fl_builder_uabb_branding']; $defaults = array( @@ -157,7 +157,7 @@ static public function get_builder_uabb_branding( $request_key = '' ) { * @since 1.0 * @return array */ - static public function get_all_modules() { + public static function get_all_modules() { $modules_array = array( 'spacer-gap' => 'Spacer / Gap', 'ribbon' => 'Ribbon', @@ -183,7 +183,7 @@ static public function get_all_modules() { * @since 1.0 * @return array */ - static public function get_premium_modules() { + public static function get_premium_modules() { $premium_modules_array = array( 'advanced-accordion' => array( @@ -575,7 +575,7 @@ static public function get_premium_modules() { * @since 1.0 * @return mixed|void */ - static public function get_builder_uabb_modules() { + public static function get_builder_uabb_modules() { $uabb = UABB_Init::$uabb_options['fl_builder_uabb_modules']; $all_modules = self::get_all_modules(); $is_all_modules = true; @@ -670,11 +670,11 @@ public static function is_templates_exist( $templates_type = 'all' ) { * * @since 1.0 * @param string $target gets an string for the link. - * @param int $is_nofollow gets an string for is no follow. - * @param int $echo gets an string for echo. + * @param int $is_nofollow gets an string for is no follow. + * @param int $echo gets an string for echo. * @return string */ - static public function get_link_rel( $target, $is_nofollow = 0, $echo = 0 ) { + public static function get_link_rel( $target, $is_nofollow = 0, $echo = 0 ) { $attr = ''; if ( '_blank' === $target ) { @@ -695,7 +695,6 @@ static public function get_link_rel( $target, $is_nofollow = 0, $echo = 0 ) { } echo 'rel="' . esc_attr( $attr ) . '"'; } - } new BB_Ultimate_Addon_Helper(); } diff --git a/classes/class-uabb-iconfonts.php b/classes/class-uabb-iconfonts.php index b70a5dad..fe657b66 100644 --- a/classes/class-uabb-iconfonts.php +++ b/classes/class-uabb-iconfonts.php @@ -113,7 +113,6 @@ function recurse_copy( $src, $dst ) { } closedir( $dir ); } - } $UABB_IconFonts = new UABB_IconFonts(); // @codingStandardsIgnoreLine. diff --git a/classes/class-uabb-init.php b/classes/class-uabb-init.php index 47b7fe12..25d8242e 100644 --- a/classes/class-uabb-init.php +++ b/classes/class-uabb-init.php @@ -53,7 +53,6 @@ public function __construct() { add_action( 'admin_notices', array( $this, 'admin_notices' ) ); add_action( 'network_admin_notices', array( $this, 'admin_notices' ) ); } - } /** * Function that renders links @@ -106,12 +105,12 @@ function includes() { // Load the appropriate text-domain. $this->load_plugin_textdomain(); - } /** * For Performance. * Set UABB static object to store data from database. + * * @return void */ static function set_uabb_options() { @@ -230,7 +229,6 @@ function load_scripts() { if ( is_rtl() ) { wp_enqueue_style( 'uabb-rtl-css', BB_ULTIMATE_ADDON_URL . 'assets/css/uabb-rtl.css', array() ); } - } /** @@ -302,6 +300,7 @@ function load_modules() { /** * Initialize the class only after all the plugins are loaded. + * * @return void */ function init_uabb() { diff --git a/classes/class-uabb-update.php b/classes/class-uabb-update.php index 6f9378c1..34432425 100644 --- a/classes/class-uabb-update.php +++ b/classes/class-uabb-update.php @@ -40,7 +40,6 @@ public function __construct() { // UABB Updates. add_action( 'init', __CLASS__ . '::init' ); - } /** @@ -49,7 +48,7 @@ public function __construct() { * @since 1.2.4 * @return void */ - static public function init() { + public static function init() { // Get saved version number. $saved_version = get_option( '_uabb_lite_saved_version', '0' ); diff --git a/classes/class-uabb-wpml.php b/classes/class-uabb-wpml.php index 32052788..aff414b8 100644 --- a/classes/class-uabb-wpml.php +++ b/classes/class-uabb-wpml.php @@ -20,7 +20,7 @@ final class UABBLite_WPML_Translatable { * @since 1.2.2 * @return void */ - static public function init() { + public static function init() { add_filter( 'wpml_beaver_builder_modules_to_translate', __CLASS__ . '::wpml_uabb_modules_translate' ); UABBLite_WPML_Translatable::load_files(); } @@ -29,14 +29,13 @@ static public function init() { * Load files. * * @since 1.2.2 - * + * * @return void */ - static public function load_files(): void { + public static function load_files(): void { if ( class_exists( 'WPML_Page_Builders_Defined' ) ) { require_once BB_ULTIMATE_ADDON_DIR . 'classes/wpml/class-wpml-uabb-infolist.php'; } - } /** @@ -46,7 +45,7 @@ static public function load_files(): void { * @param array $form gets the forms array to be resolved. * @return array */ - static public function wpml_uabb_modules_translate( $form ) { + public static function wpml_uabb_modules_translate( $form ) { // Button Module. $form['uabb-button'] = array( diff --git a/classes/class-ui-panel.php b/classes/class-ui-panel.php index 169edd32..596fc6a5 100644 --- a/classes/class-ui-panel.php +++ b/classes/class-ui-panel.php @@ -45,7 +45,7 @@ public function __construct() { * Function to add toggle UABB User Interface. * * @since 1.0 - * + * * @return void */ function toggle_uabb_ui() { @@ -68,7 +68,7 @@ function toggle_uabb_ui() { * Function that initializes template selector data. * * @since 1.0 - * + * * @return void */ public function init() { @@ -109,9 +109,9 @@ function uabb_affiliate_url( $url ) { * @return string */ function uabb_bsf_registration_page_url( $url ) { - // Defining the constant - if (!defined('FL_BUILDER_LITE')) { - define('FL_BUILDER_LITE', ''); + // Defining the constant + if ( ! defined( 'FL_BUILDER_LITE' ) ) { + define( 'FL_BUILDER_LITE', '' ); } if ( is_multisite() && false === FL_BUILDER_LITE ) { @@ -189,7 +189,7 @@ function fl_uabb_render_js( $js, $nodes, $global_settings ) { function fl_uabb_render_css( $css, $nodes, $global_settings ) { $css .= file_get_contents( BB_ULTIMATE_ADDON_DIR . 'assets/css/uabb-frontend.css' ); - $css .= include( BB_ULTIMATE_ADDON_DIR . 'assets/dynamic-css/uabb-theme-dynamic-css.php' ); + $css .= include BB_ULTIMATE_ADDON_DIR . 'assets/dynamic-css/uabb-theme-dynamic-css.php'; return $css; } @@ -281,11 +281,11 @@ function uabb_panel_before_row_layouts() { * 2. Return ONLY UABB templates. If variable $status is NOT set to 'exclude'. * * @since 1.0 - * @param array $templates Gets the array of UABB templates. - * @param string $status Checks for the status of UABB templates. + * @param array $templates Gets the array of UABB templates. + * @param string $status Checks for the status of UABB templates. * @return array */ - static public function uabb_templates_data( $templates, $status = 'exclude' ) { + public static function uabb_templates_data( $templates, $status = 'exclude' ) { if ( isset( $templates['categorized'] ) && count( $templates['categorized'] ) > 0 ) { @@ -326,7 +326,7 @@ static public function uabb_templates_data( $templates, $status = 'exclude' ) { * * @since 1.0 * @param array $buttons Gets the buttons array for UI panel. - * @return array + * @return array */ function builder_ui_bar_buttons( $buttons ) { @@ -424,6 +424,7 @@ function render_live_preview() { /** * Enqueue Panel CSS and JS + * * @return void */ function uabb_panel_css_js() { @@ -431,7 +432,6 @@ function uabb_panel_css_js() { wp_enqueue_script( 'uabb-panel-js', BB_ULTIMATE_ADDON_URL . 'assets/js/uabb-panel.js', array( 'jquery' ), '', true ); } } - } new UABB_UI_Panels(); diff --git a/classes/helper.php b/classes/helper.php index 64af413a..c71e9447 100644 --- a/classes/helper.php +++ b/classes/helper.php @@ -20,7 +20,7 @@ class UABB_Helper { * @param array $font An array with font-family and weight. * @return void */ - static public function uabb_font_css( $font ) { + public static function uabb_font_css( $font ) { $css = ''; if ( array_key_exists( $font['family'], FLBuilderFontFamilies::$system ) ) { @@ -35,19 +35,19 @@ static public function uabb_font_css( $font ) { $css .= 'font-weight: ' . $font['weight'] . ';'; } - echo esc_attr( $css); + echo esc_attr( $css ); } /** * Initializes an array to replace recursive function * - * @param string $hex returns the bas values. + * @param string $hex returns the bas values. * * @param string $opacity returns the replacements values. - * + * * @return string */ - static public function uabb_get_color( $hex, $opacity ) { + public static function uabb_get_color( $hex, $opacity ) { $rgba = $hex; if ( '' !== $opacity ) { if ( 3 === strlen( $hex ) ) { @@ -68,12 +68,12 @@ static public function uabb_get_color( $hex, $opacity ) { /** * Initializes an array to replace recursive function * - * @param var $color returns the bas values. + * @param var $color returns the bas values. * * @param bool $opacity returns the replacements values. * @param bool $is_array returns the replacements values. */ - static public function uabb_hex2rgba( $color, $opacity = false, $is_array = false ) { + public static function uabb_hex2rgba( $color, $opacity = false, $is_array = false ) { $default = $color; @@ -121,12 +121,12 @@ static public function uabb_hex2rgba( $color, $opacity = false, $is_array = fals /** * Initializes an array to replace recursive function * - * @param var $settings returns the bas values. + * @param var $settings returns the bas values. * * @param string $name returns the replacements values. - * @param bool $opc returns the replacements values. + * @param bool $opc returns the replacements values. */ - static public function uabb_colorpicker( $settings, $name = '', $opc = false ) { + public static function uabb_colorpicker( $settings, $name = '', $opc = false ) { $hex_color = ''; $opacity = ''; @@ -149,7 +149,6 @@ static public function uabb_colorpicker( $settings, $name = '', $opc = false ) { } return $hex_color; - } /** @@ -158,7 +157,7 @@ static public function uabb_colorpicker( $settings, $name = '', $opc = false ) { * @param var $gradient returns the bas values. * @return void */ - static public function uabb_gradient_css( $gradient ) { + public static function uabb_gradient_css( $gradient ) { $gradient_angle = intval( $gradient['angle'] ); $direction = $gradient['direction']; $color1 = ''; @@ -210,10 +209,10 @@ static public function uabb_gradient_css( $gradient ) { * * @since 1.3.0 * @param string $target gets an string for the link. - * @param int $is_nofollow gets an string for is no follow. - * @param int $echo gets an string for echo. + * @param int $is_nofollow gets an string for is no follow. + * @param int $echo gets an string for echo. */ - static public function get_link_rel( $target, $is_nofollow = 0, $echo = 0 ) { + public static function get_link_rel( $target, $is_nofollow = 0, $echo = 0 ) { $attr = ''; if ( '_blank' === $target ) { diff --git a/classes/uabb-bbtheme-global-integration.php b/classes/uabb-bbtheme-global-integration.php index 398d9eb9..1b05b0bf 100644 --- a/classes/uabb-bbtheme-global-integration.php +++ b/classes/uabb-bbtheme-global-integration.php @@ -64,12 +64,11 @@ function __construct() { add_filter( 'uabb/global/button_text_color', array( $this, 'uabb_global_button_text_color' ) ); add_filter( 'uabb/global/button_text_hover_color', array( $this, 'uabb_global_button_text_hover_color' ) ); - } /** * Theme Color - - * + * * @return string */ function uabb_global_theme_color(): string { @@ -80,7 +79,7 @@ function uabb_global_theme_color(): string { /** * Theme Text Color - - * + * * @return string */ function uabb_global_text_color(): string { @@ -91,7 +90,7 @@ function uabb_global_text_color(): string { /** * Button Background Color - - * + * * @return string */ function uabb_global_button_bg_color(): string { @@ -103,7 +102,7 @@ function uabb_global_button_bg_color(): string { /** * Button Background Hover Color - - * + * * @return string */ function uabb_global_button_bg_hover_color(): string { @@ -114,7 +113,7 @@ function uabb_global_button_bg_hover_color(): string { /** * Button Text Color - - * + * * @return string */ function uabb_global_button_text_color(): string { @@ -126,7 +125,7 @@ function uabb_global_button_text_color(): string { /** * Button Text Hover Color - - * + * * @return string */ function uabb_global_button_text_hover_color(): string { diff --git a/classes/uabb-global-functions.php b/classes/uabb-global-functions.php index ef64eecf..b1b42269 100644 --- a/classes/uabb-global-functions.php +++ b/classes/uabb-global-functions.php @@ -36,7 +36,7 @@ /** * Initializes an array to replace recursive function * - * @param mixed $base Initial base values, can be an array or any other type. + * @param mixed $base Initial base values, can be an array or any other type. * @param array $replacements returns the replacements values. * @return mixed Returns an array if $base is an array, otherwise returns the original $base value. */ @@ -61,7 +61,7 @@ function array_replace_recursive( $base, $replacements ): mixed { /** * Initializes recurse function * - * @param mixed $base Initial base values, can be an array or any other type. + * @param mixed $base Initial base values, can be an array or any other type. * @param array $replacements returns the replacements values. * @return mixed Returns an array if $base is an array, otherwise returns the original $base value. */ @@ -815,14 +815,14 @@ function uabb_theme_border( $default ) { $border_width = uabb_theme_button_border_width( '' ); $border_color = uabb_theme_border_color( '' ); $border_radius = uabb_theme_button_border_radius( '' ); - $border = []; + $border = array(); if ( is_array( $default ) && ( ! empty( $default['style'] ) || ! empty( $default['color'] ) || ! empty( $default['width']['top'] ) || ! empty( $default['width']['bottom'] ) || ! empty( $default['width']['left'] ) || ! empty( $default['width']['right'] ) || ! empty( $default['radius']['top_left'] ) || ! empty( $default['radius']['top_right'] ) || ! empty( $default['radius']['bottom_left'] ) || ! empty( $default['radius']['bottom_right'] ) ) ) { $border = $default; } elseif ( is_object( $default ) && ( ! empty( $default->style ) || ! empty( $default->color ) || ! empty( $default->width->top ) || ! empty( $default->width->bottom ) || ! empty( $default->width->left ) || ! empty( $default->width->right ) || ! empty( $default->radius->top_left ) || ! empty( $default->radius->top_right ) || ! empty( $default->radius->bottom_left ) || ! empty( $default->radius->bottom_right ) ) ) { - $border = (array) $default; //Cast objects to arrays when using them as $default. + $border = (array) $default; // Cast objects to arrays when using them as $default. } else { @@ -963,4 +963,3 @@ function uabb_theme_padding_button( $mode, $value ): string { return $new_padding; } - diff --git a/classes/uabb-global-integration.php b/classes/uabb-global-integration.php index 39ae5f2f..a40cc891 100644 --- a/classes/uabb-global-integration.php +++ b/classes/uabb-global-integration.php @@ -54,8 +54,8 @@ function __construct() { * * @since 1.0 * @param object $option gets the options for the UABB settings. - * @param bool $color gets the color. - * @param bool $opc gets the opacity for the colorpicker. + * @param bool $color gets the color. + * @param bool $opc gets the opacity for the colorpicker. * @return string */ function uabb_get_global_option( $option, $color = false, $opc = false ): string { @@ -75,7 +75,7 @@ function uabb_get_global_option( $option, $color = false, $opc = false ): string } /** * Theme Color - - * + * * @return string */ function uabb_global_theme_color(): string { @@ -88,7 +88,7 @@ function uabb_global_theme_color(): string { /** * Text Color - - * + * * @return string */ function uabb_global_text_color(): string { @@ -101,7 +101,7 @@ function uabb_global_text_color(): string { /** * Link Color - - * + * * @return string */ function uabb_global_link_color(): string { @@ -114,7 +114,7 @@ function uabb_global_link_color(): string { /** * Link Hover Color - - * + * * @return string */ function uabb_global_link_hover_color(): string { @@ -126,7 +126,7 @@ function uabb_global_link_hover_color(): string { /** * Button Font Family - * + * * @return string */ function uabb_global_button_font_family(): string { @@ -136,7 +136,7 @@ function uabb_global_button_font_family(): string { /** * Button Font Size - - * + * * @return string */ function uabb_global_button_font_size(): string { @@ -147,7 +147,7 @@ function uabb_global_button_font_size(): string { /** * Button Line Height - - * + * * @return string */ function uabb_global_button_line_height(): string { @@ -159,7 +159,7 @@ function uabb_global_button_line_height(): string { /** * Button Letter Spacing - - * + * * @return string */ function uabb_global_button_letter_spacing(): string { @@ -171,7 +171,7 @@ function uabb_global_button_letter_spacing(): string { /** * Button Text Transform - - * + * * @return string */ function uabb_global_button_text_transform(): string { @@ -183,7 +183,7 @@ function uabb_global_button_text_transform(): string { /** * Button Text Color - - * + * * @return string */ function uabb_global_button_text_color(): string { @@ -195,7 +195,7 @@ function uabb_global_button_text_color(): string { /** * Button Text Hover Color - - * + * * @return string */ function uabb_global_button_text_hover_color(): string { @@ -207,7 +207,7 @@ function uabb_global_button_text_hover_color(): string { /** * Button Background Color - - * + * * @return string */ function uabb_global_button_bg_color(): string { @@ -219,7 +219,7 @@ function uabb_global_button_bg_color(): string { /** * Button Background Hover Color - - * + * * @return string */ function uabb_global_button_bg_hover_color(): string { @@ -231,7 +231,7 @@ function uabb_global_button_bg_hover_color(): string { /** * Button Border Radius - - * + * * @return string */ function uabb_global_button_border_radius(): string { @@ -244,7 +244,7 @@ function uabb_global_button_border_radius(): string { /** * Button Padding - - * + * * @return string */ function uabb_global_button_padding(): string { @@ -261,7 +261,7 @@ function uabb_global_button_padding(): string { } /** * Button Padding - - * + * * @return string */ function uabb_global_button_vertical_padding(): string { @@ -273,7 +273,7 @@ function uabb_global_button_vertical_padding(): string { } /** * Button Padding - - * + * * @return string */ function uabb_global_button_horizontal_padding(): string { @@ -283,10 +283,7 @@ function uabb_global_button_horizontal_padding(): string { return $h_padding; } - } new UABBGlobalSettingsOptions(); } - - diff --git a/classes/uabb-global-settings-form.php b/classes/uabb-global-settings-form.php index fa502ee5..3c79c603 100644 --- a/classes/uabb-global-settings-form.php +++ b/classes/uabb-global-settings-form.php @@ -5,9 +5,9 @@ * @package Global Settings Form */ - // Defining the constant -if (!defined('UABB_PREFIX')) { - define('UABB_PREFIX', ''); +// Defining the constant +if ( ! defined( 'UABB_PREFIX' ) ) { + define( 'UABB_PREFIX', '' ); } diff --git a/classes/uabb-global-settings.php b/classes/uabb-global-settings.php index ed2f0f25..e995fe8f 100644 --- a/classes/uabb-global-settings.php +++ b/classes/uabb-global-settings.php @@ -68,7 +68,7 @@ function add_options() { * @since 1.0 * @return void */ - static public function init_actions() { + public static function init_actions() { FLBuilderAJAX::add_action( 'render_uabb_global_settings', 'UABB_Global_Styling::render_uabb_global_settings' ); FLBuilderAJAX::add_action( 'save_uabb_global_settings', 'UABB_Global_Styling::save_uabb_global_settings', array( 'settings' ) ); } @@ -79,7 +79,7 @@ static public function init_actions() { * @since 1.0 * @return string */ - static public function render_uabb_global_settings() { + public static function render_uabb_global_settings() { $settings = self::get_uabb_global_settings(); $form = FLBuilderModel::$settings_forms['uabb-global']; @@ -101,7 +101,7 @@ static public function render_uabb_global_settings() { * @since 1.0 * @return object */ - static public function get_uabb_global_settings() { + public static function get_uabb_global_settings() { $settings = UABB_Init::$uabb_options['uabb_global_settings']; $defaults = FLBuilderModel::get_settings_form_defaults( 'uabb-global' ); @@ -119,7 +119,7 @@ static public function get_uabb_global_settings() { * @param array $settings gets a array of old and new settings values. * @return bool */ - static public function save_uabb_global_settings( $settings = array() ) { + public static function save_uabb_global_settings( $settings = array() ) { $old_settings = self::get_uabb_global_settings(); $new_settings = (object) array_merge( (array) $old_settings, (array) $settings ); diff --git a/classes/wpml/class-wpml-uabb-infolist.php b/classes/wpml/class-wpml-uabb-infolist.php index 562787af..2de4db57 100644 --- a/classes/wpml/class-wpml-uabb-infolist.php +++ b/classes/wpml/class-wpml-uabb-infolist.php @@ -16,7 +16,7 @@ class WPML_UABB_Infolist extends WPML_Beaver_Builder_Module_With_Items { * * @since 1.6.7 * @param object $settings an object to get values of Info List. - * @return object + * @return object */ public function &get_items( $settings ): object { return $settings->add_list_item; @@ -78,4 +78,3 @@ protected function get_editor_type( $field ): string { } } } - diff --git a/includes/admin-settings-icons.php b/includes/admin-settings-icons.php index 04cc9541..f17cb76a 100644 --- a/includes/admin-settings-icons.php +++ b/includes/admin-settings-icons.php @@ -5,9 +5,9 @@ * @package UABB Settings Icons */ - // Defining the constant - if (!defined('UABB_PREFIX')) { - define('UABB_PREFIX', ''); +// Defining the constant +if ( ! defined( 'UABB_PREFIX' ) ) { + define( 'UABB_PREFIX', '' ); } ?>
    diff --git a/includes/admin-settings-modules.php b/includes/admin-settings-modules.php index 172486ed..83e53d6c 100644 --- a/includes/admin-settings-modules.php +++ b/includes/admin-settings-modules.php @@ -5,9 +5,9 @@ * @package UABB Settings Modules */ - // Defining the constant -if (!defined('UABB_PREFIX')) { - define('UABB_PREFIX', ''); +// Defining the constant +if ( ! defined( 'UABB_PREFIX' ) ) { + define( 'UABB_PREFIX', '' ); } ?> diff --git a/includes/ui-panel-presets.php b/includes/ui-panel-presets.php index 48f1fb56..929eb3f3 100644 --- a/includes/ui-panel-presets.php +++ b/includes/ui-panel-presets.php @@ -8,13 +8,13 @@ */ // Ensure required variables are set -$has_editing_cap = isset($has_editing_cap) ? $has_editing_cap : false; -$is_module_template = isset($is_module_template) ? $is_module_template : false; -$module_templates = isset($module_templates) ? $module_templates : array(); +$has_editing_cap = isset( $has_editing_cap ) ? $has_editing_cap : false; +$is_module_template = isset( $is_module_template ) ? $is_module_template : false; +$module_templates = isset( $module_templates ) ? $module_templates : array(); // Defining the constant -if (!defined('UABB_PREFIX')) { - define('UABB_PREFIX', ''); +if ( ! defined( 'UABB_PREFIX' ) ) { + define( 'UABB_PREFIX', '' ); } ?> diff --git a/includes/ui-panel-sections.php b/includes/ui-panel-sections.php index f60e0485..916592b8 100644 --- a/includes/ui-panel-sections.php +++ b/includes/ui-panel-sections.php @@ -8,14 +8,14 @@ */ // Ensure required variables are set -$has_editing_cap = isset($has_editing_cap) ? $has_editing_cap : false; -$is_module_template = isset($is_module_template) ? $is_module_template : false; -$is_row_template = isset($is_row_template) ? $is_row_template : false; -$row_templates = isset($row_templates) ? $row_templates : array(); +$has_editing_cap = isset( $has_editing_cap ) ? $has_editing_cap : false; +$is_module_template = isset( $is_module_template ) ? $is_module_template : false; +$is_row_template = isset( $is_row_template ) ? $is_row_template : false; +$row_templates = isset( $row_templates ) ? $row_templates : array(); // Defining the constant -if (!defined('UABB_PREFIX')) { - define('UABB_PREFIX', ''); +if ( ! defined( 'UABB_PREFIX' ) ) { + define( 'UABB_PREFIX', '' ); } ?> diff --git a/index.php b/index.php index 5c79748b..b4e36e12 100644 --- a/index.php +++ b/index.php @@ -7,4 +7,3 @@ */ /* Silence is golden, and we agree. */ - diff --git a/lib/astra-notices/class-astra-notices.php b/lib/astra-notices/class-astra-notices.php index 0dca35eb..42599bbd 100644 --- a/lib/astra-notices/class-astra-notices.php +++ b/lib/astra-notices/class-astra-notices.php @@ -258,7 +258,6 @@ public function show_notices() { } } } - } /** @@ -371,7 +370,7 @@ private static function is_expired( $notice ) { * @return mixed URL. */ public static function get_url() { - $path = wp_normalize_path( dirname( __FILE__ ) ); + $path = wp_normalize_path( __DIR__ ); $theme_dir = wp_normalize_path( get_template_directory() ); if ( strpos( $path, $theme_dir ) !== false ) { @@ -380,7 +379,6 @@ public static function get_url() { return plugin_dir_url( __FILE__ ); } } - } /** diff --git a/modules/advanced-icon/advanced-icon.php b/modules/advanced-icon/advanced-icon.php index 505f6982..f0ee4e26 100644 --- a/modules/advanced-icon/advanced-icon.php +++ b/modules/advanced-icon/advanced-icon.php @@ -23,7 +23,7 @@ public function __construct() { 'name' => __( 'Advanced Icons', 'uabb' ), 'description' => __( 'Display a group of Image / Icons.', 'uabb' ), 'category' => BB_Ultimate_Addon_Helper::module_cat( BB_Ultimate_Addon_Helper::$basic_modules ), - 'group' => defined('UABB_CAT') ? UABB_CAT : '', + 'group' => defined( 'UABB_CAT' ) ? UABB_CAT : '', 'dir' => BB_ULTIMATE_ADDON_DIR . 'modules/advanced-icon/', 'url' => BB_ULTIMATE_ADDON_URL . 'modules/advanced-icon/', 'editor_export' => false, // Defaults to true and can be omitted. @@ -33,8 +33,6 @@ public function __construct() { ) ); } - - } /* diff --git a/modules/advanced-icon/includes/frontend.css.php b/modules/advanced-icon/includes/frontend.css.php index 81d11709..1fe58b13 100644 --- a/modules/advanced-icon/includes/frontend.css.php +++ b/modules/advanced-icon/includes/frontend.css.php @@ -9,19 +9,19 @@ diff --git a/modules/advanced-icon/includes/frontend.php b/modules/advanced-icon/includes/frontend.php index 5d29a109..b9142a15 100644 --- a/modules/advanced-icon/includes/frontend.php +++ b/modules/advanced-icon/includes/frontend.php @@ -6,8 +6,8 @@ */ // Ensure $settings is defined and initialized -if (!isset($settings)) { - $settings = new stdClass(); // Create an empty object to avoid undefined errors +if ( ! isset( $settings ) ) { + $settings = new stdClass(); // Create an empty object to avoid undefined errors } ?> @@ -78,7 +78,7 @@ FLBuilder::render_module_html( 'image-icon', $imageicon_array ); echo ''; } - $icon_count++; + ++$icon_count; } ?> diff --git a/modules/flip-box/flip-box.php b/modules/flip-box/flip-box.php index c4d162bd..941437dd 100644 --- a/modules/flip-box/flip-box.php +++ b/modules/flip-box/flip-box.php @@ -22,7 +22,7 @@ public function __construct() { 'name' => __( 'Flip Box', 'uabb' ), 'description' => __( 'Flip Box', 'uabb' ), 'category' => BB_Ultimate_Addon_Helper::module_cat( BB_Ultimate_Addon_Helper::$basic_modules ), - 'group' => defined('UABB_CAT') ? UABB_CAT : '', + 'group' => defined( 'UABB_CAT' ) ? UABB_CAT : '', 'dir' => BB_ULTIMATE_ADDON_DIR . 'modules/flip-box/', 'url' => BB_ULTIMATE_ADDON_URL . 'modules/flip-box/', 'editor_export' => true, // Defaults to true and can be omitted. @@ -49,11 +49,11 @@ public function get_icon( $icon = '' ) { } if ( file_exists( $path ) ) { - $icon_content = file_get_contents( $path ); - return $icon_content !== false ? $icon_content : ''; - } - - return ''; // Return an empty string if no icon found. + $icon_content = file_get_contents( $path ); + return $icon_content !== false ? $icon_content : ''; + } + + return ''; // Return an empty string if no icon found. } @@ -445,7 +445,7 @@ public function filter_settings( $settings, $helper ) { if ( ! isset( $settings->button->button_typo ) || ! is_object( $settings->button->button_typo ) ) { $settings->button->button_typo = new stdClass(); $settings->button->button_typo_medium = new stdClass(); - $settings->button->button_typo_responsive = new stdClass; + $settings->button->button_typo_responsive = new stdClass(); } if ( isset( $settings->button->font_family ) ) { if ( isset( $settings->button->font_family->weight ) ) { @@ -1065,4 +1065,3 @@ public function filter_settings( $settings, $helper ) { } else { require_once BB_ULTIMATE_ADDON_DIR . 'modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php'; } - diff --git a/modules/flip-box/includes/frontend.php b/modules/flip-box/includes/frontend.php index 9a100ac2..87490fd0 100644 --- a/modules/flip-box/includes/frontend.php +++ b/modules/flip-box/includes/frontend.php @@ -5,7 +5,7 @@ * @package UABB Flip Box Module */ - // Ensure $settings is defined and initialized +// Ensure $settings is defined and initialized if ( ! isset( $settings ) ) { $settings = new stdClass(); // Create an empty object to avoid undefined errors } diff --git a/modules/image-separator/image-separator.php b/modules/image-separator/image-separator.php index 822e3fca..f00e3d4d 100644 --- a/modules/image-separator/image-separator.php +++ b/modules/image-separator/image-separator.php @@ -41,7 +41,7 @@ public function __construct() { 'name' => __( 'Image Separator', 'uabb' ), 'description' => __( 'Use Image as a separator ', 'uabb' ), 'category' => BB_Ultimate_Addon_Helper::module_cat( BB_Ultimate_Addon_Helper::$basic_modules ), - 'group' => defined('UABB_CAT') ? UABB_CAT : '', + 'group' => defined( 'UABB_CAT' ) ? UABB_CAT : '', 'dir' => BB_ULTIMATE_ADDON_DIR . 'modules/image-separator/', 'url' => BB_ULTIMATE_ADDON_URL . 'modules/image-separator/', 'icon' => 'format-image.svg', @@ -85,7 +85,7 @@ public function update( $settings ): object { * Function to delete the cropped image src * * @method delete - * + * * @return void */ public function delete(): void { @@ -160,7 +160,7 @@ public function crop() { * Function to get the Image src * * @method get_data - * + * * @return object */ public function get_data(): object { @@ -354,7 +354,7 @@ protected function _get_uncropped_url(): string { if ( ! empty( $this->settings->photo_src ) ) { $url = $this->settings->photo_src; } else { - $url = (defined('FL_BUILDER_URL') ? FL_BUILDER_URL : '') . 'img/pixel.png'; + $url = ( defined( 'FL_BUILDER_URL' ) ? FL_BUILDER_URL : '' ) . 'img/pixel.png'; } return $url; diff --git a/modules/image-separator/includes/frontend.css.php b/modules/image-separator/includes/frontend.css.php index 75b4ca6a..791e7533 100644 --- a/modules/image-separator/includes/frontend.css.php +++ b/modules/image-separator/includes/frontend.css.php @@ -5,7 +5,7 @@ * @package UABB Image Separator Module */ - // Ensure $settings is defined and initialized +// Ensure $settings is defined and initialized if ( ! isset( $settings ) ) { $settings = new stdClass(); // Create an empty object to avoid undefined errors } diff --git a/modules/image-separator/includes/frontend.js.php b/modules/image-separator/includes/frontend.js.php index 2c3ca6f3..d369b040 100644 --- a/modules/image-separator/includes/frontend.js.php +++ b/modules/image-separator/includes/frontend.js.php @@ -5,7 +5,7 @@ * @package UABB Image Separator Module */ - // Ensure $settings is defined and initialized +// Ensure $settings is defined and initialized if ( ! isset( $settings ) ) { $settings = new stdClass(); // Create an empty object to avoid undefined errors } diff --git a/modules/image-separator/includes/frontend.php b/modules/image-separator/includes/frontend.php index cb4f5f6a..8fc9c8aa 100644 --- a/modules/image-separator/includes/frontend.php +++ b/modules/image-separator/includes/frontend.php @@ -5,7 +5,7 @@ * @package UABB Image Separator Module */ - // Ensure $settings is defined and initialized + // Ensure $settings is defined and initialized if ( ! isset( $settings ) ) { $settings = new stdClass(); // Create an empty object to avoid undefined errors } diff --git a/modules/info-list/includes/frontend.css.php b/modules/info-list/includes/frontend.css.php index 4d3e08fe..1dd666cd 100644 --- a/modules/info-list/includes/frontend.css.php +++ b/modules/info-list/includes/frontend.css.php @@ -10,17 +10,17 @@ $converted = UABB_Lite_Compatibility::check_old_page_migration(); // Ensure $settings is defined and initialized -if (!isset($settings)) { +if ( ! isset( $settings ) ) { $settings = new stdClass(); // Create an empty object to avoid undefined errors } // Ensure $id is defined and initialized -if (!isset($id)) { - $id = ''; +if ( ! isset( $id ) ) { + $id = ''; } // Ensure $global_settings is defined and initialized -if (!isset($global_settings)) { +if ( ! isset( $global_settings ) ) { // Create an empty object to avoid undefined errors $global_settings = new stdClass(); } @@ -81,7 +81,7 @@ height: calc( 50% - icon_image_size / 2 ) + $icon_extra_padding - $space_element; ?>px ); top: icon_image_size + $icon_extra_padding_top ); ?>px; - height: calc( 100% - icon_image_size + $icon_extra_padding_top); ?>px ); + height: calc( 100% - icon_image_size + $icon_extra_padding_top ); ?>px ); } align_items ) : ?> @@ -249,7 +249,7 @@ space_between_elements ) { ?> .fl-node- .uabb-info-list-wrapper .uabb-info-list-item { padding-right: space_between_elements ) / 2 ); ?>px; - padding-left: space_between_elements ) / 2 ); ?>px; + padding-left: space_between_elements ) / 2 ); ?>px; padding-bottom: 0; } @@ -409,8 +409,8 @@ top: calc( 50% + icon_image_size - $need_to_add ) / 2 ) + $icon_extra_padding - $space_element; ?>px ); height: calc( 50% - icon_image_size - $need_to_add ) / 2 ) + $icon_extra_padding - $space_element; ?>px ); - top: icon_image_size - $need_to_add + $icon_extra_padding_top); ?>px; - height: calc( 100% - icon_image_size - $need_to_add ) + $icon_extra_padding_top); ?>px ); + top: icon_image_size - $need_to_add + $icon_extra_padding_top ); ?>px; + height: calc( 100% - icon_image_size - $need_to_add ) + $icon_extra_padding_top ); ?>px ); } diff --git a/modules/info-list/includes/frontend.js.php b/modules/info-list/includes/frontend.js.php index 36049eca..77ace579 100644 --- a/modules/info-list/includes/frontend.js.php +++ b/modules/info-list/includes/frontend.js.php @@ -5,14 +5,14 @@ * @package UABB Info List Module */ - // Ensure $settings is defined and initialized -if (!isset($settings)) { - $settings = new stdClass(); // Create an empty object to avoid undefined errors +// Ensure $settings is defined and initialized +if ( ! isset( $settings ) ) { + $settings = new stdClass(); // Create an empty object to avoid undefined errors } // Ensure $id is defined and initialized -if (!isset($id)) { - $id = ''; +if ( ! isset( $id ) ) { + $id = ''; } diff --git a/modules/info-list/includes/frontend.php b/modules/info-list/includes/frontend.php index 960a4a24..5bdf8e98 100644 --- a/modules/info-list/includes/frontend.php +++ b/modules/info-list/includes/frontend.php @@ -6,13 +6,13 @@ */ // Ensure $settings is defined and initialized -if (!isset($settings)) { - $settings = new stdClass(); // Create an empty object to avoid undefined errors +if ( ! isset( $settings ) ) { + $settings = new stdClass(); // Create an empty object to avoid undefined errors } // Ensure $settings is defined and initialized -if (!isset($module)) { - $module = new stdClass(); // Create an empty object to avoid undefined errors +if ( ! isset( $module ) ) { + $module = new stdClass(); // Create an empty object to avoid undefined errors } ?> diff --git a/modules/info-list/info-list.php b/modules/info-list/info-list.php index 2cfaa6b2..dc4556c5 100644 --- a/modules/info-list/info-list.php +++ b/modules/info-list/info-list.php @@ -22,7 +22,7 @@ public function __construct() { 'name' => __( 'Info List', 'uabb' ), 'description' => __( 'A totally awesome module!', 'uabb' ), 'category' => BB_Ultimate_Addon_Helper::module_cat( BB_Ultimate_Addon_Helper::$basic_modules ), - 'group' => defined('UABB_CAT') ? UABB_CAT : '', + 'group' => defined( 'UABB_CAT' ) ? UABB_CAT : '', 'dir' => BB_ULTIMATE_ADDON_DIR . 'modules/info-list/', 'url' => BB_ULTIMATE_ADDON_URL . 'modules/info-list/', 'editor_export' => true, // Defaults to true and can be omitted. @@ -44,8 +44,7 @@ public function __construct() { * @method get_icons * @param string $icon gets the icon for the module. */ - public function get_icon( $icon = '' ): string - { + public function get_icon( $icon = '' ): string { // Initialize $path before the first if statement $path = ''; @@ -55,13 +54,13 @@ public function get_icon( $icon = '' ): string $path = BB_ULTIMATE_ADDON_DIR . 'modules/info-list/icon/' . $icon; } - if (file_exists($path)) { - $contents = file_get_contents($path); //phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents - if ($contents !== false) { + if ( file_exists( $path ) ) { + $contents = file_get_contents( $path ); //phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents + if ( $contents !== false ) { return $contents; } } - + // If we reach this point, either the file doesn't exist or file_get_contents failed return ''; } @@ -74,8 +73,7 @@ public function get_icon( $icon = '' ): string * @param object $settings gets the settings for the module. * @return void */ - public function render_image( $item, $settings ): void - { + public function render_image( $item, $settings ): void { $infolist_icon_size = isset( $settings->icon_image_size ) ? $settings->icon_image_size : 75; @@ -126,7 +124,6 @@ public function render_image( $item, $settings ): void ); /* Render HTML Function */ FLBuilder::render_module_html( 'image-icon', $imageicon_array ); - } /** * Render text @@ -136,7 +133,7 @@ public function render_image( $item, $settings ): void * @param var $list_item_counter counts the list item counter value. * @return void */ - public function render_each_item( $item, $list_item_counter ): void{ + public function render_each_item( $item, $list_item_counter ): void { $target = ''; $nofollow = ''; if ( ! UABB_Lite_Compatibility::check_bb_version() ) { diff --git a/modules/info-table/includes/frontend.css.php b/modules/info-table/includes/frontend.css.php index 087e3f86..bad2e9a7 100644 --- a/modules/info-table/includes/frontend.css.php +++ b/modules/info-table/includes/frontend.css.php @@ -10,19 +10,19 @@ $converted = UABB_Lite_Compatibility::check_old_page_migration(); // Ensure $settings is defined and initialized -if (!isset($settings)) { - $settings = new stdClass(); // Create an empty object to avoid undefined errors +if ( ! isset( $settings ) ) { + $settings = new stdClass(); // Create an empty object to avoid undefined errors } // Ensure $id is defined and initialized -if (!isset($id)) { - $id = ''; +if ( ! isset( $id ) ) { + $id = ''; } // Ensure $global_settings is defined and initialized -if (!isset($global_settings)) { - // Create an empty object to avoid undefined errors - $global_settings = new stdClass(); +if ( ! isset( $global_settings ) ) { + // Create an empty object to avoid undefined errors + $global_settings = new stdClass(); } $bg_grad_start = ''; // Ensure $bg_grad_start is always defined @@ -660,12 +660,12 @@ } .fl-node- .info-table-heading .info-table-sub-heading { sub_heading_color ) ) { ?> - color:sub_heading_color ); ?>; + color:sub_heading_color ); ?>; } .fl-node- .info-table .info-table-description { description_color ) ) { ?> - color:description_color ); ?>; + color:description_color ); ?>; } btn_font_size_unit ) && '' !== $settings->btn_font_size_unit ) { ?> font-size: btn_font_size_unit ); ?>px; btn_line_height_unit && '' !== $settings->btn_font_size_unit ) { ?> - btn_font_size_unit) + 5; - echo "line-height: {$line_height}px;"; + if ( '' === $settings->btn_line_height_unit && '' !== $settings->btn_font_size_unit ) { + ?> + btn_font_size_unit ) + 5; + echo "line-height: {$line_height}px;"; ?> btn_font_size_unit ) && '' === $settings->btn_font_size_unit && isset( $settings->btn_font_size['desktop'] ) && '' !== $settings->btn_font_size['desktop'] ) { ?> font-size: btn_font_size['desktop'] ); ?>px; - btn_font_size['desktop']) + 5; + btn_font_size['desktop'] ) + 5; echo "line-height: {$line_height}px;"; - ?> + ?> btn_font_size['desktop'] ) && '' === $settings->btn_font_size['desktop'] && isset( $settings->btn_line_height['desktop'] ) && '' !== $settings->btn_line_height['desktop'] && '' === $settings->btn_line_height_unit ) { ?> diff --git a/modules/info-table/includes/frontend.php b/modules/info-table/includes/frontend.php index 9cc6dac9..d904bc70 100644 --- a/modules/info-table/includes/frontend.php +++ b/modules/info-table/includes/frontend.php @@ -5,9 +5,9 @@ * @package UABB Info Table Module */ - // Ensure $settings is defined and initialized -if (!isset($settings)) { - $settings = new stdClass(); // Create an empty object to avoid undefined errors +// Ensure $settings is defined and initialized +if ( ! isset( $settings ) ) { + $settings = new stdClass(); // Create an empty object to avoid undefined errors } if ( isset( $settings->it_link_nofollow ) ) { diff --git a/modules/info-table/info-table.php b/modules/info-table/info-table.php index c1c02697..f3c64d29 100644 --- a/modules/info-table/info-table.php +++ b/modules/info-table/info-table.php @@ -22,7 +22,7 @@ public function __construct() { 'name' => __( 'Info Table', 'uabb' ), 'description' => __( 'A basic info table.', 'uabb' ), 'category' => BB_Ultimate_Addon_Helper::module_cat( BB_Ultimate_Addon_Helper::$basic_modules ), - 'group' => defined('UABB_CAT') ? UABB_CAT : '', + 'group' => defined( 'UABB_CAT' ) ? UABB_CAT : '', 'dir' => BB_ULTIMATE_ADDON_DIR . 'modules/info-table/', 'url' => BB_ULTIMATE_ADDON_URL . 'modules/info-table/', 'editor_export' => true, // Defaults to true and can be omitted. @@ -673,4 +673,3 @@ public function filter_settings( $settings, $helper ) { } else { require_once BB_ULTIMATE_ADDON_DIR . 'modules/info-table/info-table-bb-less-than-2-2-compatibility.php'; } - diff --git a/modules/ribbon/includes/frontend.css.php b/modules/ribbon/includes/frontend.css.php index 43268176..f2fde767 100644 --- a/modules/ribbon/includes/frontend.css.php +++ b/modules/ribbon/includes/frontend.css.php @@ -10,19 +10,19 @@ global $post; // Ensure $settings is defined and initialized -if (!isset($settings)) { - $settings = new stdClass(); // Create an empty object to avoid undefined errors +if ( ! isset( $settings ) ) { + $settings = new stdClass(); // Create an empty object to avoid undefined errors } // Ensure $id is defined and initialized -if (!isset($id)) { - $id = ''; +if ( ! isset( $id ) ) { + $id = ''; } // Ensure $global_settings is defined and initialized -if (!isset($global_settings)) { - // Create an empty object to avoid undefined errors - $global_settings = new stdClass(); +if ( ! isset( $global_settings ) ) { + // Create an empty object to avoid undefined errors + $global_settings = new stdClass(); } $version_bb_check = UABB_Lite_Compatibility::check_bb_version(); diff --git a/modules/ribbon/includes/frontend.php b/modules/ribbon/includes/frontend.php index 166580cf..5b41fea9 100644 --- a/modules/ribbon/includes/frontend.php +++ b/modules/ribbon/includes/frontend.php @@ -13,8 +13,8 @@ __( 'Ribbon', 'uabb' ), 'description' => __( 'Ribbon', 'uabb' ), 'category' => BB_Ultimate_Addon_Helper::module_cat( BB_Ultimate_Addon_Helper::$basic_modules ), - 'group' => defined('UABB_CAT') ? UABB_CAT : '', + 'group' => defined( 'UABB_CAT' ) ? UABB_CAT : '', 'dir' => BB_ULTIMATE_ADDON_DIR . 'modules/ribbon/', 'url' => BB_ULTIMATE_ADDON_URL . 'modules/ribbon/', 'editor_export' => true, // Defaults to true and can be omitted. @@ -216,27 +216,25 @@ public function filter_settings( $settings, $helper ) { * @method get_icon * @param string $icon gets the icon for the module. */ - public function get_icon($icon = ''): string - { + public function get_icon( $icon = '' ): string { // Initialize $path before the first if statement $path = ''; - + // Check if $icon is referencing an included icon - if ('' !== $icon && file_exists(BB_ULTIMATE_ADDON_DIR . 'modules/ribbon/icon/' . $icon)) { + if ( '' !== $icon && file_exists( BB_ULTIMATE_ADDON_DIR . 'modules/ribbon/icon/' . $icon ) ) { $path = BB_ULTIMATE_ADDON_DIR . 'modules/ribbon/icon/' . $icon; } - - if (file_exists($path)) { - $contents = file_get_contents($path); //phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents - if ($contents !== false) { + + if ( file_exists( $path ) ) { + $contents = file_get_contents( $path ); //phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents + if ( $contents !== false ) { return $contents; } } - + // If we reach this point, either the file doesn't exist or file_get_contents failed return ''; } - } @@ -250,4 +248,3 @@ public function get_icon($icon = ''): string } else { require_once BB_ULTIMATE_ADDON_DIR . 'modules/ribbon/ribbon-bb-less-than-2-2-compatibility.php'; } - diff --git a/modules/slide-box/includes/frontend.css.php b/modules/slide-box/includes/frontend.css.php index cf7a2b80..044a5847 100644 --- a/modules/slide-box/includes/frontend.css.php +++ b/modules/slide-box/includes/frontend.css.php @@ -12,19 +12,19 @@ $converted = UABB_Lite_Compatibility::check_old_page_migration(); // Ensure $settings is defined and initialized -if (!isset($settings)) { - $settings = new stdClass(); // Create an empty object to avoid undefined errors +if ( ! isset( $settings ) ) { + $settings = new stdClass(); // Create an empty object to avoid undefined errors } // Ensure $id is defined and initialized -if (!isset($id)) { - $id = ''; +if ( ! isset( $id ) ) { + $id = ''; } // Ensure $global_settings is defined and initialized -if (!isset($global_settings)) { - // Create an empty object to avoid undefined errors - $global_settings = new stdClass(); +if ( ! isset( $global_settings ) ) { + // Create an empty object to avoid undefined errors + $global_settings = new stdClass(); } $settings->icon_color = FLBuilderColor::hex_or_rgb( $settings->icon_color ); @@ -551,7 +551,7 @@ front_title_line_height_unit ) && '' !== $settings->front_title_line_height_unit ) { ?> - line-height: front_title_line_height_unit ); ?>em; + line-height: front_title_line_height_unit ); ?>em; front_title_line_height_unit ) && '' === $settings->front_title_line_height_unit && isset( $settings->front_title_line_height['desktop'] ) && '' !== $settings->front_title_line_height['desktop'] ) { ?> line-height: front_title_line_height['desktop'] ); ?>px; @@ -950,18 +950,19 @@ front_desc_font_size_unit_responsive ) && '' !== $settings->front_desc_font_size_unit_responsive ) { ?> font-size: front_desc_font_size_unit_responsive ); ?>px; front_desc_line_height_unit_responsive && '' !== $settings->front_desc_font_size_unit_responsive ) { - $line_height = floatval($settings->front_desc_font_size_unit_responsive) + 2; // ensure it's a numeric value before performing the addition - echo "line-height: {$line_height}px;"; - } - ?> - front_desc_font_size_unit_responsive ) && '' === $settings->front_desc_font_size_unit_responsive && isset( $settings->line_height['small'] ) && '' !== $settings->line_height['small'] ) { ?> - front_desc_font_size['small'] ); - $small_line_height = floatval($small_font_size) + 2; // ensure it's a numeric value before performing the addition + if ( '' === $settings->front_desc_line_height_unit_responsive && '' !== $settings->front_desc_font_size_unit_responsive ) { + $line_height = floatval( $settings->front_desc_font_size_unit_responsive ) + 2; // ensure it's a numeric value before performing the addition + echo "line-height: {$line_height}px;"; + } + ?> + front_desc_font_size_unit_responsive ) && '' === $settings->front_desc_font_size_unit_responsive && isset( $settings->line_height['small'] ) && '' !== $settings->line_height['small'] ) { + ?> + front_desc_font_size['small'] ); + $small_line_height = floatval( $small_font_size ) + 2; // ensure it's a numeric value before performing the addition echo "font-size: {$small_font_size}px; line-height: {$small_line_height}px;"; - ?> + ?> @@ -980,18 +981,19 @@ front_title_font_size_unit_responsive ) && '' !== $settings->front_title_font_size_unit_responsive ) { ?> font-size: front_title_font_size_unit_responsive ); ?>px; - front_title_line_height_unit_responsive && '' !== $settings->front_title_font_size_unit_responsive ) { - $line_height = floatval($settings->front_title_font_size_unit_responsive) + 2; // ensure it's a numeric value before performing the addition + $line_height = floatval( $settings->front_title_font_size_unit_responsive ) + 2; // ensure it's a numeric value before performing the addition echo "line-height: {$line_height}px;"; - } - ?> - front_title_font_size_unit_responsive ) && '' === $settings->front_title_font_size_unit_responsive && isset( $settings->front_title_font_size['small'] ) && '' !== $settings->front_title_font_size['small'] ) { ?> - front_title_font_size['small'] ); - $small_line_height = floatval($small_font_size) + 2; // ensure it's a numeric value before performing the addition - echo "font-size: {$small_font_size}px; line-height: {$small_line_height}px;"; + } + ?> + front_title_font_size_unit_responsive ) && '' === $settings->front_title_font_size_unit_responsive && isset( $settings->front_title_font_size['small'] ) && '' !== $settings->front_title_font_size['small'] ) { + ?> + front_title_font_size['small'] ); + $small_line_height = floatval( $small_font_size ) + 2; // ensure it's a numeric value before performing the addition + echo "font-size: {$small_font_size}px; line-height: {$small_line_height}px;"; ?> @@ -1011,18 +1013,20 @@ back_desc_font_size_unit_responsive ) && '' !== $settings->back_desc_font_size_unit_responsive ) { ?> font-size: back_desc_font_size_unit_responsive ); ?>px; - back_desc_line_height_unit_responsive && '' !== $settings->back_desc_font_size_unit_responsive ) { + back_desc_line_height_unit_responsive && '' !== $settings->back_desc_font_size_unit_responsive ) { - $line_height = floatval($settings->back_desc_font_size_unit_responsive) + 2; // ensure it's a numeric value before performing the addition + $line_height = floatval( $settings->back_desc_font_size_unit_responsive ) + 2; // ensure it's a numeric value before performing the addition echo "line-height: {$line_height}px;"; - } - ?> - back_desc_font_size_unit_responsive ) && '' === $settings->back_desc_font_size_unit_responsive && isset( $settings->back_desc_font_size['small'] ) && '' !== $settings->back_desc_font_size['small'] ) { ?> - back_desc_font_size['small'] ); - $small_line_height = floatval($small_font_size) + 2; // ensure it's a numeric value before performing the addition - echo "font-size: {$small_font_size}px; line-height: {$small_line_height}px;"; + } + ?> + back_desc_font_size_unit_responsive ) && '' === $settings->back_desc_font_size_unit_responsive && isset( $settings->back_desc_font_size['small'] ) && '' !== $settings->back_desc_font_size['small'] ) { + ?> + back_desc_font_size['small'] ); + $small_line_height = floatval( $small_font_size ) + 2; // ensure it's a numeric value before performing the addition + echo "font-size: {$small_font_size}px; line-height: {$small_line_height}px;"; ?> @@ -1042,18 +1046,18 @@ back_title_font_size_unit_responsive ) && '' !== $settings->back_title_font_size_unit_responsive ) { ?> font-size: back_title_font_size_unit_responsive ); ?>px; - back_title_line_height_unit_responsive && '' !== $settings->back_title_font_size_unit_responsive ) { - $line_height = floatval($settings->back_title_font_size_unit_responsive) + 2; // ensure it's a numeric value before performing the addition + back_title_line_height_unit_responsive && '' !== $settings->back_title_font_size_unit_responsive ) { + $line_height = floatval( $settings->back_title_font_size_unit_responsive ) + 2; // ensure it's a numeric value before performing the addition echo "line-height: {$line_height}px;"; } - ?> - back_title_font_size_unit_responsive ) && '' === $settings->back_title_font_size_unit_responsive && isset( $settings->back_title_font_size['small'] ) && '' !== $settings->back_title_font_size['small'] ) { ?> - back_title_font_size['small'] ); - $small_line_height = floatval($small_font_size) + 2; // ensure it's a numeric value before performing the addition - echo "font-size: {$small_font_size}px; line-height: {$small_line_height}px;"; - ?> + ?> + back_title_font_size_unit_responsive ) && '' === $settings->back_title_font_size_unit_responsive && isset( $settings->back_title_font_size['small'] ) && '' !== $settings->back_title_font_size['small'] ) { ?> + back_title_font_size['small'] ); + $small_line_height = floatval( $small_font_size ) + 2; // ensure it's a numeric value before performing the addition + echo "font-size: {$small_font_size}px; line-height: {$small_line_height}px;"; + ?> @@ -1071,20 +1075,20 @@ .fl-builder-content .fl-node- .uabb-callout-cta-link { link_font_size_unit_responsive ) && '' !== $settings->link_font_size_unit_responsive ) { ?> font-size: link_font_size_unit_responsive ); ?>px; - link_line_height_unit_responsive && '' !== $settings->link_font_size_unit_responsive ) { + link_line_height_unit_responsive && '' !== $settings->link_font_size_unit_responsive ) { - $line_height = floatval($settings->link_font_size_unit_responsive) + 2; // ensure it's a numeric value before performing the addition + $line_height = floatval( $settings->link_font_size_unit_responsive ) + 2; // ensure it's a numeric value before performing the addition echo "line-height: {$line_height}px;"; - - } - ?> - link_font_size_unit_responsive ) && '' === $settings->link_font_size_unit_responsive && isset( $settings->link_font_size['small'] ) && '' !== $settings->link_font_size['small'] ) { ?> - link_font_size['small'] ); - $small_line_height = floatval($small_font_size) + 2; // ensure it's a numeric value before performing the addition - echo "font-size: {$small_font_size}px; line-height: {$small_line_height}px;"; - ?> + + } + ?> + link_font_size_unit_responsive ) && '' === $settings->link_font_size_unit_responsive && isset( $settings->link_font_size['small'] ) && '' !== $settings->link_font_size['small'] ) { ?> + link_font_size['small'] ); + $small_line_height = floatval( $small_font_size ) + 2; // ensure it's a numeric value before performing the addition + echo "font-size: {$small_font_size}px; line-height: {$small_line_height}px;"; + ?> diff --git a/modules/slide-box/includes/frontend.js.php b/modules/slide-box/includes/frontend.js.php index 2b3ef07c..7d1518e4 100644 --- a/modules/slide-box/includes/frontend.js.php +++ b/modules/slide-box/includes/frontend.js.php @@ -13,13 +13,13 @@ */ // Ensure $settings is defined and initialized -if (!isset($settings)) { - $settings = new stdClass(); // Create an empty object to avoid undefined errors +if ( ! isset( $settings ) ) { + $settings = new stdClass(); // Create an empty object to avoid undefined errors } // Ensure $id is defined and initialized -if (!isset($id)) { - $id = ''; +if ( ! isset( $id ) ) { + $id = ''; } ?> diff --git a/modules/slide-box/includes/frontend.php b/modules/slide-box/includes/frontend.php index 29ffb97c..3db701ac 100644 --- a/modules/slide-box/includes/frontend.php +++ b/modules/slide-box/includes/frontend.php @@ -10,13 +10,13 @@ */ // Ensure $settings is defined and initialized -if (!isset($settings)) { - $settings = new stdClass(); // Create an empty object to avoid undefined errors +if ( ! isset( $settings ) ) { + $settings = new stdClass(); // Create an empty object to avoid undefined errors } // Ensure $settings is defined and initialized -if (!isset($module)) { - $module = new stdClass(); // Create an empty object to avoid undefined errors +if ( ! isset( $module ) ) { + $module = new stdClass(); // Create an empty object to avoid undefined errors } $pos = $settings->front_img_icon_position; diff --git a/modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php b/modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php index 3da853d5..f774081d 100644 --- a/modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php +++ b/modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php @@ -1099,4 +1099,3 @@ ), ) ); - diff --git a/modules/slide-box/slide-box.php b/modules/slide-box/slide-box.php index c3f70d30..95dd5fca 100644 --- a/modules/slide-box/slide-box.php +++ b/modules/slide-box/slide-box.php @@ -22,7 +22,7 @@ public function __construct() { 'name' => __( 'Slide Box', 'uabb' ), 'description' => __( 'Slide Box', 'uabb' ), 'category' => BB_Ultimate_Addon_Helper::module_cat( BB_Ultimate_Addon_Helper::$basic_modules ), - 'group' => defined('UABB_CAT') ? UABB_CAT : '', + 'group' => defined( 'UABB_CAT' ) ? UABB_CAT : '', 'dir' => BB_ULTIMATE_ADDON_DIR . 'modules/slide-box/', 'url' => BB_ULTIMATE_ADDON_URL . 'modules/slide-box/', 'editor_export' => true, // Defaults to true and can be omitted. @@ -401,7 +401,7 @@ public function filter_settings( $settings, $helper ) { if ( ! isset( $settings->button->button_typo ) || ! is_object( $settings->button->button_typo ) ) { $settings->button->button_typo = new stdClass(); $settings->button->button_typo_medium = new stdClass(); - $settings->button->button_typo_responsive = new stdClass; + $settings->button->button_typo_responsive = new stdClass(); } if ( isset( $settings->button->font_family ) ) { @@ -1114,7 +1114,7 @@ public function render_overlay_icon() { if ( 'style1' === $this->settings->slide_type && 'yes' === $this->settings->overlay ) { /* Render HTML Function */ echo '
    '; - echo ' + echo ' @@ -1141,7 +1141,7 @@ public function render_dropdown_icon() { 'text' => '', ); echo '
    '; - echo ' + echo ' @@ -1159,7 +1159,7 @@ public function render_dropdown_icon() { ); echo '
    '; - echo ' + echo ' diff --git a/modules/spacer-gap/includes/frontend.css.php b/modules/spacer-gap/includes/frontend.css.php index 4e70ca7c..9def9999 100644 --- a/modules/spacer-gap/includes/frontend.css.php +++ b/modules/spacer-gap/includes/frontend.css.php @@ -10,19 +10,19 @@ @@ -46,7 +46,7 @@ @media ( max-width: medium_breakpoint ) . 'px'; ?> ) { .fl-node- .uabb-spacer-gap-preview.uabb-spacer-gap { - height: medium_device) ? $settings->medium_device : 10 ); ?>px; + height: medium_device ) ? $settings->medium_device : 10 ); ?>px; clear: both; width: 100%; } @@ -59,7 +59,7 @@ ?> @media ( max-width: responsive_breakpoint ) . 'px'; ?> ) { .fl-node- .uabb-spacer-gap-preview.uabb-spacer-gap { - height: small_device) ? $settings->small_device : 10 ); ?>px; + height: small_device ) ? $settings->small_device : 10 ); ?>px; clear: both; width: 100%; } diff --git a/modules/spacer-gap/spacer-gap.php b/modules/spacer-gap/spacer-gap.php index e44e4eb2..aa0319ad 100644 --- a/modules/spacer-gap/spacer-gap.php +++ b/modules/spacer-gap/spacer-gap.php @@ -22,7 +22,7 @@ public function __construct() { 'name' => __( 'Spacer / Gap', 'uabb' ), 'description' => __( 'A totally awesome module!', 'uabb' ), 'category' => BB_Ultimate_Addon_Helper::module_cat( BB_Ultimate_Addon_Helper::$basic_modules ), - 'group' => defined('UABB_CAT') ? UABB_CAT : '', + 'group' => defined( 'UABB_CAT' ) ? UABB_CAT : '', 'dir' => BB_ULTIMATE_ADDON_DIR . 'modules/spacer-gap/', 'url' => BB_ULTIMATE_ADDON_URL . 'modules/spacer-gap/', 'editor_export' => true, // Defaults to true and can be omitted. @@ -44,4 +44,3 @@ public function __construct() { } else { require_once BB_ULTIMATE_ADDON_DIR . 'modules/spacer-gap/spacer-gap-bb-less-than-2-2-compatibility.php'; } - diff --git a/modules/uabb-button/includes/frontend.css.php b/modules/uabb-button/includes/frontend.css.php index 5e2e667c..522aeec2 100644 --- a/modules/uabb-button/includes/frontend.css.php +++ b/modules/uabb-button/includes/frontend.css.php @@ -10,27 +10,27 @@ $converted = UABB_Lite_Compatibility::check_old_page_migration(); // Ensure $settings is defined and initialized -if (!isset($settings)) { - $settings = new stdClass(); // Create an empty object to avoid undefined errors +if ( ! isset( $settings ) ) { + $settings = new stdClass(); // Create an empty object to avoid undefined errors } // Ensure $global_settings is defined and initialized -if (!isset($global_settings)) { - // Create an empty object to avoid undefined errors - $global_settings = new stdClass(); +if ( ! isset( $global_settings ) ) { + // Create an empty object to avoid undefined errors + $global_settings = new stdClass(); } // $id = ''; // Ensure $id is always defined // Ensure $id is defined and initialized -if (!isset($id)) { - $id = ''; // If we do not provide isset check, styling does mot get applied +if ( ! isset( $id ) ) { + $id = ''; // If we do not provide isset check, styling does mot get applied } $border_color = ''; // Ensure $border_color is always defined $bg_grad_start = ''; // Ensure $bg_grad_start is always defined -$bg_hover_grad_start = ''; //Ensure $bg_hover_grad_start is always defined +$bg_hover_grad_start = ''; // Ensure $bg_hover_grad_start is always defined $border_hover_color = ''; // Ensure $border_hover_color is always defined diff --git a/modules/uabb-button/includes/frontend.php b/modules/uabb-button/includes/frontend.php index 1aea7d64..fa12d099 100644 --- a/modules/uabb-button/includes/frontend.php +++ b/modules/uabb-button/includes/frontend.php @@ -10,13 +10,13 @@ link_nofollow ) ) { diff --git a/modules/uabb-button/uabb-button.php b/modules/uabb-button/uabb-button.php index 5039c7d2..c807b815 100644 --- a/modules/uabb-button/uabb-button.php +++ b/modules/uabb-button/uabb-button.php @@ -23,7 +23,7 @@ public function __construct() { 'name' => __( 'Button', 'uabb' ), 'description' => __( 'A simple call to action button.', 'uabb' ), 'category' => BB_Ultimate_Addon_Helper::module_cat( BB_Ultimate_Addon_Helper::$basic_modules ), - 'group' => defined('UABB_CAT') ? UABB_CAT : '', + 'group' => defined( 'UABB_CAT' ) ? UABB_CAT : '', 'dir' => BB_ULTIMATE_ADDON_DIR . 'modules/uabb-button/', 'url' => BB_ULTIMATE_ADDON_URL . 'modules/uabb-button/', 'editor_export' => true, // Defaults to true and can be omitted. diff --git a/modules/uabb-heading/includes/frontend.css.php b/modules/uabb-heading/includes/frontend.css.php index c21ef7a3..292b3889 100644 --- a/modules/uabb-heading/includes/frontend.css.php +++ b/modules/uabb-heading/includes/frontend.css.php @@ -10,19 +10,19 @@ $converted = UABB_Lite_Compatibility::check_old_page_migration(); // Ensure $settings is defined and initialized -if (!isset($settings)) { - $settings = new stdClass(); // Create an empty object to avoid undefined errors +if ( ! isset( $settings ) ) { + $settings = new stdClass(); // Create an empty object to avoid undefined errors } // Ensure $id is defined and initialized -if (!isset($id)) { - $id = ''; +if ( ! isset( $id ) ) { + $id = ''; } // Ensure $global_settings is defined and initialized -if (!isset($global_settings)) { - // Create an empty object to avoid undefined errors - $global_settings = new stdClass(); +if ( ! isset( $global_settings ) ) { + // Create an empty object to avoid undefined errors + $global_settings = new stdClass(); } // Ensure $position is defined with a default value @@ -216,7 +216,7 @@ 'photo_src' => ( isset( $settings->photo_src ) ) ? $settings->photo_src : '', /* - Icon color */ + Icon color */ // 'icon_color' => $settings->separator_icon_color, ); diff --git a/modules/uabb-heading/includes/frontend.php b/modules/uabb-heading/includes/frontend.php index 2cebdb2f..0440a6cb 100644 --- a/modules/uabb-heading/includes/frontend.php +++ b/modules/uabb-heading/includes/frontend.php @@ -8,13 +8,13 @@ global $wp_embed; // Ensure $settings is defined and initialized -if (!isset($settings)) { - $settings = new stdClass(); // Create an empty object to avoid undefined errors +if ( ! isset( $settings ) ) { + $settings = new stdClass(); // Create an empty object to avoid undefined errors } // Ensure $settings is defined and initialized -if (!isset($module)) { - $module = new stdClass(); // Create an empty object to avoid undefined errors +if ( ! isset( $module ) ) { + $module = new stdClass(); // Create an empty object to avoid undefined errors } ?> diff --git a/modules/uabb-heading/uabb-heading.php b/modules/uabb-heading/uabb-heading.php index b4653fb7..a9b01cfb 100644 --- a/modules/uabb-heading/uabb-heading.php +++ b/modules/uabb-heading/uabb-heading.php @@ -23,7 +23,7 @@ public function __construct() { 'name' => __( 'Heading', 'uabb' ), 'description' => __( 'Display a title/page heading.', 'uabb' ), 'category' => BB_Ultimate_Addon_Helper::module_cat( BB_Ultimate_Addon_Helper::$basic_modules ), - 'group' => defined('UABB_CAT') ? UABB_CAT : '', // Defining the constant + 'group' => defined( 'UABB_CAT' ) ? UABB_CAT : '', // Defining the constant 'dir' => BB_ULTIMATE_ADDON_DIR . 'modules/uabb-heading/', 'url' => BB_ULTIMATE_ADDON_URL . 'modules/uabb-heading/', 'partial_refresh' => true, diff --git a/modules/uabb-separator/includes/frontend.css.php b/modules/uabb-separator/includes/frontend.css.php index 2073aaa6..52ab7bf4 100644 --- a/modules/uabb-separator/includes/frontend.css.php +++ b/modules/uabb-separator/includes/frontend.css.php @@ -8,15 +8,15 @@ ?> color = uabb_theme_base_color( FLBuilderColor::hex_or_rgb( $settings->color ) ); $settings->height = ( '' !== trim( $settings->height ) ) ? $settings->height : '1'; diff --git a/modules/uabb-separator/uabb-separator.php b/modules/uabb-separator/uabb-separator.php index 38c0f1b4..aed76050 100644 --- a/modules/uabb-separator/uabb-separator.php +++ b/modules/uabb-separator/uabb-separator.php @@ -23,7 +23,7 @@ public function __construct() { 'name' => __( 'Simple Separator', 'uabb' ), 'description' => __( 'A divider line to separate content.', 'uabb' ), 'category' => BB_Ultimate_Addon_Helper::module_cat( BB_Ultimate_Addon_Helper::$basic_modules ), - 'group' => defined('UABB_CAT') ? UABB_CAT : '', //Define the constant before use + 'group' => defined( 'UABB_CAT' ) ? UABB_CAT : '', // Define the constant before use 'dir' => BB_ULTIMATE_ADDON_DIR . 'modules/uabb-separator/', 'url' => BB_ULTIMATE_ADDON_URL . 'modules/uabb-separator/', 'editor_export' => false, @@ -45,4 +45,3 @@ public function __construct() { } else { require_once BB_ULTIMATE_ADDON_DIR . 'modules/uabb-separator/uabb-separator-bb-less-than-2-2-compatibility.php'; } - diff --git a/modules/uabb-star-rating/includes/frontend.css.php b/modules/uabb-star-rating/includes/frontend.css.php index 2bdca637..096b1651 100644 --- a/modules/uabb-star-rating/includes/frontend.css.php +++ b/modules/uabb-star-rating/includes/frontend.css.php @@ -6,19 +6,19 @@ */ // Ensure $settings is defined and initialized -if (!isset($settings)) { - $settings = new stdClass(); // Create an empty object to avoid undefined errors +if ( ! isset( $settings ) ) { + $settings = new stdClass(); // Create an empty object to avoid undefined errors } // Ensure $id is defined and initialized -if (!isset($id)) { - $id = ''; +if ( ! isset( $id ) ) { + $id = ''; } // Ensure $global_settings is defined and initialized -if (!isset($global_settings)) { - // Create an empty object to avoid undefined errors - $global_settings = new stdClass(); +if ( ! isset( $global_settings ) ) { + // Create an empty object to avoid undefined errors + $global_settings = new stdClass(); } $settings->title_color = FLBuilderColor::hex_or_rgb( $settings->title_color ); diff --git a/modules/uabb-star-rating/includes/frontend.php b/modules/uabb-star-rating/includes/frontend.php index 2e9bb2b8..6186f783 100644 --- a/modules/uabb-star-rating/includes/frontend.php +++ b/modules/uabb-star-rating/includes/frontend.php @@ -6,8 +6,8 @@ */ // Ensure $settings is defined and initialized -if (!isset($settings)) { - $settings = new stdClass(); // Create an empty object to avoid undefined errors +if ( ! isset( $settings ) ) { + $settings = new stdClass(); // Create an empty object to avoid undefined errors } $title = $settings->rating_title; diff --git a/modules/uabb-star-rating/uabb-star-rating.php b/modules/uabb-star-rating/uabb-star-rating.php index 45d31169..7f27a058 100644 --- a/modules/uabb-star-rating/uabb-star-rating.php +++ b/modules/uabb-star-rating/uabb-star-rating.php @@ -26,7 +26,7 @@ public function __construct() { 'name' => __( 'Star Rating', 'uabb' ), 'description' => __( 'A module for Star Rating.', 'uabb' ), 'category' => BB_Ultimate_Addon_Helper::module_cat( BB_Ultimate_Addon_Helper::$basic_modules ), - 'group' => defined('UABB_CAT') ? UABB_CAT : '', + 'group' => defined( 'UABB_CAT' ) ? UABB_CAT : '', 'dir' => BB_ULTIMATE_ADDON_DIR . 'modules/uabb-star-rating/', 'url' => BB_ULTIMATE_ADDON_URL . 'modules/uabb-star-rating/', 'editor_export' => true, // Defaults to true and can be omitted. @@ -37,7 +37,6 @@ public function __construct() { ); $this->add_css( 'font-awesome-5' ); - } /** @@ -48,7 +47,7 @@ public function __construct() { * @return string Icon path or empty string if not found */ public function get_icon( $icon = '' ) { - + $path = ''; // Default Initialization // check if $icon is referencing an included icon. @@ -57,11 +56,11 @@ public function get_icon( $icon = '' ) { } if ( file_exists( $path ) ) { - $icon_content = file_get_contents( $path ); - return $icon_content !== false ? $icon_content : ''; - } - - return ''; // Return an empty string if no icon found. + $icon_content = file_get_contents( $path ); + return $icon_content !== false ? $icon_content : ''; + } + + return ''; // Return an empty string if no icon found. } } diff --git a/stubs-generator.php b/stubs-generator.php index 6b086672..a3156ceb 100644 --- a/stubs-generator.php +++ b/stubs-generator.php @@ -1,11 +1,11 @@ [ - 'wordpress' => [ - 'source' => 'https://github.com/WordPress/WordPress.git', - 'tags' => ['v6.5'], - 'output' => __DIR__ . '/stubs/wordpress', - ], - ], -]; +return array( + 'packages' => array( + 'wordpress' => array( + 'source' => 'https://github.com/WordPress/WordPress.git', + 'tags' => array( 'v6.5' ), + 'output' => __DIR__ . '/stubs/wordpress', + ), + ), +); diff --git a/tests/php/stubs/lite-stubs.php b/tests/php/stubs/lite-stubs.php index ab4fa102..7209f8a4 100644 --- a/tests/php/stubs/lite-stubs.php +++ b/tests/php/stubs/lite-stubs.php @@ -1,23 +1,22 @@ array( - * 'type' => 'uabb-gradient', - * 'label' => __( 'Gradient', 'uabb' ), - * 'default' => array //Required NULL or Default value - * 'color_one' => '', - * 'color_two' => '', - * 'angle' => '0', - * ) - * ) - * Note : Default value is required here. Either pass it NULL or enter your own value. - * How to access variables - * fl-node- .YOUR-CLASS{ - * YOUR_VARIABLE_NAME ); ?> - * } - * - * @since 1.0 - * @param var $name gets the name for the gradient field. - * @param array $value gets an array of gradient values. - * @param array $field gets an array of field values. - * @param object $settings gets the object of respective fields. - */ - function uabb_gradient($name, $value, $field, $settings) - { - } +class UABB_Gradient { + + /** + * Constructor function that initializes required actions + * + * @since 1.0 + */ + function __construct() { + } + /** + * Function that renders row's CSS + * + * @since 1.0 + * @param array $fields gets the fields for the gradient. + */ + function ui_fields( $fields ) { + } + /** + * Function that renders row's CSS + * Declaration of array + * Ex. 'YOUR_VARIABLE_NAME' => array( + * 'type' => 'uabb-gradient', + * 'label' => __( 'Gradient', 'uabb' ), + * 'default' => array //Required NULL or Default value + * 'color_one' => '', + * 'color_two' => '', + * 'angle' => '0', + * ) + * ) + * Note : Default value is required here. Either pass it NULL or enter your own value. + * How to access variables + * fl-node- .YOUR-CLASS{ + * YOUR_VARIABLE_NAME ); ?> + * } + * + * @since 1.0 + * @param var $name gets the name for the gradient field. + * @param array $value gets an array of gradient values. + * @param array $field gets an array of field values. + * @param object $settings gets the object of respective fields. + */ + function uabb_gradient( $name, $value, $field, $settings ) { + } } /** * Class to enqueue field scripts * * @package UABB_Custom_Field_Scripts */ -class UABB_Custom_Field_Scripts -{ - /** - * Constructor that initializes custom field scripts - * - * @since 1.0 - */ - function __construct() - { - } - /** - * Function that enqueue styles and scripts - * - * @since 1.0 - */ - function custom_field_scripts() - { - } +class UABB_Custom_Field_Scripts { + + /** + * Constructor that initializes custom field scripts + * + * @since 1.0 + */ + function __construct() { + } + /** + * Function that enqueue styles and scripts + * + * @since 1.0 + */ + function custom_field_scripts() { + } } /** * UABB Spacer Gap Module file. @@ -1907,16 +1722,15 @@ function custom_field_scripts() * * @class UABBSpacerGap */ -class UABBSpacerGap extends \FLBuilderModule -{ - /** - * Constructor function that constructs default values for the Spacer Gap Module - * - * @method __construct - */ - public function __construct() - { - } +class UABBSpacerGap extends \FLBuilderModule { + + /** + * Constructor function that constructs default values for the Spacer Gap Module + * + * @method __construct + */ + public function __construct() { + } } /** * UABB Button Module file @@ -1928,52 +1742,47 @@ public function __construct() * * @class UABBButtonModule */ -class UABBButtonModule extends \FLBuilderModule -{ - /** - * Constructor function that constructs default values for the Button Module - * - * @method __construct - */ - public function __construct() - { - } - /** - * Function that gets the button styling. - * - * @method update - * @param object $settings gets the settings for the button module. - */ - public function update($settings) - { - } - /** - * Function that gets the class names. - * - * @method get_classname - */ - public function get_classname() - { - } - /** - * Function that gets the button styling. - * - * @method get_button_style - */ - public function get_button_style() - { - } - /** - * Ensure backwards compatibility with old settings. - * - * @since 1.14.0 - * @param object $settings A module settings object. - * @param object $helper A settings compatibility helper. - * @return object - */ - public function filter_settings($settings, $helper) - { - } +class UABBButtonModule extends \FLBuilderModule { + + /** + * Constructor function that constructs default values for the Button Module + * + * @method __construct + */ + public function __construct() { + } + /** + * Function that gets the button styling. + * + * @method update + * @param object $settings gets the settings for the button module. + */ + public function update( $settings ) { + } + /** + * Function that gets the class names. + * + * @method get_classname + */ + public function get_classname() { + } + /** + * Function that gets the button styling. + * + * @method get_button_style + */ + public function get_button_style() { + } + /** + * Ensure backwards compatibility with old settings. + * + * @since 1.14.0 + * @param object $settings A module settings object. + * @param object $helper A settings compatibility helper. + * @return object + */ + public function filter_settings( $settings, $helper ) { + } } /** * UABB Flip Box Module file @@ -1985,52 +1794,47 @@ public function filter_settings($settings, $helper) * * @class FlipBoxModule */ -class FlipBoxModule extends \FLBuilderModule -{ - /** - * Constructor function that constructs default values for the Flip Box Module - * - * @method __construct - */ - public function __construct() - { - } - /** - * Function that gets the Icons for the Flip Box module - * - * @method get_icons - * @param string $icon gets an string to check if $icon is referencing an included icon. - */ - public function get_icon($icon = '') - { - } - /** - * Function that renders the button for the button - * - * @method render_button - */ - public function render_button() - { - } - /** - * Function that renders the Icon or Photo for the Flip Box - * - * @method render_icon - */ - public function render_icon() - { - } - /** - * Ensure backwards compatibility with old settings. - * - * @since 1.14.0 - * @param object $settings A module settings object. - * @param object $helper A settings compatibility helper. - * @return object - */ - public function filter_settings($settings, $helper) - { - } +class FlipBoxModule extends \FLBuilderModule { + + /** + * Constructor function that constructs default values for the Flip Box Module + * + * @method __construct + */ + public function __construct() { + } + /** + * Function that gets the Icons for the Flip Box module + * + * @method get_icons + * @param string $icon gets an string to check if $icon is referencing an included icon. + */ + public function get_icon( $icon = '' ) { + } + /** + * Function that renders the button for the button + * + * @method render_button + */ + public function render_button() { + } + /** + * Function that renders the Icon or Photo for the Flip Box + * + * @method render_icon + */ + public function render_icon() { + } + /** + * Ensure backwards compatibility with old settings. + * + * @since 1.14.0 + * @param object $settings A module settings object. + * @param object $helper A settings compatibility helper. + * @return object + */ + public function filter_settings( $settings, $helper ) { + } } /** * UABB Advanced Icon Module file @@ -2042,16 +1846,15 @@ public function filter_settings($settings, $helper) * * @class UABBAdvancedIconModule */ -class UABBAdvancedIconModule extends \FLBuilderModule -{ - /** - * Constructor function that constructs default values for the Advanced Icon module. - * - * @method __construct - */ - public function __construct() - { - } +class UABBAdvancedIconModule extends \FLBuilderModule { + + /** + * Constructor function that constructs default values for the Advanced Icon module. + * + * @method __construct + */ + public function __construct() { + } } /** * UABB Image Separator Module file @@ -2063,144 +1866,130 @@ public function __construct() * * @class UABBImageSeparatorModule */ -class UABBImageSeparatorModule extends \FLBuilderModule -{ - /** - * Variable for Image Separator module - * - * @property $data - * @var $data - */ - public $data = \null; - /** - * Variable for Image Separator module - * - * @property $_editor - * @protected - * @var $_editor - */ - protected $_editor = \null; - /** - * Constructor function that constructs default values for the Image Separator Module - * - * @method __construct - */ - public function __construct() - { - } - /** - * Function to update the Image src - * - * @method update - * @param obejct $settings gets the settings for the object. - */ - public function update($settings) - { - } - /** - * Function to delete the cropped image src - * - * @method delete - */ - public function delete() - { - } - /** - * Function to crop the the existing image - * - * @method crop - */ - public function crop() - { - } - /** - * Function to get the Image src - * - * @method get_data - */ - public function get_data() - { - } - /** - * Function to get the classes for the Image src - * - * @method get_classes - */ - public function get_classes() - { - } - /** - * Function to get src for the Image src - * - * @method get_src - */ - public function get_src() - { - } - /** - * Function to get alternate val for the Image - * - * @method get_alt - */ - public function get_alt() - { - } - /** - * Function to check for the Image src - * - * @method _has_source - * @protected - */ - protected function _has_source() - { - } - /** - * Function to get the editor for the Image src - * - * @method _get_editor - * @protected - */ - protected function _get_editor() - { - } - /** - * Function to get th cropped path for the Image src - * - * @method _get_cropped_path - * @protected - */ - protected function _get_cropped_path() - { - } - /** - * Function to get the uncropped url of the Image src - * - * @method _get_uncropped_url - * @protected - */ - protected function _get_uncropped_url() - { - } - /** - * Function to get the uncropped url of the Image src - * - * @method _get_uncropped_url - * @protected - */ - protected function _get_cropped_demo_url() - { - } - /** - * Ensure backwards compatibility with old settings. - * - * @since 1.14.0 - * @param object $settings A module settings object. - * @param object $helper A settings compatibility helper. - * @return object - */ - public function filter_settings($settings, $helper) - { - } +class UABBImageSeparatorModule extends \FLBuilderModule { + + /** + * Variable for Image Separator module + * + * @property $data + * @var $data + */ + public $data = \null; + /** + * Variable for Image Separator module + * + * @property $_editor + * @protected + * @var $_editor + */ + protected $_editor = \null; + /** + * Constructor function that constructs default values for the Image Separator Module + * + * @method __construct + */ + public function __construct() { + } + /** + * Function to update the Image src + * + * @method update + * @param obejct $settings gets the settings for the object. + */ + public function update( $settings ) { + } + /** + * Function to delete the cropped image src + * + * @method delete + */ + public function delete() { + } + /** + * Function to crop the the existing image + * + * @method crop + */ + public function crop() { + } + /** + * Function to get the Image src + * + * @method get_data + */ + public function get_data() { + } + /** + * Function to get the classes for the Image src + * + * @method get_classes + */ + public function get_classes() { + } + /** + * Function to get src for the Image src + * + * @method get_src + */ + public function get_src() { + } + /** + * Function to get alternate val for the Image + * + * @method get_alt + */ + public function get_alt() { + } + /** + * Function to check for the Image src + * + * @method _has_source + * @protected + */ + protected function _has_source() { + } + /** + * Function to get the editor for the Image src + * + * @method _get_editor + * @protected + */ + protected function _get_editor() { + } + /** + * Function to get th cropped path for the Image src + * + * @method _get_cropped_path + * @protected + */ + protected function _get_cropped_path() { + } + /** + * Function to get the uncropped url of the Image src + * + * @method _get_uncropped_url + * @protected + */ + protected function _get_uncropped_url() { + } + /** + * Function to get the uncropped url of the Image src + * + * @method _get_uncropped_url + * @protected + */ + protected function _get_cropped_demo_url() { + } + /** + * Ensure backwards compatibility with old settings. + * + * @since 1.14.0 + * @param object $settings A module settings object. + * @param object $helper A settings compatibility helper. + * @return object + */ + public function filter_settings( $settings, $helper ) { + } } /** * UABB Slide Box Module file @@ -2212,68 +2001,61 @@ public function filter_settings($settings, $helper) * * @class SlideBoxModule */ -class SlideBoxModule extends \FLBuilderModule -{ - /** - * Constructor function that constructs default values for the Slide Box Module - * - * @method __construct - */ - public function __construct() - { - } - /** - * Ensure backwards compatibility with old settings. - * - * @since 1.3.0 - * @param object $settings A module settings object. - * @param object $helper A settings compatibility helper. - * @return object - */ - public function filter_settings($settings, $helper) - { - } - /** - * Function that renders the link for the Slide Box - * - * @method render_link - */ - public function render_link() - { - } - /** - * Function that renders the button for the Slide Box - * - * @method render_button - */ - public function render_button() - { - } - /** - * Function that renders the Image for the Slide Box module. - * - * @method render_image - * @param var $pos gets the position of the image. - */ - public function render_image($pos) - { - } - /** - * Function that renders the overlay icon for the Slide Box - * - * @method render_overlay_icon - */ - public function render_overlay_icon() - { - } - /** - * Function that renders the overlay icon for the Slide Box - * - * @method render_overlay_icon - */ - public function render_dropdown_icon() - { - } +class SlideBoxModule extends \FLBuilderModule { + + /** + * Constructor function that constructs default values for the Slide Box Module + * + * @method __construct + */ + public function __construct() { + } + /** + * Ensure backwards compatibility with old settings. + * + * @since 1.3.0 + * @param object $settings A module settings object. + * @param object $helper A settings compatibility helper. + * @return object + */ + public function filter_settings( $settings, $helper ) { + } + /** + * Function that renders the link for the Slide Box + * + * @method render_link + */ + public function render_link() { + } + /** + * Function that renders the button for the Slide Box + * + * @method render_button + */ + public function render_button() { + } + /** + * Function that renders the Image for the Slide Box module. + * + * @method render_image + * @param var $pos gets the position of the image. + */ + public function render_image( $pos ) { + } + /** + * Function that renders the overlay icon for the Slide Box + * + * @method render_overlay_icon + */ + public function render_overlay_icon() { + } + /** + * Function that renders the overlay icon for the Slide Box + * + * @method render_overlay_icon + */ + public function render_dropdown_icon() { + } } /** * UABB Info Table Module file @@ -2285,27 +2067,25 @@ public function render_dropdown_icon() * * @class UABBInfoTableModule */ -class UABBInfoTableModule extends \FLBuilderModule -{ - /** - * Constructor function that constructs default values for the Info Table Module - * - * @method __construct - */ - public function __construct() - { - } - /** - * Ensure backwards compatibility with old settings. - * - * @since 1.14.0 - * @param object $settings A module settings object. - * @param object $helper A settings compatibility helper. - * @return object - */ - public function filter_settings($settings, $helper) - { - } +class UABBInfoTableModule extends \FLBuilderModule { + + /** + * Constructor function that constructs default values for the Info Table Module + * + * @method __construct + */ + public function __construct() { + } + /** + * Ensure backwards compatibility with old settings. + * + * @since 1.14.0 + * @param object $settings A module settings object. + * @param object $helper A settings compatibility helper. + * @return object + */ + public function filter_settings( $settings, $helper ) { + } } /** * UABB Ribbon Module file @@ -2317,36 +2097,33 @@ public function filter_settings($settings, $helper) * * @class RibbonModule */ -class RibbonModule extends \FLBuilderModule -{ - /** - * Constructor function that constructs default values for the Ribbon Module - * - * @method __construct - */ - public function __construct() - { - } - /** - * Ensure backwards compatibility with old settings. - * - * @since 1.14.0 - * @param object $settings A module settings object. - * @param object $helper A settings compatibility helper. - * @return object - */ - public function filter_settings($settings, $helper) - { - } - /** - * Function to get the icon for the Progress Bar - * - * @method get_icon - * @param string $icon gets the icon for the module. - */ - public function get_icon($icon = '') - { - } +class RibbonModule extends \FLBuilderModule { + + /** + * Constructor function that constructs default values for the Ribbon Module + * + * @method __construct + */ + public function __construct() { + } + /** + * Ensure backwards compatibility with old settings. + * + * @since 1.14.0 + * @param object $settings A module settings object. + * @param object $helper A settings compatibility helper. + * @return object + */ + public function filter_settings( $settings, $helper ) { + } + /** + * Function to get the icon for the Progress Bar + * + * @method get_icon + * @param string $icon gets the icon for the module. + */ + public function get_icon( $icon = '' ) { + } } /** * UABB Info List Module file @@ -2358,64 +2135,58 @@ public function get_icon($icon = '') * * @class UABBInfoList */ -class UABBInfoList extends \FLBuilderModule -{ - /** - * Constructor function that constructs default values for the Info List Module - * - * @method __construct - */ - public function __construct() - { - } - /** - * Function to get the icon for the Info List - * - * @method get_icons - * @param string $icon gets the icon for the module. - */ - public function get_icon($icon = '') - { - } - /** - * Render Image - * - * @method render_image - * @param object $item gets the object for the module. - * @param object $settings gets the settings for the module. - */ - public function render_image($item, $settings) - { - } - /** - * Render text - * - * @method render_text - * @param object $item gets the items. - * @param var $list_item_counter counts the list item counter value. - */ - public function render_each_item($item, $list_item_counter) - { - } - /** - * Render List text - * - * @method render_text - */ - public function render_list() - { - } - /** - * Ensure backwards compatibility with old settings. - * - * @since 1.14.0 - * @param object $settings A module settings object. - * @param object $helper A settings compatibility helper. - * @return object - */ - public function filter_settings($settings, $helper) - { - } +class UABBInfoList extends \FLBuilderModule { + + /** + * Constructor function that constructs default values for the Info List Module + * + * @method __construct + */ + public function __construct() { + } + /** + * Function to get the icon for the Info List + * + * @method get_icons + * @param string $icon gets the icon for the module. + */ + public function get_icon( $icon = '' ) { + } + /** + * Render Image + * + * @method render_image + * @param object $item gets the object for the module. + * @param object $settings gets the settings for the module. + */ + public function render_image( $item, $settings ) { + } + /** + * Render text + * + * @method render_text + * @param object $item gets the items. + * @param var $list_item_counter counts the list item counter value. + */ + public function render_each_item( $item, $list_item_counter ) { + } + /** + * Render List text + * + * @method render_text + */ + public function render_list() { + } + /** + * Ensure backwards compatibility with old settings. + * + * @since 1.14.0 + * @param object $settings A module settings object. + * @param object $helper A settings compatibility helper. + * @return object + */ + public function filter_settings( $settings, $helper ) { + } } /** * UABB Heading module file @@ -2427,35 +2198,32 @@ public function filter_settings($settings, $helper) * * @class UABBHeadingModule */ -class UABBHeadingModule extends \FLBuilderModule -{ - /** - * Constructor function that constructs default values for the Heading module. - * - * @method __construct - */ - public function __construct() - { - } - /** - * Function that renders pos. - * - * @method render_image - */ - public function render_image() - { - } - /** - * Ensure backwards compatibility with old settings. - * - * @since 1.14.0 - * @param object $settings A module settings object. - * @param object $helper A settings compatibility helper. - * @return object - */ - public function filter_settings($settings, $helper) - { - } +class UABBHeadingModule extends \FLBuilderModule { + + /** + * Constructor function that constructs default values for the Heading module. + * + * @method __construct + */ + public function __construct() { + } + /** + * Function that renders pos. + * + * @method render_image + */ + public function render_image() { + } + /** + * Ensure backwards compatibility with old settings. + * + * @since 1.14.0 + * @param object $settings A module settings object. + * @param object $helper A settings compatibility helper. + * @return object + */ + public function filter_settings( $settings, $helper ) { + } } /** * UABB Star Rating Module file @@ -2467,26 +2235,24 @@ public function filter_settings($settings, $helper) * * @class UABBStarRatingModule */ -class UABBStarRatingModule extends \FLBuilderModule -{ - /** - * Constructor function for the module. You must pass the - * name, description, dir and url in an array to the parent class. - * - * @method __construct - */ - public function __construct() - { - } - /** - * Function to get the icon for the Star Rating - * - * @method get_icons - * @param string $icon gets the icon for the module. - */ - public function get_icon($icon = '') - { - } +class UABBStarRatingModule extends \FLBuilderModule { + + /** + * Constructor function for the module. You must pass the + * name, description, dir and url in an array to the parent class. + * + * @method __construct + */ + public function __construct() { + } + /** + * Function to get the icon for the Star Rating + * + * @method get_icons + * @param string $icon gets the icon for the module. + */ + public function get_icon( $icon = '' ) { + } } /** * UABB Image Icon Module file @@ -2498,144 +2264,130 @@ public function get_icon($icon = '') * * @class ImageIconModule */ -class ImageIconModule extends \FLBuilderModule -{ - /** - * Variable for Image Icon module - * - * @property $data - * @var $data - */ - public $data = \null; - /** - * Variable for Image Icon module - * - * @property $_editor - * @protected - * @var $_editor - */ - protected $_editor = \null; - /** - * Constructor function that constructs default values for the Image icon Module - * - * @method __construct - */ - public function __construct() - { - } - /** - * Function to update the Image src - * - * @method update - * @param object $settings {object}. - */ - public function update($settings) - { - } - /** - * Function to delete the path if not required - * - * @method delete - */ - public function delete() - { - } - /** - * Function for cropping the image - * - * @method crop - */ - public function crop() - { - } - /** - * Function that gets the data for the Image Icon module. - * - * @method get_data - */ - public function get_data() - { - } - /** - * Function that gets classes for the Photo image - * - * @method get_classes - */ - public function get_classes() - { - } - /** - * Function that gets the src for the Uncropped Image URL - * - * @method get_src - */ - public function get_src() - { - } - /** - * Function that gets the alternate value of the Image - * - * @method get_alt - */ - public function get_alt() - { - } - /** - * Function that checks for the source - * - * @method _has_source - * @protected - */ - protected function _has_source() - { - } - /** - * Function that gets the editor - * - * @method _get_editor - * @protected - */ - protected function _get_editor() - { - } - /** - * Function that gets the cropped path - * - * @method _get_cropped_path - * @protected - */ - protected function _get_cropped_path() - { - } - /** - * Functions that gets the uncropped URL of the Image - * - * @method _get_uncropped_url - * @protected - */ - protected function _get_uncropped_url() - { - } - /** - * Functions that gets the cropped demo URL - * - * @method _get_cropped_demo_url - * @protected - */ - protected function _get_cropped_demo_url() - { - } - /** - * Ensure backwards compatibility with old settings. - * - * @since 1.14.0 - * @param object $settings A module settings object. - * @param object $helper A settings compatibility helper. - * @return object - */ - public function filter_settings($settings, $helper) - { - } +class ImageIconModule extends \FLBuilderModule { + + /** + * Variable for Image Icon module + * + * @property $data + * @var $data + */ + public $data = \null; + /** + * Variable for Image Icon module + * + * @property $_editor + * @protected + * @var $_editor + */ + protected $_editor = \null; + /** + * Constructor function that constructs default values for the Image icon Module + * + * @method __construct + */ + public function __construct() { + } + /** + * Function to update the Image src + * + * @method update + * @param object $settings {object}. + */ + public function update( $settings ) { + } + /** + * Function to delete the path if not required + * + * @method delete + */ + public function delete() { + } + /** + * Function for cropping the image + * + * @method crop + */ + public function crop() { + } + /** + * Function that gets the data for the Image Icon module. + * + * @method get_data + */ + public function get_data() { + } + /** + * Function that gets classes for the Photo image + * + * @method get_classes + */ + public function get_classes() { + } + /** + * Function that gets the src for the Uncropped Image URL + * + * @method get_src + */ + public function get_src() { + } + /** + * Function that gets the alternate value of the Image + * + * @method get_alt + */ + public function get_alt() { + } + /** + * Function that checks for the source + * + * @method _has_source + * @protected + */ + protected function _has_source() { + } + /** + * Function that gets the editor + * + * @method _get_editor + * @protected + */ + protected function _get_editor() { + } + /** + * Function that gets the cropped path + * + * @method _get_cropped_path + * @protected + */ + protected function _get_cropped_path() { + } + /** + * Functions that gets the uncropped URL of the Image + * + * @method _get_uncropped_url + * @protected + */ + protected function _get_uncropped_url() { + } + /** + * Functions that gets the cropped demo URL + * + * @method _get_cropped_demo_url + * @protected + */ + protected function _get_cropped_demo_url() { + } + /** + * Ensure backwards compatibility with old settings. + * + * @since 1.14.0 + * @param object $settings A module settings object. + * @param object $helper A settings compatibility helper. + * @return object + */ + public function filter_settings( $settings, $helper ) { + } } /** * UABB Separator Module file @@ -2647,32 +2399,30 @@ public function filter_settings($settings, $helper) * * @class UABBSeparatorModule */ -class UABBSeparatorModule extends \FLBuilderModule -{ - /** - * Constructor function that constructs default values for the Separator module. - * - * @method __construct - */ - public function __construct() - { - } -} -\define('BB_ULTIMATE_ADDON_DIR', \plugin_dir_path(__FILE__)); -\define('BB_ULTIMATE_ADDON_URL', \plugins_url('/', __FILE__)); -\define('BB_ULTIMATE_ADDON_LITE_VERSION', '1.5.11'); -\define('BSF_REMOVE_UABB_FROM_REGISTRATION_LISTING', \true); -\define('BB_ULTIMATE_ADDON_FILE', \trailingslashit(\dirname(__FILE__)) . 'bb-ultimate-addon.php'); +class UABBSeparatorModule extends \FLBuilderModule { + + /** + * Constructor function that constructs default values for the Separator module. + * + * @method __construct + */ + public function __construct() { + } +} +\define( 'BB_ULTIMATE_ADDON_DIR', \plugin_dir_path( __FILE__ ) ); +\define( 'BB_ULTIMATE_ADDON_URL', \plugins_url( '/', __FILE__ ) ); +\define( 'BB_ULTIMATE_ADDON_LITE_VERSION', '1.5.11' ); +\define( 'BSF_REMOVE_UABB_FROM_REGISTRATION_LISTING', \true ); +\define( 'BB_ULTIMATE_ADDON_FILE', \trailingslashit( __DIR__ ) . 'bb-ultimate-addon.php' ); // @codingStandardsIgnoreLine. \define('BB_ULTIMATE_ADDON_LITE', \true); -\define('BB_ULTIMATE_ADDON_UPGRADE_URL', 'https://www.ultimatebeaver.com/pricing/?utm_source=uabb-dashboard&utm_campaign=uabblite_upgrade&utm_medium=upgrade-button'); -\define('BB_ULTIMATE_ADDON_FB_URL', 'https://www.brainstormforce.com/go/uabb-facebook-group/?utm_source=uabb-dashboard&utm_campaign=Lite&utm_medium=FB'); -\define('BB_ULTIMATE_ADDON_TWITTER_URL', 'https://twitter.com/WeBrainstorm'); +\define( 'BB_ULTIMATE_ADDON_UPGRADE_URL', 'https://www.ultimatebeaver.com/pricing/?utm_source=uabb-dashboard&utm_campaign=uabblite_upgrade&utm_medium=upgrade-button' ); +\define( 'BB_ULTIMATE_ADDON_FB_URL', 'https://www.brainstormforce.com/go/uabb-facebook-group/?utm_source=uabb-dashboard&utm_campaign=Lite&utm_medium=FB' ); +\define( 'BB_ULTIMATE_ADDON_TWITTER_URL', 'https://twitter.com/WeBrainstorm' ); /** * Initialize the class only after all the plugins are loaded. */ -function init_uabb() -{ +function init_uabb() { } /** * Initializes recurse function @@ -2680,8 +2430,7 @@ function init_uabb() * @param var $base returns the base values. * @param array $replacements returns the replacements values. */ -function recurse($base, $replacements) -{ +function recurse( $base, $replacements ) { } /** * Provide option to override the element defaults from theme options. @@ -2690,8 +2439,7 @@ function recurse($base, $replacements) * filtered value. * @return string - hex value for the color */ -function uabb_theme_base_color($default) -{ +function uabb_theme_base_color( $default ) { } /** * Provide option to override the element defaults from theme options. @@ -2700,8 +2448,7 @@ function uabb_theme_base_color($default) * filtered value. * @return string - hex value for the color */ -function uabb_theme_text_color($default) -{ +function uabb_theme_text_color( $default ) { } /** * Provide option to override the element defaults from theme options. @@ -2710,8 +2457,7 @@ function uabb_theme_text_color($default) * filtered value. * @return string - hex value for the color */ -function uabb_theme_link_color($default) -{ +function uabb_theme_link_color( $default ) { } /** * Provide option to override the element defaults from theme options. @@ -2719,8 +2465,7 @@ function uabb_theme_link_color($default) * @param var $default Checks if user has set the color, if yes, returns users value else checks for filtered value. * @return string - hex value for the color */ -function uabb_theme_link_hover_color($default) -{ +function uabb_theme_link_hover_color( $default ) { } /** * Provide option to override the element defaults from theme options. @@ -2729,16 +2474,14 @@ function uabb_theme_link_hover_color($default) * for filtered value. * @return string - font-family */ -function uabb_theme_button_font_family($default) -{ +function uabb_theme_button_font_family( $default ) { } /** * Button Font Size * * @param var $default Checks if the user has set Font Size values. */ -function uabb_theme_button_font_size($default) -{ +function uabb_theme_button_font_size( $default ) { } /** * Button Font Size @@ -2746,16 +2489,14 @@ function uabb_theme_button_font_size($default) * @since 1.3.1 * @param var $default Checks if the user has set Font Size values. */ -function uabb_theme_default_button_font_size($default) -{ +function uabb_theme_default_button_font_size( $default ) { } /** * Button Line Height * * @param var $default Checks if the user has set text transform values. */ -function uabb_theme_button_line_height($default) -{ +function uabb_theme_button_line_height( $default ) { } /** * Button Line Height @@ -2763,16 +2504,14 @@ function uabb_theme_button_line_height($default) * @since 1.3.1 * @param var $default Checks if the user has set text transform values. */ -function uabb_theme_default_button_line_height($default) -{ +function uabb_theme_default_button_line_height( $default ) { } /** * Button Letter Spacing * * @param var $default Checks if the user has set letter spacing values. */ -function uabb_theme_button_letter_spacing($default) -{ +function uabb_theme_button_letter_spacing( $default ) { } /** * Button Letter Spacing @@ -2780,16 +2519,14 @@ function uabb_theme_button_letter_spacing($default) * @since 1.3.1 * @param var $default Checks if the user has set letter spacing values. */ -function uabb_theme_default_button_letter_spacing($default) -{ +function uabb_theme_default_button_letter_spacing( $default ) { } /** * Button Text Transform * * @param var $default Checks if the user has set text transform values. */ -function uabb_theme_button_text_transform($default) -{ +function uabb_theme_button_text_transform( $default ) { } /** * Button Text Transform @@ -2797,8 +2534,7 @@ function uabb_theme_button_text_transform($default) * @since 1.3.1 * @param var $default Checks if the user has set text transform values. */ -function uabb_theme_default_button_text_transform($default) -{ +function uabb_theme_default_button_text_transform( $default ) { } /** * Provide option to override the element defaults from theme options. @@ -2806,8 +2542,7 @@ function uabb_theme_default_button_text_transform($default) * @param var $default Checks if user has set the color, if yes, returns users value else checks for filtered value. * @return string - hex value for the color */ -function uabb_theme_button_bg_color($default) -{ +function uabb_theme_button_bg_color( $default ) { } /** * Provide option to override the element defaults from theme options. @@ -2816,8 +2551,7 @@ function uabb_theme_button_bg_color($default) * @param var $default Checks if user has set the color, if yes, returns users value else checks for filtered value. * @return string - hex value for the color */ -function uabb_theme_default_button_bg_color($default) -{ +function uabb_theme_default_button_bg_color( $default ) { } /** * Provide option to override the element defaults from theme options. @@ -2826,8 +2560,7 @@ function uabb_theme_default_button_bg_color($default) * for filtered value. * @return string - hex value for the color */ -function uabb_theme_button_bg_hover_color($default) -{ +function uabb_theme_button_bg_hover_color( $default ) { } /** * Provide option to override the element defaults from theme options. @@ -2837,8 +2570,7 @@ function uabb_theme_button_bg_hover_color($default) * for filtered value. * @return string - hex value for the color */ -function uabb_theme_default_button_bg_hover_color($default) -{ +function uabb_theme_default_button_bg_hover_color( $default ) { } /** * Provide option to override the element defaults from theme options. @@ -2847,8 +2579,7 @@ function uabb_theme_default_button_bg_hover_color($default) * for filtered value. * @return string - hex value for the color */ -function uabb_theme_button_text_color($default) -{ +function uabb_theme_button_text_color( $default ) { } /** * Provide option to override the element defaults from theme options. @@ -2858,8 +2589,7 @@ function uabb_theme_button_text_color($default) * for filtered value. * @return string - hex value for the text color */ -function uabb_theme_default_button_text_color($default) -{ +function uabb_theme_default_button_text_color( $default ) { } /** * Provide option to override the element defaults from theme options. @@ -2869,8 +2599,7 @@ function uabb_theme_default_button_text_color($default) * * @return string - hex value for the text hover color */ -function uabb_theme_button_text_hover_color($default) -{ +function uabb_theme_button_text_hover_color( $default ) { } /** * Provide option to override the element defaults from theme options. @@ -2881,8 +2610,7 @@ function uabb_theme_button_text_hover_color($default) * * @return string - hex value for the text hover color */ -function uabb_theme_default_button_text_hover_color($default) -{ +function uabb_theme_default_button_text_hover_color( $default ) { } /** * Provide option to override the element defaults from theme options. @@ -2891,8 +2619,7 @@ function uabb_theme_default_button_text_hover_color($default) * for filtered value. * @return string - padding value */ -function uabb_theme_button_padding($default) -{ +function uabb_theme_button_padding( $default ) { } /** * Provide option to override the element defaults from theme options. @@ -2902,8 +2629,7 @@ function uabb_theme_button_padding($default) * for filtered value. * @return string - padding value */ -function uabb_theme_default_button_padding($default) -{ +function uabb_theme_default_button_padding( $default ) { } /** * Provide option to override the element defaults from theme options. @@ -2912,8 +2638,7 @@ function uabb_theme_default_button_padding($default) * for filtered value. * @return string - padding value */ -function uabb_theme_button_vertical_padding($default) -{ +function uabb_theme_button_vertical_padding( $default ) { } /** * Provide option to override the element defaults from theme options. @@ -2922,8 +2647,7 @@ function uabb_theme_button_vertical_padding($default) * for filtered value. * @return string - padding value */ -function uabb_theme_button_horizontal_padding($default) -{ +function uabb_theme_button_horizontal_padding( $default ) { } /** * Provide option to override the element defaults from theme options. @@ -2932,8 +2656,7 @@ function uabb_theme_button_horizontal_padding($default) * for filtered value. * @return string - radius value */ -function uabb_theme_button_border_radius($default) -{ +function uabb_theme_button_border_radius( $default ) { } /** * Provide option to override the element defaults from theme options. @@ -2943,8 +2666,7 @@ function uabb_theme_button_border_radius($default) * for filtered value. * @return string - width value */ -function uabb_theme_button_border_width($default) -{ +function uabb_theme_button_border_width( $default ) { } /** * Provide option to override the element defaults from theme options. @@ -2954,8 +2676,7 @@ function uabb_theme_button_border_width($default) * filtered value. * @return string - hex value for the border color */ -function uabb_theme_border_color($default) -{ +function uabb_theme_border_color( $default ) { } /** * Provide option to override the element defaults from theme options. @@ -2965,8 +2686,7 @@ function uabb_theme_border_color($default) * filtered value. * @return string - hex value for the border hover color */ -function uabb_theme_border_hover_color($default) -{ +function uabb_theme_border_hover_color( $default ) { } /** * Provide option to parse a color code. @@ -2974,8 +2694,7 @@ function uabb_theme_border_hover_color($default) * @param var $code Returns a hex value for color from rgba or #hex color. * @return string - hex value for the color */ -function uabb_parse_color_to_hex($code = '') -{ +function uabb_parse_color_to_hex( $code = '' ) { } /** * Provide option to parse a Border param. @@ -2985,8 +2704,7 @@ function uabb_parse_color_to_hex($code = '') * filtered value. * @return array - Border value for the Button */ -function uabb_theme_border($default) -{ +function uabb_theme_border( $default ) { } /** * Provide option to override the element defaults from theme options. @@ -2996,8 +2714,7 @@ function uabb_theme_border($default) * for filtered value. * @return array - typography value */ -function uabb_theme_button_typography($default) -{ +function uabb_theme_button_typography( $default ) { } /** * Provide option to override the element defaults from theme options. @@ -3007,8 +2724,7 @@ function uabb_theme_button_typography($default) * for filtered value. * @return array - Padding value */ -function uabb_theme_padding_button($mode, $value) -{ +function uabb_theme_padding_button( $mode, $value ) { } /** * Kicking this off by calling 'get_instance()' method @@ -3025,10 +2741,10 @@ function uabb_theme_padding_button($mode, $value) * * @package UABB Image Separator Module */ -if (isset($module) && $module !== null) { - $module->get_classes(); +if ( isset( $module ) && $module !== null ) { + $module->get_classes(); } else { - // Handle the case where $module is null + // Handle the case where $module is null } /** * This file should be used to render each module instance. @@ -3041,11 +2757,11 @@ function uabb_theme_padding_button($mode, $value) */ // Define $settings if not already defined -if (!isset($settings)) { - $settings = new class { - public $front_img_icon_position = 'default_position'; // Replace with appropriate default - public $rating_title = 'default_title'; // Replace with appropriate default - }; +if ( ! isset( $settings ) ) { + $settings = new class() { + public $front_img_icon_position = 'default_position'; // Replace with appropriate default + public $rating_title = 'default_title'; // Replace with appropriate default + }; } $pos = $settings->front_img_icon_position; @@ -3055,4 +2771,4 @@ function uabb_theme_padding_button($mode, $value) * * @package UABB Star Ratting Module */ -$title = $settings->rating_title; \ No newline at end of file +$title = $settings->rating_title; From 5b998b8910115a923e221a764a151ea614e9f159 Mon Sep 17 00:00:00 2001 From: Abhishek Date: Tue, 24 Sep 2024 22:22:17 +0530 Subject: [PATCH 15/29] Resolved PHPCS errors --- assets/dynamic-css/uabb-theme-dynamic-css.php | 4 +- bb-ultimate-addon.php | 6 +-- .../class-uabb-admin-settings-multisite.php | 2 +- classes/class-uabb-attachment.php | 6 +-- classes/class-uabb-cloud-templates.php | 16 ++++---- classes/class-uabb-helper.php | 6 +-- classes/class-uabb-iconfonts.php | 6 +-- classes/class-uabb-init.php | 18 ++++----- classes/class-uabb-wpml.php | 2 +- classes/class-ui-panel.php | 34 ++++++++--------- classes/uabb-bbtheme-global-integration.php | 16 ++++---- classes/uabb-global-functions.php | 24 ++++++------ classes/uabb-global-integration.php | 38 +++++++++---------- classes/uabb-global-settings-form.php | 2 +- classes/uabb-global-settings.php | 2 +- classes/wpml/class-wpml-uabb-infolist.php | 8 ++-- fields/_config.php | 4 +- fields/uabb-gradient/uabb-gradient.php | 6 +-- includes/admin-settings-icons.php | 2 +- includes/admin-settings-modules.php | 2 +- includes/ui-panel-presets.php | 4 +- includes/ui-panel-sections.php | 4 +- .../advanced-icon/includes/frontend.css.php | 10 ++--- modules/advanced-icon/includes/frontend.php | 4 +- modules/flip-box/flip-box.php | 4 +- modules/flip-box/includes/frontend.css.php | 10 ++--- modules/flip-box/includes/frontend.js.php | 10 ++--- modules/flip-box/includes/frontend.php | 8 ++-- modules/image-icon/image-icon.php | 22 +++++------ modules/image-icon/includes/frontend.css.php | 14 +++---- modules/image-icon/includes/frontend.php | 8 ++-- modules/image-separator/image-separator.php | 21 +++++----- .../image-separator/includes/frontend.css.php | 10 ++--- .../image-separator/includes/frontend.js.php | 6 +-- modules/image-separator/includes/frontend.php | 8 ++-- modules/info-list/includes/frontend.css.php | 10 ++--- modules/info-list/includes/frontend.js.php | 6 +-- modules/info-list/includes/frontend.php | 8 ++-- modules/info-list/info-list.php | 14 +++---- modules/info-table/includes/frontend.css.php | 14 +++---- modules/info-table/includes/frontend.php | 4 +- modules/ribbon/includes/frontend.css.php | 10 ++--- modules/ribbon/includes/frontend.php | 4 +- modules/ribbon/ribbon.php | 10 ++--- modules/slide-box/includes/frontend.css.php | 30 +++++++-------- modules/slide-box/includes/frontend.js.php | 6 +-- modules/slide-box/includes/frontend.php | 8 ++-- modules/spacer-gap/includes/frontend.css.php | 10 ++--- modules/uabb-button/includes/frontend.css.php | 26 ++++++------- modules/uabb-button/includes/frontend.php | 8 ++-- modules/uabb-button/uabb-button.php | 6 +-- .../uabb-heading/includes/frontend.css.php | 23 +++++------ modules/uabb-heading/includes/frontend.php | 8 ++-- modules/uabb-heading/uabb-heading.php | 4 +- .../uabb-separator/includes/frontend.css.php | 6 +-- modules/uabb-separator/uabb-separator.php | 2 +- .../includes/frontend.css.php | 10 ++--- .../uabb-star-rating/includes/frontend.php | 4 +- modules/uabb-star-rating/uabb-star-rating.php | 6 +-- phpcs.xml.dist | 1 + stubs-generator.php | 6 +++ 61 files changed, 298 insertions(+), 293 deletions(-) diff --git a/assets/dynamic-css/uabb-theme-dynamic-css.php b/assets/dynamic-css/uabb-theme-dynamic-css.php index c16eb2f8..4f7f9746 100644 --- a/assets/dynamic-css/uabb-theme-dynamic-css.php +++ b/assets/dynamic-css/uabb-theme-dynamic-css.php @@ -7,9 +7,9 @@ ob_start(); -// Ensure $global_settings is defined and initialized +// Ensure $global_settings is defined and initialized. if ( ! isset( $global_settings ) ) { - // Create an empty object to avoid undefined errors + // Create an empty object to avoid undefined errors. $global_settings = new stdClass(); } diff --git a/bb-ultimate-addon.php b/bb-ultimate-addon.php index b8a4462c..ac601edb 100644 --- a/bb-ultimate-addon.php +++ b/bb-ultimate-addon.php @@ -38,7 +38,7 @@ class BB_Ultimate_Addon { * * @since 1.0 */ - function __construct() { + public function __construct() { register_activation_hook( __FILE__, array( $this, 'activation_reset' ) ); @@ -51,7 +51,7 @@ function __construct() { * * @Since 1.0 */ - function activation_reset() { + public function activation_reset() { $no_memory = $this->check_memory_limit(); @@ -75,7 +75,7 @@ function activation_reset() { * * @Since 1.0 */ - function check_memory_limit() { + public function check_memory_limit() { $memory_limit = ini_get( 'memory_limit' ); // Total Memory. $peak_memory = memory_get_peak_usage( true ); // Available Memory. diff --git a/classes/class-uabb-admin-settings-multisite.php b/classes/class-uabb-admin-settings-multisite.php index c55595a4..f0f5a31d 100644 --- a/classes/class-uabb-admin-settings-multisite.php +++ b/classes/class-uabb-admin-settings-multisite.php @@ -32,7 +32,7 @@ public static function init() { * @param string $url gets the activate redirect URL. * @return void */ - public static function uabb_lite_redirect_on_activation( $url ): void { + public static function uabb_lite_redirect_on_activation( $url ) { if ( true === get_option( 'uabb_lite_redirect' ) ) { update_option( 'uabb_lite_redirect', false ); if ( ! is_multisite() ) : diff --git a/classes/class-uabb-attachment.php b/classes/class-uabb-attachment.php index fea40741..0863af3d 100644 --- a/classes/class-uabb-attachment.php +++ b/classes/class-uabb-attachment.php @@ -18,7 +18,7 @@ class UABB_Attachment { * * @since 1.0 */ - function __construct() { + public function __construct() { add_filter( 'attachment_fields_to_edit', array( $this, 'uabb_attachment_field_cta' ), 10, 2 ); add_filter( 'attachment_fields_to_save', array( $this, 'uabb_attachment_field_cta_save' ), 10, 2 ); @@ -31,7 +31,7 @@ function __construct() { * @param object $post object, attachment record in database. * @return array $form_fields, modified form fields */ - function uabb_attachment_field_cta( $form_fields, $post ): array { + public function uabb_attachment_field_cta( $form_fields, $post ) { $form_fields['uabb-cta-link'] = array( 'label' => __( 'Image Link', 'uabb' ), 'input' => 'text', @@ -48,7 +48,7 @@ function uabb_attachment_field_cta( $form_fields, $post ): array { * @param array $attachment array, attachment fields from $_POST form. * @return array $post array, modified post data. */ - function uabb_attachment_field_cta_save( $post, $attachment ) { + public function uabb_attachment_field_cta_save( $post, $attachment ) { if ( isset( $attachment['uabb-cta-link'] ) ) { update_post_meta( $post['ID'], 'uabb-cta-link', $attachment['uabb-cta-link'] ); } diff --git a/classes/class-uabb-cloud-templates.php b/classes/class-uabb-cloud-templates.php index 25c0fd77..32bf63e1 100644 --- a/classes/class-uabb-cloud-templates.php +++ b/classes/class-uabb-cloud-templates.php @@ -53,7 +53,7 @@ public static function get_instance() { * * @since 1.0 */ - function __construct() { + public function __construct() { self::$cloud_url = array( 'page-templates' => 'https://templates.ultimatebeaver.com/wp-json/uabb-lite/v1/template/layouts/', @@ -69,7 +69,7 @@ function __construct() { * @since 1.0 * @return void */ - static function reset_cloud_transient() { + public static function reset_cloud_transient() { // get - downloaded templates. $cloud_templates = array(); @@ -190,7 +190,7 @@ static function reset_cloud_transient() { * @param string $type gets the type of the cloud templates. * @return int */ - static function get_cloud_templates_count( $type = '' ) { + public static function get_cloud_templates_count( $type = '' ) { $templates = get_site_option( '_uabb_cloud_templats', false ); $templates_count = 0; @@ -230,7 +230,7 @@ static function get_cloud_templates_count( $type = '' ) { * @param string $type gets the type of the cloud templates. * @return mixed */ - static function get_cloud_templates( $type = '' ) { + public static function get_cloud_templates( $type = '' ) { $templates = get_site_option( '_uabb_cloud_templats', false ); @@ -255,7 +255,7 @@ static function get_cloud_templates( $type = '' ) { * @since 1.0 * @return void */ - function fetch_cloud_templates() { + public function fetch_cloud_templates() { if ( ! check_ajax_referer( 'uabb_cloud_nonce', 'form_nonce' ) || ! current_user_can( 'manage_options' ) ) { wp_send_json_error( array( @@ -275,7 +275,7 @@ function fetch_cloud_templates() { * @param file $dat_file_type gets the DAT file type. * @return file|string */ - function get_right_type_key( $dat_file_type ) { + public function get_right_type_key( $dat_file_type ) { // Update the key. if ( 'module' === $dat_file_type ) { @@ -312,7 +312,7 @@ public static function load_filesystem() { * @param string $msg gets an string message. * @return void */ - static function message( $msg ) { + public static function message( $msg ) { if ( ! empty( $msg ) ) { if ( 'not-found' === $msg ) { ?>
    @@ -333,7 +333,7 @@ static function message( $msg ) { * @param string $type gets the type page-templates. * @return void */ - static function template_html( $type = 'page-templates' ) { + public static function template_html( $type = 'page-templates' ) { $templates = self::get_cloud_templates( $type ); diff --git a/classes/class-uabb-helper.php b/classes/class-uabb-helper.php index 1d50ad1a..9754b93c 100644 --- a/classes/class-uabb-helper.php +++ b/classes/class-uabb-helper.php @@ -26,7 +26,7 @@ class BB_Ultimate_Addon_Helper { * * @since 1.0 */ - function __construct() { + public function __construct() { $this->set_constants(); } @@ -37,7 +37,7 @@ function __construct() { * @since 1.0 * @return void */ - function set_constants() { + public function set_constants() { $branding = BB_Ultimate_Addon_Helper::get_builder_uabb_branding(); self::$basic_modules = __( 'Basic', 'uabb' ); $branding_name = 'UABB'; @@ -65,7 +65,7 @@ function set_constants() { * @return array|string */ public static function module_cat( $cat ) { - // Defining the constant + // Defining the constant. if ( ! defined( 'UABB_CAT' ) ) { define( 'UABB_CAT', '' ); } diff --git a/classes/class-uabb-iconfonts.php b/classes/class-uabb-iconfonts.php index fe657b66..7782ce02 100644 --- a/classes/class-uabb-iconfonts.php +++ b/classes/class-uabb-iconfonts.php @@ -36,7 +36,7 @@ public function init() { * @since 1.0 * @return void */ - function reload_icons() { + public function reload_icons() { if ( ! wp_verify_nonce( $_POST['nonce'], 'uabb-reload-icons' ) || ! current_user_can( 'manage_options' ) ) { wp_send_json_error( @@ -57,7 +57,7 @@ function reload_icons() { * @since 1.0 * @return void */ - function register_icons() { + public function register_icons() { // Update initially. $uabb_icons = get_option( '_uabb_enabled_icons', 0 ); @@ -94,7 +94,7 @@ function register_icons() { * @param array $src an array to get the src. * @param array $dst an object to get destination of the file. */ - function recurse_copy( $src, $dst ) { + public function recurse_copy( $src, $dst ) { $dir = opendir( $src ); // Create directory if not exist. diff --git a/classes/class-uabb-init.php b/classes/class-uabb-init.php index 25d8242e..6a654d30 100644 --- a/classes/class-uabb-init.php +++ b/classes/class-uabb-init.php @@ -61,7 +61,7 @@ public function __construct() { * @param string $actions gets an link. * @return string */ - function uabb_render_plugin_action_links( $actions ) { + public function uabb_render_plugin_action_links( $actions ) { $actions[] = '' . _x( 'Upgrade', 'Plugin action link label.', 'uabb' ) . ''; @@ -74,7 +74,7 @@ function uabb_render_plugin_action_links( $actions ) { * @since 1.0 * @return void */ - function includes() { + public function includes() { require_once BB_ULTIMATE_ADDON_DIR . 'classes/class-uabb-update.php'; require_once BB_ULTIMATE_ADDON_DIR . 'classes/class-uabb-compatibility.php'; @@ -113,7 +113,7 @@ function includes() { * * @return void */ - static function set_uabb_options() { + public static function set_uabb_options() { self::$uabb_options = array( 'fl_builder_uabb' => FLBuilderModel::get_admin_settings_option( '_fl_builder_uabb', true ), 'fl_builder_uabb_branding' => FLBuilderModel::get_admin_settings_option( '_fl_builder_uabb_branding', false ), @@ -131,7 +131,7 @@ static function set_uabb_options() { * @param string $form_type gets an array to check the form type. * @return array */ - function uabb_global_settings_form_defaults( $defaults, $form_type ) { + public function uabb_global_settings_form_defaults( $defaults, $form_type ) { if ( class_exists( 'FLCustomizer' ) && 'uabb-global' === $form_type ) { @@ -147,7 +147,7 @@ function uabb_global_settings_form_defaults( $defaults, $form_type ) { * @since 1.0 * @return void */ - function init() { + public function init() { if ( apply_filters( 'uabb_global_support', true ) && class_exists( 'FLBuilderAJAX' ) ) { require_once BB_ULTIMATE_ADDON_DIR . 'classes/uabb-global-settings.php'; @@ -180,7 +180,7 @@ function init() { * @since 1.0 * @return bool */ - function load_plugin_textdomain() { + public function load_plugin_textdomain() { // Traditional WordPress plugin locale filter. $locale = apply_filters( 'plugin_locale', get_locale(), 'uabb' ); @@ -206,7 +206,7 @@ function load_plugin_textdomain() { * @since 1.0 * @return void */ - function load_scripts() { + public function load_scripts() { if ( FLBuilderModel::is_builder_active() ) { @@ -237,7 +237,7 @@ function load_scripts() { * @since 1.0 * @return void */ - function admin_notices() { + public function admin_notices() { if ( file_exists( plugin_dir_path( 'bb-plugin-agency/fl-builder.php' ) ) || file_exists( plugin_dir_path( 'beaver-builder-lite-version/fl-builder.php' ) ) ) { @@ -272,7 +272,7 @@ function admin_notices() { * @since 1.0 * @return void */ - function load_modules() { + public function load_modules() { $enable_modules = BB_Ultimate_Addon_Helper::get_builder_uabb_modules(); foreach ( $enable_modules as $file => $name ) { diff --git a/classes/class-uabb-wpml.php b/classes/class-uabb-wpml.php index aff414b8..efd34b36 100644 --- a/classes/class-uabb-wpml.php +++ b/classes/class-uabb-wpml.php @@ -32,7 +32,7 @@ public static function init() { * * @return void */ - public static function load_files(): void { + public static function load_files() { if ( class_exists( 'WPML_Page_Builders_Defined' ) ) { require_once BB_ULTIMATE_ADDON_DIR . 'classes/wpml/class-wpml-uabb-infolist.php'; } diff --git a/classes/class-ui-panel.php b/classes/class-ui-panel.php index 596fc6a5..16ce5f56 100644 --- a/classes/class-ui-panel.php +++ b/classes/class-ui-panel.php @@ -48,7 +48,7 @@ public function __construct() { * * @return void */ - function toggle_uabb_ui() { + public function toggle_uabb_ui() { // Added ui panel. add_action( 'wp_footer', array( $this, 'render_ui' ), 9 ); @@ -84,7 +84,7 @@ public function init() { * @param array $template Gets the author for the Template Data. * @return array */ - function uabb_fl_builder_template_selector_data( $template_data, $template ) { + public function uabb_fl_builder_template_selector_data( $template_data, $template ) { $template_data['tags'] = isset( $template->tags ) ? $template->tags : array(); $template_data['author'] = isset( $template->author ) ? $template->author : ''; return $template_data; @@ -96,7 +96,7 @@ function uabb_fl_builder_template_selector_data( $template_data, $template ) { * @param string $url Returns the URL of the Affiliate URL. * @return string */ - function uabb_affiliate_url( $url ) { + public function uabb_affiliate_url( $url ) { $url = 'https://www.wpbeaverbuilder.com/?fla=713'; return $url; @@ -108,8 +108,8 @@ function uabb_affiliate_url( $url ) { * @param string $url Returns the Key shortcut for showUABBGlobalSettings. * @return string */ - function uabb_bsf_registration_page_url( $url ) { - // Defining the constant + public function uabb_bsf_registration_page_url( $url ) { + // Defining the constant. if ( ! defined( 'FL_BUILDER_LITE' ) ) { define( 'FL_BUILDER_LITE', '' ); } @@ -129,7 +129,7 @@ function uabb_bsf_registration_page_url( $url ) { * @param string $license_status Gets the license status. * @return string */ - function uabb_bsf_license_form_heading( $form_heading, $license_status_class, $license_status ) { + public function uabb_bsf_license_form_heading( $form_heading, $license_status_class, $license_status ) { $branding_name = BB_Ultimate_Addon_Helper::get_builder_uabb_branding( 'uabb-plugin-name' ); $branding_short_name = BB_Ultimate_Addon_Helper::get_builder_uabb_branding( 'uabb-plugin-short-name' ); @@ -152,7 +152,7 @@ function uabb_bsf_license_form_heading( $form_heading, $license_status_class, $l * @param array $products Gets an array of Products. * @return array */ - function uabb_skip_brainstorm_menu( $products ) { + public function uabb_skip_brainstorm_menu( $products ) { if ( function_exists( 'bsf_extract_product_id' ) ) { $priduct_id = bsf_extract_product_id( BB_ULTIMATE_ADDON_DIR ); @@ -171,7 +171,7 @@ function uabb_skip_brainstorm_menu( $products ) { * @param object $global_settings Gets the object for the Layout builder. * @return string|false */ - function fl_uabb_render_js( $js, $nodes, $global_settings ) { + public function fl_uabb_render_js( $js, $nodes, $global_settings ) { $temp = file_get_contents( BB_ULTIMATE_ADDON_DIR . 'assets/js/uabb-frontend.js' ) . $js; $js = $temp; return $js; @@ -186,7 +186,7 @@ function fl_uabb_render_js( $js, $nodes, $global_settings ) { * @param object $global_settings Gets the object for the Layout builder. * @return string|false */ - function fl_uabb_render_css( $css, $nodes, $global_settings ) { + public function fl_uabb_render_css( $css, $nodes, $global_settings ) { $css .= file_get_contents( BB_ULTIMATE_ADDON_DIR . 'assets/css/uabb-frontend.css' ); $css .= include BB_ULTIMATE_ADDON_DIR . 'assets/dynamic-css/uabb-theme-dynamic-css.php'; @@ -200,7 +200,7 @@ function fl_uabb_render_css( $css, $nodes, $global_settings ) { * @since 1.0 * @return void */ - function config() { + public function config() { $is_templates_exist = BB_Ultimate_Addon_Helper::is_templates_exist(); if ( $is_templates_exist ) { @@ -229,7 +229,7 @@ function config() { * @since 1.0 * @return void */ - function load_templates() { + public function load_templates() { if ( ! method_exists( 'FLBuilder', 'register_templates' ) ) { return; @@ -266,7 +266,7 @@ function load_templates() { * @since 1.0 * @return void */ - function uabb_panel_before_row_layouts() { + public function uabb_panel_before_row_layouts() { ?>
    @@ -285,7 +285,7 @@ function uabb_panel_before_row_layouts() { * @param string $status Checks for the status of UABB templates. * @return array */ - public static function uabb_templates_data( $templates, $status = 'exclude' ) { + public function uabb_templates_data( $templates, $status = 'exclude' ) { if ( isset( $templates['categorized'] ) && count( $templates['categorized'] ) > 0 ) { @@ -328,7 +328,7 @@ public static function uabb_templates_data( $templates, $status = 'exclude' ) { * @param array $buttons Gets the buttons array for UI panel. * @return array */ - function builder_ui_bar_buttons( $buttons ) { + public function builder_ui_bar_buttons( $buttons ) { if ( is_callable( 'FLBuilderUserAccess::current_user_can' ) ) { $simple_ui = ! FLBuilderUserAccess::current_user_can( 'unrestricted_editing' ); @@ -365,7 +365,7 @@ function builder_ui_bar_buttons( $buttons ) { * @since 1.0 * @return void */ - function render_ui() { + public function render_ui() { global $wp_the_query; @@ -407,7 +407,7 @@ function render_ui() { * @since 1.0 * @return void */ - function render_live_preview() { + public function render_live_preview() { if ( FLBuilderModel::is_builder_active() ) { /* Live Preview */ $uabb = BB_Ultimate_Addon_Helper::get_builder_uabb(); @@ -427,7 +427,7 @@ function render_live_preview() { * * @return void */ - function uabb_panel_css_js() { + public function uabb_panel_css_js() { if ( FLBuilderModel::is_builder_active() ) { wp_enqueue_script( 'uabb-panel-js', BB_ULTIMATE_ADDON_URL . 'assets/js/uabb-panel.js', array( 'jquery' ), '', true ); } diff --git a/classes/uabb-bbtheme-global-integration.php b/classes/uabb-bbtheme-global-integration.php index 1b05b0bf..c7239688 100644 --- a/classes/uabb-bbtheme-global-integration.php +++ b/classes/uabb-bbtheme-global-integration.php @@ -17,11 +17,11 @@ class UABB_BBThemeGlobalIntegration { * * @var array $bb_options */ - public array $bb_options; + public $bb_options; /** * Constructor function that initializes required actions and hooks */ - function __construct() { + public function __construct() { /** * ** * * Tracing Beaver Builder Theme Colors @@ -71,7 +71,7 @@ function __construct() { * * @return string */ - function uabb_global_theme_color(): string { + public function uabb_global_theme_color() { $color = $this->bb_options['theme_color']; return $color; @@ -82,7 +82,7 @@ function uabb_global_theme_color(): string { * * @return string */ - function uabb_global_text_color(): string { + public function uabb_global_text_color() { $color = $this->bb_options['theme_text_color']; return $color; @@ -93,7 +93,7 @@ function uabb_global_text_color(): string { * * @return string */ - function uabb_global_button_bg_color(): string { + public function uabb_global_button_bg_color() { $color = $this->bb_options['btn_bg_color']; return $color; @@ -105,7 +105,7 @@ function uabb_global_button_bg_color(): string { * * @return string */ - function uabb_global_button_bg_hover_color(): string { + public function uabb_global_button_bg_hover_color() { $color = $this->bb_options['btn_bg_hover_color']; return $color; @@ -116,7 +116,7 @@ function uabb_global_button_bg_hover_color(): string { * * @return string */ - function uabb_global_button_text_color(): string { + public function uabb_global_button_text_color() { $color = $this->bb_options['btn_text_color']; return $color; @@ -128,7 +128,7 @@ function uabb_global_button_text_color(): string { * * @return string */ - function uabb_global_button_text_hover_color(): string { + public function uabb_global_button_text_hover_color() { $color = $this->bb_options['btn_text_hover_color']; return $color; diff --git a/classes/uabb-global-functions.php b/classes/uabb-global-functions.php index b1b42269..c6f36ed3 100644 --- a/classes/uabb-global-functions.php +++ b/classes/uabb-global-functions.php @@ -40,7 +40,7 @@ * @param array $replacements returns the replacements values. * @return mixed Returns an array if $base is an array, otherwise returns the original $base value. */ - function array_replace_recursive( $base, $replacements ): mixed { + function array_replace_recursive( $base, $replacements ) { $base = recurse( $base, $replacements ); // handle the arguments, merge one by one. @@ -65,7 +65,7 @@ function array_replace_recursive( $base, $replacements ): mixed { * @param array $replacements returns the replacements values. * @return mixed Returns an array if $base is an array, otherwise returns the original $base value. */ - function recurse( $base, $replacements ): mixed { + function recurse( $base, $replacements ) { foreach ( $replacements as $key => $value ) { // create new key in $base, if it is empty or not an array. if ( ! isset( $base[ $key ] ) || ( isset( $base[ $key ] ) && ! is_array( $base[ $key ] ) ) ) { @@ -205,7 +205,7 @@ function uabb_theme_button_font_family( $default ) { * @param var $default Checks if the user has set Font Size values. * @return string */ -function uabb_theme_button_font_size( $default ): string { +function uabb_theme_button_font_size( $default ) { $font_size = ''; if ( '' === $default ) { @@ -251,10 +251,10 @@ function uabb_theme_default_button_font_size( $default ) { /** * Button Line Height * - * @param var $default Checks if the user has set text transform values.\ + * @param var $default Checks if the user has set text transform values. * @return string */ -function uabb_theme_button_line_height( $default ): string { +function uabb_theme_button_line_height( $default ) { $line_height = ''; if ( '' === $default ) { @@ -279,7 +279,7 @@ function uabb_theme_button_line_height( $default ): string { * @param var $default Checks if the user has set text transform values. * @return string */ -function uabb_theme_default_button_line_height( $default ): string { +function uabb_theme_default_button_line_height( $default ) { $line_height = ''; if ( '' === $default ) { @@ -303,7 +303,7 @@ function uabb_theme_default_button_line_height( $default ): string { * @param var $default Checks if the user has set letter spacing values. * @return string */ -function uabb_theme_button_letter_spacing( $default ): string { +function uabb_theme_button_letter_spacing( $default ) { $letter_spacing = ''; if ( '' === $default ) { @@ -328,7 +328,7 @@ function uabb_theme_button_letter_spacing( $default ): string { * @param var $default Checks if the user has set letter spacing values. * @return string */ -function uabb_theme_default_button_letter_spacing( $default ): string { +function uabb_theme_default_button_letter_spacing( $default ) { $letter_spacing = ''; if ( '' === $default ) { @@ -352,7 +352,7 @@ function uabb_theme_default_button_letter_spacing( $default ): string { * @param var $default Checks if the user has set text transform values. * @return string */ -function uabb_theme_button_text_transform( $default ): string { +function uabb_theme_button_text_transform( $default ) { $text_transform = ''; if ( '' === $default ) { @@ -375,7 +375,7 @@ function uabb_theme_button_text_transform( $default ): string { * @param var $default Checks if the user has set text transform values. * @return string */ -function uabb_theme_default_button_text_transform( $default ): string { +function uabb_theme_default_button_text_transform( $default ) { $text_transform = ''; if ( '' === $default ) { @@ -943,10 +943,10 @@ function uabb_theme_button_typography( $default ) { * * @since 1.3.1 * @param string $mode The mode of padding (e.g., 'top', 'bottom', etc.). - * @param string $value Checks if user has set the Padding, if yes, returns users value else checks + * @param string $value Checks if user has set the Padding, if yes, returns users value else checks. * @return string - Padding value */ -function uabb_theme_padding_button( $mode, $value ): string { +function uabb_theme_padding_button( $mode, $value ) { $padding = uabb_theme_default_button_padding( '' ); diff --git a/classes/uabb-global-integration.php b/classes/uabb-global-integration.php index a40cc891..66a5093c 100644 --- a/classes/uabb-global-integration.php +++ b/classes/uabb-global-integration.php @@ -23,7 +23,7 @@ class UABBGlobalSettingsOptions { * * @since 1.0 */ - function __construct() { + public function __construct() { $this->uabb_setting_options = UABB_Global_Styling::get_uabb_global_settings(); @@ -58,7 +58,7 @@ function __construct() { * @param bool $opc gets the opacity for the colorpicker. * @return string */ - function uabb_get_global_option( $option, $color = false, $opc = false ): string { + public function uabb_get_global_option( $option, $color = false, $opc = false ) { $uabb_setting_options = $this->uabb_setting_options; if ( isset( $uabb_setting_options->enable_global ) && ( 'no' === $uabb_setting_options->enable_global ) ) { @@ -78,7 +78,7 @@ function uabb_get_global_option( $option, $color = false, $opc = false ): string * * @return string */ - function uabb_global_theme_color(): string { + public function uabb_global_theme_color() { $color = $this->uabb_get_global_option( 'theme_color', true ); return $color; @@ -91,7 +91,7 @@ function uabb_global_theme_color(): string { * * @return string */ - function uabb_global_text_color(): string { + public function uabb_global_text_color() { $color = $this->uabb_get_global_option( 'theme_text_color', true ); return $color; @@ -104,7 +104,7 @@ function uabb_global_text_color(): string { * * @return string */ - function uabb_global_link_color(): string { + public function uabb_global_link_color() { $color = $this->uabb_get_global_option( 'theme_link_color', true ); return $color; @@ -117,7 +117,7 @@ function uabb_global_link_color(): string { * * @return string */ - function uabb_global_link_hover_color(): string { + public function uabb_global_link_hover_color() { $color = $this->uabb_get_global_option( 'theme_link_hover_color', true ); return $color; @@ -129,7 +129,7 @@ function uabb_global_link_hover_color(): string { * * @return string */ - function uabb_global_button_font_family(): string { + public function uabb_global_button_font_family() { $btn_font_family = ''; return $btn_font_family; } @@ -139,7 +139,7 @@ function uabb_global_button_font_family(): string { * * @return string */ - function uabb_global_button_font_size(): string { + public function uabb_global_button_font_size() { $font_size = $this->uabb_get_global_option( 'btn_font_size' ); return $font_size; @@ -150,7 +150,7 @@ function uabb_global_button_font_size(): string { * * @return string */ - function uabb_global_button_line_height(): string { + public function uabb_global_button_line_height() { $line_height = $this->uabb_get_global_option( 'btn_line_height' ); return $line_height; @@ -162,7 +162,7 @@ function uabb_global_button_line_height(): string { * * @return string */ - function uabb_global_button_letter_spacing(): string { + public function uabb_global_button_letter_spacing() { $letter_spacing = $this->uabb_get_global_option( 'btn_letter_spacing' ); return $letter_spacing; @@ -174,7 +174,7 @@ function uabb_global_button_letter_spacing(): string { * * @return string */ - function uabb_global_button_text_transform(): string { + public function uabb_global_button_text_transform() { $text_transform = $this->uabb_get_global_option( 'btn_text_transform' ); return $text_transform; @@ -186,7 +186,7 @@ function uabb_global_button_text_transform(): string { * * @return string */ - function uabb_global_button_text_color(): string { + public function uabb_global_button_text_color() { $color = $this->uabb_get_global_option( 'btn_text_color', true ); return $color; @@ -198,7 +198,7 @@ function uabb_global_button_text_color(): string { * * @return string */ - function uabb_global_button_text_hover_color(): string { + public function uabb_global_button_text_hover_color() { $color = $this->uabb_get_global_option( 'btn_text_hover_color', true ); return $color; @@ -210,7 +210,7 @@ function uabb_global_button_text_hover_color(): string { * * @return string */ - function uabb_global_button_bg_color(): string { + public function uabb_global_button_bg_color() { $color = $this->uabb_get_global_option( 'btn_bg_color', true, true ); return $color; @@ -222,7 +222,7 @@ function uabb_global_button_bg_color(): string { * * @return string */ - function uabb_global_button_bg_hover_color(): string { + public function uabb_global_button_bg_hover_color() { $color = $this->uabb_get_global_option( 'btn_bg_hover_color', true, true ); return $color; @@ -234,7 +234,7 @@ function uabb_global_button_bg_hover_color(): string { * * @return string */ - function uabb_global_button_border_radius(): string { + public function uabb_global_button_border_radius() { $border_radius = $this->uabb_get_global_option( 'btn_border_radius' ); return $border_radius; @@ -247,7 +247,7 @@ function uabb_global_button_border_radius(): string { * * @return string */ - function uabb_global_button_padding(): string { + public function uabb_global_button_padding() { $padding = ''; $v_padding = $this->uabb_get_global_option( 'btn_vertical_padding' ); @@ -264,7 +264,7 @@ function uabb_global_button_padding(): string { * * @return string */ - function uabb_global_button_vertical_padding(): string { + public function uabb_global_button_vertical_padding() { $v_padding = ''; $v_padding = $this->uabb_get_global_option( 'btn_vertical_padding' ); @@ -276,7 +276,7 @@ function uabb_global_button_vertical_padding(): string { * * @return string */ - function uabb_global_button_horizontal_padding(): string { + public function uabb_global_button_horizontal_padding() { $h_padding = ''; $h_padding = $this->uabb_get_global_option( 'btn_horizontal_padding' ); diff --git a/classes/uabb-global-settings-form.php b/classes/uabb-global-settings-form.php index 3c79c603..e895ec4c 100644 --- a/classes/uabb-global-settings-form.php +++ b/classes/uabb-global-settings-form.php @@ -5,7 +5,7 @@ * @package Global Settings Form */ -// Defining the constant +// Defining the constant. if ( ! defined( 'UABB_PREFIX' ) ) { define( 'UABB_PREFIX', '' ); } diff --git a/classes/uabb-global-settings.php b/classes/uabb-global-settings.php index e995fe8f..e9207967 100644 --- a/classes/uabb-global-settings.php +++ b/classes/uabb-global-settings.php @@ -28,7 +28,7 @@ public function __construct() { * @since 1.0 * @return void */ - function add_options() { + public function add_options() { $global_options = UABB_Init::$uabb_options['uabb_global_settings']; diff --git a/classes/wpml/class-wpml-uabb-infolist.php b/classes/wpml/class-wpml-uabb-infolist.php index 2de4db57..76b4b312 100644 --- a/classes/wpml/class-wpml-uabb-infolist.php +++ b/classes/wpml/class-wpml-uabb-infolist.php @@ -18,7 +18,7 @@ class WPML_UABB_Infolist extends WPML_Beaver_Builder_Module_With_Items { * @param object $settings an object to get values of Info List. * @return object */ - public function &get_items( $settings ): object { + public function &get_items( $settings ) { return $settings->add_list_item; } @@ -28,7 +28,7 @@ public function &get_items( $settings ): object { * @since 1.6.7 * @return array */ - public function get_fields(): array { + public function get_fields() { return array( 'list_item_title', 'list_item_url', 'list_item_description' ); } @@ -39,7 +39,7 @@ public function get_fields(): array { * @param array $field gets the translated field values of the Info List. * @return string */ - protected function get_title( $field ): string { + protected function get_title( $field ) { switch ( $field ) { case 'list_item_title': return esc_html__( 'Info List : Title', 'uabb' ); @@ -62,7 +62,7 @@ protected function get_title( $field ): string { * @param array $field gets an field type of the WPML editor. * @return string */ - protected function get_editor_type( $field ): string { + protected function get_editor_type( $field ) { switch ( $field ) { case 'list_item_title': return 'LINE'; diff --git a/fields/_config.php b/fields/_config.php index 64c2582d..00ff9b90 100644 --- a/fields/_config.php +++ b/fields/_config.php @@ -19,7 +19,7 @@ class UABB_Custom_Field_Scripts { * * @since 1.0 */ - function __construct() { + public function __construct() { add_action( 'wp_enqueue_scripts', array( $this, 'custom_field_scripts' ) ); } @@ -29,7 +29,7 @@ function __construct() { * @since 1.0 * @return void */ - function custom_field_scripts() { + public function custom_field_scripts() { if ( class_exists( 'FLBuilderModel' ) && FLBuilderModel::is_builder_active() ) { /* uabb-gradient field */ diff --git a/fields/uabb-gradient/uabb-gradient.php b/fields/uabb-gradient/uabb-gradient.php index 211dbd7f..48bd5eb4 100644 --- a/fields/uabb-gradient/uabb-gradient.php +++ b/fields/uabb-gradient/uabb-gradient.php @@ -18,7 +18,7 @@ class UABB_Gradient { * * @since 1.0 */ - function __construct() { + public function __construct() { add_action( 'fl_builder_control_uabb-gradient', array( $this, 'uabb_gradient' ), 1, 4 ); add_action( 'fl_builder_custom_fields', array( $this, 'ui_fields' ), 10, 1 ); } @@ -30,7 +30,7 @@ function __construct() { * @param array $fields gets the fields for the gradient. * @return array */ - function ui_fields( array $fields ) { + public function ui_fields( array $fields ) { $fields['uabb-gradient'] = BB_ULTIMATE_ADDON_DIR . 'fields/uabb-gradient/ui-field-uabb-gradient.php'; return $fields; @@ -61,7 +61,7 @@ function ui_fields( array $fields ) { * @param object $settings gets the object of respective fields. * @return void */ - function uabb_gradient( $name, $value, $field, $settings ) { + public function uabb_gradient( $name, $value, $field, $settings ) { $name_new = 'uabb_' . $name; $value = (array) $value; diff --git a/includes/admin-settings-icons.php b/includes/admin-settings-icons.php index f17cb76a..f6d70312 100644 --- a/includes/admin-settings-icons.php +++ b/includes/admin-settings-icons.php @@ -5,7 +5,7 @@ * @package UABB Settings Icons */ -// Defining the constant +// Defining the constant. if ( ! defined( 'UABB_PREFIX' ) ) { define( 'UABB_PREFIX', '' ); } diff --git a/includes/admin-settings-modules.php b/includes/admin-settings-modules.php index 83e53d6c..0640eb83 100644 --- a/includes/admin-settings-modules.php +++ b/includes/admin-settings-modules.php @@ -5,7 +5,7 @@ * @package UABB Settings Modules */ -// Defining the constant +// Defining the constant. if ( ! defined( 'UABB_PREFIX' ) ) { define( 'UABB_PREFIX', '' ); } diff --git a/includes/ui-panel-presets.php b/includes/ui-panel-presets.php index 929eb3f3..2cee8ea2 100644 --- a/includes/ui-panel-presets.php +++ b/includes/ui-panel-presets.php @@ -7,12 +7,12 @@ * @package Imported preset templates */ -// Ensure required variables are set +// Ensure required variables are set. $has_editing_cap = isset( $has_editing_cap ) ? $has_editing_cap : false; $is_module_template = isset( $is_module_template ) ? $is_module_template : false; $module_templates = isset( $module_templates ) ? $module_templates : array(); -// Defining the constant +// Defining the constant. if ( ! defined( 'UABB_PREFIX' ) ) { define( 'UABB_PREFIX', '' ); } diff --git a/includes/ui-panel-sections.php b/includes/ui-panel-sections.php index 916592b8..44f1e4af 100644 --- a/includes/ui-panel-sections.php +++ b/includes/ui-panel-sections.php @@ -7,13 +7,13 @@ * @package Templates from sections and presets */ -// Ensure required variables are set +// Ensure required variables are set. $has_editing_cap = isset( $has_editing_cap ) ? $has_editing_cap : false; $is_module_template = isset( $is_module_template ) ? $is_module_template : false; $is_row_template = isset( $is_row_template ) ? $is_row_template : false; $row_templates = isset( $row_templates ) ? $row_templates : array(); -// Defining the constant +// Defining the constant. if ( ! defined( 'UABB_PREFIX' ) ) { define( 'UABB_PREFIX', '' ); } diff --git a/modules/advanced-icon/includes/frontend.css.php b/modules/advanced-icon/includes/frontend.css.php index 1fe58b13..15878b50 100644 --- a/modules/advanced-icon/includes/frontend.css.php +++ b/modules/advanced-icon/includes/frontend.css.php @@ -8,19 +8,19 @@ ?> diff --git a/modules/flip-box/flip-box.php b/modules/flip-box/flip-box.php index 941437dd..a52b5391 100644 --- a/modules/flip-box/flip-box.php +++ b/modules/flip-box/flip-box.php @@ -41,7 +41,7 @@ public function __construct() { * @return string Icon path or empty string if not found */ public function get_icon( $icon = '' ) { - $path = ''; // Default Initialization + $path = ''; // Default Initialization. // check if $icon is referencing an included icon. if ( '' !== $icon && file_exists( BB_ULTIMATE_ADDON_DIR . 'modules/flip-box/icon/' . $icon ) ) { @@ -50,7 +50,7 @@ public function get_icon( $icon = '' ) { if ( file_exists( $path ) ) { $icon_content = file_get_contents( $path ); - return $icon_content !== false ? $icon_content : ''; + return false !== $icon_content ? $icon_content : ''; } return ''; // Return an empty string if no icon found. diff --git a/modules/flip-box/includes/frontend.css.php b/modules/flip-box/includes/frontend.css.php index 4988dd80..ede6d23e 100644 --- a/modules/flip-box/includes/frontend.css.php +++ b/modules/flip-box/includes/frontend.css.php @@ -9,19 +9,19 @@ $version_bb_check = UABB_Lite_Compatibility::check_bb_version(); $converted = UABB_Lite_Compatibility::check_old_page_migration(); -// Ensure $settings is defined and initialized +// Ensure $settings is defined and initialized. if ( ! isset( $settings ) ) { - $settings = new stdClass(); // Create an empty object to avoid undefined errors + $settings = new stdClass(); // Create an empty object to avoid undefined errors. } -// Ensure $id is defined and initialized +// Ensure $id is defined and initialized. if ( ! isset( $id ) ) { $id = ''; } -// Ensure $global_settings is defined and initialized +// Ensure $global_settings is defined and initialized. if ( ! isset( $global_settings ) ) { - // Create an empty object to avoid undefined errors + // Create an empty object to avoid undefined errors. $global_settings = new stdClass(); } diff --git a/modules/flip-box/includes/frontend.js.php b/modules/flip-box/includes/frontend.js.php index cacb3c6b..e8b62974 100644 --- a/modules/flip-box/includes/frontend.js.php +++ b/modules/flip-box/includes/frontend.js.php @@ -5,19 +5,19 @@ * @package UABB Flip Box Module */ -// Ensure $settings is defined and initialized +// Ensure $settings is defined and initialized. if ( ! isset( $settings ) ) { - $settings = new stdClass(); // Create an empty object to avoid undefined errors + $settings = new stdClass(); // Create an empty object to avoid undefined errors. } -// Ensure $id is defined and initialized +// Ensure $id is defined and initialized. if ( ! isset( $id ) ) { $id = ''; } -// Ensure $global_settings is defined and initialized +// Ensure $global_settings is defined and initialized. if ( ! isset( $global_settings ) ) { - // Create an empty object to avoid undefined errors + // Create an empty object to avoid undefined errors. $global_settings = new stdClass(); } diff --git a/modules/flip-box/includes/frontend.php b/modules/flip-box/includes/frontend.php index 87490fd0..138fcf45 100644 --- a/modules/flip-box/includes/frontend.php +++ b/modules/flip-box/includes/frontend.php @@ -5,14 +5,14 @@ * @package UABB Flip Box Module */ -// Ensure $settings is defined and initialized +// Ensure $settings is defined and initialized. if ( ! isset( $settings ) ) { - $settings = new stdClass(); // Create an empty object to avoid undefined errors + $settings = new stdClass(); // Create an empty object to avoid undefined errors. } -// Ensure $module is defined and initialized +// Ensure $module is defined and initialized. if ( ! isset( $module ) ) { - $module = new stdClass(); // Create an empty object to avoid undefined errors + $module = new stdClass(); // Create an empty object to avoid undefined errors. } diff --git a/modules/image-icon/image-icon.php b/modules/image-icon/image-icon.php index fa39c67e..8fcee767 100644 --- a/modules/image-icon/image-icon.php +++ b/modules/image-icon/image-icon.php @@ -70,7 +70,7 @@ public function __construct() { * @param object $settings {object}. * @return object */ - public function update( $settings ): object { + public function update( $settings ) { // Make sure we have a photo_src property. if ( ! isset( $settings->photo_src ) ) { $settings->photo_src = ''; @@ -95,7 +95,7 @@ public function update( $settings ): object { * @method delete * @return void */ - public function delete(): void { + public function delete() { $cropped_path = $this->_get_cropped_path(); if ( file_exists( $cropped_path['path'] ) ) { @@ -198,7 +198,7 @@ public function get_data() { * @method get_classes * @return string */ - public function get_classes(): string { + public function get_classes() { $classes = array( 'uabb-photo-img' ); if ( 'library' === $this->settings->photo_source ) { @@ -271,13 +271,13 @@ public function get_alt() { $photo = $this->get_data(); if ( ! empty( $photo->alt ) ) { - return htmlspecialchars( $photo->alt ); + return htmlspecialchars( $photo->alt, ENT_QUOTES, 'UTF-8' ); // Added 'UTF-8' encoding. } elseif ( ! empty( $photo->description ) ) { - return htmlspecialchars( $photo->description ); + return htmlspecialchars( $photo->description, ENT_QUOTES, 'UTF-8' ); // Added 'UTF-8' encoding. } elseif ( ! empty( $photo->caption ) ) { - return htmlspecialchars( $photo->caption ); + return htmlspecialchars( $photo->caption, ENT_QUOTES, 'UTF-8' ); // Added 'UTF-8' encoding. } elseif ( ! empty( $photo->title ) ) { - return htmlspecialchars( $photo->title ); + return htmlspecialchars( $photo->title, ENT_QUOTES, 'UTF-8' ); // Added 'UTF-8' encoding. } return null; @@ -290,7 +290,7 @@ public function get_alt() { * @protected * @return boolean */ - protected function _has_source(): bool { + protected function _has_source() { if ( 'url' === $this->settings->photo_source && ! empty( $this->settings->photo_url ) ) { return true; } elseif ( 'library' === $this->settings->photo_source && ! empty( $this->settings->photo_src ) ) { @@ -329,7 +329,7 @@ protected function _get_editor() { * @return array * @protected */ - protected function _get_cropped_path(): array { + protected function _get_cropped_path() { $crop = empty( $this->settings->image_style ) ? 'simple' : $this->settings->image_style; $url = $this->_get_uncropped_url(); $cache_dir = FLBuilderModel::get_cache_dir(); @@ -365,7 +365,7 @@ protected function _get_cropped_path(): array { * @return string * @protected */ - protected function _get_uncropped_url(): string { + protected function _get_uncropped_url() { if ( 'url' === $this->settings->photo_source ) { $url = $this->settings->photo_url; } elseif ( ! empty( $this->settings->photo_src ) ) { @@ -383,7 +383,7 @@ protected function _get_uncropped_url(): string { * @protected * @return string */ - protected function _get_cropped_demo_url(): string { + protected function _get_cropped_demo_url() { $info = $this->_get_cropped_path(); return FL_BUILDER_DEMO_CACHE_URL . $info['filename']; diff --git a/modules/image-icon/includes/frontend.css.php b/modules/image-icon/includes/frontend.css.php index 0a4aa9af..6db88300 100644 --- a/modules/image-icon/includes/frontend.css.php +++ b/modules/image-icon/includes/frontend.css.php @@ -5,24 +5,24 @@ * @package UABB Image Icon Module */ -// Ensure $settings is defined and initialized +// Ensure $settings is defined and initialized. if ( ! isset( $settings ) ) { - $settings = new stdClass(); // Create an empty object to avoid undefined errors + $settings = new stdClass(); // Create an empty object to avoid undefined errors. } -// Ensure $id is defined and initialized +// Ensure $id is defined and initialized. if ( ! isset( $id ) ) { $id = ''; } -// Ensure $global_settings is defined and initialized +// Ensure $global_settings is defined and initialized. if ( ! isset( $global_settings ) ) { - // Create an empty object to avoid undefined errors + // Create an empty object to avoid undefined errors. $global_settings = new stdClass(); } -$bg_hover_grad_start = ''; // Ensure $bg_grad_start is always defined -$border_hover_color = ''; // Ensure $border_hover_color is always defined +$bg_hover_grad_start = ''; // Ensure $bg_grad_start is always defined. +$border_hover_color = ''; // Ensure $border_hover_color is always defined. if ( 'none' !== $settings->image_type ) : diff --git a/modules/image-icon/includes/frontend.php b/modules/image-icon/includes/frontend.php index c3fa08d2..0f2b8426 100644 --- a/modules/image-icon/includes/frontend.php +++ b/modules/image-icon/includes/frontend.php @@ -5,14 +5,14 @@ * @package UABB Image Icon Module */ -// Ensure $settings is defined and initialized +// Ensure $settings is defined and initialized. if ( ! isset( $settings ) ) { - $settings = new stdClass(); // Create an empty object to avoid undefined errors + $settings = new stdClass(); // Create an empty object to avoid undefined errors. } -// Ensure $module is defined and initialized +// Ensure $module is defined and initialized. if ( ! isset( $module ) ) { - $module = new stdClass(); // Create an empty object to avoid undefined errors + $module = new stdClass(); // Create an empty object to avoid undefined errors. } ?> diff --git a/modules/image-separator/image-separator.php b/modules/image-separator/image-separator.php index f00e3d4d..ee03a7ae 100644 --- a/modules/image-separator/image-separator.php +++ b/modules/image-separator/image-separator.php @@ -5,7 +5,6 @@ * @package UABB Image Separator Module */ - /** * Function that initializes Image Separator Module * @@ -62,7 +61,7 @@ public function __construct() { * @param object $settings gets the settings for the object. * @return object */ - public function update( $settings ): object { + public function update( $settings ) { // Make sure we have a photo_src property. if ( ! isset( $settings->photo_src ) ) { $settings->photo_src = ''; @@ -88,7 +87,7 @@ public function update( $settings ): object { * * @return void */ - public function delete(): void { + public function delete() { $cropped_path = $this->_get_cropped_path(); if ( file_exists( $cropped_path['path'] ) ) { @@ -163,7 +162,7 @@ public function crop() { * * @return object */ - public function get_data(): object { + public function get_data() { if ( ! $this->data ) { // Photo source is set to "library". @@ -259,13 +258,13 @@ public function get_alt() { $photo = $this->get_data(); if ( ! empty( $photo->alt ) ) { - return htmlspecialchars( $photo->alt ); + return htmlspecialchars( $photo->alt, ENT_QUOTES, 'UTF-8' ); // Added 'UTF-8' encoding. } elseif ( ! empty( $photo->description ) ) { - return htmlspecialchars( $photo->description ); + return htmlspecialchars( $photo->description, ENT_QUOTES, 'UTF-8' ); // Added 'UTF-8' encoding. } elseif ( ! empty( $photo->caption ) ) { - return htmlspecialchars( $photo->caption ); + return htmlspecialchars( $photo->caption, ENT_QUOTES, 'UTF-8' ); // Added 'UTF-8' encoding. } elseif ( ! empty( $photo->title ) ) { - return htmlspecialchars( $photo->title ); + return htmlspecialchars( $photo->title, ENT_QUOTES, 'UTF-8' ); // Added 'UTF-8' encoding. } return null; } @@ -277,7 +276,7 @@ public function get_alt() { * @protected * @return boolean */ - protected function _has_source(): bool { + protected function _has_source() { if ( ! empty( $this->settings->photo_src ) ) { return true; } @@ -350,7 +349,7 @@ protected function _get_cropped_path() { * @protected * @return string */ - protected function _get_uncropped_url(): string { + protected function _get_uncropped_url() { if ( ! empty( $this->settings->photo_src ) ) { $url = $this->settings->photo_src; } else { @@ -367,7 +366,7 @@ protected function _get_uncropped_url(): string { * @protected * @return string */ - protected function _get_cropped_demo_url(): string { + protected function _get_cropped_demo_url() { $info = $this->_get_cropped_path(); return FL_BUILDER_DEMO_CACHE_URL . $info['filename']; diff --git a/modules/image-separator/includes/frontend.css.php b/modules/image-separator/includes/frontend.css.php index 791e7533..cbff7cf3 100644 --- a/modules/image-separator/includes/frontend.css.php +++ b/modules/image-separator/includes/frontend.css.php @@ -5,19 +5,19 @@ * @package UABB Image Separator Module */ -// Ensure $settings is defined and initialized +// Ensure $settings is defined and initialized. if ( ! isset( $settings ) ) { - $settings = new stdClass(); // Create an empty object to avoid undefined errors + $settings = new stdClass(); // Create an empty object to avoid undefined errors. } -// Ensure $id is defined and initialized +// Ensure $id is defined and initialized. if ( ! isset( $id ) ) { $id = ''; } -// Ensure $global_settings is defined and initialized +// Ensure $global_settings is defined and initialized. if ( ! isset( $global_settings ) ) { - // Create an empty object to avoid undefined errors + // Create an empty object to avoid undefined errors. $global_settings = new stdClass(); } diff --git a/modules/image-separator/includes/frontend.js.php b/modules/image-separator/includes/frontend.js.php index d369b040..d219d3f0 100644 --- a/modules/image-separator/includes/frontend.js.php +++ b/modules/image-separator/includes/frontend.js.php @@ -5,12 +5,12 @@ * @package UABB Image Separator Module */ -// Ensure $settings is defined and initialized +// Ensure $settings is defined and initialized. if ( ! isset( $settings ) ) { - $settings = new stdClass(); // Create an empty object to avoid undefined errors + $settings = new stdClass(); // Create an empty object to avoid undefined errors. } -// Ensure $id is defined and initialized +// Ensure $id is defined and initialized. if ( ! isset( $id ) ) { $id = ''; } diff --git a/modules/image-separator/includes/frontend.php b/modules/image-separator/includes/frontend.php index 8fc9c8aa..e0d5b1d9 100644 --- a/modules/image-separator/includes/frontend.php +++ b/modules/image-separator/includes/frontend.php @@ -5,14 +5,14 @@ * @package UABB Image Separator Module */ - // Ensure $settings is defined and initialized + // Ensure $settings is defined and initialized. if ( ! isset( $settings ) ) { - $settings = new stdClass(); // Create an empty object to avoid undefined errors + $settings = new stdClass(); // Create an empty object to avoid undefined errors. } -// Ensure $module is defined and initialized +// Ensure $module is defined and initialized. if ( ! isset( $module ) ) { - $module = new stdClass(); // Create an empty object to avoid undefined errors + $module = new stdClass(); // Create an empty object to avoid undefined errors. } $classes = $module->get_classes(); diff --git a/modules/info-list/includes/frontend.css.php b/modules/info-list/includes/frontend.css.php index 1dd666cd..c33f7a56 100644 --- a/modules/info-list/includes/frontend.css.php +++ b/modules/info-list/includes/frontend.css.php @@ -9,19 +9,19 @@ $version_bb_check = UABB_Lite_Compatibility::check_bb_version(); $converted = UABB_Lite_Compatibility::check_old_page_migration(); -// Ensure $settings is defined and initialized +// Ensure $settings is defined and initialized. if ( ! isset( $settings ) ) { - $settings = new stdClass(); // Create an empty object to avoid undefined errors + $settings = new stdClass(); // Create an empty object to avoid undefined errors. } -// Ensure $id is defined and initialized +// Ensure $id is defined and initialized. if ( ! isset( $id ) ) { $id = ''; } -// Ensure $global_settings is defined and initialized +// Ensure $global_settings is defined and initialized. if ( ! isset( $global_settings ) ) { - // Create an empty object to avoid undefined errors + // Create an empty object to avoid undefined errors. $global_settings = new stdClass(); } diff --git a/modules/info-list/includes/frontend.js.php b/modules/info-list/includes/frontend.js.php index 77ace579..24530925 100644 --- a/modules/info-list/includes/frontend.js.php +++ b/modules/info-list/includes/frontend.js.php @@ -5,12 +5,12 @@ * @package UABB Info List Module */ -// Ensure $settings is defined and initialized +// Ensure $settings is defined and initialized. if ( ! isset( $settings ) ) { - $settings = new stdClass(); // Create an empty object to avoid undefined errors + $settings = new stdClass(); // Create an empty object to avoid undefined errors. } -// Ensure $id is defined and initialized +// Ensure $id is defined and initialized. if ( ! isset( $id ) ) { $id = ''; } diff --git a/modules/info-list/includes/frontend.php b/modules/info-list/includes/frontend.php index 5bdf8e98..2f2dec23 100644 --- a/modules/info-list/includes/frontend.php +++ b/modules/info-list/includes/frontend.php @@ -5,14 +5,14 @@ * @package UABB Info List Module */ -// Ensure $settings is defined and initialized +// Ensure $settings is defined and initialized. if ( ! isset( $settings ) ) { - $settings = new stdClass(); // Create an empty object to avoid undefined errors + $settings = new stdClass(); // Create an empty object to avoid undefined errors. } -// Ensure $settings is defined and initialized +// Ensure $settings is defined and initialized. if ( ! isset( $module ) ) { - $module = new stdClass(); // Create an empty object to avoid undefined errors + $module = new stdClass(); // Create an empty object to avoid undefined errors. } ?> diff --git a/modules/info-list/info-list.php b/modules/info-list/info-list.php index dc4556c5..2ad2c088 100644 --- a/modules/info-list/info-list.php +++ b/modules/info-list/info-list.php @@ -44,9 +44,9 @@ public function __construct() { * @method get_icons * @param string $icon gets the icon for the module. */ - public function get_icon( $icon = '' ): string { + public function get_icon( $icon = '' ) { - // Initialize $path before the first if statement + // Initialize $path before the first if statement. $path = ''; // check if $icon is referencing an included icon. @@ -56,12 +56,12 @@ public function get_icon( $icon = '' ): string { if ( file_exists( $path ) ) { $contents = file_get_contents( $path ); //phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents - if ( $contents !== false ) { + if ( false !== $contents ) { return $contents; } } - // If we reach this point, either the file doesn't exist or file_get_contents failed + // If we reach this point, either the file doesn't exist or file_get_contents failed. return ''; } @@ -73,7 +73,7 @@ public function get_icon( $icon = '' ): string { * @param object $settings gets the settings for the module. * @return void */ - public function render_image( $item, $settings ): void { + public function render_image( $item, $settings ) { $infolist_icon_size = isset( $settings->icon_image_size ) ? $settings->icon_image_size : 75; @@ -133,7 +133,7 @@ public function render_image( $item, $settings ): void { * @param var $list_item_counter counts the list item counter value. * @return void */ - public function render_each_item( $item, $list_item_counter ): void { + public function render_each_item( $item, $list_item_counter ) { $target = ''; $nofollow = ''; if ( ! UABB_Lite_Compatibility::check_bb_version() ) { @@ -217,7 +217,7 @@ public function render_each_item( $item, $list_item_counter ): void { * @method render_text * @return void */ - public function render_list(): void { + public function render_list() { $info_list_html = ''; $list_item_counter = 0; foreach ( $this->settings->add_list_item as $item ) { diff --git a/modules/info-table/includes/frontend.css.php b/modules/info-table/includes/frontend.css.php index bad2e9a7..f20e0cc8 100644 --- a/modules/info-table/includes/frontend.css.php +++ b/modules/info-table/includes/frontend.css.php @@ -9,25 +9,25 @@ $version_bb_check = UABB_Lite_Compatibility::check_bb_version(); $converted = UABB_Lite_Compatibility::check_old_page_migration(); -// Ensure $settings is defined and initialized +// Ensure $settings is defined and initialized. if ( ! isset( $settings ) ) { - $settings = new stdClass(); // Create an empty object to avoid undefined errors + $settings = new stdClass(); // Create an empty object to avoid undefined errors. } -// Ensure $id is defined and initialized +// Ensure $id is defined and initialized. if ( ! isset( $id ) ) { $id = ''; } -// Ensure $global_settings is defined and initialized +// Ensure $global_settings is defined and initialized. if ( ! isset( $global_settings ) ) { - // Create an empty object to avoid undefined errors + // Create an empty object to avoid undefined errors. $global_settings = new stdClass(); } -$bg_grad_start = ''; // Ensure $bg_grad_start is always defined +$bg_grad_start = ''; // Ensure $bg_grad_start is always defined. -// Initialize $spacing variable +// Initialize $spacing variable. $spacing = 0; $settings->btn_text_color = FLBuilderColor::hex_or_rgb( $settings->btn_text_color ); diff --git a/modules/info-table/includes/frontend.php b/modules/info-table/includes/frontend.php index d904bc70..8ab53f1f 100644 --- a/modules/info-table/includes/frontend.php +++ b/modules/info-table/includes/frontend.php @@ -5,9 +5,9 @@ * @package UABB Info Table Module */ -// Ensure $settings is defined and initialized +// Ensure $settings is defined and initialized. if ( ! isset( $settings ) ) { - $settings = new stdClass(); // Create an empty object to avoid undefined errors + $settings = new stdClass(); // Create an empty object to avoid undefined errors. } if ( isset( $settings->it_link_nofollow ) ) { diff --git a/modules/ribbon/includes/frontend.css.php b/modules/ribbon/includes/frontend.css.php index f2fde767..d5f3608d 100644 --- a/modules/ribbon/includes/frontend.css.php +++ b/modules/ribbon/includes/frontend.css.php @@ -9,19 +9,19 @@ front_desc_font_size_unit_responsive ); ?>px; front_desc_line_height_unit_responsive && '' !== $settings->front_desc_font_size_unit_responsive ) { - $line_height = floatval( $settings->front_desc_font_size_unit_responsive ) + 2; // ensure it's a numeric value before performing the addition + $line_height = floatval( $settings->front_desc_font_size_unit_responsive ) + 2; // ensure it's a numeric value before performing the addition. echo "line-height: {$line_height}px;"; } ?> @@ -960,7 +960,7 @@ ?> front_desc_font_size['small'] ); - $small_line_height = floatval( $small_font_size ) + 2; // ensure it's a numeric value before performing the addition + $small_line_height = floatval( $small_font_size ) + 2; // ensure it's a numeric value before performing the addition. echo "font-size: {$small_font_size}px; line-height: {$small_line_height}px;"; ?> @@ -983,7 +983,7 @@ font-size: front_title_font_size_unit_responsive ); ?>px; front_title_line_height_unit_responsive && '' !== $settings->front_title_font_size_unit_responsive ) { - $line_height = floatval( $settings->front_title_font_size_unit_responsive ) + 2; // ensure it's a numeric value before performing the addition + $line_height = floatval( $settings->front_title_font_size_unit_responsive ) + 2; // ensure it's a numeric value before performing the addition. echo "line-height: {$line_height}px;"; } ?> @@ -992,7 +992,7 @@ ?> front_title_font_size['small'] ); - $small_line_height = floatval( $small_font_size ) + 2; // ensure it's a numeric value before performing the addition + $small_line_height = floatval( $small_font_size ) + 2; // ensure it's a numeric value before performing the addition. echo "font-size: {$small_font_size}px; line-height: {$small_line_height}px;"; ?> @@ -1016,7 +1016,7 @@ back_desc_line_height_unit_responsive && '' !== $settings->back_desc_font_size_unit_responsive ) { - $line_height = floatval( $settings->back_desc_font_size_unit_responsive ) + 2; // ensure it's a numeric value before performing the addition + $line_height = floatval( $settings->back_desc_font_size_unit_responsive ) + 2; // ensure it's a numeric value before performing the addition. echo "line-height: {$line_height}px;"; } ?> @@ -1025,7 +1025,7 @@ ?> back_desc_font_size['small'] ); - $small_line_height = floatval( $small_font_size ) + 2; // ensure it's a numeric value before performing the addition + $small_line_height = floatval( $small_font_size ) + 2; // ensure it's a numeric value before performing the addition. echo "font-size: {$small_font_size}px; line-height: {$small_line_height}px;"; ?> @@ -1048,14 +1048,14 @@ font-size: back_title_font_size_unit_responsive ); ?>px; back_title_line_height_unit_responsive && '' !== $settings->back_title_font_size_unit_responsive ) { - $line_height = floatval( $settings->back_title_font_size_unit_responsive ) + 2; // ensure it's a numeric value before performing the addition + $line_height = floatval( $settings->back_title_font_size_unit_responsive ) + 2; // ensure it's a numeric value before performing the addition. echo "line-height: {$line_height}px;"; } ?> back_title_font_size_unit_responsive ) && '' === $settings->back_title_font_size_unit_responsive && isset( $settings->back_title_font_size['small'] ) && '' !== $settings->back_title_font_size['small'] ) { ?> back_title_font_size['small'] ); - $small_line_height = floatval( $small_font_size ) + 2; // ensure it's a numeric value before performing the addition + $small_line_height = floatval( $small_font_size ) + 2; // ensure it's a numeric value before performing the addition. echo "font-size: {$small_font_size}px; line-height: {$small_line_height}px;"; ?> @@ -1078,7 +1078,7 @@ link_line_height_unit_responsive && '' !== $settings->link_font_size_unit_responsive ) { - $line_height = floatval( $settings->link_font_size_unit_responsive ) + 2; // ensure it's a numeric value before performing the addition + $line_height = floatval( $settings->link_font_size_unit_responsive ) + 2; // ensure it's a numeric value before performing the addition. echo "line-height: {$line_height}px;"; } @@ -1086,7 +1086,7 @@ link_font_size_unit_responsive ) && '' === $settings->link_font_size_unit_responsive && isset( $settings->link_font_size['small'] ) && '' !== $settings->link_font_size['small'] ) { ?> link_font_size['small'] ); - $small_line_height = floatval( $small_font_size ) + 2; // ensure it's a numeric value before performing the addition + $small_line_height = floatval( $small_font_size ) + 2; // ensure it's a numeric value before performing the addition. echo "font-size: {$small_font_size}px; line-height: {$small_line_height}px;"; ?> diff --git a/modules/slide-box/includes/frontend.js.php b/modules/slide-box/includes/frontend.js.php index 7d1518e4..ad1fdf7d 100644 --- a/modules/slide-box/includes/frontend.js.php +++ b/modules/slide-box/includes/frontend.js.php @@ -12,12 +12,12 @@ * @package Slide Box */ -// Ensure $settings is defined and initialized +// Ensure $settings is defined and initialized. if ( ! isset( $settings ) ) { - $settings = new stdClass(); // Create an empty object to avoid undefined errors + $settings = new stdClass(); // Create an empty object to avoid undefined errors. } -// Ensure $id is defined and initialized +// Ensure $id is defined and initialized. if ( ! isset( $id ) ) { $id = ''; } diff --git a/modules/slide-box/includes/frontend.php b/modules/slide-box/includes/frontend.php index 3db701ac..501f778f 100644 --- a/modules/slide-box/includes/frontend.php +++ b/modules/slide-box/includes/frontend.php @@ -9,14 +9,14 @@ * @package Slide Box */ -// Ensure $settings is defined and initialized +// Ensure $settings is defined and initialized. if ( ! isset( $settings ) ) { - $settings = new stdClass(); // Create an empty object to avoid undefined errors + $settings = new stdClass(); // Create an empty object to avoid undefined errors. } -// Ensure $settings is defined and initialized +// Ensure $settings is defined and initialized. if ( ! isset( $module ) ) { - $module = new stdClass(); // Create an empty object to avoid undefined errors + $module = new stdClass(); // Create an empty object to avoid undefined errors. } $pos = $settings->front_img_icon_position; diff --git a/modules/spacer-gap/includes/frontend.css.php b/modules/spacer-gap/includes/frontend.css.php index 9def9999..d6ec8d0a 100644 --- a/modules/spacer-gap/includes/frontend.css.php +++ b/modules/spacer-gap/includes/frontend.css.php @@ -9,19 +9,19 @@ link_nofollow ) ) { diff --git a/modules/uabb-button/uabb-button.php b/modules/uabb-button/uabb-button.php index c807b815..a9b401f1 100644 --- a/modules/uabb-button/uabb-button.php +++ b/modules/uabb-button/uabb-button.php @@ -40,7 +40,7 @@ public function __construct() { * @param object $settings gets the settings for the button module. * @return object Updated settings object */ - public function update( $settings ): object { + public function update( $settings ) { // Remove the old three_d setting. if ( isset( $settings->three_d ) ) { unset( $settings->three_d ); @@ -55,7 +55,7 @@ public function update( $settings ): object { * @method get_classname * @return string Classname for the button */ - public function get_classname(): string { + public function get_classname() { $classname = 'uabb-button-wrap uabb-creative-button-wrap'; if ( ! empty( $this->settings->width ) ) { @@ -87,7 +87,7 @@ public function get_classname(): string { * @method get_button_style * @return string Button styling string */ - public function get_button_style(): string { + public function get_button_style() { $btn_style = ''; if ( ! empty( $this->settings->style ) && 'transparent' === $this->settings->style ) { diff --git a/modules/uabb-heading/includes/frontend.css.php b/modules/uabb-heading/includes/frontend.css.php index 292b3889..51a54dd1 100644 --- a/modules/uabb-heading/includes/frontend.css.php +++ b/modules/uabb-heading/includes/frontend.css.php @@ -1,6 +1,6 @@ title_color = FLBuilderColor::hex_or_rgb( $settings->color ); $settings->desc_color = FLBuilderColor::hex_or_rgb( $settings->desc_color ); @@ -200,7 +200,7 @@ $imageicon_array = array( - 'image_type' => ( 'line_image' === $settings->separator_style ) ? 'photo' : 'icon', // Removed unreachable condition + 'image_type' => ( 'line_image' === $settings->separator_style ) ? 'photo' : 'icon', // Removed unreachable condition. /* Icon Basics */ 'icon' => $settings->icon, 'icon_size' => $settings->icon_size, @@ -216,8 +216,9 @@ 'photo_src' => ( isset( $settings->photo_src ) ) ? $settings->photo_src : '', /* - Icon color */ - // 'icon_color' => $settings->separator_icon_color, + Icon color + */ + // 'icon_color' => $settings->separator_icon_color. ); /* CSS Render Function */ diff --git a/modules/uabb-heading/includes/frontend.php b/modules/uabb-heading/includes/frontend.php index 0440a6cb..88cb0451 100644 --- a/modules/uabb-heading/includes/frontend.php +++ b/modules/uabb-heading/includes/frontend.php @@ -7,14 +7,14 @@ global $wp_embed; -// Ensure $settings is defined and initialized +// Ensure $settings is defined and initialized. if ( ! isset( $settings ) ) { - $settings = new stdClass(); // Create an empty object to avoid undefined errors + $settings = new stdClass(); // Create an empty object to avoid undefined errors. } -// Ensure $settings is defined and initialized +// Ensure $module is defined and initialized. if ( ! isset( $module ) ) { - $module = new stdClass(); // Create an empty object to avoid undefined errors + $module = new stdClass(); // Create an empty object to avoid undefined errors. } ?> diff --git a/modules/uabb-heading/uabb-heading.php b/modules/uabb-heading/uabb-heading.php index a9b01cfb..168560c4 100644 --- a/modules/uabb-heading/uabb-heading.php +++ b/modules/uabb-heading/uabb-heading.php @@ -23,7 +23,7 @@ public function __construct() { 'name' => __( 'Heading', 'uabb' ), 'description' => __( 'Display a title/page heading.', 'uabb' ), 'category' => BB_Ultimate_Addon_Helper::module_cat( BB_Ultimate_Addon_Helper::$basic_modules ), - 'group' => defined( 'UABB_CAT' ) ? UABB_CAT : '', // Defining the constant + 'group' => defined( 'UABB_CAT' ) ? UABB_CAT : '', // Defining the constant. 'dir' => BB_ULTIMATE_ADDON_DIR . 'modules/uabb-heading/', 'url' => BB_ULTIMATE_ADDON_URL . 'modules/uabb-heading/', 'partial_refresh' => true, @@ -43,7 +43,7 @@ public function render_image() { $imageicon_array = array( /* General Section */ - 'image_type' => ( 'line_image' === $this->settings->separator_style ) ? 'photo' : 'icon', // Removed unreachable condition, + 'image_type' => ( 'line_image' === $this->settings->separator_style ) ? 'photo' : 'icon', // Removed unreachable condition. /* Icon Basics */ 'icon' => $this->settings->icon, diff --git a/modules/uabb-separator/includes/frontend.css.php b/modules/uabb-separator/includes/frontend.css.php index 52ab7bf4..b73cb296 100644 --- a/modules/uabb-separator/includes/frontend.css.php +++ b/modules/uabb-separator/includes/frontend.css.php @@ -8,12 +8,12 @@ ?> __( 'Simple Separator', 'uabb' ), 'description' => __( 'A divider line to separate content.', 'uabb' ), 'category' => BB_Ultimate_Addon_Helper::module_cat( BB_Ultimate_Addon_Helper::$basic_modules ), - 'group' => defined( 'UABB_CAT' ) ? UABB_CAT : '', // Define the constant before use + 'group' => defined( 'UABB_CAT' ) ? UABB_CAT : '', // Define the constant before use. 'dir' => BB_ULTIMATE_ADDON_DIR . 'modules/uabb-separator/', 'url' => BB_ULTIMATE_ADDON_URL . 'modules/uabb-separator/', 'editor_export' => false, diff --git a/modules/uabb-star-rating/includes/frontend.css.php b/modules/uabb-star-rating/includes/frontend.css.php index 096b1651..f80f297a 100644 --- a/modules/uabb-star-rating/includes/frontend.css.php +++ b/modules/uabb-star-rating/includes/frontend.css.php @@ -5,19 +5,19 @@ * @package UABB Star Rating Module */ -// Ensure $settings is defined and initialized +// Ensure $settings is defined and initialized. if ( ! isset( $settings ) ) { - $settings = new stdClass(); // Create an empty object to avoid undefined errors + $settings = new stdClass(); // Create an empty object to avoid undefined errors. } -// Ensure $id is defined and initialized +// Ensure $id is defined and initialized. if ( ! isset( $id ) ) { $id = ''; } -// Ensure $global_settings is defined and initialized +// Ensure $global_settings is defined and initialized. if ( ! isset( $global_settings ) ) { - // Create an empty object to avoid undefined errors + // Create an empty object to avoid undefined errors. $global_settings = new stdClass(); } diff --git a/modules/uabb-star-rating/includes/frontend.php b/modules/uabb-star-rating/includes/frontend.php index 6186f783..b5543151 100644 --- a/modules/uabb-star-rating/includes/frontend.php +++ b/modules/uabb-star-rating/includes/frontend.php @@ -5,9 +5,9 @@ * @package UABB Star Ratting Module */ -// Ensure $settings is defined and initialized +// Ensure $settings is defined and initialized. if ( ! isset( $settings ) ) { - $settings = new stdClass(); // Create an empty object to avoid undefined errors + $settings = new stdClass(); // Create an empty object to avoid undefined errors. } $title = $settings->rating_title; diff --git a/modules/uabb-star-rating/uabb-star-rating.php b/modules/uabb-star-rating/uabb-star-rating.php index 7f27a058..fdf63c9b 100644 --- a/modules/uabb-star-rating/uabb-star-rating.php +++ b/modules/uabb-star-rating/uabb-star-rating.php @@ -10,8 +10,6 @@ * * @class UABBStarRatingModule */ - - class UABBStarRatingModule extends FLBuilderModule { /** @@ -48,7 +46,7 @@ public function __construct() { */ public function get_icon( $icon = '' ) { - $path = ''; // Default Initialization + $path = ''; // Default Initialization. // check if $icon is referencing an included icon. if ( '' !== $icon && file_exists( BB_ULTIMATE_ADDON_DIR . 'modules/uabb-star-rating/icon/' . $icon ) ) { @@ -57,7 +55,7 @@ public function get_icon( $icon = '' ) { if ( file_exists( $path ) ) { $icon_content = file_get_contents( $path ); - return $icon_content !== false ? $icon_content : ''; + return false !== $icon_content ? $icon_content : ''; } return ''; // Return an empty string if no icon found. diff --git a/phpcs.xml.dist b/phpcs.xml.dist index 6b173448..7de16f1e 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -22,6 +22,7 @@ */node_modules/* */vendor/* + */tests/* */admin/bsf-core/* */classes/library/batch-processing/* diff --git a/stubs-generator.php b/stubs-generator.php index a3156ceb..3d6c5e39 100644 --- a/stubs-generator.php +++ b/stubs-generator.php @@ -1,4 +1,10 @@ array( From e689d6c3ed34a65e636b359c9e10faeeb88696a1 Mon Sep 17 00:00:00 2001 From: Abhishek Date: Wed, 25 Sep 2024 14:34:29 +0530 Subject: [PATCH 16/29] Done with PHPCS error --- classes/class-uabb-helper.php | 6 +- classes/class-uabb-iconfonts.php | 1 + classes/helper.php | 6 +- classes/uabb-global-functions.php | 370 +++++++++++++++--------------- phpcs.xml.dist | 6 + 5 files changed, 198 insertions(+), 191 deletions(-) diff --git a/classes/class-uabb-helper.php b/classes/class-uabb-helper.php index 9754b93c..67ef31ff 100644 --- a/classes/class-uabb-helper.php +++ b/classes/class-uabb-helper.php @@ -671,10 +671,10 @@ public static function is_templates_exist( $templates_type = 'all' ) { * @since 1.0 * @param string $target gets an string for the link. * @param int $is_nofollow gets an string for is no follow. - * @param int $echo gets an string for echo. + * @param int $should_echo gets an string for echo. Renaming the variable to $should_echo to avoid conflict with the built-in $echo parameter. * @return string */ - public static function get_link_rel( $target, $is_nofollow = 0, $echo = 0 ) { + public static function get_link_rel( $target, $is_nofollow = 0, $should_echo = 0 ) { $attr = ''; if ( '_blank' === $target ) { @@ -690,7 +690,7 @@ public static function get_link_rel( $target, $is_nofollow = 0, $echo = 0 ) { } $attr = trim( $attr ); - if ( ! $echo ) { + if ( ! $should_echo ) { return 'rel="' . $attr . '"'; } echo 'rel="' . esc_attr( $attr ) . '"'; diff --git a/classes/class-uabb-iconfonts.php b/classes/class-uabb-iconfonts.php index 7782ce02..e3ea1100 100644 --- a/classes/class-uabb-iconfonts.php +++ b/classes/class-uabb-iconfonts.php @@ -102,6 +102,7 @@ public function recurse_copy( $src, $dst ) { @mkdir( $dst ); //phpcs:ignore WordPress.WP.AlternativeFunctions.file_system_operations_mkdir } + // phpcs:ignore Generic.CodeAnalysis.AssignmentInCondition.FoundInWhileCondition while ( false !== ( $file = readdir( $dir ) ) ) { if ( ( '.' !== $file ) && ( '..' !== $file ) ) { if ( is_dir( $src . '/' . $file ) ) { diff --git a/classes/helper.php b/classes/helper.php index c71e9447..4d466cb0 100644 --- a/classes/helper.php +++ b/classes/helper.php @@ -210,9 +210,9 @@ public static function uabb_gradient_css( $gradient ) { * @since 1.3.0 * @param string $target gets an string for the link. * @param int $is_nofollow gets an string for is no follow. - * @param int $echo gets an string for echo. + * @param int $should_echo gets an string for echo. Renaming the variable to $should_echo to avoid conflict with the built-in $echo parameter. */ - public static function get_link_rel( $target, $is_nofollow = 0, $echo = 0 ) { + public static function get_link_rel( $target, $is_nofollow = 0, $should_echo = 0 ) { $attr = ''; if ( '_blank' === $target ) { @@ -228,7 +228,7 @@ public static function get_link_rel( $target, $is_nofollow = 0, $echo = 0 ) { } $attr = trim( $attr ); - if ( ! $echo ) { + if ( ! $should_echo ) { return 'rel="' . $attr . '"'; } echo 'rel="' . esc_attr( $attr ) . '"'; diff --git a/classes/uabb-global-functions.php b/classes/uabb-global-functions.php index c6f36ed3..2f7f3786 100644 --- a/classes/uabb-global-functions.php +++ b/classes/uabb-global-functions.php @@ -86,22 +86,22 @@ function recurse( $base, $replacements ) { /** * Provide option to override the element defaults from theme options. * - * @param var $default Checks if user has set the color, if yes, returns users value else checks for. + * @param var $default_color Checks if user has set the color, if yes, returns users value else checks for. * filtered value. * @return string - hex value for the color */ -function uabb_theme_base_color( $default ) { +function uabb_theme_base_color( $default_color ) { $color = ''; - if ( '' === $default ) { + if ( '' === $default_color ) { - $color = apply_filters( 'uabb/global/theme_color', $default );// @codingStandardsIgnoreLine. + $color = apply_filters( 'uabb/global/theme_color', $default_color );// @codingStandardsIgnoreLine. if ( '' === $color ) { - $color = apply_filters( 'uabb_theme_theme_color', $default ); + $color = apply_filters( 'uabb_theme_theme_color', $default_color ); } } else { - $color = $default; + $color = $default_color; } return $color; @@ -110,22 +110,22 @@ function uabb_theme_base_color( $default ) { /** * Provide option to override the element defaults from theme options. * - * @param var $default Checks if user has set the color, if yes, returns users value else checks for. + * @param var $default_text_color Checks if user has set the color, if yes, returns users value else checks for. * filtered value. * @return string - hex value for the color */ -function uabb_theme_text_color( $default ) { +function uabb_theme_text_color( $default_text_color ) { $color = ''; - if ( '' === $default ) { + if ( '' === $default_text_color ) { - $color = apply_filters( 'uabb/global/text_color', $default );// @codingStandardsIgnoreLine. + $color = apply_filters( 'uabb/global/text_color', $default_text_color );// @codingStandardsIgnoreLine. if ( '' === $color ) { - $color = apply_filters( 'uabb_theme_text_color', $default ); + $color = apply_filters( 'uabb_theme_text_color', $default_text_color ); } } else { - $color = $default; + $color = $default_text_color; } return $color; @@ -134,22 +134,22 @@ function uabb_theme_text_color( $default ) { /** * Provide option to override the element defaults from theme options. * - * @param var $default Checks if user has set the color, if yes, returns users value else checks for + * @param var $default_link_color Checks if user has set the color, if yes, returns users value else checks for * filtered value. * @return string - hex value for the color */ -function uabb_theme_link_color( $default ) { +function uabb_theme_link_color( $default_link_color ) { $color = ''; - if ( '' === $default ) { + if ( '' === $default_link_color ) { - $color = apply_filters( 'uabb/global/link_color', $default );// @codingStandardsIgnoreLine. + $color = apply_filters( 'uabb/global/link_color', $default_link_color );// @codingStandardsIgnoreLine. if ( '' === $color ) { - $color = apply_filters( 'uabb_theme_link_color', $default ); + $color = apply_filters( 'uabb_theme_link_color', $default_link_color ); } } else { - $color = $default; + $color = $default_link_color; } return $color; @@ -158,21 +158,21 @@ function uabb_theme_link_color( $default ) { /** * Provide option to override the element defaults from theme options. * - * @param var $default Checks if user has set the color, if yes, returns users value else checks for filtered value. + * @param var $default_link_hover_color Checks if user has set the color, if yes, returns users value else checks for filtered value. * @return string - hex value for the color */ -function uabb_theme_link_hover_color( $default ) { +function uabb_theme_link_hover_color( $default_link_hover_color ) { $color = ''; - if ( '' === $default ) { + if ( '' === $default_link_hover_color ) { - $color = apply_filters( 'uabb/global/link_hover_color', $default );// @codingStandardsIgnoreLine. + $color = apply_filters( 'uabb/global/link_hover_color', $default_link_hover_color );// @codingStandardsIgnoreLine. if ( '' === $color ) { - $color = apply_filters( 'uabb_theme_link_hover_color', $default ); + $color = apply_filters( 'uabb_theme_link_hover_color', $default_link_hover_color ); } } else { - $color = $default; + $color = $default_link_hover_color; } return $color; @@ -181,19 +181,19 @@ function uabb_theme_link_hover_color( $default ) { /** * Provide option to override the element defaults from theme options. * - * @param var $default Checks if user has set the font family, if yes, returns users value else checks + * @param var $default_btn_font_family Checks if user has set the font family, if yes, returns users value else checks * for filtered value. * @return string - font-family */ -function uabb_theme_button_font_family( $default ) { +function uabb_theme_button_font_family( $default_btn_font_family ) { $btn_font_family = array(); - if ( '' === $default['family'] || 'Default' === $default['family'] ) { + if ( '' === $default_btn_font_family['family'] || 'Default' === $default_btn_font_family['family'] ) { - $btn_font_family = apply_filters( 'uabb_theme_button_font_family', $default ); + $btn_font_family = apply_filters( 'uabb_theme_button_font_family', $default_btn_font_family ); } else { - $btn_font_family = $default; + $btn_font_family = $default_btn_font_family; } return $btn_font_family; @@ -202,23 +202,23 @@ function uabb_theme_button_font_family( $default ) { /** * Button Font Size * - * @param var $default Checks if the user has set Font Size values. + * @param var $default_btn_font_size Checks if the user has set Font Size values. * @return string */ -function uabb_theme_button_font_size( $default ) { +function uabb_theme_button_font_size( $default_btn_font_size ) { $font_size = ''; - if ( '' === $default ) { + if ( '' === $default_btn_font_size ) { - $font_size = apply_filters( 'uabb/global/button_font_size', $default );// @codingStandardsIgnoreLine. + $font_size = apply_filters( 'uabb/global/button_font_size', $default_btn_font_size );// @codingStandardsIgnoreLine. if ( '' === $font_size ) { - $font_size = apply_filters( 'uabb_theme_button_font_size', $default ); + $font_size = apply_filters( 'uabb_theme_button_font_size', $default_btn_font_size ); } else { $font_size = $font_size . 'px'; } } else { - $font_size = $default; + $font_size = $default_btn_font_size; } return $font_size; @@ -227,23 +227,23 @@ function uabb_theme_button_font_size( $default ) { * Button Font Size * * @since 1.3.1 - * @param var $default Checks if the user has set Font Size values. + * @param var $default_btn_font_size Checks if the user has set Font Size values. * @return string */ -function uabb_theme_default_button_font_size( $default ) { +function uabb_theme_default_button_font_size( $default_btn_font_size ) { $font_size = ''; - if ( '' === $default ) { + if ( '' === $default_btn_font_size ) { - $font_size = apply_filters( 'uabb/global/button_font_size', $default );// @codingStandardsIgnoreLine. + $font_size = apply_filters( 'uabb/global/button_font_size', $default_btn_font_size );// @codingStandardsIgnoreLine. if ( '' === $font_size ) { - $font_size = apply_filters( 'uabb_theme_default_button_font_size', $default ); + $font_size = apply_filters( 'uabb_theme_default_button_font_size', $default_btn_font_size ); } else { $font_size = $font_size . 'px'; } } else { - $font_size = $default; + $font_size = $default_btn_font_size; } return $font_size; @@ -251,23 +251,23 @@ function uabb_theme_default_button_font_size( $default ) { /** * Button Line Height * - * @param var $default Checks if the user has set text transform values. + * @param var $default_btn_line_height Checks if the user has set text transform values. * @return string */ -function uabb_theme_button_line_height( $default ) { +function uabb_theme_button_line_height( $default_btn_line_height ) { $line_height = ''; - if ( '' === $default ) { + if ( '' === $default_btn_line_height ) { - $line_height = apply_filters( 'uabb/global/button_line_height', $default );// @codingStandardsIgnoreLine. + $line_height = apply_filters( 'uabb/global/button_line_height', $default_btn_line_height );// @codingStandardsIgnoreLine. if ( '' === $line_height ) { - $line_height = apply_filters( 'uabb_theme_button_line_height', $default ); + $line_height = apply_filters( 'uabb_theme_button_line_height', $default_btn_line_height ); } else { $line_height = $line_height . 'px'; } } else { - $line_height = $default; + $line_height = $default_btn_line_height; } return $line_height; @@ -276,23 +276,23 @@ function uabb_theme_button_line_height( $default ) { * Button Line Height * * @since 1.3.1 - * @param var $default Checks if the user has set text transform values. + * @param var $default_btn_line_height Checks if the user has set text transform values. * @return string */ -function uabb_theme_default_button_line_height( $default ) { +function uabb_theme_default_button_line_height( $default_btn_line_height ) { $line_height = ''; - if ( '' === $default ) { + if ( '' === $default_btn_line_height ) { - $line_height = apply_filters( 'uabb/global/button_line_height', $default );// @codingStandardsIgnoreLine. + $line_height = apply_filters( 'uabb/global/button_line_height', $default_btn_line_height );// @codingStandardsIgnoreLine. if ( '' === $line_height ) { - $line_height = apply_filters( 'uabb_theme_default_button_line_height', $default ); + $line_height = apply_filters( 'uabb_theme_default_button_line_height', $default_btn_line_height ); } else { $line_height = $line_height . 'px'; } } else { - $line_height = $default; + $line_height = $default_btn_line_height; } return $line_height; @@ -300,23 +300,23 @@ function uabb_theme_default_button_line_height( $default ) { /** * Button Letter Spacing * - * @param var $default Checks if the user has set letter spacing values. + * @param var $default_btn_letter_spacing Checks if the user has set letter spacing values. * @return string */ -function uabb_theme_button_letter_spacing( $default ) { +function uabb_theme_button_letter_spacing( $default_btn_letter_spacing ) { $letter_spacing = ''; - if ( '' === $default ) { + if ( '' === $default_btn_letter_spacing ) { - $letter_spacing = apply_filters( 'uabb/global/button_letter_spacing', $default );// @codingStandardsIgnoreLine. + $letter_spacing = apply_filters( 'uabb/global/button_letter_spacing', $default_btn_letter_spacing );// @codingStandardsIgnoreLine. if ( '' === $letter_spacing ) { - $letter_spacing = apply_filters( 'uabb_theme_button_letter_spacing', $default ); + $letter_spacing = apply_filters( 'uabb_theme_button_letter_spacing', $default_btn_letter_spacing ); } else { $letter_spacing = $letter_spacing . 'px'; } } else { - $letter_spacing = $default; + $letter_spacing = $default_btn_letter_spacing; } return $letter_spacing; @@ -325,23 +325,23 @@ function uabb_theme_button_letter_spacing( $default ) { * Button Letter Spacing * * @since 1.3.1 - * @param var $default Checks if the user has set letter spacing values. + * @param var $default_btn_letter_spacing Checks if the user has set letter spacing values. * @return string */ -function uabb_theme_default_button_letter_spacing( $default ) { +function uabb_theme_default_button_letter_spacing( $default_btn_letter_spacing ) { $letter_spacing = ''; - if ( '' === $default ) { + if ( '' === $default_btn_letter_spacing ) { - $letter_spacing = apply_filters( 'uabb/global/button_letter_spacing', $default );// @codingStandardsIgnoreLine. + $letter_spacing = apply_filters( 'uabb/global/button_letter_spacing', $default_btn_letter_spacing );// @codingStandardsIgnoreLine. if ( '' === $letter_spacing ) { - $letter_spacing = apply_filters( 'uabb_theme_default_button_letter_spacing', $default ); + $letter_spacing = apply_filters( 'uabb_theme_default_button_letter_spacing', $default_btn_letter_spacing ); } else { $letter_spacing = $letter_spacing . 'px'; } } else { - $letter_spacing = $default; + $letter_spacing = $default_btn_letter_spacing; } return $letter_spacing; @@ -349,21 +349,21 @@ function uabb_theme_default_button_letter_spacing( $default ) { /** * Button Text Transform * - * @param var $default Checks if the user has set text transform values. + * @param var $default_btn_text_transform Checks if the user has set text transform values. * @return string */ -function uabb_theme_button_text_transform( $default ) { +function uabb_theme_button_text_transform( $default_btn_text_transform ) { $text_transform = ''; - if ( '' === $default ) { + if ( '' === $default_btn_text_transform ) { - $text_transform = apply_filters( 'uabb/global/button_text_transform', $default );// @codingStandardsIgnoreLine. + $text_transform = apply_filters( 'uabb/global/button_text_transform', $default_btn_text_transform );// @codingStandardsIgnoreLine. if ( '' === $text_transform ) { - $text_transform = apply_filters( 'uabb_theme_button_text_transform', $default ); + $text_transform = apply_filters( 'uabb_theme_button_text_transform', $default_btn_text_transform ); } } else { - $text_transform = $default; + $text_transform = $default_btn_text_transform; } return $text_transform; @@ -372,21 +372,21 @@ function uabb_theme_button_text_transform( $default ) { * Button Text Transform * * @since 1.3.1 - * @param var $default Checks if the user has set text transform values. + * @param var $default_btn_text_transform Checks if the user has set text transform values. * @return string */ -function uabb_theme_default_button_text_transform( $default ) { +function uabb_theme_default_button_text_transform( $default_btn_text_transform ) { $text_transform = ''; - if ( '' === $default ) { + if ( '' === $default_btn_text_transform ) { - $text_transform = apply_filters( 'uabb/global/button_text_transform', $default );// @codingStandardsIgnoreLine. + $text_transform = apply_filters( 'uabb/global/button_text_transform', $default_btn_text_transform );// @codingStandardsIgnoreLine. if ( '' === $text_transform ) { - $text_transform = apply_filters( 'uabb_theme_default_button_text_transform', $default ); + $text_transform = apply_filters( 'uabb_theme_default_button_text_transform', $default_btn_text_transform ); } } else { - $text_transform = $default; + $text_transform = $default_btn_text_transform; } return $text_transform; @@ -394,21 +394,21 @@ function uabb_theme_default_button_text_transform( $default ) { /** * Provide option to override the element defaults from theme options. * - * @param var $default Checks if user has set the color, if yes, returns users value else checks for filtered value. + * @param var $default_btn_bg_color Checks if user has set the color, if yes, returns users value else checks for filtered value. * @return string - hex value for the color */ -function uabb_theme_button_bg_color( $default ) { +function uabb_theme_button_bg_color( $default_btn_bg_color ) { $color = ''; - if ( '' === $default ) { + if ( '' === $default_btn_bg_color ) { - $color = apply_filters( 'uabb/global/button_bg_color', $default );// @codingStandardsIgnoreLine. + $color = apply_filters( 'uabb/global/button_bg_color', $default_btn_bg_color );// @codingStandardsIgnoreLine. if ( '' === $color ) { - $color = apply_filters( 'uabb_theme_button_bg_color', $default ); + $color = apply_filters( 'uabb_theme_button_bg_color', $default_btn_bg_color ); } } else { - $color = $default; + $color = $default_btn_bg_color; } return $color; @@ -417,21 +417,21 @@ function uabb_theme_button_bg_color( $default ) { * Provide option to override the element defaults from theme options. * * @since 1.3.1 - * @param var $default Checks if user has set the color, if yes, returns users value else checks for filtered value. + * @param var $default_btn_bg_color Checks if user has set the color, if yes, returns users value else checks for filtered value. * @return string - hex value for the color */ -function uabb_theme_default_button_bg_color( $default ) { +function uabb_theme_default_button_bg_color( $default_btn_bg_color ) { $color = ''; - if ( '' === $default ) { + if ( '' === $default_btn_bg_color ) { - $color = apply_filters( 'uabb/global/button_bg_color', $default );// @codingStandardsIgnoreLine. + $color = apply_filters( 'uabb/global/button_bg_color', $default_btn_bg_color );// @codingStandardsIgnoreLine. if ( '' === $color ) { - $color = apply_filters( 'uabb_theme_default_button_bg_color', $default ); + $color = apply_filters( 'uabb_theme_default_button_bg_color', $default_btn_bg_color ); } } else { - $color = $default; + $color = $default_btn_bg_color; } return $color; @@ -439,22 +439,22 @@ function uabb_theme_default_button_bg_color( $default ) { /** * Provide option to override the element defaults from theme options. * - * @param var $default Checks if user has set the color, if yes, returns users value else checks + * @param var $default_btn_bg_hover_color Checks if user has set the color, if yes, returns users value else checks * for filtered value. * @return string - hex value for the color */ -function uabb_theme_button_bg_hover_color( $default ) { +function uabb_theme_button_bg_hover_color( $default_btn_bg_hover_color ) { $color = ''; - if ( '' === $default ) { + if ( '' === $default_btn_bg_hover_color ) { - $color = apply_filters( 'uabb/global/button_bg_hover_color', $default );// @codingStandardsIgnoreLine. + $color = apply_filters( 'uabb/global/button_bg_hover_color', $default_btn_bg_hover_color );// @codingStandardsIgnoreLine. if ( '' === $color ) { - $color = apply_filters( 'uabb_theme_button_bg_hover_color', $default ); + $color = apply_filters( 'uabb_theme_button_bg_hover_color', $default_btn_bg_hover_color ); } } else { - $color = $default; + $color = $default_btn_bg_hover_color; } return $color; @@ -463,22 +463,22 @@ function uabb_theme_button_bg_hover_color( $default ) { * Provide option to override the element defaults from theme options. * * @since 1.3.1 - * @param var $default Checks if user has set the color, if yes, returns users value else checks + * @param var $default_btn_bg_hover_color Checks if user has set the color, if yes, returns users value else checks * for filtered value. * @return string - hex value for the color */ -function uabb_theme_default_button_bg_hover_color( $default ) { +function uabb_theme_default_button_bg_hover_color( $default_btn_bg_hover_color ) { $color = ''; - if ( '' === $default ) { + if ( '' === $default_btn_bg_hover_color ) { - $color = apply_filters( 'uabb/global/button_bg_hover_color', $default );// @codingStandardsIgnoreLine. + $color = apply_filters( 'uabb/global/button_bg_hover_color', $default_btn_bg_hover_color );// @codingStandardsIgnoreLine. if ( '' === $color ) { - $color = apply_filters( 'uabb_theme_default_button_bg_hover_color', $default ); + $color = apply_filters( 'uabb_theme_default_button_bg_hover_color', $default_btn_bg_hover_color ); } } else { - $color = $default; + $color = $default_btn_bg_hover_color; } return $color; @@ -486,22 +486,22 @@ function uabb_theme_default_button_bg_hover_color( $default ) { /** * Provide option to override the element defaults from theme options. * - * @param var $default Checks if user has set the color, if yes, returns users value else checks + * @param var $default_btn_text_color Checks if user has set the color, if yes, returns users value else checks * for filtered value. * @return string - hex value for the color */ -function uabb_theme_button_text_color( $default ) { +function uabb_theme_button_text_color( $default_btn_text_color ) { $color = ''; - if ( '' === $default ) { + if ( '' === $default_btn_text_color ) { - $color = apply_filters( 'uabb/global/button_text_color', $default );// @codingStandardsIgnoreLine. + $color = apply_filters( 'uabb/global/button_text_color', $default_btn_text_color );// @codingStandardsIgnoreLine. if ( '' === $color ) { - $color = apply_filters( 'uabb_theme_button_text_color', $default ); + $color = apply_filters( 'uabb_theme_button_text_color', $default_btn_text_color ); } } else { - $color = $default; + $color = $default_btn_text_color; } return $color; @@ -510,22 +510,22 @@ function uabb_theme_button_text_color( $default ) { * Provide option to override the element defaults from theme options. * * @since 1.3.1 - * @param var $default Checks if user has set the text color, if yes, returns users value else checks + * @param var $default_btn_text_color Checks if user has set the text color, if yes, returns users value else checks * for filtered value. * @return string - hex value for the text color */ -function uabb_theme_default_button_text_color( $default ) { +function uabb_theme_default_button_text_color( $default_btn_text_color ) { $color = ''; - if ( '' === $default ) { + if ( '' === $default_btn_text_color ) { - $color = apply_filters( 'uabb/global/button_text_color', $default );// @codingStandardsIgnoreLine. + $color = apply_filters( 'uabb/global/button_text_color', $default_btn_text_color );// @codingStandardsIgnoreLine. if ( '' === $color ) { - $color = apply_filters( 'uabb_theme_default_button_text_color', $default ); + $color = apply_filters( 'uabb_theme_default_button_text_color', $default_btn_text_color ); } } else { - $color = $default; + $color = $default_btn_text_color; } return $color; @@ -533,23 +533,23 @@ function uabb_theme_default_button_text_color( $default ) { /** * Provide option to override the element defaults from theme options. * - * @param var $default Checks if user has set the text hover color, if yes, returns users value else checks + * @param var $default_btn_text_hover_color Checks if user has set the text hover color, if yes, returns users value else checks * for filtered value. * * @return string - hex value for the text hover color */ -function uabb_theme_button_text_hover_color( $default ) { +function uabb_theme_button_text_hover_color( $default_btn_text_hover_color ) { $color = ''; - if ( '' === $default ) { + if ( '' === $default_btn_text_hover_color ) { - $color = apply_filters( 'uabb/global/button_text_hover_color', $default );// @codingStandardsIgnoreLine. + $color = apply_filters( 'uabb/global/button_text_hover_color', $default_btn_text_hover_color );// @codingStandardsIgnoreLine. if ( '' === $color ) { - $color = apply_filters( 'uabb_theme_button_text_hover_color', $default ); + $color = apply_filters( 'uabb_theme_button_text_hover_color', $default_btn_text_hover_color ); } } else { - $color = $default; + $color = $default_btn_text_hover_color; } return $color; @@ -558,23 +558,23 @@ function uabb_theme_button_text_hover_color( $default ) { * Provide option to override the element defaults from theme options. * * @since 1.3.1 - * @param var $default Checks if user has set the text hover color, if yes, returns users value else checks + * @param var $default_btn_text_hover_color Checks if user has set the text hover color, if yes, returns users value else checks * for filtered value. * * @return string - hex value for the text hover color */ -function uabb_theme_default_button_text_hover_color( $default ) { +function uabb_theme_default_button_text_hover_color( $default_btn_text_hover_color ) { $color = ''; - if ( '' === $default ) { + if ( '' === $default_btn_text_hover_color ) { - $color = apply_filters( 'uabb/global/button_text_hover_color', $default );// @codingStandardsIgnoreLine. + $color = apply_filters( 'uabb/global/button_text_hover_color', $default_btn_text_hover_color );// @codingStandardsIgnoreLine. if ( '' === $color ) { - $color = apply_filters( 'uabb_theme_default_button_text_hover_color', $default ); + $color = apply_filters( 'uabb_theme_default_button_text_hover_color', $default_btn_text_hover_color ); } } else { - $color = $default; + $color = $default_btn_text_hover_color; } return $color; @@ -582,25 +582,25 @@ function uabb_theme_default_button_text_hover_color( $default ) { /** * Provide option to override the element defaults from theme options. * - * @param var $default Checks if user has set the color, if yes, returns users value else checks + * @param var $default_btn_padding Checks if user has set the color, if yes, returns users value else checks * for filtered value. * @return string - padding value */ -function uabb_theme_button_padding( $default ) { +function uabb_theme_button_padding( $default_btn_padding ) { $padding = ''; - if ( '' === $default ) { + if ( '' === $default_btn_padding ) { - $padding = apply_filters( 'uabb/global/button_padding', $default );// @codingStandardsIgnoreLine. + $padding = apply_filters( 'uabb/global/button_padding', $default_btn_padding );// @codingStandardsIgnoreLine. if ( '' === $padding ) { - $padding = apply_filters( 'uabb/theme/button_padding', $default );// @codingStandardsIgnoreLine. + $padding = apply_filters( 'uabb/theme/button_padding', $default_btn_padding );// @codingStandardsIgnoreLine. if ( '' === $padding ) { $padding = '12px 24px'; } } } else { - $padding = $default; + $padding = $default_btn_padding; } return $padding; @@ -609,22 +609,22 @@ function uabb_theme_button_padding( $default ) { * Provide option to override the element defaults from theme options. * * @since 1.3.1 - * @param var $default Checks if user has set the padding, if yes, returns users value else checks + * @param var $default_btn_padding Checks if user has set the padding, if yes, returns users value else checks * for filtered value. * @return string - padding value */ -function uabb_theme_default_button_padding( $default ) { +function uabb_theme_default_button_padding( $default_btn_padding ) { $padding = ''; - if ( '' === $default ) { + if ( '' === $default_btn_padding ) { - $padding = apply_filters( 'uabb/global/button_padding', $default );// @codingStandardsIgnoreLine. + $padding = apply_filters( 'uabb/global/button_padding', $default_btn_padding );// @codingStandardsIgnoreLine. if ( '' === $padding ) { - $padding = apply_filters( 'uabb_theme_default_button_padding', $default );// @codingStandardsIgnoreLine. + $padding = apply_filters( 'uabb_theme_default_button_padding', $default_btn_padding );// @codingStandardsIgnoreLine. } } else { - $padding = $default; + $padding = $default_btn_padding; } return $padding; @@ -632,25 +632,25 @@ function uabb_theme_default_button_padding( $default ) { /** * Provide option to override the element defaults from theme options. * - * @param var $default Checks if user has set the padding, if yes, returns users value else checks + * @param var $default_btn_vertical_padding Checks if user has set the padding, if yes, returns users value else checks * for filtered value. * @return string - padding value */ -function uabb_theme_button_vertical_padding( $default ) { +function uabb_theme_button_vertical_padding( $default_btn_vertical_padding ) { $padding = ''; - if ( '' === $default ) { + if ( '' === $default_btn_vertical_padding ) { - $padding = apply_filters( 'uabb/global/button_vertical_padding', $default );// @codingStandardsIgnoreLine. + $padding = apply_filters( 'uabb/global/button_vertical_padding', $default_btn_vertical_padding );// @codingStandardsIgnoreLine. if ( '' === $padding ) { - $padding = apply_filters( 'uabb_theme_button_vertical_padding', $default ); + $padding = apply_filters( 'uabb_theme_button_vertical_padding', $default_btn_vertical_padding ); if ( '' === $padding ) { $padding = '12'; } } } else { - $padding = $default; + $padding = $default_btn_vertical_padding; } return $padding; @@ -658,25 +658,25 @@ function uabb_theme_button_vertical_padding( $default ) { /** * Provide option to override the element defaults from theme options. * - * @param var $default checks if user has set the padding, if yes, returns users value else checks + * @param var $default_btn_horizontal_padding checks if user has set the padding, if yes, returns users value else checks * for filtered value. * @return string - padding value */ -function uabb_theme_button_horizontal_padding( $default ) { +function uabb_theme_button_horizontal_padding( $default_btn_horizontal_padding ) { $padding = ''; - if ( '' === $default ) { + if ( '' === $default_btn_horizontal_padding ) { - $padding = apply_filters( 'uabb/global/button_horizontal_padding', $default );// @codingStandardsIgnoreLine. + $padding = apply_filters( 'uabb/global/button_horizontal_padding', $default_btn_horizontal_padding );// @codingStandardsIgnoreLine. if ( '' === $padding ) { - $padding = apply_filters( 'uabb_theme_button_horizontal_padding', $default ); + $padding = apply_filters( 'uabb_theme_button_horizontal_padding', $default_btn_horizontal_padding ); if ( '' === $padding ) { $padding = '24'; } } } else { - $padding = $default; + $padding = $default_btn_horizontal_padding; } return $padding; @@ -685,25 +685,25 @@ function uabb_theme_button_horizontal_padding( $default ) { /** * Provide option to override the element defaults from theme options. * - * @param var $default Checks if user has set the radius, if yes, returns users value else checks + * @param var $default_btn_border_radius Checks if user has set the radius, if yes, returns users value else checks * for filtered value. * @return string - radius value */ -function uabb_theme_button_border_radius( $default ) { +function uabb_theme_button_border_radius( $default_btn_border_radius ) { $radius = ''; - if ( '' === $default ) { + if ( '' === $default_btn_border_radius ) { - $radius = apply_filters( 'uabb/global/button_border_radius', $default ); // @codingStandardsIgnoreLine. + $radius = apply_filters( 'uabb/global/button_border_radius', $default_btn_border_radius ); // @codingStandardsIgnoreLine. if ( '' === $radius ) { - $radius = apply_filters( 'uabb_theme_button_border_radius', $default ); + $radius = apply_filters( 'uabb_theme_button_border_radius', $default_btn_border_radius ); if ( '' === $radius ) { $radius = '4'; } } } else { - $radius = $default; + $radius = $default_btn_border_radius; } return $radius; } @@ -711,22 +711,22 @@ function uabb_theme_button_border_radius( $default ) { * Provide option to override the element defaults from theme options. * * @since 1.3.1 - * @param var $default Checks if user has set the width, if yes, returns users value else checks + * @param var $default_btn_border_width Checks if user has set the width, if yes, returns users value else checks * for filtered value. * @return string - width value */ -function uabb_theme_button_border_width( $default ) { +function uabb_theme_button_border_width( $default_btn_border_width ) { $width = array(); - if ( '' === $default ) { + if ( '' === $default_btn_border_width ) { - $width = apply_filters( 'uabb_global_button_border_width', $default ); + $width = apply_filters( 'uabb_global_button_border_width', $default_btn_border_width ); if ( '' === $width ) { - $width = apply_filters( 'uabb_theme_button_border_width', $default ); + $width = apply_filters( 'uabb_theme_button_border_width', $default_btn_border_width ); } } else { - $width = $default; + $width = $default_btn_border_width; } return $width; } @@ -734,22 +734,22 @@ function uabb_theme_button_border_width( $default ) { * Provide option to override the element defaults from theme options. * * @since 1.3.1 - * @param var $default Checks if user has set the color, if yes, returns users value else checks for + * @param var $default_btn_border_color Checks if user has set the color, if yes, returns users value else checks for * filtered value. * @return string - hex value for the border color */ -function uabb_theme_border_color( $default ) { +function uabb_theme_border_color( $default_btn_border_color ) { $color = ''; - if ( '' === $default ) { + if ( '' === $default_btn_border_color ) { - $color = apply_filters( 'uabb_global_border_color', $default ); + $color = apply_filters( 'uabb_global_border_color', $default_btn_border_color ); if ( '' === $color ) { - $color = apply_filters( 'uabb_theme_border_color', $default ); + $color = apply_filters( 'uabb_theme_border_color', $default_btn_border_color ); } } else { - $color = $default; + $color = $default_btn_border_color; } return $color; @@ -758,22 +758,22 @@ function uabb_theme_border_color( $default ) { * Provide option to override the element defaults from theme options. * * @since 1.3.1 - * @param var $default Checks if user has set the hover color, if yes, returns users value else checks for + * @param var $default_btn_border_hover_color Checks if user has set the hover color, if yes, returns users value else checks for * filtered value. * @return string - hex value for the border hover color */ -function uabb_theme_border_hover_color( $default ) { +function uabb_theme_border_hover_color( $default_btn_border_hover_color ) { $color = ''; - if ( '' === $default ) { + if ( '' === $default_btn_border_hover_color ) { - $color = apply_filters( 'uabb_global_border_hover_color', $default ); + $color = apply_filters( 'uabb_global_border_hover_color', $default_btn_border_hover_color ); if ( '' === $color ) { - $color = apply_filters( 'uabb_theme_border_hover_color', $default ); + $color = apply_filters( 'uabb_theme_border_hover_color', $default_btn_border_hover_color ); } } else { - $color = $default; + $color = $default_btn_border_hover_color; } return $color; @@ -806,23 +806,23 @@ function uabb_parse_color_to_hex( $code = '' ) { * Provide option to parse a Border param. * * @since 1.3.1 - * @param mixed $default Checks if user has set the Border, if yes, returns users value else checks for + * @param mixed $default_btn_border Checks if user has set the Border, if yes, returns users value else checks for * filtered value. * @return array - Border value for the Button */ -function uabb_theme_border( $default ) { +function uabb_theme_border( $default_btn_border ) { $border_width = uabb_theme_button_border_width( '' ); $border_color = uabb_theme_border_color( '' ); $border_radius = uabb_theme_button_border_radius( '' ); $border = array(); - if ( is_array( $default ) && ( ! empty( $default['style'] ) || ! empty( $default['color'] ) || ! empty( $default['width']['top'] ) || ! empty( $default['width']['bottom'] ) || ! empty( $default['width']['left'] ) || ! empty( $default['width']['right'] ) || ! empty( $default['radius']['top_left'] ) || ! empty( $default['radius']['top_right'] ) || ! empty( $default['radius']['bottom_left'] ) || ! empty( $default['radius']['bottom_right'] ) ) ) { + if ( is_array( $default_btn_border ) && ( ! empty( $default_btn_border['style'] ) || ! empty( $default_btn_border['color'] ) || ! empty( $default_btn_border['width']['top'] ) || ! empty( $default_btn_border['width']['bottom'] ) || ! empty( $default_btn_border['width']['left'] ) || ! empty( $default_btn_border['width']['right'] ) || ! empty( $default_btn_border['radius']['top_left'] ) || ! empty( $default_btn_border['radius']['top_right'] ) || ! empty( $default_btn_border['radius']['bottom_left'] ) || ! empty( $default_btn_border['radius']['bottom_right'] ) ) ) { - $border = $default; - } elseif ( is_object( $default ) && ( ! empty( $default->style ) || ! empty( $default->color ) || ! empty( $default->width->top ) || ! empty( $default->width->bottom ) || ! empty( $default->width->left ) || ! empty( $default->width->right ) || ! empty( $default->radius->top_left ) || ! empty( $default->radius->top_right ) || ! empty( $default->radius->bottom_left ) || ! empty( $default->radius->bottom_right ) ) ) { + $border = $default_btn_border; + } elseif ( is_object( $default_btn_border ) && ( ! empty( $default_btn_border->style ) || ! empty( $default_btn_border->color ) || ! empty( $default_btn_border->width->top ) || ! empty( $default_btn_border->width->bottom ) || ! empty( $default_btn_border->width->left ) || ! empty( $default_btn_border->width->right ) || ! empty( $default_btn_border->radius->top_left ) || ! empty( $default_btn_border->radius->top_right ) || ! empty( $default_btn_border->radius->bottom_left ) || ! empty( $default_btn_border->radius->bottom_right ) ) ) { - $border = (array) $default; // Cast objects to arrays when using them as $default. + $border = (array) $default_btn_border; // Cast objects to arrays when using them as $default. } else { @@ -856,11 +856,11 @@ function uabb_theme_border( $default ) { * Provide option to override the element defaults from theme options. * * @since 1.3.1 - * @param var $default Checks if user has set the radius, if yes, returns users value else checks + * @param var $default_btn_typography Checks if user has set the radius, if yes, returns users value else checks * for filtered value. * @return array - typography value */ -function uabb_theme_button_typography( $default ) { +function uabb_theme_button_typography( $default_btn_typography ) { $typography = array(); $font_family = array( @@ -877,13 +877,13 @@ function uabb_theme_button_typography( $default ) { $typography['desktop_font_family'] = array(); $typography['desktop_line_transform'] = array(); - if ( is_array( $default ) && ( ( array_key_exists( 'font_family', $default ) && 'Default' !== $default['font_family'] ) || ( array_key_exists( 'default', $default ) && 'default' !== $default['font_weight'] ) || ! empty( $default['font_size']['length'] ) || ! empty( $default['line_height']['length'] ) || ! empty( $default['text_transform'] ) ) ) { + if ( is_array( $default_btn_typography ) && ( ( array_key_exists( 'font_family', $default_btn_typography ) && 'Default' !== $default_btn_typography['font_family'] ) || ( array_key_exists( 'default', $default_btn_typography ) && 'default' !== $default_btn_typography['font_weight'] ) || ! empty( $default_btn_typography['font_size']['length'] ) || ! empty( $default_btn_typography['line_height']['length'] ) || ! empty( $default_btn_typography['text_transform'] ) ) ) { - $typography['desktop'] = $default; + $typography['desktop'] = $default_btn_typography; - } elseif ( '' !== $default && is_object( $default ) && ( property_exists( $default, 'font_family' ) && ( 'Default' !== $default->font_family ) || ( property_exists( $default, 'font_weight' ) && 'default' !== $default->font_weight ) || ! empty( $default->font_size->length ) || ! empty( $default->line_height->length ) || ! empty( $default->text_transform ) ) ) { + } elseif ( '' !== $default_btn_typography && is_object( $default_btn_typography ) && ( property_exists( $default_btn_typography, 'font_family' ) && ( 'Default' !== $default_btn_typography->font_family ) || ( property_exists( $default_btn_typography, 'font_weight' ) && 'default' !== $default_btn_typography->font_weight ) || ! empty( $default_btn_typography->font_size->length ) || ! empty( $default_btn_typography->line_height->length ) || ! empty( $default_btn_typography->text_transform ) ) ) { - $typography['desktop'] = $default; + $typography['desktop'] = $default_btn_typography; } else { diff --git a/phpcs.xml.dist b/phpcs.xml.dist index 7de16f1e..ee9f7171 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -17,6 +17,12 @@ + + + *.css.php + *.js.php + + From 824fc6d4915b91ba46fa29c14d1a3d5701168d59 Mon Sep 17 00:00:00 2001 From: Akshay Urankar Date: Thu, 26 Sep 2024 09:59:19 +0530 Subject: [PATCH 17/29] resolved phpcs errors --- composer.lock | 243 +++++++++++----------- lib/astra-notices/class-astra-notices.php | 2 +- lib/astra-notices/composer.json | 71 ++++--- 3 files changed, 157 insertions(+), 159 deletions(-) diff --git a/composer.lock b/composer.lock index 91f15026..23ceacd2 100644 --- a/composer.lock +++ b/composer.lock @@ -202,16 +202,16 @@ }, { "name": "composer/composer", - "version": "2.7.8", + "version": "2.7.9", "source": { "type": "git", "url": "https://github.com/composer/composer.git", - "reference": "a2edd4e4414c17008ab585e0c62574fdb644ebfc" + "reference": "e30ccdd665828ae66eb1be78f056e39e1d5f55ab" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/composer/zipball/a2edd4e4414c17008ab585e0c62574fdb644ebfc", - "reference": "a2edd4e4414c17008ab585e0c62574fdb644ebfc", + "url": "https://api.github.com/repos/composer/composer/zipball/e30ccdd665828ae66eb1be78f056e39e1d5f55ab", + "reference": "e30ccdd665828ae66eb1be78f056e39e1d5f55ab", "shasum": "" }, "require": { @@ -296,7 +296,7 @@ "irc": "ircs://irc.libera.chat:6697/composer", "issues": "https://github.com/composer/composer/issues", "security": "https://github.com/composer/composer/security/policy", - "source": "https://github.com/composer/composer/tree/2.7.8" + "source": "https://github.com/composer/composer/tree/2.7.9" }, "funding": [ { @@ -312,7 +312,7 @@ "type": "tidelift" } ], - "time": "2024-08-22T13:28:36+00:00" + "time": "2024-09-04T12:43:28+00:00" }, { "name": "composer/installers", @@ -610,24 +610,24 @@ }, { "name": "composer/semver", - "version": "3.4.2", + "version": "3.4.3", "source": { "type": "git", "url": "https://github.com/composer/semver.git", - "reference": "c51258e759afdb17f1fd1fe83bc12baaef6309d6" + "reference": "4313d26ada5e0c4edfbd1dc481a92ff7bff91f12" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/semver/zipball/c51258e759afdb17f1fd1fe83bc12baaef6309d6", - "reference": "c51258e759afdb17f1fd1fe83bc12baaef6309d6", + "url": "https://api.github.com/repos/composer/semver/zipball/4313d26ada5e0c4edfbd1dc481a92ff7bff91f12", + "reference": "4313d26ada5e0c4edfbd1dc481a92ff7bff91f12", "shasum": "" }, "require": { "php": "^5.3.2 || ^7.0 || ^8.0" }, "require-dev": { - "phpstan/phpstan": "^1.4", - "symfony/phpunit-bridge": "^4.2 || ^5" + "phpstan/phpstan": "^1.11", + "symfony/phpunit-bridge": "^3 || ^7" }, "type": "library", "extra": { @@ -671,7 +671,7 @@ "support": { "irc": "ircs://irc.libera.chat:6697/composer", "issues": "https://github.com/composer/semver/issues", - "source": "https://github.com/composer/semver/tree/3.4.2" + "source": "https://github.com/composer/semver/tree/3.4.3" }, "funding": [ { @@ -687,7 +687,7 @@ "type": "tidelift" } ], - "time": "2024-07-12T11:35:52+00:00" + "time": "2024-09-19T14:15:21+00:00" }, { "name": "composer/spdx-licenses", @@ -1312,16 +1312,16 @@ }, { "name": "psr/log", - "version": "3.0.1", + "version": "3.0.2", "source": { "type": "git", "url": "https://github.com/php-fig/log.git", - "reference": "79dff0b268932c640297f5208d6298f71855c03e" + "reference": "f16e1d5863e37f8d8c2a01719f5b34baa2b714d3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/log/zipball/79dff0b268932c640297f5208d6298f71855c03e", - "reference": "79dff0b268932c640297f5208d6298f71855c03e", + "url": "https://api.github.com/repos/php-fig/log/zipball/f16e1d5863e37f8d8c2a01719f5b34baa2b714d3", + "reference": "f16e1d5863e37f8d8c2a01719f5b34baa2b714d3", "shasum": "" }, "require": { @@ -1356,9 +1356,9 @@ "psr-3" ], "support": { - "source": "https://github.com/php-fig/log/tree/3.0.1" + "source": "https://github.com/php-fig/log/tree/3.0.2" }, - "time": "2024-08-21T13:31:24+00:00" + "time": "2024-09-11T13:17:53+00:00" }, { "name": "react/promise", @@ -1608,16 +1608,16 @@ }, { "name": "symfony/console", - "version": "v6.4.11", + "version": "v6.4.12", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "42686880adaacdad1835ee8fc2a9ec5b7bd63998" + "reference": "72d080eb9edf80e36c19be61f72c98ed8273b765" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/42686880adaacdad1835ee8fc2a9ec5b7bd63998", - "reference": "42686880adaacdad1835ee8fc2a9ec5b7bd63998", + "url": "https://api.github.com/repos/symfony/console/zipball/72d080eb9edf80e36c19be61f72c98ed8273b765", + "reference": "72d080eb9edf80e36c19be61f72c98ed8273b765", "shasum": "" }, "require": { @@ -1682,7 +1682,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v6.4.11" + "source": "https://github.com/symfony/console/tree/v6.4.12" }, "funding": [ { @@ -1698,7 +1698,7 @@ "type": "tidelift" } ], - "time": "2024-08-15T22:48:29+00:00" + "time": "2024-09-20T08:15:52+00:00" }, { "name": "symfony/deprecation-contracts", @@ -1769,16 +1769,16 @@ }, { "name": "symfony/filesystem", - "version": "v6.4.9", + "version": "v6.4.12", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "b51ef8059159330b74a4d52f68e671033c0fe463" + "reference": "f810e3cbdf7fdc35983968523d09f349fa9ada12" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/b51ef8059159330b74a4d52f68e671033c0fe463", - "reference": "b51ef8059159330b74a4d52f68e671033c0fe463", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/f810e3cbdf7fdc35983968523d09f349fa9ada12", + "reference": "f810e3cbdf7fdc35983968523d09f349fa9ada12", "shasum": "" }, "require": { @@ -1815,7 +1815,7 @@ "description": "Provides basic utilities for the filesystem", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/filesystem/tree/v6.4.9" + "source": "https://github.com/symfony/filesystem/tree/v6.4.12" }, "funding": [ { @@ -1831,7 +1831,7 @@ "type": "tidelift" } ], - "time": "2024-06-28T09:49:33+00:00" + "time": "2024-09-16T16:01:33+00:00" }, { "name": "symfony/finder", @@ -1899,20 +1899,20 @@ }, { "name": "symfony/polyfill-ctype", - "version": "v1.30.0", + "version": "v1.31.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-ctype.git", - "reference": "0424dff1c58f028c451efff2045f5d92410bd540" + "reference": "a3cc8b044a6ea513310cbd48ef7333b384945638" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/0424dff1c58f028c451efff2045f5d92410bd540", - "reference": "0424dff1c58f028c451efff2045f5d92410bd540", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/a3cc8b044a6ea513310cbd48ef7333b384945638", + "reference": "a3cc8b044a6ea513310cbd48ef7333b384945638", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=7.2" }, "provide": { "ext-ctype": "*" @@ -1958,7 +1958,7 @@ "portable" ], "support": { - "source": "https://github.com/symfony/polyfill-ctype/tree/v1.30.0" + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.31.0" }, "funding": [ { @@ -1974,24 +1974,24 @@ "type": "tidelift" } ], - "time": "2024-05-31T15:07:36+00:00" + "time": "2024-09-09T11:45:10+00:00" }, { "name": "symfony/polyfill-intl-grapheme", - "version": "v1.30.0", + "version": "v1.31.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-grapheme.git", - "reference": "64647a7c30b2283f5d49b874d84a18fc22054b7a" + "reference": "b9123926e3b7bc2f98c02ad54f6a4b02b91a8abe" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/64647a7c30b2283f5d49b874d84a18fc22054b7a", - "reference": "64647a7c30b2283f5d49b874d84a18fc22054b7a", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/b9123926e3b7bc2f98c02ad54f6a4b02b91a8abe", + "reference": "b9123926e3b7bc2f98c02ad54f6a4b02b91a8abe", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=7.2" }, "suggest": { "ext-intl": "For best performance" @@ -2036,7 +2036,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.30.0" + "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.31.0" }, "funding": [ { @@ -2052,24 +2052,24 @@ "type": "tidelift" } ], - "time": "2024-05-31T15:07:36+00:00" + "time": "2024-09-09T11:45:10+00:00" }, { "name": "symfony/polyfill-intl-normalizer", - "version": "v1.30.0", + "version": "v1.31.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-normalizer.git", - "reference": "a95281b0be0d9ab48050ebd988b967875cdb9fdb" + "reference": "3833d7255cc303546435cb650316bff708a1c75c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/a95281b0be0d9ab48050ebd988b967875cdb9fdb", - "reference": "a95281b0be0d9ab48050ebd988b967875cdb9fdb", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/3833d7255cc303546435cb650316bff708a1c75c", + "reference": "3833d7255cc303546435cb650316bff708a1c75c", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=7.2" }, "suggest": { "ext-intl": "For best performance" @@ -2117,7 +2117,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.30.0" + "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.31.0" }, "funding": [ { @@ -2133,24 +2133,24 @@ "type": "tidelift" } ], - "time": "2024-05-31T15:07:36+00:00" + "time": "2024-09-09T11:45:10+00:00" }, { "name": "symfony/polyfill-mbstring", - "version": "v1.30.0", + "version": "v1.31.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "fd22ab50000ef01661e2a31d850ebaa297f8e03c" + "reference": "85181ba99b2345b0ef10ce42ecac37612d9fd341" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/fd22ab50000ef01661e2a31d850ebaa297f8e03c", - "reference": "fd22ab50000ef01661e2a31d850ebaa297f8e03c", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/85181ba99b2345b0ef10ce42ecac37612d9fd341", + "reference": "85181ba99b2345b0ef10ce42ecac37612d9fd341", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=7.2" }, "provide": { "ext-mbstring": "*" @@ -2197,7 +2197,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.30.0" + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.31.0" }, "funding": [ { @@ -2213,24 +2213,24 @@ "type": "tidelift" } ], - "time": "2024-06-19T12:30:46+00:00" + "time": "2024-09-09T11:45:10+00:00" }, { "name": "symfony/polyfill-php73", - "version": "v1.30.0", + "version": "v1.31.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php73.git", - "reference": "ec444d3f3f6505bb28d11afa41e75faadebc10a1" + "reference": "0f68c03565dcaaf25a890667542e8bd75fe7e5bb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/ec444d3f3f6505bb28d11afa41e75faadebc10a1", - "reference": "ec444d3f3f6505bb28d11afa41e75faadebc10a1", + "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/0f68c03565dcaaf25a890667542e8bd75fe7e5bb", + "reference": "0f68c03565dcaaf25a890667542e8bd75fe7e5bb", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=7.2" }, "type": "library", "extra": { @@ -2273,7 +2273,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php73/tree/v1.30.0" + "source": "https://github.com/symfony/polyfill-php73/tree/v1.31.0" }, "funding": [ { @@ -2289,24 +2289,24 @@ "type": "tidelift" } ], - "time": "2024-05-31T15:07:36+00:00" + "time": "2024-09-09T11:45:10+00:00" }, { "name": "symfony/polyfill-php80", - "version": "v1.30.0", + "version": "v1.31.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "77fa7995ac1b21ab60769b7323d600a991a90433" + "reference": "60328e362d4c2c802a54fcbf04f9d3fb892b4cf8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/77fa7995ac1b21ab60769b7323d600a991a90433", - "reference": "77fa7995ac1b21ab60769b7323d600a991a90433", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/60328e362d4c2c802a54fcbf04f9d3fb892b4cf8", + "reference": "60328e362d4c2c802a54fcbf04f9d3fb892b4cf8", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=7.2" }, "type": "library", "extra": { @@ -2353,7 +2353,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php80/tree/v1.30.0" + "source": "https://github.com/symfony/polyfill-php80/tree/v1.31.0" }, "funding": [ { @@ -2369,24 +2369,24 @@ "type": "tidelift" } ], - "time": "2024-05-31T15:07:36+00:00" + "time": "2024-09-09T11:45:10+00:00" }, { "name": "symfony/polyfill-php81", - "version": "v1.30.0", + "version": "v1.31.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php81.git", - "reference": "3fb075789fb91f9ad9af537c4012d523085bd5af" + "reference": "4a4cfc2d253c21a5ad0e53071df248ed48c6ce5c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/3fb075789fb91f9ad9af537c4012d523085bd5af", - "reference": "3fb075789fb91f9ad9af537c4012d523085bd5af", + "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/4a4cfc2d253c21a5ad0e53071df248ed48c6ce5c", + "reference": "4a4cfc2d253c21a5ad0e53071df248ed48c6ce5c", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=7.2" }, "type": "library", "extra": { @@ -2429,7 +2429,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php81/tree/v1.30.0" + "source": "https://github.com/symfony/polyfill-php81/tree/v1.31.0" }, "funding": [ { @@ -2445,24 +2445,24 @@ "type": "tidelift" } ], - "time": "2024-06-19T12:30:46+00:00" + "time": "2024-09-09T11:45:10+00:00" }, { "name": "symfony/process", - "version": "v7.1.3", + "version": "v6.4.12", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "7f2f542c668ad6c313dc4a5e9c3321f733197eca" + "reference": "3f94e5f13ff58df371a7ead461b6e8068900fbb3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/7f2f542c668ad6c313dc4a5e9c3321f733197eca", - "reference": "7f2f542c668ad6c313dc4a5e9c3321f733197eca", + "url": "https://api.github.com/repos/symfony/process/zipball/3f94e5f13ff58df371a7ead461b6e8068900fbb3", + "reference": "3f94e5f13ff58df371a7ead461b6e8068900fbb3", "shasum": "" }, "require": { - "php": ">=8.2" + "php": ">=8.1" }, "type": "library", "autoload": { @@ -2490,7 +2490,7 @@ "description": "Executes commands in sub-processes", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/process/tree/v7.1.3" + "source": "https://github.com/symfony/process/tree/v6.4.12" }, "funding": [ { @@ -2506,7 +2506,7 @@ "type": "tidelift" } ], - "time": "2024-07-26T12:44:47+00:00" + "time": "2024-09-17T12:47:12+00:00" }, { "name": "symfony/service-contracts", @@ -2593,20 +2593,20 @@ }, { "name": "symfony/string", - "version": "v7.1.4", + "version": "v6.4.12", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "6cd670a6d968eaeb1c77c2e76091c45c56bc367b" + "reference": "f8a1ccebd0997e16112dfecfd74220b78e5b284b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/6cd670a6d968eaeb1c77c2e76091c45c56bc367b", - "reference": "6cd670a6d968eaeb1c77c2e76091c45c56bc367b", + "url": "https://api.github.com/repos/symfony/string/zipball/f8a1ccebd0997e16112dfecfd74220b78e5b284b", + "reference": "f8a1ccebd0997e16112dfecfd74220b78e5b284b", "shasum": "" }, "require": { - "php": ">=8.2", + "php": ">=8.1", "symfony/polyfill-ctype": "~1.8", "symfony/polyfill-intl-grapheme": "~1.0", "symfony/polyfill-intl-normalizer": "~1.0", @@ -2616,12 +2616,11 @@ "symfony/translation-contracts": "<2.5" }, "require-dev": { - "symfony/emoji": "^7.1", - "symfony/error-handler": "^6.4|^7.0", - "symfony/http-client": "^6.4|^7.0", - "symfony/intl": "^6.4|^7.0", + "symfony/error-handler": "^5.4|^6.0|^7.0", + "symfony/http-client": "^5.4|^6.0|^7.0", + "symfony/intl": "^6.2|^7.0", "symfony/translation-contracts": "^2.5|^3.0", - "symfony/var-exporter": "^6.4|^7.0" + "symfony/var-exporter": "^5.4|^6.0|^7.0" }, "type": "library", "autoload": { @@ -2660,7 +2659,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v7.1.4" + "source": "https://github.com/symfony/string/tree/v6.4.12" }, "funding": [ { @@ -2676,7 +2675,7 @@ "type": "tidelift" } ], - "time": "2024-08-12T09:59:40+00:00" + "time": "2024-09-20T08:15:52+00:00" }, { "name": "wp-cli/cache-command", @@ -4774,16 +4773,16 @@ }, { "name": "wp-cli/wp-config-transformer", - "version": "v1.3.6", + "version": "v1.4.0", "source": { "type": "git", "url": "https://github.com/wp-cli/wp-config-transformer.git", - "reference": "88f516f44dce1660fc4b780da513e3ca12d7d24f" + "reference": "9b470f6f1a75707b22e9cfb85bb74120256243b4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/wp-cli/wp-config-transformer/zipball/88f516f44dce1660fc4b780da513e3ca12d7d24f", - "reference": "88f516f44dce1660fc4b780da513e3ca12d7d24f", + "url": "https://api.github.com/repos/wp-cli/wp-config-transformer/zipball/9b470f6f1a75707b22e9cfb85bb74120256243b4", + "reference": "9b470f6f1a75707b22e9cfb85bb74120256243b4", "shasum": "" }, "require": { @@ -4812,9 +4811,9 @@ "homepage": "https://github.com/wp-cli/wp-config-transformer", "support": { "issues": "https://github.com/wp-cli/wp-config-transformer/issues", - "source": "https://github.com/wp-cli/wp-config-transformer/tree/v1.3.6" + "source": "https://github.com/wp-cli/wp-config-transformer/tree/v1.4.0" }, - "time": "2024-05-23T06:32:14+00:00" + "time": "2024-09-17T19:05:47+00:00" } ], "packages-dev": [ @@ -4895,16 +4894,16 @@ }, { "name": "nikic/php-parser", - "version": "v4.19.1", + "version": "v4.19.2", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "4e1b88d21c69391150ace211e9eaf05810858d0b" + "reference": "0ed4c8949a32986043e977dbe14776c14d644c45" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/4e1b88d21c69391150ace211e9eaf05810858d0b", - "reference": "4e1b88d21c69391150ace211e9eaf05810858d0b", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/0ed4c8949a32986043e977dbe14776c14d644c45", + "reference": "0ed4c8949a32986043e977dbe14776c14d644c45", "shasum": "" }, "require": { @@ -4945,9 +4944,9 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v4.19.1" + "source": "https://github.com/nikic/PHP-Parser/tree/v4.19.2" }, - "time": "2024-03-17T08:10:35+00:00" + "time": "2024-09-17T19:36:00+00:00" }, { "name": "php-stubs/generator", @@ -5426,16 +5425,16 @@ }, { "name": "phpstan/phpstan", - "version": "1.12.0", + "version": "1.12.4", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "384af967d35b2162f69526c7276acadce534d0e1" + "reference": "ffa517cb918591b93acc9b95c0bebdcd0e4538bd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/384af967d35b2162f69526c7276acadce534d0e1", - "reference": "384af967d35b2162f69526c7276acadce534d0e1", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/ffa517cb918591b93acc9b95c0bebdcd0e4538bd", + "reference": "ffa517cb918591b93acc9b95c0bebdcd0e4538bd", "shasum": "" }, "require": { @@ -5480,20 +5479,20 @@ "type": "github" } ], - "time": "2024-08-27T09:18:05+00:00" + "time": "2024-09-19T07:58:01+00:00" }, { "name": "squizlabs/php_codesniffer", - "version": "3.10.2", + "version": "3.10.3", "source": { "type": "git", "url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git", - "reference": "86e5f5dd9a840c46810ebe5ff1885581c42a3017" + "reference": "62d32998e820bddc40f99f8251958aed187a5c9c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/86e5f5dd9a840c46810ebe5ff1885581c42a3017", - "reference": "86e5f5dd9a840c46810ebe5ff1885581c42a3017", + "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/62d32998e820bddc40f99f8251958aed187a5c9c", + "reference": "62d32998e820bddc40f99f8251958aed187a5c9c", "shasum": "" }, "require": { @@ -5560,7 +5559,7 @@ "type": "open_collective" } ], - "time": "2024-07-21T23:26:44+00:00" + "time": "2024-09-18T10:38:58+00:00" }, { "name": "szepeviktor/phpstan-wordpress", diff --git a/lib/astra-notices/class-astra-notices.php b/lib/astra-notices/class-astra-notices.php index 42599bbd..e1e85b3c 100644 --- a/lib/astra-notices/class-astra-notices.php +++ b/lib/astra-notices/class-astra-notices.php @@ -28,7 +28,7 @@ class Astra_Notices { * @var array Notices. * @since 1.0.0 */ - private static $version = '1.1.8'; + private static $version = '1.1.11'; /** * Notices diff --git a/lib/astra-notices/composer.json b/lib/astra-notices/composer.json index 0f129b4d..3496441a 100644 --- a/lib/astra-notices/composer.json +++ b/lib/astra-notices/composer.json @@ -1,39 +1,38 @@ { - "name": "brainstormforce/astra-notices", - "type": "wordpress-plugin", - "description": "Easily create admin notices", - "version": "1.1.8", - "license": "GPL v3", - "authors": [ - { - "name": "Brainstorm Force", - "email": "hello@bsf.io" + "name": "brainstormforce/astra-notices", + "type": "wordpress-plugin", + "description": "Easily create admin notices", + "license": "GPL-3.0-or-later", + "authors": [ + { + "name": "Brainstorm Force", + "email": "hello@bsf.io" + } + ], + "require": { + "composer/installers": "^2.0" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "^0.7.1", + "phpcompatibility/phpcompatibility-wp": "^2.1", + "phpunit/phpunit": "^7", + "wp-cli/dist-archive-command": "^2.0", + "wp-coding-standards/wpcs": "^2.3", + "wp-phpunit/wp-phpunit": "^5", + "roots/wordpress": "^5.9", + "yoast/phpunit-polyfills": "^1.0" + }, + "config": { + "allow-plugins": { + "composer/installers": true, + "dealerdirect/phpcodesniffer-composer-installer": true, + "roots/wordpress-core-installer": true + } + }, + "minimum-stability": "stable", + "scripts": { + "format": "vendor/bin/phpcbf", + "lint": "vendor/bin/phpcs", + "test": "vendor/bin/phpunit" } - ], - "require": { - "composer/installers": "^2.0" - }, - "require-dev": { - "dealerdirect/phpcodesniffer-composer-installer": "^0.7.1", - "phpcompatibility/phpcompatibility-wp": "^2.1", - "phpunit/phpunit": "^7", - "wp-cli/dist-archive-command": "^2.0", - "wp-coding-standards/wpcs": "^2.3", - "wp-phpunit/wp-phpunit": "^5", - "roots/wordpress": "^5.9", - "yoast/phpunit-polyfills": "^1.0" - }, - "config": { - "allow-plugins": { - "composer/installers": true, - "dealerdirect/phpcodesniffer-composer-installer": true, - "roots/wordpress-core-installer": true - } - }, - "minimum-stability": "stable", - "scripts": { - "format": "vendor/bin/phpcbf", - "lint": "vendor/bin/phpcs", - "test": "vendor/bin/phpunit" - } } From eebdd82dae91892688f9b87bced3c2728036e9d6 Mon Sep 17 00:00:00 2001 From: Abhishek Date: Thu, 26 Sep 2024 12:32:26 +0530 Subject: [PATCH 18/29] Resolved PHPCBF changes --- admin/bsf-analytics/class-bsf-analytics.php | 4 +- .../class-uabb-admin-settings-multisite.php | 8 ++-- classes/class-uabb-admin-settings.php | 44 +++++++++---------- classes/class-uabb-backward.php | 1 - classes/class-uabb-cloud-templates.php | 5 +-- classes/class-uabb-compatibility.php | 14 +++--- classes/class-uabb-global-settings.php | 4 +- classes/class-uabb-helper.php | 17 ++++--- classes/class-uabb-iconfonts.php | 1 - classes/class-uabb-init.php | 3 -- classes/class-uabb-update.php | 3 +- classes/class-uabb-wpml.php | 7 ++- classes/class-ui-panel.php | 5 +-- classes/helper.php | 13 +++--- classes/uabb-bbtheme-global-integration.php | 1 - classes/uabb-global-functions.php | 1 - classes/uabb-global-integration.php | 3 -- classes/uabb-global-settings.php | 8 ++-- classes/wpml/class-wpml-uabb-infolist.php | 1 - index.php | 1 - lib/astra-notices/class-astra-notices.php | 4 +- modules/advanced-icon/advanced-icon.php | 2 - .../advanced-icon/includes/frontend.css.php | 2 +- modules/advanced-icon/includes/frontend.php | 2 +- modules/flip-box/flip-box.php | 3 +- modules/image-icon/includes/frontend.css.php | 2 +- modules/info-list/includes/frontend.css.php | 2 +- modules/info-list/info-list.php | 1 - modules/info-table/includes/frontend.css.php | 4 +- modules/info-table/info-table.php | 1 - modules/ribbon/ribbon.php | 2 - modules/slide-box/includes/frontend.css.php | 2 +- ...ide-box-bb-less-than-2-2-compatibility.php | 1 - modules/slide-box/slide-box.php | 8 ++-- modules/spacer-gap/spacer-gap.php | 1 - .../uabb-heading/includes/frontend.css.php | 2 +- modules/uabb-separator/uabb-separator.php | 1 - modules/uabb-star-rating/uabb-star-rating.php | 1 - 38 files changed, 75 insertions(+), 110 deletions(-) diff --git a/admin/bsf-analytics/class-bsf-analytics.php b/admin/bsf-analytics/class-bsf-analytics.php index 3d541e26..e2d3eded 100644 --- a/admin/bsf-analytics/class-bsf-analytics.php +++ b/admin/bsf-analytics/class-bsf-analytics.php @@ -34,7 +34,7 @@ public function __construct() { define( 'BSF_ANALYTICS_FILE', __FILE__ ); define( 'BSF_ANALYTICS_VERSION', '1.0.1' ); - define( 'BSF_ANALYTICS_PATH', dirname( __FILE__ ) ); + define( 'BSF_ANALYTICS_PATH', __DIR__ ); define( 'BSF_ANALYTICS_URI', $this->bsf_analytics_url() ); add_action( 'admin_init', array( $this, 'handle_optin_optout' ) ); @@ -399,7 +399,7 @@ public function render_settings_field_html() { */ private function get_product_name() { - $base = wp_normalize_path( dirname( __FILE__ ) ); + $base = wp_normalize_path( __DIR__ ); $theme_dir = wp_normalize_path( get_template_directory() ); if ( false !== strpos( $base, $theme_dir ) ) { diff --git a/classes/class-uabb-admin-settings-multisite.php b/classes/class-uabb-admin-settings-multisite.php index d1f5b4e0..606d105b 100644 --- a/classes/class-uabb-admin-settings-multisite.php +++ b/classes/class-uabb-admin-settings-multisite.php @@ -19,7 +19,7 @@ final class UABBBuilderMultisiteSettings { * @since 1.0 * @return void */ - static public function init() { + public static function init() { add_action( 'admin_init', __CLASS__ . '::admin_init' ); add_action( 'admin_init', __CLASS__ . '::uabb_lite_redirect_on_activation' ); add_action( 'network_admin_menu', __CLASS__ . '::menu' ); @@ -31,7 +31,7 @@ static public function init() { * @since 1.0 * @param string $url gets the activate redirect URL. */ - static public function uabb_lite_redirect_on_activation( $url ) { + public static function uabb_lite_redirect_on_activation( $url ) { if ( true === get_option( 'uabb_lite_redirect' ) ) { update_option( 'uabb_lite_redirect', false ); if ( ! is_multisite() ) : @@ -47,7 +47,7 @@ static public function uabb_lite_redirect_on_activation( $url ) { * @since 1.0 * @return void */ - static public function admin_init() { + public static function admin_init() { if ( is_network_admin() && isset( $_REQUEST['page'] ) && 'uabb-builder-multisite-settings' === $_REQUEST['page'] ) { add_action( 'admin_enqueue_scripts', 'UABBBuilderAdminSettings::styles_scripts' ); UABBBuilderAdminSettings::save(); @@ -60,7 +60,7 @@ static public function admin_init() { * @since 1.0 * @return void */ - static public function menu() { + public static function menu() { $title = UABB_PREFIX; // FLBuilderModel::get_branding();. $cap = 'manage_network_plugins'; $slug = 'uabb-builder-multisite-settings'; diff --git a/classes/class-uabb-admin-settings.php b/classes/class-uabb-admin-settings.php index b206c9ca..cb412fb6 100644 --- a/classes/class-uabb-admin-settings.php +++ b/classes/class-uabb-admin-settings.php @@ -20,7 +20,7 @@ final class UABBBuilderAdminSettings { * @since 1.0 * @var array $errors */ - static public $errors = array(); + public static $errors = array(); /** * Initializes the admin settings. @@ -28,7 +28,7 @@ final class UABBBuilderAdminSettings { * @since 1.0 * @return void */ - static public function init() { + public static function init() { add_action( 'after_setup_theme', __CLASS__ . '::init_hooks' ); } @@ -39,7 +39,7 @@ static public function init() { * @since 1.0 * @return void */ - static public function init_hooks() { + public static function init_hooks() { if ( ! is_admin() ) { return; } @@ -60,10 +60,9 @@ static public function init_hooks() { * * @since 1.3.0 */ - static public function notice_styles_scripts() { + public static function notice_styles_scripts() { // Styles. wp_enqueue_style( 'uabb-notice-settings', BB_ULTIMATE_ADDON_URL . 'assets/css/uabb-admin-notice.css', array() ); - } /** * Filters and Returns a list of allowed tags and attributes for a given context. @@ -117,9 +116,9 @@ public static function register_notices() { __( 'Hello! Thank you for choosing the Ultimate Addon for Beaver Builder to build this website!', 'ultimate-addon-for-beaver-builder' ), __( 'Would you please mind sharing your views and give it a 5 star rating on the WordPress repository?', 'ultimate-addon-for-beaver-builder' ), 'https://wordpress.org/support/plugin/ultimate-addons-for-beaver-builder-lite/reviews/?filter=5', - __( 'Ok, you deserve it', 'ultimate-addon-for-beaver-builder'), + __( 'Ok, you deserve it', 'ultimate-addon-for-beaver-builder' ), MONTH_IN_SECONDS, - __( 'Nope, maybe later', 'ultimate-addon-for-beaver-builder'), + __( 'Nope, maybe later', 'ultimate-addon-for-beaver-builder' ), __( 'I already did', 'ultimate-addon-for-beaver-builder' ) ), 'repeat-notice-after' => MONTH_IN_SECONDS, @@ -135,7 +134,7 @@ public static function register_notices() { * @since 1.0 * @return void */ - static public function menu() { + public static function menu() { if ( current_user_can( 'delete_users' ) ) { $title = UABB_PREFIX; @@ -153,7 +152,7 @@ static public function menu() { * @param hook $hook get the hooks for the styles. * @return void */ - static public function styles_scripts( $hook ) { + public static function styles_scripts( $hook ) { wp_register_style( 'uabb-admin-css', BB_ULTIMATE_ADDON_URL . 'assets/css/uabb-admin.css', array() ); wp_register_script( 'uabb-admin-js', BB_ULTIMATE_ADDON_URL . 'assets/js/uabb-admin.js', array( 'jquery' ), '', true ); wp_localize_script( @@ -217,7 +216,7 @@ static public function styles_scripts( $hook ) { * @since 1.0 * @return void */ - static public function render() { + public static function render() { include BB_ULTIMATE_ADDON_DIR . 'includes/admin-settings.php'; } @@ -227,7 +226,7 @@ static public function render() { * @since 1.0 * @return void */ - static public function render_page_class() { + public static function render_page_class() { if ( self::multisite_support() ) { echo 'fl-settings-network-admin'; } else { @@ -241,7 +240,7 @@ static public function render_page_class() { * @since 1.0 * @return void */ - static public function render_page_heading() { + public static function render_page_heading() { if ( ! empty( $icon ) ) { echo ''; @@ -256,7 +255,7 @@ static public function render_page_heading() { * @since 1.0 * @return void */ - static public function render_update_message() { + public static function render_update_message() { if ( ! empty( self::$errors ) ) { foreach ( self::$errors as $message ) { echo wp_kses( @@ -288,7 +287,7 @@ static public function render_update_message() { * @since 1.0 * @return void */ - static public function render_nav_items() { + public static function render_nav_items() { $items['uabb-welcome'] = array( 'title' => __( 'Welcome', 'uabb' ), 'show' => ! is_network_admin() || ! FLBuilderAdminSettings::multisite_support(), @@ -346,7 +345,6 @@ static public function render_nav_items() { echo '
  • ' . esc_html( $data['title'] ) . '
  • '; } } - } /** @@ -355,7 +353,7 @@ static public function render_nav_items() { * @since 1.0 * @return void */ - static public function render_forms() { + public static function render_forms() { self::render_form( 'welcome' ); self::render_form( 'general' ); self::render_form( 'modules' ); @@ -374,7 +372,7 @@ static public function render_forms() { * @param string $type The type of form to render. * @return void */ - static public function render_form( $type ) { + public static function render_form( $type ) { if ( self::has_support( $type ) ) { include BB_ULTIMATE_ADDON_DIR . 'includes/admin-settings-' . $type . '.php'; } @@ -387,7 +385,7 @@ static public function render_form( $type ) { * @param string $type The type of form being rendered. * @return void */ - static public function render_form_action( $type = '' ) { + public static function render_form_action( $type = '' ) { if ( is_network_admin() ) { echo esc_url( network_admin_url( '/settings.php?page=uabb-builder-multisite-settings#' . $type ) ); } else { @@ -402,7 +400,7 @@ static public function render_form_action( $type = '' ) { * @param string $type The type of form being rendered. * @return string The URL for the form action. */ - static public function get_form_action( $type = '' ) { + public static function get_form_action( $type = '' ) { if ( is_network_admin() ) { return network_admin_url( '/settings.php?page=uabb-builder-multisite-settings#' . $type ); } else { @@ -417,7 +415,7 @@ static public function get_form_action( $type = '' ) { * @param string $type The type of form to check. * @return bool */ - static public function has_support( $type ) { + public static function has_support( $type ) { return file_exists( BB_ULTIMATE_ADDON_DIR . 'includes/admin-settings-' . $type . '.php' ); } @@ -427,7 +425,7 @@ static public function has_support( $type ) { * @since 1.0 * @return bool */ - static public function multisite_support() { + public static function multisite_support() { return is_multisite() && class_exists( 'FLBuilderMultisiteSettings' ); } @@ -438,7 +436,7 @@ static public function multisite_support() { * @param string $message The error message to add. * @return void */ - static public function add_error( $message ) { + public static function add_error( $message ) { self::$errors[] = $message; } @@ -448,7 +446,7 @@ static public function add_error( $message ) { * @since 1.0 * @return void */ - static public function save() { + public static function save() { // Only admins can save settings. if ( ! current_user_can( 'delete_users' ) ) { return; diff --git a/classes/class-uabb-backward.php b/classes/class-uabb-backward.php index 6ddbb67f..4074fa1d 100644 --- a/classes/class-uabb-backward.php +++ b/classes/class-uabb-backward.php @@ -199,7 +199,6 @@ public function update_data() { /* Update Flag */ update_post_meta( $post_id, '_uabb_lite_converted', 'yes' ); - } /** diff --git a/classes/class-uabb-cloud-templates.php b/classes/class-uabb-cloud-templates.php index c435e44d..344fb2e2 100644 --- a/classes/class-uabb-cloud-templates.php +++ b/classes/class-uabb-cloud-templates.php @@ -243,7 +243,6 @@ static function get_cloud_templates( $type = '' ) { } else { return array(); } - } /** @@ -455,7 +454,6 @@ static function template_html( $type = 'page-templates' ) { // Message for no templates found. UABB_Cloud_Templates::message( 'not-found' ); } - } /** @@ -464,7 +462,7 @@ static function template_html( $type = 'page-templates' ) { * @since 1.0 * @param string $dir_name verifies the dir name with bb-ultimate-addon. */ - static public function create_local_dir( $dir_name = 'bb-ultimate-addon' ) { + public static function create_local_dir( $dir_name = 'bb-ultimate-addon' ) { $wp_info = wp_upload_dir(); @@ -493,7 +491,6 @@ static public function create_local_dir( $dir_name = 'bb-ultimate-addon' ) { return $dir_info; } - } } diff --git a/classes/class-uabb-compatibility.php b/classes/class-uabb-compatibility.php index f1ed614c..33955b78 100644 --- a/classes/class-uabb-compatibility.php +++ b/classes/class-uabb-compatibility.php @@ -29,7 +29,7 @@ class UABB_Lite_Compatibility { * @since 1.3.0 * @var $version_bb_check */ - static public $version_bb_check; + public static $version_bb_check; /** * Holds uabb migration status. @@ -37,7 +37,7 @@ class UABB_Lite_Compatibility { * @since 1.3.0 * @var $uabb_migration */ - static public $uabb_migration; + public static $uabb_migration; /** * Holds BB new page status. @@ -45,12 +45,12 @@ class UABB_Lite_Compatibility { * @since 1.3.0 * @var $stable_version_new_page */ - static public $stable_version_new_page; + public static $stable_version_new_page; /** * Initiator */ - static public function get_instance() { + public static function get_instance() { if ( ! isset( self::$instance ) ) { self::$instance = new self(); } @@ -63,7 +63,7 @@ static public function get_instance() { * @since 1.3.0 * @return bool self::$version_bb_check */ - static public function check_bb_version() { + public static function check_bb_version() { if ( null === self::$version_bb_check ) { @@ -85,7 +85,7 @@ static public function check_bb_version() { * @since 1.3.0 * @return string self::$uabb_migration */ - static public function check_old_page_migration() { + public static function check_old_page_migration() { if ( null === self::$uabb_migration ) { @@ -103,7 +103,7 @@ static public function check_old_page_migration() { * @since 1.3.0 * @return bool self::$stable_version_new_page */ - static public function check_stable_version_new_page() { + public static function check_stable_version_new_page() { if ( null === self::$stable_version_new_page ) { diff --git a/classes/class-uabb-global-settings.php b/classes/class-uabb-global-settings.php index 16070073..38ed94e9 100644 --- a/classes/class-uabb-global-settings.php +++ b/classes/class-uabb-global-settings.php @@ -17,7 +17,7 @@ final class UABBGlobalSetting { * * @since 1.0 */ - static public function init() { + public static function init() { add_filter( 'fl_builder_ui_js_strings', __CLASS__ . '::add_js_string' ); } @@ -27,7 +27,7 @@ static public function init() { * @param String $js_strings slug. * @since 1.0 */ - static public function add_js_string( $js_strings ) { + public static function add_js_string( $js_strings ) { if ( 'UABB' === UABB_PREFIX ) { $js_strings['uabbGlobalSettings'] = esc_attr__( 'UABB - Global Settings', 'uabb' ); diff --git a/classes/class-uabb-helper.php b/classes/class-uabb-helper.php index c76fa8be..1f9d3ee7 100644 --- a/classes/class-uabb-helper.php +++ b/classes/class-uabb-helper.php @@ -19,7 +19,7 @@ class BB_Ultimate_Addon_Helper { * @since 1.0 * @var $basic_modules Category Strings */ - static public $basic_modules = ''; + public static $basic_modules = ''; /** * Constructor function that initializes required actions and hooks @@ -62,7 +62,7 @@ function set_constants() { * @since 1.0 * @param array $cat gets the BB's UI ControlPanel Category. */ - static public function module_cat( $cat ) { + public static function module_cat( $cat ) { return class_exists( 'FLBuilderUIContentPanel' ) ? $cat : UABB_CAT; } @@ -71,7 +71,7 @@ static public function module_cat( $cat ) { * * @since 1.0 */ - static public function get_builder_uabb() { + public static function get_builder_uabb() { $uabb = UABB_Init::$uabb_options['fl_builder_uabb']; $defaults = array( @@ -107,7 +107,7 @@ static public function get_builder_uabb() { * @since 1.0 * @param string $request_key gets the request key's value. */ - static public function get_builder_uabb_branding( $request_key = '' ) { + public static function get_builder_uabb_branding( $request_key = '' ) { $uabb = UABB_Init::$uabb_options['fl_builder_uabb_branding']; $defaults = array( @@ -148,7 +148,7 @@ static public function get_builder_uabb_branding( $request_key = '' ) { * * @since 1.0 */ - static public function get_all_modules() { + public static function get_all_modules() { $modules_array = array( 'spacer-gap' => 'Spacer / Gap', 'ribbon' => 'Ribbon', @@ -173,7 +173,7 @@ static public function get_all_modules() { * * @since 1.0 */ - static public function get_premium_modules() { + public static function get_premium_modules() { $premium_modules_array = array( 'advanced-accordion' => array( @@ -570,7 +570,7 @@ static public function get_premium_modules() { * * @since 1.0 */ - static public function get_builder_uabb_modules() { + public static function get_builder_uabb_modules() { $uabb = UABB_Init::$uabb_options['fl_builder_uabb_modules']; $all_modules = self::get_all_modules(); $is_all_modules = true; @@ -669,7 +669,7 @@ public static function is_templates_exist( $templates_type = 'all' ) { * @param string $echo gets an string for echo. * @return string */ - static public function get_link_rel( $target, $is_nofollow = 0, $echo = 0 ) { + public static function get_link_rel( $target, $is_nofollow = 0, $echo = 0 ) { $attr = ''; if ( '_blank' === $target ) { @@ -690,7 +690,6 @@ static public function get_link_rel( $target, $is_nofollow = 0, $echo = 0 ) { } echo 'rel="' . esc_attr( $attr ) . '"'; } - } new BB_Ultimate_Addon_Helper(); } diff --git a/classes/class-uabb-iconfonts.php b/classes/class-uabb-iconfonts.php index 84bbfefa..25936d82 100644 --- a/classes/class-uabb-iconfonts.php +++ b/classes/class-uabb-iconfonts.php @@ -110,7 +110,6 @@ function recurse_copy( $src, $dst ) { } closedir( $dir ); } - } $UABB_IconFonts = new UABB_IconFonts(); // @codingStandardsIgnoreLine. diff --git a/classes/class-uabb-init.php b/classes/class-uabb-init.php index 1ed21bb2..dffcbc8d 100644 --- a/classes/class-uabb-init.php +++ b/classes/class-uabb-init.php @@ -53,7 +53,6 @@ public function __construct() { add_action( 'admin_notices', array( $this, 'admin_notices' ) ); add_action( 'network_admin_notices', array( $this, 'admin_notices' ) ); } - } /** * Function that renders links @@ -104,7 +103,6 @@ function includes() { // Load the appropriate text-domain. $this->load_plugin_textdomain(); - } /** @@ -223,7 +221,6 @@ function load_scripts() { if ( is_rtl() ) { wp_enqueue_style( 'uabb-rtl-css', BB_ULTIMATE_ADDON_URL . 'assets/css/uabb-rtl.css', array() ); } - } /** diff --git a/classes/class-uabb-update.php b/classes/class-uabb-update.php index 6f9378c1..34432425 100644 --- a/classes/class-uabb-update.php +++ b/classes/class-uabb-update.php @@ -40,7 +40,6 @@ public function __construct() { // UABB Updates. add_action( 'init', __CLASS__ . '::init' ); - } /** @@ -49,7 +48,7 @@ public function __construct() { * @since 1.2.4 * @return void */ - static public function init() { + public static function init() { // Get saved version number. $saved_version = get_option( '_uabb_lite_saved_version', '0' ); diff --git a/classes/class-uabb-wpml.php b/classes/class-uabb-wpml.php index aa7507ca..d630e6ce 100644 --- a/classes/class-uabb-wpml.php +++ b/classes/class-uabb-wpml.php @@ -20,7 +20,7 @@ final class UABBLite_WPML_Translatable { * @since 1.2.2 * @return void */ - static public function init() { + public static function init() { add_filter( 'wpml_beaver_builder_modules_to_translate', __CLASS__ . '::wpml_uabb_modules_translate' ); UABBLite_WPML_Translatable::load_files(); } @@ -30,11 +30,10 @@ static public function init() { * * @since 1.2.2 */ - static public function load_files() { + public static function load_files() { if ( class_exists( 'WPML_Page_Builders_Defined' ) ) { require_once BB_ULTIMATE_ADDON_DIR . 'classes/wpml/class-wpml-uabb-infolist.php'; } - } /** @@ -44,7 +43,7 @@ static public function load_files() { * @param array $form gets the forms array to be resolved. * @return array */ - static public function wpml_uabb_modules_translate( $form ) { + public static function wpml_uabb_modules_translate( $form ) { // Button Module. $form['uabb-button'] = array( diff --git a/classes/class-ui-panel.php b/classes/class-ui-panel.php index 012e0b6b..1c215e5c 100644 --- a/classes/class-ui-panel.php +++ b/classes/class-ui-panel.php @@ -174,7 +174,7 @@ function fl_uabb_render_js( $js, $nodes, $global_settings ) { function fl_uabb_render_css( $css, $nodes, $global_settings ) { $css .= file_get_contents( BB_ULTIMATE_ADDON_DIR . 'assets/css/uabb-frontend.css' ); - $css .= include( BB_ULTIMATE_ADDON_DIR . 'assets/dynamic-css/uabb-theme-dynamic-css.php' ); + $css .= include BB_ULTIMATE_ADDON_DIR . 'assets/dynamic-css/uabb-theme-dynamic-css.php'; return $css; } @@ -266,7 +266,7 @@ function uabb_panel_before_row_layouts() { * @param array $templates Gets the array of UABB templates. * @param var $status Checks for the status of UABB templates. */ - static public function uabb_templates_data( $templates, $status = 'exclude' ) { + public static function uabb_templates_data( $templates, $status = 'exclude' ) { if ( isset( $templates['categorized'] ) && count( $templates['categorized'] ) > 0 ) { @@ -408,7 +408,6 @@ function uabb_panel_css_js() { wp_enqueue_script( 'uabb-panel-js', BB_ULTIMATE_ADDON_URL . 'assets/js/uabb-panel.js', array( 'jquery' ), '', true ); } } - } new UABB_UI_Panels(); diff --git a/classes/helper.php b/classes/helper.php index 2245e86c..090211a9 100644 --- a/classes/helper.php +++ b/classes/helper.php @@ -20,7 +20,7 @@ class UABB_Helper { * @param array $font An array with font-family and weight. * @return void */ - static public function uabb_font_css( $font ) { + public static function uabb_font_css( $font ) { $css = ''; if ( array_key_exists( $font['family'], FLBuilderFontFamilies::$system ) ) { @@ -45,7 +45,7 @@ static public function uabb_font_css( $font ) { * * @param array $opacity returns the replacements values. */ - static public function uabb_get_color( $hex, $opacity ) { + public static function uabb_get_color( $hex, $opacity ) { $rgba = $hex; if ( '' !== $opacity ) { if ( 3 === strlen( $hex ) ) { @@ -71,7 +71,7 @@ static public function uabb_get_color( $hex, $opacity ) { * @param array $opacity returns the replacements values. * @param array $is_array returns the replacements values. */ - static public function uabb_hex2rgba( $color, $opacity = false, $is_array = false ) { + public static function uabb_hex2rgba( $color, $opacity = false, $is_array = false ) { $default = $color; @@ -124,7 +124,7 @@ static public function uabb_hex2rgba( $color, $opacity = false, $is_array = fals * @param array $name returns the replacements values. * @param array $opc returns the replacements values. */ - static public function uabb_colorpicker( $settings, $name = '', $opc = false ) { + public static function uabb_colorpicker( $settings, $name = '', $opc = false ) { $hex_color = ''; $opacity = ''; @@ -147,7 +147,6 @@ static public function uabb_colorpicker( $settings, $name = '', $opc = false ) { } return $hex_color; - } /** @@ -155,7 +154,7 @@ static public function uabb_colorpicker( $settings, $name = '', $opc = false ) { * * @param var $gradient returns the bas values. */ - static public function uabb_gradient_css( $gradient ) { + public static function uabb_gradient_css( $gradient ) { $gradient_angle = intval( $gradient['angle'] ); $direction = $gradient['direction']; $color1 = ''; @@ -211,7 +210,7 @@ static public function uabb_gradient_css( $gradient ) { * @param string $echo gets an string for echo. * @return string */ - static public function get_link_rel( $target, $is_nofollow = 0, $echo = 0 ) { + public static function get_link_rel( $target, $is_nofollow = 0, $echo = 0 ) { $attr = ''; if ( '_blank' === $target ) { diff --git a/classes/uabb-bbtheme-global-integration.php b/classes/uabb-bbtheme-global-integration.php index ed5e15f0..9b1e80c4 100644 --- a/classes/uabb-bbtheme-global-integration.php +++ b/classes/uabb-bbtheme-global-integration.php @@ -64,7 +64,6 @@ function __construct() { add_filter( 'uabb/global/button_text_color', array( $this, 'uabb_global_button_text_color' ) ); add_filter( 'uabb/global/button_text_hover_color', array( $this, 'uabb_global_button_text_hover_color' ) ); - } /** diff --git a/classes/uabb-global-functions.php b/classes/uabb-global-functions.php index 4de5e837..32403383 100644 --- a/classes/uabb-global-functions.php +++ b/classes/uabb-global-functions.php @@ -953,4 +953,3 @@ function uabb_theme_padding_button( $mode, $value ) { return $new_padding; } - diff --git a/classes/uabb-global-integration.php b/classes/uabb-global-integration.php index 0c561daf..efc38ffb 100644 --- a/classes/uabb-global-integration.php +++ b/classes/uabb-global-integration.php @@ -247,10 +247,7 @@ function uabb_global_button_horizontal_padding() { return $h_padding; } - } new UABBGlobalSettingsOptions(); } - - diff --git a/classes/uabb-global-settings.php b/classes/uabb-global-settings.php index 731586c9..60067117 100644 --- a/classes/uabb-global-settings.php +++ b/classes/uabb-global-settings.php @@ -66,7 +66,7 @@ function add_options() { * * @since 1.0 */ - static public function init_actions() { + public static function init_actions() { FLBuilderAJAX::add_action( 'render_uabb_global_settings', 'UABB_Global_Styling::render_uabb_global_settings' ); FLBuilderAJAX::add_action( 'save_uabb_global_settings', 'UABB_Global_Styling::save_uabb_global_settings', array( 'settings' ) ); } @@ -76,7 +76,7 @@ static public function init_actions() { * * @since 1.0 */ - static public function render_uabb_global_settings() { + public static function render_uabb_global_settings() { $settings = self::get_uabb_global_settings(); $form = FLBuilderModel::$settings_forms['uabb-global']; @@ -97,7 +97,7 @@ static public function render_uabb_global_settings() { * * @since 1.0 */ - static public function get_uabb_global_settings() { + public static function get_uabb_global_settings() { $settings = UABB_Init::$uabb_options['uabb_global_settings']; $defaults = FLBuilderModel::get_settings_form_defaults( 'uabb-global' ); @@ -114,7 +114,7 @@ static public function get_uabb_global_settings() { * @since 1.0 * @param array $settings gets a array of old and new settings values. */ - static public function save_uabb_global_settings( $settings = array() ) { + public static function save_uabb_global_settings( $settings = array() ) { $old_settings = self::get_uabb_global_settings(); $new_settings = (object) array_merge( (array) $old_settings, (array) $settings ); diff --git a/classes/wpml/class-wpml-uabb-infolist.php b/classes/wpml/class-wpml-uabb-infolist.php index 28c6828f..0182c534 100644 --- a/classes/wpml/class-wpml-uabb-infolist.php +++ b/classes/wpml/class-wpml-uabb-infolist.php @@ -74,4 +74,3 @@ protected function get_editor_type( $field ) { } } } - diff --git a/index.php b/index.php index 5c79748b..b4e36e12 100644 --- a/index.php +++ b/index.php @@ -7,4 +7,3 @@ */ /* Silence is golden, and we agree. */ - diff --git a/lib/astra-notices/class-astra-notices.php b/lib/astra-notices/class-astra-notices.php index 45e201d6..ce0582c2 100644 --- a/lib/astra-notices/class-astra-notices.php +++ b/lib/astra-notices/class-astra-notices.php @@ -257,7 +257,6 @@ public function show_notices() { } } } - } /** @@ -369,7 +368,7 @@ private static function is_expired( $notice ) { * @return mixed URL. */ public static function get_url() { - $path = wp_normalize_path( dirname( __FILE__ ) ); + $path = wp_normalize_path( __DIR__ ); $theme_dir = wp_normalize_path( get_template_directory() ); if ( strpos( $path, $theme_dir ) !== false ) { @@ -378,7 +377,6 @@ public static function get_url() { return plugin_dir_url( __FILE__ ); } } - } /** diff --git a/modules/advanced-icon/advanced-icon.php b/modules/advanced-icon/advanced-icon.php index 8d267188..b22f6372 100644 --- a/modules/advanced-icon/advanced-icon.php +++ b/modules/advanced-icon/advanced-icon.php @@ -33,8 +33,6 @@ public function __construct() { ) ); } - - } /* diff --git a/modules/advanced-icon/includes/frontend.css.php b/modules/advanced-icon/includes/frontend.css.php index 55f69cb9..dda0d5d3 100644 --- a/modules/advanced-icon/includes/frontend.css.php +++ b/modules/advanced-icon/includes/frontend.css.php @@ -133,7 +133,7 @@ diff --git a/modules/advanced-icon/includes/frontend.php b/modules/advanced-icon/includes/frontend.php index cba2b0ff..89f5529d 100644 --- a/modules/advanced-icon/includes/frontend.php +++ b/modules/advanced-icon/includes/frontend.php @@ -73,7 +73,7 @@ FLBuilder::render_module_html( 'image-icon', $imageicon_array ); echo ''; } - $icon_count++; + ++$icon_count; } ?> diff --git a/modules/flip-box/flip-box.php b/modules/flip-box/flip-box.php index 31ad44eb..9d0e53f9 100644 --- a/modules/flip-box/flip-box.php +++ b/modules/flip-box/flip-box.php @@ -440,7 +440,7 @@ public function filter_settings( $settings, $helper ) { if ( ! isset( $settings->button->button_typo ) || ! is_object( $settings->button->button_typo ) ) { $settings->button->button_typo = new stdClass(); $settings->button->button_typo_medium = new stdClass(); - $settings->button->button_typo_responsive = new stdClass; + $settings->button->button_typo_responsive = new stdClass(); } if ( isset( $settings->button->font_family ) ) { if ( isset( $settings->button->font_family->weight ) ) { @@ -1060,4 +1060,3 @@ public function filter_settings( $settings, $helper ) { } else { require_once BB_ULTIMATE_ADDON_DIR . 'modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php'; } - diff --git a/modules/image-icon/includes/frontend.css.php b/modules/image-icon/includes/frontend.css.php index 246622de..55a6760f 100644 --- a/modules/image-icon/includes/frontend.css.php +++ b/modules/image-icon/includes/frontend.css.php @@ -124,7 +124,7 @@ height: icon_size ); ?>px; width: icon_size ); ?>px; text-align: center; - + icon_style && 'none' !== $settings->icon_border_style ) : ?> diff --git a/modules/info-list/includes/frontend.css.php b/modules/info-list/includes/frontend.css.php index 0db283d9..4a4a1177 100644 --- a/modules/info-list/includes/frontend.css.php +++ b/modules/info-list/includes/frontend.css.php @@ -233,7 +233,7 @@ space_between_elements ) { ?> .fl-node- .uabb-info-list-wrapper .uabb-info-list-item { padding-right: space_between_elements ) / 2 ); ?>px; - padding-left: space_between_elements ) / 2 ); ?>px; + padding-left: space_between_elements ) / 2 ); ?>px; padding-bottom: 0; } diff --git a/modules/info-list/info-list.php b/modules/info-list/info-list.php index 6f526c65..6b923606 100644 --- a/modules/info-list/info-list.php +++ b/modules/info-list/info-list.php @@ -116,7 +116,6 @@ public function render_image( $item, $settings ) { ); /* Render HTML Function */ FLBuilder::render_module_html( 'image-icon', $imageicon_array ); - } /** * Render text diff --git a/modules/info-table/includes/frontend.css.php b/modules/info-table/includes/frontend.css.php index 3d73abe5..be30ea4b 100644 --- a/modules/info-table/includes/frontend.css.php +++ b/modules/info-table/includes/frontend.css.php @@ -639,12 +639,12 @@ } .fl-node- .info-table-heading .info-table-sub-heading { sub_heading_color ) ) { ?> - color:sub_heading_color ); ?>; + color:sub_heading_color ); ?>; } .fl-node- .info-table .info-table-description { description_color ) ) { ?> - color:description_color ); ?>; + color:description_color ); ?>; } front_title_line_height_unit ) && '' !== $settings->front_title_line_height_unit ) { ?> - line-height: front_title_line_height_unit ); ?>em; + line-height: front_title_line_height_unit ); ?>em; front_title_line_height_unit ) && '' === $settings->front_title_line_height_unit && isset( $settings->front_title_line_height['desktop'] ) && '' !== $settings->front_title_line_height['desktop'] ) { ?> line-height: front_title_line_height['desktop'] ); ?>px; diff --git a/modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php b/modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php index 22f717ad..4df69f58 100644 --- a/modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php +++ b/modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php @@ -1100,4 +1100,3 @@ ), ) ); - diff --git a/modules/slide-box/slide-box.php b/modules/slide-box/slide-box.php index 90bfd781..dae0288a 100644 --- a/modules/slide-box/slide-box.php +++ b/modules/slide-box/slide-box.php @@ -401,7 +401,7 @@ public function filter_settings( $settings, $helper ) { if ( ! isset( $settings->button->button_typo ) || ! is_object( $settings->button->button_typo ) ) { $settings->button->button_typo = new stdClass(); $settings->button->button_typo_medium = new stdClass(); - $settings->button->button_typo_responsive = new stdClass; + $settings->button->button_typo_responsive = new stdClass(); } if ( isset( $settings->button->font_family ) ) { @@ -1110,7 +1110,7 @@ public function render_overlay_icon() { if ( 'style1' === $this->settings->slide_type && 'yes' === $this->settings->overlay ) { /* Render HTML Function */ echo '
    '; - echo ' + echo ' @@ -1136,7 +1136,7 @@ public function render_dropdown_icon() { 'text' => '', ); echo '
    '; - echo ' + echo ' @@ -1154,7 +1154,7 @@ public function render_dropdown_icon() { ); echo '
    '; - echo ' + echo ' diff --git a/modules/spacer-gap/spacer-gap.php b/modules/spacer-gap/spacer-gap.php index 10bc65ba..34b4bcfe 100644 --- a/modules/spacer-gap/spacer-gap.php +++ b/modules/spacer-gap/spacer-gap.php @@ -44,4 +44,3 @@ public function __construct() { } else { require_once BB_ULTIMATE_ADDON_DIR . 'modules/spacer-gap/spacer-gap-bb-less-than-2-2-compatibility.php'; } - diff --git a/modules/uabb-heading/includes/frontend.css.php b/modules/uabb-heading/includes/frontend.css.php index 2a1974b6..414b0ce4 100644 --- a/modules/uabb-heading/includes/frontend.css.php +++ b/modules/uabb-heading/includes/frontend.css.php @@ -197,7 +197,7 @@ 'photo_src' => ( isset( $settings->photo_src ) ) ? $settings->photo_src : '', /* - Icon color */ + Icon color */ // 'icon_color' => $settings->separator_icon_color, ); diff --git a/modules/uabb-separator/uabb-separator.php b/modules/uabb-separator/uabb-separator.php index 7a90a7c8..863e88b0 100644 --- a/modules/uabb-separator/uabb-separator.php +++ b/modules/uabb-separator/uabb-separator.php @@ -45,4 +45,3 @@ public function __construct() { } else { require_once BB_ULTIMATE_ADDON_DIR . 'modules/uabb-separator/uabb-separator-bb-less-than-2-2-compatibility.php'; } - diff --git a/modules/uabb-star-rating/uabb-star-rating.php b/modules/uabb-star-rating/uabb-star-rating.php index 6fedf26b..c34b40ce 100644 --- a/modules/uabb-star-rating/uabb-star-rating.php +++ b/modules/uabb-star-rating/uabb-star-rating.php @@ -35,7 +35,6 @@ public function __construct() { ); $this->add_css( 'font-awesome-5' ); - } /** From be1bf256565f8f0d7aa9dac3645b56de76b6dbf6 Mon Sep 17 00:00:00 2001 From: Abhishek Date: Thu, 26 Sep 2024 14:13:56 +0530 Subject: [PATCH 19/29] Resolved PHPCS errors --- bb-ultimate-addon.php | 6 +- classes/class-uabb-attachment.php | 6 +- classes/class-uabb-cloud-templates.php | 16 +- classes/class-uabb-helper.php | 10 +- classes/class-uabb-iconfonts.php | 7 +- classes/class-uabb-init.php | 18 +- classes/class-ui-panel.php | 30 +- classes/helper.php | 6 +- classes/uabb-bbtheme-global-integration.php | 14 +- classes/uabb-global-functions.php | 376 +++++++++--------- classes/uabb-global-integration.php | 38 +- classes/uabb-global-settings.php | 2 +- fields/_config.php | 4 +- fields/uabb-gradient/uabb-gradient.php | 6 +- modules/image-icon/image-icon.php | 8 +- modules/image-separator/image-separator.php | 8 +- .../uabb-heading/includes/frontend.css.php | 3 +- phpcs.xml.dist | 6 + 18 files changed, 287 insertions(+), 277 deletions(-) diff --git a/bb-ultimate-addon.php b/bb-ultimate-addon.php index b8a4462c..ac601edb 100644 --- a/bb-ultimate-addon.php +++ b/bb-ultimate-addon.php @@ -38,7 +38,7 @@ class BB_Ultimate_Addon { * * @since 1.0 */ - function __construct() { + public function __construct() { register_activation_hook( __FILE__, array( $this, 'activation_reset' ) ); @@ -51,7 +51,7 @@ function __construct() { * * @Since 1.0 */ - function activation_reset() { + public function activation_reset() { $no_memory = $this->check_memory_limit(); @@ -75,7 +75,7 @@ function activation_reset() { * * @Since 1.0 */ - function check_memory_limit() { + public function check_memory_limit() { $memory_limit = ini_get( 'memory_limit' ); // Total Memory. $peak_memory = memory_get_peak_usage( true ); // Available Memory. diff --git a/classes/class-uabb-attachment.php b/classes/class-uabb-attachment.php index bf99f88f..e424d41e 100644 --- a/classes/class-uabb-attachment.php +++ b/classes/class-uabb-attachment.php @@ -18,7 +18,7 @@ class UABB_Attachment { * * @since 1.0 */ - function __construct() { + public function __construct() { add_filter( 'attachment_fields_to_edit', array( $this, 'uabb_attachment_field_cta' ), 10, 2 ); add_filter( 'attachment_fields_to_save', array( $this, 'uabb_attachment_field_cta_save' ), 10, 2 ); @@ -31,7 +31,7 @@ function __construct() { * @param object $post object, attachment record in database. * @return $form_fields, modified form fields */ - function uabb_attachment_field_cta( $form_fields, $post ) { + public function uabb_attachment_field_cta( $form_fields, $post ) { $form_fields['uabb-cta-link'] = array( 'label' => __( 'Image Link', 'uabb' ), 'input' => 'text', @@ -48,7 +48,7 @@ function uabb_attachment_field_cta( $form_fields, $post ) { * @param array $attachment array, attachment fields from $_POST form. * @return array $post array, modified post data. */ - function uabb_attachment_field_cta_save( $post, $attachment ) { + public function uabb_attachment_field_cta_save( $post, $attachment ) { if ( isset( $attachment['uabb-cta-link'] ) ) { update_post_meta( $post['ID'], 'uabb-cta-link', $attachment['uabb-cta-link'] ); } diff --git a/classes/class-uabb-cloud-templates.php b/classes/class-uabb-cloud-templates.php index 344fb2e2..f41dc306 100644 --- a/classes/class-uabb-cloud-templates.php +++ b/classes/class-uabb-cloud-templates.php @@ -52,7 +52,7 @@ public static function get_instance() { * * @since 1.0 */ - function __construct() { + public function __construct() { self::$cloud_url = array( 'page-templates' => 'https://templates.ultimatebeaver.com/wp-json/uabb-lite/v1/template/layouts/', @@ -67,7 +67,7 @@ function __construct() { * * @since 1.0 */ - static function reset_cloud_transient() { + public static function reset_cloud_transient() { // get - downloaded templates. $cloud_templates = array(); @@ -187,7 +187,7 @@ static function reset_cloud_transient() { * @since 1.0 * @param string $type gets the type of the cloud templates. */ - static function get_cloud_templates_count( $type = '' ) { + public static function get_cloud_templates_count( $type = '' ) { $templates = get_site_option( '_uabb_cloud_templats', false ); $templates_count = 0; @@ -226,7 +226,7 @@ static function get_cloud_templates_count( $type = '' ) { * @since 1.0 * @param string $type gets the type of the cloud templates. */ - static function get_cloud_templates( $type = '' ) { + public static function get_cloud_templates( $type = '' ) { $templates = get_site_option( '_uabb_cloud_templats', false ); @@ -250,7 +250,7 @@ static function get_cloud_templates( $type = '' ) { * * @since 1.0 */ - function fetch_cloud_templates() { + public function fetch_cloud_templates() { if ( ! check_ajax_referer( 'uabb_cloud_nonce', 'form_nonce' ) || ! current_user_can( 'manage_options' ) ) { wp_send_json_error( array( @@ -269,7 +269,7 @@ function fetch_cloud_templates() { * @since 1.0 * @param file $dat_file_type gets the DAT file type. */ - function get_right_type_key( $dat_file_type ) { + public function get_right_type_key( $dat_file_type ) { // Update the key. if ( 'module' === $dat_file_type ) { @@ -304,7 +304,7 @@ public static function load_filesystem() { * @since 1.0 * @param string $msg gets an string message. */ - static function message( $msg ) { + public static function message( $msg ) { if ( ! empty( $msg ) ) { if ( 'not-found' === $msg ) { ?>
    @@ -324,7 +324,7 @@ static function message( $msg ) { * @since 1.0 * @param string $type gets the type page-templates. */ - static function template_html( $type = 'page-templates' ) { + public static function template_html( $type = 'page-templates' ) { $templates = self::get_cloud_templates( $type ); diff --git a/classes/class-uabb-helper.php b/classes/class-uabb-helper.php index 1f9d3ee7..0e9a1ad5 100644 --- a/classes/class-uabb-helper.php +++ b/classes/class-uabb-helper.php @@ -26,7 +26,7 @@ class BB_Ultimate_Addon_Helper { * * @since 1.0 */ - function __construct() { + public function __construct() { $this->set_constants(); } @@ -36,7 +36,7 @@ function __construct() { * * @since 1.0 */ - function set_constants() { + public function set_constants() { $branding = BB_Ultimate_Addon_Helper::get_builder_uabb_branding(); self::$basic_modules = __( 'Basic', 'uabb' ); $branding_name = 'UABB'; @@ -666,10 +666,10 @@ public static function is_templates_exist( $templates_type = 'all' ) { * @since 1.0 * @param string $target gets an string for the link. * @param string $is_nofollow gets an string for is no follow. - * @param string $echo gets an string for echo. + * @param string $should_echo gets an string for echo. * @return string */ - public static function get_link_rel( $target, $is_nofollow = 0, $echo = 0 ) { + public static function get_link_rel( $target, $is_nofollow = 0, $should_echo = 0 ) { $attr = ''; if ( '_blank' === $target ) { @@ -685,7 +685,7 @@ public static function get_link_rel( $target, $is_nofollow = 0, $echo = 0 ) { } $attr = trim( $attr ); - if ( ! $echo ) { + if ( ! $should_echo ) { return 'rel="' . $attr . '"'; } echo 'rel="' . esc_attr( $attr ) . '"'; diff --git a/classes/class-uabb-iconfonts.php b/classes/class-uabb-iconfonts.php index 25936d82..7717c690 100644 --- a/classes/class-uabb-iconfonts.php +++ b/classes/class-uabb-iconfonts.php @@ -34,7 +34,7 @@ public function init() { * * @since 1.0 */ - function reload_icons() { + public function reload_icons() { if ( ! wp_verify_nonce( $_POST['nonce'], 'uabb-reload-icons' ) || ! current_user_can( 'manage_options' ) ) { wp_send_json_error( @@ -54,7 +54,7 @@ function reload_icons() { * * @since 1.0 */ - function register_icons() { + public function register_icons() { // Update initially. $uabb_icons = get_option( '_uabb_enabled_icons', 0 ); @@ -91,7 +91,7 @@ function register_icons() { * @param array $src an array to get the src. * @param array $dst an object to get destination of the file. */ - function recurse_copy( $src, $dst ) { + public function recurse_copy( $src, $dst ) { $dir = opendir( $src ); // Create directory if not exist. @@ -99,6 +99,7 @@ function recurse_copy( $src, $dst ) { @mkdir( $dst ); //phpcs:ignore WordPress.WP.AlternativeFunctions.file_system_operations_mkdir } + // phpcs:ignore Generic.CodeAnalysis.AssignmentInCondition.FoundInWhileCondition while ( false !== ( $file = readdir( $dir ) ) ) { if ( ( '.' !== $file ) && ( '..' !== $file ) ) { if ( is_dir( $src . '/' . $file ) ) { diff --git a/classes/class-uabb-init.php b/classes/class-uabb-init.php index dffcbc8d..07a2572a 100644 --- a/classes/class-uabb-init.php +++ b/classes/class-uabb-init.php @@ -60,7 +60,7 @@ public function __construct() { * @since 1.0 * @param string $actions gets an link. */ - function uabb_render_plugin_action_links( $actions ) { + public function uabb_render_plugin_action_links( $actions ) { $actions[] = '' . _x( 'Upgrade', 'Plugin action link label.', 'uabb' ) . ''; @@ -72,7 +72,7 @@ function uabb_render_plugin_action_links( $actions ) { * * @since 1.0 */ - function includes() { + public function includes() { require_once BB_ULTIMATE_ADDON_DIR . 'classes/class-uabb-update.php'; require_once BB_ULTIMATE_ADDON_DIR . 'classes/class-uabb-compatibility.php'; @@ -109,7 +109,7 @@ function includes() { * For Performance. * Set UABB static object to store data from database. */ - static function set_uabb_options() { + public static function set_uabb_options() { self::$uabb_options = array( 'fl_builder_uabb' => FLBuilderModel::get_admin_settings_option( '_fl_builder_uabb', true ), 'fl_builder_uabb_branding' => FLBuilderModel::get_admin_settings_option( '_fl_builder_uabb_branding', false ), @@ -126,7 +126,7 @@ static function set_uabb_options() { * @param array $defaults gets the array for the form defaults. * @param string $form_type gets an array to check the form type. */ - function uabb_global_settings_form_defaults( $defaults, $form_type ) { + public function uabb_global_settings_form_defaults( $defaults, $form_type ) { if ( class_exists( 'FLCustomizer' ) && 'uabb-global' === $form_type ) { @@ -141,7 +141,7 @@ function uabb_global_settings_form_defaults( $defaults, $form_type ) { * * @since 1.0 */ - function init() { + public function init() { if ( apply_filters( 'uabb_global_support', true ) && class_exists( 'FLBuilderAJAX' ) ) { require_once BB_ULTIMATE_ADDON_DIR . 'classes/uabb-global-settings.php'; @@ -173,7 +173,7 @@ function init() { * * @since 1.0 */ - function load_plugin_textdomain() { + public function load_plugin_textdomain() { // Traditional WordPress plugin locale filter. $locale = apply_filters( 'plugin_locale', get_locale(), 'uabb' ); @@ -198,7 +198,7 @@ function load_plugin_textdomain() { * * @since 1.0 */ - function load_scripts() { + public function load_scripts() { if ( FLBuilderModel::is_builder_active() ) { @@ -228,7 +228,7 @@ function load_scripts() { * * @since 1.0 */ - function admin_notices() { + public function admin_notices() { if ( file_exists( plugin_dir_path( 'bb-plugin-agency/fl-builder.php' ) ) || file_exists( plugin_dir_path( 'beaver-builder-lite-version/fl-builder.php' ) ) ) { @@ -262,7 +262,7 @@ function admin_notices() { * * @since 1.0 */ - function load_modules() { + public function load_modules() { $enable_modules = BB_Ultimate_Addon_Helper::get_builder_uabb_modules(); foreach ( $enable_modules as $file => $name ) { diff --git a/classes/class-ui-panel.php b/classes/class-ui-panel.php index 1c215e5c..c5e421dd 100644 --- a/classes/class-ui-panel.php +++ b/classes/class-ui-panel.php @@ -46,7 +46,7 @@ public function __construct() { * * @since 1.0 */ - function toggle_uabb_ui() { + public function toggle_uabb_ui() { // Added ui panel. add_action( 'wp_footer', array( $this, 'render_ui' ), 9 ); @@ -79,7 +79,7 @@ public function init() { * @param array $template_data Gets the tags for the Template Data. * @param array $template Gets the author for the Template Data. */ - function uabb_fl_builder_template_selector_data( $template_data, $template ) { + public function uabb_fl_builder_template_selector_data( $template_data, $template ) { $template_data['tags'] = isset( $template->tags ) ? $template->tags : array(); $template_data['author'] = isset( $template->author ) ? $template->author : ''; return $template_data; @@ -90,7 +90,7 @@ function uabb_fl_builder_template_selector_data( $template_data, $template ) { * @since 1.0 * @param string $url Returns the URL of the Affiliate URL. */ - function uabb_affiliate_url( $url ) { + public function uabb_affiliate_url( $url ) { $url = 'https://www.wpbeaverbuilder.com/?fla=713'; return $url; @@ -101,7 +101,7 @@ function uabb_affiliate_url( $url ) { * @since 1.0 * @param string $url Returns the Key shortcut for showUABBGlobalSettings. */ - function uabb_bsf_registration_page_url( $url ) { + public function uabb_bsf_registration_page_url( $url ) { if ( is_multisite() && false === FL_BUILDER_LITE ) { return network_admin_url( '/settings.php?page=uabb-builder-multisite-settings#uabb-license' ); @@ -117,7 +117,7 @@ function uabb_bsf_registration_page_url( $url ) { * @param string $license_status_class Gets the license status class. * @param string $license_status Gets the license status. */ - function uabb_bsf_license_form_heading( $form_heading, $license_status_class, $license_status ) { + public function uabb_bsf_license_form_heading( $form_heading, $license_status_class, $license_status ) { $branding_name = BB_Ultimate_Addon_Helper::get_builder_uabb_branding( 'uabb-plugin-name' ); $branding_short_name = BB_Ultimate_Addon_Helper::get_builder_uabb_branding( 'uabb-plugin-short-name' ); @@ -139,7 +139,7 @@ function uabb_bsf_license_form_heading( $form_heading, $license_status_class, $l * * @param array $products Gets an array of Products. */ - function uabb_skip_brainstorm_menu( $products ) { + public function uabb_skip_brainstorm_menu( $products ) { if ( function_exists( 'bsf_extract_product_id' ) ) { $priduct_id = bsf_extract_product_id( BB_ULTIMATE_ADDON_DIR ); @@ -157,7 +157,7 @@ function uabb_skip_brainstorm_menu( $products ) { * @param array $nodes Gets the nodes of the layout builder. * @param object $global_settings Gets the object for the Layout builder. */ - function fl_uabb_render_js( $js, $nodes, $global_settings ) { + public function fl_uabb_render_js( $js, $nodes, $global_settings ) { $temp = file_get_contents( BB_ULTIMATE_ADDON_DIR . 'assets/js/uabb-frontend.js' ) . $js; $js = $temp; return $js; @@ -171,7 +171,7 @@ function fl_uabb_render_js( $js, $nodes, $global_settings ) { * @param array $nodes Gets the nodes of the layout builder. * @param object $global_settings Gets the object for the Layout builder. */ - function fl_uabb_render_css( $css, $nodes, $global_settings ) { + public function fl_uabb_render_css( $css, $nodes, $global_settings ) { $css .= file_get_contents( BB_ULTIMATE_ADDON_DIR . 'assets/css/uabb-frontend.css' ); $css .= include BB_ULTIMATE_ADDON_DIR . 'assets/dynamic-css/uabb-theme-dynamic-css.php'; @@ -184,7 +184,7 @@ function fl_uabb_render_css( $css, $nodes, $global_settings ) { * * @since 1.0 */ - function config() { + public function config() { $is_templates_exist = BB_Ultimate_Addon_Helper::is_templates_exist(); if ( $is_templates_exist ) { @@ -212,7 +212,7 @@ function config() { * * @since 1.0 */ - function load_templates() { + public function load_templates() { if ( ! method_exists( 'FLBuilder', 'register_templates' ) ) { return; @@ -248,7 +248,7 @@ function load_templates() { * * @since 1.0 */ - function uabb_panel_before_row_layouts() { + public function uabb_panel_before_row_layouts() { ?>
    @@ -308,7 +308,7 @@ public static function uabb_templates_data( $templates, $status = 'exclude' ) { * @since 1.0 * @param array $buttons Gets the buttons array for UI panel. */ - function builder_ui_bar_buttons( $buttons ) { + public function builder_ui_bar_buttons( $buttons ) { if ( is_callable( 'FLBuilderUserAccess::current_user_can' ) ) { $simple_ui = ! FLBuilderUserAccess::current_user_can( 'unrestricted_editing' ); @@ -344,7 +344,7 @@ function builder_ui_bar_buttons( $buttons ) { * * @since 1.0 */ - function render_ui() { + public function render_ui() { global $wp_the_query; @@ -385,7 +385,7 @@ function render_ui() { * * @since 1.0 */ - function render_live_preview() { + public function render_live_preview() { if ( FLBuilderModel::is_builder_active() ) { /* Live Preview */ $uabb = BB_Ultimate_Addon_Helper::get_builder_uabb(); @@ -403,7 +403,7 @@ function render_live_preview() { /** * Enqueue Panel CSS and JS */ - function uabb_panel_css_js() { + public function uabb_panel_css_js() { if ( FLBuilderModel::is_builder_active() ) { wp_enqueue_script( 'uabb-panel-js', BB_ULTIMATE_ADDON_URL . 'assets/js/uabb-panel.js', array( 'jquery' ), '', true ); } diff --git a/classes/helper.php b/classes/helper.php index 090211a9..f420c517 100644 --- a/classes/helper.php +++ b/classes/helper.php @@ -207,10 +207,10 @@ public static function uabb_gradient_css( $gradient ) { * @since 1.3.0 * @param string $target gets an string for the link. * @param string $is_nofollow gets an string for is no follow. - * @param string $echo gets an string for echo. + * @param string $should_echo gets an string for echo. * @return string */ - public static function get_link_rel( $target, $is_nofollow = 0, $echo = 0 ) { + public static function get_link_rel( $target, $is_nofollow = 0, $should_echo = 0 ) { $attr = ''; if ( '_blank' === $target ) { @@ -226,7 +226,7 @@ public static function get_link_rel( $target, $is_nofollow = 0, $echo = 0 ) { } $attr = trim( $attr ); - if ( ! $echo ) { + if ( ! $should_echo ) { return 'rel="' . $attr . '"'; } echo 'rel="' . esc_attr( $attr ) . '"'; diff --git a/classes/uabb-bbtheme-global-integration.php b/classes/uabb-bbtheme-global-integration.php index 9b1e80c4..35ccffd2 100644 --- a/classes/uabb-bbtheme-global-integration.php +++ b/classes/uabb-bbtheme-global-integration.php @@ -21,7 +21,7 @@ class UABB_BBThemeGlobalIntegration { /** * Constructor function that initializes required actions and hooks */ - function __construct() { + public function __construct() { /** * ** * * Tracing Beaver Builder Theme Colors @@ -69,7 +69,7 @@ function __construct() { /** * Theme Color - */ - function uabb_global_theme_color() { + public function uabb_global_theme_color() { $color = $this->bb_options['theme_color']; return $color; @@ -78,7 +78,7 @@ function uabb_global_theme_color() { /** * Theme Text Color - */ - function uabb_global_text_color() { + public function uabb_global_text_color() { $color = $this->bb_options['theme_text_color']; return $color; @@ -87,7 +87,7 @@ function uabb_global_text_color() { /** * Button Background Color - */ - function uabb_global_button_bg_color() { + public function uabb_global_button_bg_color() { $color = $this->bb_options['btn_bg_color']; return $color; @@ -97,7 +97,7 @@ function uabb_global_button_bg_color() { /** * Button Background Hover Color - */ - function uabb_global_button_bg_hover_color() { + public function uabb_global_button_bg_hover_color() { $color = $this->bb_options['btn_bg_hover_color']; return $color; @@ -106,7 +106,7 @@ function uabb_global_button_bg_hover_color() { /** * Button Text Color - */ - function uabb_global_button_text_color() { + public function uabb_global_button_text_color() { $color = $this->bb_options['btn_text_color']; return $color; @@ -116,7 +116,7 @@ function uabb_global_button_text_color() { /** * Button Text Hover Color - */ - function uabb_global_button_text_hover_color() { + public function uabb_global_button_text_hover_color() { $color = $this->bb_options['btn_text_hover_color']; return $color; diff --git a/classes/uabb-global-functions.php b/classes/uabb-global-functions.php index 32403383..fd65e621 100644 --- a/classes/uabb-global-functions.php +++ b/classes/uabb-global-functions.php @@ -84,22 +84,22 @@ function recurse( $base, $replacements ) { /** * Provide option to override the element defaults from theme options. * - * @param var $default Checks if user has set the color, if yes, returns users value else checks for. + * @param var $default_color Checks if user has set the color, if yes, returns users value else checks for. * filtered value. * @return string - hex value for the color */ -function uabb_theme_base_color( $default ) { +function uabb_theme_base_color( $default_color ) { $color = ''; - if ( '' === $default ) { + if ( '' === $default_color ) { - $color = apply_filters( 'uabb/global/theme_color', $default );// @codingStandardsIgnoreLine. + $color = apply_filters( 'uabb/global/theme_color', $default_color );// @codingStandardsIgnoreLine. if ( '' === $color ) { - $color = apply_filters( 'uabb_theme_theme_color', $default ); + $color = apply_filters( 'uabb_theme_theme_color', $default_color ); } } else { - $color = $default; + $color = $default_color; } return $color; @@ -108,22 +108,22 @@ function uabb_theme_base_color( $default ) { /** * Provide option to override the element defaults from theme options. * - * @param var $default Checks if user has set the color, if yes, returns users value else checks for. + * @param var $default_text_color Checks if user has set the color, if yes, returns users value else checks for. * filtered value. * @return string - hex value for the color */ -function uabb_theme_text_color( $default ) { +function uabb_theme_text_color( $default_text_color ) { $color = ''; - if ( '' === $default ) { + if ( '' === $default_text_color ) { - $color = apply_filters( 'uabb/global/text_color', $default );// @codingStandardsIgnoreLine. + $color = apply_filters( 'uabb/global/text_color', $default_text_color );// @codingStandardsIgnoreLine. if ( '' === $color ) { - $color = apply_filters( 'uabb_theme_text_color', $default ); + $color = apply_filters( 'uabb_theme_text_color', $default_text_color ); } } else { - $color = $default; + $color = $default_text_color; } return $color; @@ -132,22 +132,22 @@ function uabb_theme_text_color( $default ) { /** * Provide option to override the element defaults from theme options. * - * @param var $default Checks if user has set the color, if yes, returns users value else checks for + * @param var $default_link_color Checks if user has set the color, if yes, returns users value else checks for * filtered value. * @return string - hex value for the color */ -function uabb_theme_link_color( $default ) { +function uabb_theme_link_color( $default_link_color ) { $color = ''; - if ( '' === $default ) { + if ( '' === $default_link_color ) { - $color = apply_filters( 'uabb/global/link_color', $default );// @codingStandardsIgnoreLine. + $color = apply_filters( 'uabb/global/link_color', $default_link_color );// @codingStandardsIgnoreLine. if ( '' === $color ) { - $color = apply_filters( 'uabb_theme_link_color', $default ); + $color = apply_filters( 'uabb_theme_link_color', $default_link_color ); } } else { - $color = $default; + $color = $default_link_color; } return $color; @@ -156,21 +156,21 @@ function uabb_theme_link_color( $default ) { /** * Provide option to override the element defaults from theme options. * - * @param var $default Checks if user has set the color, if yes, returns users value else checks for filtered value. + * @param var $default_link_hover_color Checks if user has set the color, if yes, returns users value else checks for filtered value. * @return string - hex value for the color */ -function uabb_theme_link_hover_color( $default ) { +function uabb_theme_link_hover_color( $default_link_hover_color ) { $color = ''; - if ( '' === $default ) { + if ( '' === $default_link_hover_color ) { - $color = apply_filters( 'uabb/global/link_hover_color', $default );// @codingStandardsIgnoreLine. + $color = apply_filters( 'uabb/global/link_hover_color', $default_link_hover_color );// @codingStandardsIgnoreLine. if ( '' === $color ) { - $color = apply_filters( 'uabb_theme_link_hover_color', $default ); + $color = apply_filters( 'uabb_theme_link_hover_color', $default_link_hover_color ); } } else { - $color = $default; + $color = $default_link_hover_color; } return $color; @@ -179,19 +179,19 @@ function uabb_theme_link_hover_color( $default ) { /** * Provide option to override the element defaults from theme options. * - * @param var $default Checks if user has set the font family, if yes, returns users value else checks + * @param var $default_button_font_family Checks if user has set the font family, if yes, returns users value else checks * for filtered value. * @return string - font-family */ -function uabb_theme_button_font_family( $default ) { +function uabb_theme_button_font_family( $default_button_font_family ) { $btn_font_family = array(); - if ( '' === $default['family'] || 'Default' === $default['family'] ) { + if ( '' === $default_button_font_family['family'] || 'Default' === $default_button_font_family['family'] ) { - $btn_font_family = apply_filters( 'uabb_theme_button_font_family', $default ); + $btn_font_family = apply_filters( 'uabb_theme_button_font_family', $default_button_font_family ); } else { - $btn_font_family = $default; + $btn_font_family = $default_button_font_family; } return $btn_font_family; @@ -200,22 +200,22 @@ function uabb_theme_button_font_family( $default ) { /** * Button Font Size * - * @param var $default Checks if the user has set Font Size values. + * @param var $default_button_font_size Checks if the user has set Font Size values. */ -function uabb_theme_button_font_size( $default ) { +function uabb_theme_button_font_size( $default_button_font_size ) { $font_size = ''; - if ( '' === $default ) { + if ( '' === $default_button_font_size ) { - $font_size = apply_filters( 'uabb/global/button_font_size', $default );// @codingStandardsIgnoreLine. + $font_size = apply_filters( 'uabb/global/button_font_size', $default_button_font_size );// @codingStandardsIgnoreLine. if ( '' === $font_size ) { - $font_size = apply_filters( 'uabb_theme_button_font_size', $default ); + $font_size = apply_filters( 'uabb_theme_button_font_size', $default_button_font_size ); } else { $font_size = $font_size . 'px'; } } else { - $font_size = $default; + $font_size = $default_button_font_size; } return $font_size; @@ -224,22 +224,22 @@ function uabb_theme_button_font_size( $default ) { * Button Font Size * * @since 1.3.1 - * @param var $default Checks if the user has set Font Size values. + * @param var $default_button_font_size Checks if the user has set Font Size values. */ -function uabb_theme_default_button_font_size( $default ) { +function uabb_theme_default_button_font_size( $default_button_font_size ) { $font_size = ''; - if ( '' === $default ) { + if ( '' === $default_button_font_size ) { - $font_size = apply_filters( 'uabb/global/button_font_size', $default );// @codingStandardsIgnoreLine. + $font_size = apply_filters( 'uabb/global/button_font_size', $default_button_font_size );// @codingStandardsIgnoreLine. if ( '' === $font_size ) { - $font_size = apply_filters( 'uabb_theme_default_button_font_size', $default ); + $font_size = apply_filters( 'uabb_theme_default_button_font_size', $default_button_font_size ); } else { $font_size = $font_size . 'px'; } } else { - $font_size = $default; + $font_size = $default_button_font_size; } return $font_size; @@ -247,22 +247,22 @@ function uabb_theme_default_button_font_size( $default ) { /** * Button Line Height * - * @param var $default Checks if the user has set text transform values. + * @param var $default_button_line_height Checks if the user has set text transform values. */ -function uabb_theme_button_line_height( $default ) { +function uabb_theme_button_line_height( $default_button_line_height ) { $line_height = ''; - if ( '' === $default ) { + if ( '' === $default_button_line_height ) { - $line_height = apply_filters( 'uabb/global/button_line_height', $default );// @codingStandardsIgnoreLine. + $line_height = apply_filters( 'uabb/global/button_line_height', $default_button_line_height );// @codingStandardsIgnoreLine. if ( '' === $line_height ) { - $line_height = apply_filters( 'uabb_theme_button_line_height', $default ); + $line_height = apply_filters( 'uabb_theme_button_line_height', $default_button_line_height ); } else { $line_height = $line_height . 'px'; } } else { - $line_height = $default; + $line_height = $default_button_line_height; } return $line_height; @@ -271,22 +271,22 @@ function uabb_theme_button_line_height( $default ) { * Button Line Height * * @since 1.3.1 - * @param var $default Checks if the user has set text transform values. + * @param var $default_button_line_height Checks if the user has set text transform values. */ -function uabb_theme_default_button_line_height( $default ) { +function uabb_theme_default_button_line_height( $default_button_line_height ) { $line_height = ''; - if ( '' === $default ) { + if ( '' === $default_button_line_height ) { - $line_height = apply_filters( 'uabb/global/button_line_height', $default );// @codingStandardsIgnoreLine. + $line_height = apply_filters( 'uabb/global/button_line_height', $default_button_line_height );// @codingStandardsIgnoreLine. if ( '' === $line_height ) { - $line_height = apply_filters( 'uabb_theme_default_button_line_height', $default ); + $line_height = apply_filters( 'uabb_theme_default_button_line_height', $default_button_line_height ); } else { $line_height = $line_height . 'px'; } } else { - $line_height = $default; + $line_height = $default_button_line_height; } return $line_height; @@ -294,22 +294,22 @@ function uabb_theme_default_button_line_height( $default ) { /** * Button Letter Spacing * - * @param var $default Checks if the user has set letter spacing values. + * @param var $default_button_letter_spacing Checks if the user has set letter spacing values. */ -function uabb_theme_button_letter_spacing( $default ) { +function uabb_theme_button_letter_spacing( $default_button_letter_spacing ) { $letter_spacing = ''; - if ( '' === $default ) { + if ( '' === $default_button_letter_spacing ) { - $letter_spacing = apply_filters( 'uabb/global/button_letter_spacing', $default );// @codingStandardsIgnoreLine. + $letter_spacing = apply_filters( 'uabb/global/button_letter_spacing', $default_button_letter_spacing );// @codingStandardsIgnoreLine. if ( '' === $letter_spacing ) { - $letter_spacing = apply_filters( 'uabb_theme_button_letter_spacing', $default ); + $letter_spacing = apply_filters( 'uabb_theme_button_letter_spacing', $default_button_letter_spacing ); } else { $letter_spacing = $letter_spacing . 'px'; } } else { - $letter_spacing = $default; + $letter_spacing = $default_button_letter_spacing; } return $letter_spacing; @@ -318,22 +318,22 @@ function uabb_theme_button_letter_spacing( $default ) { * Button Letter Spacing * * @since 1.3.1 - * @param var $default Checks if the user has set letter spacing values. + * @param var $default_button_letter_spacing Checks if the user has set letter spacing values. */ -function uabb_theme_default_button_letter_spacing( $default ) { +function uabb_theme_default_button_letter_spacing( $default_button_letter_spacing ) { $letter_spacing = ''; - if ( '' === $default ) { + if ( '' === $default_button_letter_spacing ) { - $letter_spacing = apply_filters( 'uabb/global/button_letter_spacing', $default );// @codingStandardsIgnoreLine. + $letter_spacing = apply_filters( 'uabb/global/button_letter_spacing', $default_button_letter_spacing );// @codingStandardsIgnoreLine. if ( '' === $letter_spacing ) { - $letter_spacing = apply_filters( 'uabb_theme_default_button_letter_spacing', $default ); + $letter_spacing = apply_filters( 'uabb_theme_default_button_letter_spacing', $default_button_letter_spacing ); } else { $letter_spacing = $letter_spacing . 'px'; } } else { - $letter_spacing = $default; + $letter_spacing = $default_button_letter_spacing; } return $letter_spacing; @@ -341,20 +341,20 @@ function uabb_theme_default_button_letter_spacing( $default ) { /** * Button Text Transform * - * @param var $default Checks if the user has set text transform values. + * @param var $default_button_text_transform Checks if the user has set text transform values. */ -function uabb_theme_button_text_transform( $default ) { +function uabb_theme_button_text_transform( $default_button_text_transform ) { $text_transform = ''; - if ( '' === $default ) { + if ( '' === $default_button_text_transform ) { - $text_transform = apply_filters( 'uabb/global/button_text_transform', $default );// @codingStandardsIgnoreLine. + $text_transform = apply_filters( 'uabb/global/button_text_transform', $default_button_text_transform );// @codingStandardsIgnoreLine. if ( '' === $text_transform ) { - $text_transform = apply_filters( 'uabb_theme_button_text_transform', $default ); + $text_transform = apply_filters( 'uabb_theme_button_text_transform', $default_button_text_transform ); } } else { - $text_transform = $default; + $text_transform = $default_button_text_transform; } return $text_transform; @@ -363,20 +363,20 @@ function uabb_theme_button_text_transform( $default ) { * Button Text Transform * * @since 1.3.1 - * @param var $default Checks if the user has set text transform values. + * @param var $default_button_text_transform Checks if the user has set text transform values. */ -function uabb_theme_default_button_text_transform( $default ) { +function uabb_theme_default_button_text_transform( $default_button_text_transform ) { $text_transform = ''; - if ( '' === $default ) { + if ( '' === $default_button_text_transform ) { - $text_transform = apply_filters( 'uabb/global/button_text_transform', $default );// @codingStandardsIgnoreLine. + $text_transform = apply_filters( 'uabb/global/button_text_transform', $default_button_text_transform );// @codingStandardsIgnoreLine. if ( '' === $text_transform ) { - $text_transform = apply_filters( 'uabb_theme_default_button_text_transform', $default ); + $text_transform = apply_filters( 'uabb_theme_default_button_text_transform', $default_button_text_transform ); } } else { - $text_transform = $default; + $text_transform = $default_button_text_transform; } return $text_transform; @@ -384,21 +384,21 @@ function uabb_theme_default_button_text_transform( $default ) { /** * Provide option to override the element defaults from theme options. * - * @param var $default Checks if user has set the color, if yes, returns users value else checks for filtered value. + * @param var $default_button_bg_color Checks if user has set the color, if yes, returns users value else checks for filtered value. * @return string - hex value for the color */ -function uabb_theme_button_bg_color( $default ) { +function uabb_theme_button_bg_color( $default_button_bg_color ) { $color = ''; - if ( '' === $default ) { + if ( '' === $default_button_bg_color ) { - $color = apply_filters( 'uabb/global/button_bg_color', $default );// @codingStandardsIgnoreLine. + $color = apply_filters( 'uabb/global/button_bg_color', $default_button_bg_color );// @codingStandardsIgnoreLine. if ( '' === $color ) { - $color = apply_filters( 'uabb_theme_button_bg_color', $default ); + $color = apply_filters( 'uabb_theme_button_bg_color', $default_button_bg_color ); } } else { - $color = $default; + $color = $default_button_bg_color; } return $color; @@ -407,21 +407,21 @@ function uabb_theme_button_bg_color( $default ) { * Provide option to override the element defaults from theme options. * * @since 1.3.1 - * @param var $default Checks if user has set the color, if yes, returns users value else checks for filtered value. + * @param var $default_button_bg_color Checks if user has set the color, if yes, returns users value else checks for filtered value. * @return string - hex value for the color */ -function uabb_theme_default_button_bg_color( $default ) { +function uabb_theme_default_button_bg_color( $default_button_bg_color ) { $color = ''; - if ( '' === $default ) { + if ( '' === $default_button_bg_color ) { - $color = apply_filters( 'uabb/global/button_bg_color', $default );// @codingStandardsIgnoreLine. + $color = apply_filters( 'uabb/global/button_bg_color', $default_button_bg_color );// @codingStandardsIgnoreLine. if ( '' === $color ) { - $color = apply_filters( 'uabb_theme_default_button_bg_color', $default ); + $color = apply_filters( 'uabb_theme_default_button_bg_color', $default_button_bg_color ); } } else { - $color = $default; + $color = $default_button_bg_color; } return $color; @@ -429,22 +429,22 @@ function uabb_theme_default_button_bg_color( $default ) { /** * Provide option to override the element defaults from theme options. * - * @param var $default Checks if user has set the color, if yes, returns users value else checks + * @param var $default_button_bg_hover_color Checks if user has set the color, if yes, returns users value else checks * for filtered value. * @return string - hex value for the color */ -function uabb_theme_button_bg_hover_color( $default ) { +function uabb_theme_button_bg_hover_color( $default_button_bg_hover_color ) { $color = ''; - if ( '' === $default ) { + if ( '' === $default_button_bg_hover_color ) { - $color = apply_filters( 'uabb/global/button_bg_hover_color', $default );// @codingStandardsIgnoreLine. + $color = apply_filters( 'uabb/global/button_bg_hover_color', $default_button_bg_hover_color );// @codingStandardsIgnoreLine. if ( '' === $color ) { - $color = apply_filters( 'uabb_theme_button_bg_hover_color', $default ); + $color = apply_filters( 'uabb_theme_button_bg_hover_color', $default_button_bg_hover_color ); } } else { - $color = $default; + $color = $default_button_bg_hover_color; } return $color; @@ -453,22 +453,22 @@ function uabb_theme_button_bg_hover_color( $default ) { * Provide option to override the element defaults from theme options. * * @since 1.3.1 - * @param var $default Checks if user has set the color, if yes, returns users value else checks + * @param var $default_button_bg_hover_color Checks if user has set the color, if yes, returns users value else checks * for filtered value. * @return string - hex value for the color */ -function uabb_theme_default_button_bg_hover_color( $default ) { +function uabb_theme_default_button_bg_hover_color( $default_button_bg_hover_color ) { $color = ''; - if ( '' === $default ) { + if ( '' === $default_button_bg_hover_color ) { - $color = apply_filters( 'uabb/global/button_bg_hover_color', $default );// @codingStandardsIgnoreLine. + $color = apply_filters( 'uabb/global/button_bg_hover_color', $default_button_bg_hover_color );// @codingStandardsIgnoreLine. if ( '' === $color ) { - $color = apply_filters( 'uabb_theme_default_button_bg_hover_color', $default ); + $color = apply_filters( 'uabb_theme_default_button_bg_hover_color', $default_button_bg_hover_color ); } } else { - $color = $default; + $color = $default_button_bg_hover_color; } return $color; @@ -476,22 +476,22 @@ function uabb_theme_default_button_bg_hover_color( $default ) { /** * Provide option to override the element defaults from theme options. * - * @param var $default Checks if user has set the color, if yes, returns users value else checks + * @param var $default_button_text_color Checks if user has set the color, if yes, returns users value else checks * for filtered value. * @return string - hex value for the color */ -function uabb_theme_button_text_color( $default ) { +function uabb_theme_button_text_color( $default_button_text_color ) { $color = ''; - if ( '' === $default ) { + if ( '' === $default_button_text_color ) { - $color = apply_filters( 'uabb/global/button_text_color', $default );// @codingStandardsIgnoreLine. + $color = apply_filters( 'uabb/global/button_text_color', $default_button_text_color );// @codingStandardsIgnoreLine. if ( '' === $color ) { - $color = apply_filters( 'uabb_theme_button_text_color', $default ); + $color = apply_filters( 'uabb_theme_button_text_color', $default_button_text_color ); } } else { - $color = $default; + $color = $default_button_text_color; } return $color; @@ -500,22 +500,22 @@ function uabb_theme_button_text_color( $default ) { * Provide option to override the element defaults from theme options. * * @since 1.3.1 - * @param var $default Checks if user has set the text color, if yes, returns users value else checks + * @param var $default_button_text_color Checks if user has set the text color, if yes, returns users value else checks * for filtered value. * @return string - hex value for the text color */ -function uabb_theme_default_button_text_color( $default ) { +function uabb_theme_default_button_text_color( $default_button_text_color ) { $color = ''; - if ( '' === $default ) { + if ( '' === $default_button_text_color ) { - $color = apply_filters( 'uabb/global/button_text_color', $default );// @codingStandardsIgnoreLine. + $color = apply_filters( 'uabb/global/button_text_color', $default_button_text_color );// @codingStandardsIgnoreLine. if ( '' === $color ) { - $color = apply_filters( 'uabb_theme_default_button_text_color', $default ); + $color = apply_filters( 'uabb_theme_default_button_text_color', $default_button_text_color ); } } else { - $color = $default; + $color = $default_button_text_color; } return $color; @@ -523,23 +523,23 @@ function uabb_theme_default_button_text_color( $default ) { /** * Provide option to override the element defaults from theme options. * - * @param var $default Checks if user has set the text hover color, if yes, returns users value else checks + * @param var $default_button_text_hover_color Checks if user has set the text hover color, if yes, returns users value else checks * for filtered value. * * @return string - hex value for the text hover color */ -function uabb_theme_button_text_hover_color( $default ) { +function uabb_theme_button_text_hover_color( $default_button_text_hover_color ) { $color = ''; - if ( '' === $default ) { + if ( '' === $default_button_text_hover_color ) { - $color = apply_filters( 'uabb/global/button_text_hover_color', $default );// @codingStandardsIgnoreLine. + $color = apply_filters( 'uabb/global/button_text_hover_color', $default_button_text_hover_color );// @codingStandardsIgnoreLine. if ( '' === $color ) { - $color = apply_filters( 'uabb_theme_button_text_hover_color', $default ); + $color = apply_filters( 'uabb_theme_button_text_hover_color', $default_button_text_hover_color ); } } else { - $color = $default; + $color = $default_button_text_hover_color; } return $color; @@ -548,23 +548,23 @@ function uabb_theme_button_text_hover_color( $default ) { * Provide option to override the element defaults from theme options. * * @since 1.3.1 - * @param var $default Checks if user has set the text hover color, if yes, returns users value else checks + * @param var $default_button_text_hover_color Checks if user has set the text hover color, if yes, returns users value else checks * for filtered value. * * @return string - hex value for the text hover color */ -function uabb_theme_default_button_text_hover_color( $default ) { +function uabb_theme_default_button_text_hover_color( $default_button_text_hover_color ) { $color = ''; - if ( '' === $default ) { + if ( '' === $default_button_text_hover_color ) { - $color = apply_filters( 'uabb/global/button_text_hover_color', $default );// @codingStandardsIgnoreLine. + $color = apply_filters( 'uabb/global/button_text_hover_color', $default_button_text_hover_color );// @codingStandardsIgnoreLine. if ( '' === $color ) { - $color = apply_filters( 'uabb_theme_default_button_text_hover_color', $default ); + $color = apply_filters( 'uabb_theme_default_button_text_hover_color', $default_button_text_hover_color ); } } else { - $color = $default; + $color = $default_button_text_hover_color; } return $color; @@ -572,25 +572,25 @@ function uabb_theme_default_button_text_hover_color( $default ) { /** * Provide option to override the element defaults from theme options. * - * @param var $default Checks if user has set the color, if yes, returns users value else checks + * @param var $default_button_padding Checks if user has set the color, if yes, returns users value else checks * for filtered value. * @return string - padding value */ -function uabb_theme_button_padding( $default ) { +function uabb_theme_button_padding( $default_button_padding ) { $padding = ''; - if ( '' === $default ) { + if ( '' === $default_button_padding ) { - $padding = apply_filters( 'uabb/global/button_padding', $default );// @codingStandardsIgnoreLine. + $padding = apply_filters( 'uabb/global/button_padding', $default_button_padding );// @codingStandardsIgnoreLine. if ( '' === $padding ) { - $padding = apply_filters( 'uabb/theme/button_padding', $default );// @codingStandardsIgnoreLine. + $padding = apply_filters( 'uabb/theme/button_padding', $default_button_padding );// @codingStandardsIgnoreLine. if ( '' === $padding ) { $padding = '12px 24px'; } } } else { - $padding = $default; + $padding = $default_button_padding; } return $padding; @@ -599,22 +599,22 @@ function uabb_theme_button_padding( $default ) { * Provide option to override the element defaults from theme options. * * @since 1.3.1 - * @param var $default Checks if user has set the padding, if yes, returns users value else checks + * @param var $default_button_padding Checks if user has set the padding, if yes, returns users value else checks * for filtered value. * @return string - padding value */ -function uabb_theme_default_button_padding( $default ) { +function uabb_theme_default_button_padding( $default_button_padding ) { $padding = ''; - if ( '' === $default ) { + if ( '' === $default_button_padding ) { - $padding = apply_filters( 'uabb/global/button_padding', $default );// @codingStandardsIgnoreLine. + $padding = apply_filters( 'uabb/global/button_padding', $default_button_padding );// @codingStandardsIgnoreLine. if ( '' === $padding ) { - $padding = apply_filters( 'uabb_theme_default_button_padding', $default );// @codingStandardsIgnoreLine. + $padding = apply_filters( 'uabb_theme_default_button_padding', $default_button_padding );// @codingStandardsIgnoreLine. } } else { - $padding = $default; + $padding = $default_button_padding; } return $padding; @@ -622,25 +622,25 @@ function uabb_theme_default_button_padding( $default ) { /** * Provide option to override the element defaults from theme options. * - * @param var $default Checks if user has set the padding, if yes, returns users value else checks + * @param var $default_button_vertical_padding Checks if user has set the padding, if yes, returns users value else checks * for filtered value. * @return string - padding value */ -function uabb_theme_button_vertical_padding( $default ) { +function uabb_theme_button_vertical_padding( $default_button_vertical_padding ) { $padding = ''; - if ( '' === $default ) { + if ( '' === $default_button_vertical_padding ) { - $padding = apply_filters( 'uabb/global/button_vertical_padding', $default );// @codingStandardsIgnoreLine. + $padding = apply_filters( 'uabb/global/button_vertical_padding', $default_button_vertical_padding );// @codingStandardsIgnoreLine. if ( '' === $padding ) { - $padding = apply_filters( 'uabb_theme_button_vertical_padding', $default ); + $padding = apply_filters( 'uabb_theme_button_vertical_padding', $default_button_vertical_padding ); if ( '' === $padding ) { $padding = '12'; } } } else { - $padding = $default; + $padding = $default_button_vertical_padding; } return $padding; @@ -648,25 +648,25 @@ function uabb_theme_button_vertical_padding( $default ) { /** * Provide option to override the element defaults from theme options. * - * @param var $default checks if user has set the padding, if yes, returns users value else checks + * @param var $default_button_horizontal_padding checks if user has set the padding, if yes, returns users value else checks * for filtered value. * @return string - padding value */ -function uabb_theme_button_horizontal_padding( $default ) { +function uabb_theme_button_horizontal_padding( $default_button_horizontal_padding ) { $padding = ''; - if ( '' === $default ) { + if ( '' === $default_button_horizontal_padding ) { - $padding = apply_filters( 'uabb/global/button_horizontal_padding', $default );// @codingStandardsIgnoreLine. + $padding = apply_filters( 'uabb/global/button_horizontal_padding', $default_button_horizontal_padding );// @codingStandardsIgnoreLine. if ( '' === $padding ) { - $padding = apply_filters( 'uabb_theme_button_horizontal_padding', $default ); + $padding = apply_filters( 'uabb_theme_button_horizontal_padding', $default_button_horizontal_padding ); if ( '' === $padding ) { $padding = '24'; } } } else { - $padding = $default; + $padding = $default_button_horizontal_padding; } return $padding; @@ -675,25 +675,25 @@ function uabb_theme_button_horizontal_padding( $default ) { /** * Provide option to override the element defaults from theme options. * - * @param var $default Checks if user has set the radius, if yes, returns users value else checks + * @param var $default_button_border_radius Checks if user has set the radius, if yes, returns users value else checks * for filtered value. * @return string - radius value */ -function uabb_theme_button_border_radius( $default ) { +function uabb_theme_button_border_radius( $default_button_border_radius ) { $radius = ''; - if ( '' === $default ) { + if ( '' === $default_button_border_radius ) { - $radius = apply_filters( 'uabb/global/button_border_radius', $default ); // @codingStandardsIgnoreLine. + $radius = apply_filters( 'uabb/global/button_border_radius', $default_button_border_radius ); // @codingStandardsIgnoreLine. if ( '' === $radius ) { - $radius = apply_filters( 'uabb_theme_button_border_radius', $default ); + $radius = apply_filters( 'uabb_theme_button_border_radius', $default_button_border_radius ); if ( '' === $radius ) { $radius = '4'; } } } else { - $radius = $default; + $radius = $default_button_border_radius; } return $radius; } @@ -701,22 +701,22 @@ function uabb_theme_button_border_radius( $default ) { * Provide option to override the element defaults from theme options. * * @since 1.3.1 - * @param var $default Checks if user has set the width, if yes, returns users value else checks + * @param var $default_button_border_width Checks if user has set the width, if yes, returns users value else checks * for filtered value. * @return string - width value */ -function uabb_theme_button_border_width( $default ) { +function uabb_theme_button_border_width( $default_button_border_width ) { $width = array(); - if ( '' === $default ) { + if ( '' === $default_button_border_width ) { - $width = apply_filters( 'uabb_global_button_border_width', $default ); + $width = apply_filters( 'uabb_global_button_border_width', $default_button_border_width ); if ( '' === $width ) { - $width = apply_filters( 'uabb_theme_button_border_width', $default ); + $width = apply_filters( 'uabb_theme_button_border_width', $default_button_border_width ); } } else { - $width = $default; + $width = $default_button_border_width; } return $width; } @@ -724,22 +724,22 @@ function uabb_theme_button_border_width( $default ) { * Provide option to override the element defaults from theme options. * * @since 1.3.1 - * @param var $default Checks if user has set the color, if yes, returns users value else checks for + * @param var $default_button_border_color Checks if user has set the color, if yes, returns users value else checks for * filtered value. * @return string - hex value for the border color */ -function uabb_theme_border_color( $default ) { +function uabb_theme_border_color( $default_button_border_color ) { $color = ''; - if ( '' === $default ) { + if ( '' === $default_button_border_color ) { - $color = apply_filters( 'uabb_global_border_color', $default ); + $color = apply_filters( 'uabb_global_border_color', $default_button_border_color ); if ( '' === $color ) { - $color = apply_filters( 'uabb_theme_border_color', $default ); + $color = apply_filters( 'uabb_theme_border_color', $default_button_border_color ); } } else { - $color = $default; + $color = $default_button_border_color; } return $color; @@ -748,22 +748,22 @@ function uabb_theme_border_color( $default ) { * Provide option to override the element defaults from theme options. * * @since 1.3.1 - * @param var $default Checks if user has set the hover color, if yes, returns users value else checks for + * @param var $default_button_border_hover_color Checks if user has set the hover color, if yes, returns users value else checks for * filtered value. * @return string - hex value for the border hover color */ -function uabb_theme_border_hover_color( $default ) { +function uabb_theme_border_hover_color( $default_button_border_hover_color ) { $color = ''; - if ( '' === $default ) { + if ( '' === $default_button_border_hover_color ) { - $color = apply_filters( 'uabb_global_border_hover_color', $default ); + $color = apply_filters( 'uabb_global_border_hover_color', $default_button_border_hover_color ); if ( '' === $color ) { - $color = apply_filters( 'uabb_theme_border_hover_color', $default ); + $color = apply_filters( 'uabb_theme_border_hover_color', $default_button_border_hover_color ); } } else { - $color = $default; + $color = $default_button_border_hover_color; } return $color; @@ -796,23 +796,23 @@ function uabb_parse_color_to_hex( $code = '' ) { * Provide option to parse a Border param. * * @since 1.3.1 - * @param var $default Checks if user has set the Border, if yes, returns users value else checks for + * @param var $default_btn_border Checks if user has set the Border, if yes, returns users value else checks for * filtered value. * @return array - Border value for the Button */ -function uabb_theme_border( $default ) { +function uabb_theme_border( $default_btn_border ) { $border_width = uabb_theme_button_border_width( '' ); $border_color = uabb_theme_border_color( '' ); $border_radius = uabb_theme_button_border_radius( '' ); $border = array(); - if ( is_array( $default ) && ( ! empty( $default['style'] ) || ! empty( $default['color'] ) || ! empty( $default['width']['top'] ) || ! empty( $default['width']['bottom'] ) || ! empty( $default['width']['left'] ) || ! empty( $default['width']['right'] ) || ! empty( $default['radius']['top_left'] ) || ! empty( $default['radius']['top_right'] ) || ! empty( $default['radius']['bottom_left'] ) || ! empty( $default['radius']['bottom_right'] ) ) ) { + if ( is_array( $default_btn_border ) && ( ! empty( $default_btn_border['style'] ) || ! empty( $default_btn_border['color'] ) || ! empty( $default_btn_border['width']['top'] ) || ! empty( $default_btn_border['width']['bottom'] ) || ! empty( $default_btn_border['width']['left'] ) || ! empty( $default_btn_border['width']['right'] ) || ! empty( $default_btn_border['radius']['top_left'] ) || ! empty( $default_btn_border['radius']['top_right'] ) || ! empty( $default_btn_border['radius']['bottom_left'] ) || ! empty( $default_btn_border['radius']['bottom_right'] ) ) ) { - $border = $default; - } elseif ( is_object( $default ) && ( ! empty( $default->style ) || ! empty( $default->color ) || ! empty( $default->width->top ) || ! empty( $default->width->bottom ) || ! empty( $default->width->left ) || ! empty( $default->width->right ) || ! empty( $default->radius->top_left ) || ! empty( $default->radius->top_right ) || ! empty( $default->radius->bottom_left ) || ! empty( $default->radius->bottom_right ) ) ) { + $border = $default_btn_border; + } elseif ( is_object( $default_btn_border ) && ( ! empty( $default_btn_border->style ) || ! empty( $default_btn_border->color ) || ! empty( $default_btn_border->width->top ) || ! empty( $default_btn_border->width->bottom ) || ! empty( $default_btn_border->width->left ) || ! empty( $default_btn_border->width->right ) || ! empty( $default_btn_border->radius->top_left ) || ! empty( $default_btn_border->radius->top_right ) || ! empty( $default_btn_border->radius->bottom_left ) || ! empty( $default_btn_border->radius->bottom_right ) ) ) { - $border = $default; + $border = $default_btn_border; } else { @@ -846,11 +846,11 @@ function uabb_theme_border( $default ) { * Provide option to override the element defaults from theme options. * * @since 1.3.1 - * @param var $default Checks if user has set the radius, if yes, returns users value else checks + * @param var $default_btn_typography Checks if user has set the radius, if yes, returns users value else checks * for filtered value. * @return array - typography value */ -function uabb_theme_button_typography( $default ) { +function uabb_theme_button_typography( $default_btn_typography ) { $typography = array(); $font_family = array( @@ -867,13 +867,13 @@ function uabb_theme_button_typography( $default ) { $typography['desktop_font_family'] = array(); $typography['desktop_line_transform'] = array(); - if ( is_array( $default ) && ( ( array_key_exists( 'font_family', $default ) && 'Default' !== $default['font_family'] ) || ( array_key_exists( 'default', $default ) && 'default' !== $default['font_weight'] ) || ! empty( $default['font_size']['length'] ) || ! empty( $default['line_height']['length'] ) || ! empty( $default['text_transform'] ) ) ) { + if ( is_array( $default_btn_typography ) && ( ( array_key_exists( 'font_family', $default_btn_typography ) && 'Default' !== $default_btn_typography['font_family'] ) || ( array_key_exists( 'default', $default_btn_typography ) && 'default' !== $default_btn_typography['font_weight'] ) || ! empty( $default_btn_typography['font_size']['length'] ) || ! empty( $default_btn_typography['line_height']['length'] ) || ! empty( $default_btn_typography['text_transform'] ) ) ) { - $typography['desktop'] = $default; + $typography['desktop'] = $default_btn_typography; - } elseif ( '' !== $default && is_object( $default ) && ( property_exists( $default, 'font_family' ) && ( 'Default' !== $default->font_family ) || ( property_exists( $default, 'font_weight' ) && 'default' !== $default->font_weight ) || ! empty( $default->font_size->length ) || ! empty( $default->line_height->length ) || ! empty( $default->text_transform ) ) ) { + } elseif ( '' !== $default_btn_typography && is_object( $default_btn_typography ) && ( property_exists( $default_btn_typography, 'font_family' ) && ( 'Default' !== $default_btn_typography->font_family ) || ( property_exists( $default_btn_typography, 'font_weight' ) && 'default' !== $default_btn_typography->font_weight ) || ! empty( $default_btn_typography->font_size->length ) || ! empty( $default_btn_typography->line_height->length ) || ! empty( $default_btn_typography->text_transform ) ) ) { - $typography['desktop'] = $default; + $typography['desktop'] = $default_btn_typography; } else { @@ -932,8 +932,10 @@ function uabb_theme_button_typography( $default ) { * Provide option to override the element defaults from theme options. * * @since 1.3.1 - * @param var $value Checks if user has set the Padding, if yes, returns users value else checks - * for filtered value. + * @param var $mode Checks if user has set the Padding, if yes, returns users value else checks + * for filtered value. + * @param string $value The specific padding value to retrieve. + * @return array - Padding value */ function uabb_theme_padding_button( $mode, $value ) { diff --git a/classes/uabb-global-integration.php b/classes/uabb-global-integration.php index efc38ffb..1954cb7d 100644 --- a/classes/uabb-global-integration.php +++ b/classes/uabb-global-integration.php @@ -23,7 +23,7 @@ class UABBGlobalSettingsOptions { * * @since 1.0 */ - function __construct() { + public function __construct() { $this->uabb_setting_options = UABB_Global_Styling::get_uabb_global_settings(); @@ -57,7 +57,7 @@ function __construct() { * @param var $color gets the color. * @param var $opc gets the opacity for the colorpicker. */ - function uabb_get_global_option( $option, $color = false, $opc = false ) { + public function uabb_get_global_option( $option, $color = false, $opc = false ) { $uabb_setting_options = $this->uabb_setting_options; if ( isset( $uabb_setting_options->enable_global ) && ( 'no' === $uabb_setting_options->enable_global ) ) { @@ -75,7 +75,7 @@ function uabb_get_global_option( $option, $color = false, $opc = false ) { /** * Theme Color - */ - function uabb_global_theme_color() { + public function uabb_global_theme_color() { $color = $this->uabb_get_global_option( 'theme_color', true ); return $color; @@ -86,7 +86,7 @@ function uabb_global_theme_color() { /** * Text Color - */ - function uabb_global_text_color() { + public function uabb_global_text_color() { $color = $this->uabb_get_global_option( 'theme_text_color', true ); return $color; @@ -97,7 +97,7 @@ function uabb_global_text_color() { /** * Link Color - */ - function uabb_global_link_color() { + public function uabb_global_link_color() { $color = $this->uabb_get_global_option( 'theme_link_color', true ); return $color; @@ -108,7 +108,7 @@ function uabb_global_link_color() { /** * Link Hover Color - */ - function uabb_global_link_hover_color() { + public function uabb_global_link_hover_color() { $color = $this->uabb_get_global_option( 'theme_link_hover_color', true ); return $color; @@ -118,14 +118,14 @@ function uabb_global_link_hover_color() { /** * Button Font Family */ - function uabb_global_button_font_family() { + public function uabb_global_button_font_family() { return $btn_font_family; } /** * Button Font Size - */ - function uabb_global_button_font_size() { + public function uabb_global_button_font_size() { $font_size = $this->uabb_get_global_option( 'btn_font_size' ); return $font_size; @@ -134,7 +134,7 @@ function uabb_global_button_font_size() { /** * Button Line Height - */ - function uabb_global_button_line_height() { + public function uabb_global_button_line_height() { $line_height = $this->uabb_get_global_option( 'btn_line_height' ); return $line_height; @@ -144,7 +144,7 @@ function uabb_global_button_line_height() { /** * Button Letter Spacing - */ - function uabb_global_button_letter_spacing() { + public function uabb_global_button_letter_spacing() { $letter_spacing = $this->uabb_get_global_option( 'btn_letter_spacing' ); return $letter_spacing; @@ -154,7 +154,7 @@ function uabb_global_button_letter_spacing() { /** * Button Text Transform - */ - function uabb_global_button_text_transform() { + public function uabb_global_button_text_transform() { $text_transform = $this->uabb_get_global_option( 'btn_text_transform' ); return $text_transform; @@ -164,7 +164,7 @@ function uabb_global_button_text_transform() { /** * Button Text Color - */ - function uabb_global_button_text_color() { + public function uabb_global_button_text_color() { $color = $this->uabb_get_global_option( 'btn_text_color', true ); return $color; @@ -174,7 +174,7 @@ function uabb_global_button_text_color() { /** * Button Text Hover Color - */ - function uabb_global_button_text_hover_color() { + public function uabb_global_button_text_hover_color() { $color = $this->uabb_get_global_option( 'btn_text_hover_color', true ); return $color; @@ -184,7 +184,7 @@ function uabb_global_button_text_hover_color() { /** * Button Background Color - */ - function uabb_global_button_bg_color() { + public function uabb_global_button_bg_color() { $color = $this->uabb_get_global_option( 'btn_bg_color', true, true ); return $color; @@ -194,7 +194,7 @@ function uabb_global_button_bg_color() { /** * Button Background Hover Color - */ - function uabb_global_button_bg_hover_color() { + public function uabb_global_button_bg_hover_color() { $color = $this->uabb_get_global_option( 'btn_bg_hover_color', true, true ); return $color; @@ -204,7 +204,7 @@ function uabb_global_button_bg_hover_color() { /** * Button Border Radius - */ - function uabb_global_button_border_radius() { + public function uabb_global_button_border_radius() { $border_radius = $this->uabb_get_global_option( 'btn_border_radius' ); return $border_radius; @@ -215,7 +215,7 @@ function uabb_global_button_border_radius() { /** * Button Padding - */ - function uabb_global_button_padding() { + public function uabb_global_button_padding() { $padding = ''; $v_padding = $this->uabb_get_global_option( 'btn_vertical_padding' ); @@ -230,7 +230,7 @@ function uabb_global_button_padding() { /** * Button Padding - */ - function uabb_global_button_vertical_padding() { + public function uabb_global_button_vertical_padding() { $v_padding = ''; $v_padding = $this->uabb_get_global_option( 'btn_vertical_padding' ); @@ -240,7 +240,7 @@ function uabb_global_button_vertical_padding() { /** * Button Padding - */ - function uabb_global_button_horizontal_padding() { + public function uabb_global_button_horizontal_padding() { $h_padding = ''; $h_padding = $this->uabb_get_global_option( 'btn_horizontal_padding' ); diff --git a/classes/uabb-global-settings.php b/classes/uabb-global-settings.php index 60067117..82c345fc 100644 --- a/classes/uabb-global-settings.php +++ b/classes/uabb-global-settings.php @@ -27,7 +27,7 @@ public function __construct() { * * @since 1.0 */ - function add_options() { + public function add_options() { $global_options = UABB_Init::$uabb_options['uabb_global_settings']; diff --git a/fields/_config.php b/fields/_config.php index 5cf60f94..7d1fc0a7 100644 --- a/fields/_config.php +++ b/fields/_config.php @@ -19,7 +19,7 @@ class UABB_Custom_Field_Scripts { * * @since 1.0 */ - function __construct() { + public function __construct() { add_action( 'wp_enqueue_scripts', array( $this, 'custom_field_scripts' ) ); } @@ -28,7 +28,7 @@ function __construct() { * * @since 1.0 */ - function custom_field_scripts() { + public function custom_field_scripts() { if ( class_exists( 'FLBuilderModel' ) && FLBuilderModel::is_builder_active() ) { /* uabb-gradient field */ diff --git a/fields/uabb-gradient/uabb-gradient.php b/fields/uabb-gradient/uabb-gradient.php index 0093250b..07fe2f72 100644 --- a/fields/uabb-gradient/uabb-gradient.php +++ b/fields/uabb-gradient/uabb-gradient.php @@ -18,7 +18,7 @@ class UABB_Gradient { * * @since 1.0 */ - function __construct() { + public function __construct() { add_action( 'fl_builder_control_uabb-gradient', array( $this, 'uabb_gradient' ), 1, 4 ); add_action( 'fl_builder_custom_fields', array( $this, 'ui_fields' ), 10, 1 ); } @@ -29,7 +29,7 @@ function __construct() { * @since 1.0 * @param array $fields gets the fields for the gradient. */ - function ui_fields( $fields ) { + public function ui_fields( $fields ) { $fields['uabb-gradient'] = BB_ULTIMATE_ADDON_DIR . 'fields/uabb-gradient/ui-field-uabb-gradient.php'; return $fields; @@ -59,7 +59,7 @@ function ui_fields( $fields ) { * @param array $field gets an array of field values. * @param object $settings gets the object of respective fields. */ - function uabb_gradient( $name, $value, $field, $settings ) { + public function uabb_gradient( $name, $value, $field, $settings ) { $name_new = 'uabb_' . $name; $value = (array) $value; diff --git a/modules/image-icon/image-icon.php b/modules/image-icon/image-icon.php index a5ee3d30..616605e3 100644 --- a/modules/image-icon/image-icon.php +++ b/modules/image-icon/image-icon.php @@ -249,13 +249,13 @@ public function get_alt() { $photo = $this->get_data(); if ( ! empty( $photo->alt ) ) { - return htmlspecialchars( $photo->alt ); + return htmlspecialchars( $photo->alt, ENT_QUOTES, 'UTF-8' ); // Added 'UTF-8' encoding. } elseif ( ! empty( $photo->description ) ) { - return htmlspecialchars( $photo->description ); + return htmlspecialchars( $photo->description, ENT_QUOTES, 'UTF-8' ); // Added 'UTF-8' encoding. } elseif ( ! empty( $photo->caption ) ) { - return htmlspecialchars( $photo->caption ); + return htmlspecialchars( $photo->caption, ENT_QUOTES, 'UTF-8' ); // Added 'UTF-8' encoding. } elseif ( ! empty( $photo->title ) ) { - return htmlspecialchars( $photo->title ); + return htmlspecialchars( $photo->title, ENT_QUOTES, 'UTF-8' ); // Added 'UTF-8' encoding. } } diff --git a/modules/image-separator/image-separator.php b/modules/image-separator/image-separator.php index 48f7a84d..37256ffe 100644 --- a/modules/image-separator/image-separator.php +++ b/modules/image-separator/image-separator.php @@ -245,13 +245,13 @@ public function get_alt() { $photo = $this->get_data(); if ( ! empty( $photo->alt ) ) { - return htmlspecialchars( $photo->alt ); + return htmlspecialchars( $photo->alt, ENT_QUOTES, 'UTF-8' ); // Added 'UTF-8' encoding. } elseif ( ! empty( $photo->description ) ) { - return htmlspecialchars( $photo->description ); + return htmlspecialchars( $photo->description, ENT_QUOTES, 'UTF-8' ); // Added 'UTF-8' encoding. } elseif ( ! empty( $photo->caption ) ) { - return htmlspecialchars( $photo->caption ); + return htmlspecialchars( $photo->caption, ENT_QUOTES, 'UTF-8' ); // Added 'UTF-8' encoding. } elseif ( ! empty( $photo->title ) ) { - return htmlspecialchars( $photo->title ); + return htmlspecialchars( $photo->title, ENT_QUOTES, 'UTF-8' ); // Added 'UTF-8' encoding. } } diff --git a/modules/uabb-heading/includes/frontend.css.php b/modules/uabb-heading/includes/frontend.css.php index 414b0ce4..63ec47b8 100644 --- a/modules/uabb-heading/includes/frontend.css.php +++ b/modules/uabb-heading/includes/frontend.css.php @@ -197,7 +197,8 @@ 'photo_src' => ( isset( $settings->photo_src ) ) ? $settings->photo_src : '', /* - Icon color */ + Icon color + */ // 'icon_color' => $settings->separator_icon_color, ); diff --git a/phpcs.xml.dist b/phpcs.xml.dist index 6b173448..7d6ae6b7 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -16,12 +16,18 @@ + + + *.css.php + *.js.php + */node_modules/* */vendor/* + */tests/* */admin/bsf-core/* */classes/library/batch-processing/* From 24c7311ccc01af7b0b94ce5b789964dc95a1e674 Mon Sep 17 00:00:00 2001 From: Abhishek Date: Mon, 30 Sep 2024 13:02:33 +0530 Subject: [PATCH 20/29] Resolved the CSS --- modules/info-list/css/frontend.css | 154 +++++++++++++++-------------- 1 file changed, 78 insertions(+), 76 deletions(-) diff --git a/modules/info-list/css/frontend.css b/modules/info-list/css/frontend.css index ee2efc4f..d11c78c3 100644 --- a/modules/info-list/css/frontend.css +++ b/modules/info-list/css/frontend.css @@ -1,11 +1,11 @@ .uabb-info-list .uabb-info-list-wrapper { - margin: 0; - padding: 0; + margin: 0; + padding: 0; } .uabb-info-list .uabb-info-list-left, .uabb-info-list .uabb-info-list-right { - float:none; + float: none; } .uabb-info-list-content-wrapper .uabb-info-list-content h2, @@ -13,166 +13,168 @@ .uabb-info-list-content-wrapper .uabb-info-list-content h4, .uabb-info-list-content-wrapper .uabb-info-list-content h5, .uabb-info-list-content-wrapper .uabb-info-list-content h6 { - margin: 0; - padding: 0; + margin: 0; + padding: 0; } .uabb-info-list .uabb-info-list-wrapper > li { - list-style: none; - margin: 0; - padding: 0; - position: relative; + list-style: none; + margin: 0; + padding: 0; + position: relative; } .uabb-info-list-content-wrapper { - position: relative; - z-index: 5; + position: relative; + z-index: 4; } .uabb-info-list-icon { - position: relative; - z-index: 5; + position: relative; + z-index: 4; } /* Text editor support */ .uabb-module-content .uabb-text-editor *:not(a) { - color: inherit; + color: inherit; } .uabb-module-content .uabb-text-editor *:not(i) { - font-family: inherit; + font-family: inherit; } -.uabb-module-content .uabb-text-editor *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) { - font-size: inherit; - line-height: inherit; +.uabb-module-content + .uabb-text-editor + *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) { + font-size: inherit; + line-height: inherit; } -.uabb-module-content .uabb-text-editor *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(strong):not(b) { - font-weight: inherit; +.uabb-module-content + .uabb-text-editor + *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(strong):not(b) { + font-weight: inherit; } .uabb-info-list-content .uabb-info-list-description p:last-of-type { - margin-bottom: 0; + margin-bottom: 0; } /* Connector Classes */ .uabb-info-list-connector, .uabb-info-list-connector-top { - height: 100%; - position: absolute; - z-index: 1; - border-width: 0 0 0 1px; + height: 100%; + position: absolute; + z-index: 1; + border-width: 0 0 0 1px; } .uabb-info-list-connector-top { - top: 0; + top: 0; } .uabb-info-list-item:first-child .uabb-info-list-connector-top { - display: none; + display: none; } .uabb-info-list-wrapper li:last-child .uabb-info-list-connector { - display: none; + display: none; } - .uabb-info-list-content-wrapper.uabb-info-list-left .uabb-info-list-icon, .uabb-info-list-content-wrapper.uabb-info-list-right .uabb-info-list-icon { - display: inline-block; - vertical-align: top; + display: inline-block; + vertical-align: top; } .uabb-info-list-content-wrapper.uabb-info-list-left .uabb-info-list-content, .uabb-info-list-content-wrapper.uabb-info-list-right .uabb-info-list-content { - display: inline-block; -} - + display: inline-block; +} /* Classe For Top Styles */ .uabb-info-list-content-wrapper.uabb-info-list-top .uabb-info-list-icon, .uabb-info-list-content-wrapper.uabb-info-list-top .uabb-info-list-content { - display: block; + display: block; } - /* Alignment Left */ .uabb-info-list-content-wrapper.uabb-info-list-left .uabb-info-list-icon { - margin-right: 20px; + margin-right: 20px; } - /* Alignment Right */ -.uabb-info-list-content-wrapper.uabb-info-list-right{ - text-align: right; - direction: rtl; +.uabb-info-list-content-wrapper.uabb-info-list-right { + text-align: right; + direction: rtl; } .uabb-info-list-content-wrapper.uabb-info-list-right * { - direction: ltr; + direction: ltr; } .uabb-info-list-content-wrapper.uabb-info-list-right .uabb-info-list-icon { - margin-left: 20px; + margin-left: 20px; } /* Alignment Top */ /* Icon Position to Top*/ .uabb-info-list-wrapper.uabb-info-list-top { - display: block; + display: block; } .uabb-info-list-wrapper.uabb-info-list-top li { - display: inline-block; + display: inline-block; } .uabb-info-list-wrapper.uabb-info-list-top li .uabb-info-list-icon { - float: none; - margin: 0 auto; + float: none; + margin: 0 auto; } .uabb-info-list-wrapper.uabb-info-list-top li .uabb-info-list-content { - margin: 15px; - padding-bottom: 0; - text-align: center; + margin: 15px; + padding-bottom: 0; + text-align: center; } .uabb-info-list-wrapper.uabb-info-list-top li .uabb-info-list-connector { - height: 0; - left: 50%; - margin-left: 0; - position: absolute; - width: 100%; + height: 0; + left: 50%; + margin-left: 0; + position: absolute; + width: 100%; } .uabb-info-list-content.uabb-info-list-top { - margin-right: 1em; - padding: 0px; + margin-right: 1em; + padding: 0px; } .uabb-info-list-link { - position: absolute; - width: 100%; - height: 100%; - left: 0; - top: 0; - bottom: 0; - right: 0; - z-index: 9; + position: absolute; + width: 100%; + height: 100%; + left: 0; + top: 0; + bottom: 0; + right: 0; + z-index: 9; } .uabb-info-list-item .uabb-info-list-icon .uabb-icon-wrap { - vertical-align: middle; + vertical-align: middle; } -.uabb-info-list-icon .icon{ - display: inline-block; +.uabb-info-list-icon .icon { + display: inline-block; } .uabb-info-list-item .uabb-info-list-icon a { - box-shadow: none; + box-shadow: none; } .uabb-info-list-wrapper.uabb-info-list-top .uabb-info-list-item { - width: 100%; - vertical-align: top; + width: 100%; + vertical-align: top; } -@media only screen and (max-width:767px) { - .uabb-info-list-wrapper.uabb-info-list-top .uabb-info-list-item .uabb-info-list-connector { - display:none; - } -} \ No newline at end of file +@media only screen and (max-width: 767px) { + .uabb-info-list-wrapper.uabb-info-list-top + .uabb-info-list-item + .uabb-info-list-connector { + display: none; + } +} From 2f816f0acb3966765dd1687dbe609ef1b00c0656 Mon Sep 17 00:00:00 2001 From: Abhishek Date: Mon, 30 Sep 2024 13:06:05 +0530 Subject: [PATCH 21/29] Added Comment for Z index changes --- modules/info-list/css/frontend.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/info-list/css/frontend.css b/modules/info-list/css/frontend.css index d11c78c3..76ae7a87 100644 --- a/modules/info-list/css/frontend.css +++ b/modules/info-list/css/frontend.css @@ -22,10 +22,14 @@ padding: 0; position: relative; } + +/* Reduced Z-index for Info List */ .uabb-info-list-content-wrapper { position: relative; z-index: 4; } + +/* Reduced Z-index for Info List Icon */ .uabb-info-list-icon { position: relative; z-index: 4; From 03ff672835b09e7731b7336da176e788faa0b9c0 Mon Sep 17 00:00:00 2001 From: Abhishek Date: Mon, 30 Sep 2024 13:19:46 +0530 Subject: [PATCH 22/29] Added Changelog --- README.md | 3 +++ readme.txt | 3 +++ 2 files changed, 6 insertions(+) diff --git a/README.md b/README.md index 859d3169..dd56dcb2 100644 --- a/README.md +++ b/README.md @@ -215,6 +215,9 @@ Yes it is! This plugin comes with .po and .mo files. It is already translated in ## Changelog ## +### 1.5.11.2 ### +* Fixed: Info List - Icon overlap issue. + ### 1.5.11 ### * Improvement: Hardened the security of plugin. * Improvement: Compatibility with Beaver Builder 2.9 diff --git a/readme.txt b/readme.txt index 575a4aa1..b5a2888c 100644 --- a/readme.txt +++ b/readme.txt @@ -215,6 +215,9 @@ Yes it is! This plugin comes with .po and .mo files. It is already translated in == Changelog == += 1.5.11.2 = +* Fixed: Info List - Icon overlap issue. + = 1.5.11 = * Improvement: Hardened the security of plugin. * Improvement: Compatibility with Beaver Builder 2.9 From 6492cbeaf6608f509765fb88f4234111bb6fedb1 Mon Sep 17 00:00:00 2001 From: Abhishek Date: Mon, 30 Sep 2024 15:29:18 +0530 Subject: [PATCH 23/29] Reverted GPL license --- lib/astra-notices/composer.json | 70 ++++++++++++++++----------------- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/lib/astra-notices/composer.json b/lib/astra-notices/composer.json index 3496441a..5f077dc3 100644 --- a/lib/astra-notices/composer.json +++ b/lib/astra-notices/composer.json @@ -1,38 +1,38 @@ { - "name": "brainstormforce/astra-notices", - "type": "wordpress-plugin", - "description": "Easily create admin notices", - "license": "GPL-3.0-or-later", - "authors": [ - { - "name": "Brainstorm Force", - "email": "hello@bsf.io" - } - ], - "require": { - "composer/installers": "^2.0" - }, - "require-dev": { - "dealerdirect/phpcodesniffer-composer-installer": "^0.7.1", - "phpcompatibility/phpcompatibility-wp": "^2.1", - "phpunit/phpunit": "^7", - "wp-cli/dist-archive-command": "^2.0", - "wp-coding-standards/wpcs": "^2.3", - "wp-phpunit/wp-phpunit": "^5", - "roots/wordpress": "^5.9", - "yoast/phpunit-polyfills": "^1.0" - }, - "config": { - "allow-plugins": { - "composer/installers": true, - "dealerdirect/phpcodesniffer-composer-installer": true, - "roots/wordpress-core-installer": true - } - }, - "minimum-stability": "stable", - "scripts": { - "format": "vendor/bin/phpcbf", - "lint": "vendor/bin/phpcs", - "test": "vendor/bin/phpunit" + "name": "brainstormforce/astra-notices", + "type": "wordpress-plugin", + "description": "Easily create admin notices", + "license": "GPL v3", + "authors": [ + { + "name": "Brainstorm Force", + "email": "hello@bsf.io" } + ], + "require": { + "composer/installers": "^2.0" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "^0.7.1", + "phpcompatibility/phpcompatibility-wp": "^2.1", + "phpunit/phpunit": "^7", + "wp-cli/dist-archive-command": "^2.0", + "wp-coding-standards/wpcs": "^2.3", + "wp-phpunit/wp-phpunit": "^5", + "roots/wordpress": "^5.9", + "yoast/phpunit-polyfills": "^1.0" + }, + "config": { + "allow-plugins": { + "composer/installers": true, + "dealerdirect/phpcodesniffer-composer-installer": true, + "roots/wordpress-core-installer": true + } + }, + "minimum-stability": "stable", + "scripts": { + "format": "vendor/bin/phpcbf", + "lint": "vendor/bin/phpcs", + "test": "vendor/bin/phpunit" + } } From 9c26eb376dd5b7e44b5d68fde63037aa2036e3a4 Mon Sep 17 00:00:00 2001 From: Abhishek Date: Tue, 1 Oct 2024 09:20:48 +0530 Subject: [PATCH 24/29] Reverted some changes to avoid future error from PHPStan fixes --- .../class-bsf-analytics-stats.php | 3 +- fields/uabb-gradient/uabb-gradient.php | 2 +- phpstan-baseline.neon | 86 ++++++++++++------- phpstan.neon | 2 - 4 files changed, 55 insertions(+), 38 deletions(-) diff --git a/admin/bsf-analytics/class-bsf-analytics-stats.php b/admin/bsf-analytics/class-bsf-analytics-stats.php index c51580d8..179f822c 100644 --- a/admin/bsf-analytics/class-bsf-analytics-stats.php +++ b/admin/bsf-analytics/class-bsf-analytics-stats.php @@ -243,8 +243,7 @@ function wp_timezone_string() { return $timezone_string; } - $offset = get_option( 'gmt_offset' ); - $offset = is_numeric( $offset ) ? (float) $offset : 0; + $offset = (float) get_option( 'gmt_offset' ); $hours = (int) $offset; $minutes = ( $offset - $hours ); diff --git a/fields/uabb-gradient/uabb-gradient.php b/fields/uabb-gradient/uabb-gradient.php index 48bd5eb4..76065868 100644 --- a/fields/uabb-gradient/uabb-gradient.php +++ b/fields/uabb-gradient/uabb-gradient.php @@ -30,7 +30,7 @@ public function __construct() { * @param array $fields gets the fields for the gradient. * @return array */ - public function ui_fields( array $fields ) { + public function ui_fields( $fields ) { $fields['uabb-gradient'] = BB_ULTIMATE_ADDON_DIR . 'fields/uabb-gradient/ui-field-uabb-gradient.php'; return $fields; diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index c4ac64ff..305c97d7 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -11,7 +11,12 @@ parameters: - '#type has no value type specified in iterable type array\.$#' - '#with no value type specified in iterable type array\.$#' - "#^While loop condition is always true\\.$#" - + + - + message: "#^Cannot cast mixed to float\\.$#" + count: 1 + path: admin/bsf-analytics/class-bsf-analytics-stats.php + - message: "#^Method BSF_Analytics_Stats\\:\\:format_plugin\\(\\) return type has no value type specified in iterable type array\\.$#" count: 1 @@ -323,7 +328,7 @@ parameters: path: classes/class-uabb-update.php - - message: "#^PHPDoc tag @var has invalid value \\(\\$instance Class instance\\.\\)\\: Unexpected token \"\\$instance\", expected type at offset 65$#" + message: "#^PHPDoc tag @var has invalid value \\(\\$instance Class instance\\.\\)\\: Unexpected token \"\\$instance\", expected type at offset 61$#" count: 1 path: classes/class-uabb-update.php @@ -427,11 +432,6 @@ parameters: count: 1 path: classes/uabb-bbtheme-global-integration.php - - - message: "#^Call to function is_array\\(\\) with non\\-falsy\\-string will always evaluate to false\\.$#" - count: 1 - path: classes/uabb-global-functions.php - - message: "#^Function array_replace_recursive\\(\\) has parameter \\$replacements with no value type specified in iterable type array\\.$#" count: 1 @@ -487,6 +487,16 @@ parameters: count: 1 path: fields/uabb-gradient/uabb-gradient.php + - + message: "#^Static call to instance method UABB_UI_Panels\\:\\:uabb_templates_data\\(\\)\\.$#" + count: 1 + path: includes/ui-panel-presets.php + + - + message: "#^Static call to instance method UABB_UI_Panels\\:\\:uabb_templates_data\\(\\)\\.$#" + count: 1 + path: includes/ui-panel-sections.php + - message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \", expected '\\(' at offset 120$#" count: 1 @@ -523,62 +533,62 @@ parameters: path: modules/image-icon/image-icon.php - - message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\n\\\\t \", expected '\\(' at offset 113$#" + message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \", expected '\\(' at offset 116$#" count: 1 path: modules/image-icon/image-icon.php - - message: "#^PHPDoc tag @method has invalid value \\(_get_cropped_path\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 77$#" + message: "#^PHPDoc tag @method has invalid value \\(_get_cropped_path\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 80$#" count: 1 path: modules/image-icon/image-icon.php - - message: "#^PHPDoc tag @method has invalid value \\(_get_editor\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 65$#" + message: "#^PHPDoc tag @method has invalid value \\(_get_editor\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 68$#" count: 1 path: modules/image-icon/image-icon.php - - message: "#^PHPDoc tag @method has invalid value \\(_get_uncropped_url\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 93$#" + message: "#^PHPDoc tag @method has invalid value \\(_get_uncropped_url\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 96$#" count: 1 path: modules/image-icon/image-icon.php - - message: "#^PHPDoc tag @method has invalid value \\(_has_source\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 71$#" + message: "#^PHPDoc tag @method has invalid value \\(_has_source\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 74$#" count: 1 path: modules/image-icon/image-icon.php - - message: "#^PHPDoc tag @method has invalid value \\(crop\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 60$#" + message: "#^PHPDoc tag @method has invalid value \\(crop\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 63$#" count: 1 path: modules/image-icon/image-icon.php - - message: "#^PHPDoc tag @method has invalid value \\(delete\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 74$#" + message: "#^PHPDoc tag @method has invalid value \\(delete\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 77$#" count: 1 path: modules/image-icon/image-icon.php - - message: "#^PHPDoc tag @method has invalid value \\(get_alt\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 83$#" + message: "#^PHPDoc tag @method has invalid value \\(get_alt\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 86$#" count: 1 path: modules/image-icon/image-icon.php - - message: "#^PHPDoc tag @method has invalid value \\(get_classes\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 82$#" + message: "#^PHPDoc tag @method has invalid value \\(get_classes\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 85$#" count: 1 path: modules/image-icon/image-icon.php - - message: "#^PHPDoc tag @method has invalid value \\(get_data\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 87$#" + message: "#^PHPDoc tag @method has invalid value \\(get_data\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 90$#" count: 1 path: modules/image-icon/image-icon.php - - message: "#^PHPDoc tag @method has invalid value \\(get_src\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 86$#" + message: "#^PHPDoc tag @method has invalid value \\(get_src\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 89$#" count: 1 path: modules/image-icon/image-icon.php - - message: "#^PHPDoc tag @method has invalid value \\(update\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 63$#" + message: "#^PHPDoc tag @method has invalid value \\(update\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 66$#" count: 1 path: modules/image-icon/image-icon.php @@ -588,75 +598,80 @@ parameters: path: modules/image-separator/image-separator.php - - message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\n\\\\t \", expected '\\(' at offset 118$#" + message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \", expected '\\(' at offset 121$#" count: 1 path: modules/image-separator/image-separator.php - - message: "#^PHPDoc tag @method has invalid value \\(_get_cropped_path\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 91$#" + message: "#^PHPDoc tag @method has invalid value \\(_get_cropped_path\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 94$#" count: 1 path: modules/image-separator/image-separator.php - - message: "#^PHPDoc tag @method has invalid value \\(_get_editor\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 80$#" + message: "#^PHPDoc tag @method has invalid value \\(_get_editor\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 83$#" count: 1 path: modules/image-separator/image-separator.php - - message: "#^PHPDoc tag @method has invalid value \\(_get_uncropped_url\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 93$#" + message: "#^PHPDoc tag @method has invalid value \\(_get_uncropped_url\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 96$#" count: 2 path: modules/image-separator/image-separator.php - - message: "#^PHPDoc tag @method has invalid value \\(_has_source\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 71$#" + message: "#^PHPDoc tag @method has invalid value \\(_has_source\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 74$#" count: 1 path: modules/image-separator/image-separator.php - - message: "#^PHPDoc tag @method has invalid value \\(crop\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 68$#" + message: "#^PHPDoc tag @method has invalid value \\(crop\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 71$#" count: 1 path: modules/image-separator/image-separator.php - - message: "#^PHPDoc tag @method has invalid value \\(delete\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 71$#" + message: "#^PHPDoc tag @method has invalid value \\(delete\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\*\", expected '\\(' at offset 74$#" count: 1 path: modules/image-separator/image-separator.php - - message: "#^PHPDoc tag @method has invalid value \\(get_alt\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 75$#" + message: "#^PHPDoc tag @method has invalid value \\(get_alt\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 78$#" count: 1 path: modules/image-separator/image-separator.php - - message: "#^PHPDoc tag @method has invalid value \\(get_classes\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 81$#" + message: "#^PHPDoc tag @method has invalid value \\(get_classes\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 84$#" count: 1 path: modules/image-separator/image-separator.php - - message: "#^PHPDoc tag @method has invalid value \\(get_data\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 62$#" + message: "#^PHPDoc tag @method has invalid value \\(get_data\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\*\", expected '\\(' at offset 65$#" count: 1 path: modules/image-separator/image-separator.php - - message: "#^PHPDoc tag @method has invalid value \\(get_src\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 69$#" + message: "#^PHPDoc tag @method has invalid value \\(get_src\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 72$#" count: 1 path: modules/image-separator/image-separator.php - - message: "#^PHPDoc tag @method has invalid value \\(update\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 63$#" + message: "#^PHPDoc tag @method has invalid value \\(update\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 66$#" count: 1 path: modules/image-separator/image-separator.php - - message: "#^PHPDoc tag @property has invalid value \\(\\$_editor\\)\\: Unexpected token \"\\$_editor\", expected type at offset 62$#" + message: "#^PHPDoc tag @property has invalid value \\(\\$_editor\\)\\: Unexpected token \"\\$_editor\", expected type at offset 65$#" count: 1 path: modules/image-separator/image-separator.php - - message: "#^PHPDoc tag @property has invalid value \\(\\$data\\)\\: Unexpected token \"\\$data\", expected type at offset 62$#" + message: "#^PHPDoc tag @property has invalid value \\(\\$data\\)\\: Unexpected token \"\\$data\", expected type at offset 65$#" count: 1 path: modules/image-separator/image-separator.php + - + message: "#^Method UABBInfoList\\:\\:get_icon\\(\\) has no return type specified\\.$#" + count: 1 + path: modules/info-list/info-list.php + - message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \", expected '\\(' at offset 115$#" count: 1 @@ -687,6 +702,11 @@ parameters: count: 1 path: modules/info-table/info-table.php + - + message: "#^Method RibbonModule\\:\\:get_icon\\(\\) has no return type specified\\.$#" + count: 1 + path: modules/ribbon/ribbon.php + - message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \", expected '\\(' at offset 112$#" count: 1 diff --git a/phpstan.neon b/phpstan.neon index d030483e..4585b51d 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -24,8 +24,6 @@ parameters: - languages - modules - - ignoreErrors: - '#Call to an undefined method [a-zA-Z0-9\\_]+\:\:add_control\(\).$#' - '#Call to an undefined method [^\s]+\.$#' From fe7c50dcd84d86de631bc034b401aed496bcde7c Mon Sep 17 00:00:00 2001 From: Abhishek Date: Tue, 1 Oct 2024 09:27:07 +0530 Subject: [PATCH 25/29] Resolved phpcbf --- phpstan-baseline.neon | 130 +++++++++++++++++++++--------------------- 1 file changed, 65 insertions(+), 65 deletions(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 305c97d7..eb6f18d5 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -11,7 +11,7 @@ parameters: - '#type has no value type specified in iterable type array\.$#' - '#with no value type specified in iterable type array\.$#' - "#^While loop condition is always true\\.$#" - + - message: "#^Cannot cast mixed to float\\.$#" count: 1 @@ -108,7 +108,7 @@ parameters: path: classes/class-uabb-attachment.php - - message: "#^PHPDoc tag @var has invalid value \\(\\$instance Class instance\\.\\)\\: Unexpected token \"\\$instance\", expected type at offset 65$#" + message: "#^PHPDoc tag @var has invalid value \\(\\$instance Class instance\\.\\)\\: Unexpected token \"\\$instance\", expected type at offset 61$#" count: 1 path: classes/class-uabb-backward.php @@ -138,17 +138,17 @@ parameters: path: classes/class-uabb-cloud-templates.php - - message: "#^PHPDoc tag @var has invalid value \\(\\$cloud_url cloud_url\\)\\: Unexpected token \"\\$cloud_url\", expected type at offset 64$#" + message: "#^PHPDoc tag @var has invalid value \\(\\$cloud_url cloud_url\\)\\: Unexpected token \"\\$cloud_url\", expected type at offset 60$#" count: 1 path: classes/class-uabb-cloud-templates.php - - message: "#^PHPDoc tag @var has invalid value \\(\\$instance instance\\)\\: Unexpected token \"\\$instance\", expected type at offset 82$#" + message: "#^PHPDoc tag @var has invalid value \\(\\$instance instance\\)\\: Unexpected token \"\\$instance\", expected type at offset 78$#" count: 1 path: classes/class-uabb-cloud-templates.php - - message: "#^PHPDoc tag @var has invalid value \\(\\$uabb_filesystem UABB filesystem\\)\\: Unexpected token \"\\$uabb_filesystem\", expected type at offset 71$#" + message: "#^PHPDoc tag @var has invalid value \\(\\$uabb_filesystem UABB filesystem\\)\\: Unexpected token \"\\$uabb_filesystem\", expected type at offset 67$#" count: 1 path: classes/class-uabb-cloud-templates.php @@ -168,22 +168,22 @@ parameters: path: classes/class-uabb-cloud-templates.php - - message: "#^PHPDoc tag @var has invalid value \\(\\$instance Class instance\\.\\)\\: Unexpected token \"\\$instance\", expected type at offset 65$#" + message: "#^PHPDoc tag @var has invalid value \\(\\$instance Class instance\\.\\)\\: Unexpected token \"\\$instance\", expected type at offset 61$#" count: 1 path: classes/class-uabb-compatibility.php - - message: "#^PHPDoc tag @var has invalid value \\(\\$stable_version_new_page\\)\\: Unexpected token \"\\$stable_version_new_page\", expected type at offset 72$#" + message: "#^PHPDoc tag @var has invalid value \\(\\$stable_version_new_page\\)\\: Unexpected token \"\\$stable_version_new_page\", expected type at offset 68$#" count: 1 path: classes/class-uabb-compatibility.php - - message: "#^PHPDoc tag @var has invalid value \\(\\$uabb_migration\\)\\: Unexpected token \"\\$uabb_migration\", expected type at offset 75$#" + message: "#^PHPDoc tag @var has invalid value \\(\\$uabb_migration\\)\\: Unexpected token \"\\$uabb_migration\", expected type at offset 71$#" count: 1 path: classes/class-uabb-compatibility.php - - message: "#^PHPDoc tag @var has invalid value \\(\\$version_bb_check\\)\\: Unexpected token \"\\$version_bb_check\", expected type at offset 72$#" + message: "#^PHPDoc tag @var has invalid value \\(\\$version_bb_check\\)\\: Unexpected token \"\\$version_bb_check\", expected type at offset 68$#" count: 1 path: classes/class-uabb-compatibility.php @@ -253,7 +253,7 @@ parameters: path: classes/class-uabb-helper.php - - message: "#^PHPDoc tag @var has invalid value \\(\\$basic_modules Category Strings\\)\\: Unexpected token \"\\$basic_modules\", expected type at offset 83$#" + message: "#^PHPDoc tag @var has invalid value \\(\\$basic_modules Category Strings\\)\\: Unexpected token \"\\$basic_modules\", expected type at offset 79$#" count: 1 path: classes/class-uabb-helper.php @@ -498,27 +498,27 @@ parameters: path: includes/ui-panel-sections.php - - message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \", expected '\\(' at offset 120$#" + message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\n\\\\t \", expected '\\(' at offset 117$#" count: 1 path: modules/advanced-icon/advanced-icon.php - - message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \", expected '\\(' at offset 114$#" + message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\n\\\\t \", expected '\\(' at offset 111$#" count: 1 path: modules/flip-box/flip-box.php - - message: "#^PHPDoc tag @method has invalid value \\(get_icons\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 89$#" + message: "#^PHPDoc tag @method has invalid value \\(get_icons\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 86$#" count: 1 path: modules/flip-box/flip-box.php - - message: "#^PHPDoc tag @method has invalid value \\(render_button\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 88$#" + message: "#^PHPDoc tag @method has invalid value \\(render_button\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 85$#" count: 1 path: modules/flip-box/flip-box.php - - message: "#^PHPDoc tag @method has invalid value \\(render_icon\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 95$#" + message: "#^PHPDoc tag @method has invalid value \\(render_icon\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 92$#" count: 1 path: modules/flip-box/flip-box.php @@ -533,62 +533,62 @@ parameters: path: modules/image-icon/image-icon.php - - message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \", expected '\\(' at offset 116$#" + message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\n\\\\t \", expected '\\(' at offset 113$#" count: 1 path: modules/image-icon/image-icon.php - - message: "#^PHPDoc tag @method has invalid value \\(_get_cropped_path\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 80$#" + message: "#^PHPDoc tag @method has invalid value \\(_get_cropped_path\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 77$#" count: 1 path: modules/image-icon/image-icon.php - - message: "#^PHPDoc tag @method has invalid value \\(_get_editor\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 68$#" + message: "#^PHPDoc tag @method has invalid value \\(_get_editor\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 65$#" count: 1 path: modules/image-icon/image-icon.php - - message: "#^PHPDoc tag @method has invalid value \\(_get_uncropped_url\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 96$#" + message: "#^PHPDoc tag @method has invalid value \\(_get_uncropped_url\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 93$#" count: 1 path: modules/image-icon/image-icon.php - - message: "#^PHPDoc tag @method has invalid value \\(_has_source\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 74$#" + message: "#^PHPDoc tag @method has invalid value \\(_has_source\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 71$#" count: 1 path: modules/image-icon/image-icon.php - - message: "#^PHPDoc tag @method has invalid value \\(crop\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 63$#" + message: "#^PHPDoc tag @method has invalid value \\(crop\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 60$#" count: 1 path: modules/image-icon/image-icon.php - - message: "#^PHPDoc tag @method has invalid value \\(delete\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 77$#" + message: "#^PHPDoc tag @method has invalid value \\(delete\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 74$#" count: 1 path: modules/image-icon/image-icon.php - - message: "#^PHPDoc tag @method has invalid value \\(get_alt\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 86$#" + message: "#^PHPDoc tag @method has invalid value \\(get_alt\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 83$#" count: 1 path: modules/image-icon/image-icon.php - - message: "#^PHPDoc tag @method has invalid value \\(get_classes\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 85$#" + message: "#^PHPDoc tag @method has invalid value \\(get_classes\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 82$#" count: 1 path: modules/image-icon/image-icon.php - - message: "#^PHPDoc tag @method has invalid value \\(get_data\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 90$#" + message: "#^PHPDoc tag @method has invalid value \\(get_data\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 87$#" count: 1 path: modules/image-icon/image-icon.php - - message: "#^PHPDoc tag @method has invalid value \\(get_src\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 89$#" + message: "#^PHPDoc tag @method has invalid value \\(get_src\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 86$#" count: 1 path: modules/image-icon/image-icon.php - - message: "#^PHPDoc tag @method has invalid value \\(update\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 66$#" + message: "#^PHPDoc tag @method has invalid value \\(update\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 63$#" count: 1 path: modules/image-icon/image-icon.php @@ -598,72 +598,72 @@ parameters: path: modules/image-separator/image-separator.php - - message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \", expected '\\(' at offset 121$#" + message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\n\\\\t \", expected '\\(' at offset 118$#" count: 1 path: modules/image-separator/image-separator.php - - message: "#^PHPDoc tag @method has invalid value \\(_get_cropped_path\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 94$#" + message: "#^PHPDoc tag @method has invalid value \\(_get_cropped_path\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 91$#" count: 1 path: modules/image-separator/image-separator.php - - message: "#^PHPDoc tag @method has invalid value \\(_get_editor\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 83$#" + message: "#^PHPDoc tag @method has invalid value \\(_get_editor\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 80$#" count: 1 path: modules/image-separator/image-separator.php - - message: "#^PHPDoc tag @method has invalid value \\(_get_uncropped_url\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 96$#" + message: "#^PHPDoc tag @method has invalid value \\(_get_uncropped_url\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 93$#" count: 2 path: modules/image-separator/image-separator.php - - message: "#^PHPDoc tag @method has invalid value \\(_has_source\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 74$#" + message: "#^PHPDoc tag @method has invalid value \\(_has_source\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 71$#" count: 1 path: modules/image-separator/image-separator.php - - message: "#^PHPDoc tag @method has invalid value \\(crop\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 71$#" + message: "#^PHPDoc tag @method has invalid value \\(crop\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 68$#" count: 1 path: modules/image-separator/image-separator.php - - message: "#^PHPDoc tag @method has invalid value \\(delete\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\*\", expected '\\(' at offset 74$#" + message: "#^PHPDoc tag @method has invalid value \\(delete\\)\\: Unexpected token \"\\\\n\\\\t \\*\", expected '\\(' at offset 71$#" count: 1 path: modules/image-separator/image-separator.php - - message: "#^PHPDoc tag @method has invalid value \\(get_alt\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 78$#" + message: "#^PHPDoc tag @method has invalid value \\(get_alt\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 75$#" count: 1 path: modules/image-separator/image-separator.php - - message: "#^PHPDoc tag @method has invalid value \\(get_classes\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 84$#" + message: "#^PHPDoc tag @method has invalid value \\(get_classes\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 81$#" count: 1 path: modules/image-separator/image-separator.php - - message: "#^PHPDoc tag @method has invalid value \\(get_data\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\*\", expected '\\(' at offset 65$#" + message: "#^PHPDoc tag @method has invalid value \\(get_data\\)\\: Unexpected token \"\\\\n\\\\t \\*\", expected '\\(' at offset 62$#" count: 1 path: modules/image-separator/image-separator.php - - message: "#^PHPDoc tag @method has invalid value \\(get_src\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 72$#" + message: "#^PHPDoc tag @method has invalid value \\(get_src\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 69$#" count: 1 path: modules/image-separator/image-separator.php - - message: "#^PHPDoc tag @method has invalid value \\(update\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 66$#" + message: "#^PHPDoc tag @method has invalid value \\(update\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 63$#" count: 1 path: modules/image-separator/image-separator.php - - message: "#^PHPDoc tag @property has invalid value \\(\\$_editor\\)\\: Unexpected token \"\\$_editor\", expected type at offset 65$#" + message: "#^PHPDoc tag @property has invalid value \\(\\$_editor\\)\\: Unexpected token \"\\$_editor\", expected type at offset 62$#" count: 1 path: modules/image-separator/image-separator.php - - message: "#^PHPDoc tag @property has invalid value \\(\\$data\\)\\: Unexpected token \"\\$data\", expected type at offset 65$#" + message: "#^PHPDoc tag @property has invalid value \\(\\$data\\)\\: Unexpected token \"\\$data\", expected type at offset 62$#" count: 1 path: modules/image-separator/image-separator.php @@ -673,32 +673,32 @@ parameters: path: modules/info-list/info-list.php - - message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \", expected '\\(' at offset 115$#" + message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\n\\\\t \", expected '\\(' at offset 112$#" count: 1 path: modules/info-list/info-list.php - - message: "#^PHPDoc tag @method has invalid value \\(get_icons\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 79$#" + message: "#^PHPDoc tag @method has invalid value \\(get_icons\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 76$#" count: 1 path: modules/info-list/info-list.php - - message: "#^PHPDoc tag @method has invalid value \\(render_image\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 52$#" + message: "#^PHPDoc tag @method has invalid value \\(render_image\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 49$#" count: 1 path: modules/info-list/info-list.php - - message: "#^PHPDoc tag @method has invalid value \\(render_text\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 50$#" + message: "#^PHPDoc tag @method has invalid value \\(render_text\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 47$#" count: 1 path: modules/info-list/info-list.php - - message: "#^PHPDoc tag @method has invalid value \\(render_text\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 55$#" + message: "#^PHPDoc tag @method has invalid value \\(render_text\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 52$#" count: 1 path: modules/info-list/info-list.php - - message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \", expected '\\(' at offset 116$#" + message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\n\\\\t \", expected '\\(' at offset 113$#" count: 1 path: modules/info-table/info-table.php @@ -708,91 +708,91 @@ parameters: path: modules/ribbon/ribbon.php - - message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \", expected '\\(' at offset 112$#" + message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\n\\\\t \", expected '\\(' at offset 109$#" count: 1 path: modules/ribbon/ribbon.php - - message: "#^PHPDoc tag @method has invalid value \\(get_icon\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 81$#" + message: "#^PHPDoc tag @method has invalid value \\(get_icon\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 78$#" count: 1 path: modules/ribbon/ribbon.php - - message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \", expected '\\(' at offset 115$#" + message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\n\\\\t \", expected '\\(' at offset 112$#" count: 1 path: modules/slide-box/slide-box.php - - message: "#^PHPDoc tag @method has invalid value \\(render_button\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 91$#" + message: "#^PHPDoc tag @method has invalid value \\(render_button\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 88$#" count: 1 path: modules/slide-box/slide-box.php - - message: "#^PHPDoc tag @method has invalid value \\(render_dropdown_icon\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 104$#" + message: "#^PHPDoc tag @method has invalid value \\(render_dropdown_icon\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 101$#" count: 1 path: modules/slide-box/slide-box.php - - message: "#^PHPDoc tag @method has invalid value \\(render_image\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 97$#" + message: "#^PHPDoc tag @method has invalid value \\(render_image\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 94$#" count: 1 path: modules/slide-box/slide-box.php - - message: "#^PHPDoc tag @method has invalid value \\(render_link\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 87$#" + message: "#^PHPDoc tag @method has invalid value \\(render_link\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 84$#" count: 1 path: modules/slide-box/slide-box.php - - message: "#^PHPDoc tag @method has invalid value \\(render_overlay_icon\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 103$#" + message: "#^PHPDoc tag @method has invalid value \\(render_overlay_icon\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 100$#" count: 1 path: modules/slide-box/slide-box.php - - message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \", expected '\\(' at offset 116$#" + message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\n\\\\t \", expected '\\(' at offset 113$#" count: 1 path: modules/spacer-gap/spacer-gap.php - - message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \", expected '\\(' at offset 112$#" + message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\n\\\\t \", expected '\\(' at offset 109$#" count: 1 path: modules/uabb-button/uabb-button.php - - message: "#^PHPDoc tag @method has invalid value \\(get_button_style\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 82$#" + message: "#^PHPDoc tag @method has invalid value \\(get_button_style\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 79$#" count: 1 path: modules/uabb-button/uabb-button.php - - message: "#^PHPDoc tag @method has invalid value \\(get_classname\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 76$#" + message: "#^PHPDoc tag @method has invalid value \\(get_classname\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 73$#" count: 1 path: modules/uabb-button/uabb-button.php - - message: "#^PHPDoc tag @method has invalid value \\(update\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 72$#" + message: "#^PHPDoc tag @method has invalid value \\(update\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 69$#" count: 1 path: modules/uabb-button/uabb-button.php - - message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \", expected '\\(' at offset 114$#" + message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\n\\\\t \", expected '\\(' at offset 111$#" count: 1 path: modules/uabb-heading/uabb-heading.php - - message: "#^PHPDoc tag @method has invalid value \\(render_image\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 66$#" + message: "#^PHPDoc tag @method has invalid value \\(render_image\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 63$#" count: 1 path: modules/uabb-heading/uabb-heading.php - - message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \", expected '\\(' at offset 116$#" + message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\n\\\\t \", expected '\\(' at offset 113$#" count: 1 path: modules/uabb-separator/uabb-separator.php - - message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \", expected '\\(' at offset 162$#" + message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\n\\\\t \", expected '\\(' at offset 158$#" count: 1 path: modules/uabb-star-rating/uabb-star-rating.php - - message: "#^PHPDoc tag @method has invalid value \\(get_icons\\)\\: Unexpected token \"\\\\r\\\\n\\\\t\\\\t \\* \", expected '\\(' at offset 84$#" + message: "#^PHPDoc tag @method has invalid value \\(get_icons\\)\\: Unexpected token \"\\\\n\\\\t\\\\t \\* \", expected '\\(' at offset 81$#" count: 1 path: modules/uabb-star-rating/uabb-star-rating.php \ No newline at end of file From 4228d0bf11f4510568bc99803a5b96b3a3437a74 Mon Sep 17 00:00:00 2001 From: Abhishek Date: Tue, 1 Oct 2024 11:07:49 +0530 Subject: [PATCH 26/29] Reverted CSS formatting --- modules/info-list/css/frontend.css | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/modules/info-list/css/frontend.css b/modules/info-list/css/frontend.css index 76ae7a87..db5c670a 100644 --- a/modules/info-list/css/frontend.css +++ b/modules/info-list/css/frontend.css @@ -43,15 +43,11 @@ .uabb-module-content .uabb-text-editor *:not(i) { font-family: inherit; } -.uabb-module-content - .uabb-text-editor - *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) { +.uabb-module-content .uabb-text-editor *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6) { font-size: inherit; line-height: inherit; } -.uabb-module-content - .uabb-text-editor - *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(strong):not(b) { +.uabb-module-content .uabb-text-editor *:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(strong):not(b) { font-weight: inherit; } @@ -176,9 +172,7 @@ } @media only screen and (max-width: 767px) { - .uabb-info-list-wrapper.uabb-info-list-top - .uabb-info-list-item - .uabb-info-list-connector { + .uabb-info-list-wrapper.uabb-info-list-top .uabb-info-list-item .uabb-info-list-connector { display: none; } } From a270f08df648813be403491322c92a83101fbad5 Mon Sep 17 00:00:00 2001 From: Abhishek Date: Tue, 1 Oct 2024 11:18:35 +0530 Subject: [PATCH 27/29] Added correct version number --- README.md | 2 +- readme.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index dd56dcb2..dca68aff 100644 --- a/README.md +++ b/README.md @@ -215,7 +215,7 @@ Yes it is! This plugin comes with .po and .mo files. It is already translated in ## Changelog ## -### 1.5.11.2 ### +### 1.5.11.1 ### * Fixed: Info List - Icon overlap issue. ### 1.5.11 ### diff --git a/readme.txt b/readme.txt index b5a2888c..29777005 100644 --- a/readme.txt +++ b/readme.txt @@ -215,7 +215,7 @@ Yes it is! This plugin comes with .po and .mo files. It is already translated in == Changelog == -= 1.5.11.2 = += 1.5.11.1 = * Fixed: Info List - Icon overlap issue. = 1.5.11 = From 2eb007106c0881999668e098693613756e9f99bc Mon Sep 17 00:00:00 2001 From: Abhishek Date: Tue, 1 Oct 2024 11:57:51 +0530 Subject: [PATCH 28/29] Added changelog --- README.md | 1 + phpstan-baseline.neon | 130 +++++++++++++++++++++--------------------- readme.txt | 1 + 3 files changed, 67 insertions(+), 65 deletions(-) diff --git a/README.md b/README.md index dca68aff..e87a2ffc 100644 --- a/README.md +++ b/README.md @@ -216,6 +216,7 @@ Yes it is! This plugin comes with .po and .mo files. It is already translated in ## Changelog ## ### 1.5.11.1 ### +* Improvement: Improved code quality syntax and security checks for better coding standards and practices. * Fixed: Info List - Icon overlap issue. ### 1.5.11 ### diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index eb6f18d5..468ead03 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -108,7 +108,7 @@ parameters: path: classes/class-uabb-attachment.php - - message: "#^PHPDoc tag @var has invalid value \\(\\$instance Class instance\\.\\)\\: Unexpected token \"\\$instance\", expected type at offset 61$#" + message: "#^PHPDoc tag @var has invalid value \\(\\$instance Class instance\\.\\)\\: Unexpected token \"\\$instance\", expected type at offset 65$#" count: 1 path: classes/class-uabb-backward.php @@ -138,17 +138,17 @@ parameters: path: classes/class-uabb-cloud-templates.php - - message: "#^PHPDoc tag @var has invalid value \\(\\$cloud_url cloud_url\\)\\: Unexpected token \"\\$cloud_url\", expected type at offset 60$#" + message: "#^PHPDoc tag @var has invalid value \\(\\$cloud_url cloud_url\\)\\: Unexpected token \"\\$cloud_url\", expected type at offset 64$#" count: 1 path: classes/class-uabb-cloud-templates.php - - message: "#^PHPDoc tag @var has invalid value \\(\\$instance instance\\)\\: Unexpected token \"\\$instance\", expected type at offset 78$#" + message: "#^PHPDoc tag @var has invalid value \\(\\$instance instance\\)\\: Unexpected token \"\\$instance\", expected type at offset 82$#" count: 1 path: classes/class-uabb-cloud-templates.php - - message: "#^PHPDoc tag @var has invalid value \\(\\$uabb_filesystem UABB filesystem\\)\\: Unexpected token \"\\$uabb_filesystem\", expected type at offset 67$#" + message: "#^PHPDoc tag @var has invalid value \\(\\$uabb_filesystem UABB filesystem\\)\\: Unexpected token \"\\$uabb_filesystem\", expected type at offset 71$#" count: 1 path: classes/class-uabb-cloud-templates.php @@ -168,22 +168,22 @@ parameters: path: classes/class-uabb-cloud-templates.php - - message: "#^PHPDoc tag @var has invalid value \\(\\$instance Class instance\\.\\)\\: Unexpected token \"\\$instance\", expected type at offset 61$#" + message: "#^PHPDoc tag @var has invalid value \\(\\$instance Class instance\\.\\)\\: Unexpected token \"\\$instance\", expected type at offset 65$#" count: 1 path: classes/class-uabb-compatibility.php - - message: "#^PHPDoc tag @var has invalid value \\(\\$stable_version_new_page\\)\\: Unexpected token \"\\$stable_version_new_page\", expected type at offset 68$#" + message: "#^PHPDoc tag @var has invalid value \\(\\$stable_version_new_page\\)\\: Unexpected token \"\\$stable_version_new_page\", expected type at offset 72$#" count: 1 path: classes/class-uabb-compatibility.php - - message: "#^PHPDoc tag @var has invalid value \\(\\$uabb_migration\\)\\: Unexpected token \"\\$uabb_migration\", expected type at offset 71$#" + message: "#^PHPDoc tag @var has invalid value \\(\\$uabb_migration\\)\\: Unexpected token \"\\$uabb_migration\", expected type at offset 75$#" count: 1 path: classes/class-uabb-compatibility.php - - message: "#^PHPDoc tag @var has invalid value \\(\\$version_bb_check\\)\\: Unexpected token \"\\$version_bb_check\", expected type at offset 68$#" + message: "#^PHPDoc tag @var has invalid value \\(\\$version_bb_check\\)\\: Unexpected token \"\\$version_bb_check\", expected type at offset 72$#" count: 1 path: classes/class-uabb-compatibility.php @@ -253,7 +253,7 @@ parameters: path: classes/class-uabb-helper.php - - message: "#^PHPDoc tag @var has invalid value \\(\\$basic_modules Category Strings\\)\\: Unexpected token \"\\$basic_modules\", expected type at offset 79$#" + message: "#^PHPDoc tag @var has invalid value \\(\\$basic_modules Category Strings\\)\\: Unexpected token \"\\$basic_modules\", expected type at offset 83$#" count: 1 path: classes/class-uabb-helper.php @@ -328,7 +328,7 @@ parameters: path: classes/class-uabb-update.php - - message: "#^PHPDoc tag @var has invalid value \\(\\$instance Class instance\\.\\)\\: Unexpected token \"\\$instance\", expected type at offset 61$#" + message: "#^PHPDoc tag @var has invalid value \\(\\$instance Class instance\\.\\)\\: Unexpected token \"\\$instance\", expected type at offset 65$#" count: 1 path: classes/class-uabb-update.php @@ -498,27 +498,27 @@ parameters: path: includes/ui-panel-sections.php - - message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\n\\\\t \", expected '\\(' at offset 117$#" + message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \", expected '\\(' at offset 120$#" count: 1 path: modules/advanced-icon/advanced-icon.php - - message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\n\\\\t \", expected '\\(' at offset 111$#" + message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \", expected '\\(' at offset 114$#" count: 1 path: modules/flip-box/flip-box.php - - message: "#^PHPDoc tag @method has invalid value \\(get_icons\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 86$#" + message: "#^PHPDoc tag @method has invalid value \\(get_icons\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 89$#" count: 1 path: modules/flip-box/flip-box.php - - message: "#^PHPDoc tag @method has invalid value \\(render_button\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 85$#" + message: "#^PHPDoc tag @method has invalid value \\(render_button\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 88$#" count: 1 path: modules/flip-box/flip-box.php - - message: "#^PHPDoc tag @method has invalid value \\(render_icon\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 92$#" + message: "#^PHPDoc tag @method has invalid value \\(render_icon\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 95$#" count: 1 path: modules/flip-box/flip-box.php @@ -533,62 +533,62 @@ parameters: path: modules/image-icon/image-icon.php - - message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\n\\\\t \", expected '\\(' at offset 113$#" + message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \", expected '\\(' at offset 116$#" count: 1 path: modules/image-icon/image-icon.php - - message: "#^PHPDoc tag @method has invalid value \\(_get_cropped_path\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 77$#" + message: "#^PHPDoc tag @method has invalid value \\(_get_cropped_path\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 80$#" count: 1 path: modules/image-icon/image-icon.php - - message: "#^PHPDoc tag @method has invalid value \\(_get_editor\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 65$#" + message: "#^PHPDoc tag @method has invalid value \\(_get_editor\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 68$#" count: 1 path: modules/image-icon/image-icon.php - - message: "#^PHPDoc tag @method has invalid value \\(_get_uncropped_url\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 93$#" + message: "#^PHPDoc tag @method has invalid value \\(_get_uncropped_url\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 96$#" count: 1 path: modules/image-icon/image-icon.php - - message: "#^PHPDoc tag @method has invalid value \\(_has_source\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 71$#" + message: "#^PHPDoc tag @method has invalid value \\(_has_source\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 74$#" count: 1 path: modules/image-icon/image-icon.php - - message: "#^PHPDoc tag @method has invalid value \\(crop\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 60$#" + message: "#^PHPDoc tag @method has invalid value \\(crop\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 63$#" count: 1 path: modules/image-icon/image-icon.php - - message: "#^PHPDoc tag @method has invalid value \\(delete\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 74$#" + message: "#^PHPDoc tag @method has invalid value \\(delete\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 77$#" count: 1 path: modules/image-icon/image-icon.php - - message: "#^PHPDoc tag @method has invalid value \\(get_alt\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 83$#" + message: "#^PHPDoc tag @method has invalid value \\(get_alt\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 86$#" count: 1 path: modules/image-icon/image-icon.php - - message: "#^PHPDoc tag @method has invalid value \\(get_classes\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 82$#" + message: "#^PHPDoc tag @method has invalid value \\(get_classes\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 85$#" count: 1 path: modules/image-icon/image-icon.php - - message: "#^PHPDoc tag @method has invalid value \\(get_data\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 87$#" + message: "#^PHPDoc tag @method has invalid value \\(get_data\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 90$#" count: 1 path: modules/image-icon/image-icon.php - - message: "#^PHPDoc tag @method has invalid value \\(get_src\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 86$#" + message: "#^PHPDoc tag @method has invalid value \\(get_src\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 89$#" count: 1 path: modules/image-icon/image-icon.php - - message: "#^PHPDoc tag @method has invalid value \\(update\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 63$#" + message: "#^PHPDoc tag @method has invalid value \\(update\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 66$#" count: 1 path: modules/image-icon/image-icon.php @@ -598,72 +598,72 @@ parameters: path: modules/image-separator/image-separator.php - - message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\n\\\\t \", expected '\\(' at offset 118$#" + message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \", expected '\\(' at offset 121$#" count: 1 path: modules/image-separator/image-separator.php - - message: "#^PHPDoc tag @method has invalid value \\(_get_cropped_path\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 91$#" + message: "#^PHPDoc tag @method has invalid value \\(_get_cropped_path\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 94$#" count: 1 path: modules/image-separator/image-separator.php - - message: "#^PHPDoc tag @method has invalid value \\(_get_editor\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 80$#" + message: "#^PHPDoc tag @method has invalid value \\(_get_editor\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 83$#" count: 1 path: modules/image-separator/image-separator.php - - message: "#^PHPDoc tag @method has invalid value \\(_get_uncropped_url\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 93$#" + message: "#^PHPDoc tag @method has invalid value \\(_get_uncropped_url\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 96$#" count: 2 path: modules/image-separator/image-separator.php - - message: "#^PHPDoc tag @method has invalid value \\(_has_source\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 71$#" + message: "#^PHPDoc tag @method has invalid value \\(_has_source\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 74$#" count: 1 path: modules/image-separator/image-separator.php - - message: "#^PHPDoc tag @method has invalid value \\(crop\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 68$#" + message: "#^PHPDoc tag @method has invalid value \\(crop\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 71$#" count: 1 path: modules/image-separator/image-separator.php - - message: "#^PHPDoc tag @method has invalid value \\(delete\\)\\: Unexpected token \"\\\\n\\\\t \\*\", expected '\\(' at offset 71$#" + message: "#^PHPDoc tag @method has invalid value \\(delete\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\*\", expected '\\(' at offset 74$#" count: 1 path: modules/image-separator/image-separator.php - - message: "#^PHPDoc tag @method has invalid value \\(get_alt\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 75$#" + message: "#^PHPDoc tag @method has invalid value \\(get_alt\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 78$#" count: 1 path: modules/image-separator/image-separator.php - - message: "#^PHPDoc tag @method has invalid value \\(get_classes\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 81$#" + message: "#^PHPDoc tag @method has invalid value \\(get_classes\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 84$#" count: 1 path: modules/image-separator/image-separator.php - - message: "#^PHPDoc tag @method has invalid value \\(get_data\\)\\: Unexpected token \"\\\\n\\\\t \\*\", expected '\\(' at offset 62$#" + message: "#^PHPDoc tag @method has invalid value \\(get_data\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\*\", expected '\\(' at offset 65$#" count: 1 path: modules/image-separator/image-separator.php - - message: "#^PHPDoc tag @method has invalid value \\(get_src\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 69$#" + message: "#^PHPDoc tag @method has invalid value \\(get_src\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 72$#" count: 1 path: modules/image-separator/image-separator.php - - message: "#^PHPDoc tag @method has invalid value \\(update\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 63$#" + message: "#^PHPDoc tag @method has invalid value \\(update\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 66$#" count: 1 path: modules/image-separator/image-separator.php - - message: "#^PHPDoc tag @property has invalid value \\(\\$_editor\\)\\: Unexpected token \"\\$_editor\", expected type at offset 62$#" + message: "#^PHPDoc tag @property has invalid value \\(\\$_editor\\)\\: Unexpected token \"\\$_editor\", expected type at offset 65$#" count: 1 path: modules/image-separator/image-separator.php - - message: "#^PHPDoc tag @property has invalid value \\(\\$data\\)\\: Unexpected token \"\\$data\", expected type at offset 62$#" + message: "#^PHPDoc tag @property has invalid value \\(\\$data\\)\\: Unexpected token \"\\$data\", expected type at offset 65$#" count: 1 path: modules/image-separator/image-separator.php @@ -673,32 +673,32 @@ parameters: path: modules/info-list/info-list.php - - message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\n\\\\t \", expected '\\(' at offset 112$#" + message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \", expected '\\(' at offset 115$#" count: 1 path: modules/info-list/info-list.php - - message: "#^PHPDoc tag @method has invalid value \\(get_icons\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 76$#" + message: "#^PHPDoc tag @method has invalid value \\(get_icons\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 79$#" count: 1 path: modules/info-list/info-list.php - - message: "#^PHPDoc tag @method has invalid value \\(render_image\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 49$#" + message: "#^PHPDoc tag @method has invalid value \\(render_image\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 52$#" count: 1 path: modules/info-list/info-list.php - - message: "#^PHPDoc tag @method has invalid value \\(render_text\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 47$#" + message: "#^PHPDoc tag @method has invalid value \\(render_text\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 50$#" count: 1 path: modules/info-list/info-list.php - - message: "#^PHPDoc tag @method has invalid value \\(render_text\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 52$#" + message: "#^PHPDoc tag @method has invalid value \\(render_text\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 55$#" count: 1 path: modules/info-list/info-list.php - - message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\n\\\\t \", expected '\\(' at offset 113$#" + message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \", expected '\\(' at offset 116$#" count: 1 path: modules/info-table/info-table.php @@ -708,91 +708,91 @@ parameters: path: modules/ribbon/ribbon.php - - message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\n\\\\t \", expected '\\(' at offset 109$#" + message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \", expected '\\(' at offset 112$#" count: 1 path: modules/ribbon/ribbon.php - - message: "#^PHPDoc tag @method has invalid value \\(get_icon\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 78$#" + message: "#^PHPDoc tag @method has invalid value \\(get_icon\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 81$#" count: 1 path: modules/ribbon/ribbon.php - - message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\n\\\\t \", expected '\\(' at offset 112$#" + message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \", expected '\\(' at offset 115$#" count: 1 path: modules/slide-box/slide-box.php - - message: "#^PHPDoc tag @method has invalid value \\(render_button\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 88$#" + message: "#^PHPDoc tag @method has invalid value \\(render_button\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 91$#" count: 1 path: modules/slide-box/slide-box.php - - message: "#^PHPDoc tag @method has invalid value \\(render_dropdown_icon\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 101$#" + message: "#^PHPDoc tag @method has invalid value \\(render_dropdown_icon\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 104$#" count: 1 path: modules/slide-box/slide-box.php - - message: "#^PHPDoc tag @method has invalid value \\(render_image\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 94$#" + message: "#^PHPDoc tag @method has invalid value \\(render_image\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 97$#" count: 1 path: modules/slide-box/slide-box.php - - message: "#^PHPDoc tag @method has invalid value \\(render_link\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 84$#" + message: "#^PHPDoc tag @method has invalid value \\(render_link\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 87$#" count: 1 path: modules/slide-box/slide-box.php - - message: "#^PHPDoc tag @method has invalid value \\(render_overlay_icon\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 100$#" + message: "#^PHPDoc tag @method has invalid value \\(render_overlay_icon\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 103$#" count: 1 path: modules/slide-box/slide-box.php - - message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\n\\\\t \", expected '\\(' at offset 113$#" + message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \", expected '\\(' at offset 116$#" count: 1 path: modules/spacer-gap/spacer-gap.php - - message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\n\\\\t \", expected '\\(' at offset 109$#" + message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \", expected '\\(' at offset 112$#" count: 1 path: modules/uabb-button/uabb-button.php - - message: "#^PHPDoc tag @method has invalid value \\(get_button_style\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 79$#" + message: "#^PHPDoc tag @method has invalid value \\(get_button_style\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 82$#" count: 1 path: modules/uabb-button/uabb-button.php - - message: "#^PHPDoc tag @method has invalid value \\(get_classname\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 73$#" + message: "#^PHPDoc tag @method has invalid value \\(get_classname\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 76$#" count: 1 path: modules/uabb-button/uabb-button.php - - message: "#^PHPDoc tag @method has invalid value \\(update\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 69$#" + message: "#^PHPDoc tag @method has invalid value \\(update\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 72$#" count: 1 path: modules/uabb-button/uabb-button.php - - message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\n\\\\t \", expected '\\(' at offset 111$#" + message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \", expected '\\(' at offset 114$#" count: 1 path: modules/uabb-heading/uabb-heading.php - - message: "#^PHPDoc tag @method has invalid value \\(render_image\\)\\: Unexpected token \"\\\\n\\\\t \\* \", expected '\\(' at offset 63$#" + message: "#^PHPDoc tag @method has invalid value \\(render_image\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \\* \", expected '\\(' at offset 66$#" count: 1 path: modules/uabb-heading/uabb-heading.php - - message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\n\\\\t \", expected '\\(' at offset 113$#" + message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \", expected '\\(' at offset 116$#" count: 1 path: modules/uabb-separator/uabb-separator.php - - message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\n\\\\t \", expected '\\(' at offset 158$#" + message: "#^PHPDoc tag @method has invalid value \\(__construct\\)\\: Unexpected token \"\\\\r\\\\n\\\\t \", expected '\\(' at offset 162$#" count: 1 path: modules/uabb-star-rating/uabb-star-rating.php - - message: "#^PHPDoc tag @method has invalid value \\(get_icons\\)\\: Unexpected token \"\\\\n\\\\t\\\\t \\* \", expected '\\(' at offset 81$#" + message: "#^PHPDoc tag @method has invalid value \\(get_icons\\)\\: Unexpected token \"\\\\r\\\\n\\\\t\\\\t \\* \", expected '\\(' at offset 84$#" count: 1 path: modules/uabb-star-rating/uabb-star-rating.php \ No newline at end of file diff --git a/readme.txt b/readme.txt index 29777005..6a925c32 100644 --- a/readme.txt +++ b/readme.txt @@ -216,6 +216,7 @@ Yes it is! This plugin comes with .po and .mo files. It is already translated in == Changelog == = 1.5.11.1 = +* Improvement: Improved code quality syntax and security checks for better coding standards and practices. * Fixed: Info List - Icon overlap issue. = 1.5.11 = From d8a91e48b7b9ed1720a9363fac7bb8aab4b0ff2b Mon Sep 17 00:00:00 2001 From: Akshay Urankar Date: Tue, 1 Oct 2024 14:20:09 +0530 Subject: [PATCH 29/29] updated tags and potfile --- .distignore | 3 + Gruntfile.js | 3 + README.md | 4 +- bb-ultimate-addon.php | 4 +- classes/class-uabb-admin-settings.php | 10 +- languages/uabb.pot | 797 ++++++++++++---------- lib/astra-notices/class-astra-notices.php | 2 +- phpcs.xml.dist | 1 + readme.txt | 4 +- tests/php/stubs/lite-stubs.php | 2 +- 10 files changed, 443 insertions(+), 387 deletions(-) diff --git a/.distignore b/.distignore index 54fd0864..981646f0 100644 --- a/.distignore +++ b/.distignore @@ -16,6 +16,9 @@ Gruntfile.js package.json phpunit.xml phpunit.xml.dist +phpstan-baseline.neon +phpstan.neon +stubs-generator.php multisite.xml multisite.xml.dist phpcs.xml diff --git a/Gruntfile.js b/Gruntfile.js index 1f56c647..03b04053 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -44,6 +44,9 @@ module.exports = function( grunt ) { '!composer.json', '!composer.lock', '!package-lock.json', + '!phpstan-baseline.neon', + '!phpstan.neon', + '!stubs-generator.php', '!phpcs.xml.dist', ], dest: 'ultimate-addons-for-beaver-builder-lite/' diff --git a/README.md b/README.md index e87a2ffc..2d09c564 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ **Tags:** beaver builder, beaver builder free, beaver builder lite, beaver builder addons, beaver builder extensions **Requires at least:** 4.6 **Tested up to:** 6.6 -**Stable tag:** 1.5.11 +**Stable tag:** 1.5.12 **License:** GPLv2 or later **License URI:** https://www.gnu.org/licenses/gpl-2.0.html @@ -215,7 +215,7 @@ Yes it is! This plugin comes with .po and .mo files. It is already translated in ## Changelog ## -### 1.5.11.1 ### +### 1.5.12 ### * Improvement: Improved code quality syntax and security checks for better coding standards and practices. * Fixed: Info List - Icon overlap issue. diff --git a/bb-ultimate-addon.php b/bb-ultimate-addon.php index ac601edb..449f5b0a 100644 --- a/bb-ultimate-addon.php +++ b/bb-ultimate-addon.php @@ -3,7 +3,7 @@ * Plugin Name: Ultimate Addons for Beaver Builder - Lite * Plugin URI: http://www.ultimatebeaver.com/ * Description: Ultimate Addons is a free extension for Beaver Builder that adds 10 modules, and works on top of any Beaver Builder Package. (Free, Standard, Pro & Agency) You can use it with on any WordPress theme. - * Version: 1.5.11 + * Version: 1.5.12 * Author: Brainstorm Force * Author URI: http://www.brainstormforce.com * Text Domain: uabb @@ -18,7 +18,7 @@ define( 'BB_ULTIMATE_ADDON_DIR', plugin_dir_path( __FILE__ ) ); define( 'BB_ULTIMATE_ADDON_URL', plugins_url( '/', __FILE__ ) ); - define( 'BB_ULTIMATE_ADDON_LITE_VERSION', '1.5.11' ); + define( 'BB_ULTIMATE_ADDON_LITE_VERSION', '1.5.12' ); define( 'BSF_REMOVE_UABB_FROM_REGISTRATION_LISTING', true ); define( 'BB_ULTIMATE_ADDON_FILE', trailingslashit( dirname( __FILE__ ) ) . 'bb-ultimate-addon.php' );// @codingStandardsIgnoreLine. define( 'BB_ULTIMATE_ADDON_LITE', true ); diff --git a/classes/class-uabb-admin-settings.php b/classes/class-uabb-admin-settings.php index 39651a24..c9537f71 100644 --- a/classes/class-uabb-admin-settings.php +++ b/classes/class-uabb-admin-settings.php @@ -115,13 +115,13 @@ public static function register_notices() {
    ', $image_path, - __( 'Hello! Thank you for choosing the Ultimate Addon for Beaver Builder to build this website!', 'ultimate-addon-for-beaver-builder' ), - __( 'Would you please mind sharing your views and give it a 5 star rating on the WordPress repository?', 'ultimate-addon-for-beaver-builder' ), + __( 'Hello! Thank you for choosing the Ultimate Addon for Beaver Builder to build this website!', 'ultimate-addon-for-beaver-builder', 'uabb' ), + __( 'Would you please mind sharing your views and give it a 5 star rating on the WordPress repository?', 'ultimate-addon-for-beaver-builder', 'uabb' ), 'https://wordpress.org/support/plugin/ultimate-addons-for-beaver-builder-lite/reviews/?filter=5', - __( 'Ok, you deserve it', 'ultimate-addon-for-beaver-builder' ), + __( 'Ok, you deserve it', 'ultimate-addon-for-beaver-builder', 'uabb' ), MONTH_IN_SECONDS, - __( 'Nope, maybe later', 'ultimate-addon-for-beaver-builder' ), - __( 'I already did', 'ultimate-addon-for-beaver-builder' ) + __( 'Nope, maybe later', 'ultimate-addon-for-beaver-builder', 'uabb' ), + __( 'I already did', 'ultimate-addon-for-beaver-builder', 'uabb' ) ), 'repeat-notice-after' => MONTH_IN_SECONDS, 'display-notice-after' => ( 2 * WEEK_IN_SECONDS ), // Display notice after 2 weeks. diff --git a/languages/uabb.pot b/languages/uabb.pot index 27466deb..2501f7b5 100644 --- a/languages/uabb.pot +++ b/languages/uabb.pot @@ -2,11 +2,11 @@ # This file is distributed under the same license as the Ultimate Addons for Beaver Builder - Lite package. msgid "" msgstr "" -"Project-Id-Version: Ultimate Addons for Beaver Builder - Lite 1.5.11\n" +"Project-Id-Version: Ultimate Addons for Beaver Builder - Lite 1.5.12\n" "Report-Msgid-Bugs-To: " "https://wordpress.org/support/plugin/ultimate-addons-for-beaver-builder-" "lite\n" -"POT-Creation-Date: 2024-07-25 10:38:34+00:00\n" +"POT-Creation-Date: 2024-10-01 08:49:20+00:00\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -26,47 +26,47 @@ msgstr "" "X-Textdomain-Support: yes\n" "X-Generator: grunt-wp-i18n 1.0.3\n" -#: admin/bsf-analytics/class-bsf-analytics.php:183 +#: admin/bsf-analytics/class-bsf-analytics.php:185 #. translators: %s product name msgid "" "Want to help make %1s even more awesome? Allow us to " "collect non-sensitive diagnostic data and usage information. " msgstr "" -#: admin/bsf-analytics/class-bsf-analytics.php:186 +#: admin/bsf-analytics/class-bsf-analytics.php:188 msgid "This will be applicable for all sites from the network." msgstr "" -#: admin/bsf-analytics/class-bsf-analytics.php:210 +#: admin/bsf-analytics/class-bsf-analytics.php:212 #. translators: %s usage doc link msgid " Know More." msgstr "" -#: admin/bsf-analytics/class-bsf-analytics.php:217 +#: admin/bsf-analytics/class-bsf-analytics.php:219 msgid "Yes! Allow it" msgstr "" -#: admin/bsf-analytics/class-bsf-analytics.php:225 +#: admin/bsf-analytics/class-bsf-analytics.php:227 msgid "No Thanks" msgstr "" -#: admin/bsf-analytics/class-bsf-analytics.php:294 +#: admin/bsf-analytics/class-bsf-analytics.php:300 msgid "Every two days" msgstr "" -#: admin/bsf-analytics/class-bsf-analytics.php:348 +#: admin/bsf-analytics/class-bsf-analytics.php:358 msgid "Usage Tracking" msgstr "" -#: admin/bsf-analytics/class-bsf-analytics.php:380 +#: admin/bsf-analytics/class-bsf-analytics.php:392 msgid "Allow Brainstorm Force products to track non-sensitive usage tracking data." msgstr "" -#: admin/bsf-analytics/class-bsf-analytics.php:383 +#: admin/bsf-analytics/class-bsf-analytics.php:395 msgid " This will be applicable for all sites from the network." msgstr "" -#: admin/bsf-analytics/class-bsf-analytics.php:388 +#: admin/bsf-analytics/class-bsf-analytics.php:400 msgid "Learn More." msgstr "" @@ -91,96 +91,96 @@ msgid "" "one before continuing." msgstr "" -#: classes/class-uabb-admin-settings.php:117 +#: classes/class-uabb-admin-settings.php:118 msgid "" "Hello! Thank you for choosing the Ultimate Addon for Beaver Builder to " "build this website!" msgstr "" -#: classes/class-uabb-admin-settings.php:118 +#: classes/class-uabb-admin-settings.php:119 msgid "" "Would you please mind sharing your views and give it a 5 star rating on the " "WordPress repository?" msgstr "" -#: classes/class-uabb-admin-settings.php:120 +#: classes/class-uabb-admin-settings.php:121 msgid "Ok, you deserve it" msgstr "" -#: classes/class-uabb-admin-settings.php:122 +#: classes/class-uabb-admin-settings.php:123 msgid "Nope, maybe later" msgstr "" -#: classes/class-uabb-admin-settings.php:123 +#: classes/class-uabb-admin-settings.php:124 msgid "I already did" msgstr "" -#: classes/class-uabb-admin-settings.php:178 +#: classes/class-uabb-admin-settings.php:179 msgid "Something went wrong!" msgstr "" -#: classes/class-uabb-admin-settings.php:179 +#: classes/class-uabb-admin-settings.php:180 msgid "Complete" msgstr "" -#: classes/class-uabb-admin-settings.php:180 +#: classes/class-uabb-admin-settings.php:181 msgid "Refreshed!" msgstr "" -#: classes/class-uabb-admin-settings.php:181 +#: classes/class-uabb-admin-settings.php:182 msgid "Try Again!" msgstr "" -#: classes/class-uabb-admin-settings.php:182 +#: classes/class-uabb-admin-settings.php:183 msgid "Installed!" msgstr "" -#: classes/class-uabb-admin-settings.php:183 +#: classes/class-uabb-admin-settings.php:184 msgid "Remove" msgstr "" -#: classes/class-uabb-admin-settings.php:184 +#: classes/class-uabb-admin-settings.php:185 msgid "Install" msgstr "" -#: classes/class-uabb-admin-settings.php:185 +#: classes/class-uabb-admin-settings.php:186 msgid "Installed" msgstr "" -#: classes/class-uabb-admin-settings.php:186 +#: classes/class-uabb-admin-settings.php:187 msgid "Removed!" msgstr "" -#: classes/class-uabb-admin-settings.php:274 +#: classes/class-uabb-admin-settings.php:275 msgid "Settings updated!" msgstr "" -#: classes/class-uabb-admin-settings.php:293 +#: classes/class-uabb-admin-settings.php:294 msgid "Welcome" msgstr "" -#: classes/class-uabb-admin-settings.php:300 +#: classes/class-uabb-admin-settings.php:301 #: includes/admin-settings-general.php:11 #: modules/info-list/info-list-bb-2-2-compatibility.php:347 #: modules/info-list/info-list-bb-less-than-2-2-compatibility.php:405 msgid "General Settings" msgstr "" -#: classes/class-uabb-admin-settings.php:307 +#: classes/class-uabb-admin-settings.php:308 msgid "Modules" msgstr "" -#: classes/class-uabb-admin-settings.php:315 +#: classes/class-uabb-admin-settings.php:316 #: includes/admin-settings-premium.php:25 #: includes/admin-settings-template-cloud.php:11 msgid "Template Cloud" msgstr "" -#: classes/class-uabb-admin-settings.php:322 +#: classes/class-uabb-admin-settings.php:323 msgid "Font Icon Manager" msgstr "" -#: classes/class-uabb-admin-settings.php:328 +#: classes/class-uabb-admin-settings.php:329 #: includes/admin-settings-premium.php:12 msgid "Premium Features" msgstr "" @@ -189,88 +189,88 @@ msgstr "" msgid "Image Link" msgstr "" -#: classes/class-uabb-cloud-templates.php:259 -#: classes/class-uabb-iconfonts.php:43 +#: classes/class-uabb-cloud-templates.php:263 +#: classes/class-uabb-iconfonts.php:45 msgid "You are not authorized to perform this action." msgstr "" -#: classes/class-uabb-cloud-templates.php:313 +#: classes/class-uabb-cloud-templates.php:320 msgid "Welcome to %s Template Cloud!" msgstr "" -#: classes/class-uabb-cloud-templates.php:314 +#: classes/class-uabb-cloud-templates.php:321 msgid "" "%s Template Cloud would allow you to browse through our growing library of " "150+ professionally designed templates and download the only ones that you " "need." msgstr "" -#: classes/class-uabb-cloud-templates.php:314 +#: classes/class-uabb-cloud-templates.php:321 msgid "Let's get started" msgstr "" -#: classes/class-uabb-cloud-templates.php:340 +#: classes/class-uabb-cloud-templates.php:348 msgid "All" msgstr "" -#: classes/class-uabb-cloud-templates.php:415 +#: classes/class-uabb-cloud-templates.php:423 msgid "Preview" msgstr "" -#: classes/class-uabb-cloud-templates.php:427 +#: classes/class-uabb-cloud-templates.php:435 msgid "Upgrade" msgstr "" -#: classes/class-uabb-cloud-templates.php:448 +#: classes/class-uabb-cloud-templates.php:456 msgid "Templates are disabled from RestAPI." msgstr "" -#: classes/class-uabb-global-settings.php:33 +#: classes/class-uabb-global-settings.php:35 msgid "UABB - Global Settings" msgstr "" -#: classes/class-uabb-global-settings.php:34 +#: classes/class-uabb-global-settings.php:36 msgid "UABB - Knowledge Base" msgstr "" -#: classes/class-uabb-global-settings.php:35 +#: classes/class-uabb-global-settings.php:37 msgid "UABB - Contact Support" msgstr "" -#: classes/class-uabb-global-settings.php:38 -#: classes/uabb-global-settings-form.php:12 +#: classes/class-uabb-global-settings.php:40 +#: classes/uabb-global-settings-form.php:18 msgid "%s - Global Settings" msgstr "" -#: classes/class-uabb-global-settings.php:43 +#: classes/class-uabb-global-settings.php:45 msgid "%s - Knowledge Base" msgstr "" -#: classes/class-uabb-global-settings.php:48 +#: classes/class-uabb-global-settings.php:50 msgid "%s - Contact Support" msgstr "" -#: classes/class-uabb-helper.php:41 +#: classes/class-uabb-helper.php:42 msgid "Basic" msgstr "" -#: classes/class-uabb-helper.php:43 +#: classes/class-uabb-helper.php:44 msgid "UABB Modules" msgstr "" -#: classes/class-uabb-helper.php:52 includes/admin-settings-modules.php:11 +#: classes/class-uabb-helper.php:53 includes/admin-settings-modules.php:16 msgid "%s Modules" msgstr "" -#: classes/class-uabb-init.php:248 +#: classes/class-uabb-init.php:254 msgid "plugin requires" msgstr "" -#: classes/class-uabb-init.php:250 +#: classes/class-uabb-init.php:256 msgid " plugin installed & activated." msgstr "" -#: classes/class-uabb-wpml.php:55 classes/uabb-global-settings-form.php:56 +#: classes/class-uabb-wpml.php:56 classes/uabb-global-settings-form.php:62 #: modules/flip-box/flip-box-bb-2-2-compatibility.php:445 #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:526 #: modules/info-table/info-table-bb-2-2-compatibility.php:852 @@ -284,8 +284,8 @@ msgstr "" msgid "Button" msgstr "" -#: classes/class-uabb-wpml.php:60 classes/class-uabb-wpml.php:191 -#: modules/advanced-icon/advanced-icon.php:352 +#: classes/class-uabb-wpml.php:61 classes/class-uabb-wpml.php:192 +#: modules/advanced-icon/advanced-icon.php:350 #: modules/image-separator/image-separator-bb-2-2-compatibility.php:314 #: modules/image-separator/image-separator-bb-less-than-2-2-compatibility.php:314 #: modules/info-list/info-list-bb-2-2-compatibility.php:361 @@ -303,95 +303,95 @@ msgstr "" msgid "Link" msgstr "" -#: classes/class-uabb-wpml.php:72 +#: classes/class-uabb-wpml.php:73 msgid "Flip Box: Title on Front" msgstr "" -#: classes/class-uabb-wpml.php:77 classes/class-uabb-wpml.php:87 +#: classes/class-uabb-wpml.php:78 classes/class-uabb-wpml.php:88 msgid "Flip Box: Description" msgstr "" -#: classes/class-uabb-wpml.php:82 +#: classes/class-uabb-wpml.php:83 msgid "Flip Box: Title on Back" msgstr "" -#: classes/class-uabb-wpml.php:99 +#: classes/class-uabb-wpml.php:100 msgid "Slide Box: Front Slide Title" msgstr "" -#: classes/class-uabb-wpml.php:104 +#: classes/class-uabb-wpml.php:105 msgid "Slide Box: Front Description" msgstr "" -#: classes/class-uabb-wpml.php:109 +#: classes/class-uabb-wpml.php:110 msgid "Slide Box: Back Slide Title" msgstr "" -#: classes/class-uabb-wpml.php:114 +#: classes/class-uabb-wpml.php:115 msgid "Slide Box: Back Description" msgstr "" -#: classes/class-uabb-wpml.php:119 +#: classes/class-uabb-wpml.php:120 msgid "Slide Box: Link" msgstr "" -#: classes/class-uabb-wpml.php:124 +#: classes/class-uabb-wpml.php:125 msgid "Slide Box: Call to action text" msgstr "" -#: classes/class-uabb-wpml.php:143 +#: classes/class-uabb-wpml.php:144 msgid "Info Table : Heading" msgstr "" -#: classes/class-uabb-wpml.php:148 +#: classes/class-uabb-wpml.php:149 msgid "Info Table : Sub Heading" msgstr "" -#: classes/class-uabb-wpml.php:153 +#: classes/class-uabb-wpml.php:154 msgid "Info Table : Description" msgstr "" -#: classes/class-uabb-wpml.php:158 +#: classes/class-uabb-wpml.php:159 msgid "Info Table : Call to action button text" msgstr "" -#: classes/class-uabb-wpml.php:163 +#: classes/class-uabb-wpml.php:164 msgid "Info Table : Link" msgstr "" -#: classes/class-uabb-wpml.php:175 +#: classes/class-uabb-wpml.php:176 msgid "Image Separator : Link" msgstr "" -#: classes/class-uabb-wpml.php:186 +#: classes/class-uabb-wpml.php:187 msgid "Heading Text" msgstr "" -#: classes/class-uabb-wpml.php:196 +#: classes/class-uabb-wpml.php:197 msgid "Description Text" msgstr "" -#: classes/class-uabb-wpml.php:208 +#: classes/class-uabb-wpml.php:209 #: modules/ribbon/ribbon-bb-2-2-compatibility.php:22 #: modules/ribbon/ribbon-bb-less-than-2-2-compatibility.php:21 msgid "Ribbon Message" msgstr "" -#: classes/class-ui-panel.php:255 +#: classes/class-ui-panel.php:273 msgid "Search Module..." msgstr "" -#: classes/class-ui-panel.php:323 +#: classes/class-ui-panel.php:343 msgid "Presets" msgstr "" -#: classes/class-ui-panel.php:328 includes/admin-settings-template-cloud.php:41 +#: classes/class-ui-panel.php:348 includes/admin-settings-template-cloud.php:41 msgid "Sections" msgstr "" -#: classes/uabb-global-settings-form.php:17 -#: modules/advanced-icon/advanced-icon.php:68 -#: modules/advanced-icon/advanced-icon.php:366 +#: classes/uabb-global-settings-form.php:23 +#: modules/advanced-icon/advanced-icon.php:66 +#: modules/advanced-icon/advanced-icon.php:364 #: modules/flip-box/flip-box-bb-2-2-compatibility.php:40 #: modules/flip-box/flip-box-bb-2-2-compatibility.php:475 #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:38 @@ -418,23 +418,23 @@ msgstr "" #: modules/uabb-heading/uabb-heading-bb-less-than-2-2-compatibility.php:265 #: modules/uabb-separator/uabb-separator-bb-2-2-compatibility.php:71 #: modules/uabb-separator/uabb-separator-bb-less-than-2-2-compatibility.php:66 -#: modules/uabb-star-rating/uabb-star-rating.php:140 +#: modules/uabb-star-rating/uabb-star-rating.php:143 #: objects/fl-nested-form-button.php:56 objects/fl-nested-form-button.php:59 #: objects/fl-nested-form-button.php:63 objects/fl-nested-form-button.php:471 #: objects/fl-nested-form-button.php:474 objects/fl-nested-form-button.php:478 msgid "Style" msgstr "" -#: classes/uabb-global-settings-form.php:20 +#: classes/uabb-global-settings-form.php:26 msgid "Global Styling" msgstr "" -#: classes/uabb-global-settings-form.php:24 +#: classes/uabb-global-settings-form.php:30 msgid "Enable Global Styling" msgstr "" -#: classes/uabb-global-settings-form.php:39 -#: modules/advanced-icon/advanced-icon.php:316 +#: classes/uabb-global-settings-form.php:45 +#: modules/advanced-icon/advanced-icon.php:314 #: modules/image-icon/image-icon-bb-2-2-compatibility.php:15 #: modules/image-icon/image-icon-bb-less-than-2-2-compatibility.php:14 #: modules/image-separator/image-separator-bb-2-2-compatibility.php:15 @@ -453,21 +453,21 @@ msgstr "" #: modules/uabb-heading/uabb-heading-bb-less-than-2-2-compatibility.php:14 #: modules/uabb-separator/uabb-separator-bb-2-2-compatibility.php:15 #: modules/uabb-separator/uabb-separator-bb-less-than-2-2-compatibility.php:14 -#: modules/uabb-star-rating/uabb-star-rating.php:69 +#: modules/uabb-star-rating/uabb-star-rating.php:72 #: objects/fl-nested-form-button.php:17 objects/fl-nested-form-button.php:439 msgid "General" msgstr "" -#: classes/uabb-global-settings-form.php:43 +#: classes/uabb-global-settings-form.php:49 msgid "Primary Color" msgstr "" -#: classes/uabb-global-settings-form.php:49 +#: classes/uabb-global-settings-form.php:55 msgid "Primary Text Color" msgstr "" -#: classes/uabb-global-settings-form.php:60 -#: modules/advanced-icon/advanced-icon.php:258 +#: classes/uabb-global-settings-form.php:66 +#: modules/advanced-icon/advanced-icon.php:256 #: modules/flip-box/flip-box-bb-2-2-compatibility.php:161 #: modules/flip-box/flip-box-bb-2-2-compatibility.php:302 #: modules/flip-box/flip-box-bb-2-2-compatibility.php:416 @@ -498,8 +498,8 @@ msgstr "" msgid "Background Color" msgstr "" -#: classes/uabb-global-settings-form.php:66 -#: classes/uabb-global-settings-form.php:83 +#: classes/uabb-global-settings-form.php:72 +#: classes/uabb-global-settings-form.php:89 #: modules/flip-box/flip-box-bb-2-2-compatibility.php:169 #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:161 #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:298 @@ -530,16 +530,16 @@ msgstr "" #: modules/info-table/info-table-bb-less-than-2-2-compatibility.php:690 #: modules/slide-box/slide-box-bb-2-2-compatibility.php:435 #: modules/slide-box/slide-box-bb-2-2-compatibility.php:452 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:562 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:561 #: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:165 #: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:250 #: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:265 #: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:453 #: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:468 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:522 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:559 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:587 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:627 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:521 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:558 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:586 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:626 #: modules/uabb-button/uabb-button-bb-less-than-2-2-compatibility.php:176 #: modules/uabb-button/uabb-button-bb-less-than-2-2-compatibility.php:193 #: objects/fl-nested-form-button.php:182 objects/fl-nested-form-button.php:199 @@ -547,9 +547,9 @@ msgstr "" msgid "Opacity" msgstr "" -#: classes/uabb-global-settings-form.php:74 -#: modules/advanced-icon/advanced-icon.php:266 -#: modules/advanced-icon/advanced-icon.php:401 +#: classes/uabb-global-settings-form.php:80 +#: modules/advanced-icon/advanced-icon.php:264 +#: modules/advanced-icon/advanced-icon.php:399 #: modules/image-icon/image-icon-bb-2-2-compatibility.php:396 #: modules/image-icon/image-icon-bb-2-2-compatibility.php:451 #: modules/image-icon/image-icon-bb-less-than-2-2-compatibility.php:389 @@ -568,7 +568,7 @@ msgstr "" msgid "Background Hover Color" msgstr "" -#: classes/uabb-global-settings-form.php:91 +#: classes/uabb-global-settings-form.php:97 #: modules/info-table/info-table-bb-2-2-compatibility.php:187 #: modules/info-table/info-table-bb-less-than-2-2-compatibility.php:194 #: modules/uabb-button/uabb-button-bb-2-2-compatibility.php:152 @@ -581,7 +581,7 @@ msgstr "" msgid "Text Color" msgstr "" -#: classes/uabb-global-settings-form.php:97 +#: classes/uabb-global-settings-form.php:103 #: modules/info-table/info-table-bb-2-2-compatibility.php:195 #: modules/info-table/info-table-bb-less-than-2-2-compatibility.php:200 #: modules/uabb-button/uabb-button-bb-2-2-compatibility.php:160 @@ -590,7 +590,7 @@ msgstr "" msgid "Text Hover Color" msgstr "" -#: classes/uabb-global-settings-form.php:106 +#: classes/uabb-global-settings-form.php:112 #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:686 #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:759 #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:849 @@ -602,11 +602,11 @@ msgstr "" #: modules/info-table/info-table-bb-less-than-2-2-compatibility.php:886 #: modules/info-table/info-table-bb-less-than-2-2-compatibility.php:945 #: modules/ribbon/ribbon-bb-less-than-2-2-compatibility.php:207 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:732 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:810 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:904 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:980 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:1057 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:731 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:809 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:903 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:979 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:1056 #: modules/uabb-button/uabb-button-bb-less-than-2-2-compatibility.php:395 #: modules/uabb-heading/uabb-heading-bb-less-than-2-2-compatibility.php:352 #: modules/uabb-heading/uabb-heading-bb-less-than-2-2-compatibility.php:473 @@ -615,7 +615,7 @@ msgstr "" msgid "Font Size" msgstr "" -#: classes/uabb-global-settings-form.php:114 +#: classes/uabb-global-settings-form.php:120 #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:704 #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:777 #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:867 @@ -627,11 +627,11 @@ msgstr "" #: modules/info-table/info-table-bb-less-than-2-2-compatibility.php:904 #: modules/info-table/info-table-bb-less-than-2-2-compatibility.php:957 #: modules/ribbon/ribbon-bb-less-than-2-2-compatibility.php:225 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:750 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:828 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:922 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:998 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:1075 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:749 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:827 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:921 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:997 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:1074 #: modules/uabb-button/uabb-button-bb-less-than-2-2-compatibility.php:413 #: modules/uabb-heading/uabb-heading-bb-less-than-2-2-compatibility.php:370 #: modules/uabb-heading/uabb-heading-bb-less-than-2-2-compatibility.php:491 @@ -640,16 +640,16 @@ msgstr "" msgid "Line Height" msgstr "" -#: classes/uabb-global-settings-form.php:122 +#: classes/uabb-global-settings-form.php:128 msgid "Letter Spacing" msgstr "" -#: classes/uabb-global-settings-form.php:130 +#: classes/uabb-global-settings-form.php:136 msgid "Text Transform" msgstr "" -#: classes/uabb-global-settings-form.php:133 -#: modules/advanced-icon/advanced-icon.php:158 +#: classes/uabb-global-settings-form.php:139 +#: modules/advanced-icon/advanced-icon.php:156 #: modules/flip-box/flip-box-bb-2-2-compatibility.php:93 #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:90 #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:310 @@ -689,19 +689,19 @@ msgstr "" msgid "None" msgstr "" -#: classes/uabb-global-settings-form.php:134 +#: classes/uabb-global-settings-form.php:140 msgid "Capitalize" msgstr "" -#: classes/uabb-global-settings-form.php:135 +#: classes/uabb-global-settings-form.php:141 msgid "Uppercase" msgstr "" -#: classes/uabb-global-settings-form.php:136 +#: classes/uabb-global-settings-form.php:142 msgid "Lowercase" msgstr "" -#: classes/uabb-global-settings-form.php:137 +#: classes/uabb-global-settings-form.php:143 #: modules/flip-box/flip-box-bb-2-2-compatibility.php:295 #: modules/flip-box/flip-box-bb-2-2-compatibility.php:409 #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:285 @@ -709,12 +709,12 @@ msgstr "" msgid "Initial" msgstr "" -#: classes/uabb-global-settings-form.php:138 +#: classes/uabb-global-settings-form.php:144 msgid "Inherit" msgstr "" -#: classes/uabb-global-settings-form.php:143 -#: modules/advanced-icon/advanced-icon.php:196 +#: classes/uabb-global-settings-form.php:149 +#: modules/advanced-icon/advanced-icon.php:194 #: modules/flip-box/flip-box-bb-2-2-compatibility.php:125 #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:121 #: modules/image-icon/image-icon-bb-2-2-compatibility.php:220 @@ -734,23 +734,23 @@ msgstr "" msgid "Border Radius" msgstr "" -#: classes/uabb-global-settings-form.php:151 +#: classes/uabb-global-settings-form.php:157 msgid "Vertical Padding" msgstr "" -#: classes/uabb-global-settings-form.php:159 +#: classes/uabb-global-settings-form.php:165 msgid "Horizontal Padding" msgstr "" -#: classes/wpml/class-wpml-uabb-infolist.php:42 +#: classes/wpml/class-wpml-uabb-infolist.php:45 msgid "Info List : Title" msgstr "" -#: classes/wpml/class-wpml-uabb-infolist.php:45 +#: classes/wpml/class-wpml-uabb-infolist.php:48 msgid "Info List : Link" msgstr "" -#: classes/wpml/class-wpml-uabb-infolist.php:48 +#: classes/wpml/class-wpml-uabb-infolist.php:51 msgid "Info List : Description" msgstr "" @@ -837,22 +837,22 @@ msgstr "" msgid "Save Settings" msgstr "" -#: includes/admin-settings-icons.php:11 includes/admin-settings-icons.php:24 +#: includes/admin-settings-icons.php:15 includes/admin-settings-icons.php:28 msgid "Reload Icons" msgstr "" -#: includes/admin-settings-icons.php:19 +#: includes/admin-settings-icons.php:23 msgid "" "Clicking the button below will reinstall %1$s icons on your website. If you " "are facing issues to load %2$s icons then you are at right place to " "troubleshoot it." msgstr "" -#: includes/admin-settings-modules.php:21 +#: includes/admin-settings-modules.php:26 msgid "Upgrade to Premium version to get these modules" msgstr "" -#: includes/admin-settings-modules.php:21 +#: includes/admin-settings-modules.php:26 msgid "Unlock All Modules" msgstr "" @@ -1011,22 +1011,22 @@ msgid "" "suggestions for the Ultimate Addons." msgstr "" -#: includes/ui-panel-presets.php:81 +#: includes/ui-panel-presets.php:91 msgid "Note - You can enable, disable and manage %s presets here." msgstr "" -#: includes/ui-panel-presets.php:84 includes/ui-panel-sections.php:87 +#: includes/ui-panel-presets.php:94 includes/ui-panel-sections.php:98 msgid "" "Note - Images used in the templates are hotlinked from our server and are " "subject to copyright. It is strongly recommended that you replace them with " "your own." msgstr "" -#: includes/ui-panel-sections.php:22 +#: includes/ui-panel-sections.php:33 msgid "Search Section..." msgstr "" -#: includes/ui-panel-sections.php:83 +#: includes/ui-panel-sections.php:94 msgid "Note - You can enable, disable and manage %s sections here." msgstr "" @@ -1042,13 +1042,13 @@ msgstr "" msgid "Display a group of Image / Icons." msgstr "" -#: modules/advanced-icon/advanced-icon.php:51 -#: modules/advanced-icon/advanced-icon.php:58 +#: modules/advanced-icon/advanced-icon.php:49 +#: modules/advanced-icon/advanced-icon.php:56 #: modules/flip-box/flip-box-bb-2-2-compatibility.php:17 #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:16 #: modules/image-icon/image-icon-bb-2-2-compatibility.php:18 #: modules/image-icon/image-icon-bb-less-than-2-2-compatibility.php:17 -#: modules/image-icon/image-icon.php:40 +#: modules/image-icon/image-icon.php:52 #: modules/info-table/info-table-bb-2-2-compatibility.php:273 #: modules/info-table/info-table-bb-2-2-compatibility.php:276 #: modules/info-table/info-table-bb-less-than-2-2-compatibility.php:269 @@ -1058,7 +1058,7 @@ msgstr "" msgid "Image / Icon" msgstr "" -#: modules/advanced-icon/advanced-icon.php:71 +#: modules/advanced-icon/advanced-icon.php:69 #: modules/image-separator/image-separator-bb-2-2-compatibility.php:226 #: modules/image-separator/image-separator-bb-less-than-2-2-compatibility.php:228 #: modules/uabb-button/uabb-button-bb-2-2-compatibility.php:202 @@ -1069,37 +1069,37 @@ msgstr "" msgid "Structure" msgstr "" -#: modules/advanced-icon/advanced-icon.php:75 +#: modules/advanced-icon/advanced-icon.php:73 msgid "Icons Structure" msgstr "" -#: modules/advanced-icon/advanced-icon.php:78 +#: modules/advanced-icon/advanced-icon.php:76 msgid "Horizontal" msgstr "" -#: modules/advanced-icon/advanced-icon.php:79 +#: modules/advanced-icon/advanced-icon.php:77 msgid "Vertical" msgstr "" -#: modules/advanced-icon/advanced-icon.php:85 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:571 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:609 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:596 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:636 +#: modules/advanced-icon/advanced-icon.php:83 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:570 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:608 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:595 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:635 msgid "Icon Size" msgstr "" -#: modules/advanced-icon/advanced-icon.php:99 -#: modules/uabb-star-rating/uabb-star-rating.php:180 -#: modules/uabb-star-rating/uabb-star-rating.php:226 +#: modules/advanced-icon/advanced-icon.php:97 +#: modules/uabb-star-rating/uabb-star-rating.php:183 +#: modules/uabb-star-rating/uabb-star-rating.php:229 msgid "Spacing" msgstr "" -#: modules/advanced-icon/advanced-icon.php:105 +#: modules/advanced-icon/advanced-icon.php:103 msgid "To manage the space between Icons use this option" msgstr "" -#: modules/advanced-icon/advanced-icon.php:116 +#: modules/advanced-icon/advanced-icon.php:114 #: modules/flip-box/flip-box-bb-2-2-compatibility.php:45 #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:43 #: modules/image-icon/image-icon-bb-2-2-compatibility.php:133 @@ -1109,7 +1109,7 @@ msgstr "" msgid "Icon Background Style" msgstr "" -#: modules/advanced-icon/advanced-icon.php:119 +#: modules/advanced-icon/advanced-icon.php:117 #: modules/flip-box/flip-box-bb-2-2-compatibility.php:48 #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:46 #: modules/image-icon/image-icon-bb-2-2-compatibility.php:136 @@ -1129,7 +1129,7 @@ msgstr "" msgid "Simple" msgstr "" -#: modules/advanced-icon/advanced-icon.php:120 +#: modules/advanced-icon/advanced-icon.php:118 #: modules/flip-box/flip-box-bb-2-2-compatibility.php:49 #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:47 #: modules/image-icon/image-icon-bb-2-2-compatibility.php:137 @@ -1139,7 +1139,7 @@ msgstr "" msgid "Circle Background" msgstr "" -#: modules/advanced-icon/advanced-icon.php:121 +#: modules/advanced-icon/advanced-icon.php:119 #: modules/flip-box/flip-box-bb-2-2-compatibility.php:50 #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:48 #: modules/image-icon/image-icon-bb-2-2-compatibility.php:138 @@ -1149,7 +1149,7 @@ msgstr "" msgid "Square Background" msgstr "" -#: modules/advanced-icon/advanced-icon.php:122 +#: modules/advanced-icon/advanced-icon.php:120 #: modules/flip-box/flip-box-bb-2-2-compatibility.php:51 #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:49 #: modules/image-icon/image-icon-bb-2-2-compatibility.php:139 @@ -1169,7 +1169,7 @@ msgstr "" msgid "Design your own" msgstr "" -#: modules/advanced-icon/advanced-icon.php:138 +#: modules/advanced-icon/advanced-icon.php:136 #: modules/flip-box/flip-box-bb-2-2-compatibility.php:77 #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:75 #: modules/image-icon/image-icon-bb-2-2-compatibility.php:165 @@ -1187,7 +1187,7 @@ msgstr "" msgid "Background Size" msgstr "" -#: modules/advanced-icon/advanced-icon.php:139 +#: modules/advanced-icon/advanced-icon.php:137 #: modules/image-icon/image-icon-bb-2-2-compatibility.php:166 #: modules/image-icon/image-icon-bb-less-than-2-2-compatibility.php:163 #: modules/info-table/info-table-bb-2-2-compatibility.php:419 @@ -1195,7 +1195,7 @@ msgstr "" msgid "Spacing between Icon & Background edge" msgstr "" -#: modules/advanced-icon/advanced-icon.php:154 +#: modules/advanced-icon/advanced-icon.php:152 #: modules/flip-box/flip-box-bb-2-2-compatibility.php:89 #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:86 #: modules/image-icon/image-icon-bb-2-2-compatibility.php:177 @@ -1213,7 +1213,7 @@ msgstr "" msgid "Border Style" msgstr "" -#: modules/advanced-icon/advanced-icon.php:156 +#: modules/advanced-icon/advanced-icon.php:154 #: modules/flip-box/flip-box-bb-2-2-compatibility.php:91 #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:88 #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:308 @@ -1235,7 +1235,7 @@ msgid "" "to render properly." msgstr "" -#: modules/advanced-icon/advanced-icon.php:159 +#: modules/advanced-icon/advanced-icon.php:157 #: modules/flip-box/flip-box-bb-2-2-compatibility.php:94 #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:91 #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:311 @@ -1259,12 +1259,12 @@ msgstr "" #: modules/uabb-heading/uabb-heading-bb-less-than-2-2-compatibility.php:268 #: modules/uabb-separator/uabb-separator-bb-2-2-compatibility.php:74 #: modules/uabb-separator/uabb-separator-bb-less-than-2-2-compatibility.php:69 -#: modules/uabb-star-rating/uabb-star-rating.php:97 +#: modules/uabb-star-rating/uabb-star-rating.php:100 #: objects/fl-nested-form-button.php:261 msgid "Solid" msgstr "" -#: modules/advanced-icon/advanced-icon.php:160 +#: modules/advanced-icon/advanced-icon.php:158 #: modules/flip-box/flip-box-bb-2-2-compatibility.php:95 #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:92 #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:312 @@ -1292,7 +1292,7 @@ msgstr "" msgid "Dashed" msgstr "" -#: modules/advanced-icon/advanced-icon.php:161 +#: modules/advanced-icon/advanced-icon.php:159 #: modules/flip-box/flip-box-bb-2-2-compatibility.php:96 #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:93 #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:313 @@ -1320,7 +1320,7 @@ msgstr "" msgid "Dotted" msgstr "" -#: modules/advanced-icon/advanced-icon.php:162 +#: modules/advanced-icon/advanced-icon.php:160 #: modules/flip-box/flip-box-bb-2-2-compatibility.php:97 #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:94 #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:314 @@ -1346,7 +1346,7 @@ msgstr "" msgid "Double" msgstr "" -#: modules/advanced-icon/advanced-icon.php:181 +#: modules/advanced-icon/advanced-icon.php:179 #: modules/flip-box/flip-box-bb-2-2-compatibility.php:116 #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:113 #: modules/image-icon/image-icon-bb-2-2-compatibility.php:204 @@ -1366,7 +1366,7 @@ msgstr "" msgid "Border Width" msgstr "" -#: modules/advanced-icon/advanced-icon.php:211 +#: modules/advanced-icon/advanced-icon.php:209 #: modules/image-icon/image-icon-bb-2-2-compatibility.php:61 #: modules/image-icon/image-icon-bb-2-2-compatibility.php:115 #: modules/image-icon/image-icon-bb-less-than-2-2-compatibility.php:59 @@ -1381,28 +1381,28 @@ msgstr "" #: modules/uabb-heading/uabb-heading-bb-less-than-2-2-compatibility.php:68 #: modules/uabb-separator/uabb-separator-bb-2-2-compatibility.php:55 #: modules/uabb-separator/uabb-separator-bb-less-than-2-2-compatibility.php:50 -#: modules/uabb-star-rating/uabb-star-rating.php:196 +#: modules/uabb-star-rating/uabb-star-rating.php:199 #: objects/fl-nested-form-button.php:360 objects/fl-nested-form-button.php:755 msgid "Alignment" msgstr "" -#: modules/advanced-icon/advanced-icon.php:213 +#: modules/advanced-icon/advanced-icon.php:211 msgid "The overall alignment of Icon" msgstr "" -#: modules/advanced-icon/advanced-icon.php:217 +#: modules/advanced-icon/advanced-icon.php:215 #: modules/uabb-button/uabb-button-bb-2-2-compatibility.php:319 #: modules/uabb-button/uabb-button-bb-less-than-2-2-compatibility.php:363 #: objects/fl-nested-form-button.php:370 objects/fl-nested-form-button.php:765 msgid "Mobile Alignment" msgstr "" -#: modules/advanced-icon/advanced-icon.php:219 +#: modules/advanced-icon/advanced-icon.php:217 msgid "This alignment will apply on Mobile" msgstr "" -#: modules/advanced-icon/advanced-icon.php:224 -#: modules/advanced-icon/advanced-icon.php:370 +#: modules/advanced-icon/advanced-icon.php:222 +#: modules/advanced-icon/advanced-icon.php:368 #: modules/flip-box/flip-box-bb-2-2-compatibility.php:135 #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:130 #: modules/image-icon/image-icon-bb-2-2-compatibility.php:350 @@ -1421,7 +1421,7 @@ msgstr "" msgid "Colors" msgstr "" -#: modules/advanced-icon/advanced-icon.php:228 +#: modules/advanced-icon/advanced-icon.php:226 #: modules/flip-box/flip-box-bb-2-2-compatibility.php:141 #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:136 #: modules/image-icon/image-icon-bb-2-2-compatibility.php:356 @@ -1431,7 +1431,7 @@ msgstr "" msgid "Icon Color Presets" msgstr "" -#: modules/advanced-icon/advanced-icon.php:232 +#: modules/advanced-icon/advanced-icon.php:230 #: modules/flip-box/flip-box-bb-2-2-compatibility.php:144 #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:139 #: modules/image-icon/image-icon-bb-2-2-compatibility.php:359 @@ -1441,7 +1441,7 @@ msgstr "" msgid "Preset 1" msgstr "" -#: modules/advanced-icon/advanced-icon.php:233 +#: modules/advanced-icon/advanced-icon.php:231 #: modules/flip-box/flip-box-bb-2-2-compatibility.php:145 #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:140 #: modules/image-icon/image-icon-bb-2-2-compatibility.php:360 @@ -1451,7 +1451,7 @@ msgstr "" msgid "Preset 2" msgstr "" -#: modules/advanced-icon/advanced-icon.php:235 +#: modules/advanced-icon/advanced-icon.php:233 #: modules/flip-box/flip-box-bb-2-2-compatibility.php:147 #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:142 #: modules/image-icon/image-icon-bb-2-2-compatibility.php:362 @@ -1463,8 +1463,8 @@ msgid "" "Background : #f3f3f3" msgstr "" -#: modules/advanced-icon/advanced-icon.php:239 -#: modules/advanced-icon/advanced-icon.php:374 +#: modules/advanced-icon/advanced-icon.php:237 +#: modules/advanced-icon/advanced-icon.php:372 #: modules/flip-box/flip-box-bb-2-2-compatibility.php:248 #: modules/flip-box/flip-box-bb-2-2-compatibility.php:362 #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:238 @@ -1479,30 +1479,30 @@ msgstr "" #: modules/ribbon/ribbon-bb-2-2-compatibility.php:214 #: modules/ribbon/ribbon-bb-less-than-2-2-compatibility.php:120 #: modules/ribbon/ribbon-bb-less-than-2-2-compatibility.php:243 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:705 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:813 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:898 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:768 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:940 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:1093 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:704 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:812 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:897 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:767 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:939 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:1092 #: modules/uabb-heading/uabb-heading-bb-2-2-compatibility.php:268 #: modules/uabb-heading/uabb-heading-bb-2-2-compatibility.php:423 #: modules/uabb-heading/uabb-heading-bb-less-than-2-2-compatibility.php:282 #: modules/uabb-heading/uabb-heading-bb-less-than-2-2-compatibility.php:509 #: modules/uabb-separator/uabb-separator-bb-2-2-compatibility.php:22 #: modules/uabb-separator/uabb-separator-bb-less-than-2-2-compatibility.php:21 -#: modules/uabb-star-rating/uabb-star-rating.php:147 -#: modules/uabb-star-rating/uabb-star-rating.php:213 +#: modules/uabb-star-rating/uabb-star-rating.php:150 +#: modules/uabb-star-rating/uabb-star-rating.php:216 msgid "Color" msgstr "" -#: modules/advanced-icon/advanced-icon.php:247 -#: modules/advanced-icon/advanced-icon.php:382 +#: modules/advanced-icon/advanced-icon.php:245 +#: modules/advanced-icon/advanced-icon.php:380 msgid "Hover Color" msgstr "" -#: modules/advanced-icon/advanced-icon.php:277 -#: modules/advanced-icon/advanced-icon.php:413 +#: modules/advanced-icon/advanced-icon.php:275 +#: modules/advanced-icon/advanced-icon.php:411 #: modules/flip-box/flip-box-bb-2-2-compatibility.php:179 #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:171 #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:359 @@ -1526,8 +1526,8 @@ msgstr "" msgid "Border Color" msgstr "" -#: modules/advanced-icon/advanced-icon.php:285 -#: modules/advanced-icon/advanced-icon.php:421 +#: modules/advanced-icon/advanced-icon.php:283 +#: modules/advanced-icon/advanced-icon.php:419 #: modules/image-icon/image-icon-bb-2-2-compatibility.php:416 #: modules/image-icon/image-icon-bb-2-2-compatibility.php:471 #: modules/image-icon/image-icon-bb-less-than-2-2-compatibility.php:414 @@ -1543,7 +1543,7 @@ msgstr "" msgid "Border Hover Color" msgstr "" -#: modules/advanced-icon/advanced-icon.php:293 +#: modules/advanced-icon/advanced-icon.php:291 #: modules/flip-box/flip-box-bb-2-2-compatibility.php:189 #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:179 #: modules/image-icon/image-icon-bb-2-2-compatibility.php:426 @@ -1560,7 +1560,7 @@ msgstr "" msgid "Gradient" msgstr "" -#: modules/advanced-icon/advanced-icon.php:296 +#: modules/advanced-icon/advanced-icon.php:294 #: modules/flip-box/flip-box-bb-2-2-compatibility.php:192 #: modules/flip-box/flip-box-bb-2-2-compatibility.php:452 #: modules/flip-box/flip-box-bb-2-2-compatibility.php:541 @@ -1586,15 +1586,15 @@ msgstr "" #: modules/ribbon/ribbon-bb-less-than-2-2-compatibility.php:96 #: modules/ribbon/ribbon-bb-less-than-2-2-compatibility.php:106 #: modules/slide-box/slide-box-bb-2-2-compatibility.php:228 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:518 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:636 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:517 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:635 #: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:226 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:540 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:662 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:539 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:661 msgid "No" msgstr "" -#: modules/advanced-icon/advanced-icon.php:297 +#: modules/advanced-icon/advanced-icon.php:295 #: modules/flip-box/flip-box-bb-2-2-compatibility.php:193 #: modules/flip-box/flip-box-bb-2-2-compatibility.php:453 #: modules/flip-box/flip-box-bb-2-2-compatibility.php:540 @@ -1618,19 +1618,19 @@ msgstr "" #: modules/ribbon/ribbon-bb-less-than-2-2-compatibility.php:95 #: modules/ribbon/ribbon-bb-less-than-2-2-compatibility.php:105 #: modules/slide-box/slide-box-bb-2-2-compatibility.php:227 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:517 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:637 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:516 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:636 #: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:225 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:539 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:663 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:538 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:662 msgid "Yes" msgstr "" -#: modules/advanced-icon/advanced-icon.php:313 +#: modules/advanced-icon/advanced-icon.php:311 msgid "Add Icon" msgstr "" -#: modules/advanced-icon/advanced-icon.php:323 +#: modules/advanced-icon/advanced-icon.php:321 #: modules/image-icon/image-icon-bb-2-2-compatibility.php:22 #: modules/image-icon/image-icon-bb-less-than-2-2-compatibility.php:21 #: modules/info-list/info-list-bb-2-2-compatibility.php:398 @@ -1642,8 +1642,8 @@ msgstr "" msgid "Image Type" msgstr "" -#: modules/advanced-icon/advanced-icon.php:326 -#: modules/advanced-icon/advanced-icon.php:341 +#: modules/advanced-icon/advanced-icon.php:324 +#: modules/advanced-icon/advanced-icon.php:339 #: modules/flip-box/flip-box-bb-2-2-compatibility.php:14 #: modules/flip-box/flip-box-bb-2-2-compatibility.php:24 #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:13 @@ -1667,11 +1667,11 @@ msgstr "" #: modules/slide-box/slide-box-bb-2-2-compatibility.php:50 #: modules/slide-box/slide-box-bb-2-2-compatibility.php:65 #: modules/slide-box/slide-box-bb-2-2-compatibility.php:69 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:540 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:539 #: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:49 #: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:64 #: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:68 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:569 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:568 #: modules/uabb-button/uabb-button-bb-2-2-compatibility.php:133 #: modules/uabb-button/uabb-button-bb-less-than-2-2-compatibility.php:136 #: modules/uabb-heading/uabb-heading-bb-2-2-compatibility.php:134 @@ -1680,8 +1680,8 @@ msgstr "" msgid "Icon" msgstr "" -#: modules/advanced-icon/advanced-icon.php:327 -#: modules/advanced-icon/advanced-icon.php:347 +#: modules/advanced-icon/advanced-icon.php:325 +#: modules/advanced-icon/advanced-icon.php:345 #: modules/image-icon/image-icon-bb-2-2-compatibility.php:26 #: modules/image-icon/image-icon-bb-2-2-compatibility.php:94 #: modules/image-icon/image-icon-bb-less-than-2-2-compatibility.php:25 @@ -1705,14 +1705,14 @@ msgstr "" msgid "Photo" msgstr "" -#: modules/advanced-icon/advanced-icon.php:367 +#: modules/advanced-icon/advanced-icon.php:365 msgid "" "This background color properties will work only when Icon background style " "is not simple. Also the border color properties will work for Design your " "own." msgstr "" -#: modules/advanced-icon/advanced-icon.php:393 +#: modules/advanced-icon/advanced-icon.php:391 msgid "Background Color " msgstr "" @@ -1745,7 +1745,7 @@ msgstr "" #: modules/uabb-heading/uabb-heading-bb-2-2-compatibility.php:200 #: modules/uabb-heading/uabb-heading-bb-less-than-2-2-compatibility.php:158 #: modules/uabb-heading/uabb-heading-bb-less-than-2-2-compatibility.php:216 -#: modules/uabb-star-rating/uabb-star-rating.php:163 +#: modules/uabb-star-rating/uabb-star-rating.php:166 msgid "Size" msgstr "" @@ -1760,13 +1760,13 @@ msgstr "" #: modules/ribbon/ribbon-bb-2-2-compatibility.php:154 #: modules/ribbon/ribbon-bb-less-than-2-2-compatibility.php:150 #: modules/slide-box/slide-box-bb-2-2-compatibility.php:75 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:545 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:585 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:593 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:544 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:584 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:592 #: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:74 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:574 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:609 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:615 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:573 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:608 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:614 #: modules/uabb-heading/uabb-heading-bb-2-2-compatibility.php:154 #: modules/uabb-heading/uabb-heading-bb-less-than-2-2-compatibility.php:172 msgid "Icon Color" @@ -2108,8 +2108,8 @@ msgstr "" #: modules/flip-box/flip-box-bb-2-2-compatibility.php:546 #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:624 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:658 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:683 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:657 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:682 msgid "Overall Vertical Alignment" msgstr "" @@ -2146,13 +2146,13 @@ msgstr "" #: modules/info-table/info-table-bb-less-than-2-2-compatibility.php:715 #: modules/ribbon/ribbon-bb-2-2-compatibility.php:181 #: modules/ribbon/ribbon-bb-less-than-2-2-compatibility.php:171 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:671 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:695 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:741 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:803 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:845 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:888 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:696 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:670 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:694 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:740 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:802 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:844 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:887 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:695 #: modules/uabb-button/uabb-button-bb-2-2-compatibility.php:332 #: modules/uabb-button/uabb-button-bb-2-2-compatibility.php:339 #: modules/uabb-button/uabb-button-bb-less-than-2-2-compatibility.php:376 @@ -2161,7 +2161,7 @@ msgstr "" #: modules/uabb-heading/uabb-heading-bb-2-2-compatibility.php:413 #: modules/uabb-heading/uabb-heading-bb-2-2-compatibility.php:486 #: modules/uabb-heading/uabb-heading-bb-less-than-2-2-compatibility.php:319 -#: modules/uabb-star-rating/uabb-star-rating.php:236 +#: modules/uabb-star-rating/uabb-star-rating.php:239 #: objects/fl-nested-form-button.php:383 objects/fl-nested-form-button.php:778 #: objects/fl-nested-form-button.php:785 msgid "Typography" @@ -2169,8 +2169,8 @@ msgstr "" #: modules/flip-box/flip-box-bb-2-2-compatibility.php:576 #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:653 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:674 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:699 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:673 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:698 msgid "Front Title" msgstr "" @@ -2193,10 +2193,10 @@ msgstr "" #: modules/info-table/info-table-bb-less-than-2-2-compatibility.php:802 #: modules/ribbon/ribbon-bb-2-2-compatibility.php:192 #: modules/ribbon/ribbon-bb-less-than-2-2-compatibility.php:182 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:682 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:790 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:707 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:879 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:681 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:789 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:706 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:878 #: modules/uabb-heading/uabb-heading-bb-2-2-compatibility.php:473 #: modules/uabb-heading/uabb-heading-bb-less-than-2-2-compatibility.php:555 msgid "H1" @@ -2214,10 +2214,10 @@ msgstr "" #: modules/info-table/info-table-bb-less-than-2-2-compatibility.php:803 #: modules/ribbon/ribbon-bb-2-2-compatibility.php:193 #: modules/ribbon/ribbon-bb-less-than-2-2-compatibility.php:183 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:683 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:791 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:708 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:880 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:682 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:790 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:707 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:879 #: modules/uabb-heading/uabb-heading-bb-2-2-compatibility.php:474 #: modules/uabb-heading/uabb-heading-bb-less-than-2-2-compatibility.php:556 msgid "H2" @@ -2235,10 +2235,10 @@ msgstr "" #: modules/info-table/info-table-bb-less-than-2-2-compatibility.php:804 #: modules/ribbon/ribbon-bb-2-2-compatibility.php:194 #: modules/ribbon/ribbon-bb-less-than-2-2-compatibility.php:184 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:684 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:792 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:709 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:881 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:683 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:791 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:708 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:880 #: modules/uabb-heading/uabb-heading-bb-2-2-compatibility.php:475 #: modules/uabb-heading/uabb-heading-bb-less-than-2-2-compatibility.php:557 msgid "H3" @@ -2256,10 +2256,10 @@ msgstr "" #: modules/info-table/info-table-bb-less-than-2-2-compatibility.php:805 #: modules/ribbon/ribbon-bb-2-2-compatibility.php:195 #: modules/ribbon/ribbon-bb-less-than-2-2-compatibility.php:185 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:685 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:793 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:710 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:882 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:684 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:792 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:709 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:881 #: modules/uabb-heading/uabb-heading-bb-2-2-compatibility.php:476 #: modules/uabb-heading/uabb-heading-bb-less-than-2-2-compatibility.php:558 msgid "H4" @@ -2277,10 +2277,10 @@ msgstr "" #: modules/info-table/info-table-bb-less-than-2-2-compatibility.php:806 #: modules/ribbon/ribbon-bb-2-2-compatibility.php:196 #: modules/ribbon/ribbon-bb-less-than-2-2-compatibility.php:186 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:686 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:794 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:711 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:883 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:685 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:793 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:710 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:882 #: modules/uabb-heading/uabb-heading-bb-2-2-compatibility.php:477 #: modules/uabb-heading/uabb-heading-bb-less-than-2-2-compatibility.php:559 msgid "H5" @@ -2298,10 +2298,10 @@ msgstr "" #: modules/info-table/info-table-bb-less-than-2-2-compatibility.php:807 #: modules/ribbon/ribbon-bb-2-2-compatibility.php:197 #: modules/ribbon/ribbon-bb-less-than-2-2-compatibility.php:187 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:687 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:795 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:712 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:884 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:686 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:794 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:711 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:883 #: modules/uabb-heading/uabb-heading-bb-2-2-compatibility.php:478 #: modules/uabb-heading/uabb-heading-bb-less-than-2-2-compatibility.php:560 msgid "H6" @@ -2319,10 +2319,10 @@ msgstr "" #: modules/info-table/info-table-bb-less-than-2-2-compatibility.php:808 #: modules/ribbon/ribbon-bb-2-2-compatibility.php:198 #: modules/ribbon/ribbon-bb-less-than-2-2-compatibility.php:188 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:688 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:796 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:713 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:885 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:687 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:795 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:712 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:884 #: modules/uabb-heading/uabb-heading-bb-2-2-compatibility.php:479 #: modules/uabb-heading/uabb-heading-bb-less-than-2-2-compatibility.php:561 msgid "Div" @@ -2340,10 +2340,10 @@ msgstr "" #: modules/info-table/info-table-bb-less-than-2-2-compatibility.php:809 #: modules/ribbon/ribbon-bb-2-2-compatibility.php:199 #: modules/ribbon/ribbon-bb-less-than-2-2-compatibility.php:189 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:689 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:797 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:714 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:886 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:688 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:796 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:713 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:885 #: modules/uabb-heading/uabb-heading-bb-2-2-compatibility.php:480 #: modules/uabb-heading/uabb-heading-bb-less-than-2-2-compatibility.php:562 msgid "p" @@ -2361,10 +2361,10 @@ msgstr "" #: modules/info-table/info-table-bb-less-than-2-2-compatibility.php:810 #: modules/ribbon/ribbon-bb-2-2-compatibility.php:200 #: modules/ribbon/ribbon-bb-less-than-2-2-compatibility.php:190 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:690 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:798 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:715 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:887 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:689 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:797 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:714 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:886 #: modules/uabb-heading/uabb-heading-bb-2-2-compatibility.php:481 #: modules/uabb-heading/uabb-heading-bb-less-than-2-2-compatibility.php:563 msgid "span" @@ -2385,14 +2385,14 @@ msgstr "" #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:964 #: modules/info-list/info-list-bb-2-2-compatibility.php:286 #: modules/info-list/info-list-bb-less-than-2-2-compatibility.php:309 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:721 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:767 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:826 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:868 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:780 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:858 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:951 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:1027 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:720 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:766 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:825 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:867 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:779 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:857 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:950 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:1026 #: modules/uabb-heading/uabb-heading-bb-2-2-compatibility.php:353 #: modules/uabb-heading/uabb-heading-bb-2-2-compatibility.php:436 #: modules/uabb-heading/uabb-heading-bb-less-than-2-2-compatibility.php:399 @@ -2410,14 +2410,14 @@ msgstr "" #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:971 #: modules/info-list/info-list-bb-2-2-compatibility.php:294 #: modules/info-list/info-list-bb-less-than-2-2-compatibility.php:316 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:728 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:774 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:833 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:875 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:786 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:864 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:957 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:1033 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:727 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:773 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:832 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:874 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:785 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:863 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:956 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:1032 #: modules/uabb-heading/uabb-heading-bb-2-2-compatibility.php:367 #: modules/uabb-heading/uabb-heading-bb-2-2-compatibility.php:450 #: modules/uabb-heading/uabb-heading-bb-less-than-2-2-compatibility.php:412 @@ -2427,8 +2427,8 @@ msgstr "" #: modules/flip-box/flip-box-bb-2-2-compatibility.php:632 #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:743 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:737 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:794 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:736 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:793 msgid "Front Description" msgstr "" @@ -2439,8 +2439,8 @@ msgstr "" #: modules/flip-box/flip-box-bb-2-2-compatibility.php:671 #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:816 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:782 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:871 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:781 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:870 msgid "Back Title" msgstr "" @@ -2451,8 +2451,8 @@ msgstr "" #: modules/flip-box/flip-box-bb-2-2-compatibility.php:727 #: modules/flip-box/flip-box-bb-less-than-2-2-compatibility.php:906 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:841 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:964 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:840 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:963 msgid "Back Description" msgstr "" @@ -2526,11 +2526,11 @@ msgstr "" #: modules/info-table/info-table-bb-less-than-2-2-compatibility.php:933 #: modules/ribbon/ribbon-bb-2-2-compatibility.php:205 #: modules/ribbon/ribbon-bb-less-than-2-2-compatibility.php:195 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:720 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:798 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:892 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:968 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:1045 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:719 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:797 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:891 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:967 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:1044 #: modules/uabb-button/uabb-button-bb-less-than-2-2-compatibility.php:383 #: modules/uabb-heading/uabb-heading-bb-less-than-2-2-compatibility.php:461 #: modules/uabb-heading/uabb-heading-bb-less-than-2-2-compatibility.php:568 @@ -2554,10 +2554,10 @@ msgstr "" #: modules/ribbon/ribbon-bb-less-than-2-2-compatibility.php:86 #: modules/slide-box/slide-box-bb-2-2-compatibility.php:209 #: modules/slide-box/slide-box-bb-2-2-compatibility.php:484 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:622 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:621 #: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:207 #: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:499 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:648 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:647 #: modules/uabb-button/uabb-button-bb-2-2-compatibility.php:313 #: modules/uabb-button/uabb-button-bb-2-2-compatibility.php:323 #: modules/uabb-button/uabb-button-bb-less-than-2-2-compatibility.php:357 @@ -2566,7 +2566,7 @@ msgstr "" #: modules/uabb-heading/uabb-heading-bb-less-than-2-2-compatibility.php:87 #: modules/uabb-separator/uabb-separator-bb-2-2-compatibility.php:59 #: modules/uabb-separator/uabb-separator-bb-less-than-2-2-compatibility.php:54 -#: modules/uabb-star-rating/uabb-star-rating.php:200 +#: modules/uabb-star-rating/uabb-star-rating.php:203 #: objects/fl-nested-form-button.php:364 objects/fl-nested-form-button.php:374 #: objects/fl-nested-form-button.php:759 objects/fl-nested-form-button.php:769 msgid "Left" @@ -2587,13 +2587,13 @@ msgstr "" #: modules/slide-box/slide-box-bb-2-2-compatibility.php:208 #: modules/slide-box/slide-box-bb-2-2-compatibility.php:219 #: modules/slide-box/slide-box-bb-2-2-compatibility.php:483 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:621 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:662 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:620 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:661 #: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:206 #: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:217 #: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:498 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:647 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:687 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:646 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:686 #: modules/uabb-button/uabb-button-bb-2-2-compatibility.php:312 #: modules/uabb-button/uabb-button-bb-2-2-compatibility.php:322 #: modules/uabb-button/uabb-button-bb-less-than-2-2-compatibility.php:356 @@ -2602,7 +2602,7 @@ msgstr "" #: modules/uabb-heading/uabb-heading-bb-less-than-2-2-compatibility.php:88 #: modules/uabb-separator/uabb-separator-bb-2-2-compatibility.php:58 #: modules/uabb-separator/uabb-separator-bb-less-than-2-2-compatibility.php:53 -#: modules/uabb-star-rating/uabb-star-rating.php:201 +#: modules/uabb-star-rating/uabb-star-rating.php:204 #: objects/fl-nested-form-button.php:363 objects/fl-nested-form-button.php:373 #: objects/fl-nested-form-button.php:758 objects/fl-nested-form-button.php:768 msgid "Center" @@ -2620,10 +2620,10 @@ msgstr "" #: modules/ribbon/ribbon-bb-less-than-2-2-compatibility.php:87 #: modules/slide-box/slide-box-bb-2-2-compatibility.php:210 #: modules/slide-box/slide-box-bb-2-2-compatibility.php:485 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:623 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:622 #: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:208 #: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:500 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:649 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:648 #: modules/uabb-button/uabb-button-bb-2-2-compatibility.php:314 #: modules/uabb-button/uabb-button-bb-2-2-compatibility.php:324 #: modules/uabb-button/uabb-button-bb-less-than-2-2-compatibility.php:358 @@ -2632,7 +2632,7 @@ msgstr "" #: modules/uabb-heading/uabb-heading-bb-less-than-2-2-compatibility.php:89 #: modules/uabb-separator/uabb-separator-bb-2-2-compatibility.php:60 #: modules/uabb-separator/uabb-separator-bb-less-than-2-2-compatibility.php:55 -#: modules/uabb-star-rating/uabb-star-rating.php:202 +#: modules/uabb-star-rating/uabb-star-rating.php:205 #: objects/fl-nested-form-button.php:365 objects/fl-nested-form-button.php:375 #: objects/fl-nested-form-button.php:760 objects/fl-nested-form-button.php:770 msgid "Right" @@ -2759,7 +2759,7 @@ msgstr "" msgid "Icon Hover Color" msgstr "" -#: modules/image-icon/image-icon.php:41 +#: modules/image-icon/image-icon.php:53 msgid "Image / Icon with effect" msgstr "" @@ -2822,9 +2822,9 @@ msgstr "" #: modules/info-list/info-list-bb-2-2-compatibility.php:62 #: modules/info-list/info-list-bb-less-than-2-2-compatibility.php:61 #: modules/slide-box/slide-box-bb-2-2-compatibility.php:218 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:663 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:662 #: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:216 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:688 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:687 #: modules/uabb-heading/uabb-heading-bb-2-2-compatibility.php:123 #: modules/uabb-heading/uabb-heading-bb-less-than-2-2-compatibility.php:142 msgid "Top" @@ -2877,7 +2877,7 @@ msgstr "" #: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:286 #: modules/uabb-button/uabb-button-bb-2-2-compatibility.php:64 #: modules/uabb-button/uabb-button-bb-less-than-2-2-compatibility.php:73 -#: modules/uabb-star-rating/uabb-star-rating.php:117 +#: modules/uabb-star-rating/uabb-star-rating.php:120 #: objects/fl-nested-form-button.php:67 objects/fl-nested-form-button.php:482 msgid "Default" msgstr "" @@ -3252,7 +3252,7 @@ msgstr "" #: modules/info-list/info-list-bb-less-than-2-2-compatibility.php:69 #: modules/slide-box/slide-box-bb-2-2-compatibility.php:266 #: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:276 -#: modules/uabb-star-rating/uabb-star-rating.php:118 +#: modules/uabb-star-rating/uabb-star-rating.php:121 msgid "Inline" msgstr "" @@ -3336,10 +3336,10 @@ msgstr "" #: modules/info-list/info-list-bb-less-than-2-2-compatibility.php:413 #: modules/slide-box/slide-box-bb-2-2-compatibility.php:22 #: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:21 -#: modules/uabb-star-rating/uabb-star-rating.php:103 -#: modules/uabb-star-rating/uabb-star-rating.php:209 -#: modules/uabb-star-rating/uabb-star-rating.php:239 -#: modules/uabb-star-rating/uabb-star-rating.php:243 +#: modules/uabb-star-rating/uabb-star-rating.php:106 +#: modules/uabb-star-rating/uabb-star-rating.php:212 +#: modules/uabb-star-rating/uabb-star-rating.php:242 +#: modules/uabb-star-rating/uabb-star-rating.php:246 msgid "Title" msgstr "" @@ -3627,7 +3627,7 @@ msgstr "" #: modules/ribbon/ribbon-bb-2-2-compatibility.php:15 #: modules/ribbon/ribbon-bb-less-than-2-2-compatibility.php:14 -#: modules/uabb-star-rating/uabb-star-rating.php:114 +#: modules/uabb-star-rating/uabb-star-rating.php:117 msgid "Layout" msgstr "" @@ -3752,10 +3752,10 @@ msgstr "" #: modules/ribbon/ribbon-bb-2-2-compatibility.php:188 #: modules/ribbon/ribbon-bb-less-than-2-2-compatibility.php:178 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:678 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:786 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:703 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:875 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:677 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:785 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:702 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:874 msgid "Tag" msgstr "" @@ -3789,7 +3789,7 @@ msgstr "" #: modules/slide-box/slide-box-bb-2-2-compatibility.php:181 #: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:179 -#: modules/uabb-star-rating/uabb-star-rating.php:128 +#: modules/uabb-star-rating/uabb-star-rating.php:131 msgid "Position" msgstr "" @@ -3971,81 +3971,81 @@ msgstr "" msgid "To apply padding to Slide Box Back use this setting" msgstr "" -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:510 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:532 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:509 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:531 msgid "Overlay" msgstr "" -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:514 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:536 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:513 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:535 msgid "Enable Overlay" msgstr "" -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:531 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:553 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:530 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:552 msgid "Overlay Color" msgstr "" -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:554 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:601 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:581 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:621 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:553 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:600 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:580 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:620 msgid "Icon Background Color" msgstr "" -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:581 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:605 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:580 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:604 msgid "Drop Down Icon" msgstr "" -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:618 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:644 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:617 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:643 msgid "Icon Alignment" msgstr "" -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:629 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:655 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:628 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:654 msgid "Slide Box Min Height" msgstr "" -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:633 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:659 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:632 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:658 msgid "Minimum Height" msgstr "" -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:650 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:676 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:649 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:675 msgid "Enter Height" msgstr "" -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:654 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:679 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:653 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:678 msgid "" "Apply minimum height to complete SlideBox. It is useful when multiple " "SlideBox are in same row." msgstr "" -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:660 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:685 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:659 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:684 msgid "If enabled, the Content would align vertically center" msgstr "" -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:713 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:759 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:774 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:852 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:712 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:758 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:773 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:851 msgid "Hover/Focus Color" msgstr "" -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:751 -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:857 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:846 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:1018 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:750 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:856 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:845 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:1017 msgid "Description Color" msgstr "" -#: modules/slide-box/slide-box-bb-2-2-compatibility.php:884 -#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:1041 +#: modules/slide-box/slide-box-bb-2-2-compatibility.php:883 +#: modules/slide-box/slide-box-bb-less-than-2-2-compatibility.php:1040 msgid "Link Text" msgstr "" @@ -4456,7 +4456,7 @@ msgid "A divider line to separate content." msgstr "" #: modules/uabb-star-rating/uabb-star-rating.php:24 -#: modules/uabb-star-rating/uabb-star-rating.php:72 +#: modules/uabb-star-rating/uabb-star-rating.php:75 msgid "Star Rating" msgstr "" @@ -4464,51 +4464,86 @@ msgstr "" msgid "A module for Star Rating." msgstr "" -#: modules/uabb-star-rating/uabb-star-rating.php:76 +#: modules/uabb-star-rating/uabb-star-rating.php:79 msgid "Scale" msgstr "" -#: modules/uabb-star-rating/uabb-star-rating.php:79 +#: modules/uabb-star-rating/uabb-star-rating.php:82 msgid "0-5 Stars" msgstr "" -#: modules/uabb-star-rating/uabb-star-rating.php:80 +#: modules/uabb-star-rating/uabb-star-rating.php:83 msgid "0-10 Stars" msgstr "" -#: modules/uabb-star-rating/uabb-star-rating.php:85 -#: modules/uabb-star-rating/uabb-star-rating.php:143 +#: modules/uabb-star-rating/uabb-star-rating.php:88 +#: modules/uabb-star-rating/uabb-star-rating.php:146 msgid "Rating" msgstr "" -#: modules/uabb-star-rating/uabb-star-rating.php:94 +#: modules/uabb-star-rating/uabb-star-rating.php:97 msgid "Unmarked Style" msgstr "" -#: modules/uabb-star-rating/uabb-star-rating.php:98 +#: modules/uabb-star-rating/uabb-star-rating.php:101 msgid "Outline" msgstr "" -#: modules/uabb-star-rating/uabb-star-rating.php:105 +#: modules/uabb-star-rating/uabb-star-rating.php:108 msgid "Ratings !!!" msgstr "" -#: modules/uabb-star-rating/uabb-star-rating.php:131 +#: modules/uabb-star-rating/uabb-star-rating.php:134 msgid "Star First" msgstr "" -#: modules/uabb-star-rating/uabb-star-rating.php:132 +#: modules/uabb-star-rating/uabb-star-rating.php:135 msgid "Title First" msgstr "" -#: modules/uabb-star-rating/uabb-star-rating.php:155 +#: modules/uabb-star-rating/uabb-star-rating.php:158 msgid "Unmarked Color" msgstr "" -#: modules/uabb-star-rating/uabb-star-rating.php:203 +#: modules/uabb-star-rating/uabb-star-rating.php:206 msgid "Justify" msgstr "" +#: vendor/wp-cli/core-command/src/Core_Command.php:749 +msgid "Wildcard DNS may not be configured correctly." +msgstr "" + +#: vendor/wp-cli/entity-command/src/Site_Command.php:157 +msgid "Uncategorized" +msgstr "" + +#: vendor/wp-cli/export-command/src/WP_Export_XML_Over_HTTP.php:20 +#: vendor/wp-cli/export-command/src/WP_Export_XML_Over_HTTP.php:25 +msgid "Export Error" +msgstr "" + +#: vendor/wp-cli/extension-command/src/WP_CLI/CommandWithUpgrade.php:770 +msgid " Try again" +msgstr "" + +#: vendor/wp-cli/extension-command/src/WP_CLI/CommandWithUpgrade.php:776 +msgid "API error. Try Again." +msgstr "" + +#: vendor/wp-cli/media-command/src/Media_Command.php:159 +msgid "image" +msgid_plural "images" +msgstr[0] "" +msgstr[1] "" + +#: vendor/wp-cli/wp-cli/php/utils-wp.php:247 +msgid "Inactive Widgets" +msgstr "" + +#: vendor/wp-cli/wp-cli/php/utils-wp.php:250 +msgid "Drag widgets here to remove them from the sidebar but keep their settings." +msgstr "" + #. Plugin Name of the plugin/theme msgid "Ultimate Addons for Beaver Builder - Lite" msgstr "" @@ -4532,7 +4567,7 @@ msgstr "" msgid "http://www.brainstormforce.com" msgstr "" -#: classes/class-uabb-admin-settings.php:250 +#: classes/class-uabb-admin-settings.php:251 msgctxt "%s stands for custom branded \"UABB\" name." msgid "%s Settings" msgstr "" @@ -4559,4 +4594,18 @@ msgstr "" #: objects/fl-nested-form-button.php:225 objects/fl-nested-form-button.php:656 msgctxt "Width." msgid "Auto" +msgstr "" + +#: vendor/wp-cli/core-command/src/Core_Command.php:491 +#: vendor/wp-cli/core-command/src/Core_Command.php:565 +#. translators: placeholder is blog name +#. translators: placeholder is user supplied title +msgctxt "Default network name" +msgid "%s Sites" +msgstr "" + +#: vendor/wp-cli/entity-command/src/Site_Command.php:160 +#. translators: Default category slug +msgctxt "Default category slug" +msgid "Uncategorized" msgstr "" \ No newline at end of file diff --git a/lib/astra-notices/class-astra-notices.php b/lib/astra-notices/class-astra-notices.php index e1e85b3c..59346118 100644 --- a/lib/astra-notices/class-astra-notices.php +++ b/lib/astra-notices/class-astra-notices.php @@ -116,7 +116,7 @@ public function dismiss_notice() { } if ( false === wp_verify_nonce( $nonce, 'astra-notices' ) ) { - wp_send_json_error( esc_html_e( 'WordPress Nonce not validated.' ) ); + wp_send_json_error( esc_html_e( 'WordPress Nonce not validated.', 'uabb' ) ); } // Valid inputs? diff --git a/phpcs.xml.dist b/phpcs.xml.dist index d2e349ce..987f989e 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -35,6 +35,7 @@ */vendor/* */tests/* */admin/bsf-core/* + */stubs/* */classes/library/batch-processing/* */classes/library/image-processing-queue/* diff --git a/readme.txt b/readme.txt index 6a925c32..7e65ab94 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link: https://www.paypal.me/BrainstormForce Tags: beaver builder, beaver builder free, beaver builder lite, beaver builder addons, beaver builder extensions Requires at least: 4.6 Tested up to: 6.6 -Stable tag: 1.5.11 +Stable tag: 1.5.12 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -215,7 +215,7 @@ Yes it is! This plugin comes with .po and .mo files. It is already translated in == Changelog == -= 1.5.11.1 = += 1.5.12 = * Improvement: Improved code quality syntax and security checks for better coding standards and practices. * Fixed: Info List - Icon overlap issue. diff --git a/tests/php/stubs/lite-stubs.php b/tests/php/stubs/lite-stubs.php index 7209f8a4..bef2304e 100644 --- a/tests/php/stubs/lite-stubs.php +++ b/tests/php/stubs/lite-stubs.php @@ -2411,7 +2411,7 @@ public function __construct() { } \define( 'BB_ULTIMATE_ADDON_DIR', \plugin_dir_path( __FILE__ ) ); \define( 'BB_ULTIMATE_ADDON_URL', \plugins_url( '/', __FILE__ ) ); -\define( 'BB_ULTIMATE_ADDON_LITE_VERSION', '1.5.11' ); +\define( 'BB_ULTIMATE_ADDON_LITE_VERSION', '1.5.12' ); \define( 'BSF_REMOVE_UABB_FROM_REGISTRATION_LISTING', \true ); \define( 'BB_ULTIMATE_ADDON_FILE', \trailingslashit( __DIR__ ) . 'bb-ultimate-addon.php' ); // @codingStandardsIgnoreLine.