diff --git a/phpstan.neon.dist b/phpstan.neon.dist index c49a3da..82e9614 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -12,8 +12,4 @@ parameters: - src/ excludePaths: - src/**/*Example.php - ignoreErrors: - # Block templates - - '#^Variable \$attributes might not be defined\.#' - - '#^Variable \$innerBlockContent might not be defined\.#' checkGenericClassInNonGenericObjectType: false diff --git a/src/Helpers/Helper.php b/src/Helpers/Helper.php index 3d580cf..7d84b68 100644 --- a/src/Helpers/Helper.php +++ b/src/Helpers/Helper.php @@ -11,7 +11,6 @@ namespace EightshiftFormsUtils\Helpers; use EightshiftFormsUtils\Config\UtilsConfig; -use EightshiftFormsUtilsVendor\EightshiftLibs\Helpers\Components; use RecursiveArrayIterator; use RecursiveIteratorIterator; diff --git a/src/Helpers/UploadHelper.php b/src/Helpers/UploadHelper.php index f117084..5ab3b12 100644 --- a/src/Helpers/UploadHelper.php +++ b/src/Helpers/UploadHelper.php @@ -290,7 +290,7 @@ public static function isFileFaulty(array $files): bool * * @return string */ - private function getUploadFolerPath(): string + private static function getUploadFolerPath(): string { if (!\defined('WP_CONTENT_DIR')) { return 'errorUploadFolderPathMissingWpContentDir'; diff --git a/src/Helpers/UtilsHelper.php b/src/Helpers/UtilsHelper.php index 4f57a09..fdb912f 100644 --- a/src/Helpers/UtilsHelper.php +++ b/src/Helpers/UtilsHelper.php @@ -15,7 +15,7 @@ */ class UtilsHelper { - /** + /** * Return main manifest.json file. * * @return array @@ -23,7 +23,7 @@ class UtilsHelper public static function getUtilsManifest(): array { $sep = \DIRECTORY_SEPARATOR; - $filePath = dirname(__FILE__, 2) . "{$sep}manifest.json"; + $filePath = \dirname(__FILE__, 2) . "{$sep}manifest.json"; return \json_decode(\implode(' ', (array)\file($filePath)), true); }