Concentrated issues

Here is the list of the lines that generated the most issues.

File Count Analysis
/src/Sylius/Bundle/ApiBundle/ApiPlatform/Bridge/Doctrine/ORM/SubresourceDataProvider.php:12714
  •   Undefined Classes
  •   Undefined Interfaces
  •   Too Many Local Variables
  •   Mismatched Typehint
  •   Hidden Nullable
  •   Modified Typed Parameter
  •   Assumptions
/src/Sylius/Bundle/CoreBundle/Collector/CartCollector.php:8311
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Never Used Parameter
  •   Hidden Nullable
  •   Modified Typed Parameter
/src/Sylius/Bundle/CoreBundle/Collector/SyliusCollector.php:10011
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Never Used Parameter
  •   Hidden Nullable
  •   Modified Typed Parameter
/src/Sylius/Bundle/UserBundle/Controller/SecurityController.php:5111
  •   Used Once Variables (In Scope)
  •   Methods Without Return
  •   Must Return Methods
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
  •   Typehint Must Be Returned
/src/Sylius/Bundle/UserBundle/Controller/SecurityController.php:5911
  •   Used Once Variables (In Scope)
  •   Methods Without Return
  •   Must Return Methods
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
  •   Typehint Must Be Returned
/src/Sylius/Bundle/ChannelBundle/Collector/ChannelCollector.php:6110
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Hidden Nullable
  •   Modified Typed Parameter
/src/Sylius/Bundle/CoreBundle/Fixture/OptionsResolver/LazyOption.php:969
  •   Must Return Methods
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Ambiguous Static
  •   Typehint Must Be Returned
/src/Sylius/Bundle/MoneyBundle/Form/Type/MoneyType.php:419
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
  •   Assumptions
/src/Sylius/Bundle/ProductBundle/Form/Type/ProductAutocompleteChoiceType.php:369
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/PromotionBundle/Doctrine/ORM/PromotionRepository.php:369
  •   Undefined Classes
  •   Undefined Interfaces
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
  •   Missing Returntype In Method
/src/Sylius/Bundle/TaxonomyBundle/Form/Type/TaxonAutocompleteChoiceType.php:369
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/CoreBundle/Fixture/OptionsResolver/LazyOption.php:748
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Missing Returntype In Method
/src/Sylius/Bundle/PromotionBundle/Form/Type/Core/AbstractConfigurationCollectionType.php:568
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/ShippingBundle/Form/Type/Core/AbstractConfigurationCollectionType.php:568
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/UiBundle/Tests/Functional/Kernel.php:378
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Component/User/Canonicalizer/Canonicalizer.php:208
  •   Undefined Constants
  •   Uses Default Values
  •   PHP Keywords As Names
  •   Should Use Coalesce
  •   Wrong Returned Type
  •   Avoid mb_dectect_encoding()
/src/Sylius/Component/Core/Grid/Filter/EntitiesFilter.php:247
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
  •   Assumptions
/src/Sylius/Component/Core/Model/Product.php:2747
  •   Undefined Classes
  •   Undefined Interfaces
  •   Relay Function
  •   Mismatched Typehint
  •   Method Could Be Static
  •   Infinite Recursion
  •   Missing Returntype In Method
/config/bootstrap.php:116
  •   Uses Default Values
  •   Buried Assignation
  •   Check All Types
  •   Missing Include
  •   Inconsistent Elseif
  •   @ Operator
/src/Sylius/Behat/Page/Shop/Checkout/AddressPage.php:3206
  •   Must Return Methods
  •   Undefined Classes
  •   Undefined Interfaces
  •   Should Use Local Class
  •   Method Could Be Static
  •   Typehint Must Be Returned
/src/Sylius/Bundle/AddressingBundle/Form/Type/CountryType.php:236
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/AddressingBundle/Form/Type/ProvinceType.php:236
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/AdminApiBundle/Form/Type/AddressType.php:266
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/AdminApiBundle/Form/Type/ClientType.php:226
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/AdminApiBundle/Form/Type/OrderPromotionCouponType.php:226
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/AdminApiBundle/Form/Type/ProductType.php:246
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/AdminApiBundle/Form/Type/ProductVariantType.php:246
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/ApiBundle/Behat/Extension/SyliusApiBundleExtension.php:496
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/ApiBundle/DataProvider/CartPaymentMethodsSubresourceDataProvider.php:486
  •   Used Once Variables (In Scope)
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
  •   Hidden Nullable
