From 4332ca78cf10de737c69f4106d90937898bf5bdd Mon Sep 17 00:00:00 2001 From: Mario Borna Mjertan Date: Mon, 13 Dec 2021 17:43:23 +0100 Subject: [PATCH] Fix PHPCS PSR12 compliance errors introduced in 3.6.2 Fixes PSR12.Classes.OpeningBraceSpace.Found errors introduced in PHPCS release 3.6.2 in the whole project: classes can't start with a blank line For more, see: PHPCS release notes https://github.com/squizlabs/PHP_CodeSniffer/releases/tag/3.6.2 PHPCS issue: https://github.com/squizlabs/PHP_CodeSniffer/issues/3437 --- src/AdminMenus/AbstractAdminMenu.php | 1 - src/AdminMenus/AbstractAdminSubMenu.php | 1 - src/AdminMenus/AdminSubMenuCli.php | 1 - src/BlockPatterns/AbstractBlockPattern.php | 1 - src/BlockPatterns/BlockPatternCli.php | 1 - src/BlockPatterns/BlockPatternExample.php | 1 - src/Blocks/AbstractBlocks.php | 1 - src/Blocks/BlockVariationCli.php | 1 - src/Blocks/BlockWrapperCli.php | 1 - src/Blocks/BlocksCli.php | 1 - src/Blocks/BlocksExample.php | 1 - src/Blocks/BlocksStorybookCli.php | 1 - src/Blocks/RenderableBlockInterface.php | 1 - src/CiExclude/CiExcludeCli.php | 1 - src/Cli/CliInterface.php | 1 - src/Cli/CliReset.php | 1 - src/Cli/CliRunAll.php | 1 - src/Cli/CliShowAll.php | 1 - src/Columns/PostType/AbstractPostTypeColumns.php | 1 - src/Columns/Taxonomy/AbstractTaxonomyColumns.php | 1 - src/Columns/User/AbstractUserColumns.php | 1 - src/Config/AbstractConfigData.php | 1 - src/Config/ConfigCli.php | 1 - src/Config/ConfigDataInterface.php | 1 - src/Config/ConfigExample.php | 1 - src/ConfigProject/ConfigProjectCli.php | 1 - src/CustomMeta/AbstractAcfMeta.php | 1 - src/CustomMeta/AcfMetaCli.php | 1 - src/CustomMeta/AcfMetaExample.php | 1 - src/CustomPostType/AbstractPostType.php | 1 - src/CustomPostType/LabelGenerator.php | 1 - src/CustomPostType/PostTypeCli.php | 1 - src/CustomPostType/PostTypeExample.php | 1 - src/CustomTaxonomy/AbstractTaxonomy.php | 1 - src/CustomTaxonomy/TaxonomyCli.php | 1 - src/CustomTaxonomy/TaxonomyExample.php | 1 - src/Db/ExportCli.php | 1 - src/Db/ImportCli.php | 1 - src/Enqueue/AbstractAssets.php | 1 - src/Enqueue/Admin/AbstractEnqueueAdmin.php | 1 - src/Enqueue/Admin/EnqueueAdminCli.php | 1 - src/Enqueue/Admin/EnqueueAdminExample.php | 1 - src/Enqueue/Blocks/AbstractEnqueueBlocks.php | 1 - src/Enqueue/Blocks/EnqueueBlocksCli.php | 1 - src/Enqueue/Blocks/EnqueueBlocksExample.php | 1 - src/Enqueue/Theme/AbstractEnqueueTheme.php | 1 - src/Enqueue/Theme/EnqueueThemeCli.php | 1 - src/Enqueue/Theme/EnqueueThemeExample.php | 1 - src/Exception/ComponentException.php | 1 - src/Exception/FailedToLoadView.php | 1 - src/Exception/GeneralExceptionInterface.php | 1 - src/Exception/InvalidAutowireDependency.php | 1 - src/Exception/InvalidBlock.php | 1 - src/Exception/InvalidCallback.php | 1 - src/Exception/InvalidManifest.php | 1 - src/Exception/InvalidNouns.php | 1 - src/Exception/InvalidService.php | 1 - src/Exception/NonPsr4CompliantClass.php | 1 - src/Exception/PluginActivationFailure.php | 1 - src/GitIgnore/GitIgnoreCli.php | 1 - src/Helpers/Components.php | 1 - src/Helpers/ErrorLoggerTrait.php | 1 - src/Helpers/ObjectHelperTrait.php | 1 - src/Helpers/Post.php | 1 - src/Helpers/Shortcode.php | 1 - src/I18n/I18nCli.php | 1 - src/I18n/I18nExample.php | 1 - src/Login/LoginCli.php | 1 - src/Login/LoginExample.php | 1 - src/Main/AbstractMain.php | 1 - src/Main/Autowiring.php | 1 - src/Main/MainCli.php | 1 - src/Main/MainExample.php | 1 - src/Manifest/AbstractManifest.php | 1 - src/Manifest/ManifestCli.php | 1 - src/Manifest/ManifestExample.php | 1 - src/Manifest/ManifestInterface.php | 1 - src/Media/MediaCli.php | 1 - src/Media/MediaExample.php | 1 - src/Menu/AbstractMenu.php | 1 - src/Menu/MenuCli.php | 1 - src/Menu/MenuExample.php | 1 - src/Menu/MenuPositionsInterface.php | 1 - src/ModifyAdminAppearance/ModifyAdminAppearanceCli.php | 1 - src/ModifyAdminAppearance/ModifyAdminAppearanceExample.php | 1 - src/Readme/ReadmeCli.php | 1 - src/Rest/CallableFieldInterface.php | 1 - src/Rest/CallableRouteInterface.php | 1 - src/Rest/Fields/AbstractField.php | 1 - src/Rest/Fields/FieldCli.php | 1 - src/Rest/Fields/FieldExample.php | 1 - src/Rest/RouteInterface.php | 1 - src/Rest/RouteSecurityInterface.php | 1 - src/Rest/Routes/AbstractRoute.php | 1 - src/Rest/Routes/RouteExample.php | 1 - src/Services/ServiceExample.php | 1 - src/Services/ServiceExampleCli.php | 1 - src/ThemeOptions/ThemeOptionsCli.php | 1 - src/ThemeOptions/ThemeOptionsExample.php | 1 - src/View/AbstractEscapedView.php | 1 - src/View/EscapedViewCli.php | 1 - src/View/EscapedViewExample.php | 1 - 102 files changed, 102 deletions(-) diff --git a/src/AdminMenus/AbstractAdminMenu.php b/src/AdminMenus/AbstractAdminMenu.php index 89fb86be9..35541c9fe 100644 --- a/src/AdminMenus/AbstractAdminMenu.php +++ b/src/AdminMenus/AbstractAdminMenu.php @@ -21,7 +21,6 @@ */ abstract class AbstractAdminMenu implements ServiceInterface, RenderableBlockInterface { - /** * Register all the hooks * diff --git a/src/AdminMenus/AbstractAdminSubMenu.php b/src/AdminMenus/AbstractAdminSubMenu.php index 31966caea..d686d06da 100644 --- a/src/AdminMenus/AbstractAdminSubMenu.php +++ b/src/AdminMenus/AbstractAdminSubMenu.php @@ -17,7 +17,6 @@ */ abstract class AbstractAdminSubMenu extends AbstractAdminMenu { - /** * Register all the hooks * diff --git a/src/AdminMenus/AdminSubMenuCli.php b/src/AdminMenus/AdminSubMenuCli.php index c898c9480..16cda4b6b 100644 --- a/src/AdminMenus/AdminSubMenuCli.php +++ b/src/AdminMenus/AdminSubMenuCli.php @@ -17,7 +17,6 @@ */ class AdminSubMenuCli extends AbstractCli { - /** * Output dir relative path. * diff --git a/src/BlockPatterns/AbstractBlockPattern.php b/src/BlockPatterns/AbstractBlockPattern.php index 080b3fede..08b934c17 100644 --- a/src/BlockPatterns/AbstractBlockPattern.php +++ b/src/BlockPatterns/AbstractBlockPattern.php @@ -17,7 +17,6 @@ */ abstract class AbstractBlockPattern implements ServiceInterface { - /** * Register block pattern. * diff --git a/src/BlockPatterns/BlockPatternCli.php b/src/BlockPatterns/BlockPatternCli.php index 6acb6b093..3d7560f5b 100644 --- a/src/BlockPatterns/BlockPatternCli.php +++ b/src/BlockPatterns/BlockPatternCli.php @@ -18,7 +18,6 @@ */ class BlockPatternCli extends AbstractCli { - /** * Output dir relative path. * diff --git a/src/BlockPatterns/BlockPatternExample.php b/src/BlockPatterns/BlockPatternExample.php index c76ea6395..e43df1782 100644 --- a/src/BlockPatterns/BlockPatternExample.php +++ b/src/BlockPatterns/BlockPatternExample.php @@ -17,7 +17,6 @@ */ class BlockPatternExample extends AbstractBlockPattern { - /** * Get the pattern categories. * diff --git a/src/Blocks/AbstractBlocks.php b/src/Blocks/AbstractBlocks.php index 5c45f1b6d..e5c22bec3 100644 --- a/src/Blocks/AbstractBlocks.php +++ b/src/Blocks/AbstractBlocks.php @@ -21,7 +21,6 @@ */ abstract class AbstractBlocks implements ServiceInterface, RenderableBlockInterface { - /** * Full data of blocks, settings and wrapper data. * diff --git a/src/Blocks/BlockVariationCli.php b/src/Blocks/BlockVariationCli.php index 027ec83d8..453a47f6a 100644 --- a/src/Blocks/BlockVariationCli.php +++ b/src/Blocks/BlockVariationCli.php @@ -17,7 +17,6 @@ */ class BlockVariationCli extends AbstractCli { - /** * Output dir relative path * diff --git a/src/Blocks/BlockWrapperCli.php b/src/Blocks/BlockWrapperCli.php index 98b40817a..cdcb71cd3 100644 --- a/src/Blocks/BlockWrapperCli.php +++ b/src/Blocks/BlockWrapperCli.php @@ -17,7 +17,6 @@ */ class BlockWrapperCli extends AbstractCli { - /** * Output dir relative path * diff --git a/src/Blocks/BlocksCli.php b/src/Blocks/BlocksCli.php index d423a366c..27698934c 100644 --- a/src/Blocks/BlocksCli.php +++ b/src/Blocks/BlocksCli.php @@ -17,7 +17,6 @@ */ class BlocksCli extends AbstractCli { - /** * Toggle to see if this is running inside tests or not * diff --git a/src/Blocks/BlocksExample.php b/src/Blocks/BlocksExample.php index 5c6fef02a..0ca3fc740 100644 --- a/src/Blocks/BlocksExample.php +++ b/src/Blocks/BlocksExample.php @@ -19,7 +19,6 @@ */ class BlocksExample extends AbstractBlocks { - /** * Reusable blocks Capability Name. */ diff --git a/src/Blocks/BlocksStorybookCli.php b/src/Blocks/BlocksStorybookCli.php index 3abca6a96..62daf8ca3 100644 --- a/src/Blocks/BlocksStorybookCli.php +++ b/src/Blocks/BlocksStorybookCli.php @@ -17,7 +17,6 @@ */ class BlocksStorybookCli extends AbstractCli { - /** * Get WPCLI command doc * diff --git a/src/Blocks/RenderableBlockInterface.php b/src/Blocks/RenderableBlockInterface.php index aa90ddd76..33ba636db 100644 --- a/src/Blocks/RenderableBlockInterface.php +++ b/src/Blocks/RenderableBlockInterface.php @@ -17,7 +17,6 @@ */ interface RenderableBlockInterface { - /** * Provides block registration render callback method. * diff --git a/src/CiExclude/CiExcludeCli.php b/src/CiExclude/CiExcludeCli.php index ee9a43805..a1c632f03 100644 --- a/src/CiExclude/CiExcludeCli.php +++ b/src/CiExclude/CiExcludeCli.php @@ -17,7 +17,6 @@ */ class CiExcludeCli extends AbstractCli { - /** * Output dir relative path * diff --git a/src/Cli/CliInterface.php b/src/Cli/CliInterface.php index d5fa3a69e..d0cc98b63 100644 --- a/src/Cli/CliInterface.php +++ b/src/Cli/CliInterface.php @@ -12,7 +12,6 @@ interface CliInterface { - /** * Register method for WPCLI command * diff --git a/src/Cli/CliReset.php b/src/Cli/CliReset.php index 59b65ae87..e84fae5f6 100644 --- a/src/Cli/CliReset.php +++ b/src/Cli/CliReset.php @@ -17,7 +17,6 @@ */ class CliReset extends AbstractCli { - /** * Get WPCLI command name. * diff --git a/src/Cli/CliRunAll.php b/src/Cli/CliRunAll.php index 1fc0bcc48..d32f65aa6 100644 --- a/src/Cli/CliRunAll.php +++ b/src/Cli/CliRunAll.php @@ -17,7 +17,6 @@ */ class CliRunAll extends AbstractCli { - /** * Get WPCLI command name * diff --git a/src/Cli/CliShowAll.php b/src/Cli/CliShowAll.php index 0b1c0b566..e7895aa59 100644 --- a/src/Cli/CliShowAll.php +++ b/src/Cli/CliShowAll.php @@ -17,7 +17,6 @@ */ class CliShowAll extends AbstractCli { - /** * Get WPCLI command name * diff --git a/src/Columns/PostType/AbstractPostTypeColumns.php b/src/Columns/PostType/AbstractPostTypeColumns.php index 6ba5ed7a8..68a6f961c 100644 --- a/src/Columns/PostType/AbstractPostTypeColumns.php +++ b/src/Columns/PostType/AbstractPostTypeColumns.php @@ -19,7 +19,6 @@ */ abstract class AbstractPostTypeColumns implements ServiceInterface { - /** * Register the post columns and content in them. * diff --git a/src/Columns/Taxonomy/AbstractTaxonomyColumns.php b/src/Columns/Taxonomy/AbstractTaxonomyColumns.php index a45005a68..8f3e63f3b 100644 --- a/src/Columns/Taxonomy/AbstractTaxonomyColumns.php +++ b/src/Columns/Taxonomy/AbstractTaxonomyColumns.php @@ -19,7 +19,6 @@ */ abstract class AbstractTaxonomyColumns implements ServiceInterface { - /** * Register the taxonomy columns and content in them. * diff --git a/src/Columns/User/AbstractUserColumns.php b/src/Columns/User/AbstractUserColumns.php index e6ae14162..a39e52f45 100644 --- a/src/Columns/User/AbstractUserColumns.php +++ b/src/Columns/User/AbstractUserColumns.php @@ -19,7 +19,6 @@ */ abstract class AbstractUserColumns implements ServiceInterface { - /** * Register the user columns and content in them. * diff --git a/src/Config/AbstractConfigData.php b/src/Config/AbstractConfigData.php index 790344ece..4fe471774 100644 --- a/src/Config/AbstractConfigData.php +++ b/src/Config/AbstractConfigData.php @@ -17,7 +17,6 @@ */ abstract class AbstractConfigData implements ConfigDataInterface { - /** * Return project absolute path. * diff --git a/src/Config/ConfigCli.php b/src/Config/ConfigCli.php index 4b85a30a6..1a09a11bc 100644 --- a/src/Config/ConfigCli.php +++ b/src/Config/ConfigCli.php @@ -17,7 +17,6 @@ */ class ConfigCli extends AbstractCli { - /** * Output dir relative path. */ diff --git a/src/Config/ConfigDataInterface.php b/src/Config/ConfigDataInterface.php index bf65bb77d..ee6c30162 100644 --- a/src/Config/ConfigDataInterface.php +++ b/src/Config/ConfigDataInterface.php @@ -17,7 +17,6 @@ */ interface ConfigDataInterface { - /** * Method that returns project name. * diff --git a/src/Config/ConfigExample.php b/src/Config/ConfigExample.php index e931c5846..784bd0853 100644 --- a/src/Config/ConfigExample.php +++ b/src/Config/ConfigExample.php @@ -20,7 +20,6 @@ */ class ConfigExample extends AbstractConfigData { - /** * Method that returns project name. * diff --git a/src/ConfigProject/ConfigProjectCli.php b/src/ConfigProject/ConfigProjectCli.php index bdfc2148b..0c057a6fb 100644 --- a/src/ConfigProject/ConfigProjectCli.php +++ b/src/ConfigProject/ConfigProjectCli.php @@ -17,7 +17,6 @@ */ class ConfigProjectCli extends AbstractCli { - /** * Output dir relative path. */ diff --git a/src/CustomMeta/AbstractAcfMeta.php b/src/CustomMeta/AbstractAcfMeta.php index 4dcda446c..00312acf2 100644 --- a/src/CustomMeta/AbstractAcfMeta.php +++ b/src/CustomMeta/AbstractAcfMeta.php @@ -17,7 +17,6 @@ */ abstract class AbstractAcfMeta implements ServiceInterface { - /** * Register custom acf meta. * diff --git a/src/CustomMeta/AcfMetaCli.php b/src/CustomMeta/AcfMetaCli.php index bd54890bd..648124aeb 100644 --- a/src/CustomMeta/AcfMetaCli.php +++ b/src/CustomMeta/AcfMetaCli.php @@ -17,7 +17,6 @@ */ class AcfMetaCli extends AbstractCli { - /** * Output dir relative path. * diff --git a/src/CustomMeta/AcfMetaExample.php b/src/CustomMeta/AcfMetaExample.php index 2157e1e27..3cb33f523 100644 --- a/src/CustomMeta/AcfMetaExample.php +++ b/src/CustomMeta/AcfMetaExample.php @@ -17,7 +17,6 @@ */ class AcfMetaExample extends AbstractAcfMeta { - /** * Render acf fields. * diff --git a/src/CustomPostType/AbstractPostType.php b/src/CustomPostType/AbstractPostType.php index b909ee7e5..29528cd83 100644 --- a/src/CustomPostType/AbstractPostType.php +++ b/src/CustomPostType/AbstractPostType.php @@ -17,7 +17,6 @@ */ abstract class AbstractPostType implements ServiceInterface { - /** * Register custom post type. * diff --git a/src/CustomPostType/LabelGenerator.php b/src/CustomPostType/LabelGenerator.php index e7ab4c012..fdb39f4f4 100644 --- a/src/CustomPostType/LabelGenerator.php +++ b/src/CustomPostType/LabelGenerator.php @@ -19,7 +19,6 @@ */ final class LabelGenerator { - /** * Singular name UC Constant * diff --git a/src/CustomPostType/PostTypeCli.php b/src/CustomPostType/PostTypeCli.php index 1c44f8c29..f6e04723b 100644 --- a/src/CustomPostType/PostTypeCli.php +++ b/src/CustomPostType/PostTypeCli.php @@ -17,7 +17,6 @@ */ class PostTypeCli extends AbstractCli { - /** * Output dir relative path. * diff --git a/src/CustomPostType/PostTypeExample.php b/src/CustomPostType/PostTypeExample.php index cd4824dd9..b22cef250 100644 --- a/src/CustomPostType/PostTypeExample.php +++ b/src/CustomPostType/PostTypeExample.php @@ -17,7 +17,6 @@ */ class PostTypeExample extends AbstractPostType { - /** * Post type slug constant. * diff --git a/src/CustomTaxonomy/AbstractTaxonomy.php b/src/CustomTaxonomy/AbstractTaxonomy.php index 2e7716a0d..2c3a1cfab 100644 --- a/src/CustomTaxonomy/AbstractTaxonomy.php +++ b/src/CustomTaxonomy/AbstractTaxonomy.php @@ -17,7 +17,6 @@ */ abstract class AbstractTaxonomy implements ServiceInterface { - /** * Register custom taxonomy. * diff --git a/src/CustomTaxonomy/TaxonomyCli.php b/src/CustomTaxonomy/TaxonomyCli.php index a2539a7eb..0d37639cf 100644 --- a/src/CustomTaxonomy/TaxonomyCli.php +++ b/src/CustomTaxonomy/TaxonomyCli.php @@ -17,7 +17,6 @@ */ class TaxonomyCli extends AbstractCli { - /** * Output dir relative path. * diff --git a/src/CustomTaxonomy/TaxonomyExample.php b/src/CustomTaxonomy/TaxonomyExample.php index fed900edb..b45a67689 100644 --- a/src/CustomTaxonomy/TaxonomyExample.php +++ b/src/CustomTaxonomy/TaxonomyExample.php @@ -17,7 +17,6 @@ */ class TaxonomyExample extends AbstractTaxonomy { - /** * Taxonomy slug constant. * diff --git a/src/Db/ExportCli.php b/src/Db/ExportCli.php index 45907d9fa..0e48d127e 100644 --- a/src/Db/ExportCli.php +++ b/src/Db/ExportCli.php @@ -17,7 +17,6 @@ */ class ExportCli extends AbstractCli { - /** * Get WPCLI command name * diff --git a/src/Db/ImportCli.php b/src/Db/ImportCli.php index 0998dd4fd..8a29c11a2 100644 --- a/src/Db/ImportCli.php +++ b/src/Db/ImportCli.php @@ -18,7 +18,6 @@ */ class ImportCli extends AbstractCli { - /** * Get WPCLI command name * diff --git a/src/Enqueue/AbstractAssets.php b/src/Enqueue/AbstractAssets.php index 94966a0cf..557029f1c 100644 --- a/src/Enqueue/AbstractAssets.php +++ b/src/Enqueue/AbstractAssets.php @@ -22,7 +22,6 @@ */ abstract class AbstractAssets implements ServiceInterface { - /** * Media style const */ diff --git a/src/Enqueue/Admin/AbstractEnqueueAdmin.php b/src/Enqueue/Admin/AbstractEnqueueAdmin.php index cd0bd90fc..ed06bcf5a 100644 --- a/src/Enqueue/Admin/AbstractEnqueueAdmin.php +++ b/src/Enqueue/Admin/AbstractEnqueueAdmin.php @@ -20,7 +20,6 @@ */ abstract class AbstractEnqueueAdmin extends AbstractAssets { - public const ADMIN_SCRIPT_URI = 'applicationAdmin.js'; public const ADMIN_STYLE_URI = 'applicationAdmin.css'; diff --git a/src/Enqueue/Admin/EnqueueAdminCli.php b/src/Enqueue/Admin/EnqueueAdminCli.php index 74d5722a5..f5e44887d 100644 --- a/src/Enqueue/Admin/EnqueueAdminCli.php +++ b/src/Enqueue/Admin/EnqueueAdminCli.php @@ -17,7 +17,6 @@ */ class EnqueueAdminCli extends AbstractCli { - /** * Output dir relative path. */ diff --git a/src/Enqueue/Admin/EnqueueAdminExample.php b/src/Enqueue/Admin/EnqueueAdminExample.php index 90c0c07a7..e5afba4ff 100644 --- a/src/Enqueue/Admin/EnqueueAdminExample.php +++ b/src/Enqueue/Admin/EnqueueAdminExample.php @@ -21,7 +21,6 @@ */ class EnqueueAdminExample extends AbstractEnqueueAdmin { - /** * Create a new admin instance. * diff --git a/src/Enqueue/Blocks/AbstractEnqueueBlocks.php b/src/Enqueue/Blocks/AbstractEnqueueBlocks.php index 062cbf43f..fae05f7c4 100644 --- a/src/Enqueue/Blocks/AbstractEnqueueBlocks.php +++ b/src/Enqueue/Blocks/AbstractEnqueueBlocks.php @@ -18,7 +18,6 @@ */ abstract class AbstractEnqueueBlocks extends AbstractAssets { - public const BLOCKS_EDITOR_SCRIPT_URI = 'applicationBlocksEditor.js'; public const BLOCKS_EDITOR_STYLE_URI = 'applicationBlocksEditor.css'; diff --git a/src/Enqueue/Blocks/EnqueueBlocksCli.php b/src/Enqueue/Blocks/EnqueueBlocksCli.php index cb61e9232..9053971bb 100644 --- a/src/Enqueue/Blocks/EnqueueBlocksCli.php +++ b/src/Enqueue/Blocks/EnqueueBlocksCli.php @@ -17,7 +17,6 @@ */ class EnqueueBlocksCli extends AbstractCli { - /** * Output dir relative path. * diff --git a/src/Enqueue/Blocks/EnqueueBlocksExample.php b/src/Enqueue/Blocks/EnqueueBlocksExample.php index 7a55520d9..dcb6dd00c 100644 --- a/src/Enqueue/Blocks/EnqueueBlocksExample.php +++ b/src/Enqueue/Blocks/EnqueueBlocksExample.php @@ -19,7 +19,6 @@ */ class EnqueueBlocksExample extends AbstractEnqueueBlocks { - /** * Create a new admin instance. * diff --git a/src/Enqueue/Theme/AbstractEnqueueTheme.php b/src/Enqueue/Theme/AbstractEnqueueTheme.php index 54a182f85..50d40cd7b 100644 --- a/src/Enqueue/Theme/AbstractEnqueueTheme.php +++ b/src/Enqueue/Theme/AbstractEnqueueTheme.php @@ -18,7 +18,6 @@ */ abstract class AbstractEnqueueTheme extends AbstractAssets { - public const THEME_SCRIPT_URI = 'application.js'; public const THEME_STYLE_URI = 'application.css'; diff --git a/src/Enqueue/Theme/EnqueueThemeCli.php b/src/Enqueue/Theme/EnqueueThemeCli.php index 65ceb9cf4..77f5faaca 100644 --- a/src/Enqueue/Theme/EnqueueThemeCli.php +++ b/src/Enqueue/Theme/EnqueueThemeCli.php @@ -17,7 +17,6 @@ */ class EnqueueThemeCli extends AbstractCli { - /** * Output dir relative path. */ diff --git a/src/Enqueue/Theme/EnqueueThemeExample.php b/src/Enqueue/Theme/EnqueueThemeExample.php index 16ae097eb..4f6b042c1 100644 --- a/src/Enqueue/Theme/EnqueueThemeExample.php +++ b/src/Enqueue/Theme/EnqueueThemeExample.php @@ -19,7 +19,6 @@ */ class EnqueueThemeExample extends AbstractEnqueueTheme { - /** * Create a new admin instance. * diff --git a/src/Exception/ComponentException.php b/src/Exception/ComponentException.php index d8fb653e8..e18dd39e0 100644 --- a/src/Exception/ComponentException.php +++ b/src/Exception/ComponentException.php @@ -17,7 +17,6 @@ */ final class ComponentException extends \InvalidArgumentException implements GeneralExceptionInterface { - /** * Throws exception if ensure_string argument is invalid. * diff --git a/src/Exception/FailedToLoadView.php b/src/Exception/FailedToLoadView.php index e7ca4f513..de08a87e5 100644 --- a/src/Exception/FailedToLoadView.php +++ b/src/Exception/FailedToLoadView.php @@ -15,7 +15,6 @@ */ final class FailedToLoadView extends \RuntimeException implements GeneralExceptionInterface { - /** * Create a new instance of the exception if the view file itself created * an exception. diff --git a/src/Exception/GeneralExceptionInterface.php b/src/Exception/GeneralExceptionInterface.php index 0e56f2868..4f831851d 100644 --- a/src/Exception/GeneralExceptionInterface.php +++ b/src/Exception/GeneralExceptionInterface.php @@ -17,5 +17,4 @@ */ interface GeneralExceptionInterface { - } diff --git a/src/Exception/InvalidAutowireDependency.php b/src/Exception/InvalidAutowireDependency.php index 67ab604e2..f33c0c033 100644 --- a/src/Exception/InvalidAutowireDependency.php +++ b/src/Exception/InvalidAutowireDependency.php @@ -18,7 +18,6 @@ */ final class InvalidAutowireDependency extends \InvalidArgumentException implements GeneralExceptionInterface { - /** * Throws exception if we cant guess the class to inject. * diff --git a/src/Exception/InvalidBlock.php b/src/Exception/InvalidBlock.php index 78ce52276..11f41b914 100644 --- a/src/Exception/InvalidBlock.php +++ b/src/Exception/InvalidBlock.php @@ -15,7 +15,6 @@ */ final class InvalidBlock extends \InvalidArgumentException implements GeneralExceptionInterface { - /** * Throws error if blocks are missing. * diff --git a/src/Exception/InvalidCallback.php b/src/Exception/InvalidCallback.php index 9cc454185..f783d5ba6 100644 --- a/src/Exception/InvalidCallback.php +++ b/src/Exception/InvalidCallback.php @@ -15,7 +15,6 @@ */ final class InvalidCallback extends \InvalidArgumentException implements GeneralExceptionInterface { - /** * Create a new instance of the exception for a callback class name that is * not recognized. diff --git a/src/Exception/InvalidManifest.php b/src/Exception/InvalidManifest.php index c645ec4a9..b85b37674 100644 --- a/src/Exception/InvalidManifest.php +++ b/src/Exception/InvalidManifest.php @@ -15,7 +15,6 @@ */ final class InvalidManifest extends \InvalidArgumentException implements GeneralExceptionInterface { - /** * Throws error if manifest key is missing * diff --git a/src/Exception/InvalidNouns.php b/src/Exception/InvalidNouns.php index f461e52c6..d275ecad7 100644 --- a/src/Exception/InvalidNouns.php +++ b/src/Exception/InvalidNouns.php @@ -15,7 +15,6 @@ */ final class InvalidNouns extends \InvalidArgumentException implements GeneralExceptionInterface { - /** * Create a new instance of the exception for an array of nouns that is * missing a required key. diff --git a/src/Exception/InvalidService.php b/src/Exception/InvalidService.php index fd6d9a33a..f30e78d94 100644 --- a/src/Exception/InvalidService.php +++ b/src/Exception/InvalidService.php @@ -15,7 +15,6 @@ */ final class InvalidService extends \InvalidArgumentException implements GeneralExceptionInterface { - /** * Create a new instance of the exception for a service class name that is * not recognized. diff --git a/src/Exception/NonPsr4CompliantClass.php b/src/Exception/NonPsr4CompliantClass.php index be2920728..cfecab0af 100644 --- a/src/Exception/NonPsr4CompliantClass.php +++ b/src/Exception/NonPsr4CompliantClass.php @@ -15,7 +15,6 @@ */ final class NonPsr4CompliantClass extends \InvalidArgumentException implements GeneralExceptionInterface { - /** * Throws exception if class has non psr-4 compliant namespace. * diff --git a/src/Exception/PluginActivationFailure.php b/src/Exception/PluginActivationFailure.php index 3dc72d5f2..ead023a1c 100644 --- a/src/Exception/PluginActivationFailure.php +++ b/src/Exception/PluginActivationFailure.php @@ -15,7 +15,6 @@ */ final class PluginActivationFailure extends \RuntimeException implements GeneralExceptionInterface { - /** * Create a new instance of the exception in case plugin cannot be activated. * diff --git a/src/GitIgnore/GitIgnoreCli.php b/src/GitIgnore/GitIgnoreCli.php index cbfcb1f2e..6be153ad3 100644 --- a/src/GitIgnore/GitIgnoreCli.php +++ b/src/GitIgnore/GitIgnoreCli.php @@ -17,7 +17,6 @@ */ class GitIgnoreCli extends AbstractCli { - /** * Output dir relative path. * diff --git a/src/Helpers/Components.php b/src/Helpers/Components.php index 74d0b18ce..40b47a22e 100644 --- a/src/Helpers/Components.php +++ b/src/Helpers/Components.php @@ -17,7 +17,6 @@ */ class Components { - /** * Makes sure the output is string. Useful for converting an array of components into a string. * If you pass an associative array it will output strings with keys, used for generating data-attributes from array. diff --git a/src/Helpers/ErrorLoggerTrait.php b/src/Helpers/ErrorLoggerTrait.php index 144a96153..a9835afb7 100755 --- a/src/Helpers/ErrorLoggerTrait.php +++ b/src/Helpers/ErrorLoggerTrait.php @@ -15,7 +15,6 @@ */ trait ErrorLoggerTrait { - /** * Ensure correct response for rest using handler function. * diff --git a/src/Helpers/ObjectHelperTrait.php b/src/Helpers/ObjectHelperTrait.php index 5bb337f58..004de5f3b 100644 --- a/src/Helpers/ObjectHelperTrait.php +++ b/src/Helpers/ObjectHelperTrait.php @@ -16,7 +16,6 @@ */ trait ObjectHelperTrait { - /** * Check if XML is valid file used for svg. * diff --git a/src/Helpers/Post.php b/src/Helpers/Post.php index ae1905d32..48f623716 100644 --- a/src/Helpers/Post.php +++ b/src/Helpers/Post.php @@ -16,7 +16,6 @@ */ class Post { - /** * Average reading speed. * diff --git a/src/Helpers/Shortcode.php b/src/Helpers/Shortcode.php index 031fa1527..826e2e7b1 100644 --- a/src/Helpers/Shortcode.php +++ b/src/Helpers/Shortcode.php @@ -15,7 +15,6 @@ */ class Shortcode { - /** * Call a shortcode function by tag name. * diff --git a/src/I18n/I18nCli.php b/src/I18n/I18nCli.php index 9b5594151..533ff5231 100644 --- a/src/I18n/I18nCli.php +++ b/src/I18n/I18nCli.php @@ -17,7 +17,6 @@ */ class I18nCli extends AbstractCli { - /** * Output dir relative path. * diff --git a/src/I18n/I18nExample.php b/src/I18n/I18nExample.php index 8363d0f66..3690fa8ad 100644 --- a/src/I18n/I18nExample.php +++ b/src/I18n/I18nExample.php @@ -21,7 +21,6 @@ */ class I18nExample implements ServiceInterface { - /** * Register all the hooks * diff --git a/src/Login/LoginCli.php b/src/Login/LoginCli.php index 34bf55671..8c6ff5dee 100644 --- a/src/Login/LoginCli.php +++ b/src/Login/LoginCli.php @@ -17,7 +17,6 @@ */ class LoginCli extends AbstractCli { - /** * Output dir relative path. */ diff --git a/src/Login/LoginExample.php b/src/Login/LoginExample.php index a1fedefed..a750ac48d 100644 --- a/src/Login/LoginExample.php +++ b/src/Login/LoginExample.php @@ -19,7 +19,6 @@ */ class LoginExample implements ServiceInterface { - /** * Register all the hooks * diff --git a/src/Main/AbstractMain.php b/src/Main/AbstractMain.php index a422bac58..aa65ac9b0 100644 --- a/src/Main/AbstractMain.php +++ b/src/Main/AbstractMain.php @@ -23,7 +23,6 @@ */ abstract class AbstractMain extends Autowiring implements ServiceInterface { - /** * Array of instantiated services. * diff --git a/src/Main/Autowiring.php b/src/Main/Autowiring.php index 042c81208..ba1bb3340 100644 --- a/src/Main/Autowiring.php +++ b/src/Main/Autowiring.php @@ -19,7 +19,6 @@ */ class Autowiring { - /** * Array of psr-4 prefixes. Should be provided by Composer's ClassLoader. $ClassLoader->getPsr4Prefixes(). * diff --git a/src/Main/MainCli.php b/src/Main/MainCli.php index f3217613c..1390b56dc 100644 --- a/src/Main/MainCli.php +++ b/src/Main/MainCli.php @@ -17,7 +17,6 @@ */ class MainCli extends AbstractCli { - /** * Output dir relative path. */ diff --git a/src/Main/MainExample.php b/src/Main/MainExample.php index f464ea376..31468f26d 100644 --- a/src/Main/MainExample.php +++ b/src/Main/MainExample.php @@ -26,7 +26,6 @@ */ class MainExample extends AbstractMain { - /** * Register the project with the WordPress system. * diff --git a/src/Manifest/AbstractManifest.php b/src/Manifest/AbstractManifest.php index c1caaa89a..a2deb7e9b 100644 --- a/src/Manifest/AbstractManifest.php +++ b/src/Manifest/AbstractManifest.php @@ -20,7 +20,6 @@ */ abstract class AbstractManifest implements ServiceInterface, ManifestInterface { - /** * Full data of manifest items. * diff --git a/src/Manifest/ManifestCli.php b/src/Manifest/ManifestCli.php index f923b52a0..18779329e 100644 --- a/src/Manifest/ManifestCli.php +++ b/src/Manifest/ManifestCli.php @@ -17,7 +17,6 @@ */ class ManifestCli extends AbstractCli { - /** * Output dir relative path. */ diff --git a/src/Manifest/ManifestExample.php b/src/Manifest/ManifestExample.php index b28b5f75f..fb97e0523 100644 --- a/src/Manifest/ManifestExample.php +++ b/src/Manifest/ManifestExample.php @@ -20,7 +20,6 @@ */ class ManifestExample extends AbstractManifest { - /** * Manifest item filter name constant. * diff --git a/src/Manifest/ManifestInterface.php b/src/Manifest/ManifestInterface.php index f10195899..c3d085168 100644 --- a/src/Manifest/ManifestInterface.php +++ b/src/Manifest/ManifestInterface.php @@ -17,7 +17,6 @@ */ interface ManifestInterface { - /** * Return full path for specific asset from manifest.json * This is used for cache busting assets. diff --git a/src/Media/MediaCli.php b/src/Media/MediaCli.php index aa9a8e2c1..84cfc69ba 100644 --- a/src/Media/MediaCli.php +++ b/src/Media/MediaCli.php @@ -17,7 +17,6 @@ */ class MediaCli extends AbstractCli { - /** * Output dir relative path. */ diff --git a/src/Media/MediaExample.php b/src/Media/MediaExample.php index 5d180f872..91608fb4e 100644 --- a/src/Media/MediaExample.php +++ b/src/Media/MediaExample.php @@ -19,7 +19,6 @@ */ class MediaExample implements ServiceInterface { - /** * Register all the hooks * diff --git a/src/Menu/AbstractMenu.php b/src/Menu/AbstractMenu.php index 55f2dfd37..5b6c410db 100644 --- a/src/Menu/AbstractMenu.php +++ b/src/Menu/AbstractMenu.php @@ -17,7 +17,6 @@ */ abstract class AbstractMenu implements ServiceInterface, MenuPositionsInterface { - /** * Register All Menu positions * diff --git a/src/Menu/MenuCli.php b/src/Menu/MenuCli.php index ce011eb74..39dc56423 100644 --- a/src/Menu/MenuCli.php +++ b/src/Menu/MenuCli.php @@ -17,7 +17,6 @@ */ class MenuCli extends AbstractCli { - /** * Output dir relative path. */ diff --git a/src/Menu/MenuExample.php b/src/Menu/MenuExample.php index 365417ca4..46de344ca 100644 --- a/src/Menu/MenuExample.php +++ b/src/Menu/MenuExample.php @@ -17,7 +17,6 @@ */ class MenuExample extends AbstractMenu { - /** * Register all the hooks * diff --git a/src/Menu/MenuPositionsInterface.php b/src/Menu/MenuPositionsInterface.php index b63631248..9612ab42d 100644 --- a/src/Menu/MenuPositionsInterface.php +++ b/src/Menu/MenuPositionsInterface.php @@ -17,7 +17,6 @@ */ interface MenuPositionsInterface { - /** * Return all menu positions * diff --git a/src/ModifyAdminAppearance/ModifyAdminAppearanceCli.php b/src/ModifyAdminAppearance/ModifyAdminAppearanceCli.php index 1f4791413..39c887f3d 100644 --- a/src/ModifyAdminAppearance/ModifyAdminAppearanceCli.php +++ b/src/ModifyAdminAppearance/ModifyAdminAppearanceCli.php @@ -17,7 +17,6 @@ */ class ModifyAdminAppearanceCli extends AbstractCli { - /** * Output dir relative path. */ diff --git a/src/ModifyAdminAppearance/ModifyAdminAppearanceExample.php b/src/ModifyAdminAppearance/ModifyAdminAppearanceExample.php index 2c390cfbb..c8f2be314 100644 --- a/src/ModifyAdminAppearance/ModifyAdminAppearanceExample.php +++ b/src/ModifyAdminAppearance/ModifyAdminAppearanceExample.php @@ -19,7 +19,6 @@ */ class ModifyAdminAppearanceExample implements ServiceInterface { - /** * List of admin color schemes. * diff --git a/src/Readme/ReadmeCli.php b/src/Readme/ReadmeCli.php index 194b0391d..0944d12d9 100644 --- a/src/Readme/ReadmeCli.php +++ b/src/Readme/ReadmeCli.php @@ -17,7 +17,6 @@ */ class ReadmeCli extends AbstractCli { - /** * Output dir relative path. * diff --git a/src/Rest/CallableFieldInterface.php b/src/Rest/CallableFieldInterface.php index b132bf5cb..68dd7de9a 100644 --- a/src/Rest/CallableFieldInterface.php +++ b/src/Rest/CallableFieldInterface.php @@ -15,7 +15,6 @@ */ interface CallableFieldInterface { - /** * Method that returns rest response for custom fields get_callback callable * diff --git a/src/Rest/CallableRouteInterface.php b/src/Rest/CallableRouteInterface.php index d5ae46e02..c9605ea6e 100644 --- a/src/Rest/CallableRouteInterface.php +++ b/src/Rest/CallableRouteInterface.php @@ -15,7 +15,6 @@ */ interface CallableRouteInterface { - /** * Method that returns rest response * diff --git a/src/Rest/Fields/AbstractField.php b/src/Rest/Fields/AbstractField.php index 2103054de..a38cbc571 100644 --- a/src/Rest/Fields/AbstractField.php +++ b/src/Rest/Fields/AbstractField.php @@ -17,7 +17,6 @@ */ abstract class AbstractField implements ServiceInterface { - /** * A register method holds register_rest_route function to register or override api field. * diff --git a/src/Rest/Fields/FieldCli.php b/src/Rest/Fields/FieldCli.php index d99389c4e..e57e05b74 100644 --- a/src/Rest/Fields/FieldCli.php +++ b/src/Rest/Fields/FieldCli.php @@ -17,7 +17,6 @@ */ class FieldCli extends AbstractCli { - /** * Output dir relative path. * diff --git a/src/Rest/Fields/FieldExample.php b/src/Rest/Fields/FieldExample.php index 86a8b9b0c..cc86bb943 100644 --- a/src/Rest/Fields/FieldExample.php +++ b/src/Rest/Fields/FieldExample.php @@ -18,7 +18,6 @@ */ class FieldExample extends AbstractField implements CallableFieldInterface { - /** * Method that returns field object type * diff --git a/src/Rest/RouteInterface.php b/src/Rest/RouteInterface.php index 57401adc7..695188bde 100644 --- a/src/Rest/RouteInterface.php +++ b/src/Rest/RouteInterface.php @@ -15,7 +15,6 @@ */ interface RouteInterface { - /** * Alias for GET transport method. * diff --git a/src/Rest/RouteSecurityInterface.php b/src/Rest/RouteSecurityInterface.php index daeefd76e..28824ef73 100644 --- a/src/Rest/RouteSecurityInterface.php +++ b/src/Rest/RouteSecurityInterface.php @@ -17,7 +17,6 @@ */ interface RouteSecurityInterface { - /** * Authenticate the access of the endpoint * diff --git a/src/Rest/Routes/AbstractRoute.php b/src/Rest/Routes/AbstractRoute.php index 95b7be2da..9b9155b76 100644 --- a/src/Rest/Routes/AbstractRoute.php +++ b/src/Rest/Routes/AbstractRoute.php @@ -18,7 +18,6 @@ */ abstract class AbstractRoute implements RouteInterface, ServiceInterface { - /** * A register method holds register_rest_route function to register api route * diff --git a/src/Rest/Routes/RouteExample.php b/src/Rest/Routes/RouteExample.php index 3a0cb793b..e6b9886b8 100644 --- a/src/Rest/Routes/RouteExample.php +++ b/src/Rest/Routes/RouteExample.php @@ -19,7 +19,6 @@ */ class RouteExample extends AbstractRoute implements CallableRouteInterface { - /** * Method that returns project Route namespace. * diff --git a/src/Services/ServiceExample.php b/src/Services/ServiceExample.php index 95957220f..387ff9ac8 100644 --- a/src/Services/ServiceExample.php +++ b/src/Services/ServiceExample.php @@ -17,7 +17,6 @@ */ class ServiceExample implements ServiceInterface { - /** * Register all the hooks * diff --git a/src/Services/ServiceExampleCli.php b/src/Services/ServiceExampleCli.php index 78b788a80..148e77e6c 100644 --- a/src/Services/ServiceExampleCli.php +++ b/src/Services/ServiceExampleCli.php @@ -17,7 +17,6 @@ */ class ServiceExampleCli extends AbstractCli { - /** * Output dir relative path. */ diff --git a/src/ThemeOptions/ThemeOptionsCli.php b/src/ThemeOptions/ThemeOptionsCli.php index c3d4b8cec..3cd215998 100644 --- a/src/ThemeOptions/ThemeOptionsCli.php +++ b/src/ThemeOptions/ThemeOptionsCli.php @@ -17,7 +17,6 @@ */ class ThemeOptionsCli extends AbstractCli { - /** * Output dir relative path. */ diff --git a/src/ThemeOptions/ThemeOptionsExample.php b/src/ThemeOptions/ThemeOptionsExample.php index e9968e701..46d250096 100644 --- a/src/ThemeOptions/ThemeOptionsExample.php +++ b/src/ThemeOptions/ThemeOptionsExample.php @@ -17,7 +17,6 @@ */ class ThemeOptionsExample implements ServiceInterface { - /** * Theme options api page slug * diff --git a/src/View/AbstractEscapedView.php b/src/View/AbstractEscapedView.php index 1d5360a91..719b66b14 100644 --- a/src/View/AbstractEscapedView.php +++ b/src/View/AbstractEscapedView.php @@ -15,7 +15,6 @@ */ abstract class AbstractEscapedView implements ServiceInterface { - /** * Tags that are allowed to be rendered for SVG. */ diff --git a/src/View/EscapedViewCli.php b/src/View/EscapedViewCli.php index 9ec62b75a..91edb1322 100644 --- a/src/View/EscapedViewCli.php +++ b/src/View/EscapedViewCli.php @@ -17,7 +17,6 @@ */ class EscapedViewCli extends AbstractCli { - /** * Output dir relative path. */ diff --git a/src/View/EscapedViewExample.php b/src/View/EscapedViewExample.php index 37821acf0..690a87ff5 100644 --- a/src/View/EscapedViewExample.php +++ b/src/View/EscapedViewExample.php @@ -16,7 +16,6 @@ */ class EscapedViewExample extends AbstractEscapedView implements ServiceInterface { - /** * Register all the hooks */