From 71c2b5ba21ab785c78f7ed178399073832af6ec3 Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Mon, 7 Sep 2020 15:01:07 -0300 Subject: [PATCH] Remove "package" tag from files inside "src" and "tests/php" (https://github.com/woocommerce/woocommerce-blocks/pull/2972) * Don't require package tag or file comment inside src * Removed package from file headers * Fixed coding standards * fix doc blocks for REST API * update root classes * update phpdoc blocks for Assets and Block classes * Domain classes * update phpdocs for payment classes * update phpdocs for registry classes * update utils classes phpdocs * missed saving one file Co-authored-by: Darren Ethier --- plugins/woocommerce-blocks/phpcs.xml | 9 ++++++++ plugins/woocommerce-blocks/src/Assets.php | 11 +++------- plugins/woocommerce-blocks/src/Assets/Api.php | 8 ++----- .../src/Assets/AssetDataRegistry.php | 11 +++------- .../Assets/BackCompatAssetDataRegistry.php | 8 +------ .../src/BlockTypes/AbstractBlock.php | 8 ------- .../src/BlockTypes/AbstractDynamicBlock.php | 8 ------- .../src/BlockTypes/AbstractProductGrid.php | 8 ------- .../src/BlockTypes/ActiveFilters.php | 8 ------- .../src/BlockTypes/AllProducts.php | 8 ------- .../src/BlockTypes/AllReviews.php | 8 ------- .../src/BlockTypes/AtomicBlock.php | 10 ++------- .../src/BlockTypes/AttributeFilter.php | 8 ------- .../src/BlockTypes/Cart.php | 10 ++------- .../src/BlockTypes/Checkout.php | 10 ++------- .../src/BlockTypes/FeaturedCategory.php | 8 ------- .../src/BlockTypes/FeaturedProduct.php | 8 ------- .../src/BlockTypes/HandpickedProducts.php | 8 ------- .../src/BlockTypes/PriceFilter.php | 8 ------- .../src/BlockTypes/ProductBestSellers.php | 8 ------- .../src/BlockTypes/ProductCategories.php | 8 ------- .../src/BlockTypes/ProductCategory.php | 8 ------- .../src/BlockTypes/ProductNew.php | 8 ------- .../src/BlockTypes/ProductOnSale.php | 8 ------- .../src/BlockTypes/ProductSearch.php | 8 ------- .../src/BlockTypes/ProductTag.php | 8 ------- .../src/BlockTypes/ProductTopRated.php | 8 ------- .../src/BlockTypes/ProductsByAttribute.php | 8 ------- .../src/BlockTypes/ReviewsByCategory.php | 8 ------- .../src/BlockTypes/ReviewsByProduct.php | 8 ------- .../src/BlockTypes/SingleProduct.php | 8 ------- .../src/Domain/Bootstrap.php | 6 ----- .../woocommerce-blocks/src/Domain/Package.php | 8 ++----- .../src/Domain/Services/DraftOrders.php | 10 ++++----- plugins/woocommerce-blocks/src/Installer.php | 11 +++------- plugins/woocommerce-blocks/src/Library.php | 11 +++------- plugins/woocommerce-blocks/src/Package.php | 22 +++++++------------ .../woocommerce-blocks/src/Payments/Api.php | 8 ------- .../AbstractPaymentMethodType.php | 8 ------- .../Payments/Integrations/BankTransfer.php | 7 ------ .../Payments/Integrations/CashOnDelivery.php | 7 ------ .../src/Payments/Integrations/Cheque.php | 7 ------ .../src/Payments/Integrations/PayPal.php | 7 ------ .../src/Payments/Integrations/Stripe.php | 13 ++++------- .../src/Payments/PaymentContext.php | 8 ------- .../src/Payments/PaymentMethodRegistry.php | 6 ----- .../Payments/PaymentMethodTypeInterface.php | 8 ------- .../src/Payments/PaymentResult.php | 8 ------- .../src/Registry/AbstractDependencyType.php | 6 ----- .../src/Registry/Container.php | 10 ++------- .../src/Registry/FactoryType.php | 6 ----- .../src/Registry/SharedType.php | 6 ----- plugins/woocommerce-blocks/src/RestApi.php | 11 +++------- .../src/StoreApi/Routes/AbstractCartRoute.php | 12 +++------- .../src/StoreApi/Routes/AbstractRoute.php | 11 ++-------- .../StoreApi/Routes/AbstractTermsRoute.php | 11 ++-------- .../src/StoreApi/Routes/Cart.php | 10 ++------- .../src/StoreApi/Routes/CartAddItem.php | 10 ++------- .../src/StoreApi/Routes/CartApplyCoupon.php | 10 ++------- .../src/StoreApi/Routes/CartCoupons.php | 11 ++-------- .../src/StoreApi/Routes/CartCouponsByCode.php | 11 ++-------- .../src/StoreApi/Routes/CartItems.php | 11 ++-------- .../src/StoreApi/Routes/CartItemsByKey.php | 11 ++-------- .../src/StoreApi/Routes/CartRemoveCoupon.php | 10 ++------- .../src/StoreApi/Routes/CartRemoveItem.php | 10 ++------- .../Routes/CartSelectShippingRate.php | 10 ++------- .../src/StoreApi/Routes/CartUpdateItem.php | 10 ++------- .../StoreApi/Routes/CartUpdateShipping.php | 10 ++------- .../src/StoreApi/Routes/Checkout.php | 10 ++------- .../StoreApi/Routes/ProductAttributeTerms.php | 11 ++-------- .../src/StoreApi/Routes/ProductAttributes.php | 11 ++-------- .../StoreApi/Routes/ProductAttributesById.php | 11 ++-------- .../src/StoreApi/Routes/ProductCategories.php | 11 ++-------- .../StoreApi/Routes/ProductCategoriesById.php | 11 ++-------- .../StoreApi/Routes/ProductCollectionData.php | 16 +++++--------- .../src/StoreApi/Routes/ProductReviews.php | 11 ++-------- .../src/StoreApi/Routes/ProductTags.php | 11 ++-------- .../src/StoreApi/Routes/Products.php | 11 ++-------- .../src/StoreApi/Routes/ProductsById.php | 11 ++-------- .../src/StoreApi/Routes/RouteException.php | 8 ++----- .../src/StoreApi/Routes/RouteInterface.php | 10 ++------- .../src/StoreApi/RoutesController.php | 11 ++-------- .../src/StoreApi/SchemaController.php | 11 ++-------- .../src/StoreApi/Schemas/AbstractSchema.php | 15 ++++--------- .../StoreApi/Schemas/BillingAddressSchema.php | 10 ++------- .../src/StoreApi/Schemas/CartCouponSchema.php | 9 +------- .../src/StoreApi/Schemas/CartItemSchema.php | 9 +------- .../src/StoreApi/Schemas/CartSchema.php | 9 +------- .../Schemas/CartShippingRateSchema.php | 10 ++------- .../src/StoreApi/Schemas/CheckoutSchema.php | 10 ++------- .../src/StoreApi/Schemas/ErrorSchema.php | 9 +------- .../Schemas/ImageAttachmentSchema.php | 10 ++------- .../StoreApi/Schemas/OrderCouponSchema.php | 10 ++------- .../Schemas/ProductAttributeSchema.php | 9 +------- .../Schemas/ProductCategorySchema.php | 10 ++------- .../Schemas/ProductCollectionDataSchema.php | 9 +------- .../StoreApi/Schemas/ProductReviewSchema.php | 10 ++------- .../src/StoreApi/Schemas/ProductSchema.php | 9 +------- .../Schemas/ShippingAddressSchema.php | 9 +------- .../src/StoreApi/Schemas/TermSchema.php | 9 +------- .../src/StoreApi/Utilities/CartController.php | 10 ++------- .../src/StoreApi/Utilities/NoticeHandler.php | 11 +++------- .../StoreApi/Utilities/OrderController.php | 11 +++------- .../src/StoreApi/Utilities/Pagination.php | 9 +------- .../src/StoreApi/Utilities/ProductQuery.php | 10 ++------- .../Utilities/ProductQueryFilters.php | 9 +------- .../src/StoreApi/Utilities/ReserveStock.php | 11 +++------- .../Utilities/ReserveStockException.php | 9 +++----- .../src/Utils/BlocksWpQuery.php | 13 +++-------- .../tests/php/Bootstrap/MainFile.php | 2 -- .../tests/php/Helpers/TestValidateSchema.php | 2 -- .../tests/php/Helpers/ValidateSchema.php | 2 -- .../tests/php/StoreApi/Routes/Cart.php | 2 -- .../tests/php/StoreApi/Routes/CartCoupons.php | 2 -- .../tests/php/StoreApi/Routes/CartItems.php | 2 -- .../StoreApi/Routes/ProductAttributeTerms.php | 2 -- .../php/StoreApi/Routes/ProductAttributes.php | 2 -- .../StoreApi/Routes/ProductCollectionData.php | 2 -- .../tests/php/StoreApi/Routes/Products.php | 2 -- .../php/StoreApi/Utilities/ReserveStock.php | 2 -- 120 files changed, 165 insertions(+), 894 deletions(-) diff --git a/plugins/woocommerce-blocks/phpcs.xml b/plugins/woocommerce-blocks/phpcs.xml index 34940a811cb..316359a194f 100644 --- a/plugins/woocommerce-blocks/phpcs.xml +++ b/plugins/woocommerce-blocks/phpcs.xml @@ -36,6 +36,15 @@ tests/* + + src/ + tests/php + + + src/ + tests/php + + tests/ diff --git a/plugins/woocommerce-blocks/src/Assets.php b/plugins/woocommerce-blocks/src/Assets.php index f2e5368a668..28e9fbc77f0 100644 --- a/plugins/woocommerce-blocks/src/Assets.php +++ b/plugins/woocommerce-blocks/src/Assets.php @@ -1,19 +1,14 @@