/src/Sylius/Bundle/ApiBundle/DataProvider/CartShippingMethodsSubresourceDataProvider.php:776
  •   Used Once Variables (In Scope)
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
  •   Hidden Nullable
/src/Sylius/Bundle/ApiBundle/DataProvider/OrderAdjustmentsSubresourceDataProvider.php:346
  •   Used Once Variables (In Scope)
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
  •   Hidden Nullable
/src/Sylius/Bundle/ApiBundle/DataProvider/OrderItemAdjustmentsSubresourceDataProvider.php:346
  •   Used Once Variables (In Scope)
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
  •   Hidden Nullable
/src/Sylius/Bundle/AttributeBundle/Form/Type/AttributeTranslationType.php:226
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/AttributeBundle/Form/Type/AttributeType/Configuration/DateAttributeConfigurationType.php:226
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/AttributeBundle/Form/Type/AttributeType/Configuration/DatetimeAttributeConfigurationType.php:226
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/AttributeBundle/Form/Type/AttributeType/Configuration/SelectAttributeChoicesCollectionType.php:376
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/AttributeBundle/Form/Type/AttributeType/Configuration/SelectAttributeConfigurationType.php:246
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/AttributeBundle/Form/Type/AttributeType/Configuration/TextAttributeConfigurationType.php:226
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/ChannelBundle/Form/Type/ChannelType.php:266
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/CoreBundle/Doctrine/ORM/OrderRepository.php:1076
  •   Never Used Parameter
  •   No Boolean As Default
  •   Use Named Boolean In Argument Definition
  •   Different Argument Counts
  •   Method Signature Must Be Compatible
  •   Incompatible Signature Methods With Covariance
/src/Sylius/Bundle/CoreBundle/Fixture/GeographicalFixture.php:2396
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
  •   Missing Returntype In Method
/src/Sylius/Bundle/CoreBundle/Form/Extension/CartTypeExtension.php:276
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/CoreBundle/Form/Extension/CountryTypeExtension.php:386
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/CoreBundle/Form/Extension/CustomerTypeExtension.php:246
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/CoreBundle/Form/Extension/LocaleTypeExtension.php:356
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/CoreBundle/Form/Extension/OrderTypeExtension.php:236
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/CoreBundle/Form/Extension/ProductTranslationTypeExtension.php:236
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/CoreBundle/Form/Extension/ProductVariantGenerationTypeExtension.php:276
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/CoreBundle/Form/Extension/ProductVariantTypeExtension.php:336
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/CoreBundle/Form/Extension/PromotionCouponTypeExtension.php:246
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/CoreBundle/Form/Extension/PromotionFilterCollectionTypeExtension.php:246
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/CoreBundle/Form/Extension/PromotionTypeExtension.php:236
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/CoreBundle/Form/Extension/ShippingMethodTypeExtension.php:266
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/CoreBundle/Form/Extension/TaxRateTypeExtension.php:246
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/CoreBundle/Form/Extension/TaxonTypeExtension.php:246
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/CoreBundle/Form/Type/Checkout/ChangePaymentMethodType.php:256
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/CoreBundle/Form/Type/Checkout/CompleteType.php:226
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/CoreBundle/Form/Type/Checkout/PaymentType.php:336
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/CoreBundle/Form/Type/Checkout/SelectPaymentType.php:216
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/CoreBundle/Form/Type/Checkout/SelectShippingType.php:226
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/CoreBundle/Form/Type/Checkout/ShipmentType.php:336
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/CoreBundle/Form/Type/Customer/CustomerCheckoutGuestType.php:456
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/CoreBundle/Form/Type/Customer/CustomerGuestType.php:456
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/CoreBundle/Form/Type/ImageType.php:236
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/CoreBundle/Form/Type/ProductTaxonPositionType.php:226
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/CoreBundle/Form/Type/Promotion/Rule/CustomerGroupConfigurationType.php:246
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/CoreBundle/Form/Type/Promotion/Rule/NthOrderConfigurationType.php:246
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/CoreBundle/Form/Type/Promotion/Rule/ShippingCountryConfigurationType.php:226
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/CoreBundle/Form/Type/ShopBillingDataType.php:326
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/CoreBundle/Form/Type/User/ShopUserRegistrationType.php:236
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/CoreBundle/spec/Validator/Initializer/CustomerInitializerSpec.php:426
  •   Forgotten Visibility
  •   PHP Keywords As Names
  •   Undefined Classes
  •   Undefined Interfaces
  •   Relay Function
  •   Avoid Using stdClass
/src/Sylius/Bundle/CurrencyBundle/Form/Type/CurrencyType.php:236
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/CustomerBundle/Form/Type/CustomerGroupType.php:236
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/CustomerBundle/Form/Type/CustomerProfileType.php:256
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/CustomerBundle/Form/Type/CustomerType.php:216
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/LocaleBundle/Form/Type/LocaleType.php:216
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/OrderBundle/Form/Type/CartType.php:226
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/PaymentBundle/Form/Type/PaymentMethodTranslationType.php:236
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/PaymentBundle/Form/Type/PaymentMethodType.php:256
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/PaymentBundle/Form/Type/PaymentType.php:246
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/PayumBundle/Form/Type/PaypalGatewayConfigurationType.php:266
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/PayumBundle/Form/Type/StripeGatewayConfigurationType.php:236
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/ProductBundle/Form/Type/ProductAssociationType.php:216
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/ProductBundle/Form/Type/ProductAssociationTypeTranslationType.php:226
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/ProductBundle/Form/Type/ProductAssociationTypeType.php:236
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/ProductBundle/Form/Type/ProductOptionTranslationType.php:226
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/ProductBundle/Form/Type/ProductOptionType.php:256
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/ProductBundle/Form/Type/ProductOptionValueTranslationType.php:226
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/ProductBundle/Form/Type/ProductOptionValueType.php:236
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/ProductBundle/Form/Type/ProductTranslationType.php:236
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/ProductBundle/Form/Type/ProductVariantGenerationType.php:266
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/ProductBundle/Form/Type/ProductVariantTranslationType.php:226
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/ProductBundle/Form/Type/ProductVariantType.php:256
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/PromotionBundle/Form/Type/Action/PercentageDiscountConfigurationType.php:266
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/PromotionBundle/Form/Type/PromotionCouponGeneratorInstructionType.php:246
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/PromotionBundle/Form/Type/PromotionCouponType.php:246
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/PromotionBundle/Form/Type/PromotionType.php:276
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/PromotionBundle/Form/Type/Rule/CartQuantityConfigurationType.php:246
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/ShippingBundle/Form/Type/Rule/TotalWeightGreaterThanOrEqualConfigurationType.php:256
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/ShippingBundle/Form/Type/Rule/TotalWeightLessThanOrEqualConfigurationType.php:256
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/ShippingBundle/Form/Type/ShipmentShipType.php:226
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/ShippingBundle/Form/Type/ShipmentType.php:246
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/ShippingBundle/Form/Type/ShippingCategoryType.php:246
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/ShippingBundle/Form/Type/ShippingMethodTranslationType.php:236
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/TaxationBundle/Form/Type/TaxCategoryType.php:246
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/TaxationBundle/Form/Type/TaxRateType.php:256
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/TaxonomyBundle/Form/Type/TaxonPositionType.php:236
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/TaxonomyBundle/Form/Type/TaxonTranslationType.php:236
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/TaxonomyBundle/Form/Type/TaxonType.php:246
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/UiBundle/Controller/SecurityController.php:816
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/UiBundle/Controller/SecurityController.php:866
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/UiBundle/Form/Type/SecurityLoginType.php:246
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/UserBundle/Form/Type/UserChangePasswordType.php:236
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/UserBundle/Form/Type/UserLoginType.php:236
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/UserBundle/Form/Type/UserRequestPasswordResetType.php:226
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/UserBundle/Form/Type/UserResetPasswordType.php:236
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/UserBundle/Form/Type/UserType.php:356
  •   Used Once Variables (In Scope)
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/src/Sylius/Bundle/UserBundle/Security/UserLogin.php:626
  •   Undefined Classes
  •   Undefined Interfaces
  •   Should Use Local Class
  •   Method Could Be Static
  •   Insufficient Typehint
  •   Missing Returntype In Method
/src/Sylius/Component/Core/StateResolver/OrderPaymentStateResolver.php:1276
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
  •   Infinite Recursion
/src/Sylius/Component/Core/spec/TokenAssigner/UniqueIdBasedOrderTokenAssignerSpec.php:446
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   Methods Without Return
  •   Undefined Classes
  •   Undefined Interfaces
  •   Unused Arguments